@synnaxlabs/drift 0.44.1 → 0.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,34 +1,34 @@
1
- "use strict";const tl=require("@reduxjs/toolkit"),Ge=(t=!1,...e)=>{t&&console.log(...e)},Vi=(t=!1,...e)=>{t&&console.group(...e)},sn=t=>{t&&console.groupEnd()},nl=t=>{const e=t.replace(/_[a-z]/g,r=>r[1].toUpperCase());return e.length>1&&e[0]===e[0].toUpperCase()&&e[1]===e[1].toUpperCase()||e.length===0?e:e[0].toLowerCase()+e.slice(1)},Gi=t=>{const e=(r,o=cn)=>{if(typeof r=="string")return t(r);if(Array.isArray(r))return r.map(a=>e(a,o));if(!on(r))return r;o=al(o);const n={},i=r;return"toJSON"in i&&typeof i.toJSON=="function"?e(i.toJSON(),o):(Object.keys(i).forEach(a=>{let u=i[a];const s=t(a);o.recursive&&(on(u)?Ii(u)||(u=e(u,o)):o.recursiveInArray&&_i(u)&&(u=[...u].map(f=>{let p=f;return on(f)?Ii(p)||(p=e(f,o)):_i(f)&&(p=e({key:f},o).key),p}))),n[s]=u}),n)};return e},qi=Gi(nl),rl=t=>t.replace(/([a-z0-9])([A-Z])/g,(e,r,o)=>`${r}_${o.toLowerCase()}`),il=Gi(rl),ol=[Number,String,Uint8Array],cn={recursive:!0,recursiveInArray:!0},al=(t=cn)=>(t.recursive==null?t=cn:t.recursiveInArray??=!1,t),_i=t=>t!=null&&Array.isArray(t),on=t=>t!=null&&typeof t=="object"&&!Array.isArray(t),Ii=t=>ol.some(e=>t instanceof e),an=t=>t!=null&&typeof t=="object"&&!Array.isArray(t);let ul=class{contentType="application/json";decoder;encoder;constructor(){this.decoder=new TextDecoder,this.encoder=new TextEncoder}encode(e){return this.encoder.encode(this.encodeString(e))}decode(e,r){return this.decodeString(this.decoder.decode(e),r)}decodeString(e,r){const o=JSON.parse(e),n=qi(o);return r!=null?r.parse(n):n}encodeString(e){const r=il(e);return JSON.stringify(r,(o,n)=>ArrayBuffer.isView(n)?Array.from(n):typeof n=="bigint"?n.toString():n)}};const ln=new ul,Ki=Object.freeze({status:"aborted"});function c(t,e,r){function o(u,s){var f;Object.defineProperty(u,"_zod",{value:u._zod??{},enumerable:!1}),(f=u._zod).traits??(f.traits=new Set),u._zod.traits.add(t),e(u,s);for(const p in a.prototype)p in u||Object.defineProperty(u,p,{value:a.prototype[p].bind(u)});u._zod.constr=a,u._zod.def=s}const n=r?.Parent??Object;class i extends n{}Object.defineProperty(i,"name",{value:t});function a(u){var s;const f=r?.Parent?new i:this;o(f,u),(s=f._zod).deferred??(s.deferred=[]);for(const p of f._zod.deferred)p();return f}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:u=>r?.Parent&&u instanceof r.Parent?!0:u?._zod?.traits?.has(t)}),Object.defineProperty(a,"name",{value:t}),a}const Yi=Symbol("zod_brand");class Me extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const _t={};function Y(t){return t&&Object.assign(_t,t),_t}function sl(t){return t}function cl(t){return t}function ll(t){}function dl(t){throw new Error}function fl(t){}function kn(t){const e=Object.values(t).filter(o=>typeof o=="number");return Object.entries(t).filter(([o,n])=>e.indexOf(+o)===-1).map(([o,n])=>n)}function b(t,e="|"){return t.map(r=>O(r)).join(e)}function Xi(t,e){return typeof e=="bigint"?e.toString():e}function Et(t){return{get value(){{const e=t();return Object.defineProperty(this,"value",{value:e}),e}}}}function Ue(t){return t==null}function Dt(t){const e=t.startsWith("^")?1:0,r=t.endsWith("$")?t.length-1:t.length;return t.slice(e,r)}function Hi(t,e){const r=(t.toString().split(".")[1]||"").length,o=(e.toString().split(".")[1]||"").length,n=r>o?r:o,i=Number.parseInt(t.toFixed(n).replace(".","")),a=Number.parseInt(e.toFixed(n).replace(".",""));return i%a/10**n}function N(t,e,r){Object.defineProperty(t,e,{get(){{const o=r();return t[e]=o,o}},set(o){Object.defineProperty(t,e,{value:o})},configurable:!0})}function Be(t,e,r){Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0})}function ml(t,e){return e?e.reduce((r,o)=>r?.[o],t):t}function pl(t){const e=Object.keys(t),r=e.map(o=>t[o]);return Promise.all(r).then(o=>{const n={};for(let i=0;i<e.length;i++)n[e[i]]=o[i];return n})}function gl(t=10){const e="abcdefghijklmnopqrstuvwxyz";let r="";for(let o=0;o<t;o++)r+=e[Math.floor(Math.random()*e.length)];return r}function De(t){return JSON.stringify(t)}const Sn=Error.captureStackTrace?Error.captureStackTrace:(...t)=>{};function et(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}const Qi=Et(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function tt(t){if(et(t)===!1)return!1;const e=t.constructor;if(e===void 0)return!0;const r=e.prototype;return!(et(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function hl(t){let e=0;for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&e++;return e}const vl=t=>{const 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}`)}},It=new Set(["string","number","symbol"]),eo=new Set(["string","number","bigint","boolean","symbol","undefined"]);function je(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function de(t,e,r){const o=new t._zod.constr(e??t._zod.def);return(!e||r?.parent)&&(o._zod.parent=t),o}function m(t){const 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 yl(t){let e;return new Proxy({},{get(r,o,n){return e??(e=t()),Reflect.get(e,o,n)},set(r,o,n,i){return e??(e=t()),Reflect.set(e,o,n,i)},has(r,o){return e??(e=t()),Reflect.has(e,o)},deleteProperty(r,o){return e??(e=t()),Reflect.deleteProperty(e,o)},ownKeys(r){return e??(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(r,o){return e??(e=t()),Reflect.getOwnPropertyDescriptor(e,o)},defineProperty(r,o,n){return e??(e=t()),Reflect.defineProperty(e,o,n)}})}function O(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function to(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}const no={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]},ro={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function io(t,e){const r={},o=t._zod.def;for(const n in e){if(!(n in o.shape))throw new Error(`Unrecognized key: "${n}"`);e[n]&&(r[n]=o.shape[n])}return de(t,{...t._zod.def,shape:r,checks:[]})}function oo(t,e){const r={...t._zod.def.shape},o=t._zod.def;for(const n in e){if(!(n in o.shape))throw new Error(`Unrecognized key: "${n}"`);e[n]&&delete r[n]}return de(t,{...t._zod.def,shape:r,checks:[]})}function ao(t,e){if(!tt(e))throw new Error("Invalid input to extend: expected a plain object");const r={...t._zod.def,get shape(){const o={...t._zod.def.shape,...e};return Be(this,"shape",o),o},checks:[]};return de(t,r)}function uo(t,e){return de(t,{...t._zod.def,get shape(){const r={...t._zod.def.shape,...e._zod.def.shape};return Be(this,"shape",r),r},catchall:e._zod.def.catchall,checks:[]})}function so(t,e,r){const o=e._zod.def.shape,n={...o};if(r)for(const i in r){if(!(i in o))throw new Error(`Unrecognized key: "${i}"`);r[i]&&(n[i]=t?new t({type:"optional",innerType:o[i]}):o[i])}else for(const i in o)n[i]=t?new t({type:"optional",innerType:o[i]}):o[i];return de(e,{...e._zod.def,shape:n,checks:[]})}function co(t,e,r){const o=e._zod.def.shape,n={...o};if(r)for(const i in r){if(!(i in n))throw new Error(`Unrecognized key: "${i}"`);r[i]&&(n[i]=new t({type:"nonoptional",innerType:o[i]}))}else for(const i in o)n[i]=new t({type:"nonoptional",innerType:o[i]});return de(e,{...e._zod.def,shape:n,checks:[]})}function Ae(t,e=0){for(let r=e;r<t.issues.length;r++)if(t.issues[r]?.continue!==!0)return!0;return!1}function te(t,e){return e.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(t),r})}function qe(t){return typeof t=="string"?t:t?.message}function re(t,e,r){const o={...t,path:t.path??[]};if(!t.message){const n=qe(t.inst?._zod.def?.error?.(t))??qe(e?.error?.(t))??qe(r.customError?.(t))??qe(r.localeError?.(t))??"Invalid input";o.message=n}return delete o.inst,delete o.continue,e?.reportInput||delete o.input,o}function Pt(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}function At(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function Ce(...t){const[e,r,o]=t;return typeof e=="string"?{message:e,code:"custom",input:r,inst:o}:{...e}}function bl(t){return Object.entries(t).filter(([e,r])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}class $l{constructor(...e){}}const wl=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:ro,Class:$l,NUMBER_FORMAT_RANGES:no,aborted:Ae,allowsEval:Qi,assert:fl,assertEqual:sl,assertIs:ll,assertNever:dl,assertNotEqual:cl,assignProp:Be,cached:Et,captureStackTrace:Sn,cleanEnum:bl,cleanRegex:Dt,clone:de,createTransparentProxy:yl,defineLazy:N,esc:De,escapeRegex:je,extend:ao,finalizeIssue:re,floatSafeRemainder:Hi,getElementAtPath:ml,getEnumValues:kn,getLengthableOrigin:At,getParsedType:vl,getSizableOrigin:Pt,isObject:et,isPlainObject:tt,issue:Ce,joinValues:b,jsonStringifyReplacer:Xi,merge:uo,normalizeParams:m,nullish:Ue,numKeys:hl,omit:oo,optionalKeys:to,partial:so,pick:io,prefixIssues:te,primitiveTypes:eo,promiseAllObject:pl,propertyKeyTypes:It,randomString:gl,required:co,stringifyPrimitive:O,unwrapMessage:qe},Symbol.toStringTag,{value:"Module"})),lo=(t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),Object.defineProperty(t,"message",{get(){return JSON.stringify(e,Xi,2)},enumerable:!0}),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},On=c("$ZodError",lo),ut=c("$ZodError",lo,{Parent:Error});function zn(t,e=r=>r.message){const r={},o=[];for(const n of t.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(e(n))):o.push(e(n));return{formErrors:o,fieldErrors:r}}function xn(t,e){const r=e||function(i){return i.message},o={_errors:[]},n=i=>{for(const a of i.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(u=>n({issues:u}));else if(a.code==="invalid_key")n({issues:a.issues});else if(a.code==="invalid_element")n({issues:a.issues});else if(a.path.length===0)o._errors.push(r(a));else{let u=o,s=0;for(;s<a.path.length;){const f=a.path[s];s===a.path.length-1?(u[f]=u[f]||{_errors:[]},u[f]._errors.push(r(a))):u[f]=u[f]||{_errors:[]},u=u[f],s++}}};return n(t),o}function fo(t,e){const r=e||function(i){return i.message},o={errors:[]},n=(i,a=[])=>{var u,s;for(const f of i.issues)if(f.code==="invalid_union"&&f.errors.length)f.errors.map(p=>n({issues:p},f.path));else if(f.code==="invalid_key")n({issues:f.issues},f.path);else if(f.code==="invalid_element")n({issues:f.issues},f.path);else{const p=[...a,...f.path];if(p.length===0){o.errors.push(r(f));continue}let l=o,g=0;for(;g<p.length;){const y=p[g],d=g===p.length-1;typeof y=="string"?(l.properties??(l.properties={}),(u=l.properties)[y]??(u[y]={errors:[]}),l=l.properties[y]):(l.items??(l.items=[]),(s=l.items)[y]??(s[y]={errors:[]}),l=l.items[y]),d&&l.errors.push(r(f)),g++}}};return n(t),o}function mo(t){const e=[];for(const r of t)typeof r=="number"?e.push(`[${r}]`):typeof r=="symbol"?e.push(`[${JSON.stringify(String(r))}]`):/[^\w$]/.test(r)?e.push(`[${JSON.stringify(r)}]`):(e.length&&e.push("."),e.push(r));return e.join("")}function po(t){const e=[],r=[...t.issues].sort((o,n)=>o.path.length-n.path.length);for(const o of r)e.push(`✖ ${o.message}`),o.path?.length&&e.push(` → at ${mo(o.path)}`);return e.join(`
2
- `)}const Nn=t=>(e,r,o,n)=>{const i=o?Object.assign(o,{async:!1}):{async:!1},a=e._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new Me;if(a.issues.length){const u=new(n?.Err??t)(a.issues.map(s=>re(s,i,Y())));throw Sn(u,n?.callee),u}return a.value},dn=Nn(ut),Tn=t=>async(e,r,o,n)=>{const i=o?Object.assign(o,{async:!0}):{async:!0};let a=e._zod.run({value:r,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){const u=new(n?.Err??t)(a.issues.map(s=>re(s,i,Y())));throw Sn(u,n?.callee),u}return a.value},fn=Tn(ut),Un=t=>(e,r,o)=>{const n=o?{...o,async:!1}:{async:!1},i=e._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new Me;return i.issues.length?{success:!1,error:new(t??On)(i.issues.map(a=>re(a,n,Y())))}:{success:!0,data:i.value}},go=Un(ut),jn=t=>async(e,r,o)=>{const n=o?Object.assign(o,{async:!0}):{async:!0};let i=e._zod.run({value:r,issues:[]},n);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new t(i.issues.map(a=>re(a,n,Y())))}:{success:!0,data:i.value}},ho=jn(ut),vo=/^[cC][^\s-]{8,}$/,yo=/^[0-9a-z]+$/,bo=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,$o=/^[0-9a-vA-V]{20}$/,wo=/^[A-Za-z0-9]{27}$/,_o=/^[a-zA-Z0-9_-]{21}$/,Io=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,_l=/^[-+]?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)?)??$/,ko=/^([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})$/,Re=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)$/,Il=Re(4),kl=Re(6),Sl=Re(7),So=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Ol=/^[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])?)*$/,zl=/^(([^<>()\[\]\\.,;:\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,}))$/,xl=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Nl=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Tl="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Oo(){return new RegExp(Tl,"u")}const zo=/^(?:(?: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])$/,xo=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,No=/^((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])$/,To=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Uo=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,En=/^[A-Za-z0-9_-]*$/,jo=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,Ul=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Eo=/^\+(?:[0-9]){6,14}[0-9]$/,Do="(?:(?:\\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])))",Po=new RegExp(`^${Do}$`);function Ao(t){const 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}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Zo(t){return new RegExp(`^${Ao(t)}$`)}function Mo(t){const e=Ao({precision:t.precision}),r=["Z"];t.local&&r.push(""),t.offset&&r.push("([+-]\\d{2}:\\d{2})");const o=`${e}(?:${r.join("|")})`;return new RegExp(`^${Do}T(?:${o})$`)}const Co=t=>{const e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},Ro=/^\d+n?$/,Lo=/^\d+$/,Wo=/^-?\d+(?:\.\d+)?/i,Bo=/true|false/i,Fo=/null/i,Jo=/undefined/i,Vo=/^[^A-Z]*$/,Go=/^[^a-z]*$/,qo=Object.freeze(Object.defineProperty({__proto__:null,base64:Uo,base64url:En,bigint:Ro,boolean:Bo,browserEmail:Nl,cidrv4:No,cidrv6:To,cuid:vo,cuid2:yo,date:Po,datetime:Mo,domain:Ul,duration:Io,e164:Eo,email:So,emoji:Oo,extendedDuration:_l,guid:ko,hostname:jo,html5Email:Ol,integer:Lo,ipv4:zo,ipv6:xo,ksuid:wo,lowercase:Vo,nanoid:_o,null:Fo,number:Wo,rfc5322Email:zl,string:Co,time:Zo,ulid:bo,undefined:Jo,unicodeEmail:xl,uppercase:Go,uuid:Re,uuid4:Il,uuid6:kl,uuid7:Sl,xid:$o},Symbol.toStringTag,{value:"Module"})),F=c("$ZodCheck",(t,e)=>{var r;t._zod??(t._zod={}),t._zod.def=e,(r=t._zod).onattach??(r.onattach=[])}),Ko={number:"number",bigint:"bigint",object:"date"},Dn=c("$ZodCheckLessThan",(t,e)=>{F.init(t,e);const r=Ko[typeof e.value];t._zod.onattach.push(o=>{const n=o._zod.bag,i=(e.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value<i&&(e.inclusive?n.maximum=e.value:n.exclusiveMaximum=e.value)}),t._zod.check=o=>{(e.inclusive?o.value<=e.value:o.value<e.value)||o.issues.push({origin:r,code:"too_big",maximum:e.value,input:o.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),Pn=c("$ZodCheckGreaterThan",(t,e)=>{F.init(t,e);const r=Ko[typeof e.value];t._zod.onattach.push(o=>{const n=o._zod.bag,i=(e.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>i&&(e.inclusive?n.minimum=e.value:n.exclusiveMinimum=e.value)}),t._zod.check=o=>{(e.inclusive?o.value>=e.value:o.value>e.value)||o.issues.push({origin:r,code:"too_small",minimum:e.value,input:o.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),Yo=c("$ZodCheckMultipleOf",(t,e)=>{F.init(t,e),t._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.multipleOf=e.value)}),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"?r.value%e.value===BigInt(0):Hi(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})}}),Xo=c("$ZodCheckNumberFormat",(t,e)=>{F.init(t,e),e.format=e.format||"float64";const r=e.format?.includes("int"),o=r?"int":"number",[n,i]=no[e.format];t._zod.onattach.push(a=>{const u=a._zod.bag;u.format=e.format,u.minimum=n,u.maximum=i,r&&(u.pattern=Lo)}),t._zod.check=a=>{const u=a.value;if(r){if(!Number.isInteger(u)){a.issues.push({expected:o,format:e.format,code:"invalid_type",input:u,inst:t});return}if(!Number.isSafeInteger(u)){u>0?a.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:o,continue:!e.abort}):a.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:o,continue:!e.abort});return}}u<n&&a.issues.push({origin:"number",input:u,code:"too_small",minimum:n,inclusive:!0,inst:t,continue:!e.abort}),u>i&&a.issues.push({origin:"number",input:u,code:"too_big",maximum:i,inst:t})}}),Ho=c("$ZodCheckBigIntFormat",(t,e)=>{F.init(t,e);const[r,o]=ro[e.format];t._zod.onattach.push(n=>{const i=n._zod.bag;i.format=e.format,i.minimum=r,i.maximum=o}),t._zod.check=n=>{const i=n.value;i<r&&n.issues.push({origin:"bigint",input:i,code:"too_small",minimum:r,inclusive:!0,inst:t,continue:!e.abort}),i>o&&n.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inst:t})}}),Qo=c("$ZodCheckMaxSize",(t,e)=>{var r;F.init(t,e),(r=t._zod.def).when??(r.when=o=>{const n=o.value;return!Ue(n)&&n.size!==void 0}),t._zod.onattach.push(o=>{const n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<n&&(o._zod.bag.maximum=e.maximum)}),t._zod.check=o=>{const n=o.value;n.size<=e.maximum||o.issues.push({origin:Pt(n),code:"too_big",maximum:e.maximum,input:n,inst:t,continue:!e.abort})}}),ea=c("$ZodCheckMinSize",(t,e)=>{var r;F.init(t,e),(r=t._zod.def).when??(r.when=o=>{const n=o.value;return!Ue(n)&&n.size!==void 0}),t._zod.onattach.push(o=>{const n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>n&&(o._zod.bag.minimum=e.minimum)}),t._zod.check=o=>{const n=o.value;n.size>=e.minimum||o.issues.push({origin:Pt(n),code:"too_small",minimum:e.minimum,input:n,inst:t,continue:!e.abort})}}),ta=c("$ZodCheckSizeEquals",(t,e)=>{var r;F.init(t,e),(r=t._zod.def).when??(r.when=o=>{const n=o.value;return!Ue(n)&&n.size!==void 0}),t._zod.onattach.push(o=>{const n=o._zod.bag;n.minimum=e.size,n.maximum=e.size,n.size=e.size}),t._zod.check=o=>{const n=o.value,i=n.size;if(i===e.size)return;const a=i>e.size;o.issues.push({origin:Pt(n),...a?{code:"too_big",maximum:e.size}:{code:"too_small",minimum:e.size},inclusive:!0,exact:!0,input:o.value,inst:t,continue:!e.abort})}}),na=c("$ZodCheckMaxLength",(t,e)=>{var r;F.init(t,e),(r=t._zod.def).when??(r.when=o=>{const n=o.value;return!Ue(n)&&n.length!==void 0}),t._zod.onattach.push(o=>{const n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<n&&(o._zod.bag.maximum=e.maximum)}),t._zod.check=o=>{const n=o.value;if(n.length<=e.maximum)return;const a=At(n);o.issues.push({origin:a,code:"too_big",maximum:e.maximum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),ra=c("$ZodCheckMinLength",(t,e)=>{var r;F.init(t,e),(r=t._zod.def).when??(r.when=o=>{const n=o.value;return!Ue(n)&&n.length!==void 0}),t._zod.onattach.push(o=>{const n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>n&&(o._zod.bag.minimum=e.minimum)}),t._zod.check=o=>{const n=o.value;if(n.length>=e.minimum)return;const a=At(n);o.issues.push({origin:a,code:"too_small",minimum:e.minimum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),ia=c("$ZodCheckLengthEquals",(t,e)=>{var r;F.init(t,e),(r=t._zod.def).when??(r.when=o=>{const n=o.value;return!Ue(n)&&n.length!==void 0}),t._zod.onattach.push(o=>{const n=o._zod.bag;n.minimum=e.length,n.maximum=e.length,n.length=e.length}),t._zod.check=o=>{const n=o.value,i=n.length;if(i===e.length)return;const a=At(n),u=i>e.length;o.issues.push({origin:a,...u?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:o.value,inst:t,continue:!e.abort})}}),st=c("$ZodCheckStringFormat",(t,e)=>{var r,o;F.init(t,e),t._zod.onattach.push(n=>{const i=n._zod.bag;i.format=e.format,e.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(e.pattern))}),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})}):(o=t._zod).check??(o.check=()=>{})}),oa=c("$ZodCheckRegex",(t,e)=>{st.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})}}),aa=c("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=Vo),st.init(t,e)}),ua=c("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=Go),st.init(t,e)}),sa=c("$ZodCheckIncludes",(t,e)=>{F.init(t,e);const r=je(e.includes),o=new RegExp(typeof e.position=="number"?`^.{${e.position}}${r}`:r);e.pattern=o,t._zod.onattach.push(n=>{const i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),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})}}),ca=c("$ZodCheckStartsWith",(t,e)=>{F.init(t,e);const r=new RegExp(`^${je(e.prefix)}.*`);e.pattern??(e.pattern=r),t._zod.onattach.push(o=>{const n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),t._zod.check=o=>{o.value.startsWith(e.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:o.value,inst:t,continue:!e.abort})}}),la=c("$ZodCheckEndsWith",(t,e)=>{F.init(t,e);const r=new RegExp(`.*${je(e.suffix)}$`);e.pattern??(e.pattern=r),t._zod.onattach.push(o=>{const n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),t._zod.check=o=>{o.value.endsWith(e.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:o.value,inst:t,continue:!e.abort})}});function ki(t,e,r){t.issues.length&&e.issues.push(...te(r,t.issues))}const da=c("$ZodCheckProperty",(t,e)=>{F.init(t,e),t._zod.check=r=>{const o=e.schema._zod.run({value:r.value[e.property],issues:[]},{});if(o instanceof Promise)return o.then(n=>ki(n,r,e.property));ki(o,r,e.property)}}),fa=c("$ZodCheckMimeType",(t,e)=>{F.init(t,e);const r=new Set(e.mime);t._zod.onattach.push(o=>{o._zod.bag.mime=e.mime}),t._zod.check=o=>{r.has(o.value.type)||o.issues.push({code:"invalid_value",values:e.mime,input:o.value.type,inst:t})}}),ma=c("$ZodCheckOverwrite",(t,e)=>{F.init(t,e),t._zod.check=r=>{r.value=e.tx(r.value)}});class pa{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const o=e.split(`
1
+ "use strict";const rl=require("@reduxjs/toolkit"),qe=(t=!1,...e)=>{t&&console.log(...e)},Gi=(t=!1,...e)=>{t&&console.group(...e)},cn=t=>{t&&console.groupEnd()},il=t=>{const e=t.replace(/_[a-z]/g,r=>r[1].toUpperCase());return e.length>1&&e[0]===e[0].toUpperCase()&&e[1]===e[1].toUpperCase()||e.length===0?e:e[0].toLowerCase()+e.slice(1)},qi=t=>{const e=(r,o=ln)=>{if(typeof r=="string")return t(r);if(Array.isArray(r))return r.map(a=>e(a,o));if(!an(r))return r;o=sl(o);const n={},i=r;return"toJSON"in i&&typeof i.toJSON=="function"?e(i.toJSON(),o):(Object.keys(i).forEach(a=>{let u=i[a];const s=t(a);o.recursive&&(an(u)?ki(u)||(u=e(u,o)):o.recursiveInArray&&Ii(u)&&(u=[...u].map(f=>{let p=f;return an(f)?ki(p)||(p=e(f,o)):Ii(f)&&(p=e({key:f},o).key),p}))),n[s]=u}),n)};return e},Ki=qi(il),ol=t=>t.replace(/([a-z0-9])([A-Z])/g,(e,r,o)=>`${r}_${o.toLowerCase()}`),al=qi(ol),ul=[Number,String,Uint8Array],ln={recursive:!0,recursiveInArray:!0},sl=(t=ln)=>(t.recursive==null?t=ln:t.recursiveInArray??=!1,t),Ii=t=>t!=null&&Array.isArray(t),an=t=>t!=null&&typeof t=="object"&&!Array.isArray(t),ki=t=>ul.some(e=>t instanceof e),un=t=>t!=null&&typeof t=="object"&&!Array.isArray(t);let cl=class{contentType="application/json";decoder;encoder;constructor(){this.decoder=new TextDecoder,this.encoder=new TextEncoder}encode(e){return this.encoder.encode(this.encodeString(e))}decode(e,r){return this.decodeString(this.decoder.decode(e),r)}decodeString(e,r){const o=JSON.parse(e),n=Ki(o);return r!=null?r.parse(n):n}encodeString(e){const r=al(e);return JSON.stringify(r,(o,n)=>ArrayBuffer.isView(n)?Array.from(n):typeof n=="bigint"?n.toString():n)}};const dn=new cl,Yi=Object.freeze({status:"aborted"});function c(t,e,r){function o(u,s){var f;Object.defineProperty(u,"_zod",{value:u._zod??{},enumerable:!1}),(f=u._zod).traits??(f.traits=new Set),u._zod.traits.add(t),e(u,s);for(const p in a.prototype)p in u||Object.defineProperty(u,p,{value:a.prototype[p].bind(u)});u._zod.constr=a,u._zod.def=s}const n=r?.Parent??Object;class i extends n{}Object.defineProperty(i,"name",{value:t});function a(u){var s;const f=r?.Parent?new i:this;o(f,u),(s=f._zod).deferred??(s.deferred=[]);for(const p of f._zod.deferred)p();return f}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:u=>r?.Parent&&u instanceof r.Parent?!0:u?._zod?.traits?.has(t)}),Object.defineProperty(a,"name",{value:t}),a}const Xi=Symbol("zod_brand");class Ce extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const It={};function H(t){return t&&Object.assign(It,t),It}function ll(t){return t}function dl(t){return t}function fl(t){}function ml(t){throw new Error}function pl(t){}function Sn(t){const e=Object.values(t).filter(o=>typeof o=="number");return Object.entries(t).filter(([o,n])=>e.indexOf(+o)===-1).map(([o,n])=>n)}function b(t,e="|"){return t.map(r=>O(r)).join(e)}function Hi(t,e){return typeof e=="bigint"?e.toString():e}function Dt(t){return{get value(){{const e=t();return Object.defineProperty(this,"value",{value:e}),e}}}}function je(t){return t==null}function Pt(t){const e=t.startsWith("^")?1:0,r=t.endsWith("$")?t.length-1:t.length;return t.slice(e,r)}function Qi(t,e){const r=(t.toString().split(".")[1]||"").length,o=(e.toString().split(".")[1]||"").length,n=r>o?r:o,i=Number.parseInt(t.toFixed(n).replace(".","")),a=Number.parseInt(e.toFixed(n).replace(".",""));return i%a/10**n}function T(t,e,r){Object.defineProperty(t,e,{get(){{const o=r();return t[e]=o,o}},set(o){Object.defineProperty(t,e,{value:o})},configurable:!0})}function Fe(t,e,r){Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0})}function gl(t,e){return e?e.reduce((r,o)=>r?.[o],t):t}function hl(t){const e=Object.keys(t),r=e.map(o=>t[o]);return Promise.all(r).then(o=>{const n={};for(let i=0;i<e.length;i++)n[e[i]]=o[i];return n})}function vl(t=10){const e="abcdefghijklmnopqrstuvwxyz";let r="";for(let o=0;o<t;o++)r+=e[Math.floor(Math.random()*e.length)];return r}function Pe(t){return JSON.stringify(t)}const On=Error.captureStackTrace?Error.captureStackTrace:(...t)=>{};function tt(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}const eo=Dt(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function nt(t){if(tt(t)===!1)return!1;const e=t.constructor;if(e===void 0)return!0;const r=e.prototype;return!(tt(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function yl(t){let e=0;for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&e++;return e}const bl=t=>{const 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}`)}},kt=new Set(["string","number","symbol"]),to=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Ee(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function de(t,e,r){const o=new t._zod.constr(e??t._zod.def);return(!e||r?.parent)&&(o._zod.parent=t),o}function m(t){const 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 $l(t){let e;return new Proxy({},{get(r,o,n){return e??(e=t()),Reflect.get(e,o,n)},set(r,o,n,i){return e??(e=t()),Reflect.set(e,o,n,i)},has(r,o){return e??(e=t()),Reflect.has(e,o)},deleteProperty(r,o){return e??(e=t()),Reflect.deleteProperty(e,o)},ownKeys(r){return e??(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(r,o){return e??(e=t()),Reflect.getOwnPropertyDescriptor(e,o)},defineProperty(r,o,n){return e??(e=t()),Reflect.defineProperty(e,o,n)}})}function O(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function no(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}const ro={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]},io={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function oo(t,e){const r={},o=t._zod.def;for(const n in e){if(!(n in o.shape))throw new Error(`Unrecognized key: "${n}"`);e[n]&&(r[n]=o.shape[n])}return de(t,{...t._zod.def,shape:r,checks:[]})}function ao(t,e){const r={...t._zod.def.shape},o=t._zod.def;for(const n in e){if(!(n in o.shape))throw new Error(`Unrecognized key: "${n}"`);e[n]&&delete r[n]}return de(t,{...t._zod.def,shape:r,checks:[]})}function uo(t,e){if(!nt(e))throw new Error("Invalid input to extend: expected a plain object");const r={...t._zod.def,get shape(){const o={...t._zod.def.shape,...e};return Fe(this,"shape",o),o},checks:[]};return de(t,r)}function so(t,e){return de(t,{...t._zod.def,get shape(){const r={...t._zod.def.shape,...e._zod.def.shape};return Fe(this,"shape",r),r},catchall:e._zod.def.catchall,checks:[]})}function co(t,e,r){const o=e._zod.def.shape,n={...o};if(r)for(const i in r){if(!(i in o))throw new Error(`Unrecognized key: "${i}"`);r[i]&&(n[i]=t?new t({type:"optional",innerType:o[i]}):o[i])}else for(const i in o)n[i]=t?new t({type:"optional",innerType:o[i]}):o[i];return de(e,{...e._zod.def,shape:n,checks:[]})}function lo(t,e,r){const o=e._zod.def.shape,n={...o};if(r)for(const i in r){if(!(i in n))throw new Error(`Unrecognized key: "${i}"`);r[i]&&(n[i]=new t({type:"nonoptional",innerType:o[i]}))}else for(const i in o)n[i]=new t({type:"nonoptional",innerType:o[i]});return de(e,{...e._zod.def,shape:n,checks:[]})}function Ze(t,e=0){for(let r=e;r<t.issues.length;r++)if(t.issues[r]?.continue!==!0)return!0;return!1}function ne(t,e){return e.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(t),r})}function Ke(t){return typeof t=="string"?t:t?.message}function oe(t,e,r){const o={...t,path:t.path??[]};if(!t.message){const n=Ke(t.inst?._zod.def?.error?.(t))??Ke(e?.error?.(t))??Ke(r.customError?.(t))??Ke(r.localeError?.(t))??"Invalid input";o.message=n}return delete o.inst,delete o.continue,e?.reportInput||delete o.input,o}function At(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}function Zt(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function Re(...t){const[e,r,o]=t;return typeof e=="string"?{message:e,code:"custom",input:r,inst:o}:{...e}}function wl(t){return Object.entries(t).filter(([e,r])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}class _l{constructor(...e){}}const Il=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:io,Class:_l,NUMBER_FORMAT_RANGES:ro,aborted:Ze,allowsEval:eo,assert:pl,assertEqual:ll,assertIs:fl,assertNever:ml,assertNotEqual:dl,assignProp:Fe,cached:Dt,captureStackTrace:On,cleanEnum:wl,cleanRegex:Pt,clone:de,createTransparentProxy:$l,defineLazy:T,esc:Pe,escapeRegex:Ee,extend:uo,finalizeIssue:oe,floatSafeRemainder:Qi,getElementAtPath:gl,getEnumValues:Sn,getLengthableOrigin:Zt,getParsedType:bl,getSizableOrigin:At,isObject:tt,isPlainObject:nt,issue:Re,joinValues:b,jsonStringifyReplacer:Hi,merge:so,normalizeParams:m,nullish:je,numKeys:yl,omit:ao,optionalKeys:no,partial:co,pick:oo,prefixIssues:ne,primitiveTypes:to,promiseAllObject:hl,propertyKeyTypes:kt,randomString:vl,required:lo,stringifyPrimitive:O,unwrapMessage:Ke},Symbol.toStringTag,{value:"Module"})),fo=(t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),Object.defineProperty(t,"message",{get(){return JSON.stringify(e,Hi,2)},enumerable:!0}),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},zn=c("$ZodError",fo),st=c("$ZodError",fo,{Parent:Error});function xn(t,e=r=>r.message){const r={},o=[];for(const n of t.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(e(n))):o.push(e(n));return{formErrors:o,fieldErrors:r}}function Nn(t,e){const r=e||function(i){return i.message},o={_errors:[]},n=i=>{for(const a of i.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(u=>n({issues:u}));else if(a.code==="invalid_key")n({issues:a.issues});else if(a.code==="invalid_element")n({issues:a.issues});else if(a.path.length===0)o._errors.push(r(a));else{let u=o,s=0;for(;s<a.path.length;){const f=a.path[s];s===a.path.length-1?(u[f]=u[f]||{_errors:[]},u[f]._errors.push(r(a))):u[f]=u[f]||{_errors:[]},u=u[f],s++}}};return n(t),o}function mo(t,e){const r=e||function(i){return i.message},o={errors:[]},n=(i,a=[])=>{var u,s;for(const f of i.issues)if(f.code==="invalid_union"&&f.errors.length)f.errors.map(p=>n({issues:p},f.path));else if(f.code==="invalid_key")n({issues:f.issues},f.path);else if(f.code==="invalid_element")n({issues:f.issues},f.path);else{const p=[...a,...f.path];if(p.length===0){o.errors.push(r(f));continue}let l=o,h=0;for(;h<p.length;){const y=p[h],d=h===p.length-1;typeof y=="string"?(l.properties??(l.properties={}),(u=l.properties)[y]??(u[y]={errors:[]}),l=l.properties[y]):(l.items??(l.items=[]),(s=l.items)[y]??(s[y]={errors:[]}),l=l.items[y]),d&&l.errors.push(r(f)),h++}}};return n(t),o}function po(t){const e=[];for(const r of t)typeof r=="number"?e.push(`[${r}]`):typeof r=="symbol"?e.push(`[${JSON.stringify(String(r))}]`):/[^\w$]/.test(r)?e.push(`[${JSON.stringify(r)}]`):(e.length&&e.push("."),e.push(r));return e.join("")}function go(t){const e=[],r=[...t.issues].sort((o,n)=>o.path.length-n.path.length);for(const o of r)e.push(`✖ ${o.message}`),o.path?.length&&e.push(` → at ${po(o.path)}`);return e.join(`
2
+ `)}const Tn=t=>(e,r,o,n)=>{const i=o?Object.assign(o,{async:!1}):{async:!1},a=e._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new Ce;if(a.issues.length){const u=new(n?.Err??t)(a.issues.map(s=>oe(s,i,H())));throw On(u,n?.callee),u}return a.value},fn=Tn(st),Un=t=>async(e,r,o,n)=>{const i=o?Object.assign(o,{async:!0}):{async:!0};let a=e._zod.run({value:r,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){const u=new(n?.Err??t)(a.issues.map(s=>oe(s,i,H())));throw On(u,n?.callee),u}return a.value},mn=Un(st),jn=t=>(e,r,o)=>{const n=o?{...o,async:!1}:{async:!1},i=e._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new Ce;return i.issues.length?{success:!1,error:new(t??zn)(i.issues.map(a=>oe(a,n,H())))}:{success:!0,data:i.value}},ho=jn(st),En=t=>async(e,r,o)=>{const n=o?Object.assign(o,{async:!0}):{async:!0};let i=e._zod.run({value:r,issues:[]},n);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new t(i.issues.map(a=>oe(a,n,H())))}:{success:!0,data:i.value}},vo=En(st),yo=/^[cC][^\s-]{8,}$/,bo=/^[0-9a-z]+$/,$o=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,wo=/^[0-9a-vA-V]{20}$/,_o=/^[A-Za-z0-9]{27}$/,Io=/^[a-zA-Z0-9_-]{21}$/,ko=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,kl=/^[-+]?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)?)??$/,So=/^([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})$/,Le=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)$/,Sl=Le(4),Ol=Le(6),zl=Le(7),Oo=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,xl=/^[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])?)*$/,Nl=/^(([^<>()\[\]\\.,;:\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,}))$/,Tl=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Ul=/^[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])?)*$/,jl="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function zo(){return new RegExp(jl,"u")}const xo=/^(?:(?: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])$/,No=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,To=/^((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])$/,Uo=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,jo=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Dn=/^[A-Za-z0-9_-]*$/,Eo=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,El=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Do=/^\+(?:[0-9]){6,14}[0-9]$/,Po="(?:(?:\\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])))",Ao=new RegExp(`^${Po}$`);function Zo(t){const 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}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Mo(t){return new RegExp(`^${Zo(t)}$`)}function Co(t){const e=Zo({precision:t.precision}),r=["Z"];t.local&&r.push(""),t.offset&&r.push("([+-]\\d{2}:\\d{2})");const o=`${e}(?:${r.join("|")})`;return new RegExp(`^${Po}T(?:${o})$`)}const Ro=t=>{const e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},Lo=/^\d+n?$/,Wo=/^\d+$/,Bo=/^-?\d+(?:\.\d+)?/i,Fo=/true|false/i,Jo=/null/i,Vo=/undefined/i,Go=/^[^A-Z]*$/,qo=/^[^a-z]*$/,Ko=Object.freeze(Object.defineProperty({__proto__:null,base64:jo,base64url:Dn,bigint:Lo,boolean:Fo,browserEmail:Ul,cidrv4:To,cidrv6:Uo,cuid:yo,cuid2:bo,date:Ao,datetime:Co,domain:El,duration:ko,e164:Do,email:Oo,emoji:zo,extendedDuration:kl,guid:So,hostname:Eo,html5Email:xl,integer:Wo,ipv4:xo,ipv6:No,ksuid:_o,lowercase:Go,nanoid:Io,null:Jo,number:Bo,rfc5322Email:Nl,string:Ro,time:Mo,ulid:$o,undefined:Vo,unicodeEmail:Tl,uppercase:qo,uuid:Le,uuid4:Sl,uuid6:Ol,uuid7:zl,xid:wo},Symbol.toStringTag,{value:"Module"})),F=c("$ZodCheck",(t,e)=>{var r;t._zod??(t._zod={}),t._zod.def=e,(r=t._zod).onattach??(r.onattach=[])}),Yo={number:"number",bigint:"bigint",object:"date"},Pn=c("$ZodCheckLessThan",(t,e)=>{F.init(t,e);const r=Yo[typeof e.value];t._zod.onattach.push(o=>{const n=o._zod.bag,i=(e.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value<i&&(e.inclusive?n.maximum=e.value:n.exclusiveMaximum=e.value)}),t._zod.check=o=>{(e.inclusive?o.value<=e.value:o.value<e.value)||o.issues.push({origin:r,code:"too_big",maximum:e.value,input:o.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),An=c("$ZodCheckGreaterThan",(t,e)=>{F.init(t,e);const r=Yo[typeof e.value];t._zod.onattach.push(o=>{const n=o._zod.bag,i=(e.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>i&&(e.inclusive?n.minimum=e.value:n.exclusiveMinimum=e.value)}),t._zod.check=o=>{(e.inclusive?o.value>=e.value:o.value>e.value)||o.issues.push({origin:r,code:"too_small",minimum:e.value,input:o.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),Xo=c("$ZodCheckMultipleOf",(t,e)=>{F.init(t,e),t._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.multipleOf=e.value)}),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"?r.value%e.value===BigInt(0):Qi(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})}}),Ho=c("$ZodCheckNumberFormat",(t,e)=>{F.init(t,e),e.format=e.format||"float64";const r=e.format?.includes("int"),o=r?"int":"number",[n,i]=ro[e.format];t._zod.onattach.push(a=>{const u=a._zod.bag;u.format=e.format,u.minimum=n,u.maximum=i,r&&(u.pattern=Wo)}),t._zod.check=a=>{const u=a.value;if(r){if(!Number.isInteger(u)){a.issues.push({expected:o,format:e.format,code:"invalid_type",input:u,inst:t});return}if(!Number.isSafeInteger(u)){u>0?a.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:o,continue:!e.abort}):a.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:o,continue:!e.abort});return}}u<n&&a.issues.push({origin:"number",input:u,code:"too_small",minimum:n,inclusive:!0,inst:t,continue:!e.abort}),u>i&&a.issues.push({origin:"number",input:u,code:"too_big",maximum:i,inst:t})}}),Qo=c("$ZodCheckBigIntFormat",(t,e)=>{F.init(t,e);const[r,o]=io[e.format];t._zod.onattach.push(n=>{const i=n._zod.bag;i.format=e.format,i.minimum=r,i.maximum=o}),t._zod.check=n=>{const i=n.value;i<r&&n.issues.push({origin:"bigint",input:i,code:"too_small",minimum:r,inclusive:!0,inst:t,continue:!e.abort}),i>o&&n.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inst:t})}}),ea=c("$ZodCheckMaxSize",(t,e)=>{var r;F.init(t,e),(r=t._zod.def).when??(r.when=o=>{const n=o.value;return!je(n)&&n.size!==void 0}),t._zod.onattach.push(o=>{const n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<n&&(o._zod.bag.maximum=e.maximum)}),t._zod.check=o=>{const n=o.value;n.size<=e.maximum||o.issues.push({origin:At(n),code:"too_big",maximum:e.maximum,input:n,inst:t,continue:!e.abort})}}),ta=c("$ZodCheckMinSize",(t,e)=>{var r;F.init(t,e),(r=t._zod.def).when??(r.when=o=>{const n=o.value;return!je(n)&&n.size!==void 0}),t._zod.onattach.push(o=>{const n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>n&&(o._zod.bag.minimum=e.minimum)}),t._zod.check=o=>{const n=o.value;n.size>=e.minimum||o.issues.push({origin:At(n),code:"too_small",minimum:e.minimum,input:n,inst:t,continue:!e.abort})}}),na=c("$ZodCheckSizeEquals",(t,e)=>{var r;F.init(t,e),(r=t._zod.def).when??(r.when=o=>{const n=o.value;return!je(n)&&n.size!==void 0}),t._zod.onattach.push(o=>{const n=o._zod.bag;n.minimum=e.size,n.maximum=e.size,n.size=e.size}),t._zod.check=o=>{const n=o.value,i=n.size;if(i===e.size)return;const a=i>e.size;o.issues.push({origin:At(n),...a?{code:"too_big",maximum:e.size}:{code:"too_small",minimum:e.size},inclusive:!0,exact:!0,input:o.value,inst:t,continue:!e.abort})}}),ra=c("$ZodCheckMaxLength",(t,e)=>{var r;F.init(t,e),(r=t._zod.def).when??(r.when=o=>{const n=o.value;return!je(n)&&n.length!==void 0}),t._zod.onattach.push(o=>{const n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<n&&(o._zod.bag.maximum=e.maximum)}),t._zod.check=o=>{const n=o.value;if(n.length<=e.maximum)return;const a=Zt(n);o.issues.push({origin:a,code:"too_big",maximum:e.maximum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),ia=c("$ZodCheckMinLength",(t,e)=>{var r;F.init(t,e),(r=t._zod.def).when??(r.when=o=>{const n=o.value;return!je(n)&&n.length!==void 0}),t._zod.onattach.push(o=>{const n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>n&&(o._zod.bag.minimum=e.minimum)}),t._zod.check=o=>{const n=o.value;if(n.length>=e.minimum)return;const a=Zt(n);o.issues.push({origin:a,code:"too_small",minimum:e.minimum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),oa=c("$ZodCheckLengthEquals",(t,e)=>{var r;F.init(t,e),(r=t._zod.def).when??(r.when=o=>{const n=o.value;return!je(n)&&n.length!==void 0}),t._zod.onattach.push(o=>{const n=o._zod.bag;n.minimum=e.length,n.maximum=e.length,n.length=e.length}),t._zod.check=o=>{const n=o.value,i=n.length;if(i===e.length)return;const a=Zt(n),u=i>e.length;o.issues.push({origin:a,...u?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:o.value,inst:t,continue:!e.abort})}}),ct=c("$ZodCheckStringFormat",(t,e)=>{var r,o;F.init(t,e),t._zod.onattach.push(n=>{const i=n._zod.bag;i.format=e.format,e.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(e.pattern))}),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})}):(o=t._zod).check??(o.check=()=>{})}),aa=c("$ZodCheckRegex",(t,e)=>{ct.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})}}),ua=c("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=Go),ct.init(t,e)}),sa=c("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=qo),ct.init(t,e)}),ca=c("$ZodCheckIncludes",(t,e)=>{F.init(t,e);const r=Ee(e.includes),o=new RegExp(typeof e.position=="number"?`^.{${e.position}}${r}`:r);e.pattern=o,t._zod.onattach.push(n=>{const i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),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})}}),la=c("$ZodCheckStartsWith",(t,e)=>{F.init(t,e);const r=new RegExp(`^${Ee(e.prefix)}.*`);e.pattern??(e.pattern=r),t._zod.onattach.push(o=>{const n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),t._zod.check=o=>{o.value.startsWith(e.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:o.value,inst:t,continue:!e.abort})}}),da=c("$ZodCheckEndsWith",(t,e)=>{F.init(t,e);const r=new RegExp(`.*${Ee(e.suffix)}$`);e.pattern??(e.pattern=r),t._zod.onattach.push(o=>{const n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),t._zod.check=o=>{o.value.endsWith(e.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:o.value,inst:t,continue:!e.abort})}});function Si(t,e,r){t.issues.length&&e.issues.push(...ne(r,t.issues))}const fa=c("$ZodCheckProperty",(t,e)=>{F.init(t,e),t._zod.check=r=>{const o=e.schema._zod.run({value:r.value[e.property],issues:[]},{});if(o instanceof Promise)return o.then(n=>Si(n,r,e.property));Si(o,r,e.property)}}),ma=c("$ZodCheckMimeType",(t,e)=>{F.init(t,e);const r=new Set(e.mime);t._zod.onattach.push(o=>{o._zod.bag.mime=e.mime}),t._zod.check=o=>{r.has(o.value.type)||o.issues.push({code:"invalid_value",values:e.mime,input:o.value.type,inst:t})}}),pa=c("$ZodCheckOverwrite",(t,e)=>{F.init(t,e),t._zod.check=r=>{r.value=e.tx(r.value)}});class ga{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const o=e.split(`
3
3
  `).filter(a=>a),n=Math.min(...o.map(a=>a.length-a.trimStart().length)),i=o.map(a=>a.slice(n)).map(a=>" ".repeat(this.indent*2)+a);for(const a of i)this.content.push(a)}compile(){const e=Function,r=this?.args,n=[...(this?.content??[""]).map(i=>` ${i}`)];return new e(...r,n.join(`
4
- `))}}const ga={major:4,minor:0,patch:2},k=c("$ZodType",(t,e)=>{var r;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=ga;const o=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&o.unshift(t);for(const n of o)for(const i of n._zod.onattach)i(t);if(o.length===0)(r=t._zod).deferred??(r.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{const n=(i,a,u)=>{let s=Ae(i),f;for(const p of a){if(p._zod.def.when){if(!p._zod.def.when(i))continue}else if(s)continue;const l=i.issues.length,g=p._zod.check(i);if(g instanceof Promise&&u?.async===!1)throw new Me;if(f||g instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await g,i.issues.length!==l&&(s||(s=Ae(i,l)))});else{if(i.issues.length===l)continue;s||(s=Ae(i,l))}}return f?f.then(()=>i):i};t._zod.run=(i,a)=>{const u=t._zod.parse(i,a);if(u instanceof Promise){if(a.async===!1)throw new Me;return u.then(s=>n(s,o,a))}return n(u,o,a)}}t["~standard"]={validate:n=>{try{const i=go(t,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return ho(t,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}}),ct=c("$ZodString",(t,e)=>{k.init(t,e),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??Co(t._zod.bag),t._zod.parse=(r,o)=>{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}}),M=c("$ZodStringFormat",(t,e)=>{st.init(t,e),ct.init(t,e)}),ha=c("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=ko),M.init(t,e)}),va=c("$ZodUUID",(t,e)=>{if(e.version){const o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(o===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=Re(o))}else e.pattern??(e.pattern=Re());M.init(t,e)}),ya=c("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=So),M.init(t,e)}),ba=c("$ZodURL",(t,e)=>{M.init(t,e),t._zod.check=r=>{try{const o=r.value,n=new URL(o),i=n.href;e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:jo.source,input:r.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:r.value,inst:t,continue:!e.abort})),!o.endsWith("/")&&i.endsWith("/")?r.value=i.slice(0,-1):r.value=i;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:t,continue:!e.abort})}}}),$a=c("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=Oo()),M.init(t,e)}),wa=c("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=_o),M.init(t,e)}),_a=c("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=vo),M.init(t,e)}),Ia=c("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=yo),M.init(t,e)}),ka=c("$ZodULID",(t,e)=>{e.pattern??(e.pattern=bo),M.init(t,e)}),Sa=c("$ZodXID",(t,e)=>{e.pattern??(e.pattern=$o),M.init(t,e)}),Oa=c("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=wo),M.init(t,e)}),za=c("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=Mo(e)),M.init(t,e)}),xa=c("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=Po),M.init(t,e)}),Na=c("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=Zo(e)),M.init(t,e)}),Ta=c("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=Io),M.init(t,e)}),Ua=c("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=zo),M.init(t,e),t._zod.onattach.push(r=>{const o=r._zod.bag;o.format="ipv4"})}),ja=c("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=xo),M.init(t,e),t._zod.onattach.push(r=>{const o=r._zod.bag;o.format="ipv6"}),t._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:t,continue:!e.abort})}}}),Ea=c("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=No),M.init(t,e)}),Da=c("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=To),M.init(t,e),t._zod.check=r=>{const[o,n]=r.value.split("/");try{if(!n)throw new Error;const i=Number(n);if(`${i}`!==n)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${o}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:t,continue:!e.abort})}}});function An(t){if(t==="")return!0;if(t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}const Pa=c("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=Uo),M.init(t,e),t._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64"}),t._zod.check=r=>{An(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:t,continue:!e.abort})}});function Aa(t){if(!En.test(t))return!1;const e=t.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=e.padEnd(Math.ceil(e.length/4)*4,"=");return An(r)}const Za=c("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=En),M.init(t,e),t._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64url"}),t._zod.check=r=>{Aa(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:t,continue:!e.abort})}}),Ma=c("$ZodE164",(t,e)=>{e.pattern??(e.pattern=Eo),M.init(t,e)});function Ca(t,e=null){try{const r=t.split(".");if(r.length!==3)return!1;const[o]=r;if(!o)return!1;const n=JSON.parse(atob(o));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||e&&(!("alg"in n)||n.alg!==e))}catch{return!1}}const Ra=c("$ZodJWT",(t,e)=>{M.init(t,e),t._zod.check=r=>{Ca(r.value,e.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:t,continue:!e.abort})}}),La=c("$ZodCustomStringFormat",(t,e)=>{M.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})}}),Zn=c("$ZodNumber",(t,e)=>{k.init(t,e),t._zod.pattern=t._zod.bag.pattern??Wo,t._zod.parse=(r,o)=>{if(e.coerce)try{r.value=Number(r.value)}catch{}const n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;const i=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:t,...i?{received:i}:{}}),r}}),Wa=c("$ZodNumber",(t,e)=>{Xo.init(t,e),Zn.init(t,e)}),Mn=c("$ZodBoolean",(t,e)=>{k.init(t,e),t._zod.pattern=Bo,t._zod.parse=(r,o)=>{if(e.coerce)try{r.value=!!r.value}catch{}const n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:t}),r}}),Cn=c("$ZodBigInt",(t,e)=>{k.init(t,e),t._zod.pattern=Ro,t._zod.parse=(r,o)=>{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}}),Ba=c("$ZodBigInt",(t,e)=>{Ho.init(t,e),Cn.init(t,e)}),Fa=c("$ZodSymbol",(t,e)=>{k.init(t,e),t._zod.parse=(r,o)=>{const n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:t}),r}}),Ja=c("$ZodUndefined",(t,e)=>{k.init(t,e),t._zod.pattern=Jo,t._zod.values=new Set([void 0]),t._zod.optin="optional",t._zod.optout="optional",t._zod.parse=(r,o)=>{const n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:t}),r}}),Va=c("$ZodNull",(t,e)=>{k.init(t,e),t._zod.pattern=Fo,t._zod.values=new Set([null]),t._zod.parse=(r,o)=>{const n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:t}),r}}),Ga=c("$ZodAny",(t,e)=>{k.init(t,e),t._zod.parse=r=>r}),kt=c("$ZodUnknown",(t,e)=>{k.init(t,e),t._zod.parse=r=>r}),qa=c("$ZodNever",(t,e)=>{k.init(t,e),t._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:t}),r)}),Ka=c("$ZodVoid",(t,e)=>{k.init(t,e),t._zod.parse=(r,o)=>{const n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:t}),r}}),Ya=c("$ZodDate",(t,e)=>{k.init(t,e),t._zod.parse=(r,o)=>{if(e.coerce)try{r.value=new Date(r.value)}catch{}const n=r.value,i=n instanceof Date;return i&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...i?{received:"Invalid Date"}:{},inst:t}),r}});function Si(t,e,r){t.issues.length&&e.issues.push(...te(r,t.issues)),e.value[r]=t.value}const Rn=c("$ZodArray",(t,e)=>{k.init(t,e),t._zod.parse=(r,o)=>{const n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:t}),r;r.value=Array(n.length);const i=[];for(let a=0;a<n.length;a++){const u=n[a],s=e.element._zod.run({value:u,issues:[]},o);s instanceof Promise?i.push(s.then(f=>Si(f,r,a))):Si(s,r,a)}return i.length?Promise.all(i).then(()=>r):r}});function mt(t,e,r){t.issues.length&&e.issues.push(...te(r,t.issues)),e.value[r]=t.value}function Oi(t,e,r,o){t.issues.length?o[r]===void 0?r in o?e.value[r]=void 0:e.value[r]=t.value:e.issues.push(...te(r,t.issues)):t.value===void 0?r in o&&(e.value[r]=void 0):e.value[r]=t.value}const Xa=c("$ZodObject",(t,e)=>{k.init(t,e);const r=Et(()=>{const l=Object.keys(e.shape);for(const y of l)if(!(e.shape[y]instanceof k))throw new Error(`Invalid element at key "${y}": expected a Zod schema`);const g=to(e.shape);return{shape:e.shape,keys:l,keySet:new Set(l),numKeys:l.length,optionalKeys:new Set(g)}});N(t._zod,"propValues",()=>{const l=e.shape,g={};for(const y in l){const d=l[y]._zod;if(d.values){g[y]??(g[y]=new Set);for(const $ of d.values)g[y].add($)}}return g});const o=l=>{const g=new pa(["shape","payload","ctx"]),y=r.value,d=I=>{const S=De(I);return`shape[${S}]._zod.run({ value: input[${S}], issues: [] }, ctx)`};g.write("const input = payload.value;");const $=Object.create(null);let w=0;for(const I of y.keys)$[I]=`key_${w++}`;g.write("const newResult = {}");for(const I of y.keys)if(y.optionalKeys.has(I)){const S=$[I];g.write(`const ${S} = ${d(I)};`);const T=De(I);g.write(`
4
+ `))}}const ha={major:4,minor:0,patch:2},k=c("$ZodType",(t,e)=>{var r;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=ha;const o=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&o.unshift(t);for(const n of o)for(const i of n._zod.onattach)i(t);if(o.length===0)(r=t._zod).deferred??(r.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{const n=(i,a,u)=>{let s=Ze(i),f;for(const p of a){if(p._zod.def.when){if(!p._zod.def.when(i))continue}else if(s)continue;const l=i.issues.length,h=p._zod.check(i);if(h instanceof Promise&&u?.async===!1)throw new Ce;if(f||h instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await h,i.issues.length!==l&&(s||(s=Ze(i,l)))});else{if(i.issues.length===l)continue;s||(s=Ze(i,l))}}return f?f.then(()=>i):i};t._zod.run=(i,a)=>{const u=t._zod.parse(i,a);if(u instanceof Promise){if(a.async===!1)throw new Ce;return u.then(s=>n(s,o,a))}return n(u,o,a)}}t["~standard"]={validate:n=>{try{const i=ho(t,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return vo(t,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}}),lt=c("$ZodString",(t,e)=>{k.init(t,e),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??Ro(t._zod.bag),t._zod.parse=(r,o)=>{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}}),M=c("$ZodStringFormat",(t,e)=>{ct.init(t,e),lt.init(t,e)}),va=c("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=So),M.init(t,e)}),ya=c("$ZodUUID",(t,e)=>{if(e.version){const o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(o===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=Le(o))}else e.pattern??(e.pattern=Le());M.init(t,e)}),ba=c("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=Oo),M.init(t,e)}),$a=c("$ZodURL",(t,e)=>{M.init(t,e),t._zod.check=r=>{try{const o=r.value,n=new URL(o),i=n.href;e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:Eo.source,input:r.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:r.value,inst:t,continue:!e.abort})),!o.endsWith("/")&&i.endsWith("/")?r.value=i.slice(0,-1):r.value=i;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:t,continue:!e.abort})}}}),wa=c("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=zo()),M.init(t,e)}),_a=c("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=Io),M.init(t,e)}),Ia=c("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=yo),M.init(t,e)}),ka=c("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=bo),M.init(t,e)}),Sa=c("$ZodULID",(t,e)=>{e.pattern??(e.pattern=$o),M.init(t,e)}),Oa=c("$ZodXID",(t,e)=>{e.pattern??(e.pattern=wo),M.init(t,e)}),za=c("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=_o),M.init(t,e)}),xa=c("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=Co(e)),M.init(t,e)}),Na=c("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=Ao),M.init(t,e)}),Ta=c("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=Mo(e)),M.init(t,e)}),Ua=c("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=ko),M.init(t,e)}),ja=c("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=xo),M.init(t,e),t._zod.onattach.push(r=>{const o=r._zod.bag;o.format="ipv4"})}),Ea=c("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=No),M.init(t,e),t._zod.onattach.push(r=>{const o=r._zod.bag;o.format="ipv6"}),t._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:t,continue:!e.abort})}}}),Da=c("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=To),M.init(t,e)}),Pa=c("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=Uo),M.init(t,e),t._zod.check=r=>{const[o,n]=r.value.split("/");try{if(!n)throw new Error;const i=Number(n);if(`${i}`!==n)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${o}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:t,continue:!e.abort})}}});function Zn(t){if(t==="")return!0;if(t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}const Aa=c("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=jo),M.init(t,e),t._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64"}),t._zod.check=r=>{Zn(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:t,continue:!e.abort})}});function Za(t){if(!Dn.test(t))return!1;const e=t.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=e.padEnd(Math.ceil(e.length/4)*4,"=");return Zn(r)}const Ma=c("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=Dn),M.init(t,e),t._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64url"}),t._zod.check=r=>{Za(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:t,continue:!e.abort})}}),Ca=c("$ZodE164",(t,e)=>{e.pattern??(e.pattern=Do),M.init(t,e)});function Ra(t,e=null){try{const r=t.split(".");if(r.length!==3)return!1;const[o]=r;if(!o)return!1;const n=JSON.parse(atob(o));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||e&&(!("alg"in n)||n.alg!==e))}catch{return!1}}const La=c("$ZodJWT",(t,e)=>{M.init(t,e),t._zod.check=r=>{Ra(r.value,e.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:t,continue:!e.abort})}}),Wa=c("$ZodCustomStringFormat",(t,e)=>{M.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})}}),Mn=c("$ZodNumber",(t,e)=>{k.init(t,e),t._zod.pattern=t._zod.bag.pattern??Bo,t._zod.parse=(r,o)=>{if(e.coerce)try{r.value=Number(r.value)}catch{}const n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;const i=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:t,...i?{received:i}:{}}),r}}),Ba=c("$ZodNumber",(t,e)=>{Ho.init(t,e),Mn.init(t,e)}),Cn=c("$ZodBoolean",(t,e)=>{k.init(t,e),t._zod.pattern=Fo,t._zod.parse=(r,o)=>{if(e.coerce)try{r.value=!!r.value}catch{}const n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:t}),r}}),Rn=c("$ZodBigInt",(t,e)=>{k.init(t,e),t._zod.pattern=Lo,t._zod.parse=(r,o)=>{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}}),Fa=c("$ZodBigInt",(t,e)=>{Qo.init(t,e),Rn.init(t,e)}),Ja=c("$ZodSymbol",(t,e)=>{k.init(t,e),t._zod.parse=(r,o)=>{const n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:t}),r}}),Va=c("$ZodUndefined",(t,e)=>{k.init(t,e),t._zod.pattern=Vo,t._zod.values=new Set([void 0]),t._zod.optin="optional",t._zod.optout="optional",t._zod.parse=(r,o)=>{const n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:t}),r}}),Ga=c("$ZodNull",(t,e)=>{k.init(t,e),t._zod.pattern=Jo,t._zod.values=new Set([null]),t._zod.parse=(r,o)=>{const n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:t}),r}}),qa=c("$ZodAny",(t,e)=>{k.init(t,e),t._zod.parse=r=>r}),St=c("$ZodUnknown",(t,e)=>{k.init(t,e),t._zod.parse=r=>r}),Ka=c("$ZodNever",(t,e)=>{k.init(t,e),t._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:t}),r)}),Ya=c("$ZodVoid",(t,e)=>{k.init(t,e),t._zod.parse=(r,o)=>{const n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:t}),r}}),Xa=c("$ZodDate",(t,e)=>{k.init(t,e),t._zod.parse=(r,o)=>{if(e.coerce)try{r.value=new Date(r.value)}catch{}const n=r.value,i=n instanceof Date;return i&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...i?{received:"Invalid Date"}:{},inst:t}),r}});function Oi(t,e,r){t.issues.length&&e.issues.push(...ne(r,t.issues)),e.value[r]=t.value}const Ln=c("$ZodArray",(t,e)=>{k.init(t,e),t._zod.parse=(r,o)=>{const n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:t}),r;r.value=Array(n.length);const i=[];for(let a=0;a<n.length;a++){const u=n[a],s=e.element._zod.run({value:u,issues:[]},o);s instanceof Promise?i.push(s.then(f=>Oi(f,r,a))):Oi(s,r,a)}return i.length?Promise.all(i).then(()=>r):r}});function pt(t,e,r){t.issues.length&&e.issues.push(...ne(r,t.issues)),e.value[r]=t.value}function zi(t,e,r,o){t.issues.length?o[r]===void 0?r in o?e.value[r]=void 0:e.value[r]=t.value:e.issues.push(...ne(r,t.issues)):t.value===void 0?r in o&&(e.value[r]=void 0):e.value[r]=t.value}const Ha=c("$ZodObject",(t,e)=>{k.init(t,e);const r=Dt(()=>{const l=Object.keys(e.shape);for(const y of l)if(!(e.shape[y]instanceof k))throw new Error(`Invalid element at key "${y}": expected a Zod schema`);const h=no(e.shape);return{shape:e.shape,keys:l,keySet:new Set(l),numKeys:l.length,optionalKeys:new Set(h)}});T(t._zod,"propValues",()=>{const l=e.shape,h={};for(const y in l){const d=l[y]._zod;if(d.values){h[y]??(h[y]=new Set);for(const $ of d.values)h[y].add($)}}return h});const o=l=>{const h=new ga(["shape","payload","ctx"]),y=r.value,d=I=>{const S=Pe(I);return`shape[${S}]._zod.run({ value: input[${S}], issues: [] }, ctx)`};h.write("const input = payload.value;");const $=Object.create(null);let w=0;for(const I of y.keys)$[I]=`key_${w++}`;h.write("const newResult = {}");for(const I of y.keys)if(y.optionalKeys.has(I)){const S=$[I];h.write(`const ${S} = ${d(I)};`);const U=Pe(I);h.write(`
5
5
  if (${S}.issues.length) {
6
- if (input[${T}] === undefined) {
7
- if (${T} in input) {
8
- newResult[${T}] = undefined;
6
+ if (input[${U}] === undefined) {
7
+ if (${U} in input) {
8
+ newResult[${U}] = undefined;
9
9
  }
10
10
  } else {
11
11
  payload.issues = payload.issues.concat(
12
12
  ${S}.issues.map((iss) => ({
13
13
  ...iss,
14
- path: iss.path ? [${T}, ...iss.path] : [${T}],
14
+ path: iss.path ? [${U}, ...iss.path] : [${U}],
15
15
  }))
16
16
  );
17
17
  }
18
18
  } else if (${S}.value === undefined) {
19
- if (${T} in input) newResult[${T}] = undefined;
19
+ if (${U} in input) newResult[${U}] = undefined;
20
20
  } else {
21
- newResult[${T}] = ${S}.value;
21
+ newResult[${U}] = ${S}.value;
22
22
  }
23
- `)}else{const S=$[I];g.write(`const ${S} = ${d(I)};`),g.write(`
23
+ `)}else{const S=$[I];h.write(`const ${S} = ${d(I)};`),h.write(`
24
24
  if (${S}.issues.length) payload.issues = payload.issues.concat(${S}.issues.map(iss => ({
25
25
  ...iss,
26
- path: iss.path ? [${De(I)}, ...iss.path] : [${De(I)}]
27
- })));`),g.write(`newResult[${De(I)}] = ${S}.value`)}g.write("payload.value = newResult;"),g.write("return payload;");const D=g.compile();return(I,S)=>D(l,I,S)};let n;const i=et,a=!_t.jitless,s=a&&Qi.value,f=e.catchall;let p;t._zod.parse=(l,g)=>{p??(p=r.value);const y=l.value;if(!i(y))return l.issues.push({expected:"object",code:"invalid_type",input:y,inst:t}),l;const d=[];if(a&&s&&g?.async===!1&&g.jitless!==!0)n||(n=o(e.shape)),l=n(l,g);else{l.value={};const S=p.shape;for(const T of p.keys){const _e=S[T],ft=_e._zod.run({value:y[T],issues:[]},g),$i=_e._zod.optin==="optional"&&_e._zod.optout==="optional";ft instanceof Promise?d.push(ft.then(wi=>$i?Oi(wi,l,T,y):mt(wi,l,T))):$i?Oi(ft,l,T,y):mt(ft,l,T)}}if(!f)return d.length?Promise.all(d).then(()=>l):l;const $=[],w=p.keySet,D=f._zod,I=D.def.type;for(const S of Object.keys(y)){if(w.has(S))continue;if(I==="never"){$.push(S);continue}const T=D.run({value:y[S],issues:[]},g);T instanceof Promise?d.push(T.then(_e=>mt(_e,l,S))):mt(T,l,S)}return $.length&&l.issues.push({code:"unrecognized_keys",keys:$,input:y,inst:t}),d.length?Promise.all(d).then(()=>l):l}});function zi(t,e,r,o){for(const n of t)if(n.issues.length===0)return e.value=n.value,e;return e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(n=>n.issues.map(i=>re(i,o,Y())))}),e}const Ln=c("$ZodUnion",(t,e)=>{k.init(t,e),N(t._zod,"optin",()=>e.options.some(r=>r._zod.optin==="optional")?"optional":void 0),N(t._zod,"optout",()=>e.options.some(r=>r._zod.optout==="optional")?"optional":void 0),N(t._zod,"values",()=>{if(e.options.every(r=>r._zod.values))return new Set(e.options.flatMap(r=>Array.from(r._zod.values)))}),N(t._zod,"pattern",()=>{if(e.options.every(r=>r._zod.pattern)){const r=e.options.map(o=>o._zod.pattern);return new RegExp(`^(${r.map(o=>Dt(o.source)).join("|")})$`)}}),t._zod.parse=(r,o)=>{let n=!1;const i=[];for(const a of e.options){const u=a._zod.run({value:r.value,issues:[]},o);if(u instanceof Promise)i.push(u),n=!0;else{if(u.issues.length===0)return u;i.push(u)}}return n?Promise.all(i).then(a=>zi(a,r,t,o)):zi(i,r,t,o)}}),Ha=c("$ZodDiscriminatedUnion",(t,e)=>{Ln.init(t,e);const r=t._zod.parse;N(t._zod,"propValues",()=>{const n={};for(const i of e.options){const a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(i)}"`);for(const[u,s]of Object.entries(a)){n[u]||(n[u]=new Set);for(const f of s)n[u].add(f)}}return n});const o=Et(()=>{const n=e.options,i=new Map;for(const a of n){const u=a._zod.propValues[e.discriminator];if(!u||u.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(a)}"`);for(const s of u){if(i.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);i.set(s,a)}}return i});t._zod.parse=(n,i)=>{const a=n.value;if(!et(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:t}),n;const u=o.value.get(a?.[e.discriminator]);return u?u._zod.run(n,i):e.unionFallback?r(n,i):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:a,path:[e.discriminator],inst:t}),n)}}),Qa=c("$ZodIntersection",(t,e)=>{k.init(t,e),t._zod.parse=(r,o)=>{const n=r.value,i=e.left._zod.run({value:n,issues:[]},o),a=e.right._zod.run({value:n,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([s,f])=>xi(r,s,f)):xi(r,i,a)}});function mn(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(tt(t)&&tt(e)){const r=Object.keys(e),o=Object.keys(t).filter(i=>r.indexOf(i)!==-1),n={...t,...e};for(const i of o){const a=mn(t[i],e[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n[i]=a.data}return{valid:!0,data:n}}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let o=0;o<t.length;o++){const n=t[o],i=e[o],a=mn(n,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function xi(t,e,r){if(e.issues.length&&t.issues.push(...e.issues),r.issues.length&&t.issues.push(...r.issues),Ae(t))return t;const o=mn(e.value,r.value);if(!o.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return t.value=o.data,t}const Zt=c("$ZodTuple",(t,e)=>{k.init(t,e);const r=e.items,o=r.length-[...r].reverse().findIndex(n=>n._zod.optin!=="optional");t._zod.parse=(n,i)=>{const a=n.value;if(!Array.isArray(a))return n.issues.push({input:a,inst:t,expected:"tuple",code:"invalid_type"}),n;n.value=[];const u=[];if(!e.rest){const f=a.length>r.length,p=a.length<o-1;if(f||p)return n.issues.push({input:a,inst:t,origin:"array",...f?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length}}),n}let s=-1;for(const f of r){if(s++,s>=a.length&&s>=o)continue;const p=f._zod.run({value:a[s],issues:[]},i);p instanceof Promise?u.push(p.then(l=>pt(l,n,s))):pt(p,n,s)}if(e.rest){const f=a.slice(r.length);for(const p of f){s++;const l=e.rest._zod.run({value:p,issues:[]},i);l instanceof Promise?u.push(l.then(g=>pt(g,n,s))):pt(l,n,s)}}return u.length?Promise.all(u).then(()=>n):n}});function pt(t,e,r){t.issues.length&&e.issues.push(...te(r,t.issues)),e.value[r]=t.value}const eu=c("$ZodRecord",(t,e)=>{k.init(t,e),t._zod.parse=(r,o)=>{const n=r.value;if(!tt(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:t}),r;const i=[];if(e.keyType._zod.values){const a=e.keyType._zod.values;r.value={};for(const s of a)if(typeof s=="string"||typeof s=="number"||typeof s=="symbol"){const f=e.valueType._zod.run({value:n[s],issues:[]},o);f instanceof Promise?i.push(f.then(p=>{p.issues.length&&r.issues.push(...te(s,p.issues)),r.value[s]=p.value})):(f.issues.length&&r.issues.push(...te(s,f.issues)),r.value[s]=f.value)}let u;for(const s in n)a.has(s)||(u=u??[],u.push(s));u&&u.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:t,keys:u})}else{r.value={};for(const a of Reflect.ownKeys(n)){if(a==="__proto__")continue;const u=e.keyType._zod.run({value:a,issues:[]},o);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(u.issues.length){r.issues.push({origin:"record",code:"invalid_key",issues:u.issues.map(f=>re(f,o,Y())),input:a,path:[a],inst:t}),r.value[u.value]=u.value;continue}const s=e.valueType._zod.run({value:n[a],issues:[]},o);s instanceof Promise?i.push(s.then(f=>{f.issues.length&&r.issues.push(...te(a,f.issues)),r.value[u.value]=f.value})):(s.issues.length&&r.issues.push(...te(a,s.issues)),r.value[u.value]=s.value)}}return i.length?Promise.all(i).then(()=>r):r}}),tu=c("$ZodMap",(t,e)=>{k.init(t,e),t._zod.parse=(r,o)=>{const n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:t}),r;const i=[];r.value=new Map;for(const[a,u]of n){const s=e.keyType._zod.run({value:a,issues:[]},o),f=e.valueType._zod.run({value:u,issues:[]},o);s instanceof Promise||f instanceof Promise?i.push(Promise.all([s,f]).then(([p,l])=>{Ni(p,l,r,a,n,t,o)})):Ni(s,f,r,a,n,t,o)}return i.length?Promise.all(i).then(()=>r):r}});function Ni(t,e,r,o,n,i,a){t.issues.length&&(It.has(typeof o)?r.issues.push(...te(o,t.issues)):r.issues.push({origin:"map",code:"invalid_key",input:n,inst:i,issues:t.issues.map(u=>re(u,a,Y()))})),e.issues.length&&(It.has(typeof o)?r.issues.push(...te(o,e.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:i,key:o,issues:e.issues.map(u=>re(u,a,Y()))})),r.value.set(t.value,e.value)}const nu=c("$ZodSet",(t,e)=>{k.init(t,e),t._zod.parse=(r,o)=>{const n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:t,expected:"set",code:"invalid_type"}),r;const i=[];r.value=new Set;for(const a of n){const u=e.valueType._zod.run({value:a,issues:[]},o);u instanceof Promise?i.push(u.then(s=>Ti(s,r))):Ti(u,r)}return i.length?Promise.all(i).then(()=>r):r}});function Ti(t,e){t.issues.length&&e.issues.push(...t.issues),e.value.add(t.value)}const ru=c("$ZodEnum",(t,e)=>{k.init(t,e);const r=kn(e.entries);t._zod.values=new Set(r),t._zod.pattern=new RegExp(`^(${r.filter(o=>It.has(typeof o)).map(o=>typeof o=="string"?je(o):o.toString()).join("|")})$`),t._zod.parse=(o,n)=>{const i=o.value;return t._zod.values.has(i)||o.issues.push({code:"invalid_value",values:r,input:i,inst:t}),o}}),iu=c("$ZodLiteral",(t,e)=>{k.init(t,e),t._zod.values=new Set(e.values),t._zod.pattern=new RegExp(`^(${e.values.map(r=>typeof r=="string"?je(r):r?r.toString():String(r)).join("|")})$`),t._zod.parse=(r,o)=>{const n=r.value;return t._zod.values.has(n)||r.issues.push({code:"invalid_value",values:e.values,input:n,inst:t}),r}}),ou=c("$ZodFile",(t,e)=>{k.init(t,e),t._zod.parse=(r,o)=>{const n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:t}),r}}),Wn=c("$ZodTransform",(t,e)=>{k.init(t,e),t._zod.parse=(r,o)=>{const n=e.transform(r.value,r);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then(a=>(r.value=a,r));if(n instanceof Promise)throw new Me;return r.value=n,r}}),au=c("$ZodOptional",(t,e)=>{k.init(t,e),t._zod.optin="optional",t._zod.optout="optional",N(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),N(t._zod,"pattern",()=>{const r=e.innerType._zod.pattern;return r?new RegExp(`^(${Dt(r.source)})?$`):void 0}),t._zod.parse=(r,o)=>e.innerType._zod.optin==="optional"?e.innerType._zod.run(r,o):r.value===void 0?r:e.innerType._zod.run(r,o)}),uu=c("$ZodNullable",(t,e)=>{k.init(t,e),N(t._zod,"optin",()=>e.innerType._zod.optin),N(t._zod,"optout",()=>e.innerType._zod.optout),N(t._zod,"pattern",()=>{const r=e.innerType._zod.pattern;return r?new RegExp(`^(${Dt(r.source)}|null)$`):void 0}),N(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(r,o)=>r.value===null?r:e.innerType._zod.run(r,o)}),su=c("$ZodDefault",(t,e)=>{k.init(t,e),t._zod.optin="optional",N(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,o)=>{if(r.value===void 0)return r.value=e.defaultValue,r;const n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>Ui(i,e)):Ui(n,e)}});function Ui(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}const cu=c("$ZodPrefault",(t,e)=>{k.init(t,e),t._zod.optin="optional",N(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,o)=>(r.value===void 0&&(r.value=e.defaultValue),e.innerType._zod.run(r,o))}),lu=c("$ZodNonOptional",(t,e)=>{k.init(t,e),N(t._zod,"values",()=>{const r=e.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),t._zod.parse=(r,o)=>{const n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>ji(i,t)):ji(n,t)}});function ji(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}const du=c("$ZodSuccess",(t,e)=>{k.init(t,e),t._zod.parse=(r,o)=>{const n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),fu=c("$ZodCatch",(t,e)=>{k.init(t,e),t._zod.optin="optional",N(t._zod,"optout",()=>e.innerType._zod.optout),N(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,o)=>{const n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.value,i.issues.length&&(r.value=e.catchValue({...r,error:{issues:i.issues.map(a=>re(a,o,Y()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=e.catchValue({...r,error:{issues:n.issues.map(i=>re(i,o,Y()))},input:r.value}),r.issues=[]),r)}}),mu=c("$ZodNaN",(t,e)=>{k.init(t,e),t._zod.parse=(r,o)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:t,expected:"nan",code:"invalid_type"}),r)}),Bn=c("$ZodPipe",(t,e)=>{k.init(t,e),N(t._zod,"values",()=>e.in._zod.values),N(t._zod,"optin",()=>e.in._zod.optin),N(t._zod,"optout",()=>e.out._zod.optout),t._zod.parse=(r,o)=>{const n=e.in._zod.run(r,o);return n instanceof Promise?n.then(i=>Ei(i,e,o)):Ei(n,e,o)}});function Ei(t,e,r){return Ae(t)?t:e.out._zod.run({value:t.value,issues:t.issues},r)}const pu=c("$ZodReadonly",(t,e)=>{k.init(t,e),N(t._zod,"propValues",()=>e.innerType._zod.propValues),N(t._zod,"values",()=>e.innerType._zod.values),N(t._zod,"optin",()=>e.innerType._zod.optin),N(t._zod,"optout",()=>e.innerType._zod.optout),t._zod.parse=(r,o)=>{const n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(Di):Di(n)}});function Di(t){return t.value=Object.freeze(t.value),t}const gu=c("$ZodTemplateLiteral",(t,e)=>{k.init(t,e);const r=[];for(const o of e.parts)if(o instanceof k){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);const n=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${o._zod.traits}`);const i=n.startsWith("^")?1:0,a=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(i,a))}else if(o===null||eo.has(typeof o))r.push(je(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);t._zod.pattern=new RegExp(`^${r.join("")}$`),t._zod.parse=(o,n)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:t,expected:"template_literal",code:"invalid_type"}),o):(t._zod.pattern.lastIndex=0,t._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:t,code:"invalid_format",format:e.format??"template_literal",pattern:t._zod.pattern.source}),o)}),hu=c("$ZodPromise",(t,e)=>{k.init(t,e),t._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>e.innerType._zod.run({value:n,issues:[]},o))}),vu=c("$ZodLazy",(t,e)=>{k.init(t,e),N(t._zod,"innerType",()=>e.getter()),N(t._zod,"pattern",()=>t._zod.innerType._zod.pattern),N(t._zod,"propValues",()=>t._zod.innerType._zod.propValues),N(t._zod,"optin",()=>t._zod.innerType._zod.optin),N(t._zod,"optout",()=>t._zod.innerType._zod.optout),t._zod.parse=(r,o)=>t._zod.innerType._zod.run(r,o)}),yu=c("$ZodCustom",(t,e)=>{F.init(t,e),k.init(t,e),t._zod.parse=(r,o)=>r,t._zod.check=r=>{const o=r.value,n=e.fn(o);if(n instanceof Promise)return n.then(i=>Pi(i,r,o,t));Pi(n,r,o,t)}});function Pi(t,e,r,o){if(!t){const n={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(n.params=o._zod.def.params),e.issues.push(Ce(n))}}const jl=()=>{const t={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"};return n=>{switch(n.code){case"invalid_type":return`مدخلات غير مقبولة: يفترض إدخال ${n.expected}، ولكن تم إدخال ${r(n.input)}`;case"invalid_value":return n.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${O(n.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?` أكبر من اللازم: يفترض أن تكون ${n.origin??"القيمة"} ${i} ${n.maximum.toString()} ${a.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${n.origin??"القيمة"} ${i} ${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${i} ${n.minimum.toString()} ${a.unit}`:`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${i} ${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${n.prefix}"`:i.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${i.suffix}"`:i.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${i.includes}"`:i.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${i.pattern}`:`${o[i.format]??n.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${n.divisor}`;case"unrecognized_keys":return`معرف${n.keys.length>1?"ات":""} غريب${n.keys.length>1?"ة":""}: ${b(n.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${n.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${n.origin}`;default:return"مدخل غير مقبول"}}};function El(){return{localeError:jl()}}const Dl=()=>{const t={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return n=>{switch(n.code){case"invalid_type":return`Yanlış dəyər: gözlənilən ${n.expected}, daxil olan ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Yanlış dəyər: gözlənilən ${O(n.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Çox böyük: gözlənilən ${n.origin??"dəyər"} ${i}${n.maximum.toString()} ${a.unit??"element"}`:`Çox böyük: gözlənilən ${n.origin??"dəyər"} ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Çox kiçik: gözlənilən ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`Çox kiçik: gözlənilən ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Yanlış mətn: "${i.prefix}" ilə başlamalıdır`:i.format==="ends_with"?`Yanlış mətn: "${i.suffix}" ilə bitməlidir`:i.format==="includes"?`Yanlış mətn: "${i.includes}" daxil olmalıdır`:i.format==="regex"?`Yanlış mətn: ${i.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${o[i.format]??n.format}`}case"not_multiple_of":return`Yanlış ədəd: ${n.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${n.keys.length>1?"lar":""}: ${b(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${n.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function Pl(){return{localeError:Dl()}}function Ai(t,e,r,o){const n=Math.abs(t),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?e:i>=2&&i<=4?r:o}const Al=()=>{const t={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"лік";case"object":{if(Array.isArray(n))return"масіў";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"};return n=>{switch(n.code){case"invalid_type":return`Няправільны ўвод: чакаўся ${n.expected}, атрымана ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Няправільны ўвод: чакалася ${O(n.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);if(a){const u=Number(n.maximum),s=Ai(u,a.unit.one,a.unit.few,a.unit.many);return`Занадта вялікі: чакалася, што ${n.origin??"значэнне"} павінна ${a.verb} ${i}${n.maximum.toString()} ${s}`}return`Занадта вялікі: чакалася, што ${n.origin??"значэнне"} павінна быць ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);if(a){const u=Number(n.minimum),s=Ai(u,a.unit.one,a.unit.few,a.unit.many);return`Занадта малы: чакалася, што ${n.origin} павінна ${a.verb} ${i}${n.minimum.toString()} ${s}`}return`Занадта малы: чакалася, што ${n.origin} павінна быць ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${i.prefix}"`:i.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${i.suffix}"`:i.format==="includes"?`Няправільны радок: павінен змяшчаць "${i.includes}"`:i.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${i.pattern}`:`Няправільны ${o[i.format]??n.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${n.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${n.keys.length>1?"ключы":"ключ"}: ${b(n.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${n.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${n.origin}`;default:return"Няправільны ўвод"}}};function Zl(){return{localeError:Al()}}const Ml=()=>{const t={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"entrada",email:"adreça electrònica",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ça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return n=>{switch(n.code){case"invalid_type":return`Tipus invàlid: s'esperava ${n.expected}, s'ha rebut ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Valor invàlid: s'esperava ${O(n.values[0])}`:`Opció invàlida: s'esperava una de ${b(n.values," o ")}`;case"too_big":{const i=n.inclusive?"com a màxim":"menys de",a=e(n.origin);return a?`Massa gran: s'esperava que ${n.origin??"el valor"} contingués ${i} ${n.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${i} ${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?"com a mínim":"més de",a=e(n.origin);return a?`Massa petit: s'esperava que ${n.origin} contingués ${i} ${n.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${i} ${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Format invàlid: ha de començar amb "${i.prefix}"`:i.format==="ends_with"?`Format invàlid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format invàlid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${i.pattern}`:`Format invàlid per a ${o[i.format]??n.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${b(n.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${n.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${n.origin}`;default:return"Entrada invàlida"}}};function Cl(){return{localeError:Ml()}}const Rl=()=>{const t={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"číslo";case"string":return"řetězec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(n))return"pole";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"};return n=>{switch(n.code){case"invalid_type":return`Neplatný vstup: očekáváno ${n.expected}, obdrženo ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Neplatný vstup: očekáváno ${O(n.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Hodnota je příliš velká: ${n.origin??"hodnota"} musí mít ${i}${n.maximum.toString()} ${a.unit??"prvků"}`:`Hodnota je příliš velká: ${n.origin??"hodnota"} musí být ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Hodnota je příliš malá: ${n.origin??"hodnota"} musí mít ${i}${n.minimum.toString()} ${a.unit??"prvků"}`:`Hodnota je příliš malá: ${n.origin??"hodnota"} musí být ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Neplatný řetězec: musí začínat na "${i.prefix}"`:i.format==="ends_with"?`Neplatný řetězec: musí končit na "${i.suffix}"`:i.format==="includes"?`Neplatný řetězec: musí obsahovat "${i.includes}"`:i.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${i.pattern}`:`Neplatný formát ${o[i.format]??n.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${n.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${b(n.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${n.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${n.origin}`;default:return"Neplatný vstup"}}};function Ll(){return{localeError:Rl()}}const Wl=()=>{const 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"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"Zahl";case"object":{if(Array.isArray(n))return"Array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return n=>{switch(n.code){case"invalid_type":return`Ungültige Eingabe: erwartet ${n.expected}, erhalten ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ungültige Eingabe: erwartet ${O(n.values[0])}`:`Ungültige Option: erwartet eine von ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Zu groß: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ist`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ist`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Ungültiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ungültiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ungültiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ungültiger String: muss dem Muster ${i.pattern} entsprechen`:`Ungültig: ${o[i.format]??n.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${b(n.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${n.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${n.origin}`;default:return"Ungültige Eingabe"}}};function Bl(){return{localeError:Wl()}}const Fl=t=>{const e=typeof t;switch(e){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return e},Jl=()=>{const 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"}};function e(o){return t[o]??null}const 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",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return o=>{switch(o.code){case"invalid_type":return`Invalid input: expected ${o.expected}, received ${Fl(o.input)}`;case"invalid_value":return o.values.length===1?`Invalid input: expected ${O(o.values[0])}`:`Invalid option: expected one of ${b(o.values,"|")}`;case"too_big":{const n=o.inclusive?"<=":"<",i=e(o.origin);return i?`Too big: expected ${o.origin??"value"} to have ${n}${o.maximum.toString()} ${i.unit??"elements"}`:`Too big: expected ${o.origin??"value"} to be ${n}${o.maximum.toString()}`}case"too_small":{const n=o.inclusive?">=":">",i=e(o.origin);return i?`Too small: expected ${o.origin} to have ${n}${o.minimum.toString()} ${i.unit}`:`Too small: expected ${o.origin} to be ${n}${o.minimum.toString()}`}case"invalid_format":{const n=o;return n.format==="starts_with"?`Invalid string: must start with "${n.prefix}"`:n.format==="ends_with"?`Invalid string: must end with "${n.suffix}"`:n.format==="includes"?`Invalid string: must include "${n.includes}"`:n.format==="regex"?`Invalid string: must match pattern ${n.pattern}`:`Invalid ${r[n.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":""}: ${b(o.keys,", ")}`;case"invalid_key":return`Invalid key in ${o.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${o.origin}`;default:return"Invalid input"}}};function bu(){return{localeError:Jl()}}const Vl=t=>{const e=typeof t;switch(e){case"number":return Number.isNaN(t)?"NaN":"nombro";case"object":{if(Array.isArray(t))return"tabelo";if(t===null)return"senvalora";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return e},Gl=()=>{const t={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function e(o){return t[o]??null}const r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"};return o=>{switch(o.code){case"invalid_type":return`Nevalida enigo: atendiĝis ${o.expected}, riceviĝis ${Vl(o.input)}`;case"invalid_value":return o.values.length===1?`Nevalida enigo: atendiĝis ${O(o.values[0])}`:`Nevalida opcio: atendiĝis unu el ${b(o.values,"|")}`;case"too_big":{const n=o.inclusive?"<=":"<",i=e(o.origin);return i?`Tro granda: atendiĝis ke ${o.origin??"valoro"} havu ${n}${o.maximum.toString()} ${i.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${o.origin??"valoro"} havu ${n}${o.maximum.toString()}`}case"too_small":{const n=o.inclusive?">=":">",i=e(o.origin);return i?`Tro malgranda: atendiĝis ke ${o.origin} havu ${n}${o.minimum.toString()} ${i.unit}`:`Tro malgranda: atendiĝis ke ${o.origin} estu ${n}${o.minimum.toString()}`}case"invalid_format":{const n=o;return n.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${n.prefix}"`:n.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${n.suffix}"`:n.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${n.includes}"`:n.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${n.pattern}`:`Nevalida ${r[n.format]??o.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${o.divisor}`;case"unrecognized_keys":return`Nekonata${o.keys.length>1?"j":""} ŝlosilo${o.keys.length>1?"j":""}: ${b(o.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${o.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${o.origin}`;default:return"Nevalida enigo"}}};function ql(){return{localeError:Gl()}}const Kl=()=>{const 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}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"número";case"object":{if(Array.isArray(n))return"arreglo";if(n===null)return"nulo";if(Object.getPrototypeOf(n)!==Object.prototype)return n.constructor.name}}return i},o={regex:"entrada",email:"dirección de correo electrónico",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ón ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return n=>{switch(n.code){case"invalid_type":return`Entrada inválida: se esperaba ${n.expected}, recibido ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Entrada inválida: se esperaba ${O(n.values[0])}`:`Opción inválida: se esperaba una de ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Demasiado grande: se esperaba que ${n.origin??"valor"} tuviera ${i}${n.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${n.origin??"valor"} fuera ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Demasiado pequeño: se esperaba que ${n.origin} tuviera ${i}${n.minimum.toString()} ${a.unit}`:`Demasiado pequeño: se esperaba que ${n.origin} fuera ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Cadena inválida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inválida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inválida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${i.pattern}`:`Inválido ${o[i.format]??n.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${b(n.keys,", ")}`;case"invalid_key":return`Llave inválida en ${n.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${n.origin}`;default:return"Entrada inválida"}}};function Yl(){return{localeError:Kl()}}const Xl=()=>{const t={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"عدد";case"object":{if(Array.isArray(n))return"آرایه";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"};return n=>{switch(n.code){case"invalid_type":return`ورودی نامعتبر: می‌بایست ${n.expected} می‌بود، ${r(n.input)} دریافت شد`;case"invalid_value":return n.values.length===1?`ورودی نامعتبر: می‌بایست ${O(n.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${b(n.values,"|")} می‌بود`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`خیلی بزرگ: ${n.origin??"مقدار"} باید ${i}${n.maximum.toString()} ${a.unit??"عنصر"} باشد`:`خیلی بزرگ: ${n.origin??"مقدار"} باید ${i}${n.maximum.toString()} باشد`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`خیلی کوچک: ${n.origin} باید ${i}${n.minimum.toString()} ${a.unit} باشد`:`خیلی کوچک: ${n.origin} باید ${i}${n.minimum.toString()} باشد`}case"invalid_format":{const i=n;return i.format==="starts_with"?`رشته نامعتبر: باید با "${i.prefix}" شروع شود`:i.format==="ends_with"?`رشته نامعتبر: باید با "${i.suffix}" تمام شود`:i.format==="includes"?`رشته نامعتبر: باید شامل "${i.includes}" باشد`:i.format==="regex"?`رشته نامعتبر: باید با الگوی ${i.pattern} مطابقت داشته باشد`:`${o[i.format]??n.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${n.divisor} باشد`;case"unrecognized_keys":return`کلید${n.keys.length>1?"های":""} ناشناس: ${b(n.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${n.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${n.origin}`;default:return"ورودی نامعتبر"}}};function Hl(){return{localeError:Xl()}}const Ql=()=>{const t={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"säännöllinen lauseke",email:"sähköpostiosoite",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äivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return n=>{switch(n.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${n.expected}, oli ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Virheellinen syöte: täytyy olla ${O(n.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Liian suuri: ${a.subject} täytyy olla ${i}${n.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon täytyy olla ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Liian pieni: ${a.subject} täytyy olla ${i}${n.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon täytyy olla ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen syöte: täytyy sisältää "${i.includes}"`:i.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${i.pattern}`:`Virheellinen ${o[i.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${b(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öte"}}};function ed(){return{localeError:Ql()}}const td=()=>{const t={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"nombre";case"object":{if(Array.isArray(n))return"tableau";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"entrée",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ée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return n=>{switch(n.code){case"invalid_type":return`Entrée invalide : ${n.expected} attendu, ${r(n.input)} reçu`;case"invalid_value":return n.values.length===1?`Entrée invalide : ${O(n.values[0])} attendu`:`Option invalide : une valeur parmi ${b(n.values,"|")} attendue`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Trop grand : ${n.origin??"valeur"} doit ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"élément(s)"}`:`Trop grand : ${n.origin??"valeur"} doit être ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Trop petit : ${n.origin} doit ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Trop petit : ${n.origin} doit être ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Chaîne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Chaîne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Chaîne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Chaîne invalide : doit correspondre au modèle ${i.pattern}`:`${o[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${n.divisor}`;case"unrecognized_keys":return`Clé${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${b(n.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${n.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entrée invalide"}}};function nd(){return{localeError:td()}}const rd=()=>{const t={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"entrée",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ée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return n=>{switch(n.code){case"invalid_type":return`Entrée invalide : attendu ${n.expected}, reçu ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Entrée invalide : attendu ${O(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"≤":"<",a=e(n.origin);return a?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${i}${n.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?"≥":">",a=e(n.origin);return a?`Trop petit : attendu que ${n.origin} ait ${i}${n.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${n.origin} soit ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Chaîne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Chaîne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Chaîne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Chaîne invalide : doit correspondre au motif ${i.pattern}`:`${o[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${n.divisor}`;case"unrecognized_keys":return`Clé${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${b(n.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${n.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entrée invalide"}}};function id(){return{localeError:rd()}}const od=()=>{const t={string:{unit:"אותיות",verb:"לכלול"},file:{unit:"בייטים",verb:"לכלול"},array:{unit:"פריטים",verb:"לכלול"},set:{unit:"פריטים",verb:"לכלול"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"קלט",email:"כתובת אימייל",url:"כתובת רשת",emoji:"אימוג'י",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"תאריך וזמן ISO",date:"תאריך ISO",time:"זמן ISO",duration:"משך זמן ISO",ipv4:"כתובת IPv4",ipv6:"כתובת IPv6",cidrv4:"טווח IPv4",cidrv6:"טווח IPv6",base64:"מחרוזת בבסיס 64",base64url:"מחרוזת בבסיס 64 לכתובות רשת",json_string:"מחרוזת JSON",e164:"מספר E.164",jwt:"JWT",template_literal:"קלט"};return n=>{switch(n.code){case"invalid_type":return`קלט לא תקין: צריך ${n.expected}, התקבל ${r(n.input)}`;case"invalid_value":return n.values.length===1?`קלט לא תקין: צריך ${O(n.values[0])}`:`קלט לא תקין: צריך אחת מהאפשרויות ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`גדול מדי: ${n.origin??"value"} צריך להיות ${i}${n.maximum.toString()} ${a.unit??"elements"}`:`גדול מדי: ${n.origin??"value"} צריך להיות ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`קטן מדי: ${n.origin} צריך להיות ${i}${n.minimum.toString()} ${a.unit}`:`קטן מדי: ${n.origin} צריך להיות ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`מחרוזת לא תקינה: חייבת להתחיל ב"${i.prefix}"`:i.format==="ends_with"?`מחרוזת לא תקינה: חייבת להסתיים ב "${i.suffix}"`:i.format==="includes"?`מחרוזת לא תקינה: חייבת לכלול "${i.includes}"`:i.format==="regex"?`מחרוזת לא תקינה: חייבת להתאים לתבנית ${i.pattern}`:`${o[i.format]??n.format} לא תקין`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${n.divisor}`;case"unrecognized_keys":return`מפתח${n.keys.length>1?"ות":""} לא מזוה${n.keys.length>1?"ים":"ה"}: ${b(n.keys,", ")}`;case"invalid_key":return`מפתח לא תקין ב${n.origin}`;case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${n.origin}`;default:return"קלט לא תקין"}}};function ad(){return{localeError:od()}}const ud=()=>{const t={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"szám";case"object":{if(Array.isArray(n))return"tömb";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"};return n=>{switch(n.code){case"invalid_type":return`Érvénytelen bemenet: a várt érték ${n.expected}, a kapott érték ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Érvénytelen bemenet: a várt érték ${O(n.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Túl nagy: ${n.origin??"érték"} mérete túl nagy ${i}${n.maximum.toString()} ${a.unit??"elem"}`:`Túl nagy: a bemeneti érték ${n.origin??"érték"} túl nagy: ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Túl kicsi: a bemeneti érték ${n.origin} mérete túl kicsi ${i}${n.minimum.toString()} ${a.unit}`:`Túl kicsi: a bemeneti érték ${n.origin} túl kicsi ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Érvénytelen string: "${i.prefix}" értékkel kell kezdődnie`:i.format==="ends_with"?`Érvénytelen string: "${i.suffix}" értékkel kell végződnie`:i.format==="includes"?`Érvénytelen string: "${i.includes}" értéket kell tartalmaznia`:i.format==="regex"?`Érvénytelen string: ${i.pattern} mintának kell megfelelnie`:`Érvénytelen ${o[i.format]??n.format}`}case"not_multiple_of":return`Érvénytelen szám: ${n.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${b(n.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${n.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${n.origin}`;default:return"Érvénytelen bemenet"}}};function sd(){return{localeError:ud()}}const cd=()=>{const t={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"};return n=>{switch(n.code){case"invalid_type":return`Input tidak valid: diharapkan ${n.expected}, diterima ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${O(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${i}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Terlalu kecil: diharapkan ${n.origin} memiliki ${i}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${o[i.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":""}: ${b(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 ld(){return{localeError:cd()}}const dd=()=>{const t={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"numero";case"object":{if(Array.isArray(n))return"vettore";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return n=>{switch(n.code){case"invalid_type":return`Input non valido: atteso ${n.expected}, ricevuto ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Input non valido: atteso ${O(n.values[0])}`:`Opzione non valida: atteso uno tra ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Troppo grande: ${n.origin??"valore"} deve avere ${i}${n.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Troppo piccolo: ${n.origin} deve avere ${i}${n.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${n.origin} deve essere ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Invalid ${o[i.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"}: ${b(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 fd(){return{localeError:dd()}}const md=()=>{const t={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"数値";case"object":{if(Array.isArray(n))return"配列";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"};return n=>{switch(n.code){case"invalid_type":return`無効な入力: ${n.expected}が期待されましたが、${r(n.input)}が入力されました`;case"invalid_value":return n.values.length===1?`無効な入力: ${O(n.values[0])}が期待されました`:`無効な選択: ${b(n.values,"、")}のいずれかである必要があります`;case"too_big":{const i=n.inclusive?"以下である":"より小さい",a=e(n.origin);return a?`大きすぎる値: ${n.origin??"値"}は${n.maximum.toString()}${a.unit??"要素"}${i}必要があります`:`大きすぎる値: ${n.origin??"値"}は${n.maximum.toString()}${i}必要があります`}case"too_small":{const i=n.inclusive?"以上である":"より大きい",a=e(n.origin);return a?`小さすぎる値: ${n.origin}は${n.minimum.toString()}${a.unit}${i}必要があります`:`小さすぎる値: ${n.origin}は${n.minimum.toString()}${i}必要があります`}case"invalid_format":{const i=n;return i.format==="starts_with"?`無効な文字列: "${i.prefix}"で始まる必要があります`:i.format==="ends_with"?`無効な文字列: "${i.suffix}"で終わる必要があります`:i.format==="includes"?`無効な文字列: "${i.includes}"を含む必要があります`:i.format==="regex"?`無効な文字列: パターン${i.pattern}に一致する必要があります`:`無効な${o[i.format]??n.format}`}case"not_multiple_of":return`無効な数値: ${n.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${n.keys.length>1?"群":""}: ${b(n.keys,"、")}`;case"invalid_key":return`${n.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${n.origin}内の無効な値`;default:return"無効な入力"}}};function pd(){return{localeError:md()}}const gd=()=>{const t={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"មិនមែនជាលេខ (NaN)":"លេខ";case"object":{if(Array.isArray(n))return"អារេ (Array)";if(n===null)return"គ្មានតម្លៃ (null)";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"};return n=>{switch(n.code){case"invalid_type":return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${n.expected} ប៉ុន្តែទទួលបាន ${r(n.input)}`;case"invalid_value":return n.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${O(n.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`ធំពេក៖ ត្រូវការ ${n.origin??"តម្លៃ"} ${i} ${n.maximum.toString()} ${a.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${n.origin??"តម្លៃ"} ${i} ${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`តូចពេក៖ ត្រូវការ ${n.origin} ${i} ${n.minimum.toString()} ${a.unit}`:`តូចពេក៖ ត្រូវការ ${n.origin} ${i} ${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${i.prefix}"`:i.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${i.suffix}"`:i.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${i.includes}"`:i.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${i.pattern}`:`មិនត្រឹមត្រូវ៖ ${o[i.format]??n.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${n.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${b(n.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function hd(){return{localeError:gd()}}const vd=()=>{const t={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"};return n=>{switch(n.code){case"invalid_type":return`잘못된 입력: 예상 타입은 ${n.expected}, 받은 타입은 ${r(n.input)}입니다`;case"invalid_value":return n.values.length===1?`잘못된 입력: 값은 ${O(n.values[0])} 이어야 합니다`:`잘못된 옵션: ${b(n.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const i=n.inclusive?"이하":"미만",a=i==="미만"?"이어야 합니다":"여야 합니다",u=e(n.origin),s=u?.unit??"요소";return u?`${n.origin??"값"}이 너무 큽니다: ${n.maximum.toString()}${s} ${i}${a}`:`${n.origin??"값"}이 너무 큽니다: ${n.maximum.toString()} ${i}${a}`}case"too_small":{const i=n.inclusive?"이상":"초과",a=i==="이상"?"이어야 합니다":"여야 합니다",u=e(n.origin),s=u?.unit??"요소";return u?`${n.origin??"값"}이 너무 작습니다: ${n.minimum.toString()}${s} ${i}${a}`:`${n.origin??"값"}이 너무 작습니다: ${n.minimum.toString()} ${i}${a}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`잘못된 문자열: "${i.prefix}"(으)로 시작해야 합니다`:i.format==="ends_with"?`잘못된 문자열: "${i.suffix}"(으)로 끝나야 합니다`:i.format==="includes"?`잘못된 문자열: "${i.includes}"을(를) 포함해야 합니다`:i.format==="regex"?`잘못된 문자열: 정규식 ${i.pattern} 패턴과 일치해야 합니다`:`잘못된 ${o[i.format]??n.format}`}case"not_multiple_of":return`잘못된 숫자: ${n.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${b(n.keys,", ")}`;case"invalid_key":return`잘못된 키: ${n.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${n.origin}`;default:return"잘못된 입력"}}};function yd(){return{localeError:vd()}}const bd=()=>{const t={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"број";case"object":{if(Array.isArray(n))return"низа";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"};return n=>{switch(n.code){case"invalid_type":return`Грешен внес: се очекува ${n.expected}, примено ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Invalid input: expected ${O(n.values[0])}`:`Грешана опција: се очекува една ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Премногу голем: се очекува ${n.origin??"вредноста"} да има ${i}${n.maximum.toString()} ${a.unit??"елементи"}`:`Премногу голем: се очекува ${n.origin??"вредноста"} да биде ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Премногу мал: се очекува ${n.origin} да има ${i}${n.minimum.toString()} ${a.unit}`:`Премногу мал: се очекува ${n.origin} да биде ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Неважечка низа: мора да започнува со "${i.prefix}"`:i.format==="ends_with"?`Неважечка низа: мора да завршува со "${i.suffix}"`:i.format==="includes"?`Неважечка низа: мора да вклучува "${i.includes}"`:i.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${i.pattern}`:`Invalid ${o[i.format]??n.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${b(n.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${n.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${n.origin}`;default:return"Грешен внес"}}};function $d(){return{localeError:bd()}}const wd=()=>{const t={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"nombor";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return n=>{switch(n.code){case"invalid_type":return`Input tidak sah: dijangka ${n.expected}, diterima ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${O(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Terlalu besar: dijangka ${n.origin??"nilai"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Terlalu kecil: dijangka ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${o[i.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${b(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 _d(){return{localeError:wd()}}const Id=()=>{const t={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"getal";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return n=>{switch(n.code){case"invalid_type":return`Ongeldige invoer: verwacht ${n.expected}, ontving ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${O(n.values[0])}`:`Ongeldige optie: verwacht één van ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Te lang: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} ${a.unit??"elementen"} bevat`:`Te lang: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} is`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Te kort: verwacht dat ${n.origin} ${i}${n.minimum.toString()} ${a.unit} bevat`:`Te kort: verwacht dat ${n.origin} ${i}${n.minimum.toString()} is`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${o[i.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":""}: ${b(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 kd(){return{localeError:Id()}}const Sd=()=>{const t={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"tall";case"object":{if(Array.isArray(n))return"liste";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return n=>{switch(n.code){case"invalid_type":return`Ugyldig input: forventet ${n.expected}, fikk ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${O(n.values[0])}`:`Ugyldig valg: forventet en av ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`For stor(t): forventet ${n.origin??"value"} til å ha ${i}${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til å ha ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`For lite(n): forventet ${n.origin} til å ha ${i}${n.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${n.origin} til å ha ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Ugyldig streng: må starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: må ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: må inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: må matche mønsteret ${i.pattern}`:`Ugyldig ${o[i.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${b(n.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function Od(){return{localeError:Sd()}}const zd=()=>{const t={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"numara";case"object":{if(Array.isArray(n))return"saf";if(n===null)return"gayb";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"giren",email:"epostagâh",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âmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"};return n=>{switch(n.code){case"invalid_type":return`Fâsit giren: umulan ${n.expected}, alınan ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Fâsit giren: umulan ${O(n.values[0])}`:`Fâsit tercih: mûteberler ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Fazla büyük: ${n.origin??"value"}, ${i}${n.maximum.toString()} ${a.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${n.origin??"value"}, ${i}${n.maximum.toString()} olmalıydı.`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Fazla küçük: ${n.origin}, ${i}${n.minimum.toString()} ${a.unit} sahip olmalıydı.`:`Fazla küçük: ${n.origin}, ${i}${n.minimum.toString()} olmalıydı.`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Fâsit metin: "${i.prefix}" ile başlamalı.`:i.format==="ends_with"?`Fâsit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`Fâsit metin: "${i.includes}" ihtivâ etmeli.`:i.format==="regex"?`Fâsit metin: ${i.pattern} nakşına uymalı.`:`Fâsit ${o[i.format]??n.format}`}case"not_multiple_of":return`Fâsit sayı: ${n.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${n.keys.length>1?"s":""}: ${b(n.keys,", ")}`;case"invalid_key":return`${n.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${n.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function xd(){return{localeError:zd()}}const Nd=()=>{const t={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"عدد";case"object":{if(Array.isArray(n))return"ارې";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"};return n=>{switch(n.code){case"invalid_type":return`ناسم ورودي: باید ${n.expected} وای, مګر ${r(n.input)} ترلاسه شو`;case"invalid_value":return n.values.length===1?`ناسم ورودي: باید ${O(n.values[0])} وای`:`ناسم انتخاب: باید یو له ${b(n.values,"|")} څخه وای`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`ډیر لوی: ${n.origin??"ارزښت"} باید ${i}${n.maximum.toString()} ${a.unit??"عنصرونه"} ولري`:`ډیر لوی: ${n.origin??"ارزښت"} باید ${i}${n.maximum.toString()} وي`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`ډیر کوچنی: ${n.origin} باید ${i}${n.minimum.toString()} ${a.unit} ولري`:`ډیر کوچنی: ${n.origin} باید ${i}${n.minimum.toString()} وي`}case"invalid_format":{const i=n;return i.format==="starts_with"?`ناسم متن: باید د "${i.prefix}" سره پیل شي`:i.format==="ends_with"?`ناسم متن: باید د "${i.suffix}" سره پای ته ورسيږي`:i.format==="includes"?`ناسم متن: باید "${i.includes}" ولري`:i.format==="regex"?`ناسم متن: باید د ${i.pattern} سره مطابقت ولري`:`${o[i.format]??n.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${n.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${n.keys.length>1?"کلیډونه":"کلیډ"}: ${b(n.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${n.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${n.origin} کې`;default:return"ناسمه ورودي"}}};function Td(){return{localeError:Nd()}}const Ud=()=>{const t={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"liczba";case"object":{if(Array.isArray(n))return"tablica";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"};return n=>{switch(n.code){case"invalid_type":return`Nieprawidłowe dane wejściowe: oczekiwano ${n.expected}, otrzymano ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${O(n.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Za duża wartość: oczekiwano, że ${n.origin??"wartość"} będzie mieć ${i}${n.maximum.toString()} ${a.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${n.origin??"wartość"} będzie wynosić ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Za mała wartość: oczekiwano, że ${n.origin??"wartość"} będzie mieć ${i}${n.minimum.toString()} ${a.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${n.origin??"wartość"} będzie wynosić ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${i.prefix}"`:i.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${i.suffix}"`:i.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${i.includes}"`:i.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${i.pattern}`:`Nieprawidłow(y/a/e) ${o[i.format]??n.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${b(n.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${n.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${n.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function jd(){return{localeError:Ud()}}const Ed=()=>{const t={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"número";case"object":{if(Array.isArray(n))return"array";if(n===null)return"nulo";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return n=>{switch(n.code){case"invalid_type":return`Tipo inválido: esperado ${n.expected}, recebido ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Entrada inválida: esperado ${O(n.values[0])}`:`Opção inválida: esperada uma das ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${i}${n.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Muito pequeno: esperado que ${n.origin} tivesse ${i}${n.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Texto inválido: deve começar com "${i.prefix}"`:i.format==="ends_with"?`Texto inválido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inválido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inválido: deve corresponder ao padrão ${i.pattern}`:`${o[i.format]??n.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${b(n.keys,", ")}`;case"invalid_key":return`Chave inválida em ${n.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${n.origin}`;default:return"Campo inválido"}}};function Dd(){return{localeError:Ed()}}function Zi(t,e,r,o){const n=Math.abs(t),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?e:i>=2&&i<=4?r:o}const Pd=()=>{const t={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"число";case"object":{if(Array.isArray(n))return"массив";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"};return n=>{switch(n.code){case"invalid_type":return`Неверный ввод: ожидалось ${n.expected}, получено ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Неверный ввод: ожидалось ${O(n.values[0])}`:`Неверный вариант: ожидалось одно из ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);if(a){const u=Number(n.maximum),s=Zi(u,a.unit.one,a.unit.few,a.unit.many);return`Слишком большое значение: ожидалось, что ${n.origin??"значение"} будет иметь ${i}${n.maximum.toString()} ${s}`}return`Слишком большое значение: ожидалось, что ${n.origin??"значение"} будет ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);if(a){const u=Number(n.minimum),s=Zi(u,a.unit.one,a.unit.few,a.unit.many);return`Слишком маленькое значение: ожидалось, что ${n.origin} будет иметь ${i}${n.minimum.toString()} ${s}`}return`Слишком маленькое значение: ожидалось, что ${n.origin} будет ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Неверная строка: должна начинаться с "${i.prefix}"`:i.format==="ends_with"?`Неверная строка: должна заканчиваться на "${i.suffix}"`:i.format==="includes"?`Неверная строка: должна содержать "${i.includes}"`:i.format==="regex"?`Неверная строка: должна соответствовать шаблону ${i.pattern}`:`Неверный ${o[i.format]??n.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${n.divisor}`;case"unrecognized_keys":return`Нераспознанн${n.keys.length>1?"ые":"ый"} ключ${n.keys.length>1?"и":""}: ${b(n.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${n.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${n.origin}`;default:return"Неверные входные данные"}}};function Ad(){return{localeError:Pd()}}const Zd=()=>{const t={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"število";case"object":{if(Array.isArray(n))return"tabela";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"};return n=>{switch(n.code){case"invalid_type":return`Neveljaven vnos: pričakovano ${n.expected}, prejeto ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Neveljaven vnos: pričakovano ${O(n.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Preveliko: pričakovano, da bo ${n.origin??"vrednost"} imelo ${i}${n.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${n.origin??"vrednost"} ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Premajhno: pričakovano, da bo ${n.origin} imelo ${i}${n.minimum.toString()} ${a.unit}`:`Premajhno: pričakovano, da bo ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Neveljaven niz: mora se začeti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se končati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${o[i.format]??n.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i ključi":" ključ"}: ${b(n.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function Md(){return{localeError:Zd()}}const Cd=()=>{const t={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"antal";case"object":{if(Array.isArray(n))return"lista";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return n=>{switch(n.code){case"invalid_type":return`Ogiltig inmatning: förväntat ${n.expected}, fick ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ogiltig inmatning: förväntat ${O(n.values[0])}`:`Ogiltigt val: förväntade en av ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`För stor(t): förväntade ${n.origin??"värdet"} att ha ${i}${n.maximum.toString()} ${a.unit??"element"}`:`För stor(t): förväntat ${n.origin??"värdet"} att ha ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`För lite(t): förväntade ${n.origin??"värdet"} att ha ${i}${n.minimum.toString()} ${a.unit}`:`För lite(t): förväntade ${n.origin??"värdet"} att ha ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Ogiltig sträng: måste börja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig sträng: måste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig sträng: måste innehålla "${i.includes}"`:i.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${i.pattern}"`:`Ogiltig(t) ${o[i.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${b(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${n.origin??"värdet"}`;default:return"Ogiltig input"}}};function Rd(){return{localeError:Cd()}}const Ld=()=>{const t={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"எண் அல்லாதது":"எண்";case"object":{if(Array.isArray(n))return"அணி";if(n===null)return"வெறுமை";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"};return n=>{switch(n.code){case"invalid_type":return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${n.expected}, பெறப்பட்டது ${r(n.input)}`;case"invalid_value":return n.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${O(n.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${b(n.values,"|")} இல் ஒன்று`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??"மதிப்பு"} ${i}${n.maximum.toString()} ${a.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??"மதிப்பு"} ${i}${n.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${i}${n.minimum.toString()} ${a.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${i}${n.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const i=n;return i.format==="starts_with"?`தவறான சரம்: "${i.prefix}" இல் தொடங்க வேண்டும்`:i.format==="ends_with"?`தவறான சரம்: "${i.suffix}" இல் முடிவடைய வேண்டும்`:i.format==="includes"?`தவறான சரம்: "${i.includes}" ஐ உள்ளடக்க வேண்டும்`:i.format==="regex"?`தவறான சரம்: ${i.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${o[i.format]??n.format}`}case"not_multiple_of":return`தவறான எண்: ${n.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${n.keys.length>1?"கள்":""}: ${b(n.keys,", ")}`;case"invalid_key":return`${n.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${n.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function Wd(){return{localeError:Ld()}}const Bd=()=>{const t={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"ไม่ใช่ตัวเลข (NaN)":"ตัวเลข";case"object":{if(Array.isArray(n))return"อาร์เรย์ (Array)";if(n===null)return"ไม่มีค่า (null)";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"};return n=>{switch(n.code){case"invalid_type":return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${n.expected} แต่ได้รับ ${r(n.input)}`;case"invalid_value":return n.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${O(n.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"ไม่เกิน":"น้อยกว่า",a=e(n.origin);return a?`เกินกำหนด: ${n.origin??"ค่า"} ควรมี${i} ${n.maximum.toString()} ${a.unit??"รายการ"}`:`เกินกำหนด: ${n.origin??"ค่า"} ควรมี${i} ${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?"อย่างน้อย":"มากกว่า",a=e(n.origin);return a?`น้อยกว่ากำหนด: ${n.origin} ควรมี${i} ${n.minimum.toString()} ${a.unit}`:`น้อยกว่ากำหนด: ${n.origin} ควรมี${i} ${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${i.prefix}"`:i.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${i.suffix}"`:i.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${i.includes}" อยู่ในข้อความ`:i.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${i.pattern}`:`รูปแบบไม่ถูกต้อง: ${o[i.format]??n.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${n.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${b(n.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${n.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${n.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function Fd(){return{localeError:Bd()}}const Jd=t=>{const e=typeof t;switch(e){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return e},Vd=()=>{const t={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function e(o){return t[o]??null}const 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üre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"};return o=>{switch(o.code){case"invalid_type":return`Geçersiz değer: beklenen ${o.expected}, alınan ${Jd(o.input)}`;case"invalid_value":return o.values.length===1?`Geçersiz değer: beklenen ${O(o.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${b(o.values,"|")}`;case"too_big":{const n=o.inclusive?"<=":"<",i=e(o.origin);return i?`Çok büyük: beklenen ${o.origin??"değer"} ${n}${o.maximum.toString()} ${i.unit??"öğe"}`:`Çok büyük: beklenen ${o.origin??"değer"} ${n}${o.maximum.toString()}`}case"too_small":{const n=o.inclusive?">=":">",i=e(o.origin);return i?`Çok küçük: beklenen ${o.origin} ${n}${o.minimum.toString()} ${i.unit}`:`Çok küçük: beklenen ${o.origin} ${n}${o.minimum.toString()}`}case"invalid_format":{const n=o;return n.format==="starts_with"?`Geçersiz metin: "${n.prefix}" ile başlamalı`:n.format==="ends_with"?`Geçersiz metin: "${n.suffix}" ile bitmeli`:n.format==="includes"?`Geçersiz metin: "${n.includes}" içermeli`:n.format==="regex"?`Geçersiz metin: ${n.pattern} desenine uymalı`:`Geçersiz ${r[n.format]??o.format}`}case"not_multiple_of":return`Geçersiz sayı: ${o.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${o.keys.length>1?"lar":""}: ${b(o.keys,", ")}`;case"invalid_key":return`${o.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${o.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function Gd(){return{localeError:Vd()}}const qd=()=>{const t={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"число";case"object":{if(Array.isArray(n))return"масив";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"};return n=>{switch(n.code){case"invalid_type":return`Неправильні вхідні дані: очікується ${n.expected}, отримано ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Неправильні вхідні дані: очікується ${O(n.values[0])}`:`Неправильна опція: очікується одне з ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Занадто велике: очікується, що ${n.origin??"значення"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"елементів"}`:`Занадто велике: очікується, що ${n.origin??"значення"} буде ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Занадто мале: очікується, що ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Занадто мале: очікується, що ${n.origin} буде ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Неправильний рядок: повинен починатися з "${i.prefix}"`:i.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${i.suffix}"`:i.format==="includes"?`Неправильний рядок: повинен містити "${i.includes}"`:i.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${i.pattern}`:`Неправильний ${o[i.format]??n.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${n.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${n.keys.length>1?"і":""}: ${b(n.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${n.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${n.origin}`;default:return"Неправильні вхідні дані"}}};function Kd(){return{localeError:qd()}}const Yd=()=>{const t={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"نمبر";case"object":{if(Array.isArray(n))return"آرے";if(n===null)return"نل";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"};return n=>{switch(n.code){case"invalid_type":return`غلط ان پٹ: ${n.expected} متوقع تھا، ${r(n.input)} موصول ہوا`;case"invalid_value":return n.values.length===1?`غلط ان پٹ: ${O(n.values[0])} متوقع تھا`:`غلط آپشن: ${b(n.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`بہت بڑا: ${n.origin??"ویلیو"} کے ${i}${n.maximum.toString()} ${a.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${n.origin??"ویلیو"} کا ${i}${n.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`بہت چھوٹا: ${n.origin} کے ${i}${n.minimum.toString()} ${a.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${n.origin} کا ${i}${n.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const i=n;return i.format==="starts_with"?`غلط سٹرنگ: "${i.prefix}" سے شروع ہونا چاہیے`:i.format==="ends_with"?`غلط سٹرنگ: "${i.suffix}" پر ختم ہونا چاہیے`:i.format==="includes"?`غلط سٹرنگ: "${i.includes}" شامل ہونا چاہیے`:i.format==="regex"?`غلط سٹرنگ: پیٹرن ${i.pattern} سے میچ ہونا چاہیے`:`غلط ${o[i.format]??n.format}`}case"not_multiple_of":return`غلط نمبر: ${n.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${n.keys.length>1?"ز":""}: ${b(n.keys,"، ")}`;case"invalid_key":return`${n.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${n.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function Xd(){return{localeError:Yd()}}const Hd=()=>{const t={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"số";case"object":{if(Array.isArray(n))return"mảng";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"};return n=>{switch(n.code){case"invalid_type":return`Đầu vào không hợp lệ: mong đợi ${n.expected}, nhận được ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Đầu vào không hợp lệ: mong đợi ${O(n.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Quá lớn: mong đợi ${n.origin??"giá trị"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"phần tử"}`:`Quá lớn: mong đợi ${n.origin??"giá trị"} ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Quá nhỏ: mong đợi ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Quá nhỏ: mong đợi ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${i.prefix}"`:i.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${i.suffix}"`:i.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${i.includes}"`:i.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${i.pattern}`:`${o[i.format]??n.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${n.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${b(n.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${n.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${n.origin}`;default:return"Đầu vào không hợp lệ"}}};function Qd(){return{localeError:Hd()}}const ef=()=>{const t={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"非数字(NaN)":"数字";case"object":{if(Array.isArray(n))return"数组";if(n===null)return"空值(null)";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"};return n=>{switch(n.code){case"invalid_type":return`无效输入:期望 ${n.expected},实际接收 ${r(n.input)}`;case"invalid_value":return n.values.length===1?`无效输入:期望 ${O(n.values[0])}`:`无效选项:期望以下之一 ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`数值过大:期望 ${n.origin??"值"} ${i}${n.maximum.toString()} ${a.unit??"个元素"}`:`数值过大:期望 ${n.origin??"值"} ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`数值过小:期望 ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`数值过小:期望 ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`无效字符串:必须以 "${i.prefix}" 开头`:i.format==="ends_with"?`无效字符串:必须以 "${i.suffix}" 结尾`:i.format==="includes"?`无效字符串:必须包含 "${i.includes}"`:i.format==="regex"?`无效字符串:必须满足正则表达式 ${i.pattern}`:`无效${o[i.format]??n.format}`}case"not_multiple_of":return`无效数字:必须是 ${n.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${b(n.keys,", ")}`;case"invalid_key":return`${n.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${n.origin} 中包含无效值(value)`;default:return"无效输入"}}};function tf(){return{localeError:ef()}}const nf=()=>{const t={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"};return n=>{switch(n.code){case"invalid_type":return`無效的輸入值:預期為 ${n.expected},但收到 ${r(n.input)}`;case"invalid_value":return n.values.length===1?`無效的輸入值:預期為 ${O(n.values[0])}`:`無效的選項:預期為以下其中之一 ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`數值過大:預期 ${n.origin??"值"} 應為 ${i}${n.maximum.toString()} ${a.unit??"個元素"}`:`數值過大:預期 ${n.origin??"值"} 應為 ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`數值過小:預期 ${n.origin} 應為 ${i}${n.minimum.toString()} ${a.unit}`:`數值過小:預期 ${n.origin} 應為 ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`無效的字串:必須以 "${i.prefix}" 開頭`:i.format==="ends_with"?`無效的字串:必須以 "${i.suffix}" 結尾`:i.format==="includes"?`無效的字串:必須包含 "${i.includes}"`:i.format==="regex"?`無效的字串:必須符合格式 ${i.pattern}`:`無效的 ${o[i.format]??n.format}`}case"not_multiple_of":return`無效的數字:必須為 ${n.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${n.keys.length>1?"們":""}:${b(n.keys,"、")}`;case"invalid_key":return`${n.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${n.origin} 中有無效的值`;default:return"無效的輸入值"}}};function rf(){return{localeError:nf()}}const $u=Object.freeze(Object.defineProperty({__proto__:null,ar:El,az:Pl,be:Zl,ca:Cl,cs:Ll,de:Bl,en:bu,eo:ql,es:Yl,fa:Hl,fi:ed,fr:nd,frCA:id,he:ad,hu:sd,id:ld,it:fd,ja:pd,kh:hd,ko:yd,mk:$d,ms:_d,nl:kd,no:Od,ota:xd,pl:jd,ps:Td,pt:Dd,ru:Ad,sl:Md,sv:Rd,ta:Wd,th:Fd,tr:Gd,ua:Kd,ur:Xd,vi:Qd,zhCN:tf,zhTW:rf},Symbol.toStringTag,{value:"Module"})),wu=Symbol("ZodOutput"),_u=Symbol("ZodInput");class Fn{constructor(){this._map=new Map,this._idmap=new Map}add(e,...r){const o=r[0];if(this._map.set(e,o),o&&typeof o=="object"&&"id"in o){if(this._idmap.has(o.id))throw new Error(`ID ${o.id} already exists in the registry`);this._idmap.set(o.id,e)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(e){const 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){const r=e._zod.parent;if(r){const o={...this.get(r)??{}};return delete o.id,{...o,...this._map.get(e)}}return this._map.get(e)}has(e){return this._map.has(e)}}function Jn(){return new Fn}const Ie=Jn();function Iu(t,e){return new t({type:"string",...m(e)})}function ku(t,e){return new t({type:"string",coerce:!0,...m(e)})}function Vn(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...m(e)})}function St(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...m(e)})}function Gn(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...m(e)})}function qn(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...m(e)})}function Kn(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...m(e)})}function Yn(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...m(e)})}function Xn(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...m(e)})}function Hn(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...m(e)})}function Qn(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...m(e)})}function er(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...m(e)})}function tr(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...m(e)})}function nr(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...m(e)})}function rr(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...m(e)})}function ir(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...m(e)})}function or(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...m(e)})}function ar(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...m(e)})}function ur(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...m(e)})}function sr(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...m(e)})}function cr(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...m(e)})}function lr(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...m(e)})}function dr(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...m(e)})}function fr(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...m(e)})}const Su={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Ou(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...m(e)})}function zu(t,e){return new t({type:"string",format:"date",check:"string_format",...m(e)})}function xu(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...m(e)})}function Nu(t,e){return new t({type:"string",format:"duration",check:"string_format",...m(e)})}function Tu(t,e){return new t({type:"number",checks:[],...m(e)})}function Uu(t,e){return new t({type:"number",coerce:!0,checks:[],...m(e)})}function ju(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...m(e)})}function Eu(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float32",...m(e)})}function Du(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float64",...m(e)})}function Pu(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"int32",...m(e)})}function Au(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"uint32",...m(e)})}function Zu(t,e){return new t({type:"boolean",...m(e)})}function Mu(t,e){return new t({type:"boolean",coerce:!0,...m(e)})}function Cu(t,e){return new t({type:"bigint",...m(e)})}function Ru(t,e){return new t({type:"bigint",coerce:!0,...m(e)})}function Lu(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...m(e)})}function Wu(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...m(e)})}function Bu(t,e){return new t({type:"symbol",...m(e)})}function Fu(t,e){return new t({type:"undefined",...m(e)})}function Ju(t,e){return new t({type:"null",...m(e)})}function Vu(t){return new t({type:"any"})}function Ot(t){return new t({type:"unknown"})}function Gu(t,e){return new t({type:"never",...m(e)})}function qu(t,e){return new t({type:"void",...m(e)})}function Ku(t,e){return new t({type:"date",...m(e)})}function Yu(t,e){return new t({type:"date",coerce:!0,...m(e)})}function Xu(t,e){return new t({type:"nan",...m(e)})}function xe(t,e){return new Dn({check:"less_than",...m(e),value:t,inclusive:!1})}function ne(t,e){return new Dn({check:"less_than",...m(e),value:t,inclusive:!0})}function Ne(t,e){return new Pn({check:"greater_than",...m(e),value:t,inclusive:!1})}function Q(t,e){return new Pn({check:"greater_than",...m(e),value:t,inclusive:!0})}function Hu(t){return Ne(0,t)}function Qu(t){return xe(0,t)}function es(t){return ne(0,t)}function ts(t){return Q(0,t)}function nt(t,e){return new Yo({check:"multiple_of",...m(e),value:t})}function Mt(t,e){return new Qo({check:"max_size",...m(e),maximum:t})}function rt(t,e){return new ea({check:"min_size",...m(e),minimum:t})}function mr(t,e){return new ta({check:"size_equals",...m(e),size:t})}function Ct(t,e){return new na({check:"max_length",...m(e),maximum:t})}function Le(t,e){return new ra({check:"min_length",...m(e),minimum:t})}function Rt(t,e){return new ia({check:"length_equals",...m(e),length:t})}function pr(t,e){return new oa({check:"string_format",format:"regex",...m(e),pattern:t})}function gr(t){return new aa({check:"string_format",format:"lowercase",...m(t)})}function hr(t){return new ua({check:"string_format",format:"uppercase",...m(t)})}function vr(t,e){return new sa({check:"string_format",format:"includes",...m(e),includes:t})}function yr(t,e){return new ca({check:"string_format",format:"starts_with",...m(e),prefix:t})}function br(t,e){return new la({check:"string_format",format:"ends_with",...m(e),suffix:t})}function ns(t,e,r){return new da({check:"property",property:t,schema:e,...m(r)})}function $r(t,e){return new fa({check:"mime_type",mime:t,...m(e)})}function Ee(t){return new ma({check:"overwrite",tx:t})}function wr(t){return Ee(e=>e.normalize(t))}function _r(){return Ee(t=>t.trim())}function Ir(){return Ee(t=>t.toLowerCase())}function kr(){return Ee(t=>t.toUpperCase())}function Sr(t,e,r){return new t({type:"array",element:e,...m(r)})}function of(t,e,r){return new t({type:"union",options:e,...m(r)})}function af(t,e,r,o){return new t({type:"union",options:r,discriminator:e,...m(o)})}function uf(t,e,r){return new t({type:"intersection",left:e,right:r})}function rs(t,e,r,o){const n=r instanceof k,i=n?o:r,a=n?r:null;return new t({type:"tuple",items:e,rest:a,...m(i)})}function sf(t,e,r,o){return new t({type:"record",keyType:e,valueType:r,...m(o)})}function cf(t,e,r,o){return new t({type:"map",keyType:e,valueType:r,...m(o)})}function lf(t,e,r){return new t({type:"set",valueType:e,...m(r)})}function df(t,e,r){const o=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new t({type:"enum",entries:o,...m(r)})}function ff(t,e,r){return new t({type:"enum",entries:e,...m(r)})}function mf(t,e,r){return new t({type:"literal",values:Array.isArray(e)?e:[e],...m(r)})}function is(t,e){return new t({type:"file",...m(e)})}function pf(t,e){return new t({type:"transform",transform:e})}function gf(t,e){return new t({type:"optional",innerType:e})}function hf(t,e){return new t({type:"nullable",innerType:e})}function vf(t,e,r){return new t({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():r}})}function yf(t,e,r){return new t({type:"nonoptional",innerType:e,...m(r)})}function bf(t,e){return new t({type:"success",innerType:e})}function $f(t,e,r){return new t({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}function wf(t,e,r){return new t({type:"pipe",in:e,out:r})}function _f(t,e){return new t({type:"readonly",innerType:e})}function If(t,e,r){return new t({type:"template_literal",parts:e,...m(r)})}function kf(t,e){return new t({type:"lazy",getter:e})}function Sf(t,e){return new t({type:"promise",innerType:e})}function os(t,e,r){const o=m(r);return o.abort??(o.abort=!0),new t({type:"custom",check:"custom",fn:e,...o})}function as(t,e,r){return new t({type:"custom",check:"custom",fn:e,...m(r)})}function us(t,e){const r=m(e);let o=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(o=o.map(d=>typeof d=="string"?d.toLowerCase():d),n=n.map(d=>typeof d=="string"?d.toLowerCase():d));const i=new Set(o),a=new Set(n),u=t.Pipe??Bn,s=t.Boolean??Mn,f=t.String??ct,p=t.Transform??Wn,l=new p({type:"transform",transform:(d,$)=>{let w=d;return r.case!=="sensitive"&&(w=w.toLowerCase()),i.has(w)?!0:a.has(w)?!1:($.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:$.value,inst:l}),{})},error:r.error}),g=new u({type:"pipe",in:new f({type:"string",error:r.error}),out:l,error:r.error});return new u({type:"pipe",in:g,out:new s({type:"boolean",error:r.error}),error:r.error})}function ss(t,e,r,o={}){const n=m(o),i={...m(o),check:"string_format",type:"string",format:e,fn:typeof r=="function"?r:u=>r.test(u),...n};return r instanceof RegExp&&(i.pattern=r),new t(i)}class cs{constructor(e){this._def=e,this.def=e}implement(e){if(typeof e!="function")throw new Error("implement() must be called with a function");const r=(...o)=>{const n=this._def.input?dn(this._def.input,o,void 0,{callee:r}):o;if(!Array.isArray(n))throw new Error("Invalid arguments schema: not an array or tuple schema.");const i=e(...n);return this._def.output?dn(this._def.output,i,void 0,{callee:r}):i};return r}implementAsync(e){if(typeof e!="function")throw new Error("implement() must be called with a function");const r=async(...o)=>{const n=this._def.input?await fn(this._def.input,o,void 0,{callee:r}):o;if(!Array.isArray(n))throw new Error("Invalid arguments schema: not an array or tuple schema.");const i=await e(...n);return this._def.output?fn(this._def.output,i,void 0,{callee:r}):i};return r}input(...e){const r=this.constructor;return Array.isArray(e[0])?new r({type:"function",input:new Zt({type:"tuple",items:e[0],rest:e[1]}),output:this._def.output}):new r({type:"function",input:e[0],output:this._def.output})}output(e){const r=this.constructor;return new r({type:"function",input:this._def.input,output:e})}}function ls(t){return new cs({type:"function",input:Array.isArray(t?.input)?rs(Zt,t?.input):t?.input??Sr(Rn,Ot(kt)),output:t?.output??Ot(kt)})}class pn{constructor(e){this.counter=0,this.metadataRegistry=e?.metadata??Ie,this.target=e?.target??"draft-2020-12",this.unrepresentable=e?.unrepresentable??"throw",this.override=e?.override??(()=>{}),this.io=e?.io??"output",this.seen=new Map}process(e,r={path:[],schemaPath:[]}){var o;const n=e._zod.def,i={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},a=this.seen.get(e);if(a)return a.count++,r.schemaPath.includes(e)&&(a.cycle=r.path),a.schema;const u={schema:{},count:1,cycle:void 0,path:r.path};this.seen.set(e,u);const s=e._zod.toJSONSchema?.();if(s)u.schema=s;else{const l={...r,schemaPath:[...r.schemaPath,e],path:r.path},g=e._zod.parent;if(g)u.ref=g,this.process(g,l),this.seen.get(g).isParent=!0;else{const y=u.schema;switch(n.type){case"string":{const d=y;d.type="string";const{minimum:$,maximum:w,format:D,patterns:I,contentEncoding:S}=e._zod.bag;if(typeof $=="number"&&(d.minLength=$),typeof w=="number"&&(d.maxLength=w),D&&(d.format=i[D]??D,d.format===""&&delete d.format),S&&(d.contentEncoding=S),I&&I.size>0){const T=[...I];T.length===1?d.pattern=T[0].source:T.length>1&&(u.schema.allOf=[...T.map(_e=>({...this.target==="draft-7"?{type:"string"}:{},pattern:_e.source}))])}break}case"number":{const d=y,{minimum:$,maximum:w,format:D,multipleOf:I,exclusiveMaximum:S,exclusiveMinimum:T}=e._zod.bag;typeof D=="string"&&D.includes("int")?d.type="integer":d.type="number",typeof T=="number"&&(d.exclusiveMinimum=T),typeof $=="number"&&(d.minimum=$,typeof T=="number"&&(T>=$?delete d.minimum:delete d.exclusiveMinimum)),typeof S=="number"&&(d.exclusiveMaximum=S),typeof w=="number"&&(d.maximum=w,typeof S=="number"&&(S<=w?delete d.maximum:delete d.exclusiveMaximum)),typeof I=="number"&&(d.multipleOf=I);break}case"boolean":{const d=y;d.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{y.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{y.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{const d=y,{minimum:$,maximum:w}=e._zod.bag;typeof $=="number"&&(d.minItems=$),typeof w=="number"&&(d.maxItems=w),d.type="array",d.items=this.process(n.element,{...l,path:[...l.path,"items"]});break}case"object":{const d=y;d.type="object",d.properties={};const $=n.shape;for(const I in $)d.properties[I]=this.process($[I],{...l,path:[...l.path,"properties",I]});const w=new Set(Object.keys($)),D=new Set([...w].filter(I=>{const S=n.shape[I]._zod;return this.io==="input"?S.optin===void 0:S.optout===void 0}));D.size>0&&(d.required=Array.from(D)),n.catchall?._zod.def.type==="never"?d.additionalProperties=!1:n.catchall?n.catchall&&(d.additionalProperties=this.process(n.catchall,{...l,path:[...l.path,"additionalProperties"]})):this.io==="output"&&(d.additionalProperties=!1);break}case"union":{const d=y;d.anyOf=n.options.map(($,w)=>this.process($,{...l,path:[...l.path,"anyOf",w]}));break}case"intersection":{const d=y,$=this.process(n.left,{...l,path:[...l.path,"allOf",0]}),w=this.process(n.right,{...l,path:[...l.path,"allOf",1]}),D=S=>"allOf"in S&&Object.keys(S).length===1,I=[...D($)?$.allOf:[$],...D(w)?w.allOf:[w]];d.allOf=I;break}case"tuple":{const d=y;d.type="array";const $=n.items.map((I,S)=>this.process(I,{...l,path:[...l.path,"prefixItems",S]}));if(this.target==="draft-2020-12"?d.prefixItems=$:d.items=$,n.rest){const I=this.process(n.rest,{...l,path:[...l.path,"items"]});this.target==="draft-2020-12"?d.items=I:d.additionalItems=I}n.rest&&(d.items=this.process(n.rest,{...l,path:[...l.path,"items"]}));const{minimum:w,maximum:D}=e._zod.bag;typeof w=="number"&&(d.minItems=w),typeof D=="number"&&(d.maxItems=D);break}case"record":{const d=y;d.type="object",d.propertyNames=this.process(n.keyType,{...l,path:[...l.path,"propertyNames"]}),d.additionalProperties=this.process(n.valueType,{...l,path:[...l.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{const d=y,$=kn(n.entries);$.every(w=>typeof w=="number")&&(d.type="number"),$.every(w=>typeof w=="string")&&(d.type="string"),d.enum=$;break}case"literal":{const d=y,$=[];for(const w of n.values)if(w===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof w=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");$.push(Number(w))}else $.push(w);if($.length!==0)if($.length===1){const w=$[0];d.type=w===null?"null":typeof w,d.const=w}else $.every(w=>typeof w=="number")&&(d.type="number"),$.every(w=>typeof w=="string")&&(d.type="string"),$.every(w=>typeof w=="boolean")&&(d.type="string"),$.every(w=>w===null)&&(d.type="null"),d.enum=$;break}case"file":{const d=y,$={type:"string",format:"binary",contentEncoding:"binary"},{minimum:w,maximum:D,mime:I}=e._zod.bag;w!==void 0&&($.minLength=w),D!==void 0&&($.maxLength=D),I?I.length===1?($.contentMediaType=I[0],Object.assign(d,$)):d.anyOf=I.map(S=>({...$,contentMediaType:S})):Object.assign(d,$);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{const d=this.process(n.innerType,l);y.anyOf=[d,{type:"null"}];break}case"nonoptional":{this.process(n.innerType,l),u.ref=n.innerType;break}case"success":{const d=y;d.type="boolean";break}case"default":{this.process(n.innerType,l),u.ref=n.innerType,y.default=JSON.parse(JSON.stringify(n.defaultValue));break}case"prefault":{this.process(n.innerType,l),u.ref=n.innerType,this.io==="input"&&(y._prefault=JSON.parse(JSON.stringify(n.defaultValue)));break}case"catch":{this.process(n.innerType,l),u.ref=n.innerType;let d;try{d=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}y.default=d;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{const d=y,$=e._zod.pattern;if(!$)throw new Error("Pattern not found in template literal");d.type="string",d.pattern=$.source;break}case"pipe":{const d=this.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;this.process(d,l),u.ref=d;break}case"readonly":{this.process(n.innerType,l),u.ref=n.innerType,y.readOnly=!0;break}case"promise":{this.process(n.innerType,l),u.ref=n.innerType;break}case"optional":{this.process(n.innerType,l),u.ref=n.innerType;break}case"lazy":{const d=e._zod.innerType;this.process(d,l),u.ref=d;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}}}}const f=this.metadataRegistry.get(e);return f&&Object.assign(u.schema,f),this.io==="input"&&J(e)&&(delete u.schema.examples,delete u.schema.default),this.io==="input"&&u.schema._prefault&&((o=u.schema).default??(o.default=u.schema._prefault)),delete u.schema._prefault,this.seen.get(e).schema}emit(e,r){const o={cycles:r?.cycles??"ref",reused:r?.reused??"inline",external:r?.external??void 0},n=this.seen.get(e);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=p=>{const l=this.target==="draft-2020-12"?"$defs":"definitions";if(o.external){const $=o.external.registry.get(p[0])?.id,w=o.external.uri??(I=>I);if($)return{ref:w($)};const D=p[1].defId??p[1].schema.id??`schema${this.counter++}`;return p[1].defId=D,{defId:D,ref:`${w("__shared")}#/${l}/${D}`}}if(p[1]===n)return{ref:"#"};const y=`#/${l}/`,d=p[1].schema.id??`__schema${this.counter++}`;return{defId:d,ref:y+d}},a=p=>{if(p[1].schema.$ref)return;const l=p[1],{ref:g,defId:y}=i(p);l.def={...l.schema},y&&(l.defId=y);const d=l.schema;for(const $ in d)delete d[$];d.$ref=g};if(o.cycles==="throw")for(const p of this.seen.entries()){const l=p[1];if(l.cycle)throw new Error(`Cycle detected: #/${l.cycle?.join("/")}/<root>
26
+ path: iss.path ? [${Pe(I)}, ...iss.path] : [${Pe(I)}]
27
+ })));`),h.write(`newResult[${Pe(I)}] = ${S}.value`)}h.write("payload.value = newResult;"),h.write("return payload;");const P=h.compile();return(I,S)=>P(l,I,S)};let n;const i=tt,a=!It.jitless,s=a&&eo.value,f=e.catchall;let p;t._zod.parse=(l,h)=>{p??(p=r.value);const y=l.value;if(!i(y))return l.issues.push({expected:"object",code:"invalid_type",input:y,inst:t}),l;const d=[];if(a&&s&&h?.async===!1&&h.jitless!==!0)n||(n=o(e.shape)),l=n(l,h);else{l.value={};const S=p.shape;for(const U of p.keys){const Ie=S[U],mt=Ie._zod.run({value:y[U],issues:[]},h),wi=Ie._zod.optin==="optional"&&Ie._zod.optout==="optional";mt instanceof Promise?d.push(mt.then(_i=>wi?zi(_i,l,U,y):pt(_i,l,U))):wi?zi(mt,l,U,y):pt(mt,l,U)}}if(!f)return d.length?Promise.all(d).then(()=>l):l;const $=[],w=p.keySet,P=f._zod,I=P.def.type;for(const S of Object.keys(y)){if(w.has(S))continue;if(I==="never"){$.push(S);continue}const U=P.run({value:y[S],issues:[]},h);U instanceof Promise?d.push(U.then(Ie=>pt(Ie,l,S))):pt(U,l,S)}return $.length&&l.issues.push({code:"unrecognized_keys",keys:$,input:y,inst:t}),d.length?Promise.all(d).then(()=>l):l}});function xi(t,e,r,o){for(const n of t)if(n.issues.length===0)return e.value=n.value,e;return e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(n=>n.issues.map(i=>oe(i,o,H())))}),e}const Wn=c("$ZodUnion",(t,e)=>{k.init(t,e),T(t._zod,"optin",()=>e.options.some(r=>r._zod.optin==="optional")?"optional":void 0),T(t._zod,"optout",()=>e.options.some(r=>r._zod.optout==="optional")?"optional":void 0),T(t._zod,"values",()=>{if(e.options.every(r=>r._zod.values))return new Set(e.options.flatMap(r=>Array.from(r._zod.values)))}),T(t._zod,"pattern",()=>{if(e.options.every(r=>r._zod.pattern)){const r=e.options.map(o=>o._zod.pattern);return new RegExp(`^(${r.map(o=>Pt(o.source)).join("|")})$`)}}),t._zod.parse=(r,o)=>{let n=!1;const i=[];for(const a of e.options){const u=a._zod.run({value:r.value,issues:[]},o);if(u instanceof Promise)i.push(u),n=!0;else{if(u.issues.length===0)return u;i.push(u)}}return n?Promise.all(i).then(a=>xi(a,r,t,o)):xi(i,r,t,o)}}),Qa=c("$ZodDiscriminatedUnion",(t,e)=>{Wn.init(t,e);const r=t._zod.parse;T(t._zod,"propValues",()=>{const n={};for(const i of e.options){const a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(i)}"`);for(const[u,s]of Object.entries(a)){n[u]||(n[u]=new Set);for(const f of s)n[u].add(f)}}return n});const o=Dt(()=>{const n=e.options,i=new Map;for(const a of n){const u=a._zod.propValues[e.discriminator];if(!u||u.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(a)}"`);for(const s of u){if(i.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);i.set(s,a)}}return i});t._zod.parse=(n,i)=>{const a=n.value;if(!tt(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:t}),n;const u=o.value.get(a?.[e.discriminator]);return u?u._zod.run(n,i):e.unionFallback?r(n,i):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:a,path:[e.discriminator],inst:t}),n)}}),eu=c("$ZodIntersection",(t,e)=>{k.init(t,e),t._zod.parse=(r,o)=>{const n=r.value,i=e.left._zod.run({value:n,issues:[]},o),a=e.right._zod.run({value:n,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([s,f])=>Ni(r,s,f)):Ni(r,i,a)}});function pn(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(nt(t)&&nt(e)){const r=Object.keys(e),o=Object.keys(t).filter(i=>r.indexOf(i)!==-1),n={...t,...e};for(const i of o){const a=pn(t[i],e[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n[i]=a.data}return{valid:!0,data:n}}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let o=0;o<t.length;o++){const n=t[o],i=e[o],a=pn(n,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function Ni(t,e,r){if(e.issues.length&&t.issues.push(...e.issues),r.issues.length&&t.issues.push(...r.issues),Ze(t))return t;const o=pn(e.value,r.value);if(!o.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return t.value=o.data,t}const Mt=c("$ZodTuple",(t,e)=>{k.init(t,e);const r=e.items,o=r.length-[...r].reverse().findIndex(n=>n._zod.optin!=="optional");t._zod.parse=(n,i)=>{const a=n.value;if(!Array.isArray(a))return n.issues.push({input:a,inst:t,expected:"tuple",code:"invalid_type"}),n;n.value=[];const u=[];if(!e.rest){const f=a.length>r.length,p=a.length<o-1;if(f||p)return n.issues.push({input:a,inst:t,origin:"array",...f?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length}}),n}let s=-1;for(const f of r){if(s++,s>=a.length&&s>=o)continue;const p=f._zod.run({value:a[s],issues:[]},i);p instanceof Promise?u.push(p.then(l=>gt(l,n,s))):gt(p,n,s)}if(e.rest){const f=a.slice(r.length);for(const p of f){s++;const l=e.rest._zod.run({value:p,issues:[]},i);l instanceof Promise?u.push(l.then(h=>gt(h,n,s))):gt(l,n,s)}}return u.length?Promise.all(u).then(()=>n):n}});function gt(t,e,r){t.issues.length&&e.issues.push(...ne(r,t.issues)),e.value[r]=t.value}const tu=c("$ZodRecord",(t,e)=>{k.init(t,e),t._zod.parse=(r,o)=>{const n=r.value;if(!nt(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:t}),r;const i=[];if(e.keyType._zod.values){const a=e.keyType._zod.values;r.value={};for(const s of a)if(typeof s=="string"||typeof s=="number"||typeof s=="symbol"){const f=e.valueType._zod.run({value:n[s],issues:[]},o);f instanceof Promise?i.push(f.then(p=>{p.issues.length&&r.issues.push(...ne(s,p.issues)),r.value[s]=p.value})):(f.issues.length&&r.issues.push(...ne(s,f.issues)),r.value[s]=f.value)}let u;for(const s in n)a.has(s)||(u=u??[],u.push(s));u&&u.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:t,keys:u})}else{r.value={};for(const a of Reflect.ownKeys(n)){if(a==="__proto__")continue;const u=e.keyType._zod.run({value:a,issues:[]},o);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(u.issues.length){r.issues.push({origin:"record",code:"invalid_key",issues:u.issues.map(f=>oe(f,o,H())),input:a,path:[a],inst:t}),r.value[u.value]=u.value;continue}const s=e.valueType._zod.run({value:n[a],issues:[]},o);s instanceof Promise?i.push(s.then(f=>{f.issues.length&&r.issues.push(...ne(a,f.issues)),r.value[u.value]=f.value})):(s.issues.length&&r.issues.push(...ne(a,s.issues)),r.value[u.value]=s.value)}}return i.length?Promise.all(i).then(()=>r):r}}),nu=c("$ZodMap",(t,e)=>{k.init(t,e),t._zod.parse=(r,o)=>{const n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:t}),r;const i=[];r.value=new Map;for(const[a,u]of n){const s=e.keyType._zod.run({value:a,issues:[]},o),f=e.valueType._zod.run({value:u,issues:[]},o);s instanceof Promise||f instanceof Promise?i.push(Promise.all([s,f]).then(([p,l])=>{Ti(p,l,r,a,n,t,o)})):Ti(s,f,r,a,n,t,o)}return i.length?Promise.all(i).then(()=>r):r}});function Ti(t,e,r,o,n,i,a){t.issues.length&&(kt.has(typeof o)?r.issues.push(...ne(o,t.issues)):r.issues.push({origin:"map",code:"invalid_key",input:n,inst:i,issues:t.issues.map(u=>oe(u,a,H()))})),e.issues.length&&(kt.has(typeof o)?r.issues.push(...ne(o,e.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:i,key:o,issues:e.issues.map(u=>oe(u,a,H()))})),r.value.set(t.value,e.value)}const ru=c("$ZodSet",(t,e)=>{k.init(t,e),t._zod.parse=(r,o)=>{const n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:t,expected:"set",code:"invalid_type"}),r;const i=[];r.value=new Set;for(const a of n){const u=e.valueType._zod.run({value:a,issues:[]},o);u instanceof Promise?i.push(u.then(s=>Ui(s,r))):Ui(u,r)}return i.length?Promise.all(i).then(()=>r):r}});function Ui(t,e){t.issues.length&&e.issues.push(...t.issues),e.value.add(t.value)}const iu=c("$ZodEnum",(t,e)=>{k.init(t,e);const r=Sn(e.entries);t._zod.values=new Set(r),t._zod.pattern=new RegExp(`^(${r.filter(o=>kt.has(typeof o)).map(o=>typeof o=="string"?Ee(o):o.toString()).join("|")})$`),t._zod.parse=(o,n)=>{const i=o.value;return t._zod.values.has(i)||o.issues.push({code:"invalid_value",values:r,input:i,inst:t}),o}}),ou=c("$ZodLiteral",(t,e)=>{k.init(t,e),t._zod.values=new Set(e.values),t._zod.pattern=new RegExp(`^(${e.values.map(r=>typeof r=="string"?Ee(r):r?r.toString():String(r)).join("|")})$`),t._zod.parse=(r,o)=>{const n=r.value;return t._zod.values.has(n)||r.issues.push({code:"invalid_value",values:e.values,input:n,inst:t}),r}}),au=c("$ZodFile",(t,e)=>{k.init(t,e),t._zod.parse=(r,o)=>{const n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:t}),r}}),Bn=c("$ZodTransform",(t,e)=>{k.init(t,e),t._zod.parse=(r,o)=>{const n=e.transform(r.value,r);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then(a=>(r.value=a,r));if(n instanceof Promise)throw new Ce;return r.value=n,r}}),uu=c("$ZodOptional",(t,e)=>{k.init(t,e),t._zod.optin="optional",t._zod.optout="optional",T(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),T(t._zod,"pattern",()=>{const r=e.innerType._zod.pattern;return r?new RegExp(`^(${Pt(r.source)})?$`):void 0}),t._zod.parse=(r,o)=>e.innerType._zod.optin==="optional"?e.innerType._zod.run(r,o):r.value===void 0?r:e.innerType._zod.run(r,o)}),su=c("$ZodNullable",(t,e)=>{k.init(t,e),T(t._zod,"optin",()=>e.innerType._zod.optin),T(t._zod,"optout",()=>e.innerType._zod.optout),T(t._zod,"pattern",()=>{const r=e.innerType._zod.pattern;return r?new RegExp(`^(${Pt(r.source)}|null)$`):void 0}),T(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(r,o)=>r.value===null?r:e.innerType._zod.run(r,o)}),cu=c("$ZodDefault",(t,e)=>{k.init(t,e),t._zod.optin="optional",T(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,o)=>{if(r.value===void 0)return r.value=e.defaultValue,r;const n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>ji(i,e)):ji(n,e)}});function ji(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}const lu=c("$ZodPrefault",(t,e)=>{k.init(t,e),t._zod.optin="optional",T(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,o)=>(r.value===void 0&&(r.value=e.defaultValue),e.innerType._zod.run(r,o))}),du=c("$ZodNonOptional",(t,e)=>{k.init(t,e),T(t._zod,"values",()=>{const r=e.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),t._zod.parse=(r,o)=>{const n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>Ei(i,t)):Ei(n,t)}});function Ei(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}const fu=c("$ZodSuccess",(t,e)=>{k.init(t,e),t._zod.parse=(r,o)=>{const n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),mu=c("$ZodCatch",(t,e)=>{k.init(t,e),t._zod.optin="optional",T(t._zod,"optout",()=>e.innerType._zod.optout),T(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,o)=>{const n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.value,i.issues.length&&(r.value=e.catchValue({...r,error:{issues:i.issues.map(a=>oe(a,o,H()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=e.catchValue({...r,error:{issues:n.issues.map(i=>oe(i,o,H()))},input:r.value}),r.issues=[]),r)}}),pu=c("$ZodNaN",(t,e)=>{k.init(t,e),t._zod.parse=(r,o)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:t,expected:"nan",code:"invalid_type"}),r)}),Fn=c("$ZodPipe",(t,e)=>{k.init(t,e),T(t._zod,"values",()=>e.in._zod.values),T(t._zod,"optin",()=>e.in._zod.optin),T(t._zod,"optout",()=>e.out._zod.optout),t._zod.parse=(r,o)=>{const n=e.in._zod.run(r,o);return n instanceof Promise?n.then(i=>Di(i,e,o)):Di(n,e,o)}});function Di(t,e,r){return Ze(t)?t:e.out._zod.run({value:t.value,issues:t.issues},r)}const gu=c("$ZodReadonly",(t,e)=>{k.init(t,e),T(t._zod,"propValues",()=>e.innerType._zod.propValues),T(t._zod,"values",()=>e.innerType._zod.values),T(t._zod,"optin",()=>e.innerType._zod.optin),T(t._zod,"optout",()=>e.innerType._zod.optout),t._zod.parse=(r,o)=>{const n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(Pi):Pi(n)}});function Pi(t){return t.value=Object.freeze(t.value),t}const hu=c("$ZodTemplateLiteral",(t,e)=>{k.init(t,e);const r=[];for(const o of e.parts)if(o instanceof k){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);const n=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${o._zod.traits}`);const i=n.startsWith("^")?1:0,a=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(i,a))}else if(o===null||to.has(typeof o))r.push(Ee(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);t._zod.pattern=new RegExp(`^${r.join("")}$`),t._zod.parse=(o,n)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:t,expected:"template_literal",code:"invalid_type"}),o):(t._zod.pattern.lastIndex=0,t._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:t,code:"invalid_format",format:e.format??"template_literal",pattern:t._zod.pattern.source}),o)}),vu=c("$ZodPromise",(t,e)=>{k.init(t,e),t._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>e.innerType._zod.run({value:n,issues:[]},o))}),yu=c("$ZodLazy",(t,e)=>{k.init(t,e),T(t._zod,"innerType",()=>e.getter()),T(t._zod,"pattern",()=>t._zod.innerType._zod.pattern),T(t._zod,"propValues",()=>t._zod.innerType._zod.propValues),T(t._zod,"optin",()=>t._zod.innerType._zod.optin),T(t._zod,"optout",()=>t._zod.innerType._zod.optout),t._zod.parse=(r,o)=>t._zod.innerType._zod.run(r,o)}),bu=c("$ZodCustom",(t,e)=>{F.init(t,e),k.init(t,e),t._zod.parse=(r,o)=>r,t._zod.check=r=>{const o=r.value,n=e.fn(o);if(n instanceof Promise)return n.then(i=>Ai(i,r,o,t));Ai(n,r,o,t)}});function Ai(t,e,r,o){if(!t){const n={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(n.params=o._zod.def.params),e.issues.push(Re(n))}}const Dl=()=>{const t={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"};return n=>{switch(n.code){case"invalid_type":return`مدخلات غير مقبولة: يفترض إدخال ${n.expected}، ولكن تم إدخال ${r(n.input)}`;case"invalid_value":return n.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${O(n.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?` أكبر من اللازم: يفترض أن تكون ${n.origin??"القيمة"} ${i} ${n.maximum.toString()} ${a.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${n.origin??"القيمة"} ${i} ${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${i} ${n.minimum.toString()} ${a.unit}`:`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${i} ${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${n.prefix}"`:i.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${i.suffix}"`:i.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${i.includes}"`:i.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${i.pattern}`:`${o[i.format]??n.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${n.divisor}`;case"unrecognized_keys":return`معرف${n.keys.length>1?"ات":""} غريب${n.keys.length>1?"ة":""}: ${b(n.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${n.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${n.origin}`;default:return"مدخل غير مقبول"}}};function Pl(){return{localeError:Dl()}}const Al=()=>{const t={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return n=>{switch(n.code){case"invalid_type":return`Yanlış dəyər: gözlənilən ${n.expected}, daxil olan ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Yanlış dəyər: gözlənilən ${O(n.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Çox böyük: gözlənilən ${n.origin??"dəyər"} ${i}${n.maximum.toString()} ${a.unit??"element"}`:`Çox böyük: gözlənilən ${n.origin??"dəyər"} ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Çox kiçik: gözlənilən ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`Çox kiçik: gözlənilən ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Yanlış mətn: "${i.prefix}" ilə başlamalıdır`:i.format==="ends_with"?`Yanlış mətn: "${i.suffix}" ilə bitməlidir`:i.format==="includes"?`Yanlış mətn: "${i.includes}" daxil olmalıdır`:i.format==="regex"?`Yanlış mətn: ${i.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${o[i.format]??n.format}`}case"not_multiple_of":return`Yanlış ədəd: ${n.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${n.keys.length>1?"lar":""}: ${b(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${n.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function Zl(){return{localeError:Al()}}function Zi(t,e,r,o){const n=Math.abs(t),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?e:i>=2&&i<=4?r:o}const Ml=()=>{const t={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"лік";case"object":{if(Array.isArray(n))return"масіў";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"};return n=>{switch(n.code){case"invalid_type":return`Няправільны ўвод: чакаўся ${n.expected}, атрымана ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Няправільны ўвод: чакалася ${O(n.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);if(a){const u=Number(n.maximum),s=Zi(u,a.unit.one,a.unit.few,a.unit.many);return`Занадта вялікі: чакалася, што ${n.origin??"значэнне"} павінна ${a.verb} ${i}${n.maximum.toString()} ${s}`}return`Занадта вялікі: чакалася, што ${n.origin??"значэнне"} павінна быць ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);if(a){const u=Number(n.minimum),s=Zi(u,a.unit.one,a.unit.few,a.unit.many);return`Занадта малы: чакалася, што ${n.origin} павінна ${a.verb} ${i}${n.minimum.toString()} ${s}`}return`Занадта малы: чакалася, што ${n.origin} павінна быць ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${i.prefix}"`:i.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${i.suffix}"`:i.format==="includes"?`Няправільны радок: павінен змяшчаць "${i.includes}"`:i.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${i.pattern}`:`Няправільны ${o[i.format]??n.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${n.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${n.keys.length>1?"ключы":"ключ"}: ${b(n.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${n.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${n.origin}`;default:return"Няправільны ўвод"}}};function Cl(){return{localeError:Ml()}}const Rl=()=>{const t={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"entrada",email:"adreça electrònica",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ça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return n=>{switch(n.code){case"invalid_type":return`Tipus invàlid: s'esperava ${n.expected}, s'ha rebut ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Valor invàlid: s'esperava ${O(n.values[0])}`:`Opció invàlida: s'esperava una de ${b(n.values," o ")}`;case"too_big":{const i=n.inclusive?"com a màxim":"menys de",a=e(n.origin);return a?`Massa gran: s'esperava que ${n.origin??"el valor"} contingués ${i} ${n.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${i} ${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?"com a mínim":"més de",a=e(n.origin);return a?`Massa petit: s'esperava que ${n.origin} contingués ${i} ${n.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${i} ${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Format invàlid: ha de començar amb "${i.prefix}"`:i.format==="ends_with"?`Format invàlid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format invàlid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${i.pattern}`:`Format invàlid per a ${o[i.format]??n.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${b(n.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${n.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${n.origin}`;default:return"Entrada invàlida"}}};function Ll(){return{localeError:Rl()}}const Wl=()=>{const t={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"číslo";case"string":return"řetězec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(n))return"pole";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"};return n=>{switch(n.code){case"invalid_type":return`Neplatný vstup: očekáváno ${n.expected}, obdrženo ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Neplatný vstup: očekáváno ${O(n.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Hodnota je příliš velká: ${n.origin??"hodnota"} musí mít ${i}${n.maximum.toString()} ${a.unit??"prvků"}`:`Hodnota je příliš velká: ${n.origin??"hodnota"} musí být ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Hodnota je příliš malá: ${n.origin??"hodnota"} musí mít ${i}${n.minimum.toString()} ${a.unit??"prvků"}`:`Hodnota je příliš malá: ${n.origin??"hodnota"} musí být ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Neplatný řetězec: musí začínat na "${i.prefix}"`:i.format==="ends_with"?`Neplatný řetězec: musí končit na "${i.suffix}"`:i.format==="includes"?`Neplatný řetězec: musí obsahovat "${i.includes}"`:i.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${i.pattern}`:`Neplatný formát ${o[i.format]??n.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${n.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${b(n.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${n.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${n.origin}`;default:return"Neplatný vstup"}}};function Bl(){return{localeError:Wl()}}const Fl=()=>{const 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"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"Zahl";case"object":{if(Array.isArray(n))return"Array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return n=>{switch(n.code){case"invalid_type":return`Ungültige Eingabe: erwartet ${n.expected}, erhalten ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ungültige Eingabe: erwartet ${O(n.values[0])}`:`Ungültige Option: erwartet eine von ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Zu groß: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ist`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ist`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Ungültiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ungültiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ungültiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ungültiger String: muss dem Muster ${i.pattern} entsprechen`:`Ungültig: ${o[i.format]??n.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${b(n.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${n.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${n.origin}`;default:return"Ungültige Eingabe"}}};function Jl(){return{localeError:Fl()}}const Vl=t=>{const e=typeof t;switch(e){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return e},Gl=()=>{const 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"}};function e(o){return t[o]??null}const 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",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return o=>{switch(o.code){case"invalid_type":return`Invalid input: expected ${o.expected}, received ${Vl(o.input)}`;case"invalid_value":return o.values.length===1?`Invalid input: expected ${O(o.values[0])}`:`Invalid option: expected one of ${b(o.values,"|")}`;case"too_big":{const n=o.inclusive?"<=":"<",i=e(o.origin);return i?`Too big: expected ${o.origin??"value"} to have ${n}${o.maximum.toString()} ${i.unit??"elements"}`:`Too big: expected ${o.origin??"value"} to be ${n}${o.maximum.toString()}`}case"too_small":{const n=o.inclusive?">=":">",i=e(o.origin);return i?`Too small: expected ${o.origin} to have ${n}${o.minimum.toString()} ${i.unit}`:`Too small: expected ${o.origin} to be ${n}${o.minimum.toString()}`}case"invalid_format":{const n=o;return n.format==="starts_with"?`Invalid string: must start with "${n.prefix}"`:n.format==="ends_with"?`Invalid string: must end with "${n.suffix}"`:n.format==="includes"?`Invalid string: must include "${n.includes}"`:n.format==="regex"?`Invalid string: must match pattern ${n.pattern}`:`Invalid ${r[n.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":""}: ${b(o.keys,", ")}`;case"invalid_key":return`Invalid key in ${o.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${o.origin}`;default:return"Invalid input"}}};function $u(){return{localeError:Gl()}}const ql=t=>{const e=typeof t;switch(e){case"number":return Number.isNaN(t)?"NaN":"nombro";case"object":{if(Array.isArray(t))return"tabelo";if(t===null)return"senvalora";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return e},Kl=()=>{const t={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function e(o){return t[o]??null}const r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"};return o=>{switch(o.code){case"invalid_type":return`Nevalida enigo: atendiĝis ${o.expected}, riceviĝis ${ql(o.input)}`;case"invalid_value":return o.values.length===1?`Nevalida enigo: atendiĝis ${O(o.values[0])}`:`Nevalida opcio: atendiĝis unu el ${b(o.values,"|")}`;case"too_big":{const n=o.inclusive?"<=":"<",i=e(o.origin);return i?`Tro granda: atendiĝis ke ${o.origin??"valoro"} havu ${n}${o.maximum.toString()} ${i.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${o.origin??"valoro"} havu ${n}${o.maximum.toString()}`}case"too_small":{const n=o.inclusive?">=":">",i=e(o.origin);return i?`Tro malgranda: atendiĝis ke ${o.origin} havu ${n}${o.minimum.toString()} ${i.unit}`:`Tro malgranda: atendiĝis ke ${o.origin} estu ${n}${o.minimum.toString()}`}case"invalid_format":{const n=o;return n.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${n.prefix}"`:n.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${n.suffix}"`:n.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${n.includes}"`:n.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${n.pattern}`:`Nevalida ${r[n.format]??o.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${o.divisor}`;case"unrecognized_keys":return`Nekonata${o.keys.length>1?"j":""} ŝlosilo${o.keys.length>1?"j":""}: ${b(o.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${o.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${o.origin}`;default:return"Nevalida enigo"}}};function Yl(){return{localeError:Kl()}}const Xl=()=>{const 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}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"número";case"object":{if(Array.isArray(n))return"arreglo";if(n===null)return"nulo";if(Object.getPrototypeOf(n)!==Object.prototype)return n.constructor.name}}return i},o={regex:"entrada",email:"dirección de correo electrónico",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ón ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return n=>{switch(n.code){case"invalid_type":return`Entrada inválida: se esperaba ${n.expected}, recibido ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Entrada inválida: se esperaba ${O(n.values[0])}`:`Opción inválida: se esperaba una de ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Demasiado grande: se esperaba que ${n.origin??"valor"} tuviera ${i}${n.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${n.origin??"valor"} fuera ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Demasiado pequeño: se esperaba que ${n.origin} tuviera ${i}${n.minimum.toString()} ${a.unit}`:`Demasiado pequeño: se esperaba que ${n.origin} fuera ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Cadena inválida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inválida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inválida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${i.pattern}`:`Inválido ${o[i.format]??n.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${b(n.keys,", ")}`;case"invalid_key":return`Llave inválida en ${n.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${n.origin}`;default:return"Entrada inválida"}}};function Hl(){return{localeError:Xl()}}const Ql=()=>{const t={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"عدد";case"object":{if(Array.isArray(n))return"آرایه";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"};return n=>{switch(n.code){case"invalid_type":return`ورودی نامعتبر: می‌بایست ${n.expected} می‌بود، ${r(n.input)} دریافت شد`;case"invalid_value":return n.values.length===1?`ورودی نامعتبر: می‌بایست ${O(n.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${b(n.values,"|")} می‌بود`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`خیلی بزرگ: ${n.origin??"مقدار"} باید ${i}${n.maximum.toString()} ${a.unit??"عنصر"} باشد`:`خیلی بزرگ: ${n.origin??"مقدار"} باید ${i}${n.maximum.toString()} باشد`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`خیلی کوچک: ${n.origin} باید ${i}${n.minimum.toString()} ${a.unit} باشد`:`خیلی کوچک: ${n.origin} باید ${i}${n.minimum.toString()} باشد`}case"invalid_format":{const i=n;return i.format==="starts_with"?`رشته نامعتبر: باید با "${i.prefix}" شروع شود`:i.format==="ends_with"?`رشته نامعتبر: باید با "${i.suffix}" تمام شود`:i.format==="includes"?`رشته نامعتبر: باید شامل "${i.includes}" باشد`:i.format==="regex"?`رشته نامعتبر: باید با الگوی ${i.pattern} مطابقت داشته باشد`:`${o[i.format]??n.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${n.divisor} باشد`;case"unrecognized_keys":return`کلید${n.keys.length>1?"های":""} ناشناس: ${b(n.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${n.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${n.origin}`;default:return"ورودی نامعتبر"}}};function ed(){return{localeError:Ql()}}const td=()=>{const t={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"säännöllinen lauseke",email:"sähköpostiosoite",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äivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return n=>{switch(n.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${n.expected}, oli ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Virheellinen syöte: täytyy olla ${O(n.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Liian suuri: ${a.subject} täytyy olla ${i}${n.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon täytyy olla ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Liian pieni: ${a.subject} täytyy olla ${i}${n.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon täytyy olla ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen syöte: täytyy sisältää "${i.includes}"`:i.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${i.pattern}`:`Virheellinen ${o[i.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${b(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öte"}}};function nd(){return{localeError:td()}}const rd=()=>{const t={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"nombre";case"object":{if(Array.isArray(n))return"tableau";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"entrée",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ée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return n=>{switch(n.code){case"invalid_type":return`Entrée invalide : ${n.expected} attendu, ${r(n.input)} reçu`;case"invalid_value":return n.values.length===1?`Entrée invalide : ${O(n.values[0])} attendu`:`Option invalide : une valeur parmi ${b(n.values,"|")} attendue`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Trop grand : ${n.origin??"valeur"} doit ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"élément(s)"}`:`Trop grand : ${n.origin??"valeur"} doit être ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Trop petit : ${n.origin} doit ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Trop petit : ${n.origin} doit être ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Chaîne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Chaîne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Chaîne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Chaîne invalide : doit correspondre au modèle ${i.pattern}`:`${o[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${n.divisor}`;case"unrecognized_keys":return`Clé${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${b(n.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${n.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entrée invalide"}}};function id(){return{localeError:rd()}}const od=()=>{const t={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"entrée",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ée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return n=>{switch(n.code){case"invalid_type":return`Entrée invalide : attendu ${n.expected}, reçu ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Entrée invalide : attendu ${O(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"≤":"<",a=e(n.origin);return a?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${i}${n.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?"≥":">",a=e(n.origin);return a?`Trop petit : attendu que ${n.origin} ait ${i}${n.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${n.origin} soit ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Chaîne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Chaîne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Chaîne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Chaîne invalide : doit correspondre au motif ${i.pattern}`:`${o[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${n.divisor}`;case"unrecognized_keys":return`Clé${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${b(n.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${n.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entrée invalide"}}};function ad(){return{localeError:od()}}const ud=()=>{const t={string:{unit:"אותיות",verb:"לכלול"},file:{unit:"בייטים",verb:"לכלול"},array:{unit:"פריטים",verb:"לכלול"},set:{unit:"פריטים",verb:"לכלול"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"קלט",email:"כתובת אימייל",url:"כתובת רשת",emoji:"אימוג'י",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"תאריך וזמן ISO",date:"תאריך ISO",time:"זמן ISO",duration:"משך זמן ISO",ipv4:"כתובת IPv4",ipv6:"כתובת IPv6",cidrv4:"טווח IPv4",cidrv6:"טווח IPv6",base64:"מחרוזת בבסיס 64",base64url:"מחרוזת בבסיס 64 לכתובות רשת",json_string:"מחרוזת JSON",e164:"מספר E.164",jwt:"JWT",template_literal:"קלט"};return n=>{switch(n.code){case"invalid_type":return`קלט לא תקין: צריך ${n.expected}, התקבל ${r(n.input)}`;case"invalid_value":return n.values.length===1?`קלט לא תקין: צריך ${O(n.values[0])}`:`קלט לא תקין: צריך אחת מהאפשרויות ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`גדול מדי: ${n.origin??"value"} צריך להיות ${i}${n.maximum.toString()} ${a.unit??"elements"}`:`גדול מדי: ${n.origin??"value"} צריך להיות ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`קטן מדי: ${n.origin} צריך להיות ${i}${n.minimum.toString()} ${a.unit}`:`קטן מדי: ${n.origin} צריך להיות ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`מחרוזת לא תקינה: חייבת להתחיל ב"${i.prefix}"`:i.format==="ends_with"?`מחרוזת לא תקינה: חייבת להסתיים ב "${i.suffix}"`:i.format==="includes"?`מחרוזת לא תקינה: חייבת לכלול "${i.includes}"`:i.format==="regex"?`מחרוזת לא תקינה: חייבת להתאים לתבנית ${i.pattern}`:`${o[i.format]??n.format} לא תקין`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${n.divisor}`;case"unrecognized_keys":return`מפתח${n.keys.length>1?"ות":""} לא מזוה${n.keys.length>1?"ים":"ה"}: ${b(n.keys,", ")}`;case"invalid_key":return`מפתח לא תקין ב${n.origin}`;case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${n.origin}`;default:return"קלט לא תקין"}}};function sd(){return{localeError:ud()}}const cd=()=>{const t={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"szám";case"object":{if(Array.isArray(n))return"tömb";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"};return n=>{switch(n.code){case"invalid_type":return`Érvénytelen bemenet: a várt érték ${n.expected}, a kapott érték ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Érvénytelen bemenet: a várt érték ${O(n.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Túl nagy: ${n.origin??"érték"} mérete túl nagy ${i}${n.maximum.toString()} ${a.unit??"elem"}`:`Túl nagy: a bemeneti érték ${n.origin??"érték"} túl nagy: ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Túl kicsi: a bemeneti érték ${n.origin} mérete túl kicsi ${i}${n.minimum.toString()} ${a.unit}`:`Túl kicsi: a bemeneti érték ${n.origin} túl kicsi ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Érvénytelen string: "${i.prefix}" értékkel kell kezdődnie`:i.format==="ends_with"?`Érvénytelen string: "${i.suffix}" értékkel kell végződnie`:i.format==="includes"?`Érvénytelen string: "${i.includes}" értéket kell tartalmaznia`:i.format==="regex"?`Érvénytelen string: ${i.pattern} mintának kell megfelelnie`:`Érvénytelen ${o[i.format]??n.format}`}case"not_multiple_of":return`Érvénytelen szám: ${n.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${b(n.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${n.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${n.origin}`;default:return"Érvénytelen bemenet"}}};function ld(){return{localeError:cd()}}const dd=()=>{const t={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"};return n=>{switch(n.code){case"invalid_type":return`Input tidak valid: diharapkan ${n.expected}, diterima ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${O(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${i}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Terlalu kecil: diharapkan ${n.origin} memiliki ${i}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${o[i.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":""}: ${b(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 fd(){return{localeError:dd()}}const md=()=>{const t={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"numero";case"object":{if(Array.isArray(n))return"vettore";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return n=>{switch(n.code){case"invalid_type":return`Input non valido: atteso ${n.expected}, ricevuto ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Input non valido: atteso ${O(n.values[0])}`:`Opzione non valida: atteso uno tra ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Troppo grande: ${n.origin??"valore"} deve avere ${i}${n.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Troppo piccolo: ${n.origin} deve avere ${i}${n.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${n.origin} deve essere ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Invalid ${o[i.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"}: ${b(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 pd(){return{localeError:md()}}const gd=()=>{const t={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"数値";case"object":{if(Array.isArray(n))return"配列";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"};return n=>{switch(n.code){case"invalid_type":return`無効な入力: ${n.expected}が期待されましたが、${r(n.input)}が入力されました`;case"invalid_value":return n.values.length===1?`無効な入力: ${O(n.values[0])}が期待されました`:`無効な選択: ${b(n.values,"、")}のいずれかである必要があります`;case"too_big":{const i=n.inclusive?"以下である":"より小さい",a=e(n.origin);return a?`大きすぎる値: ${n.origin??"値"}は${n.maximum.toString()}${a.unit??"要素"}${i}必要があります`:`大きすぎる値: ${n.origin??"値"}は${n.maximum.toString()}${i}必要があります`}case"too_small":{const i=n.inclusive?"以上である":"より大きい",a=e(n.origin);return a?`小さすぎる値: ${n.origin}は${n.minimum.toString()}${a.unit}${i}必要があります`:`小さすぎる値: ${n.origin}は${n.minimum.toString()}${i}必要があります`}case"invalid_format":{const i=n;return i.format==="starts_with"?`無効な文字列: "${i.prefix}"で始まる必要があります`:i.format==="ends_with"?`無効な文字列: "${i.suffix}"で終わる必要があります`:i.format==="includes"?`無効な文字列: "${i.includes}"を含む必要があります`:i.format==="regex"?`無効な文字列: パターン${i.pattern}に一致する必要があります`:`無効な${o[i.format]??n.format}`}case"not_multiple_of":return`無効な数値: ${n.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${n.keys.length>1?"群":""}: ${b(n.keys,"、")}`;case"invalid_key":return`${n.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${n.origin}内の無効な値`;default:return"無効な入力"}}};function hd(){return{localeError:gd()}}const vd=()=>{const t={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"មិនមែនជាលេខ (NaN)":"លេខ";case"object":{if(Array.isArray(n))return"អារេ (Array)";if(n===null)return"គ្មានតម្លៃ (null)";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"};return n=>{switch(n.code){case"invalid_type":return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${n.expected} ប៉ុន្តែទទួលបាន ${r(n.input)}`;case"invalid_value":return n.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${O(n.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`ធំពេក៖ ត្រូវការ ${n.origin??"តម្លៃ"} ${i} ${n.maximum.toString()} ${a.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${n.origin??"តម្លៃ"} ${i} ${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`តូចពេក៖ ត្រូវការ ${n.origin} ${i} ${n.minimum.toString()} ${a.unit}`:`តូចពេក៖ ត្រូវការ ${n.origin} ${i} ${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${i.prefix}"`:i.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${i.suffix}"`:i.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${i.includes}"`:i.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${i.pattern}`:`មិនត្រឹមត្រូវ៖ ${o[i.format]??n.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${n.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${b(n.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function yd(){return{localeError:vd()}}const bd=()=>{const t={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"};return n=>{switch(n.code){case"invalid_type":return`잘못된 입력: 예상 타입은 ${n.expected}, 받은 타입은 ${r(n.input)}입니다`;case"invalid_value":return n.values.length===1?`잘못된 입력: 값은 ${O(n.values[0])} 이어야 합니다`:`잘못된 옵션: ${b(n.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const i=n.inclusive?"이하":"미만",a=i==="미만"?"이어야 합니다":"여야 합니다",u=e(n.origin),s=u?.unit??"요소";return u?`${n.origin??"값"}이 너무 큽니다: ${n.maximum.toString()}${s} ${i}${a}`:`${n.origin??"값"}이 너무 큽니다: ${n.maximum.toString()} ${i}${a}`}case"too_small":{const i=n.inclusive?"이상":"초과",a=i==="이상"?"이어야 합니다":"여야 합니다",u=e(n.origin),s=u?.unit??"요소";return u?`${n.origin??"값"}이 너무 작습니다: ${n.minimum.toString()}${s} ${i}${a}`:`${n.origin??"값"}이 너무 작습니다: ${n.minimum.toString()} ${i}${a}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`잘못된 문자열: "${i.prefix}"(으)로 시작해야 합니다`:i.format==="ends_with"?`잘못된 문자열: "${i.suffix}"(으)로 끝나야 합니다`:i.format==="includes"?`잘못된 문자열: "${i.includes}"을(를) 포함해야 합니다`:i.format==="regex"?`잘못된 문자열: 정규식 ${i.pattern} 패턴과 일치해야 합니다`:`잘못된 ${o[i.format]??n.format}`}case"not_multiple_of":return`잘못된 숫자: ${n.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${b(n.keys,", ")}`;case"invalid_key":return`잘못된 키: ${n.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${n.origin}`;default:return"잘못된 입력"}}};function $d(){return{localeError:bd()}}const wd=()=>{const t={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"број";case"object":{if(Array.isArray(n))return"низа";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"};return n=>{switch(n.code){case"invalid_type":return`Грешен внес: се очекува ${n.expected}, примено ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Invalid input: expected ${O(n.values[0])}`:`Грешана опција: се очекува една ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Премногу голем: се очекува ${n.origin??"вредноста"} да има ${i}${n.maximum.toString()} ${a.unit??"елементи"}`:`Премногу голем: се очекува ${n.origin??"вредноста"} да биде ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Премногу мал: се очекува ${n.origin} да има ${i}${n.minimum.toString()} ${a.unit}`:`Премногу мал: се очекува ${n.origin} да биде ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Неважечка низа: мора да започнува со "${i.prefix}"`:i.format==="ends_with"?`Неважечка низа: мора да завршува со "${i.suffix}"`:i.format==="includes"?`Неважечка низа: мора да вклучува "${i.includes}"`:i.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${i.pattern}`:`Invalid ${o[i.format]??n.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${b(n.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${n.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${n.origin}`;default:return"Грешен внес"}}};function _d(){return{localeError:wd()}}const Id=()=>{const t={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"nombor";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return n=>{switch(n.code){case"invalid_type":return`Input tidak sah: dijangka ${n.expected}, diterima ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${O(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Terlalu besar: dijangka ${n.origin??"nilai"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Terlalu kecil: dijangka ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${o[i.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${b(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 kd(){return{localeError:Id()}}const Sd=()=>{const t={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"getal";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return n=>{switch(n.code){case"invalid_type":return`Ongeldige invoer: verwacht ${n.expected}, ontving ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${O(n.values[0])}`:`Ongeldige optie: verwacht één van ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Te lang: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} ${a.unit??"elementen"} bevat`:`Te lang: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} is`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Te kort: verwacht dat ${n.origin} ${i}${n.minimum.toString()} ${a.unit} bevat`:`Te kort: verwacht dat ${n.origin} ${i}${n.minimum.toString()} is`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${o[i.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":""}: ${b(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 Od(){return{localeError:Sd()}}const zd=()=>{const t={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"tall";case"object":{if(Array.isArray(n))return"liste";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return n=>{switch(n.code){case"invalid_type":return`Ugyldig input: forventet ${n.expected}, fikk ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${O(n.values[0])}`:`Ugyldig valg: forventet en av ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`For stor(t): forventet ${n.origin??"value"} til å ha ${i}${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til å ha ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`For lite(n): forventet ${n.origin} til å ha ${i}${n.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${n.origin} til å ha ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Ugyldig streng: må starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: må ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: må inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: må matche mønsteret ${i.pattern}`:`Ugyldig ${o[i.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${b(n.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function xd(){return{localeError:zd()}}const Nd=()=>{const t={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"numara";case"object":{if(Array.isArray(n))return"saf";if(n===null)return"gayb";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"giren",email:"epostagâh",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âmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"};return n=>{switch(n.code){case"invalid_type":return`Fâsit giren: umulan ${n.expected}, alınan ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Fâsit giren: umulan ${O(n.values[0])}`:`Fâsit tercih: mûteberler ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Fazla büyük: ${n.origin??"value"}, ${i}${n.maximum.toString()} ${a.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${n.origin??"value"}, ${i}${n.maximum.toString()} olmalıydı.`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Fazla küçük: ${n.origin}, ${i}${n.minimum.toString()} ${a.unit} sahip olmalıydı.`:`Fazla küçük: ${n.origin}, ${i}${n.minimum.toString()} olmalıydı.`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Fâsit metin: "${i.prefix}" ile başlamalı.`:i.format==="ends_with"?`Fâsit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`Fâsit metin: "${i.includes}" ihtivâ etmeli.`:i.format==="regex"?`Fâsit metin: ${i.pattern} nakşına uymalı.`:`Fâsit ${o[i.format]??n.format}`}case"not_multiple_of":return`Fâsit sayı: ${n.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${n.keys.length>1?"s":""}: ${b(n.keys,", ")}`;case"invalid_key":return`${n.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${n.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function Td(){return{localeError:Nd()}}const Ud=()=>{const t={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"عدد";case"object":{if(Array.isArray(n))return"ارې";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"};return n=>{switch(n.code){case"invalid_type":return`ناسم ورودي: باید ${n.expected} وای, مګر ${r(n.input)} ترلاسه شو`;case"invalid_value":return n.values.length===1?`ناسم ورودي: باید ${O(n.values[0])} وای`:`ناسم انتخاب: باید یو له ${b(n.values,"|")} څخه وای`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`ډیر لوی: ${n.origin??"ارزښت"} باید ${i}${n.maximum.toString()} ${a.unit??"عنصرونه"} ولري`:`ډیر لوی: ${n.origin??"ارزښت"} باید ${i}${n.maximum.toString()} وي`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`ډیر کوچنی: ${n.origin} باید ${i}${n.minimum.toString()} ${a.unit} ولري`:`ډیر کوچنی: ${n.origin} باید ${i}${n.minimum.toString()} وي`}case"invalid_format":{const i=n;return i.format==="starts_with"?`ناسم متن: باید د "${i.prefix}" سره پیل شي`:i.format==="ends_with"?`ناسم متن: باید د "${i.suffix}" سره پای ته ورسيږي`:i.format==="includes"?`ناسم متن: باید "${i.includes}" ولري`:i.format==="regex"?`ناسم متن: باید د ${i.pattern} سره مطابقت ولري`:`${o[i.format]??n.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${n.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${n.keys.length>1?"کلیډونه":"کلیډ"}: ${b(n.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${n.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${n.origin} کې`;default:return"ناسمه ورودي"}}};function jd(){return{localeError:Ud()}}const Ed=()=>{const t={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"liczba";case"object":{if(Array.isArray(n))return"tablica";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"};return n=>{switch(n.code){case"invalid_type":return`Nieprawidłowe dane wejściowe: oczekiwano ${n.expected}, otrzymano ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${O(n.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Za duża wartość: oczekiwano, że ${n.origin??"wartość"} będzie mieć ${i}${n.maximum.toString()} ${a.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${n.origin??"wartość"} będzie wynosić ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Za mała wartość: oczekiwano, że ${n.origin??"wartość"} będzie mieć ${i}${n.minimum.toString()} ${a.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${n.origin??"wartość"} będzie wynosić ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${i.prefix}"`:i.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${i.suffix}"`:i.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${i.includes}"`:i.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${i.pattern}`:`Nieprawidłow(y/a/e) ${o[i.format]??n.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${b(n.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${n.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${n.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function Dd(){return{localeError:Ed()}}const Pd=()=>{const t={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"número";case"object":{if(Array.isArray(n))return"array";if(n===null)return"nulo";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return n=>{switch(n.code){case"invalid_type":return`Tipo inválido: esperado ${n.expected}, recebido ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Entrada inválida: esperado ${O(n.values[0])}`:`Opção inválida: esperada uma das ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${i}${n.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Muito pequeno: esperado que ${n.origin} tivesse ${i}${n.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Texto inválido: deve começar com "${i.prefix}"`:i.format==="ends_with"?`Texto inválido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inválido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inválido: deve corresponder ao padrão ${i.pattern}`:`${o[i.format]??n.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${b(n.keys,", ")}`;case"invalid_key":return`Chave inválida em ${n.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${n.origin}`;default:return"Campo inválido"}}};function Ad(){return{localeError:Pd()}}function Mi(t,e,r,o){const n=Math.abs(t),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?e:i>=2&&i<=4?r:o}const Zd=()=>{const t={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"число";case"object":{if(Array.isArray(n))return"массив";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"};return n=>{switch(n.code){case"invalid_type":return`Неверный ввод: ожидалось ${n.expected}, получено ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Неверный ввод: ожидалось ${O(n.values[0])}`:`Неверный вариант: ожидалось одно из ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);if(a){const u=Number(n.maximum),s=Mi(u,a.unit.one,a.unit.few,a.unit.many);return`Слишком большое значение: ожидалось, что ${n.origin??"значение"} будет иметь ${i}${n.maximum.toString()} ${s}`}return`Слишком большое значение: ожидалось, что ${n.origin??"значение"} будет ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);if(a){const u=Number(n.minimum),s=Mi(u,a.unit.one,a.unit.few,a.unit.many);return`Слишком маленькое значение: ожидалось, что ${n.origin} будет иметь ${i}${n.minimum.toString()} ${s}`}return`Слишком маленькое значение: ожидалось, что ${n.origin} будет ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Неверная строка: должна начинаться с "${i.prefix}"`:i.format==="ends_with"?`Неверная строка: должна заканчиваться на "${i.suffix}"`:i.format==="includes"?`Неверная строка: должна содержать "${i.includes}"`:i.format==="regex"?`Неверная строка: должна соответствовать шаблону ${i.pattern}`:`Неверный ${o[i.format]??n.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${n.divisor}`;case"unrecognized_keys":return`Нераспознанн${n.keys.length>1?"ые":"ый"} ключ${n.keys.length>1?"и":""}: ${b(n.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${n.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${n.origin}`;default:return"Неверные входные данные"}}};function Md(){return{localeError:Zd()}}const Cd=()=>{const t={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"število";case"object":{if(Array.isArray(n))return"tabela";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"};return n=>{switch(n.code){case"invalid_type":return`Neveljaven vnos: pričakovano ${n.expected}, prejeto ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Neveljaven vnos: pričakovano ${O(n.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Preveliko: pričakovano, da bo ${n.origin??"vrednost"} imelo ${i}${n.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${n.origin??"vrednost"} ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Premajhno: pričakovano, da bo ${n.origin} imelo ${i}${n.minimum.toString()} ${a.unit}`:`Premajhno: pričakovano, da bo ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Neveljaven niz: mora se začeti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se končati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${o[i.format]??n.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i ključi":" ključ"}: ${b(n.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function Rd(){return{localeError:Cd()}}const Ld=()=>{const t={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"antal";case"object":{if(Array.isArray(n))return"lista";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return n=>{switch(n.code){case"invalid_type":return`Ogiltig inmatning: förväntat ${n.expected}, fick ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ogiltig inmatning: förväntat ${O(n.values[0])}`:`Ogiltigt val: förväntade en av ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`För stor(t): förväntade ${n.origin??"värdet"} att ha ${i}${n.maximum.toString()} ${a.unit??"element"}`:`För stor(t): förväntat ${n.origin??"värdet"} att ha ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`För lite(t): förväntade ${n.origin??"värdet"} att ha ${i}${n.minimum.toString()} ${a.unit}`:`För lite(t): förväntade ${n.origin??"värdet"} att ha ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Ogiltig sträng: måste börja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig sträng: måste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig sträng: måste innehålla "${i.includes}"`:i.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${i.pattern}"`:`Ogiltig(t) ${o[i.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${b(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${n.origin??"värdet"}`;default:return"Ogiltig input"}}};function Wd(){return{localeError:Ld()}}const Bd=()=>{const t={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"எண் அல்லாதது":"எண்";case"object":{if(Array.isArray(n))return"அணி";if(n===null)return"வெறுமை";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"};return n=>{switch(n.code){case"invalid_type":return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${n.expected}, பெறப்பட்டது ${r(n.input)}`;case"invalid_value":return n.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${O(n.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${b(n.values,"|")} இல் ஒன்று`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??"மதிப்பு"} ${i}${n.maximum.toString()} ${a.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??"மதிப்பு"} ${i}${n.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${i}${n.minimum.toString()} ${a.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${i}${n.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const i=n;return i.format==="starts_with"?`தவறான சரம்: "${i.prefix}" இல் தொடங்க வேண்டும்`:i.format==="ends_with"?`தவறான சரம்: "${i.suffix}" இல் முடிவடைய வேண்டும்`:i.format==="includes"?`தவறான சரம்: "${i.includes}" ஐ உள்ளடக்க வேண்டும்`:i.format==="regex"?`தவறான சரம்: ${i.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${o[i.format]??n.format}`}case"not_multiple_of":return`தவறான எண்: ${n.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${n.keys.length>1?"கள்":""}: ${b(n.keys,", ")}`;case"invalid_key":return`${n.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${n.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function Fd(){return{localeError:Bd()}}const Jd=()=>{const t={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"ไม่ใช่ตัวเลข (NaN)":"ตัวเลข";case"object":{if(Array.isArray(n))return"อาร์เรย์ (Array)";if(n===null)return"ไม่มีค่า (null)";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"};return n=>{switch(n.code){case"invalid_type":return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${n.expected} แต่ได้รับ ${r(n.input)}`;case"invalid_value":return n.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${O(n.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"ไม่เกิน":"น้อยกว่า",a=e(n.origin);return a?`เกินกำหนด: ${n.origin??"ค่า"} ควรมี${i} ${n.maximum.toString()} ${a.unit??"รายการ"}`:`เกินกำหนด: ${n.origin??"ค่า"} ควรมี${i} ${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?"อย่างน้อย":"มากกว่า",a=e(n.origin);return a?`น้อยกว่ากำหนด: ${n.origin} ควรมี${i} ${n.minimum.toString()} ${a.unit}`:`น้อยกว่ากำหนด: ${n.origin} ควรมี${i} ${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${i.prefix}"`:i.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${i.suffix}"`:i.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${i.includes}" อยู่ในข้อความ`:i.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${i.pattern}`:`รูปแบบไม่ถูกต้อง: ${o[i.format]??n.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${n.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${b(n.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${n.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${n.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function Vd(){return{localeError:Jd()}}const Gd=t=>{const e=typeof t;switch(e){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return e},qd=()=>{const t={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function e(o){return t[o]??null}const 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üre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"};return o=>{switch(o.code){case"invalid_type":return`Geçersiz değer: beklenen ${o.expected}, alınan ${Gd(o.input)}`;case"invalid_value":return o.values.length===1?`Geçersiz değer: beklenen ${O(o.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${b(o.values,"|")}`;case"too_big":{const n=o.inclusive?"<=":"<",i=e(o.origin);return i?`Çok büyük: beklenen ${o.origin??"değer"} ${n}${o.maximum.toString()} ${i.unit??"öğe"}`:`Çok büyük: beklenen ${o.origin??"değer"} ${n}${o.maximum.toString()}`}case"too_small":{const n=o.inclusive?">=":">",i=e(o.origin);return i?`Çok küçük: beklenen ${o.origin} ${n}${o.minimum.toString()} ${i.unit}`:`Çok küçük: beklenen ${o.origin} ${n}${o.minimum.toString()}`}case"invalid_format":{const n=o;return n.format==="starts_with"?`Geçersiz metin: "${n.prefix}" ile başlamalı`:n.format==="ends_with"?`Geçersiz metin: "${n.suffix}" ile bitmeli`:n.format==="includes"?`Geçersiz metin: "${n.includes}" içermeli`:n.format==="regex"?`Geçersiz metin: ${n.pattern} desenine uymalı`:`Geçersiz ${r[n.format]??o.format}`}case"not_multiple_of":return`Geçersiz sayı: ${o.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${o.keys.length>1?"lar":""}: ${b(o.keys,", ")}`;case"invalid_key":return`${o.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${o.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function Kd(){return{localeError:qd()}}const Yd=()=>{const t={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"число";case"object":{if(Array.isArray(n))return"масив";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"};return n=>{switch(n.code){case"invalid_type":return`Неправильні вхідні дані: очікується ${n.expected}, отримано ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Неправильні вхідні дані: очікується ${O(n.values[0])}`:`Неправильна опція: очікується одне з ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Занадто велике: очікується, що ${n.origin??"значення"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"елементів"}`:`Занадто велике: очікується, що ${n.origin??"значення"} буде ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Занадто мале: очікується, що ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Занадто мале: очікується, що ${n.origin} буде ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Неправильний рядок: повинен починатися з "${i.prefix}"`:i.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${i.suffix}"`:i.format==="includes"?`Неправильний рядок: повинен містити "${i.includes}"`:i.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${i.pattern}`:`Неправильний ${o[i.format]??n.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${n.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${n.keys.length>1?"і":""}: ${b(n.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${n.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${n.origin}`;default:return"Неправильні вхідні дані"}}};function Xd(){return{localeError:Yd()}}const Hd=()=>{const t={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"نمبر";case"object":{if(Array.isArray(n))return"آرے";if(n===null)return"نل";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"};return n=>{switch(n.code){case"invalid_type":return`غلط ان پٹ: ${n.expected} متوقع تھا، ${r(n.input)} موصول ہوا`;case"invalid_value":return n.values.length===1?`غلط ان پٹ: ${O(n.values[0])} متوقع تھا`:`غلط آپشن: ${b(n.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`بہت بڑا: ${n.origin??"ویلیو"} کے ${i}${n.maximum.toString()} ${a.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${n.origin??"ویلیو"} کا ${i}${n.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`بہت چھوٹا: ${n.origin} کے ${i}${n.minimum.toString()} ${a.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${n.origin} کا ${i}${n.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const i=n;return i.format==="starts_with"?`غلط سٹرنگ: "${i.prefix}" سے شروع ہونا چاہیے`:i.format==="ends_with"?`غلط سٹرنگ: "${i.suffix}" پر ختم ہونا چاہیے`:i.format==="includes"?`غلط سٹرنگ: "${i.includes}" شامل ہونا چاہیے`:i.format==="regex"?`غلط سٹرنگ: پیٹرن ${i.pattern} سے میچ ہونا چاہیے`:`غلط ${o[i.format]??n.format}`}case"not_multiple_of":return`غلط نمبر: ${n.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${n.keys.length>1?"ز":""}: ${b(n.keys,"، ")}`;case"invalid_key":return`${n.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${n.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function Qd(){return{localeError:Hd()}}const ef=()=>{const t={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"số";case"object":{if(Array.isArray(n))return"mảng";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"};return n=>{switch(n.code){case"invalid_type":return`Đầu vào không hợp lệ: mong đợi ${n.expected}, nhận được ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Đầu vào không hợp lệ: mong đợi ${O(n.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`Quá lớn: mong đợi ${n.origin??"giá trị"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"phần tử"}`:`Quá lớn: mong đợi ${n.origin??"giá trị"} ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`Quá nhỏ: mong đợi ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Quá nhỏ: mong đợi ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${i.prefix}"`:i.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${i.suffix}"`:i.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${i.includes}"`:i.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${i.pattern}`:`${o[i.format]??n.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${n.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${b(n.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${n.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${n.origin}`;default:return"Đầu vào không hợp lệ"}}};function tf(){return{localeError:ef()}}const nf=()=>{const t={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"非数字(NaN)":"数字";case"object":{if(Array.isArray(n))return"数组";if(n===null)return"空值(null)";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"};return n=>{switch(n.code){case"invalid_type":return`无效输入:期望 ${n.expected},实际接收 ${r(n.input)}`;case"invalid_value":return n.values.length===1?`无效输入:期望 ${O(n.values[0])}`:`无效选项:期望以下之一 ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`数值过大:期望 ${n.origin??"值"} ${i}${n.maximum.toString()} ${a.unit??"个元素"}`:`数值过大:期望 ${n.origin??"值"} ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`数值过小:期望 ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`数值过小:期望 ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`无效字符串:必须以 "${i.prefix}" 开头`:i.format==="ends_with"?`无效字符串:必须以 "${i.suffix}" 结尾`:i.format==="includes"?`无效字符串:必须包含 "${i.includes}"`:i.format==="regex"?`无效字符串:必须满足正则表达式 ${i.pattern}`:`无效${o[i.format]??n.format}`}case"not_multiple_of":return`无效数字:必须是 ${n.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${b(n.keys,", ")}`;case"invalid_key":return`${n.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${n.origin} 中包含无效值(value)`;default:return"无效输入"}}};function rf(){return{localeError:nf()}}const of=()=>{const t={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function e(n){return t[n]??null}const r=n=>{const i=typeof n;switch(i){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return i},o={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"};return n=>{switch(n.code){case"invalid_type":return`無效的輸入值:預期為 ${n.expected},但收到 ${r(n.input)}`;case"invalid_value":return n.values.length===1?`無效的輸入值:預期為 ${O(n.values[0])}`:`無效的選項:預期為以下其中之一 ${b(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",a=e(n.origin);return a?`數值過大:預期 ${n.origin??"值"} 應為 ${i}${n.maximum.toString()} ${a.unit??"個元素"}`:`數值過大:預期 ${n.origin??"值"} 應為 ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",a=e(n.origin);return a?`數值過小:預期 ${n.origin} 應為 ${i}${n.minimum.toString()} ${a.unit}`:`數值過小:預期 ${n.origin} 應為 ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`無效的字串:必須以 "${i.prefix}" 開頭`:i.format==="ends_with"?`無效的字串:必須以 "${i.suffix}" 結尾`:i.format==="includes"?`無效的字串:必須包含 "${i.includes}"`:i.format==="regex"?`無效的字串:必須符合格式 ${i.pattern}`:`無效的 ${o[i.format]??n.format}`}case"not_multiple_of":return`無效的數字:必須為 ${n.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${n.keys.length>1?"們":""}:${b(n.keys,"、")}`;case"invalid_key":return`${n.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${n.origin} 中有無效的值`;default:return"無效的輸入值"}}};function af(){return{localeError:of()}}const wu=Object.freeze(Object.defineProperty({__proto__:null,ar:Pl,az:Zl,be:Cl,ca:Ll,cs:Bl,de:Jl,en:$u,eo:Yl,es:Hl,fa:ed,fi:nd,fr:id,frCA:ad,he:sd,hu:ld,id:fd,it:pd,ja:hd,kh:yd,ko:$d,mk:_d,ms:kd,nl:Od,no:xd,ota:Td,pl:Dd,ps:jd,pt:Ad,ru:Md,sl:Rd,sv:Wd,ta:Fd,th:Vd,tr:Kd,ua:Xd,ur:Qd,vi:tf,zhCN:rf,zhTW:af},Symbol.toStringTag,{value:"Module"})),_u=Symbol("ZodOutput"),Iu=Symbol("ZodInput");class Jn{constructor(){this._map=new Map,this._idmap=new Map}add(e,...r){const o=r[0];if(this._map.set(e,o),o&&typeof o=="object"&&"id"in o){if(this._idmap.has(o.id))throw new Error(`ID ${o.id} already exists in the registry`);this._idmap.set(o.id,e)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(e){const 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){const r=e._zod.parent;if(r){const o={...this.get(r)??{}};return delete o.id,{...o,...this._map.get(e)}}return this._map.get(e)}has(e){return this._map.has(e)}}function Vn(){return new Jn}const ke=Vn();function ku(t,e){return new t({type:"string",...m(e)})}function Su(t,e){return new t({type:"string",coerce:!0,...m(e)})}function Gn(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...m(e)})}function Ot(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...m(e)})}function qn(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...m(e)})}function Kn(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...m(e)})}function Yn(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...m(e)})}function Xn(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...m(e)})}function Hn(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...m(e)})}function Qn(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...m(e)})}function er(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...m(e)})}function tr(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...m(e)})}function nr(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...m(e)})}function rr(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...m(e)})}function ir(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...m(e)})}function or(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...m(e)})}function ar(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...m(e)})}function ur(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...m(e)})}function sr(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...m(e)})}function cr(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...m(e)})}function lr(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...m(e)})}function dr(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...m(e)})}function fr(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...m(e)})}function mr(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...m(e)})}const Ou={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function zu(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...m(e)})}function xu(t,e){return new t({type:"string",format:"date",check:"string_format",...m(e)})}function Nu(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...m(e)})}function Tu(t,e){return new t({type:"string",format:"duration",check:"string_format",...m(e)})}function Uu(t,e){return new t({type:"number",checks:[],...m(e)})}function ju(t,e){return new t({type:"number",coerce:!0,checks:[],...m(e)})}function Eu(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...m(e)})}function Du(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float32",...m(e)})}function Pu(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float64",...m(e)})}function Au(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"int32",...m(e)})}function Zu(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"uint32",...m(e)})}function Mu(t,e){return new t({type:"boolean",...m(e)})}function Cu(t,e){return new t({type:"boolean",coerce:!0,...m(e)})}function Ru(t,e){return new t({type:"bigint",...m(e)})}function Lu(t,e){return new t({type:"bigint",coerce:!0,...m(e)})}function Wu(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...m(e)})}function Bu(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...m(e)})}function Fu(t,e){return new t({type:"symbol",...m(e)})}function Ju(t,e){return new t({type:"undefined",...m(e)})}function Vu(t,e){return new t({type:"null",...m(e)})}function Gu(t){return new t({type:"any"})}function zt(t){return new t({type:"unknown"})}function qu(t,e){return new t({type:"never",...m(e)})}function Ku(t,e){return new t({type:"void",...m(e)})}function Yu(t,e){return new t({type:"date",...m(e)})}function Xu(t,e){return new t({type:"date",coerce:!0,...m(e)})}function Hu(t,e){return new t({type:"nan",...m(e)})}function Ne(t,e){return new Pn({check:"less_than",...m(e),value:t,inclusive:!1})}function ie(t,e){return new Pn({check:"less_than",...m(e),value:t,inclusive:!0})}function Te(t,e){return new An({check:"greater_than",...m(e),value:t,inclusive:!1})}function Q(t,e){return new An({check:"greater_than",...m(e),value:t,inclusive:!0})}function Qu(t){return Te(0,t)}function es(t){return Ne(0,t)}function ts(t){return ie(0,t)}function ns(t){return Q(0,t)}function rt(t,e){return new Xo({check:"multiple_of",...m(e),value:t})}function Ct(t,e){return new ea({check:"max_size",...m(e),maximum:t})}function it(t,e){return new ta({check:"min_size",...m(e),minimum:t})}function pr(t,e){return new na({check:"size_equals",...m(e),size:t})}function Rt(t,e){return new ra({check:"max_length",...m(e),maximum:t})}function We(t,e){return new ia({check:"min_length",...m(e),minimum:t})}function Lt(t,e){return new oa({check:"length_equals",...m(e),length:t})}function gr(t,e){return new aa({check:"string_format",format:"regex",...m(e),pattern:t})}function hr(t){return new ua({check:"string_format",format:"lowercase",...m(t)})}function vr(t){return new sa({check:"string_format",format:"uppercase",...m(t)})}function yr(t,e){return new ca({check:"string_format",format:"includes",...m(e),includes:t})}function br(t,e){return new la({check:"string_format",format:"starts_with",...m(e),prefix:t})}function $r(t,e){return new da({check:"string_format",format:"ends_with",...m(e),suffix:t})}function rs(t,e,r){return new fa({check:"property",property:t,schema:e,...m(r)})}function wr(t,e){return new ma({check:"mime_type",mime:t,...m(e)})}function De(t){return new pa({check:"overwrite",tx:t})}function _r(t){return De(e=>e.normalize(t))}function Ir(){return De(t=>t.trim())}function kr(){return De(t=>t.toLowerCase())}function Sr(){return De(t=>t.toUpperCase())}function Or(t,e,r){return new t({type:"array",element:e,...m(r)})}function uf(t,e,r){return new t({type:"union",options:e,...m(r)})}function sf(t,e,r,o){return new t({type:"union",options:r,discriminator:e,...m(o)})}function cf(t,e,r){return new t({type:"intersection",left:e,right:r})}function is(t,e,r,o){const n=r instanceof k,i=n?o:r,a=n?r:null;return new t({type:"tuple",items:e,rest:a,...m(i)})}function lf(t,e,r,o){return new t({type:"record",keyType:e,valueType:r,...m(o)})}function df(t,e,r,o){return new t({type:"map",keyType:e,valueType:r,...m(o)})}function ff(t,e,r){return new t({type:"set",valueType:e,...m(r)})}function mf(t,e,r){const o=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new t({type:"enum",entries:o,...m(r)})}function pf(t,e,r){return new t({type:"enum",entries:e,...m(r)})}function gf(t,e,r){return new t({type:"literal",values:Array.isArray(e)?e:[e],...m(r)})}function os(t,e){return new t({type:"file",...m(e)})}function hf(t,e){return new t({type:"transform",transform:e})}function vf(t,e){return new t({type:"optional",innerType:e})}function yf(t,e){return new t({type:"nullable",innerType:e})}function bf(t,e,r){return new t({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():r}})}function $f(t,e,r){return new t({type:"nonoptional",innerType:e,...m(r)})}function wf(t,e){return new t({type:"success",innerType:e})}function _f(t,e,r){return new t({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}function If(t,e,r){return new t({type:"pipe",in:e,out:r})}function kf(t,e){return new t({type:"readonly",innerType:e})}function Sf(t,e,r){return new t({type:"template_literal",parts:e,...m(r)})}function Of(t,e){return new t({type:"lazy",getter:e})}function zf(t,e){return new t({type:"promise",innerType:e})}function as(t,e,r){const o=m(r);return o.abort??(o.abort=!0),new t({type:"custom",check:"custom",fn:e,...o})}function us(t,e,r){return new t({type:"custom",check:"custom",fn:e,...m(r)})}function ss(t,e){const r=m(e);let o=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(o=o.map(d=>typeof d=="string"?d.toLowerCase():d),n=n.map(d=>typeof d=="string"?d.toLowerCase():d));const i=new Set(o),a=new Set(n),u=t.Pipe??Fn,s=t.Boolean??Cn,f=t.String??lt,p=t.Transform??Bn,l=new p({type:"transform",transform:(d,$)=>{let w=d;return r.case!=="sensitive"&&(w=w.toLowerCase()),i.has(w)?!0:a.has(w)?!1:($.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:$.value,inst:l}),{})},error:r.error}),h=new u({type:"pipe",in:new f({type:"string",error:r.error}),out:l,error:r.error});return new u({type:"pipe",in:h,out:new s({type:"boolean",error:r.error}),error:r.error})}function cs(t,e,r,o={}){const n=m(o),i={...m(o),check:"string_format",type:"string",format:e,fn:typeof r=="function"?r:u=>r.test(u),...n};return r instanceof RegExp&&(i.pattern=r),new t(i)}class ls{constructor(e){this._def=e,this.def=e}implement(e){if(typeof e!="function")throw new Error("implement() must be called with a function");const r=(...o)=>{const n=this._def.input?fn(this._def.input,o,void 0,{callee:r}):o;if(!Array.isArray(n))throw new Error("Invalid arguments schema: not an array or tuple schema.");const i=e(...n);return this._def.output?fn(this._def.output,i,void 0,{callee:r}):i};return r}implementAsync(e){if(typeof e!="function")throw new Error("implement() must be called with a function");const r=async(...o)=>{const n=this._def.input?await mn(this._def.input,o,void 0,{callee:r}):o;if(!Array.isArray(n))throw new Error("Invalid arguments schema: not an array or tuple schema.");const i=await e(...n);return this._def.output?mn(this._def.output,i,void 0,{callee:r}):i};return r}input(...e){const r=this.constructor;return Array.isArray(e[0])?new r({type:"function",input:new Mt({type:"tuple",items:e[0],rest:e[1]}),output:this._def.output}):new r({type:"function",input:e[0],output:this._def.output})}output(e){const r=this.constructor;return new r({type:"function",input:this._def.input,output:e})}}function ds(t){return new ls({type:"function",input:Array.isArray(t?.input)?is(Mt,t?.input):t?.input??Or(Ln,zt(St)),output:t?.output??zt(St)})}class gn{constructor(e){this.counter=0,this.metadataRegistry=e?.metadata??ke,this.target=e?.target??"draft-2020-12",this.unrepresentable=e?.unrepresentable??"throw",this.override=e?.override??(()=>{}),this.io=e?.io??"output",this.seen=new Map}process(e,r={path:[],schemaPath:[]}){var o;const n=e._zod.def,i={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},a=this.seen.get(e);if(a)return a.count++,r.schemaPath.includes(e)&&(a.cycle=r.path),a.schema;const u={schema:{},count:1,cycle:void 0,path:r.path};this.seen.set(e,u);const s=e._zod.toJSONSchema?.();if(s)u.schema=s;else{const l={...r,schemaPath:[...r.schemaPath,e],path:r.path},h=e._zod.parent;if(h)u.ref=h,this.process(h,l),this.seen.get(h).isParent=!0;else{const y=u.schema;switch(n.type){case"string":{const d=y;d.type="string";const{minimum:$,maximum:w,format:P,patterns:I,contentEncoding:S}=e._zod.bag;if(typeof $=="number"&&(d.minLength=$),typeof w=="number"&&(d.maxLength=w),P&&(d.format=i[P]??P,d.format===""&&delete d.format),S&&(d.contentEncoding=S),I&&I.size>0){const U=[...I];U.length===1?d.pattern=U[0].source:U.length>1&&(u.schema.allOf=[...U.map(Ie=>({...this.target==="draft-7"?{type:"string"}:{},pattern:Ie.source}))])}break}case"number":{const d=y,{minimum:$,maximum:w,format:P,multipleOf:I,exclusiveMaximum:S,exclusiveMinimum:U}=e._zod.bag;typeof P=="string"&&P.includes("int")?d.type="integer":d.type="number",typeof U=="number"&&(d.exclusiveMinimum=U),typeof $=="number"&&(d.minimum=$,typeof U=="number"&&(U>=$?delete d.minimum:delete d.exclusiveMinimum)),typeof S=="number"&&(d.exclusiveMaximum=S),typeof w=="number"&&(d.maximum=w,typeof S=="number"&&(S<=w?delete d.maximum:delete d.exclusiveMaximum)),typeof I=="number"&&(d.multipleOf=I);break}case"boolean":{const d=y;d.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{y.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{y.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{const d=y,{minimum:$,maximum:w}=e._zod.bag;typeof $=="number"&&(d.minItems=$),typeof w=="number"&&(d.maxItems=w),d.type="array",d.items=this.process(n.element,{...l,path:[...l.path,"items"]});break}case"object":{const d=y;d.type="object",d.properties={};const $=n.shape;for(const I in $)d.properties[I]=this.process($[I],{...l,path:[...l.path,"properties",I]});const w=new Set(Object.keys($)),P=new Set([...w].filter(I=>{const S=n.shape[I]._zod;return this.io==="input"?S.optin===void 0:S.optout===void 0}));P.size>0&&(d.required=Array.from(P)),n.catchall?._zod.def.type==="never"?d.additionalProperties=!1:n.catchall?n.catchall&&(d.additionalProperties=this.process(n.catchall,{...l,path:[...l.path,"additionalProperties"]})):this.io==="output"&&(d.additionalProperties=!1);break}case"union":{const d=y;d.anyOf=n.options.map(($,w)=>this.process($,{...l,path:[...l.path,"anyOf",w]}));break}case"intersection":{const d=y,$=this.process(n.left,{...l,path:[...l.path,"allOf",0]}),w=this.process(n.right,{...l,path:[...l.path,"allOf",1]}),P=S=>"allOf"in S&&Object.keys(S).length===1,I=[...P($)?$.allOf:[$],...P(w)?w.allOf:[w]];d.allOf=I;break}case"tuple":{const d=y;d.type="array";const $=n.items.map((I,S)=>this.process(I,{...l,path:[...l.path,"prefixItems",S]}));if(this.target==="draft-2020-12"?d.prefixItems=$:d.items=$,n.rest){const I=this.process(n.rest,{...l,path:[...l.path,"items"]});this.target==="draft-2020-12"?d.items=I:d.additionalItems=I}n.rest&&(d.items=this.process(n.rest,{...l,path:[...l.path,"items"]}));const{minimum:w,maximum:P}=e._zod.bag;typeof w=="number"&&(d.minItems=w),typeof P=="number"&&(d.maxItems=P);break}case"record":{const d=y;d.type="object",d.propertyNames=this.process(n.keyType,{...l,path:[...l.path,"propertyNames"]}),d.additionalProperties=this.process(n.valueType,{...l,path:[...l.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{const d=y,$=Sn(n.entries);$.every(w=>typeof w=="number")&&(d.type="number"),$.every(w=>typeof w=="string")&&(d.type="string"),d.enum=$;break}case"literal":{const d=y,$=[];for(const w of n.values)if(w===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof w=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");$.push(Number(w))}else $.push(w);if($.length!==0)if($.length===1){const w=$[0];d.type=w===null?"null":typeof w,d.const=w}else $.every(w=>typeof w=="number")&&(d.type="number"),$.every(w=>typeof w=="string")&&(d.type="string"),$.every(w=>typeof w=="boolean")&&(d.type="string"),$.every(w=>w===null)&&(d.type="null"),d.enum=$;break}case"file":{const d=y,$={type:"string",format:"binary",contentEncoding:"binary"},{minimum:w,maximum:P,mime:I}=e._zod.bag;w!==void 0&&($.minLength=w),P!==void 0&&($.maxLength=P),I?I.length===1?($.contentMediaType=I[0],Object.assign(d,$)):d.anyOf=I.map(S=>({...$,contentMediaType:S})):Object.assign(d,$);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{const d=this.process(n.innerType,l);y.anyOf=[d,{type:"null"}];break}case"nonoptional":{this.process(n.innerType,l),u.ref=n.innerType;break}case"success":{const d=y;d.type="boolean";break}case"default":{this.process(n.innerType,l),u.ref=n.innerType,y.default=JSON.parse(JSON.stringify(n.defaultValue));break}case"prefault":{this.process(n.innerType,l),u.ref=n.innerType,this.io==="input"&&(y._prefault=JSON.parse(JSON.stringify(n.defaultValue)));break}case"catch":{this.process(n.innerType,l),u.ref=n.innerType;let d;try{d=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}y.default=d;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{const d=y,$=e._zod.pattern;if(!$)throw new Error("Pattern not found in template literal");d.type="string",d.pattern=$.source;break}case"pipe":{const d=this.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;this.process(d,l),u.ref=d;break}case"readonly":{this.process(n.innerType,l),u.ref=n.innerType,y.readOnly=!0;break}case"promise":{this.process(n.innerType,l),u.ref=n.innerType;break}case"optional":{this.process(n.innerType,l),u.ref=n.innerType;break}case"lazy":{const d=e._zod.innerType;this.process(d,l),u.ref=d;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}}}}const f=this.metadataRegistry.get(e);return f&&Object.assign(u.schema,f),this.io==="input"&&V(e)&&(delete u.schema.examples,delete u.schema.default),this.io==="input"&&u.schema._prefault&&((o=u.schema).default??(o.default=u.schema._prefault)),delete u.schema._prefault,this.seen.get(e).schema}emit(e,r){const o={cycles:r?.cycles??"ref",reused:r?.reused??"inline",external:r?.external??void 0},n=this.seen.get(e);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=p=>{const l=this.target==="draft-2020-12"?"$defs":"definitions";if(o.external){const $=o.external.registry.get(p[0])?.id,w=o.external.uri??(I=>I);if($)return{ref:w($)};const P=p[1].defId??p[1].schema.id??`schema${this.counter++}`;return p[1].defId=P,{defId:P,ref:`${w("__shared")}#/${l}/${P}`}}if(p[1]===n)return{ref:"#"};const y=`#/${l}/`,d=p[1].schema.id??`__schema${this.counter++}`;return{defId:d,ref:y+d}},a=p=>{if(p[1].schema.$ref)return;const l=p[1],{ref:h,defId:y}=i(p);l.def={...l.schema},y&&(l.defId=y);const d=l.schema;for(const $ in d)delete d[$];d.$ref=h};if(o.cycles==="throw")for(const p of this.seen.entries()){const l=p[1];if(l.cycle)throw new Error(`Cycle detected: #/${l.cycle?.join("/")}/<root>
28
28
 
29
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const p of this.seen.entries()){const l=p[1];if(e===p[0]){a(p);continue}if(o.external){const y=o.external.registry.get(p[0])?.id;if(e!==p[0]&&y){a(p);continue}}if(this.metadataRegistry.get(p[0])?.id){a(p);continue}if(l.cycle){a(p);continue}if(l.count>1&&o.reused==="ref"){a(p);continue}}const u=(p,l)=>{const g=this.seen.get(p),y=g.def??g.schema,d={...y};if(g.ref===null)return;const $=g.ref;if(g.ref=null,$){u($,l);const w=this.seen.get($).schema;w.$ref&&l.target==="draft-7"?(y.allOf=y.allOf??[],y.allOf.push(w)):(Object.assign(y,w),Object.assign(y,d))}g.isParent||this.override({zodSchema:p,jsonSchema:y,path:g.path??[]})};for(const p of[...this.seen.entries()].reverse())u(p[0],{target:this.target});const s={};if(this.target==="draft-2020-12"?s.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?s.$schema="http://json-schema.org/draft-07/schema#":console.warn(`Invalid target: ${this.target}`),o.external?.uri){const p=o.external.registry.get(e)?.id;if(!p)throw new Error("Schema is missing an `id` property");s.$id=o.external.uri(p)}Object.assign(s,n.def);const f=o.external?.defs??{};for(const p of this.seen.entries()){const l=p[1];l.def&&l.defId&&(f[l.defId]=l.def)}o.external||Object.keys(f).length>0&&(this.target==="draft-2020-12"?s.$defs=f:s.definitions=f);try{return JSON.parse(JSON.stringify(s))}catch{throw new Error("Error converting schema to JSON.")}}}function ds(t,e){if(t instanceof Fn){const o=new pn(e),n={};for(const u of t._idmap.entries()){const[s,f]=u;o.process(f)}const i={},a={registry:t,uri:e?.uri,defs:n};for(const u of t._idmap.entries()){const[s,f]=u;i[s]=o.emit(f,{...e,external:a})}if(Object.keys(n).length>0){const u=o.target==="draft-2020-12"?"$defs":"definitions";i.__shared={[u]:n}}return{schemas:i}}const r=new pn(e);return r.process(t),r.emit(t,e)}function J(t,e){const r=e??{seen:new Set};if(r.seen.has(t))return!1;r.seen.add(t);const n=t._zod.def;switch(n.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return J(n.element,r);case"object":{for(const i in n.shape)if(J(n.shape[i],r))return!0;return!1}case"union":{for(const i of n.options)if(J(i,r))return!0;return!1}case"intersection":return J(n.left,r)||J(n.right,r);case"tuple":{for(const i of n.items)if(J(i,r))return!0;return!!(n.rest&&J(n.rest,r))}case"record":return J(n.keyType,r)||J(n.valueType,r);case"map":return J(n.keyType,r)||J(n.valueType,r);case"set":return J(n.valueType,r);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return J(n.innerType,r);case"lazy":return J(n.getter(),r);case"default":return J(n.innerType,r);case"prefault":return J(n.innerType,r);case"custom":return!1;case"transform":return!0;case"pipe":return J(n.in,r)||J(n.out,r);case"success":return!1;case"catch":return!1}throw new Error(`Unknown schema type: ${n.type}`)}const Of=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),zf=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:Ga,$ZodArray:Rn,$ZodAsyncError:Me,$ZodBase64:Pa,$ZodBase64URL:Za,$ZodBigInt:Cn,$ZodBigIntFormat:Ba,$ZodBoolean:Mn,$ZodCIDRv4:Ea,$ZodCIDRv6:Da,$ZodCUID:_a,$ZodCUID2:Ia,$ZodCatch:fu,$ZodCheck:F,$ZodCheckBigIntFormat:Ho,$ZodCheckEndsWith:la,$ZodCheckGreaterThan:Pn,$ZodCheckIncludes:sa,$ZodCheckLengthEquals:ia,$ZodCheckLessThan:Dn,$ZodCheckLowerCase:aa,$ZodCheckMaxLength:na,$ZodCheckMaxSize:Qo,$ZodCheckMimeType:fa,$ZodCheckMinLength:ra,$ZodCheckMinSize:ea,$ZodCheckMultipleOf:Yo,$ZodCheckNumberFormat:Xo,$ZodCheckOverwrite:ma,$ZodCheckProperty:da,$ZodCheckRegex:oa,$ZodCheckSizeEquals:ta,$ZodCheckStartsWith:ca,$ZodCheckStringFormat:st,$ZodCheckUpperCase:ua,$ZodCustom:yu,$ZodCustomStringFormat:La,$ZodDate:Ya,$ZodDefault:su,$ZodDiscriminatedUnion:Ha,$ZodE164:Ma,$ZodEmail:ya,$ZodEmoji:$a,$ZodEnum:ru,$ZodError:On,$ZodFile:ou,$ZodFunction:cs,$ZodGUID:ha,$ZodIPv4:Ua,$ZodIPv6:ja,$ZodISODate:xa,$ZodISODateTime:za,$ZodISODuration:Ta,$ZodISOTime:Na,$ZodIntersection:Qa,$ZodJWT:Ra,$ZodKSUID:Oa,$ZodLazy:vu,$ZodLiteral:iu,$ZodMap:tu,$ZodNaN:mu,$ZodNanoID:wa,$ZodNever:qa,$ZodNonOptional:lu,$ZodNull:Va,$ZodNullable:uu,$ZodNumber:Zn,$ZodNumberFormat:Wa,$ZodObject:Xa,$ZodOptional:au,$ZodPipe:Bn,$ZodPrefault:cu,$ZodPromise:hu,$ZodReadonly:pu,$ZodRealError:ut,$ZodRecord:eu,$ZodRegistry:Fn,$ZodSet:nu,$ZodString:ct,$ZodStringFormat:M,$ZodSuccess:du,$ZodSymbol:Fa,$ZodTemplateLiteral:gu,$ZodTransform:Wn,$ZodTuple:Zt,$ZodType:k,$ZodULID:ka,$ZodURL:ba,$ZodUUID:va,$ZodUndefined:Ja,$ZodUnion:Ln,$ZodUnknown:kt,$ZodVoid:Ka,$ZodXID:Sa,$brand:Yi,$constructor:c,$input:_u,$output:wu,Doc:pa,JSONSchema:Of,JSONSchemaGenerator:pn,NEVER:Ki,TimePrecision:Su,_any:Vu,_array:Sr,_base64:cr,_base64url:lr,_bigint:Cu,_boolean:Zu,_catch:$f,_cidrv4:ur,_cidrv6:sr,_coercedBigint:Ru,_coercedBoolean:Mu,_coercedDate:Yu,_coercedNumber:Uu,_coercedString:ku,_cuid:er,_cuid2:tr,_custom:os,_date:Ku,_default:vf,_discriminatedUnion:af,_e164:dr,_email:Vn,_emoji:Hn,_endsWith:br,_enum:df,_file:is,_float32:Eu,_float64:Du,_gt:Ne,_gte:Q,_guid:St,_includes:vr,_int:ju,_int32:Pu,_int64:Lu,_intersection:uf,_ipv4:or,_ipv6:ar,_isoDate:zu,_isoDateTime:Ou,_isoDuration:Nu,_isoTime:xu,_jwt:fr,_ksuid:ir,_lazy:kf,_length:Rt,_literal:mf,_lowercase:gr,_lt:xe,_lte:ne,_map:cf,_max:ne,_maxLength:Ct,_maxSize:Mt,_mime:$r,_min:Q,_minLength:Le,_minSize:rt,_multipleOf:nt,_nan:Xu,_nanoid:Qn,_nativeEnum:ff,_negative:Qu,_never:Gu,_nonnegative:ts,_nonoptional:yf,_nonpositive:es,_normalize:wr,_null:Ju,_nullable:hf,_number:Tu,_optional:gf,_overwrite:Ee,_parse:Nn,_parseAsync:Tn,_pipe:wf,_positive:Hu,_promise:Sf,_property:ns,_readonly:_f,_record:sf,_refine:as,_regex:pr,_safeParse:Un,_safeParseAsync:jn,_set:lf,_size:mr,_startsWith:yr,_string:Iu,_stringFormat:ss,_stringbool:us,_success:bf,_symbol:Bu,_templateLiteral:If,_toLowerCase:Ir,_toUpperCase:kr,_transform:pf,_trim:_r,_tuple:rs,_uint32:Au,_uint64:Wu,_ulid:nr,_undefined:Fu,_union:of,_unknown:Ot,_uppercase:hr,_url:Xn,_uuid:Gn,_uuidv4:qn,_uuidv6:Kn,_uuidv7:Yn,_void:qu,_xid:rr,clone:de,config:Y,flattenError:zn,formatError:xn,function:ls,globalConfig:_t,globalRegistry:Ie,isValidBase64:An,isValidBase64URL:Aa,isValidJWT:Ca,locales:$u,parse:dn,parseAsync:fn,prettifyError:po,regexes:qo,registry:Jn,safeParse:go,safeParseAsync:ho,toDotPath:mo,toJSONSchema:ds,treeifyError:fo,util:wl,version:ga},Symbol.toStringTag,{value:"Module"})),Or=c("ZodISODateTime",(t,e)=>{za.init(t,e),C.init(t,e)});function fs(t){return Ou(Or,t)}const zr=c("ZodISODate",(t,e)=>{xa.init(t,e),C.init(t,e)});function ms(t){return zu(zr,t)}const xr=c("ZodISOTime",(t,e)=>{Na.init(t,e),C.init(t,e)});function ps(t){return xu(xr,t)}const Nr=c("ZodISODuration",(t,e)=>{Ta.init(t,e),C.init(t,e)});function gs(t){return Nu(Nr,t)}const xf=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:zr,ZodISODateTime:Or,ZodISODuration:Nr,ZodISOTime:xr,date:ms,datetime:fs,duration:gs,time:ps},Symbol.toStringTag,{value:"Module"})),hs=(t,e)=>{On.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:r=>xn(t,r)},flatten:{value:r=>zn(t,r)},addIssue:{value:r=>t.issues.push(r)},addIssues:{value:r=>t.issues.push(...r)},isEmpty:{get(){return t.issues.length===0}}})},Nf=c("ZodError",hs),lt=c("ZodError",hs,{Parent:Error}),vs=Nn(lt),ys=Tn(lt),bs=Un(lt),$s=jn(lt),z=c("ZodType",(t,e)=>(k.init(t,e),t.def=e,Object.defineProperty(t,"_def",{value:e}),t.check=(...r)=>t.clone({...e,checks:[...e.checks??[],...r.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),t.clone=(r,o)=>de(t,r,o),t.brand=()=>t,t.register=(r,o)=>(r.add(t,o),t),t.parse=(r,o)=>vs(t,r,o,{callee:t.parse}),t.safeParse=(r,o)=>bs(t,r,o),t.parseAsync=async(r,o)=>ys(t,r,o,{callee:t.parseAsync}),t.safeParseAsync=async(r,o)=>$s(t,r,o),t.spa=t.safeParseAsync,t.refine=(r,o)=>t.check(oc(r,o)),t.superRefine=r=>t.check(ac(r)),t.overwrite=r=>t.check(Ee(r)),t.optional=()=>xt(t),t.nullable=()=>Nt(t),t.nullish=()=>xt(Nt(t)),t.nonoptional=r=>Gs(t,r),t.array=()=>dt(t),t.or=r=>L([t,r]),t.and=r=>Ps(t,r),t.transform=r=>Tt(t,ei(r)),t.default=r=>Fs(t,r),t.prefault=r=>Vs(t,r),t.catch=r=>Ys(t,r),t.pipe=r=>Tt(t,r),t.readonly=()=>Qs(t),t.describe=r=>{const o=t.clone();return Ie.add(o,{description:r}),o},Object.defineProperty(t,"description",{get(){return Ie.get(t)?.description},configurable:!0}),t.meta=(...r)=>{if(r.length===0)return Ie.get(t);const o=t.clone();return Ie.add(o,r[0]),o},t.isOptional=()=>t.safeParse(void 0).success,t.isNullable=()=>t.safeParse(null).success,t)),Tr=c("_ZodString",(t,e)=>{ct.init(t,e),z.init(t,e);const r=t._zod.bag;t.format=r.format??null,t.minLength=r.minimum??null,t.maxLength=r.maximum??null,t.regex=(...o)=>t.check(pr(...o)),t.includes=(...o)=>t.check(vr(...o)),t.startsWith=(...o)=>t.check(yr(...o)),t.endsWith=(...o)=>t.check(br(...o)),t.min=(...o)=>t.check(Le(...o)),t.max=(...o)=>t.check(Ct(...o)),t.length=(...o)=>t.check(Rt(...o)),t.nonempty=(...o)=>t.check(Le(1,...o)),t.lowercase=o=>t.check(gr(o)),t.uppercase=o=>t.check(hr(o)),t.trim=()=>t.check(_r()),t.normalize=(...o)=>t.check(wr(...o)),t.toLowerCase=()=>t.check(Ir()),t.toUpperCase=()=>t.check(kr())}),Lt=c("ZodString",(t,e)=>{ct.init(t,e),Tr.init(t,e),t.email=r=>t.check(Vn(Ur,r)),t.url=r=>t.check(Xn(jr,r)),t.jwt=r=>t.check(fr(Gr,r)),t.emoji=r=>t.check(Hn(Er,r)),t.guid=r=>t.check(St(zt,r)),t.uuid=r=>t.check(Gn(fe,r)),t.uuidv4=r=>t.check(qn(fe,r)),t.uuidv6=r=>t.check(Kn(fe,r)),t.uuidv7=r=>t.check(Yn(fe,r)),t.nanoid=r=>t.check(Qn(Dr,r)),t.guid=r=>t.check(St(zt,r)),t.cuid=r=>t.check(er(Pr,r)),t.cuid2=r=>t.check(tr(Ar,r)),t.ulid=r=>t.check(nr(Zr,r)),t.base64=r=>t.check(cr(Fr,r)),t.base64url=r=>t.check(lr(Jr,r)),t.xid=r=>t.check(rr(Mr,r)),t.ksuid=r=>t.check(ir(Cr,r)),t.ipv4=r=>t.check(or(Rr,r)),t.ipv6=r=>t.check(ar(Lr,r)),t.cidrv4=r=>t.check(ur(Wr,r)),t.cidrv6=r=>t.check(sr(Br,r)),t.e164=r=>t.check(dr(Vr,r)),t.datetime=r=>t.check(fs(r)),t.date=r=>t.check(ms(r)),t.time=r=>t.check(ps(r)),t.duration=r=>t.check(gs(r))});function P(t){return Iu(Lt,t)}const C=c("ZodStringFormat",(t,e)=>{M.init(t,e),Tr.init(t,e)}),Ur=c("ZodEmail",(t,e)=>{ya.init(t,e),C.init(t,e)});function Tf(t){return Vn(Ur,t)}const zt=c("ZodGUID",(t,e)=>{ha.init(t,e),C.init(t,e)});function Uf(t){return St(zt,t)}const fe=c("ZodUUID",(t,e)=>{va.init(t,e),C.init(t,e)});function jf(t){return Gn(fe,t)}function Ef(t){return qn(fe,t)}function Df(t){return Kn(fe,t)}function Pf(t){return Yn(fe,t)}const jr=c("ZodURL",(t,e)=>{ba.init(t,e),C.init(t,e)});function Af(t){return Xn(jr,t)}const Er=c("ZodEmoji",(t,e)=>{$a.init(t,e),C.init(t,e)});function Zf(t){return Hn(Er,t)}const Dr=c("ZodNanoID",(t,e)=>{wa.init(t,e),C.init(t,e)});function Mf(t){return Qn(Dr,t)}const Pr=c("ZodCUID",(t,e)=>{_a.init(t,e),C.init(t,e)});function Cf(t){return er(Pr,t)}const Ar=c("ZodCUID2",(t,e)=>{Ia.init(t,e),C.init(t,e)});function Rf(t){return tr(Ar,t)}const Zr=c("ZodULID",(t,e)=>{ka.init(t,e),C.init(t,e)});function Lf(t){return nr(Zr,t)}const Mr=c("ZodXID",(t,e)=>{Sa.init(t,e),C.init(t,e)});function Wf(t){return rr(Mr,t)}const Cr=c("ZodKSUID",(t,e)=>{Oa.init(t,e),C.init(t,e)});function Bf(t){return ir(Cr,t)}const Rr=c("ZodIPv4",(t,e)=>{Ua.init(t,e),C.init(t,e)});function Ff(t){return or(Rr,t)}const Lr=c("ZodIPv6",(t,e)=>{ja.init(t,e),C.init(t,e)});function Jf(t){return ar(Lr,t)}const Wr=c("ZodCIDRv4",(t,e)=>{Ea.init(t,e),C.init(t,e)});function Vf(t){return ur(Wr,t)}const Br=c("ZodCIDRv6",(t,e)=>{Da.init(t,e),C.init(t,e)});function Gf(t){return sr(Br,t)}const Fr=c("ZodBase64",(t,e)=>{Pa.init(t,e),C.init(t,e)});function qf(t){return cr(Fr,t)}const Jr=c("ZodBase64URL",(t,e)=>{Za.init(t,e),C.init(t,e)});function Kf(t){return lr(Jr,t)}const Vr=c("ZodE164",(t,e)=>{Ma.init(t,e),C.init(t,e)});function Yf(t){return dr(Vr,t)}const Gr=c("ZodJWT",(t,e)=>{Ra.init(t,e),C.init(t,e)});function Xf(t){return fr(Gr,t)}const ws=c("ZodCustomStringFormat",(t,e)=>{La.init(t,e),C.init(t,e)});function Hf(t,e,r={}){return ss(ws,t,e,r)}const Wt=c("ZodNumber",(t,e)=>{Zn.init(t,e),z.init(t,e),t.gt=(o,n)=>t.check(Ne(o,n)),t.gte=(o,n)=>t.check(Q(o,n)),t.min=(o,n)=>t.check(Q(o,n)),t.lt=(o,n)=>t.check(xe(o,n)),t.lte=(o,n)=>t.check(ne(o,n)),t.max=(o,n)=>t.check(ne(o,n)),t.int=o=>t.check(ce(o)),t.safe=o=>t.check(ce(o)),t.positive=o=>t.check(Ne(0,o)),t.nonnegative=o=>t.check(Q(0,o)),t.negative=o=>t.check(xe(0,o)),t.nonpositive=o=>t.check(ne(0,o)),t.multipleOf=(o,n)=>t.check(nt(o,n)),t.step=(o,n)=>t.check(nt(o,n)),t.finite=()=>t;const r=t._zod.bag;t.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),t.isFinite=!0,t.format=r.format??null});function x(t){return Tu(Wt,t)}const Fe=c("ZodNumberFormat",(t,e)=>{Wa.init(t,e),Wt.init(t,e)});function ce(t){return ju(Fe,t)}function Qf(t){return Eu(Fe,t)}function em(t){return Du(Fe,t)}function tm(t){return Pu(Fe,t)}function nm(t){return Au(Fe,t)}const Bt=c("ZodBoolean",(t,e)=>{Mn.init(t,e),z.init(t,e)});function K(t){return Zu(Bt,t)}const Ft=c("ZodBigInt",(t,e)=>{Cn.init(t,e),z.init(t,e),t.gte=(o,n)=>t.check(Q(o,n)),t.min=(o,n)=>t.check(Q(o,n)),t.gt=(o,n)=>t.check(Ne(o,n)),t.gte=(o,n)=>t.check(Q(o,n)),t.min=(o,n)=>t.check(Q(o,n)),t.lt=(o,n)=>t.check(xe(o,n)),t.lte=(o,n)=>t.check(ne(o,n)),t.max=(o,n)=>t.check(ne(o,n)),t.positive=o=>t.check(Ne(BigInt(0),o)),t.negative=o=>t.check(xe(BigInt(0),o)),t.nonpositive=o=>t.check(ne(BigInt(0),o)),t.nonnegative=o=>t.check(Q(BigInt(0),o)),t.multipleOf=(o,n)=>t.check(nt(o,n));const r=t._zod.bag;t.minValue=r.minimum??null,t.maxValue=r.maximum??null,t.format=r.format??null});function pe(t){return Cu(Ft,t)}const qr=c("ZodBigIntFormat",(t,e)=>{Ba.init(t,e),Ft.init(t,e)});function rm(t){return Lu(qr,t)}function im(t){return Wu(qr,t)}const _s=c("ZodSymbol",(t,e)=>{Fa.init(t,e),z.init(t,e)});function Is(t){return Bu(_s,t)}const ks=c("ZodUndefined",(t,e)=>{Ja.init(t,e),z.init(t,e)});function Ss(t){return Fu(ks,t)}const Os=c("ZodNull",(t,e)=>{Va.init(t,e),z.init(t,e)});function Kr(t){return Ju(Os,t)}const zs=c("ZodAny",(t,e)=>{Ga.init(t,e),z.init(t,e)});function om(){return Vu(zs)}const xs=c("ZodUnknown",(t,e)=>{kt.init(t,e),z.init(t,e)});function We(){return Ot(xs)}const Ns=c("ZodNever",(t,e)=>{qa.init(t,e),z.init(t,e)});function Jt(t){return Gu(Ns,t)}const Ts=c("ZodVoid",(t,e)=>{Ka.init(t,e),z.init(t,e)});function am(t){return qu(Ts,t)}const Yr=c("ZodDate",(t,e)=>{Ya.init(t,e),z.init(t,e),t.min=(o,n)=>t.check(Q(o,n)),t.max=(o,n)=>t.check(ne(o,n));const r=t._zod.bag;t.minDate=r.minimum?new Date(r.minimum):null,t.maxDate=r.maximum?new Date(r.maximum):null});function Us(t){return Ku(Yr,t)}const js=c("ZodArray",(t,e)=>{Rn.init(t,e),z.init(t,e),t.element=e.element,t.min=(r,o)=>t.check(Le(r,o)),t.nonempty=r=>t.check(Le(1,r)),t.max=(r,o)=>t.check(Ct(r,o)),t.length=(r,o)=>t.check(Rt(r,o)),t.unwrap=()=>t.element});function dt(t,e){return Sr(js,t,e)}function um(t){const e=t._zod.def.shape;return Rs(Object.keys(e))}const Vt=c("ZodObject",(t,e)=>{Xa.init(t,e),z.init(t,e),N(t,"shape",()=>e.shape),t.keyof=()=>V(Object.keys(t._zod.def.shape)),t.catchall=r=>t.clone({...t._zod.def,catchall:r}),t.passthrough=()=>t.clone({...t._zod.def,catchall:We()}),t.loose=()=>t.clone({...t._zod.def,catchall:We()}),t.strict=()=>t.clone({...t._zod.def,catchall:Jt()}),t.strip=()=>t.clone({...t._zod.def,catchall:void 0}),t.extend=r=>ao(t,r),t.merge=r=>uo(t,r),t.pick=r=>io(t,r),t.omit=r=>oo(t,r),t.partial=(...r)=>so(ti,t,r[0]),t.required=(...r)=>co(ni,t,r[0])});function E(t,e){const r={type:"object",get shape(){return Be(this,"shape",{...t}),this.shape},...m(e)};return new Vt(r)}function sm(t,e){return new Vt({type:"object",get shape(){return Be(this,"shape",{...t}),this.shape},catchall:Jt(),...m(e)})}function cm(t,e){return new Vt({type:"object",get shape(){return Be(this,"shape",{...t}),this.shape},catchall:We(),...m(e)})}const Xr=c("ZodUnion",(t,e)=>{Ln.init(t,e),z.init(t,e),t.options=e.options});function L(t,e){return new Xr({type:"union",options:t,...m(e)})}const Es=c("ZodDiscriminatedUnion",(t,e)=>{Xr.init(t,e),Ha.init(t,e)});function lm(t,e,r){return new Es({type:"union",options:e,discriminator:t,...m(r)})}const Ds=c("ZodIntersection",(t,e)=>{Qa.init(t,e),z.init(t,e)});function Ps(t,e){return new Ds({type:"intersection",left:t,right:e})}const As=c("ZodTuple",(t,e)=>{Zt.init(t,e),z.init(t,e),t.rest=r=>t.clone({...t._zod.def,rest:r})});function me(t,e,r){const o=e instanceof k,n=o?r:e,i=o?e:null;return new As({type:"tuple",items:t,rest:i,...m(n)})}const Hr=c("ZodRecord",(t,e)=>{eu.init(t,e),z.init(t,e),t.keyType=e.keyType,t.valueType=e.valueType});function Gt(t,e,r){return new Hr({type:"record",keyType:t,valueType:e,...m(r)})}function dm(t,e,r){return new Hr({type:"record",keyType:L([t,Jt()]),valueType:e,...m(r)})}const Zs=c("ZodMap",(t,e)=>{tu.init(t,e),z.init(t,e),t.keyType=e.keyType,t.valueType=e.valueType});function fm(t,e,r){return new Zs({type:"map",keyType:t,valueType:e,...m(r)})}const Ms=c("ZodSet",(t,e)=>{nu.init(t,e),z.init(t,e),t.min=(...r)=>t.check(rt(...r)),t.nonempty=r=>t.check(rt(1,r)),t.max=(...r)=>t.check(Mt(...r)),t.size=(...r)=>t.check(mr(...r))});function mm(t,e){return new Ms({type:"set",valueType:t,...m(e)})}const it=c("ZodEnum",(t,e)=>{ru.init(t,e),z.init(t,e),t.enum=e.entries,t.options=Object.values(e.entries);const r=new Set(Object.keys(e.entries));t.extract=(o,n)=>{const i={};for(const a of o)if(r.has(a))i[a]=e.entries[a];else throw new Error(`Key ${a} not found in enum`);return new it({...e,checks:[],...m(n),entries:i})},t.exclude=(o,n)=>{const i={...e.entries};for(const a of o)if(r.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new it({...e,checks:[],...m(n),entries:i})}});function V(t,e){const r=Array.isArray(t)?Object.fromEntries(t.map(o=>[o,o])):t;return new it({type:"enum",entries:r,...m(e)})}function pm(t,e){return new it({type:"enum",entries:t,...m(e)})}const Cs=c("ZodLiteral",(t,e)=>{iu.init(t,e),z.init(t,e),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 Rs(t,e){return new Cs({type:"literal",values:Array.isArray(t)?t:[t],...m(e)})}const Ls=c("ZodFile",(t,e)=>{ou.init(t,e),z.init(t,e),t.min=(r,o)=>t.check(rt(r,o)),t.max=(r,o)=>t.check(Mt(r,o)),t.mime=(r,o)=>t.check($r(Array.isArray(r)?r:[r],o))});function gm(t){return is(Ls,t)}const Qr=c("ZodTransform",(t,e)=>{Wn.init(t,e),z.init(t,e),t._zod.parse=(r,o)=>{r.addIssue=i=>{if(typeof i=="string")r.issues.push(Ce(i,r.value,e));else{const a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=t),a.continue??(a.continue=!0),r.issues.push(Ce(a))}};const n=e.transform(r.value,r);return n instanceof Promise?n.then(i=>(r.value=i,r)):(r.value=n,r)}});function ei(t){return new Qr({type:"transform",transform:t})}const ti=c("ZodOptional",(t,e)=>{au.init(t,e),z.init(t,e),t.unwrap=()=>t._zod.def.innerType});function xt(t){return new ti({type:"optional",innerType:t})}const Ws=c("ZodNullable",(t,e)=>{uu.init(t,e),z.init(t,e),t.unwrap=()=>t._zod.def.innerType});function Nt(t){return new Ws({type:"nullable",innerType:t})}function hm(t){return xt(Nt(t))}const Bs=c("ZodDefault",(t,e)=>{su.init(t,e),z.init(t,e),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function Fs(t,e){return new Bs({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():e}})}const Js=c("ZodPrefault",(t,e)=>{cu.init(t,e),z.init(t,e),t.unwrap=()=>t._zod.def.innerType});function Vs(t,e){return new Js({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():e}})}const ni=c("ZodNonOptional",(t,e)=>{lu.init(t,e),z.init(t,e),t.unwrap=()=>t._zod.def.innerType});function Gs(t,e){return new ni({type:"nonoptional",innerType:t,...m(e)})}const qs=c("ZodSuccess",(t,e)=>{du.init(t,e),z.init(t,e),t.unwrap=()=>t._zod.def.innerType});function vm(t){return new qs({type:"success",innerType:t})}const Ks=c("ZodCatch",(t,e)=>{fu.init(t,e),z.init(t,e),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function Ys(t,e){return new Ks({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}const Xs=c("ZodNaN",(t,e)=>{mu.init(t,e),z.init(t,e)});function ym(t){return Xu(Xs,t)}const ri=c("ZodPipe",(t,e)=>{Bn.init(t,e),z.init(t,e),t.in=e.in,t.out=e.out});function Tt(t,e){return new ri({type:"pipe",in:t,out:e})}const Hs=c("ZodReadonly",(t,e)=>{pu.init(t,e),z.init(t,e)});function Qs(t){return new Hs({type:"readonly",innerType:t})}const ec=c("ZodTemplateLiteral",(t,e)=>{gu.init(t,e),z.init(t,e)});function bm(t,e){return new ec({type:"template_literal",parts:t,...m(e)})}const tc=c("ZodLazy",(t,e)=>{vu.init(t,e),z.init(t,e),t.unwrap=()=>t._zod.def.getter()});function nc(t){return new tc({type:"lazy",getter:t})}const rc=c("ZodPromise",(t,e)=>{hu.init(t,e),z.init(t,e),t.unwrap=()=>t._zod.def.innerType});function $m(t){return new rc({type:"promise",innerType:t})}const qt=c("ZodCustom",(t,e)=>{yu.init(t,e),z.init(t,e)});function ic(t){const e=new F({check:"custom"});return e._zod.check=t,e}function ii(t,e){return os(qt,t??(()=>!0),e)}function oc(t,e={}){return as(qt,t,e)}function ac(t){const e=ic(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Ce(o,r.value,e._zod.def));else{const n=o;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=e),n.continue??(n.continue=!e._zod.def.abort),r.issues.push(Ce(n))}},t(r.value,r)));return e}function W(t,e={error:`Input not instance of ${t.name}`}){const r=new qt({type:"custom",check:"custom",fn:o=>o instanceof t,abort:!0,...m(e)});return r._zod.bag.Class=t,r}const wm=(...t)=>us({Pipe:ri,Boolean:Bt,String:Lt,Transform:Qr},...t);function _m(t){const e=nc(()=>L([P(t),x(),K(),Kr(),dt(e),Gt(P(),e)]));return e}function Im(t,e){return Tt(ei(t),e)}const km={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 Sm(t){Y({customError:t})}function Om(){return Y().customError}function zm(t){return ku(Lt,t)}function xm(t){return Uu(Wt,t)}function Nm(t){return Mu(Bt,t)}function uc(t){return Ru(Ft,t)}function Tm(t){return Yu(Yr,t)}const Um=Object.freeze(Object.defineProperty({__proto__:null,bigint:uc,boolean:Nm,date:Tm,number:xm,string:zm},Symbol.toStringTag,{value:"Module"}));Y(bu());const B=Object.freeze(Object.defineProperty({__proto__:null,$brand:Yi,$input:_u,$output:wu,NEVER:Ki,TimePrecision:Su,ZodAny:zs,ZodArray:js,ZodBase64:Fr,ZodBase64URL:Jr,ZodBigInt:Ft,ZodBigIntFormat:qr,ZodBoolean:Bt,ZodCIDRv4:Wr,ZodCIDRv6:Br,ZodCUID:Pr,ZodCUID2:Ar,ZodCatch:Ks,ZodCustom:qt,ZodCustomStringFormat:ws,ZodDate:Yr,ZodDefault:Bs,ZodDiscriminatedUnion:Es,ZodE164:Vr,ZodEmail:Ur,ZodEmoji:Er,ZodEnum:it,ZodError:Nf,ZodFile:Ls,ZodGUID:zt,ZodIPv4:Rr,ZodIPv6:Lr,ZodISODate:zr,ZodISODateTime:Or,ZodISODuration:Nr,ZodISOTime:xr,ZodIntersection:Ds,ZodIssueCode:km,ZodJWT:Gr,ZodKSUID:Cr,ZodLazy:tc,ZodLiteral:Cs,ZodMap:Zs,ZodNaN:Xs,ZodNanoID:Dr,ZodNever:Ns,ZodNonOptional:ni,ZodNull:Os,ZodNullable:Ws,ZodNumber:Wt,ZodNumberFormat:Fe,ZodObject:Vt,ZodOptional:ti,ZodPipe:ri,ZodPrefault:Js,ZodPromise:rc,ZodReadonly:Hs,ZodRealError:lt,ZodRecord:Hr,ZodSet:Ms,ZodString:Lt,ZodStringFormat:C,ZodSuccess:qs,ZodSymbol:_s,ZodTemplateLiteral:ec,ZodTransform:Qr,ZodTuple:As,ZodType:z,ZodULID:Zr,ZodURL:jr,ZodUUID:fe,ZodUndefined:ks,ZodUnion:Xr,ZodUnknown:xs,ZodVoid:Ts,ZodXID:Mr,_ZodString:Tr,_default:Fs,any:om,array:dt,base64:qf,base64url:Kf,bigint:pe,boolean:K,catch:Ys,check:ic,cidrv4:Vf,cidrv6:Gf,clone:de,coerce:Um,config:Y,core:zf,cuid:Cf,cuid2:Rf,custom:ii,date:Us,discriminatedUnion:lm,e164:Yf,email:Tf,emoji:Zf,endsWith:br,enum:V,file:gm,flattenError:zn,float32:Qf,float64:em,formatError:xn,function:ls,getErrorMap:Om,globalRegistry:Ie,gt:Ne,gte:Q,guid:Uf,includes:vr,instanceof:W,int:ce,int32:tm,int64:rm,intersection:Ps,ipv4:Ff,ipv6:Jf,iso:xf,json:_m,jwt:Xf,keyof:um,ksuid:Bf,lazy:nc,length:Rt,literal:Rs,locales:$u,looseObject:cm,lowercase:gr,lt:xe,lte:ne,map:fm,maxLength:Ct,maxSize:Mt,mime:$r,minLength:Le,minSize:rt,multipleOf:nt,nan:ym,nanoid:Mf,nativeEnum:pm,negative:Qu,never:Jt,nonnegative:ts,nonoptional:Gs,nonpositive:es,normalize:wr,null:Kr,nullable:Nt,nullish:hm,number:x,object:E,optional:xt,overwrite:Ee,parse:vs,parseAsync:ys,partialRecord:dm,pipe:Tt,positive:Hu,prefault:Vs,preprocess:Im,prettifyError:po,promise:$m,property:ns,readonly:Qs,record:Gt,refine:oc,regex:pr,regexes:qo,registry:Jn,safeParse:bs,safeParseAsync:$s,set:mm,setErrorMap:Sm,size:mr,startsWith:yr,strictObject:sm,string:P,stringFormat:Hf,stringbool:wm,success:vm,superRefine:ac,symbol:Is,templateLiteral:bm,toJSONSchema:ds,toLowerCase:Ir,toUpperCase:kr,transform:ei,treeifyError:fo,trim:_r,tuple:me,uint32:nm,uint64:im,ulid:Lf,undefined:Ss,union:L,unknown:We,uppercase:hr,url:Af,uuid:jf,uuidv4:Ef,uuidv6:Df,uuidv7:Pf,void:am,xid:Wf},Symbol.toStringTag,{value:"Module"}));let Je=class{value;constructor(e){this.value=e}valueOf(){return this.value}toJSON(){return this.value}toString(){return this.value.toString()}};const jm=t=>t!=null&&typeof t=="object"&&"toString"in t,Em=(t,e=!1)=>{const r=jm(t)?"stringer":typeof t;let o;switch(r){case"string":o=(n,i)=>n.localeCompare(i);break;case"stringer":o=(n,i)=>n.toString().localeCompare(i.toString());break;case"number":o=(n,i)=>Number(n)-Number(i);break;case"bigint":o=(n,i)=>BigInt(n)-BigInt(i)>0n?1:-1;break;case"boolean":o=(n,i)=>Number(n)-Number(i);break;case"undefined":o=()=>0;break;default:return console.warn(`sortFunc: unknown type ${r}`),()=>-1}return e?Dm(o):o},Dm=t=>(e,r)=>t(r,e),Kt=me([x(),x()]);me([pe(),pe()]);const oi=E({width:x(),height:x()}),Pm=E({signedWidth:x(),signedHeight:x()}),Am=["width","height"];V(Am);const Zm=["start","center","end"],Mm=["signedWidth","signedHeight"];V(Mm);const ot=E({x:x(),y:x()}),sc=E({clientX:x(),clientY:x()}),cc=["x","y"],lc=V(cc),dc=["top","right","bottom","left"];V(dc);const ai=["left","right"],fc=V(ai),ui=["top","bottom"],mc=V(ui),pc=["center"],Mi=V(pc),Cm=[...dc,...pc],gc=V(Cm);V(Zm);const Rm=["first","last"];V(Rm);const Lm=E({lower:x(),upper:x()}),Wm=E({lower:pe(),upper:pe()});L([Lm,Kt]);L([Wm,Kt]);V([...lc.options,...gc.options]);L([lc,gc,W(String)]);const Yt=t=>(e,r)=>{if(typeof e=="bigint"){if(Bm(r))return t(e,BigInt(r));const o=t(Number(e),Number(r));return typeof o=="number"?BigInt(Math.round(o)):o}return t(Number(e),Number(r))},Xt=Yt((t,e)=>t-e),Ht=Yt((t,e)=>t+e),Bm=t=>typeof t=="bigint"?!0:Number.isInteger(t),ue=Yt((t,e)=>t*e),Qt=Yt((t,e)=>t/e),Se=(t,e,r)=>{const o={};if(typeof e=="object"&&(r=e,e=void 0),r={makeValid:!0,...r},typeof t=="number"||typeof t=="bigint")e!=null?(o.lower=t,o.upper=e):(o.lower=typeof t=="bigint"?0n:0,o.upper=t);else if(Array.isArray(t)){if(t.length!==2)throw new Error("bounds: expected array of length 2");[o.lower,o.upper]=t}else o.lower=t.lower,o.upper=t.upper;return r?.makeValid?Fm(o):o},Fm=t=>t.lower>t.upper?{lower:t.upper,upper:t.lower}:t,Ci=(t,e)=>{const r=Se(t);return e<r.lower?r.lower:e>=r.upper?r.upper-(typeof r.upper=="number"?1:1n):e},si=t=>cc.includes(t)?t:ui.includes(t)?"y":"x";E({x:fc.or(Mi),y:mc.or(Mi)});const Jm=E({x:fc,y:mc}),ci=Object.freeze({x:"left",y:"top"}),Vm=Object.freeze({x:"right",y:"top"}),hc=Object.freeze({x:"left",y:"bottom"}),Gm=Object.freeze({x:"right",y:"bottom"}),qm=Object.freeze({x:"center",y:"top"}),Km=Object.freeze({x:"center",y:"bottom"}),Ym=Object.freeze({x:"right",y:"center"}),Xm=Object.freeze({x:"left",y:"center"}),vc=(t,e)=>t.x===e.x&&t.y===e.y,Hm=t=>[t.x,t.y],gn=L([x(),ot,Kt,oi,Pm,sc]),Z=(t,e)=>{if(typeof t=="string"){if(e===void 0)throw new Error("The y coordinate must be given.");return t==="x"?{x:e,y:0}:{x:0,y:e}}return typeof t=="number"?{x:t,y:e??t}:Array.isArray(t)?{x:t[0],y:t[1]}:"signedWidth"in t?{x:t.signedWidth,y:t.signedHeight}:"clientX"in t?{x:t.clientX,y:t.clientY}:"width"in t?{x:t.width,y:t.height}:{x:t.x,y:t.y}},le=Object.freeze({x:0,y:0}),yc=Object.freeze({x:1,y:1}),Qm=Object.freeze({x:1/0,y:1/0}),ep=Object.freeze({x:NaN,y:NaN}),Ut=(t,e,r=0)=>{const o=Z(t),n=Z(e);return r===0?o.x===n.x&&o.y===n.y:Math.abs(o.x-n.x)<=r&&Math.abs(o.y-n.y)<=r},tp=t=>Ut(t,le),li=(t,e,r)=>{const o=Z(t),n=Z(e,r);return{x:o.x*n.x,y:o.y*n.y}},bc=(t,e)=>{const r=Z(t);return{x:r.x+e,y:r.y}},$c=(t,e)=>{const r=Z(t);return{x:r.x,y:r.y+e}},at=(t,e,r,...o)=>typeof e=="string"&&typeof r=="number"?e==="x"?bc(t,r):$c(t,r):[t,e,r??le,...o].reduce((n,i)=>{const a=Z(i);return{x:n.x+a.x,y:n.y+a.y}},le),np=(t,e,r)=>{const o=Z(t);return e==="x"?{x:r,y:o.y}:{x:o.x,y:r}},rp=(t,e)=>{const r=Z(t),o=Z(e);return Math.sqrt((r.x-o.x)**2+(r.y-o.y)**2)},ip=(t,e)=>{const r=Z(t),o=Z(e);return{x:o.x-r.x,y:o.y-r.y}},op=t=>{const e=Z(t);return Number.isNaN(e.x)||Number.isNaN(e.y)},ap=t=>{const e=Z(t);return Number.isFinite(e.x)&&Number.isFinite(e.y)},up=t=>{const e=Z(t);return[e.x,e.y]},sp=t=>{const e=Z(t);return{left:e.x,top:e.y}},hn=(t,e=0)=>{const r=Z(t);return{x:Number(r.x.toFixed(e)),y:Number(r.y.toFixed(e))}},Ke=(t,e)=>{const r=Z(t),o=Z(e);return{x:r.x-o.x,y:r.y-o.y}},Ye=t=>{const e=Z(t),r=Math.hypot(e.x,e.y);return r===0?{x:0,y:0}:{x:-e.y/r,y:e.x/r}},wc=t=>{const e=Z(t),r=Math.hypot(e.x,e.y);return r===0?{x:0,y:0}:{x:e.x/r,y:e.y/r}},_c=(...t)=>{const e=t.reduce((r,o)=>at(r,o),le);return li(e,1/t.length)},cp=(t,e)=>{const r=[];for(let o=0;o<t.length;o++){const n=t[o];let i,a,u,s;if(o===0){const f=t[o+1],p=Ke(f,n);a=Ye(p),u=a,s=e}else if(o===t.length-1){const f=t[o-1],p=Ke(n,f);i=Ye(p),u=i,s=e}else{const f=t[o-1],p=t[o+1],l=Ke(n,f),g=Ke(p,n);i=Ye(l),a=Ye(g);const y=Math.acos((l.x*g.x+l.y*g.y)/(Math.hypot(l.x,l.y)*Math.hypot(g.x,g.y))),d=Math.sin(y/2);d===0?s=e:s=e/d,u=wc(_c(i,a))}r.push(li(u,s))}return r},lp=t=>{const e=Z(t);return{x:e.y,y:e.x}},vn=t=>{const e=Z(t);return{x:Math.round(e.x),y:Math.round(e.y)}},jt=Object.freeze(Object.defineProperty({__proto__:null,INFINITY:Qm,NAN:ep,ONE:yc,ZERO:le,average:_c,calculateMiters:cp,clientXY:sc,construct:Z,couple:up,crudeZ:gn,css:sp,distance:rp,equals:Ut,isFinite:ap,isNan:op,isZero:tp,normal:Ye,normalize:wc,round:vn,scale:li,set:np,sub:Ke,swap:lp,translate:at,translateX:bc,translateY:$c,translation:ip,truncate:hn,xy:ot},Symbol.toStringTag,{value:"Module"})),gt=L([x(),P()]),dp=E({top:gt,left:gt,width:gt,height:gt}),fp=E({left:x(),top:x(),right:x(),bottom:x()}),mp=E({one:ot,two:ot,root:Jm}),Ic={one:le,two:le,root:ci},pp={one:le,two:yc,root:hc},kc=(t,e)=>({one:t.one,two:t.two,root:e??t.root}),A=(t,e,r=0,o=0,n)=>{const i={one:{...le},two:{...le},root:n??ci};if(typeof t=="number"){if(typeof e!="number")throw new Error("Box constructor called with invalid arguments");return i.one={x:t,y:e},i.two={x:i.one.x+r,y:i.one.y+o},i}return"one"in t&&"two"in t&&"root"in t?{...t,root:n??t.root}:("getBoundingClientRect"in t&&(t=t.getBoundingClientRect()),"left"in t?(i.one={x:t.left,y:t.top},i.two={x:t.right,y:t.bottom},i):(i.one=t,e==null?i.two={x:i.one.x+r,y:i.one.y+o}:typeof e=="number"?i.two={x:i.one.x+e,y:i.one.y+r}:"width"in e?i.two={x:i.one.x+e.width,y:i.one.y+e.height}:"signedWidth"in e?i.two={x:i.one.x+e.signedWidth,y:i.one.y+e.signedHeight}:i.two=e,i))},gp=(t,e,r)=>{const o=A(t);if(typeof e=="string"){if(r==null)throw new Error("Invalid arguments for resize");const n=si(e);return A(o.one,void 0,n==="x"?r:be(o),n==="y"?r:$e(o),o.root)}return A(o.one,e,void 0,void 0,o.root)},hp=(t,e,r=!0)=>{const o=A(t);let n=(i,a)=>i<a;return r&&(n=(i,a)=>i<=a),"one"in e?n(ve(o),ve(e))&&n(Oe(e),Oe(o))&&n(ye(o),ye(e))&&n(ze(e),ze(o)):n(ve(o),e.x)&&n(e.x,Oe(o))&&n(ye(o),e.y)&&n(e.y,ze(o))},vp=(t,e)=>Ut(t.one,e.one)&&Ut(t.two,e.two)&&vc(t.root,e.root),Sc=t=>({width:be(t),height:$e(t)}),yp=t=>({signedWidth:en(t),signedHeight:tn(t)}),bp=t=>({top:ye(t),left:ve(t),width:be(t),height:$e(t)}),di=(t,e,r=!1)=>{const o=si(e)==="y"?tn(t):en(t);return r?o:Math.abs(o)},ge=(t,e)=>{const r=A(t);return{x:e.x==="center"?yn(r).x:Te(r,e.x),y:e.y==="center"?yn(r).y:Te(r,e.y)}},Te=(t,e)=>{const r=A(t),o=Hm(r.root).includes(e)?Math.min:Math.max;return ai.includes(e)?o(r.one.x,r.two.x):o(r.one.y,r.two.y)},$p=t=>t.one.x===t.two.x&&t.one.y===t.two.y,be=t=>di(t,"x"),$e=t=>di(t,"y"),en=t=>{const e=A(t);return e.two.x-e.one.x},tn=t=>{const e=A(t);return e.two.y-e.one.y},Oc=t=>ge(t,ci),wp=t=>ge(t,qm),_p=t=>ge(t,Vm),Ip=t=>ge(t,hc),kp=t=>ge(t,Km),Sp=t=>ge(t,Gm),Op=t=>ge(t,Xm),zp=t=>ge(t,Ym),Oe=t=>Te(t,"right"),ze=t=>Te(t,"bottom"),ve=t=>Te(t,"left"),ye=t=>Te(t,"top"),yn=t=>at(Oc(t),{x:en(t)/2,y:tn(t)/2}),fi=t=>{const e=A(t);return e.root.x==="left"?ve(e):Oe(e)},mi=t=>{const e=A(t);return e.root.y==="top"?ye(e):ze(e)},xp=t=>({x:fi(t),y:mi(t)}),vt=t=>{const e=A(t);return{lower:e.one.x,upper:e.two.x}},yt=t=>{const e=A(t);return{lower:e.one.y,upper:e.two.y}},Np=(t,e)=>kc(t,e),Tp=(t,e)=>{const r=A(t),o=ai.includes(e)?"x":ui.includes(e)?"y":null;if(o===null)throw new Error(`Invalid location: ${e}`);const n=e==="top"||e==="left"?Math.min:Math.max,i={...r.one},a={...r.two};return i[o]=n(r.one[o],r.two[o]),a[o]=n(r.one[o],r.two[o]),[i,a]},Up=(t,e)=>{const r=A(t),o=A(e),n=fi(o)+(be(o)-be(r))/2,i=mi(o)+($e(o)-$e(r))/2;return A({x:n,y:i},Sc(r))},zc=t=>typeof t!="object"||t==null?!1:"one"in t&&"two"in t&&"root"in t,jp=t=>be(t)/$e(t),Ep=(t,e,r)=>{if(typeof e=="string"){if(r==null)throw new Error("Undefined amount passed into box.translate");const n=si(e);e=Z(n,r)}const o=A(t);return A(at(o.one,e),at(o.two,e),void 0,void 0,o.root)},Dp=(t,e)=>{const r=Math.max(ve(t),ve(e)),o=Math.max(ye(t),ye(e)),n=Math.min(Oe(t),Oe(e)),i=Math.min(ze(t),ze(e));return r>n||o>i?Ic:A({x:r,y:o},{x:n,y:i},void 0,void 0,t.root)},Pp=t=>be(t)*$e(t),Ap=(t,e)=>{const r=A(t);return A(hn(r.one,e),hn(r.two,e),void 0,void 0,r.root)},Zp=(t,e,r,o,n,i)=>{const a={x:t,y:e},u={x:t+r,y:e+o};return n.x!==i.x&&(n.x==="center"?(a.x-=r/2,u.x-=r/2):(a.x-=r,u.x-=r)),n.y!==i.y&&(n.y==="center"?(a.y-=o/2,u.y-=o/2):(a.y-=o,u.y-=o)),A(a,u,void 0,void 0,i)},Mp=t=>{const e=A(t);return A(vn(e.one),vn(e.two),void 0,void 0,e.root)},Xe=Object.freeze(Object.defineProperty({__proto__:null,DECIMAL:pp,ZERO:Ic,area:Pp,areaIsZero:$p,aspect:jp,bottom:ze,bottomCenter:kp,bottomLeft:Ip,bottomRight:Sp,box:mp,center:yn,centerLeft:Op,centerRight:zp,construct:A,constructWithAlternateRoot:Zp,contains:hp,copy:kc,css:bp,cssBox:dp,dim:di,dims:Sc,domRect:fp,edgePoints:Tp,equals:vp,height:$e,intersection:Dp,isBox:zc,left:ve,loc:Te,positionInCenter:Up,reRoot:Np,resize:gp,right:Oe,root:xp,round:Mp,signedDims:yp,signedHeight:tn,signedWidth:en,top:ye,topCenter:wp,topLeft:Oc,topRight:_p,translate:Ep,truncate:Ap,width:be,x:fi,xBounds:vt,xyLoc:ge,y:mi,yBounds:yt},Symbol.toStringTag,{value:"Module"})),xc=E({signedWidth:x(),signedHeight:x()}),Cp=L([oi,xc,ot,Kt]),Rp={width:0,height:0},Lp={width:1,height:1},ie=(t,e)=>typeof t=="number"?{width:t,height:e??t}:Array.isArray(t)?{width:t[0],height:t[1]}:"x"in t?{width:t.x,height:t.y}:"signedWidth"in t?{width:t.signedWidth,height:t.signedHeight}:{...t},Wp=(t,e)=>{if(e==null)return!1;const r=ie(t),o=ie(e);return r.width===o.width&&r.height===o.height},Bp=t=>{const e=ie(t);return{width:e.height,height:e.width}},Fp=t=>{const e=ie(t);return`0 0 ${e.width} ${e.height}`},Jp=t=>{const e=ie(t);return[e.width,e.height]},Vp=t=>({width:Math.max(...t.map(e=>ie(e).width)),height:Math.max(...t.map(e=>ie(e).height))}),Gp=t=>({width:Math.min(...t.map(e=>ie(e).width)),height:Math.min(...t.map(e=>ie(e).height))}),qp=(t,e)=>{const r=ie(t);return{width:r.width*e,height:r.height*e}},bt=Object.freeze(Object.defineProperty({__proto__:null,DECIMAL:Lp,ZERO:Rp,construct:ie,couple:Jp,crude:Cp,dimensions:oi,equals:Wp,max:Vp,min:Gp,scale:qp,signed:xc,svgViewBox:Fp,swap:Bp},Symbol.toStringTag,{value:"Module"})),Kp=(t,e,r)=>e!==void 0&&t<e?e:r!==void 0&&t>r?r:t;E({offset:gn,scale:gn});E({offset:x(),scale:x()});const Yp=t=>(e,r,o,n)=>r==="dimension"?[e,o]:[e,n?o-t:o+t],Xp=t=>(e,r,o,n)=>[e,n?o/t:o*t],Hp=t=>(e,r,o)=>{if(e===null)return[t,o];const{lower:n,upper:i}=e,{lower:a,upper:u}=t,s=i-n,f=u-a;if(r==="dimension")return[t,o*(f/s)];const p=(o-n)*(f/s)+a;return[t,p]},Qp=t=>(e,r,o)=>[t,o],eg=()=>(t,e,r)=>{if(t===null)throw new Error("cannot invert without bounds");if(e==="dimension")return[t,r];const{lower:o,upper:n}=t;return[t,n-(r-o)]},tg=t=>(e,r,o)=>{const{lower:n,upper:i}=t;return o=Kp(o,n,i),[e,o]};let Ri=class Pe{ops=[];currBounds=null;currType=null;reversed=!1;constructor(){this.ops=[]}static translate(e){return new Pe().translate(e)}static magnify(e){return new Pe().magnify(e)}static scale(e,r){return new Pe().scale(e,r)}translate(e){const r=this.new(),o=Yp(e);return o.type="translate",r.ops.push(o),r}magnify(e){const r=this.new(),o=Xp(e);return o.type="magnify",r.ops.push(o),r}scale(e,r){const o=Se(e,r),n=this.new(),i=Hp(o);return i.type="scale",n.ops.push(i),n}clamp(e,r){const o=Se(e,r),n=this.new(),i=tg(o);return i.type="clamp",n.ops.push(i),n}reBound(e,r){const o=Se(e,r),n=this.new(),i=Qp(o);return i.type="re-bound",n.ops.push(i),n}invert(){const e=eg();e.type="invert";const r=this.new();return r.ops.push(e),r}pos(e){return this.exec("position",e)}dim(e){return this.exec("dimension",e)}new(){const e=new Pe;return e.ops=this.ops.slice(),e.reversed=this.reversed,e}exec(e,r){return this.currBounds=null,this.ops.reduce(([o,n],i)=>i(o,e,n,this.reversed),[null,r])[1]}reverse(){const e=this.new();e.ops.reverse();const r=[];return e.ops.forEach((o,n)=>{if(o.type==="scale"||r.some(([a,u])=>n>=a&&n<=u))return;const i=e.ops.findIndex((a,u)=>a.type==="scale"&&u>n);i!==-1&&r.push([n,i])}),r.forEach(([o,n])=>{const i=e.ops.slice(o,n);i.unshift(e.ops[n]),e.ops.splice(o,n-o+1,...i)}),e.reversed=!e.reversed,e}get transform(){return{scale:this.dim(1),offset:this.pos(0)}}static IDENTITY=new Pe},mv=class oe{x;y;currRoot;constructor(e=new Ri,r=new Ri,o=null){this.x=e,this.y=r,this.currRoot=o}static translate(e,r){return new oe().translate(e,r)}static translateX(e){return new oe().translateX(e)}static translateY(e){return new oe().translateY(e)}static clamp(e){return new oe().clamp(e)}static magnify(e){return new oe().magnify(e)}static scale(e){return new oe().scale(e)}static reBound(e){return new oe().reBound(e)}translate(e,r){const o=Z(e,r),n=this.copy();return n.x=this.x.translate(o.x),n.y=this.y.translate(o.y),n}translateX(e){const r=this.copy();return r.x=this.x.translate(e),r}translateY(e){const r=this.copy();return r.y=this.y.translate(e),r}magnify(e){const r=this.copy();return r.x=this.x.magnify(e.x),r.y=this.y.magnify(e.y),r}scale(e){const r=this.copy();if(zc(e)){const o=this.currRoot;return r.currRoot=e.root,o!=null&&!vc(o,e.root)&&(o.x!==e.root.x&&(r.x=r.x.invert()),o.y!==e.root.y&&(r.y=r.y.invert())),r.x=r.x.scale(vt(e)),r.y=r.y.scale(yt(e)),r}return r.x=r.x.scale(e.width),r.y=r.y.scale(e.height),r}reBound(e){const r=this.copy();return r.x=this.x.reBound(vt(e)),r.y=this.y.reBound(yt(e)),r}clamp(e){const r=this.copy();return r.x=this.x.clamp(vt(e)),r.y=this.y.clamp(yt(e)),r}copy(){const e=new oe;return e.currRoot=this.currRoot,e.x=this.x,e.y=this.y,e}reverse(){const e=this.copy();return e.x=this.x.reverse(),e.y=this.y.reverse(),e}pos(e){return{x:this.x.pos(e.x),y:this.y.pos(e.y)}}dim(e){return{x:this.x.dim(e.x),y:this.y.dim(e.y)}}box(e){return A(this.pos(e.one),this.pos(e.two),0,0,this.currRoot??e.root)}get transform(){return{scale:this.dim({x:1,y:1}),offset:this.pos({x:0,y:0})}}static IDENTITY=new oe},Nc=(t,e=21)=>(r=e)=>{let o="",n=r|0;for(;n--;)o+=t[Math.random()*t.length|0];return o};const Tc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",ng=`0123456789${Tc}`,Uc=11,rg=Nc(Tc,1),ig=Nc(ng,Uc-1),jc=()=>`${rg()}${ig()}`,bn=Object.freeze(Object.defineProperty({__proto__:null,LENGTH:Uc,create:jc},Symbol.toStringTag,{value:"Module"})),og=(t,e)=>r=>r instanceof e||typeof r=="object"&&r!==null&&"discriminator"in r&&r.discriminator===t,ag=V(["static","dynamic"]),ug=L([me([ce()]),me([ce(),ce().min(1).max(12)]),me([ce(),ce().min(1).max(12),ce().min(1).max(31)])]),Ec=(t,e)=>{const r=new h(e);if(![U.DAY,U.HOUR,U.MINUTE,U.SECOND,U.MILLISECOND,U.MICROSECOND,U.NANOSECOND].some(n=>n.equals(r)))throw new Error("Invalid argument for remainder. Must be an even TimeSpan or Timestamp");const o=t.valueOf()%r.valueOf();return t instanceof h?new h(o):new U(o)};class h extends Je{constructor(e,r="UTC"){if(e==null)super(h.now().valueOf());else if(e instanceof Date)super(BigInt(e.getTime())*h.MILLISECOND.valueOf());else if(typeof e=="string")super(h.parseDateTimeString(e,r).valueOf());else if(Array.isArray(e))super(h.parseDate(e));else{let o=0n;e instanceof Number&&(e=e.valueOf()),r==="local"&&(o=h.utcOffset.valueOf()),typeof e=="number"&&(isFinite(e)?e=Math.trunc(e):(isNaN(e)&&(e=0),e===1/0?e=h.MAX:e=h.MIN)),super(BigInt(e.valueOf())+o)}}static parseDate([e=1970,r=1,o=1]){const n=new Date(e,r-1,o,0,0,0,0);return new h(BigInt(n.getTime())*h.MILLISECOND.valueOf()).truncate(h.DAY).valueOf()}valueOf(){return this.value}static parseTimeString(e,r="UTC"){const[o,n,i]=e.split(":");let a="00",u="00";i!=null&&([a,u]=i.split("."));let s=h.hours(parseInt(o??"00")).add(h.minutes(parseInt(n??"00"))).add(h.seconds(parseInt(a??"00"))).add(h.milliseconds(parseInt(u??"00")));return r==="local"&&(s=s.add(h.utcOffset)),s.valueOf()}static parseDateTimeString(e,r="UTC"){if(!e.includes("/")&&!e.includes("-"))return h.parseTimeString(e,r);const o=new Date(e);return e.includes(":")||o.setUTCHours(0,0,0,0),new h(BigInt(o.getTime())*h.MILLISECOND.valueOf(),r).valueOf()}fString(e="ISO",r="UTC"){switch(e){case"ISODate":return this.toISOString(r).slice(0,10);case"ISOTime":return this.toISOString(r).slice(11,23);case"time":return this.timeString(!1,r);case"preciseTime":return this.timeString(!0,r);case"date":return this.dateString();case"preciseDate":return`${this.dateString()} ${this.timeString(!0,r)}`;case"dateTime":return`${this.dateString()} ${this.timeString(!1,r)}`;default:return this.toISOString(r)}}toISOString(e="UTC"){return e==="UTC"?this.date().toISOString():this.sub(h.utcOffset).date().toISOString()}timeString(e=!1,r="UTC"){const o=this.toISOString(r);return e?o.slice(11,23):o.slice(11,19)}dateString(){const e=this.date(),r=e.toLocaleString("default",{month:"short"}),o=e.toLocaleString("default",{day:"numeric"});return`${r} ${o}`}static get utcOffset(){return new U(BigInt(new Date().getTimezoneOffset())*h.MINUTE.valueOf())}static since(e){return new h().span(e)}date(){return new Date(this.milliseconds)}equals(e){return this.valueOf()===new h(e).valueOf()}span(e){return this.range(e).span}range(e){return new He(this,e).makeValid()}spanRange(e){return this.range(this.add(e)).makeValid()}get isZero(){return this.valueOf()===0n}after(e){return this.valueOf()>new h(e).valueOf()}afterEq(e){return this.valueOf()>=new h(e).valueOf()}before(e){return this.valueOf()<new h(e).valueOf()}beforeEq(e){return this.valueOf()<=new h(e).valueOf()}add(e){return new h(Ht(this.valueOf(),new U(e).valueOf()))}sub(e){return new h(Xt(this.valueOf(),new U(e).valueOf()))}get hours(){return Number(this.valueOf())/Number(U.HOUR.valueOf())}get minutes(){return Number(this.valueOf())/Number(U.MINUTE.valueOf())}get days(){return Number(this.valueOf())/Number(U.DAY.valueOf())}get seconds(){return Number(this.valueOf())/Number(U.SECOND.valueOf())}get milliseconds(){return Number(this.valueOf())/Number(h.MILLISECOND.valueOf())}get microseconds(){return Number(this.valueOf())/Number(h.MICROSECOND.valueOf())}get nanoseconds(){return Number(this.valueOf())}get year(){return this.date().getUTCFullYear()}setYear(e){const r=this.date();return r.setUTCFullYear(e),new h(r)}get month(){return this.date().getUTCMonth()}setMonth(e){const r=this.date();return r.setUTCMonth(e),new h(r)}get day(){return this.date().getUTCDate()}setDay(e){const r=this.date();return r.setUTCDate(e),new h(r)}get hour(){return this.date().getUTCHours()}setHour(e){const r=this.date();return r.setUTCHours(e),new h(r,"UTC")}get minute(){return this.date().getUTCMinutes()}setMinute(e){const r=this.date();return r.setUTCMinutes(e),new h(r)}get second(){return this.date().getUTCSeconds()}setSecond(e){const r=this.date();return r.setUTCSeconds(e),new h(r)}get millisecond(){return this.date().getUTCMilliseconds()}setMillisecond(e){const r=this.date();return r.setUTCMilliseconds(e),new h(r)}toString(){return this.date().toISOString()}remainder(e){return Ec(this,e)}get isToday(){return this.truncate(U.DAY).equals(h.now().truncate(U.DAY))}truncate(e){return this.sub(this.remainder(e))}static now(){return new h(new Date)}static max(...e){let r=h.MIN;for(const o of e){const n=new h(o);n.after(r)&&(r=n)}return r}static min(...e){let r=h.MAX;for(const o of e){const n=new h(o);n.before(r)&&(r=n)}return r}static nanoseconds(e,r="UTC"){return new h(e,r)}static NANOSECOND=h.nanoseconds(1);static microseconds(e,r="UTC"){return h.nanoseconds(e*1e3,r)}static MICROSECOND=h.microseconds(1);static milliseconds(e,r="UTC"){return h.microseconds(e*1e3,r)}static MILLISECOND=h.milliseconds(1);static seconds(e,r="UTC"){return h.milliseconds(e*1e3,r)}static SECOND=h.seconds(1);static minutes(e,r="UTC"){return h.seconds(e*60,r)}static MINUTE=h.minutes(1);static hours(e,r="UTC"){return h.minutes(e*60,r)}static HOUR=h.hours(1);static days(e,r="UTC"){return h.hours(e*24,r)}static DAY=h.days(1);static MAX=new h((1n<<63n)-1n);static MIN=new h(0);static ZERO=new h(0);static z=L([W(h),E({value:pe()}).transform(e=>new h(e.value)),P().transform(e=>new h(BigInt(e))),x().transform(e=>new h(e)),pe().transform(e=>new h(e)),Us().transform(e=>new h(e)),ii(e=>e instanceof U).transform(e=>new h(e)),ug.transform(e=>new h(e))]);static sort(e,r){return Number(e.valueOf()-r.valueOf())}}let U=class _ extends Je{constructor(e){typeof e=="number"&&(e=Math.trunc(e.valueOf())),super(BigInt(e.valueOf()))}static fromSeconds(e){return e instanceof _?e:e instanceof H?e.period:e instanceof h?new _(e):["number","bigint"].includes(typeof e)?_.seconds(e):new _(e)}static fromMilliseconds(e){return e instanceof _?e:e instanceof H?e.period:e instanceof h?new _(e):["number","bigint"].includes(typeof e)?_.milliseconds(e):new _(e)}valueOf(){return this.value}lessThan(e){return this.valueOf()<new _(e).valueOf()}greaterThan(e){return this.valueOf()>new _(e).valueOf()}lessThanOrEqual(e){return this.valueOf()<=new _(e).valueOf()}greaterThanOrEqual(e){return this.valueOf()>=new _(e).valueOf()}remainder(e){return Ec(this,e)}truncate(e){return new _(BigInt(Math.trunc(Number(this.valueOf()/e.valueOf())))*e.valueOf())}toString(){const e=this.truncate(_.DAY),r=this.truncate(_.HOUR),o=this.truncate(_.MINUTE),n=this.truncate(_.SECOND),i=this.truncate(_.MILLISECOND),a=this.truncate(_.MICROSECOND),u=this.truncate(_.NANOSECOND),s=e,f=r.sub(e),p=o.sub(r),l=n.sub(o),g=i.sub(n),y=a.sub(i),d=u.sub(a);let $="";return s.isZero||($+=`${s.days}d `),f.isZero||($+=`${f.hours}h `),p.isZero||($+=`${p.minutes}m `),l.isZero||($+=`${l.seconds}s `),g.isZero||($+=`${g.milliseconds}ms `),y.isZero||($+=`${y.microseconds}µs `),d.isZero||($+=`${d.nanoseconds}ns`),$.trim()}mult(e){return new _(ue(this.valueOf(),e))}div(e){return new _(Qt(this.valueOf(),e))}get days(){return Number(this.valueOf())/Number(_.DAY.valueOf())}get hours(){return Number(this.valueOf())/Number(_.HOUR.valueOf())}get minutes(){return Number(this.valueOf())/Number(_.MINUTE.valueOf())}get seconds(){return Number(this.valueOf())/Number(_.SECOND.valueOf())}get milliseconds(){return Number(this.valueOf())/Number(_.MILLISECOND.valueOf())}get microseconds(){return Number(this.valueOf())/Number(_.MICROSECOND.valueOf())}get nanoseconds(){return Number(this.valueOf())}get isZero(){return this.valueOf()===0n}equals(e){return this.valueOf()===new _(e).valueOf()}add(e){return new _(this.valueOf()+new _(e).valueOf())}sub(e){return new _(this.valueOf()-new _(e).valueOf())}static nanoseconds(e=1){return new _(e)}static NANOSECOND=_.nanoseconds(1);static microseconds(e=1){return _.nanoseconds(ue(e,1e3))}static MICROSECOND=_.microseconds(1);static milliseconds(e=1){return _.microseconds(ue(e,1e3))}static MILLISECOND=_.milliseconds(1);static seconds(e=1){return _.milliseconds(ue(e,1e3))}static SECOND=_.seconds(1);static minutes(e=1){return _.seconds(ue(e,60))}static MINUTE=_.minutes(1);static hours(e){return _.minutes(ue(e,60))}static HOUR=_.hours(1);static days(e){return _.hours(ue(e,24))}static DAY=_.days(1);static MAX=new _((1n<<63n)-1n);static MIN=new _(0);static ZERO=new _(0);static z=L([E({value:pe()}).transform(e=>new _(e.value)),P().transform(e=>new _(BigInt(e))),x().transform(e=>new _(e)),pe().transform(e=>new _(e)),W(_),W(h).transform(e=>new _(e)),ii(e=>e instanceof H).transform(e=>new _(e))])};class H extends Je{constructor(e){super(e.valueOf())}toString(){return`${this.valueOf()} Hz`}equals(e){return this.valueOf()===new H(e).valueOf()}get period(){return U.seconds(1/this.valueOf())}sampleCount(e){return new U(e).seconds*this.valueOf()}byteCount(e,r){return this.sampleCount(e)*new q(r).valueOf()}span(e){return U.seconds(e/this.valueOf())}byteSpan(e,r){return this.span(e.valueOf()/r.valueOf())}add(e){return new H(Ht(this.valueOf(),e.valueOf()))}sub(e){return new H(Xt(this.valueOf(),e.valueOf()))}mult(e){return new H(ue(this.valueOf(),e))}div(e){return new H(Qt(this.valueOf(),e))}static hz(e){return new H(e)}static khz(e){return H.hz(e*1e3)}static z=L([x().transform(e=>new H(e)),W(H)])}let q=class X extends Je{constructor(e){super(e.valueOf())}length(e){return e.valueOf()/this.valueOf()}size(e){return new $n(e*this.valueOf())}add(e){return new X(Ht(this.valueOf(),e.valueOf()))}sub(e){return new X(Xt(this.valueOf(),e.valueOf()))}mult(e){return new X(ue(this.valueOf(),e))}div(e){return new X(Qt(this.valueOf(),e))}static UNKNOWN=new X(0);static BIT128=new X(16);static BIT64=new X(8);static BIT32=new X(4);static BIT16=new X(2);static BIT8=new X(1);static z=L([x().transform(e=>new X(e)),W(X)])},He=class ae{start;end;constructor(e,r){typeof e=="object"&&"start"in e?(this.start=new h(e.start),this.end=new h(e.end)):(this.start=new h(e),this.end=new h(r))}get span(){return new U(this.end.valueOf()-this.start.valueOf())}get isValid(){return this.start.valueOf()<=this.end.valueOf()}makeValid(){return this.isValid?this:this.swap()}get isZero(){return this.span.isZero}get numeric(){return{start:Number(this.start.valueOf()),end:Number(this.end.valueOf())}}swap(){return new ae(this.end,this.start)}get numericBounds(){return{lower:Number(this.start.valueOf()),upper:Number(this.end.valueOf())}}equals(e,r=U.ZERO){if(r.isZero)return this.start.equals(e.start)&&this.end.equals(e.end);let o=this.start.sub(e.start).valueOf(),n=this.end.sub(e.end).valueOf();return o<0&&(o=-o),n<0&&(n=-n),o<=r.valueOf()&&n<=r.valueOf()}toString(){return`${this.start.toString()} - ${this.end.toString()}`}toPrettyString(){return`${this.start.fString("preciseDate")} - ${this.span.toString()}`}overlapsWith(e,r=U.ZERO){e=e.makeValid();const o=this.makeValid();if(this.equals(e))return!0;if(e.end.equals(o.start)||o.end.equals(e.start))return!1;const n=h.max(o.start,e.start),i=h.min(o.end,e.end);return i.before(n)?!1:new U(i.sub(n)).greaterThanOrEqual(r)}contains(e){return e instanceof ae?this.contains(e.start)&&this.contains(e.end):this.start.beforeEq(e)&&this.end.after(e)}boundBy(e){const r=new ae(this.start,this.end);return e.start.after(this.start)&&(r.start=e.start),e.start.after(this.end)&&(r.end=e.start),e.end.before(this.end)&&(r.end=e.end),e.end.before(this.start)&&(r.start=e.end),r}static max(...e){return new ae(h.min(...e.map(r=>r.start)),h.max(...e.map(r=>r.end)))}static MAX=new ae(h.MIN,h.MAX);static MIN=new ae(h.MAX,h.MIN);static ZERO=new ae(h.ZERO,h.ZERO);static z=L([E({start:h.z,end:h.z}).transform(e=>new ae(e.start,e.end)),W(ae)]);static sort(e,r){return h.sort(e.start,r.start)||h.sort(e.end,r.end)}},R=class v extends Je{constructor(e){if(e instanceof v||typeof e=="string"||typeof e.valueOf()=="string")super(e.valueOf());else{const r=v.ARRAY_CONSTRUCTOR_DATA_TYPES.get(e.constructor.name);if(r==null)throw new Error(`unable to find data type for ${e.toString()}`);super(r.valueOf())}}get Array(){const e=v.ARRAY_CONSTRUCTORS.get(this.toString());if(e==null)throw new Error(`unable to find array constructor for ${this.valueOf()}`);return e}equals(e){return this.valueOf()===e.valueOf()}matches(...e){return e.some(r=>this.equals(r))}toString(){return this.valueOf()}get isVariable(){return this.equals(v.JSON)||this.equals(v.STRING)}get isNumeric(){return!this.isVariable&&!this.equals(v.UUID)}get isInteger(){const e=this.toString();return e.startsWith("int")||e.startsWith("uint")}get isFloat(){return this.toString().startsWith("float")}get density(){const e=v.DENSITIES.get(this.toString());if(e==null)throw new Error(`unable to find density for ${this.valueOf()}`);return e}get isUnsignedInteger(){return this.equals(v.UINT8)||this.equals(v.UINT16)||this.equals(v.UINT32)||this.equals(v.UINT64)}get isSignedInteger(){return this.equals(v.INT8)||this.equals(v.INT16)||this.equals(v.INT32)||this.equals(v.INT64)}canSafelyCastTo(e){return this.equals(e)?!0:!this.isNumeric||!e.isNumeric||this.isVariable||e.isVariable||this.isUnsignedInteger&&e.isSignedInteger?!1:this.isFloat?e.isFloat&&this.density.valueOf()<=e.density.valueOf():this.equals(v.INT32)&&e.equals(v.FLOAT64)||this.equals(v.INT8)&&e.equals(v.FLOAT32)?!0:this.isInteger&&e.isInteger?this.density.valueOf()<=e.density.valueOf()&&this.isUnsignedInteger===e.isUnsignedInteger:!1}canCastTo(e){return this.isNumeric&&e.isNumeric?!0:this.equals(e)}checkArray(e){return e.constructor===this.Array}get usesBigInt(){return v.BIG_INT_TYPES.some(e=>e.equals(this))}static UNKNOWN=new v("unknown");static FLOAT64=new v("float64");static FLOAT32=new v("float32");static INT64=new v("int64");static INT32=new v("int32");static INT16=new v("int16");static INT8=new v("int8");static UINT64=new v("uint64");static UINT32=new v("uint32");static UINT16=new v("uint16");static UINT8=new v("uint8");static BOOLEAN=this.UINT8;static TIMESTAMP=new v("timestamp");static UUID=new v("uuid");static STRING=new v("string");static JSON=new v("json");static ARRAY_CONSTRUCTORS=new Map([[v.UINT8.toString(),Uint8Array],[v.UINT16.toString(),Uint16Array],[v.UINT32.toString(),Uint32Array],[v.UINT64.toString(),BigUint64Array],[v.FLOAT32.toString(),Float32Array],[v.FLOAT64.toString(),Float64Array],[v.INT8.toString(),Int8Array],[v.INT16.toString(),Int16Array],[v.INT32.toString(),Int32Array],[v.INT64.toString(),BigInt64Array],[v.TIMESTAMP.toString(),BigInt64Array],[v.STRING.toString(),Uint8Array],[v.JSON.toString(),Uint8Array],[v.UUID.toString(),Uint8Array]]);static ARRAY_CONSTRUCTOR_DATA_TYPES=new Map([[Uint8Array.name,v.UINT8],[Uint16Array.name,v.UINT16],[Uint32Array.name,v.UINT32],[BigUint64Array.name,v.UINT64],[Float32Array.name,v.FLOAT32],[Float64Array.name,v.FLOAT64],[Int8Array.name,v.INT8],[Int16Array.name,v.INT16],[Int32Array.name,v.INT32],[BigInt64Array.name,v.INT64]]);static DENSITIES=new Map([[v.UINT8.toString(),q.BIT8],[v.UINT16.toString(),q.BIT16],[v.UINT32.toString(),q.BIT32],[v.UINT64.toString(),q.BIT64],[v.FLOAT32.toString(),q.BIT32],[v.FLOAT64.toString(),q.BIT64],[v.INT8.toString(),q.BIT8],[v.INT16.toString(),q.BIT16],[v.INT32.toString(),q.BIT32],[v.INT64.toString(),q.BIT64],[v.TIMESTAMP.toString(),q.BIT64],[v.STRING.toString(),q.UNKNOWN],[v.JSON.toString(),q.UNKNOWN],[v.UUID.toString(),q.BIT128]]);static ALL=[v.UNKNOWN,v.FLOAT64,v.FLOAT32,v.INT64,v.INT32,v.INT16,v.INT8,v.UINT64,v.UINT32,v.UINT16,v.UINT8,v.TIMESTAMP,v.UUID,v.STRING,v.JSON];static BIG_INT_TYPES=[v.INT64,v.UINT64,v.TIMESTAMP];static z=L([P().transform(e=>new v(e)),W(v)])},$n=class j extends Je{constructor(e){super(e.valueOf())}largerThan(e){return this.valueOf()>e.valueOf()}smallerThan(e){return this.valueOf()<e.valueOf()}add(e){return new j(Ht(this.valueOf(),e.valueOf()))}sub(e){return new j(Xt(this.valueOf(),e.valueOf()))}mult(e){return new j(ue(this.valueOf(),e))}div(e){return new j(Qt(this.valueOf(),e))}truncate(e){return new j(Math.trunc(this.valueOf()/e.valueOf())*e.valueOf())}remainder(e){return j.bytes(this.valueOf()%e.valueOf())}get gigabytes(){return this.valueOf()/j.GIGABYTE.valueOf()}get megabytes(){return this.valueOf()/j.MEGABYTE.valueOf()}get kilobytes(){return this.valueOf()/j.KILOBYTE.valueOf()}get terabytes(){return this.valueOf()/j.TERABYTE.valueOf()}toString(){const e=this.truncate(j.TERABYTE),r=this.truncate(j.GIGABYTE),o=this.truncate(j.MEGABYTE),n=this.truncate(j.KILOBYTE),i=this.truncate(j.BYTE),a=e,u=r.sub(e),s=o.sub(r),f=n.sub(o),p=i.sub(n);let l="";return a.isZero||(l+=`${a.terabytes}TB `),u.isZero||(l+=`${u.gigabytes}GB `),s.isZero||(l+=`${s.megabytes}MB `),f.isZero||(l+=`${f.kilobytes}KB `),(!p.isZero||l==="")&&(l+=`${p.valueOf()}B`),l.trim()}static bytes(e=1){return new j(e)}static BYTE=new j(1);static kilobytes(e=1){return j.bytes(e.valueOf()*1e3)}static KILOBYTE=j.kilobytes(1);static megabytes(e=1){return j.kilobytes(e.valueOf()*1e3)}static MEGABYTE=j.megabytes(1);static gigabytes(e=1){return j.megabytes(e.valueOf()*1e3)}static GIGABYTE=j.gigabytes(1);static terabytes(e){return j.gigabytes(e.valueOf()*1e3)}static TERABYTE=j.terabytes(1);static ZERO=new j(0);static z=L([x().transform(e=>new j(e)),W(j)]);get isZero(){return this.valueOf()===0}};L([W(Uint8Array),W(Uint16Array),W(Uint32Array),W(BigUint64Array),W(Float32Array),W(Float64Array),W(Int8Array),W(Int16Array),W(Int32Array),W(BigInt64Array)]);const Dc=t=>{const e=typeof t;return e==="string"||e==="number"||e==="boolean"||e==="bigint"||t instanceof h||t instanceof U||t instanceof Date},sg=(t,e,r,o=0)=>t.usesBigInt&&!e.usesBigInt?Number(r)-Number(o):!t.usesBigInt&&e.usesBigInt?BigInt(r.valueOf())-BigInt(o.valueOf()):$t(r,-o),$t=(t,e)=>e==0?t:t==0?e:typeof t=="bigint"&&typeof e=="bigint"||typeof t=="number"&&typeof e=="number"?t+e:Number(t)+Number(e),cg=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function lg(t){return typeof t=="string"&&cg.test(t)}const G=[];for(let t=0;t<256;++t)G.push((t+256).toString(16).slice(1));function dg(t,e=0){return(G[t[e+0]]+G[t[e+1]]+G[t[e+2]]+G[t[e+3]]+"-"+G[t[e+4]]+G[t[e+5]]+"-"+G[t[e+6]]+G[t[e+7]]+"-"+G[t[e+8]]+G[t[e+9]]+"-"+G[t[e+10]]+G[t[e+11]]+G[t[e+12]]+G[t[e+13]]+G[t[e+14]]+G[t[e+15]]).toLowerCase()}function fg(t,e=0){const r=dg(t,e);if(!lg(r))throw TypeError("Stringified UUID is invalid");return r}typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Pc=(t,e)=>fg(t,e),he=-1,mg=P().transform(t=>new Uint8Array(atob(t).split("").map(e=>e.charCodeAt(0))).buffer),pg=L([Kr(),Ss()]).transform(()=>new Uint8Array().buffer),wn=10,gg=(t,e)=>{if(t==="number"&&!e.isNumeric)throw new Error(`cannot convert series of type ${e.toString()} to number`);if(t==="bigint"&&!e.usesBigInt)throw new Error(`cannot convert series of type ${e.toString()} to bigint`)},Ac="sy_x_telem_series";class se{key;discriminator=Ac;dataType;sampleOffset;gl;_data;timeRange=He.ZERO;alignment=0n;alignmentMultiple=1n;cachedMin;cachedMax;writePos=he;_refCount=0;cachedLength;_cachedIndexes;static crudeZ=E({timeRange:He.z.optional(),dataType:R.z,alignment:uc().optional(),data:L([mg,pg,W(ArrayBuffer),W(Uint8Array)]),glBufferUsage:ag.optional().default("static").optional()});static z=se.crudeZ.transform(e=>new se(e));constructor(e){hg(e)&&(e={data:e}),e.data??=[];const{dataType:r,timeRange:o,sampleOffset:n=0,glBufferUsage:i="static",alignment:a=0n,alignmentMultiple:u=1n,key:s=jc(),data:f}=e;if(vg(f)){const g=f;this.key=g.key,this.dataType=g.dataType,this.sampleOffset=g.sampleOffset,this.gl=g.gl,this._data=g._data,this.timeRange=g.timeRange,this.alignment=g.alignment,this.alignmentMultiple=g.alignmentMultiple,this.cachedMin=g.cachedMin,this.cachedMax=g.cachedMax,this.writePos=g.writePos,this._refCount=g._refCount,this.cachedLength=g.cachedLength;return}const p=Dc(f),l=Array.isArray(f);if(r!=null)this.dataType=new R(r);else{if(f instanceof ArrayBuffer)throw new Error("cannot infer data type from an ArrayBuffer instance when constructing a Series. Please provide a data type.");if(l||p){let g=f;if(!p){if(f.length===0)throw new Error("cannot infer data type from a zero length JS array when constructing a Series. Please provide a data type.");g=f[0]}if(typeof g=="string")this.dataType=R.STRING;else if(typeof g=="number")this.dataType=R.FLOAT64;else if(typeof g=="bigint")this.dataType=R.INT64;else if(typeof g=="boolean")this.dataType=R.BOOLEAN;else if(g instanceof h||g instanceof Date||g instanceof h)this.dataType=R.TIMESTAMP;else if(typeof g=="object")this.dataType=R.JSON;else throw new Error(`cannot infer data type of ${typeof g} when constructing a Series from a JS array`)}else this.dataType=new R(f)}if(!l&&!p)this._data=f;else if(l&&f.length===0)this._data=new this.dataType.Array([]).buffer;else{let g=p?[f]:f;const y=g[0];(y instanceof h||y instanceof Date||y instanceof U)&&(g=g.map(d=>new h(d).valueOf())),this.dataType.equals(R.STRING)?(this.cachedLength=g.length,this._data=new TextEncoder().encode(`${g.join(`
29
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const p of this.seen.entries()){const l=p[1];if(e===p[0]){a(p);continue}if(o.external){const y=o.external.registry.get(p[0])?.id;if(e!==p[0]&&y){a(p);continue}}if(this.metadataRegistry.get(p[0])?.id){a(p);continue}if(l.cycle){a(p);continue}if(l.count>1&&o.reused==="ref"){a(p);continue}}const u=(p,l)=>{const h=this.seen.get(p),y=h.def??h.schema,d={...y};if(h.ref===null)return;const $=h.ref;if(h.ref=null,$){u($,l);const w=this.seen.get($).schema;w.$ref&&l.target==="draft-7"?(y.allOf=y.allOf??[],y.allOf.push(w)):(Object.assign(y,w),Object.assign(y,d))}h.isParent||this.override({zodSchema:p,jsonSchema:y,path:h.path??[]})};for(const p of[...this.seen.entries()].reverse())u(p[0],{target:this.target});const s={};if(this.target==="draft-2020-12"?s.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?s.$schema="http://json-schema.org/draft-07/schema#":console.warn(`Invalid target: ${this.target}`),o.external?.uri){const p=o.external.registry.get(e)?.id;if(!p)throw new Error("Schema is missing an `id` property");s.$id=o.external.uri(p)}Object.assign(s,n.def);const f=o.external?.defs??{};for(const p of this.seen.entries()){const l=p[1];l.def&&l.defId&&(f[l.defId]=l.def)}o.external||Object.keys(f).length>0&&(this.target==="draft-2020-12"?s.$defs=f:s.definitions=f);try{return JSON.parse(JSON.stringify(s))}catch{throw new Error("Error converting schema to JSON.")}}}function fs(t,e){if(t instanceof Jn){const o=new gn(e),n={};for(const u of t._idmap.entries()){const[s,f]=u;o.process(f)}const i={},a={registry:t,uri:e?.uri,defs:n};for(const u of t._idmap.entries()){const[s,f]=u;i[s]=o.emit(f,{...e,external:a})}if(Object.keys(n).length>0){const u=o.target==="draft-2020-12"?"$defs":"definitions";i.__shared={[u]:n}}return{schemas:i}}const r=new gn(e);return r.process(t),r.emit(t,e)}function V(t,e){const r=e??{seen:new Set};if(r.seen.has(t))return!1;r.seen.add(t);const n=t._zod.def;switch(n.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return V(n.element,r);case"object":{for(const i in n.shape)if(V(n.shape[i],r))return!0;return!1}case"union":{for(const i of n.options)if(V(i,r))return!0;return!1}case"intersection":return V(n.left,r)||V(n.right,r);case"tuple":{for(const i of n.items)if(V(i,r))return!0;return!!(n.rest&&V(n.rest,r))}case"record":return V(n.keyType,r)||V(n.valueType,r);case"map":return V(n.keyType,r)||V(n.valueType,r);case"set":return V(n.valueType,r);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return V(n.innerType,r);case"lazy":return V(n.getter(),r);case"default":return V(n.innerType,r);case"prefault":return V(n.innerType,r);case"custom":return!1;case"transform":return!0;case"pipe":return V(n.in,r)||V(n.out,r);case"success":return!1;case"catch":return!1}throw new Error(`Unknown schema type: ${n.type}`)}const xf=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Nf=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:qa,$ZodArray:Ln,$ZodAsyncError:Ce,$ZodBase64:Aa,$ZodBase64URL:Ma,$ZodBigInt:Rn,$ZodBigIntFormat:Fa,$ZodBoolean:Cn,$ZodCIDRv4:Da,$ZodCIDRv6:Pa,$ZodCUID:Ia,$ZodCUID2:ka,$ZodCatch:mu,$ZodCheck:F,$ZodCheckBigIntFormat:Qo,$ZodCheckEndsWith:da,$ZodCheckGreaterThan:An,$ZodCheckIncludes:ca,$ZodCheckLengthEquals:oa,$ZodCheckLessThan:Pn,$ZodCheckLowerCase:ua,$ZodCheckMaxLength:ra,$ZodCheckMaxSize:ea,$ZodCheckMimeType:ma,$ZodCheckMinLength:ia,$ZodCheckMinSize:ta,$ZodCheckMultipleOf:Xo,$ZodCheckNumberFormat:Ho,$ZodCheckOverwrite:pa,$ZodCheckProperty:fa,$ZodCheckRegex:aa,$ZodCheckSizeEquals:na,$ZodCheckStartsWith:la,$ZodCheckStringFormat:ct,$ZodCheckUpperCase:sa,$ZodCustom:bu,$ZodCustomStringFormat:Wa,$ZodDate:Xa,$ZodDefault:cu,$ZodDiscriminatedUnion:Qa,$ZodE164:Ca,$ZodEmail:ba,$ZodEmoji:wa,$ZodEnum:iu,$ZodError:zn,$ZodFile:au,$ZodFunction:ls,$ZodGUID:va,$ZodIPv4:ja,$ZodIPv6:Ea,$ZodISODate:Na,$ZodISODateTime:xa,$ZodISODuration:Ua,$ZodISOTime:Ta,$ZodIntersection:eu,$ZodJWT:La,$ZodKSUID:za,$ZodLazy:yu,$ZodLiteral:ou,$ZodMap:nu,$ZodNaN:pu,$ZodNanoID:_a,$ZodNever:Ka,$ZodNonOptional:du,$ZodNull:Ga,$ZodNullable:su,$ZodNumber:Mn,$ZodNumberFormat:Ba,$ZodObject:Ha,$ZodOptional:uu,$ZodPipe:Fn,$ZodPrefault:lu,$ZodPromise:vu,$ZodReadonly:gu,$ZodRealError:st,$ZodRecord:tu,$ZodRegistry:Jn,$ZodSet:ru,$ZodString:lt,$ZodStringFormat:M,$ZodSuccess:fu,$ZodSymbol:Ja,$ZodTemplateLiteral:hu,$ZodTransform:Bn,$ZodTuple:Mt,$ZodType:k,$ZodULID:Sa,$ZodURL:$a,$ZodUUID:ya,$ZodUndefined:Va,$ZodUnion:Wn,$ZodUnknown:St,$ZodVoid:Ya,$ZodXID:Oa,$brand:Xi,$constructor:c,$input:Iu,$output:_u,Doc:ga,JSONSchema:xf,JSONSchemaGenerator:gn,NEVER:Yi,TimePrecision:Ou,_any:Gu,_array:Or,_base64:lr,_base64url:dr,_bigint:Ru,_boolean:Mu,_catch:_f,_cidrv4:sr,_cidrv6:cr,_coercedBigint:Lu,_coercedBoolean:Cu,_coercedDate:Xu,_coercedNumber:ju,_coercedString:Su,_cuid:tr,_cuid2:nr,_custom:as,_date:Yu,_default:bf,_discriminatedUnion:sf,_e164:fr,_email:Gn,_emoji:Qn,_endsWith:$r,_enum:mf,_file:os,_float32:Du,_float64:Pu,_gt:Te,_gte:Q,_guid:Ot,_includes:yr,_int:Eu,_int32:Au,_int64:Wu,_intersection:cf,_ipv4:ar,_ipv6:ur,_isoDate:xu,_isoDateTime:zu,_isoDuration:Tu,_isoTime:Nu,_jwt:mr,_ksuid:or,_lazy:Of,_length:Lt,_literal:gf,_lowercase:hr,_lt:Ne,_lte:ie,_map:df,_max:ie,_maxLength:Rt,_maxSize:Ct,_mime:wr,_min:Q,_minLength:We,_minSize:it,_multipleOf:rt,_nan:Hu,_nanoid:er,_nativeEnum:pf,_negative:es,_never:qu,_nonnegative:ns,_nonoptional:$f,_nonpositive:ts,_normalize:_r,_null:Vu,_nullable:yf,_number:Uu,_optional:vf,_overwrite:De,_parse:Tn,_parseAsync:Un,_pipe:If,_positive:Qu,_promise:zf,_property:rs,_readonly:kf,_record:lf,_refine:us,_regex:gr,_safeParse:jn,_safeParseAsync:En,_set:ff,_size:pr,_startsWith:br,_string:ku,_stringFormat:cs,_stringbool:ss,_success:wf,_symbol:Fu,_templateLiteral:Sf,_toLowerCase:kr,_toUpperCase:Sr,_transform:hf,_trim:Ir,_tuple:is,_uint32:Zu,_uint64:Bu,_ulid:rr,_undefined:Ju,_union:uf,_unknown:zt,_uppercase:vr,_url:Hn,_uuid:qn,_uuidv4:Kn,_uuidv6:Yn,_uuidv7:Xn,_void:Ku,_xid:ir,clone:de,config:H,flattenError:xn,formatError:Nn,function:ds,globalConfig:It,globalRegistry:ke,isValidBase64:Zn,isValidBase64URL:Za,isValidJWT:Ra,locales:wu,parse:fn,parseAsync:mn,prettifyError:go,regexes:Ko,registry:Vn,safeParse:ho,safeParseAsync:vo,toDotPath:po,toJSONSchema:fs,treeifyError:mo,util:Il,version:ha},Symbol.toStringTag,{value:"Module"})),zr=c("ZodISODateTime",(t,e)=>{xa.init(t,e),C.init(t,e)});function ms(t){return zu(zr,t)}const xr=c("ZodISODate",(t,e)=>{Na.init(t,e),C.init(t,e)});function ps(t){return xu(xr,t)}const Nr=c("ZodISOTime",(t,e)=>{Ta.init(t,e),C.init(t,e)});function gs(t){return Nu(Nr,t)}const Tr=c("ZodISODuration",(t,e)=>{Ua.init(t,e),C.init(t,e)});function hs(t){return Tu(Tr,t)}const Tf=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:xr,ZodISODateTime:zr,ZodISODuration:Tr,ZodISOTime:Nr,date:ps,datetime:ms,duration:hs,time:gs},Symbol.toStringTag,{value:"Module"})),vs=(t,e)=>{zn.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:r=>Nn(t,r)},flatten:{value:r=>xn(t,r)},addIssue:{value:r=>t.issues.push(r)},addIssues:{value:r=>t.issues.push(...r)},isEmpty:{get(){return t.issues.length===0}}})},Uf=c("ZodError",vs),dt=c("ZodError",vs,{Parent:Error}),ys=Tn(dt),bs=Un(dt),$s=jn(dt),ws=En(dt),z=c("ZodType",(t,e)=>(k.init(t,e),t.def=e,Object.defineProperty(t,"_def",{value:e}),t.check=(...r)=>t.clone({...e,checks:[...e.checks??[],...r.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),t.clone=(r,o)=>de(t,r,o),t.brand=()=>t,t.register=(r,o)=>(r.add(t,o),t),t.parse=(r,o)=>ys(t,r,o,{callee:t.parse}),t.safeParse=(r,o)=>$s(t,r,o),t.parseAsync=async(r,o)=>bs(t,r,o,{callee:t.parseAsync}),t.safeParseAsync=async(r,o)=>ws(t,r,o),t.spa=t.safeParseAsync,t.refine=(r,o)=>t.check(ac(r,o)),t.superRefine=r=>t.check(uc(r)),t.overwrite=r=>t.check(De(r)),t.optional=()=>Nt(t),t.nullable=()=>Tt(t),t.nullish=()=>Nt(Tt(t)),t.nonoptional=r=>qs(t,r),t.array=()=>ft(t),t.or=r=>L([t,r]),t.and=r=>As(t,r),t.transform=r=>Ut(t,ti(r)),t.default=r=>Js(t,r),t.prefault=r=>Gs(t,r),t.catch=r=>Xs(t,r),t.pipe=r=>Ut(t,r),t.readonly=()=>ec(t),t.describe=r=>{const o=t.clone();return ke.add(o,{description:r}),o},Object.defineProperty(t,"description",{get(){return ke.get(t)?.description},configurable:!0}),t.meta=(...r)=>{if(r.length===0)return ke.get(t);const o=t.clone();return ke.add(o,r[0]),o},t.isOptional=()=>t.safeParse(void 0).success,t.isNullable=()=>t.safeParse(null).success,t)),Ur=c("_ZodString",(t,e)=>{lt.init(t,e),z.init(t,e);const r=t._zod.bag;t.format=r.format??null,t.minLength=r.minimum??null,t.maxLength=r.maximum??null,t.regex=(...o)=>t.check(gr(...o)),t.includes=(...o)=>t.check(yr(...o)),t.startsWith=(...o)=>t.check(br(...o)),t.endsWith=(...o)=>t.check($r(...o)),t.min=(...o)=>t.check(We(...o)),t.max=(...o)=>t.check(Rt(...o)),t.length=(...o)=>t.check(Lt(...o)),t.nonempty=(...o)=>t.check(We(1,...o)),t.lowercase=o=>t.check(hr(o)),t.uppercase=o=>t.check(vr(o)),t.trim=()=>t.check(Ir()),t.normalize=(...o)=>t.check(_r(...o)),t.toLowerCase=()=>t.check(kr()),t.toUpperCase=()=>t.check(Sr())}),Wt=c("ZodString",(t,e)=>{lt.init(t,e),Ur.init(t,e),t.email=r=>t.check(Gn(jr,r)),t.url=r=>t.check(Hn(Er,r)),t.jwt=r=>t.check(mr(qr,r)),t.emoji=r=>t.check(Qn(Dr,r)),t.guid=r=>t.check(Ot(xt,r)),t.uuid=r=>t.check(qn(fe,r)),t.uuidv4=r=>t.check(Kn(fe,r)),t.uuidv6=r=>t.check(Yn(fe,r)),t.uuidv7=r=>t.check(Xn(fe,r)),t.nanoid=r=>t.check(er(Pr,r)),t.guid=r=>t.check(Ot(xt,r)),t.cuid=r=>t.check(tr(Ar,r)),t.cuid2=r=>t.check(nr(Zr,r)),t.ulid=r=>t.check(rr(Mr,r)),t.base64=r=>t.check(lr(Jr,r)),t.base64url=r=>t.check(dr(Vr,r)),t.xid=r=>t.check(ir(Cr,r)),t.ksuid=r=>t.check(or(Rr,r)),t.ipv4=r=>t.check(ar(Lr,r)),t.ipv6=r=>t.check(ur(Wr,r)),t.cidrv4=r=>t.check(sr(Br,r)),t.cidrv6=r=>t.check(cr(Fr,r)),t.e164=r=>t.check(fr(Gr,r)),t.datetime=r=>t.check(ms(r)),t.date=r=>t.check(ps(r)),t.time=r=>t.check(gs(r)),t.duration=r=>t.check(hs(r))});function A(t){return ku(Wt,t)}const C=c("ZodStringFormat",(t,e)=>{M.init(t,e),Ur.init(t,e)}),jr=c("ZodEmail",(t,e)=>{ba.init(t,e),C.init(t,e)});function jf(t){return Gn(jr,t)}const xt=c("ZodGUID",(t,e)=>{va.init(t,e),C.init(t,e)});function Ef(t){return Ot(xt,t)}const fe=c("ZodUUID",(t,e)=>{ya.init(t,e),C.init(t,e)});function Df(t){return qn(fe,t)}function Pf(t){return Kn(fe,t)}function Af(t){return Yn(fe,t)}function Zf(t){return Xn(fe,t)}const Er=c("ZodURL",(t,e)=>{$a.init(t,e),C.init(t,e)});function Mf(t){return Hn(Er,t)}const Dr=c("ZodEmoji",(t,e)=>{wa.init(t,e),C.init(t,e)});function Cf(t){return Qn(Dr,t)}const Pr=c("ZodNanoID",(t,e)=>{_a.init(t,e),C.init(t,e)});function Rf(t){return er(Pr,t)}const Ar=c("ZodCUID",(t,e)=>{Ia.init(t,e),C.init(t,e)});function Lf(t){return tr(Ar,t)}const Zr=c("ZodCUID2",(t,e)=>{ka.init(t,e),C.init(t,e)});function Wf(t){return nr(Zr,t)}const Mr=c("ZodULID",(t,e)=>{Sa.init(t,e),C.init(t,e)});function Bf(t){return rr(Mr,t)}const Cr=c("ZodXID",(t,e)=>{Oa.init(t,e),C.init(t,e)});function Ff(t){return ir(Cr,t)}const Rr=c("ZodKSUID",(t,e)=>{za.init(t,e),C.init(t,e)});function Jf(t){return or(Rr,t)}const Lr=c("ZodIPv4",(t,e)=>{ja.init(t,e),C.init(t,e)});function Vf(t){return ar(Lr,t)}const Wr=c("ZodIPv6",(t,e)=>{Ea.init(t,e),C.init(t,e)});function Gf(t){return ur(Wr,t)}const Br=c("ZodCIDRv4",(t,e)=>{Da.init(t,e),C.init(t,e)});function qf(t){return sr(Br,t)}const Fr=c("ZodCIDRv6",(t,e)=>{Pa.init(t,e),C.init(t,e)});function Kf(t){return cr(Fr,t)}const Jr=c("ZodBase64",(t,e)=>{Aa.init(t,e),C.init(t,e)});function Yf(t){return lr(Jr,t)}const Vr=c("ZodBase64URL",(t,e)=>{Ma.init(t,e),C.init(t,e)});function Xf(t){return dr(Vr,t)}const Gr=c("ZodE164",(t,e)=>{Ca.init(t,e),C.init(t,e)});function Hf(t){return fr(Gr,t)}const qr=c("ZodJWT",(t,e)=>{La.init(t,e),C.init(t,e)});function Qf(t){return mr(qr,t)}const _s=c("ZodCustomStringFormat",(t,e)=>{Wa.init(t,e),C.init(t,e)});function em(t,e,r={}){return cs(_s,t,e,r)}const Bt=c("ZodNumber",(t,e)=>{Mn.init(t,e),z.init(t,e),t.gt=(o,n)=>t.check(Te(o,n)),t.gte=(o,n)=>t.check(Q(o,n)),t.min=(o,n)=>t.check(Q(o,n)),t.lt=(o,n)=>t.check(Ne(o,n)),t.lte=(o,n)=>t.check(ie(o,n)),t.max=(o,n)=>t.check(ie(o,n)),t.int=o=>t.check(ce(o)),t.safe=o=>t.check(ce(o)),t.positive=o=>t.check(Te(0,o)),t.nonnegative=o=>t.check(Q(0,o)),t.negative=o=>t.check(Ne(0,o)),t.nonpositive=o=>t.check(ie(0,o)),t.multipleOf=(o,n)=>t.check(rt(o,n)),t.step=(o,n)=>t.check(rt(o,n)),t.finite=()=>t;const r=t._zod.bag;t.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),t.isFinite=!0,t.format=r.format??null});function x(t){return Uu(Bt,t)}const Je=c("ZodNumberFormat",(t,e)=>{Ba.init(t,e),Bt.init(t,e)});function ce(t){return Eu(Je,t)}function tm(t){return Du(Je,t)}function nm(t){return Pu(Je,t)}function rm(t){return Au(Je,t)}function im(t){return Zu(Je,t)}const Ft=c("ZodBoolean",(t,e)=>{Cn.init(t,e),z.init(t,e)});function Y(t){return Mu(Ft,t)}const Jt=c("ZodBigInt",(t,e)=>{Rn.init(t,e),z.init(t,e),t.gte=(o,n)=>t.check(Q(o,n)),t.min=(o,n)=>t.check(Q(o,n)),t.gt=(o,n)=>t.check(Te(o,n)),t.gte=(o,n)=>t.check(Q(o,n)),t.min=(o,n)=>t.check(Q(o,n)),t.lt=(o,n)=>t.check(Ne(o,n)),t.lte=(o,n)=>t.check(ie(o,n)),t.max=(o,n)=>t.check(ie(o,n)),t.positive=o=>t.check(Te(BigInt(0),o)),t.negative=o=>t.check(Ne(BigInt(0),o)),t.nonpositive=o=>t.check(ie(BigInt(0),o)),t.nonnegative=o=>t.check(Q(BigInt(0),o)),t.multipleOf=(o,n)=>t.check(rt(o,n));const r=t._zod.bag;t.minValue=r.minimum??null,t.maxValue=r.maximum??null,t.format=r.format??null});function pe(t){return Ru(Jt,t)}const Kr=c("ZodBigIntFormat",(t,e)=>{Fa.init(t,e),Jt.init(t,e)});function om(t){return Wu(Kr,t)}function am(t){return Bu(Kr,t)}const Is=c("ZodSymbol",(t,e)=>{Ja.init(t,e),z.init(t,e)});function ks(t){return Fu(Is,t)}const Ss=c("ZodUndefined",(t,e)=>{Va.init(t,e),z.init(t,e)});function Os(t){return Ju(Ss,t)}const zs=c("ZodNull",(t,e)=>{Ga.init(t,e),z.init(t,e)});function Yr(t){return Vu(zs,t)}const xs=c("ZodAny",(t,e)=>{qa.init(t,e),z.init(t,e)});function um(){return Gu(xs)}const Ns=c("ZodUnknown",(t,e)=>{St.init(t,e),z.init(t,e)});function Be(){return zt(Ns)}const Ts=c("ZodNever",(t,e)=>{Ka.init(t,e),z.init(t,e)});function Vt(t){return qu(Ts,t)}const Us=c("ZodVoid",(t,e)=>{Ya.init(t,e),z.init(t,e)});function sm(t){return Ku(Us,t)}const Xr=c("ZodDate",(t,e)=>{Xa.init(t,e),z.init(t,e),t.min=(o,n)=>t.check(Q(o,n)),t.max=(o,n)=>t.check(ie(o,n));const r=t._zod.bag;t.minDate=r.minimum?new Date(r.minimum):null,t.maxDate=r.maximum?new Date(r.maximum):null});function js(t){return Yu(Xr,t)}const Es=c("ZodArray",(t,e)=>{Ln.init(t,e),z.init(t,e),t.element=e.element,t.min=(r,o)=>t.check(We(r,o)),t.nonempty=r=>t.check(We(1,r)),t.max=(r,o)=>t.check(Rt(r,o)),t.length=(r,o)=>t.check(Lt(r,o)),t.unwrap=()=>t.element});function ft(t,e){return Or(Es,t,e)}function cm(t){const e=t._zod.def.shape;return Ls(Object.keys(e))}const Gt=c("ZodObject",(t,e)=>{Ha.init(t,e),z.init(t,e),T(t,"shape",()=>e.shape),t.keyof=()=>J(Object.keys(t._zod.def.shape)),t.catchall=r=>t.clone({...t._zod.def,catchall:r}),t.passthrough=()=>t.clone({...t._zod.def,catchall:Be()}),t.loose=()=>t.clone({...t._zod.def,catchall:Be()}),t.strict=()=>t.clone({...t._zod.def,catchall:Vt()}),t.strip=()=>t.clone({...t._zod.def,catchall:void 0}),t.extend=r=>uo(t,r),t.merge=r=>so(t,r),t.pick=r=>oo(t,r),t.omit=r=>ao(t,r),t.partial=(...r)=>co(ni,t,r[0]),t.required=(...r)=>lo(ri,t,r[0])});function D(t,e){const r={type:"object",get shape(){return Fe(this,"shape",{...t}),this.shape},...m(e)};return new Gt(r)}function lm(t,e){return new Gt({type:"object",get shape(){return Fe(this,"shape",{...t}),this.shape},catchall:Vt(),...m(e)})}function dm(t,e){return new Gt({type:"object",get shape(){return Fe(this,"shape",{...t}),this.shape},catchall:Be(),...m(e)})}const Hr=c("ZodUnion",(t,e)=>{Wn.init(t,e),z.init(t,e),t.options=e.options});function L(t,e){return new Hr({type:"union",options:t,...m(e)})}const Ds=c("ZodDiscriminatedUnion",(t,e)=>{Hr.init(t,e),Qa.init(t,e)});function fm(t,e,r){return new Ds({type:"union",options:e,discriminator:t,...m(r)})}const Ps=c("ZodIntersection",(t,e)=>{eu.init(t,e),z.init(t,e)});function As(t,e){return new Ps({type:"intersection",left:t,right:e})}const Zs=c("ZodTuple",(t,e)=>{Mt.init(t,e),z.init(t,e),t.rest=r=>t.clone({...t._zod.def,rest:r})});function me(t,e,r){const o=e instanceof k,n=o?r:e,i=o?e:null;return new Zs({type:"tuple",items:t,rest:i,...m(n)})}const Qr=c("ZodRecord",(t,e)=>{tu.init(t,e),z.init(t,e),t.keyType=e.keyType,t.valueType=e.valueType});function qt(t,e,r){return new Qr({type:"record",keyType:t,valueType:e,...m(r)})}function mm(t,e,r){return new Qr({type:"record",keyType:L([t,Vt()]),valueType:e,...m(r)})}const Ms=c("ZodMap",(t,e)=>{nu.init(t,e),z.init(t,e),t.keyType=e.keyType,t.valueType=e.valueType});function pm(t,e,r){return new Ms({type:"map",keyType:t,valueType:e,...m(r)})}const Cs=c("ZodSet",(t,e)=>{ru.init(t,e),z.init(t,e),t.min=(...r)=>t.check(it(...r)),t.nonempty=r=>t.check(it(1,r)),t.max=(...r)=>t.check(Ct(...r)),t.size=(...r)=>t.check(pr(...r))});function gm(t,e){return new Cs({type:"set",valueType:t,...m(e)})}const ot=c("ZodEnum",(t,e)=>{iu.init(t,e),z.init(t,e),t.enum=e.entries,t.options=Object.values(e.entries);const r=new Set(Object.keys(e.entries));t.extract=(o,n)=>{const i={};for(const a of o)if(r.has(a))i[a]=e.entries[a];else throw new Error(`Key ${a} not found in enum`);return new ot({...e,checks:[],...m(n),entries:i})},t.exclude=(o,n)=>{const i={...e.entries};for(const a of o)if(r.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new ot({...e,checks:[],...m(n),entries:i})}});function J(t,e){const r=Array.isArray(t)?Object.fromEntries(t.map(o=>[o,o])):t;return new ot({type:"enum",entries:r,...m(e)})}function hm(t,e){return new ot({type:"enum",entries:t,...m(e)})}const Rs=c("ZodLiteral",(t,e)=>{ou.init(t,e),z.init(t,e),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 Ls(t,e){return new Rs({type:"literal",values:Array.isArray(t)?t:[t],...m(e)})}const Ws=c("ZodFile",(t,e)=>{au.init(t,e),z.init(t,e),t.min=(r,o)=>t.check(it(r,o)),t.max=(r,o)=>t.check(Ct(r,o)),t.mime=(r,o)=>t.check(wr(Array.isArray(r)?r:[r],o))});function vm(t){return os(Ws,t)}const ei=c("ZodTransform",(t,e)=>{Bn.init(t,e),z.init(t,e),t._zod.parse=(r,o)=>{r.addIssue=i=>{if(typeof i=="string")r.issues.push(Re(i,r.value,e));else{const a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=t),a.continue??(a.continue=!0),r.issues.push(Re(a))}};const n=e.transform(r.value,r);return n instanceof Promise?n.then(i=>(r.value=i,r)):(r.value=n,r)}});function ti(t){return new ei({type:"transform",transform:t})}const ni=c("ZodOptional",(t,e)=>{uu.init(t,e),z.init(t,e),t.unwrap=()=>t._zod.def.innerType});function Nt(t){return new ni({type:"optional",innerType:t})}const Bs=c("ZodNullable",(t,e)=>{su.init(t,e),z.init(t,e),t.unwrap=()=>t._zod.def.innerType});function Tt(t){return new Bs({type:"nullable",innerType:t})}function ym(t){return Nt(Tt(t))}const Fs=c("ZodDefault",(t,e)=>{cu.init(t,e),z.init(t,e),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function Js(t,e){return new Fs({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():e}})}const Vs=c("ZodPrefault",(t,e)=>{lu.init(t,e),z.init(t,e),t.unwrap=()=>t._zod.def.innerType});function Gs(t,e){return new Vs({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():e}})}const ri=c("ZodNonOptional",(t,e)=>{du.init(t,e),z.init(t,e),t.unwrap=()=>t._zod.def.innerType});function qs(t,e){return new ri({type:"nonoptional",innerType:t,...m(e)})}const Ks=c("ZodSuccess",(t,e)=>{fu.init(t,e),z.init(t,e),t.unwrap=()=>t._zod.def.innerType});function bm(t){return new Ks({type:"success",innerType:t})}const Ys=c("ZodCatch",(t,e)=>{mu.init(t,e),z.init(t,e),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function Xs(t,e){return new Ys({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}const Hs=c("ZodNaN",(t,e)=>{pu.init(t,e),z.init(t,e)});function $m(t){return Hu(Hs,t)}const ii=c("ZodPipe",(t,e)=>{Fn.init(t,e),z.init(t,e),t.in=e.in,t.out=e.out});function Ut(t,e){return new ii({type:"pipe",in:t,out:e})}const Qs=c("ZodReadonly",(t,e)=>{gu.init(t,e),z.init(t,e)});function ec(t){return new Qs({type:"readonly",innerType:t})}const tc=c("ZodTemplateLiteral",(t,e)=>{hu.init(t,e),z.init(t,e)});function wm(t,e){return new tc({type:"template_literal",parts:t,...m(e)})}const nc=c("ZodLazy",(t,e)=>{yu.init(t,e),z.init(t,e),t.unwrap=()=>t._zod.def.getter()});function rc(t){return new nc({type:"lazy",getter:t})}const ic=c("ZodPromise",(t,e)=>{vu.init(t,e),z.init(t,e),t.unwrap=()=>t._zod.def.innerType});function _m(t){return new ic({type:"promise",innerType:t})}const Kt=c("ZodCustom",(t,e)=>{bu.init(t,e),z.init(t,e)});function oc(t){const e=new F({check:"custom"});return e._zod.check=t,e}function oi(t,e){return as(Kt,t??(()=>!0),e)}function ac(t,e={}){return us(Kt,t,e)}function uc(t){const e=oc(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Re(o,r.value,e._zod.def));else{const n=o;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=e),n.continue??(n.continue=!e._zod.def.abort),r.issues.push(Re(n))}},t(r.value,r)));return e}function W(t,e={error:`Input not instance of ${t.name}`}){const r=new Kt({type:"custom",check:"custom",fn:o=>o instanceof t,abort:!0,...m(e)});return r._zod.bag.Class=t,r}const Im=(...t)=>ss({Pipe:ii,Boolean:Ft,String:Wt,Transform:ei},...t);function km(t){const e=rc(()=>L([A(t),x(),Y(),Yr(),ft(e),qt(A(),e)]));return e}function Sm(t,e){return Ut(ti(t),e)}const Om={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 zm(t){H({customError:t})}function xm(){return H().customError}function Nm(t){return Su(Wt,t)}function Tm(t){return ju(Bt,t)}function Um(t){return Cu(Ft,t)}function sc(t){return Lu(Jt,t)}function jm(t){return Xu(Xr,t)}const Em=Object.freeze(Object.defineProperty({__proto__:null,bigint:sc,boolean:Um,date:jm,number:Tm,string:Nm},Symbol.toStringTag,{value:"Module"}));H($u());const B=Object.freeze(Object.defineProperty({__proto__:null,$brand:Xi,$input:Iu,$output:_u,NEVER:Yi,TimePrecision:Ou,ZodAny:xs,ZodArray:Es,ZodBase64:Jr,ZodBase64URL:Vr,ZodBigInt:Jt,ZodBigIntFormat:Kr,ZodBoolean:Ft,ZodCIDRv4:Br,ZodCIDRv6:Fr,ZodCUID:Ar,ZodCUID2:Zr,ZodCatch:Ys,ZodCustom:Kt,ZodCustomStringFormat:_s,ZodDate:Xr,ZodDefault:Fs,ZodDiscriminatedUnion:Ds,ZodE164:Gr,ZodEmail:jr,ZodEmoji:Dr,ZodEnum:ot,ZodError:Uf,ZodFile:Ws,ZodGUID:xt,ZodIPv4:Lr,ZodIPv6:Wr,ZodISODate:xr,ZodISODateTime:zr,ZodISODuration:Tr,ZodISOTime:Nr,ZodIntersection:Ps,ZodIssueCode:Om,ZodJWT:qr,ZodKSUID:Rr,ZodLazy:nc,ZodLiteral:Rs,ZodMap:Ms,ZodNaN:Hs,ZodNanoID:Pr,ZodNever:Ts,ZodNonOptional:ri,ZodNull:zs,ZodNullable:Bs,ZodNumber:Bt,ZodNumberFormat:Je,ZodObject:Gt,ZodOptional:ni,ZodPipe:ii,ZodPrefault:Vs,ZodPromise:ic,ZodReadonly:Qs,ZodRealError:dt,ZodRecord:Qr,ZodSet:Cs,ZodString:Wt,ZodStringFormat:C,ZodSuccess:Ks,ZodSymbol:Is,ZodTemplateLiteral:tc,ZodTransform:ei,ZodTuple:Zs,ZodType:z,ZodULID:Mr,ZodURL:Er,ZodUUID:fe,ZodUndefined:Ss,ZodUnion:Hr,ZodUnknown:Ns,ZodVoid:Us,ZodXID:Cr,_ZodString:Ur,_default:Js,any:um,array:ft,base64:Yf,base64url:Xf,bigint:pe,boolean:Y,catch:Xs,check:oc,cidrv4:qf,cidrv6:Kf,clone:de,coerce:Em,config:H,core:Nf,cuid:Lf,cuid2:Wf,custom:oi,date:js,discriminatedUnion:fm,e164:Hf,email:jf,emoji:Cf,endsWith:$r,enum:J,file:vm,flattenError:xn,float32:tm,float64:nm,formatError:Nn,function:ds,getErrorMap:xm,globalRegistry:ke,gt:Te,gte:Q,guid:Ef,includes:yr,instanceof:W,int:ce,int32:rm,int64:om,intersection:As,ipv4:Vf,ipv6:Gf,iso:Tf,json:km,jwt:Qf,keyof:cm,ksuid:Jf,lazy:rc,length:Lt,literal:Ls,locales:wu,looseObject:dm,lowercase:hr,lt:Ne,lte:ie,map:pm,maxLength:Rt,maxSize:Ct,mime:wr,minLength:We,minSize:it,multipleOf:rt,nan:$m,nanoid:Rf,nativeEnum:hm,negative:es,never:Vt,nonnegative:ns,nonoptional:qs,nonpositive:ts,normalize:_r,null:Yr,nullable:Tt,nullish:ym,number:x,object:D,optional:Nt,overwrite:De,parse:ys,parseAsync:bs,partialRecord:mm,pipe:Ut,positive:Qu,prefault:Gs,preprocess:Sm,prettifyError:go,promise:_m,property:rs,readonly:ec,record:qt,refine:ac,regex:gr,regexes:Ko,registry:Vn,safeParse:$s,safeParseAsync:ws,set:gm,setErrorMap:zm,size:pr,startsWith:br,strictObject:lm,string:A,stringFormat:em,stringbool:Im,success:bm,superRefine:uc,symbol:ks,templateLiteral:wm,toJSONSchema:fs,toLowerCase:kr,toUpperCase:Sr,transform:ti,treeifyError:mo,trim:Ir,tuple:me,uint32:im,uint64:am,ulid:Bf,undefined:Os,union:L,unknown:Be,uppercase:vr,url:Mf,uuid:Df,uuidv4:Pf,uuidv6:Af,uuidv7:Zf,void:sm,xid:Ff},Symbol.toStringTag,{value:"Module"})),te=t=>t!=null&&typeof t=="object"&&"value"in t;let Ve=class{value;constructor(e){this.value=e}valueOf(){return this.value}toJSON(){return this.value}toString(){return this.value.toString()}};const Dm=t=>t!=null&&typeof t=="object"&&"toString"in t,Pm=(t,e=!1)=>{const r=Dm(t)?"stringer":typeof t;let o;switch(r){case"string":o=(n,i)=>n.localeCompare(i);break;case"stringer":o=(n,i)=>n.toString().localeCompare(i.toString());break;case"number":o=(n,i)=>Number(n)-Number(i);break;case"bigint":o=(n,i)=>BigInt(n)-BigInt(i)>0n?1:-1;break;case"boolean":o=(n,i)=>Number(n)-Number(i);break;case"undefined":o=()=>0;break;default:return console.warn(`sortFunc: unknown type ${r}`),()=>-1}return e?Am(o):o},Am=t=>(e,r)=>t(r,e),Yt=me([x(),x()]);me([pe(),pe()]);const ai=D({width:x(),height:x()}),Zm=D({signedWidth:x(),signedHeight:x()}),Mm=["width","height"];J(Mm);const Cm=["start","center","end"],Rm=["signedWidth","signedHeight"];J(Rm);const at=D({x:x(),y:x()}),cc=D({clientX:x(),clientY:x()}),lc=["x","y"],dc=J(lc),fc=["top","right","bottom","left"];J(fc);const ui=["left","right"],mc=J(ui),si=["top","bottom"],pc=J(si),gc=["center"],Ci=J(gc),Lm=[...fc,...gc],hc=J(Lm);J(Cm);const Wm=["first","last"];J(Wm);const Bm=D({lower:x(),upper:x()}),Fm=D({lower:pe(),upper:pe()});L([Bm,Yt]);L([Fm,Yt]);J([...dc.options,...hc.options]);J(["x","left","right"]);J(["y","top","bottom"]);L([dc,hc,W(String)]);const Xt=t=>(e,r)=>{if(typeof e=="bigint"){if(Jm(r))return t(e,BigInt(r));const o=t(Number(e),Number(r));return typeof o=="number"?BigInt(Math.round(o)):o}return t(Number(e),Number(r))},Ht=Xt((t,e)=>t-e),Qt=Xt((t,e)=>t+e),Jm=t=>typeof t=="bigint"?!0:Number.isInteger(t),se=Xt((t,e)=>t*e),en=Xt((t,e)=>t/e),Oe=(t,e,r)=>{const o={};if(typeof e=="object"&&(r=e,e=void 0),r={makeValid:!0,...r},typeof t=="number"||typeof t=="bigint")e!=null?(o.lower=t,o.upper=e):(o.lower=typeof t=="bigint"?0n:0,o.upper=t);else if(Array.isArray(t)){if(t.length!==2)throw new Error("bounds: expected array of length 2");[o.lower,o.upper]=t}else o.lower=t.lower,o.upper=t.upper;return r?.makeValid?Vm(o):o},Vm=t=>t.lower>t.upper?{lower:t.upper,upper:t.lower}:t,Ri=(t,e)=>{const r=Oe(t);return e<r.lower?r.lower:e>=r.upper?r.upper-(typeof r.upper=="number"?1:1n):e},ci=t=>lc.includes(t)?t:si.includes(t)?"y":"x";D({x:mc.or(Ci),y:pc.or(Ci)});const Gm=D({x:mc,y:pc}),li=Object.freeze({x:"left",y:"top"}),qm=Object.freeze({x:"right",y:"top"}),vc=Object.freeze({x:"left",y:"bottom"}),Km=Object.freeze({x:"right",y:"bottom"}),Ym=Object.freeze({x:"center",y:"top"}),Xm=Object.freeze({x:"center",y:"bottom"}),Hm=Object.freeze({x:"right",y:"center"}),Qm=Object.freeze({x:"left",y:"center"}),yc=(t,e)=>t.x===e.x&&t.y===e.y,ep=t=>[t.x,t.y],hn=L([x(),at,Yt,ai,Zm,cc]),E=(t,e)=>{if(typeof t=="string"){if(e===void 0)throw new Error("The y coordinate must be given.");return t==="x"?{x:e,y:0}:{x:0,y:e}}return typeof t=="number"?{x:t,y:e??t}:Array.isArray(t)?{x:t[0],y:t[1]}:"signedWidth"in t?{x:t.signedWidth,y:t.signedHeight}:"clientX"in t?{x:t.clientX,y:t.clientY}:"width"in t?{x:t.width,y:t.height}:{x:t.x,y:t.y}},le=Object.freeze({x:0,y:0}),bc=Object.freeze({x:1,y:1}),tp=Object.freeze({x:1/0,y:1/0}),np=Object.freeze({x:NaN,y:NaN}),jt=(t,e,r=0)=>{const o=E(t),n=E(e);return r===0?o.x===n.x&&o.y===n.y:Math.abs(o.x-n.x)<=r&&Math.abs(o.y-n.y)<=r},rp=t=>jt(t,le),di=(t,e,r)=>{const o=E(t),n=E(e,r);return{x:o.x*n.x,y:o.y*n.y}},$c=(t,e)=>{const r=E(t);return{x:r.x+e,y:r.y}},wc=(t,e)=>{const r=E(t);return{x:r.x,y:r.y+e}},ut=(t,e,r,...o)=>{if(typeof e=="string"){if(typeof r!="number")throw new Error("The value must be a number.");return e==="x"?$c(t,r):wc(t,r)}if(typeof e=="object"&&"x"in e&&typeof e.x=="string"){const n=E(r),i=E(t);return e.x==="left"?n.x=-n.x:e.x==="center"&&(n.x=0),e.y==="top"?n.y=-n.y:e.y==="center"&&(n.y=0),{x:i.x+n.x,y:i.y+n.y}}return[t,e,r??le,...o].reduce((n,i)=>{const a=E(i);return{x:n.x+a.x,y:n.y+a.y}},le)},ip=(t,e,r)=>{const o=E(t);return e==="x"?{x:r,y:o.y}:{x:o.x,y:r}},op=(t,e)=>{const r=E(t),o=E(e);return Math.sqrt((r.x-o.x)**2+(r.y-o.y)**2)},ap=(t,e)=>{const r=E(t),o=E(e);return{x:o.x-r.x,y:o.y-r.y}},up=t=>{const e=E(t);return Number.isNaN(e.x)||Number.isNaN(e.y)},sp=t=>{const e=E(t);return Number.isFinite(e.x)&&Number.isFinite(e.y)},cp=t=>{const e=E(t);return[e.x,e.y]},lp=t=>{const e=E(t);return{left:e.x,top:e.y}},vn=(t,e=0)=>{const r=E(t);return{x:Number(r.x.toFixed(e)),y:Number(r.y.toFixed(e))}},Ye=(t,e)=>{const r=E(t),o=E(e);return{x:r.x-o.x,y:r.y-o.y}},Xe=t=>{const e=E(t),r=Math.hypot(e.x,e.y);return r===0?{x:0,y:0}:{x:-e.y/r,y:e.x/r}},_c=t=>{const e=E(t),r=Math.hypot(e.x,e.y);return r===0?{x:0,y:0}:{x:e.x/r,y:e.y/r}},Ic=(...t)=>{const e=t.reduce((r,o)=>ut(r,o),le);return di(e,1/t.length)},dp=(t,e)=>{const r=[];for(let o=0;o<t.length;o++){const n=t[o];let i,a,u,s;if(o===0){const f=t[o+1],p=Ye(f,n);a=Xe(p),u=a,s=e}else if(o===t.length-1){const f=t[o-1],p=Ye(n,f);i=Xe(p),u=i,s=e}else{const f=t[o-1],p=t[o+1],l=Ye(n,f),h=Ye(p,n);i=Xe(l),a=Xe(h);const y=Math.acos((l.x*h.x+l.y*h.y)/(Math.hypot(l.x,l.y)*Math.hypot(h.x,h.y))),d=Math.sin(y/2);d===0?s=e:s=e/d,u=_c(Ic(i,a))}r.push(di(u,s))}return r},fp=t=>{const e=E(t);return{x:e.y,y:e.x}},yn=t=>{const e=E(t);return{x:Math.round(e.x),y:Math.round(e.y)}},Et=Object.freeze(Object.defineProperty({__proto__:null,INFINITY:tp,NAN:np,ONE:bc,ZERO:le,average:Ic,calculateMiters:dp,clientXY:cc,construct:E,couple:cp,crudeZ:hn,css:lp,distance:op,equals:jt,isFinite:sp,isNan:up,isZero:rp,normal:Xe,normalize:_c,round:yn,scale:di,set:ip,sub:Ye,swap:fp,translate:ut,translateX:$c,translateY:wc,translation:ap,truncate:vn,xy:at},Symbol.toStringTag,{value:"Module"})),ht=L([x(),A()]),mp=D({top:ht,left:ht,width:ht,height:ht}),pp=D({left:x(),top:x(),right:x(),bottom:x()}),gp=D({one:at,two:at,root:Gm}),kc={one:le,two:le,root:li},hp={one:le,two:bc,root:vc},Sc=(t,e)=>({one:t.one,two:t.two,root:e??t.root}),Z=(t,e,r=0,o=0,n)=>{const i={one:{...le},two:{...le},root:n??li};if(typeof t=="number"){if(typeof e!="number")throw new Error("Box constructor called with invalid arguments");return i.one={x:t,y:e},i.two={x:i.one.x+r,y:i.one.y+o},i}return"one"in t&&"two"in t&&"root"in t?{...t,root:n??t.root}:("getBoundingClientRect"in t&&(t=t.getBoundingClientRect()),"left"in t?(i.one={x:t.left,y:t.top},i.two={x:t.right,y:t.bottom},i):(i.one=t,e==null?i.two={x:i.one.x+r,y:i.one.y+o}:typeof e=="number"?i.two={x:i.one.x+e,y:i.one.y+r}:"width"in e?i.two={x:i.one.x+e.width,y:i.one.y+e.height}:"signedWidth"in e?i.two={x:i.one.x+e.signedWidth,y:i.one.y+e.signedHeight}:i.two=e,i))},vp=(t,e,r)=>{const o=Z(t);if(typeof e=="string"){if(r==null)throw new Error("Invalid arguments for resize");const n=ci(e);return Z(o.one,void 0,n==="x"?r:$e(o),n==="y"?r:we(o),o.root)}return Z(o.one,e,void 0,void 0,o.root)},yp=(t,e,r=!0)=>{const o=Z(t);let n=(i,a)=>i<a;return r&&(n=(i,a)=>i<=a),"one"in e?n(ye(o),ye(e))&&n(ze(e),ze(o))&&n(be(o),be(e))&&n(xe(e),xe(o)):n(ye(o),e.x)&&n(e.x,ze(o))&&n(be(o),e.y)&&n(e.y,xe(o))},bp=(t,e)=>jt(t.one,e.one)&&jt(t.two,e.two)&&yc(t.root,e.root),Oc=t=>({width:$e(t),height:we(t)}),$p=t=>({signedWidth:tn(t),signedHeight:nn(t)}),wp=t=>({top:be(t),left:ye(t),width:$e(t),height:we(t)}),fi=(t,e,r=!1)=>{const o=ci(e)==="y"?nn(t):tn(t);return r?o:Math.abs(o)},ge=(t,e)=>{const r=Z(t);return{x:e.x==="center"?bn(r).x:Ue(r,e.x),y:e.y==="center"?bn(r).y:Ue(r,e.y)}},Ue=(t,e)=>{const r=Z(t),o=ep(r.root).includes(e)?Math.min:Math.max;return ui.includes(e)?o(r.one.x,r.two.x):o(r.one.y,r.two.y)},_p=t=>t.one.x===t.two.x&&t.one.y===t.two.y,$e=t=>fi(t,"x"),we=t=>fi(t,"y"),tn=t=>{const e=Z(t);return e.two.x-e.one.x},nn=t=>{const e=Z(t);return e.two.y-e.one.y},zc=t=>ge(t,li),Ip=t=>ge(t,Ym),kp=t=>ge(t,qm),Sp=t=>ge(t,vc),Op=t=>ge(t,Xm),zp=t=>ge(t,Km),xp=t=>ge(t,Qm),Np=t=>ge(t,Hm),ze=t=>Ue(t,"right"),xe=t=>Ue(t,"bottom"),ye=t=>Ue(t,"left"),be=t=>Ue(t,"top"),bn=t=>ut(zc(t),{x:tn(t)/2,y:nn(t)/2}),mi=t=>{const e=Z(t);return e.root.x==="left"?ye(e):ze(e)},pi=t=>{const e=Z(t);return e.root.y==="top"?be(e):xe(e)},Tp=t=>({x:mi(t),y:pi(t)}),yt=t=>{const e=Z(t);return{lower:e.one.x,upper:e.two.x}},bt=t=>{const e=Z(t);return{lower:e.one.y,upper:e.two.y}},Up=(t,e)=>Sc(t,e),jp=(t,e)=>{const r=Z(t),o=ui.includes(e)?"x":si.includes(e)?"y":null;if(o===null)throw new Error(`Invalid location: ${e}`);const n=e==="top"||e==="left"?Math.min:Math.max,i={...r.one},a={...r.two};return i[o]=n(r.one[o],r.two[o]),a[o]=n(r.one[o],r.two[o]),[i,a]},Ep=(t,e)=>{const r=Z(t),o=Z(e),n=mi(o)+($e(o)-$e(r))/2,i=pi(o)+(we(o)-we(r))/2;return Z({x:n,y:i},Oc(r))},xc=t=>typeof t!="object"||t==null?!1:"one"in t&&"two"in t&&"root"in t,Dp=t=>$e(t)/we(t),Pp=(t,e,r)=>{if(typeof e=="string"){if(r==null)throw new Error("Undefined amount passed into box.translate");const n=ci(e);e=E(n,r)}const o=Z(t);return Z(ut(o.one,e),ut(o.two,e),void 0,void 0,o.root)},Ap=(t,e)=>{const r=Math.max(ye(t),ye(e)),o=Math.max(be(t),be(e)),n=Math.min(ze(t),ze(e)),i=Math.min(xe(t),xe(e));return r>n||o>i?kc:Z({x:r,y:o},{x:n,y:i},void 0,void 0,t.root)},Zp=t=>$e(t)*we(t),Mp=(t,e)=>{const r=Z(t);return Z(vn(r.one,e),vn(r.two,e),void 0,void 0,r.root)},Cp=(t,e,r,o,n,i)=>{const a={x:t,y:e},u={x:t+r,y:e+o};return n.x!==i.x&&(n.x==="center"?(a.x-=r/2,u.x-=r/2):(a.x-=r,u.x-=r)),n.y!==i.y&&(n.y==="center"?(a.y-=o/2,u.y-=o/2):(a.y-=o,u.y-=o)),Z(a,u,void 0,void 0,i)},Rp=t=>{const e=Z(t);return Z(yn(e.one),yn(e.two),void 0,void 0,e.root)},He=Object.freeze(Object.defineProperty({__proto__:null,DECIMAL:hp,ZERO:kc,area:Zp,areaIsZero:_p,aspect:Dp,bottom:xe,bottomCenter:Op,bottomLeft:Sp,bottomRight:zp,box:gp,center:bn,centerLeft:xp,centerRight:Np,construct:Z,constructWithAlternateRoot:Cp,contains:yp,copy:Sc,css:wp,cssBox:mp,dim:fi,dims:Oc,domRect:pp,edgePoints:jp,equals:bp,height:we,intersection:Ap,isBox:xc,left:ye,loc:Ue,positionInCenter:Ep,reRoot:Up,resize:vp,right:ze,root:Tp,round:Rp,signedDims:$p,signedHeight:nn,signedWidth:tn,top:be,topCenter:Ip,topLeft:zc,topRight:kp,translate:Pp,truncate:Mp,width:$e,x:mi,xBounds:yt,xyLoc:ge,y:pi,yBounds:bt},Symbol.toStringTag,{value:"Module"})),Nc=D({signedWidth:x(),signedHeight:x()}),Lp=L([ai,Nc,at,Yt]),Wp={width:0,height:0},Bp={width:1,height:1},ae=(t,e)=>typeof t=="number"?{width:t,height:e??t}:Array.isArray(t)?{width:t[0],height:t[1]}:"x"in t?{width:t.x,height:t.y}:"signedWidth"in t?{width:t.signedWidth,height:t.signedHeight}:{...t},Fp=(t,e)=>{if(e==null)return!1;const r=ae(t),o=ae(e);return r.width===o.width&&r.height===o.height},Jp=t=>{const e=ae(t);return{width:e.height,height:e.width}},Vp=t=>{const e=ae(t);return`0 0 ${e.width} ${e.height}`},Gp=t=>{const e=ae(t);return[e.width,e.height]},qp=t=>({width:Math.max(...t.map(e=>ae(e).width)),height:Math.max(...t.map(e=>ae(e).height))}),Kp=t=>({width:Math.min(...t.map(e=>ae(e).width)),height:Math.min(...t.map(e=>ae(e).height))}),Yp=(t,e)=>{const r=ae(t);return{width:r.width*e,height:r.height*e}},$t=Object.freeze(Object.defineProperty({__proto__:null,DECIMAL:Bp,ZERO:Wp,construct:ae,couple:Gp,crude:Lp,dimensions:ai,equals:Fp,max:qp,min:Kp,scale:Yp,signed:Nc,svgViewBox:Vp,swap:Jp},Symbol.toStringTag,{value:"Module"})),Xp=(t,e,r)=>e!==void 0&&t<e?e:r!==void 0&&t>r?r:t;D({offset:hn,scale:hn});D({offset:x(),scale:x()});const Hp=t=>(e,r,o,n)=>r==="dimension"?[e,o]:[e,n?o-t:o+t],Qp=t=>(e,r,o,n)=>[e,n?o/t:o*t],eg=t=>(e,r,o)=>{if(e===null)return[t,o];const{lower:n,upper:i}=e,{lower:a,upper:u}=t,s=i-n,f=u-a;if(r==="dimension")return[t,o*(f/s)];const p=(o-n)*(f/s)+a;return[t,p]},tg=t=>(e,r,o)=>[t,o],ng=()=>(t,e,r)=>{if(t===null)throw new Error("cannot invert without bounds");if(e==="dimension")return[t,r];const{lower:o,upper:n}=t;return[t,n-(r-o)]},rg=t=>(e,r,o)=>{const{lower:n,upper:i}=t;return o=Xp(o,n,i),[e,o]};let Li=class Ae{ops=[];currBounds=null;currType=null;reversed=!1;constructor(){this.ops=[]}static translate(e){return new Ae().translate(e)}static magnify(e){return new Ae().magnify(e)}static scale(e,r){return new Ae().scale(e,r)}translate(e){const r=this.new(),o=Hp(e);return o.type="translate",r.ops.push(o),r}magnify(e){const r=this.new(),o=Qp(e);return o.type="magnify",r.ops.push(o),r}scale(e,r){const o=Oe(e,r),n=this.new(),i=eg(o);return i.type="scale",n.ops.push(i),n}clamp(e,r){const o=Oe(e,r),n=this.new(),i=rg(o);return i.type="clamp",n.ops.push(i),n}reBound(e,r){const o=Oe(e,r),n=this.new(),i=tg(o);return i.type="re-bound",n.ops.push(i),n}invert(){const e=ng();e.type="invert";const r=this.new();return r.ops.push(e),r}pos(e){return this.exec("position",e)}dim(e){return this.exec("dimension",e)}new(){const e=new Ae;return e.ops=this.ops.slice(),e.reversed=this.reversed,e}exec(e,r){return this.currBounds=null,this.ops.reduce(([o,n],i)=>i(o,e,n,this.reversed),[null,r])[1]}reverse(){const e=this.new();e.ops.reverse();const r=[];return e.ops.forEach((o,n)=>{if(o.type==="scale"||r.some(([a,u])=>n>=a&&n<=u))return;const i=e.ops.findIndex((a,u)=>a.type==="scale"&&u>n);i!==-1&&r.push([n,i])}),r.forEach(([o,n])=>{const i=e.ops.slice(o,n);i.unshift(e.ops[n]),e.ops.splice(o,n-o+1,...i)}),e.reversed=!e.reversed,e}get transform(){return{scale:this.dim(1),offset:this.pos(0)}}static IDENTITY=new Ae},gv=class ue{x;y;currRoot;constructor(e=new Li,r=new Li,o=null){this.x=e,this.y=r,this.currRoot=o}static translate(e,r){return new ue().translate(e,r)}static translateX(e){return new ue().translateX(e)}static translateY(e){return new ue().translateY(e)}static clamp(e){return new ue().clamp(e)}static magnify(e){return new ue().magnify(e)}static scale(e){return new ue().scale(e)}static reBound(e){return new ue().reBound(e)}translate(e,r){const o=E(e,r),n=this.copy();return n.x=this.x.translate(o.x),n.y=this.y.translate(o.y),n}translateX(e){const r=this.copy();return r.x=this.x.translate(e),r}translateY(e){const r=this.copy();return r.y=this.y.translate(e),r}magnify(e){const r=this.copy();return r.x=this.x.magnify(e.x),r.y=this.y.magnify(e.y),r}scale(e){const r=this.copy();if(xc(e)){const o=this.currRoot;return r.currRoot=e.root,o!=null&&!yc(o,e.root)&&(o.x!==e.root.x&&(r.x=r.x.invert()),o.y!==e.root.y&&(r.y=r.y.invert())),r.x=r.x.scale(yt(e)),r.y=r.y.scale(bt(e)),r}return r.x=r.x.scale(e.width),r.y=r.y.scale(e.height),r}reBound(e){const r=this.copy();return r.x=this.x.reBound(yt(e)),r.y=this.y.reBound(bt(e)),r}clamp(e){const r=this.copy();return r.x=this.x.clamp(yt(e)),r.y=this.y.clamp(bt(e)),r}copy(){const e=new ue;return e.currRoot=this.currRoot,e.x=this.x,e.y=this.y,e}reverse(){const e=this.copy();return e.x=this.x.reverse(),e.y=this.y.reverse(),e}pos(e){return{x:this.x.pos(e.x),y:this.y.pos(e.y)}}dim(e){return{x:this.x.dim(e.x),y:this.y.dim(e.y)}}box(e){return Z(this.pos(e.one),this.pos(e.two),0,0,this.currRoot??e.root)}get transform(){return{scale:this.dim({x:1,y:1}),offset:this.pos({x:0,y:0})}}static IDENTITY=new ue},Tc=(t,e=21)=>(r=e)=>{let o="",n=r|0;for(;n--;)o+=t[Math.random()*t.length|0];return o};const Uc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",ig=`0123456789${Uc}`,jc=11,og=Tc(Uc,1),ag=Tc(ig,jc-1),Ec=()=>`${og()}${ag()}`,$n=Object.freeze(Object.defineProperty({__proto__:null,LENGTH:jc,create:Ec},Symbol.toStringTag,{value:"Module"})),ug=(t,e)=>r=>r instanceof e||typeof r=="object"&&r!==null&&"discriminator"in r&&r.discriminator===t,sg=J(["static","dynamic"]),cg=L([me([ce()]),me([ce(),ce().min(1).max(12)]),me([ce(),ce().min(1).max(12),ce().min(1).max(31)])]),Dc=(t,e)=>{const r=new g(e);if(![j.DAY,j.HOUR,j.MINUTE,j.SECOND,j.MILLISECOND,j.MICROSECOND,j.NANOSECOND].some(n=>n.equals(r)))throw new Error("Invalid argument for remainder. Must be an even TimeSpan or Timestamp");const o=t.valueOf()%r.valueOf();return t instanceof g?new g(o):new j(o)};class g extends Ve{constructor(e,r="UTC"){if(e==null)super(g.now().valueOf());else if(e instanceof Date)super(BigInt(e.getTime())*g.MILLISECOND.valueOf());else if(typeof e=="string")super(g.parseDateTimeString(e,r).valueOf());else if(Array.isArray(e))super(g.parseDate(e));else{let o=0n;e instanceof Number&&(e=e.valueOf()),r==="local"&&(o=g.utcOffset.valueOf()),typeof e=="number"&&(isFinite(e)?e=Math.trunc(e):(isNaN(e)&&(e=0),e===1/0?e=g.MAX:e=g.MIN)),te(e)&&(e=e.value),super(BigInt(e.valueOf())+o)}}static parseDate([e=1970,r=1,o=1]){const n=new Date(e,r-1,o,0,0,0,0);return new g(BigInt(n.getTime())*g.MILLISECOND.valueOf()).truncate(g.DAY).valueOf()}valueOf(){return this.value}static parseTimeString(e,r="UTC"){const[o,n,i]=e.split(":");let a="00",u="00";i!=null&&([a,u]=i.split("."));let s=g.hours(parseInt(o??"00")).add(g.minutes(parseInt(n??"00"))).add(g.seconds(parseInt(a??"00"))).add(g.milliseconds(parseInt(u??"00")));return r==="local"&&(s=s.add(g.utcOffset)),s.valueOf()}static parseDateTimeString(e,r="UTC"){if(!e.includes("/")&&!e.includes("-"))return g.parseTimeString(e,r);const o=new Date(e);return e.includes(":")||o.setUTCHours(0,0,0,0),new g(BigInt(o.getTime())*g.MILLISECOND.valueOf(),r).valueOf()}fString(e="ISO",r="UTC"){switch(e){case"ISODate":return this.toISOString(r).slice(0,10);case"ISOTime":return this.toISOString(r).slice(11,23);case"time":return this.timeString(!1,r);case"preciseTime":return this.timeString(!0,r);case"date":return this.dateString();case"preciseDate":return`${this.dateString()} ${this.timeString(!0,r)}`;case"dateTime":return`${this.dateString()} ${this.timeString(!1,r)}`;default:return this.toISOString(r)}}toISOString(e="UTC"){return e==="UTC"?this.date().toISOString():this.sub(g.utcOffset).date().toISOString()}timeString(e=!1,r="UTC"){const o=this.toISOString(r);return e?o.slice(11,23):o.slice(11,19)}dateString(){const e=this.date(),r=e.toLocaleString("default",{month:"short"}),o=e.toLocaleString("default",{day:"numeric"});return`${r} ${o}`}static get utcOffset(){return new j(BigInt(new Date().getTimezoneOffset())*g.MINUTE.valueOf())}static since(e){return new g().span(e)}date(){return new Date(this.milliseconds)}equals(e){return this.valueOf()===new g(e).valueOf()}span(e){return this.range(e).span}range(e){return new Qe(this,e).makeValid()}spanRange(e){return this.range(this.add(e)).makeValid()}get isZero(){return this.valueOf()===0n}after(e){return this.valueOf()>new g(e).valueOf()}afterEq(e){return this.valueOf()>=new g(e).valueOf()}before(e){return this.valueOf()<new g(e).valueOf()}beforeEq(e){return this.valueOf()<=new g(e).valueOf()}add(e){return new g(Qt(this.valueOf(),new j(e).valueOf()))}sub(e){return new g(Ht(this.valueOf(),new j(e).valueOf()))}get hours(){return Number(this.valueOf())/Number(j.HOUR.valueOf())}get minutes(){return Number(this.valueOf())/Number(j.MINUTE.valueOf())}get days(){return Number(this.valueOf())/Number(j.DAY.valueOf())}get seconds(){return Number(this.valueOf())/Number(j.SECOND.valueOf())}get milliseconds(){return Number(this.valueOf())/Number(g.MILLISECOND.valueOf())}get microseconds(){return Number(this.valueOf())/Number(g.MICROSECOND.valueOf())}get nanoseconds(){return Number(this.valueOf())}get year(){return this.date().getUTCFullYear()}setYear(e){const r=this.date();return r.setUTCFullYear(e),new g(r)}get month(){return this.date().getUTCMonth()}setMonth(e){const r=this.date();return r.setUTCMonth(e),new g(r)}get day(){return this.date().getUTCDate()}setDay(e){const r=this.date();return r.setUTCDate(e),new g(r)}get hour(){return this.date().getUTCHours()}get localHour(){return this.date().getHours()}setLocalHour(e){const r=this.date();return r.setHours(e),new g(r)}setHour(e){const r=this.date();return r.setUTCHours(e),new g(r)}get minute(){return this.date().getUTCMinutes()}setMinute(e){const r=this.date();return r.setUTCMinutes(e),new g(r)}get second(){return this.date().getUTCSeconds()}setSecond(e){const r=this.date();return r.setUTCSeconds(e),new g(r)}get millisecond(){return this.date().getUTCMilliseconds()}setMillisecond(e){const r=this.date();return r.setUTCMilliseconds(e),new g(r)}toString(){return this.date().toISOString()}remainder(e){return Dc(this,e)}get isToday(){return this.truncate(j.DAY).equals(g.now().truncate(j.DAY))}truncate(e){return this.sub(this.remainder(e))}static now(){return new g(new Date)}static max(...e){let r=g.MIN;for(const o of e){const n=new g(o);n.after(r)&&(r=n)}return r}static min(...e){let r=g.MAX;for(const o of e){const n=new g(o);n.before(r)&&(r=n)}return r}static nanoseconds(e,r="UTC"){return new g(e,r)}static NANOSECOND=g.nanoseconds(1);static microseconds(e,r="UTC"){return g.nanoseconds(e*1e3,r)}static MICROSECOND=g.microseconds(1);static milliseconds(e,r="UTC"){return g.microseconds(e*1e3,r)}static MILLISECOND=g.milliseconds(1);static seconds(e,r="UTC"){return g.milliseconds(e*1e3,r)}static SECOND=g.seconds(1);static minutes(e,r="UTC"){return g.seconds(e*60,r)}static MINUTE=g.minutes(1);static hours(e,r="UTC"){return g.minutes(e*60,r)}static HOUR=g.hours(1);static days(e,r="UTC"){return g.hours(e*24,r)}static DAY=g.days(1);static MAX=new g((1n<<63n)-1n);static MIN=new g(0);static ZERO=new g(0);static z=L([W(g),D({value:pe()}).transform(e=>new g(e.value)),A().transform(e=>new g(BigInt(e))),x().transform(e=>new g(e)),pe().transform(e=>new g(e)),js().transform(e=>new g(e)),oi(e=>e instanceof j).transform(e=>new g(e)),cg.transform(e=>new g(e))]);static sort(e,r){return Number(e.valueOf()-r.valueOf())}}let j=class _ extends Ve{constructor(e){typeof e=="number"&&(e=Math.trunc(e.valueOf())),te(e)&&(e=e.value),super(BigInt(e.valueOf()))}static fromSeconds(e){return e instanceof _?e:e instanceof X?e.period:e instanceof g?new _(e):(te(e)&&(e=e.value),["number","bigint"].includes(typeof e)?_.seconds(e):new _(e))}static fromMilliseconds(e){return e instanceof _?e:e instanceof X?e.period:e instanceof g?new _(e):(te(e)&&(e=e.value),["number","bigint"].includes(typeof e)?_.milliseconds(e):new _(e))}valueOf(){return this.value}lessThan(e){return this.valueOf()<new _(e).valueOf()}greaterThan(e){return this.valueOf()>new _(e).valueOf()}lessThanOrEqual(e){return this.valueOf()<=new _(e).valueOf()}greaterThanOrEqual(e){return this.valueOf()>=new _(e).valueOf()}remainder(e){return Dc(this,e)}truncate(e){return new _(BigInt(Math.trunc(Number(this.valueOf()/e.valueOf())))*e.valueOf())}toString(){const e=this.truncate(_.DAY),r=this.truncate(_.HOUR),o=this.truncate(_.MINUTE),n=this.truncate(_.SECOND),i=this.truncate(_.MILLISECOND),a=this.truncate(_.MICROSECOND),u=this.truncate(_.NANOSECOND),s=e,f=r.sub(e),p=o.sub(r),l=n.sub(o),h=i.sub(n),y=a.sub(i),d=u.sub(a);let $="";return s.isZero||($+=`${s.days}d `),f.isZero||($+=`${f.hours}h `),p.isZero||($+=`${p.minutes}m `),l.isZero||($+=`${l.seconds}s `),h.isZero||($+=`${h.milliseconds}ms `),y.isZero||($+=`${y.microseconds}µs `),d.isZero||($+=`${d.nanoseconds}ns`),$.trim()}mult(e){return new _(se(this.valueOf(),e))}div(e){return new _(en(this.valueOf(),e))}get days(){return Number(this.valueOf())/Number(_.DAY.valueOf())}get hours(){return Number(this.valueOf())/Number(_.HOUR.valueOf())}get minutes(){return Number(this.valueOf())/Number(_.MINUTE.valueOf())}get seconds(){return Number(this.valueOf())/Number(_.SECOND.valueOf())}get milliseconds(){return Number(this.valueOf())/Number(_.MILLISECOND.valueOf())}get microseconds(){return Number(this.valueOf())/Number(_.MICROSECOND.valueOf())}get nanoseconds(){return Number(this.valueOf())}get isZero(){return this.valueOf()===0n}equals(e){return this.valueOf()===new _(e).valueOf()}add(e){return new _(this.valueOf()+new _(e).valueOf())}sub(e){return new _(this.valueOf()-new _(e).valueOf())}static nanoseconds(e=1){return new _(e)}static NANOSECOND=_.nanoseconds(1);static microseconds(e=1){return _.nanoseconds(se(e,1e3))}static MICROSECOND=_.microseconds(1);static milliseconds(e=1){return _.microseconds(se(e,1e3))}static MILLISECOND=_.milliseconds(1);static seconds(e=1){return _.milliseconds(se(e,1e3))}static SECOND=_.seconds(1);static minutes(e=1){return _.seconds(se(e,60))}static MINUTE=_.minutes(1);static hours(e){return _.minutes(se(e,60))}static HOUR=_.hours(1);static days(e){return _.hours(se(e,24))}static DAY=_.days(1);static MAX=new _((1n<<63n)-1n);static MIN=new _(0);static ZERO=new _(0);static z=L([D({value:pe()}).transform(e=>new _(e.value)),A().transform(e=>new _(BigInt(e))),x().transform(e=>new _(e)),pe().transform(e=>new _(e)),W(_),W(g).transform(e=>new _(e)),oi(e=>e instanceof X).transform(e=>new _(e))])};class X extends Ve{constructor(e){te(e)&&(e=e.value),super(e.valueOf())}toString(){return`${this.valueOf()} Hz`}equals(e){return this.valueOf()===new X(e).valueOf()}get period(){return j.seconds(1/this.valueOf())}sampleCount(e){return new j(e).seconds*this.valueOf()}byteCount(e,r){return this.sampleCount(e)*new q(r).valueOf()}span(e){return j.seconds(e/this.valueOf())}byteSpan(e,r){return this.span(e.valueOf()/new q(r).valueOf())}add(e){return new X(Qt(this.valueOf(),new X(e).valueOf()))}sub(e){return new X(Ht(this.valueOf(),new X(e).valueOf()))}mult(e){return new X(se(this.valueOf(),e))}div(e){return new X(en(this.valueOf(),e))}static hz(e){return new X(e)}static khz(e){return X.hz(e*1e3)}static z=L([x().transform(e=>new X(e)),W(X)])}let q=class K extends Ve{constructor(e){te(e)&&(e=e.value),super(e.valueOf())}length(e){return e.valueOf()/this.valueOf()}size(e){return new wn(e*this.valueOf())}add(e){return new K(Qt(this.valueOf(),new K(e).valueOf()))}sub(e){return new K(Ht(this.valueOf(),new K(e).valueOf()))}mult(e){return new K(se(this.valueOf(),e))}div(e){return new K(en(this.valueOf(),e))}static UNKNOWN=new K(0);static BIT128=new K(16);static BIT64=new K(8);static BIT32=new K(4);static BIT16=new K(2);static BIT8=new K(1);static z=L([x().transform(e=>new K(e)),W(K)])},Qe=class re{start;end;constructor(e,r){typeof e=="object"&&"start"in e?(this.start=new g(e.start),this.end=new g(e.end)):(this.start=new g(e),this.end=new g(r))}get span(){return new j(this.end.valueOf()-this.start.valueOf())}get isValid(){return this.start.valueOf()<=this.end.valueOf()}makeValid(){return this.isValid?this:this.swap()}get isZero(){return this.span.isZero}get numeric(){return{start:Number(this.start.valueOf()),end:Number(this.end.valueOf())}}swap(){return new re(this.end,this.start)}get numericBounds(){return{lower:Number(this.start.valueOf()),upper:Number(this.end.valueOf())}}equals(e,r=j.ZERO){if(r.isZero)return this.start.equals(e.start)&&this.end.equals(e.end);let o=this.start.sub(e.start).valueOf(),n=this.end.sub(e.end).valueOf();return o<0&&(o=-o),n<0&&(n=-n),o<=r.valueOf()&&n<=r.valueOf()}toString(){return`${this.start.toString()} - ${this.end.toString()}`}toPrettyString(){return`${this.start.fString("preciseDate")} - ${this.span.toString()}`}overlapsWith(e,r=j.ZERO){e=e.makeValid();const o=this.makeValid();if(this.equals(e))return!0;if(e.end.equals(o.start)||o.end.equals(e.start))return!1;const n=g.max(o.start,e.start),i=g.min(o.end,e.end);return i.before(n)?!1:new j(i.sub(n)).greaterThanOrEqual(r)}contains(e){return e instanceof re?this.contains(e.start)&&this.contains(e.end):this.start.beforeEq(e)&&this.end.after(e)}boundBy(e){const r=new re(this.start,this.end);return e.start.after(this.start)&&(r.start=e.start),e.start.after(this.end)&&(r.end=e.start),e.end.before(this.end)&&(r.end=e.end),e.end.before(this.start)&&(r.start=e.end),r}static max(...e){return new re(g.min(...e.map(r=>r.start)),g.max(...e.map(r=>r.end)))}static MAX=new re(g.MIN,g.MAX);static MIN=new re(g.MAX,g.MIN);static ZERO=new re(g.ZERO,g.ZERO);static z=L([D({start:g.z,end:g.z}).transform(e=>new re(e.start,e.end)),W(re)]);static sort(e,r){return g.sort(e.start,r.start)||g.sort(e.end,r.end)}static simplify(e){return e.map(r=>r.makeValid()).sort((r,o)=>re.sort(r,o)).reduce((r,o)=>{if(o.isZero)return r;if(r.length===0)return r.push(o),r;const n=r[r.length-1];return n.overlapsWith(o)||n.end.equals(o.start)?n.end=g.max(n.end,o.end):r.push(o),r},[])}},R=class v extends Ve{constructor(e){if(te(e)&&(e=e.value),e instanceof v||typeof e=="string"||typeof e.valueOf()=="string")super(e.valueOf());else{const r=v.ARRAY_CONSTRUCTOR_DATA_TYPES.get(e.constructor.name);if(r==null)throw new Error(`unable to find data type for ${e.toString()}`);super(r.valueOf())}}get Array(){const e=v.ARRAY_CONSTRUCTORS.get(this.toString());if(e==null)throw new Error(`unable to find array constructor for ${this.valueOf()}`);return e}equals(e){return this.valueOf()===e.valueOf()}matches(...e){return e.some(r=>this.equals(r))}toString(){return this.valueOf()}get isVariable(){return this.equals(v.JSON)||this.equals(v.STRING)}get isNumeric(){return!this.isVariable&&!this.equals(v.UUID)}get isInteger(){const e=this.toString();return e.startsWith("int")||e.startsWith("uint")}get isFloat(){return this.toString().startsWith("float")}get density(){const e=v.DENSITIES.get(this.toString());if(e==null)throw new Error(`unable to find density for ${this.valueOf()}`);return e}get isUnsignedInteger(){return this.equals(v.UINT8)||this.equals(v.UINT16)||this.equals(v.UINT32)||this.equals(v.UINT64)}get isSignedInteger(){return this.equals(v.INT8)||this.equals(v.INT16)||this.equals(v.INT32)||this.equals(v.INT64)}canSafelyCastTo(e){return this.equals(e)?!0:!this.isNumeric||!e.isNumeric||this.isVariable||e.isVariable||this.isUnsignedInteger&&e.isSignedInteger?!1:this.isFloat?e.isFloat&&this.density.valueOf()<=e.density.valueOf():this.equals(v.INT32)&&e.equals(v.FLOAT64)||this.equals(v.INT8)&&e.equals(v.FLOAT32)?!0:this.isInteger&&e.isInteger?this.density.valueOf()<=e.density.valueOf()&&this.isUnsignedInteger===e.isUnsignedInteger:!1}canCastTo(e){return this.isNumeric&&e.isNumeric?!0:this.equals(e)}checkArray(e){return e.constructor===this.Array}get usesBigInt(){return v.BIG_INT_TYPES.some(e=>e.equals(this))}static UNKNOWN=new v("unknown");static FLOAT64=new v("float64");static FLOAT32=new v("float32");static INT64=new v("int64");static INT32=new v("int32");static INT16=new v("int16");static INT8=new v("int8");static UINT64=new v("uint64");static UINT32=new v("uint32");static UINT16=new v("uint16");static UINT8=new v("uint8");static BOOLEAN=this.UINT8;static TIMESTAMP=new v("timestamp");static UUID=new v("uuid");static STRING=new v("string");static JSON=new v("json");static ARRAY_CONSTRUCTORS=new Map([[v.UINT8.toString(),Uint8Array],[v.UINT16.toString(),Uint16Array],[v.UINT32.toString(),Uint32Array],[v.UINT64.toString(),BigUint64Array],[v.FLOAT32.toString(),Float32Array],[v.FLOAT64.toString(),Float64Array],[v.INT8.toString(),Int8Array],[v.INT16.toString(),Int16Array],[v.INT32.toString(),Int32Array],[v.INT64.toString(),BigInt64Array],[v.TIMESTAMP.toString(),BigInt64Array],[v.STRING.toString(),Uint8Array],[v.JSON.toString(),Uint8Array],[v.UUID.toString(),Uint8Array]]);static ARRAY_CONSTRUCTOR_DATA_TYPES=new Map([[Uint8Array.name,v.UINT8],[Uint16Array.name,v.UINT16],[Uint32Array.name,v.UINT32],[BigUint64Array.name,v.UINT64],[Float32Array.name,v.FLOAT32],[Float64Array.name,v.FLOAT64],[Int8Array.name,v.INT8],[Int16Array.name,v.INT16],[Int32Array.name,v.INT32],[BigInt64Array.name,v.INT64]]);static DENSITIES=new Map([[v.UINT8.toString(),q.BIT8],[v.UINT16.toString(),q.BIT16],[v.UINT32.toString(),q.BIT32],[v.UINT64.toString(),q.BIT64],[v.FLOAT32.toString(),q.BIT32],[v.FLOAT64.toString(),q.BIT64],[v.INT8.toString(),q.BIT8],[v.INT16.toString(),q.BIT16],[v.INT32.toString(),q.BIT32],[v.INT64.toString(),q.BIT64],[v.TIMESTAMP.toString(),q.BIT64],[v.STRING.toString(),q.UNKNOWN],[v.JSON.toString(),q.UNKNOWN],[v.UUID.toString(),q.BIT128]]);static ALL=[v.UNKNOWN,v.FLOAT64,v.FLOAT32,v.INT64,v.INT32,v.INT16,v.INT8,v.UINT64,v.UINT32,v.UINT16,v.UINT8,v.TIMESTAMP,v.UUID,v.STRING,v.JSON];static BIG_INT_TYPES=[v.INT64,v.UINT64,v.TIMESTAMP];static z=L([A().transform(e=>new v(e)),W(v)])},wn=class N extends Ve{constructor(e){te(e)&&(e=e.value),super(e.valueOf())}largerThan(e){return te(e)&&(e=e.value),this.valueOf()>e.valueOf()}smallerThan(e){return te(e)&&(e=e.value),this.valueOf()<e.valueOf()}add(e){return te(e)&&(e=e.value),new N(Qt(this.valueOf(),e.valueOf()))}sub(e){return te(e)&&(e=e.value),new N(Ht(this.valueOf(),e.valueOf()))}mult(e){return new N(se(this.valueOf(),e))}div(e){return new N(en(this.valueOf(),e))}truncate(e){return new N(Math.trunc(this.valueOf()/new N(e).valueOf())*new N(e).valueOf())}remainder(e){return N.bytes(this.valueOf()%new N(e).valueOf())}get gigabytes(){return this.valueOf()/N.GIGABYTE.valueOf()}get megabytes(){return this.valueOf()/N.MEGABYTE.valueOf()}get kilobytes(){return this.valueOf()/N.KILOBYTE.valueOf()}get terabytes(){return this.valueOf()/N.TERABYTE.valueOf()}toString(){const e=this.truncate(N.TERABYTE),r=this.truncate(N.GIGABYTE),o=this.truncate(N.MEGABYTE),n=this.truncate(N.KILOBYTE),i=this.truncate(N.BYTE),a=e,u=r.sub(e),s=o.sub(r),f=n.sub(o),p=i.sub(n);let l="";return a.isZero||(l+=`${a.terabytes}TB `),u.isZero||(l+=`${u.gigabytes}GB `),s.isZero||(l+=`${s.megabytes}MB `),f.isZero||(l+=`${f.kilobytes}KB `),(!p.isZero||l==="")&&(l+=`${p.valueOf()}B`),l.trim()}static bytes(e=1){return new N(e)}static BYTE=new N(1);static kilobytes(e=1){return N.bytes(new N(e).valueOf()*1e3)}static KILOBYTE=N.kilobytes(1);static megabytes(e=1){return N.kilobytes(new N(e).valueOf()*1e3)}static MEGABYTE=N.megabytes(1);static gigabytes(e=1){return N.megabytes(new N(e).valueOf()*1e3)}static GIGABYTE=N.gigabytes(1);static terabytes(e){return N.gigabytes(new N(e).valueOf()*1e3)}static TERABYTE=N.terabytes(1);static ZERO=new N(0);static z=L([x().transform(e=>new N(e)),W(N)]);get isZero(){return this.valueOf()===0}};L([W(Uint8Array),W(Uint16Array),W(Uint32Array),W(BigUint64Array),W(Float32Array),W(Float64Array),W(Int8Array),W(Int16Array),W(Int32Array),W(BigInt64Array)]);const Pc=t=>{const e=typeof t;return e==="string"||e==="number"||e==="boolean"||e==="bigint"||t instanceof g||t instanceof j||t instanceof Date},lg=(t,e,r,o=0)=>t.usesBigInt&&!e.usesBigInt?Number(r)-Number(o):!t.usesBigInt&&e.usesBigInt?BigInt(r.valueOf())-BigInt(o.valueOf()):wt(r,-o),wt=(t,e)=>e==0?t:t==0?e:typeof t=="bigint"&&typeof e=="bigint"||typeof t=="number"&&typeof e=="number"?t+e:Number(t)+Number(e),dg=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function fg(t){return typeof t=="string"&&dg.test(t)}const G=[];for(let t=0;t<256;++t)G.push((t+256).toString(16).slice(1));function mg(t,e=0){return(G[t[e+0]]+G[t[e+1]]+G[t[e+2]]+G[t[e+3]]+"-"+G[t[e+4]]+G[t[e+5]]+"-"+G[t[e+6]]+G[t[e+7]]+"-"+G[t[e+8]]+G[t[e+9]]+"-"+G[t[e+10]]+G[t[e+11]]+G[t[e+12]]+G[t[e+13]]+G[t[e+14]]+G[t[e+15]]).toLowerCase()}function pg(t,e=0){const r=mg(t,e);if(!fg(r))throw TypeError("Stringified UUID is invalid");return r}typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Ac=(t,e)=>pg(t,e),he=-1,gg=A().transform(t=>new Uint8Array(atob(t).split("").map(e=>e.charCodeAt(0))).buffer),hg=L([Yr(),Os()]).transform(()=>new Uint8Array().buffer),_n=10,vg=(t,e)=>{if(t==="number"&&!e.isNumeric)throw new Error(`cannot convert series of type ${e.toString()} to number`);if(t==="bigint"&&!e.usesBigInt)throw new Error(`cannot convert series of type ${e.toString()} to bigint`)},Zc="sy_x_telem_series";let Mc=class ve{key;discriminator=Zc;dataType;sampleOffset;gl;_data;timeRange=Qe.ZERO;alignment=0n;alignmentMultiple=1n;cachedMin;cachedMax;writePos=he;_refCount=0;cachedLength;_cachedIndexes;static crudeZ=D({timeRange:Qe.z.optional(),dataType:R.z,alignment:sc().optional(),data:L([gg,hg,W(ArrayBuffer),W(Uint8Array)]),glBufferUsage:sg.optional().default("static").optional()});static z=ve.crudeZ.transform(e=>new ve(e));constructor(e){yg(e)&&(e={data:e}),e.data??=[];const{dataType:r,timeRange:o,sampleOffset:n=0,glBufferUsage:i="static",alignment:a=0n,alignmentMultiple:u=1n,key:s=Ec(),data:f}=e;if(bg(f)){const h=f;this.key=h.key,this.dataType=h.dataType,this.sampleOffset=h.sampleOffset,this.gl=h.gl,this._data=h._data,this.timeRange=h.timeRange,this.alignment=h.alignment,this.alignmentMultiple=h.alignmentMultiple,this.cachedMin=h.cachedMin,this.cachedMax=h.cachedMax,this.writePos=h.writePos,this._refCount=h._refCount,this.cachedLength=h.cachedLength;return}const p=Pc(f),l=Array.isArray(f);if(r!=null)this.dataType=new R(r);else{if(f instanceof ArrayBuffer)throw new Error("cannot infer data type from an ArrayBuffer instance when constructing a Series. Please provide a data type.");if(l||p){let h=f;if(!p){if(f.length===0)throw new Error("cannot infer data type from a zero length JS array when constructing a Series. Please provide a data type.");h=f[0]}if(typeof h=="string")this.dataType=R.STRING;else if(typeof h=="number")this.dataType=R.FLOAT64;else if(typeof h=="bigint")this.dataType=R.INT64;else if(typeof h=="boolean")this.dataType=R.BOOLEAN;else if(h instanceof g||h instanceof Date||h instanceof g)this.dataType=R.TIMESTAMP;else if(typeof h=="object")this.dataType=R.JSON;else throw new Error(`cannot infer data type of ${typeof h} when constructing a Series from a JS array`)}else this.dataType=new R(f)}if(!l&&!p)this._data=f;else if(l&&f.length===0)this._data=new this.dataType.Array([]).buffer;else{let h=p?[f]:f;const y=h[0];(y instanceof g||y instanceof Date||y instanceof j)&&(h=h.map(d=>new g(d).valueOf())),this.dataType.equals(R.STRING)?(this.cachedLength=h.length,this._data=new TextEncoder().encode(`${h.join(`
30
30
  `)}
31
- `).buffer):this.dataType.equals(R.JSON)?(this.cachedLength=g.length,this._data=new TextEncoder().encode(`${g.map(d=>ln.encodeString(d)).join(`
31
+ `).buffer):this.dataType.equals(R.JSON)?(this.cachedLength=h.length,this._data=new TextEncoder().encode(`${h.map(d=>dn.encodeString(d)).join(`
32
32
  `)}
33
- `).buffer):this.dataType.usesBigInt&&typeof y=="number"?this._data=new this.dataType.Array(g.map(d=>BigInt(Math.round(d)))).buffer:!this.dataType.usesBigInt&&typeof y=="bigint"?this._data=new this.dataType.Array(g.map(Number)).buffer:this._data=new this.dataType.Array(g).buffer}this.key=s,this.alignment=a,this.alignmentMultiple=u,this.sampleOffset=n??0,this.timeRange=o??He.ZERO,this.gl={control:null,buffer:null,prevBuffer:0,bufferUsage:i}}static alloc({capacity:e,dataType:r,...o}){if(e===0)throw new Error("[Series] - cannot allocate an array of length 0");const n=new new R(r).Array(e),i=new se({data:n.buffer,dataType:r,...o});return i.writePos=0,i}get refCount(){return this._refCount}acquire(e){this._refCount++,e!=null&&this.updateGLBuffer(e)}release(){this._refCount--,this.refCount===0&&this.gl.control!=null?this.maybeGarbageCollectGLBuffer(this.gl.control):this.refCount<0&&console.warn("cannot release a series with a negative reference count")}write(e){if(!e.dataType.equals(this.dataType))throw new Error("buffer must be of the same type as this array");return this.dataType.isVariable?this.writeVariable(e):this.writeFixed(e)}writeVariable(e){if(this.writePos===he)return 0;const r=this.byteCapacity.valueOf()-this.writePos,o=e.subBytes(0,r);return this.writeToUnderlyingData(o),this.writePos+=o.byteLength.valueOf(),this.cachedLength!=null&&(this.cachedLength+=o.length,this.calculateCachedLength()),o.length}writeFixed(e){if(this.writePos===he)return 0;const r=this.capacity-this.writePos,o=e.sub(0,r);return this.writeToUnderlyingData(o),this.cachedLength=void 0,this.maybeRecomputeMinMax(o),this.writePos+=o.length,o.length}writeToUnderlyingData(e){this.underlyingData.set(e.data,this.writePos)}get buffer(){return typeof this._data=="object"&&"buffer"in this._data?this._data.buffer:this._data}get underlyingData(){return new this.dataType.Array(this._data)}get data(){return this.writePos===he?this.underlyingData:new this.dataType.Array(this._data,0,this.writePos)}toStrings(){return this.dataType.isVariable?new TextDecoder().decode(this.underlyingData).split(`
34
- `).slice(0,-1):Array.from(this).map(e=>e.toString())}parseJSON(e){if(!this.dataType.equals(R.JSON))throw new Error("cannot parse non-JSON series as JSON");return this.toStrings().map(r=>e.parse(ln.decodeString(r)))}get byteCapacity(){return new $n(this.underlyingData.byteLength)}get capacity(){return this.dataType.isVariable?this.byteCapacity.valueOf():this.dataType.density.length(this.byteCapacity)}get byteLength(){return this.writePos===he?this.byteCapacity:this.dataType.isVariable?new $n(this.writePos):this.dataType.density.size(this.writePos)}get length(){return this.cachedLength!=null?this.cachedLength:this.dataType.isVariable?this.calculateCachedLength():this.writePos===he?this.byteCapacity.valueOf()/this.dataType.density.valueOf():this.writePos}calculateCachedLength(){if(!this.dataType.isVariable)throw new Error("cannot calculate length of a non-variable length data type");let e=0;const r=[0];return this.data.forEach((o,n)=>{o===wn&&(e++,r.push(n+1))}),this._cachedIndexes=r,this.cachedLength=e,e}convert(e,r=0){if(this.dataType.equals(e))return this;const o=new e.Array(this.length);for(let n=0;n<this.length;n++)o[n]=sg(this.dataType,e,this.data[n],r);return new se({data:o.buffer,dataType:e,timeRange:this.timeRange,sampleOffset:r,glBufferUsage:this.gl.bufferUsage,alignment:this.alignment})}calcRawMax(){if(this.length===0)return-1/0;if(this.dataType.equals(R.TIMESTAMP))this.cachedMax=this.data[this.data.length-1];else if(this.dataType.usesBigInt){const e=this.data;this.cachedMax=e.reduce((r,o)=>r>o?r:o)}else{const e=this.data;this.cachedMax=e.reduce((r,o)=>r>o?r:o)}return this.cachedMax}get max(){return this.calcMax()}calcMax(){if(this.dataType.isVariable)throw new Error("cannot calculate maximum on a variable length data type");return this.writePos===0?-1/0:(this.cachedMax??=this.calcRawMax(),$t(this.cachedMax,this.sampleOffset))}calcRawMin(){if(this.length===0)return 1/0;if(this.dataType.equals(R.TIMESTAMP))this.cachedMin=this.data[0];else if(this.dataType.usesBigInt){const e=this.data;this.cachedMin=e.reduce((r,o)=>r<o?r:o)}else{const e=this.data;this.cachedMin=e.reduce((r,o)=>r<o?r:o)}return this.cachedMin}get min(){return this.calcMin()}calcMin(){if(this.dataType.isVariable)throw new Error("cannot calculate minimum on a variable length data type");return this.writePos===0?1/0:(this.cachedMin??=this.calcRawMin(),$t(this.cachedMin,this.sampleOffset))}get bounds(){return Se(Number(this.min),Number(this.max),{makeValid:!1})}maybeRecomputeMinMax(e){if(this.cachedMin!=null){const r=e.cachedMin??e.calcRawMin();r<this.cachedMin&&(this.cachedMin=r)}if(this.cachedMax!=null){const r=e.cachedMax??e.calcRawMax();r>this.cachedMax&&(this.cachedMax=r)}}atAlignment(e,r){const o=Number((e-this.alignment)/this.alignmentMultiple);if(o<0||o>=this.length){if(r===!0)throw new Error(`[series] - no value at index ${o}`);return}return this.at(o,r)}at(e,r=!1){if(this.dataType.isVariable)return this.atVariable(e,r??!1);if(this.dataType.equals(R.UUID))return this.atUUID(e,r);e<0&&(e=this.length+e);const o=this.data[e];if(o==null){if(r===!0)throw new Error(`[series] - no value at index ${e}`);return}return $t(o,this.sampleOffset)}atUUID(e,r){e<0&&(e=this.length+e);const o=Pc(new Uint8Array(this.buffer,e*this.dataType.density.valueOf()));if(o==null){if(r)throw new Error(`[series] - no value at index ${e}`);return}return o}atVariable(e,r){let o=0,n=0;if(this._cachedIndexes!=null)o=this._cachedIndexes[e],n=this._cachedIndexes[e+1]-1;else{e<0&&(e=this.length+e);for(let a=0;a<this.data.length;a++)if(this.data[a]===wn){if(e===0){n=a;break}o=a+1,e--}if(n===0&&(n=this.data.length),o>=n||e>0){if(r)throw new Error(`[series] - no value at index ${e}`);return}}const i=this.data.slice(o,n);return this.dataType.equals(R.STRING)?new TextDecoder().decode(i):qi(JSON.parse(new TextDecoder().decode(i)))}binarySearch(e){let r=0,o=this.length-1;const n=Em(e);for(;r<=o;){const i=Math.floor((r+o)/2),a=n(this.at(i,!0),e);if(a===0)return i;a<0?r=i+1:o=i-1}return r}updateGLBuffer(e){if(this.gl.control=e,!this.dataType.equals(R.FLOAT32)&&!this.dataType.equals(R.UINT8))throw new Error("Only FLOAT32 and UINT8 arrays can be used in WebGL");const{buffer:r,bufferUsage:o,prevBuffer:n}=this.gl;if(r==null&&(this.gl.buffer=e.createBuffer()),this.writePos!==n)if(e.bindBuffer(e.ARRAY_BUFFER,this.gl.buffer),this.writePos!==he){n===0&&e.bufferData(e.ARRAY_BUFFER,this.byteCapacity.valueOf(),e.STATIC_DRAW);const i=this.dataType.density.size(n).valueOf(),a=this.underlyingData.slice(this.gl.prevBuffer,this.writePos);e.bufferSubData(e.ARRAY_BUFFER,i,a.buffer),this.gl.prevBuffer=this.writePos}else e.bufferData(e.ARRAY_BUFFER,this.buffer,o==="static"?e.STATIC_DRAW:e.DYNAMIC_DRAW),this.gl.prevBuffer=he}as(e){return gg(e,this.dataType),this}get digest(){return{key:this.key,dataType:this.dataType.toString(),sampleOffset:this.sampleOffset,alignment:{lower:Wi(this.alignmentBounds.lower),upper:Wi(this.alignmentBounds.upper)},timeRange:this.timeRange.toString(),length:this.length,capacity:this.capacity}}get alignmentBounds(){return Se(this.alignment,this.alignment+BigInt(this.length)*this.alignmentMultiple)}maybeGarbageCollectGLBuffer(e){this.gl.buffer!=null&&(e.deleteBuffer(this.gl.buffer),this.gl.buffer=null,this.gl.prevBuffer=0,this.gl.control=null)}get glBuffer(){if(this.gl.buffer==null)throw new Error("gl buffer not initialized");return this.gl.prevBuffer!==this.writePos&&console.warn("buffer not updated"),this.gl.buffer}[Symbol.iterator](){if(this.dataType.isVariable){const e=new yg(this);return this.dataType.equals(R.JSON)?new bg(e):e}return this.dataType.equals(R.UUID)?new $g(this):new wg(this)}slice(e,r){return this.sliceSub(!1,e,r)}sub(e,r){return this.sliceSub(!0,e,r)}subIterator(e,r){return new Li(this,e,r??this.length)}subAlignmentIterator(e,r){const o=Math.ceil(Number(e-this.alignment)/Number(this.alignmentMultiple)),n=Math.ceil(Number(r-this.alignment)/Number(this.alignmentMultiple));return new Li(this,o,n)}subBytes(e,r){if(e>=0&&(r==null||r>=this.byteLength.valueOf()))return this;const o=this.data.subarray(e,r);return new se({data:o,dataType:this.dataType,timeRange:this.timeRange,sampleOffset:this.sampleOffset,glBufferUsage:this.gl.bufferUsage,alignment:this.alignment+BigInt(e)})}sliceSub(e,r,o){if(r<=0&&(o==null||o>=this.length))return this;let n;return e?n=this.data.subarray(r,o):n=this.data.slice(r,o),new se({data:n,dataType:this.dataType,timeRange:this.timeRange,sampleOffset:this.sampleOffset,glBufferUsage:this.gl.bufferUsage,alignment:this.alignment+BigInt(r)})}reAlign(e){return new se({data:this.buffer,dataType:this.dataType,timeRange:He.ZERO,sampleOffset:this.sampleOffset,glBufferUsage:"static",alignment:e})}toString(){let e=`Series(${this.dataType.toString()} ${this.length} [`;if(this.length<=10)e+=Array.from(this).map(r=>r.toString());else{for(let r=0;r<5;r++)e+=`${this.at(r)?.toString()}`,e+=",";e+="...,";for(let r=-5;r<0;r++)e+=this.at(r)?.toString(),r<-1&&(e+=",")}return e+="])",e}}const hg=t=>t==null?!1:Array.isArray(t)||t instanceof ArrayBuffer||ArrayBuffer.isView(t)&&!(t instanceof DataView)||t instanceof se?!0:Dc(t),vg=og(Ac,se);class Li{series;end;index;constructor(e,r,o){this.series=e;const n=Se(0,e.length+1);this.end=Ci(n,o),this.index=Ci(n,r)}next(){return this.index>=this.end?{done:!0,value:void 0}:{done:!1,value:this.series.at(this.index++,!0)}}}class yg{series;index;decoder;constructor(e){if(!e.dataType.isVariable)throw new Error("cannot create a variable series iterator for a non-variable series");this.series=e,this.index=0,this.decoder=new TextDecoder}next(){const e=this.index,r=this.series.data;for(;this.index<r.length&&r[this.index]!==wn;)this.index++;const o=this.index;return e===o?{done:!0,value:void 0}:(this.index++,{done:!1,value:this.decoder.decode(this.series.buffer.slice(e,o))})}}let bg=class Zc{wrapped;static schema=Gt(P(),We());constructor(e){this.wrapped=e}next(){const e=this.wrapped.next();return e.done===!0?{done:!0,value:void 0}:{done:!1,value:ln.decodeString(e.value,Zc.schema)}}};class $g{series;index;data;density;constructor(e){if(!e.dataType.equals(R.UUID))throw new Error("cannot create a UUID series iterator for a non-UUID series");this.series=e,this.index=0,this.data=new Uint8Array(e.buffer),this.density=R.UUID.density.valueOf()}next(){if(this.index>=this.series.length)return{done:!0,value:void 0};const e=Pc(this.data,this.index*this.density);return this.index++,{done:!1,value:e}}}class wg{series;index;constructor(e){this.series=e,this.index=0}next(){return this.index>=this.series.length?{done:!0,value:void 0}:{done:!1,value:this.series.at(this.index++,!0)}}}const Wi=t=>{const e=t>>32n,r=t&0xffffffffn;return{domain:e,sample:r}},_g=(t,e,r=".")=>{const o=t.split(r);return o.map((n,i)=>{const a=e(n,i,o);return a==null?null:typeof a=="string"?a:a.join(r)}).filter(n=>n!=null).join(r)},pi=(t,e)=>{if(!Array.isArray(t))return t[e];const r=t[e];if(r!=null||t.length==0)return r;const o=t[0];if(typeof o=="object"&&"key"in o)return t.find(n=>n.key===e)},Ig=(t,e)=>{const r=t.split(".");return r.forEach((o,n)=>{e=pi(e,o),e!=null&&typeof e=="object"&&"key"in e&&(r[n]=e.key)}),r.join(".")},Mc=(t,e,r={optional:!1,separator:"."})=>{r.separator??=".";const{optional:o,getter:n=pi}=r,i=e.split(r.separator);if(i.length===1&&i[0]==="")return t;let a=t;for(const u of i){const s=n(a,u);if(s==null){if(o)return null;throw new Error(`Path ${e} does not exist. ${u} is null`)}a=s}return a},kg=t=>{for(const e of t)if(isNaN(parseInt(e)))return null;return parseInt(t)},Sg=(t,e,r)=>{const o=e.split(".");let n=t;for(let i=0;i<o.length-1;i++){const a=o[i],u=pi(n,a);if(u==null)throw new Error(`Path ${e} does not exist. ${a} is null`);n=u}try{if(!Array.isArray(n)){n[o[o.length-1]]=r;return}if(n.length===0)return;const i=kg(o[o.length-1]);if(i==null){const a=n[0];if(typeof a=="object"&&"key"in a){const u=n.findIndex(s=>s.key===o[o.length-1]);if(u!==-1){n[u]=r;return}}return}n[i]=r}catch(i){throw console.error("failed to set value",r,"at path",e,"on object",t),i}},Og=(t,e)=>{const r=e.split(".");let o=t;for(let n=0;n<r.length-1;n++){const i=r[n];if(o[i]==null)return;o=o[i]}if(Array.isArray(o)){const n=parseInt(r[r.length-1]);if(isNaN(n))return;o.splice(n,1);return}delete o[r[r.length-1]]},zg=(t,e)=>{const r=t.split(".");return e<0?r[r.length+e]:r[e]},xg=(t,e)=>{try{return Mc(t,e),!0}catch{return!1}},Ng=(t,e)=>{if(e.length===0)return!0;const r=t.split("."),o=e.split(".");if(o.length>r.length)return!1;for(let n=0;n<o.length;n++){const i=r[n],a=o[n];if(a!=="*"&&i!==a)return!1}return!0},Tg=t=>{try{return structuredClone(t)}catch{return console.warn("Failed to deep copy object, falling back to JSON.parse(JSON.stringify)",t),console.trace(),JSON.parse(JSON.stringify(t))}},Ug=(t,...e)=>(e.forEach(r=>{let o=t;const n=r.split(".");n.forEach((i,a)=>{typeof o!="object"||o===null||(a===n.length-1?delete o[i]:i in o&&(o=o[i]))})}),t),jg=(t,e,r="")=>{const o={},n=(i,a,u)=>{if(typeof i!=typeof a||i===null||a===null){o[u]=[i,a];return}if(typeof i=="object"&&typeof a=="object")if(Array.isArray(i)&&Array.isArray(a)){if(i.length!==a.length){o[u]=[i,a];return}for(let s=0;s<i.length;s++)n(i[s],a[s],`${u}[${s}]`)}else new Set([...Object.keys(i),...Object.keys(a)]).forEach(s=>{n(i[s],a[s],u!==""?`${u}.${s}`:s)});else i!==a&&(o[u]=[i,a])};return n(t,e,r),o},_n=(t,e)=>{const r=Array.isArray(t),o=Array.isArray(e);if(r!==o)return!1;if(r&&o){const a=t,u=e;if(a.length!==u.length)return!1;for(let s=0;s<a.length;s++)if(!_n(a[s],u[s]))return!1;return!0}if(t==null||e==null||typeof t!="object"||typeof e!="object")return t===e;if("equals"in t)return t.equals(e);const n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(const a of n){const u=t[a],s=e[a];if(typeof u=="object"&&typeof s=="object"){if(!_n(u,s))return!1}else if(u!==s)return!1}return!0},Cc=(t,e)=>{if(typeof t!="object"||t==null)return t===e;const r=Object.keys(t),o=Object.keys(e);if(o.length>r.length)return!1;for(const n of o){const i=t[n],a=e[n];if(typeof i=="object"&&typeof a=="object"){if(!Cc(i,a))return!1}else if(i!==a)return!1}return!0},In=(t,...e)=>{if(e.length===0)return t;const r=e.shift();if(an(t)&&an(r))for(const o in r)try{an(r[o])?(o in t||Object.assign(t,{[o]:{}}),In(t[o],r[o])):Object.assign(t,{[o]:r[o]})}catch(n){throw n instanceof TypeError?new TypeError(`.${o}: ${n.message}`):n}return In(t,...e)},Eg=(t,e,r)=>{const o=(n,i,a)=>{if(a.def?.type==="union")return a.def.options.reduce((u,s)=>o(u,i,s),n);if(a.def?.type==="intersection"){const u=o(n,i,a.def.left);return o(u,i,a.def.right)}for(const u in i){const s=i[u];let f=a?.shape;if(f!=null)for(;f!=null;){if(f[u]!=null){const p=f[u].safeParse(s);if(p.success){n[u]=p.data;break}}f=f.def?.shape}typeof s=="object"&&!Array.isArray(s)&&s!==null&&a&&a.shape&&a.shape[u]&&(n[u]||={},o(n[u],s,a.shape[u]))}return n};return o({...t},e,r)},gi=Object.freeze(Object.defineProperty({__proto__:null,copy:Tg,deleteD:Ug,difference:jg,element:zg,equal:_n,get:Mc,has:xg,override:In,overrideValidItems:Eg,partialEqual:Cc,pathsMatch:Ng,remove:Og,resolvePath:Ig,set:Sg,transformPath:_g},Symbol.toStringTag,{value:"Module"}));E({key:P(),value:P()});Gt(L([x(),P(),Is()]),We());const Rc=()=>typeof process<"u"&&process.versions!=null&&process.versions.node!=null?"node":typeof window>"u"||window.document===void 0?"webworker":"browser",Dg=Rc(),Lc=["macOS","Windows","Linux"],Pg=["macos","windows","linux"],Ag={macos:"macOS",windows:"Windows",linux:"Linux"},Zg=V(Lc).or(V(Pg).transform(t=>Ag[t])),Mg=()=>{if(typeof window>"u")return;const t=window.navigator.userAgent.toLowerCase();if(t.includes("mac"))return"macOS";if(t.includes("win"))return"Windows";if(t.includes("linux"))return"Linux"};let un;const Cg=(t={})=>{const{force:e,default:r}=t;return e??un??(un=Mg(),un??r)},Rg=Object.freeze(Object.defineProperty({__proto__:null,OPERATING_SYSTEMS:Lc,RUNTIME:Dg,detect:Rc,getOS:Cg,osZ:Zg},Symbol.toStringTag,{value:"Module"})),Lg=(...t)=>t.map(Wc).join(""),Wc=t=>(t.endsWith("/")||(t+="/"),t.startsWith("/")&&(t=t.slice(1)),t),Wg=t=>t.endsWith("/")?t.slice(0,-1):t;class wt{protocol;host;port;path;constructor({host:e,port:r,protocol:o="",pathPrefix:n=""}){this.protocol=o,this.host=e,this.port=r,this.path=Wc(n)}replace(e){return new wt({host:e.host??this.host,port:e.port??this.port,protocol:e.protocol??this.protocol,pathPrefix:e.pathPrefix??this.path})}child(e){return new wt({...this,pathPrefix:Lg(this.path,e)})}toString(){return Wg(`${this.protocol}://${this.host}:${this.port}/${this.path}`)}static UNKNOWN=new wt({host:"unknown",port:0})}E({baseInterval:U.z.optional(),maxRetries:x().optional(),scale:x().optional()});const Bg=/^#?([0-9a-f]{6}|[0-9a-f]{8})$/i,Bc=P().regex(Bg),Ze=x().min(0).max(255),Fc=x().min(0).max(1),Jc=me([Ze,Ze,Ze,Fc]),Fg=me([Ze,Ze,Ze]),Jg=E({rgba255:Jc}),Vg=x().min(0).max(360),Gg=x().min(0).max(100),qg=x().min(0).max(100),Kg=me([Vg,Gg,qg,Fc]),hi=L([Bc,Fg,Jc,Kg,Jg]),Yg=hi.transform(t=>vi(t)),vi=(t,e=1)=>{if(t=hi.parse(t),typeof t=="string")return Xg(t,e);if(Array.isArray(t)){if(t.length<3||t.length>4)throw new Error(`Invalid color: [${t.join(", ")}]`);return t.length===3?[...t,e]:t}return t.rgba255},Xg=(t,e=1)=>(t=Bc.parse(t),t=Hg(t),[ht(t,0),ht(t,2),ht(t,4),t.length===8?ht(t,6)/255:e]),ht=(t,e)=>parseInt(t.slice(e,e+2),16),Hg=t=>t.startsWith("#")?t.slice(1):t;vi("#000000");vi("#ffffff");const Qg=E({key:P(),color:hi,position:x(),switched:K().optional()});dt(Qg);const eh=E({key:P(),name:P(),color:Yg});E({key:P(),name:P(),swatches:dt(eh)});ce().min(0).max(255);E({name:P(),key:P()});const th=t=>Object.getOwnPropertySymbols(globalThis).includes(t),nh=(t,e)=>{const r=Symbol.for(t);if(!th(r)){const o=e();Object.defineProperty(globalThis,r,{value:o})}return()=>globalThis[r]},Vc="sy_x_error",rh=t=>e=>e!=null&&typeof e=="object"&&"type"in e&&typeof e.type=="string"?e.type.startsWith(t):e instanceof Error?e.message.startsWith(t):typeof e!="string"?!1:e.startsWith(t),Gc=t=>class Qe extends Error{static discriminator=Vc;discriminator=Qe.discriminator;static TYPE=t;type=Qe.TYPE;static matches=rh(t);matches=Qe.matches;constructor(r,o){super(r,o),this.name=Qe.TYPE}static sub(r){return Gc(`${t}.${r}`)}},ih=t=>{if(t==null||typeof t!="object")return!1;const e=t;if(e.discriminator!==Vc)return!1;if(!("type"in e))throw new Error(`X Error is missing its type property: ${JSON.stringify(e)}`);return!0},Ve="unknown",Bi="nil";class oh{providers=[];register(e){this.providers.push(e)}encode(e){if(e==null)return{type:Bi,data:""};if(ih(e))for(const r of this.providers){const o=r.encode(e);if(o!=null)return o}if(e instanceof Error)return{type:Ve,data:e.message};if(typeof e=="string")return{type:Ve,data:e};try{return{type:Ve,data:JSON.stringify(e)}}catch{return{type:Ve,data:"unable to encode error information"}}}decode(e){if(e==null||e.type===Bi)return null;if(e.type===Ve)return new Fi(e.data);for(const r of this.providers){const o=r.decode(e);if(o!=null)return o}return new Fi(e.data)}}nh("synnax-error-registry",()=>new oh);class Fi extends Gc("unknown"){}E({type:P(),data:P()});const ah=B.object({jsonrpc:B.literal("2.0"),method:B.string(),params:B.any().optional(),id:B.union([B.string(),B.number(),B.null()]).optional()}),qc=B.object({jsonrpc:B.literal("2.0"),id:B.union([B.string(),B.number(),B.null()])}),uh=qc.extend({result:B.json()}),sh=qc.extend({error:B.object({code:B.number().int(),message:B.string().optional(),data:B.json().optional()})}),ch=B.union([uh,sh]);B.union([ah,ch]);P().regex(/^\d+\.\d+\.\d+$/);const lh=["standard","scientific","engineering"];V(lh);V(["success","info","warning","error","loading","disabled"]);const ke="main",yi="prerender",nn={stage:"creating",processCount:0,reserved:!1,focusCount:0,centerCount:0},Kc={...nn,key:yi,visible:!1},dh=E({key:P(),url:P().optional(),title:P().optional(),center:K().optional(),position:jt.xy.optional(),size:bt.dimensions.optional(),minSize:bt.dimensions.optional(),maxSize:bt.dimensions.optional(),resizable:K().optional(),fullscreen:K().optional(),focus:K().optional(),maximized:K().optional(),visible:K().optional(),minimized:K().optional(),decorations:K().optional(),skipTaskbar:K().optional(),fileDropEnabled:K().optional(),transparent:K().optional(),alwaysOnTop:K().optional()}),fh=U.milliseconds(50),Yc=()=>setTimeout(()=>window.location.reload(),fh.milliseconds),Xc={label:ke,config:{enablePrerender:!0,debug:!1,defaultWindowProps:{}},windows:{main:{...nn,key:ke,reserved:!0}},labelKeys:{main:ke},keyLabels:{main:ke}},mh=(t,e)=>{if(t.type===Qc.type)return e.label!==ke||(t.payload.label=bn.create(),t.payload.prerenderLabel=bn.create()),t;if("label"in t.payload)return t;let r=e.label;const o=t.payload;return o.key!=null&&(o.key in e.windows?r=o.key:r=e.keyLabels[o.key]),t.payload={...t.payload,label:r},t},ee=t=>(e,r)=>{if(!("label"in r.payload))throw new Error("Missing label");t(e,r)},we=(t,e=!1)=>ee((r,o)=>{let n=e;const i=r.windows[o.payload.label];if(i!=null){if(o.payload.value!=null)n=o.payload.value;else{const a=i[t];a!=null&&(n=!a)}r.windows[o.payload.label]={...i,[t]:n}}}),rn=(t,e=!1)=>(r,o)=>{const n=r.windows[o.payload.label];n!=null&&(r.windows[o.payload.label]={...n,[t]:n[t]+(e?-1:1)})},ph=t=>Object.values(t.windows).some(e=>e.key===yi&&!e.reserved),bi="drift",gh=(t,e,r)=>t.position!=null&&t.size!=null&&e==null?Xe.topLeft(Xe.positionInCenter(Xe.construct(jt.ZERO,r??jt.ZERO),Xe.construct(t.position,t.size))):e,hh=(t,{payload:e})=>{if(e.key===yi)return;const{key:r,label:o,prerenderLabel:n}=e;if(o==null||n==null)throw new Error("[drift] - bug - missing label and prerender label");Vi(t.config.debug,"reducer create window");const i=t.windows.main;if(e.position=gh(i,e.position,e.size),r in t.keyLabels){Ge(t.config.debug,"window already exists, un-minimize and focus it");const s=t.keyLabels[e.key];t.windows[s].visible=!0,t.windows[s].focusCount+=1,t.windows[s].minimized=!1,t.windows[s].position=e.position,sn(t.config.debug);return}const[a,u]=Object.entries(t.windows).find(([,s])=>!s.reserved)??[null,null];a!=null?(Ge(t.config.debug,"using available pre-rendered window"),t.windows[a]={...u,visible:!0,reserved:!0,focusCount:1,focus:!0,...e},t.labelKeys[a]=e.key,t.keyLabels[e.key]=a):(Ge(t.config.debug,"creating new window"),t.windows[o]={...t.config.defaultWindowProps,...nn,...e,reserved:!0},t.labelKeys[o]=r,t.keyLabels[r]=o),t.config.enablePrerender&&!ph(t)&&(Ge(t.config.debug,"creating pre-render window"),t.windows[n]=gi.copy({...t.config.defaultWindowProps,...Kc})),sn(t.config.debug)},vh=ee((t,e)=>{const r=t.windows[e.payload.label];r!=null&&(r.stage=e.payload.stage)}),yh=ee((t,{payload:{label:e}})=>{const r=t.windows[e];r==null||r.processCount>0||(r.stage="closing",delete t.windows[e],delete t.labelKeys[e],delete t.keyLabels[r.key])}),bh=ee((t,e)=>{const r=t.windows[e.payload.label];r==null||r.processCount>0||(r.stage="reloading",Yc())}),$h=ee(rn("processCount")),wh=ee((t,e)=>{rn("processCount",!0)(t,e);const r=t.windows[e.payload.label];r!=null&&r.processCount===0&&(r.stage==="reloading"?Yc():(t.windows[e.payload.label].visible=!1,delete t.windows[e.payload.label],delete t.labelKeys[e.payload.label],delete t.keyLabels[r.key]))}),_h=(t,e)=>{const r=t.windows[e.payload.key];r!=null&&(r.error=e.payload.message)},Ih=ee((t,e)=>{const r=t.windows[e.payload.label];r!=null&&(r.visible!==!0&&(r.visible=!0),rn("focusCount")(t,e))}),kh=we("minimized"),Sh=we("maximized"),Oh=we("visible",!0),zh=we("fullscreen",!0),xh=ee(rn("centerCount")),Nh=ee((t,e)=>{t.windows[e.payload.label].position=e.payload.position}),Th=ee((t,e)=>{t.windows[e.payload.label].size=e.payload.size}),Uh=ee((t,e)=>{t.windows[e.payload.label].minSize=e.payload.size}),jh=ee((t,e)=>{t.windows[e.payload.label].maxSize=e.payload.size}),Eh=we("resizable"),Dh=we("skipTaskbar"),Ph=we("alwaysOnTop"),Ah=ee((t,e)=>{t.windows[e.payload.label].title=e.payload.title}),Zh=we("decorations"),Ji=(t,e)=>{const r=t.windows[e.payload.label];gi.partialEqual(r,e.payload)||(t.windows[e.payload.label]={...r,...e.payload})},Mh=(t,e)=>{if(t.config={...t.config,...e.payload},t.label=e.payload.label,t.label===ke&&t.config.enablePrerender){const r=bn.create();t.windows[r]={...t.config.defaultWindowProps,...Kc}}},Hc=tl.createSlice({name:bi,initialState:Xc,reducers:{internalSetInitial:Mh,createWindow:hh,setWindowStage:vh,closeWindow:yh,registerProcess:$h,completeProcess:wh,setWindowError:_h,focusWindow:Ih,reloadWindow:bh,setWindowMinimized:kh,setWindowMaximized:Sh,setWindowVisible:Oh,setWindowFullscreen:zh,centerWindow:xh,setWindowPosition:Nh,setWindowSize:Th,setWindowMinSize:Uh,setWindowMaxSize:jh,setWindowResizable:Eh,setWindowSkipTaskbar:Dh,setWindowAlwaysOnTop:Ph,setWindowTitle:Ah,setWindowDecorations:Zh,runtimeSetWindowProps:Ji,setWindowProps:Ji}}),{actions:{runtimeSetWindowProps:Ch,setWindowProps:Rh,createWindow:Qc,internalSetInitial:el,setWindowStage:Lh,closeWindow:Wh,registerProcess:Bh,completeProcess:Fh,setWindowError:Jh,focusWindow:Vh,reloadWindow:Gh,setWindowMinimized:qh,setWindowMaximized:Kh,setWindowVisible:Yh,setWindowFullscreen:Xh,centerWindow:pv,setWindowPosition:Hh,setWindowSize:Qh,setWindowMinSize:ev,setWindowMaxSize:tv,setWindowResizable:nv,setWindowSkipTaskbar:rv,setWindowAlwaysOnTop:iv,setWindowTitle:ov,setWindowDecorations:av}}=Hc,uv=Hc.reducer,sv=t=>t.startsWith(bi),cv=[el.type],lv=(t,e)=>!t&&!cv.includes(e);exports.Ho=Xe;exports.INITIAL_WINDOW_STATE=nn;exports.K=jt;exports.MAIN_WINDOW=ke;exports.N=gi;exports.S=Rg;exports.SLICE_NAME=bi;exports.ZERO_SLICE_STATE=Xc;exports._=bt;exports.assignLabel=mh;exports.closeWindow=Wh;exports.completeProcess=Fh;exports.createWindow=Qc;exports.focusWindow=Vh;exports.group=Vi;exports.groupEnd=sn;exports.i=U;exports.internalSetInitial=el;exports.isDriftAction=sv;exports.log=Ge;exports.reducer=uv;exports.registerProcess=Bh;exports.reloadWindow=Gh;exports.runtimeSetWindowProps=Ch;exports.setWindowAlwaysOnTop=iv;exports.setWindowDecorations=av;exports.setWindowError=Jh;exports.setWindowFullscreen=Xh;exports.setWindowMaxSize=tv;exports.setWindowMaximized=Kh;exports.setWindowMinSize=ev;exports.setWindowMinimized=qh;exports.setWindowPosition=Hh;exports.setWindowProps=Rh;exports.setWindowResizable=nv;exports.setWindowSize=Qh;exports.setWindowSkipTaskbar=rv;exports.setWindowStage=Lh;exports.setWindowTitle=ov;exports.setWindowVisible=Yh;exports.shouldEmit=lv;exports.windowPropsZ=dh;
33
+ `).buffer):this.dataType.usesBigInt&&typeof y=="number"?this._data=new this.dataType.Array(h.map(d=>BigInt(Math.round(d)))).buffer:!this.dataType.usesBigInt&&typeof y=="bigint"?this._data=new this.dataType.Array(h.map(Number)).buffer:this._data=new this.dataType.Array(h).buffer}this.key=s,this.alignment=a,this.alignmentMultiple=u,this.sampleOffset=n??0,this.timeRange=o??Qe.ZERO,this.gl={control:null,buffer:null,prevBuffer:0,bufferUsage:i}}static alloc({capacity:e,dataType:r,...o}){if(e===0)throw new Error("[Series] - cannot allocate an array of length 0");const n=new new R(r).Array(e),i=new ve({data:n.buffer,dataType:r,...o});return i.writePos=0,i}get refCount(){return this._refCount}acquire(e){this._refCount++,e!=null&&this.updateGLBuffer(e)}release(){this._refCount--,this.refCount===0&&this.gl.control!=null?this.maybeGarbageCollectGLBuffer(this.gl.control):this.refCount<0&&console.warn("cannot release a series with a negative reference count")}write(e){if(!e.dataType.equals(this.dataType))throw new Error("buffer must be of the same type as this array");return this.dataType.isVariable?this.writeVariable(e):this.writeFixed(e)}writeVariable(e){if(this.writePos===he)return 0;const r=this.byteCapacity.valueOf()-this.writePos,o=e.subBytes(0,r);return this.writeToUnderlyingData(o),this.writePos+=o.byteLength.valueOf(),this.cachedLength!=null&&(this.cachedLength+=o.length,this.calculateCachedLength()),o.length}writeFixed(e){if(this.writePos===he)return 0;const r=this.capacity-this.writePos,o=e.sub(0,r);return this.writeToUnderlyingData(o),this.cachedLength=void 0,this.maybeRecomputeMinMax(o),this.writePos+=o.length,o.length}writeToUnderlyingData(e){this.underlyingData.set(e.data,this.writePos)}get buffer(){return typeof this._data=="object"&&"buffer"in this._data?this._data.buffer:this._data}get underlyingData(){return new this.dataType.Array(this._data)}get data(){return this.writePos===he?this.underlyingData:new this.dataType.Array(this._data,0,this.writePos)}toStrings(){return this.dataType.isVariable?new TextDecoder().decode(this.underlyingData).split(`
34
+ `).slice(0,-1):Array.from(this).map(e=>e.toString())}parseJSON(e){if(!this.dataType.equals(R.JSON))throw new Error("cannot parse non-JSON series as JSON");return this.toStrings().map(r=>e.parse(dn.decodeString(r)))}get byteCapacity(){return new wn(this.underlyingData.byteLength)}get capacity(){return this.dataType.isVariable?this.byteCapacity.valueOf():this.dataType.density.length(this.byteCapacity)}get byteLength(){return this.writePos===he?this.byteCapacity:this.dataType.isVariable?new wn(this.writePos):this.dataType.density.size(this.writePos)}get length(){return this.cachedLength!=null?this.cachedLength:this.dataType.isVariable?this.calculateCachedLength():this.writePos===he?this.byteCapacity.valueOf()/this.dataType.density.valueOf():this.writePos}calculateCachedLength(){if(!this.dataType.isVariable)throw new Error("cannot calculate length of a non-variable length data type");let e=0;const r=[0];return this.data.forEach((o,n)=>{o===_n&&(e++,r.push(n+1))}),this._cachedIndexes=r,this.cachedLength=e,e}convert(e,r=0){if(this.dataType.equals(e))return this;const o=new e.Array(this.length);for(let n=0;n<this.length;n++)o[n]=lg(this.dataType,e,this.data[n],r);return new ve({data:o.buffer,dataType:e,timeRange:this.timeRange,sampleOffset:r,glBufferUsage:this.gl.bufferUsage,alignment:this.alignment})}calcRawMax(){if(this.length===0)return-1/0;if(this.dataType.equals(R.TIMESTAMP))this.cachedMax=this.data[this.data.length-1];else if(this.dataType.usesBigInt){const e=this.data;this.cachedMax=e.reduce((r,o)=>r>o?r:o)}else{const e=this.data;this.cachedMax=e.reduce((r,o)=>r>o?r:o)}return this.cachedMax}get max(){return this.calcMax()}calcMax(){if(this.dataType.isVariable)throw new Error("cannot calculate maximum on a variable length data type");return this.writePos===0?-1/0:(this.cachedMax??=this.calcRawMax(),wt(this.cachedMax,this.sampleOffset))}calcRawMin(){if(this.length===0)return 1/0;if(this.dataType.equals(R.TIMESTAMP))this.cachedMin=this.data[0];else if(this.dataType.usesBigInt){const e=this.data;this.cachedMin=e.reduce((r,o)=>r<o?r:o)}else{const e=this.data;this.cachedMin=e.reduce((r,o)=>r<o?r:o)}return this.cachedMin}get min(){return this.calcMin()}calcMin(){if(this.dataType.isVariable)throw new Error("cannot calculate minimum on a variable length data type");return this.writePos===0?1/0:(this.cachedMin??=this.calcRawMin(),wt(this.cachedMin,this.sampleOffset))}get bounds(){return Oe(Number(this.min),Number(this.max),{makeValid:!1})}maybeRecomputeMinMax(e){if(this.cachedMin!=null){const r=e.cachedMin??e.calcRawMin();r<this.cachedMin&&(this.cachedMin=r)}if(this.cachedMax!=null){const r=e.cachedMax??e.calcRawMax();r>this.cachedMax&&(this.cachedMax=r)}}atAlignment(e,r){const o=Number((e-this.alignment)/this.alignmentMultiple);if(o<0||o>=this.length){if(r===!0)throw new Error(`[series] - no value at index ${o}`);return}return this.at(o,r)}at(e,r=!1){if(this.dataType.isVariable)return this.atVariable(e,r??!1);if(this.dataType.equals(R.UUID))return this.atUUID(e,r);e<0&&(e=this.length+e);const o=this.data[e];if(o==null){if(r===!0)throw new Error(`[series] - no value at index ${e}`);return}return wt(o,this.sampleOffset)}atUUID(e,r){e<0&&(e=this.length+e);const o=Ac(new Uint8Array(this.buffer,e*this.dataType.density.valueOf()));if(o==null){if(r)throw new Error(`[series] - no value at index ${e}`);return}return o}atVariable(e,r){let o=0,n=0;if(this._cachedIndexes!=null)o=this._cachedIndexes[e],n=this._cachedIndexes[e+1]-1;else{e<0&&(e=this.length+e);for(let a=0;a<this.data.length;a++)if(this.data[a]===_n){if(e===0){n=a;break}o=a+1,e--}if(n===0&&(n=this.data.length),o>=n||e>0){if(r)throw new Error(`[series] - no value at index ${e}`);return}}const i=this.data.slice(o,n);return this.dataType.equals(R.STRING)?new TextDecoder().decode(i):Ki(JSON.parse(new TextDecoder().decode(i)))}binarySearch(e){let r=0,o=this.length-1;const n=Pm(e);for(;r<=o;){const i=Math.floor((r+o)/2),a=n(this.at(i,!0),e);if(a===0)return i;a<0?r=i+1:o=i-1}return r}updateGLBuffer(e){if(this.gl.control=e,!this.dataType.equals(R.FLOAT32)&&!this.dataType.equals(R.UINT8))throw new Error("Only FLOAT32 and UINT8 arrays can be used in WebGL");const{buffer:r,bufferUsage:o,prevBuffer:n}=this.gl;if(r==null&&(this.gl.buffer=e.createBuffer()),this.writePos!==n)if(e.bindBuffer(e.ARRAY_BUFFER,this.gl.buffer),this.writePos!==he){n===0&&e.bufferData(e.ARRAY_BUFFER,this.byteCapacity.valueOf(),e.STATIC_DRAW);const i=this.dataType.density.size(n).valueOf(),a=this.underlyingData.slice(this.gl.prevBuffer,this.writePos);e.bufferSubData(e.ARRAY_BUFFER,i,a.buffer),this.gl.prevBuffer=this.writePos}else e.bufferData(e.ARRAY_BUFFER,this.buffer,o==="static"?e.STATIC_DRAW:e.DYNAMIC_DRAW),this.gl.prevBuffer=he}as(e){return vg(e,this.dataType),this}get digest(){return{key:this.key,dataType:this.dataType.toString(),sampleOffset:this.sampleOffset,alignment:{lower:Bi(this.alignmentBounds.lower),upper:Bi(this.alignmentBounds.upper),multiple:this.alignmentMultiple},timeRange:this.timeRange.toString(),length:this.length,capacity:this.capacity}}get alignmentBounds(){return Oe(this.alignment,this.alignment+BigInt(this.length)*this.alignmentMultiple)}maybeGarbageCollectGLBuffer(e){this.gl.buffer!=null&&(e.deleteBuffer(this.gl.buffer),this.gl.buffer=null,this.gl.prevBuffer=0,this.gl.control=null)}get glBuffer(){if(this.gl.buffer==null)throw new Error("gl buffer not initialized");return this.gl.prevBuffer!==this.writePos&&console.warn("buffer not updated"),this.gl.buffer}[Symbol.iterator](){if(this.dataType.isVariable){const e=new $g(this);return this.dataType.equals(R.JSON)?new wg(e):e}return this.dataType.equals(R.UUID)?new _g(this):new Ig(this)}slice(e,r){return this.sliceSub(!1,e,r)}sub(e,r){return this.sliceSub(!0,e,r)}subIterator(e,r){return new Wi(this,e,r??this.length)}subAlignmentIterator(e,r){const o=Math.ceil(Number(e-this.alignment)/Number(this.alignmentMultiple)),n=Math.ceil(Number(r-this.alignment)/Number(this.alignmentMultiple));return new Wi(this,o,n)}subBytes(e,r){if(e>=0&&(r==null||r>=this.byteLength.valueOf()))return this;const o=this.data.subarray(e,r);return new ve({data:o,dataType:this.dataType,timeRange:this.timeRange,sampleOffset:this.sampleOffset,glBufferUsage:this.gl.bufferUsage,alignment:this.alignment+BigInt(e)})}sliceSub(e,r,o){if(r<=0&&(o==null||o>=this.length))return this;let n;return e?n=this.data.subarray(r,o):n=this.data.slice(r,o),new ve({data:n,dataType:this.dataType,timeRange:this.timeRange,sampleOffset:this.sampleOffset,glBufferUsage:this.gl.bufferUsage,alignment:this.alignment+BigInt(r)})}reAlign(e){return new ve({data:this.buffer,dataType:this.dataType,timeRange:Qe.ZERO,sampleOffset:this.sampleOffset,glBufferUsage:"static",alignment:e})}toString(){let e=`Series(${this.dataType.toString()} ${this.length} [`;if(this.length<=10)e+=Array.from(this).map(r=>r.toString());else{for(let r=0;r<5;r++)e+=`${this.at(r)?.toString()}`,e+=",";e+="...,";for(let r=-5;r<0;r++)e+=this.at(r)?.toString(),r<-1&&(e+=",")}return e+="])",e}};const yg=t=>t==null?!1:Array.isArray(t)||t instanceof ArrayBuffer||ArrayBuffer.isView(t)&&!(t instanceof DataView)||t instanceof Mc?!0:Pc(t),bg=ug(Zc,Mc);class Wi{series;end;index;constructor(e,r,o){this.series=e;const n=Oe(0,e.length+1);this.end=Ri(n,o),this.index=Ri(n,r)}next(){return this.index>=this.end?{done:!0,value:void 0}:{done:!1,value:this.series.at(this.index++,!0)}}}class $g{series;index;decoder;constructor(e){if(!e.dataType.isVariable)throw new Error("cannot create a variable series iterator for a non-variable series");this.series=e,this.index=0,this.decoder=new TextDecoder}next(){const e=this.index,r=this.series.data;for(;this.index<r.length&&r[this.index]!==_n;)this.index++;const o=this.index;return e===o?{done:!0,value:void 0}:(this.index++,{done:!1,value:this.decoder.decode(this.series.buffer.slice(e,o))})}}let wg=class Cc{wrapped;static schema=qt(A(),Be());constructor(e){this.wrapped=e}next(){const e=this.wrapped.next();return e.done===!0?{done:!0,value:void 0}:{done:!1,value:dn.decodeString(e.value,Cc.schema)}}},_g=class{series;index;data;density;constructor(e){if(!e.dataType.equals(R.UUID))throw new Error("cannot create a UUID series iterator for a non-UUID series");this.series=e,this.index=0,this.data=new Uint8Array(e.buffer),this.density=R.UUID.density.valueOf()}next(){if(this.index>=this.series.length)return{done:!0,value:void 0};const e=Ac(this.data,this.index*this.density);return this.index++,{done:!1,value:e}}};class Ig{series;index;constructor(e){this.series=e,this.index=0}next(){return this.index>=this.series.length?{done:!0,value:void 0}:{done:!1,value:this.series.at(this.index++,!0)}}}const Bi=t=>{const e=t>>32n,r=t&0xffffffffn;return{domain:e,sample:r}},kg=(t,e,r=".")=>{const o=t.split(r);return o.map((n,i)=>{const a=e(n,i,o);return a==null?null:typeof a=="string"?a:a.join(r)}).filter(n=>n!=null).join(r)},gi=(t,e)=>{if(!Array.isArray(t))return t[e];const r=t[e];if(r!=null||t.length==0)return r;const o=t[0];if(typeof o=="object"&&"key"in o)return t.find(n=>n.key===e)},Sg=(t,e)=>{const r=t.split(".");return r.forEach((o,n)=>{e=gi(e,o),e!=null&&typeof e=="object"&&"key"in e&&(r[n]=e.key)}),r.join(".")},Rc=(t,e,r={optional:!1,separator:"."})=>{r.separator??=".";const{optional:o,getter:n=gi}=r,i=e.split(r.separator);if(i.length===1&&i[0]==="")return t;let a=t;for(const u of i){const s=n(a,u);if(s==null){if(o)return null;throw new Error(`Path ${e} does not exist. ${u} is null`)}a=s}return a},Og=t=>{for(const e of t)if(isNaN(parseInt(e)))return null;return parseInt(t)},zg=(t,e,r)=>{const o=e.split(".");let n=t;for(let i=0;i<o.length-1;i++){const a=o[i],u=gi(n,a);if(u==null)throw new Error(`Path ${e} does not exist. ${a} is null`);n=u}try{if(!Array.isArray(n)){n[o[o.length-1]]=r;return}if(n.length===0)return;const i=Og(o[o.length-1]);if(i==null){const a=n[0];if(typeof a=="object"&&"key"in a){const u=n.findIndex(s=>s.key===o[o.length-1]);if(u!==-1){n[u]=r;return}}return}n[i]=r}catch(i){throw console.error("failed to set value",r,"at path",e,"on object",t),i}},xg=(t,e)=>{const r=e.split(".");let o=t;for(let n=0;n<r.length-1;n++){const i=r[n];if(o[i]==null)return;o=o[i]}if(Array.isArray(o)){const n=parseInt(r[r.length-1]);if(isNaN(n))return;o.splice(n,1);return}delete o[r[r.length-1]]},Ng=(t,e)=>{const r=t.split(".");return e<0?r[r.length+e]:r[e]},Tg=(t,e)=>{try{return Rc(t,e),!0}catch{return!1}},Ug=(t,e)=>{if(e.length===0)return!0;const r=t.split("."),o=e.split(".");if(o.length>r.length)return!1;for(let n=0;n<o.length;n++){const i=r[n],a=o[n];if(a!=="*"&&i!==a)return!1}return!0},jg=t=>{try{return structuredClone(t)}catch{return console.warn("Failed to deep copy object, falling back to JSON.parse(JSON.stringify)",t),console.trace(),JSON.parse(JSON.stringify(t))}},Eg=(t,...e)=>(e.forEach(r=>{let o=t;const n=r.split(".");n.forEach((i,a)=>{typeof o!="object"||o===null||(a===n.length-1?delete o[i]:i in o&&(o=o[i]))})}),t),Dg=(t,e,r="")=>{const o={},n=(i,a,u)=>{if(typeof i!=typeof a||i===null||a===null){o[u]=[i,a];return}if(typeof i=="object"&&typeof a=="object")if(Array.isArray(i)&&Array.isArray(a)){if(i.length!==a.length){o[u]=[i,a];return}for(let s=0;s<i.length;s++)n(i[s],a[s],`${u}[${s}]`)}else new Set([...Object.keys(i),...Object.keys(a)]).forEach(s=>{n(i[s],a[s],u!==""?`${u}.${s}`:s)});else i!==a&&(o[u]=[i,a])};return n(t,e,r),o},In=(t,e)=>{const r=Array.isArray(t),o=Array.isArray(e);if(r!==o)return!1;if(r&&o){const a=t,u=e;if(a.length!==u.length)return!1;for(let s=0;s<a.length;s++)if(!In(a[s],u[s]))return!1;return!0}if(t==null||e==null||typeof t!="object"||typeof e!="object")return t===e;if("equals"in t)return t.equals(e);const n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(const a of n){const u=t[a],s=e[a];if(typeof u=="object"&&typeof s=="object"){if(!In(u,s))return!1}else if(u!==s)return!1}return!0},Lc=(t,e)=>{if(typeof t!="object"||t==null)return t===e;const r=Object.keys(t),o=Object.keys(e);if(o.length>r.length)return!1;for(const n of o){const i=t[n],a=e[n];if(typeof i=="object"&&typeof a=="object"){if(!Lc(i,a))return!1}else if(i!==a)return!1}return!0},kn=(t,...e)=>{if(e.length===0)return t;const r=e.shift();if(un(t)&&un(r))for(const o in r)try{un(r[o])?(o in t||Object.assign(t,{[o]:{}}),kn(t[o],r[o])):Object.assign(t,{[o]:r[o]})}catch(n){throw n instanceof TypeError?new TypeError(`.${o}: ${n.message}`):n}return kn(t,...e)},Pg=(t,e,r)=>{const o=(n,i,a)=>{if(a.def?.type==="union")return a.def.options.reduce((u,s)=>o(u,i,s),n);if(a.def?.type==="intersection"){const u=o(n,i,a.def.left);return o(u,i,a.def.right)}for(const u in i){const s=i[u];let f=a?.shape;if(f!=null)for(;f!=null;){if(f[u]!=null){const p=f[u].safeParse(s);if(p.success){n[u]=p.data;break}}f=f.def?.shape}typeof s=="object"&&!Array.isArray(s)&&s!==null&&a&&a.shape&&a.shape[u]&&(n[u]||={},o(n[u],s,a.shape[u]))}return n};return o({...t},e,r)},hi=Object.freeze(Object.defineProperty({__proto__:null,copy:jg,deleteD:Eg,difference:Dg,element:Ng,equal:In,get:Rc,has:Tg,override:kn,overrideValidItems:Pg,partialEqual:Lc,pathsMatch:Ug,remove:xg,resolvePath:Sg,set:zg,transformPath:kg},Symbol.toStringTag,{value:"Module"}));D({key:A(),value:A()});qt(L([x(),A(),ks()]),Be());const Wc=()=>typeof process<"u"&&process.versions!=null&&process.versions.node!=null?"node":typeof window>"u"||window.document===void 0?"webworker":"browser",Ag=Wc(),Bc=["macOS","Windows","Linux"],Zg=["macos","windows","linux"],Mg={macos:"macOS",windows:"Windows",linux:"Linux"},Cg=J(Bc).or(J(Zg).transform(t=>Mg[t])),Rg=()=>{if(typeof window>"u")return;const t=window.navigator.userAgent.toLowerCase();if(t.includes("mac"))return"macOS";if(t.includes("win"))return"Windows";if(t.includes("linux"))return"Linux"};let sn;const Lg=(t={})=>{const{force:e,default:r}=t;return e??sn??(sn=Rg(),sn??r)},Wg=Object.freeze(Object.defineProperty({__proto__:null,OPERATING_SYSTEMS:Bc,RUNTIME:Ag,detect:Wc,getOS:Lg,osZ:Cg},Symbol.toStringTag,{value:"Module"})),Bg=(...t)=>t.map(Fc).join(""),Fc=t=>(t.endsWith("/")||(t+="/"),t.startsWith("/")&&(t=t.slice(1)),t),Fg=t=>t.endsWith("/")?t.slice(0,-1):t;class _t{protocol;host;port;path;constructor({host:e,port:r,protocol:o="",pathPrefix:n=""}){this.protocol=o,this.host=e,this.port=r,this.path=Fc(n)}replace(e){return new _t({host:e.host??this.host,port:e.port??this.port,protocol:e.protocol??this.protocol,pathPrefix:e.pathPrefix??this.path})}child(e){return new _t({...this,pathPrefix:Bg(this.path,e)})}toString(){return Fg(`${this.protocol}://${this.host}:${this.port}/${this.path}`)}static UNKNOWN=new _t({host:"unknown",port:0})}D({baseInterval:j.z.optional(),maxRetries:x().optional(),scale:x().optional()});const Jg=/^#?([0-9a-f]{6}|[0-9a-f]{8})$/i,Jc=A().regex(Jg),Me=x().min(0).max(255),Vc=x().min(0).max(1),Gc=me([Me,Me,Me,Vc]),Vg=me([Me,Me,Me]),Gg=D({rgba255:Gc}),qg=x().min(0).max(360),Kg=x().min(0).max(100),Yg=x().min(0).max(100),Xg=me([qg,Kg,Yg,Vc]),vi=L([Jc,Vg,Gc,Xg,Gg]),Hg=vi.transform(t=>yi(t)),yi=(t,e=1)=>{if(t=vi.parse(t),typeof t=="string")return Qg(t,e);if(Array.isArray(t)){if(t.length<3||t.length>4)throw new Error(`Invalid color: [${t.join(", ")}]`);return t.length===3?[...t,e]:t}return t.rgba255},Qg=(t,e=1)=>(t=Jc.parse(t),t=eh(t),[vt(t,0),vt(t,2),vt(t,4),t.length===8?vt(t,6)/255:e]),vt=(t,e)=>parseInt(t.slice(e,e+2),16),eh=t=>t.startsWith("#")?t.slice(1):t;yi("#000000");yi("#ffffff");const th=D({key:A(),color:vi,position:x(),switched:Y().optional()});ft(th);const nh=D({key:A(),name:A(),color:Hg});D({key:A(),name:A(),swatches:ft(nh)});ce().min(0).max(255);D({name:A(),key:A()});const rh=t=>Object.getOwnPropertySymbols(globalThis).includes(t),ih=(t,e)=>{const r=Symbol.for(t);if(!rh(r)){const o=e();Object.defineProperty(globalThis,r,{value:o})}return()=>globalThis[r]},qc="sy_x_error",oh=t=>e=>e!=null&&typeof e=="object"&&"type"in e&&typeof e.type=="string"?e.type.startsWith(t):e instanceof Error?e.message.startsWith(t):typeof e!="string"?!1:e.startsWith(t),Kc=t=>class et extends Error{static discriminator=qc;discriminator=et.discriminator;static TYPE=t;type=et.TYPE;static matches=oh(t);matches=et.matches;constructor(r,o){super(r,o),this.name=et.TYPE}static sub(r){return Kc(`${t}.${r}`)}},ah=t=>{if(t==null||typeof t!="object")return!1;const e=t;if(e.discriminator!==qc)return!1;if(!("type"in e))throw new Error(`X Error is missing its type property: ${JSON.stringify(e)}`);return!0},Ge="unknown",Fi="nil";class uh{providers=[];register(e){this.providers.push(e)}encode(e){if(e==null)return{type:Fi,data:""};if(ah(e))for(const r of this.providers){const o=r.encode(e);if(o!=null)return o}if(e instanceof Error)return{type:Ge,data:e.message};if(typeof e=="string")return{type:Ge,data:e};try{return{type:Ge,data:JSON.stringify(e)}}catch{return{type:Ge,data:"unable to encode error information"}}}decode(e){if(e==null||e.type===Fi)return null;if(e.type===Ge)return new Ji(e.data);for(const r of this.providers){const o=r.decode(e);if(o!=null)return o}return new Ji(e.data)}}ih("synnax-error-registry",()=>new uh);class Ji extends Kc("unknown"){}D({type:A(),data:A()});const sh=B.object({jsonrpc:B.literal("2.0"),method:B.string(),params:B.any().optional(),id:B.union([B.string(),B.number(),B.null()]).optional()}),Yc=B.object({jsonrpc:B.literal("2.0"),id:B.union([B.string(),B.number(),B.null()])}),ch=Yc.extend({result:B.json()}),lh=Yc.extend({error:B.object({code:B.number().int(),message:B.string().optional(),data:B.json().optional()})}),dh=B.union([ch,lh]);B.union([sh,dh]);A().regex(/^\d+\.\d+\.\d+$/);const fh=["standard","scientific","engineering"];J(fh);J(["success","info","warning","error","loading","disabled"]);const Se="main",bi="prerender",rn={stage:"creating",processCount:0,reserved:!1,focusCount:0,centerCount:0},Xc={...rn,key:bi,visible:!1},mh=D({key:A(),url:A().optional(),title:A().optional(),center:Y().optional(),position:Et.xy.optional(),size:$t.dimensions.optional(),minSize:$t.dimensions.optional(),maxSize:$t.dimensions.optional(),resizable:Y().optional(),fullscreen:Y().optional(),focus:Y().optional(),maximized:Y().optional(),visible:Y().optional(),minimized:Y().optional(),decorations:Y().optional(),skipTaskbar:Y().optional(),fileDropEnabled:Y().optional(),transparent:Y().optional(),alwaysOnTop:Y().optional()}),ph=j.milliseconds(50),Hc=()=>setTimeout(()=>window.location.reload(),ph.milliseconds),Qc={label:Se,config:{enablePrerender:!0,debug:!1,defaultWindowProps:{}},windows:{main:{...rn,key:Se,reserved:!0}},labelKeys:{main:Se},keyLabels:{main:Se}},gh=(t,e)=>{if(t.type===tl.type)return e.label!==Se||(t.payload.label=$n.create(),t.payload.prerenderLabel=$n.create()),t;if("label"in t.payload)return t;let r=e.label;const o=t.payload;return o.key!=null&&(o.key in e.windows?r=o.key:r=e.keyLabels[o.key]),t.payload={...t.payload,label:r},t},ee=t=>(e,r)=>{if(!("label"in r.payload))throw new Error("Missing label");t(e,r)},_e=(t,e=!1)=>ee((r,o)=>{let n=e;const i=r.windows[o.payload.label];if(i!=null){if(o.payload.value!=null)n=o.payload.value;else{const a=i[t];a!=null&&(n=!a)}r.windows[o.payload.label]={...i,[t]:n}}}),on=(t,e=!1)=>(r,o)=>{const n=r.windows[o.payload.label];n!=null&&(r.windows[o.payload.label]={...n,[t]:n[t]+(e?-1:1)})},hh=t=>Object.values(t.windows).some(e=>e.key===bi&&!e.reserved),$i="drift",vh=(t,e,r)=>t.position!=null&&t.size!=null&&e==null?He.topLeft(He.positionInCenter(He.construct(Et.ZERO,r??Et.ZERO),He.construct(t.position,t.size))):e,yh=(t,{payload:e})=>{if(e.key===bi)return;const{key:r,label:o,prerenderLabel:n}=e;if(o==null||n==null)throw new Error("[drift] - bug - missing label and prerender label");Gi(t.config.debug,"reducer create window");const i=t.windows.main;if(e.position=vh(i,e.position,e.size),r in t.keyLabels){qe(t.config.debug,"window already exists, un-minimize and focus it");const s=t.keyLabels[e.key];t.windows[s].visible=!0,t.windows[s].focusCount+=1,t.windows[s].minimized=!1,t.windows[s].position=e.position,cn(t.config.debug);return}const[a,u]=Object.entries(t.windows).find(([,s])=>!s.reserved)??[null,null];a!=null?(qe(t.config.debug,"using available pre-rendered window"),t.windows[a]={...u,visible:!0,reserved:!0,focusCount:1,focus:!0,...e},t.labelKeys[a]=e.key,t.keyLabels[e.key]=a):(qe(t.config.debug,"creating new window"),t.windows[o]={...t.config.defaultWindowProps,...rn,...e,reserved:!0},t.labelKeys[o]=r,t.keyLabels[r]=o),t.config.enablePrerender&&!hh(t)&&(qe(t.config.debug,"creating pre-render window"),t.windows[n]=hi.copy({...t.config.defaultWindowProps,...Xc})),cn(t.config.debug)},bh=ee((t,e)=>{const r=t.windows[e.payload.label];r!=null&&(r.stage=e.payload.stage)}),$h=ee((t,{payload:{label:e}})=>{const r=t.windows[e];r==null||r.processCount>0||(r.stage="closing",delete t.windows[e],delete t.labelKeys[e],delete t.keyLabels[r.key])}),wh=ee((t,e)=>{const r=t.windows[e.payload.label];r==null||r.processCount>0||(r.stage="reloading",Hc())}),_h=ee(on("processCount")),Ih=ee((t,e)=>{on("processCount",!0)(t,e);const r=t.windows[e.payload.label];r!=null&&r.processCount===0&&(r.stage==="reloading"?Hc():(t.windows[e.payload.label].visible=!1,delete t.windows[e.payload.label],delete t.labelKeys[e.payload.label],delete t.keyLabels[r.key]))}),kh=(t,e)=>{const r=t.windows[e.payload.key];r!=null&&(r.error=e.payload.message)},Sh=ee((t,e)=>{const r=t.windows[e.payload.label];r!=null&&(r.visible!==!0&&(r.visible=!0),on("focusCount")(t,e))}),Oh=_e("minimized"),zh=_e("maximized"),xh=_e("visible",!0),Nh=_e("fullscreen",!0),Th=ee(on("centerCount")),Uh=ee((t,e)=>{t.windows[e.payload.label].position=e.payload.position}),jh=ee((t,e)=>{t.windows[e.payload.label].size=e.payload.size}),Eh=ee((t,e)=>{t.windows[e.payload.label].minSize=e.payload.size}),Dh=ee((t,e)=>{t.windows[e.payload.label].maxSize=e.payload.size}),Ph=_e("resizable"),Ah=_e("skipTaskbar"),Zh=_e("alwaysOnTop"),Mh=ee((t,e)=>{t.windows[e.payload.label].title=e.payload.title}),Ch=_e("decorations"),Vi=(t,e)=>{const r=t.windows[e.payload.label];hi.partialEqual(r,e.payload)||(t.windows[e.payload.label]={...r,...e.payload})},Rh=(t,e)=>{if(t.config={...t.config,...e.payload},t.label=e.payload.label,t.label===Se&&t.config.enablePrerender){const r=$n.create();t.windows[r]={...t.config.defaultWindowProps,...Xc}}},el=rl.createSlice({name:$i,initialState:Qc,reducers:{internalSetInitial:Rh,createWindow:yh,setWindowStage:bh,closeWindow:$h,registerProcess:_h,completeProcess:Ih,setWindowError:kh,focusWindow:Sh,reloadWindow:wh,setWindowMinimized:Oh,setWindowMaximized:zh,setWindowVisible:xh,setWindowFullscreen:Nh,centerWindow:Th,setWindowPosition:Uh,setWindowSize:jh,setWindowMinSize:Eh,setWindowMaxSize:Dh,setWindowResizable:Ph,setWindowSkipTaskbar:Ah,setWindowAlwaysOnTop:Zh,setWindowTitle:Mh,setWindowDecorations:Ch,runtimeSetWindowProps:Vi,setWindowProps:Vi}}),{actions:{runtimeSetWindowProps:Lh,setWindowProps:Wh,createWindow:tl,internalSetInitial:nl,setWindowStage:Bh,closeWindow:Fh,registerProcess:Jh,completeProcess:Vh,setWindowError:Gh,focusWindow:qh,reloadWindow:Kh,setWindowMinimized:Yh,setWindowMaximized:Xh,setWindowVisible:Hh,setWindowFullscreen:Qh,centerWindow:vv,setWindowPosition:ev,setWindowSize:tv,setWindowMinSize:nv,setWindowMaxSize:rv,setWindowResizable:iv,setWindowSkipTaskbar:ov,setWindowAlwaysOnTop:av,setWindowTitle:uv,setWindowDecorations:sv}}=el,cv=el.reducer,lv=t=>t.startsWith($i),dv=[nl.type],fv=(t,e)=>!t&&!dv.includes(e);exports.Ho=He;exports.INITIAL_WINDOW_STATE=rn;exports.K=Et;exports.MAIN_WINDOW=Se;exports.N=hi;exports.S=Wg;exports.SLICE_NAME=$i;exports.ZERO_SLICE_STATE=Qc;exports._=$t;exports.assignLabel=gh;exports.closeWindow=Fh;exports.completeProcess=Vh;exports.createWindow=tl;exports.focusWindow=qh;exports.group=Gi;exports.groupEnd=cn;exports.i=j;exports.internalSetInitial=nl;exports.isDriftAction=lv;exports.log=qe;exports.reducer=cv;exports.registerProcess=Jh;exports.reloadWindow=Kh;exports.runtimeSetWindowProps=Lh;exports.setWindowAlwaysOnTop=av;exports.setWindowDecorations=sv;exports.setWindowError=Gh;exports.setWindowFullscreen=Qh;exports.setWindowMaxSize=rv;exports.setWindowMaximized=Xh;exports.setWindowMinSize=nv;exports.setWindowMinimized=Yh;exports.setWindowPosition=ev;exports.setWindowProps=Wh;exports.setWindowResizable=iv;exports.setWindowSize=tv;exports.setWindowSkipTaskbar=ov;exports.setWindowStage=Bh;exports.setWindowTitle=uv;exports.setWindowVisible=Hh;exports.shouldEmit=fv;exports.windowPropsZ=mh;