1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3266],{56312:function(t,r,n){n.d(r,{F:function(){return f}});var i=n(87536);let o=(t,r,n)=>{if(t&&"reportValidity"in t){let o=(0,i.U2)(n,r);t.setCustomValidity(o&&o.message||""),t.reportValidity()}},a=(t,r)=>{for(let n in r.fields){let i=r.fields[n];i&&i.ref&&"reportValidity"in i.ref?o(i.ref,n,t):i&&i.refs&&i.refs.forEach(r=>o(r,n,t))}},s=(t,r)=>{r.shouldUseNativeValidation&&a(t,r);let n={};for(let o in t){let a=(0,i.U2)(r.fields,o),s=Object.assign(t[o]||{},{ref:a&&a.refs?a.refs[0]:a&&a.ref});if(u(r.names||Object.keys(t),o)){let t=Object.assign({},(0,i.U2)(n,o));(0,i.t8)(t,"root",s),(0,i.t8)(n,o,t)}else(0,i.t8)(n,o,s)}return n},u=(t,r)=>{let n=l(r).replace(/[.*+?^${}()|\\]/g,"\\$&");return t.some(t=>l(t).match(`^${n}\\.\\d+`))};function l(t){return t.replace(/\[(\d+)]/g,".$1").replace(/[[\]]/g,"")}function c(){return(c=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(null,arguments)}function d(t,r){try{var n=t()}catch(t){return r(t)}return n&&n.then?n.then(void 0,r):n}function f(t,r,n){if(void 0===n&&(n={}),"_zod"in t&&"object"==typeof t._zod)return function(o,u,l){try{return Promise.resolve(d(function(){function i(t){return l.shouldUseNativeValidation&&a({},l),{errors:{},values:n.raw?Object.assign({},o):t}}return"sync"===n.mode?i(t.parse(o,r)):Promise.resolve(t.parseAsync(o,r)).then(i)},function(t){var r;if(!(null==t||null==(r=t._zod)||null==(r=r.traits)||!r.has("$ZodError")))return{values:{},errors:s(function(t,r){for(var n=Object.create(null);t.length;)!function(){var o=t[0],a=o.code,s=o.message,u=o.path.join(".");if(!n[u]){if("invalid_union"===o.code&&o.errors.length>0){var l,d,f=o.errors.reduce(function(t,r){return r.length<t.length?r:t})[0];n[u]={message:null!=(l=null==f?void 0:f.message)?l:s,type:null!=(d=null==f?void 0:f.code)?d:a}}else n[u]={message:s,type:a}}if("invalid_union"===o.code&&o.errors.forEach(function(r){return r.forEach(function(r){return t.push(c({},r,{path:[].concat(o.path,r.path)}))})}),r){var p=n[u].types,h=p&&p[o.code];n[u]=(0,i.KN)(u,r,n,a,h?[].concat(h,o.message):o.message)}t.shift()}();return n}(t.issues,!l.shouldUseNativeValidation&&"all"===l.criteriaMode),l)};throw t}))}catch(t){return Promise.reject(t)}};if("_def"in t&&"object"==typeof t._def)return function(o,u,l){try{return Promise.resolve(d(function(){return Promise.resolve(t["sync"===n.mode?"parse":"parseAsync"](o,r)).then(function(t){return l.shouldUseNativeValidation&&a({},l),{errors:{},values:n.raw?Object.assign({},o):t}})},function(t){if(Array.isArray(null==t?void 0:t.issues))return{values:{},errors:s(function(t,r){for(var n=Object.create(null);t.length;){var o=t[0],a=o.code,s=o.message,u=o.path.join(".");if(!n[u]){if("unionErrors"in o){var l,c,d=o.unionErrors.reduce(function(t,r){return r.errors.length<t.errors.length?r:t}).errors[0];n[u]={message:null!=(l=null==d?void 0:d.message)?l:s,type:null!=(c=null==d?void 0:d.code)?c:a}}else n[u]={message:s,type:a}}if("unionErrors"in o&&o.unionErrors.forEach(function(r){return r.errors.forEach(function(r){return t.push(r)})}),r){var f=n[u].types,p=f&&f[o.code];n[u]=(0,i.KN)(u,r,n,a,p?[].concat(p,o.message):o.message)}t.shift()}return n}(t.errors,!l.shouldUseNativeValidation&&"all"===l.criteriaMode),l)};throw t}))}catch(t){return Promise.reject(t)}};throw Error("Invalid input: not a Zod schema")}},67964:function(t,r,n){var i,o;let a,s;function u(t){let r=Object.values(t).filter(t=>"number"==typeof t);return Object.entries(t).filter(([t,n])=>-1===r.indexOf(+t)).map(([t,r])=>r)}function l(t,r="|"){return t.map(t=>E(t)).join(r)}function c(t,r){return"bigint"==typeof r?r.toString():r}n.d(r,{KmV:function(){return id},Rxh:function(){return n8},Ryn:function(){return is},Z_8:function(){return nF}});class d{constructor(t){this._getter=t,this._value=void 0}get value(){let t=this._getter;return void 0!==t&&(this._value=t(),this._getter=void 0),this._value}}function f(t){let r=t.startsWith("^")?1:0,n=t.endsWith("$")?t.length-1:t.length;return t.slice(r,n)}function p(t,r,n){Object.defineProperty(t,r,{value:n,writable:!0,enumerable:!0,configurable:!0})}function h(t){let r=Object.getOwnPropertyDescriptor(t,"shape");return r?.get?r.get.raw:r?.value}function m(t){return h(t._zod.def)??t._zod.def.shape}function g(t,r,n){Object.defineProperty(t,r,{get(){let t=n();return p(this,r,t),t},enumerable:!0,configurable:!0})}function v(t,r,n){r in t?p(t,r,n):t[r]=n}function y(t,r,n,i){let o=m(r);for(let a of n){let n=Object.getOwnPropertyDescriptor(o,a);n.enumerable&&(n.get?g(t,a,()=>{let t=r._zod.def.shape[a];return i?i(t,a):t}):v(t,a,i?i(n.value,a):n.value))}}function _(...t){let r={};for(let n of t)Object.assign(r,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},r)}let b="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function z(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)}let w=new d(()=>
1{if(ee.jitless||"undefined"!=typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(t){return!1}});function k(t){if(!1===z(t))return!1;let r=t.constructor;if(void 0===r||"function"!=typeof r)return!0;let n=r.prototype;return!1!==z(n)&&!1!==Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")}function $(t){return k(t)?{...t}:Array.isArray(t)?[...t]:t instanceof Map?new Map(t):t instanceof Set?new Set(t):t}let O=new Set(["string","number","symbol"]);function x(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function S(t,r,n){let i=new t._zod.constr(r??t._zod.def);return(!r||n?.parent)&&(i._zod.parent=t),i}function j(t){if(!t)return{};if("string"==typeof t)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return(delete t.message,"string"==typeof t.error)?{...t,error:()=>t.error}:t}function E(t){return"bigint"==typeof t?t.toString()+"n":"string"==typeof t?`"${t}"`:`${t}`}let P={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]},I={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Z(t,r){let n=m(t),i=[];for(let t of Reflect.ownKeys(r)){if(!Object.getOwnPropertyDescriptor(n,t)?.enumerable)throw Error(`Unrecognized key: "${String(t)}"`);r[t]&&i.push(t)}return i}function A(t,r){let n={};return y(n,t,Reflect.ownKeys(m(t))),!function(t,r){for(let n of Reflect.ownKeys(r)){let i=Object.getOwnPropertyDescriptor(r,n);i.enumerable&&(i.get?g(t,n,()=>r[n]):v(t,n,i.value))}}(n,r),n}function T(t,r,n,i="partial"){let o=r._zod.def.checks;if(o&&o.length>0)throw Error(`.${i}() cannot be used on object schemas containing refinements`);let a=n?new Set(Z(r,n)):void 0,s={};return y(s,r,Reflect.ownKeys(m(r)),t&&((r,n)=>a&&!a.has(n)?r:new t({type:"optional",innerType:r}))),S(r,_(r._zod.def,{shape:s,checks:[]}))}function N(t,r=0){if(!0===t.aborted)return!0;for(let n=r;n<t.issues.length;n++)if(t.issues[n]?.continue!==!0)return!0;return!1}function F(t,r){return r.map(r=>(r.path??(r.path=[]),r.path.unshift(t),r))}function R(t){return"string"==typeof t?t:t?.message}function D(t,r,n){var i;for(let o=r;o<t.length;o++)(i=t[o]).schema??(i.schema=n)}function C(t,r,n){let i=t.inst?._zod?.traits;i?.has("$ZodType")&&(i.has("$ZodCheck")?t.schema??(t.schema=t.inst):t.schema=t.inst);let o=t.schema!==t.inst?t.schema?._zod.def?.error:void 0,a=t.message?t.message:R(t.inst?._zod.def?.error?.(t))??R(o?.(t))??R(r?.error?.(t))??R(n.customError?.(t))??R(n.localeError?.(t))??"Invalid input",s={};for(let r of Object.keys(t))"inst"!==r&&"schema"!==r&&"continue"!==r&&"input"!==r&&"__proto__"!==r&&(s[r]=t[r]);return s.path??(s.path=[]),s.message=a,r?.reportInput&&(s.input=t.input),s}let U=/[\uD800-\uDBFF]/;function J(t){let r=t.length;if(!U.test(t))return r;let n=r;for(let i=0;i<r-1;i++)(64512&t.charCodeAt(i))==55296&&(64512&t.charCodeAt(i+1))==56320&&(n--,i++);return n}function M(t){return Array.isArray(t)?"array":"string"==typeof t?"string":"unknown"}function V(...t){let[r,n,i]=t;return"string"==typeof r?{message:r,code:"custom",input:n,inst:i}:{...r}}function L(t,r,n,i=!0){return Object.defineProperty(t,r,{configurable:!0,writable:!0,enumerable:i,value:n}),n}function K(t,r){for(let n in t){let i=t[n];Object.defineProperty(r,n,{configurable:!0,enumerable:!0,get(){return L(this,n,i(this))},set(t){L(this,n,t)}})}return r}let W=!1,B={configurable:!0,get(){W=!0}};function G(t,r,n){let i=Object.getPrototypeOf(t._zod);if(r in i&&a!==t._zod){a=void 0;return}a=t._zod,Object.defineProperty(i,r,{configurable:!0,get(){Object.defineProperty(this,r,B);let t=W;W=!1;try{let i=n(this);return W?delete this[r]:Object.defineProperty(this,r,{configurable:!0,writable:!0,value:i}),W=W||t,i}catch(n){throw delete this[r],W=W||t,n}},set(t){Object.defineProperty(this,r,{configurable:!0,writable:!0,value:t})}})}let q={value:void 0,enumerable:!1},X="captureStackTrace"in Error?Error:null;function Y(t,r,n,i){function o(t){this.def=t,this.constr=c,this.traits=new Set}o.prototype={};let a=n&&new WeakSet;function s(i,s){if(i._zod){if(i._zod.traits.has(t))return}else{q.value=new o(s);try{Object.defineProperty(i,"_zod",q)}finally{q.value=void 0}}if(i._zod.traits.add(t),r(i,s),a){let t=Object.getPrototypeOf(i),r=i._zod.constr.prototype,o=t;for(;o&&o!==r;
1)o=Object.getPrototypeOf(o);let s=o??t;a.has(s)||(a.add(s),function(t,r){for(let n in r){let i=Object.getOwnPropertyDescriptor(r,n);i.get?Object.defineProperty(t,n,{...i,enumerable:!1}):function(t,r,n){Object.defineProperty(t,r,{configurable:!0,get(){return this==null?n:L(this,r,n.bind(this))},set(t){L(this,r,t)}})}(t,n,i.value)}}(s,n))}let u=c.prototype;for(let t in u)!Object.prototype.hasOwnProperty.call(u,t)||t in i||(i[t]=u[t].bind(i))}let u=i?.Parent??Object;class l extends u{}function c(t){let r=i?.Parent?function(t){let r=X;if(r){let n=r.stackTraceLimit;if("number"==typeof n){try{r.stackTraceLimit=0}catch{return X=null,new t}try{return new t}finally{r.stackTraceLimit=n}}}return new t}(l):this;s(r,t);let n=r._zod.deferred;if(n){for(let t of n)t();r._zod.deferred=void 0}let o=globalThis.__zod_globalConfig?.postProcessor;return o&&o(r),r}return Object.defineProperty(l,"name",{value:t}),Object.defineProperty(c,"init",{value:s}),Object.defineProperty(c,Symbol.hasInstance,{value:r=>!!i?.Parent&&r instanceof i.Parent||r?._zod?.traits?.has(t)}),Object.defineProperty(c,"name",{value:t}),c}
1class H extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Q extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(i=globalThis).__zod_globalConfig??(i.__zod_globalConfig={});let ee=globalThis.__zod_globalConfig;function et(t){return t&&Object.assign(ee,t),ee}class er extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}}let en="~memo",ei=[];function eo(t){return null!==t&&"object"==typeof t}function ea(t){return t.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}let es=new WeakMap,eu=[],el={alloc(t,r,n){let i=s;if(!i)return n;s=void 0;let o={value:n,issues:null};return i.set(r.value,o),eu.push(o),n},guard(t){var r;(r=t._zod).deferred??(r.deferred=[]),t._zod.deferred.push(()=>{let r=t._zod.parse,n=(t,n)=>{if("backward"!==n.direction&&function(t,r){let n=t[en]?.backEdges;return void 0!==n&&eo(r)&&n.has(r)}(n,t.value))throw new er;return r(t,n)};t._zod.parse=n,t._zod.run===r&&(t._zod.run=n)})},attach(t){var r;let n,i,o;let a=!1;(r=t._zod).deferred??(r.deferred=[]),t._zod.deferred.push(()=>{let r=t._zod.parse,u=(l,c)=>{let d;if(void 0===n){let i=function t(r,n,i){var o;let a=es.get(r);if(void 0!==a)return a?2:0;if(n.has(r))return 2;n.add(r);let s=0,u=r=>{if(2!==s&&r?._zod){let o=t(r,n,i);o>s&&(s=o)}},l=t=>{t>s&&(s=t)},c=r._zod.def;switch(c.type){case"object":{let r=h(c);l(r?((r,o)=>{let a=0;for(let s of Reflect.ownKeys(r)){let u=Object.getOwnPropertyDescriptor(r,s);if(o&&!u.enumerable)continue;let l=u.get?1:u.value?._zod?t(u.value,n,i):0;l>a&&(a=l)}return a})(r,!0):1),u(c.catchall);break}case"array":u(c.element);break;case"tuple":for(let t of c.items)u(t);u(c.rest);break;case"record":case"map":u(c.keyType),u(c.valueType);break;case"set":u(c.valueType);break;case"union":for(let t of c.options)u(t);break;case"intersection":u(c.left),u(c.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":u(c.innerType);break;case"pipe":u(c.in),u(c.out);break;case"function":u(c.input),u(c.output);break;case"lazy":{let o=c._cachedInner??(i?r._zod.innerType:void 0);l(o?t(o,n,!1):1);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let t in c){let r=Object.getOwnPropertyDescriptor(c,t);if(!r||r.get)continue;let n=r.value;if(n&&"object"==typeof n){if(n._zod)u(n);else if(Array.isArray(n))for(let t of n)u(t)}}}return n.delete(r),1!==(o=s)&&es.set(r,2===o),o}(t,new Set,!1);if(0===i)return t._zod.parse=r,t._zod.run===u&&(t._zod.run=r),r(l,c);2===i||a?n=!0:a=!0}let f=l.value;if(!eo(f))return r(l,c);let p=c[en];if(p||(p={buckets:new WeakMap,backEdges:void 0},c[en]=p),i===c)d=o;else{var m;let r;(r=(m=p).buckets.get(t))||(r=new WeakMap,m.buckets.set(t,r)),d=r,i=c,o=d}let g=d.get(f);if(g)return l.value=g.value,g.issues?g.issues.length&&l.issues.push(...ea(g.issues)):(l.memo=!0,p.backEdges??(p.backEdges=new WeakSet),p.backEdges.add(g.value)),l;s=d;let v=eu.length,y=r(l,c);s=void 0;let _=eu.length>v?eu.pop():void 0;return y instanceof Promise?y.then(t=>(_&&(_.issues=t.issues.length?ea(t.issues):ei),t)):(_&&(_.issues=y.issues.length?ea(y.issues):ei),y)};t._zod.parse=u,t._zod.run===r&&(t._zod.run=u)})}},ec=/^[cC][0-9a-z]{6,}$/,ed=/^[0-9a-z]+$/,ef=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,ep=/^[0-9a-vA-V]{20}$/,eh=/^[A-Za-z0-9]{27}$/,em=/^[a-zA-Z0-9_-]{21}$/,eg=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,ev=/^([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})$/,ey=t=>t?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,e_=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,eb=`^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$`,ez=/^(?:(?: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])$/,ew=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,ek=/^((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])$/,e$=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,eO=/^https?$/,ex=/^\+[1-9]\d{6,14}$/,eS="(?:(?:\\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])))",ej=RegExp(`^${eS}$`);function eE(t){let r="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof t.precision?-1===t.precision?`${r}`:0===t.precision?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${t.precision}}`:t.seconds?`${r}:[0-5]\\d(?:\\.\\d+)?`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}let eP=/^[\s\S]{0,}$/,eI=/^-?\d+n?$/,eZ=/^-?\d+(?:\.\d+)?$/,eA=/^[^A-Z]*$/,eT=/^[^a-z]*$/,eN=Y("$ZodCheck",(t,r)=>{var n;t._zod??(t._zod={}),t._zod.def=r,(n=t._zod).onattach??(n.onattach=[])}),eF=t=>{let r=t.value;return null!=r&&void 0!==r.length},eR={number:"number",bigint:"bigint",object:"date"},eD=Y("$ZodCheckLessThan",(t,r)=>{eN.init(t,r);let n=eR[typeof r.value];t._zod.check=i=>{(r.inclusive?i.value<=r.value:i.value<r.value)||i.issues.push({origin:eR[typeof i.value]??n,code:"too_big",maximum:"object"==typeof r.value?r.value.getTime():r.value,input:i.value,inclusive:r.inclusive,inst:t,continue:!r.abort})}}),eC=Y("$ZodCheckGreaterThan",(t,r)=>{eN.init(t,r);let n=eR[typeof r.value];t._zod.check=i=>{(r.inclusive?i.value>=r.value:i.value>r.value)||i.issues.push({origin:eR[typeof i.value]??n,code:"too_small",minimum:"object"==typeof r.value?r.value.getTime():r.value,input:i.value,inclusive:r.inclusive,inst:t,continue:!r.abort})}}),eU=Y("$ZodCheckMultipleOf",(t,r)=>{eN.init(t,r),t._zod.check=n=>{if(typeof n.value!=typeof r.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof n.value?r.value!==BigInt(0)&&n.value%r.value===BigInt(0):0===function(t,r){let n=t/r,i=Math.round(n),o=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-i)<o?0:n-i}(n.value,r.value))||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:r.value,input:n.value,inst:t,continue:!r.abort})}}),eJ=Y("$ZodCheckNumberFormat",(t,r)=>{eN.init(t,r),r.format=r.format||"float64";let n=r.format?.includes("int"),i=n?"int":"number",[o,a]=P[r.format];t._zod.check=s=>{let u=s.value;if(n){if(!Number.isInteger(u)){s.issues.push({expected:i,format:r.format,code:"invalid_type",continue:!1,input:u,inst:t});return}if(!Number.isSafeInteger(u)){u>0?s.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:i,inclusive:!0,
1continue:!r.abort}):s.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:i,inclusive:!0,continue:!r.abort});return}}u<o&&s.issues.push({origin:"number",input:u,code:"too_small",minimum:o,inclusive:!0,inst:t,continue:!r.abort}),u>a&&s.issues.push({origin:"number",input:u,code:"too_big",maximum:a,inclusive:!0,inst:t,continue:!r.abort})}}),eM=Y("$ZodCheckMaxLength",(t,r)=>{var n;eN.init(t,r),(n=t._zod.def).when??(n.when=eF),t._zod.check=n=>{let i=n.value,o=i.length;if(("string"==typeof i&&o>r.maximum?J(i):o)<=r.maximum)return;let a=M(i);n.issues.push({origin:a,code:"too_big",maximum:r.maximum,inclusive:!0,input:i,inst:t,continue:!r.abort})}}),eV=Y("$ZodCheckMinLength",(t,r)=>{var n;eN.init(t,r),(n=t._zod.def).when??(n.when=eF),t._zod.check=n=>{let i=n.value,o=i.length;if(("string"==typeof i&&o>=r.minimum&&o<2*r.minimum?J(i):o)>=r.minimum)return;let a=M(i);n.issues.push({origin:a,code:"too_small",minimum:r.minimum,inclusive:!0,input:i,inst:t,continue:!r.abort})}}),eL=Y("$ZodCheckLengthEquals",(t,r)=>{var n;eN.init(t,r),(n=t._zod.def).when??(n.when=eF),t._zod.check=n=>{let i=n.value,o=i.length,a="string"==typeof i&&o>=r.length&&o<=2*r.length?J(i):o;if(a===r.length)return;let s=M(i),u=a>r.length;n.issues.push({origin:s,...u?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:n.value,inst:t,continue:!r.abort})}}),eK=Y("$ZodCheckStringFormat",(t,r)=>{var n,i;eN.init(t,r),r.pattern?(n=t._zod).check??(n.check=n=>{r.pattern.lastIndex=0,r.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:r.format,input:n.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:t,continue:!r.abort})}):(i=t._zod).check??(i.check=()=>{})}),eW=Y("$ZodCheckRegex",(t,r)=>{eK.init(t,r),t._zod.check=n=>{r.pattern.lastIndex=0,r.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:r.pattern.toString(),inst:t,continue:!r.abort})}}),eB=Y("$ZodCheckLowerCase",(t,r)=>{r.pattern??(r.pattern=eA),eK.init(t,r)}),eG=Y("$ZodCheckUpperCase",(t,r)=>{r.pattern??(r.pattern=eT),eK.init(t,r)}),eq=Y("$ZodCheckIncludes",(t,r)=>{eN.init(t,r);let n=x(r.includes),i=new RegExp("number"==typeof r.position?`^.{${r.position},}${n}`:n);r.pattern=i,t._zod.check=n=>{n.value.includes(r.includes,r.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:n.value,inst:t,continue:!r.abort})}}),eX=Y("$ZodCheckStartsWith",(t,r)=>{eN.init(t,r);let n=RegExp(`^${x(r.prefix)}.*`);r.pattern??(r.pattern=n),t._zod.check=n=>{n.value.startsWith(r.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:n.value,inst:t,continue:!r.abort})}}),eY=Y("$ZodCheckEndsWith",(t,r)=>{eN.init(t,r);let n=RegExp(`.*${x(r.suffix)}$`);r.pattern??(r.pattern=n),t._zod.check=n=>{n.value.endsWith(r.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:n.value,inst:t,continue:!r.abort})}});function eH(t,r,n){t.issues.length&&r.issues.push(...F(n,t.issues))}let eQ=Y("$ZodCheckOverwrite",(t,r)=>{eN.init(t,r),t._zod.check=t=>{t.value=r.tx(t.value)}});class e0{constructor(t=[],r={}){this.content=[],this.indent=0,this.args=t,this.closed=r}indented(t){this.indent+=1;try{t(this)}finally{this.indent-=1}}write(t){if("function"==typeof t){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let r=t.split("\n").filter(t=>t),n=Math.min(...r.map(t=>t.length-t.trimStart().length));for(let t of r.map(t=>t.slice(n)).map(t=>" ".repeat(2*this.indent)+t))this.content.push(t)}compile(){let t=Function,r=this?.content??[""];return new t(...Object.keys(this.closed),`return function (${this.args.join(", ")}) { 2${r.join("\n")} 3};`)(...Object.values(this.closed))}}let e1={major:4,minor:6,patch:5},e4=Y("$ZodType",(t,r)=>{var n;t??(t={}),t._zod.def=r,t._zod.bag=t._zod.bag||{},t._zod.version=e1;let i=t._zod.def.checks,o=t._zod.traits.has("$ZodCheck")?[t,...i??[]]:i?.length?[...i]:[];for(let r of o)for(let n of r._zod.onattach)n(t);if(0===o.length)(n=t._zod).deferred??(n.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let r=(r,n,i)=>{let o;if(r.memo)return r;let a=N(r);for(let s of n){if(s._zod.def.when){if(function(t,r=0){if(!0===t.aborted)return!0;for(let n=r;n<t.issues.length;n++)if(t.issues[n]?.continue===!1)return!0;return!1}(r)||!s._zod.def.when(r))continue}else if(a)continue;let n=r.issues.length,u=s._zod.check(r);if(u instanceof Promise&&i?.async===!1)throw new H;if(o||u instanceof Promise)o=(o??Promise.resolve()).then(async()=>{await u,r.issues.length===n||(D(r.issues,n,t),a||(a=N(r,n)))});else{if(r.issues.length===n)continue;D(r.issues,n,t),a||(a=N(r,n))}}return o?o.then(()=>r):r},n=(n,i,a)=>
3{if(N(n))return n.aborted=!0,n;let s=r(i,o,a);if(s instanceof Promise){if(!1===a.async)throw new H;return s.then(r=>t._zod.parse(r,a))}return t._zod.parse(s,a)};t._zod.run=(i,a)=>{if(a.skipChecks)return t._zod.parse(i,a);if("backward"===a.direction){let r=t._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return r instanceof Promise?r.then(t=>n(t,i,a)):n(r,i,a)}let s=t._zod.parse(i,a);if(s instanceof Promise){if(!1===a.async)throw new H;return s.then(t=>r(t,o,a))}return r(s,o,a)}}},{get"~standard"(){return L(this,"~standard",e6(this),!1)},set"~standard"(value){L(this,"~standard",value)}}),e9=(t,r)=>t.issues.length?{issues:t.issues.map(t=>C(t,r,et()))}:{value:t.value};async function e2(t,r){let n={async:!0};return e9(await t._zod.run({value:r,issues:[]},n),n)}function e6(t){return{validate:r=>{let n={async:!1};try{let i=t._zod.run({value:r,issues:[]},n);if(!(i instanceof Promise))return e9(i,n)}catch(t){}return e2(t,r)},vendor:"zod",version:1}}let e3=Y("$ZodString",(t,r)=>{e4.init(t,r),t._zod.pattern=r.pattern??eP,t._zod.parse=(n,i)=>{if(r.coerce)try{n.value=String(n.value)}catch(t){}return"string"==typeof n.value||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:t}),n}}),e5=Y("$ZodStringFormat",(t,r)=>{eK.init(t,r),e3.init(t,r)}),e8=Y("$ZodGUID",(t,r)=>{r.pattern??(r.pattern=ev),e5.init(t,r)}),e7=Y("$ZodUUID",(t,r)=>{if(r.version){let t={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(void 0===t)throw Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=ey(t))}else r.pattern??(r.pattern=ey());e5.init(t,r)}),te=Y("$ZodEmail",(t,r)=>{r.pattern??(r.pattern=e_),e5.init(t,r)});function tt(t){try{if("undefined"!=typeof URL&&"function"==typeof URL.canParse)return URL.canParse(t);return new URL(t),!0}catch{return!1}}let tr=/[\t\n\r]/g;function tn(t){return t.replace(tr,"")}let ti=Y("$ZodURL",(t,r)=>{e5.init(t,r),t._zod.check=n=>{try{var i,o;let a=n.value.trim(),s="normalize"in r||"hostname"in r||"protocol"in r?function(t,r){if(!r.normalize&&r.protocol?.source===eO.source&&!/^https?:\/\//i.test(t))return 1;try{if("undefined"!=typeof URL){let r=URL;if("function"==typeof r.parse)return r.parse(t)??2}return new URL(t)}catch{return 2}}(a,r):tt(a)||2;if(1===s){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:t,continue:!r.abort});return}if(2===s){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:t,continue:!r.abort});return}if(!0===s){n.value=tn(a);return}r.hostname&&((i=r.hostname).lastIndex=0,!i.test(s.hostname))&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:r.hostname.source,input:n.value,inst:t,continue:!r.abort}),r.protocol&&((o=r.protocol).lastIndex=0,!o.test(s.protocol.endsWith(":")?s.protocol.slice(0,-1):s.protocol))&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:n.value,inst:t,continue:!r.abort}),n.value=r.normalize?s.href:tn(a);return}catch(i){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:t,continue:!r.abort})}}}),to=Y("$ZodEmoji",(t,r)=>{r.pattern??(r.pattern=RegExp(eb,"u")),e5.init(t,r)}),ta=Y("$ZodNanoID",(t,r)=>{var n;if(void 0!==r.length&&(!Number.isInteger(r.length)||r.length<1))throw Error(`Invalid nanoid length: ${r.length}`);r.pattern??(r.pattern=void 0===r.length?em:(n=r.length,RegExp(`^[a-zA-Z0-9_-]{${n}}$`))),e5.init(t,r)}),ts=Y("$ZodCUID",(t,r)=>{r.pattern??(r.pattern=ec),e5.init(t,r)}),tu=Y("$ZodCUID2",(t,r)=>{r.pattern??(r.pattern=ed),e5.init(t,r)}),tl=Y("$ZodULID",(t,r)=>{r.pattern??(r.pattern=ef),e5.init(t,r)}),tc=Y("$ZodXID",(t,r)=>{r.pattern??(r.pattern=ep),e5.init(t,r)}),td=Y("$ZodKSUID",(t,r)=>{r.pattern??(r.pattern=eh),e5.init(t,r)}),tf=Y("$ZodISODateTime",(t,r)=>{r.pattern??(r.pattern=function(t){let r=["Z"];t.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${eE({precision:t.precision,seconds:!0})}(?:${r.join("|")})`,i=t.local?`${n}|${eE({precision:t.precision})}`:n;return RegExp(`^${eS}T(?:${i})$`)}(r)),e5.init(t,r)}),tp=Y("$ZodISODate",(t,r)=>{r.pattern??(r.pattern=ej),e5.init(t,r)}),th=Y("$ZodISOTime",(t,r)=>{r.pattern??(r.pattern=RegExp(`^${eE(r)}$`)),e5.init(t,r)}),tm=Y("$ZodISODuration",(t,r)=>{r.pattern??(r.pattern=eg),e5.init(t,r)}),tg=Y("$ZodIPv4",(t,r)=>{r.pattern??(r.pattern=ez),e5.init(t,r)}),tv=/^[0-9a-fA-F:.]+$/;function ty(t){return!!tv.test(t)&&tt(`http://[${t}]`)}let t_=Y("$ZodIPv6",(t,r)=>{r.pattern??(r.pattern=ew),e5.init(t,r),t._zod.check=n=>{ty(n.value)||n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:t,continue:!r.abort})}}),tb=Y("$ZodCIDRv4",(t,r)=>{r.pattern??(r.pattern=ek),e5.init(t,r)}),tz=Y("$ZodCIDRv6",(t,r)=>{r.pattern??(r.pattern=e$),e5.init(t,r),t._zod.check=n=>{!function(t){let r=t.split("/");if(2!==r.length)return!1;let[n,i]=r;if(!i)return!1;let o=Number(i);return`${o}`===i&&!(o<0)&&!(o>128)&&ty(n)}(n.value)&&n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:t,continue:!r.abort})}});function tw(t){if(""===t)return!0;
3if(/\s/.test(t)||t.length%4!=0)return!1;try{return atob(t),!0}catch{return!1}}let tk=/^[0-9a-zA-Z+/]*={0,2}$/,t$=Y("$ZodBase64",(t,r)=>{r.pattern??(r.pattern=tk),e5.init(t,r),t._zod.check=n=>{tw(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:t,continue:!r.abort})}}),tO=/^[A-Za-z0-9_-]*$/,tx=Y("$ZodBase64URL",(t,r)=>{r.pattern??(r.pattern=tO),e5.init(t,r),t._zod.check=n=>{!function(t){if(!tO.test(t))return!1;let r=t.replace(/[-_]/g,t=>"-"===t?"+":"/");return tw(r.padEnd(4*Math.ceil(r.length/4),"="))}(n.value)&&n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:t,continue:!r.abort})}}),tS=Y("$ZodE164",(t,r)=>{r.pattern??(r.pattern=ex),e5.init(t,r)}),tj=Y("$ZodJWT",(t,r)=>{e5.init(t,r),t._zod.check=n=>{!function(t,r=null){try{let n=t.split(".");if(3!==n.length)return!1;let[i]=n;if(!i)return!1;let o=JSON.parse(atob(i));if("typ"in o&&o?.typ!=="JWT"||!o.alg||r&&(!("alg"in o)||o.alg!==r))return!1;return!0}catch{return!1}}(n.value,r.alg)&&n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:t,continue:!r.abort})}}),tE=Y("$ZodNumber",(t,r)=>{e4.init(t,r),t._zod.pattern=eZ,t._zod.parse=(n,i)=>{if(r.coerce)try{n.value=Number(n.value)}catch(t){}let o=n.value;if("number"==typeof o&&!Number.isNaN(o)&&Number.isFinite(o))return n;let a="number"==typeof o?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:String(o):void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:t,...a?{received:a}:{}}),n}}),tP=Y("$ZodNumberFormat",(t,r)=>{eJ.init(t,r),tE.init(t,r)}),tI=((t,r)=>{e4.init(t,r),t._zod.pattern=eI,t._zod.parse=(n,i)=>{if(r.coerce)try{n.value=BigInt(n.value)}catch(t){}return"bigint"==typeof n.value||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:t}),n}},Y("$ZodUnknown",(t,r)=>{e4.init(t,r),t._zod.parse=t=>t})),tZ=Y("$ZodNever",(t,r)=>{e4.init(t,r),t._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:t}),r)});function tA(t,r,n){t.issues.length&&r.issues.push(...F(n,t.issues)),r.value[n]=t.value}let tT=Y("$ZodArray",(t,r)=>{e4.init(t,r);let n=ee.memoizer;n?.attach(t),t._zod.parse=(i,o)=>{let a=i.value;if(!Array.isArray(a))return i.issues.push({expected:"array",code:"invalid_type",input:a,inst:t}),i;i.value=n?n.alloc(t,i,Array(a.length),o):Array(a.length);let s=[],u=o?.abortEarly;for(let t=0;t<a.length;t++){let n=a[t],l=r.element._zod.run({value:n,issues:[]},o);if(l instanceof Promise)s.push(l.then(r=>tA(r,i,t)));else if(tA(l,i,t),u&&0!==l.issues.length&&N(l))break}return s.length?Promise.all(s).then(()=>i):i}});function tN(t,r,n,i,o,a){let s=n in i,u="optional"===a;if(s||!u||"optional"!==o){if(t.issues.length){if(void 0!==o&&u&&!s)return;r.issues.push(...F(n,t.issues))}if(!s&&void 0===o){t.issues.length||r.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}void 0===t.value?(s||"defaulted"===o&&!u)&&(r.value[n]=void 0):r.value[n]=t.value}}let tF=[];function tR(t){var r;let n=Object.keys(t.shape),i=Object.getOwnPropertySymbols(t.shape),o=i.length?i:tF,a=o.length?[...n,...o]:n;for(let r of a)if(!t.shape?.[r]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${String(r)}": expected a Zod schema`);let s=Object.keys(r=t.shape).filter(t=>void 0!==r[t]._zod.optin&&"optional"===r[t]._zod.optout);return{...t,allKeys:a,symbolKeys:o,keySet:new Set(n),numKeys:n.length,optionalKeys:new Set(s)}}function tD(t,r,n,i,o,a,s){let u=[],l=o.keySet,c=o.catchall._zod,d=c.def.type,f=c.optin,p=c.optout,h=0;for(let o in r){if(s&&n.issues.length!==h){if(N(n,h))break;h=n.issues.length}if(l.has(o))continue;if("__proto__"===o){"never"===d&&u.push(o);continue}if("never"===d){u.push(o);continue}let a=c.run({value:r[o],issues:[]},i);a instanceof Promise?t.push(a.then(t=>tN(t,n,o,r,f,p))):tN(a,n,o,r,f,p)}return(u.length&&n.issues.push({code:"unrecognized_keys",keys:u,input:r,inst:a,continue:!0}),t.length)?Promise.all(t).then(()=>n):n}let tC=Y("$ZodObject",(t,r)=>{let n;e4.init(t,r);let i=Object.getOwnPropertyDescriptor(r,"shape"),o=i?.get?i.get.raw:r.shape??{};if(o){let t=()=>{let n={...o};return Object.defineProperty(r,"shape",{value:n}),t.raw=n,n};t.raw=o,Object.defineProperty(r,"shape",{get:t})}let a=new d(()=>tR(r));G(t,"propValues",t=>{let r=t.def.shape,n={};for(let t in r){let i=r[t]._zod;if(i.values){for(let r of(Object.prototype.hasOwnProperty.call(n,t)||p(n,t,new Set),i.values))n[t].add(r);void 0!==i.optin&&n[t].add(void 0)}}return n});let s=r.catchall,u=ee.memoizer;u?.attach(t),t._zod.parse=(r,i)=>{n??(n=a.value);let o=r.value;if(!z(o))return r.issues.push({expected:"object",code:"invalid_type",input:o,inst:t}),r;r.value=u?u.alloc(t,r,{},i):{};
3let l=[],c=n.shape,d=i?.abortEarly,f=r.issues.length;for(let t of n.allKeys){if(d&&r.issues.length!==f){if(N(r,f))break;f=r.issues.length}if("__proto__"===t)continue;let n=c[t],a=n._zod.optin,s=n._zod.optout,u=n._zod.run({value:o[t],issues:[]},i);u instanceof Promise?l.push(u.then(n=>tN(n,r,t,o,a,s))):tN(u,r,t,o,a,s)}return s?tD(l,o,r,i,a.value,t,!0===d):l.length?Promise.all(l).then(()=>r):r}}),tU=Y("$ZodObjectJIT",(t,r)=>{let n,i;tC.init(t,r);let o=t._zod.parse,a=new d(()=>tR(r)),s=ee.memoizer,u=r=>{let n=a.value,i=n.symbolKeys,o=new e0(["payload","ctx"],{shape:r,inst:t,memo:s,syms:i}),u=t=>`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`,l=(t,r)=>` 4 let ${t}_ab = false; 5 for (let i = 0; i < ${t}.issues.length; i++) { 6 const iss = ${t}.issues[i]; 7 iss.path = iss.path ? [${r}, ...iss.path] : [${r}]; 8 payload.issues.push(iss); 9 if (iss.continue !== true) ${t}_ab = true; 10 } 11 if (${t}_ab && ctx && ctx.abortEarly) { 12 payload.value = newResult; 13 return payload; 14 }`;o.write("const input = payload.value;");let c=Object.create(null),d=0;for(let t of n.allKeys)c[t]=`key_${d++}`;for(let t of(o.write(s?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};"),n.allKeys)){if("__proto__"===t)continue;let n=c[t],a="symbol"==typeof t?`syms[${i.indexOf(t)}]`:JSON.stringify(t),s=`${a} in input`,d=r[t],f=d?._zod?.optin,p=void 0!==f,h=d?._zod?.optout==="optional";if(o.write(`const ${n} = ${u(a)};`),p&&h){let t="optional"===f?`${n}_present`:`${n}.value !== undefined || ${n}_present`;o.write(` 15 const ${n}_present = ${s}; 16 if (!${n}.issues.length || ${n}_present) { 17 if (${n}.issues.length) {${l(n,a)} 18 } 19 20 if (${t}) { 21 newResult[${a}] = ${n}.value; 22 } 23 } 24 25 `)}else p?(o.write(` 26 if (${n}.issues.length) {${l(n,a)} 27 } 28 `),"defaulted"===f?o.write(`newResult[${a}] = ${n}.value;`):o.write(` 29 if (${n}.value !== undefined || ${s}) { 30 newResult[${a}] = ${n}.value; 31 } 32 `)):o.write(` 33 const ${n}_present = ${s}; 34 if (${n}.issues.length) {${l(n,a)} 35 } 36 if (!${n}_present && !${n}.issues.length) { 37 payload.issues.push({ 38 code: "invalid_type", 39 expected: "nonoptional", 40 input: undefined, 41 path: [${a}] 42 }); 43 if (ctx && ctx.abortEarly) { 44 payload.value = newResult; 45 return payload; 46 } 47 } 48 49 if (${n}_present) { 50 newResult[${a}] = ${n}.value; 51 } 52 53 `)}return o.write("payload.value = newResult;"),o.write("return payload;"),o.compile()},l=!ee.jitless,c=l&&w.value,f=r.catchall;t._zod.parse=(s,d)=>{i??(i=a.value);let p=s.value;return z(p)?l&&c&&d?.async===!1&&!0!==d.jitless?(n||(n=u(r.shape)),s=n(s,d),f)?tD([],p,s,d,i,t,d?.abortEarly===!0):s:o(s,d):(s.issues.push({expected:"object",code:"invalid_type",input:p,inst:t}),s)}});function tJ(t,r,n,i){for(let n of t)if(0===n.issues.length)return r.value=n.value,r;let o=t.filter(t=>!N(t));return 1===o.length?(r.value=o[0].value,o[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:t.map(t=>t.issues.map(t=>C(t,i,et())))}),r)}let tM=Y("$ZodUnion",(t,r)=>{e4.init(t,r),G(t,"optin",t=>t.def.options.some(t=>"defaulted"===t._zod.optin)?"defaulted":t.def.options.some(t=>void 0!==t._zod.optin)?"optional":void 0),G(t,"optout",t=>t.def.options.some(t=>"optional"===t._zod.optout)?"optional":void 0),G(t,"values",t=>{if(t.def.options.every(t=>t._zod.values))return new Set(t.def.options.flatMap(t=>Array.from(t._zod.values)))}),G(t,"pattern",t=>{if(t.def.options.every(t=>t._zod.pattern)){let r=t.def.options.map(t=>t._zod.pattern);return RegExp(`^(${r.map(t=>f(t.source)).join("|")})$`)}});let n=1===r.options.length?r.options[0]._zod.run:null;t._zod.parse=(i,o)=>{if(n)return n(i,o);let a=!1,s=[];for(let t of r.options){let r=t._zod.run({value:i.value,issues:[]},o);if(r instanceof Promise)s.push(r),a=!0;else{if(0===r.issues.length)return r;s.push(r)}}return a?Promise.all(s).then(r=>tJ(r,i,t,o)):tJ(s,i,t,o)}}),tV=Y("$ZodIntersection",(t,r)=>{e4.init(t,r),t._zod.parse=(t,n)=>{let i=t.value,o=r.left._zod.run({value:i,issues:[]},n),a=r.right._zod.run({value:i,issues:[]},n);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([r,n])=>tL(t,r,n)):tL(t,o,a)}});function tL(t,r,n){let i;let o=new Map,a=new Map,s=(t,r)=>{let n;if("unrecognized_keys"!==t.code||t.path?.length){if("invalid_key"!==t.code||"record"!==t.origin||t.path?.length!==1)return!1;{let r=String(t.path[0]);a.has(r)||a.set(r,t),n=[r]}}else i??(i=t),n=t.keys;for(let t of n)o.has(t)||o.set(t,{}),o.get(t)[r]=!0;return!0};for(let n of r.issues)s(n,"l")||t.issues.push(n);for(let r of n.issues)s(r,"r")||t.issues.push(r);let u=[...o].filter(([,t])=>t.l&&t.r).map(([t])=>t);if(u.length){let r=i?u.filter(t=>i.keys.includes(t)):[];for(let n of(r.length&&t.issues.push({...i,keys:r}),u))!r.includes(n)&&a.has(n)&&t.issues.push(a.get(n))}let l=function t(r,n){if(r===n||r instanceof Date&&n instanceof Date&&+r==+n)return{valid:!0,data:r};if(k(r)&&k(n)){let i=Object.keys(n),o=Object.keys(r).filter(t=>-1!==i.indexOf(t)),a={...r,...n};for(let i of(Object.prototype.hasOwnProperty.call(a,"__proto__")&&delete a.__proto__,o)){if("__proto__"===i)continue;let o=t(r[i],n[i]);
53if(!o.valid)return{valid:!1,mergeErrorPath:[i,...o.mergeErrorPath]};a[i]=o.data}return{valid:!0,data:a}}if(Array.isArray(r)&&Array.isArray(n)){if(r.length!==n.length)return{valid:!1,mergeErrorPath:[]};let i=[];for(let o=0;o<r.length;o++){let a=t(r[o],n[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};i.push(a.data)}return{valid:!0,data:i}}return{valid:!1,mergeErrorPath:[]}}(r.value,n.value);if(!l.valid){if(N(t))return t;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(l.mergeErrorPath)}`)}return t.value=l.data,t}function tK(t,r){for(let n=t.length-1;n>=0;n--)if(!("optin"===r?void 0!==t[n]._zod.optin:"optional"===t[n]._zod.optout))return n+1;return 0}function tW(t,r,n){t.issues.length&&r.issues.push(...F(n,t.issues)),r.value[n]=t.value}function tB(t,r,n,i,o){for(let a=0;a<n.length;a++){let s=t[a],u=a<i.length;if(!u&&a>=o&&"optional"===n[a]._zod.optin){r.value.length=a;break}if(s.issues.length){if(!u&&a>=o){r.value.length=a;break}r.issues.push(...F(a,s.issues))}r.value[a]=s.value}for(let t=r.value.length-1;t>=i.length;t--)if("optional"===n[t]._zod.optout&&void 0===r.value[t])r.value.length=t;else break;return r}let tG=Y("$ZodEnum",(t,r)=>{e4.init(t,r);let n=u(r.entries),i=new Set(n);t._zod.values=i,G(t,"pattern",t=>{let r=u(t.def.entries).filter(t=>O.has(typeof t));return new RegExp(r.length?`^(${r.map(t=>x(t.toString())).join("|")})$`:"^[^\\s\\S]$")}),t._zod.parse=(r,o)=>{let a=r.value;return i.has(a)||r.issues.push({code:"invalid_value",values:n,input:a,inst:t}),r}}),tq=Y("$ZodTransform",(t,r)=>{e4.init(t,r),t._zod.optin="optional",ee.memoizer?.guard(t),t._zod.parse=(n,i)=>{if("backward"===i.direction)throw new Q(t.constructor.name);let o=r.transform(n.value,n);if(i.async)return(o instanceof Promise?o:Promise.resolve(o)).then(t=>(n.value=t,n));if(o instanceof Promise)throw new H;return n.value=o,n}});function tX(t,r){return t.value=r.issues.length?void 0:r.value,t}let tY=Y("$ZodOptional",(t,r)=>{e4.init(t,r),G(t,"optin",t=>"defaulted"===t.def.innerType._zod.optin?"defaulted":"optional"),t._zod.optout="optional",G(t,"values",t=>{let r=t.def.innerType._zod.values;return r?new Set([...r,void 0]):void 0}),G(t,"pattern",t=>{let r=t.def.innerType._zod.pattern;return r?RegExp(`^(${f(r.source)})?$`):void 0}),t._zod.parse=(t,n)=>{if(void 0===t.value){if("defaulted"!==r.innerType._zod.optin)return t;let i=r.innerType._zod.run({value:t.value,issues:[]},n);return i instanceof Promise?i.then(r=>tX(t,r)):tX(t,i)}return r.innerType._zod.run(t,n)}}),tH=Y("$ZodExactOptional",(t,r)=>{tY.init(t,r),G(t,"values",t=>t.def.innerType._zod.values),G(t,"pattern",t=>t.def.innerType._zod.pattern),t._zod.parse=(t,n)=>r.innerType._zod.run(t,n)}),tQ=Y("$ZodNullable",(t,r)=>{e4.init(t,r),G(t,"optin",t=>t.def.innerType._zod.optin),G(t,"optout",t=>t.def.innerType._zod.optout),G(t,"pattern",t=>{let r=t.def.innerType._zod.pattern;return r?RegExp(`^(${f(r.source)}|null)$`):void 0}),G(t,"values",t=>t.def.innerType._zod.values?new Set([...t.def.innerType._zod.values,null]):void 0),t._zod.parse=(t,n)=>null===t.value?t:r.innerType._zod.run(t,n)}),t0=Y("$ZodDefault",(t,r)=>{e4.init(t,r),t._zod.optin="defaulted",G(t,"values",t=>t.def.innerType._zod.values),t._zod.parse=(t,n)=>{if("backward"===n.direction)return r.innerType._zod.run(t,n);if(void 0===t.value)return t.value=r.defaultValue,t;let i=r.innerType._zod.run(t,n);return i instanceof Promise?i.then(t=>t1(t,r)):t1(i,r)}});function t1(t,r){return void 0===t.value&&(t.value=r.defaultValue),t}let t4=Y("$ZodPrefault",(t,r)=>{e4.init(t,r),t._zod.optin="defaulted",G(t,"values",t=>t.def.innerType._zod.values),t._zod.parse=(t,n)=>("backward"===n.direction||void 0===t.value&&(t.value=r.defaultValue),r.innerType._zod.run(t,n))}),t9=Y("$ZodNonOptional",(t,r)=>{e4.init(t,r),G(t,"values",t=>{let r=t.def.innerType._zod.values;return r?new Set([...r].filter(t=>void 0!==t)):void 0}),t._zod.parse=(n,i)=>{let o=r.innerType._zod.run(n,i);return o instanceof Promise?o.then(r=>t2(r,t)):t2(o,t)}});function t2(t,r){return t.issues.length||void 0!==t.value||t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:r}),t}
53function t6(t,r,n,i){return r.issues.length?t.value=n.catchValue({...r,value:t.value,error:{issues:r.issues.map(t=>C(t,i,et()))},input:t.value}):(t.value=r.value,r.memo&&(t.memo=!0)),t}let t3=Y("$ZodCatch",(t,r)=>{e4.init(t,r),G(t,"optin",t=>"defaulted"===t.def.innerType._zod.optin?"defaulted":"optional"),G(t,"optout",t=>t.def.innerType._zod.optout),G(t,"values",t=>t.def.innerType._zod.values),t._zod.parse=(t,n)=>{if("backward"===n.direction)return r.innerType._zod.run(t,n);let i=r.innerType._zod.run({value:t.value,issues:[]},n);return i instanceof Promise?i.then(i=>t6(t,i,r,n)):t6(t,i,r,n)}}),t5=Y("$ZodPipe",(t,r)=>{e4.init(t,r),G(t,"values",t=>t.def.in._zod.values),G(t,"optin",t=>t.def.in._zod.optin),G(t,"optout",t=>t.def.out._zod.optout),G(t,"propValues",t=>t.def.in._zod.propValues),t._zod.parse=(t,n)=>{if("backward"===n.direction){let i=r.out._zod.run(t,n);return i instanceof Promise?i.then(t=>t8(t,r.in,n)):t8(i,r.in,n)}let i=r.in._zod.run(t,n);return i instanceof Promise?i.then(t=>t8(t,r.out,n)):t8(i,r.out,n)}});function t8(t,r,n){return t.issues.some(t=>"unrecognized_keys"!==t.code)?(t.aborted=!0,t):r._zod.run({value:t.value,issues:t.issues},n)}let t7=Y("$ZodReadonly",(t,r)=>{e4.init(t,r),G(t,"propValues",t=>t.def.innerType._zod.propValues),G(t,"values",t=>t.def.innerType._zod.values),G(t,"optin",t=>t.def.innerType?._zod?.optin),G(t,"optout",t=>t.def.innerType?._zod?.optout),t._zod.parse=(t,n)=>{if("backward"===n.direction)return r.innerType._zod.run(t,n);let i=r.innerType._zod.run(t,n);return i instanceof Promise?i.then(re):re(i)}});function re(t){return t.memo||(t.value=Object.freeze(t.value)),t}function rt(t){let r=t._zod.def,n=t._zod.pattern?.source,i=r.innerType??t._zod.innerType;if(i){let t=i._zod.pattern?.source,r=rt(i);return n&&t&&r&&r!==t?n.replace(util.cleanRegex(t),()=>util.cleanRegex(r)):n}if(r.options){let t=r.options.map(rt);if(t.every(Boolean))return`^(${t.map(t=>util.cleanRegex(t)).join("|")})$`}return function(t){let r,n;let i=t._zod.def,o=i.pattern,a=!!i.format?.includes("int");for(let t of i.checks??[]){let i=t._zod.def;i.pattern&&(o=i.pattern),a||(a=!!i.format?.includes("int"));let s=i.minimum??i.length,u=i.maximum??i.length;void 0!==s&&(void 0===r||s>r)&&(r=s),void 0!==u&&(void 0===n||u<n)&&(n=u)}if(o)return o.source;if(void 0!==r&&void 0!==n&&r>n)return"(?!)";if(void 0!==r||void 0!==n)return regexes.string({minimum:r,maximum:n}).source;let s=t._zod.pattern;return(a&&s===regexes.number?regexes.integer:s)?.source}(t)}let rr=Y("$ZodCustom",(t,r)=>{eN.init(t,r),e4.init(t,r),t._zod.parse=(t,r)=>t,t._zod.check=n=>{let i=n.value,o=r.fn(i);if(o instanceof Promise)return o.then(r=>rn(r,n,i,t));rn(o,n,i,t)}});function rn(t,r,n,i){if(!t){let t={code:"custom",input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(t.params=i._zod.def.params),r.issues.push(V(t))}}class ri{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let n=r[0];return this._map.set(t,n),n&&"object"==typeof n&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&"object"==typeof r&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let n={...this.get(r)??{}};delete n.id;let i={...n,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}(o=globalThis).__zod_globalRegistry??(o.__zod_globalRegistry=new ri);let ro=globalThis.__zod_globalRegistry;function ra(t){return t.checks&&(t.checks=[...t.checks]),t}function rs(t,r){return new eD({check:"less_than",...j(r),value:t,inclusive:!1})}function ru(t,r){return new eD({check:"less_than",...j(r),value:t,inclusive:!0})}function rl(t,r){return new eC({check:"greater_than",...j(r),value:t,inclusive:!1})}function rc(t,r){return new eC({check:"greater_than",...j(r),value:t,inclusive:!0})}function rd(t,r){return new eU({check:"multiple_of",...j(r),value:t})}function rf(t,r){return new eM({check:"max_length",...j(r),maximum:t})}function rp(t,r){return new eV({check:"min_length",...j(r),minimum:t})}function rh(t,r){return new eL({check:"length_equals",...j(r),length:t})}function rm(t){return new eQ({check:"overwrite",tx:t})}function rg(t,...r){for(let n of r)for(let r of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,r)&&p(t,r,n[r]);return t}
53function rv(t){let r=t?.target??"draft-2020-12";return"draft-4"===r&&(r="draft-04"),"draft-7"===r&&(r="draft-07"),{processors:t.processors??{},metadataRegistry:t?.metadata??ro,target:r,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:t?.cycles??"ref",reused:t?.reused??"inline",intersections:[],deferred:[],external:t?.external??void 0}}function ry(t,r,n,i,o){let a="function"==typeof r.unrepresentable?r.unrepresentable({zodSchema:t,path:i.path,message:o}):r.unrepresentable;if("any"===a)return!1;if(void 0===a||"throw"===a)throw Error(o);return Object.assign(n,a),!0}function r_(t,r,n={path:[],schemaPath:[]}){var i;let o=t._zod.def,a=r.seen.get(t);if(a)return a.count++,n.schemaPath.includes(t)&&(a.cycle=n.path),a.schema;let s={schema:{},count:1,cycle:void 0,path:n.path};r.seen.set(t,s),r.sharedDefsExtractedFor=void 0,r.sharedEmitDoneFor=void 0;let u=t._zod.toJSONSchema?.();if(u)s.schema=u;else{let i={...n,schemaPath:[...n.schemaPath,t],path:n.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(r,s.schema,i);else{let n=s.schema,a=r.processors[o.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);a(t,r,n,i)}let a=t._zod.parent;a&&(s.ref||(s.ref=a),r_(a,r,i),r.seen.get(a).isParent=!0)}let l=r.metadataRegistry.get(t);return l&&rg(s.schema,l),"input"===r.io&&function t(r,n){let i=n??{seen:new Set};if(i.seen.has(r))return!1;i.seen.add(r);let o=r._zod.def;if("transform"===o.type)return!0;if("array"===o.type)return t(o.element,i);if("set"===o.type)return t(o.valueType,i);if("lazy"===o.type)return t(o.getter(),i);if("promise"===o.type||"optional"===o.type||"nonoptional"===o.type||"nullable"===o.type||"readonly"===o.type||"default"===o.type||"prefault"===o.type||"catch"===o.type)return t(o.innerType,i);if("intersection"===o.type)return t(o.left,i)||t(o.right,i);if("record"===o.type||"map"===o.type)return t(o.keyType,i)||t(o.valueType,i);if("pipe"===o.type)return!!r._zod.traits.has("$ZodCodec")||t(o.in,i)||t(o.out,i);if("object"===o.type){for(let r in o.shape)if(t(o.shape[r],i))return!0;return!1}if("union"===o.type){for(let r of o.options)if(t(r,i))return!0;return!1}if("tuple"===o.type){for(let r of o.items)if(t(r,i))return!0;if(o.rest&&t(o.rest,i))return!0}return!1}(t)&&(delete s.schema.examples,delete s.schema.default),"input"===r.io&&"_prefault"in s.schema&&((i=s.schema).default??(i.default=s.schema._prefault)),delete s.schema._prefault,r.seen.get(t).schema}function rb(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function rz(t,r){let n=t.seen.get(r);if(!n)throw Error("Unprocessed schema. This is a bug in Zod.");if(t.external&&t.sharedDefsExtractedFor===t.external)return;let i=new Map;for(let r of t.seen.entries()){let n=t.metadataRegistry.get(r[0])?.id;if(n){let t=i.get(n);if(t&&t!==r[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(n,r[0])}}let o=r=>{let i="draft-2020-12"===t.target?"$defs":"definitions";if(t.external){let n=t.external.registry.get(r[0])?.id,o=t.external.uri??(t=>t);if(n)return{ref:o(n)};let a=r[1].defId??r[1].schema.id??`schema${t.counter++}`;return r[1].defId=a,{defId:a,ref:`${o("__shared")}#/${i}
53/${rb(a)}`}}let o=`#/${i}/`;if(r[1]===n&&!r[1].schema.id)return{ref:"#"};let a=r[1].schema.id??`__schema${t.counter++}`;return{defId:a,ref:o+rb(a)}},a=t=>{if(t[1].schema.$ref)return;let r=t[1],{ref:n,defId:i}=o(t);r.def={...r.schema},i&&(r.defId=i);let a=r.schema;for(let t in a)delete a[t];a.$ref=n};if("throw"===t.cycles)for(let r of t.seen.entries()){let t=r[1];if(t.cycle)throw Error(`Cycle detected: #/${t.cycle?.join("/")}/<root> 54 55Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of t.seen.entries()){let i=n[1];if(r===n[0]){a(n);continue}if(t.external){let i=t.external.registry.get(n[0])?.id;if(r!==n[0]&&i){a(n);continue}}if(t.metadataRegistry.get(n[0])?.id||i.cycle){a(n);continue}i.count>1&&"ref"===t.reused&&a(n)}t.external&&(t.sharedDefsExtractedFor=t.external)}let rw=new Set(["type","properties","required","additionalProperties"]),rk=["oneOf","anyOf"];function r$(t){let r=t.additionalProperties;return void 0===r||!1===r||"object"!=typeof r||null===r?null:Object.keys(r).length?r:null}function rO(t){let r=[];for(let n of t){if("object"!=typeof n||"object"!==n.type)return null;for(let t in n)if(!rw.has(t))return null;r.push(n)}let n={},i=new Set;for(let t of r){for(let i in t.properties){if(Object.prototype.hasOwnProperty.call(n,i))continue;let t=[];for(let n of r){let r=n.properties?.[i]??r$(n);null==r||t.some(t=>JSON.stringify(t)===JSON.stringify(r))||t.push(r)}p(n,i,1===t.length?t[0]:rO(t)??{allOf:t})}for(let r of t.required??[])i.add(r)}let o={type:"object",properties:n};if(i.size&&(o.required=[...i]),r.every(t=>!1===t.additionalProperties))o.additionalProperties=!1;else{let t=[];for(let n of r){let r=r$(n);r&&!t.some(t=>JSON.stringify(t)===JSON.stringify(r))&&t.push(r)}1===t.length?o.additionalProperties=t[0]:t.length>1&&(o.additionalProperties={allOf:t})}return o}function rx(t,r){let n=t.seen.get(r);if(!n)throw Error("Unprocessed schema. This is a bug in Zod.");let i=r=>{let n=t.seen.get(r);if(null===n.ref)return;let o=n.def??n.schema,a={...o},s=n.ref;if(n.ref=null,s){i(s);let n=t.seen.get(s),u=n.schema;if(u.$ref&&("draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target)?(o.allOf=o.allOf??[],o.allOf.push(u)):rg(o,u),rg(o,a),r._zod.parent===s)for(let t in o)"$ref"===t||"allOf"===t||t in a||delete o[t];if(u.$ref&&n.def)for(let t in o)"$ref"!==t&&"allOf"!==t&&t in n.def&&JSON.stringify(o[t])===JSON.stringify(n.def[t])&&delete o[t]}let u=r._zod.parent;if(u&&u!==s){i(u);let r=t.seen.get(u);if(r?.schema.$ref&&(o.$ref=r.schema.$ref,r.def))for(let t in o)"$ref"!==t&&"allOf"!==t&&t in r.def&&JSON.stringify(o[t])===JSON.stringify(r.def[t])&&delete o[t]}t.override({zodSchema:r,jsonSchema:o,path:n.path??[]})};if(!t.external||t.sharedEmitDoneFor!==t.external){for(let r of[...t.seen.entries()].reverse())i(r[0]);if("openapi-3.0"!==t.target)for(let r of t.seen.entries())!function t(r){let n=r.anyOf;if(!Array.isArray(n)||0===n.length||void 0!==r.type)return;let i=[];for(let r of n){if(!r||"object"!=typeof r)return;t(r);let n=Object.keys(r);if(1!==n.length||"type"!==n[0])return;let o=r.type;for(let t of Array.isArray(o)?o:[o]){if("string"!=typeof t)return;i.includes(t)||i.push(t)}}delete r.anyOf,r.type=1===i.length?i[0]:i}(r[1].def??r[1].schema);for(let r of t.deferred)r();if(t.intersections.length){let r=new Map;for(let n of t.seen.values())for(let t of[n.schema,n.def]){let n=t?.allOf;if(!Array.isArray(n))continue;let i=r.get(n);i?i.push(t):r.set(n,[t])}for(let n of t.intersections)for(let t of r.get(n)??[])!function(t){let r=t.allOf;if(!Array.isArray(r)||r.length<2)return;for(let r of rw)if(r in t)return;let n=r.filter(t=>rk.some(r=>Array.isArray(t[r]))),i=null;if(n.length){let t=n[0],o=rk.find(r=>Array.isArray(t[r]));if(1!==Object.keys(t).length)return;let a=r.filter(r=>r!==t),s=t[o].map(t=>rO([...a,t]));if(s.some(t=>!t))return;i={[o]:s}}else i=rO(r);i&&(delete t.allOf,rg(t,i))}(t)}}let o={};if("draft-2020-12"===t.target?o.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===t.target?o.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===t.target?o.$sc
55hema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){let n=t.external.registry.get(r)?.id;if(!n)throw Error("Schema is missing an `id` property");o.$id=t.external.uri(n)}rg(o,n.defId?n.schema:n.def??n.schema);let a=t.metadataRegistry.get(r)?.id;void 0!==a&&o.id===a&&delete o.id;let s=t.external?.defs??{};if(!t.external||t.sharedEmitDoneFor!==t.external)for(let r of t.seen.entries()){let t=r[1];t.def&&t.defId&&(t.def.id===t.defId&&delete t.def.id,p(s,t.defId,t.def))}t.external&&(t.sharedEmitDoneFor=t.external),t.external||Object.keys(s).length>0&&("draft-2020-12"===t.target?o.$defs=s:o.definitions=s);try{let n=JSON.parse(JSON.stringify(o));return Object.defineProperty(n,"~standard",{value:{...r["~standard"],jsonSchema:{input:rj(r,"input",t.processors),output:rj(r,"output",t.processors)}},enumerable:!1,writable:!1}),n}catch(t){throw Error("Error converting schema to JSON.")}}let rS=(t,r={})=>n=>{let i=rv({...n,processors:r});return r_(t,i),rz(i,t),rx(i,t)},rj=(t,r,n={})=>i=>{let{libraryOptions:o,target:a}=i??{},s=rv({...o??{},target:a,io:r,processors:n});return r_(t,s),rz(s,t),rx(s,t)},rE=(t,r,n)=>{(void 0===t[r]||n>t[r])&&(t[r]=n)},rP=(t,r,n)=>{(void 0===t[r]||n<t[r])&&(t[r]=n)},rI=(t,r)=>{rE(t,"minimum",r),rP(t,"maximum",r)},rZ=(t,r)=>{t.multipleOf??(t.multipleOf=[]),t.multipleOf.includes(r)||t.multipleOf.push(r)},rA=(t,r)=>{t.patterns??(t.patterns=new Set),t.patterns.add(r)},rT=(t,r)=>{t.mime=t.mime?t.mime.filter(t=>r.includes(t)):[...r]},rN=(t,r)=>{t.format=r,r.includes("int")&&(t.isInt=!0)},rF=(t,r)=>rE(t,"minimum",r.minimum),rR=(t,r)=>rP(t,"maximum",r.maximum),rD=t=>(r,n)=>{rN(r,n.format);let[i,o]=t[n.format];rE(r,"minimum",i),rP(r,"maximum",o)},rC={greater_than:(t,r)=>rE(t,r.inclusive?"minimum":"exclusiveMinimum",r.value),less_than:(t,r)=>rP(t,r.inclusive?"maximum":"exclusiveMaximum",r.value),multiple_of:(t,r)=>rZ(t,r.value),number_format:rD(P),bigint_format:rD(I),min_length:rF,max_length:rR,length_equals:(t,r)=>rI(t,r.length),min_size:rF,max_size:rR,size_equals:(t,r)=>rI(t,r.size),string_format:(t,r)=>{rN(t,r.format),r.pattern&&rA(t,r.pattern),("base64"===r.format||"base64url"===r.format)&&(t.contentEncoding=r.format),(r.local||-1===r.precision)&&(t.laxFormat=!0)},mime_type:(t,r)=>rT(t,r.mime)};function rU(t){let r={},n=t._zod.def;for(let i of t._zod.traits.has("$ZodCheck")?[t,...n.checks??[]]:n.checks??[])rC[i._zod.def.check]?.(r,i._zod.def);let i=t._zod.bag;for(let t of(void 0!==i.minimum&&rE(r,"minimum",i.minimum),void 0!==i.exclusiveMinimum&&rE(r,"exclusiveMinimum",i.exclusiveMinimum),void 0!==i.maximum&&rP(r,"maximum",i.maximum),void 0!==i.exclusiveMaximum&&rP(r,"exclusiveMaximum",i.exclusiveMaximum),void 0!==i.multipleOf&&rZ(r,i.multipleOf),void 0!==i.format&&(r.format??(r.format=i.format),i.format.includes("int")&&(r.isInt=!0)),i.mime&&rT(r,i.mime),i.patterns??[]))rA(r,t);return r}let rJ={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},rM=new Map([[tk,/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/],[tO,/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/]]),rV=t=>rM.get(t)??t,rL=(t,r,n,i)=>{n.type="string";let{minimum:o,maximum:a,format:s,patterns:u,contentEncoding:l,laxFormat:c}=rU(t);if("number"==typeof o&&(n.minLength=o),"number"==typeof a&&(n.maxLength=a),s&&(n.format=rJ[s]??s,""===n.format&&delete n.format,("time"===s||c)&&delete n.format),l&&(n.contentEncoding=l),u&&u.size>0){let t=[...u].map(rV);1===t.length?n.pattern=t[0].source:t.length>1&&(n.allOf=[...t.map(t=>({..."draft-07"===r.target||"draft-04"===r.target||"openapi-3.0"===r.target?{type:"string"}:{},pattern:t.source}))])}},rK=(t,r,n,i)=>{let{minimum:o,maximum:a,multipleOf:s,exclusiveMaximum:u,exclusiveMinimum:l,isInt:c}=rU(t);n.type=c?"integer":"number";let d="number"==typeof l&&l>=(o??Number.NEGATIVE_INFINITY),f="number"==typeof u&&u<=(a??Number.POSITIVE_INFINITY),p="draft-04"===r.target||"openapi-3.0"===r.target;if(d?p?(n.minimum=l,n.exclusiveMinimum=!0):n.exclusiveMinimum=l:"number"==typeof o&&(n.minimum=o),f?p?(n.maximum=u,n.exclusiveMaximum=!0):n.exclusiveMaximum=u:"number"==typeof a&&(n.maximum=a),s){let o=new Set;
55for(let a of s)Number.isFinite(a)&&0!==a?o.add(Math.abs(a)):ry(t,r,n,i,`A multipleOf divisor of ${a} cannot be represented in JSON Schema`);let[a,...u]=o;void 0!==a&&(n.multipleOf=a),u.length&&(n.allOf=[...n.allOf??[],...u.map(t=>({multipleOf:t}))])}},rW=(t,r,n,i)=>{n.not={}},rB=(t,r,n,i)=>{},rG=(t,r,n,i)=>{let o=u(t._zod.def.entries);if(0===o.length){n.not={};return}o.every(t=>"number"==typeof t)&&(n.type="number"),o.every(t=>"string"==typeof t)&&(n.type="string"),n.enum=o},rq=(t,r,n,i)=>{ry(t,r,n,i,"Custom types cannot be represented in JSON Schema")},rX=(t,r,n,i)=>{ry(t,r,n,i,"Transforms cannot be represented in JSON Schema")},rY=(t,r,n,i)=>{let o=t._zod.def,{minimum:a,maximum:s}=rU(t);"number"==typeof a&&(n.minItems=a),"number"==typeof s&&(n.maxItems=s),n.type="array",n.items=r_(o.element,r,{...i,path:[...i.path,"items"]})},rH=(t,r,n,i)=>{let o=t._zod.def,a=o.shape;if(Object.getOwnPropertySymbols(a).length&&ry(t,r,n,i,"Symbol keys cannot be represented in JSON Schema"))return;for(let t in n.type="object",n.properties={},a)p(n.properties,t,r_(a[t],r,{...i,path:[...i.path,"properties",t]}));let s=[];for(let t of Object.keys(a)){let n=o.shape[t];("input"===r.io?void 0===function t(r){let n=r._zod.def;return"pipe"===n.type&&n.in._zod.traits.has("$ZodTransform")?t(n.out):"catch"===n.type?t(n.innerType):r._zod.optin}(n):void 0===n._zod.optout)&&s.push(t)}s.length>0&&(n.required=s),o.catchall?._zod.def.type==="never"?n.additionalProperties=!1:o.catchall?o.catchall&&(n.additionalProperties=r_(o.catchall,r,{...i,path:[...i.path,"additionalProperties"]})):"output"===r.io&&(n.additionalProperties=!1)},rQ=(t,r,n,i)=>{let o=t._zod.def,a=!1===o.inclusive,s=o.options.map((t,n)=>r_(t,r,{...i,path:[...i.path,a?"oneOf":"anyOf",n]}));a?n.oneOf=s:n.anyOf=s},r0=(t,r,n,i)=>{let o=t._zod.def,a=r_(o.left,r,{...i,path:[...i.path,"allOf",0]}),s=r_(o.right,r,{...i,path:[...i.path,"allOf",1]}),u=[..."allOf"in a&&1===Object.keys(a).length?a.allOf:[a],..."allOf"in s&&1===Object.keys(s).length?s.allOf:[s]];n.allOf=u,r.intersections.push(u)};new WeakMap;let r1=(t,r,n,i)=>{let o=t._zod.def,a=r_(o.innerType,r,i),s=r.seen.get(t);"openapi-3.0"===r.target?(s.ref=o.innerType,n.nullable=!0):n.anyOf=[a,{type:"null"}]},r4=(t,r,n,i)=>{let o=t._zod.def;r_(o.innerType,r,i),r.seen.get(t).ref=o.innerType},r9=Symbol();function r2(t,r,n,i,o){let a=!1,s=JSON.stringify(t,(t,r)=>"bigint"!=typeof r?r:(a=!0,null));return a?(ry(r,n,i,o,"BigInt defaults cannot be represented in JSON Schema"),r9):JSON.parse(s)}let r6=(t,r,n,i)=>{let o=t._zod.def;r_(o.innerType,r,i),r.seen.get(t).ref=o.innerType;let a=r2(o.defaultValue,t,r,n,i);a!==r9&&(n.default=a)},r3=(t,r,n,i)=>{let o=t._zod.def;if(r_(o.innerType,r,i),r.seen.get(t).ref=o.innerType,"input"!==r.io)return;let a=r2(o.defaultValue,t,r,n,i);a!==r9&&(n._prefault=a)},r5=(t,r,n,i)=>{let o;let a=t._zod.def;r_(a.innerType,r,i),r.seen.get(t).ref=a.innerType;try{o=a.catchValue(void 0)}catch{ry(t,r,n,i,"Dynamic catch values are not supported in JSON Schema");return}n.default=o},r8=(t,r,n,i)=>{let o=t._zod.def,a=o.in._zod.traits.has("$ZodTransform"),s="input"===r.io?a?o.out:o.in:o.out;r_(s,r,i),r.seen.get(t).ref=s},r7=(t,r,n,i)=>{let o=t._zod.def;r_(o.innerType,r,i),r.seen.get(t).ref=o.innerType,n.readOnly=!0},ne=(t,r,n,i)=>{let o=t._zod.def;r_(o.innerType,r,i),r.seen.get(t).ref=o.innerType},nt=()=>{let t={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}},r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};function i(t,r){return"number"!==t||"number"!=typeof r||Number.isFinite(r)?n[t]??t:String(r)}return n=>
55{switch(n.code){case"invalid_type":{let t=i(n.expected),r=i(function(t){let r=typeof t;switch(r){case"number":return Number.isNaN(t)?"nan":"number";case"object":if(null===t)return"null";if(Array.isArray(t))return"array";if(t&&Object.getPrototypeOf(t)!==Object.prototype&&"constructor"in t&&t.constructor)return t.constructor.name}return r}(n.input),n.input);return`Invalid input: expected ${t}, received ${r}`}case"invalid_value":if(1===n.values.length)return`Invalid input: expected ${E(n.values[0])}`;return`Invalid option: expected one of ${l(n.values,"|")}`;case"too_big":{let r=n.exact?"exactly ":n.inclusive?"<=":"<",i=t[n.origin]??null;if(i)return`Too big: expected ${n.origin??"value"} to have ${r}${n.maximum.toString()} ${i.unit??"elements"}`;return`Too big: expected ${n.origin??"value"} to be ${r}${n.maximum.toString()}`}case"too_small":{let r=n.exact?"exactly ":n.inclusive?">=":">",i=t[n.origin]??null;if(i)return`Too small: expected ${n.origin} to have ${r}${n.minimum.toString()} ${i.unit}`;return`Too small: expected ${n.origin} to be ${r}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Invalid string: must start with "${n.prefix}"`;if("ends_with"===n.format)return`Invalid string: must end with "${n.suffix}"`;if("includes"===n.format)return`Invalid string: must include "${n.includes}"`;if("regex"===n.format)return`Invalid string: must match pattern ${n.pattern}`;return`Invalid ${r[n.format]??n.format}`;case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${l(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":if(n.options&&Array.isArray(n.options)&&n.options.length>0){let t=n.options.map(t=>`'${t}'`).join(" | ");return`Invalid discriminator value. Expected ${t}`}if(!1===n.inclusive)return"Invalid input: more than one option matched";return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}},nr={get:function(){let t=this._zod;return t.message??(t.message=JSON.stringify(t.def,c,2)),t.message},set:function(t){this._zod.message=t},enumerable:!0,configurable:!0},nn={value:void 0,enumerable:!1},ni=new WeakSet([Object.prototype,Error.prototype]),no=(t,r)=>{t.name="$ZodError",nn.value=r,Object.defineProperty(t,"issues",nn),nn.value=void 0,Object.defineProperty(t,"message",nr);let n=Object.getPrototypeOf(t);ni.has(n)||(ni.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let t=()=>this.message;return Object.defineProperty(this,"toString",{value:t,configurable:!0,writable:!0}),t},set(t){Object.defineProperty(this,"toString",{value:t,configurable:!0,writable:!0})}}))},na=Y("$ZodError",no);function ns(t,r){return{callee:r?.callee??t,Err:r?.Err}}Y("$ZodError",no,void 0,{Parent:Error});let nu=t=>{let r=(n,i,o,a)=>{let s=o?{...o,async:!1}:{async:!1},u=n._zod.run({value:i,issues:[]},s);if(u instanceof Promise)throw new H;if(u.issues.length){let n=new(a?.Err??t)(u.issues.map(t=>C(t,s,et())));throw b(n,a?.callee??r),n}return u.value};return r},nl=t=>{let r=async(n,i,o,a)=>{let s=o?{...o,async:!0}:{async:!0},u=n._zod.run({value:i,issues:[]},s);if(u instanceof Promise&&(u=await u),u.issues.length){let n=new(a?.Err??t)(u.issues.map(t=>C(t,s,et())));throw b(n,a?.callee??r),n}return u.value};return r},nc=t=>(r,n,i)=>{let o=i?{...i,async:!1}:{async:!1},a=r._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new H;return a.issues.length?nd(t,a.issues,o):{success:!0,data:a.value}};function nd(t,r,n){let i;return{success:!1,get error(){return i||(i=new t(r.map(t=>C(t,n,et()))),r=void 0,n=void 0),i},set error(e){i=e,r=void 0,n=void 0}}}let nf=t=>async(r,n,i)=>{let o=i?{...i,async:!0}:{async:!0},a=r._zod.run({value:n,issues:[]},o);return a instanceof Promise&&(a=await a),a.issues.length?nd(t,a.issues,o):{success:!0,data:a.value}},np=Symbol.for("zod.compile.invalid"),nh=Symbol.for("zod.compile.fallback"),nm=(t,r,n)=>{let i=t._zod.bag.validator;if(void 0!==i){if(i(r)!==np)return!0;if(!0===i.definite&&void 0===n)return!1}return function(t,r,n){let i;let o=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},a=t._zod.bag.fallbackRun;if(a?(o[nh]=!0,i=a({value:r,issues:[]},o)):i=t._zod.run({value:r,issues:[]},o),i instanceof Promise)throw new H;return 0===i.issues.length}(t,r,n)},ng=async(t,r,n)=>{let i=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},o=t._zod.run({value:r,issues:[]},i);return o instanceof Promise&&(o=await o),0===o.issues.length},nv=new WeakSet([Object.prototype,Error.prototype]);function ny(t,r,n){Object.defineProperty(t,r,{configurable:!0,enumerable:!1,get(){let t=n(this);return Object.defineProperty(this,r,{value:t,configurable:!0,writable:!0}),t},set(t){Object.defineProperty(this,r,{value:t,configurable:!0,writable:!0})}})}let n_=Y("ZodError",(t,r)=>{na.init(t,r),t.name="ZodError";let n=Object.getPrototypeOf(t);nv.has(n)||(nv.add(n),ny(n,"format",t=>r=>(function(t,r=t=>t.message){let n={_errors:[]},i=(t,o=[])=>{for(let a of t.issues)if("invalid_union"===a.code&&a.errors.length)a.errors.map(t=>i({issues:t},[...o,...a.path]));else if("invalid_key"===a.code)i({issues:a.issues},[...o,...a.path]);else if("invalid_element"===a.code)i({issues:a.issues},[...o,...a.path]);else{let t=[...o,...a.path];
55if(0===t.length)n._errors.push(r(a));else{let i=n,o=0;for(;o<t.length;){let n=t[o],s=o===t.length-1;if("_errors"===n){s&&i._errors.push(r(a)),o++;continue}Object.prototype.hasOwnProperty.call(i,n)||Object.defineProperty(i,n,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let u=i[n];s&&u._errors.push(r(a)),i=u,o++}}}};return i(t),n})(t,r)),ny(n,"flatten",t=>r=>(function(t,r=t=>t.message){let n={},i=[];for(let s of t.issues)if(s.path.length>0){var o,a;(o=s.path[0],a=()=>[],Object.prototype.hasOwnProperty.call(n,o)||("__proto__"===o?Object.defineProperty(n,o,{value:a(),writable:!0,enumerable:!0,configurable:!0}):n[o]=a()),n[o]).push(r(s))}else i.push(r(s));return{formErrors:i,fieldErrors:n}})(t,r)),ny(n,"addIssue",t=>r=>{t.issues.push(r),t.message=JSON.stringify(t.issues,c,2)}),ny(n,"addIssues",t=>r=>{t.issues.push(...r),t.message=JSON.stringify(t.issues,c,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return 0===this.issues.length}}))},void 0,{Parent:Error}),nb=nu(n_),nz=nl(n_),nw=nc(n_),nk=nf(n_),n$=(t=>{let r=nu(t),n=(t,i,o,a)=>r(t,i,o?{...o,direction:"backward"}:{direction:"backward"},ns(n,a));return n})(n_),nO=(t=>{let r=nu(t),n=(t,i,o,a)=>r(t,i,o,ns(n,a));return n})(n_),nx=(t=>{let r=nl(t),n=async(t,i,o,a)=>{let s=o?{...o,direction:"backward"}:{direction:"backward"};return await r(t,i,s,ns(n,a))};return n})(n_),nS=(t=>{let r=nl(t),n=async(t,i,o,a)=>await r(t,i,o,ns(n,a));return n})(n_),nj=(t,r,n)=>{let i=n?{...n,direction:"backward"}:{direction:"backward"};return nc(n_)(t,r,i)},nE=(t,r,n)=>nc(n_)(t,r,n),nP=async(t,r,n)=>{let i=n?{...n,direction:"backward"}:{direction:"backward"};return nf(n_)(t,r,i)},nI=async(t,r,n)=>nf(n_)(t,r,n);function nZ(){ee.memoizer||et({memoizer:el})}let nA=Y("ZodType",(t,r)=>(ee.localeError||et({localeError:nt()}),e4.init(t,r),t.def=r,t.type=r.type,t),{check(...t){let r=this.def;return this.clone(_(r,{checks:[...r.checks??[],...t.map(t=>"function"==typeof t?{_zod:{check:t,def:{check:"custom"},onattach:[]}}:t)]}),{parent:!0})},with(...t){return this.check(...t)},clone(t,r){return S(this,t,r)},brand(){return this},register(t,r){return t.add(this,r),this},refine(t,r){return this.check(function(t,r={}){return new ix({type:"custom",check:"custom",fn:t,...j(r)})}(t,r))},superRefine(t,r){return this.check(function(t,r){let n=function(t,r){let n=new eN({check:"custom",...j(r)});return n._zod.check=t,n}(r=>(r.addIssue=t=>{"string"==typeof t?r.issues.push(V(t,r.value,n._zod.def)):(t.fatal&&(t.continue=!1),t.code??(t.code="custom"),"input"in t||(t.input=r.value),t.inst??(t.inst=n),t.continue??(t.continue=!n._zod.def.abort),r.issues.push(V(t)))},t(r.value,r)),r);return n}(t,r))},overwrite(t){return this.check(rm(t))},optional(){return im(this)},exactOptional(){return new ig({type:"optional",innerType:this})},nullable(){return iy(this)},nullish(){return im(iy(this))},nonoptional(t){return new iz({type:"nonoptional",innerType:this,...j(t)})},array(){var t,r;return t=this,new io({type:"array",element:t,...j(void 0)})},or(t){return new iu({type:"union",options:[this,t],...j(void 0)})},and(t){return new il({type:"intersection",left:this,right:t})},transform(t){return i$(this,new ip({type:"transform",transform:t}))},default(t){return new i_({type:"default",innerType:this,get defaultValue(){return"function"==typeof t?t():$(t)}})},prefault(t){return new ib({type:"prefault",innerType:this,get defaultValue(){return"function"==typeof t?t():$(t)}})},catch(t){return new iw({type:"catch",innerType:this,catchValue:"function"==typeof t?t:function(t){let r=()=>t;return r["~constantCatch"]=!0,r}(t)})},pipe(t){return i$(this,t)},readonly(){return new iO({type:"readonly",innerType:this})},describe(t){let r=this.clone();return ro.add(r,{description:t}),r},meta(...t){if(0===t.length)return ro.get(this);let r=this.clone();return ro.add(r,t[0]),r},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(t,...r){return 0===r.length?t(this):t(this,...r)},get"~standard"(){return L(this,"~standard",{...e6(this),jsonSchema:{input:rj(this,"input"),output:rj(this,"output")}},!1)},set"~standard"(value){L(this,"~standard",value)},parse:function t(r,n){return nb(this,r,n,{callee:t})},parseAsync:async function t(r,n){return await nz(this,r,n,{callee:t})},safeParse(t,r){return nw(this,t,r)},async safeParseAsync(t,r){return nk(this,t,r)},get spa(){return this?.safeParseAsync},set spa(value){L(this,"spa",value)},validate(t,r){return nm(this,t,r)},validateAsync(t,r){return ng(this,t,r)},encode:function t(r,n){return n$(this,r,n,{callee:t})},decode:function t(r,n){return nO(this,r,n,{callee:t})},encodeAsync:async function t(r,n){return await nx(this,r,n,{callee:t})},decodeAsync:async function t(r,n){return await nS(this,r,n,{callee:t})},safeEncode(t,r){return nj(this,t,r)},safeDecode(t,r){return nE(this,t,r)},async safeEncodeAsync(t,r){return nP(this,t,r)},async safeDecodeAsync(t,r){return nI(this,t,r)},toJSONSchema(t){return rS(this,{})(t)},get description(){return ro.get(this)?.description},get _def(){return this._zod.def}}),nT=Y("_ZodString",(t,r)=>{e3.init(t,r),nA.init(t,r),t._zod.processJSONSchema=(r,n,i)=>rL(t,r,n,i)},K({format:t=>rU(t).format??null,minLength:t=>rU(t).minimum??null,maxLength:t=>rU(t).maximum??null},{regex(...t){return this.check(function(t,r){return new eW({check:"string_format",format:"regex",...j(r),pattern:t})}(...t))},includes(...t){return this.check(function(t,r){return new eq({check:"string_format",format:"includes",...j(r),includes:t})}(...t))},startsWith(...t){return this.check(function(t,r){return new eX({check:"string_format",format:"starts_with",...j(r),prefix:t})}(...t))},endsWith(...t){return this.check(function(t,r){return new eY({check:"string_format",format:"ends_with",...j(r),suffix:t})}(...t))},min(...t){return this.check(rp(...t))},max(...t){return this.check(rf(...t))},length(...t){return this.check(rh(...t))},nonempty(...t){return this.check(rp(1,...t))},lowercase(t){return this.check(new eB({check:"string_format",format:"lowercase",...j(t)}))},uppercase(t){return this.check(new eG({check:"string_format",format:"up
55percase",...j(t)}))},trim(){return this.check(rm(t=>t.trim()))},normalize(...t){return this.check(function(t){return rm(r=>r.normalize(t))}(...t))},toLowerCase(){return this.check(rm(t=>t.toLowerCase()))},toUpperCase(){return this.check(rm(t=>t.toUpperCase()))},slugify(){return this.check(rm(t=>t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")))}})),nN=Y("ZodString",(t,r)=>{e3.init(t,r),nT.init(t,r)},{email(t){return this.check(new nM({type:"string",format:"email",check:"string_format",abort:!1,...j(t)}))},url(t){return this.check(new nK({type:"string",format:"url",check:"string_format",abort:!1,...j(t)}))},jwt(t){return this.check(new n3({type:"string",format:"jwt",check:"string_format",abort:!1,...j(t)}))},emoji(t){return this.check(new nW({type:"string",format:"emoji",check:"string_format",abort:!1,...j(t)}))},guid(t){return this.check(new nV({type:"string",format:"guid",check:"string_format",abort:!1,...j(t)}))},uuid(t){return this.check(new nL({type:"string",format:"uuid",check:"string_format",abort:!1,...j(t)}))},uuidv4(t){return this.check(new nL({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...j(t)}))},uuidv6(t){return this.check(new nL({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...j(t)}))},uuidv7(t){return this.check(new nL({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...j(t)}))},nanoid(t){return this.check(new nB({type:"string",format:"nanoid",check:"string_format",abort:!1,...j(t)}))},cuid(t){return this.check(new nG({type:"string",format:"cuid",check:"string_format",abort:!1,...j(t)}))},cuid2(t){return this.check(new nq({type:"string",format:"cuid2",check:"string_format",abort:!1,...j(t)}))},ulid(t){return this.check(new nX({type:"string",format:"ulid",check:"string_format",abort:!1,...j(t)}))},base64(t){return this.check(new n9({type:"string",format:"base64",check:"string_format",abort:!1,...j(t)}))},base64url(t){return this.check(new n2({type:"string",format:"base64url",check:"string_format",abort:!1,...j(t)}))},xid(t){return this.check(new nY({type:"string",format:"xid",check:"string_format",abort:!1,...j(t)}))},ksuid(t){return this.check(new nH({type:"string",format:"ksuid",check:"string_format",abort:!1,...j(t)}))},ipv4(t){return this.check(new nQ({type:"string",format:"ipv4",check:"string_format",abort:!1,...j(t)}))},ipv6(t){return this.check(new n0({type:"string",format:"ipv6",check:"string_format",abort:!1,...j(t)}))},cidrv4(t){return this.check(new n1({type:"string",format:"cidrv4",check:"string_format",abort:!1,...j(t)}))},cidrv6(t){return this.check(new n4({type:"string",format:"cidrv6",check:"string_format",abort:!1,...j(t)}))},e164(t){return this.check(new n6({type:"string",format:"e164",check:"string_format",abort:!1,...j(t)}))},datetime(t){return this.check(new nD({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...j(t)}))},date(t){return this.check(new nC({type:"string",format:"date",check:"string_format",...j(t)}))},time(t){return this.check(new nU({type:"string",format:"time",check:"string_format",precision:null,...j(t)}))},duration(t){return this.check(new nJ({type:"string",format:"duration",check:"string_format",...j(t)}))}});function nF(t){return new nN(ra({type:"string",...j(t)}))}let nR=Y("ZodStringFormat",(t,r)=>{e5.init(t,r),nT.init(t,r)}),nD=Y("ZodISODateTime",(t,r)=>{tf.init(t,r),nR.init(t,r)}),nC=Y("ZodISODate",(t,r)=>{tp.init(t,r),nR.init(t,r)}),nU=Y("ZodISOTime",(t,r)=>{th.init(t,r),nR.init(t,r)}),nJ=Y("ZodISODuration",(t,r)=>{tm.init(t,r),nR.init(t,r)}),nM=Y("ZodEmail",(t,r)=>{te.init(t,r),nR.init(t,r)}),nV=Y("ZodGUID",(t,r)=>{e8.init(t,r),nR.init(t,r)}),nL=Y("ZodUUID",(t,r)=>{e7.init(t,r),nR.init(t,r)}),nK=Y("ZodURL",(t,r)=>{ti.init(t,r),nR.init(t,r)}),nW=Y("ZodEmoji",(t,r)=>{to.init(t,r),nR.init(t,r)}),nB=Y("ZodNanoID",(t,r)=>{ta.init(t,r),nR.init(t,r)}),nG=Y("ZodCUID",(t,r)=>{ts.init(t,r),nR.init(t,r)}),nq=Y("ZodCUID2",(t,r)=>{tu.init(t,r),nR.init(t,r)}),nX=Y("ZodULID",(t,r)=>{tl.init(t,r),nR.init(t,r)}),nY=Y("ZodXID",(t,r)=>{tc.init(t,r),nR.init(t,r)}),nH=Y("ZodKSUID",(t,r)=>{td.init(t,r),nR.init(t,r)}),nQ=Y("ZodIPv4",(t,r)=>{tg.init(t,r),nR.init(t,r)}),n0=Y("ZodIPv6",(t,r)=>{t_.init(t,r),nR.init(t,r)}),n1=Y("ZodCIDRv4",(t,r)=>{tb.init(t,r),nR.init(t,r)}),n4=Y("ZodCIDRv6",(t,r)=>{tz.init(t,r),nR.init(t,r)}),n9=Y("ZodBase64",(t,r)=>{t$.init(t,r),nR.init(t,r)}),n2=Y("ZodBase64URL",(t,r)=>{tx.init(t,r),nR.init(t,r)}),n6=Y("ZodE164",(t,r)=>{tS.init(t,r),nR.init(t,r)}),n3=Y("ZodJWT",(t,r)=>{tj.init(t,r),nR.init(t,r)}),n5=Y("ZodNumber",(t,r)=>{tE.init(t,r),nA.init(t,r),t._zod.processJSONSchema=(r,n,i)=>rK(t,r,n,i),t.isFinite=!0},K({minValue:t=>{let{minimum:r,exclusiveMinimum:n}=rU(t);return Math.max(r??Number.NEGATIVE_INFINITY,n??Number.NEGATIVE_INFINITY)},maxValue:t=>{let{maximum:r,exclusiveMaximum:n}=rU(t);return Math.min(r??Number.POSITIVE_INFINITY,n??Number.POSITIVE_INFINITY)},isInt:t=>{let{isInt:r,multipleOf:n}=rU(t);
55return!!r||!!n?.some(Number.isSafeInteger)},format:t=>rU(t).format??null},{gt(t,r){return this.check(rl(t,r))},gte(t,r){return this.check(rc(t,r))},min(t,r){return this.check(rc(t,r))},lt(t,r){return this.check(rs(t,r))},lte(t,r){return this.check(ru(t,r))},max(t,r){return this.check(ru(t,r))},int(t){return this.check(ie(t))},safe(t){return this.check(ie(t))},positive(t){return this.check(rl(0,t))},nonnegative(t){return this.check(rc(0,t))},negative(t){return this.check(rs(0,t))},nonpositive(t){return this.check(ru(0,t))},multipleOf(t,r){return this.check(rd(t,r))},step(t,r){return this.check(rd(t,r))},finite(){return this}}));function n8(t){return new n5(ra({type:"number",checks:[],...j(t)}))}let n7=Y("ZodNumberFormat",(t,r)=>{tP.init(t,r),n5.init(t,r)});function ie(t){return new n7({type:"number",check:"number_format",abort:!1,format:"safeint",...j(t)})}let it=Y("ZodUnknown",(t,r)=>{tI.init(t,r),nA.init(t,r),t._zod.processJSONSchema=(r,n,i)=>rB(t,r,n,i)});function ir(){return new it({type:"unknown"})}let ii=Y("ZodNever",(t,r)=>{tZ.init(t,r),nA.init(t,r),t._zod.processJSONSchema=(r,n,i)=>rW(t,r,n,i)}),io=Y("ZodArray",(t,r)=>{nZ(),tT.init(t,r),nA.init(t,r),t._zod.processJSONSchema=(r,n,i)=>rY(t,r,n,i),t.element=r.element},{min(t,r){return this.check(rp(t,r))},nonempty(t){return this.check(rp(1,t))},max(t,r){return this.check(rf(t,r))},length(t,r){return this.check(rh(t,r))},unwrap(){return this.element}}),ia=Y("ZodObject",(t,r)=>{nZ(),tU.init(t,r),nA.init(t,r),t._zod.processJSONSchema=(r,n,i)=>rH(t,r,n,i),function(t,r,n,i){let o=function(t,r){let n=Object.getPrototypeOf(t);return r in n?void 0:n}(t,r);o&&Object.defineProperty(o,r,{configurable:!0,get(){let t={configurable:!0,writable:!0,enumerable:i,value:void 0};return Object.defineProperty(this,r,t),t.value=n(this),Object.defineProperty(this,r,t),t.value},set(t){Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:i,value:t})}})}(t,"shape",t=>t._zod.def.shape,!1)},{keyof(){return id(Object.keys(this._zod.def.shape))},catchall(t){return this.clone(_(this._zod.def,{catchall:t}))},passthrough(){return this.clone(_(this._zod.def,{catchall:ir()}))},loose(){return this.clone(_(this._zod.def,{catchall:ir()}))},strict(){return this.clone(_(this._zod.def,{catchall:new ii({type:"never",...j(void 0)})}))},strip(){return this.clone(_(this._zod.def,{catchall:void 0}))},extend(t){return function(t,r){if(!k(r))throw Error("Invalid input to extend: expected a plain object");let n=t._zod.def.checks;if(n&&n.length>0){let n=m(t);for(let t of Reflect.ownKeys(r))if(void 0!==Object.getOwnPropertyDescriptor(n,t))throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return S(t,_(t._zod.def,{shape:A(t,r)}))}(this,t)},safeExtend(t){return function(t,r){if(!k(r))throw Error("Invalid input to safeExtend: expected a plain object");return S(t,_(t._zod.def,{shape:A(t,r)}))}(this,t)},merge(t){return function(t,r){if(!r?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(t._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n={};y(n,t,Reflect.ownKeys(m(t))),y(n,r,Reflect.ownKeys(m(r)));let i=_(t._zod.def,{shape:n,get catchall(){return r._zod.def.catchall},checks:r._zod.def.checks??[]});return S(t,i)}(this,t)},pick(t){return function(t,r){let n=t._zod.def,i=n.checks;if(i&&i.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let o={};return y(o,t,Z(t,r)),S(t,_(n,{shape:o,checks:[]}))}(this,t)},omit(t){return function(t,r){let n=t._zod.def,i=n.checks;if(i&&i.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let o=new Set(Z(t,r)),a={};return y(a,t,Reflect.ownKeys(m(t)).filter(t=>!o.has(t))),S(t,_(n,{shape:a,checks:[]}))}(this,t)},partial(...t){return T(ih,this,t[0])},exactPartial(...t){return T(ig,this,t[0],"exactPartial")},required(...t){return function(t,r,n){let i=n?new Set(Z(r,n)):void 0,o={};return y(o,r,Reflect.ownKeys(m(r)),(r,n)=>i&&!i.has(n)?r:new t({type:"nonoptional",innerType:r})),S(r,_(r._zod.def,{shape:o}))}(iz,this,t[0])}});function is(t,r){return new ia({type:"object",shape:t??{},...j(r)})}let iu=Y("ZodUnion",(t,r)=>{tM.init(t,r),nA.init(t,r),t._zod.processJSONSchema=(r,n,i)=>rQ(t,r,n,i),t.options=r.options}),il=Y("ZodIntersection",(t,r)=>{tV.init(t,r),nA.init(t,r),t._zod.processJSONSchema=(r,n,i)=>r0(t,r,n,i)}),ic=Y("ZodEnum",(t,r)=>{tG.init(t,r),nA.init(t,r),t._zod.processJSONSchema=(r,n,i)=>rG(t,r,n,i),t.enum=r.entries,t.options=[...t._zod.values];let n=new Set(Object.keys(r.entries));t.extract=(t,i)=>{let o={};for(let i of t)if(n.has(i))o[i]=r.entries[i];else throw Error(`Key ${i} not found in enum`);return new ic({...r,checks:[],...j(i),entries:o})},t.exclude=(t,i)=>{let o={...r.entries};for(let r of t)if(n.has(r))delete o[r];else throw Error(`Key ${r} not found in enum`);return new ic({...r,checks:[],...j(i),entries:o})}});function id(t,r){return new ic({type:"enum",entries:Array.isArray(t)?Object.fromEntries(t.map(t=>[t,t])):t,...j(r)})}let ip=Y("ZodTransform",(t,r)=>{nZ(),tq.init(t,r),nA.init(t,r),t._zod.processJSONSchema=(r,n,i)=>rX(t,r,n,i),t._zod.parse=(n,i)=>{if("backward"===i.direction)throw new Q(t.constructor.name);n.addIssue=i=>{"string"==typeof i?n.issues.push(V(i,n.value,r)):(i.fatal&&(i.continue=!1),i.code??(i.code="custom"),"input"in i||(i.input=n.value),i.inst??(i.inst=t),n.issues.push(V(i)))};
55let o=r.transform(n.value,n);return o instanceof Promise?o.then(t=>(n.value=t,n)):(n.value=o,n)}}),ih=Y("ZodOptional",(t,r)=>{tY.init(t,r),nA.init(t,r),t._zod.processJSONSchema=(r,n,i)=>ne(t,r,n,i),t.unwrap=()=>t._zod.def.innerType});function im(t){return new ih({type:"optional",innerType:t})}let ig=Y("ZodExactOptional",(t,r)=>{tH.init(t,r),nA.init(t,r),t._zod.processJSONSchema=(r,n,i)=>ne(t,r,n,i),t.unwrap=()=>t._zod.def.innerType}),iv=Y("ZodNullable",(t,r)=>{tQ.init(t,r),nA.init(t,r),t._zod.processJSONSchema=(r,n,i)=>r1(t,r,n,i),t.unwrap=()=>t._zod.def.innerType});function iy(t){return new iv({type:"nullable",innerType:t})}let i_=Y("ZodDefault",(t,r)=>{t0.init(t,r),nA.init(t,r),t._zod.processJSONSchema=(r,n,i)=>r6(t,r,n,i),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap}),ib=Y("ZodPrefault",(t,r)=>{t4.init(t,r),nA.init(t,r),t._zod.processJSONSchema=(r,n,i)=>r3(t,r,n,i),t.unwrap=()=>t._zod.def.innerType}),iz=Y("ZodNonOptional",(t,r)=>{t9.init(t,r),nA.init(t,r),t._zod.processJSONSchema=(r,n,i)=>r4(t,r,n,i),t.unwrap=()=>t._zod.def.innerType}),iw=Y("ZodCatch",(t,r)=>{t3.init(t,r),nA.init(t,r),t._zod.processJSONSchema=(r,n,i)=>r5(t,r,n,i),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap}),ik=Y("ZodPipe",(t,r)=>{t5.init(t,r),nA.init(t,r),t._zod.processJSONSchema=(r,n,i)=>r8(t,r,n,i),t.in=r.in,t.out=r.out});function i$(t,r){return new ik({type:"pipe",in:t,out:r})}let iO=Y("ZodReadonly",(t,r)=>{t7.init(t,r),nA.init(t,r),t._zod.processJSONSchema=(r,n,i)=>r7(t,r,n,i),t.unwrap=()=>t._zod.def.innerType}),ix=Y("ZodCustom",(t,r)=>{rr.init(t,r),nA.init(t,r),t._zod.processJSONSchema=(r,n,i)=>rq(t,r,n,i)})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.