UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

2 lines • 726 kB
export default "var ob=Object.defineProperty;var nt=(t,e)=>{for(var r in e)ob(t,r,{get:e[r],enumerable:!0})};function ue(t,e){if(t===e)return 0;let r=0,i=0;for(;r<t.length&&i<e.length;){let n=t.codePointAt(r)??0,o=e.codePointAt(i)??0;if(n!==o)return n-o;r+=n>65535?2:1,i+=o>65535?2:1}return t.length-r-(e.length-i)}var Ca={EBADF:\"EBADF\",ENOENT:\"ENOENT\",ENOTDIR:\"ENOTDIR\",EISDIR:\"EISDIR\",EEXIST:\"EEXIST\",EACCES:\"EACCES\",EPERM:\"EPERM\",ENOTEMPTY:\"ENOTEMPTY\",EXDEV:\"EXDEV\",ENOTSUP:\"ENOTSUP\",EOPNOTSUPP:\"ENOTSUP\",ELOOP:\"ELOOP\",EINVAL:\"EINVAL\",EIO:\"EIO\",EBUSY:\"EBUSY\",EROFS:\"EROFS\",EFBIG:\"EFBIG\",EDQUOT:\"EDQUOT\",EPIPE:\"EPIPE\",ENODATA:\"NO_XATTR\",ENOATTR:\"NO_XATTR\",STALE_WRITE:\"STALE_WRITE\"};var rt=class extends Error{command;seconds;constructor(e,r){super(`${e}: timed out after ${String(r)}s`),this.name=\"CommandTimeoutError\",this.command=e,this.seconds=r}};function J(t){if(t===null||typeof t!=\"object\")return null;if(t.noMount===!0)return\"ENOENT\";let e=t.code;return typeof e!=\"string\"?null:Ca[e]??null}function j(t){let e=t.length;for(;e>0&&t.charCodeAt(e-1)===47;)e--;return t.slice(0,e)}function Be(t){let e=0,r=t.length;for(;e<r&&t.charCodeAt(e)===47;)e++;for(;r>e&&t.charCodeAt(r-1)===47;)r--;return t.slice(e,r)}function se(t){let e=Be(t);return e===\"\"?\"/\":\"/\"+e+\"/\"}function fn(t,e){let r=se(e),i=null,n=-1;for(let o of t){let s=se(o);r.startsWith(s)&&s.length>n&&(i=o,n=s.length)}return i}function om(t){return typeof t==\"string\"?t:t.rawPath??t.virtual}function Ve(t,e,r){let i=om(t),n=new Error(r??i);return n.code=e,n.virtualPath=i,n}function pr(t){return Ve(t,\"ENOENT\")}function ht(t){return Ve(t,\"EBADF\")}function sm(t){return Ve(t,\"ENOTDIR\")}function am(t,e){return Object.assign(Ve(t,e),{dotWalk:!0})}function Oi(t){return am(t,\"ELOOP\")}function za(t){return Ve(t,\"EISDIR\")}function Ua(t){return Ve(t,\"EEXIST\")}function Ni(t,e){return Ve(t,\"EINVAL\",e)}function lm(t){return Ve(t,\"EXDEV\")}function lb(t){return t===null||typeof t!=\"object\"?!1:t.noMount===!0}function Ma(t){let e=t.code;if(e===\"ENOENT\"||e===\"ENOTDIR\"||e===\"EISDIR\")return!0;let r=t instanceof Error?t.message:String(t);return/not found|no such file|not a directory|is a directory/i.test(r)}function ce(t){return t===null||typeof t!=\"object\"?!1:t.code===\"ENOENT\"||lb(t)}function um(t,e,r){return Object.assign(Ve(r,\"ENOTSUP\",`no op registered: ${e} for VFS ${t}`),{op:e})}function Ri(t,e){let r=t;return r.code===\"ENOTSUP\"&&r.op===e}function cm(t,e){return t instanceof Error&&t.code===e}function dm(t){return cm(t,\"ENOENT\")}function zt(t){return cm(t,\"ENOTDIR\")}var La=\"\";function L(t){let e=0;for(let n of t)e+=n.byteLength;let r=new Uint8Array(e),i=0;for(let n of t)r.set(n,i),i+=n.byteLength;return r}function Di(t,e,r=0){if(e.length===0)return r;e:for(let i=r;i+e.length<=t.length;i++){for(let n=0;n<e.length;n++)if(t[i+n]!==e[n])continue e;return i}return-1}function de(t){let e=t?.aborted===!0?t.reason:void 0,r=new DOMException(\"execute aborted\",\"AbortError\");return e!==void 0&&Object.defineProperty(r,\"cause\",{value:e,configurable:!0,writable:!0}),r}function Ut(t){return t?.aborted===!0}function Ci(t,e){return t!=null&&e!=null?AbortSignal.any([t,e]):t??e??void 0}var ub=2147483647;function fm(t,e){return new Promise((r,i)=>{if(e?.aborted===!0){i(de());return}let n=null,o=t,s=()=>{n!==null&&clearTimeout(n),i(de())},a=()=>{let l=Math.min(o,ub);o-=l,n=setTimeout(()=>{if(o>0){a();return}e?.removeEventListener(\"abort\",s),r()},l)};a(),e?.addEventListener(\"abort\",s,{once:!0})})}function it(t,e){if(e===void 0)return t;if(e.aborted)return t.catch(()=>{}),Promise.reject(de(e));let r=()=>{};return new Promise((i,n)=>{r=()=>{n(de(e))},e.addEventListener(\"abort\",r,{once:!0}),t.then(i,n)}).finally(()=>{e.removeEventListener(\"abort\",r)})}var gt=class{constructor(e,r){this.signal=e;this.check=r}signal;check;nextYield=null;calls=0;run(){if(this.signal?.throwIfAborted(),this.check?.(),this.calls+=1,this.nextYield===null){this.nextYield=performance.now()+2;return}if(!(performance.now()<this.nextYield&&this.calls<4096))return this.yield()}async yield(){await new Promise(e=>{let{setImmediate:r}=globalThis;if(r!==void 0){r(e);return}let i=new MessageChannel;i.port1.onmessage=()=>{i.port1.close(),e()},i.port2.postMessage(null)}),this.calls=0,this.nextYield=performance.now()+2,this.signal?.throwIfAborted(),this.check?.()}};var ve=16*1024;async function*Ze(t,e,r=!0,i){let n=new gt(e,i),o=r?ve:Number.POSITIVE_INFINITY;if(t instanceof Uint8Array){for(let u=0;u<t.byteLength;u+=o){let c=n.run();c!==void 0&&await c,yield t.subarray(u,u+o)}return}let s=t[Symbol.asyncIterator](),a=!1,l=!1;try{for(;;){if(Ut(e))throw de(e);l=!0;let u=await it(s.next(),e);if(l=!1,u.done===!0){a=!0;break}let c=u.value,d=n.run();d!==void 0&&await d;for(let f=0;f<c.byteLength;f+=o){let p=n.run();p!==void 0&&await p,yield c.subarray(f,f+o)}}}finally{if(!a){let u=s.return?.();u!==void 0&&(l?u.catch(()=>{}):await u)}}}var Mt=class extends Error{},pn=class extends Error{constructor(){super(\"memory exhausted\")}};var YE=4*ve,pm=new WeakSet;function mr(t){let e=\"\";for(let i=0;i<t.byteLength;i+=32768)e+=String.fromCharCode(...t.subarray(i,i+32768));return btoa(e)}function ot(t){let e=atob(t),r=new Uint8Array(e.length);for(let i=0;i<e.length;i++)r[i]=e.charCodeAt(i);return r}var Lt=class extends Error{output;status;constructor(e,r,i=1){super(e),this.name=\"StreamRefusal\",this.output=r,this.status=i}};var cb=32*1024*1024,Ui=new TextEncoder,Fa=new TextDecoder,Mi,zi,db,Li,mn=new WeakMap;function mm(t,e){db=void 0,Li===t&&(Li=void 0);for(let r of mn.get(t)??[])r.drop(!e);mn.delete(t)}function hm(){return Mi??=WebAssembly.compile(ot(La)),Mi}function fb(){return zi??=new WebAssembly.Module(ot(La)),Mi??=Promise.resolve(zi),zi}function gm(t){zi??=t,Mi??=Promise.resolve(t)}function Ba(t,e,r){let i=new Uint8Array(t.memory.buffer,e,r).slice();return pm.add(i.buffer),i}var Va=class{constructor(e,r,i=!1){this.movable=i;if(this.exports=e,this.handle=r,this.capacity=e.mirage_rs_input_capacity(),i){let n=mn.get(e)??new Set;n.add(this),mn.set(e,n)}}movable;exports;handle;capacity;get live(){return this.handle!==0}feed(e){return this.guard(()=>this.push(e,r=>this.exports.mirage_rs_feed(this.handle,r)))}finish(){return this.guard(()=>this.collect(this.exports.mirage_rs_finish(this.handle),[]))}busy(){return this.guard(()=>this.exports.mirage_rs_busy(this.handle)===1)}cancel(){return this.guard(()=>this.exports.mirage_rs_cancel(this.handle)===1)}drain(){return this.guard(()=>this.collect(this.exports.mirage_rs_drain(this.handle),[]))}wants(){let e=this.guard(()=>this.exports.mirage_rs_wants(this.handle));return e<0?null:e}feedInput(e,r){return this.guard(()=>this.push(r,i=>this.exports.mirage_rs_feed_input(this.handle,e,i)))}endInput(e){return this.guard(()=>this.collect(this.exports.mirage_rs_end_input(this.handle,e),[]))}begin(e){let r=Ui.encode(JSON.stringify(e));if(r.byteLength>this.capacity)throw new Lt(\"stream input configuration too large\",new Uint8Array);this.guard(()=>{let i=this.exports.mirage_rs_input(this.handle);new Uint8Array(this.exports.memory.buffer,i,r.byteLength).set(r),this.collect(this.exports.mirage_rs_begin(this.handle,r.byteLength),[])})}test(e){return this.guard(()=>{let r=Math.max(0,e.byteLength-this.capacity);r>0&&this.push(e.subarray(0,r),s=>this.exports.mirage_rs_feed(this.handle,s));let i=e.subarray(r),n=this.exports.mirage_rs_input(this.handle);new Uint8Array(this.exports.memory.buffer,n,i.byteLength).set(i);let o=this.exports.mirage_rs_test(this.handle,i.byteLength);return o<0&&this.collect(1,[]),o===1})}done(){return this.guard(()=>this.exports.mirage_rs_done(this.handle)===1)}status(){return this.guard(()=>this.exports.mirage_rs_status(this.handle))}metadata(){return this.guard(()=>this.collect(this.exports.mirage_rs_metadata(this.handle),[]))}takeStderr(){return this.guard(()=>this.collect(this.exports.mirage_rs_take_stderr(this.handle),[]))}request(){return this.guard(()=>{let e=this.exports.mirage_rs_request(this.handle);if(e<0)return null;let r=this.collect(0,[]);return[JSON.parse(Fa.decode(r.subarray(0,e))),r.subarray(e)]})}respond(e,r){let i=Ui.encode(JSON.stringify(e));return this.guard(()=>{for(let n of[i,...r instanceof Uint8Array?[r]:r])for(let o=0;o<n.byteLength;o+=this.capacity){let s=n.subarray(o,o+this.capacity),a=this.exports.mirage_rs_input(this.handle);new Uint8Array(this.exports.memory.buffer,a,s.byteLength).set(s),this.exports.mirage_rs_stage(this.handle,s.byteLength)}return this.collect(this.exports.mirage_rs_respond(this.handle,i.byteLength),[])})}close(){if(this.handle===0)return;this.drop(!0);let e=mn.get(this.exports);this.exports.mirage_rs_open_count()===(e?.size??0)&&this.exports.memory.buffer.byteLength>cb&&![...e??[]].some(r=>r.busy())&&mm(this.exports,!1)}drop(e){this.handle!==0&&(e&&this.exports.mirage_rs_close(this.handle),this.handle=0,mn.get(this.exports)?.delete(this))}guard(e){try{return e()}catch(r){throw r instanceof WebAssembly.RuntimeError&&(this.drop(!1),mm(this.exports,!0)),r}}push(e,r){if(e.byteLength===0)return this.collect(r(0),[]);let i=[];for(let o=0;o<e.byteLength;o+=this.capacity){let s=e.subarray(o,o+this.capacity),a=this.exports.mirage_rs_input(this.handle);new Uint8Array(this.exports.memory.buffer,a,s.byteLength).set(s),i.push(this.collect(r(s.byteLength),i))}let[n]=i;return i.length===1&&n!==void 0?n:L(i)}collect(e,r){let{exports:i,handle:n}=this,o=Ba(i,i.mirage_rs_output(n),i.mirage_rs_output_len(n));if(e===0)return o;let s=Fa.decode(Ba(i,i.mirage_rs_error(n),i.mirage_rs_error_len(n)));throw new Lt(s,L([...r,o]),i.mirage_rs_error_status(n))}};function ji(t,e,r=!1){return Li??=new WebAssembly.Instance(fb(),{}).exports,pb(Li,t,e,r)}var ja=new FinalizationRegistry(t=>{t.close()}),hn=class{constructor(e,r){this.kind=e;this.config=r;this.stream=this.open()}kind;config;stream;close(){ja.unregister(this),this.stream.close()}get live(){return this.stream.live||(ja.unregister(this),this.stream=this.open()),this.stream}open(){let e=ji(this.kind,this.config,!0);return ja.register(this,e,this),e}};function pb(t,e,r,i=!1){let n=Ui.encode(e),o=Ui.encode(JSON.stringify(r)),s=t.mirage_rs_args(n.byteLength+o.byteLength),a=new Uint8Array(t.memory.buffer,s,n.byteLength+o.byteLength);a.set(n),a.set(o,n.byteLength);let l=t.mirage_rs_open(n.byteLength,o.byteLength);if(l===0){let u=Fa.decode(Ba(t,t.mirage_rs_error(0),t.mirage_rs_error_len(0)));throw new Lt(u,new Uint8Array,t.mirage_rs_error_status(0))}return new Va(t,l,i)}var fT=new TextDecoder;function G(t){return Array.from(t,e=>e.codePointAt(0)??0)}var mb=1024,hb=new TextEncoder,gb=new TextDecoder;function yb(t){return new hn(\"policy\",{...t,dialect:\"ecmascript\"})}var Za=class{stream;constructor(e){this.stream=yb(e)}ask(e,r={}){let i=this.stream.live;return i.feed(hb.encode(JSON.stringify({op:e,...r}))),JSON.parse(gb.decode(i.finish()))}};function ym(t){return{reason:G(t.reason),commands:(t.commands??[]).map(G),paths:(t.paths??[]).map(G),mount:t.mount===void 0?null:G(t.mount)}}function vb(t){return{allow:t.allow==null?null:t.allow.map(G),deny:(t.deny??[]).map(ym),ask:(t.ask??[]).map(ym)}}function bb(t){return{hidden:t.paths===null?{}:{paths:(t.paths.paths??[]).map(G),patterns:(t.paths.patterns??[]).map(G)},shown:(t.shown?.entries??[]).map(e=>({path:G(e.path),mode:e.mode})),vars:t.vars===null?{}:{names:(t.vars.names??[]).map(G),patterns:(t.vars.patterns??[]).map(G)}}}function Ga(t){return t.map(e=>{switch(e.kind){case\"follow\":return{follow:G(e.path)};case\"enter\":return{enter:{path:G(e.path),next_is_parent:e.nextIsParent}};case\"landing\":return{landing:G(e.path)};case\"hop_limit\":return\"hop_limit\"}})}var gn=new Map;function vm(t,e){let r=gn.get(t)??new Za(e());if(gn.delete(t),gn.set(t,r),gn.size>mb){let i=gn.keys().next();i.done!==!0&&gn.delete(i.value)}return r}function jt(t){return vm(JSON.stringify({rules:t}),()=>t===null?{}:{rules:vb(t)})}function Ft(t){return vm(JSON.stringify({visibility:t}),()=>t===null?{}:{visibility:bb(t)})}var F={};nt(F,{$brand:()=>sl,$input:()=>Nc,$output:()=>Oc,INVALID:()=>me,NEVER:()=>ol,TimePrecision:()=>Zc,ZodAny:()=>Nf,ZodArray:()=>zf,ZodBase64:()=>Us,ZodBase64URL:()=>Ms,ZodBigInt:()=>er,ZodBigIntFormat:()=>Fs,ZodBoolean:()=>Qn,ZodCIDRv4:()=>Cs,ZodCIDRv6:()=>zs,ZodCUID:()=>As,ZodCUID2:()=>Is,ZodCatch:()=>rp,ZodCodec:()=>ui,ZodCompileAsyncError:()=>ze,ZodCompileUnsupportedError:()=>U,ZodCreditCard:()=>kf,ZodCustom:()=>ci,ZodCustomStringFormat:()=>on,ZodDate:()=>ri,ZodDefault:()=>Yf,ZodDiscriminatedUnion:()=>Mf,ZodE164:()=>Ls,ZodEmail:()=>ks,ZodEmoji:()=>Es,ZodEnum:()=>Xn,ZodError:()=>Mx,ZodExactOptional:()=>Ws,ZodFile:()=>Kf,ZodFirstPartyTypeKind:()=>yp,ZodFunction:()=>pp,ZodGUID:()=>$s,ZodIBAN:()=>$f,ZodIPv4:()=>Rs,ZodIPv6:()=>Ds,ZodISODate:()=>Tt,ZodISODateTime:()=>Et,ZodISODuration:()=>It,ZodISOTime:()=>At,ZodInstanceOf:()=>gp,ZodIntersection:()=>Lf,ZodIssueCode:()=>Fx,ZodJWT:()=>js,ZodKSUID:()=>Ns,ZodLazy:()=>cp,ZodLiteral:()=>Gf,ZodMAC:()=>xf,ZodMap:()=>Zf,ZodNaN:()=>op,ZodNanoID:()=>Ts,ZodNever:()=>Df,ZodNonOptional:()=>Gs,ZodNull:()=>Pf,ZodNullable:()=>Xf,ZodNumber:()=>qn,ZodNumberFormat:()=>sn,ZodObject:()=>oi,ZodOptional:()=>ai,ZodPipe:()=>li,ZodPrefault:()=>Qf,ZodPreprocess:()=>sp,ZodPromise:()=>fp,ZodReadonly:()=>ap,ZodRealError:()=>xe,ZodRecord:()=>Jn,ZodSet:()=>Wf,ZodString:()=>Yn,ZodStringFormat:()=>K,ZodSuccess:()=>np,ZodSymbol:()=>Af,ZodTemplateLiteral:()=>up,ZodTransform:()=>Hf,ZodTuple:()=>Ff,ZodType:()=>C,ZodULID:()=>Ps,ZodURL:()=>ni,ZodUUID:()=>He,ZodUndefined:()=>If,ZodUnion:()=>si,ZodUnknown:()=>Rf,ZodVoid:()=>Cf,ZodXID:()=>Os,ZodXor:()=>Uf,_ZodString:()=>xs,_default:()=>qf,_function:()=>qy,any:()=>Iy,array:()=>ii,base64:()=>uy,base64url:()=>cy,bigint:()=>ky,boolean:()=>Tf,catch:()=>ip,check:()=>Qy,cidrv4:()=>ay,cidrv6:()=>ly,clone:()=>B,codec:()=>Hy,coerce:()=>bp,compile:()=>zc,config:()=>q,core:()=>ct,creditCard:()=>fy,cuid:()=>Qg,cuid2:()=>ey,currencyCode:()=>vy,custom:()=>ev,date:()=>Oy,decode:()=>gf,decodeAsync:()=>vf,deepPartial:()=>pv,describe:()=>tv,discriminatedUnion:()=>Uy,e164:()=>dy,email:()=>Vg,emoji:()=>Yg,encode:()=>hf,encodeAsync:()=>yf,endsWith:()=>Mn,enum:()=>Vs,exactOptional:()=>Jf,file:()=>Zy,flattenError:()=>$r,float32:()=>wy,float64:()=>Sy,formatError:()=>Er,fromJSONSchema:()=>dv,function:()=>qy,getDiscriminatedOption:()=>oc,getErrorMap:()=>Vx,globalRegistry:()=>re,gt:()=>Ge,gte:()=>$e,guid:()=>Zg,hash:()=>by,hex:()=>yy,hostname:()=>gy,httpUrl:()=>Xg,iban:()=>py,includes:()=>zn,input:()=>hv,instanceof:()=>rv,int:()=>Ss,int32:()=>_y,int64:()=>$y,intersection:()=>jf,invertCodec:()=>Jy,ipv4:()=>iy,ipv6:()=>sy,iso:()=>di,json:()=>ov,jwt:()=>my,keyof:()=>Ny,ksuid:()=>ry,lazy:()=>dp,length:()=>Qt,literal:()=>Vy,locales:()=>Gr,looseObject:()=>Cy,looseRecord:()=>Ly,lowercase:()=>Dn,lt:()=>We,lte:()=>ke,mac:()=>oy,map:()=>jy,maxLength:()=>qt,maxSize:()=>_t,memoizer:()=>Zr,meta:()=>nv,mime:()=>jn,minLength:()=>ut,minSize:()=>Ke,multipleOf:()=>St,nan:()=>Ky,nanoid:()=>qg,nativeEnum:()=>By,negative:()=>cs,never:()=>Bs,nonnegative:()=>fs,nonoptional:()=>tp,nonpositive:()=>ds,normalize:()=>Fn,null:()=>Of,nullable:()=>ti,nullish:()=>Wy,number:()=>Ef,object:()=>Ry,optional:()=>nn,output:()=>gv,overwrite:()=>Ue,parse:()=>df,parseAsync:()=>ff,partialRecord:()=>My,pipe:()=>_s,positive:()=>us,prefault:()=>ep,preprocess:()=>sv,prettifyError:()=>dl,promise:()=>Yy,properties:()=>Ln,property:()=>ps,readonly:()=>lp,record:()=>Vf,refine:()=>mp,regex:()=>Rn,regexes:()=>Oe,registry:()=>Mo,safeDecode:()=>wf,safeDecodeAsync:()=>_f,safeEncode:()=>bf,safeEncodeAsync:()=>Sf,safeParse:()=>pf,safeParseAsync:()=>mf,set:()=>Fy,setErrorMap:()=>Bx,size:()=>Yt,slugify:()=>Wn,startsWith:()=>Un,strictObject:()=>Dy,string:()=>ei,stringFormat:()=>hy,stringbool:()=>iv,success:()=>Gy,superRefine:()=>hp,symbol:()=>Ty,templateLiteral:()=>Xy,toJSONSchema:()=>ys,toLowerCase:()=>Vn,toUpperCase:()=>Zn,toZod:()=>hr,transform:()=>Zs,treeifyError:()=>cl,trim:()=>Bn,tuple:()=>Bf,uint32:()=>xy,uint64:()=>Ey,ulid:()=>ty,undefined:()=>Ay,union:()=>tr,unknown:()=>tn,uppercase:()=>Cn,url:()=>Jg,util:()=>v,uuid:()=>Wg,uuidv4:()=>Gg,uuidv6:()=>Kg,uuidv7:()=>Hg,validate:()=>Tr,validateAsync:()=>Ar,void:()=>Py,withParser:()=>Lo,xid:()=>ny,xor:()=>zy});var ct={};nt(ct,{$ZodAny:()=>Xu,$ZodArray:()=>nc,$ZodAsyncError:()=>Se,$ZodBase64:()=>Mu,$ZodBase64URL:()=>Lu,$ZodBigInt:()=>ko,$ZodBigIntFormat:()=>Gu,$ZodBoolean:()=>Mr,$ZodCIDRv4:()=>zu,$ZodCIDRv6:()=>Uu,$ZodCUID:()=>ku,$ZodCUID2:()=>$u,$ZodCatch:()=>Sc,$ZodCheck:()=>H,$ZodCheckBigIntFormat:()=>Yl,$ZodCheckEndsWith:()=>uu,$ZodCheckGreaterThan:()=>ao,$ZodCheckIncludes:()=>au,$ZodCheckLengthEquals:()=>ru,$ZodCheckLessThan:()=>so,$ZodCheckLowerCase:()=>ou,$ZodCheckMaxLength:()=>tu,$ZodCheckMaxSize:()=>ql,$ZodCheckMimeType:()=>fu,$ZodCheckMinLength:()=>nu,$ZodCheckMinSize:()=>Ql,$ZodCheckMultipleOf:()=>Jl,$ZodCheckNumberFormat:()=>Xl,$ZodCheckOverwrite:()=>pu,$ZodCheckProperties:()=>du,$ZodCheckProperty:()=>cu,$ZodCheckRegex:()=>iu,$ZodCheckSizeEquals:()=>eu,$ZodCheckStartsWith:()=>lu,$ZodCheckStringFormat:()=>An,$ZodCheckUpperCase:()=>su,$ZodCodec:()=>jr,$ZodCreditCard:()=>Fu,$ZodCustom:()=>Ac,$ZodCustomStringFormat:()=>Zu,$ZodCyclicError:()=>Oo,$ZodDate:()=>ec,$ZodDefault:()=>yc,$ZodDiscriminatedUnion:()=>sc,$ZodE164:()=>ju,$ZodEmail:()=>vu,$ZodEmoji:()=>_u,$ZodEncodeError:()=>bt,$ZodEnum:()=>dc,$ZodError:()=>ul,$ZodExactOptional:()=>hc,$ZodFile:()=>pc,$ZodFunction:()=>Ec,$ZodGUID:()=>gu,$ZodIBAN:()=>Bu,$ZodIPv4:()=>Ru,$ZodIPv6:()=>Du,$ZodISODate:()=>Pu,$ZodISODateTime:()=>Iu,$ZodISODuration:()=>Nu,$ZodISOTime:()=>Ou,$ZodIntersection:()=>ac,$ZodJWT:()=>Vu,$ZodKSUID:()=>Au,$ZodLazy:()=>Fr,$ZodLiteral:()=>fc,$ZodMAC:()=>Cu,$ZodMap:()=>uc,$ZodNaN:()=>_c,$ZodNanoID:()=>xu,$ZodNever:()=>qu,$ZodNonOptional:()=>bc,$ZodNull:()=>Ju,$ZodNullable:()=>gc,$ZodNumber:()=>xo,$ZodNumberFormat:()=>Wu,$ZodObject:()=>Qm,$ZodObjectJIT:()=>rc,$ZodOptional:()=>Eo,$ZodPipe:()=>To,$ZodPrefault:()=>vc,$ZodPreprocess:()=>xc,$ZodPromise:()=>Tc,$ZodReadonly:()=>kc,$ZodRealError:()=>_e,$ZodRecord:()=>lc,$ZodRegistry:()=>Uo,$ZodSet:()=>cc,$ZodString:()=>Kt,$ZodStringFormat:()=>V,$ZodSuccess:()=>wc,$ZodSymbol:()=>Ku,$ZodTemplateLiteral:()=>$c,$ZodTransform:()=>mc,$ZodTuple:()=>$o,$ZodType:()=>R,$ZodULID:()=>Eu,$ZodURL:()=>Su,$ZodUUID:()=>yu,$ZodUndefined:()=>Hu,$ZodUnion:()=>Lr,$ZodUnknown:()=>Yu,$ZodVoid:()=>Qu,$ZodXID:()=>Tu,$ZodXor:()=>ic,$brand:()=>sl,$constructor:()=>h,$input:()=>Nc,$output:()=>Oc,Doc:()=>Gt,INVALID:()=>me,JSONSchema:()=>jg,JSONSchemaGenerator:()=>vs,NEVER:()=>ol,TimePrecision:()=>Zc,URL_BAD_FORMAT:()=>bu,URL_UNPARSEABLE:()=>Rr,ZodCompileAsyncError:()=>ze,ZodCompileUnsupportedError:()=>U,_any:()=>ad,_array:()=>md,_base64:()=>os,_base64url:()=>ss,_bigint:()=>ed,_boolean:()=>qc,_catch:()=>Ex,_check:()=>kg,_cidrv4:()=>rs,_cidrv6:()=>is,_coercedBigint:()=>td,_coercedBoolean:()=>Qc,_coercedDate:()=>fd,_coercedNumber:()=>Gc,_coercedString:()=>jc,_creditCard:()=>Bc,_cuid:()=>Xo,_cuid2:()=>Yo,_custom:()=>gd,_date:()=>dd,_decode:()=>Ji,_decodeAsync:()=>Yi,_default:()=>xx,_discriminatedUnion:()=>dx,_e164:()=>as,_email:()=>Bo,_emoji:()=>Ho,_encode:()=>Hi,_encodeAsync:()=>Xi,_endsWith:()=>Mn,_enum:()=>yx,_file:()=>hd,_float32:()=>Hc,_float64:()=>Jc,_gt:()=>Ge,_gte:()=>$e,_guid:()=>Vo,_iban:()=>Vc,_includes:()=>zn,_int:()=>Kc,_int32:()=>Xc,_int64:()=>nd,_intersection:()=>fx,_ipv4:()=>ts,_ipv6:()=>ns,_isoDate:()=>Jr,_isoDateTime:()=>Hr,_isoDuration:()=>Yr,_isoTime:()=>Xr,_jwt:()=>ls,_ksuid:()=>es,_lazy:()=>Px,_length:()=>Qt,_literal:()=>bx,_lowercase:()=>Dn,_lt:()=>We,_lte:()=>ke,_mac:()=>Fc,_map:()=>hx,_max:()=>ke,_maxLength:()=>qt,_maxSize:()=>_t,_mime:()=>jn,_min:()=>$e,_minLength:()=>ut,_minSize:()=>Ke,_multipleOf:()=>St,_nan:()=>pd,_nanoid:()=>Jo,_nativeEnum:()=>vx,_negative:()=>cs,_never:()=>ud,_nonnegative:()=>fs,_nonoptional:()=>kx,_nonpositive:()=>ds,_normalize:()=>Fn,_null:()=>sd,_nullable:()=>_x,_number:()=>Wc,_optional:()=>Sx,_overwrite:()=>Ue,_parse:()=>kn,_parseAsync:()=>$n,_pipe:()=>Tx,_positive:()=>us,_promise:()=>Ox,_properties:()=>Ln,_property:()=>ps,_readonly:()=>Ax,_record:()=>mx,_refine:()=>yd,_regex:()=>Rn,_safeDecode:()=>Qi,_safeDecodeAsync:()=>to,_safeEncode:()=>qi,_safeEncodeAsync:()=>eo,_safeParse:()=>En,_safeParseAsync:()=>Tn,_set:()=>gx,_size:()=>Yt,_slugify:()=>Wn,_startsWith:()=>Un,_string:()=>Lc,_stringFormat:()=>en,_stringbool:()=>Sd,_success:()=>$x,_superRefine:()=>vd,_symbol:()=>id,_templateLiteral:()=>Ix,_toLowerCase:()=>Vn,_toUpperCase:()=>Zn,_transform:()=>wx,_trim:()=>Bn,_tuple:()=>px,_uint32:()=>Yc,_uint64:()=>rd,_ulid:()=>qo,_undefined:()=>od,_union:()=>ux,_unknown:()=>ld,_uppercase:()=>Cn,_url:()=>Kr,_uuid:()=>Zo,_uuidv4:()=>Wo,_uuidv6:()=>Go,_uuidv7:()=>Ko,_void:()=>cd,_xid:()=>Qo,_xor:()=>cx,base64Charset:()=>vo,base64urlCharset:()=>Ur,canParseURL:()=>wu,clone:()=>B,compile:()=>zc,compileFn:()=>jo,config:()=>q,createStandardJSONSchemaMethod:()=>Gn,createToJSONSchemaMethod:()=>xd,decode:()=>cw,decodeAsync:()=>fw,describe:()=>bd,encode:()=>uw,encodeAsync:()=>dw,extractDefs:()=>kt,finalize:()=>$t,flattenError:()=>$r,formatError:()=>Er,getDiscriminatedOption:()=>oc,globalConfig:()=>te,globalRegistry:()=>re,handleUnrepresentable:()=>Q,initializeContext:()=>xt,isBackEdge:()=>Ro,isRecursiveSchema:()=>No,isValidBase64:()=>zr,isValidBase64URL:()=>bo,isValidCIDRv6:()=>yo,isValidCreditCard:()=>wo,isValidIBAN:()=>So,isValidIPv6:()=>Cr,isValidJWT:()=>_o,locales:()=>Gr,memoizer:()=>Zr,mergeValues:()=>In,meta:()=>wd,parse:()=>Gi,parseAsync:()=>Ki,parseURLObject:()=>Xm,prettifyError:()=>dl,process:()=>Z,processSchema:()=>Z,regexes:()=>Oe,registry:()=>Mo,safeDecode:()=>mw,safeDecodeAsync:()=>gw,safeEncode:()=>pw,safeEncodeAsync:()=>hw,safeParse:()=>iw,safeParseAsync:()=>ow,standardProps:()=>po,stripTabAndNewline:()=>Dr,toDotPath:()=>Im,toJSONSchema:()=>ys,toZod:()=>hr,treeifyError:()=>cl,urlHostnameOk:()=>ho,urlProtocolOk:()=>go,util:()=>v,validate:()=>Tr,validateAsync:()=>Ar,validateURL:()=>mo,version:()=>mu,withParser:()=>Lo});var v={};nt(v,{BIGINT_FORMAT_RANGES:()=>wr,CONSTANT_CATCH:()=>Zi,Class:()=>Ja,NUMBER_FORMAT_RANGES:()=>br,aborted:()=>pe,allowsEval:()=>qa,assert:()=>kb,assertEqual:()=>wb,assertIs:()=>_b,assertNever:()=>xb,assertNotEqual:()=>Sb,assignProp:()=>ne,attachSchema:()=>Sr,base64ToUint8Array:()=>xm,base64urlToUint8Array:()=>Vb,cached:()=>wn,captureStackTrace:()=>Bi,cleanEnum:()=>Bb,cleanRegex:()=>at,clone:()=>B,cloneDef:()=>Tb,codePointLength:()=>Zt,constantCatch:()=>rl,createTransparentProxy:()=>Rb,defineLazy:()=>Xa,defineLazyInternal:()=>z,derived:()=>Kb,esc:()=>fe,escapeRegex:()=>Pe,explicitlyAborted:()=>tl,extend:()=>zb,finalizeIssue:()=>we,floatSafeRemainder:()=>gr,getElementAtPath:()=>Ab,getEnumValues:()=>vn,getLengthableOrigin:()=>xr,getParsedType:()=>Nb,getSizableOrigin:()=>_r,hexToUint8Array:()=>Wb,hide:()=>kr,installLazyProp:()=>Yb,isObject:()=>Vt,isPlainObject:()=>Ie,issue:()=>xn,joinValues:()=>g,jsonStringifyReplacer:()=>bn,members:()=>nl,merge:()=>Mb,mergeDefs:()=>Ce,normalizeParams:()=>x,nullish:()=>Fi,numKeys:()=>Ob,objectClone:()=>$b,omit:()=>Cb,optionalKeys:()=>el,own:()=>vt,parsedType:()=>w,partial:()=>Lb,pick:()=>Db,prefixIssues:()=>be,primitiveTypes:()=>Qa,promiseAllObject:()=>Ib,propertyKeyTypes:()=>vr,randomString:()=>Pb,rawShape:()=>Sn,required:()=>jb,safeExtend:()=>Ub,shallowClone:()=>yr,sizeCaps:()=>_n,slugify:()=>Ya,stringifyPrimitive:()=>b,toZod:()=>hr,uint8ArrayToBase64:()=>km,uint8ArrayToBase64url:()=>Zb,uint8ArrayToHex:()=>Gb,unwrapMessage:()=>yn});function wb(t){return t}function Sb(t){return t}function hr(){return t=>t}function _b(t){}function xb(t){throw new Error(\"Unexpected value in exhaustive check\")}function kb(t){}function vn(t){let e=Object.values(t).filter(i=>typeof i==\"number\");return Object.entries(t).filter(([i,n])=>e.indexOf(+i)===-1).map(([i,n])=>n)}function g(t,e=\"|\"){return t.map(r=>b(r)).join(e)}function bn(t,e){return typeof e==\"bigint\"?e.toString():e}var Ha=class{constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;return e!==void 0&&(this._value=e(),this._getter=void 0),this._value}};function wn(t){return new Ha(t)}function Fi(t){return t==null}function at(t){let e=t.startsWith(\"^\")?1:0,r=t.endsWith(\"$\")?t.length-1:t.length;return t.slice(e,r)}function gr(t,e){let r=t/e,i=Math.round(r),n=4*Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-i)<n?0:r-i}var bm=Symbol(\"evaluating\");function Xa(t,e,r){let i;Object.defineProperty(t,e,{get(){if(i!==bm)return i===void 0&&(i=bm,i=r()),i},set(n){Object.defineProperty(t,e,{value:n})},configurable:!0})}function $b(t){return Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t))}function ne(t,e,r){Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Sn(t){let e=Object.getOwnPropertyDescriptor(t,\"shape\");return e?.get?e.get.raw:e?.value}function st(t){return Sn(t._zod.def)??t._zod.def.shape}function wm(t,e,r){Object.defineProperty(t,e,{get(){let i=r();return ne(this,e,i),i},enumerable:!0,configurable:!0})}function Sm(t,e,r){e in t?ne(t,e,r):t[e]=r}function Bt(t,e,r,i){let n=st(e);for(let o of r){let s=Object.getOwnPropertyDescriptor(n,o);s.enumerable&&(s.get?wm(t,o,()=>{let a=e._zod.def.shape[o];return i?i(a,o):a}):Sm(t,o,i?i(s.value,o):s.value))}}function Eb(t,e){for(let r of Reflect.ownKeys(e)){let i=Object.getOwnPropertyDescriptor(e,r);i.enumerable&&(i.get?wm(t,r,()=>e[r]):Sm(t,r,i.value))}}function Ce(...t){let e={};for(let r of t){let i=Object.getOwnPropertyDescriptors(r);Object.assign(e,i)}return Object.defineProperties({},e)}function Tb(t){return Ce(t._zod.def)}function Ab(t,e){return e?e.reduce((r,i)=>r?.[i],t):t}function Ib(t){let e=Object.keys(t),r=e.map(i=>t[i]);return Promise.all(r).then(i=>{let n={};for(let o=0;o<e.length;o++)n[e[o]]=i[o];return n})}function Pb(t=10){let e=\"abcdefghijklmnopqrstuvwxyz\",r=\"\";for(let i=0;i<t;i++)r+=e[Math.floor(Math.random()*e.length)];return r}function fe(t){return JSON.stringify(t)}function Ya(t){return t.toLowerCase().trim().replace(/[^\\w\\s-]/g,\"\").replace(/[\\s_-]+/g,\"-\").replace(/^-+|-+$/g,\"\")}var Bi=\"captureStackTrace\"in Error?Error.captureStackTrace:(...t)=>{};function Vt(t){return typeof t==\"object\"&&t!==null&&!Array.isArray(t)}var qa=wn(()=>{if(te.jitless||typeof navigator<\"u\"&&navigator?.userAgent?.includes(\"Cloudflare\"))return!1;try{let t=Function;return new t(\"\"),!0}catch{return!1}});function Ie(t){if(Vt(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!=\"function\")return!0;let r=e.prototype;return!(Vt(r)===!1||Object.prototype.hasOwnProperty.call(r,\"isPrototypeOf\")===!1)}function yr(t){return Ie(t)?{...t}:Array.isArray(t)?[...t]:t instanceof Map?new Map(t):t instanceof Set?new Set(t):t}function Ob(t){let e=0;for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&e++;return e}var Nb=t=>{let e=typeof t;switch(e){case\"undefined\":return\"undefined\";case\"string\":return\"string\";case\"number\":return Number.isNaN(t)?\"nan\":\"number\";case\"boolean\":return\"boolean\";case\"function\":return\"function\";case\"bigint\":return\"bigint\";case\"symbol\":return\"symbol\";case\"object\":return Array.isArray(t)?\"array\":t===null?\"null\":t.then&&typeof t.then==\"function\"&&t.catch&&typeof t.catch==\"function\"?\"promise\":typeof Map<\"u\"&&t instanceof Map?\"map\":typeof Set<\"u\"&&t instanceof Set?\"set\":typeof Date<\"u\"&&t instanceof Date?\"date\":typeof File<\"u\"&&t instanceof File?\"file\":\"object\";default:throw new Error(`Unknown data type: ${e}`)}},vr=new Set([\"string\",\"number\",\"symbol\"]),Qa=new Set([\"string\",\"number\",\"bigint\",\"boolean\",\"symbol\",\"undefined\"]);function Pe(t){return t.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\")}function B(t,e,r){let i=new t._zod.constr(e??t._zod.def);return(!e||r?.parent)&&(i._zod.parent=t),i}function x(t){let e=t;if(!e)return{};if(typeof e==\"string\")return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw new Error(\"Cannot specify both `message` and `error` params\");e.error=e.message}return delete e.message,typeof e.error==\"string\"?{...e,error:()=>e.error}:e}function Rb(t){let e;return new Proxy({},{get(r,i,n){return e??(e=t()),Reflect.get(e,i,n)},set(r,i,n,o){return e??(e=t()),Reflect.set(e,i,n,o)},has(r,i){return e??(e=t()),Reflect.has(e,i)},deleteProperty(r,i){return e??(e=t()),Reflect.deleteProperty(e,i)},ownKeys(r){return e??(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(r,i){return e??(e=t()),Reflect.getOwnPropertyDescriptor(e,i)},defineProperty(r,i,n){return e??(e=t()),Reflect.defineProperty(e,i,n)}})}function b(t){return typeof t==\"bigint\"?t.toString()+\"n\":typeof t==\"string\"?`\"${t}\"`:`${t}`}function el(t){return Object.keys(t).filter(e=>t[e]._zod.optin!==void 0&&t[e]._zod.optout===\"optional\")}var br={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]},wr={int64:[BigInt(\"-9223372036854775808\"),BigInt(\"9223372036854775807\")],uint64:[BigInt(0),BigInt(\"18446744073709551615\")]};function Db(t,e){let r=t._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(\".pick() cannot be used on object schemas containing refinements\");let o={};return Bt(o,t,Vi(t,e)),B(t,Ce(r,{shape:o,checks:[]}))}function Vi(t,e){let r=st(t),i=[];for(let n of Reflect.ownKeys(e)){if(!Object.getOwnPropertyDescriptor(r,n)?.enumerable)throw new Error(`Unrecognized key: \"${String(n)}\"`);e[n]&&i.push(n)}return i}function Cb(t,e){let r=t._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(\".omit() cannot be used on object schemas containing refinements\");let o=new Set(Vi(t,e)),s={};return Bt(s,t,Reflect.ownKeys(st(t)).filter(a=>!o.has(a))),B(t,Ce(r,{shape:s,checks:[]}))}function zb(t,e){if(!Ie(e))throw new Error(\"Invalid input to extend: expected a plain object\");let r=t._zod.def.checks;if(r&&r.length>0){let n=st(t);for(let o of Reflect.ownKeys(e))if(Object.getOwnPropertyDescriptor(n,o)!==void 0)throw new Error(\"Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.\")}return B(t,Ce(t._zod.def,{shape:_m(t,e)}))}function _m(t,e){let r={};return Bt(r,t,Reflect.ownKeys(st(t))),Eb(r,e),r}function Ub(t,e){if(!Ie(e))throw new Error(\"Invalid input to safeExtend: expected a plain object\");return B(t,Ce(t._zod.def,{shape:_m(t,e)}))}function Mb(t,e){if(!e?._zod?.def)throw new Error(\"Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.\");if(t._zod.def.checks?.length)throw new Error(\".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.\");let r={};Bt(r,t,Reflect.ownKeys(st(t))),Bt(r,e,Reflect.ownKeys(st(e)));let i=Ce(t._zod.def,{shape:r,get catchall(){return e._zod.def.catchall},checks:e._zod.def.checks??[]});return B(t,i)}function Lb(t,e,r,i=\"partial\"){let o=e._zod.def.checks;if(o&&o.length>0)throw new Error(`.${i}() cannot be used on object schemas containing refinements`);let a=r?new Set(Vi(e,r)):void 0,l={};return Bt(l,e,Reflect.ownKeys(st(e)),t&&((u,c)=>a&&!a.has(c)?u:new t({type:\"optional\",innerType:u}))),B(e,Ce(e._zod.def,{shape:l,checks:[]}))}function jb(t,e,r){let i=r?new Set(Vi(e,r)):void 0,n={};return Bt(n,e,Reflect.ownKeys(st(e)),(o,s)=>i&&!i.has(s)?o:new t({type:\"nonoptional\",innerType:o})),B(e,Ce(e._zod.def,{shape:n}))}function pe(t,e=0){if(t.aborted===!0)return!0;for(let r=e;r<t.issues.length;r++)if(t.issues[r]?.continue!==!0)return!0;return!1}function tl(t,e=0){if(t.aborted===!0)return!0;for(let r=e;r<t.issues.length;r++)if(t.issues[r]?.continue===!1)return!0;return!1}function be(t,e){return e.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(t),r})}function yn(t){return typeof t==\"string\"?t:t?.message}function _n(t){let e=[];for(let r of t??[]){let i=r._zod.def;if(!/_(length|size)$|_equals$/.test(i.check))break;let n=i.maximum??i.length??i.size;n>=0&&e.push([n,r])}return e}function Sr(t,e,r){var i;for(let n=e;n<t.length;n++)(i=t[n]).schema??(i.schema=r)}function we(t,e,r){var i;let n=t.inst?._zod?.traits;n?.has(\"$ZodType\")&&(n.has(\"$ZodCheck\")?(i=t).schema??(i.schema=t.inst):t.schema=t.inst);let o=t.schema!==t.inst?t.schema?._zod.def?.error:void 0,s=t.message?t.message:yn(t.inst?._zod.def?.error?.(t))??yn(o?.(t))??yn(e?.error?.(t))??yn(r.customError?.(t))??yn(r.localeError?.(t))??\"Invalid input\",a={};for(let l of Object.keys(t))l===\"inst\"||l===\"schema\"||l===\"continue\"||l===\"input\"||l===\"__proto__\"||(a[l]=t[l]);return a.path??(a.path=[]),a.message=s,e?.reportInput&&(a.input=t.input),a}function _r(t){return t instanceof Set?\"set\":t instanceof Map?\"map\":t instanceof File?\"file\":\"unknown\"}var Fb=/[\\uD800-\\uDBFF]/;function Zt(t){let e=t.length;if(!Fb.test(t))return e;let r=e;for(let i=0;i<e-1;i++)(t.charCodeAt(i)&64512)===55296&&(t.charCodeAt(i+1)&64512)===56320&&(r--,i++);return r}function xr(t){return Array.isArray(t)?\"array\":typeof t==\"string\"?\"string\":\"unknown\"}function w(t){let e=typeof t;switch(e){case\"number\":return Number.isNaN(t)?\"nan\":\"number\";case\"object\":{if(t===null)return\"null\";if(Array.isArray(t))return\"array\";let r=t;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&\"constructor\"in r&&r.constructor)return r.constructor.name}}return e}function xn(...t){let[e,r,i]=t;return typeof e==\"string\"?{message:e,code:\"custom\",input:r,inst:i}:{...e}}function Bb(t){return Object.entries(t).filter(([e,r])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function xm(t){let e=atob(t),r=new Uint8Array(e.length);for(let i=0;i<e.length;i++)r[i]=e.charCodeAt(i);return r}function km(t){let e=\"\";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}function Vb(t){let e=t.replace(/-/g,\"+\").replace(/_/g,\"/\"),r=\"=\".repeat((4-e.length%4)%4);return xm(e+r)}function Zb(t){return km(t).replace(/\\+/g,\"-\").replace(/\\//g,\"_\").replace(/=/g,\"\")}function Wb(t){let e=t.replace(/^0x/,\"\");if(e.length%2!==0)throw new Error(\"Invalid hex string length\");let r=new Uint8Array(e.length/2);for(let i=0;i<e.length;i+=2)r[i/2]=Number.parseInt(e.slice(i,i+2),16);return r}function Gb(t){return Array.from(t).map(e=>e.toString(16).padStart(2,\"0\")).join(\"\")}var Ja=class{constructor(...e){}};function nl(t,e){for(let r in e){let i=Object.getOwnPropertyDescriptor(e,r);i.get?Object.defineProperty(t,r,{...i,enumerable:!1}):Hb(t,r,i.value)}}function vt(t,e,r,i=!0){return Object.defineProperty(t,e,{configurable:!0,writable:!0,enumerable:i,value:r}),r}function kr(t,e,r){return vt(t,e,r,!1)}function Kb(t,e){for(let r in t){let i=t[r];Object.defineProperty(e,r,{configurable:!0,enumerable:!0,get(){return vt(this,r,i(this))},set(n){vt(this,r,n)}})}return e}function Hb(t,e,r){Object.defineProperty(t,e,{configurable:!0,get(){return this==null?r:vt(this,e,r.bind(this))},set(i){vt(this,e,i)}})}function Jb(t,e){let r=Object.getPrototypeOf(t);return e in r?void 0:r}var Ka,yt=!1,Xb={configurable:!0,get(){yt=!0}};function z(t,e,r){let i=Object.getPrototypeOf(t._zod);if(e in i&&Ka!==t._zod){Ka=void 0;return}Ka=t._zod,Object.defineProperty(i,e,{configurable:!0,get(){Object.defineProperty(this,e,Xb);let n=yt;yt=!1;try{let o=r(this);return yt?delete this[e]:Object.defineProperty(this,e,{configurable:!0,writable:!0,value:o}),yt=yt||n,o}catch(o){throw delete this[e],yt=yt||n,o}},set(n){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:n})}})}function Yb(t,e,r,i){let n=Jb(t,e);n&&Object.defineProperty(n,e,{configurable:!0,get(){let o={configurable:!0,writable:!0,enumerable:i,value:void 0};return Object.defineProperty(this,e,o),o.value=r(this),Object.defineProperty(this,e,o),o.value},set(o){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:i,value:o})}})}var Zi=\"~constantCatch\";function rl(t){let e=()=>t;return e[Zi]=!0,e}var $m,ol=Object.freeze({status:\"aborted\"}),il={value:void 0,enumerable:!1},Em=\"captureStackTrace\"in Error?Error:null;function qb(t){let e=Em;if(e){let r=e.stackTraceLimit;if(typeof r==\"number\"){try{e.stackTraceLimit=0}catch{return Em=null,new t}try{return new t}finally{e.stackTraceLimit=r}}}return new t}function h(t,e,r,i){let n={};function o(f){this.def=f,this.constr=d,this.traits=new Set}o.prototype=n;let s=r,a=s&&new WeakSet;function l(f,p){if(f._zod){if(f._zod.traits.has(t))return}else{il.value=new o(p);try{Object.defineProperty(f,\"_zod\",il)}finally{il.value=void 0}}if(f._zod.traits.add(t),e(f,p),a){let y=Object.getPrototypeOf(f),_=f._zod.constr.prototype,k=y;for(;k&&k!==_;)k=Object.getPrototypeOf(k);let S=k??y;a.has(S)||(a.add(S),nl(S,s))}let m=d.prototype;for(let y in m)Object.prototype.hasOwnProperty.call(m,y)&&(y in f||(f[y]=m[y].bind(f)))}let u=i?.Parent??Object;class c extends u{}Object.defineProperty(c,\"name\",{value:t});function d(f){let p=i?.Parent?qb(c):this;l(p,f);let m=p._zod.deferred;if(m){for(let _ of m)_();p._zod.deferred=void 0}let y=globalThis.__zod_globalConfig?.postProcessor;return y&&y(p),p}return Object.defineProperty(d,\"init\",{value:l}),Object.defineProperty(d,Symbol.hasInstance,{value:f=>i?.Parent&&f instanceof i.Parent?!0:f?._zod?.traits?.has(t)}),Object.defineProperty(d,\"name\",{value:t}),d}var sl=Symbol(\"zod_brand\"),Se=class extends Error{constructor(){super(\"Encountered Promise during synchronous parse. Use .parseAsync() instead.\")}},bt=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=\"ZodEncodeError\"}};($m=globalThis).__zod_globalConfig??($m.__zod_globalConfig={});var te=globalThis.__zod_globalConfig;function q(t){return t&&Object.assign(te,t),te}function Qb(){let t=this._zod;return t.message??(t.message=JSON.stringify(t.def,bn,2)),t.message}function ew(t){this._zod.message=t}var tw={get:Qb,set:ew,enumerable:!0,configurable:!0},ll={value:void 0,enumerable:!1},Tm=new WeakSet([Object.prototype,Error.prototype]),Am=(t,e)=>{t.name=\"$ZodError\",ll.value=e,Object.defineProperty(t,\"issues\",ll),ll.value=void 0,Object.defineProperty(t,\"message\",tw);let r=Object.getPrototypeOf(t);Tm.has(r)||(Tm.add(r),Object.defineProperty(r,\"toString\",{configurable:!0,enumerable:!1,get(){let i=()=>this.message;return Object.defineProperty(this,\"toString\",{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,\"toString\",{value:i,configurable:!0,writable:!0})}}))},ul=h(\"$ZodError\",Am),_e=h(\"$ZodError\",Am,void 0,{Parent:Error});function nw(t,e,r){return Object.prototype.hasOwnProperty.call(t,e)||(e===\"__proto__\"?Object.defineProperty(t,e,{value:r(),writable:!0,enumerable:!0,configurable:!0}):t[e]=r()),t[e]}function $r(t,e=r=>r.message){let r={},i=[];for(let n of t.issues)n.path.length>0?nw(r,n.path[0],()=>[]).push(e(n)):i.push(e(n));return{formErrors:i,fieldErrors:r}}function Er(t,e=r=>r.message){let r={_errors:[]},i=(n,o=[])=>{for(let s of n.issues)if(s.code===\"invalid_union\"&&s.errors.length)s.errors.map(a=>i({issues:a},[...o,...s.path]));else if(s.code===\"invalid_key\")i({issues:s.issues},[...o,...s.path]);else if(s.code===\"invalid_element\")i({issues:s.issues},[...o,...s.path]);else{let a=[...o,...s.path];if(a.length===0)r._errors.push(e(s));else{let l=r,u=0;for(;u<a.length;){let c=a[u],d=u===a.length-1;if(c===\"_errors\"){d&&l._errors.push(e(s)),u++;continue}Object.prototype.hasOwnProperty.call(l,c)||Object.defineProperty(l,c,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let f=l[c];d&&f._errors.push(e(s)),l=f,u++}}}};return i(t),r}function cl(t,e=r=>r.message){let r={errors:[]},i=(n,o=[])=>{var s;for(let a of n.issues)if(a.code===\"invalid_union\"&&a.errors.length)a.errors.map(l=>i({issues:l},[...o,...a.path]));else if(a.code===\"invalid_key\")i({issues:a.issues},[...o,...a.path]);else if(a.code===\"invalid_element\")i({issues:a.issues},[...o,...a.path]);else{let l=[...o,...a.path];if(l.length===0){r.errors.push(e(a));continue}let u=r,c=0;for(;c<l.length;){let d=l[c],f=c===l.length-1;typeof d==\"string\"?(u.properties??(u.properties={}),Object.prototype.hasOwnProperty.call(u.properties,d)||Object.defineProperty(u.properties,d,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0}),u=u.properties[d]):(u.items??(u.items=[]),(s=u.items)[d]??(s[d]={errors:[]}),u=u.items[d]),f&&u.errors.push(e(a)),c++}}};return i(t),r}function Im(t){let e=[],r=t.map(i=>typeof i==\"object\"?i.key:i);for(let i of r)typeof i==\"number\"?e.push(`[${i}]`):typeof i==\"symbol\"?e.push(`[${JSON.stringify(String(i))}]`):/[^\\w$]/.test(i)?e.push(`[${JSON.stringify(i)}]`):(e.length&&e.push(\".\"),e.push(i));return e.join(\"\")}function dl(t){let e=[],r=[...t.issues].sort((i,n)=>(i.path??[]).length-(n.path??[]).length);for(let i of r)e.push(`\\u2716 ${i.message}`),i.path?.length&&e.push(`  \\u2192 at ${Im(i.path)}`);return e.join(`\n`)}function Wi(t,e){return{callee:e?.callee??t,Err:e?.Err}}var kn=t=>{let e=(r,i,n,o)=>{let s=n?{...n,async:!1}:{async:!1},a=r._zod.run({value:i,issues:[]},s);if(a instanceof Promise)throw new Se;if(a.issues.length){let l=new(o?.Err??t)(a.issues.map(u=>we(u,s,q())));throw Bi(l,o?.callee??e),l}return a.value};return e},Gi=kn(_e),$n=t=>{let e=async(r,i,n,o)=>{let s=n?{...n,async:!0}:{async:!0},a=r._zod.run({value:i,issues:[]},s);if(a instanceof Promise&&(a=await a),a.issues.length){let l=new(o?.Err??t)(a.issues.map(u=>we(u,s,q())));throw Bi(l,o?.callee??e),l}return a.value};return e},Ki=$n(_e),En=t=>(e,r,i)=>{let n=i?{...i,async:!1}:{async:!1},o=e._zod.run({value:r,issues:[]},n);if(o instanceof Promise)throw new Se;return o.issues.length?Pm(t,o.issues,n):{success:!0,data:o.value}},iw=En(_e);function Pm(t,e,r){let i;return{success:!1,get error(){return i||(i=new t(e.map(n=>we(n,r,q()))),e=void 0,r=void 0),i},set error(n){i=n,e=void 0,r=void 0}}}var Tn=t=>async(e,r,i)=>{let n=i?{...i,async:!0}:{async:!0},o=e._zod.run({value:r,issues:[]},n);return o instanceof Promise&&(o=await o),o.issues.length?Pm(t,o.issues,n):{success:!0,data:o.value}},ow=Tn(_e),sw=Symbol.for(\"zod.compile.invalid\"),aw=Symbol.for(\"zod.compile.fallback\"),Tr=((t,e,r)=>{let i=t._zod.bag.validator;if(i!==void 0){if(i(e)!==sw)return!0;if(i.definite===!0&&r===void 0)return!1}return lw(t,e,r)});function lw(t,e,r){let i=r?{...r,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},n=t._zod.bag.fallbackRun,o;if(n?(i[aw]=!0,o=n({value:e,issues:[]},i)):o=t._zod.run({value:e,issues:[]},i),o instanceof Promise)throw new Se;return o.issues.length===0}var Ar=async(t,e,r)=>{let i=r?{...r,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},n=t._zod.run({value:e,issues:[]},i);return n instanceof Promise&&(n=await n),n.issues.length===0},Hi=t=>{let e=kn(t),r=(i,n,o,s)=>{let a=o?{...o,direction:\"backward\"}:{direction:\"backward\"};return e(i,n,a,Wi(r,s))};return r},uw=Hi(_e),Ji=t=>{let e=kn(t),r=(i,n,o,s)=>e(i,n,o,Wi(r,s));return r},cw=Ji(_e),Xi=t=>{let e=$n(t),r=async(i,n,o,s)=>{let a=o?{...o,direction:\"backward\"}:{direction:\"backward\"};return await e(i,n,a,Wi(r,s))};return r},dw=Xi(_e),Yi=t=>{let e=$n(t),r=async(i,n,o,s)=>await e(i,n,o,Wi(r,s));return r},fw=Yi(_e),qi=t=>(e,r,i)=>{let n=i?{...i,direction:\"backward\"}:{direction:\"backward\"};return En(t)(e,r,n)},pw=qi(_e),Qi=t=>(e,r,i)=>En(t)(e,r,i),mw=Qi(_e),eo=t=>async(e,r,i)=>{let n=i?{...i,direction:\"backward\"}:{direction:\"backward\"};return Tn(t)(e,r,n)},hw=eo(_e),to=t=>async(e,r,i)=>Tn(t)(e,r,i),gw=to(_e);var Oe={};nt(Oe,{anyString:()=>Ml,base64:()=>Il,base64url:()=>Pl,bigint:()=>jl,boolean:()=>Fl,browserEmail:()=>kw,cidrv4:()=>Tl,cidrv6:()=>Al,creditCard:()=>no,cuid:()=>pl,cuid2:()=>ml,currencyCode:()=>Dl,date:()=>Cl,datetime:()=>Ul,domain:()=>Nl,duration:()=>wl,e164:()=>Rl,email:()=>_l,emoji:()=>xl,extendedDuration:()=>yw,guid:()=>Sl,hex:()=>Gl,hostname:()=>Ol,html5Email:()=>Sw,httpProtocol:()=>Ir,iban:()=>ro,idnEmail:()=>xw,integer:()=>Pr,ipv4:()=>kl,ipv6:()=>$l,ksuid:()=>yl,lowercase:()=>Zl,mac:()=>El,md5_base64:()=>Aw,md5_base64url:()=>Iw,md5_hex:()=>Tw,nanoid:()=>vl,nanoidOfLength:()=>bl,null:()=>Bl,number:()=>lt,rfc5322Email:()=>_w,sha1_base64:()=>Ow,sha1_base64url:()=>Nw,sha1_hex:()=>Pw,sha256_base64:()=>Dw,sha256_base64url:()=>Cw,sha256_hex:()=>Rw,sha384_base64:()=>Uw,sha384_base64url:()=>Mw,sha384_hex:()=>zw,sha512_base64:()=>jw,sha512_base64url:()=>Fw,sha512_hex:()=>Lw,string:()=>Ll,time:()=>zl,ulid:()=>hl,undefined:()=>Vl,unicodeEmail:()=>Om,uppercase:()=>Wl,uuid:()=>Wt,uuid4:()=>vw,uuid6:()=>bw,uuid7:()=>ww,xid:()=>gl});var pl=/^[cC][0-9a-z]{6,}$/,ml=/^[0-9a-z]+$/,hl=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,gl=/^[0-9a-vA-V]{20}$/,yl=/^[A-Za-z0-9]{27}$/,vl=/^[a-zA-Z0-9_-]{21}$/;function bl(t){return new RegExp(`^[a-zA-Z0-9_-]{${t}}$`)}var wl=/^P(?:(\\d+W)|(?!.*W)(?=\\d|T\\d)(\\d+Y)?(\\d+M)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+([.,]\\d+)?S)?)?)$/,yw=/^[-+]?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)?)??$/,Sl=/^([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})$/,Wt=t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[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)$/,vw=Wt(4),bw=Wt(6),ww=Wt(7),_l=/^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$/,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])?)*$/,_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,}))$/,Om=/^[^\\s@\"]{1,64}@[^\\s@]{1,255}$/u,xw=Om,kw=/^[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]*[\\\\p{Extended_Pictographic}\\\\p{Regional_Indicator}\\\\u20E3])[\\\\p{Extended_Pictographic}\\\\p{Emoji_Component}]+$\";function xl(){return new RegExp($w,\"u\")}var kl=/^(?:(?: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])$/,$l=/^(([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}|:))$/,El=t=>{let e=Pe(t??\":\");return new RegExp(`^(?:[0-9A-F]{2}${e}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${e}){5}[0-9a-f]{2}$`)},Tl=/^((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])$/,Al=/^(([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])$/,Il=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Pl=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,Ol=/^(?=.{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])?)*\\.?$/,Nl=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,63}$/,Ir=/^https?$/,Rl=/^\\+[1-9]\\d{6,14}$/,no=/^\\d(?:[ -]?\\d){11,18}$/,Dl=/^(?:AED|AFN|ALL|AMD|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLE|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VED|VES|VND|VUV|WST|XAD|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XCG|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWG)$/,ro=/^[A-Z]{2}(?!00|01|99)\\d{2}[A-Z0-9]{11,30}$/,Nm=\"(?:(?:\\\\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 Ew(t){return new RegExp(`^${t}$`)}var Cl=Ew(Nm);function fl(t){let e=\"(?:[01]\\\\d|2[0-3]):[0-5]\\\\d\";return typeof t.precision==\"number\"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\\\d`:`${e}:[0-5]\\\\d\\\\.\\\\d{${t.precision}}`:t.seconds?`${e}:[0-5]\\\\d(?:\\\\.\\\\d+)?`:`${e}(?::[0-5]\\\\d(?:\\\\.\\\\d+)?)?`}function zl(t){return new RegExp(`^${fl(t)}$`)}function Ul(t){let e=[\"Z\"];t.offset&&e.push(\"([+-](?:[01]\\\\d|2[0-3]):[0-5]\\\\d)\");let r=`${fl({precision:t.precision,seconds:!0})}(?:${e.join(\"|\")})`,i=t.local?`${r}|${fl({precision:t.precision})}`:r;return new RegExp(`^${Nm}T(?:${i})$`)}var Ml=/^[\\s\\S]{0,}$/,Ll=t=>{let e=t?`[\\\\s\\\\S]{${t?.minimum??0},${t?.maximum??\"\"}}`:\"[\\\\s\\\\S]*\";return new RegExp(`^${e}$`)},jl=/^-?\\d+n?$/,Pr=/^-?\\d+$/,lt=/^-?\\d+(?:\\.\\d+)?$/,Fl=/^(?:true|false)$/i,Bl=/^null$/i;var Vl=/^undefined$/i;var Zl=/^[^A-Z]*$/,Wl=/^[^a-z]*$/,Gl=/^[0-9a-fA-F]*$/;function Or(t,e){return new RegExp(`^[A-Za-z0-9+/]{${t}}${e}$`)}function Nr(t){return new RegExp(`^[A-Za-z0-9_-]{${t}}$`)}var Tw=/^[0-9a-fA-F]{32}$/,Aw=Or(22,\"==\"),Iw=Nr(22),Pw=/^[0-9a-fA-F]{40}$/,Ow=Or(27,\"=\"),Nw=Nr(27),Rw=/^[0-9a-fA-F]{64}$/,Dw=Or(43,\"=\"),Cw=Nr(43),zw=/^[0-9a-fA-F]{96}$/,Uw=Or(64,\"\"),Mw=Nr(64),Lw=/^[0-9a-fA-F]{128}$/,jw=Or(86,\"==\"),Fw=Nr(86);var H=h(\"$ZodCheck\",(t,e)=>{var r;t._zod??(t._zod={}),t._zod.def=e,(r=t._zod).onattach??(r.onattach=[])}),Kl=t=>{let e=t.value;return!Fi(e)&&e.size!==void 0},Hl=t=>{let e=t.value;return!Fi(e)&&e.length!==void 0},io={number:\"number\",bigint:\"bigint\",object:\"date\"},so=h(\"$ZodCheckLessThan\",(t,e)=>{H.init(t,e);let r=io[typeof e.value];t._zod.check=i=>{(e.inclusive?i.value<=e.value:i.value<e.value)||i.issues.push({origin:io[typeof i.value]??r,code:\"too_big\",maximum:typeof e.value==\"object\"?e.value.getTime():e.value,input:i.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),ao=h(\"$ZodCheckGreaterThan\",(t,e)=>{H.init(t,e);let r=io[typeof e.value];t._zod.check=i=>{(e.inclusive?i.value>=e.value:i.value>e.value)||i.issues.push({origin:io[typeof i.value]??r,code:\"too_small\",minimum:typeof e.value==\"object\"?e.value.getTime():e.value,input:i.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),Jl=h(\"$ZodCheckMultipleOf\",(t,e)=>{H.init(t,e),t._zod.check=r=>{if(typeof r.value!=typeof e.value)throw new Error(\"Cannot mix number and bigint in multiple_of check.\");(typeof r.value==\"bigint\"?e.value!==BigInt(0)&&r.value%e.value===BigInt(0):gr(r.value,e.value)===0)||r.issues.push({origin:typeof r.value,code:\"not_multiple_of\",divisor:e.value,input:r.value,inst:t,continue:!e.abort})}}),Xl=h(\"$ZodCheckNumberFormat\",(t,e)=>{H.init(t,e),e.format=e.format||\"float64\";let r=e.format?.includes(\"int\"),i=r?\"int\":\"number\",[n,o]=br[e.format];t._zod.check=s=>{let a=s.value;if(r){if(!Number.isInteger(a)){s.issues.push({expected:i,format:e.format,code:\"invalid_type\",continue:!1,input:a,inst:t});return}if(!Number.isSafeInteger(a)){a>0?s.issues.push({input:a,code:\"too_big\",maximum:Number.MAX_SAFE_INTEGER,note:\"Integers must be within the safe integer range.\",inst:t,origin:i,inclusive:!0,continue:!e.abort}):s.issues.push({input:a,code:\"too_small\",minimum:Number.MIN_SAFE_INTEGER,note:\"Integers must be within the safe integer range.\",inst:t,origin:i,inclusive:!0,continue:!e.abort});return}}a<n&&s.issues.push({origin:\"number\",input:a,code:\"too_small\",minimum:n,inclusive:!0,inst:t,continue:!e.abort}),a>o&&s.issues.push({origin:\"number\",input:a,code:\"too_big\",maximum:o,inclusive:!0,inst:t,continue:!e.abort})}}),Yl=h(\"$ZodCheckBigIntFormat\",(t,e)=>{H.init(t,e);let[r,i]=wr[e.format];t._zod.check=n=>{let o=n.value;o<r&&n.issues.push({origin:\"bigint\",input:o,code:\"too_small\",minimum:r,inclusive:!0,inst:t,continue:!e.abort}),o>i&&n.issues.push({origin:\"bigint\",input:o,code:\"too_big\",maximum:i,inclusive:!0,inst:t,continue:!e.abort})}}),ql=h(\"$ZodCheckMaxSize\",(t,e)=>{var r;H.init(t,e),(r=t._zod.def).when??(r.when=Kl),t._zod.check=i=>{let n=i.value;n.size<=e.maximum||i.issues.push({origin:_r(n),code:\"too_big\",maximum:e.maximum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),Ql=h(\"$ZodCheckMinSize\",(t,e)=>{var r;H.init(t,e),(r=t._zod.def).when??(r.when=Kl),t._zod.check=i=>{let n=i.value;n.size>=e.minimum||i.issues.push({origin:_r(n),code:\"too_small\",minimum:e.minimum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),eu=h(\"$ZodCheckSizeEquals\",(t,e)=>{var r;H.init(t,e),(r=t._zod.def).when??(r.when=Kl),t._zod.check=i=>{let n=i.value,o=n.size;if(o===e.size)return;let s=o>e.size;i.issues.push({origin:_r(n),...s?{code:\"too_big\",maximum:e.size}:{code:\"too_small\",minimum:e.size},inclusive:!0,exact:!0,input:i.value,inst:t,continue:!e.abort})}}),tu=h(\"$ZodCheckMaxLength\",(t,e)=>{var r;H.init(t,e),(r=t._zod.def).when??(r.when=Hl),t._zod.check=i=>{let n=i.value,o=n.length;if((typeof n==\"string\"&&o>e.maximum?Zt(n):o)<=e.maximum)return;let a=xr(n);i.issues.push({origin:a,code:\"too_big\",maximum:e.maximum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),nu=h(\"$ZodCheckMinLength\",(t,e)=>{var r;H.init(t,e),(r=t._zod.def).when??(r.when=Hl),t._zod.check=i=>{let n=i.value,o=n.length;if((typeof n==\"string\"&&o>=e.minimum&&o<e.minimum*2?Zt(n):o)>=e.minimum)return;let a=xr(n);i.issues.push({origin:a,code:\"too_small\",minimum:e.minimum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),ru=h(\"$ZodCheckLengthEquals\",(t,e)=>{var r;H.init(t,e),(r=t._zod.def).when??(r.when=Hl),t._zod.check=i=>{let n=i.value,o=n.length,s=typeof n==\"string\"&&o>=e.length&&o<=e.length*2?Zt(n):o;if(s===e.length)return;let a=xr(n),l=s>e.length;i.issues.push({origin:a,...l?{code:\"too_big\",maximum:e.length}:{code:\"too_small\",minimum:e.length},inclusive:!0,exact:!0,input:i.value,inst:t,continue:!e.abort})}}),An=h(\"$ZodCheckStringFormat\",(t,e)=>{var r,i;H.init(t,e),e.pattern?(r=t._zod).check??(r.check=n=>{e.pattern.lastIndex=0,!e.pattern.test(n.value)&&n.issues.push({origin:\"string\",code:\"invalid_format\",format:e.format,input:n.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:t,continue:!e.abort})}):(i=t._zod).check??(i.check=()=>{})}),iu=h(\"$ZodCheckRegex\",(t,e)=>{An.init(t,e),t._zod.check=r=>{e.pattern.lastIndex=0,!e.pattern.test(r.value)&&r.issues.push({origin:\"string\",code:\"invalid_format\",format:\"regex\",input:r.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),ou=h(\"$ZodCheckLowerCase\",(t,e)=>{e.pattern??(e.pattern=Zl),An.init(t,e)}),su=h(\"$ZodCheckUpperCase\",(t,e)=>{e.pattern??(e.pattern=Wl),An.init(t,e)}),au=h(\"$ZodCheckIncludes\",(t,e)=>{H.init(t,e);let r=Pe(e.includes),i=new RegExp(typeof e.position==\"number\"?`^.{${e.position},}${r}`:r);e.pattern=i,t._zod.check=n=>{n.value.includes(e.includes,e.position)||n.issues.push({origin:\"string\",code:\"invalid_format\",format:\"includes\",includes:e.includes,input:n.value,inst:t,continue:!e.abort})}}),lu=h(\"$ZodCheckStartsWith\",(t,e)=>{H.init(t,e);let r=new RegExp(`^${Pe(e.prefix)}.*`);e.pattern??(e.pattern=r),t._zod.check=i=>{i.value.startsWith(e.prefix)||i.issues.push({origin:\"string\",code:\"invalid_format\",format:\"starts_with\",prefix:e.prefix,input:i.value,inst:t,continue:!e.abort})}}),uu=h(\"$ZodCheckEndsWith\",(t,e)=>{H.init(t,e);let r=new RegExp(`.*${Pe(e.suffix)}$`);e.pattern??(e.pattern=r),t._zod.check=i=>{i.value.endsWith(e.suffix)||i.issues.push({origin:\"string\",code:\"invalid_format\",format:\"ends_with\",suffix:e.suffix,input:i.value,inst:t,continue:!e.abort})}});function oo(t,e,r){t.issues.length&&e.issues.push(...be(r,t.issues))}var cu=h(\"$ZodCheckProperty\",(t,e)=>{H.init(t,e),t._zod.check=r=>{let i=e.schema._zod.run({value:r.value[e.property],issues:[]},{});if(i instanceof Promise)return i.then(n=>oo(n,r,e.property));oo(i,r,e.property)}}),du=h(\"$ZodCheckProperties\",(t,e)=>{H.init(t,e),kr(t,Symbol.iterator,function*(){yield t});let r;t._zod.check=i=>{if(i.value==null){i.issues.push({expected:\"object\",code:\"invalid_type\",input:i.value,inst:t});return}r??(r=Reflect.ownKeys(e.shape).map(s=>[s,e.shape[s]]));let n=i.value,o;for(let[s,a]of r){let l=a._zod.run({value:n[s],issues:[]},{});l instanceof Promise?(o??(o=[]),o.push(l.then(u=>oo(u,i,s)))):oo(l,i,s)}if(o)return Promise.all(o).then(()=>{})}}),fu=h(\"$ZodCheckMimeType\",(t,e)=>{H.init(t,e);let r=new Set(e.mime);t._zod.check=i=>{r.has(i.value.type)||i.issues.push({code:\"invalid_value\",values:e.mime,input:i.value.type,inst:t,continue:!e.abort})}}),pu=h(\"$ZodCheckOverwrite\",(t,e)=>{H.init(t,e),t._zod.check=r=>{r.value=e.tx(r.value)}});var Gt=class{constructor(e=[],r={}){this.content=[],this.indent=0,this.args=e,this.closed=r}indented(e){this.indent+=1;try{e(this)}finally{this.indent-=1}}write(e){if(typeof e==\"function\"){e(this,{execution:\"sync\"}),e(this,{execution:\"async\"});return}let i=e.split(`\n`).filter(s=>s),n=Math.min(...i.map(s=>s.length-s.trimStart().length)),o=i.map(s=>s.slice(n)).map(s=>\" \".repeat(this.indent*2)+s);for(let s of o)this.content.push(s)}compile(){let e=Function,r=this?.content??[\"\"];return new e(...Object.keys(this.closed),`return function (${this.args.join(\", \")}) {\n${r.join(`\n`)}\n};`)(...Object.values(this.closed))}};var mu={major:4,minor:6,patch:7};var R=h(\"$ZodType\",(t,e)=>{var r;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=mu;let i=t._zod.def.checks,n=t._zod.traits.has(\"$ZodCheck\")?[t,...i??[]]:i?.length?[...i]:[];for(let o of n)for(let s of o._zod.onattach)s(t);if(n.length===0)(r=t._zod).deferred??(r.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let o=(a,l,u)=>{if(a.memo)return a;let c=pe(a),d;for(let f of l){if(f._zod.def.when){if(tl(a)||!f._zod.def.when(a))continue}else if(c)continue;let p=a.issues.length,m=f._zod.check(a);if(m instanceof Promise&&u?.async===!1)throw new Se;if(d||m instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await m,a.issues.length!==p&&(Sr(a.issues,p,t),c||(c=pe(a,p)))});else{if(a.issues.length===p)continue;Sr(a.issues,p,t),c||(c=pe(a,p))}}return d?d.then(()=>a):a},s=(a,l,u)=>{if(pe(a))return a.aborted=!0,a;let c=o(l,n,u);if(c instanceof Promise){if(u.async===!1)throw new Se;return c.then(d=>t._zod.parse(d,u))}return t._zod.parse(c,u)};t._zod.run=(a,l)=>{if(l.skipChecks)return t._zod.parse(a,l);if(l.direction===\"backward\"){let c=t._zod.parse({value:a.value,issues:[]},{...l,skipChecks:!0});return c instanceof Promise?c.then(d=>s(d,a,l)):s(c,a,l)}let u=t._zod.parse(a,l);if(u instanceof Promise){if(l.async===!1)throw new Se;return u.then(c=>o(c,n,l))}return o(u,n,l)}}},{get\"~standard\"(){return kr(this,\"~standard\",po(this))},set\"~standard\"(t){vt(this,\"~standard\",t)}}),Jm=(t,e)=>t.issues.length?{issues:t.issues.map(r=>we(r,e,q()))}:{value:t.value};async function Bw(t,e){let r={async:!0};return Jm(await t._zod.run({value:e,issues:[]},r),r)}function po(t){return{validate:e=>{let r={async:!1};try{let i=t._zod.run({value:e,issues:[]},r);if(!(i instanceof Promise))return Jm(i,r)}catch{}return Bw(t,e)},vendor:\"zod\",version:1}}var Kt=h(\"$ZodString\",(t,e)=>{R.init(t,e),t._zod.pattern=e.pattern??Ml,t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=String(r.value)}catch{}return typeof r.value==\"string\"||r.issues.push({expected:\"string\",code:\"invalid_type\",input:r.value,inst:t}),r}}),V=h(\"$ZodStringFormat\",(t,e)=>{An.init(t,e),Kt.init(t,e)}),gu=h(\"$ZodGUID\",(t,e)=>{e.pattern??(e.pattern=Sl),V.init(t,e)}),yu=h(\"$ZodUUID\",(t,e)=>{if(e.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(i===void 0)throw new Error(`Invalid UUID version: \"${e.version}\"`);e.pattern??(e.pattern=Wt(i))}else e.pattern??(e.pattern=Wt());V.init(t,e)}),vu=h(\"$ZodEmail\",(t,e)=>{e.pattern??(e.pattern=_l),V.init(t,e)}),bu=1,Rr=2;function wu(t){try{return typeof URL<\"u\"&&typeof URL.canParse==\"function\"?URL.canParse(t):(new URL(t),!0)}catch{return!1}}function mo(t,e){return!(\"normalize\"in e)&&!(\"hostname\"in e)&&!(\"protocol\"in e)?wu(t)||Rr:Xm(t,e)}function Xm(t,e){if(!e.normalize&&e.protocol?.source===Ir.source&&!/^https?:\\/\\//i.test(t))return bu;try{if(typeof URL<\"u\"){let r=URL;if(typeof r.parse==\"function\")return r.parse(t)??Rr}return new URL(t)}catch{return Rr}}var Vw=/[\\t\\n\\r]/g;function Dr(t){return t.replace(Vw,\"\")}function ho(t,e){return e.lastIndex=0,e.test(t.hostname)}function go(t,e){return e.lastIndex=0,e.test(t.protocol.endsWith(\":\")?t.protocol.slice(0,-1):t.protocol)}var Su=h(\"$ZodURL\",(t,e)=>{V.init(t,e),t._zod.check=r=>{try{let i=r.value.trim(),n=mo(i,e);if(n===bu){r.issues.push({code:\"invalid_format\",format:\"url\",note:\"Invalid URL format\",input:r.value,inst:t,continue:!e.abort});return}if(n===Rr){r.issues.push({code:\"invalid_format\",format:\"url\",input:r.value,inst:t,continue:!e.abort});return}if(n===!0){r.value=Dr(i);return}e.hostname&&!ho(n,e.hostname)&&r.issues.push({code:\"invalid_format\",format:\"url\",note:\"Invalid hostname\",pattern:e.hostname.source,input:r.value,inst:t,continue:!e.abort}),e.protocol&&!go(n,e.protocol)&&r.issues.push({code:\"invalid_format\",format:\"url\",note:\"Invalid protocol\",pattern:e.protocol.source,input:r.value,inst:t,continue:!e.abort}),r.value=e.normalize?n.href:Dr(i);return}catch{r.issues.push({code:\"invalid_format\",format:\"url\",input:r.value,inst:t,continue:!e.abort})}}}),_u=h(\"$ZodEmoji\",(t,e)=>{e.pattern??(e.pattern=xl()),V.init(t,e)}),xu=h(\"$ZodNanoID\",(t,e)=>{if(e.length!==void 0&&(!Number.isInteger(e.length)||e.length<1))throw new Error(`Invalid nanoid length: ${e.length}`);e.pattern??(e.pattern=e.length===void 0?vl:bl(e.length)),V.init(t,e)}),ku=h(\"$ZodCUID\",(t,e)=>{e.pattern??(e.pattern=pl),V.init(t,e)}),$u=h(\"$ZodCUID2\",(t,e)=>{e.pattern??(e.pattern=ml),V.init(t,e)}),Eu=h(\"$ZodULID\",(t,e)=>{e.pattern??(e.pattern=hl),V.init(t,e)}),Tu=h(\"$ZodXID\",(t,e)=>{e.pattern??(e.pattern=gl),V.init(t,e)}),Au=h(\"$ZodKSUID\",(t,e)=>{e.pattern??(e.pattern=yl),V.init(t,e)}),Iu=h(\"$ZodISODateTime\",(t,e)=>{e.pattern??(e.pattern=Ul(e)),V.init(t,e)}),Pu=h(\"$ZodISODate\",(t,e)=>{e.pattern??(e.pattern=Cl),V.init(t,e)}),Ou=h(\"$ZodISOTime\",(t,e)=>{e.pattern??(e.pattern=zl(e)),V.init(t,e)}),Nu=h(\"$ZodISODuration\",(t,e)=>{e.pattern??(e.pattern=wl),V.init(t,e)}),Ru=h(\"$ZodIPv4\",(t,e)=>{e.pattern??(e.pattern=kl),V.init(t,e)}),Zw=/^[0-9a-fA-F:.]+$/;function Cr(t){return Zw.test(t)?wu(`http://[${t}]`):!1}var Du=h(\"$ZodIPv6\",(t,e)=>{e.pattern??(e.pattern=$l),V.init(t,e),t._zod.check=r=>{Cr(r.value)||r.issues.push({code:\"invalid_format\",format:\"ipv6\",input:r.value,inst:t,continue:!e.abort})}}),Cu=h(\"$ZodMAC\",(t,e)=>{e.pattern??(e.pattern=El(e.delimiter)),V.init(t,e)}),zu=h(\"$ZodCIDRv4\",(t,e)=>{e.pattern??(e.pattern=Tl),V.init(t,e)});function yo(t){let e=t.split(\"/\");if(e.length!==2)return!1;let[r,i]=e;if(!i)return!1;let n=Number(i);return`${n}`!==i||n<0||n>128?!1:Cr(r)}var Uu=h(\"$ZodCIDRv6\",(t,e)=>{e.pattern??(e.pattern=Al),V.init(t,e),t._zod.check=r=>{yo(r.value)||r.issues.push({code:\"invalid_format\",format:\"cidrv6\",input:r.value,inst:t,continue:!e.abort})}});function zr(t){if(t===\"\")return!0;if(/\\s/.test(t)||t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}var vo=/^[0-9a-zA-Z+/]*={0,2}$/,Mu=h(\"$ZodBase64\",(t,e)=>{e.pattern??(e.pattern=vo),V.init(t,e),t._zod.check=r=>{zr(r.value)||r.issues.push({code:\"invalid_format\",format:\"base64\",input:r.value,inst:t,continue:!e.abort})}}),Ur=/^[A-Za-z0-9_-]*$/;function bo(t){if(!Ur.test(t))return!1;let e=t.replace(/[-_]/g,i=>i===\"-\"?\"+\":\"/\"),r=e.padEnd(Math.ceil(e.length/4)*4,\"=\");return zr(r)}var Lu=h(\"$ZodBase64URL\",(t,e)=>{e.pattern??(e.pattern=Ur),V.init(t,e),t._zod.check=r=>{bo(r.value)||r.issues.push({code:\"invalid_format\",format:\"base64url\",input:r.value,inst:t,continue:!e.abort})}}),ju=h(\"$ZodE164\",(t,e)=>{e.pattern??(e.pattern=Rl),V.init(t,e)}),Ww=/[- ]/g;function Gw(t){let e=t.length,r=1,i=0;for(;e;){let n=t.charCodeAt(--e)-48;r^=1,i+=r?[0,2,4,6,8,1,3,5,7,9][n]:n}return i%10===0}function wo(t){return no.test(t)?Gw(t.replace(Ww,\"\")):!1}var Fu=h(\"$ZodCreditCard\",(t,e)=>{e.pattern??(e.pattern=no),V.init(t,e),t._zod.check=r=>{wo(r.value)||r.issues.push({code:\"invalid_format\",format:\"credit_card\",input:r.value,inst:t,continue:!e.abort})}});function Kw(t){let e=0,r=t.length;for(let i=4;i<r;i++){let n=t.charCodeAt(i);e=(n>=65?e*100+(n-55):e*10+(n-48))%97}for(let i=0;i<4;i++){let n=t.charCodeAt(i);e=(n>=65?e*100+(n-55):e*10+(n-48))%97}return e===1}function So(t){return ro.test(t)?Kw(t):!1}var Bu=h(\"$ZodIBAN\",(t,e)=>{e.pattern??(e.pattern=ro),V.init(t,e),t._zod.check=r=>{So(r.value)||r.issues.push({code:\"invalid_format\",format:\"iban\",input:r.value,inst:t,continue:!e.abort})}});function _o(t,e=null){try{let r=t.split(\".\");if(r.length!==3)return!1;let[i]=r;if(!i)return!1;let n=JSON.parse(atob(i));return!(\"typ\"in n&&n?.typ!==\"JWT\"||!n.alg||e&&(!(\"alg\"in n)||n.alg!==e))}catch{return!1}}var Vu=h(\"$ZodJWT\",(t,e)=>{V.init(t,e),t._zod.check=r=>{_o(r.value,e.alg)||r.issues.push({code:\"invalid_format\",format:\"jwt\",input:r.value,inst:t,continue:!e.abort})}}),Zu=h(\"$ZodCustomStringFormat\",(t,e)=>{V.init(t,e),t._zod.check=r=>{e.fn(r.value)||r.issues.push({code:\"invalid_format\",format:e.format,input:r.value,inst:t,continue:!e.abort})}}),xo=h(\"$ZodNumber\",(t,e)=>{R.init(t,e),t._zod.pattern=lt,t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n==\"number\"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let o=typeof n==\"number\"?Number.isNaN(n)?\"NaN\":Number.isFinite(n)?void 0:String(n):void 0;return r.issues.push({expected:\"number\",code:\"invalid_type\",input:n,inst:t,...o?{received:o}:{}}),r}}),Wu=h(\"$ZodNumberFormat\",(t,e)=>{Xl.init(t,e),xo.init(t,e)}),Mr=h(\"$ZodBoolean\",(t,e)=>{R.init(t,e),t._zod.pattern=Fl,t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n==\"boolean\"||r.issues.push({expected:\"boolean\",code:\"invalid_type\",input:n,inst:t}),r}}),ko=h(\"$ZodBigInt\",(t,e)=>{R.init(t,e),t._zod.pattern=jl,t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value==\"bigint\"||r.issues.push({expected:\"bigint\",code:\"invalid_type\",input:r.value,inst:t}),r}}),Gu=h(\"$ZodBigIntFormat\",(t,e)=>{Yl.init(t,e),ko.init(t,e)}),Ku=h(\"$ZodSymbol\",(t,e)=>{R.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;return typeof n==\"symbol\"||r.issues.push({expected:\"symbol\",code:\"invalid_type\",input:n,inst:t}),r}}),Hu=h(\"$ZodUndefined\",(t,e)=>{R.init(t,e),t._zod.pattern=Vl,t._zod.values=new Set([void 0]),t._zod.parse=(r,i)=>{let n=r.value;return typeof n>\"u\"||r.issues.push({expected:\"undefined\",code:\"invalid_type\",input:n,inst:t}),r}}),Ju=h(\"$ZodNull\",(t,e)=>{R.init(t,e),t._zod.pattern=Bl,t._zod.values=new Set([null]),t._zod.parse=(r,i)=>{let n=r.value;return n===null||r.issues.push({expected:\"null\",code:\"invalid_type\",input:n,inst:t}),r}}),Xu=h(\"$ZodAny\",(t,e)=>{R.init(t,e),t._zod.parse=r=>r}),Yu=h(\"$ZodUnknown\",(t,e)=>{R.init(t,e),t._zod.parse=r=>r}),qu=h(\"$ZodNever\",(t,e)=>{R.init(t,e),t._zod.parse=(r,i)=>(r.issues.push({expected:\"never\",code:\"invalid_type\",input:r.value,inst:t}),r)}),Qu=h(\"$ZodVoid\",(t,e)=>{R.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;return typeof n>\"u\"||r.issues.push({expected:\"void\",code:\"invalid_type\",input:n,inst:t}),r}}),ec=h(\"$ZodDate\",(t,e)=>{R.init(t,e),t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,o=n instanceof Date;return o&&!Number.isNaN(n.getTime())||r.issues.push({expected:\"date\",code:\"invalid_type\",input:n,...o?{received:\"Invalid Date\"}:{},inst:t}),r}});function tc(t,e){let r=_n(t._zod.def.checks);if(!r.length)return;let i=Math.min(...r.map(o=>o[0])),n=t._zod.parse;t._zod.parse=(o,s)=>{let a=e(o.value);if(a>i&&!s?.skipChecks&&s?.direction!==\"backward\"){for(let[l,u]of _n(t._zod.def.checks))if(a>l&&u._zod.def.when(o)){let c=o.issues.length;return u._zod.check(o),o.issues[c].continue=!1,Sr(o.issues,c,t),o}}return n(o,s)}}var Hw=t=>Array.isArray(t)?t.length:-1,Jw=t=>t instanceof Map?t.size:-1,Xw=t=>t instanceof Set?t.size:-1;function Dm(t,e,r){t.issues.length&&e.issues.push(...be(r,t.issues)),e.value[r]=t.value}var nc=h(\"$ZodArray\",(t,e)=>{R.init(t,e);let r=te.memoizer;r?.attach(t),t._zod.parse=(i,n)=>{let o=i.value;if(!Array.isArray(o))return i.issues.push({expected:\"array\",code:\"invalid_type\",input:o,inst:t}),i;i.value=r?r.alloc(t,i,Array(o.length),n):Array(o.length);let s=[],a=n?.abortEarly;for(let l=0;l<o.length;l++){let u=o[l],c=e.element._zod.run({value:u,issues:[]},n);if(c instanceof Promise)s.push(c.then(d=>Dm(d,i,l)));else if(Dm(c,i,l),a&&c.issues.length!==0&&pe(c))break}return s.length?Promise.all(s).then(()=>i):i},tc(t,Hw)});function fo(t,e,r,i,n,o){let s=r in i,a=o===\"optional\";if(!(!s&&a&&n===\"optional\")){if(t.issues.length){if(n!==void 0&&a&&!s)return;e.issues.push(...be(r,t.issues))}if(!s&&n===void 0){t.issues.length||e.issues.push({code:\"invalid_type\",expected:\"nonoptional\",input:void 0,path:[r]});return}t.value===void 0?(s||n===\"defaulted\"&&!a)&&(e.value[r]=void 0):e.value[r]=t.value}}var Yw=[];function Ym(t){let e=Object.keys(t.shape),r=Object.getOwnPropertySymbols(t.shape),i=r.length?r:Yw,n=i.length?[...e,...i]:e;for(let s of n)if(!t.shape?.[s]?._zod?.traits?.has(\"$ZodType\"))throw new Error(`Invalid element at key \"${String(s)}\": expected a Zod schema`);let o=el(t.shape);return{...t,allKeys:n,symbolKeys:i,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(o)}}function qm(t,e,r,i,n,o,s){let a=[],l=n.keySet,u=n.catchall._zod,c=u.def.type,d=u.optin,f=u.optout,p=0;for(let m in e){if(s&&r.issues.length!==p){if(pe(r,p))break;p=r.issues.length}if(l.has(m))continue;if(m===\"__proto__\"){c===\"never\"&&a.push(m);continue}if(c===\"never\"){a.push(m);continue}let y=u.run({value:e[m],issues:[]},i);y instanceof Promise?t.push(y.then(_=>fo(_,r,m,e,d,f))):fo(y,r,m,e,d,f)}return a.length&&r.issues.push({code:\"unrecognized_keys\",keys:a,input:e,inst:o,continue:!0}),t.length?Promise.all(t).then(()=>r):r}var Qm=h(\"$ZodObject\",(t,e)=>{R.init(t,e);let r=Object.getOwnPropertyDescriptor(e,\"shape\"),i=r?.get?r.get.raw:e.shape??{};if(i){let u=()=>{let c={...i};return Object.defineProperty(e,\"shape\",{value:c}),u.raw=c,c};u.raw=i,Object.defineProperty(e,\"shape\",{get:u})}let n=wn(()=>Ym(e));z(t,\"propValues\",u=>{let c=u.def.shape,d={};for(let f in c){let p=c[f]._zod;if(p.values){Object.prototype.hasOwnProperty.call(d,f)||ne(d,f,new Set);for(let m of p.values)d[f].add(m);p.optin!==void 0&&d[f].add(void 0)}}return d});let o=Vt,s=e.catchall,a,l=te.memoizer;l?.attach(t),t._zod.parse=(u,c)=>{a??(a=n.value);let d=u.value;if(!o(d))return u.issues.push({expected:\"object\",code:\"invalid_type\",input:d,inst:t}),u;u.value=l?l.alloc(t,u,{},c):{};let f=[],p=a.shape,m=c?.abortEarly,y=u.issues.length;for(let _ of a.allKeys){if(m&&u.issues.length!==y){if(pe(u,y))break;y=u.issues.length}if(_===\"__proto__\")continue;let k=p[_],S=k._zod.optin,T=k._zod.optout,P=k._zod.run({value:d[_],issues:[]},c);P instanceof Promise?f.push(P.then(O=>fo(O,u,_,d,S,T))):fo(P,u,_,d,S,T)}return s?qm(f,d,u,c,n.value,t,m===!0):f.length?Promise.all(f).then(()=>u):u}}),rc=h(\"$ZodObjectJIT\",(t,e)=>{Qm.init(t,e);let r=t._zod.parse,i=wn(()=>Ym(e)),n=te.memoizer,o=p=>{let m=i.value,y=m.symbolKeys,_=new Gt([\"payload\",\"ctx\"],{shape:p,inst:t,memo:n,syms:y}),k=O=>`shape[${O}]._zod.run({ value: input[${O}], issues: [] }, ctx)`,S=(O,D)=>`\n          let ${O}_ab = false;\n          for (let i = 0; i < ${O}.issues.length; i++) {\n            const iss = ${O}.issues[i];\n            iss.path = iss.path ? [${D}, ...iss.path] : [${D}];\n            payload.issues.push(iss);\n            if (iss.continue !== true) ${O}_ab = true;\n          }\n          if (${O}_ab && ctx && ctx.abortEarly) {\n            payload.value = newResult;\n            return payload;\n          }`;_.write(\"const input = payload.value;\");let T=Object.create(null),P=0;for(let O of m.allKeys)T[O]=`key_${P++}`;_.write(n?\"const newResult = memo.alloc(inst, payload, {}, ctx);\":\"const newResult = {};\");for(let O of m.allKeys){if(O===\"__proto__\")continue;let D=T[O],Y=typeof O==\"symbol\"?`syms[${y.indexOf(O)}]`:fe(O),De=`${Y} in input`,dr=p[O],fr=dr?._zod?.optin,tt=fr!==void 0,rb=dr?._zod?.optout===\"optional\";if(_.write(`const ${D} = ${k(Y)};`),tt&&rb){let ib=fr===\"optional\"?`${D}_present`:`${D}.value !== undefined || ${D}_present`;_.write(`\n        const ${D}_present = ${De};\n        if (!${D}.issues.length || ${D}_present) {\n          if (${D}.issues.length) {${S(D,Y)}\n          }\n\n          if (${ib}) {\n            newResult[${Y}] = ${D}.value;\n          }\n        }\n\n      `)}else tt?(_.write(`\n        if (${D}.issues.length) {${S(D,Y)}\n        }\n      `),fr===\"defaulted\"?_.write(`newResult[${Y}] = ${D}.value;`):_.write(`\n        if (${D}.value !== undefined || ${De}) {\n          newResult[${Y}] = ${D}.value;\n        }\n      `)):_.write(`\n        const ${D}_present = ${De};\n        if (${D}.issues.length) {${S(D,Y)}\n        }\n        if (!${D}_present && !${D}.issues.length) {\n          payload.issues.push({\n            code: \"invalid_type\",\n            expected: \"nonoptional\",\n            input: undefined,\n            path: [${Y}]\n          });\n          if (ctx && ctx.abortEarly) {\n            payload.value = newResult;\n            return payload;\n          }\n        }\n\n        if (${D}_present) {\n          newResult[${Y}] = ${D}.value;\n        }\n\n      `)}return _.write(\"payload.value = newResult;\"),_.write(\"return payload;\"),_.compile()},s,a=Vt,l=!te.jitless,c=l&&qa.value,d=e.catchall,f;t._zod.parse=(p,m)=>{f??(f=i.value);let y=p.value;return a(y)?l&&c&&m?.async===!1&&m.jitless!==!0?(s||(s=o(e.shape)),p=s(p,m),d?qm([],y,p,m,f,t,m?.abortEarly===!0):p):r(p,m):(p.issues.push({expected:\"object\",code:\"invalid_type\",input:y,inst:t}),p)}});function Cm(t,e,r,i){for(let o of t)if(o.issues.length===0)return e.value=o.value,e;let n=t.filter(o=>!pe(o));return n.length===1?(e.value=n[0].value,n[0]):(e.issues.push({code:\"invalid_union\",input:e.value,inst:r,errors:t.map(o=>o.issues.map(s=>we(s,i,q())))}),e)}var Lr=h(\"$ZodUnion\",(t,e)=>{R.init(t,e),z(t,\"optin\",i=>i.def.options.some(n=>n._zod.optin===\"defaulted\")?\"defaulted\":i.def.options.some(n=>n._zod.optin!==void 0)?\"optional\":void 0),z(t,\"optout\",i=>i.def.options.some(n=>n._zod.optout===\"optional\")?\"optional\":void 0),z(t,\"values\",i=>{if(i.def.options.every(n=>n._zod.values))return new Set(i.def.options.flatMap(n=>Array.from(n._zod.values)))}),z(t,\"pattern\",i=>{if(i.def.options.every(n=>n._zod.pattern)){let n=i.def.options.map(o=>o._zod.pattern);return new RegExp(`^(${n.map(o=>at(o.source)).join(\"|\")})$`)}});let r=e.options.length===1?e.options[0]._zod.run:null;t._zod.parse=(i,n)=>{if(r)return r(i,n);let o=!1,s=[];for(let a of e.options){let l=a._zod.run({value:i.value,issues:[]},n);if(l instanceof Promise)s.push(l),o=!0;else{if(l.issues.length===0)return l;s.push(l)}}return o?Promise.all(s).then(a=>Cm(a,i,t,n)):Cm(s,i,t,n)}});function zm(t,e,r,i){let n=[];for(let o=0;o<t.length;o++)t[o].issues.length===0&&n.push(o);return n.length===1?(e.value=t[n[0]].value,e):(n.length===0?e.issues.push({code:\"invalid_union\",input:e.value,inst:r,errors:t.map(o=>o.issues.map(s=>we(s,i,q())))}):e.issues.push({code:\"invalid_union\",input:e.value,inst:r,errors:[],inclusive:!1,matches:n}),e)}var ic=h(\"$ZodXor\",(t,e)=>{Lr.init(t,e),e.inclusive=!1;let r=e.options.length===1?e.options[0]._zod.run:null;t._zod.parse=(i,n)=>{if(r)return r(i,n);let o=!1,s=[];for(let a of e.options){let l=a._zod.run({value:i.value,issues:[]},n);l instanceof Promise?(s.push(l),o=!0):s.push(l)}return o?Promise.all(s).then(a=>zm(a,i,t,n)):zm(s,i,t,n)}});function oc(t,e){let r=t._zod,i=r.bag.optionsMap;i||(i=eh(r.def),r.bag.optionsMap=i);let n=i.get(e);if(n===null)throw new Error(`Ambiguous discriminator value \"${String(e)}\"`);return n}function eh(t){let e=new Map;for(let r of t.options){let i=r._zod.propValues?.[t.discriminator];if(!i||i.size===0)throw new Error(`Invalid discriminated union option at index \"${t.options.indexOf(r)}\"`);for(let n of i)if(e.has(n)){if(n!==void 0)throw new Error(`Duplicate discriminator value \"${String(n)}\"`);e.set(n,null)}else e.set(n,r)}return e}var sc=h(\"$ZodDiscriminatedUnion\",(t,e)=>{e.inclusive=!1,Lr.init(t,e);let r=t._zod.parse;z(t,\"propValues\",n=>{let o={},s=0;for(let a of n.def.options){let l=a._zod.propValues;if(!l||Object.keys(l).length===0)throw new Error(`Invalid discriminated union option at index \"${n.def.options.indexOf(a)}\"`);l[n.def.discriminator]?.has(void 0)&&s++;for(let[u,c]of Object.entries(l)){Object.prototype.hasOwnProperty.call(o,u)||ne(o,u,new Set);for(let d of c)o[u].add(d)}}return!n.def.unionFallback&&s>1&&o[n.def.discriminator]?.delete(void 0),o}),e.options.forEach((n,o)=>{let s=Sn(n._zod.def);if(s&&!Object.prototype.hasOwnProperty.call(s,e.discriminator))throw new Error(`Invalid discriminated union option at index \"${o}\"`)});let i=wn(()=>eh(e));t._zod.parse=(n,o)=>{let s=n.value;if(!Vt(s))return n.issues.push({code:\"invalid_type\",expected:\"object\",input:s,inst:t}),n;let a=s?.[e.discriminator],l=i.value.get(a);return l&&(a!==void 0||o.direction!==\"backward\")?l._zod.run(n,o):e.unionFallback||o.direction===\"backward\"?r(n,o):(n.issues.push({code:\"invalid_union\",errors:[],note:\"No matching discriminator\",discriminator:e.discriminator,options:Array.from(i.value.keys()).filter(u=>i.value.get(u)!==null),input:s,path:[e.discriminator],inst:t}),n)}}),ac=h(\"$ZodIntersection\",(t,e)=>{R.init(t,e),t._zod.parse=(r,i)=>{let n=r.value,o=e.left._zod.run({value:n,issues:[]},i),s=e.right._zod.run({value:n,issues:[]},i);return o instanceof Promise||s instanceof Promise?Promise.all([o,s]).then(([l,u])=>Um(r,l,u)):Um(r,o,s)}});function In(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&e instanceof Date&&+t==+e)return{valid:!0,data:t};if(Ie(t)&&Ie(e)){let r=Object.keys(e),i=Object.keys(t).filter(o=>r.indexOf(o)!==-1),n={...t,...e};Object.prototype.hasOwnProperty.call(n,\"__proto__\")&&delete n.__proto__;for(let o of i){if(o===\"__proto__\")continue;let s=In(t[o],e[o]);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};n[o]=s.data}return{valid:!0,data:n}}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let i=0;i<t.length;i++){let n=t[i],o=e[i],s=In(n,o);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function Um(t,e,r){let i=new Map,n,o=new Map,s=(u,c)=>{let d;if(u.code===\"unrecognized_keys\"&&!u.path?.length)n??(n=u),d=u.keys;else if(u.code===\"invalid_key\"&&u.origin===\"record\"&&u.path?.length===1){let f=String(u.path[0]);o.has(f)||o.set(f,u),d=[f]}else return!1;for(let f of d)i.has(f)||i.set(f,{}),i.get(f)[c]=!0;return!0};for(let u of e.issues)s(u,\"l\")||t.issues.push(u);for(let u of r.issues)s(u,\"r\")||t.issues.push(u);let a=[...i].filter(([,u])=>u.l&&u.r).map(([u])=>u);if(a.length){let u=n?a.filter(c=>n.keys.includes(c)):[];u.length&&t.issues.push({...n,keys:u});for(let c of a)!u.includes(c)&&o.has(c)&&t.issues.push(o.get(c))}let l=In(e.value,r.value);if(!l.valid){if(pe(t))return t;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(l.mergeErrorPath)}`)}return t.value=l.data,t}var $o=h(\"$ZodTuple\",(t,e)=>{R.init(t,e);let r=e.items,i=te.memoizer;i?.attach(t),t._zod.parse=(n,o)=>{let s=n.value;if(!Array.isArray(s))return n.issues.push({input:s,inst:t,expected:\"tuple\",code:\"invalid_type\"}),n;n.value=i?i.alloc(t,n,[],o):[];let a=[],l=Mm(r,\"optin\"),u=Mm(r,\"optout\");if(!e.rest){if(s.length<l)return n.issues.push({code:\"too_small\",minimum:l,inclusive:!0,input:s,inst:t,origin:\"array\"}),n;s.length>r.length&&n.issues.push({code:\"too_big\",maximum:r.length,inclusive:!0,input:s,inst:t,origin:\"array\"})}let c=new Array(r.length),d=e.rest?o?.abortEarly:void 0,f=!1;for(let p=0;p<r.length;p++){let m=r[p]._zod.run({value:s[p],issues:[]},o);m instanceof Promise?a.push(m.then(y=>{c[p]=y})):(c[p]=m,d&&!f&&m.issues.length&&(f=pe(m)))}if(e.rest&&!f){let p=r.length-1,m=s.slice(r.length),y=n.issues.length;for(let _ of m){if(d&&n.issues.length!==y){if(pe(n,y))break;y=n.issues.length}p++;let k=e.rest._zod.run({value:_,issues:[]},o);k instanceof Promise?a.push(k.then(S=>Lm(S,n,p))):Lm(k,n,p)}}return a.length?Promise.all(a).then(()=>jm(c,n,r,s,u)):jm(c,n,r,s,u)}});function Mm(t,e){for(let r=t.length-1;r>=0;r--)if(!(e===\"optin\"?t[r]._zod.optin!==void 0:t[r]._zod.optout===\"optional\"))return r+1;return 0}function Lm(t,e,r){t.issues.length&&e.issues.push(...be(r,t.issues)),e.value[r]=t.value}function jm(t,e,r,i,n){for(let o=0;o<r.length;o++){let s=t[o],a=o<i.length;if(!a&&o>=n&&r[o]._zod.optin===\"optional\"){e.value.length=o;break}if(s.issues.length){if(!a&&o>=n){e.value.length=o;break}e.issues.push(...be(o,s.issues))}e.value[o]=s.value}for(let o=e.value.length-1;o>=i.length&&(r[o]._zod.optout===\"optional\"&&e.value[o]===void 0);o--)e.value.length=o;return e}var lc=h(\"$ZodRecord\",(t,e)=>{R.init(t,e);let r=te.memoizer;r?.attach(t),t._zod.parse=(i,n)=>{let o=i.value;if(!Ie(o))return i.issues.push({expected:\"record\",code:\"invalid_type\",input:o,inst:t}),i;let s=[],a=e.keyType._zod.values;if(a&&!e.partial){i.value=r?r.alloc(t,i,{},n):{};let l=new Set;for(let c of a)if(typeof c==\"string\"||typeof c==\"number\"||typeof c==\"symbol\"){if(l.add(typeof c==\"number\"?c.toString():c),c===\"__proto__\")continue;let d=e.keyType._zod.run({value:c,issues:[]},n);if(d instanceof Promise)throw new Error(\"Async schemas not supported in object keys currently\");if(d.issues.length){i.issues.push({code:\"invalid_key\",origin:\"record\",issues:d.issues.map(m=>we(m,n,q())),input:c,path:[c],inst:t});continue}let f=d.value;if(f===\"__proto__\")continue;let p=e.valueType._zod.run({value:o[c],issues:[]},n);p instanceof Promise?s.push(p.then(m=>{m.issues.length&&i.issues.push(...be(c,m.issues)),i.value[f]=m.value})):(p.issues.length&&i.issues.push(...be(c,p.issues)),i.value[f]=p.value)}let u;for(let c in o)if(!l.has(c))if(e.mode===\"loose\"){if(c===\"__proto__\")continue;i.value[c]=o[c]}else u=u??[],u.push(c);u&&u.length>0&&i.issues.push({code:\"unrecognized_keys\",input:o,inst:t,keys:u,continue:!0})}else{i.value=r?r.alloc(t,i,{},n):{};let l;for(let u of Reflect.ownKeys(o)){if(u===\"__proto__\"||!Object.prototype.propertyIsEnumerable.call(o,u))continue;let c=e.keyType._zod.run({value:u,issues:[]},n);if(c instanceof Promise)throw new Error(\"Async schemas not supported in object keys currently\");if(typeof u==\"string\"&&lt.test(u)&&c.issues.length){let m=e.keyType._zod.run({value:Number(u),issues:[]},n);if(m instanceof Promise)throw new Error(\"Async schemas not supported in object keys currently\");m.issues.length===0&&(c=m)}if(c.issues.length){e.mode===\"loose\"?i.value[u]=o[u]:a?(l=l??[],l.push(u)):i.issues.push({code:\"invalid_key\",origin:\"record\",issues:c.issues.map(m=>we(m,n,q())),input:u,path:[u],inst:t});continue}let f=c.value;if(f===\"__proto__\")continue;let p=e.valueType._zod.run({value:o[u],issues:[]},n);p instanceof Promise?s.push(p.then(m=>{m.issues.length&&i.issues.push(...be(u,m.issues)),i.value[f]=m.value})):(p.issues.length&&i.issues.push(...be(u,p.issues)),i.value[f]=p.value)}l&&l.length>0&&i.issues.push({code:\"unrecognized_keys\",input:o,inst:t,keys:l,continue:!0})}return s.length?Promise.all(s).then(()=>i):i}}),uc=h(\"$ZodMap\",(t,e)=>{R.init(t,e);let r=te.memoizer;r?.attach(t),t._zod.parse=(i,n)=>{let o=i.value;if(!(o instanceof Map))return i.issues.push({expected:\"map\",code:\"invalid_type\",input:o,inst:t}),i;let s=[];i.value=r?r.alloc(t,i,new Map,n):new Map;let a=n?.abortEarly,l=i.issues.length;for(let[u,c]of o){if(a&&i.issues.length!==l){if(pe(i,l))break;l=i.issues.length}let d=e.keyType._zod.run({value:u,issues:[]},n),f=e.valueType._zod.run({value:c,issues:[]},n);d instanceof Promise||f instanceof Promise?s.push(Promise.all([d,f]).then(([p,m])=>{Fm(p,m,i,u,o,t,n)})):Fm(d,f,i,u,o,t,n)}return s.length?Promise.all(s).then(()=>i):i},tc(t,Jw)});function Fm(t,e,r,i,n,o,s){t.issues.length&&(vr.has(typeof i)?r.issues.push(...be(i,t.issues)):r.issues.push({code:\"invalid_key\",origin:\"map\",input:n,inst:o,issues:t.issues.map(a=>we(a,s,q()))})),e.issues.length&&(vr.has(typeof i)?r.issues.push(...be(i,e.issues)):r.issues.push({origin:\"map\",code:\"invalid_element\",input:n,inst:o,key:i,issues:e.issues.map(a=>we(a,s,q()))})),r.value.set(t.value,e.value)}var cc=h(\"$ZodSet\",(t,e)=>{R.init(t,e);let r=te.memoizer;r?.attach(t),t._zod.parse=(i,n)=>{let o=i.value;if(!(o instanceof Set))return i.issues.push({input:o,inst:t,expected:\"set\",code:\"invalid_type\"}),i;let s=[];i.value=r?r.alloc(t,i,new Set,n):new Set;let a=n?.abortEarly,l=i.issues.length;for(let u of o){if(a&&i.issues.length!==l){if(pe(i,l))break;l=i.issues.length}let c=e.valueType._zod.run({value:u,issues:[]},n);c instanceof Promise?s.push(c.then(d=>Bm(d,i))):Bm(c,i)}return s.length?Promise.all(s).then(()=>i):i},tc(t,Xw)});function Bm(t,e){t.issues.length&&e.issues.push(...t.issues),e.value.add(t.value)}var dc=h(\"$ZodEnum\",(t,e)=>{R.init(t,e);let r=vn(e.entries),i=new Set(r);t._zod.values=i,z(t,\"pattern\",n=>{let o=vn(n.def.entries).filter(s=>vr.has(typeof s));return new RegExp(o.length?`^(${o.map(s=>Pe(s.toString())).join(\"|\")})$`:\"^[^\\\\s\\\\S]$\")}),t._zod.parse=(n,o)=>{let s=n.value;return i.has(s)||n.issues.push({code:\"invalid_value\",values:r,input:s,inst:t}),n}}),fc=h(\"$ZodLiteral\",(t,e)=>{R.init(t,e);let r=new Set(e.values);t._zod.values=r,z(t,\"pattern\",i=>{let n=i.def.values;return new RegExp(n.length?`^(${n.map(o=>typeof o==\"string\"?Pe(o):o?Pe(o.toString()):String(o)).join(\"|\")})$`:\"^[^\\\\s\\\\S]$\")}),t._zod.parse=(i,n)=>{let o=i.value;return r.has(o)||i.issues.push({code:\"invalid_value\",values:e.values,input:o,inst:t}),i}}),pc=h(\"$ZodFile\",(t,e)=>{R.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;return n instanceof File||r.issues.push({expected:\"file\",code:\"invalid_type\",input:n,inst:t}),r}}),mc=h(\"$ZodTransform\",(t,e)=>{R.init(t,e),t._zod.optin=\"optional\",te.memoizer?.guard(t),t._zod.parse=(r,i)=>{if(i.direction===\"backward\")throw new bt(t.constructor.name);let n=e.transform(r.value,r);if(i.async)return(n instanceof Promise?n:Promise.resolve(n)).then(s=>(r.value=s,r));if(n instanceof Promise)throw new Se;return r.value=n,r}});function Vm(t,e){return t.value=e.issues.length?void 0:e.value,t}var Eo=h(\"$ZodOptional\",(t,e)=>{R.init(t,e),z(t,\"optin\",r=>r.def.innerType._zod.optin===\"defaulted\"?\"defaulted\":\"optional\"),t._zod.optout=\"optional\",z(t,\"values\",r=>{let i=r.def.innerType._zod.values;return i?new Set([...i,void 0]):void 0}),z(t,\"pattern\",r=>{let i=r.def.innerType._zod.pattern;return i?new RegExp(`^(${at(i.source)})?$`):void 0}),t._zod.parse=(r,i)=>{if(r.value===void 0){if(e.innerType._zod.optin!==\"defaulted\")return r;let n=e.innerType._zod.run({value:r.value,issues:[]},i);return n instanceof Promise?n.then(o=>Vm(r,o)):Vm(r,n)}return e.innerType._zod.run(r,i)}}),hc=h(\"$ZodExactOptional\",(t,e)=>{Eo.init(t,e),z(t,\"values\",r=>r.def.innerType._zod.values),z(t,\"pattern\",r=>r.def.innerType._zod.pattern),t._zod.parse=(r,i)=>e.innerType._zod.run(r,i)}),gc=h(\"$ZodNullable\",(t,e)=>{R.init(t,e),z(t,\"optin\",r=>r.def.innerType._zod.optin),z(t,\"optout\",r=>r.def.innerType._zod.optout),z(t,\"pattern\",r=>{let i=r.def.innerType._zod.pattern;return i?new RegExp(`^(${at(i.source)}|null)$`):void 0}),z(t,\"values\",r=>r.def.innerType._zod.values?new Set([...r.def.innerType._zod.values,null]):void 0),t._zod.parse=(r,i)=>r.value===null?r:e.innerType._zod.run(r,i)}),yc=h(\"$ZodDefault\",(t,e)=>{R.init(t,e),t._zod.optin=\"defaulted\",z(t,\"values\",r=>r.def.innerType._zod.values),t._zod.parse=(r,i)=>{if(i.direction===\"backward\")return e.innerType._zod.run(r,i);if(r.value===void 0)return r.value=e.defaultValue,r;let n=e.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>Zm(o,e)):Zm(n,e)}});function Zm(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}var vc=h(\"$ZodPrefault\",(t,e)=>{R.init(t,e),t._zod.optin=\"defaulted\",z(t,\"values\",r=>r.def.innerType._zod.values),t._zod.parse=(r,i)=>(i.direction===\"backward\"||r.value===void 0&&(r.value=e.defaultValue),e.innerType._zod.run(r,i))}),bc=h(\"$ZodNonOptional\",(t,e)=>{R.init(t,e),z(t,\"values\",r=>{let i=r.def.innerType._zod.values;return i?new Set([...i].filter(n=>n!==void 0)):void 0}),t._zod.parse=(r,i)=>{let n=e.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>Wm(o,t)):Wm(n,t)}});function Wm(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:\"invalid_type\",expected:\"nonoptional\",input:t.value,inst:e}),t}var wc=h(\"$ZodSuccess\",(t,e)=>{R.init(t,e),t._zod.parse=(r,i)=>{if(i.direction===\"backward\")throw new bt(\"ZodSuccess\");let n=e.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>(r.value=o.issues.length===0,r)):(r.value=n.issues.length===0,r)}});function Gm(t,e,r,i){return e.issues.length?(t.value=r.catchValue({...e,value:t.value,error:{issues:e.issues.map(n=>we(n,i,q()))},input:t.value}),t):(t.value=e.value,e.memo&&(t.memo=!0),t)}var Sc=h(\"$ZodCatch\",(t,e)=>{R.init(t,e),z(t,\"optin\",r=>r.def.innerType._zod.optin===\"defaulted\"?\"defaulted\":\"optional\"),z(t,\"optout\",r=>r.def.innerType._zod.optout),z(t,\"values\",r=>r.def.innerType._zod.values),t._zod.parse=(r,i)=>{if(i.direction===\"backward\")return e.innerType._zod.run(r,i);let n=e.innerType._zod.run({value:r.value,issues:[]},i);return n instanceof Promise?n.then(o=>Gm(r,o,e,i)):Gm(r,n,e,i)}}),_c=h(\"$ZodNaN\",(t,e)=>{R.init(t,e),t._zod.parse=(r,i)=>((typeof r.value!=\"number\"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:t,expected:\"nan\",code:\"invalid_type\"}),r)}),To=h(\"$ZodPipe\",(t,e)=>{R.init(t,e),z(t,\"values\",r=>r.def.in._zod.values),z(t,\"optin\",r=>r.def.in._zod.optin),z(t,\"optout\",r=>r.def.out._zod.optout),z(t,\"propValues\",r=>r.def.in._zod.propValues),t._zod.parse=(r,i)=>{if(i.direction===\"backward\"){let o=e.out._zod.run(r,i);return o instanceof Promise?o.then(s=>lo(s,e.in,i)):lo(o,e.in,i)}let n=e.in._zod.run(r,i);return n instanceof Promise?n.then(o=>lo(o,e.out,i)):lo(n,e.out,i)}});function lo(t,e,r){return t.issues.some(i=>i.code!==\"unrecognized_keys\")?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues},r)}var jr=h(\"$ZodCodec\",(t,e)=>{R.init(t,e),z(t,\"values\",r=>r.def.in._zod.values),z(t,\"optin\",r=>r.def.in._zod.optin),z(t,\"optout\",r=>r.def.out._zod.optout),z(t,\"propValues\",r=>r.def.in._zod.propValues),t._zod.parse=(r,i)=>{if((i.direction||\"forward\")===\"forward\"){let o=e.in._zod.run(r,i);return o instanceof Promise?o.then(s=>uo(s,e,i)):uo(o,e,i)}else{let o=e.out._zod.run(r,i);return o instanceof Promise?o.then(s=>uo(s,e,i)):uo(o,e,i)}}});function uo(t,e,r){if(t.issues.length)return t.aborted=!0,t;if((r.direction||\"forward\")===\"forward\"){let n=e.transform(t.value,t);return n instanceof Promise?n.then(o=>co(t,o,e.out,r)):co(t,n,e.out,r)}else{let n=e.reverseTransform(t.value,t);return n instanceof Promise?n.then(o=>co(t,o,e.in,r)):co(t,n,e.in,r)}}function co(t,e,r,i){return t.issues.length?(t.aborted=!0,t):r._zod.run({value:e,issues:t.issues},i)}var xc=h(\"$ZodPreprocess\",(t,e)=>{To.init(t,e)}),kc=h(\"$ZodReadonly\",(t,e)=>{R.init(t,e),z(t,\"propValues\",r=>r.def.innerType._zod.propValues),z(t,\"values\",r=>r.def.innerType._zod.values),z(t,\"optin\",r=>r.def.innerType?._zod?.optin),z(t,\"optout\",r=>r.def.innerType?._zod?.optout),t._zod.parse=(r,i)=>{if(i.direction===\"backward\")return e.innerType._zod.run(r,i);let n=e.innerType._zod.run(r,i);return n instanceof Promise?n.then(Km):Km(n)}});function Km(t){return t.memo||(t.value=Object.freeze(t.value)),t}function qw(t){let e=t._zod.def,r=e.pattern,i=!!e.format?.includes(\"int\"),n,o;for(let a of e.checks??[]){let l=a._zod.def;l.pattern&&(r=l.pattern),i||(i=!!l.format?.includes(\"int\"));let u=l.minimum??l.length,c=l.maximum??l.length;u!==void 0&&(n===void 0||u>n)&&(n=u),c!==void 0&&(o===void 0||c<o)&&(o=c)}if(r)return r.source;if(n!==void 0&&o!==void 0&&n>o)return\"(?!)\";if(n!==void 0||o!==void 0)return Ll({minimum:n,maximum:o}).source;let s=t._zod.pattern;return(i&&s===lt?Pr:s)?.source}function hu(t){let e=t._zod.def,r=t._zod.pattern?.source,i=e.innerType??t._zod.innerType;if(i){let n=i._zod.pattern?.source,o=hu(i);return r&&n&&o&&o!==n?r.replace(at(n),()=>at(o)):r}if(e.options){let n=e.options.map(hu);if(n.every(Boolean))return`^(${n.map(o=>at(o)).join(\"|\")})$`}return qw(t)}var $c=h(\"$ZodTemplateLiteral\",(t,e)=>{R.init(t,e);let r=[];for(let i of e.parts)if(typeof i==\"object\"&&i!==null){let n=hu(i);if(!n)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);r.push(at(n))}else if(i===null||Qa.has(typeof i))r.push(Pe(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);t._zod.pattern=new RegExp(`^${r.join(\"\")}$`),t._zod.parse=(i,n)=>typeof i.value!=\"string\"?(i.issues.push({input:i.value,inst:t,expected:\"string\",code:\"invalid_type\"}),i):(t._zod.pattern.lastIndex=0,t._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:t,code:\"invalid_format\",format:e.format??\"template_literal\",pattern:t._zod.pattern.source}),i)}),Ec=h(\"$ZodFunction\",(t,e)=>(R.init(t,e),Object.defineProperty(t,\"_def\",{value:e}),t._zod.def=e,t.implement=r=>{if(typeof r!=\"function\")throw new Error(\"implement() must be called with a function\");return Object.defineProperty(function(...i){let n=t._def.input?Gi(t._def.input,i):i,o=Reflect.apply(r,this,n);return t._def.output?Gi(t._def.output,o):o},\"_zod\",{value:t._zod,enumerable:!1})},t.implementAsync=r=>{if(typeof r!=\"function\")throw new Error(\"implementAsync() must be called with a function\");return Object.defineProperty(async function(...i){let n=t._def.input?await Ki(t._def.input,i):i,o=await Reflect.apply(r,this,n);return t._def.output?await Ki(t._def.output,o):o},\"_zod\",{value:t._zod,enumerable:!1})},t._zod.parse=(r,i)=>typeof r.value!=\"function\"?(r.issues.push({code:\"invalid_type\",expected:\"function\",input:r.value,inst:t}),r):(t._def.output&&t._def.output._zod.def.type===\"promise\"?r.value=t.implementAsync(r.value):r.value=t.implement(r.value),r),t.input=(...r)=>{let i=t.constructor;return Array.isArray(r[0])?new i({type:\"function\",input:new $o({type:\"tuple\",items:r[0],rest:r[1]}),output:t._def.output}):new i({type:\"function\",input:r[0],output:t._def.output})},t.output=r=>{let i=t.constructor;return new i({type:\"function\",input:t._def.input,output:r})},t)),Tc=h(\"$ZodPromise\",(t,e)=>{R.init(t,e),t._zod.parse=(r,i)=>Promise.resolve(r.value).then(n=>e.innerType._zod.run({value:n,issues:[]},i))}),Fr=h(\"$ZodLazy\",(t,e)=>{R.init(t,e),Xa(t._zod,\"innerType\",()=>{let r=e;return r._cachedInner||(r._cachedInner=e.getter()),r._cachedInner}),z(t,\"pattern\",r=>r.innerType?._zod?.pattern),z(t,\"propValues\",r=>r.innerType?._zod?.propValues),z(t,\"optin\",r=>r.innerType?._zod?.optin??void 0),z(t,\"optout\",r=>r.innerType?._zod?.optout??void 0),t._zod.parse=(r,i)=>t._zod.innerType._zod.run(r,i)}),Ac=h(\"$ZodCustom\",(t,e)=>{H.init(t,e),R.init(t,e),t._zod.parse=(r,i)=>r,t._zod.check=r=>{let i=r.value,n=e.fn(i);if(n instanceof Promise)return n.then(o=>Hm(o,r,i,t));Hm(n,r,i,t)}});function Hm(t,e,r,i){if(!t){let n={code:\"custom\",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(n.params=i._zod.def.params),e.issues.push(xn(n))}}var Oo=class extends Error{constructor(){super(\"Cannot parse a reference cycle that closes through a transform\"),this.name=\"ZodCyclicError\"}},Pc=\"~memo\",nh=[];function rh(t){return t!==null&&typeof t==\"object\"}function Ic(t){return t.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}var ih=new WeakMap,Pn=0,Po=1,Br=2;function Vr(t,e,r){let i=ih.get(t);if(i!==void 0)return i?Br:Pn;if(e.has(t))return Br;e.add(t);let n=Pn,o=c=>{if(n!==Br&&c?._zod){let d=Vr(c,e,r);d>n&&(n=d)}},s=(c,d)=>{let f=Pn;for(let p of Reflect.ownKeys(c)){let m=Object.getOwnPropertyDescriptor(c,p);if(d&&!m.enumerable)continue;let y=m.get?Po:m.value?._zod?Vr(m.value,e,r):Pn;y>f&&(f=y)}return f},a=c=>{c>n&&(n=c)},l=t._zod.def,u=l.type;switch(u){case\"object\":{let c=Sn(l);a(c?s(c,!0):Po),o(l.catchall);break}case\"array\":o(l.element);break;case\"tuple\":for(let c of l.items)o(c);o(l.rest);break;case\"record\":case\"map\":o(l.keyType),o(l.valueType);break;case\"set\":o(l.valueType);break;case\"union\":for(let c of l.options)o(c);break;case\"intersection\":o(l.left),o(l.right);break;case\"optional\":case\"nullable\":case\"default\":case\"prefault\":case\"catch\":case\"readonly\":case\"nonoptional\":case\"promise\":case\"success\":o(l.innerType);break;case\"pipe\":o(l.in),o(l.out);break;case\"function\":o(l.input),o(l.output);break;case\"lazy\":{let c=l._cachedInner??(r?t._zod.innerType:void 0);a(c?Vr(c,e,!1):Po);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 c in l){let d=Object.getOwnPropertyDescriptor(l,c);if(!d||d.get)continue;let f=d.value;if(!(!f||typeof f!=\"object\")){if(f._zod)o(f);else if(Array.isArray(f))for(let p of f)o(p)}}}return e.delete(t),Qw(t,n)}function Qw(t,e){return e!==Po&&ih.set(t,e===Br),e}function No(t){return Vr(t,new Set,!0)!==Pn}function eS(t,e){let r=t.buckets.get(e);return r||(r=new WeakMap,t.buckets.set(e,r)),r}var Ao,Io=[],tS={alloc(t,e,r){let i=Ao;if(!i)return r;Ao=void 0;let n={value:r,issues:null};return i.set(e.value,n),Io.push(n),r},guard(t){var e;(e=t._zod).deferred??(e.deferred=[]),t._zod.deferred.push(()=>{let r=t._zod.parse,i=(n,o)=>{if(o.direction!==\"backward\"&&Ro(o,n.value))throw new Oo;return r(n,o)};t._zod.parse=i,t._zod.run===r&&(t._zod.run=i)})},attach(t){var e;let r,i=!1,n,o;(e=t._zod).deferred??(e.deferred=[]),t._zod.deferred.push(()=>{let s=t._zod.parse,a=(l,u)=>{if(r===void 0){let k=Vr(t,new Set,!1);if(k===Pn)return t._zod.parse=s,t._zod.run===a&&(t._zod.run=s),s(l,u);k===Br||i?r=!0:i=!0}let c=l.value;if(!rh(c))return s(l,u);let d=u[Pc];d||(d={buckets:new WeakMap,backEdges:void 0},u[Pc]=d);let f;n===u?f=o:(f=eS(d,t),n=u,o=f);let p=f.get(c);if(p)return l.value=p.value,p.issues?p.issues.length&&l.issues.push(...Ic(p.issues)):(l.memo=!0,d.backEdges??(d.backEdges=new WeakSet),d.backEdges.add(p.value)),l;Ao=f;let m=Io.length,y=s(l,u);Ao=void 0;let _=Io.length>m?Io.pop():void 0;return y instanceof Promise?y.then(k=>(_&&(_.issues=k.issues.length?Ic(k.issues):nh),k)):(_&&(_.issues=y.issues.length?Ic(y.issues):nh),y)};t._zod.parse=a,t._zod.run===s&&(t._zod.run=a)})}};function Zr(){return tS}function Ro(t,e){let r=t[Pc]?.backEdges;return r!==void 0&&rh(e)&&r.has(e)}var Gr={};nt(Gr,{ar:()=>oh,az:()=>sh,be:()=>lh,bg:()=>uh,bn:()=>ch,ca:()=>dh,ckb:()=>fh,cs:()=>ph,da:()=>mh,de:()=>hh,el:()=>gh,en:()=>Do,eo:()=>yh,es:()=>vh,fa:()=>bh,fi:()=>wh,fr:()=>Sh,frCA:()=>_h,gu:()=>xh,he:()=>kh,hi:()=>$h,hr:()=>Eh,hu:()=>Th,hy:()=>Ih,id:()=>Ph,is:()=>Oh,it:()=>Nh,ja:()=>Rh,ka:()=>Dh,kh:()=>Ch,km:()=>Co,kn:()=>zh,ko:()=>Uh,lt:()=>Lh,mk:()=>jh,ms:()=>Fh,ne:()=>Bh,nl:()=>Vh,nn:()=>Zh,no:()=>Wh,ota:()=>Gh,pl:()=>Hh,ps:()=>Kh,pt:()=>Jh,ptBR:()=>Xh,ro:()=>Yh,ru:()=>Qh,sk:()=>eg,sl:()=>tg,sv:()=>ng,ta:()=>rg,tg:()=>ig,th:()=>og,tk:()=>sg,tr:()=>ag,ua:()=>lg,uk:()=>zo,ur:()=>ug,uz:()=>cg,vi:()=>dg,yo:()=>mg,zhCN:()=>fg,zhTW:()=>pg});var nS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"\\u0645\\u062F\\u062E\\u0644\",email:\"\\u0628\\u0631\\u064A\\u062F \\u0625\\u0644\\u0643\\u062A\\u0631\\u0648\\u0646\\u064A\",url:\"\\u0631\\u0627\\u0628\\u0637\",emoji:\"\\u0625\\u064A\\u0645\\u0648\\u062C\\u064A\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"\\u062A\\u0627\\u0631\\u064A\\u062E \\u0648\\u0648\\u0642\\u062A \\u0628\\u0645\\u0639\\u064A\\u0627\\u0631 ISO\",date:\"\\u062A\\u0627\\u0631\\u064A\\u062E \\u0628\\u0645\\u0639\\u064A\\u0627\\u0631 ISO\",time:\"\\u0648\\u0642\\u062A \\u0628\\u0645\\u0639\\u064A\\u0627\\u0631 ISO\",duration:\"\\u0645\\u062F\\u0629 \\u0628\\u0645\\u0639\\u064A\\u0627\\u0631 ISO\",ipv4:\"\\u0639\\u0646\\u0648\\u0627\\u0646 IPv4\",ipv6:\"\\u0639\\u0646\\u0648\\u0627\\u0646 IPv6\",mac:\"\\u0639\\u0646\\u0648\\u0627\\u0646 MAC\",cidrv4:\"\\u0645\\u062F\\u0649 \\u0639\\u0646\\u0627\\u0648\\u064A\\u0646 \\u0628\\u0635\\u064A\\u063A\\u0629 IPv4\",cidrv6:\"\\u0645\\u062F\\u0649 \\u0639\\u0646\\u0627\\u0648\\u064A\\u0646 \\u0628\\u0635\\u064A\\u063A\\u0629 IPv6\",base64:\"\\u0646\\u064E\\u0635 \\u0628\\u062A\\u0631\\u0645\\u064A\\u0632 base64-encoded\",base64url:\"\\u0646\\u064E\\u0635 \\u0628\\u062A\\u0631\\u0645\\u064A\\u0632 base64url-encoded\",json_string:\"\\u0646\\u064E\\u0635 \\u0639\\u0644\\u0649 \\u0647\\u064A\\u0626\\u0629 JSON\",e164:\"\\u0631\\u0642\\u0645 \\u0647\\u0627\\u062A\\u0641 \\u0628\\u0645\\u0639\\u064A\\u0627\\u0631 E.164\",credit_card:\"\\u0631\\u0642\\u0645 \\u0628\\u0637\\u0627\\u0642\\u0629 \\u0627\\u0644\\u0627\\u0626\\u062A\\u0645\\u0627\\u0646\",currency_code:\"\\u0631\\u0645\\u0632 \\u0627\\u0644\\u0639\\u0645\\u0644\\u0629\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"\\u0645\\u062F\\u062E\\u0644\"},i={nan:\"NaN\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.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 ${n.expected}\\u060C \\u0648\\u0644\\u0643\\u0646 \\u062A\\u0645 \\u0625\\u062F\\u062E\\u0627\\u0644 ${a}`:`\\u0645\\u062F\\u062E\\u0644\\u0627\\u062A \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644\\u0629: \\u064A\\u0641\\u062A\\u0631\\u0636 \\u0625\\u062F\\u062E\\u0627\\u0644 ${o}\\u060C \\u0648\\u0644\\u0643\\u0646 \\u062A\\u0645 \\u0625\\u062F\\u062E\\u0627\\u0644 ${a}`}case\"invalid_value\":return n.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 ${b(n.values[0])}`:`\\u0627\\u062E\\u062A\\u064A\\u0627\\u0631 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644: \\u064A\\u062A\\u0648\\u0642\\u0639 \\u0627\\u0646\\u062A\\u0642\\u0627\\u0621 \\u0623\\u062D\\u062F \\u0647\\u0630\\u0647 \\u0627\\u0644\\u062E\\u064A\\u0627\\u0631\\u0627\\u062A: ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?` \\u0623\\u0643\\u0628\\u0631 \\u0645\\u0646 \\u0627\\u0644\\u0644\\u0627\\u0632\\u0645: \\u064A\\u0641\\u062A\\u0631\\u0636 \\u0623\\u0646 \\u062A\\u0643\\u0648\\u0646 ${n.origin??\"\\u0627\\u0644\\u0642\\u064A\\u0645\\u0629\"} ${o} ${n.maximum.toString()} ${s.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 ${n.origin??\"\\u0627\\u0644\\u0642\\u064A\\u0645\\u0629\"} ${o} ${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`\\u0623\\u0635\\u063A\\u0631 \\u0645\\u0646 \\u0627\\u0644\\u0644\\u0627\\u0632\\u0645: \\u064A\\u0641\\u062A\\u0631\\u0636 \\u0644\\u0640 ${n.origin} \\u0623\\u0646 \\u064A\\u0643\\u0648\\u0646 ${o} ${n.minimum.toString()} ${s.unit}`:`\\u0623\\u0635\\u063A\\u0631 \\u0645\\u0646 \\u0627\\u0644\\u0644\\u0627\\u0632\\u0645: \\u064A\\u0641\\u062A\\u0631\\u0636 \\u0644\\u0640 ${n.origin} \\u0623\\u0646 \\u064A\\u0643\\u0648\\u0646 ${o} ${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`\\u0646\\u064E\\u0635 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644: \\u064A\\u062C\\u0628 \\u0623\\u0646 \\u064A\\u0628\\u062F\\u0623 \\u0628\\u0640 \"${n.prefix}\"`:o.format===\"ends_with\"?`\\u0646\\u064E\\u0635 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644: \\u064A\\u062C\\u0628 \\u0623\\u0646 \\u064A\\u0646\\u062A\\u0647\\u064A \\u0628\\u0640 \"${o.suffix}\"`:o.format===\"includes\"?`\\u0646\\u064E\\u0635 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644: \\u064A\\u062C\\u0628 \\u0623\\u0646 \\u064A\\u062A\\u0636\\u0645\\u0651\\u064E\\u0646 \"${o.includes}\"`:o.format===\"regex\"?`\\u0646\\u064E\\u0635 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644: \\u064A\\u062C\\u0628 \\u0623\\u0646 \\u064A\\u0637\\u0627\\u0628\\u0642 \\u0627\\u0644\\u0646\\u0645\\u0637 ${o.pattern}`:`${r[o.format]??n.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 ${n.divisor}`;case\"unrecognized_keys\":return`\\u0645\\u0639\\u0631\\u0641${n.keys.length>1?\"\\u0627\\u062A\":\"\"} \\u063A\\u0631\\u064A\\u0628${n.keys.length>1?\"\\u0629\":\"\"}: ${g(n.keys,\"\\u060C \")}`;case\"invalid_key\":return`\\u0645\\u0639\\u0631\\u0641 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644 \\u0641\\u064A ${n.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 ${n.origin}`;default:return\"\\u0645\\u062F\\u062E\\u0644 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644\"}}};function oh(){return{localeError:nS()}}var rS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"input\",email:\"email address\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO datetime\",date:\"ISO date\",time:\"ISO time\",duration:\"ISO duration\",ipv4:\"IPv4 address\",ipv6:\"IPv6 address\",mac:\"MAC address\",cidrv4:\"IPv4 range\",cidrv6:\"IPv6 range\",base64:\"base64-encoded string\",base64url:\"base64url-encoded string\",json_string:\"JSON string\",e164:\"E.164 number\",credit_card:\"kredit kart\\u0131 n\\xF6mr\\u0259si\",currency_code:\"valyuta kodu\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"input\"},i={nan:\"NaN\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Yanl\\u0131\\u015F d\\u0259y\\u0259r: g\\xF6zl\\u0259nil\\u0259n instanceof ${n.expected}, daxil olan ${a}`:`Yanl\\u0131\\u015F d\\u0259y\\u0259r: g\\xF6zl\\u0259nil\\u0259n ${o}, daxil olan ${a}`}case\"invalid_value\":return n.values.length===1?`Yanl\\u0131\\u015F d\\u0259y\\u0259r: g\\xF6zl\\u0259nil\\u0259n ${b(n.values[0])}`:`Yanl\\u0131\\u015F se\\xE7im: a\\u015Fa\\u011F\\u0131dak\\u0131lardan biri olmal\\u0131d\\u0131r: ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`\\xC7ox b\\xF6y\\xFCk: g\\xF6zl\\u0259nil\\u0259n ${n.origin??\"d\\u0259y\\u0259r\"} ${o}${n.maximum.toString()} ${s.unit??\"element\"}`:`\\xC7ox b\\xF6y\\xFCk: g\\xF6zl\\u0259nil\\u0259n ${n.origin??\"d\\u0259y\\u0259r\"} ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`\\xC7ox ki\\xE7ik: g\\xF6zl\\u0259nil\\u0259n ${n.origin} ${o}${n.minimum.toString()} ${s.unit}`:`\\xC7ox ki\\xE7ik: g\\xF6zl\\u0259nil\\u0259n ${n.origin} ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`Yanl\\u0131\\u015F m\\u0259tn: \"${o.prefix}\" il\\u0259 ba\\u015Flamal\\u0131d\\u0131r`:o.format===\"ends_with\"?`Yanl\\u0131\\u015F m\\u0259tn: \"${o.suffix}\" il\\u0259 bitm\\u0259lidir`:o.format===\"includes\"?`Yanl\\u0131\\u015F m\\u0259tn: \"${o.includes}\" daxil olmal\\u0131d\\u0131r`:o.format===\"regex\"?`Yanl\\u0131\\u015F m\\u0259tn: ${o.pattern} \\u015Fablonuna uy\\u011Fun olmal\\u0131d\\u0131r`:`Yanl\\u0131\\u015F ${r[o.format]??n.format}`}case\"not_multiple_of\":return`Yanl\\u0131\\u015F \\u0259d\\u0259d: ${n.divisor} il\\u0259 b\\xF6l\\xFCn\\u0259 bil\\u0259n olmal\\u0131d\\u0131r`;case\"unrecognized_keys\":return`Tan\\u0131nmayan a\\xE7ar${n.keys.length>1?\"lar\":\"\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`${n.origin} daxilind\\u0259 yanl\\u0131\\u015F a\\xE7ar`;case\"invalid_union\":return\"Yanl\\u0131\\u015F d\\u0259y\\u0259r\";case\"invalid_element\":return`${n.origin} daxilind\\u0259 yanl\\u0131\\u015F d\\u0259y\\u0259r`;default:return\"Yanl\\u0131\\u015F d\\u0259y\\u0259r\"}}};function sh(){return{localeError:rS()}}function ah(t,e,r,i){let n=Math.abs(t),o=n%10,s=n%100;return s>=11&&s<=19?i:o===1?e:o>=2&&o<=4?r:i}var iS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"\\u0443\\u0432\\u043E\\u0434\",email:\"email \\u0430\\u0434\\u0440\\u0430\\u0441\",url:\"URL\",emoji:\"\\u044D\\u043C\\u043E\\u0434\\u0437\\u0456\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO \\u0434\\u0430\\u0442\\u0430 \\u0456 \\u0447\\u0430\\u0441\",date:\"ISO \\u0434\\u0430\\u0442\\u0430\",time:\"ISO \\u0447\\u0430\\u0441\",duration:\"ISO \\u043F\\u0440\\u0430\\u0446\\u044F\\u0433\\u043B\\u0430\\u0441\\u0446\\u044C\",ipv4:\"IPv4 \\u0430\\u0434\\u0440\\u0430\\u0441\",ipv6:\"IPv6 \\u0430\\u0434\\u0440\\u0430\\u0441\",mac:\"MAC \\u0430\\u0434\\u0440\\u0430\\u0441\",cidrv4:\"IPv4 \\u0434\\u044B\\u044F\\u043F\\u0430\\u0437\\u043E\\u043D\",cidrv6:\"IPv6 \\u0434\\u044B\\u044F\\u043F\\u0430\\u0437\\u043E\\u043D\",base64:\"\\u0440\\u0430\\u0434\\u043E\\u043A \\u0443 \\u0444\\u0430\\u0440\\u043C\\u0430\\u0446\\u0435 base64\",base64url:\"\\u0440\\u0430\\u0434\\u043E\\u043A \\u0443 \\u0444\\u0430\\u0440\\u043C\\u0430\\u0446\\u0435 base64url\",json_string:\"JSON \\u0440\\u0430\\u0434\\u043E\\u043A\",e164:\"\\u043D\\u0443\\u043C\\u0430\\u0440 E.164\",credit_card:\"\\u043D\\u0443\\u043C\\u0430\\u0440 \\u043A\\u0440\\u044D\\u0434\\u044B\\u0442\\u043D\\u0430\\u0439 \\u043A\\u0430\\u0440\\u0442\\u044B\",currency_code:\"\\u043A\\u043E\\u0434 \\u0432\\u0430\\u043B\\u044E\\u0442\\u044B\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"\\u0443\\u0432\\u043E\\u0434\"},i={nan:\"NaN\",number:\"\\u043B\\u0456\\u043A\",array:\"\\u043C\\u0430\\u0441\\u0456\\u045E\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u045E\\u0432\\u043E\\u0434: \\u0447\\u0430\\u043A\\u0430\\u045E\\u0441\\u044F instanceof ${n.expected}, \\u0430\\u0442\\u0440\\u044B\\u043C\\u0430\\u043D\\u0430 ${a}`:`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u045E\\u0432\\u043E\\u0434: \\u0447\\u0430\\u043A\\u0430\\u045E\\u0441\\u044F ${o}, \\u0430\\u0442\\u0440\\u044B\\u043C\\u0430\\u043D\\u0430 ${a}`}case\"invalid_value\":return n.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 ${b(n.values[0])}`:`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u0432\\u0430\\u0440\\u044B\\u044F\\u043D\\u0442: \\u0447\\u0430\\u043A\\u0430\\u045E\\u0441\\u044F \\u0430\\u0434\\u0437\\u0456\\u043D \\u0437 ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);if(s){let a=Number(n.maximum),l=ah(a,s.unit.one,s.unit.few,s.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 ${n.origin??\"\\u0437\\u043D\\u0430\\u0447\\u044D\\u043D\\u043D\\u0435\"} \\u043F\\u0430\\u0432\\u0456\\u043D\\u043D\\u0430 ${s.verb} ${o}${n.maximum.toString()} ${l}`}return`\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u0430 \\u0432\\u044F\\u043B\\u0456\\u043A\\u0456: \\u0447\\u0430\\u043A\\u0430\\u043B\\u0430\\u0441\\u044F, \\u0448\\u0442\\u043E ${n.origin??\"\\u0437\\u043D\\u0430\\u0447\\u044D\\u043D\\u043D\\u0435\"} \\u043F\\u0430\\u0432\\u0456\\u043D\\u043D\\u0430 \\u0431\\u044B\\u0446\\u044C ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);if(s){let a=Number(n.minimum),l=ah(a,s.unit.one,s.unit.few,s.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 ${n.origin} \\u043F\\u0430\\u0432\\u0456\\u043D\\u043D\\u0430 ${s.verb} ${o}${n.minimum.toString()} ${l}`}return`\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u0430 \\u043C\\u0430\\u043B\\u044B: \\u0447\\u0430\\u043A\\u0430\\u043B\\u0430\\u0441\\u044F, \\u0448\\u0442\\u043E ${n.origin} \\u043F\\u0430\\u0432\\u0456\\u043D\\u043D\\u0430 \\u0431\\u044B\\u0446\\u044C ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u0440\\u0430\\u0434\\u043E\\u043A: \\u043F\\u0430\\u0432\\u0456\\u043D\\u0435\\u043D \\u043F\\u0430\\u0447\\u044B\\u043D\\u0430\\u0446\\u0446\\u0430 \\u0437 \"${o.prefix}\"`:o.format===\"ends_with\"?`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u0440\\u0430\\u0434\\u043E\\u043A: \\u043F\\u0430\\u0432\\u0456\\u043D\\u0435\\u043D \\u0437\\u0430\\u043A\\u0430\\u043D\\u0447\\u0432\\u0430\\u0446\\u0446\\u0430 \\u043D\\u0430 \"${o.suffix}\"`:o.format===\"includes\"?`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u0440\\u0430\\u0434\\u043E\\u043A: \\u043F\\u0430\\u0432\\u0456\\u043D\\u0435\\u043D \\u0437\\u043C\\u044F\\u0448\\u0447\\u0430\\u0446\\u044C \"${o.includes}\"`:o.format===\"regex\"?`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u0440\\u0430\\u0434\\u043E\\u043A: \\u043F\\u0430\\u0432\\u0456\\u043D\\u0435\\u043D \\u0430\\u0434\\u043F\\u0430\\u0432\\u044F\\u0434\\u0430\\u0446\\u044C \\u0448\\u0430\\u0431\\u043B\\u043E\\u043D\\u0443 ${o.pattern}`:`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B ${r[o.format]??n.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 ${n.divisor}`;case\"unrecognized_keys\":return`\\u041D\\u0435\\u0440\\u0430\\u0441\\u043F\\u0430\\u0437\\u043D\\u0430\\u043D\\u044B ${n.keys.length>1?\"\\u043A\\u043B\\u044E\\u0447\\u044B\":\"\\u043A\\u043B\\u044E\\u0447\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u043A\\u043B\\u044E\\u0447 \\u0443 ${n.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 ${n.origin}`;default:return\"\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u045E\\u0432\\u043E\\u0434\"}}};function lh(){return{localeError:iS()}}var oS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"\\u0432\\u0445\\u043E\\u0434\",email:\"\\u0438\\u043C\\u0435\\u0439\\u043B \\u0430\\u0434\\u0440\\u0435\\u0441\",url:\"URL\",emoji:\"\\u0435\\u043C\\u043E\\u0434\\u0436\\u0438\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO \\u0432\\u0440\\u0435\\u043C\\u0435\",date:\"ISO \\u0434\\u0430\\u0442\\u0430\",time:\"ISO \\u0432\\u0440\\u0435\\u043C\\u0435\",duration:\"ISO \\u043F\\u0440\\u043E\\u0434\\u044A\\u043B\\u0436\\u0438\\u0442\\u0435\\u043B\\u043D\\u043E\\u0441\\u0442\",ipv4:\"IPv4 \\u0430\\u0434\\u0440\\u0435\\u0441\",ipv6:\"IPv6 \\u0430\\u0434\\u0440\\u0435\\u0441\",mac:\"MAC \\u0430\\u0434\\u0440\\u0435\\u0441\",cidrv4:\"IPv4 \\u0434\\u0438\\u0430\\u043F\\u0430\\u0437\\u043E\\u043D\",cidrv6:\"IPv6 \\u0434\\u0438\\u0430\\u043F\\u0430\\u0437\\u043E\\u043D\",base64:\"base64-\\u043A\\u043E\\u0434\\u0438\\u0440\\u0430\\u043D \\u043D\\u0438\\u0437\",base64url:\"base64url-\\u043A\\u043E\\u0434\\u0438\\u0440\\u0430\\u043D \\u043D\\u0438\\u0437\",json_string:\"JSON \\u043D\\u0438\\u0437\",e164:\"E.164 \\u043D\\u043E\\u043C\\u0435\\u0440\",credit_card:\"\\u043D\\u043E\\u043C\\u0435\\u0440 \\u043D\\u0430 \\u043A\\u0440\\u0435\\u0434\\u0438\\u0442\\u043D\\u0430 \\u043A\\u0430\\u0440\\u0442\\u0430\",currency_code:\"\\u043A\\u043E\\u0434 \\u043D\\u0430 \\u0432\\u0430\\u043B\\u0443\\u0442\\u0430\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"\\u0432\\u0445\\u043E\\u0434\"},i={nan:\"NaN\",number:\"\\u0447\\u0438\\u0441\\u043B\\u043E\",array:\"\\u043C\\u0430\\u0441\\u0438\\u0432\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u0432\\u0445\\u043E\\u0434: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430\\u043D instanceof ${n.expected}, \\u043F\\u043E\\u043B\\u0443\\u0447\\u0435\\u043D ${a}`:`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u0432\\u0445\\u043E\\u0434: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430\\u043D ${o}, \\u043F\\u043E\\u043B\\u0443\\u0447\\u0435\\u043D ${a}`}case\"invalid_value\":return n.values.length===1?`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u0432\\u0445\\u043E\\u0434: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430\\u043D ${b(n.values[0])}`:`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u0430 \\u043E\\u043F\\u0446\\u0438\\u044F: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430\\u043D\\u043E \\u0435\\u0434\\u043D\\u043E \\u043E\\u0442 ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`\\u0422\\u0432\\u044A\\u0440\\u0434\\u0435 \\u0433\\u043E\\u043B\\u044F\\u043C\\u043E: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430 \\u0441\\u0435 ${n.origin??\"\\u0441\\u0442\\u043E\\u0439\\u043D\\u043E\\u0441\\u0442\"} \\u0434\\u0430 \\u0441\\u044A\\u0434\\u044A\\u0440\\u0436\\u0430 ${o}${n.maximum.toString()} ${s.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 ${n.origin??\"\\u0441\\u0442\\u043E\\u0439\\u043D\\u043E\\u0441\\u0442\"} \\u0434\\u0430 \\u0431\\u044A\\u0434\\u0435 ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`\\u0422\\u0432\\u044A\\u0440\\u0434\\u0435 \\u043C\\u0430\\u043B\\u043A\\u043E: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430 \\u0441\\u0435 ${n.origin} \\u0434\\u0430 \\u0441\\u044A\\u0434\\u044A\\u0440\\u0436\\u0430 ${o}${n.minimum.toString()} ${s.unit}`:`\\u0422\\u0432\\u044A\\u0440\\u0434\\u0435 \\u043C\\u0430\\u043B\\u043A\\u043E: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430 \\u0441\\u0435 ${n.origin} \\u0434\\u0430 \\u0431\\u044A\\u0434\\u0435 ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;if(o.format===\"starts_with\")return`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u043D\\u0438\\u0437: \\u0442\\u0440\\u044F\\u0431\\u0432\\u0430 \\u0434\\u0430 \\u0437\\u0430\\u043F\\u043E\\u0447\\u0432\\u0430 \\u0441 \"${o.prefix}\"`;if(o.format===\"ends_with\")return`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u043D\\u0438\\u0437: \\u0442\\u0440\\u044F\\u0431\\u0432\\u0430 \\u0434\\u0430 \\u0437\\u0430\\u0432\\u044A\\u0440\\u0448\\u0432\\u0430 \\u0441 \"${o.suffix}\"`;if(o.format===\"includes\")return`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u043D\\u0438\\u0437: \\u0442\\u0440\\u044F\\u0431\\u0432\\u0430 \\u0434\\u0430 \\u0432\\u043A\\u043B\\u044E\\u0447\\u0432\\u0430 \"${o.includes}\"`;if(o.format===\"regex\")return`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u043D\\u0438\\u0437: \\u0442\\u0440\\u044F\\u0431\\u0432\\u0430 \\u0434\\u0430 \\u0441\\u044A\\u0432\\u043F\\u0430\\u0434\\u0430 \\u0441 ${o.pattern}`;let s=\"\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D\";return o.format===\"emoji\"&&(s=\"\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u043E\"),o.format===\"datetime\"&&(s=\"\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u043E\"),o.format===\"date\"&&(s=\"\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u0430\"),o.format===\"time\"&&(s=\"\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u043E\"),o.format===\"duration\"&&(s=\"\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u0430\"),`${s} ${r[o.format]??n.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 ${n.divisor}`;case\"unrecognized_keys\":return`\\u041D\\u0435\\u0440\\u0430\\u0437\\u043F\\u043E\\u0437\\u043D\\u0430\\u0442${n.keys.length>1?\"\\u0438\":\"\"} \\u043A\\u043B\\u044E\\u0447${n.keys.length>1?\"\\u043E\\u0432\\u0435\":\"\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u043A\\u043B\\u044E\\u0447 \\u0432 ${n.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 ${n.origin}`;default:return\"\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u0432\\u0445\\u043E\\u0434\"}}};function uh(){return{localeError:oS()}}var sS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"\\u0987\\u09A8\\u09AA\\u09C1\\u099F\",email:\"\\u0987\\u09AE\\u09C7\\u0987\\u09B2 \\u09A0\\u09BF\\u0995\\u09BE\\u09A8\\u09BE\",url:\"URL\",emoji:\"\\u0987\\u09AE\\u09CB\\u099C\\u09BF\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO \\u09A4\\u09BE\\u09B0\\u09BF\\u0996 \\u0993 \\u09B8\\u09AE\\u09AF\\u09BC\",date:\"ISO \\u09A4\\u09BE\\u09B0\\u09BF\\u0996\",time:\"ISO \\u09B8\\u09AE\\u09AF\\u09BC\",duration:\"ISO \\u09B8\\u09AE\\u09AF\\u09BC\\u0995\\u09BE\\u09B2\",ipv4:\"IPv4 \\u09A0\\u09BF\\u0995\\u09BE\\u09A8\\u09BE\",ipv6:\"IPv6 \\u09A0\\u09BF\\u0995\\u09BE\\u09A8\\u09BE\",mac:\"MAC \\u09A0\\u09BF\\u0995\\u09BE\\u09A8\\u09BE\",cidrv4:\"IPv4 \\u09B0\\u09C7\\u099E\\u09CD\\u099C\",cidrv6:\"IPv6 \\u09B0\\u09C7\\u099E\\u09CD\\u099C\",base64:\"base64-\\u098F\\u09A8\\u0995\\u09CB\\u09A1\\u09C7\\u09A1 \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982\",base64url:\"base64url-\\u098F\\u09A8\\u0995\\u09CB\\u09A1\\u09C7\\u09A1 \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982\",json_string:\"JSON \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982\",e164:\"E.164 \\u09A8\\u09AE\\u09CD\\u09AC\\u09B0\",credit_card:\"\\u0995\\u09CD\\u09B0\\u09C7\\u09A1\\u09BF\\u099F \\u0995\\u09BE\\u09B0\\u09CD\\u09A1 \\u09A8\\u09AE\\u09CD\\u09AC\\u09B0\",currency_code:\"\\u09AE\\u09C1\\u09A6\\u09CD\\u09B0\\u09BE \\u0995\\u09CB\\u09A1\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"\\u0987\\u09A8\\u09AA\\u09C1\\u099F\"},i={nan:\"NaN\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return`\\u0985\\u09AC\\u09C8\\u09A7 \\u0987\\u09A8\\u09AA\\u09C1\\u099F: \\u09AA\\u09CD\\u09B0\\u09A4\\u09CD\\u09AF\\u09BE\\u09B6\\u09BF\\u09A4 ${o}, \\u09AA\\u09CD\\u09B0\\u09BE\\u09AA\\u09CD\\u09A4 ${a}`}case\"invalid_value\":return n.values.length===1?`\\u0985\\u09AC\\u09C8\\u09A7 \\u0987\\u09A8\\u09AA\\u09C1\\u099F: \\u09AA\\u09CD\\u09B0\\u09A4\\u09CD\\u09AF\\u09BE\\u09B6\\u09BF\\u09A4 ${b(n.values[0])}`:`\\u0985\\u09AC\\u09C8\\u09A7 \\u0985\\u09AA\\u09B6\\u09A8: ${g(n.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 o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`\\u0985\\u09A8\\u09C7\\u0995 \\u09AC\\u09A1\\u09BC: ${n.origin??\"\\u09AE\\u09BE\\u09A8\"} ${o}${n.maximum.toString()} ${s.unit??\"\\u098F\\u09B2\\u09BF\\u09AE\\u09C7\\u09A8\\u09CD\\u099F\"} \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`:`\\u0985\\u09A8\\u09C7\\u0995 \\u09AC\\u09A1\\u09BC: ${n.origin??\"\\u09AE\\u09BE\\u09A8\"} ${o}${n.maximum.toString()} \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`\\u0985\\u09A8\\u09C7\\u0995 \\u099B\\u09CB\\u099F: ${n.origin} ${o}${n.minimum.toString()} ${s.unit} \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`:`\\u0985\\u09A8\\u09C7\\u0995 \\u099B\\u09CB\\u099F: ${n.origin} ${o}${n.minimum.toString()} \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`\\u0985\\u09AC\\u09C8\\u09A7 \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982: \"${o.prefix}\" \\u09A6\\u09BF\\u09AF\\u09BC\\u09C7 \\u09B6\\u09C1\\u09B0\\u09C1 \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`:o.format===\"ends_with\"?`\\u0985\\u09AC\\u09C8\\u09A7 \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982: \"${o.suffix}\" \\u09A6\\u09BF\\u09AF\\u09BC\\u09C7 \\u09B6\\u09C7\\u09B7 \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`:o.format===\"includes\"?`\\u0985\\u09AC\\u09C8\\u09A7 \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982: \"${o.includes}\" \\u0985\\u09A8\\u09CD\\u09A4\\u09B0\\u09CD\\u09AD\\u09C1\\u0995\\u09CD\\u09A4 \\u09A5\\u09BE\\u0995\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`:o.format===\"regex\"?`\\u0985\\u09AC\\u09C8\\u09A7 \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982: ${o.pattern} \\u09AA\\u09CD\\u09AF\\u09BE\\u099F\\u09BE\\u09B0\\u09CD\\u09A8 \\u09AE\\u09BF\\u09B2\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`:`\\u0985\\u09AC\\u09C8\\u09A7 ${r[o.format]??n.format}`}case\"not_multiple_of\":return`\\u0985\\u09AC\\u09C8\\u09A7 \\u09A8\\u09AE\\u09CD\\u09AC\\u09B0: ${n.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${n.keys.length>1?\"\\u0997\\u09C1\\u09B2\\u09CB\":\"\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`${n.origin} \\u098F \\u0985\\u09AC\\u09C8\\u09A7 \\u0995\\u09C0`;case\"invalid_union\":return n.options&&Array.isArray(n.options)&&n.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 ${n.options.map(s=>`'${s}'`).join(\" | \")}`:\"\\u0985\\u09AC\\u09C8\\u09A7 \\u0987\\u09A8\\u09AA\\u09C1\\u099F\";case\"invalid_element\":return`${n.origin} \\u098F \\u0985\\u09AC\\u09C8\\u09A7 \\u09AE\\u09BE\\u09A8`;default:return\"\\u0985\\u09AC\\u09C8\\u09A7 \\u0987\\u09A8\\u09AA\\u09C1\\u099F\"}}};function ch(){return{localeError:sS()}}var aS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"entrada\",email:\"adre\\xE7a electr\\xF2nica\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"data i hora ISO\",date:\"data ISO\",time:\"hora ISO\",duration:\"durada ISO\",ipv4:\"adre\\xE7a IPv4\",ipv6:\"adre\\xE7a IPv6\",mac:\"adre\\xE7a MAC\",cidrv4:\"rang IPv4\",cidrv6:\"rang IPv6\",base64:\"cadena codificada en base64\",base64url:\"cadena codificada en base64url\",json_string:\"cadena JSON\",e164:\"n\\xFAmero E.164\",credit_card:\"n\\xFAmero de targeta de cr\\xE8dit\",currency_code:\"codi de moneda\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"entrada\"},i={nan:\"NaN\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Tipus inv\\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${a}`:`Tipus inv\\xE0lid: s'esperava ${o}, s'ha rebut ${a}`}case\"invalid_value\":return n.values.length===1?`Valor inv\\xE0lid: s'esperava ${b(n.values[0])}`:`Opci\\xF3 inv\\xE0lida: s'esperava una de ${g(n.values,\" o \")}`;case\"too_big\":{let o=n.inclusive?\"com a m\\xE0xim\":\"menys de\",s=e(n.origin);return s?`Massa gran: s'esperava que ${n.origin??\"el valor\"} contingu\\xE9s ${o} ${n.maximum.toString()} ${s.unit??\"elements\"}`:`Massa gran: s'esperava que ${n.origin??\"el valor\"} fos ${o} ${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\"com a m\\xEDnim\":\"m\\xE9s de\",s=e(n.origin);return s?`Massa petit: s'esperava que ${n.origin} contingu\\xE9s ${o} ${n.minimum.toString()} ${s.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${o} ${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`Format inv\\xE0lid: ha de comen\\xE7ar amb \"${o.prefix}\"`:o.format===\"ends_with\"?`Format inv\\xE0lid: ha d'acabar amb \"${o.suffix}\"`:o.format===\"includes\"?`Format inv\\xE0lid: ha d'incloure \"${o.includes}\"`:o.format===\"regex\"?`Format inv\\xE0lid: ha de coincidir amb el patr\\xF3 ${o.pattern}`:`Format inv\\xE0lid per a ${r[o.format]??n.format}`}case\"not_multiple_of\":return`N\\xFAmero inv\\xE0lid: ha de ser m\\xFAltiple de ${n.divisor}`;case\"unrecognized_keys\":return`Clau${n.keys.length>1?\"s\":\"\"} no reconeguda${n.keys.length>1?\"s\":\"\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`Clau inv\\xE0lida a ${n.origin}`;case\"invalid_union\":return\"Entrada inv\\xE0lida\";case\"invalid_element\":return`Element inv\\xE0lid a ${n.origin}`;default:return\"Entrada inv\\xE0lida\"}}};function dh(){return{localeError:aS()}}var lS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"regex\",email:\"\\u0626\\u06CC\\u0645\\u06D5\\u06CC\\u06B5\",url:\"\\u0628\\u06D5\\u0633\\u062A\\u06D5\\u0631 (URL)\",emoji:\"\\u0626\\u06CC\\u0645\\u06C6\\u062C\\u06CC\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"\\u0695\\u06CE\\u06A9\\u06D5\\u0648\\u062A \\u0648 \\u06A9\\u0627\\u062A\",date:\"\\u0695\\u06CE\\u06A9\\u06D5\\u0648\\u062A\",time:\"\\u06A9\\u0627\\u062A\",duration:\"\\u0645\\u0627\\u0648\\u06D5\",ipv4:\"\\u0646\\u0627\\u0648\\u0646\\u06CC\\u0634\\u0627\\u0646\\u06CC IPv4\",ipv6:\"\\u0646\\u0627\\u0648\\u0646\\u06CC\\u0634\\u0627\\u0646\\u06CC IPv6\",mac:\"\\u0646\\u0627\\u0648\\u0646\\u06CC\\u0634\\u0627\\u0646\\u06CC MAC\",cidrv4:\"\\u0645\\u06D5\\u0648\\u062F\\u0627\\u06CC IPv4\",cidrv6:\"\\u0645\\u06D5\\u0648\\u062F\\u0627\\u06CC IPv6\",base64:\"\\u062F\\u06D5\\u0642\\u06CC base64\",base64url:\"\\u062F\\u06D5\\u0642\\u06CC base64url\",json_string:\"\\u062F\\u06D5\\u0642\\u06CC JSON\",e164:\"\\u0698\\u0645\\u0627\\u0631\\u06D5\\u06CC E.164\",credit_card:\"\\u0698\\u0645\\u0627\\u0631\\u06D5\\u06CC \\u06A9\\u0627\\u0631\\u062A\\u06CC \\u06A9\\u0631\\u06CE\\u062F\\u06CC\\u062A\",currency_code:\"\\u06A9\\u06C6\\u062F\\u06CC \\u062F\\u0631\\u0627\\u0648\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"\\u062A\\u06CE\\u06A9\\u0631\\u062F\\u06D5\"},i={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 n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s,l=[\"\\u0627\",\"\\u0648\",\"\\u06C6\",\"\\u0648\\u0648\",\"\\u06D5\",\"\\u06CC\",\"\\u06CE\"].some(c=>a.endsWith(c))?\"\\u06CC\\u06D5\":\"\\u06D5\",u=/^[a-zA-Z]+$/.test(a);return s===\"null\"||s===\"undefined\"?\"\\u062F\\u0627\\u0648\\u0627\\u06A9\\u0631\\u0627\\u0648\\u06D5\":`\\u0686\\u0627\\u0648\\u06D5\\u0695\\u0648\\u0627\\u0646\\u06A9\\u0631\\u0627\\u0648\\u06D5 ${o} \\u0628\\u06CE\\u062A\\u060C \\u0628\\u06D5\\u06B5\\u0627\\u0645 ${a}${u?\"\":l}`}case\"invalid_value\":return n.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 ${b(n.values[0])} \\u0628\\u06CE\\u062A`:`\\u0647\\u06D5\\u06B5\\u0628\\u0698\\u0627\\u0631\\u062F\\u06D5\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A: \\u0686\\u0627\\u0648\\u06D5\\u0695\\u0648\\u0627\\u0646\\u06A9\\u0631\\u0627\\u0648\\u06D5 \\u06CC\\u06D5\\u06A9\\u06CE\\u06A9 \\u0628\\u06CE\\u062A \\u0644\\u06D5 ${g(n.values,\"|\")}`;case\"too_big\":{let o=e(n.origin);return o?`\\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u0628\\u06D5 \\u0644\\u0627\\u06CC\\u06D5\\u0646\\u06CC \\u0632\\u06C6\\u0631\\u06D5\\u0648\\u06D5 ${n.maximum.toString()} ${o.unit} ${o.verb}`:`\\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u0628\\u06D5 \\u0644\\u0627\\u06CC\\u06D5\\u0646\\u06CC \\u0632\\u06C6\\u0631\\u06D5\\u0648\\u06D5 ${n.maximum.toString()} \\u0628\\u06CE\\u062A`}case\"too_small\":{let o=e(n.origin);return o?`\\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u0628\\u06D5 \\u0644\\u0627\\u06CC\\u06D5\\u0646\\u06CC \\u06A9\\u06D5\\u0645\\u06D5\\u0648\\u06D5 ${n.minimum.toString()} ${o.unit} ${o.verb}`:`\\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u0628\\u06D5 \\u0644\\u0627\\u06CC\\u06D5\\u0646\\u06CC \\u06A9\\u06D5\\u0645\\u06D5\\u0648\\u06D5 ${n.minimum.toString()} \\u0628\\u06CE\\u062A`}case\"invalid_format\":{let o=n;return o.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 \"${o.prefix}\"`:o.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 \"${o.suffix}\"`:o.format===\"includes\"?`\\u062F\\u06D5\\u0642\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A: \\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \"${o.includes}\" \\u0644\\u06D5\\u062E\\u06C6\\u0628\\u06AF\\u0631\\u06CE\\u062A`:o.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 ${o.pattern} \\u0628\\u06AF\\u0648\\u0646\\u062C\\u06CE\\u062A`:`\\u0628\\u06D5\\u0647\\u0627\\u06CC ${r[o.format]??n.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 ${n.divisor}`;case\"unrecognized_keys\":return`\\u06A9\\u0644\\u06CC\\u0644\\u06CC \\u0646\\u06D5\\u0646\\u0627\\u0633\\u0631\\u0627\\u0648: ${g(n.keys,\", \")}`;case\"invalid_key\":return`\\u06A9\\u0644\\u06CC\\u0644\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A \\u0644\\u06D5 ${n.origin}`;case\"invalid_union\":return n.options&&Array.isArray(n.options)&&n.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: ${n.options.map(s=>`'${s}'`).join(\" | \")}`:\"\\u06CC\\u06D5\\u06A9\\u06AF\\u0631\\u062A\\u0646\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A\";case\"invalid_element\":return`${n.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 fh(){return{localeError:lS()}}var uS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"regul\\xE1rn\\xED v\\xFDraz\",email:\"e-mailov\\xE1 adresa\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"datum a \\u010Das ve form\\xE1tu ISO\",date:\"datum ve form\\xE1tu ISO\",time:\"\\u010Das ve form\\xE1tu ISO\",duration:\"doba trv\\xE1n\\xED ISO\",ipv4:\"IPv4 adresa\",ipv6:\"IPv6 adresa\",mac:\"MAC adresa\",cidrv4:\"rozsah IPv4\",cidrv6:\"rozsah IPv6\",base64:\"\\u0159et\\u011Bzec zak\\xF3dovan\\xFD ve form\\xE1tu base64\",base64url:\"\\u0159et\\u011Bzec zak\\xF3dovan\\xFD ve form\\xE1tu base64url\",json_string:\"\\u0159et\\u011Bzec ve form\\xE1tu JSON\",e164:\"\\u010D\\xEDslo E.164\",credit_card:\"\\u010D\\xEDslo kreditn\\xED karty\",currency_code:\"k\\xF3d m\\u011Bny\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"vstup\"},i={nan:\"NaN\",number:\"\\u010D\\xEDslo\",string:\"\\u0159et\\u011Bzec\",function:\"funkce\",array:\"pole\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Neplatn\\xFD vstup: o\\u010Dek\\xE1v\\xE1no instanceof ${n.expected}, obdr\\u017Eeno ${a}`:`Neplatn\\xFD vstup: o\\u010Dek\\xE1v\\xE1no ${o}, obdr\\u017Eeno ${a}`}case\"invalid_value\":return n.values.length===1?`Neplatn\\xFD vstup: o\\u010Dek\\xE1v\\xE1no ${b(n.values[0])}`:`Neplatn\\xE1 mo\\u017Enost: o\\u010Dek\\xE1v\\xE1na jedna z hodnot ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`Hodnota je p\\u0159\\xEDli\\u0161 velk\\xE1: ${n.origin??\"hodnota\"} mus\\xED m\\xEDt ${o}${n.maximum.toString()} ${s.unit??\"prvk\\u016F\"}`:`Hodnota je p\\u0159\\xEDli\\u0161 velk\\xE1: ${n.origin??\"hodnota\"} mus\\xED b\\xFDt ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`Hodnota je p\\u0159\\xEDli\\u0161 mal\\xE1: ${n.origin??\"hodnota\"} mus\\xED m\\xEDt ${o}${n.minimum.toString()} ${s.unit??\"prvk\\u016F\"}`:`Hodnota je p\\u0159\\xEDli\\u0161 mal\\xE1: ${n.origin??\"hodnota\"} mus\\xED b\\xFDt ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`Neplatn\\xFD \\u0159et\\u011Bzec: mus\\xED za\\u010D\\xEDnat na \"${o.prefix}\"`:o.format===\"ends_with\"?`Neplatn\\xFD \\u0159et\\u011Bzec: mus\\xED kon\\u010Dit na \"${o.suffix}\"`:o.format===\"includes\"?`Neplatn\\xFD \\u0159et\\u011Bzec: mus\\xED obsahovat \"${o.includes}\"`:o.format===\"regex\"?`Neplatn\\xFD \\u0159et\\u011Bzec: mus\\xED odpov\\xEDdat vzoru ${o.pattern}`:`Neplatn\\xFD form\\xE1t ${r[o.format]??n.format}`}case\"not_multiple_of\":return`Neplatn\\xE9 \\u010D\\xEDslo: mus\\xED b\\xFDt n\\xE1sobkem ${n.divisor}`;case\"unrecognized_keys\":return`Nezn\\xE1m\\xE9 kl\\xED\\u010De: ${g(n.keys,\", \")}`;case\"invalid_key\":return`Neplatn\\xFD kl\\xED\\u010D v ${n.origin}`;case\"invalid_union\":return\"Neplatn\\xFD vstup\";case\"invalid_element\":return`Neplatn\\xE1 hodnota v ${n.origin}`;default:return\"Neplatn\\xFD vstup\"}}};function ph(){return{localeError:uS()}}var cS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"input\",email:\"e-mailadresse\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO dato- og klokkesl\\xE6t\",date:\"ISO-dato\",time:\"ISO-klokkesl\\xE6t\",duration:\"ISO-varighed\",ipv4:\"IPv4-adresse\",ipv6:\"IPv6-adresse\",mac:\"MAC-adresse\",cidrv4:\"IPv4-spektrum\",cidrv6:\"IPv6-spektrum\",base64:\"base64-kodet streng\",base64url:\"base64url-kodet streng\",json_string:\"JSON-streng\",e164:\"E.164-nummer\",credit_card:\"kreditkortnummer\",currency_code:\"valutakode\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"input\"},i={nan:\"NaN\",string:\"streng\",number:\"tal\",boolean:\"boolean\",array:\"liste\",object:\"objekt\",set:\"s\\xE6t\",file:\"fil\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${a}`:`Ugyldigt input: forventede ${o}, fik ${a}`}case\"invalid_value\":return n.values.length===1?`Ugyldig v\\xE6rdi: forventede ${b(n.values[0])}`:`Ugyldigt valg: forventede en af f\\xF8lgende ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin),a=i[n.origin]??n.origin;return s?`For stor: forventede ${a??\"value\"} ${s.verb} ${o} ${n.maximum.toString()} ${s.unit??\"elementer\"}`:`For stor: forventede ${a??\"value\"} havde ${o} ${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin),a=i[n.origin]??n.origin;return s?`For lille: forventede ${a} ${s.verb} ${o} ${n.minimum.toString()} ${s.unit}`:`For lille: forventede ${a} havde ${o} ${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`Ugyldig streng: skal starte med \"${o.prefix}\"`:o.format===\"ends_with\"?`Ugyldig streng: skal ende med \"${o.suffix}\"`:o.format===\"includes\"?`Ugyldig streng: skal indeholde \"${o.includes}\"`:o.format===\"regex\"?`Ugyldig streng: skal matche m\\xF8nsteret ${o.pattern}`:`Ugyldig ${r[o.format]??n.format}`}case\"not_multiple_of\":return`Ugyldigt tal: skal v\\xE6re deleligt med ${n.divisor}`;case\"unrecognized_keys\":return`${n.keys.length>1?\"Ukendte n\\xF8gler\":\"Ukendt n\\xF8gle\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`Ugyldig n\\xF8gle i ${n.origin}`;case\"invalid_union\":return\"Ugyldigt input: matcher ingen af de tilladte typer\";case\"invalid_element\":return`Ugyldig v\\xE6rdi i ${n.origin}`;default:return\"Ugyldigt input\"}}};function mh(){return{localeError:cS()}}var dS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"Eingabe\",email:\"E-Mail-Adresse\",url:\"URL\",emoji:\"Emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO-Datum und -Uhrzeit\",date:\"ISO-Datum\",time:\"ISO-Uhrzeit\",duration:\"ISO-Dauer\",ipv4:\"IPv4-Adresse\",ipv6:\"IPv6-Adresse\",mac:\"MAC-Adresse\",cidrv4:\"IPv4-Bereich\",cidrv6:\"IPv6-Bereich\",base64:\"Base64-codierter String\",base64url:\"Base64-URL-codierter String\",json_string:\"JSON-String\",e164:\"E.164-Nummer\",credit_card:\"Kreditkartennummer\",currency_code:\"W\\xE4hrungscode\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"Eingabe\"},i={nan:\"NaN\",number:\"Zahl\",array:\"Array\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ung\\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${a}`:`Ung\\xFCltige Eingabe: erwartet ${o}, erhalten ${a}`}case\"invalid_value\":return n.values.length===1?`Ung\\xFCltige Eingabe: erwartet ${b(n.values[0])}`:`Ung\\xFCltige Option: erwartet eine von ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`Zu gro\\xDF: erwartet, dass ${n.origin??\"Wert\"} ${o}${n.maximum.toString()} ${s.unit??\"Elemente\"} hat`:`Zu gro\\xDF: erwartet, dass ${n.origin??\"Wert\"} ${o}${n.maximum.toString()} ist`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ${s.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ist`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`Ung\\xFCltiger String: muss mit \"${o.prefix}\" beginnen`:o.format===\"ends_with\"?`Ung\\xFCltiger String: muss mit \"${o.suffix}\" enden`:o.format===\"includes\"?`Ung\\xFCltiger String: muss \"${o.includes}\" enthalten`:o.format===\"regex\"?`Ung\\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\\xFCltig: ${r[o.format]??n.format}`}case\"not_multiple_of\":return`Ung\\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case\"unrecognized_keys\":return`${n.keys.length>1?\"Unbekannte Schl\\xFCssel\":\"Unbekannter Schl\\xFCssel\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`Ung\\xFCltiger Schl\\xFCssel in ${n.origin}`;case\"invalid_union\":return\"Ung\\xFCltige Eingabe\";case\"invalid_element\":return`Ung\\xFCltiger Wert in ${n.origin}`;default:return\"Ung\\xFCltige Eingabe\"}}};function hh(){return{localeError:dS()}}var fS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"\\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2\",email:\"\\u03B4\\u03B9\\u03B5\\u03CD\\u03B8\\u03C5\\u03BD\\u03C3\\u03B7 email\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO \\u03B7\\u03BC\\u03B5\\u03C1\\u03BF\\u03BC\\u03B7\\u03BD\\u03AF\\u03B1 \\u03BA\\u03B1\\u03B9 \\u03CE\\u03C1\\u03B1\",date:\"ISO \\u03B7\\u03BC\\u03B5\\u03C1\\u03BF\\u03BC\\u03B7\\u03BD\\u03AF\\u03B1\",time:\"ISO \\u03CE\\u03C1\\u03B1\",duration:\"ISO \\u03B4\\u03B9\\u03AC\\u03C1\\u03BA\\u03B5\\u03B9\\u03B1\",ipv4:\"\\u03B4\\u03B9\\u03B5\\u03CD\\u03B8\\u03C5\\u03BD\\u03C3\\u03B7 IPv4\",ipv6:\"\\u03B4\\u03B9\\u03B5\\u03CD\\u03B8\\u03C5\\u03BD\\u03C3\\u03B7 IPv6\",mac:\"\\u03B4\\u03B9\\u03B5\\u03CD\\u03B8\\u03C5\\u03BD\\u03C3\\u03B7 MAC\",cidrv4:\"\\u03B5\\u03CD\\u03C1\\u03BF\\u03C2 IPv4\",cidrv6:\"\\u03B5\\u03CD\\u03C1\\u03BF\\u03C2 IPv6\",base64:\"\\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC \\u03BA\\u03C9\\u03B4\\u03B9\\u03BA\\u03BF\\u03C0\\u03BF\\u03B9\\u03B7\\u03BC\\u03AD\\u03BD\\u03B7 \\u03C3\\u03B5 base64\",base64url:\"\\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC \\u03BA\\u03C9\\u03B4\\u03B9\\u03BA\\u03BF\\u03C0\\u03BF\\u03B9\\u03B7\\u03BC\\u03AD\\u03BD\\u03B7 \\u03C3\\u03B5 base64url\",json_string:\"\\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC JSON\",e164:\"\\u03B1\\u03C1\\u03B9\\u03B8\\u03BC\\u03CC\\u03C2 E.164\",credit_card:\"\\u03B1\\u03C1\\u03B9\\u03B8\\u03BC\\u03CC\\u03C2 \\u03C0\\u03B9\\u03C3\\u03C4\\u03C9\\u03C4\\u03B9\\u03BA\\u03AE\\u03C2 \\u03BA\\u03AC\\u03C1\\u03C4\\u03B1\\u03C2\",currency_code:\"\\u03BA\\u03C9\\u03B4\\u03B9\\u03BA\\u03CC\\u03C2 \\u03BD\\u03BF\\u03BC\\u03AF\\u03C3\\u03BC\\u03B1\\u03C4\\u03BF\\u03C2\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"\\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2\"},i={nan:\"NaN\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return typeof n.expected==\"string\"&&/^[A-Z]/.test(n.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 ${n.expected}, \\u03BB\\u03AE\\u03C6\\u03B8\\u03B7\\u03BA\\u03B5 ${a}`:`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD ${o}, \\u03BB\\u03AE\\u03C6\\u03B8\\u03B7\\u03BA\\u03B5 ${a}`}case\"invalid_value\":return n.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 ${b(n.values[0])}`:`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03B5\\u03C0\\u03B9\\u03BB\\u03BF\\u03B3\\u03AE: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD \\u03AD\\u03BD\\u03B1 \\u03B1\\u03C0\\u03CC ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`\\u03A0\\u03BF\\u03BB\\u03CD \\u03BC\\u03B5\\u03B3\\u03AC\\u03BB\\u03BF: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD ${n.origin??\"\\u03C4\\u03B9\\u03BC\\u03AE\"} \\u03BD\\u03B1 \\u03AD\\u03C7\\u03B5\\u03B9 ${o}${n.maximum.toString()} ${s.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 ${n.origin??\"\\u03C4\\u03B9\\u03BC\\u03AE\"} \\u03BD\\u03B1 \\u03B5\\u03AF\\u03BD\\u03B1\\u03B9 ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`\\u03A0\\u03BF\\u03BB\\u03CD \\u03BC\\u03B9\\u03BA\\u03C1\\u03CC: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD ${n.origin} \\u03BD\\u03B1 \\u03AD\\u03C7\\u03B5\\u03B9 ${o}${n.minimum.toString()} ${s.unit}`:`\\u03A0\\u03BF\\u03BB\\u03CD \\u03BC\\u03B9\\u03BA\\u03C1\\u03CC: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD ${n.origin} \\u03BD\\u03B1 \\u03B5\\u03AF\\u03BD\\u03B1\\u03B9 ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC: \\u03C0\\u03C1\\u03AD\\u03C0\\u03B5\\u03B9 \\u03BD\\u03B1 \\u03BE\\u03B5\\u03BA\\u03B9\\u03BD\\u03AC \\u03BC\\u03B5 \"${o.prefix}\"`:o.format===\"ends_with\"?`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC: \\u03C0\\u03C1\\u03AD\\u03C0\\u03B5\\u03B9 \\u03BD\\u03B1 \\u03C4\\u03B5\\u03BB\\u03B5\\u03B9\\u03CE\\u03BD\\u03B5\\u03B9 \\u03BC\\u03B5 \"${o.suffix}\"`:o.format===\"includes\"?`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC: \\u03C0\\u03C1\\u03AD\\u03C0\\u03B5\\u03B9 \\u03BD\\u03B1 \\u03C0\\u03B5\\u03C1\\u03B9\\u03AD\\u03C7\\u03B5\\u03B9 \"${o.includes}\"`:o.format===\"regex\"?`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC: \\u03C0\\u03C1\\u03AD\\u03C0\\u03B5\\u03B9 \\u03BD\\u03B1 \\u03C4\\u03B1\\u03B9\\u03C1\\u03B9\\u03AC\\u03B6\\u03B5\\u03B9 \\u03BC\\u03B5 \\u03C4\\u03BF \\u03BC\\u03BF\\u03C4\\u03AF\\u03B2\\u03BF ${o.pattern}`:`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03BF: ${r[o.format]??n.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 ${n.divisor}`;case\"unrecognized_keys\":return`\\u0386\\u03B3\\u03BD\\u03C9\\u03C3\\u03C4${n.keys.length>1?\"\\u03B1\":\"\\u03BF\"} \\u03BA\\u03BB\\u03B5\\u03B9\\u03B4${n.keys.length>1?\"\\u03B9\\u03AC\":\"\\u03AF\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03BF \\u03BA\\u03BB\\u03B5\\u03B9\\u03B4\\u03AF \\u03C3\\u03C4\\u03BF ${n.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 ${n.origin}`;default:return\"\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2\"}}};function gh(){return{localeError:fS()}}var pS=()=>{let t={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 e(o){return t[o]??null}let r={regex:\"input\",email:\"email address\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO datetime\",date:\"ISO date\",time:\"ISO time\",duration:\"ISO duration\",ipv4:\"IPv4 address\",ipv6:\"IPv6 address\",mac:\"MAC address\",cidrv4:\"IPv4 range\",cidrv6:\"IPv6 range\",base64:\"base64-encoded string\",base64url:\"base64url-encoded string\",json_string:\"JSON string\",e164:\"E.164 number\",currency_code:\"currency code\",credit_card:\"credit card number\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"input\"},i={nan:\"NaN\"};function n(o,s){return o===\"number\"&&typeof s==\"number\"&&!Number.isFinite(s)?String(s):i[o]??o}return o=>{switch(o.code){case\"invalid_type\":{let s=n(o.expected),a=w(o.input),l=n(a,o.input);return`Invalid input: expected ${s}, received ${l}`}case\"invalid_value\":return o.values.length===1?`Invalid input: expected ${b(o.values[0])}`:`Invalid option: expected one of ${g(o.values,\"|\")}`;case\"too_big\":{let s=o.exact?\"exactly \":o.inclusive?\"<=\":\"<\",a=e(o.origin);return a?`Too big: expected ${o.origin??\"value\"} to have ${s}${o.maximum.toString()} ${a.unit??\"elements\"}`:`Too big: expected ${o.origin??\"value\"} to be ${s}${o.maximum.toString()}`}case\"too_small\":{let s=o.exact?\"exactly \":o.inclusive?\">=\":\">\",a=e(o.origin);return a?`Too small: expected ${o.origin} to have ${s}${o.minimum.toString()} ${a.unit}`:`Too small: expected ${o.origin} to be ${s}${o.minimum.toString()}`}case\"invalid_format\":{let s=o;return s.format===\"starts_with\"?`Invalid string: must start with \"${s.prefix}\"`:s.format===\"ends_with\"?`Invalid string: must end with \"${s.suffix}\"`:s.format===\"includes\"?`Invalid string: must include \"${s.includes}\"`:s.format===\"regex\"?`Invalid string: must match pattern ${s.pattern}`:`Invalid ${r[s.format]??o.format}`}case\"not_multiple_of\":return`Invalid number: must be a multiple of ${o.divisor}`;case\"unrecognized_keys\":return`Unrecognized key${o.keys.length>1?\"s\":\"\"}: ${g(o.keys,\", \")}`;case\"invalid_key\":return`Invalid key in ${o.origin}`;case\"invalid_union\":return o.options&&Array.isArray(o.options)&&o.options.length>0?`Invalid discriminator value. Expected ${o.options.map(a=>`'${a}'`).join(\" | \")}`:o.inclusive===!1?\"Invalid input: more than one option matched\":\"Invalid input\";case\"invalid_element\":return`Invalid value in ${o.origin}`;default:return\"Invalid input\"}}};function Do(){return{localeError:pS()}}var mS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"enigo\",email:\"retadreso\",url:\"URL\",emoji:\"emo\\u011Dio\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO-datotempo\",date:\"ISO-dato\",time:\"ISO-tempo\",duration:\"ISO-da\\u016Dro\",ipv4:\"IPv4-adreso\",ipv6:\"IPv6-adreso\",mac:\"MAC-adreso\",cidrv4:\"IPv4-rango\",cidrv6:\"IPv6-rango\",base64:\"64-ume kodita karaktraro\",base64url:\"URL-64-ume kodita karaktraro\",json_string:\"JSON-karaktraro\",e164:\"E.164-nombro\",credit_card:\"kreditkarta numero\",currency_code:\"valuta kodo\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"enigo\"},i={nan:\"NaN\",number:\"nombro\",array:\"tabelo\",null:\"senvalora\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\\u011Dis instanceof ${n.expected}, ricevi\\u011Dis ${a}`:`Nevalida enigo: atendi\\u011Dis ${o}, ricevi\\u011Dis ${a}`}case\"invalid_value\":return n.values.length===1?`Nevalida enigo: atendi\\u011Dis ${b(n.values[0])}`:`Nevalida opcio: atendi\\u011Dis unu el ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`Tro granda: atendi\\u011Dis ke ${n.origin??\"valoro\"} havu ${o}${n.maximum.toString()} ${s.unit??\"elementojn\"}`:`Tro granda: atendi\\u011Dis ke ${n.origin??\"valoro\"} havu ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`Tro malgranda: atendi\\u011Dis ke ${n.origin} havu ${o}${n.minimum.toString()} ${s.unit}`:`Tro malgranda: atendi\\u011Dis ke ${n.origin} estu ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`Nevalida karaktraro: devas komenci\\u011Di per \"${o.prefix}\"`:o.format===\"ends_with\"?`Nevalida karaktraro: devas fini\\u011Di per \"${o.suffix}\"`:o.format===\"includes\"?`Nevalida karaktraro: devas inkluzivi \"${o.includes}\"`:o.format===\"regex\"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${r[o.format]??n.format}`}case\"not_multiple_of\":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case\"unrecognized_keys\":return`Nekonata${n.keys.length>1?\"j\":\"\"} \\u015Dlosilo${n.keys.length>1?\"j\":\"\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`Nevalida \\u015Dlosilo en ${n.origin}`;case\"invalid_union\":return\"Nevalida enigo\";case\"invalid_element\":return`Nevalida valoro en ${n.origin}`;default:return\"Nevalida enigo\"}}};function yh(){return{localeError:mS()}}var hS=()=>{let t={string:{unit:\"caracteres\",verb:\"tener\"},file:{unit:\"bytes\",verb:\"tener\"},array:{unit:\"elementos\",verb:\"tener\"},set:{unit:\"elementos\",verb:\"tener\"}};function e(n){return t[n]??null}let r={regex:\"entrada\",email:\"direcci\\xF3n de correo electr\\xF3nico\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"fecha y hora ISO\",date:\"fecha ISO\",time:\"hora ISO\",duration:\"duraci\\xF3n ISO\",ipv4:\"direcci\\xF3n IPv4\",ipv6:\"direcci\\xF3n IPv6\",mac:\"direcci\\xF3n MAC\",cidrv4:\"rango IPv4\",cidrv6:\"rango IPv6\",base64:\"cadena codificada en base64\",base64url:\"URL codificada en base64\",json_string:\"cadena JSON\",e164:\"n\\xFAmero E.164\",credit_card:\"n\\xFAmero de tarjeta de cr\\xE9dito\",currency_code:\"c\\xF3digo de moneda\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"entrada\"},i={nan:\"NaN\",string:\"texto\",number:\"n\\xFAmero\",boolean:\"booleano\",array:\"arreglo\",object:\"objeto\",set:\"conjunto\",file:\"archivo\",date:\"fecha\",bigint:\"n\\xFAmero grande\",symbol:\"s\\xEDmbolo\",undefined:\"indefinido\",null:\"nulo\",function:\"funci\\xF3n\",map:\"mapa\",record:\"registro\",tuple:\"tupla\",enum:\"enumeraci\\xF3n\",union:\"uni\\xF3n\",literal:\"literal\",promise:\"promesa\",void:\"vac\\xEDo\",never:\"nunca\",unknown:\"desconocido\",any:\"cualquiera\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Entrada inv\\xE1lida: se esperaba instanceof ${n.expected}, recibido ${a}`:`Entrada inv\\xE1lida: se esperaba ${o}, recibido ${a}`}case\"invalid_value\":return n.values.length===1?`Entrada inv\\xE1lida: se esperaba ${b(n.values[0])}`:`Opci\\xF3n inv\\xE1lida: se esperaba una de ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin),a=i[n.origin]??n.origin;return s?`Demasiado grande: se esperaba que ${a??\"valor\"} tuviera ${o}${n.maximum.toString()} ${s.unit??\"elementos\"}`:`Demasiado grande: se esperaba que ${a??\"valor\"} fuera ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin),a=i[n.origin]??n.origin;return s?`Demasiado peque\\xF1o: se esperaba que ${a} tuviera ${o}${n.minimum.toString()} ${s.unit}`:`Demasiado peque\\xF1o: se esperaba que ${a} fuera ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`Cadena inv\\xE1lida: debe comenzar con \"${o.prefix}\"`:o.format===\"ends_with\"?`Cadena inv\\xE1lida: debe terminar en \"${o.suffix}\"`:o.format===\"includes\"?`Cadena inv\\xE1lida: debe incluir \"${o.includes}\"`:o.format===\"regex\"?`Cadena inv\\xE1lida: debe coincidir con el patr\\xF3n ${o.pattern}`:`Inv\\xE1lido ${r[o.format]??n.format}`}case\"not_multiple_of\":return`N\\xFAmero inv\\xE1lido: debe ser m\\xFAltiplo de ${n.divisor}`;case\"unrecognized_keys\":return`Llave${n.keys.length>1?\"s\":\"\"} desconocida${n.keys.length>1?\"s\":\"\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`Llave inv\\xE1lida en ${i[n.origin]??n.origin}`;case\"invalid_union\":return\"Entrada inv\\xE1lida\";case\"invalid_element\":return`Valor inv\\xE1lido en ${i[n.origin]??n.origin}`;default:return\"Entrada inv\\xE1lida\"}}};function vh(){return{localeError:hS()}}var gS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"\\u0648\\u0631\\u0648\\u062F\\u06CC\",email:\"\\u0622\\u062F\\u0631\\u0633 \\u0627\\u06CC\\u0645\\u06CC\\u0644\",url:\"URL\",emoji:\"\\u0627\\u06CC\\u0645\\u0648\\u062C\\u06CC\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"\\u062A\\u0627\\u0631\\u06CC\\u062E \\u0648 \\u0632\\u0645\\u0627\\u0646 \\u0627\\u06CC\\u0632\\u0648\",date:\"\\u062A\\u0627\\u0631\\u06CC\\u062E \\u0627\\u06CC\\u0632\\u0648\",time:\"\\u0632\\u0645\\u0627\\u0646 \\u0627\\u06CC\\u0632\\u0648\",duration:\"\\u0645\\u062F\\u062A \\u0632\\u0645\\u0627\\u0646 \\u0627\\u06CC\\u0632\\u0648\",ipv4:\"IPv4 \\u0622\\u062F\\u0631\\u0633\",ipv6:\"IPv6 \\u0622\\u062F\\u0631\\u0633\",mac:\"MAC \\u0622\\u062F\\u0631\\u0633\",cidrv4:\"IPv4 \\u062F\\u0627\\u0645\\u0646\\u0647\",cidrv6:\"IPv6 \\u062F\\u0627\\u0645\\u0646\\u0647\",base64:\"base64-encoded \\u0631\\u0634\\u062A\\u0647\",base64url:\"base64url-encoded \\u0631\\u0634\\u062A\\u0647\",json_string:\"JSON \\u0631\\u0634\\u062A\\u0647\",e164:\"E.164 \\u0639\\u062F\\u062F\",credit_card:\"\\u0634\\u0645\\u0627\\u0631\\u0647 \\u06A9\\u0627\\u0631\\u062A \\u0627\\u0639\\u062A\\u0628\\u0627\\u0631\\u06CC\",currency_code:\"\\u06A9\\u062F \\u0627\\u0631\\u0632\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"\\u0648\\u0631\\u0648\\u062F\\u06CC\"},i={nan:\"NaN\",number:\"\\u0639\\u062F\\u062F\",array:\"\\u0622\\u0631\\u0627\\u06CC\\u0647\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\\u0648\\u0631\\u0648\\u062F\\u06CC \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0645\\u06CC\\u200C\\u0628\\u0627\\u06CC\\u0633\\u062A instanceof ${n.expected} \\u0645\\u06CC\\u200C\\u0628\\u0648\\u062F\\u060C ${a} \\u062F\\u0631\\u06CC\\u0627\\u0641\\u062A \\u0634\\u062F`:`\\u0648\\u0631\\u0648\\u062F\\u06CC \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0645\\u06CC\\u200C\\u0628\\u0627\\u06CC\\u0633\\u062A ${o} \\u0645\\u06CC\\u200C\\u0628\\u0648\\u062F\\u060C ${a} \\u062F\\u0631\\u06CC\\u0627\\u0641\\u062A \\u0634\\u062F`}case\"invalid_value\":return n.values.length===1?`\\u0648\\u0631\\u0648\\u062F\\u06CC \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0645\\u06CC\\u200C\\u0628\\u0627\\u06CC\\u0633\\u062A ${b(n.values[0])} \\u0645\\u06CC\\u200C\\u0628\\u0648\\u062F`:`\\u06AF\\u0632\\u06CC\\u0646\\u0647 \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0645\\u06CC\\u200C\\u0628\\u0627\\u06CC\\u0633\\u062A \\u06CC\\u06A9\\u06CC \\u0627\\u0632 ${g(n.values,\"|\")} \\u0645\\u06CC\\u200C\\u0628\\u0648\\u062F`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`\\u062E\\u06CC\\u0644\\u06CC \\u0628\\u0632\\u0631\\u06AF: ${n.origin??\"\\u0645\\u0642\\u062F\\u0627\\u0631\"} \\u0628\\u0627\\u06CC\\u062F ${o}${n.maximum.toString()} ${s.unit??\"\\u0639\\u0646\\u0635\\u0631\"} \\u0628\\u0627\\u0634\\u062F`:`\\u062E\\u06CC\\u0644\\u06CC \\u0628\\u0632\\u0631\\u06AF: ${n.origin??\"\\u0645\\u0642\\u062F\\u0627\\u0631\"} \\u0628\\u0627\\u06CC\\u062F ${o}${n.maximum.toString()} \\u0628\\u0627\\u0634\\u062F`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`\\u062E\\u06CC\\u0644\\u06CC \\u06A9\\u0648\\u0686\\u06A9: ${n.origin} \\u0628\\u0627\\u06CC\\u062F ${o}${n.minimum.toString()} ${s.unit} \\u0628\\u0627\\u0634\\u062F`:`\\u062E\\u06CC\\u0644\\u06CC \\u06A9\\u0648\\u0686\\u06A9: ${n.origin} \\u0628\\u0627\\u06CC\\u062F ${o}${n.minimum.toString()} \\u0628\\u0627\\u0634\\u062F`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`\\u0631\\u0634\\u062A\\u0647 \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0628\\u0627\\u06CC\\u062F \\u0628\\u0627 \"${o.prefix}\" \\u0634\\u0631\\u0648\\u0639 \\u0634\\u0648\\u062F`:o.format===\"ends_with\"?`\\u0631\\u0634\\u062A\\u0647 \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0628\\u0627\\u06CC\\u062F \\u0628\\u0627 \"${o.suffix}\" \\u062A\\u0645\\u0627\\u0645 \\u0634\\u0648\\u062F`:o.format===\"includes\"?`\\u0631\\u0634\\u062A\\u0647 \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0628\\u0627\\u06CC\\u062F \\u0634\\u0627\\u0645\\u0644 \"${o.includes}\" \\u0628\\u0627\\u0634\\u062F`:o.format===\"regex\"?`\\u0631\\u0634\\u062A\\u0647 \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0628\\u0627\\u06CC\\u062F \\u0628\\u0627 \\u0627\\u0644\\u06AF\\u0648\\u06CC ${o.pattern} \\u0645\\u0637\\u0627\\u0628\\u0642\\u062A \\u062F\\u0627\\u0634\\u062A\\u0647 \\u0628\\u0627\\u0634\\u062F`:`${r[o.format]??n.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 ${n.divisor} \\u0628\\u0627\\u0634\\u062F`;case\"unrecognized_keys\":return`\\u06A9\\u0644\\u06CC\\u062F${n.keys.length>1?\"\\u0647\\u0627\\u06CC\":\"\"} \\u0646\\u0627\\u0634\\u0646\\u0627\\u0633: ${g(n.keys,\", \")}`;case\"invalid_key\":return`\\u06A9\\u0644\\u06CC\\u062F \\u0646\\u0627\\u0634\\u0646\\u0627\\u0633 \\u062F\\u0631 ${n.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 ${n.origin}`;default:return\"\\u0648\\u0631\\u0648\\u062F\\u06CC \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631\"}}};function bh(){return{localeError:gS()}}var yS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"s\\xE4\\xE4nn\\xF6llinen lauseke\",email:\"s\\xE4hk\\xF6postiosoite\",url:\"URL-osoite\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO-aikaleima\",date:\"ISO-p\\xE4iv\\xE4m\\xE4\\xE4r\\xE4\",time:\"ISO-aika\",duration:\"ISO-kesto\",ipv4:\"IPv4-osoite\",ipv6:\"IPv6-osoite\",mac:\"MAC-osoite\",cidrv4:\"IPv4-alue\",cidrv6:\"IPv6-alue\",base64:\"base64-koodattu merkkijono\",base64url:\"base64url-koodattu merkkijono\",json_string:\"JSON-merkkijono\",e164:\"E.164-luku\",credit_card:\"luottokortin numero\",currency_code:\"valuuttakoodi\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"templaattimerkkijono\"},i={nan:\"NaN\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${a}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${a}`}case\"invalid_value\":return n.values.length===1?`Virheellinen sy\\xF6te: t\\xE4ytyy olla ${b(n.values[0])}`:`Virheellinen valinta: t\\xE4ytyy olla yksi seuraavista: ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`Liian suuri: ${s.subject} t\\xE4ytyy olla ${o}${n.maximum.toString()} ${s.unit}`.trim():`Liian suuri: arvon t\\xE4ytyy olla ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`Liian pieni: ${s.subject} t\\xE4ytyy olla ${o}${n.minimum.toString()} ${s.unit}`.trim():`Liian pieni: arvon t\\xE4ytyy olla ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`Virheellinen sy\\xF6te: t\\xE4ytyy alkaa \"${o.prefix}\"`:o.format===\"ends_with\"?`Virheellinen sy\\xF6te: t\\xE4ytyy loppua \"${o.suffix}\"`:o.format===\"includes\"?`Virheellinen sy\\xF6te: t\\xE4ytyy sis\\xE4lt\\xE4\\xE4 \"${o.includes}\"`:o.format===\"regex\"?`Virheellinen sy\\xF6te: t\\xE4ytyy vastata s\\xE4\\xE4nn\\xF6llist\\xE4 lauseketta ${o.pattern}`:`Virheellinen ${r[o.format]??n.format}`}case\"not_multiple_of\":return`Virheellinen luku: t\\xE4ytyy olla luvun ${n.divisor} monikerta`;case\"unrecognized_keys\":return`${n.keys.length>1?\"Tuntemattomat avaimet\":\"Tuntematon avain\"}: ${g(n.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 wh(){return{localeError:yS()}}var vS=()=>{let t={string:{unit:\"caract\\xE8res\",verb:\"avoir\"},file:{unit:\"octets\",verb:\"avoir\"},array:{unit:\"\\xE9l\\xE9ments\",verb:\"avoir\"},set:{unit:\"\\xE9l\\xE9ments\",verb:\"avoir\"}};function e(n){return t[n]??null}let r={regex:\"expression r\\xE9guli\\xE8re\",email:\"adresse e-mail\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"date et heure ISO\",date:\"date ISO\",time:\"heure ISO\",duration:\"dur\\xE9e ISO\",ipv4:\"adresse IPv4\",ipv6:\"adresse IPv6\",mac:\"adresse MAC\",cidrv4:\"plage IPv4\",cidrv6:\"plage IPv6\",base64:\"cha\\xEEne de caract\\xE8res encod\\xE9e en base64\",base64url:\"cha\\xEEne de caract\\xE8res encod\\xE9e en base64url\",json_string:\"cha\\xEEne de caract\\xE8res JSON\",e164:\"num\\xE9ro au format E.164\",credit_card:\"num\\xE9ro de carte de cr\\xE9dit\",currency_code:\"code de devise\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"entr\\xE9e\"},i={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 n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Entr\\xE9e invalide : instance de ${n.expected} attendu, ${a} re\\xE7u`:`Entr\\xE9e invalide : ${o} attendu, ${a} re\\xE7u`}case\"invalid_value\":return n.values.length===1?`Entr\\xE9e invalide : ${b(n.values[0])} attendu`:`Option invalide : une valeur parmi ${g(n.values,\"|\")} attendue`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`Trop grand : ${i[n.origin]??\"valeur\"} doit ${s.verb} ${o}${n.maximum.toString()} ${s.unit??\"\\xE9l\\xE9ment(s)\"}`:`Trop grand : ${i[n.origin]??\"valeur\"} doit \\xEAtre ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`Trop petit : ${i[n.origin]??\"valeur\"} doit ${s.verb} ${o}${n.minimum.toString()} ${s.unit}`:`Trop petit : ${i[n.origin]??\"valeur\"} doit \\xEAtre ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`Cha\\xEEne de caract\\xE8res invalide : doit commencer par \"${o.prefix}\"`:o.format===\"ends_with\"?`Cha\\xEEne de caract\\xE8res invalide : doit se terminer par \"${o.suffix}\"`:o.format===\"includes\"?`Cha\\xEEne de caract\\xE8res invalide : doit inclure \"${o.includes}\"`:o.format===\"regex\"?`Cha\\xEEne de caract\\xE8res invalide : doit correspondre au motif ${o.pattern}`:`${r[o.format]??n.format} invalide`}case\"not_multiple_of\":return`Nombre invalide : doit \\xEAtre un multiple de ${n.divisor}`;case\"unrecognized_keys\":return`Cl\\xE9${n.keys.length>1?\"s\":\"\"} non reconnue${n.keys.length>1?\"s\":\"\"} : ${g(n.keys,\", \")}`;case\"invalid_key\":return`Cl\\xE9 invalide dans ${n.origin}`;case\"invalid_union\":return\"Entr\\xE9e invalide\";case\"invalid_element\":return`Valeur invalide dans ${n.origin}`;default:return\"Entr\\xE9e invalide\"}}};function Sh(){return{localeError:vS()}}var bS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"entr\\xE9e\",email:\"adresse courriel\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"date-heure ISO\",date:\"date ISO\",time:\"heure ISO\",duration:\"dur\\xE9e ISO\",ipv4:\"adresse IPv4\",ipv6:\"adresse IPv6\",mac:\"adresse MAC\",cidrv4:\"plage IPv4\",cidrv6:\"plage IPv6\",base64:\"cha\\xEEne encod\\xE9e en base64\",base64url:\"cha\\xEEne encod\\xE9e en base64url\",json_string:\"cha\\xEEne JSON\",e164:\"num\\xE9ro E.164\",credit_card:\"num\\xE9ro de carte de cr\\xE9dit\",currency_code:\"code de devise\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"entr\\xE9e\"},i={nan:\"NaN\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Entr\\xE9e invalide : attendu instanceof ${n.expected}, re\\xE7u ${a}`:`Entr\\xE9e invalide : attendu ${o}, re\\xE7u ${a}`}case\"invalid_value\":return n.values.length===1?`Entr\\xE9e invalide : attendu ${b(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"\\u2264\":\"<\",s=e(n.origin);return s?`Trop grand : attendu que ${n.origin??\"la valeur\"} ait ${o}${n.maximum.toString()} ${s.unit}`:`Trop grand : attendu que ${n.origin??\"la valeur\"} soit ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\"\\u2265\":\">\",s=e(n.origin);return s?`Trop petit : attendu que ${n.origin} ait ${o}${n.minimum.toString()} ${s.unit}`:`Trop petit : attendu que ${n.origin} soit ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`Cha\\xEEne invalide : doit commencer par \"${o.prefix}\"`:o.format===\"ends_with\"?`Cha\\xEEne invalide : doit se terminer par \"${o.suffix}\"`:o.format===\"includes\"?`Cha\\xEEne invalide : doit inclure \"${o.includes}\"`:o.format===\"regex\"?`Cha\\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${r[o.format]??n.format} invalide`}case\"not_multiple_of\":return`Nombre invalide : doit \\xEAtre un multiple de ${n.divisor}`;case\"unrecognized_keys\":return`Cl\\xE9${n.keys.length>1?\"s\":\"\"} non reconnue${n.keys.length>1?\"s\":\"\"} : ${g(n.keys,\", \")}`;case\"invalid_key\":return`Cl\\xE9 invalide dans ${n.origin}`;case\"invalid_union\":return\"Entr\\xE9e invalide\";case\"invalid_element\":return`Valeur invalide dans ${n.origin}`;default:return\"Entr\\xE9e invalide\"}}};function _h(){return{localeError:bS()}}var wS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"\\u0A87\\u0AA8\\u0AAA\\u0AC1\\u0A9F\",email:\"\\u0A88\\u0AAE\\u0AC7\\u0A87\\u0AB2 \\u0A8F\\u0AA1\\u0ACD\\u0AB0\\u0AC7\\u0AB8\",url:\"URL\",emoji:\"\\u0A87\\u0AAE\\u0ACB\\u0A9C\\u0AC0\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO \\u0AA4\\u0ABE\\u0AB0\\u0AC0\\u0A96 \\u0A85\\u0AA8\\u0AC7 \\u0AB8\\u0AAE\\u0AAF\",date:\"ISO \\u0AA4\\u0ABE\\u0AB0\\u0AC0\\u0A96\",time:\"ISO \\u0AB8\\u0AAE\\u0AAF\",duration:\"ISO \\u0A85\\u0AB5\\u0AA7\\u0ABF\",ipv4:\"IPv4 \\u0A8F\\u0AA1\\u0ACD\\u0AB0\\u0AC7\\u0AB8\",ipv6:\"IPv6 \\u0A8F\\u0AA1\\u0ACD\\u0AB0\\u0AC7\\u0AB8\",mac:\"MAC \\u0A8F\\u0AA1\\u0ACD\\u0AB0\\u0AC7\\u0AB8\",cidrv4:\"IPv4 \\u0AB6\\u0ACD\\u0AB0\\u0AC7\\u0AA3\\u0AC0\",cidrv6:\"IPv6 \\u0AB6\\u0ACD\\u0AB0\\u0AC7\\u0AA3\\u0AC0\",base64:\"base64-\\u0A8F\\u0AA8\\u0ACD\\u0A95\\u0ACB\\u0AA1\\u0AC7\\u0AA1 \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97\",base64url:\"base64url-\\u0A8F\\u0AA8\\u0ACD\\u0A95\\u0ACB\\u0AA1\\u0AC7\\u0AA1 \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97\",json_string:\"JSON \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97\",e164:\"E.164 \\u0AA8\\u0A82\\u0AAC\\u0AB0\",credit_card:\"\\u0A95\\u0ACD\\u0AB0\\u0AC7\\u0AA1\\u0ABF\\u0A9F \\u0A95\\u0ABE\\u0AB0\\u0ACD\\u0AA1 \\u0AA8\\u0A82\\u0AAC\\u0AB0\",currency_code:\"\\u0A9A\\u0AB2\\u0AA3 \\u0A95\\u0ACB\\u0AA1\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"\\u0A87\\u0AA8\\u0AAA\\u0AC1\\u0A9F\"},i={nan:\"NaN\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0A87\\u0AA8\\u0AAA\\u0AC1\\u0A9F: \\u0A85\\u0AAA\\u0AC7\\u0A95\\u0ACD\\u0AB7\\u0ABF\\u0AA4 ${o}, \\u0AAA\\u0ACD\\u0AB0\\u0ABE\\u0AAA\\u0ACD\\u0AA4 ${a}`}case\"invalid_value\":return n.values.length===1?`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0A87\\u0AA8\\u0AAA\\u0AC1\\u0A9F: \\u0A85\\u0AAA\\u0AC7\\u0A95\\u0ACD\\u0AB7\\u0ABF\\u0AA4 ${b(n.values[0])}`:`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AB5\\u0ABF\\u0A95\\u0AB2\\u0ACD\\u0AAA: ${g(n.values,\" | \")} \\u0AAE\\u0ABE\\u0AA7\\u0ACD\\u0AAF\\u0AAE\\u0AA5\\u0AC0 \\u0A8F\\u0A95 \\u0A85\\u0AAA\\u0AC7\\u0A95\\u0ACD\\u0AB7\\u0ABF\\u0AA4`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`\\u0A96\\u0AC2\\u0AAC \\u0AAE\\u0ACB\\u0A9F\\u0AC1\\u0A82: ${n.origin??\"\\u0AAE\\u0AC2\\u0AB2\\u0ACD\\u0AAF\"} ${o}${n.maximum.toString()} ${s.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: ${n.origin??\"\\u0AAE\\u0AC2\\u0AB2\\u0ACD\\u0AAF\"} ${o}${n.maximum.toString()} \\u0AB9\\u0ACB\\u0AB5\\u0AC1\\u0A82 \\u0A9C\\u0ACB\\u0A88\\u0A8F`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`\\u0A96\\u0AC2\\u0AAC \\u0AA8\\u0ABE\\u0AA8\\u0AC1\\u0A82: ${n.origin} ${o}${n.minimum.toString()} ${s.unit} \\u0AB9\\u0ACB\\u0AB5\\u0ABE \\u0A9C\\u0ACB\\u0A88\\u0A8F`:`\\u0A96\\u0AC2\\u0AAC \\u0AA8\\u0ABE\\u0AA8\\u0AC1\\u0A82: ${n.origin} ${o}${n.minimum.toString()} \\u0AB9\\u0ACB\\u0AB5\\u0AC1\\u0A82 \\u0A9C\\u0ACB\\u0A88\\u0A8F`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97: \"${o.prefix}\" \\u0AA5\\u0AC0 \\u0AB6\\u0AB0\\u0AC2 \\u0AA5\\u0AB5\\u0AC1\\u0A82 \\u0A9C\\u0ACB\\u0A88\\u0A8F`:o.format===\"ends_with\"?`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97: \"${o.suffix}\" \\u0AAA\\u0AB0 \\u0AB8\\u0AAE\\u0ABE\\u0AAA\\u0ACD\\u0AA4 \\u0AA5\\u0AB5\\u0AC1\\u0A82 \\u0A9C\\u0ACB\\u0A88\\u0A8F`:o.format===\"includes\"?`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97: \"${o.includes}\" \\u0AB6\\u0ABE\\u0AAE\\u0AC7\\u0AB2 \\u0AB9\\u0ACB\\u0AB5\\u0AC1\\u0A82 \\u0A9C\\u0ACB\\u0A88\\u0A8F`:o.format===\"regex\"?`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97: \\u0AAA\\u0AC7\\u0A9F\\u0AB0\\u0ACD\\u0AA8 ${o.pattern} \\u0AB8\\u0ABE\\u0AA5\\u0AC7 \\u0AAE\\u0AC7\\u0AB3 \\u0A96\\u0ABE\\u0AB5\\u0AC1\\u0A82 \\u0A9C\\u0ACB\\u0A88\\u0A8F`:`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF ${r[o.format]??n.format}`}case\"not_multiple_of\":return`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AA8\\u0A82\\u0AAC\\u0AB0: ${n.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${n.keys.length>1?\"\\u0A93\":\"\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`${n.origin} \\u0AAE\\u0ABE\\u0A82 \\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0A95\\u0AC0`;case\"invalid_union\":return n.options&&Array.isArray(n.options)&&n.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 ${n.options.map(s=>`'${s}'`).join(\" | \")}`:\"\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0A87\\u0AA8\\u0AAA\\u0AC1\\u0A9F\";case\"invalid_element\":return`${n.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 xh(){return{localeError:wS()}}var SS=()=>{let t={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\"}},e={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\"}},r=u=>u?t[u]:void 0,i=u=>{let c=r(u);return c?c.label:u??t.unknown.label},n=u=>`\\u05D4${i(u)}`,o=u=>(r(u)?.gender??\"m\")===\"f\"?\"\\u05E6\\u05E8\\u05D9\\u05DB\\u05D4 \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA\":\"\\u05E6\\u05E8\\u05D9\\u05DA \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA\",s=u=>u?e[u]??null:null,a={regex:{label:\"\\u05E7\\u05DC\\u05D8\",gender:\"m\"},email:{label:\"\\u05DB\\u05EA\\u05D5\\u05D1\\u05EA \\u05D0\\u05D9\\u05DE\\u05D9\\u05D9\\u05DC\",gender:\"f\"},url:{label:\"\\u05DB\\u05EA\\u05D5\\u05D1\\u05EA \\u05E8\\u05E9\\u05EA\",gender:\"f\"},emoji:{label:\"\\u05D0\\u05D9\\u05DE\\u05D5\\u05D2'\\u05D9\",gender:\"m\"},uuid:{label:\"UUID\",gender:\"m\"},uuidv4:{label:\"UUIDv4\",gender:\"m\"},uuidv6:{label:\"UUIDv6\",gender:\"m\"},nanoid:{label:\"nanoid\",gender:\"m\"},guid:{label:\"GUID\",gender:\"m\"},cuid:{label:\"cuid\",gender:\"m\"},cuid2:{label:\"cuid2\",gender:\"m\"},ulid:{label:\"ULID\",gender:\"m\"},xid:{label:\"XID\",gender:\"m\"},ksuid:{label:\"KSUID\",gender:\"m\"},datetime:{label:\"\\u05EA\\u05D0\\u05E8\\u05D9\\u05DA \\u05D5\\u05D6\\u05DE\\u05DF ISO\",gender:\"m\"},date:{label:\"\\u05EA\\u05D0\\u05E8\\u05D9\\u05DA ISO\",gender:\"m\"},time:{label:\"\\u05D6\\u05DE\\u05DF ISO\",gender:\"m\"},duration:{label:\"\\u05DE\\u05E9\\u05DA \\u05D6\\u05DE\\u05DF ISO\",gender:\"m\"},ipv4:{label:\"\\u05DB\\u05EA\\u05D5\\u05D1\\u05EA IPv4\",gender:\"f\"},ipv6:{label:\"\\u05DB\\u05EA\\u05D5\\u05D1\\u05EA IPv6\",gender:\"f\"},mac:{label:\"\\u05DB\\u05EA\\u05D5\\u05D1\\u05EA MAC\",gender:\"f\"},cidrv4:{label:\"\\u05D8\\u05D5\\u05D5\\u05D7 IPv4\",gender:\"m\"},cidrv6:{label:\"\\u05D8\\u05D5\\u05D5\\u05D7 IPv6\",gender:\"m\"},base64:{label:\"\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05D1\\u05D1\\u05E1\\u05D9\\u05E1 64\",gender:\"f\"},base64url:{label:\"\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05D1\\u05D1\\u05E1\\u05D9\\u05E1 64 \\u05DC\\u05DB\\u05EA\\u05D5\\u05D1\\u05D5\\u05EA \\u05E8\\u05E9\\u05EA\",gender:\"f\"},json_string:{label:\"\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA JSON\",gender:\"f\"},e164:{label:\"\\u05DE\\u05E1\\u05E4\\u05E8 E.164\",gender:\"m\"},credit_card:{label:\"\\u05DE\\u05E1\\u05E4\\u05E8 \\u05DB\\u05E8\\u05D8\\u05D9\\u05E1 \\u05D0\\u05E9\\u05E8\\u05D0\\u05D9\",gender:\"m\"},currency_code:{label:\"\\u05E7\\u05D5\\u05D3 \\u05DE\\u05D8\\u05D1\\u05E2\",gender:\"m\"},iban:{label:\"IBAN\",gender:\"m\"},jwt:{label:\"JWT\",gender:\"m\"},template_literal:{label:\"\\u05E7\\u05DC\\u05D8\",gender:\"m\"},ends_with:{label:\"\\u05E7\\u05DC\\u05D8\",gender:\"m\"},includes:{label:\"\\u05E7\\u05DC\\u05D8\",gender:\"m\"},lowercase:{label:\"\\u05E7\\u05DC\\u05D8\",gender:\"m\"},starts_with:{label:\"\\u05E7\\u05DC\\u05D8\",gender:\"m\"},uppercase:{label:\"\\u05E7\\u05DC\\u05D8\",gender:\"m\"}},l={nan:\"NaN\"};return u=>{switch(u.code){case\"invalid_type\":{let c=u.expected,d=l[c??\"\"]??i(c),f=w(u.input),p=l[f]??t[f]?.label??f;return/^[A-Z]/.test(u.expected)?`\\u05E7\\u05DC\\u05D8 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF: \\u05E6\\u05E8\\u05D9\\u05DA \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA instanceof ${u.expected}, \\u05D4\\u05EA\\u05E7\\u05D1\\u05DC ${p}`:`\\u05E7\\u05DC\\u05D8 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF: \\u05E6\\u05E8\\u05D9\\u05DA \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA ${d}, \\u05D4\\u05EA\\u05E7\\u05D1\\u05DC ${p}`}case\"invalid_value\":{if(u.values.length===1)return`\\u05E2\\u05E8\\u05DA \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF: \\u05D4\\u05E2\\u05E8\\u05DA \\u05D7\\u05D9\\u05D9\\u05D1 \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA ${b(u.values[0])}`;let c=u.values.map(p=>b(p));if(u.values.length===2)return`\\u05E2\\u05E8\\u05DA \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF: \\u05D4\\u05D0\\u05E4\\u05E9\\u05E8\\u05D5\\u05D9\\u05D5\\u05EA \\u05D4\\u05DE\\u05EA\\u05D0\\u05D9\\u05DE\\u05D5\\u05EA \\u05D4\\u05DF ${c[0]} \\u05D0\\u05D5 ${c[1]}`;let d=c[c.length-1];return`\\u05E2\\u05E8\\u05DA \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF: \\u05D4\\u05D0\\u05E4\\u05E9\\u05E8\\u05D5\\u05D9\\u05D5\\u05EA \\u05D4\\u05DE\\u05EA\\u05D0\\u05D9\\u05DE\\u05D5\\u05EA \\u05D4\\u05DF ${c.slice(0,-1).join(\", \")} \\u05D0\\u05D5 ${d}`}case\"too_big\":{let c=s(u.origin),d=n(u.origin??\"value\");if(u.origin===\"string\")return`${c?.longLabel??\"\\u05D0\\u05E8\\u05D5\\u05DA\"} \\u05DE\\u05D3\\u05D9: ${d} \\u05E6\\u05E8\\u05D9\\u05DB\\u05D4 \\u05DC\\u05D4\\u05DB\\u05D9\\u05DC ${u.maximum.toString()} ${c?.unit??\"\"} ${u.inclusive?\"\\u05D0\\u05D5 \\u05E4\\u05D7\\u05D5\\u05EA\":\"\\u05DC\\u05DB\\u05DC \\u05D4\\u05D9\\u05D5\\u05EA\\u05E8\"}`.trim();if(u.origin===\"number\"){let m=u.inclusive?`\\u05E7\\u05D8\\u05DF \\u05D0\\u05D5 \\u05E9\\u05D5\\u05D5\\u05D4 \\u05DC-${u.maximum}`:`\\u05E7\\u05D8\\u05DF \\u05DE-${u.maximum}`;return`\\u05D2\\u05D3\\u05D5\\u05DC \\u05DE\\u05D3\\u05D9: ${d} \\u05E6\\u05E8\\u05D9\\u05DA \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA ${m}`}if(u.origin===\"array\"||u.origin===\"set\"){let m=u.origin===\"set\"?\"\\u05E6\\u05E8\\u05D9\\u05DB\\u05D4\":\"\\u05E6\\u05E8\\u05D9\\u05DA\",y=u.inclusive?`${u.maximum} ${c?.unit??\"\"} \\u05D0\\u05D5 \\u05E4\\u05D7\\u05D5\\u05EA`:`\\u05E4\\u05D7\\u05D5\\u05EA \\u05DE-${u.maximum} ${c?.unit??\"\"}`;return`\\u05D2\\u05D3\\u05D5\\u05DC \\u05DE\\u05D3\\u05D9: ${d} ${m} \\u05DC\\u05D4\\u05DB\\u05D9\\u05DC ${y}`.trim()}let f=u.inclusive?\"<=\":\"<\",p=o(u.origin??\"value\");return c?.unit?`${c.longLabel} \\u05DE\\u05D3\\u05D9: ${d} ${p} ${f}${u.maximum.toString()} ${c.unit}`:`${c?.longLabel??\"\\u05D2\\u05D3\\u05D5\\u05DC\"} \\u05DE\\u05D3\\u05D9: ${d} ${p} ${f}${u.maximum.toString()}`}case\"too_small\":{let c=s(u.origin),d=n(u.origin??\"value\");if(u.origin===\"string\")return`${c?.shortLabel??\"\\u05E7\\u05E6\\u05E8\"} \\u05DE\\u05D3\\u05D9: ${d} \\u05E6\\u05E8\\u05D9\\u05DB\\u05D4 \\u05DC\\u05D4\\u05DB\\u05D9\\u05DC ${u.minimum.toString()} ${c?.unit??\"\"} ${u.inclusive?\"\\u05D0\\u05D5 \\u05D9\\u05D5\\u05EA\\u05E8\":\"\\u05DC\\u05E4\\u05D7\\u05D5\\u05EA\"}`.trim();if(u.origin===\"number\"){let m=u.inclusive?`\\u05D2\\u05D3\\u05D5\\u05DC \\u05D0\\u05D5 \\u05E9\\u05D5\\u05D5\\u05D4 \\u05DC-${u.minimum}`:`\\u05D2\\u05D3\\u05D5\\u05DC \\u05DE-${u.minimum}`;return`\\u05E7\\u05D8\\u05DF \\u05DE\\u05D3\\u05D9: ${d} \\u05E6\\u05E8\\u05D9\\u05DA \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA ${m}`}if(u.origin===\"array\"||u.origin===\"set\"){let m=u.origin===\"set\"?\"\\u05E6\\u05E8\\u05D9\\u05DB\\u05D4\":\"\\u05E6\\u05E8\\u05D9\\u05DA\";if(u.minimum===1&&u.inclusive){let _=(u.origin===\"set\",\"\\u05DC\\u05E4\\u05D7\\u05D5\\u05EA \\u05E4\\u05E8\\u05D9\\u05D8 \\u05D0\\u05D7\\u05D3\");return`\\u05E7\\u05D8\\u05DF \\u05DE\\u05D3\\u05D9: ${d} ${m} \\u05DC\\u05D4\\u05DB\\u05D9\\u05DC ${_}`}let y=u.inclusive?`${u.minimum} ${c?.unit??\"\"} \\u05D0\\u05D5 \\u05D9\\u05D5\\u05EA\\u05E8`:`\\u05D9\\u05D5\\u05EA\\u05E8 \\u05DE-${u.minimum} ${c?.unit??\"\"}`;return`\\u05E7\\u05D8\\u05DF \\u05DE\\u05D3\\u05D9: ${d} ${m} \\u05DC\\u05D4\\u05DB\\u05D9\\u05DC ${y}`.trim()}let f=u.inclusive?\">=\":\">\",p=o(u.origin??\"value\");return c?.unit?`${c.shortLabel} \\u05DE\\u05D3\\u05D9: ${d} ${p} ${f}${u.minimum.toString()} ${c.unit}`:`${c?.shortLabel??\"\\u05E7\\u05D8\\u05DF\"} \\u05DE\\u05D3\\u05D9: ${d} ${p} ${f}${u.minimum.toString()}`}case\"invalid_format\":{let c=u;if(c.format===\"starts_with\")return`\\u05D4\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05D7\\u05D9\\u05D9\\u05D1\\u05EA \\u05DC\\u05D4\\u05EA\\u05D7\\u05D9\\u05DC \\u05D1 \"${c.prefix}\"`;if(c.format===\"ends_with\")return`\\u05D4\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05D7\\u05D9\\u05D9\\u05D1\\u05EA \\u05DC\\u05D4\\u05E1\\u05EA\\u05D9\\u05D9\\u05DD \\u05D1 \"${c.suffix}\"`;if(c.format===\"includes\")return`\\u05D4\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05D7\\u05D9\\u05D9\\u05D1\\u05EA \\u05DC\\u05DB\\u05DC\\u05D5\\u05DC \"${c.includes}\"`;if(c.format===\"regex\")return`\\u05D4\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05D7\\u05D9\\u05D9\\u05D1\\u05EA \\u05DC\\u05D4\\u05EA\\u05D0\\u05D9\\u05DD \\u05DC\\u05EA\\u05D1\\u05E0\\u05D9\\u05EA ${c.pattern}`;let d=a[c.format],f=d?.label??c.format,m=(d?.gender??\"m\")===\"f\"?\"\\u05EA\\u05E7\\u05D9\\u05E0\\u05D4\":\"\\u05EA\\u05E7\\u05D9\\u05DF\";return`${f} \\u05DC\\u05D0 ${m}`}case\"not_multiple_of\":return`\\u05DE\\u05E1\\u05E4\\u05E8 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF: \\u05D7\\u05D9\\u05D9\\u05D1 \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA \\u05DE\\u05DB\\u05E4\\u05DC\\u05D4 \\u05E9\\u05DC ${u.divisor}`;case\"unrecognized_keys\":return`\\u05DE\\u05E4\\u05EA\\u05D7${u.keys.length>1?\"\\u05D5\\u05EA\":\"\"} \\u05DC\\u05D0 \\u05DE\\u05D6\\u05D5\\u05D4${u.keys.length>1?\"\\u05D9\\u05DD\":\"\\u05D4\"}: ${g(u.keys,\", \")}`;case\"invalid_key\":return\"\\u05E9\\u05D3\\u05D4 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF \\u05D1\\u05D0\\u05D5\\u05D1\\u05D9\\u05D9\\u05E7\\u05D8\";case\"invalid_union\":return\"\\u05E7\\u05DC\\u05D8 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF\";case\"invalid_element\":return`\\u05E2\\u05E8\\u05DA \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF \\u05D1${n(u.origin??\"array\")}`;default:return\"\\u05E7\\u05DC\\u05D8 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF\"}}};function kh(){return{localeError:SS()}}var _S=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"\\u0907\\u0928\\u092A\\u0941\\u091F\",email:\"\\u0908\\u092E\\u0947\\u0932 \\u092A\\u0924\\u093E\",url:\"URL\",emoji:\"\\u0907\\u092E\\u094B\\u091C\\u0940\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO \\u0924\\u093F\\u0925\\u093F \\u0914\\u0930 \\u0938\\u092E\\u092F\",date:\"ISO \\u0924\\u093F\\u0925\\u093F\",time:\"ISO \\u0938\\u092E\\u092F\",duration:\"ISO \\u0905\\u0935\\u0927\\u093F\",ipv4:\"IPv4 \\u092A\\u0924\\u093E\",ipv6:\"IPv6 \\u092A\\u0924\\u093E\",mac:\"MAC \\u092A\\u0924\\u093E\",cidrv4:\"IPv4 \\u0936\\u094D\\u0930\\u0947\\u0923\\u0940\",cidrv6:\"IPv6 \\u0936\\u094D\\u0930\\u0947\\u0923\\u0940\",base64:\"Base64-\\u090F\\u0928\\u094D\\u0915\\u094B\\u0921\\u0947\\u0921 \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917\",base64url:\"Base64URL-\\u090F\\u0928\\u094D\\u0915\\u094B\\u0921\\u0947\\u0921 \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917\",json_string:\"JSON \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917\",e164:\"E.164 \\u0938\\u0902\\u0916\\u094D\\u092F\\u093E\",credit_card:\"\\u0915\\u094D\\u0930\\u0947\\u0921\\u093F\\u091F \\u0915\\u093E\\u0930\\u094D\\u0921 \\u0938\\u0902\\u0916\\u094D\\u092F\\u093E\",currency_code:\"\\u092E\\u0941\\u0926\\u094D\\u0930\\u093E \\u0915\\u094B\\u0921\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"\\u0907\\u0928\\u092A\\u0941\\u091F\"},i={nan:\"NaN\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 ${o}, \\u092A\\u094D\\u0930\\u093E\\u092A\\u094D\\u0924 ${a}`}case\"invalid_value\":return n.values.length===1?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 ${b(n.values[0])}`:`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0935\\u093F\\u0915\\u0932\\u094D\\u092A: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 \\u092E\\u093E\\u0928\\u094B\\u0902 \\u092E\\u0947\\u0902 \\u0938\\u0947 \\u090F\\u0915 ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`\\u092C\\u0939\\u0941\\u0924 \\u092C\\u0921\\u093C\\u093E: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 \\u0925\\u093E \\u0915\\u093F ${n.origin??\"\\u092E\\u093E\\u0928\"} \\u092E\\u0947\\u0902 ${o}${n.maximum} ${s.unit} \\u0939\\u094B\\u0902`:`\\u092C\\u0939\\u0941\\u0924 \\u092C\\u0921\\u093C\\u093E: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 \\u0925\\u093E \\u0915\\u093F ${n.origin??\"\\u092E\\u093E\\u0928\"} ${o}${n.maximum} \\u0939\\u094B`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`\\u092C\\u0939\\u0941\\u0924 \\u091B\\u094B\\u091F\\u093E: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 \\u0925\\u093E \\u0915\\u093F ${n.origin} \\u092E\\u0947\\u0902 ${o}${n.minimum} ${s.unit} \\u0939\\u094B\\u0902`:`\\u092C\\u0939\\u0941\\u0924 \\u091B\\u094B\\u091F\\u093E: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 \\u0925\\u093E \\u0915\\u093F ${n.origin} ${o}${n.minimum} \\u0939\\u094B`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917: \"${o.prefix}\" \\u0938\\u0947 \\u0936\\u0941\\u0930\\u0942 \\u0939\\u094B\\u0928\\u093E \\u091A\\u093E\\u0939\\u093F\\u090F`:o.format===\"ends_with\"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917: \"${o.suffix}\" \\u092A\\u0930 \\u0938\\u092E\\u093E\\u092A\\u094D\\u0924 \\u0939\\u094B\\u0928\\u093E \\u091A\\u093E\\u0939\\u093F\\u090F`:o.format===\"includes\"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917: \\u0907\\u0938\\u092E\\u0947\\u0902 \"${o.includes}\" \\u0936\\u093E\\u092E\\u093F\\u0932 \\u0939\\u094B\\u0928\\u093E \\u091A\\u093E\\u0939\\u093F\\u090F`:o.format===\"regex\"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917: \\u092A\\u0948\\u091F\\u0930\\u094D\\u0928 ${o.pattern} \\u0938\\u0947 \\u092E\\u0947\\u0932 \\u0916\\u093E\\u0928\\u093E \\u091A\\u093E\\u0939\\u093F\\u090F`:`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F ${r[o.format]??n.format}`}case\"not_multiple_of\":return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u0902\\u0916\\u094D\\u092F\\u093E: \\u092F\\u0939 ${n.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${n.keys.length>1?\"\\u092F\\u093E\\u0901\":\"\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0915\\u0941\\u0902\\u091C\\u0940: ${n.origin} \\u092E\\u0947\\u0902`;case\"invalid_union\":return n.options&&Array.isArray(n.options)&&n.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 ${n.options.map(s=>`'${s}'`).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: ${n.origin} \\u092E\\u0947\\u0902`;default:return\"\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F\"}}};function $h(){return{localeError:_S()}}var xS=()=>{let t={string:{unit:\"znakova\",verb:\"imati\"},file:{unit:\"bajtova\",verb:\"imati\"},array:{unit:\"stavki\",verb:\"imati\"},set:{unit:\"stavki\",verb:\"imati\"}};function e(n){return t[n]??null}let r={regex:\"unos\",email:\"email adresa\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO datum i vrijeme\",date:\"ISO datum\",time:\"ISO vrijeme\",duration:\"ISO trajanje\",ipv4:\"IPv4 adresa\",ipv6:\"IPv6 adresa\",mac:\"MAC adresa\",cidrv4:\"IPv4 raspon\",cidrv6:\"IPv6 raspon\",base64:\"base64 kodirani tekst\",base64url:\"base64url kodirani tekst\",json_string:\"JSON tekst\",e164:\"E.164 broj\",credit_card:\"broj kreditne kartice\",currency_code:\"kod valute\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"unos\"},i={nan:\"NaN\",string:\"tekst\",number:\"broj\",boolean:\"boolean\",array:\"niz\",object:\"objekt\",set:\"skup\",file:\"datoteka\",date:\"datum\",bigint:\"bigint\",symbol:\"simbol\",undefined:\"undefined\",null:\"null\",function:\"funkcija\",map:\"mapa\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Neispravan unos: o\\u010Dekuje se instanceof ${n.expected}, a primljeno je ${a}`:`Neispravan unos: o\\u010Dekuje se ${o}, a primljeno je ${a}`}case\"invalid_value\":return n.values.length===1?`Neispravna vrijednost: o\\u010Dekivano ${b(n.values[0])}`:`Neispravna opcija: o\\u010Dekivano jedno od ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin),a=i[n.origin]??n.origin;return s?`Preveliko: o\\u010Dekivano da ${a??\"vrijednost\"} ima ${o}${n.maximum.toString()} ${s.unit??\"elemenata\"}`:`Preveliko: o\\u010Dekivano da ${a??\"vrijednost\"} bude ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin),a=i[n.origin]??n.origin;return s?`Premalo: o\\u010Dekivano da ${a} ima ${o}${n.minimum.toString()} ${s.unit}`:`Premalo: o\\u010Dekivano da ${a} bude ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`Neispravan tekst: mora zapo\\u010Dinjati s \"${o.prefix}\"`:o.format===\"ends_with\"?`Neispravan tekst: mora zavr\\u0161avati s \"${o.suffix}\"`:o.format===\"includes\"?`Neispravan tekst: mora sadr\\u017Eavati \"${o.includes}\"`:o.format===\"regex\"?`Neispravan tekst: mora odgovarati uzorku ${o.pattern}`:`Neispravna ${r[o.format]??n.format}`}case\"not_multiple_of\":return`Neispravan broj: mora biti vi\\u0161ekratnik od ${n.divisor}`;case\"unrecognized_keys\":return`Neprepoznat${n.keys.length>1?\"i klju\\u010Devi\":\" klju\\u010D\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`Neispravan klju\\u010D u ${i[n.origin]??n.origin}`;case\"invalid_union\":return\"Neispravan unos\";case\"invalid_element\":return`Neispravna vrijednost u ${i[n.origin]??n.origin}`;default:return\"Neispravan unos\"}}};function Eh(){return{localeError:xS()}}var kS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"bemenet\",email:\"email c\\xEDm\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO id\\u0151b\\xE9lyeg\",date:\"ISO d\\xE1tum\",time:\"ISO id\\u0151\",duration:\"ISO id\\u0151intervallum\",ipv4:\"IPv4 c\\xEDm\",ipv6:\"IPv6 c\\xEDm\",mac:\"MAC c\\xEDm\",cidrv4:\"IPv4 tartom\\xE1ny\",cidrv6:\"IPv6 tartom\\xE1ny\",base64:\"base64-k\\xF3dolt string\",base64url:\"base64url-k\\xF3dolt string\",json_string:\"JSON string\",e164:\"E.164 sz\\xE1m\",credit_card:\"hitelk\\xE1rtyasz\\xE1m\",currency_code:\"p\\xE9nznemk\\xF3d\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"bemenet\"},i={nan:\"NaN\",number:\"sz\\xE1m\",array:\"t\\xF6mb\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\\xC9rv\\xE9nytelen bemenet: a v\\xE1rt \\xE9rt\\xE9k instanceof ${n.expected}, a kapott \\xE9rt\\xE9k ${a}`:`\\xC9rv\\xE9nytelen bemenet: a v\\xE1rt \\xE9rt\\xE9k ${o}, a kapott \\xE9rt\\xE9k ${a}`}case\"invalid_value\":return n.values.length===1?`\\xC9rv\\xE9nytelen bemenet: a v\\xE1rt \\xE9rt\\xE9k ${b(n.values[0])}`:`\\xC9rv\\xE9nytelen opci\\xF3: valamelyik \\xE9rt\\xE9k v\\xE1rt ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`T\\xFAl nagy: ${n.origin??\"\\xE9rt\\xE9k\"} m\\xE9rete t\\xFAl nagy ${o}${n.maximum.toString()} ${s.unit??\"elem\"}`:`T\\xFAl nagy: a bemeneti \\xE9rt\\xE9k ${n.origin??\"\\xE9rt\\xE9k\"} t\\xFAl nagy: ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`T\\xFAl kicsi: a bemeneti \\xE9rt\\xE9k ${n.origin} m\\xE9rete t\\xFAl kicsi ${o}${n.minimum.toString()} ${s.unit}`:`T\\xFAl kicsi: a bemeneti \\xE9rt\\xE9k ${n.origin} t\\xFAl kicsi ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`\\xC9rv\\xE9nytelen string: \"${o.prefix}\" \\xE9rt\\xE9kkel kell kezd\\u0151dnie`:o.format===\"ends_with\"?`\\xC9rv\\xE9nytelen string: \"${o.suffix}\" \\xE9rt\\xE9kkel kell v\\xE9gz\\u0151dnie`:o.format===\"includes\"?`\\xC9rv\\xE9nytelen string: \"${o.includes}\" \\xE9rt\\xE9ket kell tartalmaznia`:o.format===\"regex\"?`\\xC9rv\\xE9nytelen string: ${o.pattern} mint\\xE1nak kell megfelelnie`:`\\xC9rv\\xE9nytelen ${r[o.format]??n.format}`}case\"not_multiple_of\":return`\\xC9rv\\xE9nytelen sz\\xE1m: ${n.divisor} t\\xF6bbsz\\xF6r\\xF6s\\xE9nek kell lennie`;case\"unrecognized_keys\":return`Ismeretlen kulcs${n.keys.length>1?\"s\":\"\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`\\xC9rv\\xE9nytelen kulcs ${n.origin}`;case\"invalid_union\":return\"\\xC9rv\\xE9nytelen bemenet\";case\"invalid_element\":return`\\xC9rv\\xE9nytelen \\xE9rt\\xE9k: ${n.origin}`;default:return\"\\xC9rv\\xE9nytelen bemenet\"}}};function Th(){return{localeError:kS()}}function Ah(t,e,r){return Math.abs(t)===1?e:r}function On(t){if(!t)return\"\";let e=[\"\\u0561\",\"\\u0565\",\"\\u0568\",\"\\u056B\",\"\\u0578\",\"\\u0578\\u0582\",\"\\u0585\"],r=t[t.length-1];return t+(e.includes(r)?\"\\u0576\":\"\\u0568\")}var $S=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"\\u0574\\u0578\\u0582\\u057F\\u0584\",email:\"\\u0567\\u056C. \\u0570\\u0561\\u057D\\u0581\\u0565\",url:\"URL\",emoji:\"\\u0567\\u0574\\u0578\\u057B\\u056B\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO \\u0561\\u0574\\u057D\\u0561\\u0569\\u056B\\u057E \\u0587 \\u056A\\u0561\\u0574\",date:\"ISO \\u0561\\u0574\\u057D\\u0561\\u0569\\u056B\\u057E\",time:\"ISO \\u056A\\u0561\\u0574\",duration:\"ISO \\u057F\\u0587\\u0578\\u0572\\u0578\\u0582\\u0569\\u0575\\u0578\\u0582\\u0576\",ipv4:\"IPv4 \\u0570\\u0561\\u057D\\u0581\\u0565\",ipv6:\"IPv6 \\u0570\\u0561\\u057D\\u0581\\u0565\",mac:\"MAC \\u0570\\u0561\\u057D\\u0581\\u0565\",cidrv4:\"IPv4 \\u0574\\u056B\\u057B\\u0561\\u056F\\u0561\\u0575\\u0584\",cidrv6:\"IPv6 \\u0574\\u056B\\u057B\\u0561\\u056F\\u0561\\u0575\\u0584\",base64:\"base64 \\u0571\\u0587\\u0561\\u0579\\u0561\\u0583\\u0578\\u057E \\u057F\\u0578\\u0572\",base64url:\"base64url \\u0571\\u0587\\u0561\\u0579\\u0561\\u0583\\u0578\\u057E \\u057F\\u0578\\u0572\",json_string:\"JSON \\u057F\\u0578\\u0572\",e164:\"E.164 \\u0570\\u0561\\u0574\\u0561\\u0580\",credit_card:\"\\u056F\\u0580\\u0565\\u0564\\u056B\\u057F \\u0584\\u0561\\u0580\\u057F\\u056B \\u0570\\u0561\\u0574\\u0561\\u0580\",currency_code:\"\\u0561\\u0580\\u056A\\u0578\\u0582\\u0575\\u0569\\u056B \\u056F\\u0578\\u0564\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"\\u0574\\u0578\\u0582\\u057F\\u0584\"},i={nan:\"NaN\",number:\"\\u0569\\u056B\\u057E\",array:\"\\u0566\\u0561\\u0576\\u0563\\u057E\\u0561\\u056E\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.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 ${n.expected}, \\u057D\\u057F\\u0561\\u0581\\u057E\\u0565\\u056C \\u0567 ${a}`:`\\u054D\\u056D\\u0561\\u056C \\u0574\\u0578\\u0582\\u057F\\u0584\\u0561\\u0563\\u0580\\u0578\\u0582\\u0574\\u2024 \\u057D\\u057A\\u0561\\u057D\\u057E\\u0578\\u0582\\u0574 \\u0567\\u0580 ${o}, \\u057D\\u057F\\u0561\\u0581\\u057E\\u0565\\u056C \\u0567 ${a}`}case\"invalid_value\":return n.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 ${b(n.values[1])}`:`\\u054D\\u056D\\u0561\\u056C \\u057F\\u0561\\u0580\\u0562\\u0565\\u0580\\u0561\\u056F\\u2024 \\u057D\\u057A\\u0561\\u057D\\u057E\\u0578\\u0582\\u0574 \\u0567\\u0580 \\u0570\\u0565\\u057F\\u0587\\u0575\\u0561\\u056C\\u0576\\u0565\\u0580\\u056B\\u0581 \\u0574\\u0565\\u056F\\u0568\\u055D ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);if(s){let a=Number(n.maximum),l=Ah(a,s.unit.one,s.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 ${On(n.origin??\"\\u0561\\u0580\\u056A\\u0565\\u0584\")} \\u056F\\u0578\\u0582\\u0576\\u0565\\u0576\\u0561 ${o}${n.maximum.toString()} ${l}`}return`\\u0549\\u0561\\u0583\\u0561\\u0566\\u0561\\u0576\\u0581 \\u0574\\u0565\\u056E \\u0561\\u0580\\u056A\\u0565\\u0584\\u2024 \\u057D\\u057A\\u0561\\u057D\\u057E\\u0578\\u0582\\u0574 \\u0567, \\u0578\\u0580 ${On(n.origin??\"\\u0561\\u0580\\u056A\\u0565\\u0584\")} \\u056C\\u056B\\u0576\\u056B ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);if(s){let a=Number(n.minimum),l=Ah(a,s.unit.one,s.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 ${On(n.origin)} \\u056F\\u0578\\u0582\\u0576\\u0565\\u0576\\u0561 ${o}${n.minimum.toString()} ${l}`}return`\\u0549\\u0561\\u0583\\u0561\\u0566\\u0561\\u0576\\u0581 \\u0583\\u0578\\u0584\\u0580 \\u0561\\u0580\\u056A\\u0565\\u0584\\u2024 \\u057D\\u057A\\u0561\\u057D\\u057E\\u0578\\u0582\\u0574 \\u0567, \\u0578\\u0580 ${On(n.origin)} \\u056C\\u056B\\u0576\\u056B ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`\\u054D\\u056D\\u0561\\u056C \\u057F\\u0578\\u0572\\u2024 \\u057A\\u0565\\u057F\\u0584 \\u0567 \\u057D\\u056F\\u057D\\u057E\\u056B \"${o.prefix}\"-\\u0578\\u057E`:o.format===\"ends_with\"?`\\u054D\\u056D\\u0561\\u056C \\u057F\\u0578\\u0572\\u2024 \\u057A\\u0565\\u057F\\u0584 \\u0567 \\u0561\\u057E\\u0561\\u0580\\u057F\\u057E\\u056B \"${o.suffix}\"-\\u0578\\u057E`:o.format===\"includes\"?`\\u054D\\u056D\\u0561\\u056C \\u057F\\u0578\\u0572\\u2024 \\u057A\\u0565\\u057F\\u0584 \\u0567 \\u057A\\u0561\\u0580\\u0578\\u0582\\u0576\\u0561\\u056F\\u056B \"${o.includes}\"`:o.format===\"regex\"?`\\u054D\\u056D\\u0561\\u056C \\u057F\\u0578\\u0572\\u2024 \\u057A\\u0565\\u057F\\u0584 \\u0567 \\u0570\\u0561\\u0574\\u0561\\u057A\\u0561\\u057F\\u0561\\u057D\\u056D\\u0561\\u0576\\u056B ${o.pattern} \\u0571\\u0587\\u0561\\u0579\\u0561\\u0583\\u056B\\u0576`:`\\u054D\\u056D\\u0561\\u056C ${r[o.format]??n.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 ${n.divisor}-\\u056B`;case\"unrecognized_keys\":return`\\u0549\\u0573\\u0561\\u0576\\u0561\\u0579\\u057E\\u0561\\u056E \\u0562\\u0561\\u0576\\u0561\\u056C\\u056B${n.keys.length>1?\"\\u0576\\u0565\\u0580\":\"\"}. ${g(n.keys,\", \")}`;case\"invalid_key\":return`\\u054D\\u056D\\u0561\\u056C \\u0562\\u0561\\u0576\\u0561\\u056C\\u056B ${On(n.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 ${On(n.origin)}-\\u0578\\u0582\\u0574`;default:return\"\\u054D\\u056D\\u0561\\u056C \\u0574\\u0578\\u0582\\u057F\\u0584\\u0561\\u0563\\u0580\\u0578\\u0582\\u0574\"}}};function Ih(){return{localeError:$S()}}var ES=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"input\",email:\"alamat email\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"tanggal dan waktu format ISO\",date:\"tanggal format ISO\",time:\"jam format ISO\",duration:\"durasi format ISO\",ipv4:\"alamat IPv4\",ipv6:\"alamat IPv6\",mac:\"alamat MAC\",cidrv4:\"rentang alamat IPv4\",cidrv6:\"rentang alamat IPv6\",base64:\"string dengan enkode base64\",base64url:\"string dengan enkode base64url\",json_string:\"string JSON\",e164:\"angka E.164\",credit_card:\"nomor kartu kredit\",currency_code:\"kode mata uang\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"input\"},i={nan:\"NaN\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${a}`:`Input tidak valid: diharapkan ${o}, diterima ${a}`}case\"invalid_value\":return n.values.length===1?`Input tidak valid: diharapkan ${b(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`Terlalu besar: diharapkan ${n.origin??\"value\"} memiliki ${o}${n.maximum.toString()} ${s.unit??\"elemen\"}`:`Terlalu besar: diharapkan ${n.origin??\"value\"} menjadi ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`Terlalu kecil: diharapkan ${n.origin} memiliki ${o}${n.minimum.toString()} ${s.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`String tidak valid: harus dimulai dengan \"${o.prefix}\"`:o.format===\"ends_with\"?`String tidak valid: harus berakhir dengan \"${o.suffix}\"`:o.format===\"includes\"?`String tidak valid: harus menyertakan \"${o.includes}\"`:o.format===\"regex\"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${r[o.format]??n.format} tidak valid`}case\"not_multiple_of\":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case\"unrecognized_keys\":return`Kunci tidak dikenali ${n.keys.length>1?\"s\":\"\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`Kunci tidak valid di ${n.origin}`;case\"invalid_union\":return\"Input tidak valid\";case\"invalid_element\":return`Nilai tidak valid di ${n.origin}`;default:return\"Input tidak valid\"}}};function Ph(){return{localeError:ES()}}var TS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"gildi\",email:\"netfang\",url:\"vefsl\\xF3\\xF0\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO dagsetning og t\\xEDmi\",date:\"ISO dagsetning\",time:\"ISO t\\xEDmi\",duration:\"ISO t\\xEDmalengd\",ipv4:\"IPv4 address\",ipv6:\"IPv6 address\",mac:\"MAC address\",cidrv4:\"IPv4 range\",cidrv6:\"IPv6 range\",base64:\"base64-encoded strengur\",base64url:\"base64url-encoded strengur\",json_string:\"JSON strengur\",e164:\"E.164 t\\xF6lugildi\",credit_card:\"kreditkortan\\xFAmer\",currency_code:\"gjaldmi\\xF0ilsk\\xF3\\xF0i\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"gildi\"},i={nan:\"NaN\",number:\"n\\xFAmer\",array:\"fylki\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \\xDE\\xFA sl\\xF3st inn ${a} \\xFEar sem \\xE1 a\\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \\xDE\\xFA sl\\xF3st inn ${a} \\xFEar sem \\xE1 a\\xF0 vera ${o}`}case\"invalid_value\":return n.values.length===1?`Rangt gildi: gert r\\xE1\\xF0 fyrir ${b(n.values[0])}`:`\\xD3gilt val: m\\xE1 vera eitt af eftirfarandi ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`Of st\\xF3rt: gert er r\\xE1\\xF0 fyrir a\\xF0 ${n.origin??\"gildi\"} hafi ${o}${n.maximum.toString()} ${s.unit??\"hluti\"}`:`Of st\\xF3rt: gert er r\\xE1\\xF0 fyrir a\\xF0 ${n.origin??\"gildi\"} s\\xE9 ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`Of l\\xEDti\\xF0: gert er r\\xE1\\xF0 fyrir a\\xF0 ${n.origin} hafi ${o}${n.minimum.toString()} ${s.unit}`:`Of l\\xEDti\\xF0: gert er r\\xE1\\xF0 fyrir a\\xF0 ${n.origin} s\\xE9 ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`\\xD3gildur strengur: ver\\xF0ur a\\xF0 byrja \\xE1 \"${o.prefix}\"`:o.format===\"ends_with\"?`\\xD3gildur strengur: ver\\xF0ur a\\xF0 enda \\xE1 \"${o.suffix}\"`:o.format===\"includes\"?`\\xD3gildur strengur: ver\\xF0ur a\\xF0 innihalda \"${o.includes}\"`:o.format===\"regex\"?`\\xD3gildur strengur: ver\\xF0ur a\\xF0 fylgja mynstri ${o.pattern}`:`Rangt ${r[o.format]??n.format}`}case\"not_multiple_of\":return`R\\xF6ng tala: ver\\xF0ur a\\xF0 vera margfeldi af ${n.divisor}`;case\"unrecognized_keys\":return`\\xD3\\xFEekkt ${n.keys.length>1?\"ir lyklar\":\"ur lykill\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`Rangur lykill \\xED ${n.origin}`;case\"invalid_union\":return\"Rangt gildi\";case\"invalid_element\":return`Rangt gildi \\xED ${n.origin}`;default:return\"Rangt gildi\"}}};function Oh(){return{localeError:TS()}}var AS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"input\",email:\"indirizzo email\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"data e ora ISO\",date:\"data ISO\",time:\"ora ISO\",duration:\"durata ISO\",ipv4:\"indirizzo IPv4\",ipv6:\"indirizzo IPv6\",mac:\"indirizzo MAC\",cidrv4:\"intervallo IPv4\",cidrv6:\"intervallo IPv6\",base64:\"stringa codificata in base64\",base64url:\"URL codificata in base64\",json_string:\"stringa JSON\",e164:\"numero E.164\",credit_card:\"numero di carta di credito\",currency_code:\"codice valuta\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"input\"},i={nan:\"NaN\",number:\"numero\",array:\"vettore\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${a}`:`Input non valido: atteso ${o}, ricevuto ${a}`}case\"invalid_value\":return n.values.length===1?`Input non valido: atteso ${b(n.values[0])}`:`Opzione non valida: atteso uno tra ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`Troppo grande: ${n.origin??\"valore\"} deve avere ${o}${n.maximum.toString()} ${s.unit??\"elementi\"}`:`Troppo grande: ${n.origin??\"valore\"} deve essere ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`Troppo piccolo: ${n.origin} deve avere ${o}${n.minimum.toString()} ${s.unit}`:`Troppo piccolo: ${n.origin} deve essere ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`Stringa non valida: deve iniziare con \"${o.prefix}\"`:o.format===\"ends_with\"?`Stringa non valida: deve terminare con \"${o.suffix}\"`:o.format===\"includes\"?`Stringa non valida: deve includere \"${o.includes}\"`:o.format===\"regex\"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Input non valido: ${r[o.format]??n.format}`}case\"not_multiple_of\":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case\"unrecognized_keys\":return`Chiav${n.keys.length>1?\"i\":\"e\"} non riconosciut${n.keys.length>1?\"e\":\"a\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`Chiave non valida in ${n.origin}`;case\"invalid_union\":return\"Input non valido\";case\"invalid_element\":return`Valore non valido in ${n.origin}`;default:return\"Input non valido\"}}};function Nh(){return{localeError:AS()}}var IS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"\\u5165\\u529B\\u5024\",email:\"\\u30E1\\u30FC\\u30EB\\u30A2\\u30C9\\u30EC\\u30B9\",url:\"URL\",emoji:\"\\u7D75\\u6587\\u5B57\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO\\u65E5\\u6642\",date:\"ISO\\u65E5\\u4ED8\",time:\"ISO\\u6642\\u523B\",duration:\"ISO\\u671F\\u9593\",ipv4:\"IPv4\\u30A2\\u30C9\\u30EC\\u30B9\",ipv6:\"IPv6\\u30A2\\u30C9\\u30EC\\u30B9\",mac:\"MAC\\u30A2\\u30C9\\u30EC\\u30B9\",cidrv4:\"IPv4\\u7BC4\\u56F2\",cidrv6:\"IPv6\\u7BC4\\u56F2\",base64:\"base64\\u30A8\\u30F3\\u30B3\\u30FC\\u30C9\\u6587\\u5B57\\u5217\",base64url:\"base64url\\u30A8\\u30F3\\u30B3\\u30FC\\u30C9\\u6587\\u5B57\\u5217\",json_string:\"JSON\\u6587\\u5B57\\u5217\",e164:\"E.164\\u756A\\u53F7\",credit_card:\"\\u30AF\\u30EC\\u30B8\\u30C3\\u30C8\\u30AB\\u30FC\\u30C9\\u756A\\u53F7\",currency_code:\"\\u901A\\u8CA8\\u30B3\\u30FC\\u30C9\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"\\u5165\\u529B\\u5024\"},i={nan:\"NaN\",number:\"\\u6570\\u5024\",array:\"\\u914D\\u5217\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\\u7121\\u52B9\\u306A\\u5165\\u529B: instanceof ${n.expected}\\u304C\\u671F\\u5F85\\u3055\\u308C\\u307E\\u3057\\u305F\\u304C\\u3001${a}\\u304C\\u5165\\u529B\\u3055\\u308C\\u307E\\u3057\\u305F`:`\\u7121\\u52B9\\u306A\\u5165\\u529B: ${o}\\u304C\\u671F\\u5F85\\u3055\\u308C\\u307E\\u3057\\u305F\\u304C\\u3001${a}\\u304C\\u5165\\u529B\\u3055\\u308C\\u307E\\u3057\\u305F`}case\"invalid_value\":return n.values.length===1?`\\u7121\\u52B9\\u306A\\u5165\\u529B: ${b(n.values[0])}\\u304C\\u671F\\u5F85\\u3055\\u308C\\u307E\\u3057\\u305F`:`\\u7121\\u52B9\\u306A\\u9078\\u629E: ${g(n.values,\"\\u3001\")}\\u306E\\u3044\\u305A\\u308C\\u304B\\u3067\\u3042\\u308B\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059`;case\"too_big\":{let o=n.inclusive?\"\\u4EE5\\u4E0B\\u3067\\u3042\\u308B\":\"\\u3088\\u308A\\u5C0F\\u3055\\u3044\",s=e(n.origin);return s?`\\u5927\\u304D\\u3059\\u304E\\u308B\\u5024: ${n.origin??\"\\u5024\"}\\u306F${n.maximum.toString()}${s.unit??\"\\u8981\\u7D20\"}${o}\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059`:`\\u5927\\u304D\\u3059\\u304E\\u308B\\u5024: ${n.origin??\"\\u5024\"}\\u306F${n.maximum.toString()}${o}\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059`}case\"too_small\":{let o=n.inclusive?\"\\u4EE5\\u4E0A\\u3067\\u3042\\u308B\":\"\\u3088\\u308A\\u5927\\u304D\\u3044\",s=e(n.origin);return s?`\\u5C0F\\u3055\\u3059\\u304E\\u308B\\u5024: ${n.origin}\\u306F${n.minimum.toString()}${s.unit}${o}\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059`:`\\u5C0F\\u3055\\u3059\\u304E\\u308B\\u5024: ${n.origin}\\u306F${n.minimum.toString()}${o}\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`\\u7121\\u52B9\\u306A\\u6587\\u5B57\\u5217: \"${o.prefix}\"\\u3067\\u59CB\\u307E\\u308B\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059`:o.format===\"ends_with\"?`\\u7121\\u52B9\\u306A\\u6587\\u5B57\\u5217: \"${o.suffix}\"\\u3067\\u7D42\\u308F\\u308B\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059`:o.format===\"includes\"?`\\u7121\\u52B9\\u306A\\u6587\\u5B57\\u5217: \"${o.includes}\"\\u3092\\u542B\\u3080\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059`:o.format===\"regex\"?`\\u7121\\u52B9\\u306A\\u6587\\u5B57\\u5217: \\u30D1\\u30BF\\u30FC\\u30F3${o.pattern}\\u306B\\u4E00\\u81F4\\u3059\\u308B\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059`:`\\u7121\\u52B9\\u306A${r[o.format]??n.format}`}case\"not_multiple_of\":return`\\u7121\\u52B9\\u306A\\u6570\\u5024: ${n.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${n.keys.length>1?\"\\u7FA4\":\"\"}: ${g(n.keys,\"\\u3001\")}`;case\"invalid_key\":return`${n.origin}\\u5185\\u306E\\u7121\\u52B9\\u306A\\u30AD\\u30FC`;case\"invalid_union\":return\"\\u7121\\u52B9\\u306A\\u5165\\u529B\";case\"invalid_element\":return`${n.origin}\\u5185\\u306E\\u7121\\u52B9\\u306A\\u5024`;default:return\"\\u7121\\u52B9\\u306A\\u5165\\u529B\"}}};function Rh(){return{localeError:IS()}}var PS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"\\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0\",email:\"\\u10D4\\u10DA-\\u10E4\\u10DD\\u10E1\\u10E2\\u10D8\\u10E1 \\u10DB\\u10D8\\u10E1\\u10D0\\u10DB\\u10D0\\u10E0\\u10D7\\u10D8\",url:\"URL\",emoji:\"\\u10D4\\u10DB\\u10DD\\u10EF\\u10D8\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"\\u10D7\\u10D0\\u10E0\\u10D8\\u10E6\\u10D8-\\u10D3\\u10E0\\u10DD\",date:\"\\u10D7\\u10D0\\u10E0\\u10D8\\u10E6\\u10D8\",time:\"\\u10D3\\u10E0\\u10DD\",duration:\"\\u10EE\\u10D0\\u10DC\\u10D2\\u10E0\\u10EB\\u10DA\\u10D8\\u10D5\\u10DD\\u10D1\\u10D0\",ipv4:\"IPv4 \\u10DB\\u10D8\\u10E1\\u10D0\\u10DB\\u10D0\\u10E0\\u10D7\\u10D8\",ipv6:\"IPv6 \\u10DB\\u10D8\\u10E1\\u10D0\\u10DB\\u10D0\\u10E0\\u10D7\\u10D8\",mac:\"MAC \\u10DB\\u10D8\\u10E1\\u10D0\\u10DB\\u10D0\\u10E0\\u10D7\\u10D8\",cidrv4:\"IPv4 \\u10D3\\u10D8\\u10D0\\u10DE\\u10D0\\u10D6\\u10DD\\u10DC\\u10D8\",cidrv6:\"IPv6 \\u10D3\\u10D8\\u10D0\\u10DE\\u10D0\\u10D6\\u10DD\\u10DC\\u10D8\",base64:\"base64-\\u10D9\\u10DD\\u10D3\\u10D8\\u10E0\\u10D4\\u10D1\\u10E3\\u10DA\\u10D8 \\u10D5\\u10D4\\u10DA\\u10D8\",base64url:\"base64url-\\u10D9\\u10DD\\u10D3\\u10D8\\u10E0\\u10D4\\u10D1\\u10E3\\u10DA\\u10D8 \\u10D5\\u10D4\\u10DA\\u10D8\",json_string:\"JSON \\u10D5\\u10D4\\u10DA\\u10D8\",e164:\"E.164 \\u10DC\\u10DD\\u10DB\\u10D4\\u10E0\\u10D8\",credit_card:\"\\u10E1\\u10D0\\u10D9\\u10E0\\u10D4\\u10D3\\u10D8\\u10E2\\u10DD \\u10D1\\u10D0\\u10E0\\u10D0\\u10D7\\u10D8\\u10E1 \\u10DC\\u10DD\\u10DB\\u10D4\\u10E0\\u10D8\",currency_code:\"\\u10D5\\u10D0\\u10DA\\u10E3\\u10E2\\u10D8\\u10E1 \\u10D9\\u10DD\\u10D3\\u10D8\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"\\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0\"},i={nan:\"NaN\",number:\"\\u10E0\\u10D8\\u10EA\\u10EE\\u10D5\\u10D8\",string:\"\\u10D5\\u10D4\\u10DA\\u10D8\",boolean:\"\\u10D1\\u10E3\\u10DA\\u10D4\\u10D0\\u10DC\\u10D8\",function:\"\\u10E4\\u10E3\\u10DC\\u10E5\\u10EA\\u10D8\\u10D0\",array:\"\\u10DB\\u10D0\\u10E1\\u10D8\\u10D5\\u10D8\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.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 ${n.expected}, \\u10DB\\u10D8\\u10E6\\u10D4\\u10D1\\u10E3\\u10DA\\u10D8 ${a}`:`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8 ${o}, \\u10DB\\u10D8\\u10E6\\u10D4\\u10D1\\u10E3\\u10DA\\u10D8 ${a}`}case\"invalid_value\":return n.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 ${b(n.values[0])}`:`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10D5\\u10D0\\u10E0\\u10D8\\u10D0\\u10DC\\u10E2\\u10D8: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8\\u10D0 \\u10D4\\u10E0\\u10D7-\\u10D4\\u10E0\\u10D7\\u10D8 ${g(n.values,\"|\")}-\\u10D3\\u10D0\\u10DC`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`\\u10D6\\u10D4\\u10D3\\u10DB\\u10D4\\u10E2\\u10D0\\u10D3 \\u10D3\\u10D8\\u10D3\\u10D8: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8 ${n.origin??\"\\u10DB\\u10DC\\u10D8\\u10E8\\u10D5\\u10DC\\u10D4\\u10DA\\u10DD\\u10D1\\u10D0\"} ${s.verb} ${o}${n.maximum.toString()} ${s.unit}`:`\\u10D6\\u10D4\\u10D3\\u10DB\\u10D4\\u10E2\\u10D0\\u10D3 \\u10D3\\u10D8\\u10D3\\u10D8: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8 ${n.origin??\"\\u10DB\\u10DC\\u10D8\\u10E8\\u10D5\\u10DC\\u10D4\\u10DA\\u10DD\\u10D1\\u10D0\"} \\u10D8\\u10E7\\u10DD\\u10E1 ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`\\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 ${n.origin} ${s.verb} ${o}${n.minimum.toString()} ${s.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 ${n.origin} \\u10D8\\u10E7\\u10DD\\u10E1 ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10D5\\u10D4\\u10DA\\u10D8: \\u10E3\\u10DC\\u10D3\\u10D0 \\u10D8\\u10EC\\u10E7\\u10D4\\u10D1\\u10DD\\u10D3\\u10D4\\u10E1 \"${o.prefix}\"-\\u10D8\\u10D7`:o.format===\"ends_with\"?`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10D5\\u10D4\\u10DA\\u10D8: \\u10E3\\u10DC\\u10D3\\u10D0 \\u10DB\\u10D7\\u10D0\\u10D5\\u10E0\\u10D3\\u10D4\\u10D1\\u10DD\\u10D3\\u10D4\\u10E1 \"${o.suffix}\"-\\u10D8\\u10D7`:o.format===\"includes\"?`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10D5\\u10D4\\u10DA\\u10D8: \\u10E3\\u10DC\\u10D3\\u10D0 \\u10E8\\u10D4\\u10D8\\u10EA\\u10D0\\u10D5\\u10D3\\u10D4\\u10E1 \"${o.includes}\"-\\u10E1`:o.format===\"regex\"?`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10D5\\u10D4\\u10DA\\u10D8: \\u10E3\\u10DC\\u10D3\\u10D0 \\u10E8\\u10D4\\u10D4\\u10E1\\u10D0\\u10D1\\u10D0\\u10DB\\u10D4\\u10D1\\u10DD\\u10D3\\u10D4\\u10E1 \\u10E8\\u10D0\\u10D1\\u10DA\\u10DD\\u10DC\\u10E1 ${o.pattern}`:`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 ${r[o.format]??n.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 ${n.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${n.keys.length>1?\"\\u10D4\\u10D1\\u10D8\":\"\\u10D8\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10D2\\u10D0\\u10E1\\u10D0\\u10E6\\u10D4\\u10D1\\u10D8 ${n.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 ${n.origin}-\\u10E8\\u10D8`;default:return\"\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0\"}}};function Dh(){return{localeError:PS()}}var OS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1794\\u1789\\u17D2\\u1785\\u17BC\\u179B\",email:\"\\u17A2\\u17B6\\u179F\\u1799\\u178A\\u17D2\\u178B\\u17B6\\u1793\\u17A2\\u17CA\\u17B8\\u1798\\u17C2\\u179B\",url:\"URL\",emoji:\"\\u179F\\u1789\\u17D2\\u1789\\u17B6\\u17A2\\u17B6\\u179A\\u1798\\u17D2\\u1798\\u178E\\u17CD\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"\\u1780\\u17B6\\u179B\\u1794\\u179A\\u17B7\\u1785\\u17D2\\u1786\\u17C1\\u1791 \\u1793\\u17B7\\u1784\\u1798\\u17C9\\u17C4\\u1784 ISO\",date:\"\\u1780\\u17B6\\u179B\\u1794\\u179A\\u17B7\\u1785\\u17D2\\u1786\\u17C1\\u1791 ISO\",time:\"\\u1798\\u17C9\\u17C4\\u1784 ISO\",duration:\"\\u179A\\u1799\\u17C8\\u1796\\u17C1\\u179B ISO\",ipv4:\"\\u17A2\\u17B6\\u179F\\u1799\\u178A\\u17D2\\u178B\\u17B6\\u1793 IPv4\",ipv6:\"\\u17A2\\u17B6\\u179F\\u1799\\u178A\\u17D2\\u178B\\u17B6\\u1793 IPv6\",mac:\"\\u17A2\\u17B6\\u179F\\u1799\\u178A\\u17D2\\u178B\\u17B6\\u1793 MAC\",cidrv4:\"\\u178A\\u17C2\\u1793\\u17A2\\u17B6\\u179F\\u1799\\u178A\\u17D2\\u178B\\u17B6\\u1793 IPv4\",cidrv6:\"\\u178A\\u17C2\\u1793\\u17A2\\u17B6\\u179F\\u1799\\u178A\\u17D2\\u178B\\u17B6\\u1793 IPv6\",base64:\"\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A\\u17A2\\u17CA\\u17B7\\u1780\\u17BC\\u178A base64\",base64url:\"\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A\\u17A2\\u17CA\\u17B7\\u1780\\u17BC\\u178A base64url\",json_string:\"\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A JSON\",e164:\"\\u179B\\u17C1\\u1781 E.164\",credit_card:\"\\u179B\\u17C1\\u1781\\u1794\\u17D0\\u178E\\u17D2\\u178E\\u17A5\\u178E\\u1791\\u17B6\\u1793\",currency_code:\"\\u1780\\u17BC\\u178A\\u179A\\u17BC\\u1794\\u17B7\\u1799\\u1794\\u17D0\\u178E\\u17D2\\u178E\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1794\\u1789\\u17D2\\u1785\\u17BC\\u179B\"},i={nan:\"NaN\",number:\"\\u179B\\u17C1\\u1781\",array:\"\\u17A2\\u17B6\\u179A\\u17C1 (Array)\",null:\"\\u1782\\u17D2\\u1798\\u17B6\\u1793\\u178F\\u1798\\u17D2\\u179B\\u17C3 (null)\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.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 ${n.expected} \\u1794\\u17C9\\u17BB\\u1793\\u17D2\\u178F\\u17C2\\u1791\\u1791\\u17BD\\u179B\\u1794\\u17B6\\u1793 ${a}`:`\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1794\\u1789\\u17D2\\u1785\\u17BC\\u179B\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1780\\u17B6\\u179A ${o} \\u1794\\u17C9\\u17BB\\u1793\\u17D2\\u178F\\u17C2\\u1791\\u1791\\u17BD\\u179B\\u1794\\u17B6\\u1793 ${a}`}case\"invalid_value\":return n.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 ${b(n.values[0])}`:`\\u1787\\u1798\\u17D2\\u179A\\u17BE\\u179F\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1787\\u17B6\\u1798\\u17BD\\u1799\\u1780\\u17D2\\u1793\\u17BB\\u1784\\u1785\\u17C6\\u178E\\u17C4\\u1798 ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`\\u1792\\u17C6\\u1796\\u17C1\\u1780\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1780\\u17B6\\u179A ${n.origin??\"\\u178F\\u1798\\u17D2\\u179B\\u17C3\"} ${o} ${n.maximum.toString()} ${s.unit??\"\\u1792\\u17B6\\u178F\\u17BB\"}`:`\\u1792\\u17C6\\u1796\\u17C1\\u1780\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1780\\u17B6\\u179A ${n.origin??\"\\u178F\\u1798\\u17D2\\u179B\\u17C3\"} ${o} ${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`\\u178F\\u17BC\\u1785\\u1796\\u17C1\\u1780\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1780\\u17B6\\u179A ${n.origin} ${o} ${n.minimum.toString()} ${s.unit}`:`\\u178F\\u17BC\\u1785\\u1796\\u17C1\\u1780\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1780\\u17B6\\u179A ${n.origin} ${o} ${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1785\\u17B6\\u1794\\u17CB\\u1795\\u17D2\\u178F\\u17BE\\u1798\\u178A\\u17C4\\u1799 \"${o.prefix}\"`:o.format===\"ends_with\"?`\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1794\\u1789\\u17D2\\u1785\\u1794\\u17CB\\u178A\\u17C4\\u1799 \"${o.suffix}\"`:o.format===\"includes\"?`\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1798\\u17B6\\u1793 \"${o.includes}\"`:o.format===\"regex\"?`\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u178F\\u17C2\\u1795\\u17D2\\u1782\\u17BC\\u1795\\u17D2\\u1782\\u1784\\u1793\\u17B9\\u1784\\u1791\\u1798\\u17D2\\u179A\\u1784\\u17CB\\u178A\\u17C2\\u179B\\u1794\\u17B6\\u1793\\u1780\\u17C6\\u178E\\u178F\\u17CB ${o.pattern}`:`\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 ${r[o.format]??n.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 ${n.divisor}`;case\"unrecognized_keys\":return`\\u179A\\u1780\\u1783\\u17BE\\u1789\\u179F\\u17C4\\u1798\\u17B7\\u1793\\u179F\\u17D2\\u1782\\u17B6\\u179B\\u17CB\\u17D6 ${g(n.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 ${n.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 ${n.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 Co(){return{localeError:OS()}}function Ch(){return Co()}var NS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"\\u0C87\\u0CA8\\u0CCD\\u0CAA\\u0CC1\\u0C9F\\u0CCD\",email:\"email \\u0CB5\\u0CBF\\u0CB3\\u0CBE\\u0CB8\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO \\u0CA6\\u0CBF\\u0CA8\\u0CBE\\u0C82\\u0C95\\u0CA6 \\u0CB8\\u0CAE\\u0CAF\",date:\"ISO \\u0CA6\\u0CBF\\u0CA8\\u0CBE\\u0C82\\u0C95\",time:\"ISO \\u0CB8\\u0CAE\\u0CAF\",duration:\"ISO \\u0C85\\u0CB5\\u0CA7\\u0CBF\",ipv4:\"IPv4 \\u0CB5\\u0CBF\\u0CB3\\u0CBE\\u0CB8\",ipv6:\"IPv6 \\u0CB5\\u0CBF\\u0CB3\\u0CBE\\u0CB8\",mac:\"MAC \\u0CB5\\u0CBF\\u0CB3\\u0CBE\\u0CB8\",cidrv4:\"IPv4 \\u0CB5\\u0CCD\\u0CAF\\u0CBE\\u0CAA\\u0CCD\\u0CA4\\u0CBF\\u0CAF\",cidrv6:\"IPv6 \\u0CB5\\u0CCD\\u0CAF\\u0CBE\\u0CAA\\u0CCD\\u0CA4\\u0CBF\\u0CAF\",base64:\"base64-encoded\\u0CB8\\u0CCD\\u0C9F\\u0CCD\\u0CB0\\u0CBF\\u0C82\\u0C97\\u0CCD\",base64url:\"base64url-encoded\\u0CB8\\u0CCD\\u0C9F\\u0CCD\\u0CB0\\u0CBF\\u0C82\\u0C97\\u0CCD\",json_string:\"JSON\\u0CB8\\u0CCD\\u0C9F\\u0CCD\\u0CB0\\u0CBF\\u0C82\\u0C97\\u0CCD\",e164:\"E.164 \\u0CB8\\u0C82\\u0C96\\u0CCD\\u0CAF\\u0CC6\",credit_card:\"\\u0C95\\u0CCD\\u0CB0\\u0CC6\\u0CA1\\u0CBF\\u0C9F\\u0CCD \\u0C95\\u0CBE\\u0CB0\\u0CCD\\u0CA1\\u0CCD \\u0CB8\\u0C82\\u0C96\\u0CCD\\u0CAF\\u0CC6\",currency_code:\"\\u0C95\\u0CB0\\u0CC6\\u0CA8\\u0CCD\\u0CB8\\u0CBF \\u0C95\\u0CCB\\u0CA1\\u0CCD\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"\\u0C87\\u0CA8\\u0CCD\\u0CAA\\u0CC1\\u0C9F\\u0CCD\"},i={nan:\"NaN\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;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 ${o}, \\u0CB8\\u0CCD\\u0CB5\\u0CC0\\u0C95\\u0CB0\\u0CBF\\u0CB8\\u0CBF\\u0CA6\\u0CA8\\u0CC1 ${a}`}case\"invalid_value\":return n.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 ${b(n.values[0])}`:`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0C86\\u0CAF\\u0CCD\\u0C95\\u0CC6: \\u0C87\\u0CB5\\u0CC1\\u0C97\\u0CB3\\u0CB2\\u0CCD\\u0CB2\\u0CBF \\u0C92\\u0C82\\u0CA6\\u0CA8\\u0CCD\\u0CA8\\u0CC1 \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`\\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 ${n.origin??\"value\"} \\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CB2\\u0CC1 ${o}${n.maximum.toString()} ${s.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 ${n.origin??\"value\"} \\u0C8E\\u0C82\\u0CA6\\u0CC1 ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`\\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 ${n.origin} \\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CB2\\u0CC1 ${o}${n.minimum.toString()} ${s.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 ${n.origin} \\u0C8E\\u0C82\\u0CA6\\u0CC1 ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.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 \"${o.prefix}\"`:o.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 \"${o.suffix}\"`:o.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 \"${o.includes}\"`:o.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 ${o.pattern}`:`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF ${r[o.format]??n.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 ${n.divisor}`;case\"unrecognized_keys\":return`\\u0C97\\u0CC1\\u0CB0\\u0CC1\\u0CA4\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CA6 \\u0C95\\u0CC0 ${n.keys.length>1?\"s\":\"\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF\\u0CB5\\u0CBE\\u0CA6 \\u0C95\\u0CC0 \\u0C87\\u0CA8\\u0CCD ${n.origin}`;case\"invalid_union\":return n.options&&Array.isArray(n.options)&&n.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 ${n.options.map(s=>`'${s}'`).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 ${n.origin}`;default:return\"\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0C87\\u0CA8\\u0CCD\\u200C\\u0CAA\\u0CC1\\u0C9F\\u0CCD\"}}};function zh(){return{localeError:NS()}}var RS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"\\uC785\\uB825\",email:\"\\uC774\\uBA54\\uC77C \\uC8FC\\uC18C\",url:\"URL\",emoji:\"\\uC774\\uBAA8\\uC9C0\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO \\uB0A0\\uC9DC\\uC2DC\\uAC04\",date:\"ISO \\uB0A0\\uC9DC\",time:\"ISO \\uC2DC\\uAC04\",duration:\"ISO \\uAE30\\uAC04\",ipv4:\"IPv4 \\uC8FC\\uC18C\",ipv6:\"IPv6 \\uC8FC\\uC18C\",mac:\"MAC \\uC8FC\\uC18C\",cidrv4:\"IPv4 \\uBC94\\uC704\",cidrv6:\"IPv6 \\uBC94\\uC704\",base64:\"base64 \\uC778\\uCF54\\uB529 \\uBB38\\uC790\\uC5F4\",base64url:\"base64url \\uC778\\uCF54\\uB529 \\uBB38\\uC790\\uC5F4\",json_string:\"JSON \\uBB38\\uC790\\uC5F4\",e164:\"E.164 \\uBC88\\uD638\",credit_card:\"\\uC2E0\\uC6A9\\uCE74\\uB4DC \\uBC88\\uD638\",currency_code:\"\\uD1B5\\uD654 \\uCF54\\uB4DC\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"\\uC785\\uB825\"},i={nan:\"NaN\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\\uC798\\uBABB\\uB41C \\uC785\\uB825: \\uC608\\uC0C1 \\uD0C0\\uC785\\uC740 instanceof ${n.expected}, \\uBC1B\\uC740 \\uD0C0\\uC785\\uC740 ${a}\\uC785\\uB2C8\\uB2E4`:`\\uC798\\uBABB\\uB41C \\uC785\\uB825: \\uC608\\uC0C1 \\uD0C0\\uC785\\uC740 ${o}, \\uBC1B\\uC740 \\uD0C0\\uC785\\uC740 ${a}\\uC785\\uB2C8\\uB2E4`}case\"invalid_value\":return n.values.length===1?`\\uC798\\uBABB\\uB41C \\uC785\\uB825: \\uAC12\\uC740 ${b(n.values[0])} \\uC774\\uC5B4\\uC57C \\uD569\\uB2C8\\uB2E4`:`\\uC798\\uBABB\\uB41C \\uC635\\uC158: ${g(n.values,\"\\uB610\\uB294 \")} \\uC911 \\uD558\\uB098\\uC5EC\\uC57C \\uD569\\uB2C8\\uB2E4`;case\"too_big\":{let o=n.inclusive?\"\\uC774\\uD558\":\"\\uBBF8\\uB9CC\",s=o===\"\\uBBF8\\uB9CC\"?\"\\uC774\\uC5B4\\uC57C \\uD569\\uB2C8\\uB2E4\":\"\\uC5EC\\uC57C \\uD569\\uB2C8\\uB2E4\",a=e(n.origin),l=a?.unit??\"\\uC694\\uC18C\";return a?`${n.origin??\"\\uAC12\"}\\uC774 \\uB108\\uBB34 \\uD07D\\uB2C8\\uB2E4: ${n.maximum.toString()}${l} ${o}${s}`:`${n.origin??\"\\uAC12\"}\\uC774 \\uB108\\uBB34 \\uD07D\\uB2C8\\uB2E4: ${n.maximum.toString()} ${o}${s}`}case\"too_small\":{let o=n.inclusive?\"\\uC774\\uC0C1\":\"\\uCD08\\uACFC\",s=o===\"\\uC774\\uC0C1\"?\"\\uC774\\uC5B4\\uC57C \\uD569\\uB2C8\\uB2E4\":\"\\uC5EC\\uC57C \\uD569\\uB2C8\\uB2E4\",a=e(n.origin),l=a?.unit??\"\\uC694\\uC18C\";return a?`${n.origin??\"\\uAC12\"}\\uC774 \\uB108\\uBB34 \\uC791\\uC2B5\\uB2C8\\uB2E4: ${n.minimum.toString()}${l} ${o}${s}`:`${n.origin??\"\\uAC12\"}\\uC774 \\uB108\\uBB34 \\uC791\\uC2B5\\uB2C8\\uB2E4: ${n.minimum.toString()} ${o}${s}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`\\uC798\\uBABB\\uB41C \\uBB38\\uC790\\uC5F4: \"${o.prefix}\"(\\uC73C)\\uB85C \\uC2DC\\uC791\\uD574\\uC57C \\uD569\\uB2C8\\uB2E4`:o.format===\"ends_with\"?`\\uC798\\uBABB\\uB41C \\uBB38\\uC790\\uC5F4: \"${o.suffix}\"(\\uC73C)\\uB85C \\uB05D\\uB098\\uC57C \\uD569\\uB2C8\\uB2E4`:o.format===\"includes\"?`\\uC798\\uBABB\\uB41C \\uBB38\\uC790\\uC5F4: \"${o.includes}\"\\uC744(\\uB97C) \\uD3EC\\uD568\\uD574\\uC57C \\uD569\\uB2C8\\uB2E4`:o.format===\"regex\"?`\\uC798\\uBABB\\uB41C \\uBB38\\uC790\\uC5F4: \\uC815\\uADDC\\uC2DD ${o.pattern} \\uD328\\uD134\\uACFC \\uC77C\\uCE58\\uD574\\uC57C \\uD569\\uB2C8\\uB2E4`:`\\uC798\\uBABB\\uB41C ${r[o.format]??n.format}`}case\"not_multiple_of\":return`\\uC798\\uBABB\\uB41C \\uC22B\\uC790: ${n.divisor}\\uC758 \\uBC30\\uC218\\uC5EC\\uC57C \\uD569\\uB2C8\\uB2E4`;case\"unrecognized_keys\":return`\\uC778\\uC2DD\\uD560 \\uC218 \\uC5C6\\uB294 \\uD0A4: ${g(n.keys,\", \")}`;case\"invalid_key\":return`\\uC798\\uBABB\\uB41C \\uD0A4: ${n.origin}`;case\"invalid_union\":return\"\\uC798\\uBABB\\uB41C \\uC785\\uB825\";case\"invalid_element\":return`\\uC798\\uBABB\\uB41C \\uAC12: ${n.origin}`;default:return\"\\uC798\\uBABB\\uB41C \\uC785\\uB825\"}}};function Uh(){return{localeError:RS()}}var Wr=t=>t.charAt(0).toUpperCase()+t.slice(1);function Mh(t){let e=Math.abs(t),r=e%10,i=e%100;return i>=11&&i<=19||r===0?\"many\":r===1?\"one\":\"few\"}var DS=()=>{let t={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 e(n,o,s,a){let l=t[n]??null;return l===null?l:{unit:l.unit[o],verb:l.verb[a][s?\"inclusive\":\"notInclusive\"]}}let r={regex:\"\\u012Fvestis\",email:\"el. pa\\u0161to adresas\",url:\"URL\",emoji:\"jaustukas\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO data ir laikas\",date:\"ISO data\",time:\"ISO laikas\",duration:\"ISO trukm\\u0117\",ipv4:\"IPv4 adresas\",ipv6:\"IPv6 adresas\",mac:\"MAC adresas\",cidrv4:\"IPv4 tinklo prefiksas (CIDR)\",cidrv6:\"IPv6 tinklo prefiksas (CIDR)\",base64:\"base64 u\\u017Ekoduota eilut\\u0117\",base64url:\"base64url u\\u017Ekoduota eilut\\u0117\",json_string:\"JSON eilut\\u0117\",e164:\"E.164 numeris\",credit_card:\"kredito kortel\\u0117s numeris\",currency_code:\"valiutos kodas\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"\\u012Fvestis\"},i={nan:\"NaN\",number:\"skai\\u010Dius\",bigint:\"sveikasis skai\\u010Dius\",string:\"eilut\\u0117\",boolean:\"login\\u0117 reik\\u0161m\\u0117\",undefined:\"neapibr\\u0117\\u017Eta reik\\u0161m\\u0117\",function:\"funkcija\",symbol:\"simbolis\",array:\"masyvas\",object:\"objektas\",null:\"nulin\\u0117 reik\\u0161m\\u0117\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${a}, o tik\\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${a}, o tik\\u0117tasi - ${o}`}case\"invalid_value\":return n.values.length===1?`Privalo b\\u016Bti ${b(n.values[0])}`:`Privalo b\\u016Bti vienas i\\u0161 ${g(n.values,\"|\")} pasirinkim\\u0173`;case\"too_big\":{let o=i[n.origin]??n.origin,s=e(n.origin,Mh(Number(n.maximum)),n.inclusive??!1,\"smaller\");if(s?.verb)return`${Wr(o??n.origin??\"reik\\u0161m\\u0117\")} ${s.verb} ${n.maximum.toString()} ${s.unit??\"element\\u0173\"}`;let a=n.inclusive?\"ne didesnis kaip\":\"ma\\u017Eesnis kaip\";return`${Wr(o??n.origin??\"reik\\u0161m\\u0117\")} turi b\\u016Bti ${a} ${n.maximum.toString()} ${s?.unit}`}case\"too_small\":{let o=i[n.origin]??n.origin,s=e(n.origin,Mh(Number(n.minimum)),n.inclusive??!1,\"bigger\");if(s?.verb)return`${Wr(o??n.origin??\"reik\\u0161m\\u0117\")} ${s.verb} ${n.minimum.toString()} ${s.unit??\"element\\u0173\"}`;let a=n.inclusive?\"ne ma\\u017Eesnis kaip\":\"didesnis kaip\";return`${Wr(o??n.origin??\"reik\\u0161m\\u0117\")} turi b\\u016Bti ${a} ${n.minimum.toString()} ${s?.unit}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`Eilut\\u0117 privalo prasid\\u0117ti \"${o.prefix}\"`:o.format===\"ends_with\"?`Eilut\\u0117 privalo pasibaigti \"${o.suffix}\"`:o.format===\"includes\"?`Eilut\\u0117 privalo \\u012Ftraukti \"${o.includes}\"`:o.format===\"regex\"?`Eilut\\u0117 privalo atitikti ${o.pattern}`:`Neteisingas ${r[o.format]??n.format}`}case\"not_multiple_of\":return`Skai\\u010Dius privalo b\\u016Bti ${n.divisor} kartotinis.`;case\"unrecognized_keys\":return`Neatpa\\u017Eint${n.keys.length>1?\"i\":\"as\"} rakt${n.keys.length>1?\"ai\":\"as\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return\"Rastas klaidingas raktas\";case\"invalid_union\":return\"Klaidinga \\u012Fvestis\";case\"invalid_element\":{let o=i[n.origin]??n.origin;return`${Wr(o??n.origin??\"reik\\u0161m\\u0117\")} turi klaiding\\u0105 \\u012Fvest\\u012F`}default:return\"Klaidinga \\u012Fvestis\"}}};function Lh(){return{localeError:DS()}}var CS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"\\u0432\\u043D\\u0435\\u0441\",email:\"\\u0430\\u0434\\u0440\\u0435\\u0441\\u0430 \\u043D\\u0430 \\u0435-\\u043F\\u043E\\u0448\\u0442\\u0430\",url:\"URL\",emoji:\"\\u0435\\u043C\\u043E\\u045F\\u0438\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO \\u0434\\u0430\\u0442\\u0443\\u043C \\u0438 \\u0432\\u0440\\u0435\\u043C\\u0435\",date:\"ISO \\u0434\\u0430\\u0442\\u0443\\u043C\",time:\"ISO \\u0432\\u0440\\u0435\\u043C\\u0435\",duration:\"ISO \\u0432\\u0440\\u0435\\u043C\\u0435\\u0442\\u0440\\u0430\\u0435\\u045A\\u0435\",ipv4:\"IPv4 \\u0430\\u0434\\u0440\\u0435\\u0441\\u0430\",ipv6:\"IPv6 \\u0430\\u0434\\u0440\\u0435\\u0441\\u0430\",mac:\"MAC \\u0430\\u0434\\u0440\\u0435\\u0441\\u0430\",cidrv4:\"IPv4 \\u043E\\u043F\\u0441\\u0435\\u0433\",cidrv6:\"IPv6 \\u043E\\u043F\\u0441\\u0435\\u0433\",base64:\"base64-\\u0435\\u043D\\u043A\\u043E\\u0434\\u0438\\u0440\\u0430\\u043D\\u0430 \\u043D\\u0438\\u0437\\u0430\",base64url:\"base64url-\\u0435\\u043D\\u043A\\u043E\\u0434\\u0438\\u0440\\u0430\\u043D\\u0430 \\u043D\\u0438\\u0437\\u0430\",json_string:\"JSON \\u043D\\u0438\\u0437\\u0430\",e164:\"E.164 \\u0431\\u0440\\u043E\\u0458\",credit_card:\"\\u0431\\u0440\\u043E\\u0458 \\u043D\\u0430 \\u043A\\u0440\\u0435\\u0434\\u0438\\u0442\\u043D\\u0430 \\u043A\\u0430\\u0440\\u0442\\u0438\\u0447\\u043A\\u0430\",currency_code:\"\\u043A\\u043E\\u0434 \\u043D\\u0430 \\u0432\\u0430\\u043B\\u0443\\u0442\\u0430\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"\\u0432\\u043D\\u0435\\u0441\"},i={nan:\"NaN\",number:\"\\u0431\\u0440\\u043E\\u0458\",array:\"\\u043D\\u0438\\u0437\\u0430\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\\u0413\\u0440\\u0435\\u0448\\u0435\\u043D \\u0432\\u043D\\u0435\\u0441: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 instanceof ${n.expected}, \\u043F\\u0440\\u0438\\u043C\\u0435\\u043D\\u043E ${a}`:`\\u0413\\u0440\\u0435\\u0448\\u0435\\u043D \\u0432\\u043D\\u0435\\u0441: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 ${o}, \\u043F\\u0440\\u0438\\u043C\\u0435\\u043D\\u043E ${a}`}case\"invalid_value\":return n.values.length===1?`Invalid input: expected ${b(n.values[0])}`:`\\u0413\\u0440\\u0435\\u0448\\u0430\\u043D\\u0430 \\u043E\\u043F\\u0446\\u0438\\u0458\\u0430: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 \\u0435\\u0434\\u043D\\u0430 ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`\\u041F\\u0440\\u0435\\u043C\\u043D\\u043E\\u0433\\u0443 \\u0433\\u043E\\u043B\\u0435\\u043C: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 ${n.origin??\"\\u0432\\u0440\\u0435\\u0434\\u043D\\u043E\\u0441\\u0442\\u0430\"} \\u0434\\u0430 \\u0438\\u043C\\u0430 ${o}${n.maximum.toString()} ${s.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 ${n.origin??\"\\u0432\\u0440\\u0435\\u0434\\u043D\\u043E\\u0441\\u0442\\u0430\"} \\u0434\\u0430 \\u0431\\u0438\\u0434\\u0435 ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`\\u041F\\u0440\\u0435\\u043C\\u043D\\u043E\\u0433\\u0443 \\u043C\\u0430\\u043B: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 ${n.origin} \\u0434\\u0430 \\u0438\\u043C\\u0430 ${o}${n.minimum.toString()} ${s.unit}`:`\\u041F\\u0440\\u0435\\u043C\\u043D\\u043E\\u0433\\u0443 \\u043C\\u0430\\u043B: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 ${n.origin} \\u0434\\u0430 \\u0431\\u0438\\u0434\\u0435 ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`\\u041D\\u0435\\u0432\\u0430\\u0436\\u0435\\u0447\\u043A\\u0430 \\u043D\\u0438\\u0437\\u0430: \\u043C\\u043E\\u0440\\u0430 \\u0434\\u0430 \\u0437\\u0430\\u043F\\u043E\\u0447\\u043D\\u0443\\u0432\\u0430 \\u0441\\u043E \"${o.prefix}\"`:o.format===\"ends_with\"?`\\u041D\\u0435\\u0432\\u0430\\u0436\\u0435\\u0447\\u043A\\u0430 \\u043D\\u0438\\u0437\\u0430: \\u043C\\u043E\\u0440\\u0430 \\u0434\\u0430 \\u0437\\u0430\\u0432\\u0440\\u0448\\u0443\\u0432\\u0430 \\u0441\\u043E \"${o.suffix}\"`:o.format===\"includes\"?`\\u041D\\u0435\\u0432\\u0430\\u0436\\u0435\\u0447\\u043A\\u0430 \\u043D\\u0438\\u0437\\u0430: \\u043C\\u043E\\u0440\\u0430 \\u0434\\u0430 \\u0432\\u043A\\u043B\\u0443\\u0447\\u0443\\u0432\\u0430 \"${o.includes}\"`:o.format===\"regex\"?`\\u041D\\u0435\\u0432\\u0430\\u0436\\u0435\\u0447\\u043A\\u0430 \\u043D\\u0438\\u0437\\u0430: \\u043C\\u043E\\u0440\\u0430 \\u0434\\u0430 \\u043E\\u0434\\u0433\\u043E\\u0430\\u0440\\u0430 \\u043D\\u0430 \\u043F\\u0430\\u0442\\u0435\\u0440\\u043D\\u043E\\u0442 ${o.pattern}`:`Invalid ${r[o.format]??n.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 ${n.divisor}`;case\"unrecognized_keys\":return`${n.keys.length>1?\"\\u041D\\u0435\\u043F\\u0440\\u0435\\u043F\\u043E\\u0437\\u043D\\u0430\\u0435\\u043D\\u0438 \\u043A\\u043B\\u0443\\u0447\\u0435\\u0432\\u0438\":\"\\u041D\\u0435\\u043F\\u0440\\u0435\\u043F\\u043E\\u0437\\u043D\\u0430\\u0435\\u043D \\u043A\\u043B\\u0443\\u0447\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`\\u0413\\u0440\\u0435\\u0448\\u0435\\u043D \\u043A\\u043B\\u0443\\u0447 \\u0432\\u043E ${n.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 ${n.origin}`;default:return\"\\u0413\\u0440\\u0435\\u0448\\u0435\\u043D \\u0432\\u043D\\u0435\\u0441\"}}};function jh(){return{localeError:CS()}}var zS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"input\",email:\"alamat e-mel\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"tarikh masa ISO\",date:\"tarikh ISO\",time:\"masa ISO\",duration:\"tempoh ISO\",ipv4:\"alamat IPv4\",ipv6:\"alamat IPv6\",mac:\"alamat MAC\",cidrv4:\"julat IPv4\",cidrv6:\"julat IPv6\",base64:\"string dikodkan base64\",base64url:\"string dikodkan base64url\",json_string:\"string JSON\",e164:\"nombor E.164\",credit_card:\"nombor kad kredit\",currency_code:\"kod mata wang\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"input\"},i={nan:\"NaN\",number:\"nombor\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${a}`:`Input tidak sah: dijangka ${o}, diterima ${a}`}case\"invalid_value\":return n.values.length===1?`Input tidak sah: dijangka ${b(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`Terlalu besar: dijangka ${n.origin??\"nilai\"} ${s.verb} ${o}${n.maximum.toString()} ${s.unit??\"elemen\"}`:`Terlalu besar: dijangka ${n.origin??\"nilai\"} adalah ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`Terlalu kecil: dijangka ${n.origin} ${s.verb} ${o}${n.minimum.toString()} ${s.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`String tidak sah: mesti bermula dengan \"${o.prefix}\"`:o.format===\"ends_with\"?`String tidak sah: mesti berakhir dengan \"${o.suffix}\"`:o.format===\"includes\"?`String tidak sah: mesti mengandungi \"${o.includes}\"`:o.format===\"regex\"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${r[o.format]??n.format} tidak sah`}case\"not_multiple_of\":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case\"unrecognized_keys\":return`Kunci tidak dikenali: ${g(n.keys,\", \")}`;case\"invalid_key\":return`Kunci tidak sah dalam ${n.origin}`;case\"invalid_union\":return\"Input tidak sah\";case\"invalid_element\":return`Nilai tidak sah dalam ${n.origin}`;default:return\"Input tidak sah\"}}};function Fh(){return{localeError:zS()}}var US=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"\\u0907\\u0928\\u092A\\u0941\\u091F\",email:\"\\u0907\\u092E\\u0947\\u0932 \\u0920\\u0947\\u0917\\u093E\\u0928\\u093E\",url:\"URL\",emoji:\"\\u0907\\u092E\\u094B\\u091C\\u0940\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO \\u092E\\u093F\\u0924\\u093F \\u0930 \\u0938\\u092E\\u092F\",date:\"ISO \\u092E\\u093F\\u0924\\u093F\",time:\"ISO \\u0938\\u092E\\u092F\",duration:\"ISO \\u0905\\u0935\\u0927\\u093F\",ipv4:\"IPv4 \\u0920\\u0947\\u0917\\u093E\\u0928\\u093E\",ipv6:\"IPv6 \\u0920\\u0947\\u0917\\u093E\\u0928\\u093E\",mac:\"MAC \\u0920\\u0947\\u0917\\u093E\\u0928\\u093E\",cidrv4:\"IPv4 \\u0926\\u093E\\u092F\\u0930\\u093E\",cidrv6:\"IPv6 \\u0926\\u093E\\u092F\\u0930\\u093E\",base64:\"base64-\\u0907\\u0928\\u094D\\u0915\\u094B\\u0921 \\u0917\\u0930\\u093F\\u090F\\u0915\\u094B \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919\",base64url:\"base64url-\\u0907\\u0928\\u094D\\u0915\\u094B\\u0921 \\u0917\\u0930\\u093F\\u090F\\u0915\\u094B \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919\",json_string:\"JSON \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919\",e164:\"E.164 \\u0928\\u092E\\u094D\\u092C\\u0930\",credit_card:\"\\u0915\\u094D\\u0930\\u0947\\u0921\\u093F\\u091F \\u0915\\u093E\\u0930\\u094D\\u0921 \\u0928\\u092E\\u094D\\u092C\\u0930\",currency_code:\"\\u092E\\u0941\\u0926\\u094D\\u0930\\u093E \\u0915\\u094B\\u0921\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"\\u0907\\u0928\\u092A\\u0941\\u091F\"},i={nan:\"NaN\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 ${o}, \\u092A\\u094D\\u0930\\u093E\\u092A\\u094D\\u0924 ${a}`}case\"invalid_value\":return n.values.length===1?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 ${b(n.values[0])}`:`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0935\\u093F\\u0915\\u0932\\u094D\\u092A: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 \\u092E\\u093E\\u0928\\u0939\\u0930\\u0942 \\u092E\\u0927\\u094D\\u092F\\u0947 \\u090F\\u0915 ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`\\u0927\\u0947\\u0930\\u0948 \\u0920\\u0942\\u0932\\u094B: ${n.origin??\"\\u092E\\u093E\\u0928\"} \\u092E\\u093E ${o}${n.maximum.toString()} ${s.unit} ${s.verb}`:`\\u0927\\u0947\\u0930\\u0948 \\u0920\\u0942\\u0932\\u094B: ${n.origin??\"\\u092E\\u093E\\u0928\"} ${o}${n.maximum.toString()} \\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`\\u0927\\u0947\\u0930\\u0948 \\u0938\\u093E\\u0928\\u094B: ${n.origin} \\u092E\\u093E ${o}${n.minimum.toString()} ${s.unit} ${s.verb}`:`\\u0927\\u0947\\u0930\\u0948 \\u0938\\u093E\\u0928\\u094B: ${n.origin} ${o}${n.minimum.toString()} \\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919: \"${o.prefix}\" \\u092C\\u093E\\u091F \\u0938\\u0941\\u0930\\u0941 \\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`:o.format===\"ends_with\"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919: \"${o.suffix}\" \\u092E\\u093E \\u0938\\u092E\\u093E\\u092A\\u094D\\u0924 \\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`:o.format===\"includes\"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919: \"${o.includes}\" \\u0938\\u092E\\u093E\\u0935\\u0947\\u0936 \\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`:o.format===\"regex\"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919: \\u0922\\u093E\\u0901\\u091A\\u093E ${o.pattern} \\u0938\\u0901\\u0917 \\u092E\\u0947\\u0932 \\u0916\\u093E\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`:`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F ${r[o.format]??n.format}`}case\"not_multiple_of\":return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u0902\\u0916\\u094D\\u092F\\u093E: ${n.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${n.keys.length>1?\"\\u0939\\u0930\\u0942\":\"\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0915\\u0941\\u091E\\u094D\\u091C\\u0940: ${n.origin} \\u092E\\u093E`;case\"invalid_union\":return n.options&&Array.isArray(n.options)&&n.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 ${n.options.map(s=>`'${s}'`).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: ${n.origin} \\u092E\\u093E`;default:return\"\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F\"}}};function Bh(){return{localeError:US()}}var MS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"invoer\",email:\"emailadres\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO datum en tijd\",date:\"ISO datum\",time:\"ISO tijd\",duration:\"ISO duur\",ipv4:\"IPv4-adres\",ipv6:\"IPv6-adres\",mac:\"MAC-adres\",cidrv4:\"IPv4-bereik\",cidrv6:\"IPv6-bereik\",base64:\"base64-gecodeerde tekst\",base64url:\"base64 URL-gecodeerde tekst\",json_string:\"JSON string\",e164:\"E.164-nummer\",credit_card:\"creditcardnummer\",currency_code:\"valutacode\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"invoer\"},i={nan:\"NaN\",number:\"getal\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${a}`:`Ongeldige invoer: verwacht ${o}, ontving ${a}`}case\"invalid_value\":return n.values.length===1?`Ongeldige invoer: verwacht ${b(n.values[0])}`:`Ongeldige optie: verwacht \\xE9\\xE9n van ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin),a=n.origin===\"date\"?\"laat\":n.origin===\"string\"?\"lang\":\"groot\";return s?`Te ${a}: verwacht dat ${n.origin??\"waarde\"} ${o}${n.maximum.toString()} ${s.unit??\"elementen\"} ${s.verb}`:`Te ${a}: verwacht dat ${n.origin??\"waarde\"} ${o}${n.maximum.toString()} is`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin),a=n.origin===\"date\"?\"vroeg\":n.origin===\"string\"?\"kort\":\"klein\";return s?`Te ${a}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} ${s.unit} ${s.verb}`:`Te ${a}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} is`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`Ongeldige tekst: moet met \"${o.prefix}\" beginnen`:o.format===\"ends_with\"?`Ongeldige tekst: moet op \"${o.suffix}\" eindigen`:o.format===\"includes\"?`Ongeldige tekst: moet \"${o.includes}\" bevatten`:o.format===\"regex\"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${r[o.format]??n.format}`}case\"not_multiple_of\":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case\"unrecognized_keys\":return`Onbekende key${n.keys.length>1?\"s\":\"\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`Ongeldige key in ${n.origin}`;case\"invalid_union\":return\"Ongeldige invoer\";case\"invalid_element\":return`Ongeldige waarde in ${n.origin}`;default:return\"Ongeldige invoer\"}}};function Vh(){return{localeError:MS()}}var LS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"input\",email:\"e-postadresse\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO dato- og klokkeslett\",date:\"ISO-dato\",time:\"ISO-klokkeslett\",duration:\"ISO-varigheit\",ipv4:\"IPv4-adresse\",ipv6:\"IPv6-adresse\",mac:\"MAC-adresse\",cidrv4:\"IPv4-spekter\",cidrv6:\"IPv6-spekter\",base64:\"base64-enkoda streng\",base64url:\"base64url-enkoda streng\",json_string:\"JSON-streng\",e164:\"E.164-nummer\",credit_card:\"kredittkortnummer\",currency_code:\"valutakode\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"input\"},i={nan:\"NaN\",number:\"tal\",array:\"liste\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventa instanceof ${n.expected}, fekk ${a}`:`Ugyldig input: forventa ${o}, fekk ${a}`}case\"invalid_value\":return n.values.length===1?`Ugyldig verdi: forventa ${b(n.values[0])}`:`Ugyldig val: forventa eitt av ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`For stor(t): forventa ${n.origin??\"value\"} til \\xE5 ha ${o}${n.maximum.toString()} ${s.unit??\"element\"}`:`For stor(t): forventa ${n.origin??\"value\"} til \\xE5 ha ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`For lite(n): forventa ${n.origin} til \\xE5 ha ${o}${n.minimum.toString()} ${s.unit}`:`For lite(n): forventa ${n.origin} til \\xE5 ha ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`Ugyldig streng: m\\xE5 starte med \"${o.prefix}\"`:o.format===\"ends_with\"?`Ugyldig streng: m\\xE5 slutte med \"${o.suffix}\"`:o.format===\"includes\"?`Ugyldig streng: m\\xE5 innehalde \"${o.includes}\"`:o.format===\"regex\"?`Ugyldig streng: m\\xE5 matche m\\xF8nsteret ${o.pattern}`:`Ugyldig ${r[o.format]??n.format}`}case\"not_multiple_of\":return`Ugyldig tal: m\\xE5 vere eit multiplum av ${n.divisor}`;case\"unrecognized_keys\":return`${n.keys.length>1?\"Ukjende n\\xF8klar\":\"Ukjend n\\xF8kkel\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`Ugyldig n\\xF8kkel i ${n.origin}`;case\"invalid_union\":return\"Ugyldig input\";case\"invalid_element\":return`Ugyldig verdi i ${n.origin}`;default:return\"Ugyldig input\"}}};function Zh(){return{localeError:LS()}}var jS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"input\",email:\"e-postadresse\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO dato- og klokkeslett\",date:\"ISO-dato\",time:\"ISO-klokkeslett\",duration:\"ISO-varighet\",ipv4:\"IPv4-adresse\",ipv6:\"IPv6-adresse\",mac:\"MAC-adresse\",cidrv4:\"IPv4-spekter\",cidrv6:\"IPv6-spekter\",base64:\"base64-enkodet streng\",base64url:\"base64url-enkodet streng\",json_string:\"JSON-streng\",e164:\"E.164-nummer\",credit_card:\"kredittkortnummer\",currency_code:\"valutakode\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"input\"},i={nan:\"NaN\",number:\"tall\",array:\"liste\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${a}`:`Ugyldig input: forventet ${o}, fikk ${a}`}case\"invalid_value\":return n.values.length===1?`Ugyldig verdi: forventet ${b(n.values[0])}`:`Ugyldig valg: forventet en av ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`For stor(t): forventet ${n.origin??\"value\"} til \\xE5 ha ${o}${n.maximum.toString()} ${s.unit??\"elementer\"}`:`For stor(t): forventet ${n.origin??\"value\"} til \\xE5 ha ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`For lite(n): forventet ${n.origin} til \\xE5 ha ${o}${n.minimum.toString()} ${s.unit}`:`For lite(n): forventet ${n.origin} til \\xE5 ha ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`Ugyldig streng: m\\xE5 starte med \"${o.prefix}\"`:o.format===\"ends_with\"?`Ugyldig streng: m\\xE5 ende med \"${o.suffix}\"`:o.format===\"includes\"?`Ugyldig streng: m\\xE5 inneholde \"${o.includes}\"`:o.format===\"regex\"?`Ugyldig streng: m\\xE5 matche m\\xF8nsteret ${o.pattern}`:`Ugyldig ${r[o.format]??n.format}`}case\"not_multiple_of\":return`Ugyldig tall: m\\xE5 v\\xE6re et multiplum av ${n.divisor}`;case\"unrecognized_keys\":return`${n.keys.length>1?\"Ukjente n\\xF8kler\":\"Ukjent n\\xF8kkel\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`Ugyldig n\\xF8kkel i ${n.origin}`;case\"invalid_union\":return\"Ugyldig input\";case\"invalid_element\":return`Ugyldig verdi i ${n.origin}`;default:return\"Ugyldig input\"}}};function Wh(){return{localeError:jS()}}var FS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"giren\",email:\"epostag\\xE2h\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO heng\\xE2m\\u0131\",date:\"ISO tarihi\",time:\"ISO zaman\\u0131\",duration:\"ISO m\\xFCddeti\",ipv4:\"IPv4 ni\\u015F\\xE2n\\u0131\",ipv6:\"IPv6 ni\\u015F\\xE2n\\u0131\",mac:\"MAC ni\\u015F\\xE2n\\u0131\",cidrv4:\"IPv4 menzili\",cidrv6:\"IPv6 menzili\",base64:\"base64-\\u015Fifreli metin\",base64url:\"base64url-\\u015Fifreli metin\",json_string:\"JSON metin\",e164:\"E.164 say\\u0131s\\u0131\",credit_card:\"i'tib\\xE2r kart\\u0131 numaras\\u0131\",currency_code:\"para birimi kodu\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"giren\"},i={nan:\"NaN\",number:\"numara\",array:\"saf\",null:\"gayb\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`F\\xE2sit giren: umulan instanceof ${n.expected}, al\\u0131nan ${a}`:`F\\xE2sit giren: umulan ${o}, al\\u0131nan ${a}`}case\"invalid_value\":return n.values.length===1?`F\\xE2sit giren: umulan ${b(n.values[0])}`:`F\\xE2sit tercih: m\\xFBteberler ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`Fazla b\\xFCy\\xFCk: ${n.origin??\"value\"}, ${o}${n.maximum.toString()} ${s.unit??\"elements\"} sahip olmal\\u0131yd\\u0131.`:`Fazla b\\xFCy\\xFCk: ${n.origin??\"value\"}, ${o}${n.maximum.toString()} olmal\\u0131yd\\u0131.`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`Fazla k\\xFC\\xE7\\xFCk: ${n.origin}, ${o}${n.minimum.toString()} ${s.unit} sahip olmal\\u0131yd\\u0131.`:`Fazla k\\xFC\\xE7\\xFCk: ${n.origin}, ${o}${n.minimum.toString()} olmal\\u0131yd\\u0131.`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`F\\xE2sit metin: \"${o.prefix}\" ile ba\\u015Flamal\\u0131.`:o.format===\"ends_with\"?`F\\xE2sit metin: \"${o.suffix}\" ile bitmeli.`:o.format===\"includes\"?`F\\xE2sit metin: \"${o.includes}\" ihtiv\\xE2 etmeli.`:o.format===\"regex\"?`F\\xE2sit metin: ${o.pattern} nak\\u015F\\u0131na uymal\\u0131.`:`F\\xE2sit ${r[o.format]??n.format}`}case\"not_multiple_of\":return`F\\xE2sit say\\u0131: ${n.divisor} kat\\u0131 olmal\\u0131yd\\u0131.`;case\"unrecognized_keys\":return`Tan\\u0131nmayan anahtar ${n.keys.length>1?\"s\":\"\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`${n.origin} i\\xE7in tan\\u0131nmayan anahtar var.`;case\"invalid_union\":return\"Giren tan\\u0131namad\\u0131.\";case\"invalid_element\":return`${n.origin} i\\xE7in tan\\u0131nmayan k\\u0131ymet var.`;default:return\"K\\u0131ymet tan\\u0131namad\\u0131.\"}}};function Gh(){return{localeError:FS()}}var BS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"\\u0648\\u0631\\u0648\\u062F\\u064A\",email:\"\\u0628\\u0631\\u06CC\\u069A\\u0646\\u0627\\u0644\\u06CC\\u06A9\",url:\"\\u06CC\\u0648 \\u0622\\u0631 \\u0627\\u0644\",emoji:\"\\u0627\\u06CC\\u0645\\u0648\\u062C\\u064A\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"\\u0646\\u06CC\\u067C\\u0647 \\u0627\\u0648 \\u0648\\u062E\\u062A\",date:\"\\u0646\\u06D0\\u067C\\u0647\",time:\"\\u0648\\u062E\\u062A\",duration:\"\\u0645\\u0648\\u062F\\u0647\",ipv4:\"\\u062F IPv4 \\u067E\\u062A\\u0647\",ipv6:\"\\u062F IPv6 \\u067E\\u062A\\u0647\",mac:\"\\u062F MAC \\u067E\\u062A\\u0647\",cidrv4:\"\\u062F IPv4 \\u0633\\u0627\\u062D\\u0647\",cidrv6:\"\\u062F IPv6 \\u0633\\u0627\\u062D\\u0647\",base64:\"base64-encoded \\u0645\\u062A\\u0646\",base64url:\"base64url-encoded \\u0645\\u062A\\u0646\",json_string:\"JSON \\u0645\\u062A\\u0646\",e164:\"\\u062F E.164 \\u0634\\u0645\\u06D0\\u0631\\u0647\",credit_card:\"\\u062F \\u06A9\\u0631\\u06CC\\u0689\\u06CC\\u067C \\u06A9\\u0627\\u0631\\u062A \\u0634\\u0645\\u06CC\\u0631\\u0647\",currency_code:\"\\u062F \\u0627\\u0633\\u0639\\u0627\\u0631\\u0648 \\u06A9\\u0648\\u0689\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"\\u0648\\u0631\\u0648\\u062F\\u064A\"},i={nan:\"NaN\",number:\"\\u0639\\u062F\\u062F\",array:\"\\u0627\\u0631\\u06D0\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\\u0646\\u0627\\u0633\\u0645 \\u0648\\u0631\\u0648\\u062F\\u064A: \\u0628\\u0627\\u06CC\\u062F instanceof ${n.expected} \\u0648\\u0627\\u06CC, \\u0645\\u06AB\\u0631 ${a} \\u062A\\u0631\\u0644\\u0627\\u0633\\u0647 \\u0634\\u0648`:`\\u0646\\u0627\\u0633\\u0645 \\u0648\\u0631\\u0648\\u062F\\u064A: \\u0628\\u0627\\u06CC\\u062F ${o} \\u0648\\u0627\\u06CC, \\u0645\\u06AB\\u0631 ${a} \\u062A\\u0631\\u0644\\u0627\\u0633\\u0647 \\u0634\\u0648`}case\"invalid_value\":return n.values.length===1?`\\u0646\\u0627\\u0633\\u0645 \\u0648\\u0631\\u0648\\u062F\\u064A: \\u0628\\u0627\\u06CC\\u062F ${b(n.values[0])} \\u0648\\u0627\\u06CC`:`\\u0646\\u0627\\u0633\\u0645 \\u0627\\u0646\\u062A\\u062E\\u0627\\u0628: \\u0628\\u0627\\u06CC\\u062F \\u06CC\\u0648 \\u0644\\u0647 ${g(n.values,\"|\")} \\u0685\\u062E\\u0647 \\u0648\\u0627\\u06CC`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`\\u0689\\u06CC\\u0631 \\u0644\\u0648\\u06CC: ${n.origin??\"\\u0627\\u0631\\u0632\\u069A\\u062A\"} \\u0628\\u0627\\u06CC\\u062F ${o}${n.maximum.toString()} ${s.unit??\"\\u0639\\u0646\\u0635\\u0631\\u0648\\u0646\\u0647\"} \\u0648\\u0644\\u0631\\u064A`:`\\u0689\\u06CC\\u0631 \\u0644\\u0648\\u06CC: ${n.origin??\"\\u0627\\u0631\\u0632\\u069A\\u062A\"} \\u0628\\u0627\\u06CC\\u062F ${o}${n.maximum.toString()} \\u0648\\u064A`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`\\u0689\\u06CC\\u0631 \\u06A9\\u0648\\u0686\\u0646\\u06CC: ${n.origin} \\u0628\\u0627\\u06CC\\u062F ${o}${n.minimum.toString()} ${s.unit} \\u0648\\u0644\\u0631\\u064A`:`\\u0689\\u06CC\\u0631 \\u06A9\\u0648\\u0686\\u0646\\u06CC: ${n.origin} \\u0628\\u0627\\u06CC\\u062F ${o}${n.minimum.toString()} \\u0648\\u064A`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`\\u0646\\u0627\\u0633\\u0645 \\u0645\\u062A\\u0646: \\u0628\\u0627\\u06CC\\u062F \\u062F \"${o.prefix}\" \\u0633\\u0631\\u0647 \\u067E\\u06CC\\u0644 \\u0634\\u064A`:o.format===\"ends_with\"?`\\u0646\\u0627\\u0633\\u0645 \\u0645\\u062A\\u0646: \\u0628\\u0627\\u06CC\\u062F \\u062F \"${o.suffix}\" \\u0633\\u0631\\u0647 \\u067E\\u0627\\u06CC \\u062A\\u0647 \\u0648\\u0631\\u0633\\u064A\\u0696\\u064A`:o.format===\"includes\"?`\\u0646\\u0627\\u0633\\u0645 \\u0645\\u062A\\u0646: \\u0628\\u0627\\u06CC\\u062F \"${o.includes}\" \\u0648\\u0644\\u0631\\u064A`:o.format===\"regex\"?`\\u0646\\u0627\\u0633\\u0645 \\u0645\\u062A\\u0646: \\u0628\\u0627\\u06CC\\u062F \\u062F ${o.pattern} \\u0633\\u0631\\u0647 \\u0645\\u0637\\u0627\\u0628\\u0642\\u062A \\u0648\\u0644\\u0631\\u064A`:`${r[o.format]??n.format} \\u0646\\u0627\\u0633\\u0645 \\u062F\\u06CC`}case\"not_multiple_of\":return`\\u0646\\u0627\\u0633\\u0645 \\u0639\\u062F\\u062F: \\u0628\\u0627\\u06CC\\u062F \\u062F ${n.divisor} \\u0645\\u0636\\u0631\\u0628 \\u0648\\u064A`;case\"unrecognized_keys\":return`\\u0646\\u0627\\u0633\\u0645 ${n.keys.length>1?\"\\u06A9\\u0644\\u06CC\\u0689\\u0648\\u0646\\u0647\":\"\\u06A9\\u0644\\u06CC\\u0689\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`\\u0646\\u0627\\u0633\\u0645 \\u06A9\\u0644\\u06CC\\u0689 \\u067E\\u0647 ${n.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 ${n.origin} \\u06A9\\u06D0`;default:return\"\\u0646\\u0627\\u0633\\u0645\\u0647 \\u0648\\u0631\\u0648\\u062F\\u064A\"}}};function Kh(){return{localeError:BS()}}var VS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"wyra\\u017Cenie\",email:\"adres email\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"data i godzina w formacie ISO\",date:\"data w formacie ISO\",time:\"godzina w formacie ISO\",duration:\"czas trwania ISO\",ipv4:\"adres IPv4\",ipv6:\"adres IPv6\",mac:\"adres MAC\",cidrv4:\"zakres IPv4\",cidrv6:\"zakres IPv6\",base64:\"ci\\u0105g znak\\xF3w zakodowany w formacie base64\",base64url:\"ci\\u0105g znak\\xF3w zakodowany w formacie base64url\",json_string:\"ci\\u0105g znak\\xF3w w formacie JSON\",e164:\"liczba E.164\",credit_card:\"numer karty kredytowej\",currency_code:\"kod waluty\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"wej\\u015Bcie\"},i={nan:\"NaN\",number:\"liczba\",array:\"tablica\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Nieprawid\\u0142owe dane wej\\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${a}`:`Nieprawid\\u0142owe dane wej\\u015Bciowe: oczekiwano ${o}, otrzymano ${a}`}case\"invalid_value\":return n.values.length===1?`Nieprawid\\u0142owe dane wej\\u015Bciowe: oczekiwano ${b(n.values[0])}`:`Nieprawid\\u0142owa opcja: oczekiwano jednej z warto\\u015Bci ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`Za du\\u017Ca warto\\u015B\\u0107: oczekiwano, \\u017Ce ${n.origin??\"warto\\u015B\\u0107\"} b\\u0119dzie mie\\u0107 ${o}${n.maximum.toString()} ${s.unit??\"element\\xF3w\"}`:`Zbyt du\\u017C(y/a/e): oczekiwano, \\u017Ce ${n.origin??\"warto\\u015B\\u0107\"} b\\u0119dzie wynosi\\u0107 ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`Za ma\\u0142a warto\\u015B\\u0107: oczekiwano, \\u017Ce ${n.origin??\"warto\\u015B\\u0107\"} b\\u0119dzie mie\\u0107 ${o}${n.minimum.toString()} ${s.unit??\"element\\xF3w\"}`:`Zbyt ma\\u0142(y/a/e): oczekiwano, \\u017Ce ${n.origin??\"warto\\u015B\\u0107\"} b\\u0119dzie wynosi\\u0107 ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`Nieprawid\\u0142owy ci\\u0105g znak\\xF3w: musi zaczyna\\u0107 si\\u0119 od \"${o.prefix}\"`:o.format===\"ends_with\"?`Nieprawid\\u0142owy ci\\u0105g znak\\xF3w: musi ko\\u0144czy\\u0107 si\\u0119 na \"${o.suffix}\"`:o.format===\"includes\"?`Nieprawid\\u0142owy ci\\u0105g znak\\xF3w: musi zawiera\\u0107 \"${o.includes}\"`:o.format===\"regex\"?`Nieprawid\\u0142owy ci\\u0105g znak\\xF3w: musi odpowiada\\u0107 wzorcowi ${o.pattern}`:`Nieprawid\\u0142ow(y/a/e) ${r[o.format]??n.format}`}case\"not_multiple_of\":return`Nieprawid\\u0142owa liczba: musi by\\u0107 wielokrotno\\u015Bci\\u0105 ${n.divisor}`;case\"unrecognized_keys\":return`Nierozpoznane klucze${n.keys.length>1?\"s\":\"\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`Nieprawid\\u0142owy klucz w ${n.origin}`;case\"invalid_union\":return\"Nieprawid\\u0142owe dane wej\\u015Bciowe\";case\"invalid_element\":return`Nieprawid\\u0142owa warto\\u015B\\u0107 w ${n.origin}`;default:return\"Nieprawid\\u0142owe dane wej\\u015Bciowe\"}}};function Hh(){return{localeError:VS()}}var ZS=()=>{let t={string:{unit:\"caracteres\"},file:{unit:\"bytes\"},array:{unit:\"elementos\"},set:{unit:\"elementos\"},map:{unit:\"entradas\"}};function e(s){return t[s]??null}let r={regex:\"a entrada\",email:\"o endere\\xE7o de e-mail\",url:\"o URL\",emoji:\"o emoji\",uuid:\"o UUID\",uuidv4:\"o UUIDv4\",uuidv6:\"o UUIDv6\",nanoid:\"o nanoid\",guid:\"o GUID\",cuid:\"o cuid\",cuid2:\"o cuid2\",ulid:\"o ULID\",xid:\"o XID\",ksuid:\"o KSUID\",datetime:\"a data e hora ISO\",date:\"a data ISO\",time:\"a hora ISO\",duration:\"a dura\\xE7\\xE3o ISO\",ipv4:\"o endere\\xE7o IPv4\",ipv6:\"o endere\\xE7o IPv6\",mac:\"o endere\\xE7o MAC\",cidrv4:\"o intervalo de endere\\xE7os IPv4\",cidrv6:\"o intervalo de endere\\xE7os IPv6\",base64:\"o texto codificado em base64\",base64url:\"o texto codificado em base64url\",json_string:\"o texto JSON\",e164:\"o n\\xFAmero E.164\",credit_card:\"o n\\xFAmero de cart\\xE3o de cr\\xE9dito\",currency_code:\"o c\\xF3digo de moeda\",iban:\"o IBAN\",jwt:\"o JWT\",template_literal:\"a entrada\"},i={masculine:{definite:\"o\",indefinite:\"um\"},feminine:{definite:\"a\",indefinite:\"uma\"}},n={string:{name:\"texto\",articles:i.masculine},number:{name:\"n\\xFAmero\",articles:i.masculine},int:{name:\"n\\xFAmero inteiro\",articles:i.masculine},boolean:{name:\"valor booleano\",articles:i.masculine},bigint:{name:\"n\\xFAmero bigint\",articles:i.masculine},symbol:{name:\"s\\xEDmbolo\",articles:i.masculine},undefined:{name:'valor \"undefined\"',articles:i.masculine},null:{name:'valor \"nulo\"',articles:i.masculine},never:{name:'valor \"never\"',articles:i.masculine},void:{name:'valor \"void\"',articles:i.masculine},date:{name:\"data\",articles:i.feminine},array:{name:\"vetor\",articles:i.masculine},object:{name:\"objeto\",articles:i.masculine},tuple:{name:\"tuplo\",articles:i.masculine},record:{name:\"registo\",articles:i.masculine},map:{name:\"mapa\",articles:i.masculine},set:{name:\"conjunto\",articles:i.masculine},file:{name:\"ficheiro\",articles:i.masculine},nonoptional:{name:\"valor n\\xE3o opcional\",articles:i.masculine},nan:{name:'valor \"NaN\"',articles:i.masculine},function:{name:\"fun\\xE7\\xE3o\",articles:i.feminine}};function o(s,a){let l=n[s]??{name:`valor \"${s}\"`,articles:i.masculine};return`${l.articles[a]} ${l.name}`}return s=>{switch(s.code){case\"invalid_type\":{let a=o(s.expected,\"indefinite\"),l=w(s.input),u=o(l,\"indefinite\");return`Entrada inv\\xE1lida: esperava ${a}, recebeu ${u}`}case\"invalid_value\":return s.values.length===1?`Entrada inv\\xE1lida: esperava ${b(s.values[0])}`:`Op\\xE7\\xE3o inv\\xE1lida: esperava uma das seguintes op\\xE7\\xF5es: ${g(s.values,\"|\")}`;case\"too_big\":{let a=s.inclusive?\"<=\":\"<\",l=e(s.origin);return l?`Demasiado grande: esperava que ${o(s.origin,\"definite\")} tivesse ${a} ${s.maximum.toString()} ${l.unit??\"elementos\"}`:`Demasiado grande: esperava que ${o(s.origin,\"definite\")} fosse ${a} ${s.maximum.toString()}`}case\"too_small\":{let a=s.inclusive?\">=\":\">\",l=e(s.origin);return l?`Demasiado pequeno: esperava que ${o(s.origin,\"definite\")} tivesse ${a} ${s.minimum.toString()} ${l.unit??\"elementos\"}`:`Demasiado pequeno: esperava que ${o(s.origin,\"definite\")} fosse ${a} ${s.minimum.toString()}`}case\"invalid_format\":{let a=s;return a.format===\"starts_with\"?`Texto inv\\xE1lido: deve come\\xE7ar por \"${a.prefix}\"`:a.format===\"ends_with\"?`Texto inv\\xE1lido: deve terminar em \"${a.suffix}\"`:a.format===\"includes\"?`Texto inv\\xE1lido: deve incluir \"${a.includes}\"`:a.format===\"regex\"?`Texto inv\\xE1lido: deve corresponder ao padr\\xE3o ${a.pattern}`:`Formato d${r[a.format]??s.format} inv\\xE1lido`}case\"not_multiple_of\":return`N\\xFAmero inv\\xE1lido: deve ser m\\xFAltiplo de ${s.divisor}`;case\"unrecognized_keys\":{let a=s.keys.length>1?\"s\":\"\";return`Chave${a} inv\\xE1lida${a}: ${g(s.keys,\", \")}`}case\"invalid_key\":return`Entrada inv\\xE1lida n${o(s.origin,\"definite\")}`;case\"invalid_union\":return s.options&&Array.isArray(s.options)&&s.options.length>0?`Valor de discrimina\\xE7\\xE3o inv\\xE1lido. Esperava ${s.options.map(l=>`'${l}'`).join(\" | \")}`:\"Entrada inv\\xE1lida\";case\"invalid_element\":return`Entrada inv\\xE1lida n${o(s.origin,\"definite\")}`;default:return\"Entrada inv\\xE1lida\"}}};function Jh(){return{localeError:ZS()}}var WS=()=>{let t={string:{unit:\"caracteres\"},file:{unit:\"bytes\"},array:{unit:\"elementos\"},set:{unit:\"elementos\"},map:{unit:\"entradas\"}};function e(s){return t[s]??null}let r={regex:\"a entrada\",email:\"o endere\\xE7o de e-mail\",url:\"o URL\",emoji:\"o emoji\",uuid:\"o UUID\",uuidv4:\"o UUIDv4\",uuidv6:\"o UUIDv6\",nanoid:\"o nanoid\",guid:\"o GUID\",cuid:\"o cuid\",cuid2:\"o cuid2\",ulid:\"o ULID\",xid:\"o XID\",ksuid:\"o KSUID\",datetime:\"a data e hora ISO\",date:\"a data ISO\",time:\"a hora ISO\",duration:\"a dura\\xE7\\xE3o ISO\",ipv4:\"o endere\\xE7o IPv4\",ipv6:\"o endere\\xE7o IPv6\",mac:\"o endere\\xE7o MAC\",cidrv4:\"a faixa de endere\\xE7os IPv4\",cidrv6:\"a faixa de endere\\xE7os IPv6\",base64:\"o texto codificado em base64\",base64url:\"o texto codificado em base64url\",json_string:\"o texto JSON\",e164:\"o n\\xFAmero E.164\",credit_card:\"o n\\xFAmero de cart\\xE3o de cr\\xE9dito\",currency_code:\"o c\\xF3digo de moeda\",iban:\"o IBAN\",jwt:\"o JWT\",template_literal:\"a entrada\"},i={masculine:{definite:\"o\",indefinite:\"um\"},feminine:{definite:\"a\",indefinite:\"uma\"}},n={string:{name:\"texto\",articles:i.masculine},number:{name:\"n\\xFAmero\",articles:i.masculine},int:{name:\"n\\xFAmero inteiro\",articles:i.masculine},boolean:{name:\"valor booleano\",articles:i.masculine},bigint:{name:\"n\\xFAmero bigint\",articles:i.masculine},symbol:{name:\"s\\xEDmbolo\",articles:i.masculine},undefined:{name:'valor \"undefined\"',articles:i.masculine},null:{name:'valor \"nulo\"',articles:i.masculine},never:{name:'valor \"never\"',articles:i.masculine},void:{name:'valor \"void\"',articles:i.masculine},date:{name:\"data\",articles:i.feminine},array:{name:\"vetor\",articles:i.masculine},object:{name:\"objeto\",articles:i.masculine},tuple:{name:\"tupla\",articles:i.feminine},record:{name:\"registro\",articles:i.masculine},map:{name:\"mapa\",articles:i.masculine},set:{name:\"conjunto\",articles:i.masculine},file:{name:\"arquivo\",articles:i.masculine},nonoptional:{name:\"valor n\\xE3o opcional\",articles:i.masculine},nan:{name:'valor \"NaN\"',articles:i.masculine},function:{name:\"fun\\xE7\\xE3o\",articles:i.feminine}};function o(s,a){let l=n[s]??{name:`valor \"${s}\"`,articles:i.masculine};return`${l.articles[a]} ${l.name}`}return s=>{switch(s.code){case\"invalid_type\":{let a=o(s.expected,\"indefinite\"),l=w(s.input),u=o(l,\"indefinite\");return`Entrada inv\\xE1lida: esperava ${a}, recebeu ${u}`}case\"invalid_value\":return s.values.length===1?`Entrada inv\\xE1lida: esperava ${b(s.values[0])}`:`Op\\xE7\\xE3o inv\\xE1lida: esperava uma das seguintes op\\xE7\\xF5es: ${g(s.values,\"|\")}`;case\"too_big\":{let a=s.inclusive?\"<=\":\"<\",l=e(s.origin);return l?`Grande demais: esperava que ${o(s.origin,\"definite\")} tivesse ${a} ${s.maximum.toString()} ${l.unit??\"elementos\"}`:`Grande demais: esperava que ${o(s.origin,\"definite\")} fosse ${a} ${s.maximum.toString()}`}case\"too_small\":{let a=s.inclusive?\">=\":\">\",l=e(s.origin);return l?`Pequeno demais: esperava que ${o(s.origin,\"definite\")} tivesse ${a} ${s.minimum.toString()} ${l.unit??\"elementos\"}`:`Pequeno demais: esperava que ${o(s.origin,\"definite\")} fosse ${a} ${s.minimum.toString()}`}case\"invalid_format\":{let a=s;return a.format===\"starts_with\"?`Texto inv\\xE1lido: deve come\\xE7ar com \"${a.prefix}\"`:a.format===\"ends_with\"?`Texto inv\\xE1lido: deve terminar com \"${a.suffix}\"`:a.format===\"includes\"?`Texto inv\\xE1lido: deve incluir \"${a.includes}\"`:a.format===\"regex\"?`Texto inv\\xE1lido: deve corresponder ao padr\\xE3o ${a.pattern}`:`Formato d${r[a.format]??s.format} inv\\xE1lido`}case\"not_multiple_of\":return`N\\xFAmero inv\\xE1lido: deve ser m\\xFAltiplo de ${s.divisor}`;case\"unrecognized_keys\":{let a=s.keys.length>1?\"s\":\"\";return`Chave${a} inv\\xE1lida${a}: ${g(s.keys,\", \")}`}case\"invalid_key\":return`Entrada inv\\xE1lida n${o(s.origin,\"definite\")}`;case\"invalid_union\":return s.options&&Array.isArray(s.options)&&s.options.length>0?`Valor de discrimina\\xE7\\xE3o inv\\xE1lido. Esperava ${s.options.map(l=>`'${l}'`).join(\" | \")}`:\"Entrada inv\\xE1lida\";case\"invalid_element\":return`Entrada inv\\xE1lida n${o(s.origin,\"definite\")}`;default:return\"Entrada inv\\xE1lida\"}}};function Xh(){return{localeError:WS()}}var GS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"intrare\",email:\"adres\\u0103 de email\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"dat\\u0103 \\u0219i or\\u0103 ISO\",date:\"dat\\u0103 ISO\",time:\"or\\u0103 ISO\",duration:\"durat\\u0103 ISO\",ipv4:\"adres\\u0103 IPv4\",ipv6:\"adres\\u0103 IPv6\",mac:\"adres\\u0103 MAC\",cidrv4:\"interval IPv4\",cidrv6:\"interval IPv6\",base64:\"\\u0219ir codat base64\",base64url:\"\\u0219ir codat base64url\",json_string:\"\\u0219ir JSON\",e164:\"num\\u0103r E.164\",credit_card:\"num\\u0103r de card de credit\",currency_code:\"cod valutar\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"intrare\"},i={nan:\"NaN\",string:\"\\u0219ir\",number:\"num\\u0103r\",boolean:\"boolean\",function:\"func\\u021Bie\",array:\"matrice\",object:\"obiect\",undefined:\"nedefinit\",symbol:\"simbol\",bigint:\"num\\u0103r mare\",void:\"void\",never:\"never\",map:\"hart\\u0103\",set:\"set\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return`Intrare invalid\\u0103: a\\u0219teptat ${o}, primit ${a}`}case\"invalid_value\":return n.values.length===1?`Intrare invalid\\u0103: a\\u0219teptat ${b(n.values[0])}`:`Op\\u021Biune invalid\\u0103: a\\u0219teptat una dintre ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`Prea mare: a\\u0219teptat ca ${n.origin??\"valoarea\"} ${s.verb} ${o}${n.maximum.toString()} ${s.unit??\"elemente\"}`:`Prea mare: a\\u0219teptat ca ${n.origin??\"valoarea\"} s\\u0103 fie ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`Prea mic: a\\u0219teptat ca ${n.origin} ${s.verb} ${o}${n.minimum.toString()} ${s.unit}`:`Prea mic: a\\u0219teptat ca ${n.origin} s\\u0103 fie ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`\\u0218ir invalid: trebuie s\\u0103 \\xEEnceap\\u0103 cu \"${o.prefix}\"`:o.format===\"ends_with\"?`\\u0218ir invalid: trebuie s\\u0103 se termine cu \"${o.suffix}\"`:o.format===\"includes\"?`\\u0218ir invalid: trebuie s\\u0103 includ\\u0103 \"${o.includes}\"`:o.format===\"regex\"?`\\u0218ir invalid: trebuie s\\u0103 se potriveasc\\u0103 cu modelul ${o.pattern}`:`Format invalid: ${r[o.format]??n.format}`}case\"not_multiple_of\":return`Num\\u0103r invalid: trebuie s\\u0103 fie multiplu de ${n.divisor}`;case\"unrecognized_keys\":return`Chei nerecunoscute: ${g(n.keys,\", \")}`;case\"invalid_key\":return`Cheie invalid\\u0103 \\xEEn ${n.origin}`;case\"invalid_union\":return\"Intrare invalid\\u0103\";case\"invalid_element\":return`Valoare invalid\\u0103 \\xEEn ${n.origin}`;default:return\"Intrare invalid\\u0103\"}}};function Yh(){return{localeError:GS()}}function qh(t,e,r,i){let n=Math.abs(t),o=n%10,s=n%100;return s>=11&&s<=19?i:o===1?e:o>=2&&o<=4?r:i}var KS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"\\u0432\\u0432\\u043E\\u0434\",email:\"email \\u0430\\u0434\\u0440\\u0435\\u0441\",url:\"URL\",emoji:\"\\u044D\\u043C\\u043E\\u0434\\u0437\\u0438\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO \\u0434\\u0430\\u0442\\u0430 \\u0438 \\u0432\\u0440\\u0435\\u043C\\u044F\",date:\"ISO \\u0434\\u0430\\u0442\\u0430\",time:\"ISO \\u0432\\u0440\\u0435\\u043C\\u044F\",duration:\"ISO \\u0434\\u043B\\u0438\\u0442\\u0435\\u043B\\u044C\\u043D\\u043E\\u0441\\u0442\\u044C\",ipv4:\"IPv4 \\u0430\\u0434\\u0440\\u0435\\u0441\",ipv6:\"IPv6 \\u0430\\u0434\\u0440\\u0435\\u0441\",mac:\"MAC \\u0430\\u0434\\u0440\\u0435\\u0441\",cidrv4:\"IPv4 \\u0434\\u0438\\u0430\\u043F\\u0430\\u0437\\u043E\\u043D\",cidrv6:\"IPv6 \\u0434\\u0438\\u0430\\u043F\\u0430\\u0437\\u043E\\u043D\",base64:\"\\u0441\\u0442\\u0440\\u043E\\u043A\\u0430 \\u0432 \\u0444\\u043E\\u0440\\u043C\\u0430\\u0442\\u0435 base64\",base64url:\"\\u0441\\u0442\\u0440\\u043E\\u043A\\u0430 \\u0432 \\u0444\\u043E\\u0440\\u043C\\u0430\\u0442\\u0435 base64url\",json_string:\"JSON \\u0441\\u0442\\u0440\\u043E\\u043A\\u0430\",e164:\"\\u043D\\u043E\\u043C\\u0435\\u0440 E.164\",credit_card:\"\\u043D\\u043E\\u043C\\u0435\\u0440 \\u043A\\u0440\\u0435\\u0434\\u0438\\u0442\\u043D\\u043E\\u0439 \\u043A\\u0430\\u0440\\u0442\\u044B\",currency_code:\"\\u043A\\u043E\\u0434 \\u0432\\u0430\\u043B\\u044E\\u0442\\u044B\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"\\u0432\\u0432\\u043E\\u0434\"},i={nan:\"NaN\",number:\"\\u0447\\u0438\\u0441\\u043B\\u043E\",array:\"\\u043C\\u0430\\u0441\\u0441\\u0438\\u0432\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0439 \\u0432\\u0432\\u043E\\u0434: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C instanceof ${n.expected}, \\u043F\\u043E\\u043B\\u0443\\u0447\\u0435\\u043D\\u043E ${a}`:`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0439 \\u0432\\u0432\\u043E\\u0434: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C ${o}, \\u043F\\u043E\\u043B\\u0443\\u0447\\u0435\\u043D\\u043E ${a}`}case\"invalid_value\":return n.values.length===1?`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0439 \\u0432\\u0432\\u043E\\u0434: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C ${b(n.values[0])}`:`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0439 \\u0432\\u0430\\u0440\\u0438\\u0430\\u043D\\u0442: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C \\u043E\\u0434\\u043D\\u043E \\u0438\\u0437 ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);if(s){let a=Number(n.maximum),l=qh(a,s.unit.one,s.unit.few,s.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 ${n.origin??\"\\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435\"} \\u0431\\u0443\\u0434\\u0435\\u0442 \\u0438\\u043C\\u0435\\u0442\\u044C ${o}${n.maximum.toString()} ${l}`}return`\\u0421\\u043B\\u0438\\u0448\\u043A\\u043E\\u043C \\u0431\\u043E\\u043B\\u044C\\u0448\\u043E\\u0435 \\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C, \\u0447\\u0442\\u043E ${n.origin??\"\\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435\"} \\u0431\\u0443\\u0434\\u0435\\u0442 ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);if(s){let a=Number(n.minimum),l=qh(a,s.unit.one,s.unit.few,s.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 ${n.origin} \\u0431\\u0443\\u0434\\u0435\\u0442 \\u0438\\u043C\\u0435\\u0442\\u044C ${o}${n.minimum.toString()} ${l}`}return`\\u0421\\u043B\\u0438\\u0448\\u043A\\u043E\\u043C \\u043C\\u0430\\u043B\\u0435\\u043D\\u044C\\u043A\\u043E\\u0435 \\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C, \\u0447\\u0442\\u043E ${n.origin} \\u0431\\u0443\\u0434\\u0435\\u0442 ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u0430\\u044F \\u0441\\u0442\\u0440\\u043E\\u043A\\u0430: \\u0434\\u043E\\u043B\\u0436\\u043D\\u0430 \\u043D\\u0430\\u0447\\u0438\\u043D\\u0430\\u0442\\u044C\\u0441\\u044F \\u0441 \"${o.prefix}\"`:o.format===\"ends_with\"?`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u0430\\u044F \\u0441\\u0442\\u0440\\u043E\\u043A\\u0430: \\u0434\\u043E\\u043B\\u0436\\u043D\\u0430 \\u0437\\u0430\\u043A\\u0430\\u043D\\u0447\\u0438\\u0432\\u0430\\u0442\\u044C\\u0441\\u044F \\u043D\\u0430 \"${o.suffix}\"`:o.format===\"includes\"?`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u0430\\u044F \\u0441\\u0442\\u0440\\u043E\\u043A\\u0430: \\u0434\\u043E\\u043B\\u0436\\u043D\\u0430 \\u0441\\u043E\\u0434\\u0435\\u0440\\u0436\\u0430\\u0442\\u044C \"${o.includes}\"`:o.format===\"regex\"?`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u0430\\u044F \\u0441\\u0442\\u0440\\u043E\\u043A\\u0430: \\u0434\\u043E\\u043B\\u0436\\u043D\\u0430 \\u0441\\u043E\\u043E\\u0442\\u0432\\u0435\\u0442\\u0441\\u0442\\u0432\\u043E\\u0432\\u0430\\u0442\\u044C \\u0448\\u0430\\u0431\\u043B\\u043E\\u043D\\u0443 ${o.pattern}`:`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0439 ${r[o.format]??n.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 ${n.divisor}`;case\"unrecognized_keys\":return`\\u041D\\u0435\\u0440\\u0430\\u0441\\u043F\\u043E\\u0437\\u043D\\u0430\\u043D\\u043D${n.keys.length>1?\"\\u044B\\u0435\":\"\\u044B\\u0439\"} \\u043A\\u043B\\u044E\\u0447${n.keys.length>1?\"\\u0438\":\"\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0439 \\u043A\\u043B\\u044E\\u0447 \\u0432 ${n.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 ${n.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 Qh(){return{localeError:KS()}}var HS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"regul\\xE1rny v\\xFDraz\",email:\"e-mailov\\xE1 adresa\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"d\\xE1tum a \\u010Das vo form\\xE1te ISO\",date:\"d\\xE1tum vo form\\xE1te ISO\",time:\"\\u010Das vo form\\xE1te ISO\",duration:\"doba trvania ISO\",ipv4:\"IPv4 adresa\",ipv6:\"IPv6 adresa\",mac:\"MAC adresa\",cidrv4:\"rozsah IPv4\",cidrv6:\"rozsah IPv6\",base64:\"re\\u0165azec zak\\xF3dovan\\xFD vo form\\xE1te base64\",base64url:\"re\\u0165azec zak\\xF3dovan\\xFD vo form\\xE1te base64url\",json_string:\"re\\u0165azec vo form\\xE1te JSON\",e164:\"\\u010D\\xEDslo E.164\",credit_card:\"\\u010D\\xEDslo kreditnej karty\",currency_code:\"k\\xF3d meny\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"vstup\"},i={nan:\"NaN\",number:\"\\u010D\\xEDslo\",string:\"re\\u0165azec\",function:\"funkcia\",array:\"pole\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Neplatn\\xFD vstup: o\\u010Dak\\xE1van\\xE9 instanceof ${n.expected}, obdr\\u017Ean\\xE9 ${a}`:`Neplatn\\xFD vstup: o\\u010Dak\\xE1van\\xE9 ${o}, obdr\\u017Ean\\xE9 ${a}`}case\"invalid_value\":return n.values.length===1?`Neplatn\\xFD vstup: o\\u010Dak\\xE1van\\xE9 ${b(n.values[0])}`:`Neplatn\\xFD vstup: o\\u010Dak\\xE1van\\xE1 jedna z hodn\\xF4t ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`Hodnota je pr\\xEDli\\u0161 ve\\u013Ek\\xE1: ${n.origin??\"hodnota\"} mus\\xED ma\\u0165 ${o}${n.maximum.toString()} ${s.unit??\"prvkov\"}`:`Hodnota je pr\\xEDli\\u0161 ve\\u013Ek\\xE1: ${n.origin??\"hodnota\"} mus\\xED by\\u0165 ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`Hodnota je pr\\xEDli\\u0161 mal\\xE1: ${n.origin??\"hodnota\"} mus\\xED ma\\u0165 ${o}${n.minimum.toString()} ${s.unit??\"prvkov\"}`:`Hodnota je pr\\xEDli\\u0161 mal\\xE1: ${n.origin??\"hodnota\"} mus\\xED by\\u0165 ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`Neplatn\\xFD re\\u0165azec: mus\\xED za\\u010D\\xEDna\\u0165 na \"${o.prefix}\"`:o.format===\"ends_with\"?`Neplatn\\xFD re\\u0165azec: mus\\xED kon\\u010Di\\u0165 na \"${o.suffix}\"`:o.format===\"includes\"?`Neplatn\\xFD re\\u0165azec: mus\\xED obsahova\\u0165 \"${o.includes}\"`:o.format===\"regex\"?`Neplatn\\xFD re\\u0165azec: mus\\xED zodpoveda\\u0165 vzoru ${o.pattern}`:`Neplatn\\xFD form\\xE1t ${r[o.format]??n.format}`}case\"not_multiple_of\":return`Neplatn\\xE9 \\u010D\\xEDslo: mus\\xED by\\u0165 n\\xE1sobkom ${n.divisor}`;case\"unrecognized_keys\":return`Nezn\\xE1me kl\\xFA\\u010De: ${g(n.keys,\", \")}`;case\"invalid_key\":return`Neplatn\\xFD kl\\xFA\\u010D v ${n.origin}`;case\"invalid_union\":return\"Neplatn\\xFD vstup\";case\"invalid_element\":return`Neplatn\\xE1 hodnota v ${n.origin}`;default:return\"Neplatn\\xFD vstup\"}}};function eg(){return{localeError:HS()}}var JS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"vnos\",email:\"e-po\\u0161tni naslov\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO datum in \\u010Das\",date:\"ISO datum\",time:\"ISO \\u010Das\",duration:\"ISO trajanje\",ipv4:\"IPv4 naslov\",ipv6:\"IPv6 naslov\",mac:\"MAC naslov\",cidrv4:\"obseg IPv4\",cidrv6:\"obseg IPv6\",base64:\"base64 kodiran niz\",base64url:\"base64url kodiran niz\",json_string:\"JSON niz\",e164:\"E.164 \\u0161tevilka\",credit_card:\"\\u0161tevilka kreditne kartice\",currency_code:\"koda valute\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"vnos\"},i={nan:\"NaN\",number:\"\\u0161tevilo\",array:\"tabela\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\\u010Dakovano instanceof ${n.expected}, prejeto ${a}`:`Neveljaven vnos: pri\\u010Dakovano ${o}, prejeto ${a}`}case\"invalid_value\":return n.values.length===1?`Neveljaven vnos: pri\\u010Dakovano ${b(n.values[0])}`:`Neveljavna mo\\u017Enost: pri\\u010Dakovano eno izmed ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`Preveliko: pri\\u010Dakovano, da bo ${n.origin??\"vrednost\"} imelo ${o}${n.maximum.toString()} ${s.unit??\"elementov\"}`:`Preveliko: pri\\u010Dakovano, da bo ${n.origin??\"vrednost\"} ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`Premajhno: pri\\u010Dakovano, da bo ${n.origin} imelo ${o}${n.minimum.toString()} ${s.unit}`:`Premajhno: pri\\u010Dakovano, da bo ${n.origin} ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`Neveljaven niz: mora se za\\u010Deti z \"${o.prefix}\"`:o.format===\"ends_with\"?`Neveljaven niz: mora se kon\\u010Dati z \"${o.suffix}\"`:o.format===\"includes\"?`Neveljaven niz: mora vsebovati \"${o.includes}\"`:o.format===\"regex\"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${r[o.format]??n.format}`}case\"not_multiple_of\":return`Neveljavno \\u0161tevilo: mora biti ve\\u010Dkratnik ${n.divisor}`;case\"unrecognized_keys\":return`Neprepoznan${n.keys.length>1?\"i klju\\u010Di\":\" klju\\u010D\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`Neveljaven klju\\u010D v ${n.origin}`;case\"invalid_union\":return\"Neveljaven vnos\";case\"invalid_element\":return`Neveljavna vrednost v ${n.origin}`;default:return\"Neveljaven vnos\"}}};function tg(){return{localeError:JS()}}var XS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"regulj\\xE4rt uttryck\",email:\"e-postadress\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO-datum och tid\",date:\"ISO-datum\",time:\"ISO-tid\",duration:\"ISO-varaktighet\",ipv4:\"IPv4-adress\",ipv6:\"IPv6-adress\",mac:\"MAC-adress\",cidrv4:\"IPv4-spektrum\",cidrv6:\"IPv6-spektrum\",base64:\"base64-kodad str\\xE4ng\",base64url:\"base64url-kodad str\\xE4ng\",json_string:\"JSON-str\\xE4ng\",e164:\"E.164-nummer\",credit_card:\"kreditkortsnummer\",currency_code:\"valutakod\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"mall-literal\"},i={nan:\"NaN\",number:\"antal\",array:\"lista\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\\xF6rv\\xE4ntat instanceof ${n.expected}, fick ${a}`:`Ogiltig inmatning: f\\xF6rv\\xE4ntat ${o}, fick ${a}`}case\"invalid_value\":return n.values.length===1?`Ogiltig inmatning: f\\xF6rv\\xE4ntat ${b(n.values[0])}`:`Ogiltigt val: f\\xF6rv\\xE4ntade en av ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`F\\xF6r stor(t): f\\xF6rv\\xE4ntade ${n.origin??\"v\\xE4rdet\"} att ha ${o}${n.maximum.toString()} ${s.unit??\"element\"}`:`F\\xF6r stor(t): f\\xF6rv\\xE4ntat ${n.origin??\"v\\xE4rdet\"} att ha ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`F\\xF6r lite(t): f\\xF6rv\\xE4ntade ${n.origin??\"v\\xE4rdet\"} att ha ${o}${n.minimum.toString()} ${s.unit}`:`F\\xF6r lite(t): f\\xF6rv\\xE4ntade ${n.origin??\"v\\xE4rdet\"} att ha ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`Ogiltig str\\xE4ng: m\\xE5ste b\\xF6rja med \"${o.prefix}\"`:o.format===\"ends_with\"?`Ogiltig str\\xE4ng: m\\xE5ste sluta med \"${o.suffix}\"`:o.format===\"includes\"?`Ogiltig str\\xE4ng: m\\xE5ste inneh\\xE5lla \"${o.includes}\"`:o.format===\"regex\"?`Ogiltig str\\xE4ng: m\\xE5ste matcha m\\xF6nstret \"${o.pattern}\"`:`Ogiltig(t) ${r[o.format]??n.format}`}case\"not_multiple_of\":return`Ogiltigt tal: m\\xE5ste vara en multipel av ${n.divisor}`;case\"unrecognized_keys\":return`${n.keys.length>1?\"Ok\\xE4nda nycklar\":\"Ok\\xE4nd nyckel\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`Ogiltig nyckel i ${n.origin??\"v\\xE4rdet\"}`;case\"invalid_union\":return\"Ogiltig input\";case\"invalid_element\":return`Ogiltigt v\\xE4rde i ${n.origin??\"v\\xE4rdet\"}`;default:return\"Ogiltig input\"}}};function ng(){return{localeError:XS()}}var YS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"\\u0B89\\u0BB3\\u0BCD\\u0BB3\\u0BC0\\u0B9F\\u0BC1\",email:\"\\u0BAE\\u0BBF\\u0BA9\\u0BCD\\u0BA9\\u0B9E\\u0BCD\\u0B9A\\u0BB2\\u0BCD \\u0BAE\\u0BC1\\u0B95\\u0BB5\\u0BB0\\u0BBF\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO \\u0BA4\\u0BC7\\u0BA4\\u0BBF \\u0BA8\\u0BC7\\u0BB0\\u0BAE\\u0BCD\",date:\"ISO \\u0BA4\\u0BC7\\u0BA4\\u0BBF\",time:\"ISO \\u0BA8\\u0BC7\\u0BB0\\u0BAE\\u0BCD\",duration:\"ISO \\u0B95\\u0BBE\\u0BB2 \\u0B85\\u0BB3\\u0BB5\\u0BC1\",ipv4:\"IPv4 \\u0BAE\\u0BC1\\u0B95\\u0BB5\\u0BB0\\u0BBF\",ipv6:\"IPv6 \\u0BAE\\u0BC1\\u0B95\\u0BB5\\u0BB0\\u0BBF\",mac:\"MAC \\u0BAE\\u0BC1\\u0B95\\u0BB5\\u0BB0\\u0BBF\",cidrv4:\"IPv4 \\u0BB5\\u0BB0\\u0BAE\\u0BCD\\u0BAA\\u0BC1\",cidrv6:\"IPv6 \\u0BB5\\u0BB0\\u0BAE\\u0BCD\\u0BAA\\u0BC1\",base64:\"base64-encoded \\u0B9A\\u0BB0\\u0BAE\\u0BCD\",base64url:\"base64url-encoded \\u0B9A\\u0BB0\\u0BAE\\u0BCD\",json_string:\"JSON \\u0B9A\\u0BB0\\u0BAE\\u0BCD\",e164:\"E.164 \\u0B8E\\u0BA3\\u0BCD\",credit_card:\"\\u0B95\\u0B9F\\u0BA9\\u0BCD \\u0B85\\u0B9F\\u0BCD\\u0B9F\\u0BC8 \\u0B8E\\u0BA3\\u0BCD\",currency_code:\"\\u0BA8\\u0BBE\\u0BA3\\u0BAF\\u0B95\\u0BCD \\u0B95\\u0BC1\\u0BB1\\u0BBF\\u0BAF\\u0BC0\\u0B9F\\u0BC1\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"input\"},i={nan:\"NaN\",number:\"\\u0B8E\\u0BA3\\u0BCD\",array:\"\\u0B85\\u0BA3\\u0BBF\",null:\"\\u0BB5\\u0BC6\\u0BB1\\u0BC1\\u0BAE\\u0BC8\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.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 ${n.expected}, \\u0BAA\\u0BC6\\u0BB1\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ${a}`:`\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B89\\u0BB3\\u0BCD\\u0BB3\\u0BC0\\u0B9F\\u0BC1: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ${o}, \\u0BAA\\u0BC6\\u0BB1\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ${a}`}case\"invalid_value\":return n.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 ${b(n.values[0])}`:`\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0BB5\\u0BBF\\u0BB0\\u0BC1\\u0BAA\\u0BCD\\u0BAA\\u0BAE\\u0BCD: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ${g(n.values,\"|\")} \\u0B87\\u0BB2\\u0BCD \\u0B92\\u0BA9\\u0BCD\\u0BB1\\u0BC1`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`\\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 ${n.origin??\"\\u0BAE\\u0BA4\\u0BBF\\u0BAA\\u0BCD\\u0BAA\\u0BC1\"} ${o}${n.maximum.toString()} ${s.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 ${n.origin??\"\\u0BAE\\u0BA4\\u0BBF\\u0BAA\\u0BCD\\u0BAA\\u0BC1\"} ${o}${n.maximum.toString()} \\u0B86\\u0B95 \\u0B87\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`\\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 ${n.origin} ${o}${n.minimum.toString()} ${s.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 ${n.origin} ${o}${n.minimum.toString()} \\u0B86\\u0B95 \\u0B87\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B9A\\u0BB0\\u0BAE\\u0BCD: \"${o.prefix}\" \\u0B87\\u0BB2\\u0BCD \\u0BA4\\u0BCA\\u0B9F\\u0B99\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD`:o.format===\"ends_with\"?`\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B9A\\u0BB0\\u0BAE\\u0BCD: \"${o.suffix}\" \\u0B87\\u0BB2\\u0BCD \\u0BAE\\u0BC1\\u0B9F\\u0BBF\\u0BB5\\u0B9F\\u0BC8\\u0BAF \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD`:o.format===\"includes\"?`\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B9A\\u0BB0\\u0BAE\\u0BCD: \"${o.includes}\" \\u0B90 \\u0B89\\u0BB3\\u0BCD\\u0BB3\\u0B9F\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD`:o.format===\"regex\"?`\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B9A\\u0BB0\\u0BAE\\u0BCD: ${o.pattern} \\u0BAE\\u0BC1\\u0BB1\\u0BC8\\u0BAA\\u0BBE\\u0B9F\\u0BCD\\u0B9F\\u0BC1\\u0B9F\\u0BA9\\u0BCD \\u0BAA\\u0BCA\\u0BB0\\u0BC1\\u0BA8\\u0BCD\\u0BA4 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD`:`\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 ${r[o.format]??n.format}`}case\"not_multiple_of\":return`\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B8E\\u0BA3\\u0BCD: ${n.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${n.keys.length>1?\"\\u0B95\\u0BB3\\u0BCD\":\"\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`${n.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`${n.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 rg(){return{localeError:YS()}}var qS=()=>{let t={string:{unit:\"\\u0430\\u043B\\u043E\\u043C\\u0430\\u0442\",verb:\"\\u0434\\u043E\\u0448\\u0442\\u0430 \\u0431\\u043E\\u0448\\u0430\\u0434\"},file:{unit:\"\\u0431\\u0430\\u0439\\u0442\",verb:\"\\u0434\\u043E\\u0448\\u0442\\u0430 \\u0431\\u043E\\u0448\\u0430\\u0434\"},array:{unit:\"\\u0443\\u043D\\u0441\\u0443\\u0440\",verb:\"\\u0434\\u043E\\u0448\\u0442\\u0430 \\u0431\\u043E\\u0448\\u0430\\u0434\"},set:{unit:\"\\u0443\\u043D\\u0441\\u0443\\u0440\",verb:\"\\u0434\\u043E\\u0448\\u0442\\u0430 \\u0431\\u043E\\u0448\\u0430\\u0434\"},map:{unit:\"\\u0441\\u0430\\u0431\\u0442\",verb:\"\\u0434\\u043E\\u0448\\u0442\\u0430 \\u0431\\u043E\\u0448\\u0430\\u0434\"}};function e(n){return t[n]??null}let r={regex:\"\\u0432\\u0443\\u0440\\u0443\\u0434\",email:\"\\u0441\\u0443\\u0440\\u043E\\u0493\\u0430\\u0438 email\",url:\"URL\",emoji:\"\\u044D\\u043C\\u043E\\u04B7\\u0438\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"\\u0441\\u0430\\u043D\\u0430\\u0432\\u0443 \\u0432\\u0430\\u049B\\u0442\\u0438 ISO\",date:\"\\u0441\\u0430\\u043D\\u0430\\u0438 ISO\",time:\"\\u0432\\u0430\\u049B\\u0442\\u0438 ISO\",duration:\"\\u0434\\u0430\\u0432\\u043E\\u043C\\u043D\\u043E\\u043A\\u0438\\u0438 ISO\",ipv4:\"\\u0441\\u0443\\u0440\\u043E\\u0493\\u0430\\u0438 IPv4\",ipv6:\"\\u0441\\u0443\\u0440\\u043E\\u0493\\u0430\\u0438 IPv6\",mac:\"\\u0441\\u0443\\u0440\\u043E\\u0493\\u0430\\u0438 MAC\",cidrv4:\"\\u043C\\u0430\\u04B3\\u0434\\u0443\\u0434\\u0430\\u0438 IPv4\",cidrv6:\"\\u043C\\u0430\\u04B3\\u0434\\u0443\\u0434\\u0430\\u0438 IPv6\",base64:\"\\u0441\\u0430\\u0442\\u0440\\u0438 \\u0434\\u0430\\u0440 \\u0444\\u043E\\u0440\\u043C\\u0430\\u0442\\u0438 base64\",base64url:\"\\u0441\\u0430\\u0442\\u0440\\u0438 \\u0434\\u0430\\u0440 \\u0444\\u043E\\u0440\\u043C\\u0430\\u0442\\u0438 base64url\",json_string:\"\\u0441\\u0430\\u0442\\u0440\\u0438 JSON\",e164:\"\\u0440\\u0430\\u049B\\u0430\\u043C\\u0438 E.164\",credit_card:\"\\u0440\\u0430\\u049B\\u0430\\u043C\\u0438 \\u043A\\u043E\\u0440\\u0442\\u0438 \\u043A\\u0440\\u0435\\u0434\\u0438\\u0442\\u04E3\",currency_code:\"\\u0440\\u0430\\u043C\\u0437\\u0438 \\u0430\\u0441\\u044A\\u043E\\u0440\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"\\u0432\\u0443\\u0440\\u0443\\u0434\"},i={nan:\"NaN\",number:\"\\u0440\\u0430\\u049B\\u0430\\u043C\",string:\"\\u0441\\u0430\\u0442\\u0440\",array:\"\\u043C\\u0430\\u0441\\u0441\\u0438\\u0432\",object:\"\\u043E\\u0431\\u044A\\u0435\\u043A\\u0442\",date:\"\\u0441\\u0430\\u043D\\u0430\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return`\\u0412\\u0443\\u0440\\u0443\\u0434\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442: ${o} \\u0438\\u043D\\u0442\\u0438\\u0437\\u043E\\u0440 \\u043C\\u0435\\u0440\\u0430\\u0444\\u0442, ${a} \\u0433\\u0438\\u0440\\u0438\\u0444\\u0442\\u0430 \\u0448\\u0443\\u0434`}case\"invalid_value\":return n.values.length===1?`\\u0412\\u0443\\u0440\\u0443\\u0434\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442: ${b(n.values[0])} \\u0438\\u043D\\u0442\\u0438\\u0437\\u043E\\u0440 \\u043C\\u0435\\u0440\\u0430\\u0444\\u0442`:`\\u0418\\u043D\\u0442\\u0438\\u0445\\u043E\\u0431\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442: \\u044F\\u043A\\u0435 \\u0430\\u0437 ${g(n.values,\"|\")} \\u0438\\u043D\\u0442\\u0438\\u0437\\u043E\\u0440 \\u043C\\u0435\\u0440\\u0430\\u0444\\u0442`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`\\u0425\\u0435\\u043B\\u0435 \\u043A\\u0430\\u043B\\u043E\\u043D: ${n.origin??\"\\u049B\\u0438\\u043C\\u0430\\u0442\"} \\u0431\\u043E\\u044F\\u0434 ${o}${n.maximum.toString()} ${s.unit} ${s.verb}`:`\\u0425\\u0435\\u043B\\u0435 \\u043A\\u0430\\u043B\\u043E\\u043D: ${n.origin??\"\\u049B\\u0438\\u043C\\u0430\\u0442\"} \\u0431\\u043E\\u044F\\u0434 ${o}${n.maximum.toString()} \\u0431\\u043E\\u0448\\u0430\\u0434`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`\\u0425\\u0435\\u043B\\u0435 \\u0445\\u0443\\u0440\\u0434: ${n.origin} \\u0431\\u043E\\u044F\\u0434 ${o}${n.minimum.toString()} ${s.unit} ${s.verb}`:`\\u0425\\u0435\\u043B\\u0435 \\u0445\\u0443\\u0440\\u0434: ${n.origin} \\u0431\\u043E\\u044F\\u0434 ${o}${n.minimum.toString()} \\u0431\\u043E\\u0448\\u0430\\u0434`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`\\u0421\\u0430\\u0442\\u0440\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442: \\u0431\\u043E\\u044F\\u0434 \\u0431\\u043E \"${o.prefix}\" \\u043E\\u0493\\u043E\\u0437 \\u0448\\u0430\\u0432\\u0430\\u0434`:o.format===\"ends_with\"?`\\u0421\\u0430\\u0442\\u0440\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442: \\u0431\\u043E\\u044F\\u0434 \\u0431\\u043E \"${o.suffix}\" \\u0430\\u043D\\u04B7\\u043E\\u043C \\u0451\\u0431\\u0430\\u0434`:o.format===\"includes\"?`\\u0421\\u0430\\u0442\\u0440\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442: \\u0431\\u043E\\u044F\\u0434 \"${o.includes}\"-\\u0440\\u043E \\u0434\\u0430\\u0440 \\u0431\\u0430\\u0440 \\u0433\\u0438\\u0440\\u0430\\u0434`:o.format===\"regex\"?`\\u0421\\u0430\\u0442\\u0440\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442: \\u0431\\u043E\\u044F\\u0434 \\u0431\\u0430 \\u043D\\u0430\\u043C\\u0443\\u043D\\u0430\\u0438 ${o.pattern} \\u043C\\u0443\\u0432\\u043E\\u0444\\u0438\\u049B\\u0430\\u0442 \\u043A\\u0443\\u043D\\u0430\\u0434`:`${r[o.format]??n.format}-\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442`}case\"not_multiple_of\":return`\\u0420\\u0430\\u049B\\u0430\\u043C\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442: \\u0431\\u043E\\u044F\\u0434 \\u0431\\u0430 ${n.divisor} \\u0431\\u0435 \\u0431\\u0430\\u049B\\u0438\\u044F \\u0442\\u0430\\u049B\\u0441\\u0438\\u043C \\u0448\\u0430\\u0432\\u0430\\u0434`;case\"unrecognized_keys\":return`\\u041A\\u0430\\u043B\\u0438\\u0434${n.keys.length>1?\"\\u04B3\\u043E\\u0438\":\"\\u0438\"} \\u043D\\u043E\\u043C\\u0430\\u044A\\u043B\\u0443\\u043C: ${g(n.keys,\", \")}`;case\"invalid_key\":return`\\u041A\\u0430\\u043B\\u0438\\u0434\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442 \\u0434\\u0430\\u0440 ${n.origin}`;case\"invalid_union\":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\\u049A\\u0438\\u043C\\u0430\\u0442\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442\\u0438 \\u0434\\u0438\\u0441\\u043A\\u0440\\u0438\\u043C\\u0438\\u043D\\u0430\\u0442\\u043E\\u0440: ${n.options.map(s=>`'${s}'`).join(\" | \")} \\u0438\\u043D\\u0442\\u0438\\u0437\\u043E\\u0440 \\u043C\\u0435\\u0440\\u0430\\u0444\\u0442`:\"\\u0412\\u0443\\u0440\\u0443\\u0434\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442\";case\"invalid_element\":return`\\u049A\\u0438\\u043C\\u0430\\u0442\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442 \\u0434\\u0430\\u0440 ${n.origin}`;default:return\"\\u0412\\u0443\\u0440\\u0443\\u0434\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442\"}}};function ig(){return{localeError:qS()}}var QS=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"\\u0E02\\u0E49\\u0E2D\\u0E21\\u0E39\\u0E25\\u0E17\\u0E35\\u0E48\\u0E1B\\u0E49\\u0E2D\\u0E19\",email:\"\\u0E17\\u0E35\\u0E48\\u0E2D\\u0E22\\u0E39\\u0E48\\u0E2D\\u0E35\\u0E40\\u0E21\\u0E25\",url:\"URL\",emoji:\"\\u0E2D\\u0E34\\u0E42\\u0E21\\u0E08\\u0E34\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"\\u0E27\\u0E31\\u0E19\\u0E17\\u0E35\\u0E48\\u0E40\\u0E27\\u0E25\\u0E32\\u0E41\\u0E1A\\u0E1A ISO\",date:\"\\u0E27\\u0E31\\u0E19\\u0E17\\u0E35\\u0E48\\u0E41\\u0E1A\\u0E1A ISO\",time:\"\\u0E40\\u0E27\\u0E25\\u0E32\\u0E41\\u0E1A\\u0E1A ISO\",duration:\"\\u0E0A\\u0E48\\u0E27\\u0E07\\u0E40\\u0E27\\u0E25\\u0E32\\u0E41\\u0E1A\\u0E1A ISO\",ipv4:\"\\u0E17\\u0E35\\u0E48\\u0E2D\\u0E22\\u0E39\\u0E48 IPv4\",ipv6:\"\\u0E17\\u0E35\\u0E48\\u0E2D\\u0E22\\u0E39\\u0E48 IPv6\",mac:\"\\u0E17\\u0E35\\u0E48\\u0E2D\\u0E22\\u0E39\\u0E48 MAC\",cidrv4:\"\\u0E0A\\u0E48\\u0E27\\u0E07 IP \\u0E41\\u0E1A\\u0E1A IPv4\",cidrv6:\"\\u0E0A\\u0E48\\u0E27\\u0E07 IP \\u0E41\\u0E1A\\u0E1A IPv6\",base64:\"\\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\\u0E41\\u0E1A\\u0E1A Base64\",base64url:\"\\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\\u0E41\\u0E1A\\u0E1A Base64 \\u0E2A\\u0E33\\u0E2B\\u0E23\\u0E31\\u0E1A URL\",json_string:\"\\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\\u0E41\\u0E1A\\u0E1A JSON\",e164:\"\\u0E40\\u0E1A\\u0E2D\\u0E23\\u0E4C\\u0E42\\u0E17\\u0E23\\u0E28\\u0E31\\u0E1E\\u0E17\\u0E4C\\u0E23\\u0E30\\u0E2B\\u0E27\\u0E48\\u0E32\\u0E07\\u0E1B\\u0E23\\u0E30\\u0E40\\u0E17\\u0E28 (E.164)\",credit_card:\"\\u0E2B\\u0E21\\u0E32\\u0E22\\u0E40\\u0E25\\u0E02\\u0E1A\\u0E31\\u0E15\\u0E23\\u0E40\\u0E04\\u0E23\\u0E14\\u0E34\\u0E15\",currency_code:\"\\u0E23\\u0E2B\\u0E31\\u0E2A\\u0E2A\\u0E01\\u0E38\\u0E25\\u0E40\\u0E07\\u0E34\\u0E19\",iban:\"IBAN\",jwt:\"\\u0E42\\u0E17\\u0E40\\u0E04\\u0E19 JWT\",template_literal:\"\\u0E02\\u0E49\\u0E2D\\u0E21\\u0E39\\u0E25\\u0E17\\u0E35\\u0E48\\u0E1B\\u0E49\\u0E2D\\u0E19\"},i={nan:\"NaN\",number:\"\\u0E15\\u0E31\\u0E27\\u0E40\\u0E25\\u0E02\",array:\"\\u0E2D\\u0E32\\u0E23\\u0E4C\\u0E40\\u0E23\\u0E22\\u0E4C (Array)\",null:\"\\u0E44\\u0E21\\u0E48\\u0E21\\u0E35\\u0E04\\u0E48\\u0E32 (null)\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.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 ${n.expected} \\u0E41\\u0E15\\u0E48\\u0E44\\u0E14\\u0E49\\u0E23\\u0E31\\u0E1A ${a}`:`\\u0E1B\\u0E23\\u0E30\\u0E40\\u0E20\\u0E17\\u0E02\\u0E49\\u0E2D\\u0E21\\u0E39\\u0E25\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E04\\u0E27\\u0E23\\u0E40\\u0E1B\\u0E47\\u0E19 ${o} \\u0E41\\u0E15\\u0E48\\u0E44\\u0E14\\u0E49\\u0E23\\u0E31\\u0E1A ${a}`}case\"invalid_value\":return n.values.length===1?`\\u0E04\\u0E48\\u0E32\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E04\\u0E27\\u0E23\\u0E40\\u0E1B\\u0E47\\u0E19 ${b(n.values[0])}`:`\\u0E15\\u0E31\\u0E27\\u0E40\\u0E25\\u0E37\\u0E2D\\u0E01\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E04\\u0E27\\u0E23\\u0E40\\u0E1B\\u0E47\\u0E19\\u0E2B\\u0E19\\u0E36\\u0E48\\u0E07\\u0E43\\u0E19 ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"\\u0E44\\u0E21\\u0E48\\u0E40\\u0E01\\u0E34\\u0E19\":\"\\u0E19\\u0E49\\u0E2D\\u0E22\\u0E01\\u0E27\\u0E48\\u0E32\",s=e(n.origin);return s?`\\u0E40\\u0E01\\u0E34\\u0E19\\u0E01\\u0E33\\u0E2B\\u0E19\\u0E14: ${n.origin??\"\\u0E04\\u0E48\\u0E32\"} \\u0E04\\u0E27\\u0E23\\u0E21\\u0E35${o} ${n.maximum.toString()} ${s.unit??\"\\u0E23\\u0E32\\u0E22\\u0E01\\u0E32\\u0E23\"}`:`\\u0E40\\u0E01\\u0E34\\u0E19\\u0E01\\u0E33\\u0E2B\\u0E19\\u0E14: ${n.origin??\"\\u0E04\\u0E48\\u0E32\"} \\u0E04\\u0E27\\u0E23\\u0E21\\u0E35${o} ${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\"\\u0E2D\\u0E22\\u0E48\\u0E32\\u0E07\\u0E19\\u0E49\\u0E2D\\u0E22\":\"\\u0E21\\u0E32\\u0E01\\u0E01\\u0E27\\u0E48\\u0E32\",s=e(n.origin);return s?`\\u0E19\\u0E49\\u0E2D\\u0E22\\u0E01\\u0E27\\u0E48\\u0E32\\u0E01\\u0E33\\u0E2B\\u0E19\\u0E14: ${n.origin} \\u0E04\\u0E27\\u0E23\\u0E21\\u0E35${o} ${n.minimum.toString()} ${s.unit}`:`\\u0E19\\u0E49\\u0E2D\\u0E22\\u0E01\\u0E27\\u0E48\\u0E32\\u0E01\\u0E33\\u0E2B\\u0E19\\u0E14: ${n.origin} \\u0E04\\u0E27\\u0E23\\u0E21\\u0E35${o} ${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\\u0E15\\u0E49\\u0E2D\\u0E07\\u0E02\\u0E36\\u0E49\\u0E19\\u0E15\\u0E49\\u0E19\\u0E14\\u0E49\\u0E27\\u0E22 \"${o.prefix}\"`:o.format===\"ends_with\"?`\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\\u0E15\\u0E49\\u0E2D\\u0E07\\u0E25\\u0E07\\u0E17\\u0E49\\u0E32\\u0E22\\u0E14\\u0E49\\u0E27\\u0E22 \"${o.suffix}\"`:o.format===\"includes\"?`\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\\u0E15\\u0E49\\u0E2D\\u0E07\\u0E21\\u0E35 \"${o.includes}\" \\u0E2D\\u0E22\\u0E39\\u0E48\\u0E43\\u0E19\\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21`:o.format===\"regex\"?`\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E15\\u0E49\\u0E2D\\u0E07\\u0E15\\u0E23\\u0E07\\u0E01\\u0E31\\u0E1A\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E17\\u0E35\\u0E48\\u0E01\\u0E33\\u0E2B\\u0E19\\u0E14 ${o.pattern}`:`\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: ${r[o.format]??n.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 ${n.divisor} \\u0E44\\u0E14\\u0E49\\u0E25\\u0E07\\u0E15\\u0E31\\u0E27`;case\"unrecognized_keys\":return`\\u0E1E\\u0E1A\\u0E04\\u0E35\\u0E22\\u0E4C\\u0E17\\u0E35\\u0E48\\u0E44\\u0E21\\u0E48\\u0E23\\u0E39\\u0E49\\u0E08\\u0E31\\u0E01: ${g(n.keys,\", \")}`;case\"invalid_key\":return`\\u0E04\\u0E35\\u0E22\\u0E4C\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07\\u0E43\\u0E19 ${n.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 ${n.origin}`;default:return\"\\u0E02\\u0E49\\u0E2D\\u0E21\\u0E39\\u0E25\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07\"}}};function og(){return{localeError:QS()}}var e_=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"giri\\u015F\",email:\"e-po\\xE7ta salgysy\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO sene we wagt\",date:\"ISO sene\",time:\"ISO wagt\",duration:\"ISO wagt aralygy\",ipv4:\"IPv4 salgysy\",ipv6:\"IPv6 salgysy\",mac:\"MAC salgysy\",cidrv4:\"IPv4 aralygy\",cidrv6:\"IPv6 aralygy\",base64:\"base64 bilen \\u015Fifrlenen setir\",base64url:\"base64url bilen \\u015Fifrlenen setir\",json_string:\"JSON setiri\",e164:\"E.164 nomeri\",credit_card:\"kredit kartyny\\u0148 nomeri\",currency_code:\"wal\\xFDuta kody\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"\\u015Fablon\"},i={nan:\"NaN\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return`N\\xE4dogry baha: gara\\u015Fylan ${o} \\xFDerine ${a} alyndy`}case\"invalid_value\":return n.values.length===1?`N\\xE4dogry baha: ${b(n.values[0])} bolmaly`:`N\\xE4dogry sa\\xFDlaw: a\\u015Fakdakylardan biri bolmaly: ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`Has uly: gara\\u015Fyl\\xFDan ${n.origin??\"baha\"} ${o} ${n.maximum.toString()} ${s.unit??\"element\"}`:`Has uly: gara\\u015Fyl\\xFDan ${n.origin??\"baha\"} ${o} ${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`Has ki\\xE7i: gara\\u015Fyl\\xFDan ${n.origin} ${o} ${n.minimum.toString()} ${s.unit}`:`Has ki\\xE7i: gara\\u015Fyl\\xFDan ${n.origin} ${o} ${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`N\\xE4dogry setir: \"${o.prefix}\" bilen ba\\u015Flamaly`:o.format===\"ends_with\"?`N\\xE4dogry setir: \"${o.suffix}\" bilen gutarmaly`:o.format===\"includes\"?`N\\xE4dogry setir: \"${o.includes}\" saklamaly`:o.format===\"regex\"?`N\\xE4dogry setir: ${o.pattern} nusga la\\xFDyk bolmaly`:`N\\xE4dogry ${r[o.format]??n.format}`}case\"not_multiple_of\":return`N\\xE4dogry san: ${n.divisor} bilen galyndysyz b\\xF6l\\xFCnmeli`;case\"unrecognized_keys\":return`Tanalma\\xFDan a\\xE7ar${n.keys.length>1?\"lar\":\"\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`${n.origin} i\\xE7inde n\\xE4dogry a\\xE7ar`;case\"invalid_union\":return\"N\\xE4dogry baha\";case\"invalid_element\":return`${n.origin} i\\xE7inde n\\xE4dogry baha`;default:return\"N\\xE4dogry baha\"}}};function sg(){return{localeError:e_()}}var t_=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"girdi\",email:\"e-posta adresi\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO tarih ve saat\",date:\"ISO tarih\",time:\"ISO saat\",duration:\"ISO s\\xFCre\",ipv4:\"IPv4 adresi\",ipv6:\"IPv6 adresi\",mac:\"MAC adresi\",cidrv4:\"IPv4 aral\\u0131\\u011F\\u0131\",cidrv6:\"IPv6 aral\\u0131\\u011F\\u0131\",base64:\"base64 ile \\u015Fifrelenmi\\u015F metin\",base64url:\"base64url ile \\u015Fifrelenmi\\u015F metin\",json_string:\"JSON dizesi\",e164:\"E.164 say\\u0131s\\u0131\",credit_card:\"kredi kart\\u0131 numaras\\u0131\",currency_code:\"para birimi kodu\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"\\u015Eablon dizesi\"},i={nan:\"NaN\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ge\\xE7ersiz de\\u011Fer: beklenen instanceof ${n.expected}, al\\u0131nan ${a}`:`Ge\\xE7ersiz de\\u011Fer: beklenen ${o}, al\\u0131nan ${a}`}case\"invalid_value\":return n.values.length===1?`Ge\\xE7ersiz de\\u011Fer: beklenen ${b(n.values[0])}`:`Ge\\xE7ersiz se\\xE7enek: a\\u015Fa\\u011F\\u0131dakilerden biri olmal\\u0131: ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`\\xC7ok b\\xFCy\\xFCk: beklenen ${n.origin??\"de\\u011Fer\"} ${o}${n.maximum.toString()} ${s.unit??\"\\xF6\\u011Fe\"}`:`\\xC7ok b\\xFCy\\xFCk: beklenen ${n.origin??\"de\\u011Fer\"} ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`\\xC7ok k\\xFC\\xE7\\xFCk: beklenen ${n.origin} ${o}${n.minimum.toString()} ${s.unit}`:`\\xC7ok k\\xFC\\xE7\\xFCk: beklenen ${n.origin} ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`Ge\\xE7ersiz metin: \"${o.prefix}\" ile ba\\u015Flamal\\u0131`:o.format===\"ends_with\"?`Ge\\xE7ersiz metin: \"${o.suffix}\" ile bitmeli`:o.format===\"includes\"?`Ge\\xE7ersiz metin: \"${o.includes}\" i\\xE7ermeli`:o.format===\"regex\"?`Ge\\xE7ersiz metin: ${o.pattern} desenine uymal\\u0131`:`Ge\\xE7ersiz ${r[o.format]??n.format}`}case\"not_multiple_of\":return`Ge\\xE7ersiz say\\u0131: ${n.divisor} ile tam b\\xF6l\\xFCnebilmeli`;case\"unrecognized_keys\":return`Tan\\u0131nmayan anahtar${n.keys.length>1?\"lar\":\"\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`${n.origin} i\\xE7inde ge\\xE7ersiz anahtar`;case\"invalid_union\":return\"Ge\\xE7ersiz de\\u011Fer\";case\"invalid_element\":return`${n.origin} i\\xE7inde ge\\xE7ersiz de\\u011Fer`;default:return\"Ge\\xE7ersiz de\\u011Fer\"}}};function ag(){return{localeError:t_()}}var n_=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"\\u0432\\u0445\\u0456\\u0434\\u043D\\u0456 \\u0434\\u0430\\u043D\\u0456\",email:\"\\u0430\\u0434\\u0440\\u0435\\u0441\\u0430 \\u0435\\u043B\\u0435\\u043A\\u0442\\u0440\\u043E\\u043D\\u043D\\u043E\\u0457 \\u043F\\u043E\\u0448\\u0442\\u0438\",url:\"URL\",emoji:\"\\u0435\\u043C\\u043E\\u0434\\u0437\\u0456\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"\\u0434\\u0430\\u0442\\u0430 \\u0442\\u0430 \\u0447\\u0430\\u0441 ISO\",date:\"\\u0434\\u0430\\u0442\\u0430 ISO\",time:\"\\u0447\\u0430\\u0441 ISO\",duration:\"\\u0442\\u0440\\u0438\\u0432\\u0430\\u043B\\u0456\\u0441\\u0442\\u044C ISO\",ipv4:\"\\u0430\\u0434\\u0440\\u0435\\u0441\\u0430 IPv4\",ipv6:\"\\u0430\\u0434\\u0440\\u0435\\u0441\\u0430 IPv6\",mac:\"\\u0430\\u0434\\u0440\\u0435\\u0441\\u0430 MAC\",cidrv4:\"\\u0434\\u0456\\u0430\\u043F\\u0430\\u0437\\u043E\\u043D IPv4\",cidrv6:\"\\u0434\\u0456\\u0430\\u043F\\u0430\\u0437\\u043E\\u043D IPv6\",base64:\"\\u0440\\u044F\\u0434\\u043E\\u043A \\u0443 \\u043A\\u043E\\u0434\\u0443\\u0432\\u0430\\u043D\\u043D\\u0456 base64\",base64url:\"\\u0440\\u044F\\u0434\\u043E\\u043A \\u0443 \\u043A\\u043E\\u0434\\u0443\\u0432\\u0430\\u043D\\u043D\\u0456 base64url\",json_string:\"\\u0440\\u044F\\u0434\\u043E\\u043A JSON\",e164:\"\\u043D\\u043E\\u043C\\u0435\\u0440 E.164\",credit_card:\"\\u043D\\u043E\\u043C\\u0435\\u0440 \\u043A\\u0440\\u0435\\u0434\\u0438\\u0442\\u043D\\u043E\\u0457 \\u043A\\u0430\\u0440\\u0442\\u043A\\u0438\",currency_code:\"\\u043A\\u043E\\u0434 \\u0432\\u0430\\u043B\\u044E\\u0442\\u0438\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"\\u0432\\u0445\\u0456\\u0434\\u043D\\u0456 \\u0434\\u0430\\u043D\\u0456\"},i={nan:\"NaN\",number:\"\\u0447\\u0438\\u0441\\u043B\\u043E\",array:\"\\u043C\\u0430\\u0441\\u0438\\u0432\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.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 ${n.expected}, \\u043E\\u0442\\u0440\\u0438\\u043C\\u0430\\u043D\\u043E ${a}`:`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0456 \\u0432\\u0445\\u0456\\u0434\\u043D\\u0456 \\u0434\\u0430\\u043D\\u0456: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F ${o}, \\u043E\\u0442\\u0440\\u0438\\u043C\\u0430\\u043D\\u043E ${a}`}case\"invalid_value\":return n.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 ${b(n.values[0])}`:`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0430 \\u043E\\u043F\\u0446\\u0456\\u044F: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F \\u043E\\u0434\\u043D\\u0435 \\u0437 ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`\\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 ${n.origin??\"\\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u043D\\u044F\"} ${s.verb} ${o}${n.maximum.toString()} ${s.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 ${n.origin??\"\\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u043D\\u044F\"} \\u0431\\u0443\\u0434\\u0435 ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u043E \\u043C\\u0430\\u043B\\u0435: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F, \\u0449\\u043E ${n.origin} ${s.verb} ${o}${n.minimum.toString()} ${s.unit}`:`\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u043E \\u043C\\u0430\\u043B\\u0435: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F, \\u0449\\u043E ${n.origin} \\u0431\\u0443\\u0434\\u0435 ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0438\\u0439 \\u0440\\u044F\\u0434\\u043E\\u043A: \\u043F\\u043E\\u0432\\u0438\\u043D\\u0435\\u043D \\u043F\\u043E\\u0447\\u0438\\u043D\\u0430\\u0442\\u0438\\u0441\\u044F \\u0437 \"${o.prefix}\"`:o.format===\"ends_with\"?`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0438\\u0439 \\u0440\\u044F\\u0434\\u043E\\u043A: \\u043F\\u043E\\u0432\\u0438\\u043D\\u0435\\u043D \\u0437\\u0430\\u043A\\u0456\\u043D\\u0447\\u0443\\u0432\\u0430\\u0442\\u0438\\u0441\\u044F \\u043D\\u0430 \"${o.suffix}\"`:o.format===\"includes\"?`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0438\\u0439 \\u0440\\u044F\\u0434\\u043E\\u043A: \\u043F\\u043E\\u0432\\u0438\\u043D\\u0435\\u043D \\u043C\\u0456\\u0441\\u0442\\u0438\\u0442\\u0438 \"${o.includes}\"`:o.format===\"regex\"?`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0438\\u0439 \\u0440\\u044F\\u0434\\u043E\\u043A: \\u043F\\u043E\\u0432\\u0438\\u043D\\u0435\\u043D \\u0432\\u0456\\u0434\\u043F\\u043E\\u0432\\u0456\\u0434\\u0430\\u0442\\u0438 \\u0448\\u0430\\u0431\\u043B\\u043E\\u043D\\u0443 ${o.pattern}`:`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0438\\u0439 ${r[o.format]??n.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 ${n.divisor}`;case\"unrecognized_keys\":return`\\u041D\\u0435\\u0440\\u043E\\u0437\\u043F\\u0456\\u0437\\u043D\\u0430\\u043D\\u0438\\u0439 \\u043A\\u043B\\u044E\\u0447${n.keys.length>1?\"\\u0456\":\"\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0438\\u0439 \\u043A\\u043B\\u044E\\u0447 \\u0443 ${n.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 ${n.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 zo(){return{localeError:n_()}}function lg(){return zo()}var r_=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"\\u0627\\u0646 \\u067E\\u0679\",email:\"\\u0627\\u06CC \\u0645\\u06CC\\u0644 \\u0627\\u06CC\\u0688\\u0631\\u06CC\\u0633\",url:\"\\u06CC\\u0648 \\u0622\\u0631 \\u0627\\u06CC\\u0644\",emoji:\"\\u0627\\u06CC\\u0645\\u0648\\u062C\\u06CC\",uuid:\"\\u06CC\\u0648 \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC\",uuidv4:\"\\u06CC\\u0648 \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC \\u0648\\u06CC 4\",uuidv6:\"\\u06CC\\u0648 \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC \\u0648\\u06CC 6\",nanoid:\"\\u0646\\u06CC\\u0646\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC\",guid:\"\\u062C\\u06CC \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC\",cuid:\"\\u0633\\u06CC \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC\",cuid2:\"\\u0633\\u06CC \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC 2\",ulid:\"\\u06CC\\u0648 \\u0627\\u06CC\\u0644 \\u0622\\u0626\\u06CC \\u0688\\u06CC\",xid:\"\\u0627\\u06CC\\u06A9\\u0633 \\u0622\\u0626\\u06CC \\u0688\\u06CC\",ksuid:\"\\u06A9\\u06D2 \\u0627\\u06CC\\u0633 \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC\",datetime:\"\\u0622\\u0626\\u06CC \\u0627\\u06CC\\u0633 \\u0627\\u0648 \\u0688\\u06CC\\u0679 \\u0679\\u0627\\u0626\\u0645\",date:\"\\u0622\\u0626\\u06CC \\u0627\\u06CC\\u0633 \\u0627\\u0648 \\u062A\\u0627\\u0631\\u06CC\\u062E\",time:\"\\u0622\\u0626\\u06CC \\u0627\\u06CC\\u0633 \\u0627\\u0648 \\u0648\\u0642\\u062A\",duration:\"\\u0622\\u0626\\u06CC \\u0627\\u06CC\\u0633 \\u0627\\u0648 \\u0645\\u062F\\u062A\",ipv4:\"\\u0622\\u0626\\u06CC \\u067E\\u06CC \\u0648\\u06CC 4 \\u0627\\u06CC\\u0688\\u0631\\u06CC\\u0633\",ipv6:\"\\u0622\\u0626\\u06CC \\u067E\\u06CC \\u0648\\u06CC 6 \\u0627\\u06CC\\u0688\\u0631\\u06CC\\u0633\",mac:\"\\u0627\\u06CC\\u0645 \\u0627\\u06D2 \\u0633\\u06CC \\u0627\\u06CC\\u0688\\u0631\\u06CC\\u0633\",cidrv4:\"\\u0622\\u0626\\u06CC \\u067E\\u06CC \\u0648\\u06CC 4 \\u0631\\u06CC\\u0646\\u062C\",cidrv6:\"\\u0622\\u0626\\u06CC \\u067E\\u06CC \\u0648\\u06CC 6 \\u0631\\u06CC\\u0646\\u062C\",base64:\"\\u0628\\u06CC\\u0633 64 \\u0627\\u0646 \\u06A9\\u0648\\u0688\\u0688 \\u0633\\u0679\\u0631\\u0646\\u06AF\",base64url:\"\\u0628\\u06CC\\u0633 64 \\u06CC\\u0648 \\u0622\\u0631 \\u0627\\u06CC\\u0644 \\u0627\\u0646 \\u06A9\\u0648\\u0688\\u0688 \\u0633\\u0679\\u0631\\u0646\\u06AF\",json_string:\"\\u062C\\u06D2 \\u0627\\u06CC\\u0633 \\u0627\\u0648 \\u0627\\u06CC\\u0646 \\u0633\\u0679\\u0631\\u0646\\u06AF\",e164:\"\\u0627\\u06CC 164 \\u0646\\u0645\\u0628\\u0631\",credit_card:\"\\u06A9\\u0631\\u06CC\\u0688\\u0679 \\u06A9\\u0627\\u0631\\u0688 \\u0646\\u0645\\u0628\\u0631\",currency_code:\"\\u06A9\\u0631\\u0646\\u0633\\u06CC \\u06A9\\u0648\\u0688\",iban:\"IBAN\",jwt:\"\\u062C\\u06D2 \\u0688\\u0628\\u0644\\u06CC\\u0648 \\u0679\\u06CC\",template_literal:\"\\u0627\\u0646 \\u067E\\u0679\"},i={nan:\"NaN\",number:\"\\u0646\\u0645\\u0628\\u0631\",array:\"\\u0622\\u0631\\u06D2\",null:\"\\u0646\\u0644\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\\u063A\\u0644\\u0637 \\u0627\\u0646 \\u067E\\u0679: instanceof ${n.expected} \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u0627\\u060C ${a} \\u0645\\u0648\\u0635\\u0648\\u0644 \\u06C1\\u0648\\u0627`:`\\u063A\\u0644\\u0637 \\u0627\\u0646 \\u067E\\u0679: ${o} \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u0627\\u060C ${a} \\u0645\\u0648\\u0635\\u0648\\u0644 \\u06C1\\u0648\\u0627`}case\"invalid_value\":return n.values.length===1?`\\u063A\\u0644\\u0637 \\u0627\\u0646 \\u067E\\u0679: ${b(n.values[0])} \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u0627`:`\\u063A\\u0644\\u0637 \\u0622\\u067E\\u0634\\u0646: ${g(n.values,\"|\")} \\u0645\\u06CC\\u06BA \\u0633\\u06D2 \\u0627\\u06CC\\u06A9 \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u0627`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`\\u0628\\u06C1\\u062A \\u0628\\u0691\\u0627: ${n.origin??\"\\u0648\\u06CC\\u0644\\u06CC\\u0648\"} \\u06A9\\u06D2 ${o}${n.maximum.toString()} ${s.unit??\"\\u0639\\u0646\\u0627\\u0635\\u0631\"} \\u06C1\\u0648\\u0646\\u06D2 \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u06D2`:`\\u0628\\u06C1\\u062A \\u0628\\u0691\\u0627: ${n.origin??\"\\u0648\\u06CC\\u0644\\u06CC\\u0648\"} \\u06A9\\u0627 ${o}${n.maximum.toString()} \\u06C1\\u0648\\u0646\\u0627 \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u0627`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`\\u0628\\u06C1\\u062A \\u0686\\u06BE\\u0648\\u0679\\u0627: ${n.origin} \\u06A9\\u06D2 ${o}${n.minimum.toString()} ${s.unit} \\u06C1\\u0648\\u0646\\u06D2 \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u06D2`:`\\u0628\\u06C1\\u062A \\u0686\\u06BE\\u0648\\u0679\\u0627: ${n.origin} \\u06A9\\u0627 ${o}${n.minimum.toString()} \\u06C1\\u0648\\u0646\\u0627 \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u0627`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`\\u063A\\u0644\\u0637 \\u0633\\u0679\\u0631\\u0646\\u06AF: \"${o.prefix}\" \\u0633\\u06D2 \\u0634\\u0631\\u0648\\u0639 \\u06C1\\u0648\\u0646\\u0627 \\u0686\\u0627\\u06C1\\u06CC\\u06D2`:o.format===\"ends_with\"?`\\u063A\\u0644\\u0637 \\u0633\\u0679\\u0631\\u0646\\u06AF: \"${o.suffix}\" \\u067E\\u0631 \\u062E\\u062A\\u0645 \\u06C1\\u0648\\u0646\\u0627 \\u0686\\u0627\\u06C1\\u06CC\\u06D2`:o.format===\"includes\"?`\\u063A\\u0644\\u0637 \\u0633\\u0679\\u0631\\u0646\\u06AF: \"${o.includes}\" \\u0634\\u0627\\u0645\\u0644 \\u06C1\\u0648\\u0646\\u0627 \\u0686\\u0627\\u06C1\\u06CC\\u06D2`:o.format===\"regex\"?`\\u063A\\u0644\\u0637 \\u0633\\u0679\\u0631\\u0646\\u06AF: \\u067E\\u06CC\\u0679\\u0631\\u0646 ${o.pattern} \\u0633\\u06D2 \\u0645\\u06CC\\u0686 \\u06C1\\u0648\\u0646\\u0627 \\u0686\\u0627\\u06C1\\u06CC\\u06D2`:`\\u063A\\u0644\\u0637 ${r[o.format]??n.format}`}case\"not_multiple_of\":return`\\u063A\\u0644\\u0637 \\u0646\\u0645\\u0628\\u0631: ${n.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${n.keys.length>1?\"\\u0632\":\"\"}: ${g(n.keys,\"\\u060C \")}`;case\"invalid_key\":return`${n.origin} \\u0645\\u06CC\\u06BA \\u063A\\u0644\\u0637 \\u06A9\\u06CC`;case\"invalid_union\":return\"\\u063A\\u0644\\u0637 \\u0627\\u0646 \\u067E\\u0679\";case\"invalid_element\":return`${n.origin} \\u0645\\u06CC\\u06BA \\u063A\\u0644\\u0637 \\u0648\\u06CC\\u0644\\u06CC\\u0648`;default:return\"\\u063A\\u0644\\u0637 \\u0627\\u0646 \\u067E\\u0679\"}}};function ug(){return{localeError:r_()}}var i_=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"kirish\",email:\"elektron pochta manzili\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO sana va vaqti\",date:\"ISO sana\",time:\"ISO vaqt\",duration:\"ISO davomiylik\",ipv4:\"IPv4 manzil\",ipv6:\"IPv6 manzil\",mac:\"MAC manzil\",cidrv4:\"IPv4 diapazon\",cidrv6:\"IPv6 diapazon\",base64:\"base64 kodlangan satr\",base64url:\"base64url kodlangan satr\",json_string:\"JSON satr\",e164:\"E.164 raqam\",credit_card:\"kredit karta raqami\",currency_code:\"valyuta kodi\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"kirish\"},i={nan:\"NaN\",number:\"raqam\",array:\"massiv\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Noto\\u2018g\\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${a}`:`Noto\\u2018g\\u2018ri kirish: kutilgan ${o}, qabul qilingan ${a}`}case\"invalid_value\":return n.values.length===1?`Noto\\u2018g\\u2018ri kirish: kutilgan ${b(n.values[0])}`:`Noto\\u2018g\\u2018ri variant: quyidagilardan biri kutilgan ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`Juda katta: kutilgan ${n.origin??\"qiymat\"} ${o}${n.maximum.toString()} ${s.unit} ${s.verb}`:`Juda katta: kutilgan ${n.origin??\"qiymat\"} ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()} ${s.unit} ${s.verb}`:`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`Noto\\u2018g\\u2018ri satr: \"${o.prefix}\" bilan boshlanishi kerak`:o.format===\"ends_with\"?`Noto\\u2018g\\u2018ri satr: \"${o.suffix}\" bilan tugashi kerak`:o.format===\"includes\"?`Noto\\u2018g\\u2018ri satr: \"${o.includes}\" ni o\\u2018z ichiga olishi kerak`:o.format===\"regex\"?`Noto\\u2018g\\u2018ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto\\u2018g\\u2018ri ${r[o.format]??n.format}`}case\"not_multiple_of\":return`Noto\\u2018g\\u2018ri raqam: ${n.divisor} ning karralisi bo\\u2018lishi kerak`;case\"unrecognized_keys\":return`Noma\\u2019lum kalit${n.keys.length>1?\"lar\":\"\"}: ${g(n.keys,\", \")}`;case\"invalid_key\":return`${n.origin} dagi kalit noto\\u2018g\\u2018ri`;case\"invalid_union\":return\"Noto\\u2018g\\u2018ri kirish\";case\"invalid_element\":return`${n.origin} da noto\\u2018g\\u2018ri qiymat`;default:return\"Noto\\u2018g\\u2018ri kirish\"}}};function cg(){return{localeError:i_()}}var o_=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"\\u0111\\u1EA7u v\\xE0o\",email:\"\\u0111\\u1ECBa ch\\u1EC9 email\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ng\\xE0y gi\\u1EDD ISO\",date:\"ng\\xE0y ISO\",time:\"gi\\u1EDD ISO\",duration:\"kho\\u1EA3ng th\\u1EDDi gian ISO\",ipv4:\"\\u0111\\u1ECBa ch\\u1EC9 IPv4\",ipv6:\"\\u0111\\u1ECBa ch\\u1EC9 IPv6\",mac:\"\\u0111\\u1ECBa ch\\u1EC9 MAC\",cidrv4:\"d\\u1EA3i IPv4\",cidrv6:\"d\\u1EA3i IPv6\",base64:\"chu\\u1ED7i m\\xE3 h\\xF3a base64\",base64url:\"chu\\u1ED7i m\\xE3 h\\xF3a base64url\",json_string:\"chu\\u1ED7i JSON\",e164:\"s\\u1ED1 E.164\",credit_card:\"s\\u1ED1 th\\u1EBB t\\xEDn d\\u1EE5ng\",currency_code:\"m\\xE3 ti\\u1EC1n t\\u1EC7\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"\\u0111\\u1EA7u v\\xE0o\"},i={nan:\"NaN\",number:\"s\\u1ED1\",array:\"m\\u1EA3ng\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\\u0110\\u1EA7u v\\xE0o kh\\xF4ng h\\u1EE3p l\\u1EC7: mong \\u0111\\u1EE3i instanceof ${n.expected}, nh\\u1EADn \\u0111\\u01B0\\u1EE3c ${a}`:`\\u0110\\u1EA7u v\\xE0o kh\\xF4ng h\\u1EE3p l\\u1EC7: mong \\u0111\\u1EE3i ${o}, nh\\u1EADn \\u0111\\u01B0\\u1EE3c ${a}`}case\"invalid_value\":return n.values.length===1?`\\u0110\\u1EA7u v\\xE0o kh\\xF4ng h\\u1EE3p l\\u1EC7: mong \\u0111\\u1EE3i ${b(n.values[0])}`:`T\\xF9y ch\\u1ECDn kh\\xF4ng h\\u1EE3p l\\u1EC7: mong \\u0111\\u1EE3i m\\u1ED9t trong c\\xE1c gi\\xE1 tr\\u1ECB ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`Qu\\xE1 l\\u1EDBn: mong \\u0111\\u1EE3i ${n.origin??\"gi\\xE1 tr\\u1ECB\"} ${s.verb} ${o}${n.maximum.toString()} ${s.unit??\"ph\\u1EA7n t\\u1EED\"}`:`Qu\\xE1 l\\u1EDBn: mong \\u0111\\u1EE3i ${n.origin??\"gi\\xE1 tr\\u1ECB\"} ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`Qu\\xE1 nh\\u1ECF: mong \\u0111\\u1EE3i ${n.origin} ${s.verb} ${o}${n.minimum.toString()} ${s.unit}`:`Qu\\xE1 nh\\u1ECF: mong \\u0111\\u1EE3i ${n.origin} ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`Chu\\u1ED7i kh\\xF4ng h\\u1EE3p l\\u1EC7: ph\\u1EA3i b\\u1EAFt \\u0111\\u1EA7u b\\u1EB1ng \"${o.prefix}\"`:o.format===\"ends_with\"?`Chu\\u1ED7i kh\\xF4ng h\\u1EE3p l\\u1EC7: ph\\u1EA3i k\\u1EBFt th\\xFAc b\\u1EB1ng \"${o.suffix}\"`:o.format===\"includes\"?`Chu\\u1ED7i kh\\xF4ng h\\u1EE3p l\\u1EC7: ph\\u1EA3i bao g\\u1ED3m \"${o.includes}\"`:o.format===\"regex\"?`Chu\\u1ED7i kh\\xF4ng h\\u1EE3p l\\u1EC7: ph\\u1EA3i kh\\u1EDBp v\\u1EDBi m\\u1EABu ${o.pattern}`:`${r[o.format]??n.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 ${n.divisor}`;case\"unrecognized_keys\":return`Kh\\xF3a kh\\xF4ng \\u0111\\u01B0\\u1EE3c nh\\u1EADn d\\u1EA1ng: ${g(n.keys,\", \")}`;case\"invalid_key\":return`Kh\\xF3a kh\\xF4ng h\\u1EE3p l\\u1EC7 trong ${n.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 ${n.origin}`;default:return\"\\u0110\\u1EA7u v\\xE0o kh\\xF4ng h\\u1EE3p l\\u1EC7\"}}};function dg(){return{localeError:o_()}}var s_=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"\\u8F93\\u5165\",email:\"\\u7535\\u5B50\\u90AE\\u4EF6\",url:\"URL\",emoji:\"\\u8868\\u60C5\\u7B26\\u53F7\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO\\u65E5\\u671F\\u65F6\\u95F4\",date:\"ISO\\u65E5\\u671F\",time:\"ISO\\u65F6\\u95F4\",duration:\"ISO\\u65F6\\u957F\",ipv4:\"IPv4\\u5730\\u5740\",ipv6:\"IPv6\\u5730\\u5740\",mac:\"MAC\\u5730\\u5740\",cidrv4:\"IPv4\\u7F51\\u6BB5\",cidrv6:\"IPv6\\u7F51\\u6BB5\",base64:\"base64\\u7F16\\u7801\\u5B57\\u7B26\\u4E32\",base64url:\"base64url\\u7F16\\u7801\\u5B57\\u7B26\\u4E32\",json_string:\"JSON\\u5B57\\u7B26\\u4E32\",e164:\"E.164\\u53F7\\u7801\",credit_card:\"\\u4FE1\\u7528\\u5361\\u53F7\",currency_code:\"\\u8D27\\u5E01\\u4EE3\\u7801\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"\\u8F93\\u5165\"},i={nan:\"NaN\",number:\"\\u6570\\u5B57\",array:\"\\u6570\\u7EC4\",null:\"\\u7A7A\\u503C(null)\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\\u65E0\\u6548\\u8F93\\u5165\\uFF1A\\u671F\\u671B instanceof ${n.expected}\\uFF0C\\u5B9E\\u9645\\u63A5\\u6536 ${a}`:`\\u65E0\\u6548\\u8F93\\u5165\\uFF1A\\u671F\\u671B ${o}\\uFF0C\\u5B9E\\u9645\\u63A5\\u6536 ${a}`}case\"invalid_value\":return n.values.length===1?`\\u65E0\\u6548\\u8F93\\u5165\\uFF1A\\u671F\\u671B ${b(n.values[0])}`:`\\u65E0\\u6548\\u9009\\u9879\\uFF1A\\u671F\\u671B\\u4EE5\\u4E0B\\u4E4B\\u4E00 ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`\\u6570\\u503C\\u8FC7\\u5927\\uFF1A\\u671F\\u671B ${n.origin??\"\\u503C\"} ${o}${n.maximum.toString()} ${s.unit??\"\\u4E2A\\u5143\\u7D20\"}`:`\\u6570\\u503C\\u8FC7\\u5927\\uFF1A\\u671F\\u671B ${n.origin??\"\\u503C\"} ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`\\u6570\\u503C\\u8FC7\\u5C0F\\uFF1A\\u671F\\u671B ${n.origin} ${o}${n.minimum.toString()} ${s.unit}`:`\\u6570\\u503C\\u8FC7\\u5C0F\\uFF1A\\u671F\\u671B ${n.origin} ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`\\u65E0\\u6548\\u5B57\\u7B26\\u4E32\\uFF1A\\u5FC5\\u987B\\u4EE5 \"${o.prefix}\" \\u5F00\\u5934`:o.format===\"ends_with\"?`\\u65E0\\u6548\\u5B57\\u7B26\\u4E32\\uFF1A\\u5FC5\\u987B\\u4EE5 \"${o.suffix}\" \\u7ED3\\u5C3E`:o.format===\"includes\"?`\\u65E0\\u6548\\u5B57\\u7B26\\u4E32\\uFF1A\\u5FC5\\u987B\\u5305\\u542B \"${o.includes}\"`:o.format===\"regex\"?`\\u65E0\\u6548\\u5B57\\u7B26\\u4E32\\uFF1A\\u5FC5\\u987B\\u6EE1\\u8DB3\\u6B63\\u5219\\u8868\\u8FBE\\u5F0F ${o.pattern}`:`\\u65E0\\u6548${r[o.format]??n.format}`}case\"not_multiple_of\":return`\\u65E0\\u6548\\u6570\\u5B57\\uFF1A\\u5FC5\\u987B\\u662F ${n.divisor} \\u7684\\u500D\\u6570`;case\"unrecognized_keys\":return`\\u51FA\\u73B0\\u672A\\u77E5\\u7684\\u952E(key): ${g(n.keys,\", \")}`;case\"invalid_key\":return`${n.origin} \\u4E2D\\u7684\\u952E(key)\\u65E0\\u6548`;case\"invalid_union\":return\"\\u65E0\\u6548\\u8F93\\u5165\";case\"invalid_element\":return`${n.origin} \\u4E2D\\u5305\\u542B\\u65E0\\u6548\\u503C(value)`;default:return\"\\u65E0\\u6548\\u8F93\\u5165\"}}};function fg(){return{localeError:s_()}}var a_=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"\\u8F38\\u5165\",email:\"\\u90F5\\u4EF6\\u5730\\u5740\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO \\u65E5\\u671F\\u6642\\u9593\",date:\"ISO \\u65E5\\u671F\",time:\"ISO \\u6642\\u9593\",duration:\"ISO \\u671F\\u9593\",ipv4:\"IPv4 \\u4F4D\\u5740\",ipv6:\"IPv6 \\u4F4D\\u5740\",mac:\"MAC \\u4F4D\\u5740\",cidrv4:\"IPv4 \\u7BC4\\u570D\",cidrv6:\"IPv6 \\u7BC4\\u570D\",base64:\"base64 \\u7DE8\\u78BC\\u5B57\\u4E32\",base64url:\"base64url \\u7DE8\\u78BC\\u5B57\\u4E32\",json_string:\"JSON \\u5B57\\u4E32\",e164:\"E.164 \\u6578\\u503C\",credit_card:\"\\u4FE1\\u7528\\u5361\\u865F\",currency_code:\"\\u8CA8\\u5E63\\u4EE3\\u78BC\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"\\u8F38\\u5165\"},i={nan:\"NaN\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\\u7121\\u6548\\u7684\\u8F38\\u5165\\u503C\\uFF1A\\u9810\\u671F\\u70BA instanceof ${n.expected}\\uFF0C\\u4F46\\u6536\\u5230 ${a}`:`\\u7121\\u6548\\u7684\\u8F38\\u5165\\u503C\\uFF1A\\u9810\\u671F\\u70BA ${o}\\uFF0C\\u4F46\\u6536\\u5230 ${a}`}case\"invalid_value\":return n.values.length===1?`\\u7121\\u6548\\u7684\\u8F38\\u5165\\u503C\\uFF1A\\u9810\\u671F\\u70BA ${b(n.values[0])}`:`\\u7121\\u6548\\u7684\\u9078\\u9805\\uFF1A\\u9810\\u671F\\u70BA\\u4EE5\\u4E0B\\u5176\\u4E2D\\u4E4B\\u4E00 ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`\\u6578\\u503C\\u904E\\u5927\\uFF1A\\u9810\\u671F ${n.origin??\"\\u503C\"} \\u61C9\\u70BA ${o}${n.maximum.toString()} ${s.unit??\"\\u500B\\u5143\\u7D20\"}`:`\\u6578\\u503C\\u904E\\u5927\\uFF1A\\u9810\\u671F ${n.origin??\"\\u503C\"} \\u61C9\\u70BA ${o}${n.maximum.toString()}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`\\u6578\\u503C\\u904E\\u5C0F\\uFF1A\\u9810\\u671F ${n.origin} \\u61C9\\u70BA ${o}${n.minimum.toString()} ${s.unit}`:`\\u6578\\u503C\\u904E\\u5C0F\\uFF1A\\u9810\\u671F ${n.origin} \\u61C9\\u70BA ${o}${n.minimum.toString()}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`\\u7121\\u6548\\u7684\\u5B57\\u4E32\\uFF1A\\u5FC5\\u9808\\u4EE5 \"${o.prefix}\" \\u958B\\u982D`:o.format===\"ends_with\"?`\\u7121\\u6548\\u7684\\u5B57\\u4E32\\uFF1A\\u5FC5\\u9808\\u4EE5 \"${o.suffix}\" \\u7D50\\u5C3E`:o.format===\"includes\"?`\\u7121\\u6548\\u7684\\u5B57\\u4E32\\uFF1A\\u5FC5\\u9808\\u5305\\u542B \"${o.includes}\"`:o.format===\"regex\"?`\\u7121\\u6548\\u7684\\u5B57\\u4E32\\uFF1A\\u5FC5\\u9808\\u7B26\\u5408\\u683C\\u5F0F ${o.pattern}`:`\\u7121\\u6548\\u7684 ${r[o.format]??n.format}`}case\"not_multiple_of\":return`\\u7121\\u6548\\u7684\\u6578\\u5B57\\uFF1A\\u5FC5\\u9808\\u70BA ${n.divisor} \\u7684\\u500D\\u6578`;case\"unrecognized_keys\":return`\\u7121\\u6CD5\\u8B58\\u5225\\u7684\\u9375\\u503C${n.keys.length>1?\"\\u5011\":\"\"}\\uFF1A${g(n.keys,\"\\u3001\")}`;case\"invalid_key\":return`${n.origin} \\u4E2D\\u6709\\u7121\\u6548\\u7684\\u9375\\u503C`;case\"invalid_union\":return\"\\u7121\\u6548\\u7684\\u8F38\\u5165\\u503C\";case\"invalid_element\":return`${n.origin} \\u4E2D\\u6709\\u7121\\u6548\\u7684\\u503C`;default:return\"\\u7121\\u6548\\u7684\\u8F38\\u5165\\u503C\"}}};function pg(){return{localeError:a_()}}var l_=()=>{let t={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 e(n){return t[n]??null}let r={regex:\"\\u1EB9\\u0300r\\u1ECD \\xECb\\xE1w\\u1ECDl\\xE9\",email:\"\\xE0d\\xEDr\\u1EB9\\u0301s\\xEC \\xECm\\u1EB9\\u0301l\\xEC\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"\\xE0k\\xF3k\\xF2 ISO\",date:\"\\u1ECDj\\u1ECD\\u0301 ISO\",time:\"\\xE0k\\xF3k\\xF2 ISO\",duration:\"\\xE0k\\xF3k\\xF2 t\\xF3 p\\xE9 ISO\",ipv4:\"\\xE0d\\xEDr\\u1EB9\\u0301s\\xEC IPv4\",ipv6:\"\\xE0d\\xEDr\\u1EB9\\u0301s\\xEC IPv6\",mac:\"\\xE0d\\xEDr\\u1EB9\\u0301s\\xEC MAC\",cidrv4:\"\\xE0gb\\xE8gb\\xE8 IPv4\",cidrv6:\"\\xE0gb\\xE8gb\\xE8 IPv6\",base64:\"\\u1ECD\\u0300r\\u1ECD\\u0300 t\\xED a k\\u1ECD\\u0301 n\\xED base64\",base64url:\"\\u1ECD\\u0300r\\u1ECD\\u0300 base64url\",json_string:\"\\u1ECD\\u0300r\\u1ECD\\u0300 JSON\",e164:\"n\\u1ECD\\u0301mb\\xE0 E.164\",credit_card:\"n\\u1ECDmba kaadi gbese\",currency_code:\"koodu ow\\xF3\",iban:\"IBAN\",jwt:\"JWT\",template_literal:\"\\u1EB9\\u0300r\\u1ECD \\xECb\\xE1w\\u1ECDl\\xE9\"},i={nan:\"NaN\",number:\"n\\u1ECD\\u0301mb\\xE0\",array:\"akop\\u1ECD\"};return n=>{switch(n.code){case\"invalid_type\":{let o=i[n.expected]??n.expected,s=w(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\\xCCb\\xE1w\\u1ECDl\\xE9 a\\u1E63\\xEC\\u1E63e: a n\\xED l\\xE1ti fi instanceof ${n.expected}, \\xE0m\\u1ECD\\u0300 a r\\xED ${a}`:`\\xCCb\\xE1w\\u1ECDl\\xE9 a\\u1E63\\xEC\\u1E63e: a n\\xED l\\xE1ti fi ${o}, \\xE0m\\u1ECD\\u0300 a r\\xED ${a}`}case\"invalid_value\":return n.values.length===1?`\\xCCb\\xE1w\\u1ECDl\\xE9 a\\u1E63\\xEC\\u1E63e: a n\\xED l\\xE1ti fi ${b(n.values[0])}`:`\\xC0\\u1E63\\xE0y\\xE0n a\\u1E63\\xEC\\u1E63e: yan \\u1ECD\\u0300kan l\\xE1ra ${g(n.values,\"|\")}`;case\"too_big\":{let o=n.inclusive?\"<=\":\"<\",s=e(n.origin);return s?`T\\xF3 p\\u1ECD\\u0300 j\\xF9: a n\\xED l\\xE1ti j\\u1EB9\\u0301 p\\xE9 ${n.origin??\"iye\"} ${s.verb} ${o}${n.maximum} ${s.unit}`:`T\\xF3 p\\u1ECD\\u0300 j\\xF9: a n\\xED l\\xE1ti j\\u1EB9\\u0301 ${o}${n.maximum}`}case\"too_small\":{let o=n.inclusive?\">=\":\">\",s=e(n.origin);return s?`K\\xE9r\\xE9 ju: a n\\xED l\\xE1ti j\\u1EB9\\u0301 p\\xE9 ${n.origin} ${s.verb} ${o}${n.minimum} ${s.unit}`:`K\\xE9r\\xE9 ju: a n\\xED l\\xE1ti j\\u1EB9\\u0301 ${o}${n.minimum}`}case\"invalid_format\":{let o=n;return o.format===\"starts_with\"?`\\u1ECC\\u0300r\\u1ECD\\u0300 a\\u1E63\\xEC\\u1E63e: gb\\u1ECD\\u0301d\\u1ECD\\u0300 b\\u1EB9\\u0300r\\u1EB9\\u0300 p\\u1EB9\\u0300l\\xFA \"${o.prefix}\"`:o.format===\"ends_with\"?`\\u1ECC\\u0300r\\u1ECD\\u0300 a\\u1E63\\xEC\\u1E63e: gb\\u1ECD\\u0301d\\u1ECD\\u0300 par\\xED p\\u1EB9\\u0300l\\xFA \"${o.suffix}\"`:o.format===\"includes\"?`\\u1ECC\\u0300r\\u1ECD\\u0300 a\\u1E63\\xEC\\u1E63e: gb\\u1ECD\\u0301d\\u1ECD\\u0300 n\\xED \"${o.includes}\"`:o.format===\"regex\"?`\\u1ECC\\u0300r\\u1ECD\\u0300 a\\u1E63\\xEC\\u1E63e: gb\\u1ECD\\u0301d\\u1ECD\\u0300 b\\xE1 \\xE0p\\u1EB9\\u1EB9r\\u1EB9 mu ${o.pattern}`:`A\\u1E63\\xEC\\u1E63e: ${r[o.format]??n.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 ${n.divisor}`;case\"unrecognized_keys\":return`B\\u1ECDt\\xECn\\xEC \\xE0\\xECm\\u1ECD\\u0300: ${g(n.keys,\", \")}`;case\"invalid_key\":return`B\\u1ECDt\\xECn\\xEC a\\u1E63\\xEC\\u1E63e n\\xEDn\\xFA ${n.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 ${n.origin}`;default:return\"\\xCCb\\xE1w\\u1ECDl\\xE9 a\\u1E63\\xEC\\u1E63e\"}}};function mg(){return{localeError:l_()}}var hg,Oc=Symbol(\"ZodOutput\"),Nc=Symbol(\"ZodInput\"),Uo=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...r){let i=r[0];return this._map.set(e,i),i&&typeof i==\"object\"&&\"id\"in i&&this._idmap.set(i.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let r=this._map.get(e);return r&&typeof r==\"object\"&&\"id\"in r&&this._idmap.delete(r.id),this._map.delete(e),this}get(e){let r=e._zod.parent;if(r){let i={...this.get(r)??{}};delete i.id;let n={...i,...this._map.get(e)};return Object.keys(n).length?n:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Mo(){return new Uo}(hg=globalThis).__zod_globalRegistry??(hg.__zod_globalRegistry=Mo());var re=globalThis.__zod_globalRegistry;var me=Symbol.for(\"zod.compile.invalid\"),gg=Symbol.for(\"zod.compile.fallback\"),ze=class extends Error{constructor(e=\"z.compile does not support async refinements, transforms, or checks\"){super(e),this.name=\"ZodCompileAsyncError\"}},U=class extends Error{constructor(e,r=!0){super(`z.compile does not support ${e}; this schema must use the runtime parser`),this.name=\"ZodCompileUnsupportedError\",this.islandable=r}};function c_(t,e){try{return jo(t,{assertOnly:!0})}catch{return e}}function zc(t,e){try{let r=jo(t),i=Lo(t,r);return i._zod.bag.validator=c_(t,r),i}catch(r){if(e?.strict)throw r;return t}}function Lo(t,e){if(No(t))throw new U(\"a schema whose subtree contains a reference cycle\");let r=B(t),i=t._zod.run,n=i.__originalRun??i,o=(s,a)=>{if(a?.async||a?.direction===\"backward\"||a?.skipChecks||a?.[gg]||a&&Ro(a,s.value))return n(s,a);let l=e(s.value);return l!==me?(s.value=l,s):(a&&(a[gg]=!0),n(s,a))};return o.__originalRun=n,r._zod.bag.fallbackRun=n,r._zod.bag.validator=e,r._zod.run=o,i.__originalRun||d_(r,t,e),r}function d_(t,e,r){let i=t,n=e;if(typeof n.safeParse==\"function\"){let o=n.safeParse;i.safeParse=(s,a)=>{let l=r(s);return l!==me?{success:!0,data:l}:o(s,a)}}if(typeof n.parse==\"function\"){let o=n.parse;i.parse=(s,a)=>{let l=r(s);return l!==me?l:o(s,a)}}}function jo(t,e){let r=!0;try{r=No(t)}catch{}if(r)throw new U(\"a schema whose subtree contains a reference cycle\");let i={constants:new Map,constantCounter:0,varCounter:0,definite:!0},n=new Gt([\"input\"]),o=X(n,i,t,\"input\",!e?.assertOnly);n.write(o===null?\"return true;\":`return ${o};`);let s=[\"INVALID\",...i.constants.keys()],a=[me,...i.constants.values()],l=n.content.join(`\n`),u=e?.debug?s.length>0?`// Constants: ${s.join(\", \")}\n${l}`:l:\"\",c=Function,d=`return (input) => {\n${l}\n}`,f;try{f=new c(...s,d)(...a)}catch(p){throw new U(`this schema (generated code failed to evaluate: ${p.message})`)}return e?.debug&&(f.code=u),f.definite=i.definite,f}function N(t,e){for(let[i,n]of t.constants)if(n===e)return i;let r=`c${t.constantCounter++}`;return t.constants.set(r,e),r}function Jt(t,e){return t.definite=!1,N(t,e)}function I(t){return`v${t.varCounter++}`}function f_(t,e){let r=t._zod.run({value:e,issues:[]},{});if(r&&typeof r.then==\"function\")return me;let i=r;return i.issues.length===0?i.value:me}function ae(t,e,r,i,n=!0){let o=t.content.length,s=e.constants.size,a=e.constantCounter,l=e.varCounter;try{return X(t,e,r,i,n)}catch(u){if(!(u instanceof U)||!u.islandable)throw u;if(t.content.length=o,e.constants.size>s){let c=Array.from(e.constants.keys()).slice(s);for(let d of c)e.constants.delete(d)}return e.constantCounter=a,e.varCounter=l,p_(t,e,r,i)}}function p_(t,e,r,i){e.definite=!1;let n=N(e,r),o=N(e,f_),s=I(e);return t.write(`const ${s} = ${o}(${n}, ${i});`),t.write(`if (${s} === INVALID) return INVALID;`),s}var m_=new Set([\"max_size\",\"min_size\",\"size_equals\",\"max_length\",\"min_length\",\"length_equals\"]);function h_(t,e,r,i){let n=r._zod.def.checks;if(!n||n.length===0)return i;let o=i;for(let s of n){let a=s._zod.def;if(a.when&&!m_.has(a.check))throw new U('check with a custom \"when\" condition');switch(a.check){case\"greater_than\":g_(t,e,a,o);break;case\"less_than\":y_(t,e,a,o);break;case\"multiple_of\":v_(t,e,a,o);break;case\"number_format\":_g(t,a,o);break;case\"min_length\":{let l=wt(a.minimum,\"min_length\"),u=Rc(t,e,o,`${o}.length >= ${l} && ${o}.length < ${a.minimum*2}`);t.write(`if (${u} < ${l}) return INVALID;`);break}case\"max_length\":{let l=wt(a.maximum,\"max_length\"),u=Rc(t,e,o,`${o}.length > ${l}`);t.write(`if (${u} > ${l}) return INVALID;`);break}case\"length_equals\":{let l=wt(a.length,\"length_equals\"),u=Rc(t,e,o,`${o}.length >= ${l} && ${o}.length <= ${a.length*2}`);t.write(`if (${u} !== ${l}) return INVALID;`);break}case\"min_size\":t.write(`if (${o}.size < ${wt(a.minimum,\"min_size\")}) return INVALID;`);break;case\"max_size\":t.write(`if (${o}.size > ${wt(a.maximum,\"max_size\")}) return INVALID;`);break;case\"size_equals\":t.write(`if (${o}.size !== ${wt(a.size,\"size_equals\")}) return INVALID;`);break;case\"string_format\":o=xg(t,e,a,o);break;case\"custom\":o=k_(t,e,s,o);break;case\"bigint_format\":b_(t,a,o);break;case\"mime_type\":w_(t,e,a,o);break;case\"property\":__(t,e,a,o);break;case\"properties\":S_(t,e,a,o);break;case\"overwrite\":{let l=I(e);x_(t,e,s,o,l),o=l;break}default:throw new U(`check type ${a.check}`)}}return o}function Rc(t,e,r,i){let n=N(e,Zt),o=I(e);return t.write(`const ${o} = typeof ${r} === \"string\" && ${i} ? ${n}(${r}) : ${r}.length;`),o}function wt(t,e){if(typeof t!=\"number\"||!Number.isFinite(t))throw new U(`${e} bound of type ${typeof t}`);return`${t}`}function Sg(t,e){if(typeof e==\"bigint\")return`${e}n`;if(typeof e==\"number\"){if(Number.isNaN(e))throw new U(\"comparison check with NaN bound\");return`${e}`}if(e instanceof Date){if(Number.isNaN(e.getTime()))throw new U(\"comparison check with Invalid Date bound\");return N(t,e)}throw new U(`comparison check bound of type ${typeof e}`)}function g_(t,e,r,i){let n=r.inclusive?\"<\":\"<=\";t.write(`if (${i} ${n} ${Sg(e,r.value)}) return INVALID;`)}function y_(t,e,r,i){let n=r.inclusive?\">\":\">=\";t.write(`if (${i} ${n} ${Sg(e,r.value)}) return INVALID;`)}function v_(t,e,r,i){if(typeof r.value==\"bigint\"){if(r.value===BigInt(0))throw new U(\"multiple_of check with a zero divisor\");t.write(`if (${i} % ${r.value}n !== 0n) return INVALID;`)}else{let n=N(e,gr);t.write(`if (${n}(${i}, ${wt(r.value,\"multiple_of\")}) !== 0) return INVALID;`)}}function _g(t,e,r){let i=e.format;switch(i){case\"safeint\":t.write(`if (!Number.isSafeInteger(${r})) return INVALID;`);break;case\"int32\":t.write(`if (!Number.isInteger(${r}) || ${r} < -2147483648 || ${r} > 2147483647) return INVALID;`);break;case\"uint32\":t.write(`if (!Number.isInteger(${r}) || ${r} < 0 || ${r} > 4294967295) return INVALID;`);break;case\"float32\":t.write(`if (!Number.isFinite(${r}) || ${r} < -3.4028234663852886e38 || ${r} > 3.4028234663852886e38) return INVALID;`);break;case\"float64\":t.write(`if (!Number.isFinite(${r})) return INVALID;`);break;default:throw new U(`number format ${i}`)}}function b_(t,e,r){let i=e.format;if(i)switch(i){case\"int64\":t.write(`if (${r} < -9223372036854775808n || ${r} > 9223372036854775807n) return INVALID;`);break;case\"uint64\":t.write(`if (${r} < 0n || ${r} > 18446744073709551615n) return INVALID;`);break;default:throw new U(`bigint format ${i}`)}}function w_(t,e,r,i){let n=r.mime;if(n&&n.length>0){let o=N(e,new Set(n));t.write(`if (!${o}.has(${i}.type)) return INVALID;`)}}function S_(t,e,r,i){if(r.when)throw new U('check with a custom \"when\" condition');t.write(`if (${i} == null) return INVALID;`);let n=r.shape;for(let o of Reflect.ownKeys(n)){let s=typeof o==\"symbol\"?N(e,o):fe(o),a=I(e);t.write(`const ${a} = ${i}[${s}];`),ae(t,e,n[o],a,!1)}}function __(t,e,r,i){let n=`${i}[${JSON.stringify(r.property)}]`;X(t,e,r.schema,n)}function x_(t,e,r,i,n){let o=r._zod.def.tx;if(!o)throw new U(\"overwrite check without a transform function\");if(Xt(o))throw new ze(\"z.compile: async overwrite transforms are not supported\");let s=N(e,o);t.write(`const ${n} = ${s}(${i});`)}function Dc(){throw new Se}function Uc(t){this.issues.push(t)}function k_(t,e,r,i){let n=r._zod.def;if(n.fn){if(Xt(n.fn))throw new ze(\"z.compile: async .refine() predicates are not supported\");let o=Jt(e,n.fn),s=N(e,Dc),a=I(e);return t.write(`const ${a} = ${o}(${i});`),t.write(`if (${a} instanceof Promise) ${s}();`),t.write(`if (!${a}) return INVALID;`),i}if(r._zod.check){if(Xt(r._zod.check))throw new ze(\"z.compile: async .superRefine() / check functions are not supported\");let o=r._zod.check,a=Jt(e,u=>{let c={value:u,issues:[],addIssue:Uc};return o(c)instanceof Promise&&Dc(),c.issues.length===0?c.value:me}),l=I(e);return t.write(`const ${l} = ${a}(${i});`),t.write(`if (${l} === INVALID) return INVALID;`),l}throw new U(\"custom check without a predicate or check function\")}var $_=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 xg(t,e,r,i,n=!0){let o=r.format;if(o===\"base64\"){let u=N(e,zr);return t.write(`if (!${u}(${i})) return INVALID;`),i}if(o===\"base64url\"){let u=N(e,bo);return t.write(`if (!${u}(${i})) return INVALID;`),i}if(o===\"jwt\"){let u=N(e,_o),c=N(e,r.alg??null);return t.write(`if (!${u}(${i}, ${c})) return INVALID;`),i}if(o===\"ipv6\"){let u=N(e,Cr);return t.write(`if (!${u}(${i})) return INVALID;`),i}if(o===\"cidrv6\"){let u=N(e,yo);return t.write(`if (!${u}(${i})) return INVALID;`),i}if(o===\"credit_card\"){let u=N(e,wo);return t.write(`if (!${u}(${i})) return INVALID;`),i}if(o===\"iban\"){let u=N(e,So);return t.write(`if (!${u}(${i})) return INVALID;`),i}let s=r;if(o===\"url\"||o===\"httpurl\"||s.normalize||s.hostname!==void 0||s.protocol!==void 0){let u=N(e,mo),c=N(e,r),d=I(e),f=I(e);if(t.write(`const ${d} = ${i}.trim();`),t.write(`const ${f} = ${u}(${d}, ${c});`),t.write(`if (typeof ${f} === \"number\") return INVALID;`),s.hostname!==void 0){let y=N(e,ho);t.write(`if (!${y}(${f}, ${c}.hostname)) return INVALID;`)}if(s.protocol!==void 0){let y=N(e,go);t.write(`if (!${y}(${f}, ${c}.protocol)) return INVALID;`)}if(!n)return null;let p=I(e),m=s.normalize?`${f}.href`:`${N(e,Dr)}(${d})`;return t.write(`const ${p} = ${m};`),p}let a=r.fn;if(a){if(Xt(a))throw new U(`async string format ${o}`);let u=N(e,a);return t.write(`if (!${u}(${i})) return INVALID;`),i}if($_.has(o)&&r.pattern){let u=N(e,r.pattern);return t.write(`${u}.lastIndex = 0;`),t.write(`if (!${u}.test(${i})) return INVALID;`),i}let l=r.format;switch(l){case\"regex\":throw new U(\"regex format without a pattern\");case\"lowercase\":t.write(`if (${i} !== ${i}.toLowerCase()) return INVALID;`);break;case\"uppercase\":t.write(`if (${i} !== ${i}.toUpperCase()) return INVALID;`);break;case\"includes\":t.write(`if (!${i}.includes(${fe(r.includes)})) return INVALID;`);break;case\"starts_with\":{let u=r.prefix;t.write(`if (${i}.slice(0, ${u.length}) !== ${fe(u)}) return INVALID;`);break}case\"ends_with\":{let u=r.suffix;t.write(`if (${i}.slice(-${u.length}) !== ${fe(u)}) return INVALID;`);break}default:throw new U(`string format ${l}`)}return i}function X(t,e,r,i,n=!0){let o=r._zod.def,s=o.type;if(o.coerce)throw new U(`coercion (z.coerce.${s}())`);let a=n||!!o.checks?.length,l;switch(s){case\"string\":l=E_(t,e,r,i,a);break;case\"number\":l=T_(t,r,i);break;case\"boolean\":l=A_(t,i);break;case\"bigint\":l=I_(t,r,i);break;case\"symbol\":l=P_(t,i);break;case\"undefined\":l=O_(t,i);break;case\"null\":l=N_(t,i);break;case\"any\":case\"unknown\":l=i;break;case\"never\":t.write(\"return INVALID;\"),l=i;break;case\"void\":l=R_(t,i);break;case\"nan\":l=D_(t,i);break;case\"date\":l=C_(t,i);break;case\"object\":l=z_(t,e,r,i,a);break;case\"optional\":l=U_(t,e,r,i,a);break;case\"nullable\":l=j_(t,e,r,i,a);break;case\"array\":l=F_(t,e,r,i,a);break;case\"literal\":l=B_(t,e,r,i);break;case\"enum\":l=V_(t,e,r,i);break;case\"readonly\":{let u=vg(t,e,r,i),c=I(e);t.write(`const ${c} = Object.freeze(${u});`),l=c;break}case\"success\":vg(t,e,r,i),l=\"true\";break;case\"default\":case\"prefault\":l=Z_(t,e,r,i);break;case\"nonoptional\":l=W_(t,e,r,i);break;case\"tuple\":l=G_(t,e,r,i);break;case\"union\":l=K_(t,e,r,i);break;case\"intersection\":l=X_(t,e,r,i);break;case\"record\":l=Y_(t,e,r,i);break;case\"map\":l=Q_(t,e,r,i);break;case\"set\":l=ex(t,e,r,i);break;case\"file\":l=tx(t,i);break;case\"template_literal\":l=nx(t,e,r,i);break;case\"lazy\":l=rx(t,e,r,i);break;case\"pipe\":l=ix(t,e,r,i);break;case\"custom\":l=ox(t,e,r,i);break;case\"transform\":l=lx(t,e,r,i);break;case\"catch\":l=ax(t,e,r,i);break;default:throw new U(`schema type ${s}`)}return l===null?null:h_(t,e,r,l)}function E_(t,e,r,i,n=!0){t.write(`if (typeof ${i} !== \"string\") return INVALID;`);let o=r._zod.def;return o.format===void 0?i:xg(t,e,o,i,n)}function T_(t,e,r){t.write(`if (typeof ${r} !== \"number\" || !Number.isFinite(${r})) return INVALID;`);let i=e._zod.def;return i.check===\"number_format\"&&i.format&&_g(t,{format:i.format},r),r}function A_(t,e){return t.write(`if (typeof ${e} !== \"boolean\") return INVALID;`),e}function I_(t,e,r){t.write(`if (typeof ${r} !== \"bigint\") return INVALID;`);let i=e._zod.def;if(i.format)switch(i.format){case\"int64\":t.write(`if (${r} < -9223372036854775808n || ${r} > 9223372036854775807n) return INVALID;`);break;case\"uint64\":t.write(`if (${r} < 0n || ${r} > 18446744073709551615n) return INVALID;`);break}return r}function P_(t,e){return t.write(`if (typeof ${e} !== \"symbol\") return INVALID;`),e}function O_(t,e){return t.write(`if (${e} !== undefined) return INVALID;`),e}function N_(t,e){return t.write(`if (${e} !== null) return INVALID;`),e}function R_(t,e){return t.write(`if (${e} !== undefined) return INVALID;`),e}function D_(t,e){return t.write(`if (typeof ${e} !== \"number\" || !Number.isNaN(${e})) return INVALID;`),e}function C_(t,e){return t.write(`if (!(${e} instanceof Date) || Number.isNaN(${e}.getTime())) return INVALID;`),e}function z_(t,e,r,i,n=!0){let o=r._zod.def;t.write(`if (typeof ${i} !== \"object\" || ${i} === null || Array.isArray(${i})) return INVALID;`);let s=o.shape,a=Object.keys(s),l=Object.getOwnPropertySymbols(s),u=l.length?[...a,...l]:a,c=S=>typeof S==\"symbol\"?N(e,S):fe(S),d=S=>typeof S==\"symbol\"?`[${c(S)}]`:fe(S),f=s;if(a.includes(\"__proto__\"))throw new U('object shape key \"__proto__\"');let p=new Map;for(let S of u){let T=f[S],P=c(S),O=I(e);if(t.write(`const ${O} = ${i}[${P}];`),T._zod.optin!==void 0){let D=I(e);t.write(`let ${D} = (() => {`),t.indented(Y=>{let De=ae(Y,e,T,O);Y.write(`return ${De};`)}),t.write(\"})();\"),T._zod.optout===\"optional\"?(t.write(`if (${D} === INVALID) {`),t.indented(Y=>{Y.write(`if (${P} in ${i}) return INVALID;`),Y.write(`${D} = undefined;`)}),t.write(\"}\")):t.write(`if (${D} === INVALID) return INVALID;`),p.set(S,D)}else{L_(T)&&t.write(`if (!(${P} in ${i})) return INVALID;`);let D=ae(t,e,T,O,n);D!==null&&p.set(S,D)}}let m=o.catchall,y=\"none\";if(m){let S=m._zod.def.type;if(S===\"never\"){let T=a.map(P=>`k !== ${fe(P)}`).join(\" && \")||\"true\";t.write(`for (const k in ${i}) {`),t.indented(P=>{P.write(`if (${T}) return INVALID;`)}),t.write(\"}\")}else(S===\"unknown\"||S===\"any\")&&!m._zod.def.checks?.length?y=\"passthrough\":y=\"schema\"}let _=I(e),k=u.some(S=>yg(f[S])||Cc(f[S]));if(!n){if(y===\"schema\"){let S=a.length>0?N(e,new Set(a)):null;t.write(`for (const k in ${i}) {`),t.indented(T=>{T.write('if (k === \"__proto__\") continue;'),S&&T.write(`if (${S}.has(k)) continue;`);let P=I(e);T.write(`const ${P} = ${i}[k];`),ae(T,e,m,P,!1)}),t.write(\"}\")}return null}if(k){t.write(`const ${_} = {};`);for(let S of u){let T=c(S),P=p.get(S);Cc(f[S])?t.write(`if (${T} in ${i}) ${_}[${T}] = ${P};`):yg(f[S])?t.write(`if (${P} !== undefined || ${T} in ${i}) ${_}[${T}] = ${P};`):t.write(`${_}[${T}] = ${P};`)}}else{let S=u.map(T=>`${d(T)}: ${p.get(T)}`).join(\", \");t.write(`const ${_} = { ${S} };`)}if(y!==\"none\"){let S=a.length>0?N(e,new Set(a)):null;t.write(`for (const k in ${i}) {`),t.indented(T=>{if(T.write('if (k === \"__proto__\") continue;'),S&&T.write(`if (${S}.has(k)) continue;`),y===\"passthrough\")T.write(`${_}[k] = ${i}[k];`);else{let P=I(e);T.write(`const ${P} = ${i}[k];`);let O=ae(T,e,m,P);T.write(`${_}[k] = ${O};`)}}),t.write(\"}\")}return _}function U_(t,e,r,i,n=!0){let o=r._zod.def;if(M_(r))return X(t,e,o.innerType,i,n);if(o.innerType._zod.optin===\"defaulted\"){let a=I(e),l=I(e);return t.write(`let ${a};`),t.write(`if (${i} === undefined) {`),t.indented(u=>{u.write(`const ${l} = (() => {`),u.indented(c=>{let d=X(c,e,o.innerType,i);c.write(`return ${d};`)}),u.write(\"})();\"),u.write(`if (${l} !== INVALID) ${a} = ${l};`)}),t.write(\"} else {\"),t.indented(u=>{let c=X(u,e,o.innerType,i);u.write(`${a} = ${c};`)}),t.write(\"}\"),a}let s=n?I(e):null;return s&&t.write(`let ${s};`),t.write(`if (${i} !== undefined) {`),t.indented(a=>{let l=X(a,e,o.innerType,i,n);s&&l!==null&&a.write(`${s} = ${l};`)}),t.write(\"}\"),s}function M_(t){return t._zod.traits?.has(\"$ZodExactOptional\")===!0}function L_(t){return t._zod.optin===void 0&&Ht(t)}function Ht(t){if(t._zod.def.coerce)return!0;let e=t._zod.def;switch(e.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 e.innerType?Ht(e.innerType):!1;case\"literal\":return!!e.values?.includes(void 0);case\"enum\":return!!t._zod.values?.has(void 0);case\"optional\":case\"nullable\":case\"readonly\":case\"success\":return e.innerType?Ht(e.innerType):!0;case\"catch\":return!0;case\"union\":return e.options?e.options.some(Ht):!0;case\"intersection\":return!e.left||!e.right?!0:Ht(e.left)&&Ht(e.right);case\"pipe\":return e.in?Ht(e.in):!0;default:return!0}}function Cc(t){return t._zod.optin===\"optional\"&&t._zod.optout===\"optional\"}function yg(t){return(t._zod.optin!==\"defaulted\"||t._zod.optout===\"optional\")&&Nn(t)}function Nn(t){let e=t._zod.def;switch(e.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!!e.values?.includes(void 0);case\"enum\":return!!t._zod.values?.has(void 0);case\"optional\":return!0;case\"nullable\":case\"readonly\":case\"nonoptional\":return e.innerType?Nn(e.innerType):!0;case\"union\":return e.options?e.options.some(Nn):!0;case\"intersection\":return!e.left||!e.right||Nn(e.left)||Nn(e.right);case\"pipe\":return e.out?Nn(e.out):!0;default:return!0}}function j_(t,e,r,i,n=!0){let o=r._zod.def,s=n?I(e):null;return s&&t.write(`let ${s} = null;`),t.write(`if (${i} !== null) {`),t.indented(a=>{let l=X(a,e,o.innerType,i,n);s&&l!==null&&a.write(`${s} = ${l};`)}),t.write(\"}\"),s}function Mc(t,e,r){for(let[i,n]of _n(e._zod.def.checks))t.write(`if (${r} > ${wt(i,n._zod.def.check)}) return INVALID;`)}function F_(t,e,r,i,n=!0){let o=r._zod.def;t.write(`if (!Array.isArray(${i})) return INVALID;`),Mc(t,r,`${i}.length`);let s=n?I(e):null,a=I(e),l=I(e);return s&&t.write(`const ${s} = new Array(${i}.length);`),t.write(`for (let ${a} = 0; ${a} < ${i}.length; ${a}++) {`),t.indented(u=>{u.write(`const ${l} = ${i}[${a}];`);let c=ae(u,e,o.element,l,n);s&&c!==null&&u.write(`${s}[${a}] = ${c};`)}),t.write(\"}\"),s}function B_(t,e,r,i){let o=r._zod.def.values;if(o.length!==1){let a=N(e,new Set(o));return t.write(`if (!${a}.has(${i})) return INVALID;`),i}let s=o[0];if(typeof s==\"number\"&&Number.isNaN(s)){let a=N(e,new Set(o));return t.write(`if (!${a}.has(${i})) return INVALID;`),i}if(typeof s==\"string\")t.write(`if (${i} !== ${fe(s)}) return INVALID;`);else if(typeof s==\"number\"||typeof s==\"boolean\")t.write(`if (${i} !== ${s}) return INVALID;`);else if(s===null)t.write(`if (${i} !== null) return INVALID;`);else if(s===void 0)t.write(`if (${i} !== undefined) return INVALID;`);else if(typeof s==\"bigint\")t.write(`if (${i} !== ${s}n) return INVALID;`);else throw new U(`literal type ${typeof s}`);return i}function V_(t,e,r,i){let n=r._zod.values;if(!n)throw new U(\"enum schema without enumerated values\");let o=N(e,n);return t.write(`if (!${o}.has(${i})) return INVALID;`),i}function vg(t,e,r,i){let n=r._zod.def;return X(t,e,n.innerType,i)}function Z_(t,e,r,i){let n=r._zod.def,s=Object.getOwnPropertyDescriptor(r._zod.def,\"defaultValue\")?()=>r._zod.def.defaultValue:void 0;if(r._zod.def.type===\"prefault\"){if(!s)return X(t,e,n.innerType,i);let l=N(e,s),u=I(e);return t.write(`let ${u} = ${i};`),t.write(`if (${i} === undefined) ${u} = ${l}();`),X(t,e,n.innerType,u)}let a=I(e);if(s){let l=N(e,s),u=N(e,yr);t.write(`let ${a};`),t.write(`if (${i} === undefined) {`),t.indented(c=>{c.write(`${a} = ${u}(${l}());`)}),t.write(\"} else {\"),t.indented(c=>{let d=X(c,e,n.innerType,i);c.write(`${a} = ${d} === undefined ? ${u}(${l}()) : ${d};`)}),t.write(\"}\")}else t.write(`let ${a};`),t.write(`if (${i} !== undefined) {`),t.indented(l=>{let u=X(l,e,n.innerType,i);l.write(`${a} = ${u};`)}),t.write(\"}\");return a}function W_(t,e,r,i){let n=r._zod.def,o=X(t,e,n.innerType,i),s=I(e);return t.write(`const ${s} = ${o};`),t.write(`if (${s} === undefined) return INVALID;`),s}function G_(t,e,r,i){let n=r._zod.def,o=n.items,s=n.rest;t.write(`if (!Array.isArray(${i})) return INVALID;`);let a=bg(o,\"optin\"),l=bg(o,\"optout\");s?t.write(`if (${i}.length < ${a}) return INVALID;`):t.write(`if (${i}.length < ${a} || ${i}.length > ${o.length}) return INVALID;`);let u=I(e);t.write(`const ${u} = [];`);for(let c=0;c<o.length;c++){let d=o[c];if(c>=l)t.write(`if (${u}.length === ${c}) {`),t.indented(f=>{f.write(`if (${c} < ${i}.length) {`),f.indented(p=>{let m=I(e);p.write(`const ${m} = ${i}[${c}];`);let y=ae(p,e,d,m);p.write(`${u}[${c}] = ${y};`)}),f.write(\"} else {\"),f.indented(p=>{if(Cc(d)){p.write(`${u}.length = ${c};`);return}let m=I(e),y=I(e);p.write(`const ${m} = undefined;`),p.write(`const ${y} = (() => {`),p.indented(_=>{let k=ae(_,e,d,m);_.write(`return ${k};`)}),p.write(\"})();\"),p.write(`if (${y} === INVALID || ${y} === undefined) ${u}.length = ${c};`),p.write(`else ${u}[${c}] = ${y};`)}),f.write(\"}\")}),t.write(\"}\");else{let f=I(e);t.write(`const ${f} = ${i}[${c}];`);let p=ae(t,e,d,f);t.write(`${u}[${c}] = ${p};`)}}if(s){let c=I(e),d=I(e);t.write(`for (let ${c} = ${o.length}; ${c} < ${i}.length; ${c}++) {`),t.indented(f=>{f.write(`const ${d} = ${i}[${c}];`);let p=ae(f,e,s,d);f.write(`${u}[${c}] = ${p};`)}),t.write(\"}\")}return u}function bg(t,e){for(let r=t.length-1;r>=0;r--)if(!(e===\"optin\"?t[r]._zod.optin!==void 0:t[r]._zod.optout===\"optional\"))return r+1;return 0}function K_(t,e,r,i){let n=r._zod.def,o=n.options;if(n.discriminator)return H_(t,e,n,i);if(n.inclusive===!1)throw new U(\"exclusive unions (z.xor)\");if(o.length===0)return t.write(\"return INVALID;\"),i;if(o.length===1)return X(t,e,o[0],i);if(o.every(l=>l._zod.def.type===\"literal\"&&!l._zod.def.checks?.length)){let l=new Set(o.flatMap(c=>c._zod.def.values)),u=N(e,l);return t.write(`if (!${u}.has(${i})) return INVALID;`),i}let a=I(e);t.write(`let ${a};`);for(let l=0;l<o.length;l++){let u=o[l];l===0?t.write(`${a} = (() => {`):t.write(`if (${a} === INVALID) ${a} = (() => {`),t.indented(c=>{let d=X(c,e,u,i);c.write(`return ${d};`)}),t.write(\"})();\")}return t.write(`if (${a} === INVALID) return INVALID;`),a}function H_(t,e,r,i){if(r.unionFallback)throw new U(\"discriminated union with unionFallback\");if(r.options.length===0)return t.write(\"return INVALID;\"),i;let n=I(e),o=I(e);t.write(`const ${n} = ${i}?.[${fe(r.discriminator)}];`),t.write(`let ${o};`);let s=!0,a=new Set;for(let l of r.options){let u=l._zod.propValues?.[r.discriminator];if(!u||u.size===0)throw new U(\"discriminated union option without static discriminator values\");for(let f of u){if(a.has(f))throw new U(`duplicate discriminator value ${String(f)}`);a.add(f)}let c=Array.from(u,f=>J_(e,n,f)),d=s?\"if\":\"else if\";t.write(`${d} (${c.join(\" || \")}) {`),t.indented(f=>{let p=X(f,e,l,i);f.write(`${o} = ${p};`)}),t.write(\"}\"),s=!1}return t.write(\"else { return INVALID; }\"),o}function J_(t,e,r){if(typeof r==\"string\")return`${e} === ${fe(r)}`;if(typeof r==\"number\")return Number.isNaN(r)?`Number.isNaN(${e})`:`${e} === ${r}`;if(typeof r==\"boolean\")return`${e} === ${r}`;if(r===null)return`${e} === null`;if(r===void 0)return`${e} === undefined`;if(typeof r==\"bigint\")return`${e} === ${r}n`;if(typeof r==\"symbol\"){let i=N(t,r);return`${e} === ${i}`}throw new U(`literal discriminator value ${String(r)}`)}function X_(t,e,r,i){let n=r._zod.def;e.definite=!1;let o=ae(t,e,n.left,i),s=ae(t,e,n.right,i),a=N(e,In),l=I(e);return t.write(`const ${l} = ${a}(${o}, ${s});`),t.write(`if (!${l}.valid) return INVALID;`),`${l}.data`}function Y_(t,e,r,i){let n=r._zod.def,o=N(e,Ie);t.write(`if (!${o}(${i})) return INVALID;`);let s=I(e),a=I(e),l=I(e);t.write(`const ${s} = {};`);let u=n,c=u.partial?void 0:n.keyType._zod.values;if(c){let p=[];for(let y of c){if(!(typeof y==\"string\"||typeof y==\"number\"||typeof y==\"symbol\"))throw new U(`record key value ${String(y)}`);let _=typeof y==\"number\"?y.toString():y;if(_===\"__proto__\")throw new U('record key \"__proto__\"');p.push(_);let k=N(e,y),S=X(t,e,n.keyType,k),T=I(e);t.write(`const ${T} = ${i}[${q_(e,_)}];`);let P=ae(t,e,n.valueType,T);t.write(`${s}[${S}] = ${P};`)}let m=N(e,new Set(p));return t.write(`for (const ${a} in ${i}) {`),t.indented(y=>{y.write(`if (${m}.has(${a})) continue;`),u.mode===\"loose\"?y.write(`if (${a} !== \"__proto__\") ${s}[${a}] = ${i}[${a}];`):y.write(\"return INVALID;\")}),t.write(\"}\"),s}let d=n.keyType._zod.def;if(!(d.type===\"string\"&&d.format===void 0&&!d.coerce&&(d.checks?.length??0)===0)){let p=n.mode===\"loose\",m=jo(n.keyType);m.definite===!1&&(e.definite=!1);let y=N(e,m),_=N(e,lt),k=I(e);return wg(t,e,i,a,S=>{S.write(`let ${k} = ${y}(${a});`),S.write(`if (${k} === INVALID && typeof ${a} === \"string\" && ${_}.test(${a})) ${k} = ${y}(Number(${a}));`),p?S.write(`if (${k} === INVALID) { ${s}[${a}] = ${i}[${a}]; continue; }`):S.write(`if (${k} === INVALID) return INVALID;`),S.write(`if (${k} === \"__proto__\") continue;`);let T=I(e);S.write(`const ${T} = ${i}[${a}];`);let P=ae(S,e,n.valueType,T);S.write(`${s}[${k}] = ${P};`)}),s}return wg(t,e,i,a,p=>{p.write(`const ${l} = ${i}[${a}];`);let m=ae(p,e,n.valueType,l);p.write(`${s}[${a}] = ${m};`)},\"return INVALID;\"),s}function wg(t,e,r,i,n,o){let s=N(e,Object.prototype.propertyIsEnumerable),a=I(e),l=I(e),u=I(e);t.write(`const ${a} = Object.getOwnPropertySymbols(${r});`),t.write(`const ${l} = Object.getOwnPropertyNames(${r});`),t.write(`for (let ${u} = 0; ${u} < ${l}.length; ${u}++) {`),t.indented(c=>{c.write(`const ${i} = ${l}[${u}];`),c.write(`if (${i} === \"__proto__\" || !${s}.call(${r}, ${i})) continue;`),n(c)}),t.write(\"}\"),t.write(`for (let ${u} = 0; ${u} < ${a}.length; ${u}++) {`),t.indented(c=>{c.write(`const ${i} = ${a}[${u}];`),c.write(`if (!${s}.call(${r}, ${i})) continue;`),o?c.write(o):n(c)}),t.write(\"}\")}function q_(t,e){return typeof e==\"string\"?fe(e):N(t,e)}function Q_(t,e,r,i){let n=r._zod.def;t.write(`if (!(${i} instanceof Map)) return INVALID;`),Mc(t,r,`${i}.size`);let o=I(e),s=I(e),a=I(e);return t.write(`const ${o} = new Map();`),t.write(`for (const [${s}, ${a}] of ${i}) {`),t.indented(l=>{let u=X(l,e,n.keyType,s),c=X(l,e,n.valueType,a);l.write(`${o}.set(${u}, ${c});`)}),t.write(\"}\"),o}function ex(t,e,r,i){let n=r._zod.def;t.write(`if (!(${i} instanceof Set)) return INVALID;`),Mc(t,r,`${i}.size`);let o=I(e),s=I(e);return t.write(`const ${o} = new Set();`),t.write(`for (const ${s} of ${i}) {`),t.indented(a=>{let l=X(a,e,n.valueType,s);a.write(`${o}.add(${l});`)}),t.write(\"}\"),o}function tx(t,e){return t.write(`if (!(${e} instanceof File)) return INVALID;`),e}function nx(t,e,r,i){t.write(`if (typeof ${i} !== \"string\") return INVALID;`);let n=r._zod.pattern;if(n){let o=N(e,n);t.write(`${o}.lastIndex = 0;`),t.write(`if (!${o}.test(${i})) return INVALID;`)}return i}function rx(t,e,r,i){let n=r._zod.def,o=Jt(e,n.getter),s=N(e,{parser:null});t.write(`if (!${s}.parser) {`),t.indented(l=>{l.write(`const inner = ${o}();`),l.write(`${s}.parser = function(input) {`),l.indented(u=>{u.write(\"const result = inner._zod.run({ value: input, issues: [] }, {});\"),u.write(\"return result.issues.length === 0 ? result.value : INVALID;\")}),l.write(\"};\")}),t.write(\"}\");let a=I(e);return t.write(`const ${a} = ${s}.parser(${i});`),t.write(`if (${a} === INVALID) return INVALID;`),a}function ix(t,e,r,i){let n=r._zod.def,o=X(t,e,n.in,i);if(n.transform){if(Xt(n.transform))throw new ze(\"z.compile: async transforms in pipes are not supported\");let s=n.transform,l=Jt(e,c=>{let d={value:c,issues:[],addIssue:Uc},f=s(c,d);return f instanceof Promise?me:d.issues.length===0?f:me}),u=I(e);return t.write(`const ${u} = ${l}(${o});`),t.write(`if (${u} === INVALID) return INVALID;`),X(t,e,n.out,u)}else return X(t,e,n.out,o)}function Xt(t){return typeof t==\"function\"&&(t.constructor.name===\"AsyncFunction\"||t[Symbol.toStringTag]===\"AsyncFunction\")}function ox(t,e,r,i){let n=r._zod.def;if(n.fn){if(Xt(n.fn))throw new ze(\"z.compile: async custom predicates are not supported\");let o=Jt(e,n.fn),s=N(e,Dc),a=I(e);t.write(`const ${a} = ${o}(${i});`),t.write(`if (${a} instanceof Promise) ${s}();`),t.write(`if (!${a}) return INVALID;`)}else throw new U(\"custom schema without a predicate function\");return i}function sx(t,e,r){let i=t._zod.run({value:r,issues:[]},{});if(i&&typeof i.then==\"function\")return me;let n=i;return n.issues.length===0?n.value:e()}function ax(t,e,r,i){let n=r._zod.def;if(!n.catchValue[Zi])throw new U(\"catch with a callback (only a constant catch value compiles)\",!1);let o=I(e);t.write(`let ${o} = (() => {`),t.indented(u=>{let c=ae(u,e,n.innerType,i);u.write(`return ${c};`)}),t.write(\"})();\");let s=N(e,n.innerType),a=Jt(e,n.catchValue),l=N(e,sx);return t.write(`if (${o} === INVALID) {`),t.indented(u=>{u.write(`${o} = ${l}(${s}, ${a}, ${i});`),u.write(`if (${o} === INVALID) return INVALID;`)}),t.write(\"}\"),o}function lx(t,e,r,i){let n=r._zod.def;if(n.transform){if(Xt(n.transform))throw new ze(\"z.compile: async transforms are not supported\");let o=n.transform,a=Jt(e,u=>{let c={value:u,issues:[],addIssue:Uc},d=o(u,c);return d instanceof Promise?me:c.issues.length===0?d:me}),l=I(e);return t.write(`const ${l} = ${a}(${i});`),t.write(`if (${l} === INVALID) return INVALID;`),l}return i}function Fo(t){return t.checks&&(t.checks=[...t.checks]),t}function Lc(t,e){return new t(Fo({type:\"string\",...x(e)}))}function jc(t,e){return new t(Fo({type:\"string\",coerce:!0,...x(e)}))}function Bo(t,e){return new t({type:\"string\",format:\"email\",check:\"string_format\",abort:!1,...x(e)})}function Vo(t,e){return new t({type:\"string\",format:\"guid\",check:\"string_format\",abort:!1,...x(e)})}function Zo(t,e){return new t({type:\"string\",format:\"uuid\",check:\"string_format\",abort:!1,...x(e)})}function Wo(t,e){return new t({type:\"string\",format:\"uuid\",check:\"string_format\",abort:!1,version:\"v4\",...x(e)})}function Go(t,e){return new t({type:\"string\",format:\"uuid\",check:\"string_format\",abort:!1,version:\"v6\",...x(e)})}function Ko(t,e){return new t({type:\"string\",format:\"uuid\",check:\"string_format\",abort:!1,version:\"v7\",...x(e)})}function Kr(t,e){return new t({type:\"string\",format:\"url\",check:\"string_format\",abort:!1,...x(e)})}function Ho(t,e){return new t({type:\"string\",format:\"emoji\",check:\"string_format\",abort:!1,...x(e)})}function Jo(t,e){return new t({type:\"string\",format:\"nanoid\",check:\"string_format\",abort:!1,...x(e)})}function Xo(t,e){return new t({type:\"string\",format:\"cuid\",check:\"string_format\",abort:!1,...x(e)})}function Yo(t,e){return new t({type:\"string\",format:\"cuid2\",check:\"string_format\",abort:!1,...x(e)})}function qo(t,e){return new t({type:\"string\",format:\"ulid\",check:\"string_format\",abort:!1,...x(e)})}function Qo(t,e){return new t({type:\"string\",format:\"xid\",check:\"string_format\",abort:!1,...x(e)})}function es(t,e){return new t({type:\"string\",format:\"ksuid\",check:\"string_format\",abort:!1,...x(e)})}function ts(t,e){return new t({type:\"string\",format:\"ipv4\",check:\"string_format\",abort:!1,...x(e)})}function ns(t,e){return new t({type:\"string\",format:\"ipv6\",check:\"string_format\",abort:!1,...x(e)})}function Fc(t,e){return new t({type:\"string\",format:\"mac\",check:\"string_format\",abort:!1,...x(e)})}function rs(t,e){return new t({type:\"string\",format:\"cidrv4\",check:\"string_format\",abort:!1,...x(e)})}function is(t,e){return new t({type:\"string\",format:\"cidrv6\",check:\"string_format\",abort:!1,...x(e)})}function os(t,e){return new t({type:\"string\",format:\"base64\",check:\"string_format\",abort:!1,...x(e)})}function ss(t,e){return new t({type:\"string\",format:\"base64url\",check:\"string_format\",abort:!1,...x(e)})}function as(t,e){return new t({type:\"string\",format:\"e164\",check:\"string_format\",abort:!1,...x(e)})}function Bc(t,e){return new t({type:\"string\",format:\"credit_card\",check:\"string_format\",abort:!1,...x(e)})}function Vc(t,e){return new t({type:\"string\",format:\"iban\",check:\"string_format\",abort:!1,...x(e)})}function ls(t,e){return new t({type:\"string\",format:\"jwt\",check:\"string_format\",abort:!1,...x(e)})}var Zc={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Hr(t,e){return new t({type:\"string\",format:\"datetime\",check:\"string_format\",offset:!1,local:!1,precision:null,...x(e)})}function Jr(t,e){return new t({type:\"string\",format:\"date\",check:\"string_format\",...x(e)})}function Xr(t,e){return new t({type:\"string\",format:\"time\",check:\"string_format\",precision:null,...x(e)})}function Yr(t,e){return new t({type:\"string\",format:\"duration\",check:\"string_format\",...x(e)})}function Wc(t,e){return new t(Fo({type:\"number\",checks:[],...x(e)}))}function Gc(t,e){return new t(Fo({type:\"number\",coerce:!0,checks:[],...x(e)}))}function Kc(t,e){return new t({type:\"number\",check:\"number_format\",abort:!1,format:\"safeint\",...x(e)})}function Hc(t,e){return new t({type:\"number\",check:\"number_format\",abort:!1,format:\"float32\",...x(e)})}function Jc(t,e){return new t({type:\"number\",check:\"number_format\",abort:!1,format:\"float64\",...x(e)})}function Xc(t,e){return new t({type:\"number\",check:\"number_format\",abort:!1,format:\"int32\",...x(e)})}function Yc(t,e){return new t({type:\"number\",check:\"number_format\",abort:!1,format:\"uint32\",...x(e)})}function qc(t,e){return new t({type:\"boolean\",...x(e)})}function Qc(t,e){return new t({type:\"boolean\",coerce:!0,...x(e)})}function ed(t,e){return new t({type:\"bigint\",...x(e)})}function td(t,e){return new t({type:\"bigint\",coerce:!0,...x(e)})}function nd(t,e){return new t({type:\"bigint\",check:\"bigint_format\",abort:!1,format:\"int64\",...x(e)})}function rd(t,e){return new t({type:\"bigint\",check:\"bigint_format\",abort:!1,format:\"uint64\",...x(e)})}function id(t,e){return new t({type:\"symbol\",...x(e)})}function od(t,e){return new t({type:\"undefined\",...x(e)})}function sd(t,e){return new t({type:\"null\",...x(e)})}function ad(t){return new t({type:\"any\"})}function ld(t){return new t({type:\"unknown\"})}function ud(t,e){return new t({type:\"never\",...x(e)})}function cd(t,e){return new t({type:\"void\",...x(e)})}function dd(t,e){return new t({type:\"date\",...x(e)})}function fd(t,e){return new t({type:\"date\",coerce:!0,...x(e)})}function pd(t,e){return new t({type:\"nan\",...x(e)})}function We(t,e){return new so({check:\"less_than\",...x(e),value:t,inclusive:!1})}function ke(t,e){return new so({check:\"less_than\",...x(e),value:t,inclusive:!0})}function Ge(t,e){return new ao({check:\"greater_than\",...x(e),value:t,inclusive:!1})}function $e(t,e){return new ao({check:\"greater_than\",...x(e),value:t,inclusive:!0})}function us(t){return Ge(0,t)}function cs(t){return We(0,t)}function ds(t){return ke(0,t)}function fs(t){return $e(0,t)}function St(t,e){return new Jl({check:\"multiple_of\",...x(e),value:t})}function _t(t,e){return new ql({check:\"max_size\",...x(e),maximum:t})}function Ke(t,e){return new Ql({check:\"min_size\",...x(e),minimum:t})}function Yt(t,e){return new eu({check:\"size_equals\",...x(e),size:t})}function qt(t,e){return new tu({check:\"max_length\",...x(e),maximum:t})}function ut(t,e){return new nu({check:\"min_length\",...x(e),minimum:t})}function Qt(t,e){return new ru({check:\"length_equals\",...x(e),length:t})}function Rn(t,e){return new iu({check:\"string_format\",format:\"regex\",...x(e),pattern:t})}function Dn(t){return new ou({check:\"string_format\",format:\"lowercase\",...x(t)})}function Cn(t){return new su({check:\"string_format\",format:\"uppercase\",...x(t)})}function zn(t,e){return new au({check:\"string_format\",format:\"includes\",...x(e),includes:t})}function Un(t,e){return new lu({check:\"string_format\",format:\"starts_with\",...x(e),prefix:t})}function Mn(t,e){return new uu({check:\"string_format\",format:\"ends_with\",...x(e),suffix:t})}function ps(t,e,r){return new cu({check:\"property\",property:t,schema:e,...x(r)})}function Ln(t,e){return new du({check:\"properties\",shape:t,...x(e)})}function jn(t,e){return new fu({check:\"mime_type\",mime:t,...x(e)})}function Ue(t){return new pu({check:\"overwrite\",tx:t})}function Fn(t){return Ue(e=>e.normalize(t))}function Bn(){return Ue(t=>t.trim())}function Vn(){return Ue(t=>t.toLowerCase())}function Zn(){return Ue(t=>t.toUpperCase())}function Wn(){return Ue(t=>Ya(t))}function md(t,e,r){return new t({type:\"array\",element:e,...x(r)})}function ux(t,e,r){return new t({type:\"union\",options:e,...x(r)})}function cx(t,e,r){return new t({type:\"union\",options:e,inclusive:!1,...x(r)})}function dx(t,e,r,i){return new t({type:\"union\",options:r,discriminator:e,...x(i)})}function fx(t,e,r){return new t({type:\"intersection\",left:e,right:r})}function px(t,e,r,i){let n=r instanceof R,o=n?i:r,s=n?r:null;return new t({type:\"tuple\",items:e,rest:s,...x(o)})}function mx(t,e,r,i){return new t({type:\"record\",keyType:e,valueType:r,...x(i)})}function hx(t,e,r,i){return new t({type:\"map\",keyType:e,valueType:r,...x(i)})}function gx(t,e,r){return new t({type:\"set\",valueType:e,...x(r)})}function yx(t,e,r){let i=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new t({type:\"enum\",entries:i,...x(r)})}function vx(t,e,r){return new t({type:\"enum\",entries:e,...x(r)})}function bx(t,e,r){return new t({type:\"literal\",values:Array.isArray(e)?e:[e],...x(r)})}function hd(t,e){return new t({type:\"file\",...x(e)})}function wx(t,e){return new t({type:\"transform\",transform:e})}function Sx(t,e){return new t({type:\"optional\",innerType:e})}function _x(t,e){return new t({type:\"nullable\",innerType:e})}function xx(t,e,r){return new t({type:\"default\",innerType:e,get defaultValue(){return typeof r==\"function\"?r():yr(r)}})}function kx(t,e,r){return new t({type:\"nonoptional\",innerType:e,...x(r)})}function $x(t,e){return new t({type:\"success\",innerType:e})}function Ex(t,e,r){return new t({type:\"catch\",innerType:e,catchValue:typeof r==\"function\"?r:rl(r)})}function Tx(t,e,r){return new t({type:\"pipe\",in:e,out:r})}function Ax(t,e){return new t({type:\"readonly\",innerType:e})}function Ix(t,e,r){return new t({type:\"template_literal\",parts:e,...x(r)})}function Px(t,e){return new t({type:\"lazy\",getter:e})}function Ox(t,e){return new t({type:\"promise\",innerType:e})}function gd(t,e,r){let i=x(r);return i.abort??(i.abort=!0),new t({type:\"custom\",check:\"custom\",fn:e,...i})}function yd(t,e,r){return new t({type:\"custom\",check:\"custom\",fn:e,...x(r)})}function vd(t,e){let r=kg(i=>(i.addIssue=n=>{if(typeof n==\"string\")i.issues.push(xn(n,i.value,r._zod.def));else{let o=n;o.fatal&&(o.continue=!1),o.code??(o.code=\"custom\"),\"input\"in o||(o.input=i.value),o.inst??(o.inst=r),o.continue??(o.continue=!r._zod.def.abort),i.issues.push(xn(o))}},t(i.value,i)),e);return r}function kg(t,e){let r=new H({check:\"custom\",...x(e)});return r._zod.check=t,r}function bd(t){let e=new H({check:\"describe\"});return e._zod.onattach=[r=>{let i=re.get(r)??{};re.add(r,{...i,description:t})}],e._zod.check=()=>{},e}function wd(t){let e=new H({check:\"meta\"});return e._zod.onattach=[r=>{let i=re.get(r)??{};re.add(r,{...i,...t})}],e._zod.check=()=>{},e}function Sd(t,e){let r=x(e),i=r.truthy??[\"true\",\"1\",\"yes\",\"on\",\"y\",\"enabled\"],n=r.falsy??[\"false\",\"0\",\"no\",\"off\",\"n\",\"disabled\"];r.case!==\"sensitive\"&&(i=i.map(p=>typeof p==\"string\"?p.toLowerCase():p),n=n.map(p=>typeof p==\"string\"?p.toLowerCase():p));let o=new Set(i),s=new Set(n),a=t.Codec??jr,l=t.Boolean??Mr,u=t.String??Kt,c=new u({type:\"string\",error:r.error}),d=new l({type:\"boolean\",error:r.error}),f=new a({type:\"pipe\",in:c,out:d,transform:((p,m)=>{let y=p;return r.case!==\"sensitive\"&&(y=y.toLowerCase()),o.has(y)?!0:s.has(y)?!1:(m.issues.push({code:\"invalid_value\",expected:\"stringbool\",values:[...o,...s],input:m.value,inst:f,continue:!1}),{})}),reverseTransform:((p,m)=>p===!0?i[0]||\"true\":n[0]||\"false\"),error:r.error});return f._zod.bag.truthy=i,f._zod.bag.falsy=n,f._zod.bag.case=r.case??\"insensitive\",f}function en(t,e,r,i={}){let n=x(i),o={check:\"string_format\",type:\"string\",format:e,fn:typeof r==\"function\"?r:a=>r.test(a),...n};return r instanceof RegExp&&(o.pattern=r),new t(o)}function qr(t,...e){for(let r of e)for(let i of Reflect.ownKeys(r))Object.prototype.propertyIsEnumerable.call(r,i)&&ne(t,i,r[i]);return t}function xt(t){let e=t?.target??\"draft-2020-12\";return e===\"draft-4\"&&(e=\"draft-04\"),e===\"draft-7\"&&(e=\"draft-07\"),{processors:t.processors??{},metadataRegistry:t?.metadata??re,target:e,unrepresentable:t?.unrepresentable??\"throw\",override:t?.override??(()=>{}),io:t?.io??\"output\",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:t?.cycles??\"ref\",reused:t?.reused??\"inline\",intersections:[],deferred:[],external:t?.external??void 0}}function Q(t,e,r,i,n){let o=typeof e.unrepresentable==\"function\"?e.unrepresentable({zodSchema:t,path:i.path,message:n}):e.unrepresentable;if(o===\"any\")return!1;if(o===void 0||o===\"throw\")throw new Error(n);return Object.assign(r,o),!0}function Z(t,e,r={path:[],schemaPath:[]}){var i;let n=t._zod.def,o=e.seen.get(t);if(o)return o.count++,r.schemaPath.includes(t)&&(o.cycle=r.path),o.schema;let s={schema:{},count:1,cycle:void 0,path:r.path};e.seen.set(t,s),e.sharedDefsExtractedFor=void 0,e.sharedEmitDoneFor=void 0;let a=t._zod.toJSONSchema?.();if(a)s.schema=a;else{let c={...r,schemaPath:[...r.schemaPath,t],path:r.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(e,s.schema,c);else{let f=s.schema,p=e.processors[n.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);p(t,e,f,c)}let d=t._zod.parent;d&&(s.ref||(s.ref=d),Z(d,e,c),e.seen.get(d).isParent=!0)}let l=e.metadataRegistry.get(t);return l&&qr(s.schema,l),e.io===\"input\"&&he(t)&&(delete s.schema.examples,delete s.schema.default),e.io===\"input\"&&\"_prefault\"in s.schema&&((i=s.schema).default??(i.default=s.schema._prefault)),delete s.schema._prefault,e.seen.get(t).schema}function $g(t){return t.replace(/~/g,\"~0\").replace(/\\//g,\"~1\")}function kt(t,e){let r=t.seen.get(e);if(!r)throw new Error(\"Unprocessed schema. This is a bug in Zod.\");if(t.external&&t.sharedDefsExtractedFor===t.external)return;let i=new Map;for(let s of t.seen.entries()){let a=t.metadataRegistry.get(s[0])?.id;if(a){let l=i.get(a);if(l&&l!==s[0])throw new Error(`Duplicate schema id \"${a}\" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(a,s[0])}}let n=s=>{let a=t.target===\"draft-2020-12\"?\"$defs\":\"definitions\";if(t.external){let d=t.external.registry.get(s[0])?.id,f=t.external.uri??(m=>m);if(d)return{ref:f(d)};let p=s[1].defId??s[1].schema.id??`schema${t.counter++}`;return s[1].defId=p,{defId:p,ref:`${f(\"__shared\")}#/${a}/${$g(p)}`}}let l=\"#\",u=`${l}/${a}/`;if(s[1]===r&&!s[1].schema.id)return{ref:l};let c=s[1].schema.id??`__schema${t.counter++}`;return{defId:c,ref:u+$g(c)}},o=s=>{if(s[1].schema.$ref)return;let a=s[1],{ref:l,defId:u}=n(s);a.def={...a.schema},u&&(a.defId=u);let c=a.schema;for(let d in c)delete c[d];c.$ref=l};if(t.cycles===\"throw\")for(let s of t.seen.entries()){let a=s[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join(\"/\")}/<root>\n\nSet the \\`cycles\\` parameter to \\`\"ref\"\\` to resolve cyclical schemas with defs.`)}for(let s of t.seen.entries()){let a=s[1];if(e===s[0]){o(s);continue}if(t.external){let u=t.external.registry.get(s[0])?.id;if(e!==s[0]&&u){o(s);continue}}if(t.metadataRegistry.get(s[0])?.id){o(s);continue}if(a.cycle){o(s);continue}a.count>1&&t.reused===\"ref\"&&o(s)}t.external&&(t.sharedDefsExtractedFor=t.external)}function Ag(t){let e=t.anyOf;if(!Array.isArray(e)||e.length===0||t.type!==void 0)return;let r=[];for(let i of e){if(!i||typeof i!=\"object\")return;Ag(i);let n=Object.keys(i);if(n.length!==1||n[0]!==\"type\")return;let o=i.type;for(let s of Array.isArray(o)?o:[o]){if(typeof s!=\"string\")return;r.includes(s)||r.push(s)}}delete t.anyOf,t.type=r.length===1?r[0]:r}var Ig=new Set([\"type\",\"properties\",\"required\",\"additionalProperties\"]),Eg=[\"oneOf\",\"anyOf\"];function Tg(t){let e=t.additionalProperties;return e===void 0||e===!1||typeof e!=\"object\"||e===null?null:Object.keys(e).length?e:null}function _d(t){let e=[];for(let o of t){if(typeof o!=\"object\"||o.type!==\"object\")return null;for(let s in o)if(!Ig.has(s))return null;e.push(o)}let r={},i=new Set;for(let o of e){for(let s in o.properties){if(Object.prototype.hasOwnProperty.call(r,s))continue;let a=[];for(let u of e){let c=u.properties?.[s]??Tg(u);c!=null&&(a.some(d=>JSON.stringify(d)===JSON.stringify(c))||a.push(c))}let l=a.length===1?a[0]:_d(a)??{allOf:a};ne(r,s,l)}for(let s of o.required??[])i.add(s)}let n={type:\"object\",properties:r};if(i.size&&(n.required=[...i]),e.every(o=>o.additionalProperties===!1))n.additionalProperties=!1;else{let o=[];for(let s of e){let a=Tg(s);a&&!o.some(l=>JSON.stringify(l)===JSON.stringify(a))&&o.push(a)}o.length===1?n.additionalProperties=o[0]:o.length>1&&(n.additionalProperties={allOf:o})}return n}function Nx(t){let e=t.allOf;if(!Array.isArray(e)||e.length<2)return;for(let n of Ig)if(n in t)return;let r=e.filter(n=>Eg.some(o=>Array.isArray(n[o]))),i=null;if(!r.length)i=_d(e);else{let n=r[0],o=Eg.find(l=>Array.isArray(n[l]));if(Object.keys(n).length!==1)return;let s=e.filter(l=>l!==n),a=n[o].map(l=>_d([...s,l]));if(a.some(l=>!l))return;i={[o]:a}}i&&(delete t.allOf,qr(t,i))}function $t(t,e){let r=t.seen.get(e);if(!r)throw new Error(\"Unprocessed schema. This is a bug in Zod.\");let i=a=>{let l=t.seen.get(a);if(l.ref===null)return;let u=l.def??l.schema,c={...u},d=l.ref;if(l.ref=null,d){i(d);let p=t.seen.get(d),m=p.schema;if(m.$ref&&(t.target===\"draft-07\"||t.target===\"draft-04\"||t.target===\"openapi-3.0\")?(u.allOf=u.allOf??[],u.allOf.push(m)):qr(u,m),qr(u,c),a._zod.parent===d)for(let _ in u)_===\"$ref\"||_===\"allOf\"||_ in c||delete u[_];if(m.$ref&&p.def)for(let _ in u)_===\"$ref\"||_===\"allOf\"||_ in p.def&&JSON.stringify(u[_])===JSON.stringify(p.def[_])&&delete u[_]}let f=a._zod.parent;if(f&&f!==d){i(f);let p=t.seen.get(f);if(p?.schema.$ref&&(u.$ref=p.schema.$ref,p.def))for(let m in u)m===\"$ref\"||m===\"allOf\"||m in p.def&&JSON.stringify(u[m])===JSON.stringify(p.def[m])&&delete u[m]}t.override({zodSchema:a,jsonSchema:u,path:l.path??[]})};if(!t.external||t.sharedEmitDoneFor!==t.external){for(let a of[...t.seen.entries()].reverse())i(a[0]);if(t.target!==\"openapi-3.0\")for(let a of t.seen.entries())Ag(a[1].def??a[1].schema);for(let a of t.deferred)a();if(t.intersections.length){let a=new Map;for(let l of t.seen.values())for(let u of[l.schema,l.def]){let c=u?.allOf;if(!Array.isArray(c))continue;let d=a.get(c);d?d.push(u):a.set(c,[u])}for(let l of t.intersections)for(let u of a.get(l)??[])Nx(u)}}let n={};if(t.target===\"draft-2020-12\"?n.$schema=\"https://json-schema.org/draft/2020-12/schema\":t.target===\"draft-07\"?n.$schema=\"http://json-schema.org/draft-07/schema#\":t.target===\"draft-04\"?n.$schema=\"http://json-schema.org/draft-04/schema#\":t.target,t.external?.uri){let a=t.external.registry.get(e)?.id;if(!a)throw new Error(\"Schema is missing an `id` property\");n.$id=t.external.uri(a)}qr(n,r.defId?r.schema:r.def??r.schema);let o=t.metadataRegistry.get(e)?.id;o!==void 0&&n.id===o&&delete n.id;let s=t.external?.defs??{};if(!t.external||t.sharedEmitDoneFor!==t.external)for(let a of t.seen.entries()){let l=a[1];l.def&&l.defId&&(l.def.id===l.defId&&delete l.def.id,ne(s,l.defId,l.def))}t.external&&(t.sharedEmitDoneFor=t.external),t.external||Object.keys(s).length>0&&(t.target===\"draft-2020-12\"?n.$defs=s:n.definitions=s);try{let a=JSON.parse(JSON.stringify(n));return Object.defineProperty(a,\"~standard\",{value:{...e[\"~standard\"],jsonSchema:{input:Gn(e,\"input\",t.processors),output:Gn(e,\"output\",t.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error(\"Error converting schema to JSON.\")}}function he(t,e){let r=e??{seen:new Set};if(r.seen.has(t))return!1;r.seen.add(t);let i=t._zod.def;if(i.type===\"transform\")return!0;if(i.type===\"array\")return he(i.element,r);if(i.type===\"set\")return he(i.valueType,r);if(i.type===\"lazy\")return he(i.getter(),r);if(i.type===\"promise\"||i.type===\"optional\"||i.type===\"nonoptional\"||i.type===\"nullable\"||i.type===\"readonly\"||i.type===\"default\"||i.type===\"prefault\"||i.type===\"catch\")return he(i.innerType,r);if(i.type===\"intersection\")return he(i.left,r)||he(i.right,r);if(i.type===\"record\"||i.type===\"map\")return he(i.keyType,r)||he(i.valueType,r);if(i.type===\"pipe\")return t._zod.traits.has(\"$ZodCodec\")?!0:he(i.in,r)||he(i.out,r);if(i.type===\"object\"){for(let n in i.shape)if(he(i.shape[n],r))return!0;return!1}if(i.type===\"union\"){for(let n of i.options)if(he(n,r))return!0;return!1}if(i.type===\"tuple\"){for(let n of i.items)if(he(n,r))return!0;return!!(i.rest&&he(i.rest,r))}return!1}var xd=(t,e={})=>r=>{let i=xt({...r,processors:e});return Z(t,i),kt(i,t),$t(i,t)},Gn=(t,e,r={})=>i=>{let{libraryOptions:n,target:o}=i??{},s=xt({...n??{},target:o,io:e,processors:r});return Z(t,s),kt(s,t),$t(s,t)};var Kn=(t,e,r)=>{(t[e]===void 0||r>t[e])&&(t[e]=r)},Hn=(t,e,r)=>{(t[e]===void 0||r<t[e])&&(t[e]=r)},Pg=(t,e)=>{Kn(t,\"minimum\",e),Hn(t,\"maximum\",e)},Dg=(t,e)=>{t.multipleOf??(t.multipleOf=[]),t.multipleOf.includes(e)||t.multipleOf.push(e)},Cg=(t,e)=>{t.patterns??(t.patterns=new Set),t.patterns.add(e)},zg=(t,e)=>{t.mime=t.mime?t.mime.filter(r=>e.includes(r)):[...e]},Ug=(t,e)=>{t.format=e,e.includes(\"int\")&&(t.isInt=!0)},Og=(t,e)=>Kn(t,\"minimum\",e.minimum),Ng=(t,e)=>Hn(t,\"maximum\",e.maximum),Rg=t=>(e,r)=>{Ug(e,r.format);let[i,n]=t[r.format];Kn(e,\"minimum\",i),Hn(e,\"maximum\",n)},Rx={greater_than:(t,e)=>Kn(t,e.inclusive?\"minimum\":\"exclusiveMinimum\",e.value),less_than:(t,e)=>Hn(t,e.inclusive?\"maximum\":\"exclusiveMaximum\",e.value),multiple_of:(t,e)=>Dg(t,e.value),number_format:Rg(br),bigint_format:Rg(wr),min_length:Og,max_length:Ng,length_equals:(t,e)=>Pg(t,e.length),min_size:Og,max_size:Ng,size_equals:(t,e)=>Pg(t,e.size),string_format:(t,e)=>{Ug(t,e.format),e.pattern&&Cg(t,e.pattern),(e.format===\"base64\"||e.format===\"base64url\")&&(t.contentEncoding=e.format),(e.local||e.precision===-1)&&(t.laxFormat=!0)},mime_type:(t,e)=>zg(t,e.mime)};function ee(t){let e={},r=t._zod.def,i=t._zod.traits.has(\"$ZodCheck\")?[t,...r.checks??[]]:r.checks??[];for(let o of i)Rx[o._zod.def.check]?.(e,o._zod.def);let n=t._zod.bag;n.minimum!==void 0&&Kn(e,\"minimum\",n.minimum),n.exclusiveMinimum!==void 0&&Kn(e,\"exclusiveMinimum\",n.exclusiveMinimum),n.maximum!==void 0&&Hn(e,\"maximum\",n.maximum),n.exclusiveMaximum!==void 0&&Hn(e,\"exclusiveMaximum\",n.exclusiveMaximum),n.multipleOf!==void 0&&Dg(e,n.multipleOf),n.format!==void 0&&(e.format??(e.format=n.format),n.format.includes(\"int\")&&(e.isInt=!0)),n.mime&&zg(e,n.mime);for(let o of n.patterns??[])Cg(e,o);return e}var Dx={guid:\"uuid\",url:\"uri\",datetime:\"date-time\",json_string:\"json-string\",regex:\"\"},Cx=new Map([[vo,Il],[Ur,Pl]]),Mg=t=>Cx.get(t)??t,Ed=(t,e,r,i)=>{let n=r;n.type=\"string\";let{minimum:o,maximum:s,format:a,patterns:l,contentEncoding:u,laxFormat:c}=ee(t);if(typeof o==\"number\"&&(n.minLength=o),typeof s==\"number\"&&(n.maxLength=s),a&&(n.format=Dx[a]??a,n.format===\"\"&&delete n.format,(a===\"time\"||c)&&delete n.format),u&&(n.contentEncoding=u),l&&l.size>0){let d=[...l].map(Mg);d.length===1?n.pattern=d[0].source:d.length>1&&(n.allOf=[...d.map(f=>({...e.target===\"draft-07\"||e.target===\"draft-04\"||e.target===\"openapi-3.0\"?{type:\"string\"}:{},pattern:f.source}))])}},Td=(t,e,r,i)=>{let n=r,{minimum:o,maximum:s,multipleOf:a,exclusiveMaximum:l,exclusiveMinimum:u,isInt:c}=ee(t);n.type=c?\"integer\":\"number\";let d=typeof u==\"number\"&&u>=(o??Number.NEGATIVE_INFINITY),f=typeof l==\"number\"&&l<=(s??Number.POSITIVE_INFINITY),p=e.target===\"draft-04\"||e.target===\"openapi-3.0\";if(d?p?(n.minimum=u,n.exclusiveMinimum=!0):n.exclusiveMinimum=u:typeof o==\"number\"&&(n.minimum=o),f?p?(n.maximum=l,n.exclusiveMaximum=!0):n.exclusiveMaximum=l:typeof s==\"number\"&&(n.maximum=s),a){let m=new Set;for(let k of a)Number.isFinite(k)&&k!==0?m.add(Math.abs(k)):Q(t,e,n,i,`A multipleOf divisor of ${k} cannot be represented in JSON Schema`);let[y,..._]=m;y!==void 0&&(n.multipleOf=y),_.length&&(n.allOf=[...n.allOf??[],..._.map(k=>({multipleOf:k}))])}},Ad=(t,e,r,i)=>{r.type=\"boolean\"},Id=(t,e,r,i)=>{Q(t,e,r,i,\"BigInt cannot be represented in JSON Schema\")},Pd=(t,e,r,i)=>{Q(t,e,r,i,\"Symbols cannot be represented in JSON Schema\")},Od=(t,e,r,i)=>{e.target===\"openapi-3.0\"?(r.type=\"string\",r.nullable=!0,r.enum=[null]):r.type=\"null\"},Nd=(t,e,r,i)=>{Q(t,e,r,i,\"Undefined cannot be represented in JSON Schema\")},Rd=(t,e,r,i)=>{Q(t,e,r,i,\"Void cannot be represented in JSON Schema\")},Dd=(t,e,r,i)=>{r.not={}},Cd=(t,e,r,i)=>{},zd=(t,e,r,i)=>{},Ud=(t,e,r,i)=>{Q(t,e,r,i,\"Date cannot be represented in JSON Schema\")},Md=(t,e,r,i)=>{let n=t._zod.def,o=vn(n.entries);if(o.length===0){r.not={};return}o.every(s=>typeof s==\"number\")&&(r.type=\"number\"),o.every(s=>typeof s==\"string\")&&(r.type=\"string\"),r.enum=o},Ld=(t,e,r,i)=>{let n=t._zod.def;if(n.values.length===0){r.not={};return}let o=[];for(let s of n.values)if(s===void 0){if(Q(t,e,r,i,\"Literal `undefined` cannot be represented in JSON Schema\"))return}else if(typeof s==\"bigint\"){if(Q(t,e,r,i,\"BigInt literals cannot be represented in JSON Schema\"))return;o.push(Number(s))}else o.push(s);if(o.length!==0)if(o.length===1){let s=o[0];r.type=s===null?\"null\":typeof s,e.target===\"draft-04\"||e.target===\"openapi-3.0\"?r.enum=[s]:r.const=s}else o.every(s=>typeof s==\"number\")&&(r.type=\"number\"),o.every(s=>typeof s==\"string\")&&(r.type=\"string\"),o.every(s=>typeof s==\"boolean\")&&(r.type=\"boolean\"),o.every(s=>s===null)&&(r.type=\"null\"),r.enum=o},jd=(t,e,r,i)=>{Q(t,e,r,i,\"NaN cannot be represented in JSON Schema\")},Fd=(t,e,r,i)=>{let n=r,o=t._zod.pattern;if(!o)throw new Error(\"Pattern not found in template literal\");n.type=\"string\",n.pattern=o.source},Bd=(t,e,r,i)=>{let n=r;n.type=\"string\",n.format=\"binary\",n.contentEncoding=\"binary\";let{minimum:o,maximum:s,mime:a}=ee(t);o!==void 0&&(n.minLength=o),s!==void 0&&(n.maxLength=s),a&&(a.length===0?n.not={}:a.length===1?n.contentMediaType=a[0]:n.anyOf=a.map(l=>({contentMediaType:l})))},Vd=(t,e,r,i)=>{r.type=\"boolean\"},Zd=(t,e,r,i)=>{Q(t,e,r,i,\"Custom types cannot be represented in JSON Schema\")},Wd=(t,e,r,i)=>{Q(t,e,r,i,\"Function types cannot be represented in JSON Schema\")},Gd=(t,e,r,i)=>{Q(t,e,r,i,\"Transforms cannot be represented in JSON Schema\")},Kd=(t,e,r,i)=>{Q(t,e,r,i,\"Map cannot be represented in JSON Schema\")},Hd=(t,e,r,i)=>{Q(t,e,r,i,\"Set cannot be represented in JSON Schema\")},Jd=(t,e,r,i)=>{let n=r,o=t._zod.def,{minimum:s,maximum:a}=ee(t);typeof s==\"number\"&&(n.minItems=s),typeof a==\"number\"&&(n.maxItems=a),n.type=\"array\",n.items=Z(o.element,e,{...i,path:[...i.path,\"items\"]})};function Qr(t){let e=t._zod.def;return e.type===\"pipe\"&&e.in._zod.traits.has(\"$ZodTransform\")?Qr(e.out):e.type===\"catch\"?Qr(e.innerType):t._zod.optin}var Xd=(t,e,r,i)=>{let n=r,o=t._zod.def,s=o.shape;if(Object.getOwnPropertySymbols(s).length&&Q(t,e,n,i,\"Symbol keys cannot be represented in JSON Schema\"))return;n.type=\"object\",n.properties={};for(let u in s)ne(n.properties,u,Z(s[u],e,{...i,path:[...i.path,\"properties\",u]}));let l=[];for(let u of Object.keys(s)){let c=o.shape[u];(e.io===\"input\"?Qr(c)===void 0:c._zod.optout===void 0)&&l.push(u)}l.length>0&&(n.required=l),o.catchall?._zod.def.type===\"never\"?n.additionalProperties=!1:o.catchall?o.catchall&&(n.additionalProperties=Z(o.catchall,e,{...i,path:[...i.path,\"additionalProperties\"]})):e.io===\"output\"&&(n.additionalProperties=!1)},hs=(t,e,r,i)=>{let n=t._zod.def,o=n.inclusive===!1,s=n.options.map((a,l)=>Z(a,e,{...i,path:[...i.path,o?\"oneOf\":\"anyOf\",l]}));o?r.oneOf=s:r.anyOf=s},Yd=(t,e,r,i)=>{let n=t._zod.def,o=Z(n.left,e,{...i,path:[...i.path,\"allOf\",0]}),s=Z(n.right,e,{...i,path:[...i.path,\"allOf\",1]}),a=u=>\"allOf\"in u&&Object.keys(u).length===1,l=[...a(o)?o.allOf:[o],...a(s)?s.allOf:[s]];r.allOf=l,e.intersections.push(l)},qd=(t,e,r,i)=>{let n=r,o=t._zod.def;n.type=\"array\";let s=e.target===\"draft-2020-12\"?\"prefixItems\":\"items\",a=e.target===\"draft-2020-12\"||e.target===\"openapi-3.0\"?\"items\":\"additionalItems\",l=o.items.map((y,_)=>Z(y,e,{...i,path:[...i.path,s,_]})),u=o.rest?Z(o.rest,e,{...i,path:[...i.path,a,...e.target===\"openapi-3.0\"?[o.items.length]:[]]}):null,c=o.items.length;for(;c>0;){let y=o.items[c-1];if(!(e.io===\"input\"?Qr(y)!==void 0:y._zod.optout===\"optional\"))break;c--}let d=o.items.length,f=!o.rest;e.target===\"draft-2020-12\"?(n.prefixItems=l,f?n.items=!1:u&&(n.items=u),c>0&&(n.minItems=c),f&&(n.maxItems=d)):e.target===\"openapi-3.0\"?(n.items={anyOf:l},u&&n.items.anyOf.push(u),c>0&&(n.minItems=c),f&&(n.maxItems=d)):(n.items=l,f?n.additionalItems=!1:u&&(n.additionalItems=u),c>0&&(n.minItems=c),f&&(n.maxItems=d));let{minimum:p,maximum:m}=ee(t);typeof p==\"number\"&&(n.minItems=p),typeof m==\"number\"&&(n.maxItems=m)};function kd(t,e,r){if(e.$ref){if(r.has(e))return e;r.add(e);let m=t.get(e)?.def;if(!m)return e;let y=kd(t,m,r);return y===m?e:y}for(let m of[\"anyOf\",\"oneOf\"]){let y=e[m];if(!Array.isArray(y))continue;let _=y.map(k=>kd(t,k,r));_.some((k,S)=>k!==y[S])&&(e={...e,[m]:_})}let i=Array.isArray(e.type)?e.type:[e.type],n=!i.includes(\"string\")&&i.some(m=>m===\"number\"||m===\"integer\"),o=e.enum??(e.const!==void 0?[e.const]:void 0);if(!n&&!o?.some(m=>typeof m==\"number\"))return e;let{minimum:s,maximum:a,exclusiveMinimum:l,exclusiveMaximum:u,multipleOf:c,format:d,id:f,...p}=e;return p.enum?p.enum=p.enum.map(m=>typeof m==\"number\"?String(m):m):typeof p.const==\"number\"&&(p.const=String(p.const)),n&&(p.type=\"string\",o||(p.pattern=(i.includes(\"number\")?lt:Pr).source)),p}var $d=new WeakMap;function zx(t){let e=new Map;for(let i of t.seen.values())i.def&&!e.has(i.schema)&&e.set(i.schema,i);let r=new Map;for(let i of $d.get(t)??[]){let n=t.seen.get(i),o=(n?.def??n?.schema)?.propertyNames;if(!o||o===!0||r.has(o))continue;let s=kd(e,o,new Set);s!==o&&r.set(o,s)}if(r.size)for(let i of t.seen.values())for(let n of[i.schema,i.def]){let o=n&&r.get(n.propertyNames);o&&(n.propertyNames=o)}}var Qd=(t,e,r,i)=>{let n=r,o=t._zod.def;n.type=\"object\";let s=o.keyType,a=ee(s).patterns;if(o.mode===\"loose\"&&a&&a.size>0){let c=Z(o.valueType,e,{...i,path:[...i.path,\"patternProperties\",\"*\"]});n.patternProperties={};for(let d of a)ne(n.patternProperties,Mg(d).source,c)}else{if(e.target===\"draft-07\"||e.target===\"draft-2020-12\"){n.propertyNames=Z(o.keyType,e,{...i,path:[...i.path,\"propertyNames\"]});let c=$d.get(e);c||(c=[],$d.set(e,c),e.deferred.push(()=>zx(e))),c.push(t)}n.additionalProperties=Z(o.valueType,e,{...i,path:[...i.path,\"additionalProperties\"]})}let l=s._zod.values,u=e.io===\"input\"&&Qr(o.valueType)!==void 0;if(l&&!o.partial&&!u){let c=[...l].filter(d=>typeof d==\"string\"||typeof d==\"number\");c.length>0&&(n.required=c.map(String))}},ef=(t,e,r,i)=>{let n=t._zod.def,o=Z(n.innerType,e,i),s=e.seen.get(t);e.target===\"openapi-3.0\"?(s.ref=n.innerType,r.nullable=!0):r.anyOf=[o,{type:\"null\"}]},tf=(t,e,r,i)=>{let n=t._zod.def;Z(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType},nf=Symbol();function Lg(t,e,r,i,n){let o=!1,s=JSON.stringify(t,(a,l)=>typeof l!=\"bigint\"?l:(o=!0,null));return o?(Q(e,r,i,n,\"BigInt defaults cannot be represented in JSON Schema\"),nf):JSON.parse(s)}var rf=(t,e,r,i)=>{let n=t._zod.def;Z(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType;let s=Lg(n.defaultValue,t,e,r,i);s!==nf&&(r.default=s)},of=(t,e,r,i)=>{let n=t._zod.def;Z(n.innerType,e,i);let o=e.seen.get(t);if(o.ref=n.innerType,e.io!==\"input\")return;let s=Lg(n.defaultValue,t,e,r,i);s!==nf&&(r._prefault=s)},sf=(t,e,r,i)=>{let n=t._zod.def;Z(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType;let s;try{s=n.catchValue(void 0)}catch{Q(t,e,r,i,\"Dynamic catch values are not supported in JSON Schema\");return}r.default=s},af=(t,e,r,i)=>{let n=t._zod.def,o=n.in._zod.traits.has(\"$ZodTransform\"),s=e.io===\"input\"?o?n.out:n.in:n.out;Z(s,e,i);let a=e.seen.get(t);a.ref=s},lf=(t,e,r,i)=>{let n=t._zod.def;Z(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType,r.readOnly=!0},uf=(t,e,r,i)=>{let n=t._zod.def;Z(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType},gs=(t,e,r,i)=>{let n=t._zod.def;Z(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType},cf=(t,e,r,i)=>{let n=t._zod.innerType;Z(n,e,i);let o=e.seen.get(t);o.ref=n},ms={string:Ed,number:Td,boolean:Ad,bigint:Id,symbol:Pd,null:Od,undefined:Nd,void:Rd,never:Dd,any:Cd,unknown:zd,date:Ud,enum:Md,literal:Ld,nan:jd,template_literal:Fd,file:Bd,success:Vd,custom:Zd,function:Wd,transform:Gd,map:Kd,set:Hd,array:Jd,object:Xd,union:hs,intersection:Yd,tuple:qd,record:Qd,nullable:ef,nonoptional:tf,default:rf,prefault:of,catch:sf,pipe:af,readonly:lf,promise:uf,optional:gs,lazy:cf};function ys(t,e){if(\"_idmap\"in t){let i=t,n=xt({...e,processors:ms}),o={};for(let l of i._idmap.entries()){let[u,c]=l;Z(c,n)}let s={},a={registry:i,uri:e?.uri,defs:o};n.external=a;for(let l of i._idmap.entries()){let[u,c]=l;kt(n,c),ne(s,u,$t(n,c))}if(Object.keys(o).length>0){let l=n.target===\"draft-2020-12\"?\"$defs\":\"definitions\";s.__shared={[l]:o}}return{schemas:s}}let r=xt({...e,processors:ms});return Z(t,r),kt(r,t),$t(r,t)}var vs=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let r=e?.target??\"draft-2020-12\";r===\"draft-4\"&&(r=\"draft-04\"),r===\"draft-7\"&&(r=\"draft-07\"),this.ctx=xt({processors:ms,target:r,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,r={path:[],schemaPath:[]}){return Z(e,this.ctx,r)}emit(e,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),this.ctx.sharedDefsExtractedFor=void 0,this.ctx.sharedEmitDoneFor=void 0,kt(this.ctx,e);let i=$t(this.ctx,e),{\"~standard\":n,...o}=i;return o}};var jg={};var nr={};nt(nr,{ZodAny:()=>Nf,ZodArray:()=>zf,ZodBase64:()=>Us,ZodBase64URL:()=>Ms,ZodBigInt:()=>er,ZodBigIntFormat:()=>Fs,ZodBoolean:()=>Qn,ZodCIDRv4:()=>Cs,ZodCIDRv6:()=>zs,ZodCUID:()=>As,ZodCUID2:()=>Is,ZodCatch:()=>rp,ZodCodec:()=>ui,ZodCreditCard:()=>kf,ZodCustom:()=>ci,ZodCustomStringFormat:()=>on,ZodDate:()=>ri,ZodDefault:()=>Yf,ZodDiscriminatedUnion:()=>Mf,ZodE164:()=>Ls,ZodEmail:()=>ks,ZodEmoji:()=>Es,ZodEnum:()=>Xn,ZodExactOptional:()=>Ws,ZodFile:()=>Kf,ZodFunction:()=>pp,ZodGUID:()=>$s,ZodIBAN:()=>$f,ZodIPv4:()=>Rs,ZodIPv6:()=>Ds,ZodISODate:()=>Tt,ZodISODateTime:()=>Et,ZodISODuration:()=>It,ZodISOTime:()=>At,ZodInstanceOf:()=>gp,ZodIntersection:()=>Lf,ZodJWT:()=>js,ZodKSUID:()=>Ns,ZodLazy:()=>cp,ZodLiteral:()=>Gf,ZodMAC:()=>xf,ZodMap:()=>Zf,ZodNaN:()=>op,ZodNanoID:()=>Ts,ZodNever:()=>Df,ZodNonOptional:()=>Gs,ZodNull:()=>Pf,ZodNullable:()=>Xf,ZodNumber:()=>qn,ZodNumberFormat:()=>sn,ZodObject:()=>oi,ZodOptional:()=>ai,ZodPipe:()=>li,ZodPrefault:()=>Qf,ZodPreprocess:()=>sp,ZodPromise:()=>fp,ZodReadonly:()=>ap,ZodRecord:()=>Jn,ZodSet:()=>Wf,ZodString:()=>Yn,ZodStringFormat:()=>K,ZodSuccess:()=>np,ZodSymbol:()=>Af,ZodTemplateLiteral:()=>up,ZodTransform:()=>Hf,ZodTuple:()=>Ff,ZodType:()=>C,ZodULID:()=>Ps,ZodURL:()=>ni,ZodUUID:()=>He,ZodUndefined:()=>If,ZodUnion:()=>si,ZodUnknown:()=>Rf,ZodVoid:()=>Cf,ZodXID:()=>Os,ZodXor:()=>Uf,_ZodString:()=>xs,_default:()=>qf,_function:()=>qy,any:()=>Iy,array:()=>ii,base64:()=>uy,base64url:()=>cy,bigint:()=>ky,boolean:()=>Tf,catch:()=>ip,check:()=>Qy,cidrv4:()=>ay,cidrv6:()=>ly,codec:()=>Hy,creditCard:()=>fy,cuid:()=>Qg,cuid2:()=>ey,currencyCode:()=>vy,custom:()=>ev,date:()=>Oy,describe:()=>tv,discriminatedUnion:()=>Uy,e164:()=>dy,email:()=>Vg,emoji:()=>Yg,enum:()=>Vs,exactOptional:()=>Jf,file:()=>Zy,float32:()=>wy,float64:()=>Sy,function:()=>qy,guid:()=>Zg,hash:()=>by,hex:()=>yy,hostname:()=>gy,httpUrl:()=>Xg,iban:()=>py,instanceof:()=>rv,int:()=>Ss,int32:()=>_y,int64:()=>$y,intersection:()=>jf,invertCodec:()=>Jy,ipv4:()=>iy,ipv6:()=>sy,json:()=>ov,jwt:()=>my,keyof:()=>Ny,ksuid:()=>ry,lazy:()=>dp,literal:()=>Vy,looseObject:()=>Cy,looseRecord:()=>Ly,mac:()=>oy,map:()=>jy,meta:()=>nv,nan:()=>Ky,nanoid:()=>qg,nativeEnum:()=>By,never:()=>Bs,nonoptional:()=>tp,null:()=>Of,nullable:()=>ti,nullish:()=>Wy,number:()=>Ef,object:()=>Ry,optional:()=>nn,partialRecord:()=>My,pipe:()=>_s,prefault:()=>ep,preprocess:()=>sv,promise:()=>Yy,readonly:()=>lp,record:()=>Vf,refine:()=>mp,set:()=>Fy,strictObject:()=>Dy,string:()=>ei,stringFormat:()=>hy,stringbool:()=>iv,success:()=>Gy,superRefine:()=>hp,symbol:()=>Ty,templateLiteral:()=>Xy,transform:()=>Zs,tuple:()=>Bf,uint32:()=>xy,uint64:()=>Ey,ulid:()=>ty,undefined:()=>Ay,union:()=>tr,unknown:()=>tn,url:()=>Jg,uuid:()=>Wg,uuidv4:()=>Gg,uuidv6:()=>Kg,uuidv7:()=>Hg,void:()=>Py,xid:()=>ny,xor:()=>zy});var bs={};nt(bs,{endsWith:()=>Mn,gt:()=>Ge,gte:()=>$e,includes:()=>zn,length:()=>Qt,lowercase:()=>Dn,lt:()=>We,lte:()=>ke,maxLength:()=>qt,maxSize:()=>_t,mime:()=>jn,minLength:()=>ut,minSize:()=>Ke,multipleOf:()=>St,negative:()=>cs,nonnegative:()=>fs,nonpositive:()=>ds,normalize:()=>Fn,overwrite:()=>Ue,positive:()=>us,properties:()=>Ln,property:()=>ps,regex:()=>Rn,size:()=>Yt,slugify:()=>Wn,startsWith:()=>Un,toLowerCase:()=>Vn,toUpperCase:()=>Zn,trim:()=>Bn,uppercase:()=>Cn});var Fg=new WeakSet([Object.prototype,Error.prototype]);function ws(t,e,r){Object.defineProperty(t,e,{configurable:!0,enumerable:!1,get(){let i=r(this);return Object.defineProperty(this,e,{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,e,{value:i,configurable:!0,writable:!0})}})}var Bg=(t,e)=>{ul.init(t,e),t.name=\"ZodError\";let r=Object.getPrototypeOf(t);Fg.has(r)||(Fg.add(r),ws(r,\"format\",i=>n=>Er(i,n)),ws(r,\"flatten\",i=>n=>$r(i,n)),ws(r,\"addIssue\",i=>n=>{i.issues.push(n),i.message=JSON.stringify(i.issues,bn,2)}),ws(r,\"addIssues\",i=>n=>{i.issues.push(...n),i.message=JSON.stringify(i.issues,bn,2)}),Object.defineProperty(r,\"isEmpty\",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},Mx=h(\"ZodError\",Bg),xe=h(\"ZodError\",Bg,void 0,{Parent:Error});var df=kn(xe),ff=$n(xe),pf=En(xe),mf=Tn(xe),hf=Hi(xe),gf=Ji(xe),yf=Xi(xe),vf=Yi(xe),bf=qi(xe),wf=Qi(xe),Sf=eo(xe),_f=to(xe);function jx(){te.localeError||q(Do())}function rn(){te.memoizer||q({memoizer:Zr()})}var C=h(\"ZodType\",(t,e)=>(jx(),R.init(t,e),t.def=e,t.type=e.type,t),{check(...t){let e=this.def;return this.clone(v.mergeDefs(e,{checks:[...e.checks??[],...t.map(r=>typeof r==\"function\"?{_zod:{check:r,def:{check:\"custom\"},onattach:[]}}:r)]}),{parent:!0})},with(...t){return this.check(...t)},clone(t,e){return B(this,t,e)},brand(){return this},register(t,e){return t.add(this,e),this},refine(t,e){return this.check(mp(t,e))},superRefine(t,e){return this.check(hp(t,e))},overwrite(t){return this.check(Ue(t))},optional(){return nn(this)},exactOptional(){return Jf(this)},nullable(){return ti(this)},nullish(){return nn(ti(this))},nonoptional(t){return tp(this,t)},array(){return ii(this)},or(t){return tr([this,t])},and(t){return jf(this,t)},transform(t){return _s(this,Zs(t))},default(t){return qf(this,t)},prefault(t){return ep(this,t)},catch(t){return ip(this,t)},pipe(t){return _s(this,t)},readonly(){return lp(this)},describe(t){let e=this.clone();return re.add(e,{description:t}),e},meta(...t){if(t.length===0)return re.get(this);let e=this.clone();return re.add(e,t[0]),e},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(t,...e){return e.length===0?t(this):t(this,...e)},get\"~standard\"(){return v.hide(this,\"~standard\",{...po(this),jsonSchema:{input:Gn(this,\"input\"),output:Gn(this,\"output\")}})},set\"~standard\"(t){v.own(this,\"~standard\",t)},parse:function t(e,r){return df(this,e,r,{callee:t})},parseAsync:async function t(e,r){return await ff(this,e,r,{callee:t})},safeParse(t,e){return pf(this,t,e)},async safeParseAsync(t,e){return mf(this,t,e)},get spa(){return this?.safeParseAsync},set spa(t){v.own(this,\"spa\",t)},validate(t,e){return Tr(this,t,e)},validateAsync(t,e){return Ar(this,t,e)},encode:function t(e,r){return hf(this,e,r,{callee:t})},decode:function t(e,r){return gf(this,e,r,{callee:t})},encodeAsync:async function t(e,r){return await yf(this,e,r,{callee:t})},decodeAsync:async function t(e,r){return await vf(this,e,r,{callee:t})},safeEncode(t,e){return bf(this,t,e)},safeDecode(t,e){return wf(this,t,e)},async safeEncodeAsync(t,e){return Sf(this,t,e)},async safeDecodeAsync(t,e){return _f(this,t,e)},toJSONSchema(t){return xd(this,{})(t)},get description(){return re.get(this)?.description},get _def(){return this._zod.def}}),xs=h(\"_ZodString\",(t,e)=>{Kt.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Ed(t,r,i,n)},v.derived({format:t=>ee(t).format??null,minLength:t=>ee(t).minimum??null,maxLength:t=>ee(t).maximum??null},{regex(...t){return this.check(Rn(...t))},includes(...t){return this.check(zn(...t))},startsWith(...t){return this.check(Un(...t))},endsWith(...t){return this.check(Mn(...t))},min(...t){return this.check(ut(...t))},max(...t){return this.check(qt(...t))},length(...t){return this.check(Qt(...t))},nonempty(...t){return this.check(ut(1,...t))},lowercase(t){return this.check(Dn(t))},uppercase(t){return this.check(Cn(t))},trim(){return this.check(Bn())},normalize(...t){return this.check(Fn(...t))},toLowerCase(){return this.check(Vn())},toUpperCase(){return this.check(Zn())},slugify(){return this.check(Wn())}})),Yn=h(\"ZodString\",(t,e)=>{Kt.init(t,e),xs.init(t,e)},{email(t){return this.check(Bo(ks,t))},url(t){return this.check(Kr(ni,t))},jwt(t){return this.check(ls(js,t))},emoji(t){return this.check(Ho(Es,t))},guid(t){return this.check(Vo($s,t))},uuid(t){return this.check(Zo(He,t))},uuidv4(t){return this.check(Wo(He,t))},uuidv6(t){return this.check(Go(He,t))},uuidv7(t){return this.check(Ko(He,t))},nanoid(t){return this.check(Jo(Ts,t))},cuid(t){return this.check(Xo(As,t))},cuid2(t){return this.check(Yo(Is,t))},ulid(t){return this.check(qo(Ps,t))},base64(t){return this.check(os(Us,t))},base64url(t){return this.check(ss(Ms,t))},xid(t){return this.check(Qo(Os,t))},ksuid(t){return this.check(es(Ns,t))},ipv4(t){return this.check(ts(Rs,t))},ipv6(t){return this.check(ns(Ds,t))},cidrv4(t){return this.check(rs(Cs,t))},cidrv6(t){return this.check(is(zs,t))},e164(t){return this.check(as(Ls,t))},datetime(t){return this.check(Hr(Et,t))},date(t){return this.check(Jr(Tt,t))},time(t){return this.check(Xr(At,t))},duration(t){return this.check(Yr(It,t))}});function ei(t){return Lc(Yn,t)}var K=h(\"ZodStringFormat\",(t,e)=>{V.init(t,e),xs.init(t,e)}),Et=h(\"ZodISODateTime\",(t,e)=>{Iu.init(t,e),K.init(t,e)}),Tt=h(\"ZodISODate\",(t,e)=>{Pu.init(t,e),K.init(t,e)}),At=h(\"ZodISOTime\",(t,e)=>{Ou.init(t,e),K.init(t,e)}),It=h(\"ZodISODuration\",(t,e)=>{Nu.init(t,e),K.init(t,e)}),ks=h(\"ZodEmail\",(t,e)=>{vu.init(t,e),K.init(t,e)});function Vg(t){return Bo(ks,t)}var $s=h(\"ZodGUID\",(t,e)=>{gu.init(t,e),K.init(t,e)});function Zg(t){return Vo($s,t)}var He=h(\"ZodUUID\",(t,e)=>{yu.init(t,e),K.init(t,e)});function Wg(t){return Zo(He,t)}function Gg(t){return Wo(He,t)}function Kg(t){return Go(He,t)}function Hg(t){return Ko(He,t)}var ni=h(\"ZodURL\",(t,e)=>{Su.init(t,e),K.init(t,e)});function Jg(t){return Kr(ni,t)}function Xg(t){return Kr(ni,{protocol:Ir,hostname:Nl,...v.normalizeParams(t)})}var Es=h(\"ZodEmoji\",(t,e)=>{_u.init(t,e),K.init(t,e)});function Yg(t){return Ho(Es,t)}var Ts=h(\"ZodNanoID\",(t,e)=>{xu.init(t,e),K.init(t,e)});function qg(t){return Jo(Ts,t)}var As=h(\"ZodCUID\",(t,e)=>{ku.init(t,e),K.init(t,e)});function Qg(t){return Xo(As,t)}var Is=h(\"ZodCUID2\",(t,e)=>{$u.init(t,e),K.init(t,e)});function ey(t){return Yo(Is,t)}var Ps=h(\"ZodULID\",(t,e)=>{Eu.init(t,e),K.init(t,e)});function ty(t){return qo(Ps,t)}var Os=h(\"ZodXID\",(t,e)=>{Tu.init(t,e),K.init(t,e)});function ny(t){return Qo(Os,t)}var Ns=h(\"ZodKSUID\",(t,e)=>{Au.init(t,e),K.init(t,e)});function ry(t){return es(Ns,t)}var Rs=h(\"ZodIPv4\",(t,e)=>{Ru.init(t,e),K.init(t,e)});function iy(t){return ts(Rs,t)}var xf=h(\"ZodMAC\",(t,e)=>{Cu.init(t,e),K.init(t,e)});function oy(t){return Fc(xf,t)}var Ds=h(\"ZodIPv6\",(t,e)=>{Du.init(t,e),K.init(t,e)});function sy(t){return ns(Ds,t)}var Cs=h(\"ZodCIDRv4\",(t,e)=>{zu.init(t,e),K.init(t,e)});function ay(t){return rs(Cs,t)}var zs=h(\"ZodCIDRv6\",(t,e)=>{Uu.init(t,e),K.init(t,e)});function ly(t){return is(zs,t)}var Us=h(\"ZodBase64\",(t,e)=>{Mu.init(t,e),K.init(t,e)});function uy(t){return os(Us,t)}var Ms=h(\"ZodBase64URL\",(t,e)=>{Lu.init(t,e),K.init(t,e)});function cy(t){return ss(Ms,t)}var Ls=h(\"ZodE164\",(t,e)=>{ju.init(t,e),K.init(t,e)});function dy(t){return as(Ls,t)}var kf=h(\"ZodCreditCard\",(t,e)=>{Fu.init(t,e),K.init(t,e)});function fy(t){return Bc(kf,t)}var $f=h(\"ZodIBAN\",(t,e)=>{Bu.init(t,e),K.init(t,e)});function py(t){return Vc($f,t)}var js=h(\"ZodJWT\",(t,e)=>{Vu.init(t,e),K.init(t,e)});function my(t){return ls(js,t)}var on=h(\"ZodCustomStringFormat\",(t,e)=>{Zu.init(t,e),K.init(t,e)});function hy(t,e,r={}){return en(on,t,e,r)}function gy(t){return en(on,\"hostname\",Ol,t)}function yy(t){return en(on,\"hex\",Gl,t)}function vy(t){return en(on,\"currency_code\",Dl,t)}function by(t,e){let r=e?.enc??\"hex\",i=`${t}_${r}`,n=Oe[i];if(!n)throw new Error(`Unrecognized hash format: ${i}`);return en(on,i,n,e)}var qn=h(\"ZodNumber\",(t,e)=>{xo.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Td(t,r,i,n),t.isFinite=!0},v.derived({minValue:t=>{let{minimum:e,exclusiveMinimum:r}=ee(t);return Math.max(e??Number.NEGATIVE_INFINITY,r??Number.NEGATIVE_INFINITY)},maxValue:t=>{let{maximum:e,exclusiveMaximum:r}=ee(t);return Math.min(e??Number.POSITIVE_INFINITY,r??Number.POSITIVE_INFINITY)},isInt:t=>{let{isInt:e,multipleOf:r}=ee(t);return!!e||!!r?.some(Number.isSafeInteger)},format:t=>ee(t).format??null},{gt(t,e){return this.check(Ge(t,e))},gte(t,e){return this.check($e(t,e))},min(t,e){return this.check($e(t,e))},lt(t,e){return this.check(We(t,e))},lte(t,e){return this.check(ke(t,e))},max(t,e){return this.check(ke(t,e))},int(t){return this.check(Ss(t))},safe(t){return this.check(Ss(t))},positive(t){return this.check(Ge(0,t))},nonnegative(t){return this.check($e(0,t))},negative(t){return this.check(We(0,t))},nonpositive(t){return this.check(ke(0,t))},multipleOf(t,e){return this.check(St(t,e))},step(t,e){return this.check(St(t,e))},finite(){return this}}));function Ef(t){return Wc(qn,t)}var sn=h(\"ZodNumberFormat\",(t,e)=>{Wu.init(t,e),qn.init(t,e)});function Ss(t){return Kc(sn,t)}function wy(t){return Hc(sn,t)}function Sy(t){return Jc(sn,t)}function _y(t){return Xc(sn,t)}function xy(t){return Yc(sn,t)}var Qn=h(\"ZodBoolean\",(t,e)=>{Mr.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Ad(t,r,i,n)});function Tf(t){return qc(Qn,t)}var er=h(\"ZodBigInt\",(t,e)=>{ko.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Id(t,r,i,n)},v.derived({minValue:t=>ee(t).minimum??null,maxValue:t=>ee(t).maximum??null,format:t=>ee(t).format??null},{gte(t,e){return this.check($e(t,e))},min(t,e){return this.check($e(t,e))},gt(t,e){return this.check(Ge(t,e))},lt(t,e){return this.check(We(t,e))},lte(t,e){return this.check(ke(t,e))},max(t,e){return this.check(ke(t,e))},positive(t){return this.check(Ge(BigInt(0),t))},negative(t){return this.check(We(BigInt(0),t))},nonpositive(t){return this.check(ke(BigInt(0),t))},nonnegative(t){return this.check($e(BigInt(0),t))},multipleOf(t,e){return this.check(St(t,e))}}));function ky(t){return ed(er,t)}var Fs=h(\"ZodBigIntFormat\",(t,e)=>{Gu.init(t,e),er.init(t,e)});function $y(t){return nd(Fs,t)}function Ey(t){return rd(Fs,t)}var Af=h(\"ZodSymbol\",(t,e)=>{Ku.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Pd(t,r,i,n)});function Ty(t){return id(Af,t)}var If=h(\"ZodUndefined\",(t,e)=>{Hu.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Nd(t,r,i,n)});function Ay(t){return od(If,t)}var Pf=h(\"ZodNull\",(t,e)=>{Ju.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Od(t,r,i,n)});function Of(t){return sd(Pf,t)}var Nf=h(\"ZodAny\",(t,e)=>{Xu.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Cd(t,r,i,n)});function Iy(){return ad(Nf)}var Rf=h(\"ZodUnknown\",(t,e)=>{Yu.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>zd(t,r,i,n)});function tn(){return ld(Rf)}var Df=h(\"ZodNever\",(t,e)=>{qu.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Dd(t,r,i,n)});function Bs(t){return ud(Df,t)}var Cf=h(\"ZodVoid\",(t,e)=>{Qu.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Rd(t,r,i,n)});function Py(t){return cd(Cf,t)}var ri=h(\"ZodDate\",(t,e)=>{ec.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Ud(t,r,i,n),t.min=(r,i)=>t.check($e(r,i)),t.max=(r,i)=>t.check(ke(r,i))},v.derived({minDate:t=>{let{minimum:e}=ee(t);return e?new Date(e):null},maxDate:t=>{let{maximum:e}=ee(t);return e?new Date(e):null}},{}));function Oy(t){return dd(ri,t)}var zf=h(\"ZodArray\",(t,e)=>{rn(),nc.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Jd(t,r,i,n),t.element=e.element},{min(t,e){return this.check(ut(t,e))},nonempty(t){return this.check(ut(1,t))},max(t,e){return this.check(qt(t,e))},length(t,e){return this.check(Qt(t,e))},unwrap(){return this.element}});function ii(t,e){return md(zf,t,e)}function Ny(t){let e=t._zod.def.shape;return Vs(Object.keys(e))}var oi=h(\"ZodObject\",(t,e)=>{rn(),rc.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Xd(t,r,i,n),v.installLazyProp(t,\"shape\",r=>r._zod.def.shape,!1)},{keyof(){return Vs(Object.keys(this._zod.def.shape))},catchall(t){return this.clone(v.mergeDefs(this._zod.def,{catchall:t}))},passthrough(){return this.clone(v.mergeDefs(this._zod.def,{catchall:tn()}))},loose(){return this.clone(v.mergeDefs(this._zod.def,{catchall:tn()}))},strict(){return this.clone(v.mergeDefs(this._zod.def,{catchall:Bs()}))},strip(){return this.clone(v.mergeDefs(this._zod.def,{catchall:void 0}))},extend(t){return v.extend(this,t)},safeExtend(t){return v.safeExtend(this,t)},merge(t){return v.merge(this,t)},pick(t){return v.pick(this,t)},omit(t){return v.omit(this,t)},partial(...t){return v.partial(ai,this,t[0])},exactPartial(...t){return v.partial(Ws,this,t[0],\"exactPartial\")},required(...t){return v.required(Gs,this,t[0])}});function Ry(t,e){let r={type:\"object\",shape:t??{},...v.normalizeParams(e)};return new oi(r)}function Dy(t,e){return new oi({type:\"object\",shape:t,catchall:Bs(),...v.normalizeParams(e)})}function Cy(t,e){return new oi({type:\"object\",shape:t,catchall:tn(),...v.normalizeParams(e)})}var si=h(\"ZodUnion\",(t,e)=>{Lr.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>hs(t,r,i,n),t.options=e.options});function tr(t,e){return new si({type:\"union\",options:t,...v.normalizeParams(e)})}var Uf=h(\"ZodXor\",(t,e)=>{si.init(t,e),ic.init(t,e),t._zod.processJSONSchema=(r,i,n)=>hs(t,r,i,n),t.options=e.options});function zy(t,e){return new Uf({type:\"union\",options:t,inclusive:!1,...v.normalizeParams(e)})}var Mf=h(\"ZodDiscriminatedUnion\",(t,e)=>{si.init(t,e),sc.init(t,e)});function Uy(t,e,r){return new Mf({type:\"union\",options:e,discriminator:t,...v.normalizeParams(r)})}var Lf=h(\"ZodIntersection\",(t,e)=>{ac.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Yd(t,r,i,n)});function jf(t,e){return new Lf({type:\"intersection\",left:t,right:e})}var Ff=h(\"ZodTuple\",(t,e)=>{rn(),$o.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>qd(t,r,i,n)},{rest(t){return this.clone({...this._zod.def,rest:t})},partial(){let t=this._zod.def;if(t.checks?.length)throw new Error(\".partial() cannot be used on tuple schemas containing refinements\");return this.clone({...t,items:t.items.map(e=>new ai({type:\"optional\",innerType:e}))})}});function Bf(t,e,r){let i=e instanceof R,n=i?r:e,o=i?e:null;return new Ff({type:\"tuple\",items:t,rest:o,...v.normalizeParams(n)})}var Jn=h(\"ZodRecord\",(t,e)=>{rn(),lc.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Qd(t,r,i,n),t.keyType=e.keyType,t.valueType=e.valueType});function Vf(t,e,r){return!e||!e._zod?new Jn({type:\"record\",keyType:ei(),valueType:t,...v.normalizeParams(e)}):new Jn({type:\"record\",keyType:t,valueType:e,...v.normalizeParams(r)})}function My(t,e,r){return new Jn({type:\"record\",keyType:t,valueType:e,...v.normalizeParams(r),partial:!0})}function Ly(t,e,r){return new Jn({type:\"record\",keyType:t,valueType:e,mode:\"loose\",...v.normalizeParams(r)})}var Zf=h(\"ZodMap\",(t,e)=>{rn(),uc.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Kd(t,r,i,n),t.keyType=e.keyType,t.valueType=e.valueType,t.min=(...r)=>t.check(Ke(...r)),t.nonempty=r=>t.check(Ke(1,r)),t.max=(...r)=>t.check(_t(...r)),t.size=(...r)=>t.check(Yt(...r))});function jy(t,e,r){return new Zf({type:\"map\",keyType:t,valueType:e,...v.normalizeParams(r)})}var Wf=h(\"ZodSet\",(t,e)=>{rn(),cc.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Hd(t,r,i,n),t.min=(...r)=>t.check(Ke(...r)),t.nonempty=r=>t.check(Ke(1,r)),t.max=(...r)=>t.check(_t(...r)),t.size=(...r)=>t.check(Yt(...r))});function Fy(t,e){return new Wf({type:\"set\",valueType:t,...v.normalizeParams(e)})}var Xn=h(\"ZodEnum\",(t,e)=>{dc.init(t,e),C.init(t,e),t._zod.processJSONSchema=(i,n,o)=>Md(t,i,n,o),t.enum=e.entries,t.options=[...t._zod.values];let r=new Set(Object.keys(e.entries));t.extract=(i,n)=>{let o={};for(let s of i)if(r.has(s))o[s]=e.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Xn({...e,checks:[],...v.normalizeParams(n),entries:o})},t.exclude=(i,n)=>{let o={...e.entries};for(let s of i)if(r.has(s))delete o[s];else throw new Error(`Key ${s} not found in enum`);return new Xn({...e,checks:[],...v.normalizeParams(n),entries:o})}});function Vs(t,e){let r=Array.isArray(t)?Object.fromEntries(t.map(i=>[i,i])):t;return new Xn({type:\"enum\",entries:r,...v.normalizeParams(e)})}function By(t,e){return new Xn({type:\"enum\",entries:t,...v.normalizeParams(e)})}var Gf=h(\"ZodLiteral\",(t,e)=>{fc.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Ld(t,r,i,n),t.values=new Set(e.values),Object.defineProperty(t,\"value\",{get(){if(e.values.length>1)throw new Error(\"This schema contains multiple valid literal values. Use `.values` instead.\");return e.values[0]}})});function Vy(t,e){return new Gf({type:\"literal\",values:Array.isArray(t)?t:[t],...v.normalizeParams(e)})}var Kf=h(\"ZodFile\",(t,e)=>{pc.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Bd(t,r,i,n),t.min=(r,i)=>t.check(Ke(r,i)),t.max=(r,i)=>t.check(_t(r,i)),t.mime=(r,i)=>t.check(jn(Array.isArray(r)?r:[r],i))});function Zy(t){return hd(Kf,t)}var Hf=h(\"ZodTransform\",(t,e)=>{rn(),mc.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Gd(t,r,i,n),t._zod.parse=(r,i)=>{if(i.direction===\"backward\")throw new bt(t.constructor.name);r.addIssue=o=>{if(typeof o==\"string\")r.issues.push(v.issue(o,r.value,e));else{let s=o;s.fatal&&(s.continue=!1),s.code??(s.code=\"custom\"),\"input\"in s||(s.input=r.value),s.inst??(s.inst=t),r.issues.push(v.issue(s))}};let n=e.transform(r.value,r);return n instanceof Promise?n.then(o=>(r.value=o,r)):(r.value=n,r)}});function Zs(t){return new Hf({type:\"transform\",transform:t})}var ai=h(\"ZodOptional\",(t,e)=>{Eo.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>gs(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function nn(t){return new ai({type:\"optional\",innerType:t})}var Ws=h(\"ZodExactOptional\",(t,e)=>{hc.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>gs(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function Jf(t){return new Ws({type:\"optional\",innerType:t})}var Xf=h(\"ZodNullable\",(t,e)=>{gc.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>ef(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function ti(t){return new Xf({type:\"nullable\",innerType:t})}function Wy(t){return nn(ti(t))}var Yf=h(\"ZodDefault\",(t,e)=>{yc.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>rf(t,r,i,n),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function qf(t,e){return new Yf({type:\"default\",innerType:t,get defaultValue(){return typeof e==\"function\"?e():v.shallowClone(e)}})}var Qf=h(\"ZodPrefault\",(t,e)=>{vc.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>of(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function ep(t,e){return new Qf({type:\"prefault\",innerType:t,get defaultValue(){return typeof e==\"function\"?e():v.shallowClone(e)}})}var Gs=h(\"ZodNonOptional\",(t,e)=>{bc.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>tf(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function tp(t,e){return new Gs({type:\"nonoptional\",innerType:t,...v.normalizeParams(e)})}var np=h(\"ZodSuccess\",(t,e)=>{wc.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Vd(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function Gy(t){return new np({type:\"success\",innerType:t})}var rp=h(\"ZodCatch\",(t,e)=>{Sc.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>sf(t,r,i,n),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function ip(t,e){return new rp({type:\"catch\",innerType:t,catchValue:typeof e==\"function\"?e:v.constantCatch(e)})}var op=h(\"ZodNaN\",(t,e)=>{_c.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>jd(t,r,i,n)});function Ky(t){return pd(op,t)}var li=h(\"ZodPipe\",(t,e)=>{To.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>af(t,r,i,n),t.in=e.in,t.out=e.out});function _s(t,e){return new li({type:\"pipe\",in:t,out:e})}var ui=h(\"ZodCodec\",(t,e)=>{li.init(t,e),jr.init(t,e)});function Hy(t,e,r){return new ui({type:\"pipe\",in:t,out:e,transform:r.decode,reverseTransform:r.encode})}function Jy(t){let e=t._zod.def;return new ui({type:\"pipe\",in:e.out,out:e.in,transform:e.reverseTransform,reverseTransform:e.transform})}var sp=h(\"ZodPreprocess\",(t,e)=>{li.init(t,e),xc.init(t,e)}),ap=h(\"ZodReadonly\",(t,e)=>{kc.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>lf(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function lp(t){return new ap({type:\"readonly\",innerType:t})}var up=h(\"ZodTemplateLiteral\",(t,e)=>{$c.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Fd(t,r,i,n)});function Xy(t,e){return new up({type:\"template_literal\",parts:t,...v.normalizeParams(e)})}var cp=h(\"ZodLazy\",(t,e)=>{Fr.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>cf(t,r,i,n),t.unwrap=()=>t._zod.def.getter()});function dp(t){return new cp({type:\"lazy\",getter:t})}var fp=h(\"ZodPromise\",(t,e)=>{Tc.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>uf(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function Yy(t){return new fp({type:\"promise\",innerType:t})}var pp=h(\"ZodFunction\",(t,e)=>{Ec.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Wd(t,r,i,n)});function qy(t){return new pp({type:\"function\",input:Array.isArray(t?.input)?Bf(t?.input):t?.input??ii(tn()),output:t?.output??tn()})}var ci=h(\"ZodCustom\",(t,e)=>{Ac.init(t,e),C.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Zd(t,r,i,n)});function Qy(t){let e=new H({check:\"custom\"});return e._zod.check=t,e}function ev(t,e){return gd(ci,t??(()=>!0),e)}function mp(t,e={}){return yd(ci,t,e)}function hp(t,e){return vd(t,e)}var tv=bd,nv=wd,gp=h(\"ZodInstanceOf\",(t,e)=>{ci.init(t,e)},{properties(t,e){return this.check(Ln(t,e))}});function rv(t,e={}){let r=new gp({type:\"custom\",check:\"custom\",fn:i=>i instanceof t,abort:!0,...v.normalizeParams(e)});return r._zod.bag.Class=t,r._zod.check=i=>{i.value instanceof t||i.issues.push({code:\"invalid_type\",expected:t.name,input:i.value,inst:r,path:[...r._zod.def.path??[]]})},r}var iv=(...t)=>Sd({Codec:ui,Boolean:Qn,String:Yn},...t);function ov(t){let e=dp(()=>tr([ei(t),Ef(),Tf(),Of(),ii(e),Vf(ei(),e)]));return e}function sv(t,e){return new sp({type:\"pipe\",in:Zs(t),out:e})}var Fx={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 Bx(t){q({customError:t})}function Vx(){return q().customError}var yp;yp||(yp={});var di={};nt(di,{ZodISODate:()=>Tt,ZodISODateTime:()=>Et,ZodISODuration:()=>It,ZodISOTime:()=>At,date:()=>Wx,datetime:()=>Zx,duration:()=>Kx,time:()=>Gx});function Zx(t){return Hr(Et,t)}function Wx(t){return Jr(Tt,t)}function Gx(t){return Xr(At,t)}function Kx(t){return Yr(It,t)}var E={...nr,...bs,iso:di},Hx=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 Jx(t,e){let r=t.$schema;return r===\"https://json-schema.org/draft/2020-12/schema\"?\"draft-2020-12\":r===\"http://json-schema.org/draft-07/schema#\"?\"draft-7\":r===\"http://json-schema.org/draft-04/schema#\"?\"draft-4\":e??\"draft-2020-12\"}function av(t,e){return t.map((r,i)=>i<e?r:r.optional())}function Xx(t){return t.replace(/~1/g,\"/\").replace(/~0/g,\"~\")}function Yx(t,e){if(!t.startsWith(\"#\"))throw new Error(\"External $ref is not supported, only local refs (#/...) are allowed\");let r=t.slice(1).split(\"/\").filter(Boolean);if(r.length===0)return e.rootSchema;let i=e.version===\"draft-2020-12\"?\"$defs\":\"definitions\";if(r[0]===i){let n=r[1]===void 0?void 0:Xx(r[1]);if(!n||!e.defs[n])throw new Error(`Reference not found: ${t}`);return e.defs[n]}throw new Error(`Reference not found: ${t}`)}function qx(t,e){return E.transform(i=>i).check(i=>{let n=i.value;if(typeof n!=\"object\"||n===null||Array.isArray(n))return;let o=Object.getOwnPropertyNames(n);if(e.minProperties!==void 0&&o.length<e.minProperties&&i.issues.push({origin:\"object\",code:\"too_small\",minimum:e.minProperties,inclusive:!0,message:`Too small: expected object to have >=${e.minProperties} properties`,input:n,inst:t,continue:!0}),e.maxProperties!==void 0&&o.length>e.maxProperties&&i.issues.push({origin:\"object\",code:\"too_big\",maximum:e.maxProperties,inclusive:!0,message:`Too big: expected object to have <=${e.maxProperties} properties`,input:n,inst:t,continue:!0}),e.keySchema)for(let s of o){let a=e.keySchema.safeParse(s);a.success||i.issues.push({code:\"invalid_key\",origin:\"record\",issues:a.error.issues,input:s,path:[s],continue:!0})}}).pipe(t)}function vp(t,e){if(t===null)return\"z\";let r=typeof t;if(r!==\"object\"){if(r===\"number\"&&Number.isNaN(t))return null;let i=String(t);return`${r[0]}${i.length}:${i}`}if(e.has(t))return null;e.add(t);try{if(Array.isArray(t)){let o=[];for(let s of t){let a=vp(s,e);if(a===null)return null;o.push(a)}return`a${o.length}:[${o.join(\",\")}]`}let i=Object.keys(t).sort(),n=[];for(let o of i){let s=vp(t[o],e);if(s===null)return null;n.push(`${o.length}:${o}=${s}`)}return`o${n.length}:{${n.join(\",\")}}`}finally{e.delete(t)}}var Qx=new Set([\"items\",\"prefixItems\",\"additionalItems\",\"additionalProperties\",\"contains\",\"propertyNames\",\"not\",\"if\",\"then\",\"else\",\"allOf\",\"anyOf\",\"oneOf\",\"unevaluatedItems\",\"unevaluatedProperties\",\"contentSchema\"]),ek=new Set([\"properties\",\"patternProperties\",\"dependentSchemas\",\"dependencies\",\"$defs\",\"definitions\"]);function fi(t){return typeof t!=\"object\"||t===null?!1:Array.isArray(t)?t.some(fi):typeof t.$ref==\"string\"?!0:Object.entries(t).some(([e,r])=>Qx.has(e)?fi(r):!ek.has(e)||typeof r!=\"object\"||r===null?!1:Object.values(r).some(fi))}function lv(t){return t===1?\"element\":\"elements\"}function tk(t,e){return E.transform(i=>i).check(i=>{let n=i.value;if(Array.isArray(n)){if(e.uniqueItems===!0){let o=new Map;for(let s=0;s<n.length;s++){let a=vp(n[s],new Set);if(a===null)continue;let l=o.get(a);if(l===void 0){o.set(a,s);continue}i.issues.push({code:\"custom\",message:`Array items must be unique: element at index ${s} duplicates the one at index ${l}`,input:n,path:[s],continue:!0})}}if(e.containsSchema){let o=e.minContains??1,s=e.maxContains!==void 0?e.maxContains+1:Number.POSITIVE_INFINITY,a=0;for(let l of n)if(e.containsSchema.safeParse(l).success&&++a>=s)break;a<o&&i.issues.push({code:\"custom\",message:`Array must contain at least ${o} matching ${lv(o)}; found ${a}`,input:n,continue:!0}),e.maxContains!==void 0&&a>e.maxContains&&i.issues.push({code:\"custom\",message:`Array must contain at most ${e.maxContains} matching ${lv(e.maxContains)}`,input:n,continue:!0})}}}).pipe(t)}function uv(t,e){if(t!==!1)return t===void 0||t===!0?E.any():ge(t,e)}var nk=/^(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$/;function cv(t,e){if(t.not!==void 0){if(typeof t.not==\"object\"&&Object.keys(t.not).length===0)return E.never();throw new Error(\"not is not supported in Zod (except { not: {} } for never)\")}if(t.unevaluatedItems!==void 0)throw new Error(\"unevaluatedItems is not supported\");if(t.unevaluatedProperties!==void 0)throw new Error(\"unevaluatedProperties is not supported\");if(t.if!==void 0||t.then!==void 0||t.else!==void 0)throw new Error(\"Conditional schemas (if/then/else) are not supported\");if(t.dependentSchemas!==void 0||t.dependentRequired!==void 0)throw new Error(\"dependentSchemas and dependentRequired are not supported\");if(t.$ref){let n=t.$ref;if(e.refs.has(n))return e.refs.get(n);if(e.processing.has(n))return E.lazy(()=>{if(!e.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return e.refs.get(n)});e.processing.add(n);let o=Yx(n,e),s=ge(o,e);return e.refs.set(n,s),e.processing.delete(n),s}if(t.enum!==void 0){let n=t.enum;if(e.version===\"openapi-3.0\"&&t.nullable===!0&&n.length===1&&n[0]===null)return E.null();if(n.length===0)return E.never();if(n.length===1)return E.literal(n[0]);if(n.every(s=>typeof s==\"string\"))return E.enum(n);let o=n.map(s=>E.literal(s));return o.length<2?o[0]:E.union([o[0],o[1],...o.slice(2)])}if(t.const!==void 0)return E.literal(t.const);let r=t.type;if(Array.isArray(r)){let n=r.map(o=>{let s={...t,type:o};return cv(s,e)});return n.length===0?E.never():n.length===1?n[0]:E.union(n)}if(!r)return E.any();let i;switch(r){case\"string\":{let n=E.string();if(t.format){let o=t.format;o===\"email\"?n=n.check(E.email()):o===\"uri\"||o===\"uri-reference\"?n=n.check(E.url()):o===\"uuid\"||o===\"guid\"?n=n.check(E.uuid()):o===\"date-time\"?n=n.check(E.iso.datetime({offset:!0})):o===\"date\"?n=n.check(E.iso.date()):o===\"time\"?n=n.check(E.regex(nk)):o===\"duration\"?n=n.check(E.iso.duration()):o===\"hostname\"?n=n.check(E.hostname()):o===\"ipv4\"?n=n.check(E.ipv4()):o===\"ipv6\"?n=n.check(E.ipv6()):o===\"mac\"?n=n.check(E.mac()):o===\"cidr\"?n=n.check(E.cidrv4()):o===\"cidr-v6\"?n=n.check(E.cidrv6()):o===\"base64\"?n=n.check(E.base64()):o===\"base64url\"?n=n.check(E.base64url()):o===\"e164\"?n=n.check(E.e164()):o===\"credit_card\"?n=n.check(E.creditCard()):o===\"iban\"?n=n.check(E.iban()):o===\"jwt\"?n=n.check(E.jwt()):o===\"emoji\"?n=n.check(E.emoji()):o===\"nanoid\"?n=n.check(E.nanoid()):o===\"cuid\"?n=n.check(E.cuid()):o===\"cuid2\"?n=n.check(E.cuid2()):o===\"ulid\"?n=n.check(E.ulid()):o===\"xid\"?n=n.check(E.xid()):o===\"ksuid\"&&(n=n.check(E.ksuid()))}typeof t.minLength==\"number\"&&(n=n.min(t.minLength)),typeof t.maxLength==\"number\"&&(n=n.max(t.maxLength)),t.pattern&&(n=n.regex(new RegExp(t.pattern))),i=n;break}case\"number\":case\"integer\":{let n=r===\"integer\"?E.number().int():E.number();typeof t.minimum==\"number\"&&t.exclusiveMinimum!==!0&&(n=n.min(t.minimum)),typeof t.maximum==\"number\"&&t.exclusiveMaximum!==!0&&(n=n.max(t.maximum)),typeof t.exclusiveMinimum==\"number\"?n=n.gt(t.exclusiveMinimum):t.exclusiveMinimum===!0&&typeof t.minimum==\"number\"&&(n=n.gt(t.minimum)),typeof t.exclusiveMaximum==\"number\"?n=n.lt(t.exclusiveMaximum):t.exclusiveMaximum===!0&&typeof t.maximum==\"number\"&&(n=n.lt(t.maximum)),typeof t.multipleOf==\"number\"&&(n=n.multipleOf(t.multipleOf)),i=n;break}case\"boolean\":{i=E.boolean();break}case\"null\":{i=E.null();break}case\"object\":{let n={},o=t.properties||{},s=new Set(t.required||[]),a=typeof t.additionalProperties==\"object\"?ge(t.additionalProperties,e):void 0;for(let[d,f]of Object.entries(o)){let p=ge(f,e);ne(n,d,s.has(d)?p:p.optional())}if(t.patternProperties){let d=t.patternProperties,f=Object.keys(d),p=[];for(let y of f){let _=ge(d[y],e),k=E.string().regex(new RegExp(y));p.push(E.looseRecord(k,_))}let m=[];if(Object.keys(n).length>0&&m.push(E.object(n).passthrough()),m.push(...p),m.length===0)i=E.object({}).passthrough();else if(m.length===1)i=m[0];else{let y=E.intersection(m[0],m[1]);for(let _=2;_<m.length;_++)y=E.intersection(y,m[_]);i=y}if(t.additionalProperties===!1){let y=Object.keys(n),_=f.map(S=>new RegExp(S)),k=i;i=i.check(S=>{if(!Ie(S.value))return;let T=[];for(let P of Object.keys(S.value))y.includes(P)||_.some(O=>O.test(P))||T.push(P);T.length&&S.issues.push({code:\"unrecognized_keys\",keys:T,input:S.value,inst:k})})}}else{let d=E.object(n);t.additionalProperties===!1?i=d.strict():a?i=d.catchall(a):i=d.passthrough()}let l=t.propertyNames!==void 0&&t.propertyNames!==!0,u=typeof t.minProperties==\"number\"?t.minProperties:void 0,c=typeof t.maxProperties==\"number\"?t.maxProperties:void 0;if(l||u!==void 0||c!==void 0){let d;if(l){let f=typeof t.propertyNames==\"object\"&&t.propertyNames.type===void 0?{type:\"string\",...t.propertyNames}:t.propertyNames;d=ge(f,e)}i=qx(i,{keySchema:d,minProperties:u,maxProperties:c})}break}case\"array\":{let n=t.prefixItems,o=t.items;if(n&&Array.isArray(n)){let s=typeof t.minItems==\"number\"?t.minItems:0,a=n.map(d=>ge(d,e)),l=av(a,s),u=Array.isArray(o)?void 0:uv(o,e),c=E.tuple(l);i=u?c.rest(u):c,typeof t.minItems==\"number\"&&(i=i.check(E.minLength(t.minItems))),typeof t.maxItems==\"number\"&&(i=i.check(E.maxLength(t.maxItems)))}else if(Array.isArray(o)){let s=typeof t.minItems==\"number\"?t.minItems:0,a=o.map(d=>ge(d,e)),l=av(a,s),u=uv(t.additionalItems,e),c=E.tuple(l);i=u?c.rest(u):c,typeof t.minItems==\"number\"&&(i=i.check(E.minLength(t.minItems))),typeof t.maxItems==\"number\"&&(i=i.check(E.maxLength(t.maxItems)))}else if(o!==void 0){let s=ge(o,e),a=E.array(s);typeof t.minItems==\"number\"&&(a=a.min(t.minItems)),typeof t.maxItems==\"number\"&&(a=a.max(t.maxItems)),i=a}else i=E.array(E.any());(t.uniqueItems===!0||t.contains!==void 0)&&(i=tk(i,{uniqueItems:t.uniqueItems===!0,containsSchema:t.contains!==void 0?ge(t.contains,e):void 0,minContains:typeof t.minContains==\"number\"?t.minContains:void 0,maxContains:typeof t.maxContains==\"number\"?t.maxContains:void 0}));break}default:throw new Error(`Unsupported type: ${r}`)}return i}function ge(t,e){if(typeof t==\"boolean\")return t?E.any():E.never();let r=cv(t,e),i=t.type||t.enum!==void 0||t.const!==void 0;if(t.anyOf&&Array.isArray(t.anyOf)){let a=t.anyOf.map(u=>ge(u,e)),l=E.union(a);r=i?E.intersection(r,l):l}if(t.oneOf&&Array.isArray(t.oneOf)){let a=t.oneOf.map(u=>ge(u,e)),l=E.xor(a);r=i?E.intersection(r,l):l}if(t.allOf&&Array.isArray(t.allOf))if(t.allOf.length===0)r=i?r:E.any();else{let a=i?r:ge(t.allOf[0],e),l=i?0:1;for(let u=l;u<t.allOf.length;u++)a=E.intersection(a,ge(t.allOf[u],e));r=a}t.nullable===!0&&e.version===\"openapi-3.0\"&&(r=E.nullable(r)),t.readOnly===!0&&(r=E.readonly(r)),t.default!==void 0&&(r=r.default(t.default));let n={},o=[\"$id\",\"id\",\"$comment\",\"$anchor\",\"$vocabulary\",\"$dynamicRef\",\"$dynamicAnchor\"];for(let a of o)a in t&&(n[a]=t[a]);let s=[\"contentEncoding\",\"contentMediaType\",\"contentSchema\"];for(let a of s)a in t&&(n[a]=t[a]);if(t.type===\"object\"&&t.$ref===void 0){t.propertyNames!==void 0&&!fi(t.propertyNames)&&(n.propertyNames=t.propertyNames);for(let a of[\"minProperties\",\"maxProperties\"])t[a]!==void 0&&(n[a]=t[a])}if(t.type===\"array\"&&t.$ref===void 0){t.contains!==void 0&&!fi(t.contains)&&(n.contains=t.contains);for(let a of[\"uniqueItems\",\"minContains\",\"maxContains\"])t[a]!==void 0&&(n[a]=t[a])}for(let a of Object.keys(t))Hx.has(a)||ne(n,a,t[a]);return Object.keys(n).length>0&&e.registry.add(r,n),t.description&&(r=r.describe(t.description)),r}function dv(t,e){if(typeof t==\"boolean\")return t?E.any():E.never();let r;try{r=JSON.parse(JSON.stringify(t))}catch{throw new Error(\"fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas\")}let i=Jx(r,e?.defaultTarget),n=r.$defs||r.definitions||{},o={version:i,defs:n,refs:new Map,processing:new Set,rootSchema:r,registry:e?.registry??re};return ge(r,o)}var fv=Symbol(\"z.visit/resolving\");function pi(t,e){let r=typeof e==\"function\"?e:(s,a)=>{let l=e[s._zod.def.type];return l?l(s,a):s},i=new Map;function n(s){let a=i.get(s);if(a===fv)return new Fr({type:\"lazy\",getter:()=>i.get(s)});if(a!==void 0)return a;i.set(s,fv);let l=o(s),u=r(l,l!==s);return i.set(s,u),u}function o(s){let a=s._zod.def,l=a.type;switch(l){case\"object\":{let u=a.shape,c=Object.keys(u),d=!1,f={};for(let m of c){let y=n(u[m]);y!==u[m]&&(d=!0),f[m]=y}let p=a.catchall;return a.catchall&&(p=n(a.catchall),p!==a.catchall&&(d=!0)),d?B(s,{...a,shape:f,catchall:p}):s}case\"array\":{let u=n(a.element);return u===a.element?s:B(s,{...a,element:u})}case\"tuple\":{let u=a.items,c=!1,d=[];for(let p of u){let m=n(p);m!==p&&(c=!0),d.push(m)}let f=a.rest;return a.rest&&(f=n(a.rest),f!==a.rest&&(c=!0)),c?B(s,{...a,items:d,rest:f}):s}case\"record\":case\"map\":{let u=n(a.keyType),c=n(a.valueType);return u===a.keyType&&c===a.valueType?s:B(s,{...a,keyType:u,valueType:c})}case\"set\":{let u=n(a.valueType);return u===a.valueType?s:B(s,{...a,valueType:u})}case\"union\":{let u=a.options,c=!1,d=[];for(let f of u){let p=n(f);p!==f&&(c=!0),d.push(p)}return c?B(s,{...a,options:d}):s}case\"intersection\":{let u=n(a.left),c=n(a.right);return u===a.left&&c===a.right?s:B(s,{...a,left:u,right:c})}case\"optional\":case\"nullable\":case\"default\":case\"prefault\":case\"catch\":case\"readonly\":case\"nonoptional\":case\"promise\":case\"success\":{let u=n(a.innerType);return u===a.innerType?s:B(s,{...a,innerType:u})}case\"pipe\":{let u=n(a.in),c=n(a.out);return u===a.in&&c===a.out?s:B(s,{...a,in:u,out:c})}case\"function\":{let u=n(a.input),c=n(a.output);return u===a.input&&c===a.output?s:B(s,{...a,input:u,output:c})}case\"lazy\":{let u=a.getter,{_cachedInner:c,...d}=a;return B(s,{...d,getter:()=>n(u())})}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 s;default:return s}}return n(t)}function pv(t){return pi(t,{object:e=>e.partial(),union:e=>{let r=e._zod.def;return r.discriminator===void 0?e:tr(r.options)}})}function rk(t,e){if(!e?.length)return t;let r=t._zod.def;return B(t,Ce(r,{checks:[...r.checks??[],...e]}),{parent:!0})}function mv(t){return rk(t.out,t.checks)}function ik(t){return t.in._zod.traits.has(\"$ZodTransform\")?mv(t):t.in}function hv(t){return pi(t,{pipe:e=>ik(e._zod.def),default:(e,r)=>r?nn(e._zod.def.innerType):e,catch:(e,r)=>r?e._zod.def.innerType:e})}function gv(t){return pi(t,{pipe:e=>mv(e._zod.def),prefault:(e,r)=>r?e._zod.def.innerType:e})}var bp={};nt(bp,{bigint:()=>lk,boolean:()=>ak,date:()=>uk,number:()=>sk,string:()=>ok});function ok(t){return jc(Yn,t)}function sk(t){return Gc(qn,t)}function ak(t){return Qc(Qn,t)}function lk(t){return td(er,t)}function uk(t){return fd(ri,t)}var aO=F.number().int().nonnegative().nullable(),lO=F.array(F.number().int().min(0).max(1114111)),uO=F.array(F.tuple([F.number().int().nonnegative(),F.number().int().nonnegative()])),cO=new FinalizationRegistry(t=>{t.close()}),dO=new TextDecoder,ck=4096;var fO=new Uint8Array(4*ck);var yv=Object.fromEntries([\"*\",\"?\",\"[\",\"@\",\"+\",\"!\",\"(\",\")\",\"|\"].map((t,e)=>[String.fromCharCode(64976+e),t]));function Ye(t){return`/${Be(t)}`}function Ee(t,e){return t.startsWith(\"/\")?Je(t):Je(`${j(e)}/${t}`)}function Je(t){if(t===\"\")return\".\";let e=t.startsWith(\"/\"),r=t.split(\"/\").filter(o=>o!==\"\"&&o!==\".\"),i=[];for(let o of r)o===\"..\"?i.length>0&&i[i.length-1]!==\"..\"?i.pop():e||i.push(\"..\"):i.push(o);let n=i.join(\"/\");return e?`/${n}`:n===\"\"?\".\":n}var wp=new Set([\".\",\"..\"]);function Sp(t,e=\"/\"){let r=t.split(\"/\").filter(a=>a!==\"\"),i=0;for(;i<r.length&&wp.has(r[i]??\"\");)i+=1;let n=r.slice(i),o=n.length>0&&t.endsWith(\"/\")&&!wp.has(n[n.length-1]??\"\");if(!o&&!n.some(a=>wp.has(a)))return null;let s=Ee(r.slice(0,i).join(\"/\")||\".\",t.startsWith(\"/\")?\"/\":e);return`${j(s)}/${n.join(\"/\")}${o?\"/\":\"\"}`}function Ks(t){let e=t.lastIndexOf(\"/\");return e<=0?\"/\":t.slice(0,e)}var dk=40,Xe=class extends Error{path;code=\"ELOOP\";virtualPath;constructor(e){super(`too many levels of symbolic links: ${e}`),this.name=\"CycleError\",this.path=e,this.virtualPath=e}};function _p(t,e){let r=[];try{fk(t,e,r)}catch(i){if(!(i instanceof Xe)||r.at(-1)?.kind!==\"hop_limit\")throw i}return r}function fk(t,e,r){let i=t.split(\"/\").reverse(),n=[],o=0;for(;i.length>0;){let l=i.pop()??\"\";if(l===\"\"||l===\".\")continue;if(l===\"..\"){n.pop();continue}let u=\"/\"+[...n,l].join(\"/\"),c=e.get(u);if(c===void 0){if(r!==null&&o>0){let d;for(let f=i.length-1;f>=0;f-=1){let p=i[f];if(p!==\"\"&&p!==\".\"){d=p;break}}d===\"..\"&&r.push({kind:\"enter\",path:u,nextIsParent:!0})}n.push(l);continue}if(r?.push({kind:\"follow\",path:u}),++o>dk)throw r?.push({kind:\"hop_limit\"}),new Xe(t);c.startsWith(\"/\")&&(n.length=0);for(let d of c.split(\"/\").reverse())i.push(d)}let s=\"/\"+n.join(\"/\");o>0&&r?.push({kind:\"landing\",path:s});let a=n.length>0&&t.endsWith(\"/\")?\"/\":\"\";return s+a}function vv(t,e){let r=t.length;for(;r>0&&t[r-1]===\"/\";)r--;if(r===0)return t.length>0?\"/\":\"\";let i=t.lastIndexOf(\"/\",r-1),n=t.slice(i+1,r);return e!==void 0&&e!==\"\"&&n!==e&&n.endsWith(e)&&(n=n.slice(0,n.length-e.length)),n}var an=Object.freeze({READ:\"read\",WRITE:\"write\",EXEC:\"exec\"}),xp=Object.freeze({WORKSPACE:\"workspace\",FUSE:\"fuse\",FSKIT:\"fskit\",NFS:\"nfs\"}),kO=Object.freeze([xp.FUSE,xp.FSKIT,xp.NFS]),bv=Object.freeze({[an.READ]:1,[an.WRITE]:2,[an.EXEC]:3});function _v(t,e){return bv[t]<=bv[e]?t:e}var $O=Object.freeze({paths:null,shown:null,vars:null,processes:\"session\"}),EO=Object.freeze({r:an.READ,rw:an.WRITE,rwx:an.EXEC});var pk=Object.freeze({FRESH:\"fresh\",BOUNDED:\"bounded\",PINNED:\"pinned\"}),TO=Object.freeze({UNCONDITIONAL:\"unconditional\",CONDITIONAL:\"conditional\",STAGED:\"staged\"}),AO=Object.freeze({NONE:\"none\",MOUNT:\"mount\",FOLDER:\"folder\"}),mk=600,IO=Object.freeze({policy:pk.BOUNDED,ttl:mk}),PO=Object.freeze({STRICT:\"strict\",OFF:\"off\"}),mi=Object.freeze({ERROR:\"error\",TRUNCATE:\"truncate\"});function hk(t){return t.some(e=>e===mi.ERROR)?mi.ERROR:mi.TRUNCATE}function wv(t){let e=t.filter(r=>r!==null);return e.length>0?Math.min(...e):null}function gk(t){let e=t.filter(r=>r!==null&&r>0);return e.length>0?Math.min(...e):null}function yk(t){let e=t.filter(i=>i!==null),r=e.filter(i=>i>=0);return r.length>0?Math.min(...r):e.length>0?-1:null}var dt=class t{kind=\"limit\";maxBytes;maxLines;timeoutSeconds;walkLimit;fieldsSet;exceed;constructor(e={}){let r=e.maxBytes??null,i=e.maxLines??null,n=e.timeoutSeconds??null,o=e.walkLimit??null;if(r!==null&&(!Number.isInteger(r)||r<0))throw new TypeError(`maxBytes must be a non-negative integer, got ${String(r)}`);if(i!==null&&(!Number.isInteger(i)||i<0))throw new TypeError(`maxLines must be a non-negative integer, got ${String(i)}`);if(n!==null&&(!Number.isFinite(n)||n<0))throw new TypeError(`timeoutSeconds must be a non-negative number, got ${String(n)}`);if(o!==null&&(!Number.isInteger(o)||o<-1))throw new TypeError(`walkLimit must be an integer of at least -1, got ${String(o)}`);this.maxBytes=r,this.maxLines=i,this.timeoutSeconds=n,this.walkLimit=o,this.exceed=e.onExceed??null,this.fieldsSet=new Set(Object.keys(e).filter(s=>e[s]!==void 0))}get onExceed(){return this.exceed??mi.TRUNCATE}static layered(e){let r=[...e].filter(n=>n!==null);if(r.length===0)return null;let i={};for(let n of vk){let o=r.find(s=>s.fieldsSet.has(n));o!==void 0&&Object.assign(i,{[n]:o.named(n)})}return new t(i)}named(e){return e===\"onExceed\"?this.onExceed:this[e]}static aggr(e){let r=[...e].filter(n=>n!==null);if(r.length===0)return null;let i={};for(let n of Object.keys(Sv))r.some(o=>o.fieldsSet.has(n))&&Object.assign(i,{[n]:Sv[n](r)});return new t(i)}},vk=[\"maxBytes\",\"maxLines\",\"timeoutSeconds\",\"walkLimit\",\"onExceed\"],Sv={maxBytes:t=>wv(t.map(e=>e.maxBytes)),maxLines:t=>wv(t.map(e=>e.maxLines)),timeoutSeconds:t=>gk(t.map(e=>e.timeoutSeconds)),walkLimit:t=>yk(t.map(e=>e.walkLimit)),onExceed:t=>hk(t.map(e=>e.onExceed))},xv=Object.freeze({DISK:\"disk\",S3:\"s3\",RAM:\"ram\",GITHUB:\"github\",WANDB:\"wandb\",LINEAR:\"linear\",GCAL:\"gcal\",GDOCS:\"gdocs\",GSHEETS:\"gsheets\",GSLIDES:\"gslides\",GDRIVE:\"gdrive\",ONEDRIVE:\"onedrive\",SHAREPOINT:\"sharepoint\",DROPBOX:\"dropbox\",BOX:\"box\",AIRTABLE:\"airtable\",SLACK:\"slack\",DISCORD:\"discord\",GMAIL:\"gmail\",TRELLO:\"trello\",MONGODB:\"mongodb\",GRIDFS:\"gridfs\",NOTION:\"notion\",LANGFUSE:\"langfuse\",JAEGER:\"jaeger\",SSH:\"ssh\",REDIS:\"redis\",GCS:\"gcs\",OCI:\"oci\",R2:\"r2\",EMAIL:\"email\",OPFS:\"opfs\",SUPABASE:\"supabase\",POSTGRES:\"postgres\",LANCEDB:\"lancedb\",CHROMA:\"chroma\",DIFY:\"dify\",MEM0:\"mem0\",QDRANT:\"qdrant\",HF_BUCKETS:\"hf_buckets\",HF_DATASETS:\"hf_datasets\",HF_MODELS:\"hf_models\",HF_SPACES:\"hf_spaces\",NEXTCLOUD:\"nextcloud\",DATABRICKS_VOLUME:\"databricks_volume\",TIDB_FILESYSTEM:\"tidb_filesystem\",MINIO:\"minio\",CEPH:\"ceph\",SEAWEEDFS:\"seaweedfs\",WASABI:\"wasabi\",BACKBLAZE:\"backblaze\",DIGITALOCEAN:\"digitalocean\",TENCENT:\"tencent\",ALIYUN:\"aliyun\",SCALEWAY:\"scaleway\",QINGSTOR:\"qingstor\",HISTORY:\"history\",BIN:\"bin\"}),OO=Object.freeze({NONE:\"none\",LAST:\"last\",DIRECTORY:\"directory\"});var ie=Object.freeze({DIRECTORY:\"directory\",FILE:\"file\",SYMLINK:\"symlink\",CHAR_DEVICE:\"char_device\",BLOCK_DEVICE:\"block_device\",FIFO:\"fifo\",SOCKET:\"socket\"}),NO=Object.freeze({TEXT:\"text\",BINARY:\"binary\",JSON:\"json\",CSV:\"csv\",IMAGE_PNG:\"image/png\",IMAGE_JPEG:\"image/jpeg\",IMAGE_GIF:\"image/gif\",ZIP:\"application/zip\",GZIP:\"application/gzip\",PDF:\"application/pdf\"});var kv=\"mirage.live\",Ne=class t{name;size;modified;fingerprint;revision;type;content;mode;uid;gid;atime;ctime;birthtime;dev;extra;constructor(e){this.name=e.name,this.size=e.size??null,this.modified=e.modified??null,this.fingerprint=e.fingerprint??null,this.revision=e.revision??null,this.type=e.type;let r=e.content??null;if(r!==null&&e.type!==ie.FILE)throw new Error(`content must be null for ${e.type}, got ${r}`);this.content=r,this.mode=e.mode??null,this.uid=e.uid??null,this.gid=e.gid??null,this.atime=e.atime??null,this.ctime=e.ctime??null,this.birthtime=e.birthtime??null,this.dev=e.dev??null,this.extra=e.extra??{},Object.freeze(this)}with(e){return new t({name:this.name,size:this.size,modified:this.modified,fingerprint:this.fingerprint,revision:this.revision,type:this.type,content:this.content,mode:this.mode,uid:this.uid,gid:this.gid,atime:this.atime,ctime:this.ctime,birthtime:this.birthtime,dev:this.dev,extra:this.extra,...e})}};var RO=Object.freeze({CREATE:\"create\",UPDATE:\"update\",DELETE:\"delete\",MOVE:\"move\",UNKNOWN:\"unknown\"});var DO=Object.freeze({COLLAPSE:\"collapse\",DROP_OLDEST:\"drop_oldest\",ERROR:\"error\"});var M=class t{virtual;directory;vfsPath;pattern;resolved;rawPath;dotted;walkError;constructor(e){this.virtual=e.virtual,this.directory=e.directory,this.vfsPath=e.vfsPath,this.pattern=e.pattern??null,this.resolved=e.resolved??!0,this.rawPath=e.rawPath??e.virtual,this.dotted=e.dotted??null,this.walkError=e.walkError??null,Object.freeze(this)}get mountPath(){return`/${this.vfsPath}`}get dir(){let e=j(this.virtual).length-this.vfsPath.length;return new t({virtual:this.directory,directory:this.directory,vfsPath:Be(this.directory.slice(e)),pattern:this.pattern,resolved:!1})}child(e){return`${j(this.virtual)}/${e}`}join(...e){let r=\"\";for(let n of e)r=n.startsWith(\"/\")?n:r?`${r}/${n}`:n;let i=t.fromStrPath(r||\".\",void 0,this);return new t({virtual:i.virtual,directory:i.directory,vfsPath:i.vfsPath,rawPath:i.dotted??i.virtual,dotted:i.dotted,walkError:i.walkError})}get parent(){let e=j(this.dotted??this.virtual);return t.fromStrPath(e.slice(0,e.lastIndexOf(\"/\"))||\"/\",void 0,\"/\")}static fromStrPath(e,r,i){if(e instanceof t)return r===void 0?e:new t({virtual:e.virtual,directory:e.directory,vfsPath:r,rawPath:e.rawPath,pattern:e.pattern,resolved:e.resolved,dotted:e.dotted,walkError:e.walkError});let n=i instanceof t?i.dotted??i.virtual:i,o=n===void 0?e:Ee(e,n),s=null,a=null;return n!==void 0&&(s=i instanceof t&&i.dotted!==null?Sp(e.startsWith(\"/\")?e:`${n}/${e}`):Sp(e,n),e===\"\"?a=\"ENOENT\":i instanceof t&&!e.startsWith(\"/\")&&(a=i.walkError)),new t({virtual:o,directory:o.slice(0,o.lastIndexOf(\"/\")+1)||\"/\",vfsPath:r??Be(o),rawPath:e,dotted:s,walkError:a})}};var kp=class{frames=[];run(e,r){return this.withFrame(e,r)}withFrame(e,r){let i={store:e};this.frames.push(i);let n=()=>{let o=this.frames.indexOf(i);o>=0&&this.frames.splice(o,1)};try{let o=r();return o instanceof Promise?o.finally(n):(n(),o)}catch(o){throw n(),o}}getStore(){return this.frames.length===0?void 0:this.frames[this.frames.length-1]?.store}liveStores(){return this.frames.map(e=>e.store).filter(e=>e!==void 0)}capture(){let e=this.frames.length===0?[void 0]:this.frames.map(r=>r.store);return r=>{let i=n=>n===e.length?r():this.withFrame(e[n],()=>i(n+1));return i(0)}}},$p=class{tasks;constructor(e){this.tasks=new e}run(e,r){return this.tasks.run(e,r)}getStore(){return this.tasks.getStore()}liveStores(){let e=this.tasks.getStore();return e===void 0?[]:[e]}capture(){let e=this.tasks.getStore();return r=>this.tasks.run(e,r)}};async function bk(){let t=globalThis;if(t.AsyncLocalStorage!==void 0)return t.AsyncLocalStorage;if(t.process?.versions?.node!==void 0)try{return(await import(\"node:async_hooks\")).AsyncLocalStorage}catch{return null}return null}async function wk(t){try{let e=new t,r=await Promise.all([e.run(1,async()=>(await Promise.resolve(),e.getStore())),e.run(2,async()=>(await Promise.resolve(),e.getStore()))]);return r[0]===1&&r[1]===2}catch{return!1}}var Ep=await bk(),qe=Ep!==null&&await wk(Ep),Tp=qe?Ep:null,zO=Tp?.snapshot?.()??null;function Me(){return Tp===null?new kp:new $p(Tp)}function Qe(t,e){return t?.paths==null||Ft(t).ask(\"path_visible\",{path:G(e)})===!0}function Ap(t,e,r){return t?.paths!=null&&r.size>0&&Ft(t).ask(\"link_trace_hidden\",{trace:Ga(_p(e,r))})===!0}function $v(t,e,r){if(t?.paths==null)return e.map(()=>!0);let i=Ft(t),n=i.ask(\"visible_links\",{candidates:e.map(a=>({path:G(a),trace:[]}))}),o=i.ask(\"visible_links\",{candidates:e.filter((a,l)=>n[l]).map(a=>({path:G(a),trace:Ga(_p(a,r))}))}),s=0;return n.map(a=>a&&o[s++]===!0)}function hi(t,e){return t?.paths!=null&&Ft(t).ask(\"hides_intersect\",{path:G(e)})===!0}var Sk={session:null,owner:null,evaluation:null,gate:null,ruleGate:null,mount:null,refusals:null,explaining:null,walkProbe:null,redirects:null,program:null,call:null,stop:null,writeHeld:!1,versionReads:!0,lineAbort:null,recording:null,revisions:null,history:null,commandSink:null,cache:null,readFacts:null,write:null,started:null,command:null,declared:null,enclosing:null,execution:null,process:null,invocation:null,vfsMount:null},Hs=Me();function W(){return Hs.getStore()??Sk}function gi(){return Hs.liveStores()}async function Te(t,e){return Le(t,e)()}function Le(t,e){return(...r)=>{if(qe)return Hs.run(t,()=>e(...r));let i=Av(t);if(i!==null)throw um(\"workspace\",\"conditional write (overlapping sessions)\",i);try{let n=Hs.run(t,()=>e(...r));return n instanceof Promise?n.finally(Ip):(Ip(),n)}catch(n){throw Ip(),n}}}function Av(t){if(qe)return null;for(let e of gi()){let r=t.write?.context!=null?t.write:e.write;if(r?.context!=null&&(e.session!==null||e.write?.context!=null)&&(t.session?.versions??null)!==(e.session?.versions??null))return r.prefix}return null}var Ev=new Map;function Ip(){for(let[t,e]of Ev)Av(e)===null&&(Ev.delete(t),Te(e,t).catch(r=>{console.debug(\"deferred stream closer failed:\",r)}))}function Pt(t,e){return(...r)=>Te(t,()=>e(...r))}function Iv(){let t=W().execution;return t===null||gi().some(e=>e.execution!==null&&e.execution!==t)?null:t}function _k(t,e){return Te({...W(),...t},e)}function Pv(t,e,r={}){let i=W();return _k({session:t,owner:r.owner??i.owner,evaluation:r.evaluation??(i.session===t?i.evaluation:null)},e)}function Ov(){return W().session}var Nv=Me();function Rv(t){return Promise.resolve(Nv.run(!0,t))}function Dv(){return qe&&Nv.getStore()===!0}function Cv(){return gi().flatMap(t=>t.session===null?[]:[t.session])}function Pp(t){if(t!==void 0)return t.visibility;let e=Cv().map(u=>u.visibility),r=e[0];if(r===void 0)return null;if(e.every(u=>u===r))return r;let i=e.filter(u=>u.paths!=null),n=(i[0]?.shown?.entries??[]).filter(u=>i.every(c=>(c.shown?.entries??[]).some(d=>d.path===u.path))),o=i.flatMap(u=>u.paths?.paths??[]),s=i.flatMap(u=>u.paths?.patterns??[]),a=e.flatMap(u=>u.vars?.names??[]),l=e.flatMap(u=>u.vars?.patterns??[]);return{paths:i.length===0?null:{paths:o,patterns:s},shown:n.length===0?null:{entries:n},vars:a.length+l.length===0?null:{names:a,patterns:l},processes:e.every(u=>u.processes===\"workspace\")?\"workspace\":\"session\"}}function zv(t){W().refusals?.(t)}function Tv(t,e,r,i){let n=Ye(r),o=t.mountModes?.get(n)??null;return o===null&&t.visibility?.shown==null?i:Ft(t.visibility??null).ask(\"effective_mode\",{path:G(e),prefix:G(n),configured:i,cap:o})}function Uv(t,e,r,i){if(i!==void 0)return Tv(i,t,e,r);let n=r;for(let o of Cv())n=_v(n,Tv(o,t,e,r));return n}var nN=32*1024*1024;var xk=Me();function Op(){let t=null;for(let e of xk.liveStores())e!==null&&(t=Math.min(t??1/0,e.room()));return t}function ln(t){let e=Op();if(e!==null&&t>e)throw new pn}async function je(t){if(t==null)return new Uint8Array;if(t instanceof Uint8Array)return t;let e=[],r=0;for await(let i of Ze(t))r+=i.byteLength,ln(r),e.push(i);return L(e)}var Js=class{completed=!1;source=null;bytes=null;path=null;store=null;served(e=null,r=null){this.completed=!0,this.source=e,this.bytes=r}},Xs=class t{records;rows;stdout;stderr;_exitCode;output=null;outputFinalized=!1;producer;refusal;closedStdout;streamSource;constructor(e={}){this.records=e.records??null,this.rows=e.rows??null,this.stdout=e.stdout??null,this.stderr=e.stderr??null,this._exitCode=e.exitCode??0,this.producer=e.producer??null,this.refusal=e.refusal??null,this.closedStdout=e.closedStdout??null,this.streamSource=null}get exitCode(){return this.streamSource!==null?this.streamSource.exitCode:this._exitCode}set exitCode(e){this._exitCode=e,this.streamSource=null}async materializeStdout(){let e=this.stdout,r=await je(e);return this.stdout===e&&(this.stdout=r),r}async stdoutStr(e=\"replace\"){let r=await this.materializeStdout();return new TextDecoder(\"utf-8\",{fatal:e===\"strict\"}).decode(r)}async materializeStderr(){let e=this.stderr,r=await je(e);return this.stderr===e&&(this.stderr=r),r}async stderrStr(e=\"replace\"){let r=await this.materializeStderr();return new TextDecoder(\"utf-8\",{fatal:e===\"strict\"}).decode(r)}async merge(e){let r=await je(this.stderr),i=await je(e.stderr),n=null;(r.byteLength>0||i.byteLength>0)&&(n=L([r,i]));let o=new t({stdout:e.stdout,records:e.records,stderr:n,producer:e.producer,refusal:e.refusal??this.refusal,closedStdout:e.closedStdout});return o.output=e.output,o.outputFinalized=e.outputFinalized,o.streamSource=e,o}};var yi=class{queues=new Map;async withLock(e,r,i){if(Ut(i))throw de(i);let n=this.enter(e,i),o=n instanceof Set?n:await n;try{if(Ut(i))throw de(i);return await r({released:async s=>{this.leave(e,o);try{return await s()}finally{let a=this.enter(e);o=a instanceof Set?a:await a}}})}finally{this.leave(e,o)}}held(e){return this.queues.has(e)}discard(e){this.queues.delete(e)}clear(){this.queues.clear()}enter(e,r){let i=this.queues.get(e);if(i===void 0){let n=new Set;return this.queues.set(e,n),n}return new Promise((n,o)=>{let s={enter:()=>{r?.removeEventListener(\"abort\",a),n(i)}},a=()=>{i.delete(s),o(de(r))};i.add(s),r?.addEventListener(\"abort\",a,{once:!0})})}leave(e,r){let i=r.values().next().value;i!==void 0?(r.delete(i),i.enter()):this.queues.get(e)===r&&this.queues.delete(e)}};var Ys=class{constructor(e,r,i){this.path=e;this.end=r;this.signal=i}path;end;signal;[Symbol.asyncIterator](){return this}async next(){let e=this.end.stream(this.path,this.signal())[Symbol.asyncIterator]();try{return await e.next()}finally{await e.return?.()}}},qs=class t{constructor(e){this.input=e;let r=this.input;this.input instanceof Uint8Array?this.source=Ze(this.input):this.input instanceof Ys?this.source=this.input:typeof r[Symbol.asyncIterator]==\"function\"?this.source=Ze(r):this.source=Ze({[Symbol.asyncIterator]:()=>this.input})}input;source;buf=new Uint8Array(0);pulled=0;exhausted=!1;budget=new gt;linesSinceCheck=0;pulling=!1;started=!1;holders=0;released=!1;[Symbol.asyncIterator](){return this}get position(){return this.pulled-this.buf.byteLength}unread(e){this.buf=L([e,this.buf])}get loaded(){return this.pulled}async next(){let e=await this.readline();return e===null?{done:!0,value:void 0}:{done:!1,value:e}}async readline(e,r=10){try{if(e?.throwIfAborted(),++this.linesSinceCheck>=64){this.linesSinceCheck=0;let s=this.budget.run();s!==void 0&&(await s,e?.throwIfAborted())}let o=this.buf.indexOf(r);if(o>=0){let s=this.buf.subarray(0,o);return this.buf=this.buf.subarray(o+1),s}}catch(o){throw await this.failed(o),o}let[i,n]=await this.readDelimited(r,e);return n||i.byteLength>0?i:null}discard(){return this.close()}async release(){this.released=!0,this.holders===0&&await this.close()}async unhold(){this.holders-=1,this.holders===0&&this.released&&await this.close()}async reopen(e){await this.discard();let r=new t(e);return r.holders=this.holders,r.released=this.released,r}async loadRest(){try{for(;!this.exhausted;){let e=this.check();e!==void 0&&await e;let r=await this.pull();r.done===!0?this.exhausted=!0:(ln(this.buf.byteLength+r.value.byteLength),this.buf=L([this.buf,r.value]))}}catch(e){throw await this.failed(e),e}}async failed(e,r=[]){let i=e instanceof DOMException&&e.name===\"AbortError\";if(this.input instanceof Ys&&i){r.length>0&&(this.buf=L([...r,this.buf]));return}await this.close()}check(e){e?.throwIfAborted();let r=this.budget.run();if(r!==void 0)return r.then(()=>e?.throwIfAborted())}async close(){this.exhausted=!0,this.buf=new Uint8Array(0);let e=this.source.return?.();e!==void 0&&(this.pulling?e.catch(()=>{}):await e),this.started||await this.input.return?.()}async pull(e){this.pulling=!0,this.started=!0;let r=await it(this.source.next(),e);return this.pulling=!1,r.done!==!0&&(this.pulled+=r.value.byteLength),r}async readDelimited(e,r){let i=[],n=0,o=typeof e==\"number\"?1:e.length;if(o===0)throw new Error(\"empty separator\");try{for(;;){let s=this.check(r);s!==void 0&&await s;let a=typeof e==\"number\"?this.buf.indexOf(e):Di(this.buf,e);if(a>=0){ln(n+a);let d=this.buf.subarray(0,a);return this.buf=this.buf.subarray(a+o),[i.length===0?d:L([...i,d]),!0]}if(this.exhausted)return ln(n+this.buf.byteLength),i.push(this.buf),this.buf=new Uint8Array,[L(i),!1];let l=Math.min(o-1,this.buf.length),u=this.buf.length-l;u>0&&i.push(this.buf.subarray(0,u)),n+=u,ln(n),this.buf=this.buf.subarray(u);let c=await this.pull(r);c.done===!0?this.exhausted=!0:this.buf=L([this.buf,c.value])}}catch(s){throw await this.failed(s,i),s}}async readUntil(e,r){let[i,n]=await this.readDelimited(e,r);return[new Uint8Array(i),n]}async peek(e){try{for(;this.buf.byteLength===0;){if(this.exhausted)return!1;let r=this.check(e);r!==void 0&&await r;let i=await this.pull(e);i.done===!0?this.exhausted=!0:this.buf=new Uint8Array(i.value)}return!0}catch(r){throw await this.failed(r),r}}async readChunk(){if(this.buf.byteLength>0){let e=this.buf;return this.buf=new Uint8Array(0),e}if(this.exhausted)return null;try{let e=this.check();e!==void 0&&await e;let r=await this.pull();return r.done===!0?(this.exhausted=!0,null):r.value}catch(e){throw await this.failed(e),e}}async read1(e){if(e<=0)return new Uint8Array(0);let r=await this.readChunk();return r===null?new Uint8Array(0):(r.byteLength>e&&this.unread(r.subarray(e)),r.subarray(0,e))}async readChars(e,r,i){let n=new Uint8Array(0),o=Op();try{let s=0;for(;s<e;){let a=this.check(i);if(a!==void 0&&await a,this.buf.byteLength<4&&!this.exhausted){let u=await this.pull(i);u.done===!0?this.exhausted=!0:this.buf=L([this.buf,u.value]);continue}if(this.buf.byteLength===0)return[new Uint8Array(n),!1];if(r!==null&&this.buf[0]===r)return this.buf=this.buf.subarray(1),[new Uint8Array(n),!0];let l=kk(this.buf);if(o!==null&&n.byteLength+l>o)throw new pn;n=L([n,this.buf.subarray(0,l)]),this.buf=this.buf.subarray(l),s++}return[new Uint8Array(n),!0]}catch(s){throw await this.failed(s,[n]),s}}};function kk(t){let e=t[0]??0;if(e<194||e>=245)return 1;let r=e<224?2:e<240?3:4,i=Math.min(r,t.byteLength);for(let n=1;n<i;n++){let o=t[n]??0;if(o<128||o>=192)return n}return i}async function Np(t){if(t===null||t instanceof Uint8Array)return;let e=t.return;if(typeof e==\"function\")try{await e.call(t)}catch(r){console.debug(\"stream closer failed:\",r)}}var vi=class{constructor(e,r){this.source=e;this.close=r}source;close;closing=null;[Symbol.asyncIterator](){return this}async next(){if(this.closing!==null)return{done:!0,value:void 0};try{let e=await this.source.next();return e.done===!0&&await this.return(),e}catch(e){throw await this.return(),e}}return(){return this.closing??=this.finish(),this.closing}async finish(){return await this.close(),await this.source.return?.()??{done:!0,value:void 0}}};async function*$k(t){await Promise.resolve(),yield t}function Mv(t){return t instanceof Uint8Array?$k(t):t}function Ek(t,e){let r=t.slice(0,e.length);if(e!==\"\"&&(r===e||Array.from(r,i=>yv[i]??i).join(\"\")===e)){let i=t.slice(e.length);if(e.endsWith(\"/\")||i===\"\"||i.startsWith(\"/\"))return i===\"\"?\"/\":i}return t}function Lv(t,e){return Be(Ek(t,e))}function jv(t,e){let r=j(t).length-e.length;return j(t.slice(0,r))}var Fv=new Set([\"read\",\"write\",\"create\",\"truncate\"]);var Tk=new Set([\"unlink\",\"rm_r\",\"rmdir\",\"rename\",\"rename_prefix\",\"copy\",\"copy_prefix\"]);var RN=new Set([...Fv,...Tk]);var Qs=class{complete=!0;executionId;op;path;source;bytes;timestamp;durationMs;fingerprint;revision;mountId;constructor(e){this.executionId=e.executionId??null,this.op=e.op,this.path=e.path,this.source=e.source,this.bytes=e.bytes,this.timestamp=e.timestamp,this.durationMs=e.durationMs,this.fingerprint=e.fingerprint??null,this.revision=e.revision??null,this.mountId=e.mountId??null}get isCache(){return this.source===xv.RAM}toJSON(){return this.toDict()}toDict(){return{op:this.op,path:this.path,source:this.source,bytes:this.bytes,timestamp:this.timestamp,durationMs:this.durationMs,fingerprint:this.fingerprint,revision:this.revision,...this.executionId===null?{}:{execution_id:this.executionId}}}};var rr=class{platform=!0;now(){return Date.now()/1e3}monotonic(){return performance.now()/1e3}sleep(e){return fm(e*1e3)}};var Ak=Me();function Rp(){return Ak.getStore()??null}function Bv(){let t=Rp();return t===null?Date.now()/1e3:t.now()}var VN=new rr;var ea=class{constructor(e){this.clock=e;this.startMs=e.monotonic()*1e3}clock;startMs;get elapsedMs(){return Math.floor(this.clock.monotonic()*1e3-this.startMs)}};function Dp(t,e,r,i,n,o={}){let s=n.elapsedMs;return new Qs({op:t,path:e,source:r,bytes:i,timestamp:Math.floor(n.clock.now()*1e3),durationMs:s,fingerprint:o.fingerprint??null,revision:o.revision??null,mountId:W().recording?.mountId??null,executionId:Iv()})}function Ik(t){t.op!==\"read\"&&W().write?.context?.observe?.(t);let e=W().commandSink;e!==null&&(e[1].push(t),e[0]!==null&&e[0]!==e[1]&&e[0].push(t))}function Vv(t,e,r,i,n,o={}){let s=W().recording;if(s===null)return;let a=Dp(t,e,r,i,n,o);s.records.push(a),Ik(a)}var Pk=2e3,Ok=Object.assign(Object.create(null),Object.fromEntries([\"cat\",\"grep\",\"rg\",\"head\",\"tail\"].map(t=>[t,new dt({maxLines:Pk})])));var Cp=\"@all\";function Zv(t,e){return Object.hasOwn(t,e)?t[e]??null:null}function Wv(t,e){return[Zv(t,e),Zv(t,Cp)]}function Nk(t,e=[],r=null,i=null,n={},o={}){let s=[...Wv(o,t),i],a=[...Wv(n,t),r,Ok[t]??null];return e.length===0?dt.layered([...s,...a]):dt.aggr(e.map(l=>dt.layered([...s,l.commandLimits.get(t)??null,l.commandLimits.get(Cp)??null,...a,l.defaultLimit])))}function Gv(t,e=null,r=null,i={},n={}){return Nk(e??Cp,[t],r,null,i,n)?.walkLimit??-1}function Kv(t,e,r){let i=se(r),n=new Set;for(let o of e){if(!o.startsWith(i))continue;let s=o.slice(i.length).split(\"/\",1)[0]??\"\";s===\"\"||n.has(s)||!Qe(t,o)||n.add(s)}return[...n].sort(ue)}function Rk(t,e,r){let i=se(r),n=[];for(let o of e){let s=se(o);s===i||!s.startsWith(i)||n.push(j(s))}return Kv(t,n,r)}function Dk(t,e,r){if(e===null)return[];let i=e.symlinkTargets(),n=se(r),o=[...i.keys()].filter(l=>l.startsWith(n)),s=$v(t,o,i),a=o.filter((l,u)=>s[u]);return Kv(t,a,r)}function Hv(t,e,r,i){return[...new Set([...Rk(t,e,i),...Dk(t,r,i)])].sort(ue)}function Ck(t,e,r){return Qe(t,r)?t===null||e===null?!0:!Ap(t,r,e.symlinkTargets()):!1}var ta=class{constructor(e,r,i,n){this.links=e;this.allRows=r;this.sessionId=i;this.visibility=n}links;allRows;sessionId;visibility;get linked(){return this.links!==null}visible(e){let r=M.fromStrPath(e,void 0,\"/\").virtual;return Ck(this.visibility(),this.links,r)}hidesUnder(e){let r=M.fromStrPath(e,void 0,\"/\").virtual,i=this.visibility();if(hi(i,r))return!0;if(this.links===null||!hi(i,\"/\"))return!1;let n=`${j(r)}/`;return[...this.links.symlinkTargets().keys()].some(o=>o===r||o.startsWith(n)||r.startsWith(`${j(o)}/`))}rows(){return[...this.allRows()].sort((e,r)=>r.prefix.length-e.prefix.length)}owner(e){let r=this.rows(),i=fn(r.map(n=>n.prefix),e);return r.find(n=>n.prefix===i)??null}served(){return this.rows().filter(e=>e.visible===void 0||e.visible===null||e.visible(this.sessionId))}shown(){let e=this.visibility();return this.served().filter(r=>Qe(e,Ye(r.prefix)))}mountOf(e){let r=M.fromStrPath(e,void 0,\"/\").virtual;if(!Qe(this.visibility(),r))return null;let i=fn(this.served().map(n=>n.prefix),r);return i===null?null:Ye(i)}isMount(e){let r=Ye(M.fromStrPath(e,void 0,\"/\").virtual);return this.shown().some(i=>Ye(i.prefix)===r)}submounts(e){let r=Ye(M.fromStrPath(e,void 0,\"/\").virtual),i=this.visibility();if(!Qe(i,r))return[];let n=se(r),o=new Set;for(let s of this.served()){let a=Ye(s.prefix);if(!(a===r||!se(a).startsWith(n))){for(;a!==r&&!Qe(i,a);)a=a.slice(0,a.lastIndexOf(\"/\"))||\"/\";o.add(a)}}return[...o].sort(ue)}isLink(e){return this.links!==null&&this.visible(e)&&this.links.isLink(e)}linkStatAt(e){return this.links===null||!this.visible(e)?null:this.links.linkStatAt(e)}symlinkTargets(){if(this.links===null)return new Map;let e=this.links.symlinkTargets(),r=this.visibility();return r===null||!hi(r,\"/\")?e:new Map([...e].filter(([i])=>this.visible(i)))}linkStatsBelow(e){return this.links===null?[]:this.links.linkStatsBelow(e).filter(([r])=>this.visible(r))}linkNamesUnder(e){if(this.links===null)return new Set;let r=e===\"/\"?\"/\":`${j(e)}/`;return new Set([...this.links.linkNamesUnder(e)].filter(i=>this.visible(r+i)))}readlink(e){return this.links===null||!this.visible(e)?null:this.links.readlink(e)}follow(e){return this.links===null||!this.visible(e)?e:this.links.follow(e)}followParent(e){return this.links===null||!this.visible(e)?e:this.links.followParent(e)}owed(e){return Hv(this.visibility(),this.served().map(r=>r.prefix),this.links,e)}mounts(e,r=W().command,i=W().session?.commandLimits??{}){let n=W(),o=r===n.command?n.declared:null,s=l=>{if(e)return[];let u=se(l);return this.served().map(c=>c.prefix).filter(c=>c!==u&&c.startsWith(u)).sort(ue).map(c=>j(c)||\"/\")},a=l=>{let u=this.served(),c=fn(u.map(d=>d.prefix),l);return u.find(d=>d.prefix===c)??null};return{descendants:s,visibleDescendants:l=>{let u=this.visibility();return s(l).filter(c=>Qe(u,c))},isRoot:l=>!e&&this.served().some(u=>u.prefix===se(l)),rootOf:l=>a(l)?.prefix??\"/\",answers:(l,u)=>!e&&(a(l)?.calls?.has(u)??!1),searchable:l=>e?null:a(l)?.searchable??null,walkLimit:l=>{let u=a(l);return u===null?-1:Gv({commandLimits:new Map(u.commandLimits??[]),defaultLimit:new dt({walkLimit:u.walkLimit??-1})},r,o,u.workspaceLimits??{},i)}}}};var Jv,zk,Uk,Mk;function Lk(t,e){if(t instanceof Uint8Array)return t.byteLength;for(let r of e)if(r instanceof Uint8Array)return r.byteLength;return 0}async function*jk(t,e){let r=t[Symbol.asyncIterator]();try{for(yield new Uint8Array;;){let i=await r.next();if(i.done===!0)return;yield i.value}}finally{await r.return?.(),await e()}}var na=class t{static{Jv=e=>e.reader(),zk=(e,r,i)=>{let n=o=>{let s=e.reader(),a=i?s.follow(r):s.followParent(r),l=s.owner(a);return l===null?Promise.resolve(null):Promise.resolve(Uv(a,l.prefix,l.mode,o??void 0))};return e.bind===null?n(null):e.bind(e.sessionId,n)},Uk=e=>e.follow,Mk=(e,r)=>e.forCaller(r)}dispatchFn;namespace;sink;bind;dispatchAs;caller;sessionId;recorded;follow;ledger;clock;served;constructor(e,r=null,i=null,n={}){this.dispatchFn=e,this.namespace=r,this.sink=i,this.bind=n.bind??null,this.dispatchAs=n.dispatchAs??null,this.caller=n.caller??null,this.sessionId=n.sessionId??null,this.recorded=n.records??[],this.follow=n.follow??null,this.ledger=n.ledger??!0,this.served=n.served,this.clock=n.clock??new rr}options(){return{bind:this.bind,dispatchAs:this.dispatchAs,sessionId:this.sessionId,records:this.recorded,clock:this.clock}}forSession(e){return new t(this.dispatchFn,this.namespace,this.sink,{...this.options(),sessionId:e})}forCaller(e){return new t(this.dispatchFn,this.namespace,this.sink,{...this.options(),caller:{...this.caller,...e}})}servedBy(e){return new t(this.dispatchFn,this.namespace,this.sink,{...this.options(),caller:this.caller,follow:this.follow,ledger:this.ledger,served:e})}over(e){return new t(e,this.namespace,null,{sessionId:this.sessionId,follow:this.follow,ledger:!1})}reader(){return this.namespace===null?new ta(null,()=>[],this.sessionId,()=>Pp()):this.namespace(this.sessionId)}mountOf(e){return this.reader().mountOf(e)}isMount(e){return this.reader().isMount(e)}submounts(e){return this.reader().submounts(e)}dispatch=async(e,r,i=[],n={},o)=>this.ledger?[await this.through(e,r,i,n),new Xs]:this.dispatchFn(e,M.fromStrPath(r,void 0,\"/\"),i,n,o);async through(e,r,i=[],n={},o){if(!this.ledger)return(await this.dispatch(e,r,i,n))[0];let s=new ea(this.clock),a=new Js,l=typeof r==\"string\"?r:r.virtual,u=W(),c=qe,d=!c||u.recording?.ledger===this.recorded?null:{records:[],mountId:null,ledger:null,clock:this.clock},f=[],p=c&&d===null?u.commandSink?.[0]??null:null,m=c?{...u,...d===null?{}:{recording:d},commandSink:[f,f]}:u,y=null,_=(T=null)=>{y=T?.sessionId??Ov()?.sessionId??null;let P=M.fromStrPath(r,void 0,\"/\"),O=T===null||this.dispatchAs===null?this.dispatchFn:this.dispatchAs(T),D=this.caller===null?void 0:{...W(),...this.caller};return O(e,P,i,n,a,D)},k=async(T,P=!0)=>{let O=a.path??l,D=this.reader().owner(O),Y=D===null?null:a.source??D.kind,De=a.bytes??Lk(T,i);if(!c){if(!P||!a.completed||Y===null)return;let tt=Dp(e,O,Y,De,s);this.recorded.push(tt),this.sink!==null&&await this.sink(tt,this.sessionFor(y));return}if(P&&f.length===0&&a.completed&&Y!==null&&Le(m,Vv)(e,O,Y,De,s),p?.push(...f),d===null||d.records.length===0)return;let dr=d.records.splice(0);for(let tt of dr)this.recorded.push(tt);if(this.sink===null)return;let fr=this.sessionFor(y);for(let tt of dr)await this.sink(tt,fr)},S;try{let T=o??this.sessionId,P=()=>this.bind===null?_():this.bind(T,_),[O]=await(c?Te(m,P):P());S=O}catch(T){throw await k(null),T}finally{(e===\"write\"||e===\"append\"||e===\"pwrite\")&&await Np(i[0]??n.data??null)}if(e===\"write\"&&n.admit_only===!0||\"retained\"in n)return await k(void 0,!1),S;if(S!==null&&typeof S==\"object\"&&Symbol.asyncIterator in S){let T=jk(S,()=>k(null));return await T.next(),T}return await k(S),S}sessionFor(e){return e??this.sessionId??\"\"}async read(e,r={},i){let n=r.raw===!0?{filetype:null}:{},o=r.offset??0,s=r.size??null;return(o!==0||s!==null)&&Object.assign(n,{offset:o,size:s}),r.stream!==!0?await this.through(\"read\",e,[],n,i):Mv(await this.through(\"read\",e,[],{...n,stream:!0},i))}async write(e,r,i){let n=typeof r==\"string\"?new TextEncoder().encode(r):r;await this.through(\"write\",e,[n],{},i)}async append(e,r,i){await this.through(\"append\",e,[r],{},i)}async pwrite(e,r,i,n){await this.through(\"pwrite\",e,[r,i],{},n)}async readdir(e,r){return await this.through(\"readdir\",e,[],{},r)??[]}async stat(e,r,i={}){let n={...i.nofollow===!0?{nofollow:!0}:{},...i.fresh===!0?{fresh:!0}:{}};return await this.through(\"stat\",e,[],n,r)}async exists(e,r){try{return await this.stat(e,r),!0}catch(i){if(ce(i)||zt(i))return!1;throw i}}async isDir(e,r){try{return(await this.stat(e,r)).type===ie.DIRECTORY}catch(i){if(ce(i)||zt(i))return!1;throw i}}async isFile(e,r){try{return(await this.stat(e,r)).type!==ie.DIRECTORY}catch(i){if(ce(i)||zt(i))return!1;throw i}}async mkdir(e,r){await this.through(\"mkdir\",e,[],{},r)}async create(e,r){await this.through(\"create\",e,[],{},r)}async symlink(e,r,i){await this.through(\"symlink\",e,[],{target:r},i)}async readlink(e,r){return await this.through(\"readlink\",e,[],{},r)}async setattr(e,r={},i){let{nofollow:n=!1,...o}=r;return await this.through(\"setattr\",e,[],{...o,nofollow:n},i)}async getxattr(e,r,i={},n){let o={name:r,nofollow:i.nofollow===!0};return await this.through(\"getxattr\",e,[],o,n)}async listxattr(e,r={},i){let n={nofollow:r.nofollow===!0};return await this.through(\"listxattr\",e,[],n,i)}async setxattr(e,r,i,n={},o){let s={name:r,value:i,create:n.create===!0,replace:n.replace===!0,nofollow:n.nofollow===!0};await this.through(\"setxattr\",e,[],s,o)}async removexattr(e,r,i={},n){await this.through(\"removexattr\",e,[],{name:r,nofollow:i.nofollow===!0},n)}async truncate(e,r,i){await this.through(\"truncate\",e,[r],{},i)}async unlink(e,r){await this.through(\"unlink\",e,[],{},r)}async rmdir(e,r){await this.through(\"rmdir\",e,[],{},r)}async rename(e,r,i){await this.through(\"rename\",e,[M.fromStrPath(r,void 0,\"/\")],{},i)}async listFiles(e,r){let i=await this.readdir(e,r),n=[];for(let o of i)await this.isFile(o,r)&&n.push(o.slice(o.lastIndexOf(\"/\")+1));return n}};function ra(t){return Jv(t)}var ft=Object.freeze({TIMED_STATEMENT:\"timed_statement\",COMMAND:\"command\",PIPELINE:\"pipeline\",LIST:\"list\",REDIRECTED_STATEMENT:\"redirected_statement\",SUBSHELL:\"subshell\",IF_STATEMENT:\"if_statement\",FOR_STATEMENT:\"for_statement\",WHILE_STATEMENT:\"while_statement\",CASE_STATEMENT:\"case_statement\",CASE_ITEM:\"case_item\",FUNCTION_DEFINITION:\"function_definition\",DECLARATION_COMMAND:\"declaration_command\",UNSET_COMMAND:\"unset_command\",TEST_COMMAND:\"test_command\",COMPOUND_STATEMENT:\"compound_statement\",NEGATED_COMMAND:\"negated_command\",VARIABLE_ASSIGNMENT:\"variable_assignment\",VARIABLE_ASSIGNMENTS:\"variable_assignments\",FOR:\"for\",SELECT:\"select\",WHILE:\"while\",UNTIL:\"until\",EXPORT:\"export\",LOCAL:\"local\",WORD:\"word\",NUMBER:\"number\",COMMAND_NAME:\"command_name\",VARIABLE_NAME:\"variable_name\",SIMPLE_EXPANSION:\"simple_expansion\",EXPANSION:\"expansion\",COMMAND_SUBSTITUTION:\"command_substitution\",ARITHMETIC_EXPANSION:\"arithmetic_expansion\",CONCATENATION:\"concatenation\",BRACE_EXPRESSION:\"brace_expression\",STRING:\"string\",STRING_CONTENT:\"string_content\",RAW_STRING:\"raw_string\",ANSI_C_STRING:\"ansi_c_string\",TRANSLATED_STRING:\"translated_string\",PROCESS_SUBSTITUTION:\"process_substitution\",EXTGLOB_PATTERN:\"extglob_pattern\",REGEX:\"regex\",DO_GROUP:\"do_group\",ELIF_CLAUSE:\"elif_clause\",ELSE_CLAUSE:\"else_clause\",FILE_REDIRECT:\"file_redirect\",HEREDOC_REDIRECT:\"heredoc_redirect\",HEREDOC_BODY:\"heredoc_body\",HEREDOC_START:\"heredoc_start\",HEREDOC_END:\"heredoc_end\",HEREDOC_CONTENT:\"heredoc_content\",HERESTRING_REDIRECT:\"herestring_redirect\",FILE_DESCRIPTOR:\"file_descriptor\",ARRAY:\"array\",AND:\"&&\",OR:\"||\",SEMI:\";\",BACKGROUND:\"&\",PIPE:\"|\",PIPE_STDERR:\"|&\",REDIRECT_OUT:\">\",REDIRECT_CLOBBER:\">|\",REDIRECT_APPEND:\">>\",REDIRECT_IN:\"<\",REDIRECT_STDERR:\">&\",REDIRECT_DUP_IN:\"<&\",REDIRECT_CLOSE_OUT:\">&-\",REDIRECT_CLOSE_IN:\"<&-\",REDIRECT_READWRITE:\"<>\",REDIRECT_BOTH:\"&>\",REDIRECT_BOTH_APPEND:\"&>>\",HEREDOC_START_TOKEN:\"<<\",HERESTRING_TOKEN:\"<<<\",OPEN_PAREN:\"(\",CLOSE_PAREN:\")\",OPEN_BRACE:\"{\",CLOSE_BRACE:\"}\",OPEN_BRACKET:\"[\",CLOSE_BRACKET:\"]\",DOUBLE_OPEN_PAREN:\"((\",DOUBLE_CLOSE_PAREN:\"))\",DOUBLE_SEMICOLON:\";;\",DQUOTE:'\"',IF:\"if\",THEN:\"then\",ELIF:\"elif\",ELSE:\"else\",FI:\"fi\",IN:\"in\",DO:\"do\",DONE:\"done\",CASE:\"case\",ESAC:\"esac\",FUNCTION:\"function\",PROGRAM:\"program\",BINARY_EXPRESSION:\"binary_expression\",UNARY_EXPRESSION:\"unary_expression\",NEGATION_EXPRESSION:\"negation_expression\",PARENTHESIZED_EXPRESSION:\"parenthesized_expression\",TERNARY_EXPRESSION:\"ternary_expression\",POSTFIX_EXPRESSION:\"postfix_expression\",ARITH_OPEN:\"((\",ARITH_CLOSE:\"))\",C_STYLE_FOR_STATEMENT:\"c_style_for_statement\",TEST_OPERATOR:\"test_operator\",SPECIAL_VARIABLE_NAME:\"special_variable_name\",COMMENT:\"comment\",ERROR:\"ERROR\"}),_R=Object.freeze({STDOUT:\"stdout\",STDERR:\"stderr\",STDIN:\"stdin\",READWRITE:\"readwrite\",STDERR_TO_STDOUT:\"stderr_to_stdout\",HEREDOC:\"heredoc\",HERESTRING:\"herestring\",AMBIGUOUS:\"ambiguous\",UNEXPANDED:\"unexpanded\"});var A=Object.freeze({PWD:\"pwd\",CD:\"cd\",EXPORT:\"export\",UNSET:\"unset\",LOCAL:\"local\",DECLARE:\"declare\",TYPESET:\"typeset\",READONLY:\"readonly\",SET:\"set\",READ:\"read\",MAPFILE:\"mapfile\",READARRAY:\"readarray\",SHIFT:\"shift\",GETOPTS:\"getopts\",LET:\"let\",TRAP:\"trap\",SHOPT:\"shopt\",UMASK:\"umask\",ALIAS:\"alias\",UNALIAS:\"unalias\",EXEC:\"exec\",TEST:\"test\",BRACKET:\"[\",DOUBLE_BRACKET:\"[[\",ECHO:\"echo\",PRINTF:\"printf\",SOURCE:\"source\",DOT:\".\",EVAL:\"eval\",COMMAND:\"command\",TYPE:\"type\",WHICH:\"which\",HELP:\"help\",TRUE:\"true\",FALSE:\"false\",COLON:\":\",BREAK:\"break\",CONTINUE:\"continue\",RETURN:\"return\",EXIT:\"exit\",PRINTENV:\"printenv\",ENV:\"env\",WHOAMI:\"whoami\",MAN:\"man\",HISTORY:\"history\",WAIT:\"wait\",FG:\"fg\",KILL:\"kill\",JOBS:\"jobs\",DISOWN:\"disown\",PS:\"ps\",SLEEP:\"sleep\",BASH:\"bash\",SH:\"sh\",PYTHON:\"python\",PYTHON3:\"python3\",NODE:\"node\",JS:\"js\",XARGS:\"xargs\",TIMEOUT:\"timeout\"}),oe=Object.freeze({GRAMMAR:\"grammar\",TOOL:\"tool\"}),$=Object.freeze({WORKING_DIRECTORY:\"working-directory\",VARIABLES:\"variables\",SHELL_STATE:\"shell-state\",CONDITIONS:\"conditions\",OUTPUT:\"output\",RUNNING_LINES:\"running-lines\",NAME_LOOKUP:\"name-lookup\",CONTROL_FLOW:\"control-flow\",ENVIRONMENT:\"environment\",MANUALS_AND_HISTORY:\"manuals-and-history\",JOB_CONTROL:\"job-control\",CLOCK:\"clock\",NESTED_SHELLS:\"nested-shells\",INTERPRETERS:\"interpreters\",COMMAND_RUNNERS:\"command-runners\"});var ER=2**32;var ia=126;var Fk=new Set([ft.NEGATED_COMMAND]),TR=new Set([...Fk,ft.LIST,ft.COMPOUND_STATEMENT,ft.IF_STATEMENT,ft.WHILE_STATEMENT,ft.FOR_STATEMENT,ft.C_STYLE_FOR_STATEMENT,ft.CASE_STATEMENT]),AR=Object.freeze({a:\"allexport\",b:\"notify\",e:\"errexit\",f:\"noglob\",h:\"hashall\",k:\"keyword\",m:\"monitor\",n:\"noexec\",p:\"privileged\",t:\"onecmd\",u:\"nounset\",v:\"verbose\",x:\"xtrace\",B:\"braceexpand\",C:\"noclobber\",E:\"errtrace\",H:\"histexpand\",P:\"physical\",T:\"functrace\"}),Bk=new Set([\"allexport\",\"braceexpand\",\"emacs\",\"errexit\",\"errtrace\",\"functrace\",\"hashall\",\"histexpand\",\"history\",\"ignoreeof\",\"interactive-comments\",\"keyword\",\"monitor\",\"noclobber\",\"noexec\",\"noglob\",\"nolog\",\"notify\",\"nounset\",\"onecmd\",\"physical\",\"pipefail\",\"posix\",\"privileged\",\"verbose\",\"vi\",\"xtrace\"]),IR=new Map([...Bk].sort(ue).map(t=>[t,[\"braceexpand\",\"hashall\",\"interactive-comments\"].includes(t)]));var Vk=new Map([[$.WORKING_DIRECTORY,oe.GRAMMAR],[$.VARIABLES,oe.GRAMMAR],[$.SHELL_STATE,oe.GRAMMAR],[$.CONDITIONS,oe.GRAMMAR],[$.OUTPUT,oe.GRAMMAR],[$.RUNNING_LINES,oe.GRAMMAR],[$.NAME_LOOKUP,oe.GRAMMAR],[$.CONTROL_FLOW,oe.GRAMMAR],[$.ENVIRONMENT,oe.TOOL],[$.MANUALS_AND_HISTORY,oe.TOOL],[$.JOB_CONTROL,oe.TOOL],[$.CLOCK,oe.TOOL],[$.NESTED_SHELLS,oe.TOOL],[$.INTERPRETERS,oe.TOOL],[$.COMMAND_RUNNERS,oe.TOOL]]),Zk=new Map([[A.PWD,$.WORKING_DIRECTORY],[A.CD,$.WORKING_DIRECTORY],[A.EXPORT,$.VARIABLES],[A.UNSET,$.VARIABLES],[A.LOCAL,$.VARIABLES],[A.DECLARE,$.VARIABLES],[A.TYPESET,$.VARIABLES],[A.READONLY,$.VARIABLES],[A.SET,$.VARIABLES],[A.READ,$.VARIABLES],[A.MAPFILE,$.VARIABLES],[A.READARRAY,$.VARIABLES],[A.SHIFT,$.VARIABLES],[A.GETOPTS,$.VARIABLES],[A.LET,$.VARIABLES],[A.TRAP,$.SHELL_STATE],[A.SHOPT,$.SHELL_STATE],[A.UMASK,$.SHELL_STATE],[A.ALIAS,$.SHELL_STATE],[A.UNALIAS,$.SHELL_STATE],[A.EXEC,$.SHELL_STATE],[A.TEST,$.CONDITIONS],[A.BRACKET,$.CONDITIONS],[A.DOUBLE_BRACKET,$.CONDITIONS],[A.ECHO,$.OUTPUT],[A.PRINTF,$.OUTPUT],[A.SOURCE,$.RUNNING_LINES],[A.DOT,$.RUNNING_LINES],[A.EVAL,$.RUNNING_LINES],[A.COMMAND,$.RUNNING_LINES],[A.TYPE,$.NAME_LOOKUP],[A.WHICH,$.NAME_LOOKUP],[A.HELP,$.NAME_LOOKUP],[A.TRUE,$.CONTROL_FLOW],[A.FALSE,$.CONTROL_FLOW],[A.COLON,$.CONTROL_FLOW],[A.BREAK,$.CONTROL_FLOW],[A.CONTINUE,$.CONTROL_FLOW],[A.RETURN,$.CONTROL_FLOW],[A.EXIT,$.CONTROL_FLOW],[A.PRINTENV,$.ENVIRONMENT],[A.ENV,$.ENVIRONMENT],[A.WHOAMI,$.ENVIRONMENT],[A.MAN,$.MANUALS_AND_HISTORY],[A.HISTORY,$.MANUALS_AND_HISTORY],[A.WAIT,$.JOB_CONTROL],[A.FG,$.JOB_CONTROL],[A.KILL,$.JOB_CONTROL],[A.JOBS,$.JOB_CONTROL],[A.DISOWN,$.JOB_CONTROL],[A.PS,$.JOB_CONTROL],[A.SLEEP,$.CLOCK],[A.BASH,$.NESTED_SHELLS],[A.SH,$.NESTED_SHELLS],[A.PYTHON,$.INTERPRETERS],[A.PYTHON3,$.INTERPRETERS],[A.NODE,$.INTERPRETERS],[A.JS,$.INTERPRETERS],[A.XARGS,$.COMMAND_RUNNERS],[A.TIMEOUT,$.COMMAND_RUNNERS]]),PR=new Set([...Zk].filter(([,t])=>Vk.get(t)===oe.GRAMMAR).map(([t])=>t));var oa=class t{constructor(e,r,i,n=null,o=null,s=null,a=null){this.dispatch=e;this.resolver=r;this.context=i;this.files=n;this.getSession=o;this.mountPrefixes=s;this.bridge=a}dispatch;resolver;context;files;getSession;mountPrefixes;bridge;static overBridge(e,r,i){return new t(null,r,i,null,null,null,e)}capture(){return this.context===void 0?Wk(this):this.context(this)}};function zp(t,e){return zv({kind:\"deny\",reason:e,policy:\"\",askId:null}),{stdout:new Uint8Array,stderr:new TextEncoder().encode(`${t}: Permission denied\n`),exitCode:ia}}function Wk(t,e={},r=W()){let i=e.dispatch??t.dispatch,n=i===null?null:Pt(r,i),o=n===null?void 0:e.ctx?.vfs?.over(n)??new na(n,null,null,{ledger:!1}),s=e.ctx?.session,a=s===void 0?void 0:{...s,set:Pt(r,s.set.bind(s)),unset:Pt(r,s.unset.bind(s)),mark:Pt(r,s.mark.bind(s))},l={...e.ctx};return delete l.vfs,Object.freeze({restrictedMounts:Object.freeze(e.restrictedMounts??[]),ctx:Object.freeze({stdin:null,flags:{},...l,...o!==void 0?{vfs:o}:{},cwd:e.ctx?.cwd??M.fromStrPath(\"/\"),env:Object.freeze({...e.ctx?.env}),...a===void 0?{}:{session:a}}),caller:r})}var sa=class{constructor(e,r){this.resolver=e;this.caller=r}resolver;caller;prefixes(){return Le(this.caller,()=>this.resolver.prefixes())()}ownerOf(e){return Le(this.caller,()=>this.resolver.ownerOf(e))()}linkChildren(e){return Le(this.caller,()=>this.resolver.linkChildren(e))()}};function Xv(t){return async(e,r,i,n,o)=>{switch(e){case\"read\":{let s=o?.raw===!0?{filetype:null}:{};return(o?.offset!==void 0||o?.size!==void 0)&&(s.offset=o.offset??0,s.size=o.size??null),o?.direct===!0&&(s.direct=!0),o?.retained!==void 0&&(s.retained=o.retained),await t(\"read\",r,[],s)}case\"write\":{if(o?.admitOnly===!0){await t(\"write\",r,[],{admit_only:!0});return}if(i===void 0)throw new Error(\"write op requires bytes\");let s=i instanceof Uint8Array?i:new Uint8Array(i);await t(\"write\",r,[s]);return}case\"append\":{if(i===void 0)throw new Error(\"append op requires bytes\");let s=i instanceof Uint8Array?i:new Uint8Array(i);await t(\"append\",r,[s]);return}case\"pwrite\":{if(i===void 0)throw new Error(\"pwrite op requires bytes\");await t(\"pwrite\",r,[i,o?.offset??0]);return}case\"stat\":return await t(\"stat\",r,[],{...o?.nofollow===!0?{nofollow:!0}:{},...o?.admitOnly===!0?{admit_only:!0}:{},...o?.retained!==void 0?{retained:o.retained}:{}});case\"create\":await t(\"create\",r);return;case\"truncate\":await t(\"truncate\",r,[o?.length??0]);return;case\"unlink\":await t(\"unlink\",r);return;case\"mkdir\":await t(\"mkdir\",r,[],o?.parents===!0?{parents:!0}:{});return;case\"rmdir\":await t(\"rmdir\",r);return;case\"rename\":{if(n===void 0)throw new Error(\"rename op requires dst\");await t(\"rename\",r,[M.fromStrPath(n,void 0,\"/\")]);return}case\"symlink\":{if(n===void 0)throw new Error(\"symlink op requires dst\");await t(\"symlink\",r,[],{target:n});return}case\"readlink\":return await t(\"readlink\",r);case\"setattr\":{if(o===void 0)throw new Error(\"setattr op requires attrs\");await t(\"setattr\",r,[],o);return}case\"readdir\":return await t(\"readdir\",r)??[];case\"getxattr\":return await t(\"getxattr\",r,[],{name:n??\"\",nofollow:o?.nofollow===!0});case\"listxattr\":return await t(\"listxattr\",r,[],{nofollow:o?.nofollow===!0});case\"setxattr\":await t(\"setxattr\",r,[],{name:n??\"\",value:i??new Uint8Array,create:o?.create===!0,replace:o?.replace===!0,nofollow:o?.nofollow===!0});return;case\"removexattr\":await t(\"removexattr\",r,[],{name:n??\"\",nofollow:o?.nofollow===!0});return}}}var ir=class{source;links;constructor(e,r=null){this.source=e,this.links=r}prefixes(){return[...this.source()]}ownerOf(e){return fn(this.source(),e)}linkChildren(e){return this.links===null?new Set:this.links(e)}};var un=class{count=0;waiters=[];acquire(){this.count++;let e=!1;return()=>{if(!e&&(e=!0,this.count--,this.count===0))for(let r of this.waiters.splice(0))r()}}wait(){return this.count===0?Promise.resolve():new Promise(e=>{this.waiters.push(e)})}hold(e){return e instanceof Uint8Array?e:new Up(e,this.acquire())}},Up=class{constructor(e,r){this.release=r;this.source=e[Symbol.asyncIterator]()}release;source;pullLock=new yi;closing;[Symbol.asyncIterator](){return this}isClosing(){return this.closing!==void 0}next(){return this.pullLock.withLock(\"\",async()=>{if(this.isClosing())return{done:!0,value:void 0};try{let e=await this.source.next();return e.done===!0&&this.closing===void 0&&this.release(),e}catch(e){throw this.closing===void 0&&this.release(),e}})}return(){return this.closing??=this.finish(),this.closing}async finish(){let e=Promise.resolve().then(()=>this.source.return?.());return e.catch(()=>{}),this.pullLock.withLock(\"\",async()=>{try{return await e,{done:!0,value:void 0}}finally{this.release()}})}};var Ot=class{available;waiters=[];constructor(e){if(e<1)throw new Error(\"maxConcurrency must be at least 1\");this.available=e}async acquire(e){if(e?.aborted===!0)throw de(e);if(this.available>0?this.available-=1:await new Promise((i,n)=>{let o=()=>{this.waiters.splice(this.waiters.indexOf(s),1),n(de(e))},s=()=>{e?.removeEventListener(\"abort\",o),i()};this.waiters.push(s),e?.addEventListener(\"abort\",o,{once:!0})}),Ut(e))throw this.release(),de(e);let r=!1;return()=>{r||(r=!0,this.release())}}release(){let e=this.waiters.shift();if(e!==void 0){e();return}this.available+=1}};var YR=new TextEncoder;var qR=Me();var Gk=Me();function Yv(){return Gk.liveStores()}var Kk=/^[ \\t\\n\\r\\f\\v]*([0-9]+)(?:([KMG])B?)?[ \\t\\n\\r\\f\\v]*$/i,Hk={K:1024,M:1048576,G:1073741824};function qv(t,e){let r=null;if(typeof t==\"number\")r=t;else if(typeof t==\"string\"){let i=Kk.exec(t);if(i!==null){let n=i[2];r=Number(i[1])*(n===void 0?1:Hk[n.toUpperCase()]??1)}}if(r===null||!Number.isSafeInteger(r)||r<0){let i=typeof t==\"number\"&&!Number.isFinite(t)?String(t):JSON.stringify(t);throw new Error(`${e} must be a size like 100MB, got ${i}`)}return r}function aa(t){return t==null?null:qv(t,\"max_memory\")}function Qv(t,e){if(t.home!==void 0&&t.home!==\"\")return t.home;let i=globalThis.process?.env?.[e];return i!==void 0&&i!==\"\"?i:void 0}function e0(t,e,r=\"runtime\"){let i=t??{};for(let n of Object.keys(i))if(!e.includes(n)){let o=e.length>0?`expected: ${e.map(s=>`'${s}'`).join(\", \")}`:\"none allowed\";throw new Error(`unknown ${r} config key '${n}' (${o})`)}if(\"env\"in i){let n=i.env;if(n===null||typeof n!=\"object\"||Array.isArray(n)||Object.values(n).some(o=>typeof o!=\"string\"))throw new Error(\"runtime env must map strings to strings\")}return{...i}}var bi=class extends Error{constructor(e){super(e),this.name=\"UnsupportedExecutionError\"}};var Jk=Symbol.for(\"mirage.lineExecutor\");function t0(t){return t[Jk]===!0}var Xk=Symbol.for(\"mirage.processExecutor\");function n0(t){return t[Xk]===!0}var la=class{captures;reach=\"process\";filesystem=[];config;binding=null;activity=new un;retired=!1;opening=null;closing=null;constructor(e={},r=[],i=[]){this.captures=e.captures!==void 0?e.captures.slice():r.slice(),this.config=e0(e.config,i)}get fileEffectsDispatched(){return this.reach===\"workspace\"}settle(){return Promise.resolve()}bind(e){if(this.retired)throw new Error(`${this.name}: runtime was removed from its workspace; construct a new one`);if(this.binding!==null&&this.binding!==e)throw new Error(`${this.name}: runtime is already bound to another workspace`);this.binding=e}async execute(e,r,i,n={}){let o=this.admit();try{let s=n.kind??\"code\",a=this.binding?.capture(),l=a?.restrictedMounts??[];if(this.reach!==\"workspace\"&&l.length>0&&!this.servesSession(l))return zp(this.name,\"runtime cannot enforce this session's file restrictions\");if(this.reach===\"process\"){for(let m of Yv())if(m.rule!==null||await m.hooked)return zp(this.name,\"runtime cannot enforce this workspace's network\")}let u=await this.engine();if(a===void 0)return await this.runAs(s,u,[...e],[...r],i,n.output,n.errors);let{vfs:c,session:d}=a.ctx,f=i.processes??a.ctx.processes,p={...i,...d!==void 0?{session:d}:{},...f!==void 0?{processes:f}:{}};return c===void 0?delete p.vfs:p.vfs=c,await Te(a.caller,()=>this.runAs(s,u,[...e],[...r],p,n.output,n.errors))}finally{o()}}async runAs(e,r,i,n,o,s,a){if(e===\"process\"&&n.length===0)throw new Error(\"process argv must not be empty\");if(e===\"code\")return this.run(r,i,n,o,s,a);if(e===\"line\"&&t0(this))return this.runLine(r,i,n,o,s,a);if(e===\"process\"&&n0(this))return this.runProcess(r,i,n,o,s,a);throw new bi(`${this.name}: ${e} execution is unsupported`)}run(e,r,i,n,o,s){return Promise.reject(new bi(`${this.name}: code execution is unsupported`))}openEngine(){return Promise.resolve(void 0)}closeEngine(e){return Promise.resolve()}engine(){let e=this.opening??=this.openEngine();return e.catch(r=>{throw this.opening===e&&(this.opening=null),r})}servesSession(e){return!1}admit(){if(this.retired)throw new Error(`${this.name}: runtime was removed from the workspace`);return this.activity.acquire()}async retire(){this.retired=!0,await this.activity.wait()}async close(){let e=this.closing??=this.dropEngine();try{await e}finally{this.closing===e&&(this.closing=null)}}async dropEngine(){let e=this.opening;if(this.opening=null,e===null)return;let r;try{r=await e}catch(i){console.debug(`${this.name}: engine never opened`,i);return}await this.closeEngine(r)}};var r0=\"-\";function Yk(t){let e=t.indexOf(`\n`);return e===-1?\"\":t.slice(e)}function qk(t,e,r,i){if(typeof r.m==\"string\"||typeof r.c==\"string\")return null;let[n]=t;if(n!==void 0)return n;let[o]=e;if(o!==void 0&&o!==r0){let s=i===null?\"/\":typeof i==\"string\"?i:i.virtual;return M.fromStrPath(o,void 0,s===\"\"?\"/\":s)}return null}function ua(t){return{stdout:new Uint8Array,stderr:new TextEncoder().encode(t),exitCode:1}}async function i0(t,e,r,i,n,o,s){let a=new TextDecoder(\"utf-8\",{fatal:!1}),l=r.flags,u=l.c,c=l.m,d=typeof u==\"string\"?u:null,f=null,p=n.payload,m;if(typeof c==\"string\"){if(d=o(c,i),d===null)return ua(`${i}: -m is not supported by the '${s}' runtime\n`);m=[...t.map(k=>k.virtual),...e],p=c}else d!==null?m=[...t.map(k=>k.virtual),...e]:t[0]!==void 0?(f=t[0],m=[...t.slice(1).map(k=>k.virtual),...e],p=n.namesFile===!0?t[0].rawPath:void 0):e[0]===r0?(m=e.slice(1),p=n.stdinOperand):e[0]!==void 0?(f=qk(t,e,l,r.cwd),m=e.slice(1),p=n.namesFile===!0?e[0]:void 0):(m=[],p=n.bareStdin);if(d===null&&f!==null){if(r.vfs===void 0)return ua(`${i}: no dispatch available to read script\n`);let k=new M({virtual:f.virtual,directory:f.directory,pattern:f.pattern,resolved:f.resolved,vfsPath:Lv(f.virtual,jv(f.virtual,f.vfsPath))}),S;try{[S]=await r.vfs.dispatch(\"read\",k)}catch(P){if(!ce(P))throw P;return ua(`${i}: ${f.virtual}: No such file\n`)}let T=S instanceof Uint8Array?S:S==null?new Uint8Array:await je(S);d=a.decode(T),l.x===!0&&(d=Yk(d))}let y=r.stdin;if(d===null){let k=y===null?null:await je(y);if(k===null||k.length===0)return ua(`${i}: no input\n`);d=a.decode(k),y=null}let _=l.scriptCli===!0;return _&&r.spec!==void 0&&(p=r.spec.name),{code:d,args:m,...p!==void 0?{prog:p}:{},stdin:y,...f!==null?{scriptPath:f}:{},scriptCli:_}}var ca=class extends la{static commands=[];argv0Rules={};async run(e,r,i,n,o,s){let a=n.spec?.name??\"\",l=a!==\"\"?a:this.constructor.commands[0]??this.name,u=await i0(r,i,n,l,this.argv0Rules,(c,d)=>this.moduleCode(c,d),this.name);return\"exitCode\"in u?u:this.interpret(e,u,n,o,s)}moduleCode(e,r){return null}version(e,r,i){return Promise.resolve({stdout:new Uint8Array,stderr:new TextEncoder().encode(`${this.name}: version information unavailable\n`),exitCode:1})}};var o0=\"-c\",Mp=\"-\",Qk=\"<stdin>\";function s0(t,e){let r=t.scriptPath;if(r===void 0)return t.prog===\"\"||t.prog===Mp?Qk:null;let i=r.rawPath!==\"\"?r.rawPath:r.virtual;return i.startsWith(\"/\")?i:e===null?r.virtual:`${j(e.virtual)}/${i}`}var e$={payload:o0,stdinOperand:Mp,bareStdin:\"\",namesFile:!0};function t$(t,e){return[\"import importlib.util, runpy, sys\",`_name = ${JSON.stringify(t)}`,`_label = ${JSON.stringify(e)}`,\"try:\",\"    _found = importlib.util.find_spec(_name) is not None\",\"except (ImportError, TypeError, ValueError):\",\"    _found = False\",\"if not _found:\",\"    sys.stderr.write(_label + ': No module named ' + _name + chr(10))\",\"    raise SystemExit(1)\",\"runpy.run_module(_name, run_name='__main__', alter_sys=True)\",\"\"].join(`\n`)}var da=class t extends ca{language=\"python\";static commands=[\"python3\",\"python\"];argv0Rules=e$;runsModules=!0;versionSuffix=\"\";moduleCode(e,r){return this.runsModules?t$(e,r):null}async version(e,r,i){return this.reach!==\"workspace\"?super.version(e,r,i):this.interpret(await this.engine(),{code:`import sys\nprint('Python ' + sys.version.split()[0] + ${JSON.stringify(this.versionSuffix)})`,args:[],stdin:null},{stdin:null,flags:{},cwd:M.fromStrPath(\"/\"),env:e,...r!==void 0?{signal:r}:{},...i!==void 0?{timeoutSeconds:i}:{}})}constructor(e={},r=[]){super(e,t.commands,r)}};var l0=64*1024,Lp=16,a0=new TextEncoder,n$=new TextDecoder,jp=\"mirage-pyodide\",fa=\"x-mirage-pyodide-format\";function cn(t){if(t instanceof Error)return t.message;if(typeof t!=\"object\"||t===null)return String(t);let{name:e,message:r}=t,i=[e,r].filter(o=>typeof o==\"string\"&&o!==\"\");if(i.length>0)return i.join(\": \");let n=Object.keys(t).join(\", \");return`an object with keys: ${n!==\"\"?n:\"(none)\"}`}async function u0(t){try{let e=await t();return e instanceof Uint8Array?{format:1,bytes:e}:{format:0,bytes:a0.encode(JSON.stringify(e??null))}}catch(e){return{format:2,bytes:a0.encode(JSON.stringify({message:cn(e),code:J(e)}))}}}function c0(t,e){if(t===1)return e;let r=JSON.parse(n$.decode(e));if(t===2){let i=r;throw Object.assign(new Error(i.message),{code:i.code})}return r===null?void 0:r}function d0(t,e,r){let i=new SharedArrayBuffer(Lp+l0),n=new Int32Array(i,0,4),o=new Uint8Array(i,Lp);t({...e,kind:\"vfs\",buffer:i});let s,a=0;for(;;){for(;Atomics.load(n,0)===0;){if(r!==void 0&&(Atomics.load(r,0)===2||Atomics.load(r,1)!==0))throw Atomics.store(n,0,-1),Atomics.notify(n,0),new Error(\"the guest worker's file request was interrupted\");Atomics.wait(n,0,0,100)}if(Atomics.load(n,0)===-1)throw new Error(\"the guest worker closed\");s??=new Uint8Array(Atomics.load(n,1));let l=Atomics.load(n,2),u=Atomics.load(n,3);if(s.set(o.subarray(0,l),a),a+=l,Atomics.store(n,0,0),Atomics.notify(n,0),!(a<s.length))return c0(u,s)}}async function f0(t,e){let r=new Int32Array(t,0,4),i=new Uint8Array(t,Lp),{format:n,bytes:o}=await u0(e),s=0;do{if(Atomics.load(r,0)===-1)return;let a=Math.min(l0,o.length-s);for(i.set(o.subarray(s,s+a)),Atomics.store(r,1,o.length),Atomics.store(r,2,a),Atomics.store(r,3,n),Atomics.store(r,0,1),Atomics.notify(r,0),s+=a;Atomics.load(r,0)===1;)await new Promise(l=>setTimeout(l,0))}while(s<o.length)}function p0(t,e,r){let i=crypto.randomUUID();t({...e,kind:\"vfs\",id:i});let n=new XMLHttpRequest;n.open(\"GET\",`${r}?${jp}=wait&id=${i}`,!1),n.responseType=\"arraybuffer\",n.send();let o=n.getResponseHeader(fa);if(o===null)throw new Error(`the guest worker's file bridge answered ${String(n.status)}`);return c0(Number(o),new Uint8Array(n.response))}async function m0(t,e,r){let{format:i,bytes:n}=await u0(r),o=await fetch(`${t}?${jp}=answer&id=${e}`,{method:\"POST\",body:n,headers:{[fa]:String(i)}});if(!o.headers.has(fa))throw new Error(`the guest worker's file bridge answered ${String(o.status)}`)}async function r$(t){return(await fetch(`${t}?${jp}=ping`)).headers.has(fa)}async function h0(){let t=globalThis;if(t.navigator?.serviceWorker?.controller==null||t.location===void 0)return null;let e=t.location.origin+t.location.pathname;return await r$(e)?e:null}var Ae=class extends Error{constructor(e,r){super(e,r),this.name=\"PyodideUnavailableError\"}};function wi(t){return t===void 0?new Ae(\"pyodide reaches the workspace only from its worker, which needs SharedArrayBuffer (a cross-origin isolated page) or a page that pyodide-sw.js controls\"):new Ae(`pyodide could not start its worker: ${cn(t)}`,{cause:t})}var Nt=class extends Error{constructor(e){super(`MemoryError: the run passed max_memory (${e})`),this.name=\"PyodideMemoryError\"}};function g0(t,e,r){let i=t.SOCKFS?.websocket_sock_ops;if(i===void 0)throw new Error(\"pyodide: SOCKFS not found; cannot seal the guest sockets\");let n=r.ENETUNREACH,o=r.ENETDOWN;if(n===void 0||o===void 0)throw new Error(\"pyodide: ERRNO_CODES lacks ENETUNREACH/ENETDOWN\");i.createPeer=()=>{throw new e.ErrnoError(n)},i.listen=()=>{throw new e.ErrnoError(o)}}var y0=()=>{},i$=\"314.0.5\",o$=`https://cdn.jsdelivr.net/pyodide/v${i$}/full/`,s$=\"MIRAGE_PYODIDE_HOME\";function Si(){return typeof globalThis.process?.versions?.node==\"string\"}async function a$(){if(!Si())return null;try{let t=await import(\"node:module\"),e=await import(\"node:path\"),i=t.createRequire(\"https://mirage.invalid/\").resolve(\"pyodide\");return`${e.dirname(i)}/`}catch{return null}}async function v0(t={}){let e=Qv(t,s$)??await a$()??(Si()?null:o$),r=Si()?void 0:globalThis.location?.origin,i=e===null||r===void 0?e:new URL(e,`${r}/`).href,n=i===null||i.endsWith(\"/\")?i:`${i}/`,o=r===void 0?null:n,s;try{s=await(o===null?import(\"pyodide\"):import(`${o}pyodide.mjs`))}catch(l){throw new Ae(o===null?\"python3 requires the optional `pyodide` peer dependency. Install it with `npm i pyodide`.\":`cannot load pyodide from ${o}: ${l instanceof Error?l.message:String(l)}`,{cause:l})}let a={stdout:y0,stderr:y0,jsglobals:Object.create(null)};t.packageBaseUrl!==void 0&&(a.packageBaseUrl=t.packageBaseUrl),t.lockFileURL!==void 0&&(a.lockFileURL=t.lockFileURL),t.packages!==void 0&&t.packages.length>0&&(a.packages=[...t.packages]),n!==null&&(a.indexURL=n);try{let l=await s.loadPyodide(a);return g0(l._module??{},l.FS,l.ERRNO_CODES),l}catch(l){throw new Ae(`python3: failed to initialize pyodide runtime: ${l instanceof Error?l.message:String(l)}`,{cause:l})}}var b0=`\nlet timer = null;\nfunction onMessage(msg) {\n  if (timer !== null) { clearTimeout(timer); timer = null; }\n  if (msg.cancel) return;\n  const cells = new Int32Array(msg.buffer);\n  const gen = msg.gen;\n  const deadline = msg.delayMs == null ? Infinity : Date.now() + msg.delayMs;\n  function tick() {\n    if (Atomics.load(cells, 2) !== gen) return;\n    const reason = Atomics.load(cells, 1) ||\n      (Atomics.load(cells, 3) === 1 ? 2 : Date.now() >= deadline ? 1 : 0);\n    if (reason !== 0) {\n      Atomics.store(cells, 1, reason);\n      Atomics.store(cells, 0, 2);\n    }\n    timer = setTimeout(tick, 10);\n  }\n  tick();\n}\n`,l$=`${b0}\nrequire('node:worker_threads').parentPort.on('message', onMessage);\n`,u$=`${b0}\nself.onmessage = (event) => {\n  if (event.data.ping) self.postMessage('ready');\n  else onMessage(event.data);\n};\n`;async function c$(){try{let{Worker:t}=await import(\"node:worker_threads\"),e=new t(l$,{eval:!0});return e.unref(),{post:r=>{e.postMessage(r)},terminate:()=>{e.terminate()}}}catch{return null}}async function d$(){if(typeof Worker>\"u\"||typeof Blob>\"u\")return null;let t=URL.createObjectURL(new Blob([u$],{type:\"text/javascript\"}));try{let e=new Worker(t);return e.postMessage({ping:!0}),await new Promise((r,i)=>{e.onmessage=()=>{e.onmessage=null,r()},e.onerror=n=>{e.terminate(),i(new Error(`pyodide watchdog failed: ${n.message}`))}}),{post:r=>{e.postMessage(r)},terminate:()=>{e.terminate()}}}catch{return null}finally{URL.revokeObjectURL(t)}}async function w0(t){if(typeof SharedArrayBuffer>\"u\")return null;let e=Si()?await c$():await d$();if(e===null)return null;let r=t??new SharedArrayBuffer(16),i=new Int32Array(r),n=0;return{view:i,arm(o,s){n+=1,Atomics.store(i,0,0),Atomics.store(i,1,0),Atomics.store(i,2,n),Atomics.load(i,3)===1&&(Atomics.store(i,1,2),Atomics.store(i,0,2)),e.post({buffer:r,delayMs:o!==null&&o>0?o*1e3:null,gen:n});let a=null;if(s!==void 0){let c=()=>{Atomics.store(i,1,2),Atomics.store(i,0,2)};s.aborted?c():(s.addEventListener(\"abort\",c,{once:!0}),a=()=>{s.removeEventListener(\"abort\",c)})}let l=!1,u=null;return{disarm:()=>{if(l)return u;l=!0,n+=1,Atomics.store(i,2,n),e.post({cancel:!0}),a!==null&&a();let c=Atomics.load(i,1);return Atomics.store(i,0,0),Atomics.store(i,1,0),u=c===1?\"deadline\":c===2?\"signal\":null,u}}},close(){e.terminate()}}}var f$=[\"process\",\"global\",\"require\",\"fetch\",\"WebSocket\"],p$=[\"NODEFS\",\"NODERAWFS\",\"NATIVEFS_ASYNC\"],m$=[\"mountNodeFS\",\"mountNativeFS\",\"useNodeSockFS\"],h$=[\"createLazyFile\",\"forceLoadFile\",\"createPreloadedFile\",\"preloadFile\"];function g$(t){let e=[];for(let r of f$)r in t&&(Reflect.deleteProperty(t,r),r in t&&!Reflect.defineProperty(t,r,{value:void 0})&&e.push(r));return e}function pa(t){return()=>{throw new Error(`python3: ${t} is disabled in the sandboxed worker`)}}function S0(t){let e=t.startsWith(\"file://\")?t.slice(7):t;return e.includes(\"://\")?null:e}async function y$(t){let e=t._api,r=e?.loadBinaryFile;if(e===void 0||typeof r!=\"function\")return;let i=await import(\"node:path\"),{realpath:n}=await import(\"node:fs/promises\"),o=i.resolve(\".\"),s=[e.config?.indexURL,e.config?.packageBaseUrl,e.config?.packageCacheDir].map(u=>typeof u==\"string\"?S0(u):null).filter(u=>u!==null&&u.length>0).map(u=>i.resolve(o,u)),a=(u,c)=>{let d=i.relative(u,c);return d!==\"..\"&&!d.startsWith(`..${i.sep}`)&&!i.isAbsolute(d)};e.loadBinaryFile=(u,...c)=>{let d=typeof u==\"string\"?S0(u):null,f=d===null?null:i.resolve(o,d),p=f===null?[]:s.filter(m=>a(m,f));if(p.length===0||f===null)throw new Error(`python3: reading '${u}' is not allowed in the sandboxed worker`);return Promise.all([Promise.all(p.map(m=>n(m))),n(f)]).then(([m,y])=>{if(!m.some(_=>a(_,y)))throw new Error(`python3: reading '${u}' is not allowed in the sandboxed worker`);return r.call(e,y,...c)})};let l=t._module;l!==void 0&&typeof l.asyncLoad==\"function\"&&(l.asyncLoad=e.loadBinaryFile)}async function v$(t){await y$(t);let e=t.FS,r=t._module,i=e?.filesystems;for(let s of[i,r])if(s!==void 0)for(let a of p$)Reflect.deleteProperty(s,a);for(let s of h$){e!==void 0&&typeof e[s]==\"function\"&&(e[s]=pa(`FS.${s}()`));let a=`FS_${s}`;r!==void 0&&typeof r[a]==\"function\"&&(r[a]=pa(`${a}()`))}let n=t;for(let s of m$)typeof n[s]==\"function\"&&(n[s]=pa(`${s}()`));let o=t._api;o!==void 0&&typeof o.initializeNodeSockFS==\"function\"&&(o.initializeNodeSockFS=pa(\"initializeNodeSockFS()\"))}function b$(t){throw new Error(`python3: module '${t}' cannot be loaded in the sandboxed worker`)}async function _0(t,e=globalThis){let{registerHooks:r}=await import(\"node:module\");if(typeof r!=\"function\")return;await v$(t),r({resolve:b$});let i=g$(e);if(i.length>0)throw new Ae(`python3: could not remove worker handles: ${i.join(\", \")}`)}var x0={\"Africa/Abidjan\":[[0,\"GMT\",0]],\"Africa/Accra\":[[0,\"GMT\",0]],\"Africa/Addis_Ababa\":[[10800,\"EAT\",0]],\"Africa/Algiers\":[[0,\"WET\",0],[3600,\"WEST\",41468400],[3600,\"CET\",246236400],[7200,\"CEST\",259545600],[3600,\"WEST\",325468800],[3600,\"CET\",357523200]],\"Africa/Asmara\":[[10800,\"EAT\",0]],\"Africa/Asmera\":[[10800,\"EAT\",0]],\"Africa/Bamako\":[[0,\"GMT\",0]],\"Africa/Bangui\":[[3600,\"WAT\",0]],\"Africa/Banjul\":[[0,\"GMT\",0]],\"Africa/Bissau\":[[0,\"GMT\",15777e4]],\"Africa/Blantyre\":[[7200,\"CAT\",0]],\"Africa/Brazzaville\":[[3600,\"WAT\",0]],\"Africa/Bujumbura\":[[7200,\"CAT\",0]],\"Africa/Cairo\":[[7200,\"EET\",0],[10800,\"EEST\",10364400]],\"Africa/Ceuta\":[[0,\"WET\",0],[3600,\"WEST\",141264e3],[3600,\"CET\",448243200],[7200,\"CEST\",512528400]],\"Africa/Conakry\":[[0,\"GMT\",0]],\"Africa/Dakar\":[[0,\"GMT\",0]],\"Africa/Dar_es_Salaam\":[[10800,\"EAT\",0]],\"Africa/Djibouti\":[[10800,\"EAT\",0]],\"Africa/Douala\":[[3600,\"WAT\",0]],\"Africa/Freetown\":[[0,\"GMT\",0]],\"Africa/Gaborone\":[[7200,\"CAT\",0]],\"Africa/Harare\":[[7200,\"CAT\",0]],\"Africa/Johannesburg\":[[7200,\"SAST\",0]],\"Africa/Juba\":[[7200,\"CAT\",0],[10800,\"CAST\",10360800],[10800,\"EAT\",947930400]],\"Africa/Kampala\":[[10800,\"EAT\",0]],\"Africa/Khartoum\":[[7200,\"CAT\",0],[10800,\"CAST\",10360800],[10800,\"EAT\",947930400]],\"Africa/Kigali\":[[7200,\"CAT\",0]],\"Africa/Kinshasa\":[[3600,\"WAT\",0]],\"Africa/Lagos\":[[3600,\"WAT\",0]],\"Africa/Libreville\":[[3600,\"WAT\",0]],\"Africa/Lome\":[[0,\"GMT\",0]],\"Africa/Luanda\":[[3600,\"WAT\",0]],\"Africa/Lubumbashi\":[[7200,\"CAT\",0]],\"Africa/Lusaka\":[[7200,\"CAT\",0]],\"Africa/Malabo\":[[3600,\"WAT\",0]],\"Africa/Maputo\":[[7200,\"CAT\",0]],\"Africa/Maseru\":[[7200,\"SAST\",0]],\"Africa/Mbabane\":[[7200,\"SAST\",0]],\"Africa/Mogadishu\":[[10800,\"EAT\",0]],\"Africa/Monrovia\":[[-2670,\"MMT\",0],[0,\"GMT\",63593070]],\"Africa/Nairobi\":[[10800,\"EAT\",0]],\"Africa/Ndjamena\":[[3600,\"WAT\",0],[7200,\"WAST\",308703600]],\"Africa/Niamey\":[[3600,\"WAT\",0]],\"Africa/Nouakchott\":[[0,\"GMT\",0]],\"Africa/Ouagadougou\":[[0,\"GMT\",0]],\"Africa/Porto-Novo\":[[3600,\"WAT\",0]],\"Africa/Sao_Tome\":[[0,\"GMT\",0],[3600,\"WAT\",1514768400]],\"Africa/Timbuktu\":[[0,\"GMT\",0]],\"Africa/Tripoli\":[[7200,\"EET\",0],[3600,\"CET\",378684e3],[7200,\"CEST\",386463600],[7200,\"EET\",641775600],[7200,\"CEST\",860108400],[7200,\"EET\",875916e3],[7200,\"CEST\",1364515200],[7200,\"EET\",1382659200]],\"Africa/Tunis\":[[3600,\"CET\",0],[7200,\"CEST\",231202800]],\"Africa/Windhoek\":[[7200,\"SAST\",0],[7200,\"CAT\",637970400],[3600,\"WAT\",764200800]],\"America/Adak\":[[-39600,\"BST\",0],[-36e3,\"BDT\",9982800],[-36e3,\"AHST\",436363200],[-36e3,\"HST\",439034400],[-32400,\"HDT\",452088e3]],\"America/Anchorage\":[[-36e3,\"AHST\",0],[-32400,\"AHDT\",9979200],[-32400,\"YST\",436359600],[-32400,\"AKST\",439030800],[-28800,\"AKDT\",452084400]],\"America/Anguilla\":[[-14400,\"AST\",0]],\"America/Antigua\":[[-14400,\"AST\",0]],\"America/Aruba\":[[-14400,\"AST\",0]],\"America/Atikokan\":[[-18e3,\"EST\",0]],\"America/Atka\":[[-39600,\"BST\",0],[-36e3,\"BDT\",9982800],[-36e3,\"AHST\",436363200],[-36e3,\"HST\",439034400],[-32400,\"HDT\",452088e3]],\"America/Bahia_Banderas\":[[-25200,\"MST\",0],[-21600,\"MDT\",828867600],[-18e3,\"CDT\",1270371600],[-21600,\"CST\",1288508400]],\"America/Barbados\":[[-14400,\"AST\",0],[-10800,\"ADT\",234943200]],\"America/Belize\":[[-21600,\"CST\",0],[-18e3,\"CDT\",123919200]],\"America/Blanc-Sablon\":[[-14400,\"AST\",0]],\"America/Boise\":[[-25200,\"MST\",0],[-21600,\"MDT\",9968400]],\"America/Cambridge_Bay\":[[-25200,\"MST\",0],[-21600,\"MDT\",73472400],[-21600,\"CST\",941356800],[-18e3,\"CDT\",954662400],[-18e3,\"EST\",972802800],[-21600,\"MDT\",986115600]],\"America/Cancun\":[[-21600,\"CST\",0],[-18e3,\"EST\",378201600],[-18e3,\"CDT\",828864e3],[-18e3,\"EST\",877849200],[-14400,\"EDT\",891759600],[-18e3,\"CDT\",902037600],[-18e3,\"EST\",1422777600]],\"America/Cayman\":[[-18e3,\"EST\",0]],\"America/Chicago\":[[-21600,\"CST\",0],[-18e3,\"CDT\",9964800]],\"America/Chihuahua\":[[-21600,\"CST\",0],[-18e3,\"CDT\",828864e3],[-21600,\"MDT\",891766800],[-25200,\"MST\",909302400],[-21600,\"CST\",1667116800]],\"America/Ciudad_Juarez\":[[-21600,\"CST\",0],[-18e3,\"CDT\",828864e3],[-21600,\"MDT\",891766800],[-25200,\"MST\",909302400],[-21600,\"CST\",1667116800],[-21600,\"MDT\",1678611600]],\"America/Coral_Harbour\":[[-18e3,\"EST\",0]],\"America/Costa_Rica\":[[-21600,\"CST\",0],[-18e3,\"CDT\",288770400]],\"America/Creston\":[[-25200,\"MST\",0]],\"America/Curacao\":[[-14400,\"AST\",0]],\"America/Danmarkshavn\":[[0,\"GMT\",820465200]],\"America/Dawson\":[[-32400,\"YST\",0],[-28800,\"PST\",120646800],[-25200,\"PDT\",325677600],[-25200,\"MST\",1604214e3]],\"America/Dawson_Creek\":[[-28800,\"PST\",0],[-25200,\"PDT\",9972e3],[-25200,\"MST\",84013200]],\"America/Denver\":[[-25200,\"MST\",0],[-21600,\"MDT\",9968400]],\"America/Detroit\":[[-18e3,\"EST\",0],[-14400,\"EDT\",104914800]],\"America/Dominica\":[[-14400,\"AST\",0]],\"America/Edmonton\":[[-25200,\"MST\",0],[-21600,\"MDT\",73472400],[-21600,\"CST\",179352e4]],\"America/El_Salvador\":[[-21600,\"CST\",0],[-18e3,\"CDT\",54702e4]],\"America/Ensenada\":[[-28800,\"PST\",0],[-25200,\"PDT\",9972e3]],\"America/Fort_Nelson\":[[-28800,\"PST\",0],[-25200,\"PDT\",9972e3],[-25200,\"MST\",1425808800]],\"America/Fort_Wayne\":[[-18e3,\"EST\",0],[-14400,\"EDT\",9961200]],\"America/Glace_Bay\":[[-14400,\"AST\",0],[-10800,\"ADT\",73461600]],\"America/Goose_Bay\":[[-14400,\"AST\",0],[-10800,\"ADT\",9957600],[-7200,\"ADDT\",576043260]],\"America/Grand_Turk\":[[-18e3,\"EST\",0],[-14400,\"EDT\",294217200],[-14400,\"AST\",1425798e3],[-14400,\"EDT\",1520751600]],\"America/Grenada\":[[-14400,\"AST\",0]],\"America/Guadeloupe\":[[-14400,\"AST\",0]],\"America/Guatemala\":[[-21600,\"CST\",0],[-18e3,\"CDT\",123055200]],\"America/Halifax\":[[-14400,\"AST\",0],[-10800,\"ADT\",9957600]],\"America/Havana\":[[-18e3,\"CST\",0],[-14400,\"CDT\",9954e3]],\"America/Hermosillo\":[[-25200,\"MST\",0],[-21600,\"MDT\",828867600]],\"America/Indiana/Indianapolis\":[[-18e3,\"EST\",0],[-14400,\"EDT\",9961200]],\"America/Indiana/Knox\":[[-21600,\"CST\",0],[-18e3,\"CDT\",9964800],[-18e3,\"EST\",688546800],[-18e3,\"CDT\",1143961200]],\"America/Indiana/Marengo\":[[-18e3,\"EST\",0],[-14400,\"EDT\",9961200],[-18e3,\"CDT\",126687600],[-18e3,\"EST\",152089200]],\"America/Indiana/Petersburg\":[[-21600,\"CST\",0],[-18e3,\"CDT\",9964800],[-18e3,\"EST\",247042800],[-18e3,\"CDT\",1143961200],[-18e3,\"EST\",1194159600],[-14400,\"EDT\",1205046e3]],\"America/Indiana/Tell_City\":[[-18e3,\"EST\",0],[-14400,\"EDT\",9961200],[-18e3,\"CDT\",1143961200],[-21600,\"CST\",1162105200]],\"America/Indiana/Vevay\":[[-18e3,\"EST\",0],[-14400,\"EDT\",9961200]],\"America/Indiana/Vincennes\":[[-18e3,\"EST\",0],[-14400,\"EDT\",9961200],[-18e3,\"CDT\",1143961200],[-21600,\"CST\",1162105200],[-18e3,\"EST\",1194159600]],\"America/Indiana/Winamac\":[[-18e3,\"EST\",0],[-14400,\"EDT\",9961200],[-18e3,\"CDT\",1143961200],[-21600,\"CST\",1162105200],[-18e3,\"EST\",1194156e3]],\"America/Indianapolis\":[[-18e3,\"EST\",0],[-14400,\"EDT\",9961200]],\"America/Inuvik\":[[-28800,\"PST\",0],[-25200,\"PDT\",73476e3],[-21600,\"MDT\",294228e3],[-25200,\"MST\",309945600]],\"America/Iqaluit\":[[-18e3,\"EST\",0],[-14400,\"EDT\",73465200],[-21600,\"CST\",941349600],[-18e3,\"CDT\",954662400],[-18e3,\"EST\",972802800]],\"America/Jamaica\":[[-18e3,\"EST\",0],[-14400,\"EDT\",126687600]],\"America/Juneau\":[[-28800,\"PST\",0],[-25200,\"PDT\",9972e3],[-28800,\"YDT\",325677600],[-28800,\"PST\",341402400],[-32400,\"YST\",436352400],[-32400,\"AKST\",439030800],[-28800,\"AKDT\",452084400]],\"America/Kentucky/Louisville\":[[-18e3,\"EST\",0],[-14400,\"EDT\",9961200],[-18e3,\"CDT\",126687600],[-18e3,\"EST\",152089200]],\"America/Kentucky/Monticello\":[[-21600,\"CST\",0],[-18e3,\"CDT\",9964800],[-18e3,\"EST\",972802800],[-14400,\"EDT\",986108400]],\"America/Knox_IN\":[[-21600,\"CST\",0],[-18e3,\"CDT\",9964800],[-18e3,\"EST\",688546800],[-18e3,\"CDT\",1143961200]],\"America/Kralendijk\":[[-14400,\"AST\",0]],\"America/Los_Angeles\":[[-28800,\"PST\",0],[-25200,\"PDT\",9972e3]],\"America/Louisville\":[[-18e3,\"EST\",0],[-14400,\"EDT\",9961200],[-18e3,\"CDT\",126687600],[-18e3,\"EST\",152089200]],\"America/Lower_Princes\":[[-14400,\"AST\",0]],\"America/Managua\":[[-21600,\"CST\",0],[-18e3,\"EST\",105084e3],[-18e3,\"CDT\",290584800],[-18e3,\"EST\",69426e4],[-18e3,\"CDT\",1113112800]],\"America/Marigot\":[[-14400,\"AST\",0]],\"America/Martinique\":[[-14400,\"AST\",0],[-10800,\"ADT\",323841600]],\"America/Matamoros\":[[-21600,\"CST\",0],[-18e3,\"CDT\",576057600]],\"America/Mazatlan\":[[-25200,\"MST\",0],[-21600,\"MDT\",828867600]],\"America/Menominee\":[[-18e3,\"EST\",0],[-18e3,\"CDT\",104914800],[-21600,\"CST\",120639600]],\"America/Merida\":[[-21600,\"CST\",0],[-18e3,\"EST\",378201600],[-18e3,\"CDT\",828864e3]],\"America/Metlakatla\":[[-28800,\"PST\",0],[-25200,\"PDT\",9972e3],[-32400,\"AKST\",1446372e3],[-28800,\"AKDT\",1457866800],[-28800,\"PST\",1541325600],[-28800,\"AKDT\",1552215600]],\"America/Mexico_City\":[[-21600,\"CST\",0],[-18e3,\"CDT\",828864e3]],\"America/Miquelon\":[[-14400,\"AST\",0]],\"America/Moncton\":[[-14400,\"AST\",0],[-10800,\"ADT\",9957600]],\"America/Monterrey\":[[-21600,\"CST\",0],[-18e3,\"CDT\",576057600]],\"America/Montreal\":[[-18e3,\"EST\",0],[-14400,\"EDT\",9961200]],\"America/Montserrat\":[[-14400,\"AST\",0]],\"America/Nassau\":[[-18e3,\"EST\",0],[-14400,\"EDT\",9961200]],\"America/New_York\":[[-18e3,\"EST\",0],[-14400,\"EDT\",9961200]],\"America/Nipigon\":[[-18e3,\"EST\",0],[-14400,\"EDT\",9961200]],\"America/Nome\":[[-39600,\"BST\",0],[-36e3,\"BDT\",9982800],[-32400,\"YST\",436363200],[-32400,\"AKST\",439030800],[-28800,\"AKDT\",452084400]],\"America/North_Dakota/Beulah\":[[-25200,\"MST\",0],[-21600,\"MDT\",9968400],[-21600,\"CST\",1289116800],[-18e3,\"CDT\",1300003200]],\"America/North_Dakota/Center\":[[-25200,\"MST\",0],[-21600,\"MDT\",9968400],[-21600,\"CST\",72e7],[-18e3,\"CDT\",733910400]],\"America/North_Dakota/New_Salem\":[[-25200,\"MST\",0],[-21600,\"MDT\",9968400],[-21600,\"CST\",1067155200],[-18e3,\"CDT\",1081065600]],\"America/Ojinaga\":[[-21600,\"CST\",0],[-18e3,\"CDT\",828864e3],[-21600,\"MDT\",891766800],[-25200,\"MST\",909302400],[-21600,\"CST\",1667116800]],\"America/Panama\":[[-18e3,\"EST\",0]],\"America/Pangnirtung\":[[-18e3,\"EST\",0],[-14400,\"EDT\",73465200],[-21600,\"CST\",941349600],[-18e3,\"CDT\",954662400],[-18e3,\"EST\",972802800]],\"America/Phoenix\":[[-25200,\"MST\",0]],\"America/Port-au-Prince\":[[-18e3,\"EST\",0],[-14400,\"EDT\",421218e3]],\"America/Port_of_Spain\":[[-14400,\"AST\",0]],\"America/Puerto_Rico\":[[-14400,\"AST\",0]],\"America/Rainy_River\":[[-21600,\"CST\",0],[-18e3,\"CDT\",9964800]],\"America/Rankin_Inlet\":[[-21600,\"CST\",0],[-18e3,\"CDT\",73468800],[-18e3,\"EST\",972802800],[-18e3,\"CDT\",986112e3]],\"America/Regina\":[[-21600,\"CST\",0]],\"America/Resolute\":[[-21600,\"CST\",0],[-18e3,\"CDT\",73468800],[-18e3,\"EST\",972802800],[-18e3,\"CDT\",986112e3],[-18e3,\"EST\",1162105200],[-18e3,\"CDT\",11736e5]],\"America/Santa_Isabel\":[[-28800,\"PST\",0],[-25200,\"PDT\",9972e3]],\"America/Santo_Domingo\":[[-18e3,\"EST\",4422600],[-14400,\"AST\",152082e3]],\"America/Shiprock\":[[-25200,\"MST\",0],[-21600,\"MDT\",9968400]],\"America/Sitka\":[[-28800,\"PST\",0],[-25200,\"PDT\",9972e3],[-32400,\"YST\",436352400],[-32400,\"AKST\",439030800],[-28800,\"AKDT\",452084400]],\"America/St_Barthelemy\":[[-14400,\"AST\",0]],\"America/St_Johns\":[[-12600,\"NST\",0],[-9e3,\"NDT\",9955800],[-5400,\"NDDT\",576041460]],\"America/St_Kitts\":[[-14400,\"AST\",0]],\"America/St_Lucia\":[[-14400,\"AST\",0]],\"America/St_Thomas\":[[-14400,\"AST\",0]],\"America/St_Vincent\":[[-14400,\"AST\",0]],\"America/Swift_Current\":[[-25200,\"MST\",0],[-21600,\"CST\",73472400]],\"America/Tegucigalpa\":[[-21600,\"CST\",0],[-18e3,\"CDT\",54702e4]],\"America/Thule\":[[-14400,\"AST\",0],[-10800,\"ADT\",670399200]],\"America/Thunder_Bay\":[[-18e3,\"EST\",0],[-14400,\"EDT\",9961200]],\"America/Tijuana\":[[-28800,\"PST\",0],[-25200,\"PDT\",9972e3]],\"America/Toronto\":[[-18e3,\"EST\",0],[-14400,\"EDT\",9961200]],\"America/Tortola\":[[-14400,\"AST\",0]],\"America/Vancouver\":[[-28800,\"PST\",0],[-25200,\"PDT\",9972e3],[-25200,\"MST\",1793523600]],\"America/Virgin\":[[-14400,\"AST\",0]],\"America/Whitehorse\":[[-28800,\"PST\",0],[-25200,\"PDT\",325677600],[-25200,\"MST\",1604214e3]],\"America/Winnipeg\":[[-21600,\"CST\",0],[-18e3,\"CDT\",9964800]],\"America/Yakutat\":[[-32400,\"YST\",0],[-28800,\"YDT\",9975600],[-32400,\"AKST\",439030800],[-28800,\"AKDT\",452084400]],\"America/Yellowknife\":[[-25200,\"MST\",0],[-21600,\"MDT\",73472400],[-21600,\"CST\",179352e4]],\"Antarctica/Macquarie\":[[39600,\"AEDT\",0],[36e3,\"AEST\",5673600]],\"Antarctica/McMurdo\":[[43200,\"NZST\",0],[46800,\"NZDT\",152632800]],\"Antarctica/Rothera\":[[0,\"-00\",0]],\"Antarctica/South_Pole\":[[43200,\"NZST\",0],[46800,\"NZDT\",152632800]],\"Antarctica/Troll\":[[0,\"-00\",0],[0,\"+00\",1108166400]],\"Antarctica/Vostok\":[[0,\"-00\",760035600]],\"Arctic/Longyearbyen\":[[3600,\"CET\",0],[7200,\"CEST\",323830800]],\"Asia/Amman\":[[7200,\"EET\",0],[10800,\"EEST\",108165600],[10800,\"+03\",1666908e3]],\"Asia/Beirut\":[[7200,\"EET\",0],[10800,\"EEST\",78012e3]],\"Asia/Calcutta\":[[19800,\"IST\",0]],\"Asia/Chongqing\":[[28800,\"CST\",0],[32400,\"CDT\",515527200]],\"Asia/Chungking\":[[28800,\"CST\",0],[32400,\"CDT\",515527200]],\"Asia/Damascus\":[[7200,\"EET\",0],[10800,\"EEST\",10368e3],[10800,\"+03\",1666904400]],\"Asia/Famagusta\":[[7200,\"EET\",0],[10800,\"EEST\",166572e3],[10800,\"+03\",1473282e3],[10800,\"EEST\",1521939600]],\"Asia/Gaza\":[[7200,\"IST\",0],[10800,\"IDT\",14238e4],[7200,\"EET\",820447200],[10800,\"EEST\",828655200]],\"Asia/Harbin\":[[28800,\"CST\",0],[32400,\"CDT\",515527200]],\"Asia/Hebron\":[[7200,\"IST\",0],[10800,\"IDT\",14238e4],[7200,\"EET\",820447200],[10800,\"EEST\",828655200]],\"Asia/Hong_Kong\":[[28800,\"HKT\",0],[32400,\"HKST\",9315e3]],\"Asia/Istanbul\":[[7200,\"EET\",0],[10800,\"EEST\",10791e4],[10800,\"+03\",267915600],[10800,\"EEST\",482799600],[10800,\"+03\",1473195600]],\"Asia/Jakarta\":[[25200,\"WIB\",0]],\"Asia/Jayapura\":[[32400,\"WIT\",0]],\"Asia/Jerusalem\":[[7200,\"IST\",0],[10800,\"IDT\",14238e4]],\"Asia/Karachi\":[[18e3,\"+05\",0],[18e3,\"PKT\",38775600],[21600,\"PKST\",1018119600]],\"Asia/Kolkata\":[[19800,\"IST\",0]],\"Asia/Macao\":[[28800,\"CST\",0],[32400,\"CDT\",9315e3]],\"Asia/Macau\":[[28800,\"CST\",0],[32400,\"CDT\",9315e3]],\"Asia/Makassar\":[[28800,\"WITA\",0]],\"Asia/Manila\":[[28800,\"PST\",0],[32400,\"PDT\",228326400]],\"Asia/Nicosia\":[[7200,\"EET\",0],[10800,\"EEST\",166572e3]],\"Asia/Pontianak\":[[28800,\"WITA\",0],[25200,\"WIB\",567964800]],\"Asia/Pyongyang\":[[32400,\"KST\",0],[30600,\"KST\",1439564400]],\"Asia/Seoul\":[[32400,\"KST\",0],[36e3,\"KDT\",547578e3]],\"Asia/Shanghai\":[[28800,\"CST\",0],[32400,\"CDT\",515527200]],\"Asia/Taipei\":[[28800,\"CST\",0],[32400,\"CDT\",133977600]],\"Asia/Tel_Aviv\":[[7200,\"IST\",0],[10800,\"IDT\",14238e4]],\"Asia/Tokyo\":[[32400,\"JST\",0]],\"Asia/Ujung_Pandang\":[[28800,\"WITA\",0]],\"Atlantic/Azores\":[[0,\"+00\",386125200],[0,\"WET\",725421600],[3600,\"WEST\",733280400],[0,\"+00\",740278800]],\"Atlantic/Bermuda\":[[-14400,\"AST\",0],[-10800,\"ADT\",136360800]],\"Atlantic/Canary\":[[0,\"WET\",0],[3600,\"WEST\",323827200]],\"Atlantic/Faeroe\":[[0,\"WET\",0],[3600,\"WEST\",354675600]],\"Atlantic/Faroe\":[[0,\"WET\",0],[3600,\"WEST\",354675600]],\"Atlantic/Jan_Mayen\":[[3600,\"CET\",0],[7200,\"CEST\",323830800]],\"Atlantic/Madeira\":[[0,\"WET\",0],[3600,\"WEST\",386726400]],\"Atlantic/Reykjavik\":[[0,\"GMT\",0]],\"Atlantic/St_Helena\":[[0,\"GMT\",0]],\"Australia/ACT\":[[36e3,\"AEST\",0],[39600,\"AEDT\",57686400]],\"Australia/Adelaide\":[[34200,\"ACST\",0],[37800,\"ACDT\",57688200]],\"Australia/Brisbane\":[[36e3,\"AEST\",0],[39600,\"AEDT\",57686400]],\"Australia/Broken_Hill\":[[34200,\"ACST\",0],[37800,\"ACDT\",57688200]],\"Australia/Canberra\":[[36e3,\"AEST\",0],[39600,\"AEDT\",57686400]],\"Australia/Currie\":[[39600,\"AEDT\",0],[36e3,\"AEST\",5673600]],\"Australia/Darwin\":[[34200,\"ACST\",0]],\"Australia/Hobart\":[[39600,\"AEDT\",0],[36e3,\"AEST\",5673600]],\"Australia/LHI\":[[36e3,\"AEST\",0]],\"Australia/Lindeman\":[[36e3,\"AEST\",0],[39600,\"AEDT\",57686400]],\"Australia/Lord_Howe\":[[36e3,\"AEST\",0]],\"Australia/Melbourne\":[[36e3,\"AEST\",0],[39600,\"AEDT\",57686400]],\"Australia/NSW\":[[36e3,\"AEST\",0],[39600,\"AEDT\",57686400]],\"Australia/North\":[[34200,\"ACST\",0]],\"Australia/Perth\":[[28800,\"AWST\",0],[32400,\"AWDT\",152042400]],\"Australia/Queensland\":[[36e3,\"AEST\",0],[39600,\"AEDT\",57686400]],\"Australia/South\":[[34200,\"ACST\",0],[37800,\"ACDT\",57688200]],\"Australia/Sydney\":[[36e3,\"AEST\",0],[39600,\"AEDT\",57686400]],\"Australia/Tasmania\":[[39600,\"AEDT\",0],[36e3,\"AEST\",5673600]],\"Australia/Victoria\":[[36e3,\"AEST\",0],[39600,\"AEDT\",57686400]],\"Australia/West\":[[28800,\"AWST\",0],[32400,\"AWDT\",152042400]],\"Australia/Yancowinna\":[[34200,\"ACST\",0],[37800,\"ACDT\",57688200]],CET:[[3600,\"CET\",0],[7200,\"CEST\",228877200]],CST6CDT:[[-21600,\"CST\",0],[-18e3,\"CDT\",9964800]],\"Canada/Atlantic\":[[-14400,\"AST\",0],[-10800,\"ADT\",9957600]],\"Canada/Central\":[[-21600,\"CST\",0],[-18e3,\"CDT\",9964800]],\"Canada/Eastern\":[[-18e3,\"EST\",0],[-14400,\"EDT\",9961200]],\"Canada/Mountain\":[[-25200,\"MST\",0],[-21600,\"MDT\",73472400],[-21600,\"CST\",179352e4]],\"Canada/Newfoundland\":[[-12600,\"NST\",0],[-9e3,\"NDT\",9955800],[-5400,\"NDDT\",576041460]],\"Canada/Pacific\":[[-28800,\"PST\",0],[-25200,\"PDT\",9972e3],[-25200,\"MST\",1793523600]],\"Canada/Saskatchewan\":[[-21600,\"CST\",0]],\"Canada/Yukon\":[[-28800,\"PST\",0],[-25200,\"PDT\",325677600],[-25200,\"MST\",1604214e3]],Cuba:[[-18e3,\"CST\",0],[-14400,\"CDT\",9954e3]],EET:[[7200,\"EET\",0],[10800,\"EEST\",166485600]],EST:[[-18e3,\"EST\",0]],EST5EDT:[[-18e3,\"EST\",0],[-14400,\"EDT\",9961200]],Egypt:[[7200,\"EET\",0],[10800,\"EEST\",10364400]],Eire:[[3600,\"IST\",0],[0,\"GMT\",57722400]],\"Etc/GMT\":[[0,\"GMT\",0]],\"Etc/GMT+0\":[[0,\"GMT\",0]],\"Etc/GMT-0\":[[0,\"GMT\",0]],\"Etc/GMT0\":[[0,\"GMT\",0]],\"Etc/Greenwich\":[[0,\"GMT\",0]],\"Etc/UCT\":[[0,\"UTC\",0]],\"Etc/UTC\":[[0,\"UTC\",0]],\"Etc/Universal\":[[0,\"UTC\",0]],\"Etc/Zulu\":[[0,\"UTC\",0]],\"Europe/Amsterdam\":[[3600,\"CET\",0],[7200,\"CEST\",228877200]],\"Europe/Andorra\":[[3600,\"CET\",0],[7200,\"CEST\",481078800]],\"Europe/Athens\":[[7200,\"EET\",0],[10800,\"EEST\",166485600]],\"Europe/Belfast\":[[3600,\"BST\",0],[0,\"GMT\",57722400]],\"Europe/Belgrade\":[[3600,\"CET\",0],[7200,\"CEST\",417574800]],\"Europe/Berlin\":[[3600,\"CET\",0],[7200,\"CEST\",323830800]],\"Europe/Bratislava\":[[3600,\"CET\",0],[7200,\"CEST\",291776400]],\"Europe/Brussels\":[[3600,\"CET\",0],[7200,\"CEST\",228877200]],\"Europe/Bucharest\":[[7200,\"EET\",0],[10800,\"EEST\",296604e3]],\"Europe/Budapest\":[[3600,\"CET\",0],[7200,\"CEST\",323823600]],\"Europe/Busingen\":[[3600,\"CET\",0],[7200,\"CEST\",354675600]],\"Europe/Chisinau\":[[10800,\"MSK\",0],[14400,\"MSD\",354920400],[10800,\"EEST\",641944800],[7200,\"EET\",654652800]],\"Europe/Copenhagen\":[[3600,\"CET\",0],[7200,\"CEST\",323830800]],\"Europe/Dublin\":[[3600,\"IST\",0],[0,\"GMT\",57722400]],\"Europe/Gibraltar\":[[3600,\"CET\",0],[7200,\"CEST\",386125200]],\"Europe/Guernsey\":[[3600,\"BST\",0],[0,\"GMT\",57722400]],\"Europe/Helsinki\":[[7200,\"EET\",0],[10800,\"EEST\",354672e3]],\"Europe/Isle_of_Man\":[[3600,\"BST\",0],[0,\"GMT\",57722400]],\"Europe/Istanbul\":[[7200,\"EET\",0],[10800,\"EEST\",10791e4],[10800,\"+03\",267915600],[10800,\"EEST\",482799600],[10800,\"+03\",1473195600]],\"Europe/Jersey\":[[3600,\"BST\",0],[0,\"GMT\",57722400]],\"Europe/Kaliningrad\":[[10800,\"MSK\",0],[14400,\"MSD\",354920400],[10800,\"EEST\",60687e4],[7200,\"EET\",622598400],[10800,\"+03\",1301184e3]],\"Europe/Kiev\":[[10800,\"MSK\",0],[14400,\"MSD\",354920400],[10800,\"EEST\",646783200],[7200,\"EET\",686102400]],\"Europe/Kirov\":[[14400,\"+04\",0],[14400,\"MSD\",606866400],[10800,\"MSK\",622594800],[14400,\"+04\",670374e3],[14400,\"MSD\",70182e4],[14400,\"MSK\",1301180400]],\"Europe/Kyiv\":[[10800,\"MSK\",0],[14400,\"MSD\",354920400],[10800,\"EEST\",646783200],[7200,\"EET\",686102400]],\"Europe/Lisbon\":[[3600,\"CET\",0],[0,\"WET\",212544e3],[3600,\"WEST\",228268800],[3600,\"CET\",717555600],[7200,\"CEST\",733280400],[3600,\"WEST\",828234e3]],\"Europe/Ljubljana\":[[3600,\"CET\",0],[7200,\"CEST\",417574800]],\"Europe/London\":[[3600,\"BST\",0],[0,\"GMT\",57722400]],\"Europe/Luxembourg\":[[3600,\"CET\",0],[7200,\"CEST\",228877200]],\"Europe/Madrid\":[[3600,\"CET\",0],[7200,\"CEST\",135122400]],\"Europe/Malta\":[[3600,\"CET\",0],[7200,\"CEST\",12956400]],\"Europe/Mariehamn\":[[7200,\"EET\",0],[10800,\"EEST\",354672e3]],\"Europe/Minsk\":[[10800,\"MSK\",0],[14400,\"MSD\",354920400],[10800,\"EEST\",670374e3],[7200,\"EET\",686102400],[10800,\"+03\",1301184e3]],\"Europe/Monaco\":[[3600,\"CET\",0],[7200,\"CEST\",196819200]],\"Europe/Moscow\":[[10800,\"MSK\",0],[14400,\"MSD\",354920400],[10800,\"EEST\",670374e3],[7200,\"EET\",686102400],[10800,\"MSK\",695779200],[14400,\"MSK\",1301180400]],\"Europe/Nicosia\":[[7200,\"EET\",0],[10800,\"EEST\",166572e3]],\"Europe/Oslo\":[[3600,\"CET\",0],[7200,\"CEST\",323830800]],\"Europe/Paris\":[[3600,\"CET\",0],[7200,\"CEST\",196819200]],\"Europe/Podgorica\":[[3600,\"CET\",0],[7200,\"CEST\",417574800]],\"Europe/Prague\":[[3600,\"CET\",0],[7200,\"CEST\",291776400]],\"Europe/Riga\":[[10800,\"MSK\",0],[14400,\"MSD\",354920400],[10800,\"EEST\",60687e4],[7200,\"EET\",622598400]],\"Europe/Rome\":[[3600,\"CET\",0],[7200,\"CEST\",12956400]],\"Europe/San_Marino\":[[3600,\"CET\",0],[7200,\"CEST\",12956400]],\"Europe/Sarajevo\":[[3600,\"CET\",0],[7200,\"CEST\",417574800]],\"Europe/Simferopol\":[[10800,\"MSK\",0],[14400,\"MSD\",354920400],[7200,\"EET\",646786800],[10800,\"EEST\",701827200],[10800,\"MSK\",780447600],[10800,\"EEST\",859683600],[14400,\"MSK\",1396137600],[10800,\"MSK\",1414274400]],\"Europe/Skopje\":[[3600,\"CET\",0],[7200,\"CEST\",417574800]],\"Europe/Sofia\":[[7200,\"EET\",0],[10800,\"EEST\",291762e3]],\"Europe/Stockholm\":[[3600,\"CET\",0],[7200,\"CEST\",323830800]],\"Europe/Tallinn\":[[10800,\"MSK\",0],[14400,\"MSD\",354920400],[10800,\"EEST\",60687e4],[7200,\"EET\",622598400]],\"Europe/Tirane\":[[3600,\"CET\",0],[7200,\"CEST\",136854e3]],\"Europe/Tiraspol\":[[10800,\"MSK\",0],[14400,\"MSD\",354920400],[10800,\"EEST\",641944800],[7200,\"EET\",654652800]],\"Europe/Uzhgorod\":[[10800,\"MSK\",0],[14400,\"MSD\",354920400],[10800,\"EEST\",646783200],[7200,\"EET\",686102400]],\"Europe/Vaduz\":[[3600,\"CET\",0],[7200,\"CEST\",354675600]],\"Europe/Vatican\":[[3600,\"CET\",0],[7200,\"CEST\",12956400]],\"Europe/Vienna\":[[3600,\"CET\",0],[7200,\"CEST\",323823600]],\"Europe/Vilnius\":[[10800,\"MSK\",0],[14400,\"MSD\",354920400],[10800,\"EEST\",60687e4],[7200,\"EET\",622598400],[7200,\"CEST\",891133200],[3600,\"CET\",909277200],[7200,\"EET\",941331600]],\"Europe/Volgograd\":[[14400,\"+04\",0],[14400,\"MSD\",575416800],[10800,\"MSK\",591145200],[14400,\"+04\",670374e3],[14400,\"MSD\",70182e4],[14400,\"MSK\",1301180400],[14400,\"+04\",1540681200]],\"Europe/Warsaw\":[[3600,\"CET\",0],[7200,\"CEST\",228873600]],\"Europe/Zagreb\":[[3600,\"CET\",0],[7200,\"CEST\",417574800]],\"Europe/Zaporozhye\":[[10800,\"MSK\",0],[14400,\"MSD\",354920400],[10800,\"EEST\",646783200],[7200,\"EET\",686102400]],\"Europe/Zurich\":[[3600,\"CET\",0],[7200,\"CEST\",354675600]],Factory:[[0,\"-00\",0]],GB:[[3600,\"BST\",0],[0,\"GMT\",57722400]],\"GB-Eire\":[[3600,\"BST\",0],[0,\"GMT\",57722400]],GMT:[[0,\"GMT\",0]],\"GMT+0\":[[0,\"GMT\",0]],\"GMT-0\":[[0,\"GMT\",0]],GMT0:[[0,\"GMT\",0]],Greenwich:[[0,\"GMT\",0]],HST:[[-36e3,\"HST\",0]],Hongkong:[[28800,\"HKT\",0],[32400,\"HKST\",9315e3]],Iceland:[[0,\"GMT\",0]],\"Indian/Antananarivo\":[[10800,\"EAT\",0]],\"Indian/Comoro\":[[10800,\"EAT\",0]],\"Indian/Mayotte\":[[10800,\"EAT\",0]],Israel:[[7200,\"IST\",0],[10800,\"IDT\",14238e4]],Jamaica:[[-18e3,\"EST\",0],[-14400,\"EDT\",126687600]],Japan:[[32400,\"JST\",0]],Libya:[[7200,\"EET\",0],[3600,\"CET\",378684e3],[7200,\"CEST\",386463600],[7200,\"EET\",641775600],[7200,\"CEST\",860108400],[7200,\"EET\",875916e3],[7200,\"CEST\",1364515200],[7200,\"EET\",1382659200]],MET:[[3600,\"CET\",0],[7200,\"CEST\",228877200]],MST:[[-25200,\"MST\",0]],MST7MDT:[[-25200,\"MST\",0],[-21600,\"MDT\",9968400]],\"Mexico/BajaNorte\":[[-28800,\"PST\",0],[-25200,\"PDT\",9972e3]],\"Mexico/BajaSur\":[[-25200,\"MST\",0],[-21600,\"MDT\",828867600]],\"Mexico/General\":[[-21600,\"CST\",0],[-18e3,\"CDT\",828864e3]],NZ:[[43200,\"NZST\",0],[46800,\"NZDT\",152632800]],Navajo:[[-25200,\"MST\",0],[-21600,\"MDT\",9968400]],PRC:[[28800,\"CST\",0],[32400,\"CDT\",515527200]],PST8PDT:[[-28800,\"PST\",0],[-25200,\"PDT\",9972e3]],\"Pacific/Auckland\":[[43200,\"NZST\",0],[46800,\"NZDT\",152632800]],\"Pacific/Guam\":[[36e3,\"GST\",0],[39600,\"GDT\",9907200],[36e3,\"ChST\",977493600]],\"Pacific/Honolulu\":[[-36e3,\"HST\",0]],\"Pacific/Johnston\":[[-36e3,\"HST\",0]],\"Pacific/Midway\":[[-39600,\"SST\",0]],\"Pacific/Pago_Pago\":[[-39600,\"SST\",0]],\"Pacific/Saipan\":[[36e3,\"GST\",0],[39600,\"GDT\",9907200],[36e3,\"ChST\",977493600]],\"Pacific/Samoa\":[[-39600,\"SST\",0]],Poland:[[3600,\"CET\",0],[7200,\"CEST\",228873600]],Portugal:[[3600,\"CET\",0],[0,\"WET\",212544e3],[3600,\"WEST\",228268800],[3600,\"CET\",717555600],[7200,\"CEST\",733280400],[3600,\"WEST\",828234e3]],ROC:[[28800,\"CST\",0],[32400,\"CDT\",133977600]],ROK:[[32400,\"KST\",0],[36e3,\"KDT\",547578e3]],Turkey:[[7200,\"EET\",0],[10800,\"EEST\",10791e4],[10800,\"+03\",267915600],[10800,\"EEST\",482799600],[10800,\"+03\",1473195600]],UCT:[[0,\"UTC\",0]],\"US/Alaska\":[[-36e3,\"AHST\",0],[-32400,\"AHDT\",9979200],[-32400,\"YST\",436359600],[-32400,\"AKST\",439030800],[-28800,\"AKDT\",452084400]],\"US/Aleutian\":[[-39600,\"BST\",0],[-36e3,\"BDT\",9982800],[-36e3,\"AHST\",436363200],[-36e3,\"HST\",439034400],[-32400,\"HDT\",452088e3]],\"US/Arizona\":[[-25200,\"MST\",0]],\"US/Central\":[[-21600,\"CST\",0],[-18e3,\"CDT\",9964800]],\"US/East-Indiana\":[[-18e3,\"EST\",0],[-14400,\"EDT\",9961200]],\"US/Eastern\":[[-18e3,\"EST\",0],[-14400,\"EDT\",9961200]],\"US/Hawaii\":[[-36e3,\"HST\",0]],\"US/Indiana-Starke\":[[-21600,\"CST\",0],[-18e3,\"CDT\",9964800],[-18e3,\"EST\",688546800],[-18e3,\"CDT\",1143961200]],\"US/Michigan\":[[-18e3,\"EST\",0],[-14400,\"EDT\",104914800]],\"US/Mountain\":[[-25200,\"MST\",0],[-21600,\"MDT\",9968400]],\"US/Pacific\":[[-28800,\"PST\",0],[-25200,\"PDT\",9972e3]],\"US/Samoa\":[[-39600,\"SST\",0]],UTC:[[0,\"UTC\",0]],Universal:[[0,\"UTC\",0]],\"W-SU\":[[10800,\"MSK\",0],[14400,\"MSD\",354920400],[10800,\"EEST\",670374e3],[7200,\"EET\",686102400],[10800,\"MSK\",695779200],[14400,\"MSK\",1301180400]],WET:[[3600,\"CET\",0],[0,\"WET\",212544e3],[3600,\"WEST\",228268800],[3600,\"CET\",717555600],[7200,\"CEST\",733280400],[3600,\"WEST\",828234e3]],Zulu:[[0,\"UTC\",0]]};var k0=3600;var w$=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\",S$=\"0123456789\",QD=`${w$}${S$}+-`;var e1=24*k0-1;function _$(t){let e=new Date(0);return e.setUTCFullYear(t.year,t.month,t.day),e.setUTCHours(t.hour,t.minute,t.second,t.ms),e}function x$(t){return{year:t.getUTCFullYear(),month:t.getUTCMonth(),day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),ms:t.getUTCMilliseconds(),weekday:t.getUTCDay()}}var Fp=class{parts(e){return{...x$(e),offsetSec:0,abbrev:\"UTC\"}}fromWall(e){return _$(e)}},Bp=class{parts(e){return{year:e.getFullYear(),month:e.getMonth(),day:e.getDate(),hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds(),ms:e.getMilliseconds(),weekday:e.getDay(),offsetSec:-e.getTimezoneOffset()*60,abbrev:$$(new Intl.DateTimeFormat().resolvedOptions().timeZone,-e.getTimezoneOffset()*60,Math.floor(e.getTime()/1e3))}}fromWall(e){let r=new Date(0);return r.setFullYear(e.year,e.month,e.day),r.setHours(e.hour,e.minute,e.second,e.ms),r}};function k$(t){let e=t<0?\"-\":\"+\",r=Math.abs(t),i=String(Math.floor(r/3600)).padStart(2,\"0\"),n=Math.floor(r%3600/60);return n===0?`${e}${i}`:`${e}${i}${String(n).padStart(2,\"0\")}`}function $$(t,e,r){let i;for(let[n,o,s]of x0[t]??[])n===e&&(i===void 0||s<=r)&&(i=o);return i??k$(e)}var E$={kind:\"M\",month:3,week:2,weekday:0,day:0,seconds:2*k0},t1={...E$,month:11,week:1},T$={kind:\"D\",month:0,week:0,weekday:0,day:0,seconds:0},n1={...T$,kind:\"J\"};var r1=new Fp,A$=new Bp;function Vp(t){return new Date(Math.floor(t)*1e3).toISOString().replace(\".000Z\",\"Z\")}function Zp(t){if(t==null||t===\"\")return null;let e=/(Z|[+-]\\d\\d:?\\d\\d)$/.test(t)?t:`${t}Z`,r=Date.parse(e);return Number.isNaN(r)?null:r/1e3}var d1=1n<<63n,f1=BigInt(Number.MAX_SAFE_INTEGER);var E0=61440,I$=16384,ma=8192,P$=32768,O$=40960,N$=ma|438,Rt=I$|493,ha=P$|420,R$=4480,_i=O$|511,D$=4096,xi=4096,Wp=512,$0=4095,C$=0xcbf29ce484222325n,z$=0x100000001b3n,U$=0xffffffffffffffffn,M$=new TextEncoder;function Gp(t){let e=C$;for(let r of M$.encode(t))e=(e^BigInt(r))*z$&U$;return Number(e>>16n)}function ga(t){let e=Zp(t.modified);return e===null?null:e*1e3}function ya(t){let e=Zp(t.atime);return e===null?null:e*1e3}function pt(t){return t.type===ie.DIRECTORY}function or(t){return t.type===ie.SYMLINK}function Kp(t){return t.type===ie.CHAR_DEVICE}function L$(t){return t.type===ie.FIFO}function va(t){let e=t.extra.device_numbers;return!Array.isArray(e)||e.length!==2||!e.every(r=>Number.isInteger(r))?0:Number(e[0])<<8|Number(e[1])}function ki(t){if(or(t))return _i;let e=Kp(t)?N$:L$(t)?R$:pt(t)?Rt:ha;return t.mode===null?e:e&~$0|t.mode&$0}function Dt(t){return pt(t)?D$:t.size??0}var T0=new Set([\"ENOENT\",\"ENOTDIR\"]);var sr=Object.freeze({readable:!0,writable:!1,truncate:!1,append:!1,create:!1,exclusive:!1,binary:!0});function Hp(t,e){let r=t&(e.O_WRONLY|e.O_RDWR),i=r===e.O_WRONLY||r===e.O_RDWR,n=(t&e.O_CREAT)!==0;return{readable:r===0||r===e.O_RDWR,writable:i,truncate:i&&(t&e.O_TRUNC)!==0,append:(t&e.O_APPEND)!==0,create:n,exclusive:n&&(t&e.O_EXCL)!==0,binary:!0}}var mt=1024*1024,$i=256*1024,A0=null;var ba=class{constructor(e=mt){this.memoryLimit=e;if(!Number.isSafeInteger(e)||e<0)throw new RangeError(\"spool memory limit must be nonnegative\")}memoryLimit;size=0;closed=!1;memory=[];store=null;lost=void 0;pendingSize=0;stored=0;holders=0;closing=!1;cache=new Uint8Array;cacheOffset=0;turn=Promise.resolve();locked(e){let r=this.turn.then(e);return this.turn=r.then(()=>{},()=>{}),r}append(e){return this.locked(async()=>{this.usable();try{await this.appendNow(e)}catch(r){throw this.lost=r,r}})}write(e,r){return this.locked(async()=>{if(this.usable(),!Number.isSafeInteger(e)||e<0||e+r.length>this.size)throw new RangeError(\"spool write must stay within its size\");this.cache=new Uint8Array;try{if(this.store!==null)await this.flush(),await this.store.write(e,r);else{let i=0;for(;i<r.length;){let n=e+i,o=this.memory[Math.floor(n/ve)];if(o===void 0)throw new Error(\"spool lost a block\");let s=n%ve,a=Math.min(o.length-s,r.length-i);o.set(r.subarray(i,i+a),s),i+=a}}}catch(i){throw this.lost=i,i}})}usable(){if(this.closed)throw new Error(\"spool is closed\");if(this.lost!==void 0)throw Object.assign(new Error(\"spool lost a write\",{cause:this.lost}),{code:\"EIO\"})}async appendNow(e){if(this.cache=new Uint8Array,this.store===null&&this.size+e.length>this.memoryLimit&&A0!==null){this.store=await A0();for(let i of this.memory)await this.store.write(this.stored,i),this.stored+=i.length;this.memory=[],this.pendingSize=0}let r=0;for(;r<e.length;){let i=this.memory.at(-1);if(i!==void 0&&i.length<ve){let n=Math.min(ve-i.length,e.length-r),o=new Uint8Array(i.buffer,i.byteOffset,i.length+n);o.set(e.subarray(r,r+n),i.length),this.memory[this.memory.length-1]=o,r+=n}else{let n=Math.min(ve,e.length-r),o=new Uint8Array(ve);o.set(e.subarray(r,r+n)),this.memory.push(o.subarray(0,n)),r+=n}}this.pendingSize+=e.length,this.size+=e.length,this.store!==null&&this.pendingSize>=$i&&await this.flush()}async flush(){this.store!==null&&this.pendingSize>0&&(await this.store.write(this.stored,L(this.memory)),this.stored+=this.pendingSize,this.memory=[],this.pendingSize=0)}async fill(e){for await(let r of Ze(e))await this.append(r)}async read(e,r){if(!Number.isSafeInteger(e)||!Number.isSafeInteger(r)||e<0||r<0)throw new RangeError(\"spool window must be nonnegative\");return this.locked(()=>this.readNow(e,r))}async readNow(e,r){if(this.usable(),this.store!==null){if(await this.flush(),r>ve)return this.store.read(e,r);this.cacheOffset<=e&&e+r<=this.cacheOffset+this.cache.length||(this.cacheOffset=Math.floor(e/$i)*$i,this.cache=await this.store.read(this.cacheOffset,Math.max($i,e+r-this.cacheOffset)));let s=e-this.cacheOffset;return this.cache.slice(s,s+r)}let i=new Uint8Array(Math.max(0,Math.min(r,this.size-e))),n=Math.floor(e/ve),o=e-n*ve;for(let s=0;s<i.length;n++,o=0){let a=this.memory[n];if(a===void 0)break;let l=Math.min(a.length-o,i.length-s);i.set(a.subarray(o,o+l),s),s+=l}return i}async*stream(e=0,r,i=ve){let n=r===void 0?this.size:Math.min(this.size,e+r);for(;e<n;){let o=await this.read(e,Math.min(i,n-e));if(o.length===0)return;e+=o.length,yield o}}async output(){if(this.size<=this.memoryLimit){let e=await this.read(0,this.size);return await this.close(),e}return new vi(this.stream(0,void 0,$i),()=>this.close())}body(e){return this.locked(async()=>{if(this.usable(),await this.flush(),this.store?.body!==void 0)return this.store.body(e);if(this.store!==null)throw new Error(\"scratch storage cannot provide an upload body\");return this.readNow(0,this.size)})}hold(){this.holders++}async unhold(){this.holders--,this.closing&&this.holders===0&&await this.close()}close(){return this.holders>0?(this.closing=!0,Promise.resolve()):this.locked(()=>this.closeNow())}async closeNow(){this.closed=!0,this.memory=[],this.cache=new Uint8Array;let e=this.store;this.store=null,e!==null&&await e.close()}};var et=class t{constructor(e,r,i){this.source=e;this.offset=r;this.size=i}source;offset;size;get byteLength(){return this.size}subarray(e=0,r=this.size){let i=Math.min(e,this.size);return new t(this.source,this.offset+i,Math.max(0,Math.min(r,this.size)-i))}stream(){return this.source.stream(this.offset,this.size)}};function I0(t,e,r){if(r.byteLength===0)return t;let i=new Uint8Array(Math.max(t.byteLength,e+r.byteLength));return i.set(t),i.set(r,e),i}function wa(t){let e=[];for(let[r,i]of t){let n=e.at(-1);if(n!==void 0&&n.start<=r&&r<=n.start+n.length){let o=r-n.start;if(o===n.length){n.parts.push(i.slice()),n.length+=i.byteLength;continue}let s=I0(L(n.parts),o,i);n.parts=[s],n.length=s.byteLength;continue}e.push({start:r,parts:[i.slice()],length:i.byteLength})}return e.map(r=>[r.start,L(r.parts)])}function ar(t,e,r,i){let n=e+t.byteLength;for(let[a,l]of i)n=Math.max(n,a+l.byteLength);let o=Math.min(e+r,n);if(o<=e)return new Uint8Array;let s=new Uint8Array(o-e);s.set(t.subarray(0,o-e));for(let[a,l]of i){let u=Math.max(a,e),c=Math.min(a+l.byteLength,o);u<c&&s.set(l.subarray(u-a,c-a),u-e)}return s}function Jp(t){let e=[],r=0,i=0;for(let[n,o]of t){let s=e.at(-1);if(s!==void 0&&r<=n&&n<=i){s.push([n,o]),i=Math.max(i,n+o.byteLength);continue}e.push([[n,o]]),r=n,i=n+o.byteLength}return e}async function lr(t,e,r){let i=new Set;for(let[,n]of t)n instanceof et&&i.add(n.source);for(let n of i)n.hold();try{let n=[];for(let[o,s]of t){if(!(s instanceof et)){n.push([o,s]);continue}let a=Math.max(o,e),l=Math.min(o+s.size,e+r);a<l&&n.push([a,await s.source.read(s.offset+a-o,l-a)]),n.push([o+s.size,new Uint8Array])}return n}finally{for(let n of i)await n.unhold()}}async function*ur(t){let e=t[0];if(e===void 0)return;let r=e[0],i=r;for(let[o,s]of t)i=Math.max(i,o+s.byteLength);let n=Array.from({length:Math.ceil((i-r)/mt)},()=>[]);for(let o of t){let[s,a]=o,l=Math.floor((s+a.byteLength-1-r)/mt);for(let u=Math.floor((s-r)/mt);u<=l;u++)n[u]?.push(o)}for(let[o,s]of n.entries()){let a=r+o*mt,l=Math.min(mt,i-a);yield ar(new Uint8Array,a,l,await lr(s,a,l))}}var Ei=class{nextId;entries=new Map;constructor(e=1){this.nextId=e}add(e){let r=this.nextId++;return this.entries.set(r,e),r}get(e){return this.entries.get(e)}pop(e){let r=this.entries.get(e);return this.entries.delete(e),r}set(e,r){this.entries.set(e,r)}values(){return this.entries.values()}has(e){return this.entries.has(e)}};var Ti=class{path;size;pos=0;fetch;start=0;kept=new Uint8Array;end=null;generation=0;constructor(e,r,i){this.path=e,this.size=r,this.fetch=i}async pread(e,r){return r<=0||this.atEnd(e)?new Uint8Array:this.covers(e,r)?this.slice(e,r):(await this.load(e,r)).slice(0,r)}holds(e,r){return r<=0||this.atEnd(e)||this.covers(e,r)}lacks(e){return e===0||this.atEnd(this.pos)?!1:this.covers(this.pos,Math.max(e,1))?e<0&&!this.keptToEnd():!0}async fill(e){await this.load(this.pos,Math.max(e,0))}peek(e,r){let i=this.start+this.kept.length;return r<=0||e<this.start||e>=i?new Uint8Array:this.slice(e,Math.min(r,i-e))}get eof(){return this.atEnd(this.pos)}drop(){this.generation+=1,this.kept=new Uint8Array,this.end=null}atEnd(e){return this.end!==null&&e>=this.end}keptToEnd(){return this.end!==null&&this.start+this.kept.length>=this.end}covers(e,r){let i=this.start+this.kept.length;return this.start<=e&&e<i&&(e+r<=i||i===this.end)}slice(e,r){let i=e-this.start;return this.kept.slice(i,i+Math.max(0,r))}async load(e,r){let{start:i,kept:n,generation:o}=this,s=i+n.length,a=n.length>0&&i<=e&&e<=s?s:e,l=Math.max(e+r-a,1048576),u=await this.fetch(a,l),c=u;if(a!==e){let d=n.subarray(e-i);c=new Uint8Array(d.length+u.length),c.set(d),c.set(u,d.length)}if(o===this.generation){if(u.length<l){let d=a===0||n.length>0&&a===s;this.end=a+u.length,this.size=u.length>0||d?this.end:Math.min(this.size,this.end)}this.start=e,this.kept=c}return c}};var Fe=class{names;type;action;nargs;choices;required;default;metavar;env;help;numericShorthand;shortValue;attachedOnly;providedBy;textWhen;valueTypes;constructor(e,r={}){this.names=Object.freeze(typeof e==\"string\"?[e]:[...e]),this.type=r.type??\"str\",this.action=r.action??\"store\",this.nargs=r.nargs??null,this.choices=Object.freeze([...r.choices??[]]),this.required=r.required??!1,this.default=r.default??null,this.metavar=r.metavar??null,this.env=r.env??null,this.help=r.help??null,this.numericShorthand=r.numericShorthand??!1,this.shortValue=r.shortValue??!0,this.attachedOnly=r.attachedOnly??!1,this.providedBy=Object.freeze([...r.providedBy??[]]),this.textWhen=Object.freeze([...r.textWhen??[]]),this.valueTypes=Object.freeze([...r.valueTypes??[]]),Object.freeze(this)}};var ye=F.number().int().nonnegative();function j$(t,e,r,i){if(e===void 0||t.cwd!==i||t.command!==e||t.argv.length!==r.length)return!1;for(let n=0;n<r.length;n++)if(t.argv[n]!==r[n])return!1;return!0}function Ct(t,e){return e.parse(jt(null).ask(\"approvals\",{query:t}))}var Xp=class t{constructor(e=[],r=[],i=[]){this.records=e;this.recordObjects=[...e],this.recordKeys=new Map,this.live=[...r],e.forEach((n,o)=>this.recordKeys.set(n,o));for(let n of[...this.live,...i])this.holderKey(n)}records;static RESPONSE={keys:F.array(ye),plan:F.object({answers:F.array(ye.nullable()),denied:ye.nullable(),missing:F.array(ye),once:F.array(ye),waiting:F.array(ye.nullable()),claim:F.object({records:F.array(ye),live:F.array(ye)}).strict().nullable()}).strict(),claim:F.object({records:F.array(ye),live:F.array(ye)}).strict(),handUp:F.object({parent:ye,claims:F.array(ye),live:F.array(ye)}).strict()};recordObjects;holderObjects=[];claimObjects=[];occurrenceObjects=[];recordKeys;holderKeys=new Map;claimKeys=new Map;occurrenceKeys=new Map;live;recordKey(e){let r=this.recordKeys.get(e);if(r!==void 0)return r;let i=this.recordObjects.length;return this.recordObjects.push(e),this.recordKeys.set(e,i),i}holderKey(e){let r=e;for(;r!==null&&!this.holderKeys.has(r);){this.holderKeys.set(r,this.holderObjects.length),this.holderObjects.push(r);for(let n of r.claimed)this.claimKeys.has(n)||(this.claimKeys.set(n,this.claimObjects.length),this.claimObjects.push(n),this.recordKey(n.decision),this.occurrenceKey(n.occurrence));r=r.parent}let i=this.holderKeys.get(e);if(i===void 0)throw new Error(\"approval holder was not registered\");return i}occurrenceKey(e){if(e===null)return null;let r=e;for(;r!==null&&!this.occurrenceKeys.has(r);)this.occurrenceKeys.set(r,this.occurrenceObjects.length),this.occurrenceObjects.push(r),r=r.parent;let i=this.occurrenceKeys.get(e);if(i===void 0)throw new Error(\"approval occurrence was not registered\");return i}record(e){let r=this.recordObjects[e];if(r===void 0)throw new Error(\"approval returned an unknown record\");return r}holder(e){let r=this.holderObjects[e];if(r===void 0)throw new Error(\"approval returned an unknown holder\");return r}originalClaim(e){let r=this.claimObjects[e];if(r===void 0)throw new Error(\"approval returned an unknown claim\");return r}recordsWire(e,r,i){let n=[],o,s=r[0],a=r.slice(1);return this.records.forEach((l,u)=>{let c=e[u];if(c===void 0)throw new Error(\"approval record has no rule key\");let d=j$(l,s,a,i),f=l.outcome,p=l.scope,m=this.recordKeys.get(l)??this.recordKey(l);o?.rule===c&&o.same_line===d&&o.outcome===f&&o.scope===p?o.keys.push(m):(o={keys:[m],rule:c,same_line:d,outcome:f,scope:p},n.push(o))}),n}get wire(){let e=[],r=new Map,i=this.occurrenceObjects.map((n,o)=>{let s=r.get(n.source);return s===void 0&&(s=e.length,r.set(n.source,s),e.push(G(n.source))),{key:o,parent:this.occurrenceKey(n.parent),source:s,start:n.start,end:n.end}});return{holders:this.holderObjects.map((n,o)=>({key:o,parent:n.parent===null?null:this.holderKey(n.parent),claims:n.claimed.map(s=>{let a=this.claimKeys.get(s);if(a===void 0)throw new Error(\"approval claim was not registered\");return a})})),claims:this.claimObjects.map((n,o)=>({key:o,record:this.recordKey(n.decision),occurrence:this.occurrenceKey(n.occurrence)})),occurrences:i,sources:e,live:this.live.map(n=>this.holderKey(n))}}plan(e,r,i,n,o){let s=o===null?null:{holder:this.holderKey(o.line),occurrence:this.occurrenceKey(o.occurrence)},a={kind:\"plan\",state:{...this.wire,records:this.recordsWire(e,i,n)},rules:[...r],claimant:s},l=Ct(a,t.RESPONSE.plan);return{answers:l.answers.map(u=>u===null?null:this.record(u)),denied:l.denied,missing:l.missing,once:l.once.map(u=>this.record(u)),waiting:l.waiting.map(u=>u===null?null:this.record(u)),claim:l.claim===null?null:{records:l.claim.records.map(u=>this.record(u)),live:l.claim.live.map(u=>this.holder(u))}}}waiting(e,r){let i=Ct({kind:\"waiting\",records:this.recordsWire(Array(this.records.length).fill(0),e,r),rule:0},ye.nullable());return i===null?null:this.record(i)}answer(e,r){let i=Ct({kind:\"answer\",records:this.records.map(n=>({key:this.recordKey(n),id:G(n.id),outcome:n.outcome})),id:G(e),outcome:r},ye.nullable());return i===null?null:this.record(i)}claim(e,r){let i=this.holderKey(e),n=r.map(s=>this.recordKey(s)),o=Ct({kind:\"claim\",state:this.wire,holder:i,records:n},t.RESPONSE.claim);return{records:o.records.map(s=>this.record(s)),live:o.live.map(s=>this.holder(s))}}split(e,r){let i=this.holderKey(e),n=this.occurrenceKey(r);return Ct({kind:\"split\",state:this.wire,holder:i,scope:n},t.RESPONSE.keys).map(o=>this.originalClaim(o))}handUp(e){let r=this.holderKey(e),i=Ct({kind:\"hand_up\",state:this.wire,holder:r},t.RESPONSE.handUp);return{parent:this.holder(i.parent),claims:i.claims.map(n=>this.originalClaim(n)),live:i.live.map(n=>this.holder(n))}}revoke(e){let r=this.holderKey(e);return Ct({kind:\"revoke\",state:this.wire,holder:r},t.RESPONSE.keys).map(i=>this.record(i))}};var rC=F.strictObject({kind:F.enum([\"deny\",\"ask\",\"route\"]),reason:F.string().nullable().optional(),runtime:F.string().nullable().optional()}).superRefine((t,e)=>{t.kind===\"route\"?t.runtime||e.addIssue({code:\"custom\",message:\"a route names its runtime\"}):(t.runtime??null)!==null&&e.addIssue({code:\"custom\",message:`a ${t.kind} carries no runtime`})});function F$(t){return jt({allow:null,deny:[t],ask:[]}).ask(\"posix_level\",{rule:0})===!0}function P0(t){if(t===null)return[];let e=t.allow===null?[]:[\"commands.allow\"];for(let[r,i]of[[\"deny\",t.deny],[\"ask\",t.ask]])for(let n of i)F$(n)||e.push(`commands.${r}: ${n.reason}`);return e}var B$=new Set([\".DS_Store\",\".Spotlight-V100\",\".fseventsd\",\".Trashes\"]);function Yp(t){return B$.has(t)||t.startsWith(\"._\")}var Z$=new Set([\"ENOENT\",\"ENOTDIR\"]),W$=new Ot(16),_a=class t{files;session;now;root;handles=new Ei;static grown=new WeakSet;hydrations=new Map;hydrationGen=new Map;pending=new Map;removals=new Map;opening=new Map;uid;gid;noAppend=new Set;removed=0;constructor(e,r={}){this.files=e,this.now=new Date,this.root=r.rootPrefix!==void 0?j(r.rootPrefix):\"\",this.uid=r.owner?.uid??0,this.gid=r.owner?.gid??0,this.session=r.session??null;let i=this.session===null?[]:P0(this.session.commands);this.session!==null&&i.length>0&&console.warn(`session ${this.session.sessionId}: an entry point that sees only ops (a kernel mount, SFTP, codex-exec's file calls) cannot apply ${i.join(\"; \")}; path rules, hides and modes still hold`)}op(e){return this.session===null?e():Pv(this.session,e)}async statCached(e,r){let[i]=await this.op(()=>this.files.dispatch(\"stat\",M.fromStrPath(this.resolve(e),void 0,\"/\"),[],{retained:r}));return i}async readCached(e,r){let[i]=await this.op(()=>this.files.dispatch(\"read\",M.fromStrPath(this.resolve(e),void 0,\"/\"),[],{retained:r}));return i}resolve(e){return this.root===\"\"?e:e===\"/\"?this.root:this.root+e}attrs(e,r=null){let i=ga(e),n=i===null?this.now:new Date(i),o=ya(e);return{mtime:n,atime:o===null?n:new Date(o),ctime:n,nlink:pt(e)?2:1,size:r??Dt(e),mode:ki(e),uid:typeof e.uid==\"number\"?e.uid:this.uid,gid:typeof e.gid==\"number\"?e.gid:this.gid,rdev:va(e)}}shownTarget(e,r){if(!r.startsWith(\"/\"))return r;let i=r;if(this.root!==\"\")if(r===this.root)i=\"/\";else if(r.startsWith(this.root+\"/\"))i=r.slice(this.root.length);else return r;let n=e.lastIndexOf(\"/\"),o=(n<=0?\"\":Je(e.slice(0,n))).split(\"/\").filter(Boolean),s=Je(i).split(\"/\").filter(Boolean),a=0;for(;a<o.length&&o[a]===s[a];)a++;return[...o.slice(a).map(()=>\"..\"),...s.slice(a)].join(\"/\")||\".\"}heldSize(e){for(let r of this.openOn(this.identity(e)))if(r.data!==void 0)return r.data.byteLength;return null}hydrate(e,r){let i=t.view(this.identity(e),r),n=this.hydrations.get(i);if(n!==void 0)return n;let o=(async()=>{try{for(;;){let s=this.hydrationGen.get(i)??0,a=await this.op(()=>this.files.read(this.resolve(e),t.stored(r)));if((this.hydrationGen.get(i)??0)===s)return a}}catch(s){console.debug(`fuse: hydration read of ${e} failed, deferring to read(): ${String(s)}`);return}finally{this.hydrations.delete(i),this.hydrationGen.delete(i)}})();return this.hydrations.set(i,o),o}mutate(e,r){return this.queue(this.pending,e,r)}queueAll(e,r,i){let[n=\"\",...o]=[...new Set(r)].sort(ue);return o.length===0?this.queue(e,n,i):this.queue(e,n,()=>this.queueAll(e,o,i))}removing(e,r){let i=e.map(n=>this.identity(n,!1));return this.queueAll(this.removals,i,async()=>{await Promise.all(i.flatMap(n=>[...this.opening.get(n)??[]])),await r()})}queue(e,r,i){let o=(e.get(r)??Promise.resolve()).then(i,i),s=o.then(()=>{},()=>{});return e.set(r,s),s.then(()=>{e.get(r)===s&&e.delete(r)}),o}async applyWrites(e,r,i=!1){let n=this.resolve(e),o=0;try{for(let[s,a]of r)i?await this.appendTo(n,a):await this.op(()=>this.files.pwrite(n,a,s)),o+=1}finally{r.splice(0,o),await this.changed(e)}}async appendTo(e,r){let i=this.files.mountOf(e)??e;if(!this.noAppend.has(i))try{await this.op(()=>this.files.append(e,r instanceof Uint8Array?r:ur(r)));return}catch(s){if(!Ri(s,\"append\"))throw s;this.noAppend.add(i)}let n=r instanceof Uint8Array?r:await je(ur(r)),o=new Uint8Array;try{let[s]=await this.op(()=>this.files.dispatch(\"read\",M.fromStrPath(e,void 0,\"/\"),[],{filetype:null,direct:!0}));o=s}catch(s){if(!ce(s))throw s}await this.op(()=>this.files.write(e,L([o,n])))}static stored(e){return e?{raw:e}:void 0}static view(e,r){return`${r?\"stored\":\"rendered\"}:${e}`}async getattr(e,r=!1,i=null){if(e===\"/\")return this.rootAttrs();if(Yp(e.slice(e.lastIndexOf(\"/\")+1)))throw pr(e);let n=await this.row(e,r,i);if(or(n)){let o=await this.op(()=>this.files.readlink(this.resolve(e)));return this.attrs(n,new TextEncoder().encode(this.shownTarget(e,o)).byteLength)}return this.attrs(n)}async row(e,r,i,n=!1){let o=i?.data?.byteLength??null,s,a=!1;if(i?.detached!==void 0)a=!0,s=i.detached;else if(n&&i?.row!==void 0&&performance.now()-(i.rowAt??0)<1*1e3)a=!0,s=i.row;else{let u=i?.restats??0;try{s=await this.op(()=>this.files.stat(this.resolve(e),void 0,{nofollow:!r})),i!==null&&(i.restats??0)===u&&(i.row=s,i.rowAt=performance.now())}catch(c){if(o===null||J(c)!==\"ENOENT\")throw c;a=!0,s=new Ne({name:e.slice(e.lastIndexOf(\"/\")+1),type:ie.FILE})}}if(or(s))return s;if(pt(s))return a?this.statCached(e,s):s;o===null&&s.size===null&&(o=this.heldSize(e));let l=this.writesOn(i===null?this.identity(e,r):i.key,i);if(l.length>0){let u=o??Dt(s);for(let[c,d]of l)u=Math.max(u,c+d.byteLength);o=u}return o!==null&&o!==s.size&&(s=s.with({size:o})),a?this.statCached(e,s):s}async fgetattr(e,r){let i=this.handles.get(r)??null;return i!==null&&await this.settled(i),this.getattr(i?.path??e,i!==null,i)}async stat(e,r=!0){return this.row(e,r,null)}async fstat(e){let r=this.openHandle(e);return await this.settled(r),this.row(r.path,!0,r,!0)}openHandle(e){let r=this.handles.get(e);if(r===void 0)throw ht(String(e));return r}static end(e){let r=e.data?.byteLength??e.chunked?.size??e.size??0;for(let[i,n]of e.writeBuf??[])r=Math.max(r,i+n.byteLength);return r}async rootAttrs(){let e;try{e=await this.op(()=>this.files.stat(this.resolve(\"/\")))}catch(r){if(J(r)!==\"ENOENT\")throw r;console.debug(`fuse: the mount root has no row of its own: ${String(r)}`),e=await this.statCached(\"/\",new Ne({name:\"/\",type:ie.DIRECTORY}))}return this.attrs(e)}async readdir(e){let r=new Set,i=await this.op(()=>this.files.readdir(this.resolve(e)));for(let n of i){let o=j(n).split(\"/\").pop()??\"\";o!==\"\"&&!Yp(o)&&r.add(o)}return[\".\",\"..\",...[...r].sort(ue)]}async listing(e,r=null,i=!1){let n=r??await this.readdir(e),o=new Array(n.length).fill(null),s=n.entries(),a={failed:!1},l=async()=>{for(let[u,c]of s){let d=c===\".\"?e:c===\"..\"?Ks(e):Je(`${e}/${c}`),f=await W$.acquire();try{if(a.failed)return;o[u]=[c,await this.getattr(d,i)]}catch(p){if(!Z$.has(J(p))){a.failed||Object.assign(a,{error:p,failed:!0});return}console.debug(`${d} vanished while listing: ${String(p)}`)}finally{f()}}};if(await Promise.all(Array.from({length:Math.min(16,n.length)},l)),a.failed)throw a.error;return o.filter(u=>u!==null)}async read(e,r,i,n){let o=this.handles.get(r);if(o===void 0){let d=await this.op(()=>this.files.read(this.resolve(e))),f=this.writesOn(this.identity(e),null);if(f.length>0){let p=await lr(f,i,n);return this.readCached(e,ar(d.subarray(i),i,n,p))}return d.subarray(i,i+n)}if(!o.mode.readable)throw ht(o.path);if(o.lost!==void 0&&o.data===void 0)throw o.lost;await this.settled(o);let s=o.mode.writable,a,l=!1;if(o.live===!0)a=await this.op(()=>this.files.read(this.resolve(o.path),{offset:i,size:n,...t.stored(s)}));else if(o.chunked!==void 0&&o.data===void 0)l=o.chunked.holds(i,n)||o.chunked.peek(i,1).byteLength>0,a=await o.chunked.pread(i,n);else{let d=o.data;if(d===void 0){let f=o.generation??0;d=await this.op(()=>this.files.read(this.resolve(o.path),t.stored(s))),(o.generation??0)===f&&(o.data=d)}else l=!0;a=d.subarray(i,i+n)}let u=this.writesOn(o.key,o),c=u.length>0?ar(a,i,n,await lr(u,i,n)):a;return l||u.length>0?this.readCached(o.path,c):c}writesOn(e,r){let i=[];for(let n of this.openOn(e))if(n!==r&&!n.mode.append)for(let o of n.writeBuf??[])i.push(o);if(r!==null)for(let n of r.writeBuf??[])i.push(n);return i}async write(e,r,i,n){let o=this.handles.get(r);if(o!==void 0){if(!o.mode.writable)throw ht(o.path);let a=o.mode.append?t.end(o):n;this.supersede(o.key,a,i.byteLength,o),await t.buffer(o,a,i);return}let s=this.identity(e);this.supersede(s,n,i.byteLength,void 0),await this.mutate(s,()=>this.applyWrites(e,[[n,i]]))}static async buffer(e,r,i){if(i.byteLength===0)return;e.writeBuf??=[];let n=e.writeBuf.at(-1);if(n!==void 0){let[o,s]=n,a=o+s.byteLength;if(s instanceof Uint8Array&&o<=r&&r<=a){n[1]=t.folded(s,r-o,i),await t.spill(e);return}if(s instanceof et&&r===a&&s.source===e.spool&&s.offset+s.size===e.spooled){n[1]=new et(s.source,s.offset,s.size+i.byteLength),e.spooled+=i.byteLength,await s.source.append(i);return}}if(e.writeBuf.push([r,new Uint8Array(i)]),e.writeBuf.length>=64){let o=t.held(e.writeBuf);o.length===e.writeBuf.length&&(e.writeBuf=wa(o))}await t.spill(e)}static held(e){return e.filter(r=>r[1]instanceof Uint8Array)}static async spill(e){let r=e.writeBuf??[],i=[],n=0;for(let[,s]of r)s instanceof Uint8Array&&(i.push(s),n+=s.byteLength);if(n<=mt)return;e.spool===void 0&&(e.spool=new ba,e.spooled=0);let o=e.spool;for(let s of r){let a=s[1];a instanceof Uint8Array&&(s[1]=new et(o,e.spooled??0,a.byteLength),e.spooled=(e.spooled??0)+a.byteLength)}await o.append(L(i))}static folded(e,r,i){let n=Math.max(e.byteLength,r+i.byteLength),o;return t.grown.has(e)&&e.byteOffset+n<=e.buffer.byteLength?(o=new Uint8Array(e.buffer,e.byteOffset,n),t.grown.delete(e)):(o=new Uint8Array(Math.max(n,2*e.byteLength)).subarray(0,n),o.set(e)),o.set(i,r),t.grown.add(o),o}supersede(e,r,i,n){if(n?.mode.append!==!0)for(let o of this.openOn(e))o===n||o.mode.append||o.writeBuf===void 0||(o.writeBuf=t.cut(o.writeBuf,r,i),o.cuts?.push([r,i]))}static cut(e,r,i){let n=r+i,o=[];for(let[s,a]of e){if(s>=n||s+a.byteLength<=r){o.push([s,a]);continue}s<r&&o.push([s,a.subarray(0,r-s)]),s+a.byteLength>n&&o.push([n,a.subarray(n-s)])}return o}static putBack(e,r){let i=r;for(let[n,o]of e.cuts??[])i=t.cut(i,n,o);e.writeBuf=[...i,...e.writeBuf??[]]}async create(e,r=null){let i=this.identity(e);return await this.make(e,r),this.handles.add({path:e,key:i,mode:{...sr,writable:!0,create:!0}})}async make(e,r){await this.mutate(this.identity(e),async()=>{await this.op(()=>this.files.create(this.resolve(e))),await this.keepMode(e,r),await this.changed(e)})}async mkdir(e,r=null){await this.op(()=>this.files.mkdir(this.resolve(e))),await this.keepMode(e,r)}async keepMode(e,r){if(r!==null)try{let i=await this.op(()=>this.files.stat(this.resolve(e)));(ki(i)&4095)!==(r&4095)&&await this.setattr(e,r)}catch(i){console.debug(`mount: keeping the mode of ${e} failed: ${String(i)}`)}}async readlink(e){let r=await this.op(()=>this.files.readlink(this.resolve(e)));return this.shownTarget(e,r)}async symlink(e,r){let i=e.startsWith(\"/\")?this.resolve(e):e;await this.op(()=>this.files.symlink(this.resolve(r),i))}async unlink(e){let r=this.identity(e,!1);await this.removing([e],()=>this.mutate(r,async()=>{let i=this.named(e),n=await this.hold(e,i);await this.op(()=>this.files.unlink(this.resolve(e))),this.detach(i,n),await this.changed(e,!1)}))}async changed(e,r=!0){let i=this.identity(e,r);this.restatKey(i);for(let s of[t.view(i,!0),t.view(i,!1)])this.hydrations.has(s)&&this.hydrationGen.set(s,(this.hydrationGen.get(s)??0)+1);if(!r)return;let n=this.openOn(i);for(let s of n)s.generation=(s.generation??0)+1,s.chunked?.drop();for(let s of[!0,!1]){let a=n.filter(u=>u.data!==void 0&&u.mode.writable===s);if(a.length===0)continue;let l;try{l=await this.op(()=>this.files.read(this.resolve(e),t.stored(s)))}catch(u){console.warn(`fuse: refresh of ${e} after a change failed: ${String(u)}`);for(let c of a)delete c.data;continue}for(let u of a)u.data=l}let o=n.filter(s=>s.mode.append&&s.data===void 0);if(o.length!==0)try{let s=await this.op(()=>this.files.stat(this.resolve(e)));for(let a of o)a.size=Dt(s),a.chunked!==void 0&&(a.chunked.size=Dt(s))}catch(s){console.warn(`fuse: the length of ${e} after a change failed: ${String(s)}`)}}async ftruncate(e,r){let i=this.openHandle(e);if(!i.mode.writable)throw ht(i.path);if(r<0)throw Ni(i.path);let n=i.detached;if(n===void 0){await this.truncate(i.path,r);return}await this.mutate(i.key,async()=>{i.writeBuf!==void 0&&i.writeBuf.length>0&&await this.landHeld(i,i.detached??n);let o=i.data??new Uint8Array,s=new Uint8Array(r);s.set(o.subarray(0,r));let a=(i.detached??n).with({size:r});for(let l of this.openOn(i.key))l!==i&&l.data!==o||(l.data=s,l.detached=a,l.writeBuf=(l.writeBuf??[]).filter(([u])=>u<r).map(([u,c])=>[u,c.subarray(0,r-u)]))})}async rename(e,r){let i=this.resolve(e),n=this.resolve(r),o=this.identity(e,!1);await this.removing([e,r],()=>this.queueAll(this.pending,[o,this.identity(r,!1)],async()=>{let s=this.named(r).filter(c=>c.key!==o),a=await this.hold(r,s),l=this.identity(e,!1),u=this.identity(r,!1);await this.op(()=>this.files.rename(i,n)),this.detach(s,a);for(let c of this.handles.values())if(c.detached===void 0&&(c.key===l||c.key.startsWith(`${l}/`))){let d=c.key.slice(l.length);c.key=u+d,c.path=this.mountPath(c.key,r+d)}await this.changed(e,!1),await this.changed(r,!1)}))}async rmdir(e){await this.op(()=>this.files.rmdir(this.resolve(e)))}mountPath(e,r){return e.startsWith(`${this.root}/`)?e.slice(this.root.length):r}identity(e,r=!0){let i=this.resolve(e),n=ra(this.files),o=()=>r?Je(n.follow(i)):n.followParent(i);return this.session===null?o():Le({...W(),session:this.session},o)()}async settle(e){for(;;){let r=e.key;if(await this.mutate(r,async()=>e.key!==r?!1:(await this.persistBuffered(e),!0)))return}}named(e){return this.openOn(this.identity(e,!1))}openOn(e){return[...this.handles.values()].filter(r=>r.key===e)}detach(e,r){this.removed+=1;let i=`\\0${String(this.removed)}`;for(let n of e)n.detached=r,n.key=i}async landHeld(e,r){let i=e.data??new Uint8Array,n=t.end(e),o=e.writeBuf??[],s=new Uint8Array;e.writeBuf=[[n,s]],e.cuts=[];let a;try{a=ar(i,0,n,await lr(o,0,n))}catch(u){throw t.putBack(e,o),u}finally{delete e.cuts,e.writeBuf=e.writeBuf.filter(([,u])=>u!==s)}await t.freeSpool(e);let l=r.with({size:a.byteLength});for(let u of this.openOn(e.key))u!==e&&u.data!==i||(u.data=a,u.detached=l)}async land(e,r=!0){let i=this.identity(e,r);await this.mutate(i,()=>this.landBuffered(i))}restat(e,r=!0){this.restatKey(this.identity(e,r))}restatKey(e){for(let r of this.openOn(e))delete r.row,r.restats=(r.restats??0)+1}async landBuffered(e){for(let r of this.openOn(e))await this.persistBuffered(r)}async persistBuffered(e){if(e.writeBuf===void 0||e.writeBuf.length===0)return;if(e.detached!==void 0){await this.landHeld(e,e.detached);return}let r=t.held(e.writeBuf);if(r.length<e.writeBuf.length){let n=Jp(e.writeBuf);e.writeBuf=[],e.cuts=[];try{await this.landSpooled(e,n)}catch(o){throw t.putBack(e,n.flat()),o}finally{delete e.cuts}await t.freeSpool(e);return}let i=wa(r);e.writeBuf=[],e.cuts=[];try{await this.applyWrites(e.path,i,e.mode.append)}catch(n){throw t.putBack(e,i),n}finally{delete e.cuts}}async landSpooled(e,r){let i=this.resolve(e.path),n=0;try{for(let o of r){let s=o[0]?.[0]??0,a=s;for(let[l,u]of o)a=Math.max(a,l+u.byteLength);e.mode.append?await this.appendTo(i,o):s===0&&await this.endsBy(e.path,a)?await this.op(()=>this.files.write(i,ur(o))):await this.op(()=>this.files.pwrite(i,ur(o),s)),n+=1}}finally{r.splice(0,n),await this.changed(e.path)}}async endsBy(e,r){let i;try{i=await this.op(()=>this.files.stat(this.resolve(e),void 0,{fresh:!0}))}catch(n){let o=J(n);if(o===\"ENOENT\")return!0;if(o!==\"EACCES\")throw n;return console.debug(`fuse: ${e} lands as a pwrite, unsized: ${String(n)}`),!1}return i.size!==null&&i.size<=r}static async freeSpool(e){let r=e.spool;r===void 0||(e.writeBuf??[]).some(([,i])=>i instanceof et)||(delete e.spool,await r.close())}async truncate(e,r){let i=this.identity(e);await this.mutate(i,async()=>{await this.landBuffered(i),await this.op(()=>this.files.truncate(this.resolve(e),r)),await this.changed(e)})}statfs(){return{bsize:4096,frsize:4096,blocks:1024*1024,bfree:1024*1024,bavail:1024*1024,files:1e6,ffree:1e6,favail:1e6,namemax:255}}async setattr(e,r,i=null,n=null,o=null,s=null,a=!1){let l={nofollow:!a};r!==null&&(l.mode=r&4095),i!==null&&(l.uid=i),n!==null&&(l.gid=n),o!==null&&(l.atime=o.toISOString()),s!==null&&(l.mtime=s.toISOString());let u=this.identity(e,a),c=o!==null||s!==null,d=async()=>{c&&await this.landBuffered(u),await this.op(()=>this.files.setattr(this.resolve(e),l)),this.restatKey(u)};await(c?this.mutate(u,d):d())}async setxattr(e,r,i,n={}){await this.op(()=>this.files.setxattr(this.resolve(e),r,Uint8Array.from(i),n))}async getxattr(e,r){return this.op(()=>this.files.getxattr(this.resolve(e),r))}async listxattr(e){return this.op(()=>this.files.listxattr(this.resolve(e)))}async removexattr(e,r){await this.op(()=>this.files.removexattr(this.resolve(e),r))}async open(e,r=sr,i=null){for(let a=this.removalOf(e);a!==void 0;a=this.removalOf(e))await a;let n=new Set([this.identity(e,!1),this.identity(e)]),o=this.openPath(e,r,i),s=o.then(()=>{},()=>{});for(let a of n)this.opening.set(a,(this.opening.get(a)??new Set).add(s));try{return await o}finally{for(let a of n){let l=this.opening.get(a);l?.delete(s),l?.size===0&&this.opening.delete(a)}}}async openPath(e,r,i){if(e.endsWith(\"/\")&&e!==\"/\"){let c=await this.rowOrNull(j(e));if(c!==null&&!pt(c))throw sm(e);if(c===null&&r.create)throw za(e)}let n=await this.rowOrNull(e,r.exclusive),o=n!==null?pt(n):await this.listed(e);if(r.exclusive&&(n!==null||o))throw Ua(e);let s=this.identity(e);if(o){if(r.writable||r.create||r.directory!==!0)throw za(e);return this.handles.add({path:e,key:s,mode:r})}let a=this.mountPath(s,e),l=n===null||r.truncate;if(n===null){if(!r.create)throw pr(e);await this.make(e,i)}else r.truncate?await this.empty(e):r.writable&&await this.op(()=>this.files.dispatch(\"write\",M.fromStrPath(this.resolve(e),void 0,\"/\"),[],{admit_only:!0}));let u={path:a,key:s,mode:r,live:n?.extra[kv]===!0,size:n===null||r.truncate?0:Dt(n)};if(u.live===!0||n===null)return this.handles.add(u);if(l||(u.row=n,u.rowAt=performance.now()),n.size===null){let c=await this.hydrate(a,r.writable);c!==void 0&&(u.data=c)}else n.size>1048576&&!l&&(u.chunked=new Ti(a,n.size,(c,d)=>this.op(()=>this.files.read(this.resolve(u.path),{offset:c,size:d,...t.stored(r.writable)}))));return this.handles.add(u)}async rowOrNull(e,r=!1){try{return await this.op(()=>this.files.stat(this.resolve(e),void 0,{nofollow:r}))}catch(i){if(J(i)!==\"ENOENT\")throw i;return null}}async listed(e){try{await this.op(()=>this.files.readdir(this.resolve(e)))}catch(r){let i=J(r);if(i===\"ENOENT\"||i===\"ENOTDIR\")return!1;throw r}return!0}async empty(e){try{await this.truncate(e,0)}catch(r){if(J(r)!==\"ENOTSUP\")throw r;await this.make(e,null)}}removalOf(e){return this.removals.get(this.identity(e,!1))??this.removals.get(this.identity(e))}async hold(e,r){let i=new Ne({name:e.slice(e.lastIndexOf(\"/\")+1),type:ie.FILE});if(r.length===0)return i;let n=this.resolve(e),o=i;try{o=await this.op(()=>this.files.stat(n))}catch(a){console.warn(`fuse: the row of ${e} before it goes failed: ${String(a)}`)}for(let a of[!0,!1]){let l=r.filter(c=>c.data===void 0&&c.live!==!0&&c.mode.writable===a);if(l.length===0)continue;let u;try{u=await this.op(()=>this.files.read(n,t.stored(a)))}catch(c){console.warn(`fuse: holding ${e} before it goes failed: ${String(c)}`);for(let d of l)d.lost=c instanceof Error?c:new Error(String(c));continue}for(let c of l)c.data=u,delete c.chunked}let s=[];for(let a of r){if(a.data===void 0)continue;let l=a.data,u=s.find(c=>c.byteLength===l.byteLength&&Di(c,l)===0);u===void 0?s.push(l):a.data=u}return o}async settled(e){let r=null;for(;r!==e.key;)r=e.key,await this.pending.get(r)}async release(e){let r=this.handles.get(e);try{r!==void 0&&await this.flush(r.path,e)}finally{this.handles.pop(e),r?.spool!==void 0&&await r.spool.close()}}async flush(e,r){let i=this.handles.get(r);i!==void 0&&await this.settle(i)}async sync(){for(let e of[...this.handles.values()])try{await this.settle(e)}catch(r){console.warn(`fuse: landing ${e.path} failed: ${String(r)}`)}}};var u4=new TextEncoder,c4=new TextDecoder(\"utf-8\",{fatal:!0,ignoreBOM:!0});var h4=new Set(\"#~\"),g4=new Set('!\"#$&()*;<=>?[\\\\^`{|}~');var dn=[[\"--check\"],[\"--ignore-missing\"],[\"--quiet\"],[\"--status\"],[\"--warn\"],[\"--strict\"],[\"--tag\"],[\"--zero\"],[\"--binary\"],[\"--text\"],[\"--help\"],[\"--version\"]],R0=[[\"--recursive\"],[\"--changes\"],[\"--dereference\"],[\"--from\"],[\"--no-dereference\"],[\"--no-preserve-root\"],[\"--preserve-root\"],[\"--quiet\",\"--silent\"],[\"--reference\"],[\"--verbose\"],[\"--help\"],[\"--version\"]],qp=[[\"--ascii\"],[\"--to-stdout\",\"--stdout\"],[\"--decompress\",\"--uncompress\"],[\"--force\"],[\"--help\"],[\"--keep\"],[\"--list\"],[\"--license\"],[\"--no-name\"],[\"--name\"],[\"---presume-input-tty\"],[\"--quiet\",\"--silent\"],[\"--synchronous\"],[\"--recursive\"],[\"--suffix\"],[\"--test\"],[\"--verbose\"],[\"--version\"],[\"--fast\"],[\"--best\"],[\"--lzw\"],[\"--bits\"],[\"--rsyncable\"]],D0={b2sum:[[\"--length\"],...dn],base64:[[\"--decode\"],[\"--ignore-garbage\"],[\"--wrap\"],[\"--help\"],[\"--version\"]],basename:[[\"--multiple\"],[\"--suffix\"],[\"--zero\"],[\"--help\"],[\"--version\"]],cat:[[\"--number-nonblank\"],[\"--number\"],[\"--squeeze-blank\"],[\"--show-nonprinting\"],[\"--show-ends\"],[\"--show-tabs\"],[\"--show-all\"],[\"--help\"],[\"--version\"]],chgrp:R0,chmod:[[\"--changes\"],[\"--dereference\"],[\"--recursive\"],[\"--no-dereference\"],[\"--no-preserve-root\"],[\"--preserve-root\"],[\"--quiet\",\"--silent\"],[\"--reference\"],[\"--verbose\"],[\"--help\"],[\"--version\"]],chown:R0,cmp:[[\"--print-bytes\"],[\"--print-chars\"],[\"--ignore-initial\"],[\"--verbose\"],[\"--bytes\"],[\"--silent\",\"--quiet\"],[\"--version\"],[\"--help\"]],comm:[[\"--check-order\"],[\"--nocheck-order\"],[\"--output-delimiter\"],[\"--total\"],[\"--zero-terminated\"],[\"--help\"],[\"--version\"]],cp:[[\"--archive\"],[\"--attributes-only\"],[\"--backup\"],[\"--copy-contents\"],[\"--debug\"],[\"--dereference\"],[\"--force\"],[\"--interactive\"],[\"--link\"],[\"--no-clobber\"],[\"--no-dereference\"],[\"--no-preserve\"],[\"--no-target-directory\"],[\"--one-file-system\"],[\"--parents\",\"--path\"],[\"--preserve\"],[\"--recursive\"],[\"--remove-destination\"],[\"--sparse\"],[\"--reflink\"],[\"--strip-trailing-slashes\"],[\"--suffix\"],[\"--symbolic-link\"],[\"--target-directory\"],[\"--update\"],[\"--verbose\"],[\"--keep-directory-symlink\"],[\"--help\"],[\"--version\"]],csplit:[[\"--digits\"],[\"--quiet\"],[\"--silent\"],[\"--keep-files\"],[\"--elide-empty-files\"],[\"--prefix\"],[\"--suffix-format\"],[\"--suppress-matched\"],[\"--help\"],[\"--version\"]],cut:[[\"--bytes\"],[\"--characters\"],[\"--fields\"],[\"--delimiter\"],[\"--only-delimited\"],[\"--output-delimiter\"],[\"--complement\"],[\"--zero-terminated\"],[\"--help\"],[\"--version\"]],date:[[\"--date\"],[\"--debug\"],[\"--file\"],[\"--iso-8601\"],[\"--reference\"],[\"--resolution\"],[\"--rfc-email\",\"--rfc-822\",\"--rfc-2822\"],[\"--rfc-3339\"],[\"--set\"],[\"--uct\",\"--utc\",\"--universal\"],[\"--help\"],[\"--version\"]],df:[[\"--all\"],[\"--block-size\"],[\"--inodes\"],[\"--human-readable\"],[\"--si\"],[\"--local\"],[\"--output\"],[\"--portability\"],[\"--print-type\"],[\"--sync\"],[\"--no-sync\"],[\"--total\"],[\"--type\"],[\"--exclude-type\"],[\"--help\"],[\"--version\"]],diff:[[\"--binary\"],[\"--brief\"],[\"--changed-group-format\"],[\"--color\"],[\"--context\"],[\"--ed\"],[\"--exclude\"],[\"--exclude-from\"],[\"--expand-tabs\"],[\"--forward-ed\"],[\"--from-file\"],[\"--help\"],[\"--horizon-lines\"],[\"--ifdef\"],[\"--ignore-all-space\"],[\"--ignore-blank-lines\"],[\"--ignore-case\"],[\"--ignore-file-name-case\"],[\"--ignore-matching-lines\"],[\"--ignore-space-change\"],[\"--ignore-tab-expansion\"],[\"--ignore-trailing-space\"],[\"--inhibit-hunk-merge\"],[\"--initial-tab\"],[\"--label\"],[\"--left-column\"],[\"--line-format\"],[\"--minimal\"],[\"--new-file\"],[\"--new-group-format\"],[\"--new-line-format\"],[\"--no-dereference\"],[\"--no-ignore-file-name-case\"],[\"--normal\"],[\"--old-group-format\"],[\"--old-line-format\"],[\"--paginate\"],[\"--palette\"],[\"--rcs\"],[\"--recursive\"],[\"--report-identical-files\"],[\"--sdiff-merge-assist\"],[\"--show-c-function\"],[\"--show-function-line\"],[\"--side-by-side\"],[\"--speed-large-files\"],[\"--starting-file\"],[\"--strip-trailing-cr\"],[\"--suppress-blank-empty\"],[\"--suppress-common-lines\"],[\"--tabsize\"],[\"--text\"],[\"--to-file\"],[\"--unchanged-group-format\"],[\"--unchanged-line-format\"],[\"--unidirectional-new-file\"],[\"--unified\"],[\"--version\"],[\"--width\"],[\"---no-directory\"],[\"---presume-output-tty\"]],dirname:[[\"--zero\"],[\"--help\"],[\"--version\"]],du:[[\"--all\"],[\"--apparent-size\"],[\"--block-size\"],[\"--bytes\"],[\"--count-links\"],[\"---debug\"],[\"--dereference\"],[\"--dereference-args\"],[\"--exclude\"],[\"--exclude-from\"],[\"--files0-from\"],[\"--human-readable\"],[\"--inodes\"],[\"--si\"],[\"--max-depth\"],[\"--null\"],[\"--no-dereference\"],[\"--one-file-system\"],[\"--separate-dirs\"],[\"--summarize\"],[\"--total\"],[\"--threshold\"],[\"--time\"],[\"--time-style\"],[\"--help\"],[\"--version\"]],expand:[[\"--tabs\"],[\"--initial\"],[\"--help\"],[\"--version\"]],fmt:[[\"--crown-margin\"],[\"--prefix\"],[\"--split-only\"],[\"--tagged-paragraph\"],[\"--uniform-spacing\"],[\"--width\"],[\"--goal\"],[\"--help\"],[\"--version\"]],fold:[[\"--bytes\"],[\"--spaces\"],[\"--width\"],[\"--help\"],[\"--version\"]],grep:[[\"--basic-regexp\"],[\"--extended-regexp\"],[\"--fixed-regexp\",\"--fixed-strings\"],[\"--perl-regexp\"],[\"--after-context\"],[\"--before-context\"],[\"--binary-files\"],[\"--byte-offset\"],[\"--context\"],[\"--color\",\"--colour\"],[\"--count\"],[\"--devices\"],[\"--directories\"],[\"--exclude\"],[\"--exclude-from\"],[\"--exclude-dir\"],[\"--file\"],[\"--files-with-matches\"],[\"--files-without-match\"],[\"--group-separator\"],[\"--help\"],[\"--include\"],[\"--ignore-case\"],[\"--no-ignore-case\"],[\"--initial-tab\"],[\"--label\"],[\"--line-buffered\"],[\"--line-number\"],[\"--line-regexp\"],[\"--max-count\"],[\"--no-filename\"],[\"--no-group-separator\"],[\"--no-messages\"],[\"--null\"],[\"--null-data\"],[\"--only-matching\"],[\"--quiet\",\"--silent\"],[\"--recursive\"],[\"--dereference-recursive\"],[\"--regexp\"],[\"--invert-match\"],[\"--text\"],[\"--binary\"],[\"--unix-byte-offsets\"],[\"--version\"],[\"--with-filename\"],[\"--word-regexp\"]],gunzip:qp,gzip:qp,head:[[\"--bytes\"],[\"--lines\"],[\"---presume-input-pipe\"],[\"--quiet\",\"--silent\"],[\"--verbose\"],[\"--zero-terminated\"],[\"--help\"],[\"--version\"]],join:[[\"--ignore-case\"],[\"--check-order\"],[\"--nocheck-order\"],[\"--zero-terminated\"],[\"--header\"],[\"--help\"],[\"--version\"]],ln:[[\"--backup\"],[\"--directory\"],[\"--no-dereference\"],[\"--no-target-directory\"],[\"--force\"],[\"--interactive\"],[\"--suffix\"],[\"--target-directory\"],[\"--logical\"],[\"--physical\"],[\"--relative\"],[\"--symbolic\"],[\"--verbose\"],[\"--help\"],[\"--version\"]],ls:[[\"--all\"],[\"--escape\"],[\"--directory\"],[\"--dired\"],[\"--full-time\"],[\"--group-directories-first\"],[\"--human-readable\"],[\"--inode\"],[\"--kibibytes\"],[\"--numeric-uid-gid\"],[\"--no-group\"],[\"--hide-control-chars\"],[\"--reverse\"],[\"--size\"],[\"--width\"],[\"--almost-all\"],[\"--ignore-backups\"],[\"--classify\"],[\"--file-type\"],[\"--si\"],[\"--dereference-command-line\"],[\"--dereference-command-line-symlink-to-dir\"],[\"--hide\"],[\"--ignore\"],[\"--indicator-style\"],[\"--dereference\"],[\"--literal\"],[\"--quote-name\"],[\"--quoting-style\"],[\"--recursive\"],[\"--format\"],[\"--show-control-chars\"],[\"--sort\"],[\"--tabsize\"],[\"--time\"],[\"--time-style\"],[\"--zero\"],[\"--color\"],[\"--hyperlink\"],[\"--block-size\"],[\"--context\"],[\"--author\"],[\"--help\"],[\"--version\"]],md5sum:dn,mkdir:[[\"--mode\"],[\"--parents\"],[\"--verbose\"],[\"--help\"],[\"--version\"]],mktemp:[[\"--directory\"],[\"--quiet\"],[\"--dry-run\"],[\"--suffix\"],[\"--tmpdir\"],[\"--help\"],[\"--version\"]],mv:[[\"--backup\"],[\"--context\"],[\"--debug\"],[\"--exchange\"],[\"--force\"],[\"--interactive\"],[\"--no-clobber\"],[\"--no-copy\"],[\"--no-target-directory\"],[\"--strip-trailing-slashes\"],[\"--suffix\"],[\"--target-directory\"],[\"--update\"],[\"--verbose\"],[\"--help\"],[\"--version\"]],nl:[[\"--header-numbering\"],[\"--body-numbering\"],[\"--footer-numbering\"],[\"--starting-line-number\"],[\"--line-increment\"],[\"--no-renumber\"],[\"--join-blank-lines\"],[\"--number-separator\"],[\"--number-width\"],[\"--number-format\"],[\"--section-delimiter\"],[\"--help\"],[\"--version\"]],numfmt:[[\"--from\"],[\"--from-unit\"],[\"--to\"],[\"--to-unit\"],[\"--round\"],[\"--padding\"],[\"--suffix\"],[\"--grouping\"],[\"--delimiter\"],[\"--field\"],[\"--debug\"],[\"---debug\"],[\"--header\"],[\"--format\"],[\"--invalid\"],[\"--zero-terminated\"],[\"--help\"],[\"--version\"]],od:[[\"--skip-bytes\"],[\"--address-radix\"],[\"--read-bytes\"],[\"--format\"],[\"--output-duplicates\"],[\"--strings\"],[\"--traditional\"],[\"--width\"],[\"--endian\"],[\"--help\"],[\"--version\"]],paste:[[\"--serial\"],[\"--delimiters\"],[\"--zero-terminated\"],[\"--help\"],[\"--version\"]],pwd:[[\"--logical\"],[\"--physical\"],[\"--help\"],[\"--version\"]],readlink:[[\"--canonicalize\"],[\"--canonicalize-existing\"],[\"--canonicalize-missing\"],[\"--no-newline\"],[\"--quiet\"],[\"--silent\"],[\"--verbose\"],[\"--zero\"],[\"--help\"],[\"--version\"]],realpath:[[\"--canonicalize-existing\"],[\"--canonicalize-missing\"],[\"--relative-to\"],[\"--relative-base\"],[\"--quiet\"],[\"--strip\",\"--no-symlinks\"],[\"--zero\"],[\"--logical\"],[\"--physical\"],[\"--help\"],[\"--version\"]],rm:[[\"--force\"],[\"--interactive\"],[\"--one-file-system\"],[\"--no-preserve-root\"],[\"--preserve-root\"],[\"---presume-input-tty\"],[\"--recursive\"],[\"--dir\"],[\"--verbose\"],[\"--help\"],[\"--version\"]],rmdir:[[\"--ignore-fail-on-non-empty\"],[\"--path\",\"--parents\"],[\"--verbose\"],[\"--help\"],[\"--version\"]],seq:[[\"--equal-width\"],[\"--format\"],[\"--separator\"],[\"--help\"],[\"--version\"]],sha1sum:dn,sha224sum:dn,sha256sum:dn,sha384sum:dn,sha512sum:dn,shuf:[[\"--echo\"],[\"--input-range\"],[\"--head-count\"],[\"--output\"],[\"--random-source\"],[\"--repeat\"],[\"--zero-terminated\"],[\"--help\"],[\"--version\"]],sort:[[\"--ignore-leading-blanks\"],[\"--check\"],[\"--compress-program\"],[\"--debug\"],[\"--dictionary-order\"],[\"--ignore-case\"],[\"--files0-from\"],[\"--general-numeric-sort\"],[\"--ignore-nonprinting\"],[\"--key\"],[\"--merge\"],[\"--month-sort\"],[\"--numeric-sort\"],[\"--human-numeric-sort\"],[\"--version-sort\"],[\"--random-sort\"],[\"--random-source\"],[\"--sort\"],[\"--output\"],[\"--reverse\"],[\"--stable\"],[\"--batch-size\"],[\"--buffer-size\"],[\"--field-separator\"],[\"--temporary-directory\"],[\"--unique\"],[\"--zero-terminated\"],[\"--parallel\"],[\"--help\"],[\"--version\"]],split:[[\"--bytes\"],[\"--lines\"],[\"--line-bytes\"],[\"--number\"],[\"--elide-empty-files\"],[\"--unbuffered\"],[\"--suffix-length\"],[\"--additional-suffix\"],[\"--numeric-suffixes\"],[\"--hex-suffixes\"],[\"--filter\"],[\"--verbose\"],[\"--separator\"],[\"---io-blksize\"],[\"--help\"],[\"--version\"]],stat:[[\"--dereference\"],[\"--file-system\"],[\"--format\"],[\"--printf\"],[\"--terse\"],[\"--cached\"],[\"--help\"],[\"--version\"]],tac:[[\"--before\"],[\"--regex\"],[\"--separator\"],[\"--help\"],[\"--version\"]],tail:[[\"--bytes\"],[\"--follow\"],[\"--lines\"],[\"--max-unchanged-stats\"],[\"---disable-inotify\"],[\"--pid\"],[\"---presume-input-pipe\"],[\"--quiet\",\"--silent\"],[\"--retry\"],[\"--sleep-interval\"],[\"--verbose\"],[\"--zero-terminated\"],[\"--help\"],[\"--version\"]],tee:[[\"--append\"],[\"--ignore-interrupts\"],[\"--output-error\"],[\"--help\"],[\"--version\"]],touch:[[\"--time\"],[\"--no-create\"],[\"--date\"],[\"--reference\"],[\"--no-dereference\"],[\"--help\"],[\"--version\"]],tr:[[\"--complement\"],[\"--delete\"],[\"--squeeze-repeats\"],[\"--truncate-set1\"],[\"--help\"],[\"--version\"]],truncate:[[\"--no-create\"],[\"--io-blocks\"],[\"--reference\"],[\"--size\"],[\"--help\"],[\"--version\"]],unexpand:[[\"--tabs\"],[\"--all\"],[\"--first-only\"],[\"--help\"],[\"--version\"]],uniq:[[\"--count\"],[\"--repeated\"],[\"--all-repeated\"],[\"--group\"],[\"--ignore-case\"],[\"--unique\"],[\"--skip-fields\"],[\"--skip-chars\"],[\"--check-chars\"],[\"--zero-terminated\"],[\"--help\"],[\"--version\"]],wc:[[\"--bytes\"],[\"--chars\"],[\"--lines\"],[\"--words\"],[\"--debug\"],[\"--files0-from\"],[\"--max-line-length\"],[\"--total\"],[\"--help\"],[\"--version\"]],zcat:qp};var U4=new Fe(\"--help\",{action:\"store_true\",help:\"Show this help and exit\"}),M4=new Fe(\"--version\",{action:\"store_true\",help:\"Show version information and exit\"}),L4=new Fe(\"paths\",{metavar:\"\",type:\"path\",nargs:\"*\"}),j4=new Fe(\"texts\",{metavar:\"\",nargs:\"*\"}),F4=new Fe(\"path\",{metavar:\"\",type:\"path\",nargs:\"?\"}),B4=new Fe(\"path2\",{metavar:\"\",type:\"path\",nargs:\"?\"}),V4=new Fe(\"text\",{metavar:\"\",nargs:\"?\"}),Z4=new Fe(\"texts\",{metavar:\"\",nargs:\"REMAINDER\"});var W4=Object.freeze({join:new Set([\"-j1\",\"-j2\",\"--\"])});var G4=Object.freeze({l:\"args_l\",O:\"args_O\",I:\"args_I\",1:\"args_1\"});var G$=[[\"--list\"],[\"--extract\",\"--get\"],[\"--create\"],[\"--diff\",\"--compare\"],[\"--append\"],[\"--update\"],[\"--catenate\",\"--concatenate\"],[\"--delete\"],[\"--test-label\"],[\"--sparse\"],[\"--hole-detection\"],[\"--sparse-version\"],[\"--incremental\"],[\"--listed-incremental\"],[\"--level\"],[\"--ignore-failed-read\"],[\"--occurrence\"],[\"--seek\"],[\"--no-seek\"],[\"--no-check-device\"],[\"--check-device\"],[\"--verify\"],[\"--remove-files\"],[\"--keep-old-files\"],[\"--skip-old-files\"],[\"--keep-newer-files\"],[\"--overwrite\"],[\"--unlink-first\"],[\"--recursive-unlink\"],[\"--no-overwrite-dir\"],[\"--overwrite-dir\"],[\"--keep-directory-symlink\"],[\"--one-top-level\"],[\"--to-stdout\"],[\"--to-command\"],[\"--ignore-command-error\"],[\"--no-ignore-command-error\"],[\"--owner\"],[\"--group\"],[\"--owner-map\"],[\"--group-map\"],[\"--mtime\"],[\"--clamp-mtime\"],[\"--mode\"],[\"--atime-preserve\"],[\"--touch\"],[\"--same-owner\"],[\"--no-same-owner\"],[\"--numeric-owner\"],[\"--preserve-permissions\",\"--same-permissions\"],[\"--no-same-permissions\"],[\"--preserve-order\",\"--same-order\"],[\"--delay-directory-restore\"],[\"--no-delay-directory-restore\"],[\"--sort\"],[\"--xattrs\"],[\"--no-xattrs\"],[\"--xattrs-include\"],[\"--xattrs-exclude\"],[\"--selinux\"],[\"--no-selinux\"],[\"--acls\"],[\"--no-acls\"],[\"--file\"],[\"--force-local\"],[\"--rmt-command\"],[\"--rsh-command\"],[\"--multi-volume\"],[\"--tape-length\"],[\"--info-script\",\"--new-volume-script\"],[\"--volno-file\"],[\"--blocking-factor\"],[\"--record-size\"],[\"--ignore-zeros\"],[\"--read-full-records\"],[\"--format\"],[\"--old-archive\",\"--portability\"],[\"--posix\"],[\"--pax-option\"],[\"--label\"],[\"--auto-compress\"],[\"--no-auto-compress\"],[\"--use-compress-program\"],[\"--bzip2\"],[\"--gzip\",\"--gunzip\",\"--ungzip\"],[\"--compress\",\"--uncompress\"],[\"--lzip\"],[\"--lzma\"],[\"--lzop\"],[\"--xz\"],[\"--zstd\"],[\"--one-file-system\"],[\"--absolute-names\"],[\"--dereference\"],[\"--hard-dereference\"],[\"--starting-file\"],[\"--newer\",\"--after-date\"],[\"--newer-mtime\"],[\"--backup\"],[\"--suffix\"],[\"--strip-components\"],[\"--transform\",\"--xform\"],[\"--checkpoint\"],[\"--checkpoint-action\"],[\"--check-links\"],[\"--totals\"],[\"--utc\"],[\"--full-time\"],[\"--index-file\"],[\"--block-number\"],[\"--show-defaults\"],[\"--show-snapshot-field-ranges\"],[\"--show-omitted-dirs\"],[\"--show-transformed-names\",\"--show-stored-names\"],[\"--quoting-style\"],[\"--quote-chars\"],[\"--no-quote-chars\"],[\"--interactive\",\"--confirmation\"],[\"--verbose\"],[\"--warning\"],[\"--restrict\"],[\"--add-file\"],[\"--directory\"],[\"--files-from\"],[\"--null\"],[\"--no-null\"],[\"--unquote\"],[\"--no-unquote\"],[\"--verbatim-files-from\"],[\"--no-verbatim-files-from\"],[\"--exclude\"],[\"--exclude-from\"],[\"--exclude-caches\"],[\"--exclude-caches-under\"],[\"--exclude-caches-all\"],[\"--exclude-tag\"],[\"--exclude-ignore\"],[\"--exclude-ignore-recursive\"],[\"--exclude-tag-under\"],[\"--exclude-tag-all\"],[\"--exclude-vcs\"],[\"--exclude-vcs-ignores\"],[\"--exclude-backups\"],[\"--recursion\"],[\"--no-recursion\"],[\"--anchored\"],[\"--no-anchored\"],[\"--ignore-case\"],[\"--no-ignore-case\"],[\"--wildcards\"],[\"--no-wildcards\"],[\"--wildcards-match-slash\"],[\"--no-wildcards-match-slash\"],[\"--help\"],[\"--usage\"],[\"--program-name\"],[\"--HANG\"],[\"--version\"]],K4={...D0,tar:G$};var H4=Object.freeze({tar:2}),J4=Object.freeze({grep:2,egrep:2,fgrep:2,zgrep:2,rg:2,ls:2,sort:2,diff:2,cmp:2,awk:2,jq:2,curl:2,patch:2,tar:64,timeout:125,hostname:255,python:2,python3:2}),X4=Object.freeze({sort:2,awk:2,jq:2,xxd:2,grep:2,egrep:2,fgrep:2,rg:2,cmp:2,diff:2,sed:2,zgrep:2,unzip:9}),Y4=Object.freeze({sed:4,gzip:2,gunzip:2,zcat:2}),K$=new Set([\"python\",\"python3\"]),q4=new Set([\"curl\",\"jq\",\"find\",...K$]);async function C0(t,e){let r=null;try{let[n]=await t(\"stat\",e);r=n}catch(n){if(!Ma(n)&&n.code!==\"ELOOP\")throw n}if(r!==null)return r;let i;try{let[n]=await t(\"readdir\",e);i=n}catch(n){if(!Ma(n)&&n.code!==\"ELOOP\")throw n;return null}return!Array.isArray(i)||i.length===0?null:new Ne({name:vv(j(e.virtual)),type:ie.DIRECTORY})}function z0(t){if(t===void 0)return;let e=ra(t);if(e.linked)return{statAt:r=>e.linkStatAt(r),subtree:r=>e.linkStatsBelow(r),resolve:r=>Je(e.follow(r)),exists:async r=>{try{return await C0(t.dispatch,M.fromStrPath(r,void 0,\"/\"))!==null}catch(i){return console.debug(`link probe at ${r} failed: ${String(i)}`),!1}},targetStat:async r=>{if(!e.visible(r))return null;try{return await t.stat(Je(e.follow(r)))}catch(i){if(!(i instanceof Xe)&&!dm(i)&&!zt(i))throw i;return console.debug(`link target of ${r} has no row: ${String(i)}`),null}}}}function xa(t){let e=j(t);return e.slice(e.lastIndexOf(\"/\")+1)}function H$(t,e){let r=e.has(xa(t))?{isLink:!0}:{};return{path:t,size:0,isDir:t.endsWith(\"/\"),...r}}function M0(t){return t.mode===void 0&&!t.isDir&&t.isLink!==!0}function Qp(t){let e=ga(t),r=ya(t);return{size:Dt(t),isDir:pt(t),mode:ki(t),...e!==null?{mtimeMs:e}:{},...or(t)?{isLink:!0}:{},...Kp(t)?{rdev:va(t)}:{},...r!==null?{atimeMs:r}:{},...typeof t.uid==\"number\"?{uid:t.uid}:{},...typeof t.gid==\"number\"?{gid:t.gid}:{},source:t}}var ka=class t{constructor(e,r=new ir(()=>[]),i=null,n=null,o=null,s=[]){this.bridge=e;this.resolve=i;this.core=n;this.signal=o;this.live=s;let a=new Ot(16);this.dispatch=async(...l)=>{let u=await a.acquire();try{return await e(...l)}finally{u()}},this.resolver=r}bridge;resolve;core;signal;live;dispatch;resolver;noAppend=new Set;static of(e,r){if(r===null)return null;let i=e.vfs,n=i===void 0?r.bridge:Xv(async(l,u,c,d)=>(await i.dispatch(l,M.fromStrPath(u),c,d))[0]);if(n===null)return null;let o=W(),s=z0(i),a=[];return new t(Pt(o,n),new sa(r.resolver,o),s===void 0?null:Le(o,s.resolve.bind(s)),i===void 0?null:new _a(i.over(Pt(o,async(l,u,c,d,f)=>{let p=Dv()?[]:a;for(let y of p)y.throwIfAborted();let m=await i.dispatch(l,u,c,d,f);for(let y of p)y.throwIfAborted();return m}))),null,a)}withSignal(e){return new t(async(...r)=>{e.throwIfAborted();let i=await this.bridge(...r);return e.throwIfAborted(),i},this.resolver,this.resolve,this.core,e,this.live)}async onCore(e,r=!1){let i=this.core;if(i===null)throw ht(\"/\");if(r)return Rv(()=>e(i));let n=this.signal;if(n===null)return e(i);n.throwIfAborted(),this.live.push(n);try{let o=await e(i);return n.throwIfAborted(),o}finally{this.live.splice(this.live.indexOf(n),1)}}pathOf(e){let r=this.core?.handles.get(e);if(r===void 0)throw ht(String(e));return r.path}async open(e,r,i=null){return this.onCore(n=>n.open(e,r,i))}async pread(e,r,i){let n=this.pathOf(e);return this.onCore(o=>o.read(n,e,r,i))}async pwrite(e,r,i){let n=this.pathOf(e);await this.onCore(o=>o.write(n,e,i,r))}async fstat(e){return Qp(await this.onCore(r=>r.fstat(e)))}unlinked(e){return this.core?.handles.get(e)?.detached!==void 0}async ftruncate(e,r){await this.onCore(i=>i.ftruncate(e,r))}async fsync(e){let r=this.pathOf(e);await this.onCore(i=>i.flush(r,e),!0)}async close(e){await this.onCore(r=>r.release(e),!0)}walked(e,r=!0){let i=this.resolve;if(i===null)return e;try{if(r)return Ee(i(e),\"/\");let n=e.lastIndexOf(\"/\"),o=Ee(i(e.slice(0,n)||\"/\"),\"/\");return`${j(o)}/${e.slice(n+1)}`}catch(n){throw n instanceof Xe?Oi(e):n}}prefixes(){return this.resolver.prefixes().map(r=>se(r)).sort((r,i)=>i.length-r.length)}mountOf(e){let r=this.resolver.ownerOf(e);return r===null?null:se(r)}serves(e){if(this.prefixes().length===0||this.mountOf(e)!==null)return!0;let r=\"/\";for(let i of e.replace(/^\\/+|\\/+$/g,\"\").split(\"/\")){if(this.resolver.linkChildren(r).has(i))return!0;r=r.replace(/\\/$/,\"\")+\"/\"+i}return!1}async read(e,r={}){let i=await this.dispatch(\"read\",e,void 0,void 0,r);if(!(i instanceof Uint8Array))throw new TypeError(`runtime files: read ${e} expected Uint8Array, got ${typeof i}`);return i}async write(e,r){let i=await this.dispatch(\"write\",e,r);if(i!==void 0)throw new TypeError(`runtime files: write ${e} expected void, got ${typeof i}`);this.core?.restat(e)}async stat(e,r=!1){return{...await this.mountRow(e,r),name:this.walked(e,!r)}}async mountRow(e,r){if(this.core!==null)return Qp(await this.onCore(n=>n.stat(e,!r)));let i=await this.dispatch(\"stat\",e,void 0,void 0,r?{nofollow:!0}:void 0);if(i===null||typeof i!=\"object\"||typeof i.name!=\"string\")throw new TypeError(`runtime files: stat ${e} bad shape`);return Qp(i)}async statOrNull(e,r=!1){try{return await this.stat(e,r)}catch(i){if(J(i)===\"ENOENT\")return null;throw i}}async viewStat(e){let r=await this.statOrNull(e);if(this.serves(e)){if(r!==null)return r}else if(r!==null&&!r.isDir)return null;return await this.listingOrNull(e)===null?null:{size:0,isDir:!0,mode:Rt}}async listingOrNull(e){try{return await this.readdir(se(e),!1)}catch(r){let i=J(r);if(i!==null&&T0.has(i))return null;throw r}}async readdir(e,r=!0){let i=await this.dispatch(\"readdir\",e);if(!Array.isArray(i))throw new TypeError(`runtime files: readdir ${e} expected array`);let n=this.resolver.linkChildren(e),o=i.map(c=>{if(typeof c!=\"string\")throw new TypeError(`runtime files: readdir ${e} bad entry shape`);return H$(c,n)});if(!r)return o;let s=o.flatMap((c,d)=>c.isDir?[]:[[d,c]]),a=s.values(),l=async()=>{for(let[c,d]of a)o[c]=await this.classified(e,d)},u=Math.min(16,s.length);return await Promise.all(Array.from({length:u},l)),o}async classified(e,r){let i=r.isLink===!0?{isLink:!0}:{};try{let n=await this.stat(r.path,r.isLink===!0);return{path:r.path,size:n.size,isDir:n.isDir,mode:n.mode,mtimeMs:n.mtimeMs??0,...n.atimeMs!==void 0?{atimeMs:n.atimeMs}:{},...n.uid!==void 0?{uid:n.uid}:{},...n.gid!==void 0?{gid:n.gid}:{},...n.isLink===!0?{isLink:!0}:{},...n.rdev!==void 0?{rdev:n.rdev}:{},...i}}catch(n){return ce(n)||console.warn(`runtime files: readdir ${e}: stat ${r.path}: ${String(n)}`),r}}async truncate(e,r=0){if(r<0)throw Ni(e);this.core===null?await this.dispatch(\"truncate\",e,void 0,void 0,{length:r}):await this.onCore(i=>i.truncate(e,r))}async unlink(e){this.core===null?await this.dispatch(\"unlink\",e):await this.onCore(r=>r.unlink(e))}async mkdir(e,r=!1){await this.dispatch(\"mkdir\",e,void 0,void 0,r?{parents:!0}:void 0)}async rmdir(e){await this.dispatch(\"rmdir\",e)}async rename(e,r){if(this.mountOf(e)!==this.mountOf(r))throw lm(e);this.core===null?await this.dispatch(\"rename\",e,void 0,r):await this.onCore(i=>i.rename(e,r))}async symlink(e,r){await this.dispatch(\"symlink\",e,void 0,r)}async readlink(e){let r=await this.dispatch(\"readlink\",e);if(typeof r!=\"string\")throw new TypeError(`runtime files: readlink ${e} expected string, got ${typeof r}`);return r}async setattr(e,r){(r.atime!==void 0||r.mtime!==void 0)&&this.core!==null&&await this.onCore(i=>i.land(e,r.nofollow!==!0)),await this.dispatch(\"setattr\",e,void 0,void 0,r),this.core?.restat(e,r.nofollow!==!0)}async append(e,r){if(await this.appendDelta(e,r)){this.core?.restat(e);return}let i=new Uint8Array;try{i=await this.read(e,{raw:!0,direct:!0})}catch(n){if(!ce(n))throw n}await this.write(e,L([i,r]))}async appendDelta(e,r){let i=this.mountOf(e)??e;if(this.noAppend.has(i))return!1;try{await this.dispatch(\"append\",e,r)}catch(n){if(!Ri(n,\"append\"))throw n;return this.noAppend.add(i),!1}return!0}};var J$=Object.freeze({readable:!1,writable:!0,truncate:!1,append:!1,create:!0,exclusive:!1,binary:!0});function L0(){let t=[],e=!1,r=i=>{e||t.push(i)};return{markCreate(i){r({kind:\"create\",path:i})},takeCreate(i){let n=t.at(-1);return n?.kind!==\"create\"||n.path!==i?!1:(t.pop(),!0)},markTruncate(i,n){r({kind:\"truncate\",path:i,length:n})},markMkdir(i){r({kind:\"mkdir\",path:i})},markUnlink(i){r({kind:\"unlink\",path:i})},markRmdir(i){r({kind:\"rmdir\",path:i})},markRename(i,n){r({kind:\"rename\",path:i,dst:n})},markSymlink(i,n){r({kind:\"symlink\",path:i,target:n})},markSetattr(i,n){r({kind:\"setattr\",path:i,attrs:n})},seal(){e=!0},get sealed(){return e},reopen(){e=!1},takeMutations(){return t.splice(0,t.length)}}}async function j0(t,e){switch(e.kind){case\"create\":return t.close(await t.open(e.path,J$));case\"truncate\":return t.truncate(e.path,e.length);case\"mkdir\":return t.mkdir(e.path);case\"unlink\":return t.unlink(e.path);case\"rmdir\":return t.rmdir(e.path);case\"rename\":return t.rename(e.path,e.dst);case\"symlink\":return t.symlink(e.path,e.target);case\"setattr\":return t.setattr(e.path,e.attrs)}}var em=18,$a={O_WRONLY:1,O_RDWR:2,O_CREAT:64,O_EXCL:128,O_TRUNC:512,O_APPEND:1024},F0=1,B0=2;var X$={EBADF:\"EBADF\",ENOENT:\"ENOENT\",ENOTDIR:\"ENOTDIR\",EISDIR:\"EISDIR\",EEXIST:\"EEXIST\",EACCES:\"EACCES\",EPERM:\"EPERM\",ENOTEMPTY:\"ENOTEMPTY\",EXDEV:\"EXDEV\",ENOTSUP:\"ENOTSUP\",ELOOP:\"ELOOP\",EINVAL:\"EINVAL\",EIO:\"EIO\",EBUSY:\"EBUSY\",EROFS:\"EROFS\",EFBIG:\"EFBIG\",EDQUOT:\"EDQUOT\",EPIPE:\"EPIPE\",NO_XATTR:\"ENODATA\",STALE_WRITE:\"ESTALE\"};function Re(t,e,r){return new t.ErrnoError(e[X$[r]]??e.EIO)}function V0(t,e,r,i={}){let n=t.mtimeMs??i.unknownMs??0;return{mode:t.mode,ino:Gp(t.name??e),dev:Gp(r),nlink:t.isDir?2:1,uid:t.uid??i.uid??0,gid:t.gid??i.gid??0,rdev:t.rdev??0,size:t.size,atimeMs:t.atimeMs??n,mtimeMs:n,ctimeMs:n,blksize:xi,blocks:Math.ceil(t.size/Wp)}}var Ea=class{host;nodeOps;streamOps;prefix;root=null;constructor(e,r,i,n){this.host=e,this.prefix=r.endsWith(\"/\")?r.slice(0,-1):r,this.nodeOps=i,this.streamOps=n}mount(){return this.root=this.makeNode(null,\"/\",Rt),this.root}makeNode(e,r,i,n=0){let o=this.host.createNode(e,r,i,n);return o.node_ops=this.nodeOps,o.stream_ops=this.streamOps,this.host.isDir(i)?o.children=new Map:this.host.isLink(i)&&(o.link=\"\"),o.atime=o.mtime=o.ctime=Date.now(),e!==null&&(e.children??=new Map,e.children.set(r,o)),o}retype(e,r){let i=this.host.isDir(r)&&!this.host.isDir(e.mode);e.mode=r,i&&(e.children=new Map)}childOf(e,r){return e.children?.get(r)}invalidate(){if(this.root===null)return;let e=[...this.root.children?.values()??[]];for(;e.length>0;){let r=e.pop();if(r===void 0)break;for(let i of r.children?.values()??[])e.push(i);this.host.destroyNode?.(r)}this.root.children?.clear(),delete this.root.listed}childNames(e){return[...e.children?.keys()??[]]}detach(e,r){e.children?.delete(r)}move(e,r,i){e.parent.children?.delete(e.name),r.children??=new Map,r.children.set(i,e),e.parent=r,e.name=i}pathOf(e){let r=[],i=e;for(;i.parent!==i;)r.unshift(i.name),i=i.parent;return r.length===0?this.prefix:this.prefix+\"/\"+r.join(\"/\")}};var W0=new Map([[\"stdin\",6],[\"stdout\",7],[\"stderr\",8]]),Y$=259,q$=new Set([Y$,...W0.values()]);function Ai(t){return(t&E0)===ma}function Q$(t,e){let r={};return e.mode!==void 0&&(e.mode&4095)!==(t.mode&4095)&&(r.mode=e.mode&4095),e.atime!==void 0&&e.atime!==t.atime&&(r.atime=Vp(e.atime/1e3)),e.mtime!==void 0&&e.mtime!==t.mtime&&(r.mtime=Vp(e.mtime/1e3)),Object.keys(r).length===0?null:r}function eE(t,e,r){if(r.isDir)return r;try{return t.stat(e)}catch(i){return ce(i)||console.warn(`mirage: cannot stat ${e}: ${String(i)}`),r}}function Z0(t,e){typeof e.uid==\"number\"&&(t.uid=e.uid),typeof e.gid==\"number\"&&(t.gid=e.gid)}var Ta=class{constructor(e,r,i,n,o,s,a=new Map,l=new Set){this.sync=s;this.deferred=a;this.streams=l;this.host=e,this.errno=r,this.journal=i,this.mountOf=o;let u={getattr:this.getattr.bind(this),setattr:this.setattr.bind(this),lookup:this.lookup.bind(this),mknod:this.mknod.bind(this),rename:this.rename.bind(this),unlink:this.unlink.bind(this),rmdir:this.rmdir.bind(this),readdir:this.readdir.bind(this),symlink:this.symlink.bind(this),readlink:this.readlink.bind(this)},c={open:this.streamOpen.bind(this),close:this.streamClose.bind(this),read:this.streamRead.bind(this),write:this.streamWrite.bind(this),llseek:this.llseek.bind(this),getattr:d=>this.attrOf(d.node,d.opened??this.nodes.pathOf(d.node),this.host.isFile(d.node.mode)?this.handleOf(d):void 0)};this.nodes=new Ea(e,n,u,c),this.type={mount:this.nodes.mount.bind(this.nodes)}}sync;deferred;streams;type;host;errno;journal;nodes;mountOf;fresh=null;getattr(e){return this.attrOf(e,this.nodes.pathOf(e))}attrOf(e,r,i){let n={size:0,isDir:!1,mode:e.mode,uid:e.uid??0,gid:e.gid??0,rdev:e.rdev,atimeMs:e.atime,mtimeMs:e.mtime};if(!Ai(e.mode)){let s=this.sync;n=this.readThrough([],()=>i===void 0?s.stat(this.nodes.pathOf(e)):s.fstat(i)),e.unclassified===!0&&this.classifyNode(e,n),n.isDir&&(n={...n,size:xi})}let o=V0(n,r,\"/\");return{dev:o.dev,ino:o.ino,mode:o.mode,nlink:e.unlinked===!0?0:o.nlink,uid:o.uid,gid:o.gid,rdev:o.rdev,size:o.size,atime:new Date(o.atimeMs),mtime:new Date(o.mtimeMs),ctime:new Date(e.ctime),blksize:o.blksize,blocks:o.blocks}}setattr(e,r){let i=this.fresh===e;this.fresh=null;let n=Ai(e.mode),o=i||n?null:Q$(e,r),s=n?void 0:r.size;o!==null&&e.unlinked!==!0&&(this.host.isLink(e.mode)&&(o.nofollow=!0),this.journal.markSetattr(this.nodes.pathOf(e),o)),s!==void 0&&e.unlinked!==!0&&this.journal.markTruncate(this.nodes.pathOf(e),s),e.unlinked!==!0?this.settle(this.nodes.pathOf(e)):s!==void 0&&this.resizeHeld(e,s),o!==null&&e.unlinked!==!0&&e.source!==void 0&&(e.source=new Ne(e.source).with({...o.mode!==void 0?{mode:o.mode}:{},...o.mtime!==void 0?{modified:o.mtime}:{},...o.atime!==void 0?{atime:o.atime}:{}})),r.mode!==void 0&&(e.mode=i?r.mode&~em:r.mode),r.atime!==void 0&&(e.atime=r.atime),r.mtime!==void 0&&(e.mtime=r.mtime),r.ctime!==void 0&&(e.ctime=r.ctime)}resizeHeld(e,r){let i=$a.O_WRONLY|$a.O_RDWR;for(let n of this.streams){let o=n.fh;if(!(n.node!==e||o===void 0||(n.flags&i)===0)){this.readThrough([],()=>{this.sync.ftruncate(o,r)});return}}}lookup(e,r){let i=this.sync,n=this.nodes.childOf(e,r);if(n===void 0){let o=this.nodes.pathOf(e)+\"/\"+r;n=this.readThrough([o],()=>{let s;try{s=i.stat(o)}catch(a){let l=W0.get(r);if(this.nodes.pathOf(e)===\"/dev\"&&l!==void 0&&J(a)===\"ENOENT\")return this.nodes.makeNode(e,r,ma|438,l);throw a}return this.placeEntry(e,r,s)})}return n}mknod(e,r,i,n){if(Ai(i)){let a=this.nodes.makeNode(e,r,i);return a.rdev=n,a}let o=this.nodes.pathOf(e)+\"/\"+r;this.host.isDir(i)?(this.journal.markMkdir(o),this.settle(o)):this.journal.markCreate(o);let s=this.nodes.makeNode(e,r,i&~em);return s.rdev=n,this.host.isDir(i)||(this.fresh=s),s}rename(e,r,i){let n=this.nodes.pathOf(e),o=this.nodes.pathOf(r)+\"/\"+i;if(this.mountOf(n)!==this.mountOf(o))throw Re(this.host,this.errno,\"EXDEV\");let s=this.nodes.childOf(r,i),a=s!==e?s:void 0;this.journal.markRename(n,o),this.settle(n,o),a!==void 0&&this.orphan(a),this.nodes.move(e,r,i)}unlink(e,r){let i=this.nodes.pathOf(e)+\"/\"+r,n=this.nodes.childOf(e,r);this.journal.markUnlink(i),this.settle(i),n!==void 0&&this.orphan(n),this.nodes.detach(e,r)}orphan(e){(e.opens??0)>0&&(e.unlinked=!0)}rmdir(e,r){if(this.readdir(this.lookup(e,r)).length>2)throw Re(this.host,this.errno,\"ENOTEMPTY\");let i=this.nodes.pathOf(e)+\"/\"+r;this.journal.markRmdir(i),this.settle(i),this.nodes.detach(e,r)}readdir(e){let r=this.sync;return this.readThrough([],()=>{let i=this.nodes.pathOf(e)+\"/\",n=e.listed===!0;for(let o of r.readdir(i,!n)){let s=xa(o.path);this.nodes.childOf(e,s)===void 0&&this.placeEntry(e,s,n?eE(r,i+s,o):o)}e.listed=!0}),[\".\",\"..\",...this.nodes.childNames(e)]}invalidate(){this.nodes.invalidate()}settle(...e){let r=this.sync,i=o=>!this.deferred.has(o.path)&&!(o.kind===\"rename\"&&this.deferred.has(o.dst)),n=this.journal.takeMutations().filter(i);try{for(;n.length>0;){let o=r.flush(n);if(o===void 0)break;let s=n.length-o.skipped,a=n[s-1];if(a===void 0)break;this.deferred.set(a.path,o),n=n.slice(s).filter(i)}}catch(o){throw Re(this.host,this.errno,J(o)??\"EIO\")}for(let o of e){let s=this.deferred.get(o);if(s!==void 0)throw this.deferred.delete(o),Re(this.host,this.errno,s.code??\"EIO\")}}readThrough(e,r){this.settle(...e);try{return r()}catch(i){throw Re(this.host,this.errno,J(i)??\"EIO\")}}placeEntry(e,r,i){let n=i.isLink?this.sync.readlink(this.nodes.pathOf(e)+\"/\"+r):void 0,o=i.isLink?_i:i.mode??(i.isDir?Rt:ha),s=this.nodes.makeNode(e,r,o,i.rdev??0);return\"source\"in i&&(s.source=i.source),i.mtimeMs!==void 0&&(s.atime=s.mtime=s.ctime=i.mtimeMs),i.atimeMs!==void 0&&(s.atime=i.atimeMs),Z0(s,i),n!==void 0&&(s.link=n),M0(i)&&(s.unclassified=!0),s}classifyNode(e,r){e.unclassified=!1,e.source=r.source,this.nodes.retype(e,r.mode),e.rdev=r.rdev??0,e.atime=e.mtime=e.ctime=r.mtimeMs??0,r.atimeMs!==void 0&&(e.atime=r.atimeMs),Z0(e,r)}symlink(e,r,i){let n=this.nodes.pathOf(e)+\"/\"+r;this.journal.markSymlink(n,i),this.settle(n);let o=this.nodes.makeNode(e,r,_i);return o.link=i,o}readlink(e){if(!this.host.isLink(e.mode))throw Re(this.host,this.errno,\"EINVAL\");return e.link??\"\"}streamOpen(e){let r=e.node,i=this.nodes.pathOf(r);if(e.opened=i,this.host.isFile(r.mode)){let n=this.journal.takeCreate(i);try{this.handleOf(e,n)}catch(o){throw n&&this.nodes.detach(r.parent,r.name),o}}r.opens=(r.opens??0)+1}handleOf(e,r=!1){if(this.journal.sealed)throw Re(this.host,this.errno,\"EBADF\");if(e.fh!==void 0)return e.fh;if(e.node.unlinked===!0)throw Re(this.host,this.errno,\"EBADF\");let i=this.nodes.pathOf(e.node),n={...Hp(e.flags,$a),create:r},o=this.readThrough([i],()=>this.sync.open(i,n));return e.fh=o,this.streams.add(e),o}streamClose(e){let r=e.node;r.opens=Math.max(0,(r.opens??1)-1);let i=e.fh;this.streams.delete(e),delete e.fh;try{r.unlinked===!0?this.settle():this.settle(this.nodes.pathOf(r))}finally{i!==void 0&&this.readThrough([],()=>{this.sync.close(i)})}}streamRead(e,r,i,n,o){if(n===0)return 0;let s=e.node;if(Ai(s.mode))return q$.has(s.rdev)?0:(r.fill(0,i,i+n),n);let a=this.handleOf(e),l=this.readThrough([],()=>this.sync.pread(a,o,n)).subarray(0,n);return r.set(l,i),l.length}streamWrite(e,r,i,n,o){if(n===0)return 0;if(Ai(e.node.mode))return n;let s=this.handleOf(e),a=r.slice(i,i+n);return this.readThrough([],()=>{this.sync.pwrite(s,o,a)}),n}llseek(e,r,i){let n=r;if(i===F0)n+=e.position;else if(i===B0&&this.host.isFile(e.node.mode)){let o=this.handleOf(e);n+=this.readThrough([],()=>this.sync.fstat(o)).size}if(n<0)throw Re(this.host,this.errno,\"EINVAL\");return n}};var G0=`import base64\nimport errno\nimport glob\nimport importlib\nimport io\nimport json\nimport logging\nimport operator\nimport os\nimport shutil\nimport subprocess\nimport sys\nimport traceback\nimport types\nimport warnings\nfrom contextlib import contextmanager\n\nimport _mirage_exit\nimport _mirage_process\nimport _mirage_stdio\nimport _mirage_xattr\nfrom pyodide.ffi import to_js\n\n_process_active = False\n_inherited_inputs = {}\n_process_stdio = None\n_exit_status = None\n# The most of the run's input one read asks the host for, and the most of\n# its output one write hands over: the bridge's own buffer.\nSTDIO_CHUNK = 64 * 1024\n\nlogger = logging.getLogger(__name__)\n_FLAG_FIELDS = tuple(\n    name\n    for name, field in vars(type(sys.flags)).items()\n    if isinstance(field, types.MemberDescriptorType)\n)\n_FLAG_INDEX = {name: index for index, name in enumerate(_FLAG_FIELDS)}\n\n\nclass ProgramExit(BaseException):\n    \"\"\"\\`\\`os._exit\\`\\` inside a run.\n\n    Emscripten's exit unwinds the C stack past every Python frame, so a\n    run that let it through would never restore what it swapped in. A run\n    swaps \\`\\`os._exit\\`\\` for :func:\\`program_exit\\` and ends with the code\n    this carries.\n\n    Python cannot raise an exception a guest is unable to catch, so what\n    a real exit guarantees is kept another way: once a guest calls it,\n    nothing it writes reaches the mount or its output, and the run ends\n    with this code whatever the guest does after.\n\n    Args:\n        code (int): the exit status.\n    \"\"\"\n\n    def __init__(self, code):\n        super().__init__(code)\n        self.code = code\n\n\ndef program_exit(code):\n    \"\"\"End the run with \\`\\`code\\`\\`, as \\`\\`os._exit\\`\\` ends a process.\n\n    Args:\n        code (int): the exit status.\n    \"\"\"\n    global _exit_status\n    _exit_status = operator.index(code)\n    _mirage_exit.seal()\n    raise ProgramExit(_exit_status)\n\n\ndef _process_call(op, **params):\n    global _process_active\n    result = json.loads(_mirage_process.run(json.dumps(dict(op=op, **params))))\n    if \"error\" in result:\n        raise OSError(\n            getattr(errno, result[\"code\"], errno.EIO), result[\"error\"]\n        )\n    for pid, count in result.get(\"consumed\", {}).items():\n        inherited = _inherited_inputs.get(int(pid))\n        if inherited is not None:\n            stream, offset = inherited\n            if not stream.closed:\n                stream.skip_to(offset + count)\n    if op == \"spawn\":\n        _process_active = True\n    elif op == \"finish\":\n        _process_active = False\n        _inherited_inputs.clear()\n    for stream in (\"stdout\", \"stderr\"):\n        data = base64.b64decode(result.get(\"inherited_\" + stream, \"\"))\n        if data:\n            target = _process_stdio[1 if stream == \"stdout\" else 2]\n            target.buffer.write(data)\n    return result\n\n\nclass ProcessPipe(io.RawIOBase):\n    def __init__(self, pid, stream):\n        super().__init__()\n        self.pid = pid\n        self.stream = stream\n        self.pending = bytearray()\n        self.eof = False\n\n    def readable(self):\n        return self.stream != \"stdin\"\n\n    def writable(self):\n        return self.stream == \"stdin\"\n\n    def readinto(self, target):\n        self._checkClosed()\n        if not self.readable():\n            raise io.UnsupportedOperation(\"not readable\")\n        if not target:\n            return 0\n        if not self.pending and not self.eof:\n            result = _process_call(\"read\", pid=self.pid, stream=self.stream)\n            self.pending.extend(base64.b64decode(result[\"data\"]))\n            self.eof = not self.pending\n        size = min(len(target), len(self.pending))\n        target[:size] = self.pending[:size]\n        del self.pending[:size]\n        return size\n\n    def write(self, data):\n        self._checkClosed()\n        if not self.writable():\n            raise io.UnsupportedOperation(\"not writable\")\n        data = bytes(data)\n        _process_call(\n            \"write\", pid=self.pid, data=base64.b64encode(data).decode(\"ascii\")\n        )\n        return len(data)\n\n    def close(self):\n        if not self.closed and _process_active:\n            if self.writable():\n                _process_call(\"close\", pid=self.pid)\n            else:\n                _process_call(\"close\", pid=self.pid, stream=self.stream)\n        super().close()\n\n\nclass MiragePopen:\n    \"\"\"The subprocess protocol backed by invocation-owned Mirage processes.\"\"\"\n\n    def __init__(\n        self,\n        args,\n        bufsize=-1,\n        executable=None,\n        stdin=None,\n        stdout=None,\n        stderr=None,\n        preexec_fn=None,\n        close_fds=True,\n        shell=False,\n        cwd=None,\n        env=None,\n        universal_newlines=None,\n        startupinfo=None,\n        creationflags=0,\n        restore_signals=True,\n        start_new_session=False,\n        pass_fds=(),\n        *,\n        user=None,\n        group=None,\n        extra_groups=None,\n        encoding=None,\n        errors=None,\n        text=None,\n        umask=-1,\n        pipesize=-1,\n        process_group=None,\n    ):\n        if (\n            preexec_fn is not None\n            or not close_fds\n            or startupinfo is not None\n            or creationflags\n            or not restore_signals\n            or start_new_session\n            or pass_fds\n            or user is not None\n            or group is not None\n            or extra_groups is not None\n            or umask != -1\n            or pipesize != -1\n            or process_group not in (None, -1)\n        ):\n            raise NotImplementedError(\n                \"native process attributes and descriptors are unsupported\"\n            )\n        if not isinstance(bufsize, int):\n            raise TypeError(\"bufsize must be an integer\")\n        if (\n            text is not None\n            and universal_newlines is not None\n            and bool(text) != bool(universal_newlines)\n        ):\n            raise subprocess.SubprocessError(\n                \"Cannot disambiguate when both text and universal_newlines \"\n                \"are supplied but different. Pass one or the other.\"\n            )\n        if stdin not in (None, subprocess.PIPE, subprocess.DEVNULL):\n            raise NotImplementedError(\n                \"stdin supports inheritance, PIPE and DEVNULL\"\n            )\n        if stdout not in (None, subprocess.PIPE, subprocess.DEVNULL):\n            raise NotImplementedError(\n                \"stdout supports inheritance, PIPE and DEVNULL\"\n            )\n        if stderr not in (\n            None,\n            subprocess.PIPE,\n            subprocess.DEVNULL,\n            subprocess.STDOUT,\n        ):\n            raise NotImplementedError(\n                \"stderr supports inheritance, PIPE, DEVNULL and STDOUT\"\n            )\n        self.args = args\n        if isinstance(args, (str, bytes, os.PathLike)):\n            argv = [os.fsdecode(args)]\n        else:\n            argv = [os.fsdecode(arg) for arg in args]\n        if not argv:\n            raise ValueError(\"args must not be empty\")\n        if shell:\n            argv = [\n                os.fsdecode(executable) if executable else \"/usr/bin/sh\",\n                \"-c\",\n                *argv,\n            ]\n        elif executable is not None:\n            raise NotImplementedError(\n                \"separate executable and argv[0] are unsupported\"\n            )\n        if any(\"\\\\0\" in arg for arg in argv):\n            raise ValueError(\"embedded null byte\")\n        environment = {\n            os.fsdecode(k): os.fsdecode(v)\n            for k, v in (os.environ if env is None else env).items()\n        }\n        if any(\n            \"=\" in k or \"\\\\0\" in k or \"\\\\0\" in v for k, v in environment.items()\n        ):\n            raise ValueError(\"illegal environment variable\")\n        directory = (\n            os.getcwd() if cwd is None else os.path.abspath(os.fsdecode(cwd))\n        )\n        if not os.path.isdir(directory):\n            if os.path.exists(directory):\n                raise NotADirectoryError(\n                    errno.ENOTDIR, \"Not a directory\", directory\n                )\n            raise FileNotFoundError(\n                errno.ENOENT, \"No such file or directory\", directory\n            )\n        self.encoding, self.errors = encoding or \"utf-8\", errors or \"strict\"\n        self.text_mode = bool(text or universal_newlines or encoding or errors)\n        self.returncode = None\n        self._communication_started = False\n        self._output = None\n        self._raw_pipes = {}\n        self._input_mode = stdin\n        self._output_mode = stdout\n        self._error_mode = stderr\n        inherited = b\"\"\n        source = None\n        if stdin is None:\n            source = _process_stdio[0].buffer\n            offset = source.taken\n            inherited = source.rest()\n        result = _process_call(\n            \"spawn\",\n            argv=argv,\n            cwd=directory,\n            env=environment,\n            stdin=stdin or 0,\n            stdout=stdout or 0,\n            stderr=stderr or 0,\n            data=base64.b64encode(inherited).decode(\"ascii\"),\n        )\n        self.pid = result[\"pid\"]\n        self._released = False\n        if source is not None and inherited:\n            _inherited_inputs[self.pid] = (source, offset)\n        self.stdin = (\n            self._pipe(\"stdin\", bufsize) if stdin == subprocess.PIPE else None\n        )\n        self.stdout = (\n            self._pipe(\"stdout\", bufsize)\n            if stdout == subprocess.PIPE\n            else None\n        )\n        self.stderr = (\n            self._pipe(\"stderr\", bufsize)\n            if stderr == subprocess.PIPE\n            else None\n        )\n\n    def _pipe(self, name, bufsize):\n        raw = ProcessPipe(self.pid, name)\n        self._raw_pipes[name] = raw\n        stream = raw\n        if bufsize != 0:\n            size = io.DEFAULT_BUFFER_SIZE if bufsize < 2 else bufsize\n            stream = (\n                io.BufferedWriter(raw, size)\n                if name == \"stdin\"\n                else io.BufferedReader(raw, size)\n            )\n        if self.text_mode:\n            stream = io.TextIOWrapper(\n                stream,\n                encoding=self.encoding,\n                errors=self.errors,\n                write_through=True,\n                line_buffering=bufsize == 1,\n            )\n        return stream\n\n    def poll(self):\n        if self.returncode is not None:\n            return self.returncode\n        self.returncode = _process_call(\"poll\", pid=self.pid)[\"returncode\"]\n        return self.returncode\n\n    def wait(self, timeout=None):\n        if self.returncode is not None:\n            return self.returncode\n        result = _process_call(\"wait\", pid=self.pid, timeout=timeout)\n        self.returncode = result[\"returncode\"]\n        if result[\"timeout\"]:\n            raise subprocess.TimeoutExpired(self.args, timeout)\n        return self.returncode\n\n    def communicate(self, input=None, timeout=None):\n        if self._communication_started and input is not None:\n            raise ValueError(\"Cannot send input after starting communication\")\n        if self._output is not None:\n            return self._output\n        if input is not None and self.stdin is None:\n            raise ValueError(\"Cannot send input when stdin is not PIPE\")\n        params = dict(pid=self.pid, timeout=timeout)\n        if not self._communication_started:\n            if self.stdin is not None and not self.stdin.closed:\n                try:\n                    self.stdin.flush()\n                except BrokenPipeError:\n                    pass\n            if input is not None:\n                raw = (\n                    input.encode(self.encoding, self.errors)\n                    if self.text_mode\n                    else memoryview(input).tobytes()\n                )\n                params[\"data\"] = base64.b64encode(raw).decode(\"ascii\")\n        self._communication_started = True\n        result = _process_call(\"communicate\", **params)\n        out = (\n            base64.b64decode(result[\"stdout\"])\n            if self.stdout is not None\n            else None\n        )\n        err = (\n            base64.b64decode(result[\"stderr\"])\n            if self.stderr is not None\n            else None\n        )\n        self.returncode = result[\"returncode\"]\n        if result[\"timeout\"]:\n            raise subprocess.TimeoutExpired(\n                self.args, timeout, output=out, stderr=err\n            )\n        outputs = []\n        for name, data in ((\"stdout\", out), (\"stderr\", err)):\n            if data is None:\n                outputs.append(None)\n            else:\n                raw = self._raw_pipes[name]\n                raw.pending.extend(data)\n                raw.eof = True\n                outputs.append(getattr(self, name).read())\n        for stream in (self.stdin, self.stdout, self.stderr):\n            if stream is not None and not stream.closed:\n                stream.close()\n        self._output = tuple(outputs)\n        self._release()\n        return self._output\n\n    def send_signal(self, signal):\n        if signal not in (9, 15):\n            raise NotImplementedError(\"only termination signals are supported\")\n        if self.returncode is None:\n            _process_call(\"kill\", pid=self.pid, signal=int(signal))\n\n    def terminate(self):\n        self.send_signal(15)\n\n    def kill(self):\n        self.send_signal(9)\n\n    def _release(self):\n        if not self._released:\n            _process_call(\"release\", pid=self.pid)\n            _inherited_inputs.pop(self.pid, None)\n            self._released = True\n\n    def __enter__(self):\n        return self\n\n    def __exit__(self, *args):\n        try:\n            for stream in (self.stdout, self.stderr, self.stdin):\n                if stream is not None and not stream.closed:\n                    stream.close()\n        finally:\n            self.wait()\n            self._release()\n\n\ndef process_which(cmd, mode=os.F_OK | os.X_OK, path=None):\n    if mode != os.F_OK | os.X_OK:\n        raise NotImplementedError(\"which supports executable lookup only\")\n    result = _process_call(\n        \"resolve\",\n        argv=[os.fsdecode(cmd)],\n        cwd=os.getcwd(),\n        env={\n            \"PATH\": os.fsdecode(path)\n            if path is not None\n            else os.environ.get(\"PATH\", \"/usr/bin\")\n        },\n    )\n    found = result[\"path\"]\n    return (\n        os.fsencode(found)\n        if isinstance(cmd, bytes) and found is not None\n        else found\n    )\n\n\nsubprocess.Popen = MiragePopen\nshutil.which = process_which\n\n\nclass PipeInput(io.BufferedIOBase):\n    \"\"\"The run's input, as a pipe hands it over: the host sends each\n    piece as the guest reads it, so a writer that never ends holds back\n    only a read that waits on it. It is the buffer itself, so what the\n    guest has read is exactly \\`\\`taken\\`\\`, and a child that inherits the\n    input gets every byte after it.\"\"\"\n\n    def __init__(self):\n        super().__init__()\n        self.held = bytearray()\n        self.taken = 0\n        self.ended = False\n\n    def readable(self):\n        return True\n\n    def _pull(self):\n        # Numbers, not a buffer: Pyodide's buffer conversion slices with\n        # signed wasm32 addresses, so above 2 GiB it reads the wrong bytes.\n        data = bytes(_mirage_stdio.read(STDIO_CHUNK).to_py())\n        if data:\n            self.held.extend(data)\n        else:\n            self.ended = True\n\n    def _take(self, size):\n        data = bytes(self.held[:size])\n        del self.held[:size]\n        self.taken += len(data)\n        return data\n\n    def read(self, size=-1):\n        self._checkClosed()\n        if size is None or size < 0:\n            while not self.ended:\n                self._pull()\n            return self._take(len(self.held))\n        while len(self.held) < size and not self.ended:\n            self._pull()\n        return self._take(size)\n\n    def read1(self, size=-1):\n        self._checkClosed()\n        if size == 0:\n            return b\"\"\n        if not self.held and not self.ended:\n            self._pull()\n        return self._take(len(self.held) if size is None or size < 0 else size)\n\n    def peek(self, size=0):\n        self._checkClosed()\n        if not self.held and not self.ended:\n            self._pull()\n        return bytes(self.held)\n\n    def readinto(self, target):\n        # Any writable buffer, by its bytes, as BufferedReader takes one.\n        view = memoryview(target).cast(\"B\")\n        data = self.read(len(view))\n        view[: len(data)] = data\n        return len(data)\n\n    def readinto1(self, target):\n        view = memoryview(target).cast(\"B\")\n        data = self.read1(len(view))\n        view[: len(data)] = data\n        return len(data)\n\n    def rest(self):\n        \"\"\"The input left, read to its end and kept for the guest's own\n        reads.\"\"\"\n        while not self.ended:\n            self._pull()\n        return bytes(self.held)\n\n    def skip_to(self, taken):\n        \"\"\"Drop what a child read, up to \\`\\`taken\\`\\` bytes into the input.\n\n        Args:\n            taken (int): how far into the input the child has read.\n        \"\"\"\n        drop = min(len(self.held), max(0, taken - self.taken))\n        del self.held[:drop]\n        self.taken += drop\n\n\nclass OutputCapture(io.RawIOBase):\n    \"\"\"One of the run's output streams, each write handed to the host as\n    it is made. As CPython's to a pipe, stdout is written a block at a\n    time and stderr a line at a time; text goes to the block at once, so\n    it keeps its order with what the guest writes to \\`\\`buffer\\`\\`. Under\n    \\`\\`-u\\`\\` the text sits on the stream itself, as CPython's does, so\n    every write goes out as it is made.\n\n    Args:\n        fd (int): 1 for stdout, 2 for stderr.\n        unbuffered (bool): the run's \\`\\`-u\\`\\`.\n    \"\"\"\n\n    def __init__(self, fd, unbuffered=False):\n        super().__init__()\n        self.fd = fd\n        self.text = io.TextIOWrapper(\n            self if unbuffered else io.BufferedWriter(self),\n            encoding=\"utf-8\",\n            errors=\"replace\",\n            write_through=True,\n            line_buffering=fd == 2,\n        )\n\n    def writable(self):\n        return True\n\n    def write(self, data):\n        self._checkClosed()\n        # A count of bytes, whatever the buffer's item size.\n        payload = bytes(data)\n        self._send(payload)\n        return len(payload)\n\n    def _send(self, data):\n        if _exit_status is not None:\n            return\n        for start in range(0, len(data), STDIO_CHUNK):\n            # Numbers, not a buffer, for the reason PipeInput reads them.\n            piece = to_js(list(data[start : start + STDIO_CHUNK]))\n            if _mirage_stdio.write(self.fd, piece) < 0:\n                raise BrokenPipeError(errno.EPIPE, os.strerror(errno.EPIPE))\n\n    def diagnostic(self, text):\n        # Host diagnostics remain available even after the guest closes stderr.\n        if self.text.buffer is not None and not self.text.closed:\n            self.text.flush()\n        self._send(text.encode(\"utf-8\", errors=\"replace\"))\n\n    def finish(self):\n        \"\"\"Flush what the guest left buffered, as CPython's exit does.\"\"\"\n        if self.text.buffer is not None and not self.text.closed:\n            self.text.flush()\n\n    def __exit__(self, *exc):\n        try:\n            # A guest may reconfigure buffering, close, or detach the wrapper.\n            if self.text.buffer is not None and not self.text.closed:\n                self.text.close()\n        except BrokenPipeError as error:\n            # Its reader went away; what the run's exit had to say about it\n            # was said by finish.\n            logger.debug(\"guest stream %d closed: %r\", self.fd, error)\n        finally:\n            self.close()\n\n\nclass InvocationFlags(tuple):\n    \"\"\"Read-only sys.flags view for switches implemented by a warm guest.\"\"\"\n\n    def __new__(cls, original, **overrides):\n        fields = _FLAG_FIELDS[: original.n_sequence_fields]\n        values = (\n            overrides.get(name, getattr(original, name)) for name in fields\n        )\n        instance = super().__new__(cls, values)\n        object.__setattr__(instance, \"_original\", original)\n        return instance\n\n    def __getattr__(self, name):\n        index = _FLAG_INDEX.get(name)\n        if index is not None and index < len(self):\n            return self[index]\n        return getattr(self._original, name)\n\n    def __setattr__(self, name, value):\n        raise AttributeError(\"readonly attribute\")\n\n    def __delattr__(self, name):\n        raise AttributeError(\"readonly attribute\")\n\n    def __dir__(self):\n        return sorted(set(super().__dir__()) | set(dir(self._original)))\n\n    def __repr__(self):\n        fields = _FLAG_FIELDS[: self.n_sequence_fields]\n        values = \", \".join(\n            f\"{name}={getattr(self, name)!r}\" for name in fields\n        )\n        return f\"sys.flags({values})\"\n\n\n@contextmanager\ndef interpreter_state(flags, filename, script, stderr):\n    \"\"\"Apply and restore the interpreter switches this guest implements.\n\n    Args:\n        flags (dict): Parsed initialization switches.\n        filename (str | None): The program's display path.\n        script (bool): Whether the program was read from a script.\n        stderr (OutputCapture): Destination for invalid warning options.\n    \"\"\"\n    saved_flags = sys.flags\n    saved_path = sys.path\n    saved_entries = saved_path[:]\n    saved_dwb = sys.dont_write_bytecode\n    saved_xop = sys._xoptions\n    saved_options = saved_xop.copy()\n    saved_filters = warnings.filters\n    saved_filter_entries = saved_filters[:]\n    optimize = min(int(flags.get(\"O\") or 0), 2)\n    loader = importlib._bootstrap_external.SourceLoader\n    saved_source_to_code = loader.source_to_code\n\n    # importlib compiles an imported module at the level the interpreter\n    # started with, and names its cached bytecode after sys.flags, so -O\n    # has to reach the compile as well for the two to agree.\n    def source_to_code(self, data, path, *, _optimize=-1):\n        return saved_source_to_code(\n            self,\n            data,\n            path,\n            _optimize=optimize if _optimize == -1 else _optimize,\n        )\n\n    try:\n        sys.dont_write_bytecode = bool(flags.get(\"B\") or saved_dwb)\n        sys.flags = InvocationFlags(\n            saved_flags,\n            optimize=optimize,\n            dont_write_bytecode=int(sys.dont_write_bytecode),\n            safe_path=bool(flags.get(\"P\")),\n        )\n        for xopt in flags.get(\"X\") or []:\n            name, _, value = str(xopt).partition(\"=\")\n            sys._xoptions[name] = value if value else True\n        for spec in flags.get(\"W\") or []:\n            try:\n                warnings._setoption(str(spec))\n            except warnings._OptionError as error:\n                stderr.diagnostic(f\"Invalid -W option ignored: {error}\\\\n\")\n        if \"\" in sys.path:\n            sys.path.remove(\"\")\n        if not sys.flags.safe_path:\n            sys.path.insert(\n                0,\n                os.path.dirname(os.path.realpath(filename)) if script else \"\",\n            )\n        if optimize:\n            loader.source_to_code = source_to_code\n        yield optimize\n    finally:\n        loader.source_to_code = saved_source_to_code\n        sys.flags = saved_flags\n        sys.path = saved_path\n        saved_path[:] = saved_entries\n        sys.dont_write_bytecode = saved_dwb\n        sys._xoptions = saved_xop\n        saved_xop.clear()\n        saved_xop.update(saved_options)\n        warnings.filters = saved_filters\n        saved_filters[:] = saved_filter_entries\n        warnings._filters_mutated()\n\n\ndef run(request, arm_interrupt, disarm_interrupt):\n    global _process_stdio, _process_active, _exit_status\n    _exit_status = None\n    user_code = request[\"code\"]\n    init_flags = request[\"flags\"]\n    argv = request[\"argv\"]\n    cwd = request[\"cwd\"]\n    filename = request[\"filename\"]\n    script = request[\"script\"]\n    script_cli = request[\"script_cli\"]\n    merged_env = request[\"env\"]\n    piped = request[\"piped\"]\n    saved_getcwd = os.getcwd\n    saved_cwd = saved_getcwd()\n    saved_chdir = os.chdir\n    saved_exit = os._exit\n    saved_env = dict(os.environ)\n    saved_stdin = sys.stdin\n    saved_stdout = sys.stdout\n    saved_stderr = sys.stderr\n    saved_executable = sys.executable\n    saved_argv = sys.argv\n    had_main = \"__main__\" in sys.modules\n    saved_main = sys.modules.get(\"__main__\")\n\n    flags = dict(init_flags) if init_flags is not None else {}\n    unbuffered = bool(flags.get(\"u\"))\n\n    out_bytes = OutputCapture(1, unbuffered)\n    err_bytes = OutputCapture(2, unbuffered)\n    out_text = out_bytes.text\n    err_text = err_bytes.text\n\n    stdin_pipe = PipeInput()\n    stdin_text = io.TextIOWrapper(\n        stdin_pipe, encoding=\"utf-8\", errors=\"replace\"\n    )\n\n    with out_bytes, err_bytes:\n        exit_code = 0\n        try:\n            sys.executable = \"/usr/bin/python3\"\n            os.environ.clear()\n            os.environ.update(merged_env)\n            with interpreter_state(\n                flags, filename, script, err_bytes\n            ) as optimize:\n                sys.stdin = stdin_text\n                sys.stdout = out_text\n                sys.stderr = err_text\n                _process_stdio = (stdin_text, out_text, err_text)\n                sys.argv = list(argv)\n                main_module = types.ModuleType(\"__main__\")\n                user_globals = main_module.__dict__\n                user_globals[\"__annotations__\"] = {}\n                # What CPython's file adapter binds, for a script and for\n                # stdin.\n                if filename is not None:\n                    user_globals[\"__file__\"] = filename\n                    user_globals[\"__cached__\"] = None\n                sys.modules[\"__main__\"] = main_module\n                if script_cli:\n                    user_globals.update(\n                        argv=list(argv),\n                        stdin=stdin_pipe.rest() if piped else None,\n                    )\n                os._exit = program_exit\n                try:\n                    try:\n                        arm_interrupt()\n                        if cwd != \"\":\n                            saved_chdir(cwd)\n                        exec(\n                            compile(\n                                user_code,\n                                filename or \"<string>\",\n                                \"exec\",\n                                optimize=optimize,\n                            ),\n                            user_globals,\n                        )\n                    finally:\n                        disarm_interrupt()\n                except SystemExit as e:\n                    code = e.code\n                    if code is None:\n                        exit_code = 0\n                    elif isinstance(code, bool):\n                        exit_code = int(code)\n                    elif isinstance(code, int):\n                        exit_code = code\n                    else:\n                        err_bytes.diagnostic(str(code) + \"\\\\n\")\n                        exit_code = 1\n                except ProgramExit as e:\n                    exit_code = e.code\n                except BaseException as e:\n                    err_bytes.diagnostic(\n                        \"\".join(\n                            traceback.format_exception(\n                                type(e), e, e.__traceback__.tb_next\n                            )\n                        )\n                    )\n                    exit_code = 1\n        finally:\n            if had_main:\n                sys.modules[\"__main__\"] = saved_main\n            else:\n                sys.modules.pop(\"__main__\", None)\n            os.environ.clear()\n            os.environ.update(saved_env)\n            if _process_active:\n                try:\n                    _process_call(\"finish\")\n                except BaseException:\n                    err_bytes.diagnostic(traceback.format_exc())\n                    exit_code = 1\n            _process_active = False\n            _inherited_inputs.clear()\n            _process_stdio = None\n            sys.stdin = saved_stdin\n            sys.stdout = saved_stdout\n            sys.stderr = saved_stderr\n            sys.executable = saved_executable\n            sys.argv = saved_argv\n            os.chdir = saved_chdir\n            os.getcwd = saved_getcwd\n            os._exit = saved_exit\n            saved_chdir(saved_cwd)\n        # CPython flushes stdout as it exits, and a flush that fails is\n        # reported and makes the exit status 120, whatever the program's.\n        if _exit_status is None:\n            try:\n                out_bytes.finish()\n            except BrokenPipeError as exc:\n                when = \"while\" if sys.version_info >= (3, 14) else \"on\"\n                err_bytes.diagnostic(\n                    f\"Exception ignored {when} flushing sys.stdout:\\\\n\"\n                    + \"\".join(traceback.format_exception_only(exc))\n                )\n                exit_code = 120\n\n    if _exit_status is not None:\n        exit_code = _exit_status\n        _exit_status = None\n    return exit_code\n\n\ndef seed_sys_path(paths):\n    misses = []\n    expanded = []\n    for path in paths:\n        if any(c in path for c in \"*?[\"):\n            hits = sorted(glob.glob(path))\n            if not hits:\n                misses.append(path)\n            expanded.extend(hits)\n        else:\n            expanded.append(path)\n    sys.path[:0] = [path for path in expanded if path not in sys.path]\n    importlib.invalidate_caches()\n    return misses\n\n\n# Emscripten builds os without the extended-attribute family CPython has\n# on linux, so a guest asking a mounted path for its attributes got\n# AttributeError. The host\n# registers _mirage_xattr, which answers from the dispatcher, and\n# each condition it reports is raised as the errno linux would raise.\nXATTR_ERRNO = {\n    \"NO_XATTR\": errno.ENODATA,\n    \"ENOENT\": errno.ENOENT,\n    \"ENOTDIR\": errno.ENOTDIR,\n    \"EEXIST\": errno.EEXIST,\n    \"EACCES\": errno.EACCES,\n    \"EPERM\": errno.EPERM,\n    \"EROFS\": errno.EROFS,\n    \"EINVAL\": errno.EINVAL,\n    \"ELOOP\": errno.ELOOP,\n    \"ENOTSUP\": errno.ENOTSUP,\n}\n\n\ndef xattr_call(\n    op, path, attribute=None, value=None, flags=0, follow_symlinks=True\n):\n    if isinstance(path, int):\n        raise OSError(errno.ENOTSUP, os.strerror(errno.ENOTSUP))\n    target = os.path.abspath(os.fsdecode(path))\n    name = None if attribute is None else os.fsdecode(attribute)\n    payload = (\n        None\n        if value is None\n        else base64.b64encode(bytes(value)).decode(\"ascii\")\n    )\n    answer = json.loads(\n        _mirage_xattr.call(\n            op,\n            target,\n            name,\n            payload,\n            bool(flags & 1),\n            bool(flags & 2),\n            not follow_symlinks,\n        )\n    )\n    code = answer.get(\"code\")\n    if code is not None:\n        number = XATTR_ERRNO.get(code, errno.EIO)\n        raise OSError(number, os.strerror(number), target)\n    return answer.get(\"value\")\n\n\ndef getxattr(path, attribute, *, follow_symlinks=True):\n    found = xattr_call(\n        \"getxattr\", path, attribute, follow_symlinks=follow_symlinks\n    )\n    return base64.b64decode(found)\n\n\ndef listxattr(path=None, *, follow_symlinks=True):\n    return list(\n        xattr_call(\n            \"listxattr\",\n            \".\" if path is None else path,\n            follow_symlinks=follow_symlinks,\n        )\n    )\n\n\ndef setxattr(path, attribute, value, flags=0, *, follow_symlinks=True):\n    xattr_call(\"setxattr\", path, attribute, value, flags, follow_symlinks)\n\n\ndef removexattr(path, attribute, *, follow_symlinks=True):\n    xattr_call(\"removexattr\", path, attribute, follow_symlinks=follow_symlinks)\n\n\ndef install_xattrs():\n    os.getxattr = getxattr\n    os.listxattr = listxattr\n    os.setxattr = setxattr\n    os.removexattr = removexattr\n    os.XATTR_CREATE = 1\n    os.XATTR_REPLACE = 2\n    os.XATTR_SIZE_MAX = 65536\n\n\ninstall_xattrs()\n`;function tm(t){return t!==null&&(typeof t==\"object\"||typeof t==\"function\")&&\"destroy\"in t}var tE=()=>JSON.stringify({code:\"ENOTSUP\"});function nm(t){let e=t??new Uint8Array,r=[],i=[],n=0;return{out:r,err:i,read:o=>{let s=e.subarray(n,Math.min(e.length,n+o));return n+=s.length,s},write:(o,s)=>((o===1?r:i).push(s),!0)}}var Aa=class{constructor(e,r=tE,i=()=>{throw new Error(\"subprocess requires a Pyodide worker with shared memory\")},n=()=>{}){this.pyodide=e;e.registerJsModule(\"_mirage_xattr\",{call:r}),e.registerJsModule(\"_mirage_process\",{run:i}),e.registerJsModule(\"_mirage_exit\",{seal:n}),e.registerJsModule(\"_mirage_stdio\",{read:o=>Array.from(this.stdio.read(o)),write:(o,s)=>this.stdio.write(o===2?2:1,Uint8Array.from(s))?0:-1}),this.namespace=e.toPy({__name__:\"_mirage_pyodide\"});try{e.runPython(G0,{globals:this.namespace,filename:\"mirage/execution.py\"})}catch(o){throw this.namespace.destroy(),o}}pyodide;namespace;stdio=nm(null);run(e,r,i,n){let o=nm(e.stdin);this.stdio=n??o;try{let{stdin:s,...a}=e,l=this.call(\"run\",{...a,piped:e.piped??s!==null,filename:e.filename??void 0},r,i);return[L(o.out),L(o.err),l]}finally{this.stdio=nm(null)}}seedSysPath(e){return this.call(\"seed_sys_path\",e)}close(){this.namespace.destroy()}call(e,...r){let i=this.namespace.get(e),n=[],o;try{for(let s of r)n.push(this.pyodide.toPy(s));return o=i(...n),tm(o)?o.toJs({create_proxies:!1}):o}finally{tm(o)&&o.destroy();for(let s of n)tm(s)&&s.destroy();i.destroy()}}};var nE=[\"B\",\"E\",\"I\",\"P\",\"s\",\"S\"],rE=[\"O\",\"b\"],iE=[\"W\",\"X\"],oE={check_hash_based_pycs:\"--check-hash-based-pycs\"},sE=new Set([\"cpu_count\",\"dev\",\"faulthandler\",\"frozen_modules\",\"importtime\",\"int_max_str_digits\",\"no_debug_ranges\",\"perf\",\"perf_jit\",\"pycache_prefix\",\"showrefcount\",\"tracemalloc\",\"utf8\",\"warn_default_encoding\"]);function aE(t){return typeof t==\"number\"?t:0}function lE(t){return Array.isArray(t)?t.map(e=>typeof e==\"string\"?e:e.virtual):[]}function uE(t,e){let r=[];for(let i of[...nE,...rE,...iE]){if(e.includes(i))continue;let n=t[i];(Array.isArray(n)?n.length>0:n===!0||aE(n)>0)&&r.push(`-${i}`)}for(let[i,n]of Object.entries(oE))e.includes(i)||t[i]&&r.push(n);for(let i of lE(t.X)){let n=i.split(\"=\")[0]??\"\";sE.has(n)&&!e.includes(`X:${n}`)&&r.push(`-X ${n}`)}return r}function K0(t,e,r=[]){let i=uE(t,r).map(n=>`python3: warning: ${n} is ignored by the '${e}' runtime\n`);return new TextEncoder().encode(i.join(\"\"))}var H0=[\"maxConcurrency\",\"autoLoadFromImports\",\"bootstrapCode\",\"initModule\",\"denyPackages\",\"home\",\"sysPath\",\"packages\",\"packageBaseUrl\",\"lockFileUrl\",\"maxMemory\"];function J0(t,e,r){let i={stopped:!1},n=async()=>{let s;try{s=await t()}catch(a){console.debug(`pyodide memory read failed: ${String(a)}`);return}i.stopped||s<=e||(i.stopped=!0,clearInterval(o),r(s))},o=setInterval(()=>{n()},50);return()=>{i.stopped=!0,clearInterval(o)}}async function X0(t,e){if(e==null)return await t,!0;let r;try{return await Promise.race([t.then(()=>!0),new Promise(i=>{r=setTimeout(()=>{i(!1)},Math.max(0,e*1e3))})])}finally{r!==void 0&&clearTimeout(r)}}function Ia(t){let e=new Uint8Array(t.reduce((i,n)=>i+n.length,0)),r=0;for(let i of t)e.set(i,r),r+=i.length;return mr(e)}var rm=class{constructor(e,r){this.child=e;this.request=r;this.readers={stdout:e.stdout[Symbol.asyncIterator](),stderr:e.stderr[Symbol.asyncIterator]()};for(let i of[\"stdout\",\"stderr\"])r[i]!==-1&&this.background.push(this.drain(i,r[i]===0?this.inherited[i]:null));r.stdin!==-1&&this.background.push(this.feed(ot(r.data??\"\")))}child;request;readers;chunks={stdout:[],stderr:[]};inherited={stdout:[],stderr:[]};background=[];communication=null;killed=0;async feed(e){try{await this.child.stdin.write(e)}catch(r){if(!(r instanceof Mt))throw r}finally{this.child.stdin.close()}}async drain(e,r){for(;;){let i=await this.readers[e].next();if(i.done)return;r?.push(i.value)}}code(){let e=this.child.poll();return e===null?null:this.killed?-this.killed:e}communicate(e){if(this.communication===null){let r=[...this.background,this.child.wait()];this.request.stdin===-1&&r.push(this.feed(ot(e??\"\")));for(let i of[\"stdout\",\"stderr\"])this.request[i]===-1&&r.push(this.drain(i,this.chunks[i]));this.communication=Promise.all(r)}else if(e!==void 0)throw new Error(\"cannot send input after communication started\");return this.communication}},Pa=class{constructor(e,r){this.ctx=e;this.files=r}ctx;files;children=new Map;closed=!1;owned=new Set;async call(e){try{let r=JSON.parse(e),i=await this.operation(r),n={stdout:[],stderr:[]};for(let s of this.children.values())for(let a of[\"stdout\",\"stderr\"])for(let l of s.inherited[a].splice(0))n[a].push(l);let o=Object.fromEntries([...this.children].map(([s,a])=>[s,a.child.stdin.bytesRead]));return JSON.stringify({...i,consumed:o,inherited_stdout:Ia(n.stdout),inherited_stderr:Ia(n.stderr)})}catch(r){let i=r instanceof Mt?\"EPIPE\":r.code===\"EAGAIN\"?\"EAGAIN\":J(r);return JSON.stringify({error:r instanceof Error?r.message:String(r),code:i??\"EIO\"})}}async operation(e){if(e.op===\"finish\")return await this.close(),{};if(e.op===\"resolve\"||e.op===\"spawn\"){e.op===\"spawn\"&&this.ctx.processes?.checkSpawn();let n=this.files,o=e.argv?.[0];if(typeof o!=\"string\"||!o)throw Object.assign(new Error(\"empty executable\"),{code:\"ENOENT\"});let s=e.cwd??\"/\",a=o.includes(\"/\")?[Ee(o,s)]:(e.env?.PATH??\"/usr/bin\").split(\":\").map(p=>Ee(`${p||\".\"}/${o}`,s)),l=null,u=!1;for(let p of a)try{let m=await n.stat(p);if(!m.isDir&&(m.mode&73)!==0){l=p;break}u=!0}catch(m){let y=J(m);if(y===\"EACCES\"||y===\"EPERM\")u=!0;else if(y!==\"ENOENT\"&&y!==\"ENOTDIR\")throw m}if(e.op===\"resolve\")return{path:l};if(l===null)throw Object.assign(new Error(`executable not found: ${o}`),{code:u?\"EACCES\":\"ENOENT\"});if(!(await n.stat(s)).isDir)throw Object.assign(new Error(`not a directory: ${s}`),{code:\"ENOTDIR\"});if(e.argv=[l,...(e.argv??[]).slice(1)],this.ctx.processes?.spawn===void 0)throw new Error(\"runtime has no process spawn entry point\");if(!Array.isArray(e.argv)||e.argv.length===0||!e.argv.every(p=>typeof p==\"string\"&&!p.includes(\"\\0\")))throw new Error(\"invalid argv\");if(typeof e.cwd!=\"string\"||!e.cwd.startsWith(\"/\"))throw new Error(\"invalid cwd\");if(this.closed)throw new Error(\"guest invocation has ended\");let d=this.ctx.processes.spawn({argv:e.argv,cwd:M.fromStrPath(e.cwd),env:e.env??{},replaceEnv:!0,mergeStderr:e.stderr===-2});this.owned.add(d);let f=new rm(d,e);return this.children.set(d.pid,f),{pid:d.pid,returncode:f.code()}}let r=this.children.get(e.pid??-1);if(r===void 0)throw new Error(\"unknown subprocess handle\");let{child:i}=r;switch(e.op){case\"release\":if(i.poll()===null)throw new Error(\"cannot release a live child\");return this.children.delete(i.pid),{};case\"poll\":return{returncode:r.code()};case\"kill\":return i.poll()===null&&(r.killed=e.signal===15?15:9,i.terminate(r.killed)),{returncode:r.code()};case\"close\":return e.stream===void 0?i.stdin.close():i.closeOutput(e.stream),{};case\"write\":return await i.stdin.write(ot(e.data??\"\")),{};case\"read\":{let n=e.stream;if(n!==\"stdout\"&&n!==\"stderr\")throw new Error(\"invalid stream\");if(r.request[n]!==-1||r.communication!==null)throw new Error(\"pipe is not readable\");let o=await r.readers[n].next();return{data:o.done?\"\":mr(o.value)}}case\"wait\":return{timeout:!await X0(Promise.all([i.wait(),...r.background]),e.timeout),returncode:r.code()};case\"communicate\":return{timeout:!await X0(r.communicate(e.data),e.timeout),returncode:r.code(),stdout:Ia(r.chunks.stdout),stderr:Ia(r.chunks.stderr)}}}async close(){this.closed=!0;for(let e of this.owned)e.terminate();await Promise.all([...this.children.values()].map(async e=>{await e.child.wait(),await Promise.all(e.background),e.communication!==null&&await e.communication}))}};async function cE(){if(globalThis.process?.versions?.node!==void 0){if(typeof SharedArrayBuffer>\"u\")return null;let{Worker:s}=await import(\"node:worker_threads\"),a=new URL(\"https://mirage.invalid/\".endsWith(\".ts\")?\"./entry.ts\":\"./entry.js\",\"https://mirage.invalid/\"),l=new s(a,{execArgv:a.pathname.endsWith(\".ts\")?[\"--experimental-transform-types\",\"--disable-warning=ExperimentalWarning\"]:[]}),c=l.getHeapStatistics?.bind(l);return{post:d=>{l.postMessage(d)},onMessage:d=>{l.on(\"message\",d)},onError:d=>{l.on(\"error\",d),l.on(\"exit\",f=>{d(new Error(`pyodide worker exited (${String(f)})`))})},terminate:()=>{l.terminate()},...c!==void 0?{memory:async()=>(await c()).external_memory}:{}}}if(typeof Worker>\"u\")return null;let e=typeof SharedArrayBuffer>\"u\"?await h0():void 0;if(e===null)return null;let{default:r}=await import(\"../../../../generated/pyodide_worker.ts\"),i=await hm(),n=URL.createObjectURL(new Blob([r],{type:\"text/javascript\"})),o=new Worker(n,{type:\"module\"});return{post:s=>{o.postMessage(s)},onMessage:s=>{o.onmessage=a=>{s(a.data)}},onError:s=>{o.onerror=a=>{s(new Error(a.message||\"its script did not start\"))}},terminate:()=>{o.terminate(),URL.revokeObjectURL(n)},wasm:i,...e!==void 0?{bridge:e}:{}}}function Y0(t){return t instanceof Error?t:new Error(`pyodide worker crashed: ${cn(t)}`)}var Ii=class t{constructor(e){this.port=e;e.onMessage(r=>{if(r.kind===\"ready\"){this.startup?.resolve(),this.startup=null;return}if(r.kind===\"vfs\"&&r.buffer!==void 0&&this.buffers.add(r.buffer),this.waiter===null)this.messages.push(r);else{let i=this.waiter;this.waiter=null,i.resolve(r)}}),e.onError(r=>{this.fail(Y0(r))})}port;startup=null;ready=new Promise((e,r)=>{this.startup={resolve:e,reject:r}});messages=[];waiter=null;buffers=new Set;interruptBuffer=typeof SharedArrayBuffer>\"u\"?null:new SharedArrayBuffer(16);failure=null;static async create(){let e=null;try{let r=await cE();return r===null?wi():(e=new t(r),await e.ready,e)}catch(r){return e?.close(),wi(r)}}async execute(e,r,i,n){if(this.failure!==null)throw this.failure;let o=r.signal,s=new AbortController,a=Ci(o,s.signal)??s.signal,l=o===void 0?i:i.withSignal(o),u=W(),c=new Set,d=new Pa(r,l),f=new Set,p=e.config.maxMemory??null,m=aa(p),y=m!==null&&p!==null&&this.port.memory!==void 0?J0(this.port.memory,m,()=>{this.port.terminate(),this.fail(new Nt(String(p)))}):null,_=this.interruptBuffer===null?null:new Int32Array(this.interruptBuffer);_!==null&&Atomics.store(_,3,0);let k=()=>{if(_===null){this.fail(new Error(\"pyodide worker interrupted\")),this.port.terminate();return}Atomics.store(_,3,1),Atomics.store(_,1,2),Atomics.store(_,0,2)};o?.aborted&&k(),o?.addEventListener(\"abort\",k,{once:!0});try{for(this.port.post({...e,...this.interruptBuffer!==null?{interruptBuffer:this.interruptBuffer}:{},...this.port.bridge!==void 0?{bridge:this.port.bridge}:{},...this.port.wasm!==void 0?{wasm:this.port.wasm}:{}});;){let S=await this.nextMessage();if(S.kind===\"notice\"){console.warn(S.message);continue}if(S.kind===\"vfs\"){let T=this.answer(S,()=>Te(u,()=>this.operation(S,l,d,f,n,a)));c.add(T),T.then(()=>{c.delete(T),S.buffer!==void 0&&this.buffers.delete(S.buffer)});continue}if(S.kind===\"result\")return S.value;throw S.name===\"PyodideUnavailableError\"?new Ae(S.message):S.name===\"CommandTimeoutError\"&&S.seconds!==void 0?new rt(\"pyodide\",S.seconds):new Error(S.message)}}finally{s.abort(),y?.(),o?.removeEventListener(\"abort\",k),await d.close(),await Promise.all(c);for(let S of f)try{await i.close(S)}catch(T){console.debug(`pyodide: landing an open file failed: ${String(T)}`)}}}nextMessage(){if(this.failure!==null)return Promise.reject(this.failure);let e=this.messages.shift();return e!==void 0?Promise.resolve(e):new Promise((r,i)=>{this.waiter={resolve:r,reject:i}})}close(){this.fail(new Error(\"pyodide worker closed\")),this.port.terminate()}fail(e){this.failure??=e;let r=this.failure;this.startup?.reject(r),this.startup=null,this.waiter?.reject(r),this.waiter=null;for(let i of this.buffers){let n=new Int32Array(i,0,4);Atomics.store(n,0,-1),Atomics.notify(n,0)}this.buffers.clear()}async answer(e,r){if(e.buffer!==void 0){await f0(e.buffer,r);return}try{if(this.port.bridge===void 0||e.id===void 0)throw new Error(\"pyodide worker call names no way to answer it\");await m0(this.port.bridge,e.id,r)}catch(i){this.fail(Y0(i)),this.port.terminate()}}async operation(e,r,i,n,o,s){let a=e.fh??-1;switch(e.op){case\"stdin\":return o.read(e.size??0,s);case\"output\":return o.write(a===2?2:1,e.bytes??new Uint8Array,s);case\"process\":for(let l of n)await r.fsync(l);return i.call(e.payload??\"{}\");case\"open\":{let l=await r.open(e.path,e.mode??sr);return n.add(l),l}case\"pread\":return r.pread(a,e.offset??0,e.size??0);case\"pwrite\":return r.pwrite(a,e.offset??0,e.bytes??new Uint8Array);case\"fstat\":return r.fstat(a);case\"ftruncate\":return r.ftruncate(a,e.size??0);case\"close\":return n.delete(a),r.close(a);case\"stat\":return r.stat(e.path,!0);case\"readdir\":return r.readdir(e.path,e.classify??!0);case\"readlink\":return r.readlink(e.path);case\"dispatch\":{if(e.args===void 0)throw new Error(\"missing bridge arguments\");return r.bridge(...e.args)}case\"flush\":{let l=e.mutations??[];for(let[u,c]of l.entries())try{await j0(r,c)}catch(d){let f=J(d);return{message:`python3: failed to ${c.kind} ${c.path} on mount: ${d instanceof Error?d.message:String(d)}`,skipped:l.length-u-1,...f===null?{}:{code:f}}}return}}}};function dE(t,e,r){let i=t===null?null:new qs(t),n=[[],[]];return{kept:n,read:(o,s)=>i===null?Promise.resolve(new Uint8Array):it(i.read1(o),s),write:async(o,s,a)=>{let l=o===1?e:r;if(l===void 0)return(o===1?n[0]:n[1]).push(s),!0;try{return await it(l(s),a),!0}catch(u){if(a.aborted)throw u;return console.debug(`pyodide: the reader went away: ${String(u)}`),!1}}}}function q0(t){return t instanceof Uint8Array?t:new Uint8Array(t)}function fE(t){let e=q0(t);return e.length>0?e:null}var pE=[\"B\",\"O\",\"P\",\"W\",\"X\",\"u\"];function mE(t){return t.length===0?[]:new TextDecoder().decode(t).split(`\n`).filter(e=>e.length>0)}function hE(t,e){if(e.length===0)return t;let r=new TextEncoder().encode(e.map(n=>n+`\n`).join(\"\"));if(t===null)return r;let i=new Uint8Array(t.length+r.length);return i.set(t),i.set(r,t.length),i}function Oa(t){return t.endsWith(\"/\")?t.slice(0,-1):t}function Pi(t){return Oa(t)!==\"\"}function gE(t){let e=t.find(r=>r===\"/lib/\"||r.startsWith(\"/lib/python\"));return e===void 0?null:e.slice(0,-1)}function yE(t){let e=[...t].sort((i,n)=>i.length-n.length),r=[];for(let i of e)r.some(n=>i.startsWith(n))||r.push(i);return r}function vE(t,e){return e.size===0?t:t.replace(/^[ \\t]*(?:from|import)\\s+([\\w][\\w.]*)[^\\n]*/gm,(r,i)=>{let n=i.split(\".\")[0]??\"\";return e.has(n)?r.replace(i,\"os\"):r})}var Na=class t extends da{constructor(r={},i,n){super(r,H0);this.sync=i;this.interruptBuffer=n;let o=this.config,{maxConcurrency:s=1}=o;if(!Number.isSafeInteger(s)||s<1)throw new Error(\"pyodide config: maxConcurrency must be a positive safe integer\");this.maxMemory=aa(o.maxMemory),this.limiter=new Ot(qe?s:1),this.reach=o.initModule===void 0?\"workspace\":\"process\",this.autoLoadFromImports=o.autoLoadFromImports??!0,this.bootstrapCode=o.bootstrapCode??null,this.denyPackages=new Set(o.denyPackages??[]),this.home=o.home??null,this.sysPath=o.sysPath??[],this.packages=o.packages??[],this.packageBaseUrl=o.packageBaseUrl??null,this.lockFileUrl=o.lockFileUrl??null;let a=new Set(this.denyPackages),l=this.packages.filter(u=>a.has(u));if(l.length>0)throw new Error(`pyodide config: ${l.map(u=>`'${u}'`).join(\", \")} appears in both packages and denyPackages`)}sync;interruptBuffer;name=\"pyodide\";versionSuffix=\" (pyodide)\";reach;filesystem=[\"read\",\"write\",\"list\",\"stat\",\"glob\"];pyodide=null;guest=null;initPromise=null;bootstrapPromise=null;disposeModule=null;queue=Promise.resolve();pending=new un;limiter;autoLoadFromImports;bootstrapCode;denyPackages;home;sysPath;packages;packageBaseUrl;lockFileUrl;files=null;journal=L0();deferred=new Map;streams=new Set;mounted=new Set;madeDirs=new Set;mountedFilesystems=new Map;refused=new Set;seedMissesReported=new Set;seedNotices=[];interrupter=null;interrupterTried=!1;worker=null;maxMemory;syncFailures=[];syncSkipped=0;realmSeal=null;async interpret(r,i,n,o,s){let a=this.binding,l=async c=>this.capped(c,await c.runOne(i,n,a,o,s));if(this.sync===void 0&&(n.processes?.depth??0)>0)return this.withFreshRuntime(l);let u=W();return this.schedule(()=>this.withPermit(()=>Te(u,()=>this.withFreshRuntime(l)),n.signal))}schedule(r){let i=this.pending.acquire();return this.queue.then(r,r).finally(i)}enqueue(r){let i=this.queue.then(r,r);return this.queue=i.catch(()=>{}),i}async withPermit(r,i){let n=await this.limiter.acquire(i);try{return await r()}finally{n()}}passedCap(r){let i=r.pyodide?._module?.HEAP8;if(this.maxMemory===null||i===void 0||i.length<=this.maxMemory)return null;let n=this.config.maxMemory??this.maxMemory;return new Nt(String(n)).message}capped(r,i){let n=this.passedCap(r);return n===null?i:{stdout:i.stdout,stderr:new TextEncoder().encode(`${n}\n`),exitCode:1}}createRuntime(){return new t({config:this.config},this.sync,this.interruptBuffer)}async withFreshRuntime(r){let i=this.createRuntime(),n;try{n=await r(i)}catch(o){try{await i.close()}catch(s){if(console.warn(\"pyodide runtime cleanup failed\",s),!(o instanceof Error))throw new AggregateError([o,s],\"pyodide execution and cleanup failed\");Reflect.defineProperty(o,\"cause\",{configurable:!0,enumerable:!1,writable:!0,value:o.cause===void 0?s:new AggregateError([o.cause,s],\"pyodide execution and cleanup failed\")})}throw o}return await i.close(),n}close(){let r=this.pending;return this.pending=new un,this.enqueue(async()=>{await r.wait(),await this.closeOne()})}async closeOne(){await this.closeInterpreter()}async closeInterpreter(){this.guest?.close(),this.guest=null;let r=this.disposeModule;this.disposeModule=null;try{await r?.()}finally{this.bootstrapPromise=null,this.pyodide=null;let i=this.worker;this.worker=null,this.initPromise=null,this.files=null,this.mounted.clear(),this.madeDirs.clear(),this.mountedFilesystems.clear();try{let n=await i;n instanceof Ii&&n.close()}finally{this.interrupter?.close(),this.interrupter=null,this.interrupterTried=!1}}}async wireInterruptIfNeeded(r){this.interrupterTried||r.setInterruptBuffer===void 0||(this.interrupter=await w0(this.interruptBuffer),this.interrupterTried=!0,this.interrupter!==null&&r.setInterruptBuffer(this.interrupter.view))}guardRequestedPaths(r){let i=this.sync;if(i===void 0)return;let n=r.FS,o=n.lookupPath.bind(n),s=n.stat.bind(n),a=0;n.stat=(l,u)=>{a++;try{return s(l,u)}finally{a--}},n.lookupPath=(l,u)=>{let c=o(l,u),d=l.startsWith(\"/\")?l:n.cwd()+\"/\"+l,f=Ee(u?.parent===!0?d+\"/..\":d,\"/\"),p=this.files;if(a===0&&c.path!==f&&p!==null&&(Pi(p.mountOf(d)??\"/\")||Pi(p.mountOf(c.path)??\"/\")))try{i.checkPath(d,u?.parent!==!0&&u?.follow===!0)}catch(m){let y=J(m);throw Re(n,r.ERRNO_CODES,y??\"EIO\")}return c}}async ensureLoaded(){if(this.pyodide!==null)return this.bootstrapPromise!==null&&await this.bootstrapPromise,this.syncMounts(this.pyodide),await this.wireInterruptIfNeeded(this.pyodide),await this.sealRealmIfWorker(this.pyodide),this.pyodide;if(this.initPromise??=v0({...this.home!==null?{home:this.home}:{},...this.packageBaseUrl!==null?{packageBaseUrl:this.packageBaseUrl}:{},...this.lockFileUrl!==null?{lockFileURL:this.lockFileUrl}:{},...this.packages.length>0?{packages:this.packages}:{}}).then(async r=>{let i=this.config.initModule;if(i!==void 0){let n=await import(i);if(typeof n.default!=\"function\")throw new TypeError(\"pyodide initModule must export a default initializer\");let o=await n.default(r);if(o!==void 0&&typeof o!=\"function\")throw new TypeError(\"pyodide initModule must return a cleanup function or undefined\");this.disposeModule=o??null}return this.guardRequestedPaths(r),r}),this.pyodide=await this.initPromise,this.bootstrapCode!==null){let r=this.bootstrapCode,i=this.pyodide;this.bootstrapPromise=(async()=>{if(i.loadPackagesFromImports!==void 0)try{await i.loadPackagesFromImports(r,{messageCallback:()=>{}})}catch{}await i.runPythonAsync(r)})(),await this.bootstrapPromise}return this.syncMounts(this.pyodide),await this.wireInterruptIfNeeded(this.pyodide),await this.sealRealmIfWorker(this.pyodide),this.pyodide}async sealRealmIfWorker(r){if(this.sync===void 0||this.reach===\"process\")return;if(this.realmSeal!==null)return this.realmSeal;typeof globalThis.process?.versions?.node==\"string\"&&(this.realmSeal=_0(r),await this.realmSeal)}async onWorker(r){try{return await r()}catch(i){throw i instanceof Nt&&(this.worker=null),i}}async ensureWorker(r){return this.sync!==void 0||r===null||this.pyodide!==null?null:(this.worker??=Ii.create(),this.worker)}syncMounts(r){let i=this.files,n=this.sync;if(i===null||n===void 0)return;let o=i.prefixes();for(let a of o)Pi(a)||this.refused.has(a)||(this.refused.add(a),console.warn(`mirage: the ${this.name} runtime cannot serve a mount at '${a}', because that is the interpreter's own filesystem root; python will not see it`));let s=new Set(yE(o.filter(Pi)));for(let a of[...this.mounted].sort((l,u)=>u.length-l.length)){if(s.has(a))continue;r.FS.unmount(Oa(a)),this.mounted.delete(a),this.mountedFilesystems.delete(a);let l=Oa(a);for(;this.madeDirs.has(l)&&r.FS.readdir(l).length===2;)r.FS.rmdir(l),this.madeDirs.delete(l),l=l.slice(0,l.lastIndexOf(\"/\"))}for(let a of[...s].sort((l,u)=>l.length-u.length)){let l=Oa(a);this.mounted.has(a)&&r.FS.unmount(l);let u=new Ta(r.FS,r.ERRNO_CODES,this.journal,l,d=>i.mountOf(d),{...n,flush:d=>{if(this.syncFailures.length>0)throw this.syncSkipped+=d.length,new Error(this.syncFailures[0]);try{return n.flush(d)}catch(f){throw this.syncFailures.push(f instanceof Error?f.message:String(f)),f}}},this.deferred,this.streams),c=\"\";for(let d of l.split(\"/\").slice(1))c+=\"/\"+d,!r.FS.analyzePath(c).exists&&(r.FS.mkdir(c),this.madeDirs.add(c));r.FS.mount(u.type,{},l),this.mounted.add(a),this.mountedFilesystems.set(a,u)}this.seedSysPath(r)}seedSysPath(r){for(let i of this.guestModule(r).seedSysPath(this.sysPath))this.seedMissesReported.has(i)||(this.seedMissesReported.add(i),this.seedNotices.push(`python3: sysPath: '${i}' matched nothing`))}guestProcess(r){if(this.sync?.process===void 0)throw new Error(\"subprocess requires a Pyodide worker with shared memory\");if(this.syncFailures.length>0)throw new Error(this.syncFailures[0]);let i=this.sync.flush(this.journal.takeMutations());if(i!==void 0)throw new Error(i.message);try{return this.sync.process(r)}finally{for(let n of this.mountedFilesystems.values())n.invalidate()}}guestModule(r){return this.guest??=new Aa(r,this.guestXattr.bind(this),this.guestProcess.bind(this),()=>{this.journal.seal()}),this.guest}guestXattr(r,i,n,o,s,a,l){let u=this.sync;if(u===void 0||this.files?.mountOf(i)==null)return JSON.stringify({code:\"ENOTSUP\"});try{let c=o==null?void 0:ot(o),d=u.xattr(r,i,n??void 0,c,{create:s,replace:a,nofollow:l});return JSON.stringify({value:d instanceof Uint8Array?mr(d):d??null})}catch(c){return JSON.stringify({code:c.code??J(c)??\"EIO\"})}}takeSeedNotices(){let r=this.seedNotices;return this.seedNotices=[],r}drainMutations(){this.journal.reopen();let r=this.sync;if(this.files===null||r===void 0)return[];let i=[];for(let u of this.streams){let c=u.fh;if(delete u.fh,c!==void 0)try{r.close(c)}catch(d){i.push(`python3: failed to write ${u.opened??\"\"} on mount: ${d instanceof Error?d.message:String(d)}`)}}this.streams.clear();let n=[...[...this.deferred.values()].map(u=>u.message),...i];this.deferred.clear();let o=this.syncFailures.splice(0),s=this.journal.takeMutations(),a=this.syncSkipped+s.length;if(this.syncSkipped=0,o.length>0)return a>0&&o.push(`python3: skipped ${String(a)} later mutation(s) after that failure`),[...n,...o];let l=s.length===0?void 0:r.flush(s);return l!==void 0&&(o.push(l.message),l.skipped>0&&o.push(`python3: skipped ${String(l.skipped)} later mutation(s) after that failure`)),[...n,...o]}async loadImports(r,i){if(!this.autoLoadFromImports||r.loadPackagesFromImports===void 0)return;let n=vE(i,this.denyPackages);try{await r.loadPackagesFromImports(n,{messageCallback:()=>{}})}catch{}}async runOne(r,i,n,o,s){let a=ka.of(i,n);this.files=a;let l=gE(a?.prefixes()??[]);if(l!==null)return{stdout:new Uint8Array,stderr:new TextEncoder().encode(`mirage: the ${this.name} runtime cannot run with a mount at '${l}', which hides the interpreter's standard library at /lib\n`),exitCode:ia};let u=await this.ensureWorker(a);if(u instanceof Ae)throw u;if(u!==null&&a!==null&&n!==null){let P=dE(r.stdin,o,s);try{let O=await this.onWorker(()=>u.execute({kind:\"execute\",config:this.config,prefixes:n.resolver.prefixes(),program:{...r,stdin:r.stdin===null?null:new Uint8Array},cwd:i.cwd.virtual,env:{...i.env},flags:i.flags,...i.timeoutSeconds!==void 0?{timeoutSeconds:i.timeoutSeconds}:{},...Rp()!==null?{offset:Bv()-Date.now()/1e3}:{}},i,a,P)),[D,Y]=P.kept,De=L([...Y,...O.stderr===null?[]:[O.stderr]]);return{...O,stdout:L([...D,O.stdout]),stderr:De.length>0?De:null}}catch(O){if(!(O instanceof Nt))throw O;return{stdout:new Uint8Array,stderr:new TextEncoder().encode(`${O.message}\n`),exitCode:1}}}if(a!==null&&this.sync===void 0)throw wi();let c=await this.ensureLoaded(),d=[...this.takeSeedNotices(),...mE(K0(i.flags,this.name,pE))];await this.loadImports(c,r.code);let f=[r.prog??\"-c\",...r.args],p=this.sync?.stdin?.bind(this.sync),m=this.sync?.output?.bind(this.sync),y=p!==void 0&&m!==void 0?{read:p,write:m}:void 0,_={code:r.code,argv:f,env:{...i.env},stdin:y!==void 0||r.stdin===null?null:await it(je(r.stdin),i.signal),piped:r.stdin!==null,flags:i.flags,script_cli:r.scriptCli??!1,cwd:this.guestCwd(i.cwd),filename:s0(r,i.cwd),script:r.scriptPath!==void 0},k={armed:null},S=()=>{this.interrupter!==null&&k.armed===null&&(k.armed=this.interrupter.arm(i.timeoutSeconds??null,i.signal))},T=()=>{k.armed?.disarm()};try{let P=this.guestModule(c).run(_,S,T,y);if(k.armed?.disarm()===\"deadline\"&&i.timeoutSeconds!==void 0)throw new rt(this.name,i.timeoutSeconds);let O=this.drainMutations();return{stdout:q0(P[0]),stderr:hE(fE(P[1]),[...d,...O]),exitCode:O.length>0&&P[2]===0?1:P[2]}}catch(P){let O=k.armed?.disarm()===\"deadline\";for(let D of[...d,...this.drainMutations()])console.warn(D);throw O&&i.timeoutSeconds!==void 0?new rt(this.name,i.timeoutSeconds):P}finally{k.armed?.disarm()}}guestCwd(r){let i=r?.virtual??\"\",n=i===\"\"?null:this.files?.mountOf(i)??null;return i!==\"/\"&&n!==null&&!Pi(n)?\"\":i}};var bE=globalThis.process?.versions?.node,Da=bE===void 0?null:(await import(\"node:worker_threads\")).parentPort,tb=globalThis,cr=t=>{Da!==null?Da.postMessage(t):tb.postMessage(t)},nb,im,le=t=>im===void 0?d0(cr,t,nb):p0(cr,t,im);console.warn=(...t)=>{cr({kind:\"notice\",message:t.map(String).join(\" \")})};var wE={checkPath:(t,e)=>{le({op:\"dispatch\",path:t,args:[\"stat\",t,void 0,void 0,{admitOnly:!0,nofollow:!e}]})},process:t=>le({op:\"process\",path:\"\",payload:t}),stdin:t=>le({op:\"stdin\",path:\"\",size:t}),output:(t,e)=>le({op:\"output\",path:\"\",fh:t,bytes:e}),open:(t,e)=>le({op:\"open\",path:t,mode:e}),pread:(t,e,r)=>le({op:\"pread\",path:\"\",fh:t,offset:e,size:r}),pwrite:(t,e,r)=>{le({op:\"pwrite\",path:\"\",fh:t,offset:e,bytes:r})},fstat:t=>le({op:\"fstat\",path:\"\",fh:t}),ftruncate:(t,e)=>{le({op:\"ftruncate\",path:\"\",fh:t,size:e})},close:t=>{le({op:\"close\",path:\"\",fh:t})},stat:t=>le({op:\"stat\",path:t}),readdir:(t,e=!0)=>le({op:\"readdir\",path:t,classify:e}),readlink:t=>le({op:\"readlink\",path:t}),flush:t=>{if(t.length>0)return le({op:\"flush\",path:\"\",mutations:t})},xattr:(t,e,r,i,n)=>le({op:\"dispatch\",path:e,args:[t,e,i,r,n]})},SE=(...t)=>Promise.resolve(le({op:\"dispatch\",path:t[1],args:t})),Ra=null,Q0=[];async function eb(t){try{Q0=t.prefixes,Ra===null&&(t.wasm!==void 0&&gm(t.wasm),nb=t.interruptBuffer===void 0?void 0:new Int32Array(t.interruptBuffer),im=t.bridge,Ra=new Na({config:t.config},wE,t.interruptBuffer),Ra.bind(oa.overBridge(SE,new ir(()=>Q0))));let{scriptPath:e,...r}=t.program,i=Date.now,n=t.offset??0;n!==0&&(Date.now=()=>i()+n*1e3);let o=await Ra.interpret(void 0,{...r,...e!==void 0?{scriptPath:new M(e)}:{}},{stdin:null,flags:t.flags,cwd:M.fromStrPath(t.cwd),env:t.env,...t.timeoutSeconds!==void 0?{timeoutSeconds:t.timeoutSeconds}:{}}).finally(()=>{Date.now=i});cr({kind:\"result\",value:o})}catch(e){cr({kind:\"error\",message:cn(e),name:e instanceof Error?e.name:\"Error\",...e?.seconds!==void 0?{seconds:e.seconds}:{}})}}Da!==null?Da.on(\"message\",t=>{eb(t)}):tb.onmessage=t=>{eb(t.data)};cr({kind:\"ready\"});\n";
//# sourceMappingURL=pyodide_worker.js.map