PageSourceSearch

https://support.roku.com/_next/static/chunks/3520-7f68c3c3c97e1eb5.js

js roku.com collected 2026-09-24 07:02:06 UTC 67,371 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3520],{17085:(e,t,a)=>{var r,n;a.d(t,{CR:()=>s,ZS:()=>r,Zp:()=>i,o6:()=>n}),function(e){e.assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let a of e)t[a]=a;return t},e.getValidEnumValues=t=>{let a=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),r={};for(let e of a)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.push(a);return t},e.find=(e,t)=>{for(let a of e)if(t(a))return a},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(r||(r={})),(n||(n={})).mergeShapes=(e,t)=>({...e,...t});let i=r.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),s=e=>{switch(typeof e){case"undefined":return i.undefined;case"string":return i.string;case"number":return Number.isNaN(e)?i.nan:i.number;case"boolean":return i.boolean;case"function":return i.function;case"bigint":return i.bigint;case"symbol":return i.symbol;case"object":if(Array.isArray(e))return i.array;if(null===e)return i.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return i.promise;if("undefined"!=typeof Map&&e instanceof Map)return i.map;if("undefined"!=typeof Set&&e instanceof Set)return i.set;if("undefined"!=typeof Date&&e instanceof Date)return i.date;return i.object;default:return i.unknown}}},18964:(e,t,a)=>{a.d(t,{A:()=>i});var r=a(42994),n=a(17085);let i=(e,t)=>{let a;switch(e.code){case r.eq.invalid_type:a=e.received===n.Zp.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case r.eq.invalid_literal:a=`Invalid literal value, expected ${JSON.stringify(e.expected,n.ZS.jsonStringifyReplacer)}`;break;case r.eq.unrecognized_keys:a=`Unrecognized key(s) in object: ${n.ZS.joinValues(e.keys,", ")}`;break;case r.eq.invalid_union:a="Invalid input";break;case r.eq.invalid_union_discriminator:a=`Invalid discriminator value. Expected ${n.ZS.joinValues(e.options)}`;break;case r.eq.invalid_enum_value:a=`Invalid enum value. Expected ${n.ZS.joinValues(e.options)}, received '${e.received}'`;break;case r.eq.invalid_arguments:a="Invalid function arguments";break;case r.eq.invalid_return_type:a="Invalid function return type";break;case r.eq.invalid_date:a="Invalid date";break;case r.eq.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(a=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(a=`${a} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?a=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?a=`Invalid input: must end with "${e.validation.endsWith}"`:n.ZS.assertNever(e.validation):a="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case r.eq.too_small:a="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case r.eq.too_big:a="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case r.eq.custom:a="Invalid input";break;
1case r.eq.invalid_intersection_types:a="Intersection results could not be merged";break;case r.eq.not_multiple_of:a=`Number must be a multiple of ${e.multipleOf}`;break;case r.eq.not_finite:a="Number must be finite";break;default:a=t.defaultError,n.ZS.assertNever(e)}return{message:a}}},20236:(e,t,a)=>{a.d(t,{DM:()=>h,G4:()=>p,I3:()=>s,MY:()=>o,OK:()=>c,fn:()=>m,jm:()=>l,uY:()=>u,xP:()=>f,y7:()=>i,zn:()=>d});var r=a(45972),n=a(18964);let i=e=>{let{data:t,path:a,errorMaps:r,issueData:n}=e,i=[...a,...n.path||[]],s={...n,path:i};if(void 0!==n.message)return{...n,path:i,message:n.message};let d="";for(let e of r.filter(e=>!!e).slice().reverse())d=e(s,{data:t,defaultError:d}).message;return{...n,path:i,message:d}},s=[];function d(e,t){let a=(0,r.$W)(),s=i({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,a,a===n.A?void 0:n.A].filter(e=>!!e)});e.common.issues.push(s)}class o{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let a=[];for(let r of t){if("aborted"===r.status)return u;"dirty"===r.status&&e.dirty(),a.push(r.value)}return{status:e.value,value:a}}static async mergeObjectAsync(e,t){let a=[];for(let e of t){let t=await e.key,r=await e.value;a.push({key:t,value:r})}return o.mergeObjectSync(e,a)}static mergeObjectSync(e,t){let a={};for(let r of t){let{key:t,value:n}=r;if("aborted"===t.status||"aborted"===n.status)return u;"dirty"===t.status&&e.dirty(),"dirty"===n.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==n.value||r.alwaysSet)&&(a[t.value]=n.value)}return{status:e.value,value:a}}}let u=Object.freeze({status:"aborted"}),l=e=>({status:"dirty",value:e}),c=e=>({status:"valid",value:e}),p=e=>"aborted"===e.status,h=e=>"dirty"===e.status,m=e=>"valid"===e.status,f=e=>"undefined"!=typeof Promise&&e instanceof Promise},25691:(e,t,a)=>{let r;a.d(t,{qt:()=>em,tm:()=>e3,Sj:()=>m,Ml:()=>L,n:()=>V,Lr:()=>I,WF:()=>P,eN:()=>ef,hw:()=>ep,aP:()=>E,Xi:()=>ec,jv:()=>G,k1:()=>eo,Vb:()=>ei,kY:()=>i,CZ:()=>et,Jv:()=>J,Ih:()=>ea,DN:()=>er,Ut:()=>Q,Tq:()=>eh,WM:()=>es,iS:()=>D,PQ:()=>Y,l1:()=>el,rS:()=>R,bv:()=>U,Ii:()=>eu,_c:()=>ey,$i:()=>ed,EV:()=>ev,b8:()=>H,lK:()=>m,Kz:()=>ee,ND:()=>q,K5:()=>M,BG:()=>eo,y0:()=>X,aR:()=>m,_Z:()=>$,fZ:()=>W,_:()=>F,a0:()=>K,bz:()=>eN,YO:()=>eI,o:()=>eS,zM:()=>eC,au:()=>e5,Ie:()=>eg,p6:()=>eA,fm:()=>j,gM:()=>e$,QZ:()=>eX,k5:()=>eB,fH:()=>eV,Nl:()=>eb,E$:()=>eY,fn:()=>ek,RZ:()=>eU,eu:()=>eW,Tj:()=>eD,oi:()=>ew,fc:()=>eG,Zm:()=>eq,ch:()=>ez,me:()=>eQ,ai:()=>eZ,Ik:()=>eP,yN:()=>e2,p7:()=>e4,lq:()=>eH,Di:()=>e9,Tk:()=>e1,vk:()=>e0,iv:()=>eJ,g1:()=>eF,hZ:()=>eK,re:()=>eE,Yj:()=>ex,HR:()=>eO,Gu:()=>eX,PV:()=>eL,Vx:()=>eT,KC:()=>eM,L5:()=>ej,rI:()=>eR});var n,i,s=a(42994),d=a(45972),o=a(18964);!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:e?.message}(n||(n={}));var u=a(20236),l=a(17085);class c{constructor(e,t,a,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=a,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let p=(e,t)=>{if((0,u.fn)(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new s.G(e.common.issues);return this._error=t,this._error}}};function h(e){if(!e)return{};let{errorMap:t,invalid_type_error:a,required_error:r,description:n}=e;if(t&&(a||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:n}:{errorMap:(t,n)=>{let{message:i}=e;return"invalid_enum_value"===t.code?{message:i??n.defaultError}:void 0===n.data?{message:i??r??n.defaultError}:"invalid_type"!==t.code?{message:n.defaultError}:{message:i??a??n.defaultError}},description:n}}class m{get description(){return this._def.description}_getType(e){return(0,l.CR)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,l.CR)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new u.MY,ctx:{common:e.parent.common,data:e.data,parsedType:(0,l.CR)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if((0,u.xP)(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let a=this.safeParse(e,t);if(a.success)return a.data;throw a.error}safeParse(e,t){let a={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,l.CR)(e)},r=this._parseSync({data:e,path:a.path,parent:a});return p(a,r)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,l.CR)(e)};if(!this["~standard"].async)try{let a=this._parseSync({data:e,path:[],parent:t});return(0,u.fn)(a)?{value:a.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>(0,u.fn)(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let a=await this.safeParseAsync(e,t);if(a.success)return a.data;throw a.error}async safeParseAsync(e,t){let a={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,l.CR)(e)},r=this._parse({data:e,path:a.path,parent:a});return p(a,await ((0,u.xP)(r)?r:Promise.resolve(r)))}refine(e,t){return this._refinement((a,r)=>{let n=e(a),i=()=>r.addIssue({code:s.eq.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(a):t});return"undefined"!=typeof Promise&&n instanceof Promise?n.then(e=>!!e||(i(),!1)):!!n||(i(),!1)})}refinement(e,t){return this._refinement((a,r)=>!!e(a)||(r.addIssue("function"==typeof t?t(a,r):t),!1))}_refinement(e){return new eo({schema:this,typeName:i.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return eu.create(this,this._def)}nullable(){return el.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return V.create(this)}promise(){return ed.create(this,this._def)}or(e){return W.create([this,e],this._def)}and(e){return J.create(this,e,this._def)}transform(e){return new eo({...h(this._def),schema:this,typeName:i.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ec({...h(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:i.ZodDefault})}brand(){return new ef({typeName:i.ZodBranded,type:this,...h(this._def)})}catch(e){return new ep({...h(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:i.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return ey.create(this,e)}readonly(){return ev.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let f=/^c[^\s-]{8,}
1$/i,y=/^[0-9a-z]+$/,v=/^[0-9A-HJKMNP-TV-Z]{26}$/i,_=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,g=/^[a-z0-9_-]{21}$/i,k=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,b=/^[-+]?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)?)??$/,x=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Z=/^(?:(?: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])$/,w=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,S=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,C=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,A=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,O=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,T="((\\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])))",z=RegExp(`^${T}$`);function N(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let a=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${a}`}function j(e){let t=`${T}T${N(e)}`,a=[];return a.push(e.local?"Z?":"Z"),e.offset&&a.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${a.join("|")})`,RegExp(`^${t}$`)}class q extends m{_parse(e){var t,a,n,i;let d;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==l.Zp.string){let t=this._getOrReturnCtx(e);return(0,u.zn)(t,{code:s.eq.invalid_type,expected:l.Zp.string,received:t.parsedType}),u.uY}let o=new u.MY;for(let c of this._def.checks)if("min"===c.kind)e.data.length<c.value&&(d=this._getOrReturnCtx(e,d),(0,u.zn)(d,{code:s.eq.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),o.dirty());else if("max"===c.kind)e.data.length>c.value&&(d=this._getOrReturnCtx(e,d),(0,u.zn)(d,{code:s.eq.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),o.dirty());else if("length"===c.kind){let t=e.data.length>c.value,a=e.data.length<c.value;(t||a)&&(d=this._getOrReturnCtx(e,d),t?(0,u.zn)(d,{code:s.eq.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}):a&&(0,u.zn)(d,{code:s.eq.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}),o.dirty())}else if("email"===c.kind)x.test(e.data)||(d=this._getOrReturnCtx(e,d),(0,u.zn)(d,{validation:"email",code:s.eq.invalid_string,message:c.message}),o.dirty());else if("emoji"===c.kind)r||(r=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),r.test(e.data)||(d=this._getOrReturnCtx(e,d),(0,u.zn)(d,{validation:"emoji",code:s.eq.invali
1d_string,message:c.message}),o.dirty());else if("uuid"===c.kind)_.test(e.data)||(d=this._getOrReturnCtx(e,d),(0,u.zn)(d,{validation:"uuid",code:s.eq.invalid_string,message:c.message}),o.dirty());else if("nanoid"===c.kind)g.test(e.data)||(d=this._getOrReturnCtx(e,d),(0,u.zn)(d,{validation:"nanoid",code:s.eq.invalid_string,message:c.message}),o.dirty());else if("cuid"===c.kind)f.test(e.data)||(d=this._getOrReturnCtx(e,d),(0,u.zn)(d,{validation:"cuid",code:s.eq.invalid_string,message:c.message}),o.dirty());else if("cuid2"===c.kind)y.test(e.data)||(d=this._getOrReturnCtx(e,d),(0,u.zn)(d,{validation:"cuid2",code:s.eq.invalid_string,message:c.message}),o.dirty());else if("ulid"===c.kind)v.test(e.data)||(d=this._getOrReturnCtx(e,d),(0,u.zn)(d,{validation:"ulid",code:s.eq.invalid_string,message:c.message}),o.dirty());else if("url"===c.kind)try{new URL(e.data)}catch{d=this._getOrReturnCtx(e,d),(0,u.zn)(d,{validation:"url",code:s.eq.invalid_string,message:c.message}),o.dirty()}else"regex"===c.kind?(c.regex.lastIndex=0,c.regex.test(e.data)||(d=this._getOrReturnCtx(e,d),(0,u.zn)(d,{validation:"regex",code:s.eq.invalid_string,message:c.message}),o.dirty())):"trim"===c.kind?e.data=e.data.trim():"includes"===c.kind?e.data.includes(c.value,c.position)||(d=this._getOrReturnCtx(e,d),(0,u.zn)(d,{code:s.eq.invalid_string,validation:{includes:c.value,position:c.position},message:c.message}),o.dirty()):"toLowerCase"===c.kind?e.data=e.data.toLowerCase():"toUpperCase"===c.kind?e.data=e.data.toUpperCase():"startsWith"===c.kind?e.data.startsWith(c.value)||(d=this._getOrReturnCtx(e,d),(0,u.zn)(d,{code:s.eq.invalid_string,validation:{startsWith:c.value},message:c.message}),o.dirty()):"endsWith"===c.kind?e.data.endsWith(c.value)||(d=this._getOrReturnCtx(e,d),(0,u.zn)(d,{code:s.eq.invalid_string,validation:{endsWith:c.value},message:c.message}),o.dirty()):"datetime"===c.kind?j(c).test(e.data)||(d=this._getOrReturnCtx(e,d),(0,u.zn)(d,{code:s.eq.invalid_string,validation:"datetime",message:c.message}),o.dirty()):"date"===c.kind?z.test(e.data)||(d=this._getOrReturnCtx(e,d),(0,u.zn)(d,{code:s.eq.invalid_string,validation:"date",message:c.message}),o.dirty()):"time"===c.kind?RegExp(`^${N(c)}$`).test(e.data)||(d=this._getOrReturnCtx(e,d),(0,u.zn)(d,{code:s.eq.invalid_string,validation:"time",message:c.message}),o.dirty()):"duration"===c.kind?b.test(e.data)||(d=this._getOrReturnCtx(e,d),(0,u.zn)(d,{validation:"duration",code:s.eq.invalid_string,message:c.message}),o.dirty()):"ip"===c.kind?(t=e.data,!(("v4"===(a=c.version)||!a)&&Z.test(t)||("v6"===a||
1!a)&&S.test(t))&&1&&(d=this._getOrReturnCtx(e,d),(0,u.zn)(d,{validation:"ip",code:s.eq.invalid_string,message:c.message}),o.dirty())):"jwt"===c.kind?!function(e,t){if(!k.test(e))return!1;try{let[a]=e.split(".");if(!a)return!1;let r=a.replace(/-/g,"+").replace(/_/g,"/").padEnd(a.length+(4-a.length%4)%4,"="),n=JSON.parse(atob(r));if("object"!=typeof n||null===n||"typ"in n&&n?.typ!=="JWT"||!n.alg||t&&n.alg!==t)return!1;return!0}catch{return!1}}(e.data,c.alg)&&(d=this._getOrReturnCtx(e,d),(0,u.zn)(d,{validation:"jwt",code:s.eq.invalid_string,message:c.message}),o.dirty()):"cidr"===c.kind?(n=e.data,!(("v4"===(i=c.version)||!i)&&w.test(n)||("v6"===i||!i)&&C.test(n))&&1&&(d=this._getOrReturnCtx(e,d),(0,u.zn)(d,{validation:"cidr",code:s.eq.invalid_string,message:c.message}),o.dirty())):"base64"===c.kind?A.test(e.data)||(d=this._getOrReturnCtx(e,d),(0,u.zn)(d,{validation:"base64",code:s.eq.invalid_string,message:c.message}),o.dirty()):"base64url"===c.kind?O.test(e.data)||(d=this._getOrReturnCtx(e,d),(0,u.zn)(d,{validation:"base64url",code:s.eq.invalid_string,message:c.message}),o.dirty()):l.ZS.assertNever(c);return{status:o.value,value:e.data}}_regex(e,t,a){return this.refinement(t=>e.test(t),{validation:t,code:s.eq.invalid_string,...n.errToObj(a)})}_addCheck(e){return new q({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...n.errToObj(e)})}url(e){return this._addCheck({kind:"url",...n.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...n.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...n.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...n.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...n.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...n.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...n.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...n.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...n.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...n.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...n.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...n.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...n.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...n.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...n.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...n.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...n.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...n.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...n.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...n.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...n.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...n.errToObj(t)})}nonempty(e){return this.min(1,n.errToObj(e))}trim(){return new q({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new q({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new q({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}q.create=e=>new q({checks:[],typeName:i.ZodString,coerce:e?.coerce??!1,...h(e)});class R extends m{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==l.Zp.number){let t=this._getOrReturnCtx(e);
1return(0,u.zn)(t,{code:s.eq.invalid_type,expected:l.Zp.number,received:t.parsedType}),u.uY}let a=new u.MY;for(let r of this._def.checks)"int"===r.kind?l.ZS.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),(0,u.zn)(t,{code:s.eq.invalid_type,expected:"integer",received:"float",message:r.message}),a.dirty()):"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),(0,u.zn)(t,{code:s.eq.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),a.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),(0,u.zn)(t,{code:s.eq.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),a.dirty()):"multipleOf"===r.kind?0!==function(e,t){let a=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,n=a>r?a:r;return Number.parseInt(e.toFixed(n).replace(".",""))%Number.parseInt(t.toFixed(n).replace(".",""))/10**n}(e.data,r.value)&&(t=this._getOrReturnCtx(e,t),(0,u.zn)(t,{code:s.eq.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),(0,u.zn)(t,{code:s.eq.not_finite,message:r.message}),a.dirty()):l.ZS.assertNever(r);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,n.toString(t))}gt(e,t){return this.setLimit("min",e,!1,n.toString(t))}lte(e,t){return this.setLimit("max",e,!0,n.toString(t))}lt(e,t){return this.setLimit("max",e,!1,n.toString(t))}setLimit(e,t,a,r){return new R({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:a,message:n.toString(r)}]})}_addCheck(e){return new R({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:n.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:n.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:n.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:n.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:n.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:n.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:n.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:n.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:n.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&l.ZS.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let a of this._def.checks)if("finite"===a.kind||"int"===a.kind||"multipleOf"===a.kind)return!0;else"min"===a.kind?(null===t||a.value>t)&&(t=a.value):"max"===a.kind&&(null===e||a.value<e)&&(e=a.value);return Number.isFinite(t)&&Number.isFinite(e)}}R.create=e=>new R({checks:[],typeName:i.ZodNumber,coerce:e?.coerce||!1,...h(e)});class I extends m{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==l.Zp.bigint)return this._getInvalidInput(e);let a=new u.MY;for(let r of this._def.checks)"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),(0,u.zn)(t,{code:s.eq.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),a.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),(0,u.zn)(t,{code:s.eq.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),a.dirty()):"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),(0,u.zn)(t,{code:s.eq.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):l.ZS.assertNever(r);return{status:a.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);
1return(0,u.zn)(t,{code:s.eq.invalid_type,expected:l.Zp.bigint,received:t.parsedType}),u.uY}gte(e,t){return this.setLimit("min",e,!0,n.toString(t))}gt(e,t){return this.setLimit("min",e,!1,n.toString(t))}lte(e,t){return this.setLimit("max",e,!0,n.toString(t))}lt(e,t){return this.setLimit("max",e,!1,n.toString(t))}setLimit(e,t,a,r){return new I({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:a,message:n.toString(r)}]})}_addCheck(e){return new I({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:n.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:n.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:n.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:n.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:n.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}I.create=e=>new I({checks:[],typeName:i.ZodBigInt,coerce:e?.coerce??!1,...h(e)});class P extends m{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==l.Zp.boolean){let t=this._getOrReturnCtx(e);return(0,u.zn)(t,{code:s.eq.invalid_type,expected:l.Zp.boolean,received:t.parsedType}),u.uY}return(0,u.OK)(e.data)}}P.create=e=>new P({typeName:i.ZodBoolean,coerce:e?.coerce||!1,...h(e)});class E extends m{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==l.Zp.date){let t=this._getOrReturnCtx(e);return(0,u.zn)(t,{code:s.eq.invalid_type,expected:l.Zp.date,received:t.parsedType}),u.uY}if(Number.isNaN(e.data.getTime())){let t=this._getOrReturnCtx(e);return(0,u.zn)(t,{code:s.eq.invalid_date}),u.uY}let a=new u.MY;for(let r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(t=this._getOrReturnCtx(e,t),(0,u.zn)(t,{code:s.eq.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),a.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(t=this._getOrReturnCtx(e,t),(0,u.zn)(t,{code:s.eq.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),a.dirty()):l.ZS.assertNever(r);return{status:a.value,value:new Date(e.data.getTime())}}_addCheck(e){return new E({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:n.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:n.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}E.create=e=>new E({checks:[],coerce:e?.coerce||!1,typeName:i.ZodDate,...h(e)});class M extends m{_parse(e){if(this._getType(e)!==l.Zp.symbol){let t=this._getOrReturnCtx(e);return(0,u.zn)(t,{code:s.eq.invalid_type,expected:l.Zp.symbol,received:t.parsedType}),u.uY}return(0,u.OK)(e.data)}}M.create=e=>new M({typeName:i.ZodSymbol,...h(e)});class $ extends m{_parse(e){if(this._getType(e)!==l.Zp.undefined){let t=this._getOrReturnCtx(e);return(0,u.zn)(t,{code:s.eq.invalid_type,expected:l.Zp.undefined,received:t.parsedType}),u.uY}return(0,u.OK)(e.data)}}$.create=e=>new $({typeName:i.ZodUndefined,...h(e)});class Y extends m{_parse(e){if(this._getType(e)!==l.Zp.null){let t=this._getOrReturnCtx(e);return(0,u.zn)(t,{code:s.eq.invalid_type,expected:l.Zp.null,received:t.parsedType}),u.uY}return(0,u.OK)(e.data)}}Y.create=e=>new Y({typeName:i.ZodNull,...h(e)});class L extends m{constructor(){super(...arguments),this._any=!0}_parse(e){return(0,u.OK)(e.data)}}L.create=e=>new L({typeName:i.ZodAny,...h(e)});class F extends m{constructor(){super(...arguments),this._unknown=!0}_parse(e){return(0,u.OK)(e.data)}}F.create=e=>new F({typeName:i.ZodUnknown,...h(e)});class D extends m{_parse(e){let t=this._getOrReturnCtx(e);
1return(0,u.zn)(t,{code:s.eq.invalid_type,expected:l.Zp.never,received:t.parsedType}),u.uY}}D.create=e=>new D({typeName:i.ZodNever,...h(e)});class K extends m{_parse(e){if(this._getType(e)!==l.Zp.undefined){let t=this._getOrReturnCtx(e);return(0,u.zn)(t,{code:s.eq.invalid_type,expected:l.Zp.void,received:t.parsedType}),u.uY}return(0,u.OK)(e.data)}}K.create=e=>new K({typeName:i.ZodVoid,...h(e)});class V extends m{_parse(e){let{ctx:t,status:a}=this._processInputParams(e),r=this._def;if(t.parsedType!==l.Zp.array)return(0,u.zn)(t,{code:s.eq.invalid_type,expected:l.Zp.array,received:t.parsedType}),u.uY;if(null!==r.exactLength){let e=t.data.length>r.exactLength.value,n=t.data.length<r.exactLength.value;(e||n)&&((0,u.zn)(t,{code:e?s.eq.too_big:s.eq.too_small,minimum:n?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),a.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&((0,u.zn)(t,{code:s.eq.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),a.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&((0,u.zn)(t,{code:s.eq.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),a.dirty()),t.common.async)return Promise.all([...t.data].map((e,a)=>r.type._parseAsync(new c(t,e,t.path,a)))).then(e=>u.MY.mergeArray(a,e));let n=[...t.data].map((e,a)=>r.type._parseSync(new c(t,e,t.path,a)));return u.MY.mergeArray(a,n)}get element(){return this._def.type}min(e,t){return new V({...this._def,minLength:{value:e,message:n.toString(t)}})}max(e,t){return new V({...this._def,maxLength:{value:e,message:n.toString(t)}})}length(e,t){return new V({...this._def,exactLength:{value:e,message:n.toString(t)}})}nonempty(e){return this.min(1,e)}}V.create=(e,t)=>new V({type:e,minLength:null,maxLength:null,exactLength:null,typeName:i.ZodArray,...h(t)});class U extends m{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=l.ZS.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==l.Zp.object){let t=this._getOrReturnCtx(e);return(0,u.zn)(t,{code:s.eq.invalid_type,expected:l.Zp.object,received:t.parsedType}),u.uY}let{status:t,ctx:a}=this._processInputParams(e),{shape:r,keys:n}=this._getCached(),i=[];if(!(this._def.catchall instanceof D&&"strip"===this._def.unknownKeys))for(let e in a.data)n.includes(e)||i.push(e);let d=[];for(let e of n){let t=r[e],n=a.data[e];d.push({key:{status:"valid",value:e},value:t._parse(new c(a,n,a.path,e)),alwaysSet:e in a.data})}if(this._def.catchall instanceof D){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of i)d.push({key:{status:"valid",value:e},value:{status:"valid",value:a.data[e]}});else if("strict"===e)i.length>0&&((0,u.zn)(a,{code:s.eq.unrecognized_keys,keys:i}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of i){let r=a.data[t];d.push({key:{status:"valid",value:t},value:e._parse(new c(a,r,a.path,t)),alwaysSet:t in a.data})}}return a.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of d){let a=await t.key,r=await t.value;e.push({key:a,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>u.MY.mergeObjectSync(t,e)):u.MY.mergeObjectSync(t,d)}get shape(){return this._def.shape()}strict(e){return n.errToObj,new U({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,a)=>{let r=this._def.errorMap?.(t,a).message??a.defaultError;return"unrecognized_keys"===t.code?{message:n.errToObj(e).message??r}:{message:r}}}:{}})}strip(){return new U({...this._def,unknownKeys:"strip"})}passthrough(){return new U({...this._def,unknownKeys:"passthrough"})}extend(e){return new U({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new U({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:i.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new U({...this._def,catchall:e})}pick(e){let t={};
1for(let a of l.ZS.objectKeys(e))e[a]&&this.shape[a]&&(t[a]=this.shape[a]);return new U({...this._def,shape:()=>t})}omit(e){let t={};for(let a of l.ZS.objectKeys(this.shape))e[a]||(t[a]=this.shape[a]);return new U({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof U){let a={};for(let r in t.shape){let n=t.shape[r];a[r]=eu.create(e(n))}return new U({...t._def,shape:()=>a})}if(t instanceof V)return new V({...t._def,type:e(t.element)});if(t instanceof eu)return eu.create(e(t.unwrap()));if(t instanceof el)return el.create(e(t.unwrap()));if(t instanceof X)return X.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let a of l.ZS.objectKeys(this.shape)){let r=this.shape[a];e&&!e[a]?t[a]=r:t[a]=r.optional()}return new U({...this._def,shape:()=>t})}required(e){let t={};for(let a of l.ZS.objectKeys(this.shape))if(e&&!e[a])t[a]=this.shape[a];else{let e=this.shape[a];for(;e instanceof eu;)e=e._def.innerType;t[a]=e}return new U({...this._def,shape:()=>t})}keyof(){return en(l.ZS.objectKeys(this.shape))}}U.create=(e,t)=>new U({shape:()=>e,unknownKeys:"strip",catchall:D.create(),typeName:i.ZodObject,...h(t)}),U.strictCreate=(e,t)=>new U({shape:()=>e,unknownKeys:"strict",catchall:D.create(),typeName:i.ZodObject,...h(t)}),U.lazycreate=(e,t)=>new U({shape:e,unknownKeys:"strip",catchall:D.create(),typeName:i.ZodObject,...h(t)});class W extends m{_parse(e){let{ctx:t}=this._processInputParams(e),a=this._def.options;if(t.common.async)return Promise.all(a.map(async e=>{let a={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:a}),ctx:a}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let a of e)if("dirty"===a.result.status)return t.common.issues.push(...a.ctx.common.issues),a.result;let a=e.map(e=>new s.G(e.ctx.common.issues));return(0,u.zn)(t,{code:s.eq.invalid_union,unionErrors:a}),u.uY});{let e,r=[];for(let n of a){let a={...t,common:{...t.common,issues:[]},parent:null},i=n._parseSync({data:t.data,path:t.path,parent:a});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:a}),a.common.issues.length&&r.push(a.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let n=r.map(e=>new s.G(e));return(0,u.zn)(t,{code:s.eq.invalid_union,unionErrors:n}),u.uY}}get options(){return this._def.options}}W.create=(e,t)=>new W({options:e,typeName:i.ZodUnion,...h(t)});let B=e=>{if(e instanceof ea)return B(e.schema);if(e instanceof eo)return B(e.innerType());if(e instanceof er)return[e.value];if(e instanceof ei)return e.options;if(e instanceof es)return l.ZS.objectValues(e.enum);else if(e instanceof ec)return B(e._def.innerType);else if(e instanceof $)return[void 0];else if(e instanceof Y)return[null];else if(e instanceof eu)return[void 0,...B(e.unwrap())];else if(e instanceof el)return[null,...B(e.unwrap())];else if(e instanceof ef)return B(e.unwrap());else if(e instanceof ev)return B(e.unwrap());else if(e instanceof ep)return B(e._def.innerType);else return[]};class G extends m{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==l.Zp.object)return(0,u.zn)(t,{code:s.eq.invalid_type,expected:l.Zp.object,received:t.parsedType}),u.uY;let a=this.discriminator,r=t.data[a],n=this.optionsMap.get(r);return n?t.common.async?n._parseAsync({data:t.data,path:t.path,parent:t}):n._parseSync({data:t.data,path:t.path,parent:t}):((0,u.zn)(t,{code:s.eq.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[a]}),u.uY)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,a){let r=new Map;for(let a of t){let t=B(a.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let n of t){if(r.has(n))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(n)}`);r.set(n,a)}}return new G({typeName:i.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...h(a)})}}class J extends m{_parse(e){let{status:t,ctx:a}=this._processInputParams(e),r=(e,r)=>{if((0,u.G4)(e)||(0,u.G4)(r))return u.uY;let n=function e(t,a){let r=(0,l.CR)(t),n=(0,l.CR)(a);if(t===a)return{valid:!0,data:t};if(r===l.Zp.object&&n===l.Zp.object){let r=l.ZS.objectKeys(a),n=l.ZS.objectKeys(t).filter(e=>-1!==r.indexOf(e)),i={...t,...a};for(let r of n){let n=e(t[r],a[r]);if(!n.valid)return{valid:!1};i[r]=n.data}return{valid:!0,data:i}}if(r===l.Zp.array&&n===l.Zp.array){if(t.length!==a.length)return{valid:!1};let r=[];for(let n=0;n<t.length;n++){let i=e(t[n],a[n]);if(!i.valid)return{valid:!1};r.push(i.data)}return{valid:!0,data:r}}if(r===l.Zp.date&&n===l.Zp.date&&+t==+a)return{valid:!0,data:t};return{valid:!1}}(e.value,r.value);return n.valid?(((0,u.DM)(e)||(0,u.DM)(r))&&t.dirty(),{status:t.value,value:n.data}
1):((0,u.zn)(a,{code:s.eq.invalid_intersection_types}),u.uY)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}J.create=(e,t,a)=>new J({left:e,right:t,typeName:i.ZodIntersection,...h(a)});class X extends m{_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==l.Zp.array)return(0,u.zn)(a,{code:s.eq.invalid_type,expected:l.Zp.array,received:a.parsedType}),u.uY;if(a.data.length<this._def.items.length)return(0,u.zn)(a,{code:s.eq.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),u.uY;!this._def.rest&&a.data.length>this._def.items.length&&((0,u.zn)(a,{code:s.eq.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let r=[...a.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new c(a,e,a.path,t)):null}).filter(e=>!!e);return a.common.async?Promise.all(r).then(e=>u.MY.mergeArray(t,e)):u.MY.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new X({...this._def,rest:e})}}X.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new X({items:e,typeName:i.ZodTuple,rest:null,...h(t)})};class H extends m{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==l.Zp.object)return(0,u.zn)(a,{code:s.eq.invalid_type,expected:l.Zp.object,received:a.parsedType}),u.uY;let r=[],n=this._def.keyType,i=this._def.valueType;for(let e in a.data)r.push({key:n._parse(new c(a,e,a.path,e)),value:i._parse(new c(a,a.data[e],a.path,e)),alwaysSet:e in a.data});return a.common.async?u.MY.mergeObjectAsync(t,r):u.MY.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,a){return new H(t instanceof m?{keyType:e,valueType:t,typeName:i.ZodRecord,...h(a)}:{keyType:q.create(),valueType:e,typeName:i.ZodRecord,...h(t)})}}class Q extends m{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==l.Zp.map)return(0,u.zn)(a,{code:s.eq.invalid_type,expected:l.Zp.map,received:a.parsedType}),u.uY;let r=this._def.keyType,n=this._def.valueType,i=[...a.data.entries()].map(([e,t],i)=>({key:r._parse(new c(a,e,a.path,[i,"key"])),value:n._parse(new c(a,t,a.path,[i,"value"]))}));if(a.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let a of i){let r=await a.key,n=await a.value;if("aborted"===r.status||"aborted"===n.status)return u.uY;("dirty"===r.status||"dirty"===n.status)&&t.dirty(),e.set(r.value,n.value)}return{status:t.value,value:e}})}{let e=new Map;for(let a of i){let r=a.key,n=a.value;if("aborted"===r.status||"aborted"===n.status)return u.uY;("dirty"===r.status||"dirty"===n.status)&&t.dirty(),e.set(r.value,n.value)}return{status:t.value,value:e}}}}Q.create=(e,t,a)=>new Q({valueType:t,keyType:e,typeName:i.ZodMap,...h(a)});class ee extends m{_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==l.Zp.set)return(0,u.zn)(a,{code:s.eq.invalid_type,expected:l.Zp.set,received:a.parsedType}),u.uY;let r=this._def;null!==r.minSize&&a.data.size<r.minSize.value&&((0,u.zn)(a,{code:s.eq.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&a.data.size>r.maxSize.value&&((0,u.zn)(a,{code:s.eq.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let n=this._def.valueType;function i(e){let a=new Set;for(let r of e){if("aborted"===r.status)return u.uY;"dirty"===r.status&&t.dirty(),a.add(r.value)}return{status:t.value,value:a}}let d=[...a.data.values()].map((e,t)=>n._parse(new c(a,e,a.path,t)));return a.common.async?Promise.all(d).then(e=>i(e)):i(d)}min(e,t){return new ee({...this._def,minSize:{value:e,message:n.toString(t)}})}max(e,t){return new ee({...this._def,maxSize:{value:e,message:n.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ee.create=(e,t)=>
1new ee({valueType:e,minSize:null,maxSize:null,typeName:i.ZodSet,...h(t)});class et extends m{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==l.Zp.function)return(0,u.zn)(t,{code:s.eq.invalid_type,expected:l.Zp.function,received:t.parsedType}),u.uY;function a(e,a){return(0,u.y7)({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,d.$W)(),o.A].filter(e=>!!e),issueData:{code:s.eq.invalid_arguments,argumentsError:a}})}function r(e,a){return(0,u.y7)({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,d.$W)(),o.A].filter(e=>!!e),issueData:{code:s.eq.invalid_return_type,returnTypeError:a}})}let n={errorMap:t.common.contextualErrorMap},i=t.data;if(this._def.returns instanceof ed){let e=this;return(0,u.OK)(async function(...t){let d=new s.G([]),o=await e._def.args.parseAsync(t,n).catch(e=>{throw d.addIssue(a(t,e)),d}),u=await Reflect.apply(i,this,o);return await e._def.returns._def.type.parseAsync(u,n).catch(e=>{throw d.addIssue(r(u,e)),d})})}{let e=this;return(0,u.OK)(function(...t){let d=e._def.args.safeParse(t,n);if(!d.success)throw new s.G([a(t,d.error)]);let o=Reflect.apply(i,this,d.data),u=e._def.returns.safeParse(o,n);if(!u.success)throw new s.G([r(o,u.error)]);return u.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new et({...this._def,args:X.create(e).rest(F.create())})}returns(e){return new et({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,a){return new et({args:e||X.create([]).rest(F.create()),returns:t||F.create(),typeName:i.ZodFunction,...h(a)})}}class ea extends m{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ea.create=(e,t)=>new ea({getter:e,typeName:i.ZodLazy,...h(t)});class er extends m{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return(0,u.zn)(t,{received:t.data,code:s.eq.invalid_literal,expected:this._def.value}),u.uY}return{status:"valid",value:e.data}}get value(){return this._def.value}}function en(e,t){return new ei({values:e,typeName:i.ZodEnum,...h(t)})}er.create=(e,t)=>new er({value:e,typeName:i.ZodLiteral,...h(t)});class ei extends m{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),a=this._def.values;return(0,u.zn)(t,{expected:l.ZS.joinValues(a),received:t.parsedType,code:s.eq.invalid_type}),u.uY}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),a=this._def.values;return(0,u.zn)(t,{received:t.data,code:s.eq.invalid_enum_value,options:a}),u.uY}return(0,u.OK)(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return ei.create(e,{...this._def,...t})}exclude(e,t=this._def){return ei.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}ei.create=en;class es extends m{_parse(e){let t=l.ZS.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(e);if(a.parsedType!==l.Zp.string&&a.parsedType!==l.Zp.number){let e=l.ZS.objectValues(t);return(0,u.zn)(a,{expected:l.ZS.joinValues(e),received:a.parsedType,code:s.eq.invalid_type}),u.uY}if(this._cache||(this._cache=new Set(l.ZS.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=l.ZS.objectValues(t);return(0,u.zn)(a,{received:a.data,code:s.eq.invalid_enum_value,options:e}),u.uY}return(0,u.OK)(e.data)}get enum(){return this._def.values}}es.create=(e,t)=>new es({values:e,typeName:i.ZodNativeEnum,...h(t)});class ed extends m{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==l.Zp.promise&&!1===t.common.async)return(0,u.zn)(t,{code:s.eq.invalid_type,expected:l.Zp.promise,received:t.parsedType}),u.uY;
1let a=t.parsedType===l.Zp.promise?t.data:Promise.resolve(t.data);return(0,u.OK)(a.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}ed.create=(e,t)=>new ed({type:e,typeName:i.ZodPromise,...h(t)});class eo extends m{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===i.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:a}=this._processInputParams(e),r=this._def.effect||null,n={addIssue:e=>{(0,u.zn)(a,e),e.fatal?t.abort():t.dirty()},get path(){return a.path}};if(n.addIssue=n.addIssue.bind(n),"preprocess"===r.type){let e=r.transform(a.data,n);if(a.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return u.uY;let r=await this._def.schema._parseAsync({data:e,path:a.path,parent:a});return"aborted"===r.status?u.uY:"dirty"===r.status||"dirty"===t.value?(0,u.jm)(r.value):r});{if("aborted"===t.value)return u.uY;let r=this._def.schema._parseSync({data:e,path:a.path,parent:a});return"aborted"===r.status?u.uY:"dirty"===r.status||"dirty"===t.value?(0,u.jm)(r.value):r}}if("refinement"===r.type){let e=e=>{let t=r.refinement(e,n);if(a.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==a.common.async)return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(a=>"aborted"===a.status?u.uY:("dirty"===a.status&&t.dirty(),e(a.value).then(()=>({status:t.value,value:a.value}))));{let r=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return"aborted"===r.status?u.uY:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}}if("transform"===r.type)if(!1!==a.common.async)return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(e=>(0,u.fn)(e)?Promise.resolve(r.transform(e.value,n)).then(e=>({status:t.value,value:e})):u.uY);else{let e=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!(0,u.fn)(e))return u.uY;let i=r.transform(e.value,n);if(i instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}l.ZS.assertNever(r)}}eo.create=(e,t,a)=>new eo({schema:e,typeName:i.ZodEffects,effect:t,...h(a)}),eo.createWithPreprocess=(e,t,a)=>new eo({schema:t,effect:{type:"preprocess",transform:e},typeName:i.ZodEffects,...h(a)});class eu extends m{_parse(e){return this._getType(e)===l.Zp.undefined?(0,u.OK)(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eu.create=(e,t)=>new eu({innerType:e,typeName:i.ZodOptional,...h(t)});class el extends m{_parse(e){return this._getType(e)===l.Zp.null?(0,u.OK)(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}el.create=(e,t)=>new el({innerType:e,typeName:i.ZodNullable,...h(t)});class ec extends m{_parse(e){let{ctx:t}=this._processInputParams(e),a=t.data;return t.parsedType===l.Zp.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ec.create=(e,t)=>new ec({innerType:e,typeName:i.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...h(t)});class ep extends m{_parse(e){let{ctx:t}=this._processInputParams(e),a={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return(0,u.xP)(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new s.G(a.common.issues)},input:a.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new s.G(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}}ep.create=(e,t)=>new ep({innerType:e,typeName:i.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...h(t)});class eh extends m{_parse(e){if(this._getType(e)!==l.Zp.nan){let t=this._getOrReturnCtx(e);return(0,u.zn)(t,{code:s.eq.invalid_type,expected:l.Zp.nan,received:t.parsedType}),u.uY}
1return{status:"valid",value:e.data}}}eh.create=e=>new eh({typeName:i.ZodNaN,...h(e)});let em=Symbol("zod_brand");class ef extends m{_parse(e){let{ctx:t}=this._processInputParams(e),a=t.data;return this._def.type._parse({data:a,path:t.path,parent:t})}unwrap(){return this._def.type}}class ey extends m{_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return"aborted"===e.status?u.uY:"dirty"===e.status?(t.dirty(),(0,u.jm)(e.value)):this._def.out._parseAsync({data:e.value,path:a.path,parent:a})})();{let e=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return"aborted"===e.status?u.uY:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:a.path,parent:a})}}static create(e,t){return new ey({in:e,out:t,typeName:i.ZodPipeline})}}class ev extends m{_parse(e){let t=this._def.innerType._parse(e),a=e=>((0,u.fn)(e)&&(e.value=Object.freeze(e.value)),e);return(0,u.xP)(t)?t.then(e=>a(e)):a(t)}unwrap(){return this._def.innerType}}function e_(e,t){let a="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof a?{message:a}:a}function eg(e,t={},a){return e?L.create().superRefine((r,n)=>{let i=e(r);if(i instanceof Promise)return i.then(e=>{if(!e){let e=e_(t,r),i=e.fatal??a??!0;n.addIssue({code:"custom",...e,fatal:i})}});if(!i){let e=e_(t,r),i=e.fatal??a??!0;n.addIssue({code:"custom",...e,fatal:i})}}):L.create()}ev.create=(e,t)=>new ev({innerType:e,typeName:i.ZodReadonly,...h(t)});let ek={object:U.lazycreate};!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(i||(i={}));let eb=(e,t={message:`Input not instance of ${e.name}`})=>eg(t=>t instanceof e,t),ex=q.create,eZ=R.create,ew=eh.create,eS=I.create,eC=P.create,eA=E.create,eO=M.create,eT=$.create,ez=Y.create,eN=L.create,ej=F.create,eq=D.create,eR=K.create,eI=V.create,eP=U.create,eE=U.strictCreate,eM=W.create,e$=G.create,eY=J.create,eL=X.create,eF=H.create,eD=Q.create,eK=ee.create,eV=et.create,eU=ea.create,eW=er.create,eB=ei.create,eG=es.create,eJ=ed.create,eX=eo.create,eH=eu.create,eQ=el.create,e0=eo.createWithPreprocess,e1=ey.create,e9=()=>ex().optional(),e4=()=>eZ().optional(),e2=()=>eC().optional(),e5={string:e=>q.create({...e,coerce:!0}),number:e=>R.create({...e,coerce:!0}),boolean:e=>P.create({...e,coerce:!0}),bigint:e=>I.create({...e,coerce:!0}),date:e=>E.create({...e,coerce:!0})},e3=u.uY},35092:(e,t,a)=>{a.d(t,{A:()=>v});var r=a(7620),n=a(72902),i=a(53003),s=a(5738),d=a(88110),o=a(39497),u=a(70334),l=a(87183),c=a(59375),p=a(39501),h=a(79517);function m(e){return(0,h.Ay)("MuiPaper",e)}(0,p.A)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var f=a(54568);let y=(0,d.Ay)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.root,t[a.variant],!a.square&&t.rounded,"elevation"===a.variant&&t["elevation".concat(a.elevation)]]}})((0,u.A)(e=>{let{theme:t}=e;return{backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:e=>{let{ownerState:t}=e;return!t.square},style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:"1px solid ".concat((t.vars||t).palette.divider)}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}})),v=r.forwardRef(function(e,t){var a;let r=(0,l.b)({props:e,name:"MuiPaper"}),d=(0,o.A)(),{className:u,component:p="div",elevation:h=1,square:v=!1,variant:_="elevation",...g}=r,k={...r,component:p,elevation:h,square:v,variant:_},b=(e=>{let{square:t,elevation:a,variant:r,classes:n}=e;return(0,i.A)({root:["root",r,!t&&"rounded","elevation"===r&&"elevation".concat(a)]},m,n)})(k);return(0,f.jsx)(y,{as:p,ownerState:k,className:(0,n.default)(b.root,u),ref:t,...g,style:{..."elevation"===_&&{"--Paper-shadow":(d.vars||d).shadows[h],...d.vars&&{"--Paper-overlay":null==(a=d.vars.overlays)?void 0:a[h]},...!d.vars&&"dark"===d.palette.mode&&{"--Paper-overlay":"linear-gradient(".concat((0,s.X4)("#fff",(0,c.A)(h)),", ").concat((0,s.X4)("#fff",(0,c.A)(h)),")")}},...g.style}})})},42994:(e,t,a)=>{a.d(t,{G:()=>s,WI:()=>i,eq:()=>n});var r=a(17085);
1let n=r.ZS.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),i=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class s extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},a={_errors:[]},r=e=>{for(let n of e.issues)if("invalid_union"===n.code)n.unionErrors.map(r);else if("invalid_return_type"===n.code)r(n.returnTypeError);else if("invalid_arguments"===n.code)r(n.argumentsError);else if(0===n.path.length)a._errors.push(t(n));else{let e=a,r=0;for(;r<n.path.length;){let a=n.path[r];r===n.path.length-1?(e[a]=e[a]||{_errors:[]},e[a]._errors.push(t(n))):e[a]=e[a]||{_errors:[]},e=e[a],r++}}};return r(this),a}static assert(e){if(!(e instanceof s))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,r.ZS.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},a=[];for(let r of this.issues)if(r.path.length>0){let a=r.path[0];t[a]=t[a]||[],t[a].push(e(r))}else a.push(e(r));return{formErrors:a,fieldErrors:t}}get formErrors(){return this.flatten()}}s.create=e=>new s(e)},45972:(e,t,a)=>{a.d(t,{$W:()=>s,pJ:()=>i,su:()=>r.A});var r=a(18964);let n=r.A;function i(e){n=e}function s(){return n}},60357:(e,t,a)=>{a.d(t,{A:()=>Z});var r=a(7620),n=a(72902),i=a(5738),s=a(53003),d=a(54467),o=a(25546),u=a(88110),l=a(39497),c=a(70334),p=a(6372),h=a(87183),m=a(20373),f=a(39501),y=a(79517);function v(e){return(0,y.Ay)("MuiLink",e)}let _=(0,f.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var g=a(45453),k=a(54568);let b={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},x=(0,u.Ay)(m.default,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.root,t["underline".concat((0,o.A)(a.underline))],"button"===a.component&&t.button]}})((0,c.A)(e=>{let{theme:t}=e;return{variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:e=>{let{underline:t,ownerState:a}=e;return"always"===t&&"inherit"!==a.color},style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(t.palette).filter((0,p.A)()).map(e=>{let[a]=e;return{props:{underline:"always",color:a},style:{"--Link-underlineColor":t.vars?"rgba(".concat(t.vars.palette[a].mainChannel," / 0.4)"):(0,i.X4)(t.palette[a].main,.4)}}}),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / 0.4)"):(0,i.X4)(t.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":t.vars?"rgba(".concat(t.vars.palette.text.secondaryChannel," / 0.4)"):(0,i.X4)(t.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(t.vars||t).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(_.focusVisible)]:{outline:"auto"}}}]}})),Z=r.forwardRef(function(e,t){let a=(0,h.b)({props:e,name:"MuiLink"}),u=(0,l.A)(),{className:c,color:p="primary",component:m="a",onBlur:f,onF
1ocus:y,TypographyClasses:_,underline:Z="always",variant:w="inherit",sx:S,...C}=a,[A,O]=r.useState(!1),T={...a,color:p,component:m,focusVisible:A,underline:Z,variant:w},z=(e=>{let{classes:t,component:a,focusVisible:r,underline:n}=e,i={root:["root","underline".concat((0,o.A)(n)),"button"===a&&"button",r&&"focusVisible"]};return(0,s.A)(i,v,t)})(T);return(0,k.jsx)(x,{color:p,className:(0,n.default)(z.root,c),classes:_,component:m,onBlur:e=>{(0,d.A)(e.target)||O(!1),f&&f(e)},onFocus:e=>{(0,d.A)(e.target)&&O(!0),y&&y(e)},ref:t,ownerState:T,variant:w,...C,sx:[...void 0===b[p]?[{color:p}]:[],...Array.isArray(S)?S:[S]],style:{...C.style,..."always"===Z&&"inherit"!==p&&!b[p]&&{"--Link-underlineColor":(e=>{let{theme:t,ownerState:a}=e,r=a.color,n=(0,g.Yn)(t,"palette.".concat(r,".main"),!1)||(0,g.Yn)(t,"palette.".concat(r),!1)||a.color,s=(0,g.Yn)(t,"palette.".concat(r,".mainChannel"))||(0,g.Yn)(t,"palette.".concat(r,"Channel"));return"vars"in t&&s?"rgba(".concat(s," / 0.4)"):(0,i.X4)(n,.4)})({theme:u,ownerState:T})}}})})},77083:(e,t,a)=>{a.d(t,{A:()=>l});var r=a(7620),n=a.t(r,2),i=a(96369),s=a(93966),d=a(54989);let o={...n}.useSyncExternalStore;function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{themeId:t}=e;return function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,d.A)();n&&t&&(n=n[t]||n);let u="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:l=!1,matchMedia:c=u?window.matchMedia:null,ssrMatchMedia:p=null,noSsr:h=!1}=(0,s.A)({name:"MuiUseMediaQuery",props:a,theme:n}),m="function"==typeof e?e(n):e;return(m=m.replace(/^@media( ?)/m,"")).includes("print")&&console.warn("MUI: You have provided a `print` query to the `useMediaQuery` hook.\nUsing the print media query to modify print styles can lead to unexpected results.\nConsider using the `displayPrint` field in the `sx` prop instead.\nMore information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."),(void 0!==o?function(e,t,a,n,i){let s=r.useCallback(()=>t,[t]),d=r.useMemo(()=>{if(i&&a)return()=>a(e).matches;if(null!==n){let{matches:t}=n(e);return()=>t}return s},[s,e,n,i,a]),[u,l]=r.useMemo(()=>{if(null===a)return[s,()=>()=>{}];let t=a(e);return[()=>t.matches,e=>(t.addEventListener("change",e),()=>{t.removeEventListener("change",e)})]},[s,a,e]);return o(l,u,d)}:function(e,t,a,n,s){let[d,o]=r.useState(()=>s&&a?a(e).matches:n?n(e).matches:t);return(0,i.A)(()=>{if(!a)return;let t=a(e),r=()=>{o(t.matches)};return r(),t.addEventListener("change",r),()=>{t.removeEventListener("change",r)}},[e,a]),d})(m,l,c,p,h)}}u();let l=u({themeId:a(5046).A})}}]);

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.