MCPcopy Index your code
hub / github.com/ChinaSiro/claude-code-sourcemap / multipleOf

Method multipleOf

package/cli.js:66–66  ·  view source on GitHub ↗
(q,K)

Source from the content-addressed store, hash-verified

64* Whenever you intend to click on an element like an icon, you should consult a screenshot to determine the coordinates of the element before moving the cursor.
65* If you tried clicking on a program or link but it failed to load, even after waiting, try adjusting your click location so that the tip of the cursor visually falls on the element that you want to click.
66* Make sure to click any buttons, links, icons, etc with the cursor tip in the center of the element. Don't click boxes on their edges unless asked.`,inputSchema:{type:"object",properties:{action:{type:"string",enum:["left_click","right_click","type","screenshot","wait","scroll","key","left_click_drag","double_click","triple_click","zoom","scroll_to","hover"],description:"The action to perform:\n* `left_click`: Click the left mouse button at the specified coordinates.\n* `right_click`: Click the right mouse button at the specified coordinates to open context menus.\n* `double_click`: Double-click the left mouse button at the specified coordinates.\n* `triple_click`: Triple-click the left mouse button at the specified coordinates.\n* `type`: Type a string of text.\n* `screenshot`: Take a screenshot of the screen.\n* `wait`: Wait for a specified number of seconds.\n* `scroll`: Scroll up, down, left, or right at the specified coordinates.\n* `key`: Press a specific keyboard key.\n* `left_click_drag`: Drag from start_coordinate to coordinate.\n* `zoom`: Take a screenshot of a specific region for closer inspection.\n* `scroll_to`: Scroll an element into view using its element reference ID from read_page or find tools.\n* `hover`: Move the mouse cursor to the specified coordinates or element without clicking. Useful for revealing tooltips, dropdown menus, or triggering hover states."},coordinate:{type:"array",items:{type:"number"},minItems:2,maxItems:2,description:"(x, y): The x (pixels from the left edge) and y (pixels from the top edge) coordinates. Required for `left_click`, `right_click`, `double_click`, `triple_click`, and `scroll`. For `left_click_drag`, this is the end position."},text:{type:"string",description:'The text to type (for `type` action) or the key(s) to press (for `key` action). For `key` action: Provide space-separated keys (e.g., "Backspace Backspace Delete"). Supports keyboard shortcuts using the platform\'s modifier key (use "cmd" on Mac, "ctrl" on Windows/Linux, e.g., "cmd+a" or "ctrl+a" for select all).'},duration:{type:"number",minimum:0,maximum:30,description:"The number of seconds to wait. Required for `wait`. Maximum 30 seconds."},scroll_direction:{type:"string",enum:["up","down","left","right"],description:"The direction to scroll. Required for `scroll`."},scroll_amount:{type:"number",minimum:1,maximum:10,description:"The number of scroll wheel ticks. Optional for `scroll`, defaults to 3."},start_coordinate:{type:"array",items:{type:"number"},minItems:2,maxItems:2,description:"(x, y): The starting coordinates for `left_click_drag`."},region:{type:"array",items:{type:"number"},minItems:4,maxItems:4,description:"(x0, y0, x1, y1): The rectangular region to capture for `zoom`. Coordinates define a rectangle from top-left (x0, y0) to bottom-right (x1, y1) in pixels from the viewport origin. Required for `zoom` action. Useful for inspecting small UI elements like icons, buttons, or text."},repeat:{type:"number",minimum:1,maximum:100,description:"Number of times to repeat the key sequence. Only applicable for `key` action. Must be a positive integer between 1 and 100. Default is 1. Useful for navigation tasks like pressing arrow keys multiple times."},ref:{type:"string",description:'Element reference ID from read_page or find tools (e.g., "ref_1", "ref_2"). Required for `scroll_to` action. Can be used as alternative to `coordinate` for click actions.'},modifiers:{type:"string",description:'Modifier keys for click actions. Supports: "ctrl", "shift", "alt", "cmd" (or "meta"), "win" (or "windows"). Can be combined with "+" (e.g., "ctrl+shift", "cmd+alt"). Optional.'},tabId:{type:"number",description:"Tab ID to execute the action on. Must be a tab in the current group. Use tabs_context_mcp first if you don't have a valid tab ID."}},required:["action","tabId"]}},{name:"navigate",description:"Navigate to a URL, or go forward/back in browser history. If you don't have a valid tab ID, use tabs_context_mcp first to get available tabs.",inputSchema:{type:"object",properties:{url:{type:"string",description:'The URL to navigate to. Can be provided with or without protocol (defaults to https://). Use "forward" to go forward in history or "back" to go back in history.'},tabId:{type:"number",description:"Tab ID to navigate. Must be a tab in the current group. Use tabs_context_mcp first if you don't have a valid tab ID."}},required:["url","tabId"]}},{name:"resize_window",description:"Resize the current browser window to specified dimensions. Useful for testing responsive designs or setting up specific screen sizes. If you don't have a valid tab ID, use tabs_context_mcp first to get available tabs.",inputSchema:{type:"object",properties:{width:{type:"number",description:"Target window width in pixels"},height:{type:"number",description:"Target window height in pixels"},tabId:{type:"number",description:"Tab ID to get the window for. Must be a tab in the current group. Use tabs_context_mcp first if you don't have a valid tab ID."}},required:["width","height","tabId"]}},{name:"gif_creator",description:"Manage GIF recording and export for browser automation sessions. Control when to start/stop recording browser actions (clicks, scrolls, navigation), then export as an animated GIF with visual overlays (click indicators, action labels, progress bar, watermark). All operations are scoped to the tab's group. When starting recording, take a screenshot immediately after to capture the initial state as the first frame. When stopping recording, take a screenshot immediately before to capture the final state as the last frame. For export, either provide 'coordinate' to drag/drop upload to a page element, or set 'download: true' to download the GIF.",inputSchema:{type:"object",properties:{action:{type:"string",enum:["start_recording","stop_recording","export","clear"],description:"Action to perform: 'start_recording' (begin capturing), 'stop_recording' (stop capturing but keep frames), 'export' (generate and export GIF), 'clear' (discard frames)"},tabId:{type:"number",description:"Tab ID to identify which tab group this operation applies to"},download:{type:"boolean",description:"Always set this to true for the 'export' action only. This causes the gif to be downloaded in the browser."},filename:{type:"string",description:"Optional filename for exported GIF (default: 'recording-[timestamp].gif'). For 'export' action only."},options:{type:"object",description:"Optional GIF enhancement options for 'export' action. Properties: showClickIndicators (bool), showDragPaths (bool), showActionLabels (bool), showProgressBar (bool), showWatermark (bool), quality (number 1-30). All default to true except quality (default: 10).",properties:{showClickIndicators:{type:"boolean",description:"Show orange circles at click locations (default: true)"},showDragPaths:{type:"boolean",description:"Show red arrows for drag actions (default: true)"},showActionLabels:{type:"boolean",description:"Show black labels describing actions (default: true)"},showProgressBar:{type:"boolean",description:"Show orange progress bar at bottom (default: true)"},showWatermark:{type:"boolean",description:"Show Claude logo watermark (default: true)"},quality:{type:"number",description:"GIF compression quality, 1-30 (lower = better quality, slower encoding). Default: 10"}}}},required:["action","tabId"]}},{name:"upload_image",description:"Upload a previously captured screenshot or user-uploaded image to a file input or drag & drop target. Supports two approaches: (1) ref - for targeting specific elements, especially hidden file inputs, (2) coordinate - for drag & drop to visible locations like Google Docs. Provide either ref or coordinate, not both.",inputSchema:{type:"object",properties:{imageId:{type:"string",description:"ID of a previously captured screenshot (from the computer tool's screenshot action) or a user-uploaded image"},ref:{type:"string",description:'Element reference ID from read_page or find tools (e.g., "ref_1", "ref_2"). Use this for file inputs (especially hidden ones) or specific elements. Provide either ref or coordinate, not both.'},coordinate:{type:"array",items:{type:"number"},description:"Viewport coordinates [x, y] for drag & drop to a visible location. Use this for drag & drop targets like Google Docs. Provide either ref or coordinate, not both."},tabId:{type:"number",description:"Tab ID where the target element is located. This is where the image will be uploaded to."},filename:{type:"string",description:'Optional filename for the uploaded file (default: "image.png")'}},required:["imageId","tabId"]}},{name:"get_page_text",description:"Extract raw text content from the page, prioritizing article content. Ideal for reading articles, blog posts, or other text-heavy pages. Returns plain text without HTML formatting. If you don't have a valid tab ID, use tabs_context_mcp first to get available tabs.",inputSchema:{type:"object",properties:{tabId:{type:"number",description:"Tab ID to extract text from. Must be a tab in the current group. Use tabs_context_mcp first if you don't have a valid tab ID."}},required:["tabId"]}},{name:"tabs_context_mcp",title:"Tabs Context",description:"Get context information about the current MCP tab group. Returns all tab IDs inside the group if it exists. CRITICAL: You must get the context at least once before using other browser automation tools so you know what tabs exist. Each new conversation should create its own new tab (using tabs_create_mcp) rather than reusing existing tabs, unless the user explicitly asks to use an existing tab.",inputSchema:{type:"object",properties:{createIfEmpty:{type:"boolean",description:"Creates a new MCP tab group if none exists, creates a new Window with a new tab group containing an empty tab (which can be used for this conversation). If a MCP tab group already exists, this parameter has no effect."}},required:[]}},{name:"tabs_create_mcp",title:"Tabs Create",description:"Creates a new empty tab in the MCP tab group. CRITICAL: You must get the context using tabs_context_mcp at least once before using other browser automation tools so you know what tabs exist.",inputSchema:{type:"object",properties:{},required:[]}},{name:"update_plan",description:"Present a plan to the user for approval before taking actions. The user will see the domains you intend to visit and your approach. Once approved, you can proceed with actions on the approved domains without additional permission prompts.",inputSchema:{type:"object",properties:{domains:{type:"array",items:{type:"string"},description:"List of domains you will visit (e.g., ['github.com', 'stackoverflow.com']). These domains will be approved for the session when the user accepts the plan."},approach:{type:"array",items:{type:"string"},description:"High-level description of what you will do. Focus on outcomes and key actions, not implementation details. Be concise - aim for 3-7 items."}},required:["domains","approach"]}},{name:"read_console_messages",description:"Read browser console messages (console.log, console.error, console.warn, etc.) from a specific tab. Useful for debugging JavaScript errors, viewing application logs, or understanding what's happening in the browser console. Returns console messages from the current domain only. If you don't have a valid tab ID, use tabs_context_mcp first to get available tabs. IMPORTANT: Always provide a pattern to filter messages - without a pattern, you may get too many irrelevant messages.",inputSchema:{type:"object",properties:{tabId:{type:"number",description:"Tab ID to read console messages from. Must be a tab in the current group. Use tabs_context_mcp first if you don't have a valid tab ID."},onlyErrors:{type:"boolean",description:"If true, only return error and exception messages. Default is false (return all message types)."},clear:{type:"boolean",description:"If true, clear the console messages after reading to avoid duplicates on subsequent calls. Default is false."},pattern:{type:"string",description:"Regex pattern to filter console messages. Only messages matching this pattern will be returned (e.g., 'error|warning' to find errors and warnings, 'MyApp' to filter app-specific logs). You should always provide a pattern to avoid getting too many irrelevant messages."},limit:{type:"number",description:"Maximum number of messages to return. Defaults to 100. Increase only if you need more results."}},required:["tabId"]}},{name:"read_network_requests",description:"Read HTTP network requests (XHR, Fetch, documents, images, etc.) from a specific tab. Useful for debugging API calls, monitoring network activity, or understanding what requests a page is making. Returns all network requests made by the current page, including cross-origin requests. Requests are automatically cleared when the page navigates to a different domain. If you don't have a valid tab ID, use tabs_context_mcp first to get available tabs.",inputSchema:{type:"object",properties:{tabId:{type:"number",description:"Tab ID to read network requests from. Must be a tab in the current group. Use tabs_context_mcp first if you don't have a valid tab ID."},urlPattern:{type:"string",description:"Optional URL pattern to filter requests. Only requests whose URL contains this string will be returned (e.g., '/api/' to filter API calls, 'example.com' to filter by domain)."},clear:{type:"boolean",description:"If true, clear the network requests after reading to avoid duplicates on subsequent calls. Default is false."},limit:{type:"number",description:"Maximum number of requests to return. Defaults to 100. Increase only if you need more results."}},required:["tabId"]}},{name:"shortcuts_list",description:"List all available shortcuts and workflows (shortcuts and workflows are interchangeable). Returns shortcuts with their commands, descriptions, and whether they are workflows. Use shortcuts_execute to run a shortcut or workflow.",inputSchema:{type:"object",properties:{tabId:{type:"number",description:"Tab ID to list shortcuts from. Must be a tab in the current group. Use tabs_context_mcp first if you don't have a valid tab ID."}},required:["tabId"]}},{name:"shortcuts_execute",description:"Execute a shortcut or workflow by running it in a new sidepanel window using the current tab (shortcuts and workflows are interchangeable). Use shortcuts_list first to see available shortcuts. This starts the execution and returns immediately - it does not wait for completion.",inputSchema:{type:"object",properties:{tabId:{type:"number",description:"Tab ID to execute the shortcut on. Must be a tab in the current group. Use tabs_context_mcp first if you don't have a valid tab ID."},shortcutId:{type:"string",description:"The ID of the shortcut to execute"},command:{type:"string",description:"The command name of the shortcut to execute (e.g., 'debug', 'summarize'). Do not include the leading slash."}},required:["tabId"]}},{name:"switch_browser",description:"Switch which Chrome browser is used for browser automation. Call this when the user wants to connect to a different Chrome browser. Broadcasts a connection request to all Chrome browsers with the extension installed — the user clicks 'Connect' in the desired browser.",inputSchema:{type:"object",properties:{},required:[]}}]});var fz,oo8,Iq,OB=(q)=>{switch(typeof q){case"undefined":return Iq.undefined;case"string":return Iq.string;case"number":return Number.isNaN(q)?Iq.nan:Iq.number;case"boolean":return Iq.boolean;case"function":return Iq.function;case"bigint":return Iq.bigint;case"symbol":return Iq.symbol;case"object":if(Array.isArray(q))return Iq.array;if(q===null)return Iq.null;if(q.then&&typeof q.then==="function"&&q.catch&&typeof q.catch==="function")return Iq.promise;if(typeof Map<"u"&&q instanceof Map)return Iq.map;if(typeof Set<"u"&&q instanceof Set)return Iq.set;if(typeof Date<"u"&&q instanceof Date)return Iq.date;return Iq.object;default:return Iq.unknown}};var PI6=y(()=>{(function(q){q.assertEqual=(Y)=>{};function K(Y){}q.assertIs=K;function _(Y){throw Error()}q.assertNever=_,q.arrayToEnum=(Y)=>{let $={};for(let A of Y)$[A]=A;return $},q.getValidEnumValues=(Y)=>{let $=q.objectKeys(Y).filter((O)=>typeof Y[Y[O]]!=="number"),A={};for(let O of $)A[O]=Y[O];return q.objectValues(A)},q.objectValues=(Y)=>{return q.objectKeys(Y).map(function($){return Y[$]})},q.objectKeys=typeof Object.keys==="function"?(Y)=>Object.keys(Y):(Y)=>{let $=[];for(let A in Y)if(Object.prototype.hasOwnProperty.call(Y,A))$.push(A);return $},q.find=(Y,$)=>{for(let A of Y)if($(A))return A;return},q.isInteger=typeof Number.isInteger==="function"?(Y)=>Number.isInteger(Y):(Y)=>typeof Y==="number"&&Number.isFinite(Y)&&Math.floor(Y)===Y;function z(Y,$=" | "){return Y.map((A)=>typeof A==="string"?`'${A}'`:A).join($)}q.joinValues=z,q.jsonStringifyReplacer=(Y,$)=>{if(typeof $==="bigint")return $.toString();return $}})(fz||(fz={}));(function(q){q.mergeShapes=(K,_)=>{return{...K,..._}}})(oo8||(oo8={}));Iq=fz.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"])});var qq,YO5=(q)=>{return JSON.stringify(q,null,2).replace(/"([^"]+)":/g,"$1:")},pk;var u98=y(()=>{PI6();qq=fz.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"]);pk=class pk extends Error{get errors(){return this.issues}constructor(q){super();this.issues=[],this.addIssue=(_)=>{this.issues=[...this.issues,_]},this.addIssues=(_=[])=>{this.issues=[...this.issues,..._]};let K=new.target.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(this,K);else this.__proto__=K;this.name="ZodError",this.issues=q}format(q){let K=q||function(Y){return Y.message},_={_errors:[]},z=(Y)=>{for(let $ of Y.issues)if($.code==="invalid_union")$.unionErrors.map(z);else if($.code==="invalid_return_type")z($.returnTypeError);else if($.code==="invalid_arguments")z($.argumentsError);else if($.path.length===0)_._errors.push(K($));else{let A=_,O=0;while(O<$.path.length){let w=$.path[O];if(O!==$.path.length-1)A[w]=A[w]||{_errors:[]};else A[w]=A[w]||{_errors:[]},A[w]._errors.push(K($));A=A[w],O++}}};return z(this),_}static assert(q){if(!(q instanceof pk))throw Error(`Not a ZodError: ${q}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,fz.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(q=(K)=>K.message){let K={},_=[];for(let z of this.issues)if(z.path.length>0){let Y=z.path[0];K[Y]=K[Y]||[],K[Y].push(q(z))}else _.push(q(z));return{formErrors:_,fieldErrors:K}}get formErrors(){return this.flatten()}};pk.create=(q)=>{return new pk(q)}});var $O5=(q,K)=>{let _;switch(q.code){case qq.invalid_type:if(q.received===Iq.undefined)_="Required";else _=`Expected ${q.expected}, received ${q.received}`;break;case qq.invalid_literal:_=`Invalid literal value, expected ${JSON.stringify(q.expected,fz.jsonStringifyReplacer)}`;break;case qq.unrecognized_keys:_=`Unrecognized key(s) in object: ${fz.joinValues(q.keys,", ")}`;break;case qq.invalid_union:_="Invalid input";break;case qq.invalid_union_discriminator:_=`Invalid discriminator value. Expected ${fz.joinValues(q.options)}`;break;case qq.invalid_enum_value:_=`Invalid enum value. Expected ${fz.joinValues(q.options)}, received '${q.received}'`;break;case qq.invalid_arguments:_="Invalid function arguments";break;case qq.invalid_return_type:_="Invalid function return type";break;case qq.invalid_date:_="Invalid date";break;case qq.invalid_string:if(typeof q.validation==="object")if("includes"in q.validation){if(_=`Invalid input: must include "${q.validation.includes}"`,typeof q.validation.position==="number")_=`${_} at one or more positions greater than or equal to ${q.validation.position}`}else if("startsWith"in q.validation)_=`Invalid input: must start with "${q.validation.startsWith}"`;else if("endsWith"in q.validation)_=`Invalid input: must end with "${q.validation.endsWith}"`;else fz.assertNever(q.validation);else if(q.validation!=="regex")_=`Invalid ${q.validation}`;else _="Invalid";break;case qq.too_small:if(q.type==="array")_=`Array must contain ${q.exact?"exactly":q.inclusive?"at least":"more than"} ${q.minimum} element(s)`;else if(q.type==="string")_=`String must contain ${q.exact?"exactly":q.inclusive?"at least":"over"} ${q.minimum} character(s)`;else if(q.type==="number")_=`Number must be ${q.exact?"exactly equal to ":q.inclusive?"greater than or equal to ":"greater than "}${q.minimum}`;else if(q.type==="bigint")_=`Number must be ${q.exact?"exactly equal to ":q.inclusive?"greater than or equal to ":"greater than "}${q.minimum}`;else if(q.type==="date")_=`Date must be ${q.exact?"exactly equal to ":q.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(q.minimum))}`;else _="Invalid input";break;case qq.too_big:if(q.type==="array")_=`Array must contain ${q.exact?"exactly":q.inclusive?"at most":"less than"} ${q.maximum} element(s)`;else if(q.type==="string")_=`String must contain ${q.exact?"exactly":q.inclusive?"at most":"under"} ${q.maximum} character(s)`;else if(q.type==="number")_=`Number must be ${q.exact?"exactly":q.inclusive?"less than or equal to":"less than"} ${q.maximum}`;else if(q.type==="bigint")_=`BigInt must be ${q.exact?"exactly":q.inclusive?"less than or equal to":"less than"} ${q.maximum}`;else if(q.type==="date")_=`Date must be ${q.exact?"exactly":q.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(q.maximum))}`;else _="Invalid input";break;case qq.custom:_="Invalid input";break;case qq.invalid_intersection_types:_="Intersection results could not be merged";break;case qq.not_multiple_of:_=`Number must be a multiple of ${q.multipleOf}`;break;case qq.not_finite:_="Number must be finite";break;default:_=K.defaultError,fz.assertNever(q)}return{message:_}},Bc;var ao8=y(()=>{u98();PI6();Bc=$O5});function AO5(q){GX7=q}function JP6(){return GX7}var GX7;var m98=y(()=>{ao8();GX7=Bc});function M4(q,K){let _=JP6(),z=WI6({issueData:K,data:q.data,path:q.path,errorMaps:[q.common.contextualErrorMap,q.schemaErrorMap,_,_===Bc?void 0:Bc].filter((Y)=>!!Y)});q.common.issues.push(z)}class Hf{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray(q,K){let _=[];for(let z of K){if(z.status==="aborted")return c5;if(z.status==="dirty")q.dirty();_.push(z.value)}return{status:q.value,value:_}}static async mergeObjectAsync(q,K){let _=[];for(let z of K){let Y=await z.key,$=await z.value;_.push({key:Y,value:$})}return Hf.mergeObjectSync(q,_)}static mergeObjectSync(q,K){let _={};for(let z of K){let{key:Y,value:$}=z;if(Y.status==="aborted")return c5;if($.status==="aborted")return c5;if(Y.status==="dirty")q.dirty();if($.status==="dirty")q.dirty();if(Y.value!=="__proto__"&&(typeof $.value<"u"||z.alwaysSet))_[Y.value]=$.value}return{status:q.value,value:_}}}var WI6=(q)=>{let{data:K,path:_,errorMaps:z,issueData:Y}=q,$=[..._,...Y.path||[]],A={...Y,path:$};if(Y.message!==void 0)return{...Y,path:$,message:Y.message};let O="",w=z.filter((j)=>!!j).slice().reverse();for(let j of w)O=j(A,{data:K,defaultError:O}).message;return{...Y,path:$,message:O}},OO5,c5,D96=(q)=>({status:"dirty",value:q}),RZ=(q)=>({status:"valid",value:q}),p98=(q)=>q.status==="aborted",B98=(q)=>q.status==="dirty",qe=(q)=>q.status==="valid",MP6=(q)=>typeof Promise<"u"&&q instanceof Promise;var so8=y(()=>{m98();ao8();OO5=[];c5=Object.freeze({status:"aborted"})});var TX7=()=>{};var TK;var vX7=y(()=>{(function(q){q.errToObj=(K)=>typeof K==="string"?{message:K}:K||{},q.toString=(K)=>typeof K==="string"?K:K?.message})(TK||(TK={}))});class mx{constructor(q,K,_,z){this._cachedPath=[],this.parent=q,this.data=K,this._path=_,this._key=z}get path(){if(!this._cachedPath.length)if(Array.isArray(this._key))this._cachedPath.push(...this._path,...this._key);else this._cachedPath.push(...this._path,this._key);return this._cachedPath}}function l9(q){if(!q)return{};let{errorMap:K,invalid_type_error:_,required_error:z,description:Y}=q;if(K&&(_||z))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if(K)return{errorMap:K,description:Y};return{errorMap:(A,O)=>{let{message:w}=q;if(A.code==="invalid_enum_value")return{message:w??O.defaultError};if(typeof O.data>"u")return{message:w??z??O.defaultError};if(A.code!=="invalid_type")return{message:O.defaultError};return{message:w??_??O.defaultError}},description:Y}}class I_{get description(){return this._def.description}_getType(q){return OB(q.data)}_getOrReturnCtx(q,K){return K||{common:q.parent.common,data:q.data,parsedType:OB(q.data),schemaErrorMap:this._def.errorMap,path:q.path,parent:q.parent}}_processInputParams(q){return{status:new Hf,ctx:{common:q.parent.common,data:q.data,parsedType:OB(q.data),schemaErrorMap:this._def.errorMap,path:q.path,parent:q.parent}}}_parseSync(q){let K=this._parse(q);if(MP6(K))throw Error("Synchronous parse encountered promise.");return K}_parseAsync(q){let K=this._parse(q);return Promise.resolve(K)}parse(q,K){let _=this.safeParse(q,K);if(_.success)return _.data;throw _.error}safeParse(q,K){let _={common:{issues:[],async:K?.async??!1,contextualErrorMap:K?.errorMap},path:K?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:q,parsedType:OB(q)},z=this._parseSync({data:q,path:_.path,parent:_});return kX7(_,z)}"~validate"(q){let K={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:q,parsedType:OB(q)};if(!this["~standard"].async)try{let _=this._parseSync({data:q,path:[],parent:K});return qe(_)?{value:_.value}:{issues:K.common.issues}}catch(_){if(_?.message?.toLowerCase()?.includes("encountered"))this["~standard"].async=!0;K.common={issues:[],async:!0}}return this._parseAsync({data:q,path:[],parent:K}).then((_)=>qe(_)?{value:_.value}:{issues:K.common.issues})}async parseAsync(q,K){let _=await this.safeParseAsync(q,K);if(_.success)return _.data;throw _.error}async safeParseAsync(q,K){let _={common:{issues:[],contextualErrorMap:K?.errorMap,async:!0},path:K?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:q,parsedType:OB(q)},z=this._parse({data:q,path:_.path,parent:_}),Y=await(MP6(z)?z:Promise.resolve(z));return kX7(_,Y)}refine(q,K){let _=(z)=>{if(typeof K==="string"||typeof K>"u")return{message:K};else if(typeof K==="function")return K(z);else return K};return this._refinement((z,Y)=>{let $=q(z),A=()=>Y.addIssue({code:qq.custom,..._(z)});if(typeof Promise<"u"&&$ instanceof Promise)return $.then((O)=>{if(!O)return A(),!1;else return!0});if(!$)return A(),!1;else return!0})}refinement(q,K){return this._refinement((_,z)=>{if(!q(_))return z.addIssue(typeof K==="function"?K(_,z):K),!1;else return!0})}_refinement(q){return new px({schema:this,typeName:j3.ZodEffects,effect:{type:"refinement",refinement:q}})}superRefine(q){return this._refinement(q)}constructor(q){this.spa=this.safeParseAsync,this._def=q,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:(K)=>this["~validate"](K)}}optional(){return ux.create(this,this._def)}nullable(){return Fc.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ix.create(this)}promise(){return T96.create(this,this._def)}or(q){return ZP6.create([this,q],this._def)}and(q){return GP6.create(this,q,this._def)}transform(q){return new px({...l9(this._def),schema:this,typeName:j3.ZodEffects,effect:{type:"transform",transform:q}})}default(q){let K=typeof q==="function"?q:()=>q;return new VP6({...l9(this._def),innerType:this,defaultValue:K,typeName:j3.ZodDefault})}brand(){return new F98({typeName:j3.ZodBranded,type:this,...l9(this._def)})}catch(q){let K=typeof q==="function"?q:()=>q;return new NP6({...l9(this._def),innerType:this,catchValue:K,typeName:j3.ZodCatch})}describe(q){return new this.constructor({...this._def,description:q})}pipe(q){return vI6.create(this,q)}readonly(){return yP6.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}function yX7(q){let K="[0-5]\\d";if(q.precision)K=`${K}\\.\\d{${q.precision}}`;else if(q.precision==null)K=`${K}(\\.\\d+)?`;let _=q.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${K})${_}`}function NO5(q){return new RegExp(`^${yX7(q)}$`)}function EX7(q){let K=`${NX7}T${yX7(q)}`,_=[];if(_.push(q.local?"Z?":"Z"),q.offset)_.push("([+-]\\d{2}:?\\d{2})");return K=`${K}(${_.join("|")})`,new RegExp(`^${K}$`)}function yO5(q,K){if((K==="v4"||!K)&&fO5.test(q))return!0;if((K==="v6"||!K)&&GO5.test(q))return!0;return!1}function EO5(q,K){if(!XO5.test(q))return!1;try{let[_]=q.split(".");if(!_)return!1;let z=_.replace(/-/g,"+").replace(/_/g,"/").padEnd(_.length+(4-_.length%4)%4,"="),Y=JSON.parse(atob(z));if(typeof Y!=="object"||Y===null)return!1;if("typ"in Y&&Y?.typ!=="JWT")return!1;if(!Y.alg)return!1;if(K&&Y.alg!==K)return!1;return!0}catch{return!1}}function LO5(q,K){if((K==="v4"||!K)&&ZO5.test(q))return!0;if((K==="v6"||!K)&&TO5.test(q))return!0;return!1}function RO5(q,K){let _=(q.toString().split(".")[1]||"").length,z=(K.toString().split(".")[1]||"").length,Y=_>z?_:z,$=Number.parseInt(q.toFixed(Y).replace(".","")),A=Number.parseInt(K.toFixed(Y).replace(".",""));return $%A/10**Y}function XP6(q){if(q instanceof $H){let K={};for(let _ in q.shape){let z=q.shape[_];K[_]=ux.create(XP6(z))}return new $H({...q._def,shape:()=>K})}else if(q instanceof Ix)return new Ix({...q._def,type:XP6(q.element)});else if(q instanceof ux)return ux.create(XP6(q.unwrap()));else if(q instanceof Fc)return Fc.create(XP6(q.unwrap()));else if(q instanceof jB)return jB.create(q.items.map((K)=>XP6(K)));else return q}function eo8(q,K){let _=OB(q),z=OB(K);if(q===K)return{valid:!0,data:q};else if(_===Iq.object&&z===Iq.object){let Y=fz.objectKeys(K),$=fz.objectKeys(q).filter((O)=>Y.indexOf(O)!==-1),A={...q,...K};for(let O of $){let w=eo8(q[O],K[O]);if(!w.valid)return{valid:!1};A[O]=w.data}return{valid:!0,data:A}}else if(_===Iq.array&&z===Iq.array){if(q.length!==K.length)return{valid:!1};let Y=[];for(let $=0;$<q.length;$++){let A=q[$],O=K[$],w=eo8(A,O);if(!w.valid)return{valid:!1};Y.push(w.data)}return{valid:!0,data:Y}}else if(_===Iq.date&&z===Iq.date&&+q===+K)return{valid:!0,data:q};else return{valid:!1}}function LX7(q,K){return new Ye({values:q,typeName:j3.ZodEnum,...l9(K)})}function VX7(q,K){let _=typeof q==="function"?q(K):typeof q==="string"?{message:q}:q;return typeof _==="string"?{message:_}:_}function RX7(q,K={},_){if(q)return Z96.create().superRefine((z,Y)=>{let $=q(z);if($ instanceof Promise)return $.then((A)=>{if(!A){let O=VX7(K,z),w=O.fatal??_??!0;Y.addIssue({code:"custom",...O,fatal:w})}});if(!$){let A=VX7(K,z),O=A.fatal??_??!0;Y.addIssue({code:"custom",...A,fatal:O})}return});return Z96.create()}var kX7=(q,K)=>{if(qe(K))return{success:!0,data:K.value};else{if(!q.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let _=new pk(q.common.issues);return this._error=_,this._error}}}},wO5,jO5,HO5,JO5,MO5,XO5,PO5,WO5,DO5="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",to8,fO5,ZO5,GO5,TO5,vO5,kO5,NX7="((\\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])))",VO5,xx,_e,ze,WP6,f96,DI6,DP6,fP6,Z96,Ke,wB,fI6,Ix,$H,ZP6,gc=(q)=>{if(q instanceof TP6)return gc(q.schema);else if(q instanceof px)return gc(q.innerType());else if(q instanceof vP6)return[q.value];else if(q instanceof Ye)return q.options;else if(q instanceof kP6)return fz.objectValues(q.enum);else if(q instanceof VP6)return gc(q._def.innerType);else if(q instanceof DP6)return[void 0];else if(q instanceof fP6)return[null];else if(q instanceof ux)return[void 0,...gc(q.unwrap())];else if(q instanceof Fc)return[null,...gc(q.unwrap())];else if(q instanceof F98)return gc(q.unwrap());else if(q instanceof yP6)return gc(q.unwrap());else if(q instanceof NP6)return gc(q._def.innerType);else return[]},g98,GP6,jB,ZI6,GI6,G96,PP6,TP6,vP6,Ye,kP6,T96,px,ux,Fc,VP6,NP6,TI6,hO5,F98,vI6,yP6,SO5,j3,CO5=(q,K={message:`Input not instance of ${q.name}`})=>RX7((_)=>_ instanceof q,K),c7,zh,bO5,xO5,vW,IO5,uO5,mO5,pO5,BO5,gO5,FO5,UO5,qJ,HE,JE,v96,QO5,dO5,cO5,Bx,lO5,nO5,iO5,rO5,oO5,gx,aO5,sO5,tO5,eO5,qw5,Kw5,_w5,zw5=()=>c7().optional(),Yw5=()=>zh().optional(),$w5=()=>vW().optional(),Aw5,Ow5;var hX7=y(()=>{u98();m98();vX7();so8();PI6();wO5=/^c[^\s-]{8,}$/i,jO5=/^[0-9a-z]+$/,HO5=/^[0-9A-HJKMNP-TV-Z]{26}$/i,JO5=/^[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,MO5=/^[a-z0-9_-]{21}$/i,XO5=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,PO5=/^[-+]?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)?)??$/,WO5=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,fO5=/^(?:(?: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])$/,ZO5=/^(?:(?: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])$/,GO5=/^(([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]))$/,TO5=/^(([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])$/,vO5=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,kO5=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,VO5=new RegExp(`^${NX7}$`);xx=class xx extends I_{_parse(q){if(this._def.coerce)q.data=String(q.data);if(this._getType(q)!==Iq.string){let Y=this._getOrReturnCtx(q);return M4(Y,{code:qq.invalid_type,expected:Iq.string,received:Y.parsedType}),c5}let _=new Hf,z=void 0;for(let Y of this._def.checks)if(Y.kind==="min"){if(q.data.length<Y.value)z=this._getOrReturnCtx(q,z),M4(z,{code:qq.too_small,minimum:Y.value,type:"string",inclusive:!0,exact:!1,message:Y.message}),_.dirty()}else if(Y.kind==="max"){if(q.data.length>Y.value)z=this._getOrReturnCtx(q,z),M4(z,{code:qq.too_big,maximum:Y.value,type:"string",inclusive:!0,exact:!1,message:Y.message}),_.dirty()}else if(Y.kind==="length"){let $=q.data.length>Y.value,A=q.data.length<Y.value;if($||A){if(z=this._getOrReturnCtx(q,z),$)M4(z,{code:qq.too_big,maximum:Y.value,type:"string",inclusive:!0,exact:!0,message:Y.message});else if(A)M4(z,{code:qq.too_small,minimum:Y.value,type:"string",inclusive:!0,exact:!0,message:Y.message});_.dirty()}}else if(Y.kind==="email"){if(!WO5.test(q.data))z=this._getOrReturnCtx(q,z),M4(z,{validation:"email",code:qq.invalid_string,message:Y.message}),_.dirty()}else if(Y.kind==="emoji"){if(!to8)to8=new RegExp(DO5,"u");if(!to8.test(q.data))z=this._getOrReturnCtx(q,z),M4(z,{validation:"emoji",code:qq.invalid_string,message:Y.message}),_.dirty()}else if(Y.kind==="uuid"){if(!JO5.test(q.data))z=this._getOrReturnCtx(q,z),M4(z,{validation:"uuid",code:qq.invalid_string,message:Y.message}),_.dirty()}else if(Y.kind==="nanoid"){if(!MO5.test(q.data))z=this._getOrReturnCtx(q,z),M4(z,{validation:"nanoid",code:qq.invalid_string,message:Y.message}),_.dirty()}else if(Y.kind==="cuid"){if(!wO5.test(q.data))z=this._getOrReturnCtx(q,z),M4(z,{validation:"cuid",code:qq.invalid_string,message:Y.message}),_.dirty()}else if(Y.kind==="cuid2"){if(!jO5.test(q.data))z=this._getOrReturnCtx(q,z),M4(z,{validation:"cuid2",code:qq.invalid_string,message:Y.message}),_.dirty()}else if(Y.kind==="ulid"){if(!HO5.test(q.data))z=this._getOrReturnCtx(q,z),M4(z,{validation:"ulid",code:qq.invalid_string,message:Y.message}),_.dirty()}else if(Y.kind==="url")try{new URL(q.data)}catch{z=this._getOrReturnCtx(q,z),M4(z,{validation:"url",code:qq.invalid_string,message:Y.message}),_.dirty()}else if(Y.kind==="regex"){if(Y.regex.lastIndex=0,!Y.regex.test(q.data))z=this._getOrReturnCtx(q,z),M4(z,{validation:"regex",code:qq.invalid_string,message:Y.message}),_.dirty()}else if(Y.kind==="trim")q.data=q.data.trim();else if(Y.kind==="includes"){if(!q.data.includes(Y.value,Y.position))z=this._getOrReturnCtx(q,z),M4(z,{code:qq.invalid_string,validation:{includes:Y.value,position:Y.position},message:Y.message}),_.dirty()}else if(Y.kind==="toLowerCase")q.data=q.data.toLowerCase();else if(Y.kind==="toUpperCase")q.data=q.data.toUpperCase();else if(Y.kind==="startsWith"){if(!q.data.startsWith(Y.value))z=this._getOrReturnCtx(q,z),M4(z,{code:qq.invalid_string,validation:{startsWith:Y.value},message:Y.message}),_.dirty()}else if(Y.kind==="endsWith"){if(!q.data.endsWith(Y.value))z=this._getOrReturnCtx(q,z),M4(z,{code:qq.invalid_string,validation:{endsWith:Y.value},message:Y.message}),_.dirty()}else if(Y.kind==="datetime"){if(!EX7(Y).test(q.data))z=this._getOrReturnCtx(q,z),M4(z,{code:qq.invalid_string,validation:"datetime",message:Y.message}),_.dirty()}else if(Y.kind==="date"){if(!VO5.test(q.data))z=this._getOrReturnCtx(q,z),M4(z,{code:qq.invalid_string,validation:"date",message:Y.message}),_.dirty()}else if(Y.kind==="time"){if(!NO5(Y).test(q.data))z=this._getOrReturnCtx(q,z),M4(z,{code:qq.invalid_string,validation:"time",message:Y.message}),_.dirty()}else if(Y.kind==="duration"){if(!PO5.test(q.data))z=this._getOrReturnCtx(q,z),M4(z,{validation:"duration",code:qq.invalid_string,message:Y.message}),_.dirty()}else if(Y.kind==="ip"){if(!yO5(q.data,Y.version))z=this._getOrReturnCtx(q,z),M4(z,{validation:"ip",code:qq.invalid_string,message:Y.message}),_.dirty()}else if(Y.kind==="jwt"){if(!EO5(q.data,Y.alg))z=this._getOrReturnCtx(q,z),M4(z,{validation:"jwt",code:qq.invalid_string,message:Y.message}),_.dirty()}else if(Y.kind==="cidr"){if(!LO5(q.data,Y.version))z=this._getOrReturnCtx(q,z),M4(z,{validation:"cidr",code:qq.invalid_string,message:Y.message}),_.dirty()}else if(Y.kind==="base64"){if(!vO5.test(q.data))z=this._getOrReturnCtx(q,z),M4(z,{validation:"base64",code:qq.invalid_string,message:Y.message}),_.dirty()}else if(Y.kind==="base64url"){if(!kO5.test(q.data))z=this._getOrReturnCtx(q,z),M4(z,{validation:"base64url",code:qq.invalid_string,message:Y.message}),_.dirty()}else fz.assertNever(Y);return{status:_.value,value:q.data}}_regex(q,K,_){return this.refinement((z)=>q.test(z),{validation:K,code:qq.invalid_string,...TK.errToObj(_)})}_addCheck(q){return new xx({...this._def,checks:[...this._def.checks,q]})}email(q){return this._addCheck({kind:"email",...TK.errToObj(q)})}url(q){return this._addCheck({kind:"url",...TK.errToObj(q)})}emoji(q){return this._addCheck({kind:"emoji",...TK.errToObj(q)})}uuid(q){return this._addCheck({kind:"uuid",...TK.errToObj(q)})}nanoid(q){return this._addCheck({kind:"nanoid",...TK.errToObj(q)})}cuid(q){return this._addCheck({kind:"cuid",...TK.errToObj(q)})}cuid2(q){return this._addCheck({kind:"cuid2",...TK.errToObj(q)})}ulid(q){return this._addCheck({kind:"ulid",...TK.errToObj(q)})}base64(q){return this._addCheck({kind:"base64",...TK.errToObj(q)})}base64url(q){return this._addCheck({kind:"base64url",...TK.errToObj(q)})}jwt(q){return this._addCheck({kind:"jwt",...TK.errToObj(q)})}ip(q){return this._addCheck({kind:"ip",...TK.errToObj(q)})}cidr(q){return this._addCheck({kind:"cidr",...TK.errToObj(q)})}datetime(q){if(typeof q==="string")return this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:q});return this._addCheck({kind:"datetime",precision:typeof q?.precision>"u"?null:q?.precision,offset:q?.offset??!1,local:q?.local??!1,...TK.errToObj(q?.message)})}date(q){return this._addCheck({kind:"date",message:q})}time(q){if(typeof q==="string")return this._addCheck({kind:"time",precision:null,message:q});return this._addCheck({kind:"time",precision:typeof q?.precision>"u"?null:q?.precision,...TK.errToObj(q?.message)})}duration(q){return this._addCheck({kind:"duration",...TK.errToObj(q)})}regex(q,K){return this._addCheck({kind:"regex",regex:q,...TK.errToObj(K)})}includes(q,K){return this._addCheck({kind:"includes",value:q,position:K?.position,...TK.errToObj(K?.message)})}startsWith(q,K){return this._addCheck({kind:"startsWith",value:q,...TK.errToObj(K)})}endsWith(q,K){return this._addCheck({kind:"endsWith",value:q,...TK.errToObj(K)})}min(q,K){return this._addCheck({kind:"min",value:q,...TK.errToObj(K)})}max(q,K){return this._addCheck({kind:"max",value:q,...TK.errToObj(K)})}length(q,K){return this._addCheck({kind:"length",value:q,...TK.errToObj(K)})}nonempty(q){return this.min(1,TK.errToObj(q))}trim(){return new xx({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new xx({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new xx({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((q)=>q.kind==="datetime")}get isDate(){return!!this._def.checks.find((q)=>q.kind==="date")}get isTime(){return!!this._def.checks.find((q)=>q.kind==="time")}get isDuration(){return!!this._def.checks.find((q)=>q.kind==="duration")}get isEmail(){return!!this._def.checks.find((q)=>q.kind==="email")}get isURL(){return!!this._def.checks.find((q)=>q.kind==="url")}get isEmoji(){return!!this._def.checks.find((q)=>q.kind==="emoji")}get isUUID(){return!!this._def.checks.find((q)=>q.kind==="uuid")}get isNANOID(){return!!this._def.checks.find((q)=>q.kind==="nanoid")}get isCUID(){return!!this._def.checks.find((q)=>q.kind==="cuid")}get isCUID2(){return!!this._def.checks.find((q)=>q.kind==="cuid2")}get isULID(){return!!this._def.checks.find((q)=>q.kind==="ulid")}get isIP(){return!!this._def.checks.find((q)=>q.kind==="ip")}get isCIDR(){return!!this._def.checks.find((q)=>q.kind==="cidr")}get isBase64(){return!!this._def.checks.find((q)=>q.kind==="base64")}get isBase64url(){return!!this._def.checks.find((q)=>q.kind==="base64url")}get minLength(){let q=null;for(let K of this._def.checks)if(K.kind==="min"){if(q===null||K.value>q)q=K.value}return q}get maxLength(){let q=null;for(let K of this._def.checks)if(K.kind==="max"){if(q===null||K.value<q)q=K.value}return q}};xx.create=(q)=>{return new xx({checks:[],typeName:j3.ZodString,coerce:q?.coerce??!1,...l9(q)})};_e=class _e extends I_{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(q){if(this._def.coerce)q.data=Number(q.data);if(this._getType(q)!==Iq.number){let Y=this._getOrReturnCtx(q);return M4(Y,{code:qq.invalid_type,expected:Iq.number,received:Y.parsedType}),c5}let _=void 0,z=new Hf;for(let Y of this._def.checks)if(Y.kind==="int"){if(!fz.isInteger(q.data))_=this._getOrReturnCtx(q,_),M4(_,{code:qq.invalid_type,expected:"integer",received:"float",message:Y.message}),z.dirty()}else if(Y.kind==="min"){if(Y.inclusive?q.data<Y.value:q.data<=Y.value)_=this._getOrReturnCtx(q,_),M4(_,{code:qq.too_small,minimum:Y.value,type:"number",inclusive:Y.inclusive,exact:!1,message:Y.message}),z.dirty()}else if(Y.kind==="max"){if(Y.inclusive?q.data>Y.value:q.data>=Y.value)_=this._getOrReturnCtx(q,_),M4(_,{code:qq.too_big,maximum:Y.value,type:"number",inclusive:Y.inclusive,exact:!1,message:Y.message}),z.dirty()}else if(Y.kind==="multipleOf"){if(RO5(q.data,Y.value)!==0)_=this._getOrReturnCtx(q,_),M4(_,{code:qq.not_multiple_of,multipleOf:Y.value,message:Y.message}),z.dirty()}else if(Y.kind==="finite"){if(!Number.isFinite(q.data))_=this._getOrReturnCtx(q,_),M4(_,{code:qq.not_finite,message:Y.message}),z.dirty()}else fz.assertNever(Y);return{status:z.value,value:q.data}}gte(q,K){return this.setLimit("min",q,!0,TK.toString(K))}gt(q,K){return this.setLimit("min",q,!1,TK.toString(K))}lte(q,K){return this.setLimit("max",q,!0,TK.toString(K))}lt(q,K){return this.setLimit("max",q,!1,TK.toString(K))}setLimit(q,K,_,z){return new _e({...this._def,checks:[...this._def.checks,{kind:q,value:K,inclusive:_,message:TK.toString(z)}]})}_addCheck(q){return new _e({...this._def,checks:[...this._def.checks,q]})}int(q){return this._addCheck({kind:"int",message:TK.toString(q)})}positive(q){return this._addCheck({kind:"min",value:0,inclusive:!1,message:TK.toString(q)})}negative(q){return this._addCheck({kind:"max",value:0,inclusive:!1,message:TK.toString(q)})}nonpositive(q){return this._addCheck({kind:"max",value:0,inclusive:!0,message:TK.toString(q)})}nonnegative(q){return this._addCheck({kind:"min",value:0,inclusive:!0,message:TK.toString(q)})}multipleOf(q,K){return this._addCheck({kind:"multipleOf",value:q,message:TK.toString(K)})}finite(q){return this._addCheck({kind:"finite",message:TK.toString(q)})}safe(q){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:TK.toString(q)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:TK.toString(q)})}get minValue(){let q=null;for(let K of this._def.checks)if(K.kind==="min"){if(q===null||K.value>q)q=K.value}return q}get maxValue(){let q=null;for(let K of this._def.checks)if(K.kind==="max"){if(q===null||K.value<q)q=K.value}return q}get isInt(){return!!this._def.checks.find((q)=>q.kind==="int"||q.kind==="multipleOf"&&fz.isInteger(q.value))}get isFinite(){let q=null,K=null;for(let _ of this._def.checks)if(_.kind==="finite"||_.kind==="int"||_.kind==="multipleOf")return!0;else if(_.kind==="min"){if(K===null||_.value>K)K=_.value}else if(_.kind==="max"){if(q===null||_.value<q)q=_.value}return Number.isFinite(K)&&Number.isFinite(q)}};_e.create=(q)=>{return new _e({checks:[],typeName:j3.ZodNumber,coerce:q?.coerce||!1,...l9(q)})};ze=class ze extends I_{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte}_parse(q){if(this._def.coerce)try{q.data=BigInt(q.data)}catch{return this._getInvalidInput(q)}if(this._getType(q)!==Iq.bigint)return this._getInvalidInput(q);let _=void 0,z=new Hf;for(let Y of this._def.checks)if(Y.kind==="min"){if(Y.inclusive?q.data<Y.value:q.data<=Y.value)_=this._getOrReturnCtx(q,_),M4(_,{code:qq.too_small,type:"bigint",minimum:Y.value,inclusive:Y.inclusive,message:Y.message}),z.dirty()}else if(Y.kind==="max"){if(Y.inclusive?q.data>Y.value:q.data>=Y.value)_=this._getOrReturnCtx(q,_),M4(_,{code:qq.too_big,type:"bigint",maximum:Y.value,inclusive:Y.inclusive,message:Y.message}),z.dirty()}else if(Y.kind==="multipleOf"){if(q.data%Y.value!==BigInt(0))_=this._getOrReturnCtx(q,_),M4(_,{code:qq.not_multiple_of,multipleOf:Y.value,message:Y.message}),z.dirty()}else fz.assertNever(Y);return{status:z.value,value:q.data}}_getInvalidInput(q){let K=this._getOrReturnCtx(q);return M4(K,{code:qq.invalid_type,expected:Iq.bigint,received:K.parsedType}),c5}gte(q,K){return this.setLimit("min",q,!0,TK.toString(K))}gt(q,K){return this.setLimit("min",q,!1,TK.toString(K))}lte(q,K){return this.setLimit("max",q,!0,TK.toString(K))}lt(q,K){return this.setLimit("max",q,!1,TK.toString(K))}setLimit(q,K,_,z){return new ze({...this._def,checks:[...this._def.checks,{kind:q,value:K,inclusive:_,message:TK.toString(z)}]})}_addCheck(q){return new ze({...this._def,checks:[...this._def.checks,q]})}positive(q){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:TK.toString(q)})}negative(q){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:TK.toString(q)})}nonpositive(q){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:TK.toString(q)})}nonnegative(q){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:TK.toString(q)})}multipleOf(q,K){return this._addCheck({kind:"multipleOf",value:q,message:TK.toString(K)})}get minValue(){let q=null;for(let K of this._def.checks)if(K.kind==="min"){if(q===null||K.value>q)q=K.value}return q}get maxValue(){let q=null;for(let K of this._def.checks)if(K.kind==="max"){if(q===null||K.value<q)q=K.value}return q}};ze.create=(q)=>{return new ze({checks:[],typeName:j3.ZodBigInt,coerce:q?.coerce??!1,...l9(q)})};WP6=class WP6 extends I_{_parse(q){if(this._def.coerce)q.data=Boolean(q.data);if(this._getType(q)!==Iq.boolean){let _=this._getOrReturnCtx(q);return M4(_,{code:qq.invalid_type,expected:Iq.boolean,received:_.parsedType}),c5}return RZ(q.data)}};WP6.create=(q)=>{return new WP6({typeName:j3.ZodBoolean,coerce:q?.coerce||!1,...l9(q)})};f96=class f96 extends I_{_parse(q){if(this._def.coerce)q.data=new Date(q.data);if(this._getType(q)!==Iq.date){let Y=this._getOrReturnCtx(q);return M4(Y,{code:qq.invalid_type,expected:Iq.date,received:Y.parsedType}),c5}if(Number.isNaN(q.data.getTime())){let Y=this._getOrReturnCtx(q);return M4(Y,{code:qq.invalid_date}),c5}let _=new Hf,z=void 0;for(let Y of this._def.checks)if(Y.kind==="min"){if(q.data.getTime()<Y.value)z=this._getOrReturnCtx(q,z),M4(z,{code:qq.too_small,message:Y.message,inclusive:!0,exact:!1,minimum:Y.value,type:"date"}),_.dirty()}else if(Y.kind==="max"){if(q.data.getTime()>Y.value)z=this._getOrReturnCtx(q,z),M4(z,{code:qq.too_big,message:Y.message,inclusive:!0,exact:!1,maximum:Y.value,type:"date"}),_.dirty()}else fz.assertNever(Y);return{status:_.value,value:new Date(q.data.getTime())}}_addCheck(q){return new f96({...this._def,checks:[...this._def.checks,q]})}min(q,K){return this._addCheck({kind:"min",value:q.getTime(),message:TK.toString(K)})}max(q,K){return this._addCheck({kind:"max",value:q.getTime(),message:TK.toString(K)})}get minDate(){let q=null;for(let K of this._def.checks)if(K.kind==="min"){if(q===null||K.value>q)q=K.value}return q!=null?new Date(q):null}get maxDate(){let q=null;for(let K of this._def.checks)if(K.kind==="max"){if(q===null||K.value<q)q=K.value}return q!=null?new Date(q):null}};f96.create=(q)=>{return new f96({checks:[],coerce:q?.coerce||!1,typeName:j3.ZodDate,...l9(q)})};DI6=class DI6 extends I_{_parse(q){if(this._getType(q)!==Iq.symbol){let _=this._getOrReturnCtx(q);return M4(_,{code:qq.invalid_type,expected:Iq.symbol,received:_.parsedType}),c5}return RZ(q.data)}};DI6.create=(q)=>{return new DI6({typeName:j3.ZodSymbol,...l9(q)})};DP6=class DP6 extends I_{_parse(q){if(this._getType(q)!==Iq.undefined){let _=this._getOrReturnCtx(q);return M4(_,{code:qq.invalid_type,expected:Iq.undefined,received:_.parsedType}),c5}return RZ(q.data)}};DP6.create=(q)=>{return new DP6({typeName:j3.ZodUndefined,...l9(q)})};fP6=class fP6 extends I_{_parse(q){if(this._getType(q)!==Iq.null){let _=this._getOrReturnCtx(q);return M4(_,{code:qq.invalid_type,expected:Iq.null,received:_.parsedType}),c5}return RZ(q.data)}};fP6.create=(q)=>{return new fP6({typeName:j3.ZodNull,...l9(q)})};Z96=class Z96 extends I_{constructor(){super(...arguments);this._any=!0}_parse(q){return RZ(q.data)}};Z96.create=(q)=>{return new Z96({typeName:j3.ZodAny,...l9(q)})};Ke=class Ke extends I_{constructor(){super(...arguments);this._unknown=!0}_parse(q){return RZ(q.data)}};Ke.create=(q)=>{return new Ke({typeName:j3.ZodUnknown,...l9(q)})};wB=class wB extends I_{_parse(q){let K=this._getOrReturnCtx(q);return M4(K,{code:qq.invalid_type,expected:Iq.never,received:K.parsedType}),c5}};wB.create=(q)=>{return new wB({typeName:j3.ZodNever,...l9(q)})};fI6=class fI6 extends I_{_parse(q){if(this._getType(q)!==Iq.undefined){let _=this._getOrReturnCtx(q);return M4(_,{code:qq.invalid_type,expected:Iq.void,received:_.parsedType}),c5}return RZ(q.data)}};fI6.create=(q)=>{return new fI6({typeName:j3.ZodVoid,...l9(q)})};Ix=class Ix extends I_{_parse(q){let{ctx:K,status:_}=this._processInputParams(q),z=this._def;if(K.parsedType!==Iq.array)return M4(K,{code:qq.invalid_type,expected:Iq.array,received:K.parsedType}),c5;if(z.exactLength!==null){let $=K.data.length>z.exactLength.value,A=K.data.length<z.exactLength.value;if($||A)M4(K,{code:$?qq.too_big:qq.too_small,minimum:A?z.exactLength.value:void 0,maximum:$?z.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:z.exactLength.message}),_.dirty()}if(z.minLength!==null){if(K.data.length<z.minLength.value)M4(K,{code:qq.too_small,minimum:z.minLength.value,type:"array",inclusive:!0,exact:!1,message:z.minLength.message}),_.dirty()}if(z.maxLength!==null){if(K.data.length>z.maxLength.value)M4(K,{code:qq.too_big,maximum:z.maxLength.value,type:"array",inclusive:!0,exact:!1,message:z.maxLength.message}),_.dirty()}if(K.common.async)return Promise.all([...K.data].map(($,A)=>{return z.type._parseAsync(new mx(K,$,K.path,A))})).then(($)=>{return Hf.mergeArray(_,$)});let Y=[...K.data].map(($,A)=>{return z.type._parseSync(new mx(K,$,K.path,A))});return Hf.mergeArray(_,Y)}get element(){return this._def.type}min(q,K){return new Ix({...this._def,minLength:{value:q,message:TK.toString(K)}})}max(q,K){return new Ix({...this._def,maxLength:{value:q,message:TK.toString(K)}})}length(q,K){return new Ix({...this._def,exactLength:{value:q,message:TK.toString(K)}})}nonempty(q){return this.min(1,q)}};Ix.create=(q,K)=>{return new Ix({type:q,minLength:null,maxLength:null,exactLength:null,typeName:j3.ZodArray,...l9(K)})};$H=class $H extends I_{constructor(){super(...arguments);this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let q=this._def.shape(),K=fz.objectKeys(q);return this._cached={shape:q,keys:K},this._cached}_parse(q){if(this._getType(q)!==Iq.object){let w=this._getOrReturnCtx(q);return M4(w,{code:qq.invalid_type,expected:Iq.object,received:w.parsedType}),c5}let{status:_,ctx:z}=this._processInputParams(q),{shape:Y,keys:$}=this._getCached(),A=[];if(!(this._def.catchall instanceof wB&&this._def.unknownKeys==="strip")){for(let w in z.data)if(!$.includes(w))A.push(w)}let O=[];for(let w of $){let j=Y[w],H=z.data[w];O.push({key:{status:"valid",value:w},value:j._parse(new mx(z,H,z.path,w)),alwaysSet:w in z.data})}if(this._def.catchall instanceof wB){let w=this._def.unknownKeys;if(w==="passthrough")for(let j of A)O.push({key:{status:"valid",value:j},value:{status:"valid",value:z.data[j]}});else if(w==="strict"){if(A.length>0)M4(z,{code:qq.unrecognized_keys,keys:A}),_.dirty()}else if(w==="strip");else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let w=this._def.catchall;for(let j of A){let H=z.data[j];O.push({key:{status:"valid",value:j},value:w._parse(new mx(z,H,z.path,j)),alwaysSet:j in z.data})}}if(z.common.async)return Promise.resolve().then(async()=>{let w=[];for(let j of O){let H=await j.key,J=await j.value;w.push({key:H,value:J,alwaysSet:j.alwaysSet})}return w}).then((w)=>{return Hf.mergeObjectSync(_,w)});else return Hf.mergeObjectSync(_,O)}get shape(){return this._def.shape()}strict(q){return TK.errToObj,new $H({...this._def,unknownKeys:"strict",...q!==void 0?{errorMap:(K,_)=>{let z=this._def.errorMap?.(K,_).message??_.defaultError;if(K.code==="unrecognized_keys")return{message:TK.errToObj(q).message??z};return{message:z}}}:{}})}strip(){return new $H({...this._def,unknownKeys:"strip"})}passthrough(){return new $H({...this._def,unknownKeys:"passthrough"})}extend(q){return new $H({...this._def,shape:()=>({...this._def.shape(),...q})})}merge(q){return new $H({unknownKeys:q._def.unknownKeys,catchall:q._def.catchall,shape:()=>({...this._def.shape(),...q._def.shape()}),typeName:j3.ZodObject})}setKey(q,K){return this.augment({[q]:K})}catchall(q){return new $H({...this._def,catchall:q})}pick(q){let K={};for(let _ of fz.objectKeys(q))if(q[_]&&this.shape[_])K[_]=this.shape[_];return new $H({...this._def,shape:()=>K})}omit(q){let K={};for(let _ of fz.objectKeys(this.shape))if(!q[_])K[_]=this.shape[_];return new $H({...this._def,shape:()=>K})}deepPartial(){return XP6(this)}partial(q){let K={};for(let _ of fz.objectKeys(this.shape)){let z=this.shape[_];if(q&&!q[_])K[_]=z;else K[_]=z.optional()}return new $H({...this._def,shape:()=>K})}required(q){let K={};for(let _ of fz.objectKeys(this.shape))if(q&&!q[_])K[_]=this.shape[_];else{let Y=this.shape[_];while(Y instanceof ux)Y=Y._def.innerType;K[_]=Y}return new $H({...this._def,shape:()=>K})}keyof(){return LX7(fz.objectKeys(this.shape))}};$H.create=(q,K)=>{return new $H({shape:()=>q,unknownKeys:"strip",catchall:wB.create(),typeName:j3.ZodObject,...l9(K)})};$H.strictCreate=(q,K)=>{return new $H({shape:()=>q,unknownKeys:"strict",catchall:wB.create(),typeName:j3.ZodObject,...l9(K)})};$H.lazycreate=(q,K)=>{return new $H({shape:q,unknownKeys:"strip",catchall:wB.create(),typeName:j3.ZodObject,...l9(K)})};ZP6=class ZP6 extends I_{_parse(q){let{ctx:K}=this._processInputParams(q),_=this._def.options;function z(Y){for(let A of Y)if(A.result.status==="valid")return A.result;for(let A of Y)if(A.result.status==="dirty")return K.common.issues.push(...A.ctx.common.issues),A.result;let $=Y.map((A)=>new pk(A.ctx.common.issues));return M4(K,{code:qq.invalid_union,unionErrors:$}),c5}if(K.common.async)return Promise.all(_.map(async(Y)=>{let $={...K,common:{...K.common,issues:[]},parent:null};return{result:await Y._parseAsync({data:K.data,path:K.path,parent:$}),ctx:$}})).then(z);else{let Y=void 0,$=[];for(let O of _){let w={...K,common:{...K.common,issues:[]},parent:null},j=O._parseSync({data:K.data,path:K.path,parent:w});if(j.status==="valid")return j;else if(j.status==="dirty"&&!Y)Y={result:j,ctx:w};if(w.common.issues.length)$.push(w.common.issues)}if(Y)return K.common.issues.push(...Y.ctx.common.issues),Y.result;let A=$.map((O)=>new pk(O));return M4(K,{code:qq.invalid_union,unionErrors:A}),c5}}get options(){return this._def.options}};ZP6.create=(q,K)=>{return new ZP6({options:q,typeName:j3.ZodUnion,...l9(K)})};g98=class g98 extends I_{_parse(q){let{ctx:K}=this._processInputParams(q);if(K.parsedType!==Iq.object)return M4(K,{code:qq.invalid_type,expected:Iq.object,received:K.parsedType}),c5;let _=this.discriminator,z=K.data[_],Y=this.optionsMap.get(z);if(!Y)return M4(K,{code:qq.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[_]}),c5;if(K.common.async)return Y._parseAsync({data:K.data,path:K.path,parent:K});else return Y._parseSync({data:K.data,path:K.path,parent:K})}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(q,K,_){let z=new Map;for(let Y of K){let $=gc(Y.shape[q]);if(!$.length)throw Error(`A discriminator value for key \`${q}\` could not be extracted from all schema options`);for(let A of $){if(z.has(A))throw Error(`Discriminator property ${String(q)} has duplicate value ${String(A)}`);z.set(A,Y)}}return new g98({typeName:j3.ZodDiscriminatedUnion,discriminator:q,options:K,optionsMap:z,...l9(_)})}};GP6=class GP6 extends I_{_parse(q){let{status:K,ctx:_}=this._processInputParams(q),z=(Y,$)=>{if(p98(Y)||p98($))return c5;let A=eo8(Y.value,$.value);if(!A.valid)return M4(_,{code:qq.invalid_intersection_types}),c5;if(B98(Y)||B98($))K.dirty();return{status:K.value,value:A.data}};if(_.common.async)return Promise.all([this._def.left._parseAsync({data:_.data,path:_.path,parent:_}),this._def.right._parseAsync({data:_.data,path:_.path,parent:_})]).then(([Y,$])=>z(Y,$));else return z(this._def.left._parseSync({data:_.data,path:_.path,parent:_}),this._def.right._parseSync({data:_.data,path:_.path,parent:_}))}};GP6.create=(q,K,_)=>{return new GP6({left:q,right:K,typeName:j3.ZodIntersection,...l9(_)})};jB=class jB extends I_{_parse(q){let{status:K,ctx:_}=this._processInputParams(q);if(_.parsedType!==Iq.array)return M4(_,{code:qq.invalid_type,expected:Iq.array,received:_.parsedType}),c5;if(_.data.length<this._def.items.length)return M4(_,{code:qq.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),c5;if(!this._def.rest&&_.data.length>this._def.items.length)M4(_,{code:qq.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),K.dirty();let Y=[..._.data].map(($,A)=>{let O=this._def.items[A]||this._def.rest;if(!O)return null;return O._parse(new mx(_,$,_.path,A))}).filter(($)=>!!$);if(_.common.async)return Promise.all(Y).then(($)=>{return Hf.mergeArray(K,$)});else return Hf.mergeArray(K,Y)}get items(){return this._def.items}rest(q){return new jB({...this._def,rest:q})}};jB.create=(q,K)=>{if(!Array.isArray(q))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new jB({items:q,typeName:j3.ZodTuple,rest:null,...l9(K)})};ZI6=class ZI6 extends I_{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(q){let{status:K,ctx:_}=this._processInputParams(q);if(_.parsedType!==Iq.object)return M4(_,{code:qq.invalid_type,expected:Iq.object,received:_.parsedType}),c5;let z=[],Y=this._def.keyType,$=this._def.valueType;for(let A in _.data)z.push({key:Y._parse(new mx(_,A,_.path,A)),value:$._parse(new mx(_,_.data[A],_.path,A)),alwaysSet:A in _.data});if(_.common.async)return Hf.mergeObjectAsync(K,z);else return Hf.mergeObjectSync(K,z)}get element(){return this._def.valueType}static create(q,K,_){if(K instanceof I_)return new ZI6({keyType:q,valueType:K,typeName:j3.ZodRecord,...l9(_)});return new ZI6({keyType:xx.create(),valueType:q,typeName:j3.ZodRecord,...l9(K)})}};GI6=class GI6 extends I_{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(q){let{status:K,ctx:_}=this._processInputParams(q);if(_.parsedType!==Iq.map)return M4(_,{code:qq.invalid_type,expected:Iq.map,received:_.parsedType}),c5;let z=this._def.keyType,Y=this._def.valueType,$=[..._.data.entries()].map(([A,O],w)=>{return{key:z._parse(new mx(_,A,_.path,[w,"key"])),value:Y._parse(new mx(_,O,_.path,[w,"value"]))}});if(_.common.async){let A=new Map;return Promise.resolve().then(async()=>{for(let O of $){let w=await O.key,j=await O.value;if(w.status==="aborted"||j.status==="aborted")return c5;if(w.status==="dirty"||j.status==="dirty")K.dirty();A.set(w.value,j.value)}return{status:K.value,value:A}})}else{let A=new Map;for(let O of $){let{key:w,value:j}=O;if(w.status==="aborted"||j.status==="aborted")return c5;if(w.status==="dirty"||j.status==="dirty")K.dirty();A.set(w.value,j.value)}return{status:K.value,value:A}}}};GI6.create=(q,K,_)=>{return new GI6({valueType:K,keyType:q,typeName:j3.ZodMap,...l9(_)})};G96=class G96 extends I_{_parse(q){let{status:K,ctx:_}=this._processInputParams(q);if(_.parsedType!==Iq.set)return M4(_,{code:qq.invalid_type,expected:Iq.set,received:_.parsedType}),c5;let z=this._def;if(z.minSize!==null){if(_.data.size<z.minSize.value)M4(_,{code:qq.too_small,minimum:z.minSize.value,type:"set",inclusive:!0,exact:!1,message:z.minSize.message}),K.dirty()}if(z.maxSize!==null){if(_.data.size>z.maxSize.value)M4(_,{code:qq.too_big,maximum:z.maxSize.value,type:"set",inclusive:!0,exact:!1,message:z.maxSize.message}),K.dirty()}let Y=this._def.valueType;function $(O){let w=new Set;for(let j of O){if(j.status==="aborted")return c5;if(j.status==="dirty")K.dirty();w.add(j.value)}return{status:K.value,value:w}}let A=[..._.data.values()].map((O,w)=>Y._parse(new mx(_,O,_.path,w)));if(_.common.async)return Promise.all(A).then((O)=>$(O));else return $(A)}min(q,K){return new G96({...this._def,minSize:{value:q,message:TK.toString(K)}})}max(q,K){return new G96({...this._def,maxSize:{value:q,message:TK.toString(K)}})}size(q,K){return this.min(q,K).max(q,K)}nonempty(q){return this.min(1,q)}};G96.create=(q,K)=>{return new G96({valueType:q,minSize:null,maxSize:null,typeName:j3.ZodSet,...l9(K)})};PP6=class PP6 extends I_{constructor(){super(...arguments);this.validate=this.implement}_parse(q){let{ctx:K}=this._processInputParams(q);if(K.parsedType!==Iq.function)return M4(K,{code:qq.invalid_type,expected:Iq.function,received:K.parsedType}),c5;function _(A,O){return WI6({data:A,path:K.path,errorMaps:[K.common.contextualErrorMap,K.schemaErrorMap,JP6(),Bc].filter((w)=>!!w),issueData:{code:qq.invalid_arguments,argumentsError:O}})}function z(A,O){return WI6({data:A,path:K.path,errorMaps:[K.common.contextualErrorMap,K.schemaErrorMap,JP6(),Bc].filter((w)=>!!w),issueData:{code:qq.invalid_return_type,returnTypeError:O}})}let Y={errorMap:K.common.contextualErrorMap},$=K.data;if(this._def.returns instanceof T96){let A=this;return RZ(async function(...O){let w=new pk([]),j=await A._def.args.parseAsync(O,Y).catch((M)=>{throw w.addIssue(_(O,M)),w}),H=await Reflect.apply($,this,j);return await A._def.returns._def.type.parseAsync(H,Y).catch((M)=>{throw w.addIssue(z(H,M)),w})})}else{let A=this;return RZ(function(...O){let w=A._def.args.safeParse(O,Y);if(!w.success)throw new pk([_(O,w.error)]);let j=Reflect.apply($,this,w.data),H=A._def.returns.safeParse(j,Y);if(!H.success)throw new pk([z(j,H.error)]);return H.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...q){return new PP6({...this._def,args:jB.create(q).rest(Ke.create())})}returns(q){return new PP6({...this._def,returns:q})}implement(q){return this.parse(q)}strictImplement(q){return this.parse(q)}static create(q,K,_){return new PP6({args:q?q:jB.create([]).rest(Ke.create()),returns:K||Ke.create(),typeName:j3.ZodFunction,...l9(_)})}};TP6=class TP6 extends I_{get schema(){return this._def.getter()}_parse(q){let{ctx:K}=this._processInputParams(q);return this._def.getter()._parse({data:K.data,path:K.path,parent:K})}};TP6.create=(q,K)=>{return new TP6({getter:q,typeName:j3.ZodLazy,...l9(K)})};vP6=class vP6 extends I_{_parse(q){if(q.data!==this._def.value){let K=this._getOrReturnCtx(q);return M4(K,{received:K.data,code:qq.invalid_literal,expected:this._def.value}),c5}return{status:"valid",value:q.data}}get value(){return this._def.value}};vP6.create=(q,K)=>{return new vP6({value:q,typeName:j3.ZodLiteral,...l9(K)})};Ye=class Ye extends I_{_parse(q){if(typeof q.data!=="string"){let K=this._getOrReturnCtx(q),_=this._def.values;return M4(K,{expected:fz.joinValues(_),received:K.parsedType,code:qq.invalid_type}),c5}if(!this._cache)this._cache=new Set(this._def.values);if(!this._cache.has(q.data)){let K=this._getOrReturnCtx(q),_=this._def.values;return M4(K,{received:K.data,code:qq.invalid_enum_value,options:_}),c5}return RZ(q.data)}get options(){return this._def.values}get enum(){let q={};for(let K of this._def.values)q[K]=K;return q}get Values(){let q={};for(let K of this._def.values)q[K]=K;return q}get Enum(){let q={};for(let K of this._def.values)q[K]=K;return q}extract(q,K=this._def){return Ye.create(q,{...this._def,...K})}exclude(q,K=this._def){return Ye.create(this.options.filter((_)=>!q.includes(_)),{...this._def,...K})}};Ye.create=LX7;kP6=class kP6 extends I_{_parse(q){let K=fz.getValidEnumValues(this._def.values),_=this._getOrReturnCtx(q);if(_.parsedType!==Iq.string&&_.parsedType!==Iq.number){let z=fz.objectValues(K);return M4(_,{expected:fz.joinValues(z),received:_.parsedType,code:qq.invalid_type}),c5}if(!this._cache)this._cache=new Set(fz.getValidEnumValues(this._def.values));if(!this._cache.has(q.data)){let z=fz.objectValues(K);return M4(_,{received:_.data,code:qq.invalid_enum_value,options:z}),c5}return RZ(q.data)}get enum(){return this._def.values}};kP6.create=(q,K)=>{return new kP6({values:q,typeName:j3.ZodNativeEnum,...l9(K)})};T96=class T96 extends I_{unwrap(){return this._def.type}_parse(q){let{ctx:K}=this._processInputParams(q);if(K.parsedType!==Iq.promise&&K.common.async===!1)return M4(K,{code:qq.invalid_type,expected:Iq.promise,received:K.parsedType}),c5;let _=K.parsedType===Iq.promise?K.data:Promise.resolve(K.data);return RZ(_.then((z)=>{return this._def.type.parseAsync(z,{path:K.path,errorMap:K.common.contextualErrorMap})}))}};T96.create=(q,K)=>{return new T96({type:q,typeName:j3.ZodPromise,...l9(K)})};px=class px extends I_{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===j3.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(q){let{status:K,ctx:_}=this._processInputParams(q),z=this._def.effect||null,Y={addIssue:($)=>{if(M4(_,$),$.fatal)K.abort();else K.dirty()},get path(){return _.path}};if(Y.addIssue=Y.addIssue.bind(Y),z.type==="preprocess"){let $=z.transform(_.data,Y);if(_.common.async)return Promise.resolve($).then(async(A)=>{if(K.value==="aborted")return c5;let O=await this._def.schema._parseAsync({data:A,path:_.path,parent:_});if(O.status==="aborted")return c5;if(O.status==="dirty")return D96(O.value);if(K.value==="dirty")return D96(O.value);return O});else{if(K.value==="aborted")return c5;let A=this._def.schema._parseSync({data:$,path:_.path,parent:_});if(A.status==="aborted")return c5;if(A.status==="dirty")return D96(A.value);if(K.value==="dirty")return D96(A.value);return A}}if(z.type==="refinement"){let $=(A)=>{let O=z.refinement(A,Y);if(_.common.async)return Promise.resolve(O);if(O instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return A};if(_.common.async===!1){let A=this._def.schema._parseSync({data:_.data,path:_.path,parent:_});if(A.status==="aborted")return c5;if(A.status==="dirty")K.dirty();return $(A.value),{status:K.value,value:A.value}}else return this._def.schema._parseAsync({data:_.data,path:_.path,parent:_}).then((A)=>{if(A.status==="aborted")return c5;if(A.status==="dirty")K.dirty();return $(A.value).then(()=>{return{status:K.value,value:A.value}})})}if(z.type==="transform")if(_.common.async===!1){let $=this._def.schema._parseSync({data:_.data,path:_.path,parent:_});if(!qe($))return c5;let A=z.transform($.value,Y);if(A instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:K.value,value:A}}else return this._def.schema._parseAsync({data:_.data,path:_.path,parent:_}).then(($)=>{if(!qe($))return c5;return Promise.resolve(z.transform($.value,Y)).then((A)=>({status:K.value,value:A}))});fz.assertNever(z)}};px.create=(q,K,_)=>{return new px({schema:q,typeName:j3.ZodEffects,effect:K,...l9(_)})};px.createWithPreprocess=(q,K,_)=>{return new px({schema:K,effect:{type:"preprocess",transform:q},typeName:j3.ZodEffects,...l9(_)})};ux=class ux extends I_{_parse(q){if(this._getType(q)===Iq.undefined)return RZ(void 0);return this._def.innerType._parse(q)}unwrap(){return this._def.innerType}};ux.create=(q,K)=>{return new ux({innerType:q,typeName:j3.ZodOptional,...l9(K)})};Fc=class Fc extends I_{_parse(q){if(this._getType(q)===Iq.null)return RZ(null);return this._def.innerType._parse(q)}unwrap(){return this._def.innerType}};Fc.create=(q,K)=>{return new Fc({innerType:q,typeName:j3.ZodNullable,...l9(K)})};VP6=class VP6 extends I_{_parse(q){let{ctx:K}=this._processInputParams(q),_=K.data;if(K.parsedType===Iq.undefined)_=this._def.defaultValue();return this._def.innerType._parse({data:_,path:K.path,parent:K})}removeDefault(){return this._def.innerType}};VP6.create=(q,K)=>{return new VP6({innerType:q,typeName:j3.ZodDefault,defaultValue:typeof K.default==="function"?K.default:()=>K.default,...l9(K)})};NP6=class NP6 extends I_{_parse(q){let{ctx:K}=this._processInputParams(q),_={...K,common:{...K.common,issues:[]}},z=this._def.innerType._parse({data:_.data,path:_.path,parent:{..._}});if(MP6(z))return z.then((Y)=>{return{status:"valid",value:Y.status==="valid"?Y.value:this._def.catchValue({get error(){return new pk(_.common.issues)},input:_.data})}});else return{status:"valid",value:z.status==="valid"?z.value:this._def.catchValue({get error(){return new pk(_.common.issues)},input:_.data})}}removeCatch(){return this._def.innerType}};NP6.create=(q,K)=>{return new NP6({innerType:q,typeName:j3.ZodCatch,catchValue:typeof K.catch==="function"?K.catch:()=>K.catch,...l9(K)})};TI6=class TI6 extends I_{_parse(q){if(this._getType(q)!==Iq.nan){let _=this._getOrReturnCtx(q);return M4(_,{code:qq.invalid_type,expected:Iq.nan,received:_.parsedType}),c5}return{status:"valid",value:q.data}}};TI6.create=(q)=>{return new TI6({typeName:j3.ZodNaN,...l9(q)})};hO5=Symbol("zod_brand");F98=class F98 extends I_{_parse(q){let{ctx:K}=this._processInputParams(q),_=K.data;return this._def.type._parse({data:_,path:K.path,parent:K})}unwrap(){return this._def.type}};vI6=class vI6 extends I_{_parse(q){let{status:K,ctx:_}=this._processInputParams(q);if(_.common.async)return(async()=>{let Y=await this._def.in._parseAsync({data:_.data,path:_.path,parent:_});if(Y.status==="aborted")return c5;if(Y.status==="dirty")return K.dirty(),D96(Y.value);else return this._def.out._parseAsync({data:Y.value,path:_.path,parent:_})})();else{let z=this._def.in._parseSync({data:_.data,path:_.path,parent:_});if(z.status==="aborted")return c5;if(z.status==="dirty")return K.dirty(),{status:"dirty",value:z.value};else return this._def.out._parseSync({data:z.value,path:_.path,parent:_})}}static create(q,K){return new vI6({in:q,out:K,typeName:j3.ZodPipeline})}};yP6=class yP6 extends I_{_parse(q){let K=this._def.innerType._parse(q),_=(z)=>{if(qe(z))z.value=Object.freeze(z.value);return z};return MP6(K)?K.then((z)=>_(z)):_(K)}unwrap(){return this._def.innerType}};yP6.create=(q,K)=>{return new yP6({innerType:q,typeName:j3.ZodReadonly,...l9(K)})};SO5={object:$H.lazycreate};(function(q){q.ZodString="ZodString",q.ZodNumber="ZodNumber",q.ZodNaN="ZodNaN",q.ZodBigInt="ZodBigInt",q.ZodBoolean="ZodBoolean",q.ZodDate="ZodDate",q.ZodSymbol="ZodSymbol",q.ZodUndefined="ZodUndefined",q.ZodNull="ZodNull",q.ZodAny="ZodAny",q.ZodUnknown="ZodUnknown",q.ZodNever="ZodNever",q.ZodVoid="ZodVoid",q.ZodArray="ZodArray",q.ZodObject="ZodObject",q.ZodUnion="ZodUnion",q.ZodDiscriminatedUnion="ZodDiscriminatedUnion",q.ZodIntersection="ZodIntersection",q.ZodTuple="ZodTuple",q.ZodRecord="ZodRecord",q.ZodMap="ZodMap",q.ZodSet="ZodSet",q.ZodFunction="ZodFunction",q.ZodLazy="ZodLazy",q.ZodLiteral="ZodLiteral",q.ZodEnum="ZodEnum",q.ZodEffects="ZodEffects",q.ZodNativeEnum="ZodNativeEnum",q.ZodOptional="ZodOptional",q.ZodNullable="ZodNullable",q.ZodDefault="ZodDefault",q.ZodCatch="ZodCatch",q.ZodPromise="ZodPromise",q.ZodBranded="ZodBranded",q.ZodPipeline="ZodPipeline",q.ZodReadonly="ZodReadonly"})(j3||(j3={}));c7=xx.create,zh=_e.create,bO5=TI6.create,xO5=ze.create,vW=WP6.create,IO5=f96.create,uO5=DI6.create,mO5=DP6.create,pO5=fP6.create,BO5=Z96.create,gO5=Ke.create,FO5=wB.create,UO5=fI6.create,qJ=Ix.create,HE=$H.create,JE=$H.strictCreate,v96=ZP6.create,QO5=g98.create,dO5=GP6.create,cO5=jB.create,Bx=ZI6.create,lO5=GI6.create,nO5=G96.create,iO5=PP6.create,rO5=TP6.create,oO5=vP6.create,gx=Ye.create,aO5=kP6.create,sO5=T96.create,tO5=px.create,eO5=ux.create,qw5=Fc.create,Kw5=px.createWithPreprocess,_w5=vI6.create,Aw5={string:(q)=>xx.create({...q,coerce:!0}),number:(q)=>_e.create({...q,coerce:!0}),boolean:(q)=>WP6.create({...q,coerce:!0}),bigint:(q)=>ze.create({...q,coerce:!0}),date:(q)=>f96.create({...q,coerce:!0})},Ow5=c5});var Y5={};T8(Y5,{void:()=>UO5,util:()=>fz,unknown:()=>gO5,union:()=>v96,undefined:()=>mO5,tuple:()=>cO5,transformer:()=>tO5,symbol:()=>uO5,string:()=>c7,strictObject:()=>JE,setErrorMap:()=>AO5,set:()=>nO5,record:()=>Bx,quotelessJson:()=>YO5,promise:()=>sO5,preprocess:()=>Kw5,pipeline:()=>_w5,ostring:()=>zw5,optional:()=>eO5,onumber:()=>Yw5,oboolean:()=>$w5,objectUtil:()=>oo8,object:()=>HE,number:()=>zh,nullable:()=>qw5,null:()=>pO5,never:()=>FO5,nativeEnum:()=>aO5,nan:()=>bO5,map:()=>lO5,makeIssue:()=>WI6,literal:()=>oO5,lazy:()=>rO5,late:()=>SO5,isValid:()=>qe,isDirty:()=>B98,isAsync:()=>MP6,isAborted:()=>p98,intersection:()=>dO5,instanceof:()=>CO5,getParsedType:()=>OB,getErrorMap:()=>JP6,function:()=>iO5,enum:()=>gx,effect:()=>tO5,discriminatedUnion:()=>QO5,defaultErrorMap:()=>Bc,datetimeRegex:()=>EX7,date:()=>IO5,custom:()=>RX7,coerce:()=>Aw5,boolean:()=>vW,bigint:()=>xO5,array:()=>qJ,any:()=>BO5,addIssueToContext:()=>M4,ZodVoid:()=>fI6,ZodUnknown:()=>Ke,ZodUnion:()=>ZP6,ZodUndefined:()=>DP6,ZodType:()=>I_,ZodTuple:()=>jB,ZodTransformer:()=>px,ZodSymbol:()=>DI6,ZodString:()=>xx,ZodSet:()=>G96,ZodSchema:()=>I_,ZodRecord:()=>ZI6,ZodReadonly:()=>yP6,ZodPromise:()=>T96,ZodPipeline:()=>vI6,ZodParsedType:()=>Iq,ZodOptional:()=>ux,ZodObject:()=>$H,ZodNumber:()=>_e,ZodNullable:()=>Fc,ZodNull:()=>fP6,ZodNever:()=>wB,ZodNativeEnum:()=>kP6,ZodNaN:()=>TI6,ZodMap:()=>GI6,ZodLiteral:()=>vP6,ZodLazy:()=>TP6,ZodIssueCode:()=>qq,ZodIntersection:()=>GP6,ZodFunction:()=>PP6,ZodFirstPartyTypeKind:()=>j3,ZodError:()=>pk,ZodEnum:()=>Ye,ZodEffects:()=>px,ZodDiscriminatedUnion:()=>g98,ZodDefault:()=>VP6,ZodDate:()=>f96,ZodCatch:()=>NP6,ZodBranded:()=>F98,ZodBoolean:()=>WP6,ZodBigInt:()=>ze,ZodArray:()=>Ix,ZodAny:()=>Z96,Schema:()=>I_,ParseStatus:()=>Hf,OK:()=>RZ,NEVER:()=>Ow5,INVALID:()=>c5,EMPTY_PATH:()=>OO5,DIRTY:()=>D96,BRAND:()=>hO5});var qa8=y(()=>{m98();so8();TX7();PI6();hX7();u98()});function f1(q,K,_){function z(O,w){var j;Object.defineProperty(O,"_zod",{value:O._zod??{},enumerable:!1}),(j=O._zod).traits??(j.traits=new Set),O._zod.traits.add(q),K(O,w);for(let H in A.prototype)if(!(H in O))Object.defineProperty(O,H,{value:A.prototype[H].bind(O)});O._zod.constr=A,O._zod.def=w}let Y=_?.Parent??Object;class $ extends Y{}Object.defineProperty($,"name",{value:q});function A(O){var w;let j=_?.Parent?new $:this;z(j,O),(w=j._zod).deferred??(w.deferred=[]);for(let H of j._zod.deferred)H();return j}return Object.defineProperty(A,"init",{value:z}),Object.defineProperty(A,Symbol.hasInstance,{value:(O)=>{if(_?.Parent&&O instanceof _.Parent)return!0;return O?._zod?.traits?.has(q)}}),Object.defineProperty(A,"name",{value:q}),A}function dM(q){if(q)Object.assign(kI6,q);return kI6}var VI6,Ka8,Uc,kI6;var EP6=y(()=>{VI6=Object.freeze({status:"aborted"});Ka8=Symbol("zod_brand");Uc=class Uc extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}};kI6={}});var dq={};T8(dq,{unwrapMessage:()=>NI6,stringifyPrimitive:()=>oq,required:()=>Nw5,randomString:()=>Ww5,propertyKeyTypes:()=>RI6,promiseAllObject:()=>Pw5,primitiveTypes:()=>Oa8,prefixIssues:()=>Bk,pick:()=>Gw5,partial:()=>Vw5,optionalKeys:()=>wa8,omit:()=>Tw5,numKeys:()=>Dw5,nullish:()=>$e,normalizeParams:()=>Lq,merge:()=>kw5,jsonStringifyReplacer:()=>za8,joinValues:()=>D7,issue:()=>Ja8,isPlainObject:()=>RP6,isObject:()=>LP6,getSizableOrigin:()=>hI6,getParsedType:()=>fw5,getLengthableOrigin:()=>SI6,getEnumValues:()=>yI6,getElementAtPath:()=>Xw5,floatSafeRemainder:()=>Ya8,finalizeIssue:()=>XE,extend:()=>vw5,escapeRegex:()=>Qc,esc:()=>k96,defineLazy:()=>U$,createTransparentProxy:()=>Zw5,clone:()=>ME,cleanRegex:()=>LI6,cleanEnum:()=>yw5,captureStackTrace:()=>U98,cached:()=>EI6,assignProp:()=>$a8,assertNotEqual:()=>jw5,assertNever:()=>Jw5,assertIs:()=>Hw5,assertEqual:()=>ww5,assert:()=>Mw5,allowsEval:()=>Aa8,aborted:()=>V96,NUMBER_FORMAT_RANGES:()=>ja8,Class:()=>SX7,BIGINT_FORMAT_RANGES:()=>Ha8});function ww5(q){return q}function jw5(q){return q}function Hw5(q){}function Jw5(q){throw Error()}function Mw5(q){}function yI6(q){let K=Object.values(q).filter((z)=>typeof z==="number");return Object.entries(q).filter(([z,Y])=>K.indexOf(+z)===-1).map(([z,Y])=>Y)}function D7(q,K="|"){return q.map((_)=>oq(_)).join(K)}function za8(q,K){if(typeof K==="bigint")return K.toString();return K}function EI6(q){return{get value(){{let _=q();return Object.defineProperty(this,"value",{value:_}),_}throw Error("cached value already set")}}}function $e(q){return q===null||q===void 0}function LI6(q){let K=q.startsWith("^")?1:0,_=q.endsWith("$")?q.length-1:q.length;return q.slice(K,_)}function Ya8(q,K){let _=(q.toString().split(".")[1]||"").length,z=(K.toString().split(".")[1]||"").length,Y=_>z?_:z,$=Number.parseInt(q.toFixed(Y).replace(".","")),A=Number.parseInt(K.toFixed(Y).replace(".",""));return $%A/10**Y}function U$(q,K,_){Object.defineProperty(q,K,{get(){{let Y=_();return q[K]=Y,Y}throw Error("cached value already set")},set(Y){Object.defineProperty(q,K,{value:Y})},configurable:!0})}function $a8(q,K,_){Object.defineProperty(q,K,{value:_,writable:!0,enumerable:!0,configurable:!0})}function Xw5(q,K){if(!K)return q;return K.reduce((_,z)=>_?.[z],q)}function Pw5(q){let K=Object.keys(q),_=K.map((z)=>q[z]);return Promise.all(_).then((z)=>{let Y={};for(let $=0;$<K.length;$++)Y[K[$]]=z[$];return Y})}function Ww5(q=10){let _="";for(let z=0;z<q;z++)_+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return _}function k96(q){return JSON.stringify(q)}function LP6(q){return typeof q==="object"&&q!==null&&!Array.isArray(q)}function RP6(q){if(LP6(q)===!1)return!1;let K=q.constructor;if(K===void 0)return!0;let _=K.prototype;if(LP6(_)===!1)return!1;if(Object.prototype.hasOwnProperty.call(_,"isPrototypeOf")===!1)return!1;return!0}function Dw5(q){let K=0;for(let _ in q)if(Object.prototype.hasOwnProperty.call(q,_))K++;return K}function Qc(q){return q.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ME(q,K,_){let z=new q._zod.constr(K??q._zod.def);if(!K||_?.parent)z._zod.parent=q;return z}function Lq(q){let K=q;if(!K)return{};if(typeof K==="string")return{error:()=>K};if(K?.message!==void 0){if(K?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");K.error=K.message}if(delete K.message,typeof K.error==="string")return{...K,error:()=>K.error};return K}function Zw5(q){let K;return new Proxy({},{get(_,z,Y){return K??(K=q()),Reflect.get(K,z,Y)},set(_,z,Y,$){return K??(K=q()),Reflect.set(K,z,Y,$)},has(_,z){return K??(K=q()),Reflect.has(K,z)},deleteProperty(_,z){return K??(K=q()),Reflect.deleteProperty(K,z)},ownKeys(_){return K??(K=q()),Reflect.ownKeys(K)},getOwnPropertyDescriptor(_,z){return K??(K=q()),Reflect.getOwnPropertyDescriptor(K,z)},defineProperty(_,z,Y){return K??(K=q()),Reflect.defineProperty(K,z,Y)}})}function oq(q){if(typeof q==="bigint")return q.toString()+"n";if(typeof q==="string")return`"${q}"`;return`${q}`}function wa8(q){return Object.keys(q).filter((K)=>{return q[K]._zod.optin==="optional"&&q[K]._zod.optout==="optional"})}function Gw5(q,K){let _={},z=q._zod.def;for(let Y in K){if(!(Y in z.shape))throw Error(`Unrecognized key: "${Y}"`);if(!K[Y])continue;_[Y]=z.shape[Y]}return ME(q,{...q._zod.def,shape:_,checks:[]})}function Tw5(q,K){let _={...q._zod.def.shape},z=q._zod.def;for(let Y in K){if(!(Y in z.shape))throw Error(`Unrecognized key: "${Y}"`);if(!K[Y])continue;delete _[Y]}return ME(q,{...q._zod.def,shape:_,checks:[]})}function vw5(q,K){if(!RP6(K))throw Error("Invalid input to extend: expected a plain object");let _={...q._zod.def,get shape(){let z={...q._zod.def.shape,...K};return $a8(this,"shape",z),z},checks:[]};return ME(q,_)}function kw5(q,K){return ME(q,{...q._zod.def,get shape(){let _={...q._zod.def.shape,...K._zod.def.shape};return $a8(this,"shape",_),_},catchall:K._zod.def.catchall,checks:[]})}function Vw5(q,K,_){let z=K._zod.def.shape,Y={...z};if(_)for(let $ in _){if(!($ in z))throw Error(`Unrecognized key: "${$}"`);if(!_[$])continue;Y[$]=q?new q({type:"optional",innerType:z[$]}):z[$]}else for(let $ in z)Y[$]=q?new q({type:"optional",innerType:z[$]}):z[$];return ME(K,{...K._zod.def,shape:Y,checks:[]})}function Nw5(q,K,_){let z=K._zod.def.shape,Y={...z};if(_)for(let $ in _){if(!($ in Y))throw Error(`Unrecognized key: "${$}"`);if(!_[$])continue;Y[$]=new q({type:"nonoptional",innerType:z[$]})}else for(let $ in z)Y[$]=new q({type:"nonoptional",innerType:z[$]});return ME(K,{...K._zod.def,shape:Y,checks:[]})}function V96(q,K=0){for(let _=K;_<q.issues.length;_++)if(q.issues[_]?.continue!==!0)return!0;return!1}function Bk(q,K){return K.map((_)=>{var z;return(z=_).path??(z.path=[]),_.path.unshift(q),_})}function NI6(q){return typeof q==="string"?q:q?.message}function XE(q,K,_){let z={...q,path:q.path??[]};if(!q.message){let Y=NI6(q.inst?._zod.def?.error?.(q))??NI6(K?.error?.(q))??NI6(_.customError?.(q))??NI6(_.localeError?.(q))??"Invalid input";z.message=Y}if(delete z.inst,delete z.continue,!K?.reportInput)delete z.input;return z}function hI6(q){if(q instanceof Set)return"set";if(q instanceof Map)return"map";if(q instanceof File)return"file";return"unknown"}function SI6(q){if(Array.isArray(q))return"array";if(typeof q==="string")return"string";return"unknown"}function Ja8(...q){let[K,_,z]=q;if(typeof K==="string")return{message:K,code:"custom",input:_,inst:z};return{...K}}function yw5(q){return Object.entries(q).filter(([K,_])=>{return Number.isNaN(Number.parseInt(K,10))}).map((K)=>K[1])}class SX7{constructor(...q){}}var U98,Aa8,fw5=(q)=>{let K=typeof q;switch(K){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(q)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(q))return"array";if(q===null)return"null";if(q.then&&typeof q.then==="function"&&q.catch&&typeof q.catch==="function")return"promise";if(typeof Map<"u"&&q instanceof Map)return"map";if(typeof Set<"u"&&q instanceof Set)return"set";if(typeof Date<"u"&&q instanceof Date)return"date";if(typeof File<"u"&&q instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${K}`)}},RI6,Oa8,ja8,Ha8;var y3=y(()=>{U98=Error.captureStackTrace?Error.captureStackTrace:(...q)=>{};Aa8=EI6(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(q){return!1}});RI6=new Set(["string","number","symbol"]),Oa8=new Set(["string","number","bigint","boolean","symbol","undefined"]);ja8={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Ha8={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]}});function bI6(q,K=(_)=>_.message){let _={},z=[];for(let Y of q.issues)if(Y.path.length>0)_[Y.path[0]]=_[Y.path[0]]||[],_[Y.path[0]].push(K(Y));else z.push(K(Y));return{formErrors:z,fieldErrors:_}}function xI6(q,K){let _=K||function($){return $.message},z={_errors:[]},Y=($)=>{for(let A of $.issues)if(A.code==="invalid_union"&&A.errors.length)A.errors.map((O)=>Y({issues:O}));else if(A.code==="invalid_key")Y({issues:A.issues});else if(A.code==="invalid_element")Y({issues:A.issues});else if(A.path.length===0)z._errors.push(_(A));else{let O=z,w=0;while(w<A.path.length){let j=A.path[w];if(w!==A.path.length-1)O[j]=O[j]||{_errors:[]};else O[j]=O[j]||{_errors:[]},O[j]._errors.push(_(A));O=O[j],w++}}};return Y(q),z}function Ma8(q,K){let _=K||function($){return $.message},z={errors:[]},Y=($,A=[])=>{var O,w;for(let j of $.issues)if(j.code==="invalid_union"&&j.errors.length)j.errors.map((H)=>Y({issues:H},j.path));else if(j.code==="invalid_key")Y({issues:j.issues},j.path);else if(j.code==="invalid_element")Y({issues:j.issues},j.path);else{let H=[...A,...j.path];if(H.length===0){z.errors.push(_(j));continue}let J=z,M=0;while(M<H.length){let X=H[M],P=M===H.length-1;if(typeof X==="string")J.properties??(J.properties={}),(O=J.properties)[X]??(O[X]={errors:[]}),J=J.properties[X];else J.items??(J.items=[]),(w=J.items)[X]??(w[X]={errors:[]}),J=J.items[X];if(P)J.errors.push(_(j));M++}}};return Y(q),z}function bX7(q){let K=[];for(let _ of q)if(typeof _==="number")K.push(`[${_}]`);else if(typeof _==="symbol")K.push(`[${JSON.stringify(String(_))}]`);else if(/[^\w$]/.test(_))K.push(`[${JSON.stringify(_)}]`);else{if(K.length)K.push(".");K.push(_)}return K.join("")}function Xa8(q){let K=[],_=[...q.issues].sort((z,Y)=>z.path.length-Y.path.length);for(let z of _)if(K.push(`✖ ${z.message}`),z.path?.length)K.push(` → at ${bX7(z.path)}`);return K.join(`
67`)}var CX7=(q,K)=>{q.name="$ZodError",Object.defineProperty(q,"_zod",{value:q._zod,enumerable:!1}),Object.defineProperty(q,"issues",{value:K,enumerable:!1}),Object.defineProperty(q,"message",{get(){return JSON.stringify(K,za8,2)},enumerable:!0})},CI6,hP6;var Pa8=y(()=>{EP6();y3();CI6=f1("$ZodError",CX7),hP6=f1("$ZodError",CX7,{Parent:Error})});var Q98=(q)=>(K,_,z,Y)=>{let $=z?Object.assign(z,{async:!1}):{async:!1},A=K._zod.run({value:_,issues:[]},$);if(A instanceof Promise)throw new Uc;if(A.issues.length){let O=new(Y?.Err??q)(A.issues.map((w)=>XE(w,$,dM())));throw U98(O,Y?.callee),O}return A.value},II6,d98=(q)=>async(K,_,z,Y)=>{let $=z?Object.assign(z,{async:!0}):{async:!0},A=K._zod.run({value:_,issues:[]},$);if(A instanceof Promise)A=await A;if(A.issues.length){let O=new(Y?.Err??q)(A.issues.map((w)=>XE(w,$,dM())));throw U98(O,Y?.callee),O}return A.value},uI6,c98=(q)=>(K,_,z)=>{let Y=z?{...z,async:!1}:{async:!1},$=K._zod.run({value:_,issues:[]},Y);if($ instanceof Promise)throw new Uc;return $.issues.length?{success:!1,error:new(q??CI6)($.issues.map((A)=>XE(A,Y,dM())))}:{success:!0,data:$.value}},SP6,l98=(q)=>async(K,_,z)=>{let Y=z?Object.assign(z,{async:!0}):{async:!0},$=K._zod.run({value:_,issues:[]},Y);if($ instanceof Promise)$=await $;return $.issues.length?{success:!1,error:new q($.issues.map((A)=>XE(A,Y,dM())))}:{success:!0,data:$.value}},mI6;var n98=y(()=>{EP6();Pa8();y3();II6=Q98(hP6),uI6=d98(hP6),SP6=c98(hP6),mI6=l98(hP6)});var y96={};T8(y96,{xid:()=>Za8,uuid7:()=>Sw5,uuid6:()=>hw5,uuid4:()=>Rw5,uuid:()=>N96,uppercase:()=>da8,unicodeEmail:()=>xw5,undefined:()=>Ua8,ulid:()=>fa8,time:()=>xa8,string:()=>ua8,rfc5322Email:()=>bw5,number:()=>Ba8,null:()=>Fa8,nanoid:()=>Ta8,lowercase:()=>Qa8,ksuid:()=>Ga8,ipv6:()=>Ea8,ipv4:()=>ya8,integer:()=>pa8,html5Email:()=>Cw5,hostname:()=>Sa8,guid:()=>ka8,extendedDuration:()=>Lw5,emoji:()=>Na8,email:()=>Va8,e164:()=>Ca8,duration:()=>va8,domain:()=>mw5,datetime:()=>Ia8,date:()=>ba8,cuid2:()=>Da8,cuid:()=>Wa8,cidrv6:()=>Ra8,cidrv4:()=>La8,browserEmail:()=>Iw5,boolean:()=>ga8,bigint:()=>ma8,base64url:()=>i98,base64:()=>ha8,_emoji:()=>uw5});function Na8(){return new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")}function IX7(q){return typeof q.precision==="number"?q.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":q.precision===0?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${q.precision}}`:"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function xa8(q){return new RegExp(`^${IX7(q)}$`)}function Ia8(q){let K=IX7({precision:q.precision}),_=["Z"];if(q.local)_.push("");if(q.offset)_.push("([+-]\\d{2}:\\d{2})");let z=`${K}(?:${_.join("|")})`;return new RegExp(`^${xX7}T(?:${z})$`)}var Wa8,Da8,fa8,Za8,Ga8,Ta8,va8,Lw5,ka8,N96=(q)=>{if(!q)return/^([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)$/;return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${q}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`)},Rw5,hw5,Sw5,Va8,Cw5,bw5,xw5,Iw5,uw5="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",ya8,Ea8,La8,Ra8,ha8,i98,Sa8,mw5,Ca8,xX7="(?:(?:\\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])))",ba8,ua8=(q)=>{let K=q?`[\\s\\S]{${q?.minimum??0},${q?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${K}$`)},ma8,pa8,Ba8,ga8,Fa8,Ua8,Qa8,da8;var r98=y(()=>{Wa8=/^[cC][^\s-]{8,}$/,Da8=/^[0-9a-z]+$/,fa8=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Za8=/^[0-9a-vA-V]{20}$/,Ga8=/^[A-Za-z0-9]{27}$/,Ta8=/^[a-zA-Z0-9_-]{21}$/,va8=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Lw5=/^[-+]?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)?)??$/,ka8=/^([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})$/,Rw5=N96(4),hw5=N96(6),Sw5=N96(7),Va8=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Cw5=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,bw5=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,xw5=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Iw5=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;ya8=/^(?:(?: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])$/,Ea8=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,La8=/^((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])$/,Ra8=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ha8=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,i98=/^[A-Za-z0-9_-]*$/,Sa8=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,mw5=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Ca8=/^\+(?:[0-9]){6,14}[0-9]$/,ba8=new RegExp(`^${xX7}$`);ma8=/^\d+n?$/,pa8=/^\d+$/,Ba8=/^-?\d+(?:\.\d+)?/i,ga8=/true|false/i,Fa8=/null/i,Ua8=/undefined/i,Qa8=/^[^A-Z]*$/,da8=/^[^a-z]*$/});function uX7(q,K,_){if(q.issues.length)K.issues.push(...Bk(_,q.issues))}var AH,mX7,o98,a98,ca8,la8,na8,ia8,ra8,oa8,aa8,sa8,ta8,CP6,ea8,qs8,Ks8,_s8,zs8,Ys8,$s8,As8,Os8;var s98=y(()=>{EP6();r98();y3();AH=f1("$ZodCheck",(q,K)=>{var _;q._zod??(q._zod={}),q._zod.def=K,(_=q._zod).onattach??(_.onattach=[])}),mX7={number:"number",bigint:"bigint",object:"date"},o98=f1("$ZodCheckLessThan",(q,K)=>{AH.init(q,K);let _=mX7[typeof K.value];q._zod.onattach.push((z)=>{let Y=z._zod.bag,$=(K.inclusive?Y.maximum:Y.exclusiveMaximum)??Number.POSITIVE_INFINITY;if(K.value<$)if(K.inclusive)Y.maximum=K.value;else Y.exclusiveMaximum=K.value}),q._zod.check=(z)=>{if(K.inclusive?z.value<=K.value:z.value<K.value)return;z.issues.push({origin:_,code:"too_big",maximum:K.value,input:z.value,inclusive:K.inclusive,inst:q,continue:!K.abort})}}),a98=f1("$ZodCheckGreaterThan",(q,K)=>{AH.init(q,K);let _=mX7[typeof K.value];q._zod.onattach.push((z)=>{let Y=z._zod.bag,$=(K.inclusive?Y.minimum:Y.exclusiveMinimum)??Number.NEGATIVE_INFINITY;if(K.value>$)if(K.inclusive)Y.minimum=K.value;else Y.exclusiveMinimum=K.value}),q._zod.check=(z)=>{if(K.inclusive?z.value>=K.value:z.value>K.value)return;z.issues.push({origin:_,code:"too_small",minimum:K.value,input:z.value,inclusive:K.inclusive,inst:q,continue:!K.abort})}}),ca8=f1("$ZodCheckMultipleOf",(q,K)=>{AH.init(q,K),q._zod.onattach.push((_)=>{var z;(z=_._zod.bag).multipleOf??(z.multipleOf=K.value)}),q._zod.check=(_)=>{if(typeof _.value!==typeof K.value)throw Error("Cannot mix number and bigint in multiple_of check.");if(typeof _.value==="bigint"?_.value%K.value===BigInt(0):Ya8(_.value,K.value)===0)return;_.issues.push({origin:typeof _.value,code:"not_multiple_of",divisor:K.value,input:_.value,inst:q,continue:!K.abort})}}),la8=f1("$ZodCheckNumberFormat",(q,K)=>{AH.init(q,K),K.format=K.format||"float64";let _=K.format?.includes("int"),z=_?"int":"number",[Y,$]=ja8[K.format];q._zod.onattach.push((A)=>{let O=A._zod.bag;if(O.format=K.format,O.minimum=Y,O.maximum=$,_)O.pattern=pa8}),q._zod.check=(A)=>{let O=A.value;if(_){if(!Number.isInteger(O)){A.issues.push({expected:z,format:K.format,code:"invalid_type",input:O,inst:q});return}if(!Number.isSafeInteger(O)){if(O>0)A.issues.push({input:O,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:q,origin:z,continue:!K.abort});else A.issues.push({input:O,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:q,origin:z,continue:!K.abort});return}}if(O<Y)A.issues.push({origin:"number",input:O,code:"too_small",minimum:Y,inclusive:!0,inst:q,continue:!K.abort});if(O>$)A.issues.push({origin:"number",input:O,code:"too_big",maximum:$,inst:q})}}),na8=f1("$ZodCheckBigIntFormat",(q,K)=>{AH.init(q,K);let[_,z]=Ha8[K.format];q._zod.onattach.push((Y)=>{let $=Y._zod.bag;$.format=K.format,$.minimum=_,$.maximum=z}),q._zod.check=(Y)=>{let $=Y.value;if($<_)Y.issues.push({origin:"bigint",input:$,code:"too_small",minimum:_,inclusive:!0,inst:q,continue:!K.abort});if($>z)Y.issues.push({origin:"bigint",input:$,code:"too_big",maximum:z,inst:q})}}),ia8=f1("$ZodCheckMaxSize",(q,K)=>{AH.init(q,K),q._zod.when=(_)=>{let z=_.value;return!$e(z)&&z.size!==void 0},q._zod.onattach.push((_)=>{let z=_._zod.bag.maximum??Number.POSITIVE_INFINITY;if(K.maximum<z)_._zod.bag.maximum=K.maximum}),q._zod.check=(_)=>{let z=_.value;if(z.size<=K.maximum)return;_.issues.push({origin:hI6(z),code:"too_big",maximum:K.maximum,input:z,inst:q,continue:!K.abort})}}),ra8=f1("$ZodCheckMinSize",(q,K)=>{AH.init(q,K),q._zod.when=(_)=>{let z=_.value;return!$e(z)&&z.size!==void 0},q._zod.onattach.push((_)=>{let z=_._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(K.minimum>z)_._zod.bag.minimum=K.minimum}),q._zod.check=(_)=>{let z=_.value;if(z.size>=K.minimum)return;_.issues.push({origin:hI6(z),code:"too_small",minimum:K.minimum,input:z,inst:q,continue:!K.abort})}}),oa8=f1("$ZodCheckSizeEquals",(q,K)=>{AH.init(q,K),q._zod.when=(_)=>{let z=_.value;return!$e(z)&&z.size!==void 0},q._zod.onattach.push((_)=>{let z=_._zod.bag;z.minimum=K.size,z.maximum=K.size,z.size=K.size}),q._zod.check=(_)=>{let z=_.value,Y=z.size;if(Y===K.size)return;let $=Y>K.size;_.issues.push({origin:hI6(z),...$?{code:"too_big",maximum:K.size}:{code:"too_small",minimum:K.size},inclusive:!0,exact:!0,input:_.value,inst:q,continue:!K.abort})}}),aa8=f1("$ZodCheckMaxLength",(q,K)=>{AH.init(q,K),q._zod.when=(_)=>{let z=_.value;return!$e(z)&&z.length!==void 0},q._zod.onattach.push((_)=>{let z=_._zod.bag.maximum??Number.POSITIVE_INFINITY;if(K.maximum<z)_._zod.bag.maximum=K.maximum}),q._zod.check=(_)=>{let z=_.value;if(z.length<=K.maximum)return;let $=SI6(z);_.issues.push({origin:$,code:"too_big",maximum:K.maximum,inclusive:!0,input:z,inst:q,continue:!K.abort})}}),sa8=f1("$ZodCheckMinLength",(q,K)=>{AH.init(q,K),q._zod.when=(_)=>{let z=_.value;return!$e(z)&&z.length!==void 0},q._zod.onattach.push((_)=>{let z=_._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(K.minimum>z)_._zod.bag.minimum=K.minimum}),q._zod.check=(_)=>{let z=_.value;if(z.length>=K.minimum)return;let $=SI6(z);_.issues.push({origin:$,code:"too_small",minimum:K.minimum,inclusive:!0,input:z,inst:q,continue:!K.abort})}}),ta8=f1("$ZodCheckLengthEquals",(q,K)=>{AH.init(q,K),q._zod.when=(_)=>{let z=_.value;return!$e(z)&&z.length!==void 0},q._zod.onattach.push((_)=>{let z=_._zod.bag;z.minimum=K.length,z.maximum=K.length,z.length=K.length}),q._zod.check=(_)=>{let z=_.value,Y=z.length;if(Y===K.length)return;let $=SI6(z),A=Y>K.length;_.issues.push({origin:$,...A?{code:"too_big",maximum:K.length}:{code:"too_small",minimum:K.length},inclusive:!0,exact:!0,input:_.value,inst:q,continue:!K.abort})}}),CP6=f1("$ZodCheckStringFormat",(q,K)=>{var _,z;if(AH.init(q,K),q._zod.onattach.push((Y)=>{let $=Y._zod.bag;if($.format=K.format,K.pattern)$.patterns??($.patterns=new Set),$.patterns.add(K.pattern)}),K.pattern)(_=q._zod).check??(_.check=(Y)=>{if(K.pattern.lastIndex=0,K.pattern.test(Y.value))return;Y.issues.push({origin:"string",code:"invalid_format",format:K.format,input:Y.value,...K.pattern?{pattern:K.pattern.toString()}:{},inst:q,continue:!K.abort})});else(z=q._zod).check??(z.check=()=>{})}),ea8=f1("$ZodCheckRegex",(q,K)=>{CP6.init(q,K),q._zod.check=(_)=>{if(K.pattern.lastIndex=0,K.pattern.test(_.value))return;_.issues.push({origin:"string",code:"invalid_format",format:"regex",input:_.value,pattern:K.pattern.toString(),inst:q,continue:!K.abort})}}),qs8=f1("$ZodCheckLowerCase",(q,K)=>{K.pattern??(K.pattern=Qa8),CP6.init(q,K)}),Ks8=f1("$ZodCheckUpperCase",(q,K)=>{K.pattern??(K.pattern=da8),CP6.init(q,K)}),_s8=f1("$ZodCheckIncludes",(q,K)=>{AH.init(q,K);let _=Qc(K.includes),z=new RegExp(typeof K.position==="number"?`^.{${K.position}}${_}`:_);K.pattern=z,q._zod.onattach.push((Y)=>{let $=Y._zod.bag;$.patterns??($.patterns=new Set),$.patterns.add(z)}),q._zod.check=(Y)=>{if(Y.value.includes(K.includes,K.position))return;Y.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:K.includes,input:Y.value,inst:q,continue:!K.abort})}}),zs8=f1("$ZodCheckStartsWith",(q,K)=>{AH.init(q,K);let _=new RegExp(`^${Qc(K.prefix)}.*`);K.pattern??(K.pattern=_),q._zod.onattach.push((z)=>{let Y=z._zod.bag;Y.patterns??(Y.patterns=new Set),Y.patterns.add(_)}),q._zod.check=(z)=>{if(z.value.startsWith(K.prefix))return;z.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:K.prefix,input:z.value,inst:q,continue:!K.abort})}}),Ys8=f1("$ZodCheckEndsWith",(q,K)=>{AH.init(q,K);let _=new RegExp(`.*${Qc(K.suffix)}$`);K.pattern??(K.pattern=_),q._zod.onattach.push((z)=>{let Y=z._zod.bag;Y.patterns??(Y.patterns=new Set),Y.patterns.add(_)}),q._zod.check=(z)=>{if(z.value.endsWith(K.suffix))return;z.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:K.suffix,input:z.value,inst:q,continue:!K.abort})}});$s8=f1("$ZodCheckProperty",(q,K)=>{AH.init(q,K),q._zod.check=(_)=>{let z=K.schema._zod.run({value:_.value[K.property],issues:[]},{});if(z instanceof Promise)return z.then((Y)=>uX7(Y,_,K.property));uX7(z,_,K.property);return}}),As8=f1("$ZodCheckMimeType",(q,K)=>{AH.init(q,K);let _=new Set(K.mime);q._zod.onattach.push((z)=>{z._zod.bag.mime=K.mime}),q._zod.check=(z)=>{if(_.has(z.value.type))return;z.issues.push({code:"invalid_value",values:K.mime,input:z.value.type,inst:q})}}),Os8=f1("$ZodCheckOverwrite",(q,K)=>{AH.init(q,K),q._zod.check=(_)=>{_.value=K.tx(_.value)}})});class t98{constructor(q=[]){if(this.content=[],this.indent=0,this)this.args=q}indented(q){this.indent+=1,q(this),this.indent-=1}write(q){if(typeof q==="function"){q(this,{execution:"sync"}),q(this,{execution:"async"});return}let _=q.split(`
68`).filter(($)=>$),z=Math.min(..._.map(($)=>$.length-$.trimStart().length)),Y=_.map(($)=>$.slice(z)).map(($)=>" ".repeat(this.indent*2)+$);for(let $ of Y)this.content.push($)}compile(){let q=Function,K=this?.args,z=[...(this?.content??[""]).map((Y)=>` ${Y}`)];return new q(...K,z.join(`
69`))}}var ws8;var js8=y(()=>{ws8={major:4,minor:0,patch:0}});function Ss8(q){if(q==="")return!0;if(q.length%4!==0)return!1;try{return atob(q),!0}catch{return!1}}function oX7(q){if(!i98.test(q))return!1;let K=q.replace(/[-_]/g,(z)=>z==="-"?"+":"/"),_=K.padEnd(Math.ceil(K.length/4)*4,"=");return Ss8(_)}function aX7(q,K=null){try{let _=q.split(".");if(_.length!==3)return!1;let[z]=_;if(!z)return!1;let Y=JSON.parse(atob(z));if("typ"in Y&&Y?.typ!=="JWT")return!1;if(!Y.alg)return!1;if(K&&(!("alg"in Y)||Y.alg!==K))return!1;return!0}catch{return!1}}function BX7(q,K,_){if(q.issues.length)K.issues.push(...Bk(_,q.issues));K.value[_]=q.value}function e98(q,K,_){if(q.issues.length)K.issues.push(...Bk(_,q.issues));K.value[_]=q.value}function gX7(q,K,_,z){if(q.issues.length)if(z[_]===void 0)if(_ in z)K.value[_]=void 0;else K.value[_]=q.value;else K.issues.push(...Bk(_,q.issues));else if(q.value===void 0){if(_ in z)K.value[_]=void 0}else K.value[_]=q.value}function FX7(q,K,_,z){for(let Y of q)if(Y.issues.length===0)return K.value=Y.value,K;return K.issues.push({code:"invalid_union",input:K.value,inst:_,errors:q.map((Y)=>Y.issues.map(($)=>XE($,z,dM())))}),K}function Hs8(q,K){if(q===K)return{valid:!0,data:q};if(q instanceof Date&&K instanceof Date&&+q===+K)return{valid:!0,data:q};if(RP6(q)&&RP6(K)){let _=Object.keys(K),z=Object.keys(q).filter(($)=>_.indexOf($)!==-1),Y={...q,...K};for(let $ of z){let A=Hs8(q[$],K[$]);if(!A.valid)return{valid:!1,mergeErrorPath:[$,...A.mergeErrorPath]};Y[$]=A.data}return{valid:!0,data:Y}}if(Array.isArray(q)&&Array.isArray(K)){if(q.length!==K.length)return{valid:!1,mergeErrorPath:[]};let _=[];for(let z=0;z<q.length;z++){let Y=q[z],$=K[z],A=Hs8(Y,$);if(!A.valid)return{valid:!1,mergeErrorPath:[z,...A.mergeErrorPath]};_.push(A.data)}return{valid:!0,data:_}}return{valid:!1,mergeErrorPath:[]}}function UX7(q,K,_){if(K.issues.length)q.issues.push(...K.issues);if(_.issues.length)q.issues.push(..._.issues);if(V96(q))return q;let z=Hs8(K.value,_.value);if(!z.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(z.mergeErrorPath)}`);return q.value=z.data,q}function q_8(q,K,_){if(q.issues.length)K.issues.push(...Bk(_,q.issues));K.value[_]=q.value}function QX7(q,K,_,z,Y,$,A){if(q.issues.length)if(RI6.has(typeof z))_.issues.push(...Bk(z,q.issues));else _.issues.push({origin:"map",code:"invalid_key",input:Y,inst:$,issues:q.issues.map((O)=>XE(O,A,dM()))});if(K.issues.length)if(RI6.has(typeof z))_.issues.push(...Bk(z,K.issues));else _.issues.push({origin:"map",code:"invalid_element",input:Y,inst:$,key:z,issues:K.issues.map((O)=>XE(O,A,dM()))});_.value.set(q.value,K.value)}function dX7(q,K){if(q.issues.length)K.issues.push(...q.issues);K.value.add(q.value)}function cX7(q,K){if(q.value===void 0)q.value=K.defaultValue;return q}function lX7(q,K){if(!q.issues.length&&q.value===void 0)q.issues.push({code:"invalid_type",expected:"nonoptional",input:q.value,inst:K});return q}function nX7(q,K,_){if(V96(q))return q;return K.out._zod.run({value:q.value,issues:q.issues},_)}function iX7(q){return q.value=Object.freeze(q.value),q}function rX7(q,K,_,z){if(!q){let Y={code:"custom",input:_,inst:z,path:[...z._zod.def.path??[]],continue:!z._zod.def.abort};if(z._zod.def.params)Y.params=z._zod.def.params;K.issues.push(Ja8(Y))}}var U3,E96,eO,Js8,Ms8,Xs8,Ps8,Ws8,Ds8,fs8,Zs8,Gs8,Ts8,vs8,ks8,Vs8,Ns8,ys8,Es8,Ls8,Rs8,hs8,Cs8,bs8,xs8,Is8,us8,K_8,ms8,pI6,__8,ps8,Bs8,gs8,Fs8,Us8,bP6,Qs8,ds8,cs8,BI6,ls8,z_8,ns8,is8,L96,rs8,os8,as8,ss8,ts8,es8,gI6,qt8,Kt8,_t8,zt8,Yt8,$t8,At8,Ot8,FI6,wt8,jt8,Ht8,Jt8,Mt8;var UI6=y(()=>{s98();EP6();n98();r98();y3();js8();y3();U3=f1("$ZodType",(q,K)=>{var _;q??(q={}),q._zod.def=K,q._zod.bag=q._zod.bag||{},q._zod.version=ws8;let z=[...q._zod.def.checks??[]];if(q._zod.traits.has("$ZodCheck"))z.unshift(q);for(let Y of z)for(let $ of Y._zod.onattach)$(q);if(z.length===0)(_=q._zod).deferred??(_.deferred=[]),q._zod.deferred?.push(()=>{q._zod.run=q._zod.parse});else{let Y=($,A,O)=>{let w=V96($),j;for(let H of A){if(H._zod.when){if(!H._zod.when($))continue}else if(w)continue;let J=$.issues.length,M=H._zod.check($);if(M instanceof Promise&&O?.async===!1)throw new Uc;if(j||M instanceof Promise)j=(j??Promise.resolve()).then(async()=>{if(await M,$.issues.length===J)return;if(!w)w=V96($,J)});else{if($.issues.length===J)continue;if(!w)w=V96($,J)}}if(j)return j.then(()=>{return $});return $};q._zod.run=($,A)=>{let O=q._zod.parse($,A);if(O instanceof Promise){if(A.async===!1)throw new Uc;return O.then((w)=>Y(w,z,A))}return Y(O,z,A)}}q["~standard"]={validate:(Y)=>{try{let $=SP6(q,Y);return $.success?{value:$.data}:{issues:$.error?.issues}}catch($){return mI6(q,Y).then((A)=>A.success?{value:A.data}:{issues:A.error?.issues})}},vendor:"zod",version:1}}),E96=f1("$ZodString",(q,K)=>{U3.init(q,K),q._zod.pattern=[...q?._zod.bag?.patterns??[]].pop()??ua8(q._zod.bag),q._zod.parse=(_,z)=>{if(K.coerce)try{_.value=String(_.value)}catch(Y){}if(typeof _.value==="string")return _;return _.issues.push({expected:"string",code:"invalid_type",input:_.value,inst:q}),_}}),eO=f1("$ZodStringFormat",(q,K)=>{CP6.init(q,K),E96.init(q,K)}),Js8=f1("$ZodGUID",(q,K)=>{K.pattern??(K.pattern=ka8),eO.init(q,K)}),Ms8=f1("$ZodUUID",(q,K)=>{if(K.version){let z={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[K.version];if(z===void 0)throw Error(`Invalid UUID version: "${K.version}"`);K.pattern??(K.pattern=N96(z))}else K.pattern??(K.pattern=N96());eO.init(q,K)}),Xs8=f1("$ZodEmail",(q,K)=>{K.pattern??(K.pattern=Va8),eO.init(q,K)}),Ps8=f1("$ZodURL",(q,K)=>{eO.init(q,K),q._zod.check=(_)=>{try{let z=_.value,Y=new URL(z),$=Y.href;if(K.hostname){if(K.hostname.lastIndex=0,!K.hostname.test(Y.hostname))_.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:Sa8.source,input:_.value,inst:q,continue:!K.abort})}if(K.protocol){if(K.protocol.lastIndex=0,!K.protocol.test(Y.protocol.endsWith(":")?Y.protocol.slice(0,-1):Y.protocol))_.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:K.protocol.source,input:_.value,inst:q,continue:!K.abort})}if(!z.endsWith("/")&&$.endsWith("/"))_.value=$.slice(0,-1);else _.value=$;return}catch(z){_.issues.push({code:"invalid_format",format:"url",input:_.value,inst:q,continue:!K.abort})}}}),Ws8=f1("$ZodEmoji",(q,K)=>{K.pattern??(K.pattern=Na8()),eO.init(q,K)}),Ds8=f1("$ZodNanoID",(q,K)=>{K.pattern??(K.pattern=Ta8),eO.init(q,K)}),fs8=f1("$ZodCUID",(q,K)=>{K.pattern??(K.pattern=Wa8),eO.init(q,K)}),Zs8=f1("$ZodCUID2",(q,K)=>{K.pattern??(K.pattern=Da8),eO.init(q,K)}),Gs8=f1("$ZodULID",(q,K)=>{K.pattern??(K.pattern=fa8),eO.init(q,K)}),Ts8=f1("$ZodXID",(q,K)=>{K.pattern??(K.pattern=Za8),eO.init(q,K)}),vs8=f1("$ZodKSUID",(q,K)=>{K.pattern??(K.pattern=Ga8),eO.init(q,K)}),ks8=f1("$ZodISODateTime",(q,K)=>{K.pattern??(K.pattern=Ia8(K)),eO.init(q,K)}),Vs8=f1("$ZodISODate",(q,K)=>{K.pattern??(K.pattern=ba8),eO.init(q,K)}),Ns8=f1("$ZodISOTime",(q,K)=>{K.pattern??(K.pattern=xa8(K)),eO.init(q,K)}),ys8=f1("$ZodISODuration",(q,K)=>{K.pattern??(K.pattern=va8),eO.init(q,K)}),Es8=f1("$ZodIPv4",(q,K)=>{K.pattern??(K.pattern=ya8),eO.init(q,K),q._zod.onattach.push((_)=>{let z=_._zod.bag;z.format="ipv4"})}),Ls8=f1("$ZodIPv6",(q,K)=>{K.pattern??(K.pattern=Ea8),eO.init(q,K),q._zod.onattach.push((_)=>{let z=_._zod.bag;z.format="ipv6"}),q._zod.check=(_)=>{try{new URL(`http://[${_.value}]`)}catch{_.issues.push({code:"invalid_format",format:"ipv6",input:_.value,inst:q,continue:!K.abort})}}}),Rs8=f1("$ZodCIDRv4",(q,K)=>{K.pattern??(K.pattern=La8),eO.init(q,K)}),hs8=f1("$ZodCIDRv6",(q,K)=>{K.pattern??(K.pattern=Ra8),eO.init(q,K),q._zod.check=(_)=>{let[z,Y]=_.value.split("/");try{if(!Y)throw Error();let $=Number(Y);if(`${$}`!==Y)throw Error();if($<0||$>128)throw Error();new URL(`http://[${z}]`)}catch{_.issues.push({code:"invalid_format",format:"cidrv6",input:_.value,inst:q,continue:!K.abort})}}});Cs8=f1("$ZodBase64",(q,K)=>{K.pattern??(K.pattern=ha8),eO.init(q,K),q._zod.onattach.push((_)=>{_._zod.bag.contentEncoding="base64"}),q._zod.check=(_)=>{if(Ss8(_.value))return;_.issues.push({code:"invalid_format",format:"base64",input:_.value,inst:q,continue:!K.abort})}});bs8=f1("$ZodBase64URL",(q,K)=>{K.pattern??(K.pattern=i98),eO.init(q,K),q._zod.onattach.push((_)=>{_._zod.bag.contentEncoding="base64url"}),q._zod.check=(_)=>{if(oX7(_.value))return;_.issues.push({code:"invalid_format",format:"base64url",input:_.value,inst:q,continue:!K.abort})}}),xs8=f1("$ZodE164",(q,K)=>{K.pattern??(K.pattern=Ca8),eO.init(q,K)});Is8=f1("$ZodJWT",(q,K)=>{eO.init(q,K),q._zod.check=(_)=>{if(aX7(_.value,K.alg))return;_.issues.push({code:"invalid_format",format:"jwt",input:_.value,inst:q,continue:!K.abort})}}),us8=f1("$ZodCustomStringFormat",(q,K)=>{eO.init(q,K),q._zod.check=(_)=>{if(K.fn(_.value))return;_.issues.push({code:"invalid_format",format:K.format,input:_.value,inst:q,continue:!K.abort})}}),K_8=f1("$ZodNumber",(q,K)=>{U3.init(q,K),q._zod.pattern=q._zod.bag.pattern??Ba8,q._zod.parse=(_,z)=>{if(K.coerce)try{_.value=Number(_.value)}catch(A){}let Y=_.value;if(typeof Y==="number"&&!Number.isNaN(Y)&&Number.isFinite(Y))return _;let $=typeof Y==="number"?Number.isNaN(Y)?"NaN":!Number.isFinite(Y)?"Infinity":void 0:void 0;return _.issues.push({expected:"number",code:"invalid_type",input:Y,inst:q,...$?{received:$}:{}}),_}}),ms8=f1("$ZodNumber",(q,K)=>{la8.init(q,K),K_8.init(q,K)}),pI6=f1("$ZodBoolean",(q,K)=>{U3.init(q,K),q._zod.pattern=ga8,q._zod.parse=(_,z)=>{if(K.coerce)try{_.value=Boolean(_.value)}catch($){}let Y=_.value;if(typeof Y==="boolean")return _;return _.issues.push({expected:"boolean",code:"invalid_type",input:Y,inst:q}),_}}),__8=f1("$ZodBigInt",(q,K)=>{U3.init(q,K),q._zod.pattern=ma8,q._zod.parse=(_,z)=>{if(K.coerce)try{_.value=BigInt(_.value)}catch(Y){}if(typeof _.value==="bigint")return _;return _.issues.push({expected:"bigint",code:"invalid_type",input:_.value,inst:q}),_}}),ps8=f1("$ZodBigInt",(q,K)=>{na8.init(q,K),__8.init(q,K)}),Bs8=f1("$ZodSymbol",(q,K)=>{U3.init(q,K),q._zod.parse=(_,z)=>{let Y=_.value;if(typeof Y==="symbol")return _;return _.issues.push({expected:"symbol",code:"invalid_type",input:Y,inst:q}),_}}),gs8=f1("$ZodUndefined",(q,K)=>{U3.init(q,K),q._zod.pattern=Ua8,q._zod.values=new Set([void 0]),q._zod.optin="optional",q._zod.optout="optional",q._zod.parse=(_,z)=>{let Y=_.value;if(typeof Y>"u")return _;return _.issues.push({expected:"undefined",code:"invalid_type",input:Y,inst:q}),_}}),Fs8=f1("$ZodNull",(q,K)=>{U3.init(q,K),q._zod.pattern=Fa8,q._zod.values=new Set([null]),q._zod.parse=(_,z)=>{let Y=_.value;if(Y===null)return _;return _.issues.push({expected:"null",code:"invalid_type",input:Y,inst:q}),_}}),Us8=f1("$ZodAny",(q,K)=>{U3.init(q,K),q._zod.parse=(_)=>_}),bP6=f1("$ZodUnknown",(q,K)=>{U3.init(q,K),q._zod.parse=(_)=>_}),Qs8=f1("$ZodNever",(q,K)=>{U3.init(q,K),q._zod.parse=(_,z)=>{return _.issues.push({expected:"never",code:"invalid_type",input:_.value,inst:q}),_}}),ds8=f1("$ZodVoid",(q,K)=>{U3.init(q,K),q._zod.parse=(_,z)=>{let Y=_.value;if(typeof Y>"u")return _;return _.issues.push({expected:"void",code:"invalid_type",input:Y,inst:q}),_}}),cs8=f1("$ZodDate",(q,K)=>{U3.init(q,K),q._zod.parse=(_,z)=>{if(K.coerce)try{_.value=new Date(_.value)}catch(O){}let Y=_.value,$=Y instanceof Date;if($&&!Number.isNaN(Y.getTime()))return _;return _.issues.push({expected:"date",code:"invalid_type",input:Y,...$?{received:"Invalid Date"}:{},inst:q}),_}});BI6=f1("$ZodArray",(q,K)=>{U3.init(q,K),q._zod.parse=(_,z)=>{let Y=_.value;if(!Array.isArray(Y))return _.issues.push({expected:"array",code:"invalid_type",input:Y,inst:q}),_;_.value=Array(Y.length);let $=[];for(let A=0;A<Y.length;A++){let O=Y[A],w=K.element._zod.run({value:O,issues:[]},z);if(w instanceof Promise)$.push(w.then((j)=>BX7(j,_,A)));else BX7(w,_,A)}if($.length)return Promise.all($).then(()=>_);return _}});ls8=f1("$ZodObject",(q,K)=>{U3.init(q,K);let _=EI6(()=>{let J=Object.keys(K.shape);for(let X of J)if(!(K.shape[X]instanceof U3))throw Error(`Invalid element at key "${X}": expected a Zod schema`);let M=wa8(K.shape);return{shape:K.shape,keys:J,keySet:new Set(J),numKeys:J.length,optionalKeys:new Set(M)}});U$(q._zod,"propValues",()=>{let J=K.shape,M={};for(let X in J){let P=J[X]._zod;if(P.values){M[X]??(M[X]=new Set);for(let W of P.values)M[X].add(W)}}return M});let z=(J)=>{let M=new t98(["shape","payload","ctx"]),X=_.value,P=(G)=>{let Z=k96(G);return`shape[${Z}]._zod.run({ value: input[${Z}], issues: [] }, ctx)`};M.write("const input = payload.value;");let W=Object.create(null),D=0;for(let G of X.keys)W[G]=`key_${D++}`;M.write("const newResult = {}");for(let G of X.keys)if(X.optionalKeys.has(G)){let Z=W[G];M.write(`const ${Z} = ${P(G)};`);let T=k96(G);M.write(`

Callers

nothing calls this directly

Calls 2

_addCheckMethod · 0.95
toStringMethod · 0.65

Tested by

no test coverage detected