@republicroad/seal-editor 1.17.0 → 1.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +6 -6
- package/dist/index.js +213 -164
- package/dist/index.js.map +1 -1
- package/dist/schema.d.ts +6 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12980,7 +12980,7 @@ var Vh = () => M.useContext(Lh), Hh = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12980
12980
|
typeDef: "declare type Primitive = string | number | symbol | bigint | boolean | null | undefined;\ndeclare type Scalars = Primitive | Primitive[];\n\ndeclare namespace util {\n type AssertEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends <V>() => V extends U ? 1 : 2 ? true : false;\n export type isAny<T> = 0 extends 1 & T ? true : false;\n export const assertEqual: <A, B>(val: AssertEqual<A, B>) => AssertEqual<A, B>;\n export function assertIs<T>(_arg: T): void;\n export function assertNever(_x: never): never;\n export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;\n export type OmitKeys<T, K extends string> = Pick<T, Exclude<keyof T, K>>;\n export type MakePartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;\n export type Exactly<T, X> = T & Record<Exclude<keyof X, keyof T>, never>;\n export const arrayToEnum: <T extends string, U extends [T, ...T[]]>(items: U) => { [k in U[number]]: k };\n export const getValidEnumValues: (obj: any) => any[];\n export const objectValues: (obj: any) => any[];\n export const objectKeys: ObjectConstructor['keys'];\n export const find: <T>(arr: T[], checker: (arg: T) => any) => T | undefined;\n export type identity<T> = objectUtil.identity<T>;\n export type flatten<T> = objectUtil.flatten<T>;\n export type noUndefined<T> = T extends undefined ? never : T;\n export const isInteger: NumberConstructor['isInteger'];\n export function joinValues<T extends any[]>(array: T, separator?: string): string;\n export const jsonStringifyReplacer: (_: string, value: any) => any;\n export {};\n}\ndeclare namespace objectUtil {\n export type MergeShapes<U, V> = {\n [k in Exclude<keyof U, keyof V>]: U[k];\n } & V;\n type optionalKeys<T extends object> = {\n [k in keyof T]: undefined extends T[k] ? k : never;\n }[keyof T];\n type requiredKeys<T extends object> = {\n [k in keyof T]: undefined extends T[k] ? never : k;\n }[keyof T];\n export type addQuestionMarks<T extends object, _O = any> = {\n [K in requiredKeys<T>]: T[K];\n } & {\n [K in optionalKeys<T>]?: T[K];\n } & {\n [k in keyof T]?: unknown;\n };\n export type identity<T> = T;\n export type flatten<T> = identity<{\n [k in keyof T]: T[k];\n }>;\n export type noNeverKeys<T> = {\n [k in keyof T]: [T[k]] extends [never] ? never : k;\n }[keyof T];\n export type noNever<T> = identity<{\n [k in noNeverKeys<T>]: k extends keyof T ? T[k] : never;\n }>;\n export const mergeShapes: <U, T>(first: U, second: T) => T & U;\n export type extendShape<A extends object, B extends object> = {\n [K in keyof A as K extends keyof B ? never : K]: A[K];\n } & {\n [K in keyof B]: B[K];\n };\n export {};\n}\ndeclare const ZodParsedType: {\n function: 'function';\n number: 'number';\n string: 'string';\n nan: 'nan';\n integer: 'integer';\n float: 'float';\n boolean: 'boolean';\n date: 'date';\n bigint: 'bigint';\n symbol: 'symbol';\n undefined: 'undefined';\n null: 'null';\n array: 'array';\n object: 'object';\n unknown: 'unknown';\n promise: 'promise';\n void: 'void';\n never: 'never';\n map: 'map';\n set: 'set';\n};\ndeclare type ZodParsedType = keyof typeof ZodParsedType;\ndeclare const getParsedType: (data: any) => ZodParsedType;\n\ndeclare type allKeys<T> = T extends any ? keyof T : never;\ndeclare type inferFlattenedErrors<T extends ZodType<any, any, any>, U = string> = typeToFlattenedError<TypeOf<T>, U>;\ndeclare type typeToFlattenedError<T, U = string> = {\n formErrors: U[];\n fieldErrors: {\n [P in allKeys<T>]?: U[];\n };\n};\ndeclare const ZodIssueCode: {\n invalid_type: 'invalid_type';\n invalid_literal: 'invalid_literal';\n custom: 'custom';\n invalid_union: 'invalid_union';\n invalid_union_discriminator: 'invalid_union_discriminator';\n invalid_enum_value: 'invalid_enum_value';\n unrecognized_keys: 'unrecognized_keys';\n invalid_arguments: 'invalid_arguments';\n invalid_return_type: 'invalid_return_type';\n invalid_date: 'invalid_date';\n invalid_string: 'invalid_string';\n too_small: 'too_small';\n too_big: 'too_big';\n invalid_intersection_types: 'invalid_intersection_types';\n not_multiple_of: 'not_multiple_of';\n not_finite: 'not_finite';\n};\ndeclare type ZodIssueCode = keyof typeof ZodIssueCode;\ndeclare type ZodIssueBase = {\n path: (string | number)[];\n message?: string;\n};\ninterface ZodInvalidTypeIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_type;\n expected: ZodParsedType;\n received: ZodParsedType;\n}\ninterface ZodInvalidLiteralIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_literal;\n expected: unknown;\n received: unknown;\n}\ninterface ZodUnrecognizedKeysIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.unrecognized_keys;\n keys: string[];\n}\ninterface ZodInvalidUnionIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_union;\n unionErrors: ZodError[];\n}\ninterface ZodInvalidUnionDiscriminatorIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_union_discriminator;\n options: Primitive[];\n}\ninterface ZodInvalidEnumValueIssue extends ZodIssueBase {\n received: string | number;\n code: typeof ZodIssueCode.invalid_enum_value;\n options: (string | number)[];\n}\ninterface ZodInvalidArgumentsIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_arguments;\n argumentsError: ZodError;\n}\ninterface ZodInvalidReturnTypeIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_return_type;\n returnTypeError: ZodError;\n}\ninterface ZodInvalidDateIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_date;\n}\ndeclare type StringValidation =\n | 'email'\n | 'url'\n | 'emoji'\n | 'uuid'\n | 'nanoid'\n | 'regex'\n | 'cuid'\n | 'cuid2'\n | 'ulid'\n | 'datetime'\n | 'date'\n | 'time'\n | 'duration'\n | 'ip'\n | 'base64'\n | {\n includes: string;\n position?: number;\n }\n | {\n startsWith: string;\n }\n | {\n endsWith: string;\n };\ninterface ZodInvalidStringIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_string;\n validation: StringValidation;\n}\ninterface ZodTooSmallIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.too_small;\n minimum: number | bigint;\n inclusive: boolean;\n exact?: boolean;\n type: 'array' | 'string' | 'number' | 'set' | 'date' | 'bigint';\n}\ninterface ZodTooBigIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.too_big;\n maximum: number | bigint;\n inclusive: boolean;\n exact?: boolean;\n type: 'array' | 'string' | 'number' | 'set' | 'date' | 'bigint';\n}\ninterface ZodInvalidIntersectionTypesIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_intersection_types;\n}\ninterface ZodNotMultipleOfIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.not_multiple_of;\n multipleOf: number | bigint;\n}\ninterface ZodNotFiniteIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.not_finite;\n}\ninterface ZodCustomIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.custom;\n params?: {\n [k: string]: any;\n };\n}\ndeclare type DenormalizedError = {\n [k: string]: DenormalizedError | string[];\n};\ndeclare type ZodIssueOptionalMessage =\n | ZodInvalidTypeIssue\n | ZodInvalidLiteralIssue\n | ZodUnrecognizedKeysIssue\n | ZodInvalidUnionIssue\n | ZodInvalidUnionDiscriminatorIssue\n | ZodInvalidEnumValueIssue\n | ZodInvalidArgumentsIssue\n | ZodInvalidReturnTypeIssue\n | ZodInvalidDateIssue\n | ZodInvalidStringIssue\n | ZodTooSmallIssue\n | ZodTooBigIssue\n | ZodInvalidIntersectionTypesIssue\n | ZodNotMultipleOfIssue\n | ZodNotFiniteIssue\n | ZodCustomIssue;\ndeclare type ZodIssue = ZodIssueOptionalMessage & {\n fatal?: boolean;\n message: string;\n};\ndeclare const quotelessJson: (obj: any) => string;\ndeclare type recursiveZodFormattedError<T> = T extends [any, ...any[]]\n ? {\n [K in keyof T]?: ZodFormattedError<T[K]>;\n }\n : T extends any[]\n ? {\n [k: number]: ZodFormattedError<T[number]>;\n }\n : T extends object\n ? {\n [K in keyof T]?: ZodFormattedError<T[K]>;\n }\n : unknown;\ndeclare type ZodFormattedError<T, U = string> = {\n _errors: U[];\n} & recursiveZodFormattedError<NonNullable<T>>;\ndeclare type inferFormattedError<T extends ZodType<any, any, any>, U = string> = ZodFormattedError<TypeOf<T>, U>;\ndeclare class ZodError<T = any> extends Error {\n issues: ZodIssue[];\n get errors(): ZodIssue[];\n constructor(issues: ZodIssue[]);\n format(): ZodFormattedError<T>;\n format<U>(mapper: (issue: ZodIssue) => U): ZodFormattedError<T, U>;\n static create: (issues: ZodIssue[]) => ZodError<any>;\n static assert(value: unknown): asserts value is ZodError;\n toString(): string;\n get message(): string;\n get isEmpty(): boolean;\n addIssue: (sub: ZodIssue) => void;\n addIssues: (subs?: ZodIssue[]) => void;\n flatten(): typeToFlattenedError<T>;\n flatten<U>(mapper?: (issue: ZodIssue) => U): typeToFlattenedError<T, U>;\n get formErrors(): typeToFlattenedError<T, string>;\n}\ndeclare type stripPath<T extends object> = T extends any ? util.OmitKeys<T, 'path'> : never;\ndeclare type IssueData = stripPath<ZodIssueOptionalMessage> & {\n path?: (string | number)[];\n fatal?: boolean;\n};\ndeclare type ErrorMapCtx = {\n defaultError: string;\n data: any;\n};\ndeclare type ZodErrorMap = (\n issue: ZodIssueOptionalMessage,\n _ctx: ErrorMapCtx,\n) => {\n message: string;\n};\n\ndeclare const errorMap: ZodErrorMap;\n//# sourceMappingURL=en.d.ts.map\n\ndeclare function setErrorMap(map: ZodErrorMap): void;\ndeclare function getErrorMap(): ZodErrorMap;\n\ndeclare const makeIssue: (params: {\n data: any;\n path: (string | number)[];\n errorMaps: ZodErrorMap[];\n issueData: IssueData;\n}) => ZodIssue;\ndeclare type ParseParams = {\n path: (string | number)[];\n errorMap: ZodErrorMap;\n async: boolean;\n};\ndeclare type ParsePathComponent = string | number;\ndeclare type ParsePath = ParsePathComponent[];\ndeclare const EMPTY_PATH: ParsePath;\ninterface ParseContext {\n readonly common: {\n readonly issues: ZodIssue[];\n readonly contextualErrorMap?: ZodErrorMap;\n readonly async: boolean;\n };\n readonly path: ParsePath;\n readonly schemaErrorMap?: ZodErrorMap;\n readonly parent: ParseContext | null;\n readonly data: any;\n readonly parsedType: ZodParsedType;\n}\ndeclare type ParseInput = {\n data: any;\n path: (string | number)[];\n parent: ParseContext;\n};\ndeclare function addIssueToContext(ctx: ParseContext, issueData: IssueData): void;\ndeclare type ObjectPair = {\n key: SyncParseReturnType<any>;\n value: SyncParseReturnType<any>;\n};\ndeclare class ParseStatus {\n value: 'aborted' | 'dirty' | 'valid';\n dirty(): void;\n abort(): void;\n static mergeArray(status: ParseStatus, results: SyncParseReturnType<any>[]): SyncParseReturnType;\n static mergeObjectAsync(\n status: ParseStatus,\n pairs: {\n key: ParseReturnType<any>;\n value: ParseReturnType<any>;\n }[],\n ): Promise<SyncParseReturnType<any>>;\n static mergeObjectSync(\n status: ParseStatus,\n pairs: {\n key: SyncParseReturnType<any>;\n value: SyncParseReturnType<any>;\n alwaysSet?: boolean;\n }[],\n ): SyncParseReturnType;\n}\ninterface ParseResult {\n status: 'aborted' | 'dirty' | 'valid';\n data: any;\n}\ndeclare type INVALID = {\n status: 'aborted';\n};\ndeclare const INVALID: INVALID;\ndeclare type DIRTY<T> = {\n status: 'dirty';\n value: T;\n};\ndeclare const DIRTY: <T>(value: T) => DIRTY<T>;\ndeclare type OK<T> = {\n status: 'valid';\n value: T;\n};\ndeclare const OK: <T>(value: T) => OK<T>;\ndeclare type SyncParseReturnType<T = any> = OK<T> | DIRTY<T> | INVALID;\ndeclare type AsyncParseReturnType<T> = Promise<SyncParseReturnType<T>>;\ndeclare type ParseReturnType<T> = SyncParseReturnType<T> | AsyncParseReturnType<T>;\ndeclare const isAborted: (x: ParseReturnType<any>) => x is INVALID;\ndeclare const isDirty: <T>(x: ParseReturnType<T>) => x is OK<T> | DIRTY<T>;\ndeclare const isValid: <T>(x: ParseReturnType<T>) => x is OK<T>;\ndeclare const isAsync: <T>(x: ParseReturnType<T>) => x is AsyncParseReturnType<T>;\n\ndeclare namespace enumUtil {\n type UnionToIntersectionFn<T> = (T extends unknown ? (k: () => T) => void : never) extends (\n k: infer Intersection,\n ) => void\n ? Intersection\n : never;\n type GetUnionLast<T> = UnionToIntersectionFn<T> extends () => infer Last ? Last : never;\n type UnionToTuple<T, Tuple extends unknown[] = []> = [T] extends [never]\n ? Tuple\n : UnionToTuple<Exclude<T, GetUnionLast<T>>, [GetUnionLast<T>, ...Tuple]>;\n type CastToStringTuple<T> = T extends [string, ...string[]] ? T : never;\n export type UnionToTupleString<T> = CastToStringTuple<UnionToTuple<T>>;\n export {};\n}\n\ndeclare namespace errorUtil {\n type ErrMessage =\n | string\n | {\n message?: string;\n };\n const errToObj: (message?: ErrMessage | undefined) => {\n message?: string | undefined;\n };\n const toString: (message?: ErrMessage | undefined) => string | undefined;\n}\n\ndeclare namespace partialUtil {\n type DeepPartial<T extends ZodTypeAny> =\n T extends ZodObject<ZodRawShape>\n ? ZodObject<\n {\n [k in keyof T['shape']]: ZodOptional<DeepPartial<T['shape'][k]>>;\n },\n T['_def']['unknownKeys'],\n T['_def']['catchall']\n >\n : T extends ZodArray<infer Type, infer Card>\n ? ZodArray<DeepPartial<Type>, Card>\n : T extends ZodOptional<infer Type>\n ? ZodOptional<DeepPartial<Type>>\n : T extends ZodNullable<infer Type>\n ? ZodNullable<DeepPartial<Type>>\n : T extends ZodTuple<infer Items>\n ? {\n [k in keyof Items]: Items[k] extends ZodTypeAny ? DeepPartial<Items[k]> : never;\n } extends infer PI\n ? PI extends ZodTupleItems\n ? ZodTuple<PI>\n : never\n : never\n : T;\n}\n\ninterface RefinementCtx {\n addIssue: (arg: IssueData) => void;\n path: (string | number)[];\n}\ndeclare type ZodRawShape = {\n [k: string]: ZodTypeAny;\n};\ndeclare type ZodTypeAny = ZodType<any, any, any>;\ndeclare type TypeOf<T extends ZodType<any, any, any>> = T['_output'];\ndeclare type input<T extends ZodType<any, any, any>> = T['_input'];\ndeclare type output<T extends ZodType<any, any, any>> = T['_output'];\n\ndeclare type CustomErrorParams = Partial<util.Omit<ZodCustomIssue, 'code'>>;\ninterface ZodTypeDef {\n errorMap?: ZodErrorMap;\n description?: string;\n}\ndeclare type RawCreateParams =\n | {\n errorMap?: ZodErrorMap;\n invalid_type_error?: string;\n required_error?: string;\n message?: string;\n description?: string;\n }\n | undefined;\ndeclare type ProcessedCreateParams = {\n errorMap?: ZodErrorMap;\n description?: string;\n};\ndeclare type SafeParseSuccess<Output> = {\n success: true;\n data: Output;\n error?: never;\n};\ndeclare type SafeParseError<Input> = {\n success: false;\n error: ZodError<Input>;\n data?: never;\n};\ndeclare type SafeParseReturnType<Input, Output> = SafeParseSuccess<Output> | SafeParseError<Input>;\ndeclare abstract class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input = Output> {\n readonly _type: Output;\n readonly _output: Output;\n readonly _input: Input;\n readonly _def: Def;\n get description(): string | undefined;\n abstract _parse(input: ParseInput): ParseReturnType<Output>;\n _getType(input: ParseInput): string;\n _getOrReturnCtx(input: ParseInput, ctx?: ParseContext | undefined): ParseContext;\n _processInputParams(input: ParseInput): {\n status: ParseStatus;\n ctx: ParseContext;\n };\n _parseSync(input: ParseInput): SyncParseReturnType<Output>;\n _parseAsync(input: ParseInput): AsyncParseReturnType<Output>;\n parse(data: unknown, params?: Partial<ParseParams>): Output;\n safeParse(data: unknown, params?: Partial<ParseParams>): SafeParseReturnType<Input, Output>;\n parseAsync(data: unknown, params?: Partial<ParseParams>): Promise<Output>;\n safeParseAsync(data: unknown, params?: Partial<ParseParams>): Promise<SafeParseReturnType<Input, Output>>;\n /** Alias of safeParseAsync */\n spa: (data: unknown, params?: Partial<ParseParams> | undefined) => Promise<SafeParseReturnType<Input, Output>>;\n refine<RefinedOutput extends Output>(\n check: (arg: Output) => arg is RefinedOutput,\n message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams),\n ): ZodEffects<this, RefinedOutput, Input>;\n refine(\n check: (arg: Output) => unknown | Promise<unknown>,\n message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams),\n ): ZodEffects<this, Output, Input>;\n refinement<RefinedOutput extends Output>(\n check: (arg: Output) => arg is RefinedOutput,\n refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData),\n ): ZodEffects<this, RefinedOutput, Input>;\n refinement(\n check: (arg: Output) => boolean,\n refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData),\n ): ZodEffects<this, Output, Input>;\n _refinement(refinement: RefinementEffect<Output>['refinement']): ZodEffects<this, Output, Input>;\n superRefine<RefinedOutput extends Output>(\n refinement: (arg: Output, ctx: RefinementCtx) => arg is RefinedOutput,\n ): ZodEffects<this, RefinedOutput, Input>;\n superRefine(refinement: (arg: Output, ctx: RefinementCtx) => void): ZodEffects<this, Output, Input>;\n superRefine(refinement: (arg: Output, ctx: RefinementCtx) => Promise<void>): ZodEffects<this, Output, Input>;\n constructor(def: Def);\n optional(): ZodOptional<this>;\n nullable(): ZodNullable<this>;\n nullish(): ZodOptional<ZodNullable<this>>;\n array(): ZodArray<this>;\n promise(): ZodPromise<this>;\n or<T extends ZodTypeAny>(option: T): ZodUnion<[this, T]>;\n and<T extends ZodTypeAny>(incoming: T): ZodIntersection<this, T>;\n transform<NewOut>(transform: (arg: Output, ctx: RefinementCtx) => NewOut | Promise<NewOut>): ZodEffects<this, NewOut>;\n default(def: util.noUndefined<Input>): ZodDefault<this>;\n default(def: () => util.noUndefined<Input>): ZodDefault<this>;\n brand<B extends string | number | symbol>(brand?: B): ZodBranded<this, B>;\n catch(def: Output): ZodCatch<this>;\n catch(def: (ctx: { error: ZodError; input: Input }) => Output): ZodCatch<this>;\n describe(description: string): this;\n pipe<T extends ZodTypeAny>(target: T): ZodPipeline<this, T>;\n readonly(): ZodReadonly<this>;\n isOptional(): boolean;\n isNullable(): boolean;\n}\ndeclare type IpVersion = 'v4' | 'v6';\ndeclare type ZodStringCheck =\n | {\n kind: 'min';\n value: number;\n message?: string;\n }\n | {\n kind: 'max';\n value: number;\n message?: string;\n }\n | {\n kind: 'length';\n value: number;\n message?: string;\n }\n | {\n kind: 'email';\n message?: string;\n }\n | {\n kind: 'url';\n message?: string;\n }\n | {\n kind: 'emoji';\n message?: string;\n }\n | {\n kind: 'uuid';\n message?: string;\n }\n | {\n kind: 'nanoid';\n message?: string;\n }\n | {\n kind: 'cuid';\n message?: string;\n }\n | {\n kind: 'includes';\n value: string;\n position?: number;\n message?: string;\n }\n | {\n kind: 'cuid2';\n message?: string;\n }\n | {\n kind: 'ulid';\n message?: string;\n }\n | {\n kind: 'startsWith';\n value: string;\n message?: string;\n }\n | {\n kind: 'endsWith';\n value: string;\n message?: string;\n }\n | {\n kind: 'regex';\n regex: RegExp;\n message?: string;\n }\n | {\n kind: 'trim';\n message?: string;\n }\n | {\n kind: 'toLowerCase';\n message?: string;\n }\n | {\n kind: 'toUpperCase';\n message?: string;\n }\n | {\n kind: 'datetime';\n offset: boolean;\n local: boolean;\n precision: number | null;\n message?: string;\n }\n | {\n kind: 'date';\n message?: string;\n }\n | {\n kind: 'time';\n precision: number | null;\n message?: string;\n }\n | {\n kind: 'duration';\n message?: string;\n }\n | {\n kind: 'ip';\n version?: IpVersion;\n message?: string;\n }\n | {\n kind: 'base64';\n message?: string;\n };\ninterface ZodStringDef extends ZodTypeDef {\n checks: ZodStringCheck[];\n typeName: ZodFirstPartyTypeKind.ZodString;\n coerce: boolean;\n}\ndeclare function datetimeRegex(args: { precision?: number | null; offset?: boolean; local?: boolean }): RegExp;\ndeclare class ZodString extends ZodType<string, ZodStringDef, string> {\n _parse(input: ParseInput): ParseReturnType<string>;\n protected _regex(\n regex: RegExp,\n validation: StringValidation,\n message?: errorUtil.ErrMessage,\n ): ZodEffects<this, string, string>;\n _addCheck(check: ZodStringCheck): ZodString;\n email(message?: errorUtil.ErrMessage): ZodString;\n url(message?: errorUtil.ErrMessage): ZodString;\n emoji(message?: errorUtil.ErrMessage): ZodString;\n uuid(message?: errorUtil.ErrMessage): ZodString;\n nanoid(message?: errorUtil.ErrMessage): ZodString;\n cuid(message?: errorUtil.ErrMessage): ZodString;\n cuid2(message?: errorUtil.ErrMessage): ZodString;\n ulid(message?: errorUtil.ErrMessage): ZodString;\n base64(message?: errorUtil.ErrMessage): ZodString;\n ip(\n options?:\n | string\n | {\n version?: 'v4' | 'v6';\n message?: string;\n },\n ): ZodString;\n datetime(\n options?:\n | string\n | {\n message?: string | undefined;\n precision?: number | null;\n offset?: boolean;\n local?: boolean;\n },\n ): ZodString;\n date(message?: string): ZodString;\n time(\n options?:\n | string\n | {\n message?: string | undefined;\n precision?: number | null;\n },\n ): ZodString;\n duration(message?: errorUtil.ErrMessage): ZodString;\n regex(regex: RegExp, message?: errorUtil.ErrMessage): ZodString;\n includes(\n value: string,\n options?: {\n message?: string;\n position?: number;\n },\n ): ZodString;\n startsWith(value: string, message?: errorUtil.ErrMessage): ZodString;\n endsWith(value: string, message?: errorUtil.ErrMessage): ZodString;\n min(minLength: number, message?: errorUtil.ErrMessage): ZodString;\n max(maxLength: number, message?: errorUtil.ErrMessage): ZodString;\n length(len: number, message?: errorUtil.ErrMessage): ZodString;\n /**\n * @deprecated Use z.string().min(1) instead.\n * @see {@link ZodString.min}\n */\n nonempty(message?: errorUtil.ErrMessage): ZodString;\n trim(): ZodString;\n toLowerCase(): ZodString;\n toUpperCase(): ZodString;\n get isDatetime(): boolean;\n get isDate(): boolean;\n get isTime(): boolean;\n get isDuration(): boolean;\n get isEmail(): boolean;\n get isURL(): boolean;\n get isEmoji(): boolean;\n get isUUID(): boolean;\n get isNANOID(): boolean;\n get isCUID(): boolean;\n get isCUID2(): boolean;\n get isULID(): boolean;\n get isIP(): boolean;\n get isBase64(): boolean;\n get minLength(): number | null;\n get maxLength(): number | null;\n static create: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: true | undefined;\n })\n | undefined,\n ) => ZodString;\n}\ndeclare type ZodNumberCheck =\n | {\n kind: 'min';\n value: number;\n inclusive: boolean;\n message?: string;\n }\n | {\n kind: 'max';\n value: number;\n inclusive: boolean;\n message?: string;\n }\n | {\n kind: 'int';\n message?: string;\n }\n | {\n kind: 'multipleOf';\n value: number;\n message?: string;\n }\n | {\n kind: 'finite';\n message?: string;\n };\ninterface ZodNumberDef extends ZodTypeDef {\n checks: ZodNumberCheck[];\n typeName: ZodFirstPartyTypeKind.ZodNumber;\n coerce: boolean;\n}\ndeclare class ZodNumber extends ZodType<number, ZodNumberDef, number> {\n _parse(input: ParseInput): ParseReturnType<number>;\n static create: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodNumber;\n gte(value: number, message?: errorUtil.ErrMessage): ZodNumber;\n min: (value: number, message?: errorUtil.ErrMessage | undefined) => ZodNumber;\n gt(value: number, message?: errorUtil.ErrMessage): ZodNumber;\n lte(value: number, message?: errorUtil.ErrMessage): ZodNumber;\n max: (value: number, message?: errorUtil.ErrMessage | undefined) => ZodNumber;\n lt(value: number, message?: errorUtil.ErrMessage): ZodNumber;\n protected setLimit(kind: 'min' | 'max', value: number, inclusive: boolean, message?: string): ZodNumber;\n _addCheck(check: ZodNumberCheck): ZodNumber;\n int(message?: errorUtil.ErrMessage): ZodNumber;\n positive(message?: errorUtil.ErrMessage): ZodNumber;\n negative(message?: errorUtil.ErrMessage): ZodNumber;\n nonpositive(message?: errorUtil.ErrMessage): ZodNumber;\n nonnegative(message?: errorUtil.ErrMessage): ZodNumber;\n multipleOf(value: number, message?: errorUtil.ErrMessage): ZodNumber;\n step: (value: number, message?: errorUtil.ErrMessage | undefined) => ZodNumber;\n finite(message?: errorUtil.ErrMessage): ZodNumber;\n safe(message?: errorUtil.ErrMessage): ZodNumber;\n get minValue(): number | null;\n get maxValue(): number | null;\n get isInt(): boolean;\n get isFinite(): boolean;\n}\ndeclare type ZodBigIntCheck =\n | {\n kind: 'min';\n value: bigint;\n inclusive: boolean;\n message?: string;\n }\n | {\n kind: 'max';\n value: bigint;\n inclusive: boolean;\n message?: string;\n }\n | {\n kind: 'multipleOf';\n value: bigint;\n message?: string;\n };\ninterface ZodBigIntDef extends ZodTypeDef {\n checks: ZodBigIntCheck[];\n typeName: ZodFirstPartyTypeKind.ZodBigInt;\n coerce: boolean;\n}\ndeclare class ZodBigInt extends ZodType<bigint, ZodBigIntDef, bigint> {\n _parse(input: ParseInput): ParseReturnType<bigint>;\n static create: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodBigInt;\n gte(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;\n min: (value: bigint, message?: errorUtil.ErrMessage | undefined) => ZodBigInt;\n gt(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;\n lte(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;\n max: (value: bigint, message?: errorUtil.ErrMessage | undefined) => ZodBigInt;\n lt(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;\n protected setLimit(kind: 'min' | 'max', value: bigint, inclusive: boolean, message?: string): ZodBigInt;\n _addCheck(check: ZodBigIntCheck): ZodBigInt;\n positive(message?: errorUtil.ErrMessage): ZodBigInt;\n negative(message?: errorUtil.ErrMessage): ZodBigInt;\n nonpositive(message?: errorUtil.ErrMessage): ZodBigInt;\n nonnegative(message?: errorUtil.ErrMessage): ZodBigInt;\n multipleOf(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;\n get minValue(): bigint | null;\n get maxValue(): bigint | null;\n}\ninterface ZodBooleanDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodBoolean;\n coerce: boolean;\n}\ndeclare class ZodBoolean extends ZodType<boolean, ZodBooleanDef, boolean> {\n _parse(input: ParseInput): ParseReturnType<boolean>;\n static create: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodBoolean;\n}\ndeclare type ZodDateCheck =\n | {\n kind: 'min';\n value: number;\n message?: string;\n }\n | {\n kind: 'max';\n value: number;\n message?: string;\n };\ninterface ZodDateDef extends ZodTypeDef {\n checks: ZodDateCheck[];\n coerce: boolean;\n typeName: ZodFirstPartyTypeKind.ZodDate;\n}\ndeclare class ZodDate extends ZodType<Date, ZodDateDef, Date> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n _addCheck(check: ZodDateCheck): ZodDate;\n min(minDate: Date, message?: errorUtil.ErrMessage): ZodDate;\n max(maxDate: Date, message?: errorUtil.ErrMessage): ZodDate;\n get minDate(): Date | null;\n get maxDate(): Date | null;\n static create: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodDate;\n}\ninterface ZodSymbolDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodSymbol;\n}\ndeclare class ZodSymbol extends ZodType<symbol, ZodSymbolDef, symbol> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: (params?: RawCreateParams) => ZodSymbol;\n}\ninterface ZodUndefinedDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodUndefined;\n}\ndeclare class ZodUndefined extends ZodType<undefined, ZodUndefinedDef, undefined> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n params?: RawCreateParams;\n static create: (params?: RawCreateParams) => ZodUndefined;\n}\ninterface ZodNullDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodNull;\n}\ndeclare class ZodNull extends ZodType<null, ZodNullDef, null> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: (params?: RawCreateParams) => ZodNull;\n}\ninterface ZodAnyDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodAny;\n}\ndeclare class ZodAny extends ZodType<any, ZodAnyDef, any> {\n _any: true;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: (params?: RawCreateParams) => ZodAny;\n}\ninterface ZodUnknownDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodUnknown;\n}\ndeclare class ZodUnknown extends ZodType<unknown, ZodUnknownDef, unknown> {\n _unknown: true;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: (params?: RawCreateParams) => ZodUnknown;\n}\ninterface ZodNeverDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodNever;\n}\ndeclare class ZodNever extends ZodType<never, ZodNeverDef, never> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: (params?: RawCreateParams) => ZodNever;\n}\ninterface ZodVoidDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodVoid;\n}\ndeclare class ZodVoid extends ZodType<void, ZodVoidDef, void> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: (params?: RawCreateParams) => ZodVoid;\n}\ninterface ZodArrayDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n type: T;\n typeName: ZodFirstPartyTypeKind.ZodArray;\n exactLength: {\n value: number;\n message?: string;\n } | null;\n minLength: {\n value: number;\n message?: string;\n } | null;\n maxLength: {\n value: number;\n message?: string;\n } | null;\n}\ndeclare type ArrayCardinality = 'many' | 'atleastone';\ndeclare type arrayOutputType<\n T extends ZodTypeAny,\n Cardinality extends ArrayCardinality = 'many',\n> = Cardinality extends 'atleastone' ? [T['_output'], ...T['_output'][]] : T['_output'][];\ndeclare class ZodArray<T extends ZodTypeAny, Cardinality extends ArrayCardinality = 'many'> extends ZodType<\n arrayOutputType<T, Cardinality>,\n ZodArrayDef<T>,\n Cardinality extends 'atleastone' ? [T['_input'], ...T['_input'][]] : T['_input'][]\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get element(): T;\n min(minLength: number, message?: errorUtil.ErrMessage): this;\n max(maxLength: number, message?: errorUtil.ErrMessage): this;\n length(len: number, message?: errorUtil.ErrMessage): this;\n nonempty(message?: errorUtil.ErrMessage): ZodArray<T, 'atleastone'>;\n static create: <T_1 extends ZodTypeAny>(schema: T_1, params?: RawCreateParams) => ZodArray<T_1, 'many'>;\n}\ndeclare type ZodNonEmptyArray<T extends ZodTypeAny> = ZodArray<T, 'atleastone'>;\ndeclare type UnknownKeysParam = 'passthrough' | 'strict' | 'strip';\ninterface ZodObjectDef<\n T extends ZodRawShape = ZodRawShape,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n Catchall extends ZodTypeAny = ZodTypeAny,\n> extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodObject;\n shape: () => T;\n catchall: Catchall;\n unknownKeys: UnknownKeys;\n}\ndeclare type mergeTypes<A, B> = {\n [k in keyof A | keyof B]: k extends keyof B ? B[k] : k extends keyof A ? A[k] : never;\n};\ndeclare type objectOutputType<\n Shape extends ZodRawShape,\n Catchall extends ZodTypeAny,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n> = objectUtil.flatten<objectUtil.addQuestionMarks<baseObjectOutputType<Shape>>> &\n CatchallOutput<Catchall> &\n PassthroughType<UnknownKeys>;\ndeclare type baseObjectOutputType<Shape extends ZodRawShape> = {\n [k in keyof Shape]: Shape[k]['_output'];\n};\ndeclare type objectInputType<\n Shape extends ZodRawShape,\n Catchall extends ZodTypeAny,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n> = objectUtil.flatten<baseObjectInputType<Shape>> & CatchallInput<Catchall> & PassthroughType<UnknownKeys>;\ndeclare type baseObjectInputType<Shape extends ZodRawShape> = objectUtil.addQuestionMarks<{\n [k in keyof Shape]: Shape[k]['_input'];\n}>;\ndeclare type CatchallOutput<T extends ZodType> = ZodType extends T\n ? unknown\n : {\n [k: string]: T['_output'];\n };\ndeclare type CatchallInput<T extends ZodType> = ZodType extends T\n ? unknown\n : {\n [k: string]: T['_input'];\n };\ndeclare type PassthroughType<T extends UnknownKeysParam> = T extends 'passthrough'\n ? {\n [k: string]: unknown;\n }\n : unknown;\ndeclare type deoptional<T extends ZodTypeAny> =\n T extends ZodOptional<infer U> ? deoptional<U> : T extends ZodNullable<infer U> ? ZodNullable<deoptional<U>> : T;\ndeclare type SomeZodObject = ZodObject<ZodRawShape, UnknownKeysParam, ZodTypeAny>;\ndeclare type noUnrecognized<Obj extends object, Shape extends object> = {\n [k in keyof Obj]: k extends keyof Shape ? Obj[k] : never;\n};\ndeclare class ZodObject<\n T extends ZodRawShape,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n Catchall extends ZodTypeAny = ZodTypeAny,\n Output = objectOutputType<T, Catchall, UnknownKeys>,\n Input = objectInputType<T, Catchall, UnknownKeys>,\n> extends ZodType<Output, ZodObjectDef<T, UnknownKeys, Catchall>, Input> {\n private _cached;\n _getCached(): {\n shape: T;\n keys: string[];\n };\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get shape(): T;\n strict(message?: errorUtil.ErrMessage): ZodObject<T, 'strict', Catchall>;\n strip(): ZodObject<T, 'strip', Catchall>;\n passthrough(): ZodObject<T, 'passthrough', Catchall>;\n /**\n * @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped.\n * If you want to pass through unknown properties, use `.passthrough()` instead.\n */\n nonstrict: () => ZodObject<T, 'passthrough', Catchall>;\n extend<Augmentation extends ZodRawShape>(\n augmentation: Augmentation,\n ): ZodObject<objectUtil.extendShape<T, Augmentation>, UnknownKeys, Catchall>;\n /**\n * @deprecated Use `.extend` instead\n * */\n augment: <Augmentation extends ZodRawShape>(\n augmentation: Augmentation,\n ) => ZodObject<\n objectUtil.extendShape<T, Augmentation>,\n UnknownKeys,\n Catchall,\n objectOutputType<objectUtil.extendShape<T, Augmentation>, Catchall, UnknownKeys>,\n objectInputType<objectUtil.extendShape<T, Augmentation>, Catchall, UnknownKeys>\n >;\n /**\n * Prior to zod@1.0.12 there was a bug in the\n * inferred type of merged objects. Please\n * upgrade if you are experiencing issues.\n */\n merge<Incoming extends AnyZodObject, Augmentation extends Incoming['shape']>(\n merging: Incoming,\n ): ZodObject<objectUtil.extendShape<T, Augmentation>, Incoming['_def']['unknownKeys'], Incoming['_def']['catchall']>;\n setKey<Key extends string, Schema extends ZodTypeAny>(\n key: Key,\n schema: Schema,\n ): ZodObject<\n T & {\n [k in Key]: Schema;\n },\n UnknownKeys,\n Catchall\n >;\n catchall<Index extends ZodTypeAny>(index: Index): ZodObject<T, UnknownKeys, Index>;\n pick<\n Mask extends util.Exactly<\n {\n [k in keyof T]?: true;\n },\n Mask\n >,\n >(mask: Mask): ZodObject<Pick<T, Extract<keyof T, keyof Mask>>, UnknownKeys, Catchall>;\n omit<\n Mask extends util.Exactly<\n {\n [k in keyof T]?: true;\n },\n Mask\n >,\n >(mask: Mask): ZodObject<Omit<T, keyof Mask>, UnknownKeys, Catchall>;\n /**\n * @deprecated\n */\n deepPartial(): partialUtil.DeepPartial<this>;\n partial(): ZodObject<\n {\n [k in keyof T]: ZodOptional<T[k]>;\n },\n UnknownKeys,\n Catchall\n >;\n partial<\n Mask extends util.Exactly<\n {\n [k in keyof T]?: true;\n },\n Mask\n >,\n >(\n mask: Mask,\n ): ZodObject<\n objectUtil.noNever<{\n [k in keyof T]: k extends keyof Mask ? ZodOptional<T[k]> : T[k];\n }>,\n UnknownKeys,\n Catchall\n >;\n required(): ZodObject<\n {\n [k in keyof T]: deoptional<T[k]>;\n },\n UnknownKeys,\n Catchall\n >;\n required<\n Mask extends util.Exactly<\n {\n [k in keyof T]?: true;\n },\n Mask\n >,\n >(\n mask: Mask,\n ): ZodObject<\n objectUtil.noNever<{\n [k in keyof T]: k extends keyof Mask ? deoptional<T[k]> : T[k];\n }>,\n UnknownKeys,\n Catchall\n >;\n keyof(): ZodEnum<enumUtil.UnionToTupleString<keyof T>>;\n static create: <T_1 extends ZodRawShape>(\n shape: T_1,\n params?: RawCreateParams,\n ) => ZodObject<\n T_1,\n 'strip',\n ZodTypeAny,\n {\n [k in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, any>]: objectUtil.addQuestionMarks<\n baseObjectOutputType<T_1>,\n any\n >[k];\n },\n { [k_1 in keyof baseObjectInputType<T_1>]: baseObjectInputType<T_1>[k_1] }\n >;\n static strictCreate: <T_1 extends ZodRawShape>(\n shape: T_1,\n params?: RawCreateParams,\n ) => ZodObject<\n T_1,\n 'strict',\n ZodTypeAny,\n {\n [k in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, any>]: objectUtil.addQuestionMarks<\n baseObjectOutputType<T_1>,\n any\n >[k];\n },\n { [k_1 in keyof baseObjectInputType<T_1>]: baseObjectInputType<T_1>[k_1] }\n >;\n static lazycreate: <T_1 extends ZodRawShape>(\n shape: () => T_1,\n params?: RawCreateParams,\n ) => ZodObject<\n T_1,\n 'strip',\n ZodTypeAny,\n {\n [k in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, any>]: objectUtil.addQuestionMarks<\n baseObjectOutputType<T_1>,\n any\n >[k];\n },\n { [k_1 in keyof baseObjectInputType<T_1>]: baseObjectInputType<T_1>[k_1] }\n >;\n}\ndeclare type AnyZodObject = ZodObject<any, any, any>;\ndeclare type ZodUnionOptions = Readonly<[ZodTypeAny, ...ZodTypeAny[]]>;\ninterface ZodUnionDef<\n T extends ZodUnionOptions = Readonly<[ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>,\n> extends ZodTypeDef {\n options: T;\n typeName: ZodFirstPartyTypeKind.ZodUnion;\n}\ndeclare class ZodUnion<T extends ZodUnionOptions> extends ZodType<\n T[number]['_output'],\n ZodUnionDef<T>,\n T[number]['_input']\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get options(): T;\n static create: <T_1 extends readonly [ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>(\n types: T_1,\n params?: RawCreateParams,\n ) => ZodUnion<T_1>;\n}\ndeclare type ZodDiscriminatedUnionOption<Discriminator extends string> = ZodObject<\n {\n [key in Discriminator]: ZodTypeAny;\n } & ZodRawShape,\n UnknownKeysParam,\n ZodTypeAny\n>;\ninterface ZodDiscriminatedUnionDef<\n Discriminator extends string,\n Options extends ZodDiscriminatedUnionOption<string>[] = ZodDiscriminatedUnionOption<string>[],\n> extends ZodTypeDef {\n discriminator: Discriminator;\n options: Options;\n optionsMap: Map<Primitive, ZodDiscriminatedUnionOption<any>>;\n typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion;\n}\ndeclare class ZodDiscriminatedUnion<\n Discriminator extends string,\n Options extends ZodDiscriminatedUnionOption<Discriminator>[],\n> extends ZodType<output<Options[number]>, ZodDiscriminatedUnionDef<Discriminator, Options>, input<Options[number]>> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get discriminator(): Discriminator;\n get options(): Options;\n get optionsMap(): Map<Primitive, ZodDiscriminatedUnionOption<any>>;\n /**\n * The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.\n * However, it only allows a union of objects, all of which need to share a discriminator property. This property must\n * have a different value for each object in the union.\n * @param discriminator the name of the discriminator property\n * @param types an array of object schemas\n * @param params\n */\n static create<\n Discriminator extends string,\n Types extends [ZodDiscriminatedUnionOption<Discriminator>, ...ZodDiscriminatedUnionOption<Discriminator>[]],\n >(\n discriminator: Discriminator,\n options: Types,\n params?: RawCreateParams,\n ): ZodDiscriminatedUnion<Discriminator, Types>;\n}\ninterface ZodIntersectionDef<T extends ZodTypeAny = ZodTypeAny, U extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n left: T;\n right: U;\n typeName: ZodFirstPartyTypeKind.ZodIntersection;\n}\ndeclare class ZodIntersection<T extends ZodTypeAny, U extends ZodTypeAny> extends ZodType<\n T['_output'] & U['_output'],\n ZodIntersectionDef<T, U>,\n T['_input'] & U['_input']\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: <T_1 extends ZodTypeAny, U_1 extends ZodTypeAny>(\n left: T_1,\n right: U_1,\n params?: RawCreateParams,\n ) => ZodIntersection<T_1, U_1>;\n}\ndeclare type ZodTupleItems = [ZodTypeAny, ...ZodTypeAny[]];\ndeclare type AssertArray<T> = T extends any[] ? T : never;\ndeclare type OutputTypeOfTuple<T extends ZodTupleItems | []> = AssertArray<{\n [k in keyof T]: T[k] extends ZodType<any, any, any> ? T[k]['_output'] : never;\n}>;\ndeclare type OutputTypeOfTupleWithRest<\n T extends ZodTupleItems | [],\n Rest extends ZodTypeAny | null = null,\n> = Rest extends ZodTypeAny ? [...OutputTypeOfTuple<T>, ...Rest['_output'][]] : OutputTypeOfTuple<T>;\ndeclare type InputTypeOfTuple<T extends ZodTupleItems | []> = AssertArray<{\n [k in keyof T]: T[k] extends ZodType<any, any, any> ? T[k]['_input'] : never;\n}>;\ndeclare type InputTypeOfTupleWithRest<\n T extends ZodTupleItems | [],\n Rest extends ZodTypeAny | null = null,\n> = Rest extends ZodTypeAny ? [...InputTypeOfTuple<T>, ...Rest['_input'][]] : InputTypeOfTuple<T>;\ninterface ZodTupleDef<\n T extends ZodTupleItems | [] = ZodTupleItems,\n Rest extends ZodTypeAny | null = null,\n> extends ZodTypeDef {\n items: T;\n rest: Rest;\n typeName: ZodFirstPartyTypeKind.ZodTuple;\n}\ndeclare type AnyZodTuple = ZodTuple<[ZodTypeAny, ...ZodTypeAny[]] | [], ZodTypeAny | null>;\ndeclare class ZodTuple<\n T extends [ZodTypeAny, ...ZodTypeAny[]] | [] = [ZodTypeAny, ...ZodTypeAny[]],\n Rest extends ZodTypeAny | null = null,\n> extends ZodType<OutputTypeOfTupleWithRest<T, Rest>, ZodTupleDef<T, Rest>, InputTypeOfTupleWithRest<T, Rest>> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get items(): T;\n rest<Rest extends ZodTypeAny>(rest: Rest): ZodTuple<T, Rest>;\n static create: <T_1 extends [] | [ZodTypeAny, ...ZodTypeAny[]]>(\n schemas: T_1,\n params?: RawCreateParams,\n ) => ZodTuple<T_1, null>;\n}\ninterface ZodRecordDef<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n valueType: Value;\n keyType: Key;\n typeName: ZodFirstPartyTypeKind.ZodRecord;\n}\ndeclare type KeySchema = ZodType<string | number | symbol, any, any>;\ndeclare type RecordType<K extends string | number | symbol, V> = [string] extends [K]\n ? Record<K, V>\n : [number] extends [K]\n ? Record<K, V>\n : [symbol] extends [K]\n ? Record<K, V>\n : [BRAND<string | number | symbol>] extends [K]\n ? Record<K, V>\n : Partial<Record<K, V>>;\ndeclare class ZodRecord<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> extends ZodType<\n RecordType<Key['_output'], Value['_output']>,\n ZodRecordDef<Key, Value>,\n RecordType<Key['_input'], Value['_input']>\n> {\n get keySchema(): Key;\n get valueSchema(): Value;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get element(): Value;\n static create<Value extends ZodTypeAny>(valueType: Value, params?: RawCreateParams): ZodRecord<ZodString, Value>;\n static create<Keys extends KeySchema, Value extends ZodTypeAny>(\n keySchema: Keys,\n valueType: Value,\n params?: RawCreateParams,\n ): ZodRecord<Keys, Value>;\n}\ninterface ZodMapDef<Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n valueType: Value;\n keyType: Key;\n typeName: ZodFirstPartyTypeKind.ZodMap;\n}\ndeclare class ZodMap<Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny> extends ZodType<\n Map<Key['_output'], Value['_output']>,\n ZodMapDef<Key, Value>,\n Map<Key['_input'], Value['_input']>\n> {\n get keySchema(): Key;\n get valueSchema(): Value;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: <Key_1 extends ZodTypeAny = ZodTypeAny, Value_1 extends ZodTypeAny = ZodTypeAny>(\n keyType: Key_1,\n valueType: Value_1,\n params?: RawCreateParams,\n ) => ZodMap<Key_1, Value_1>;\n}\ninterface ZodSetDef<Value extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n valueType: Value;\n typeName: ZodFirstPartyTypeKind.ZodSet;\n minSize: {\n value: number;\n message?: string;\n } | null;\n maxSize: {\n value: number;\n message?: string;\n } | null;\n}\ndeclare class ZodSet<Value extends ZodTypeAny = ZodTypeAny> extends ZodType<\n Set<Value['_output']>,\n ZodSetDef<Value>,\n Set<Value['_input']>\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n min(minSize: number, message?: errorUtil.ErrMessage): this;\n max(maxSize: number, message?: errorUtil.ErrMessage): this;\n size(size: number, message?: errorUtil.ErrMessage): this;\n nonempty(message?: errorUtil.ErrMessage): ZodSet<Value>;\n static create: <Value_1 extends ZodTypeAny = ZodTypeAny>(\n valueType: Value_1,\n params?: RawCreateParams,\n ) => ZodSet<Value_1>;\n}\ninterface ZodFunctionDef<\n Args extends ZodTuple<any, any> = ZodTuple<any, any>,\n Returns extends ZodTypeAny = ZodTypeAny,\n> extends ZodTypeDef {\n args: Args;\n returns: Returns;\n typeName: ZodFirstPartyTypeKind.ZodFunction;\n}\ndeclare type OuterTypeOfFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> =\n Args['_input'] extends Array<any> ? (...args: Args['_input']) => Returns['_output'] : never;\ndeclare type InnerTypeOfFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> =\n Args['_output'] extends Array<any> ? (...args: Args['_output']) => Returns['_input'] : never;\ndeclare class ZodFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> extends ZodType<\n OuterTypeOfFunction<Args, Returns>,\n ZodFunctionDef<Args, Returns>,\n InnerTypeOfFunction<Args, Returns>\n> {\n _parse(input: ParseInput): ParseReturnType<any>;\n parameters(): Args;\n returnType(): Returns;\n args<Items extends Parameters<(typeof ZodTuple)['create']>[0]>(\n ...items: Items\n ): ZodFunction<ZodTuple<Items, ZodUnknown>, Returns>;\n returns<NewReturnType extends ZodType<any, any, any>>(returnType: NewReturnType): ZodFunction<Args, NewReturnType>;\n implement<F extends InnerTypeOfFunction<Args, Returns>>(\n func: F,\n ): ReturnType<F> extends Returns['_output']\n ? (...args: Args['_input']) => ReturnType<F>\n : OuterTypeOfFunction<Args, Returns>;\n strictImplement(func: InnerTypeOfFunction<Args, Returns>): InnerTypeOfFunction<Args, Returns>;\n validate: <F extends InnerTypeOfFunction<Args, Returns>>(\n func: F,\n ) => ReturnType<F> extends Returns['_output']\n ? (...args: Args['_input']) => ReturnType<F>\n : OuterTypeOfFunction<Args, Returns>;\n static create(): ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>;\n static create<T extends AnyZodTuple = ZodTuple<[], ZodUnknown>>(args: T): ZodFunction<T, ZodUnknown>;\n static create<T extends AnyZodTuple, U extends ZodTypeAny>(args: T, returns: U): ZodFunction<T, U>;\n static create<T extends AnyZodTuple = ZodTuple<[], ZodUnknown>, U extends ZodTypeAny = ZodUnknown>(\n args: T,\n returns: U,\n params?: RawCreateParams,\n ): ZodFunction<T, U>;\n}\ninterface ZodLazyDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n getter: () => T;\n typeName: ZodFirstPartyTypeKind.ZodLazy;\n}\ndeclare class ZodLazy<T extends ZodTypeAny> extends ZodType<output<T>, ZodLazyDef<T>, input<T>> {\n get schema(): T;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: <T_1 extends ZodTypeAny>(getter: () => T_1, params?: RawCreateParams) => ZodLazy<T_1>;\n}\ninterface ZodLiteralDef<T = any> extends ZodTypeDef {\n value: T;\n typeName: ZodFirstPartyTypeKind.ZodLiteral;\n}\ndeclare class ZodLiteral<T> extends ZodType<T, ZodLiteralDef<T>, T> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get value(): T;\n static create: <T_1 extends Primitive>(value: T_1, params?: RawCreateParams) => ZodLiteral<T_1>;\n}\ndeclare type ArrayKeys = keyof any[];\ndeclare type Indices<T> = Exclude<keyof T, ArrayKeys>;\ndeclare type EnumValues<T extends string = string> = readonly [T, ...T[]];\ndeclare type Values<T extends EnumValues> = {\n [k in T[number]]: k;\n};\ninterface ZodEnumDef<T extends EnumValues = EnumValues> extends ZodTypeDef {\n values: T;\n typeName: ZodFirstPartyTypeKind.ZodEnum;\n}\ndeclare type Writeable<T> = {\n -readonly [P in keyof T]: T[P];\n};\ndeclare type FilterEnum<Values, ToExclude> = Values extends []\n ? []\n : Values extends [infer Head, ...infer Rest]\n ? Head extends ToExclude\n ? FilterEnum<Rest, ToExclude>\n : [Head, ...FilterEnum<Rest, ToExclude>]\n : never;\ndeclare type typecast<A, T> = A extends T ? A : never;\ndeclare function createZodEnum<U extends string, T extends Readonly<[U, ...U[]]>>(\n values: T,\n params?: RawCreateParams,\n): ZodEnum<Writeable<T>>;\ndeclare function createZodEnum<U extends string, T extends [U, ...U[]]>(\n values: T,\n params?: RawCreateParams,\n): ZodEnum<T>;\ndeclare class ZodEnum<T extends [string, ...string[]]> extends ZodType<T[number], ZodEnumDef<T>, T[number]> {\n #private;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get options(): T;\n get enum(): Values<T>;\n get Values(): Values<T>;\n get Enum(): Values<T>;\n extract<ToExtract extends readonly [T[number], ...T[number][]]>(\n values: ToExtract,\n newDef?: RawCreateParams,\n ): ZodEnum<Writeable<ToExtract>>;\n exclude<ToExclude extends readonly [T[number], ...T[number][]]>(\n values: ToExclude,\n newDef?: RawCreateParams,\n ): ZodEnum<typecast<Writeable<FilterEnum<T, ToExclude[number]>>, [string, ...string[]]>>;\n static create: typeof createZodEnum;\n}\ninterface ZodNativeEnumDef<T extends EnumLike = EnumLike> extends ZodTypeDef {\n values: T;\n typeName: ZodFirstPartyTypeKind.ZodNativeEnum;\n}\ndeclare type EnumLike = {\n [k: string]: string | number;\n [nu: number]: string;\n};\ndeclare class ZodNativeEnum<T extends EnumLike> extends ZodType<T[keyof T], ZodNativeEnumDef<T>, T[keyof T]> {\n #private;\n _parse(input: ParseInput): ParseReturnType<T[keyof T]>;\n get enum(): T;\n static create: <T_1 extends EnumLike>(values: T_1, params?: RawCreateParams) => ZodNativeEnum<T_1>;\n}\ninterface ZodPromiseDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n type: T;\n typeName: ZodFirstPartyTypeKind.ZodPromise;\n}\ndeclare class ZodPromise<T extends ZodTypeAny> extends ZodType<\n Promise<T['_output']>,\n ZodPromiseDef<T>,\n Promise<T['_input']>\n> {\n unwrap(): T;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: <T_1 extends ZodTypeAny>(schema: T_1, params?: RawCreateParams) => ZodPromise<T_1>;\n}\ndeclare type Refinement<T> = (arg: T, ctx: RefinementCtx) => any;\ndeclare type SuperRefinement<T> = (arg: T, ctx: RefinementCtx) => void | Promise<void>;\ndeclare type RefinementEffect<T> = {\n type: 'refinement';\n refinement: (arg: T, ctx: RefinementCtx) => any;\n};\ndeclare type TransformEffect<T> = {\n type: 'transform';\n transform: (arg: T, ctx: RefinementCtx) => any;\n};\ndeclare type PreprocessEffect<T> = {\n type: 'preprocess';\n transform: (arg: T, ctx: RefinementCtx) => any;\n};\ndeclare type Effect<T> = RefinementEffect<T> | TransformEffect<T> | PreprocessEffect<T>;\ninterface ZodEffectsDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n schema: T;\n typeName: ZodFirstPartyTypeKind.ZodEffects;\n effect: Effect<any>;\n}\ndeclare class ZodEffects<T extends ZodTypeAny, Output = output<T>, Input = input<T>> extends ZodType<\n Output,\n ZodEffectsDef<T>,\n Input\n> {\n innerType(): T;\n sourceType(): T;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: <I extends ZodTypeAny>(\n schema: I,\n effect: Effect<I['_output']>,\n params?: RawCreateParams,\n ) => ZodEffects<I, I['_output'], input<I>>;\n static createWithPreprocess: <I extends ZodTypeAny>(\n preprocess: (arg: unknown, ctx: RefinementCtx) => unknown,\n schema: I,\n params?: RawCreateParams,\n ) => ZodEffects<I, I['_output'], unknown>;\n}\n\ninterface ZodOptionalDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n innerType: T;\n typeName: ZodFirstPartyTypeKind.ZodOptional;\n}\ndeclare type ZodOptionalType<T extends ZodTypeAny> = ZodOptional<T>;\ndeclare class ZodOptional<T extends ZodTypeAny> extends ZodType<\n T['_output'] | undefined,\n ZodOptionalDef<T>,\n T['_input'] | undefined\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n unwrap(): T;\n static create: <T_1 extends ZodTypeAny>(type: T_1, params?: RawCreateParams) => ZodOptional<T_1>;\n}\ninterface ZodNullableDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n innerType: T;\n typeName: ZodFirstPartyTypeKind.ZodNullable;\n}\ndeclare type ZodNullableType<T extends ZodTypeAny> = ZodNullable<T>;\ndeclare class ZodNullable<T extends ZodTypeAny> extends ZodType<\n T['_output'] | null,\n ZodNullableDef<T>,\n T['_input'] | null\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n unwrap(): T;\n static create: <T_1 extends ZodTypeAny>(type: T_1, params?: RawCreateParams) => ZodNullable<T_1>;\n}\ninterface ZodDefaultDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n innerType: T;\n defaultValue: () => util.noUndefined<T['_input']>;\n typeName: ZodFirstPartyTypeKind.ZodDefault;\n}\ndeclare class ZodDefault<T extends ZodTypeAny> extends ZodType<\n util.noUndefined<T['_output']>,\n ZodDefaultDef<T>,\n T['_input'] | undefined\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n removeDefault(): T;\n static create: <T_1 extends ZodTypeAny>(\n type: T_1,\n params: {\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n default: T_1['_input'] | (() => util.noUndefined<T_1['_input']>);\n },\n ) => ZodDefault<T_1>;\n}\ninterface ZodCatchDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n innerType: T;\n catchValue: (ctx: { error: ZodError; input: unknown }) => T['_input'];\n typeName: ZodFirstPartyTypeKind.ZodCatch;\n}\ndeclare class ZodCatch<T extends ZodTypeAny> extends ZodType<T['_output'], ZodCatchDef<T>, unknown> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n removeCatch(): T;\n static create: <T_1 extends ZodTypeAny>(\n type: T_1,\n params: {\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n catch: T_1['_output'] | (() => T_1['_output']);\n },\n ) => ZodCatch<T_1>;\n}\ninterface ZodNaNDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodNaN;\n}\ndeclare class ZodNaN extends ZodType<number, ZodNaNDef, number> {\n _parse(input: ParseInput): ParseReturnType<any>;\n static create: (params?: RawCreateParams) => ZodNaN;\n}\ninterface ZodBrandedDef<T extends ZodTypeAny> extends ZodTypeDef {\n type: T;\n typeName: ZodFirstPartyTypeKind.ZodBranded;\n}\ndeclare const BRAND: unique symbol;\ndeclare type BRAND<T extends string | number | symbol> = {\n [BRAND]: {\n [k in T]: true;\n };\n};\ndeclare class ZodBranded<T extends ZodTypeAny, B extends string | number | symbol> extends ZodType<\n T['_output'] & BRAND<B>,\n ZodBrandedDef<T>,\n T['_input']\n> {\n _parse(input: ParseInput): ParseReturnType<any>;\n unwrap(): T;\n}\ninterface ZodPipelineDef<A extends ZodTypeAny, B extends ZodTypeAny> extends ZodTypeDef {\n in: A;\n out: B;\n typeName: ZodFirstPartyTypeKind.ZodPipeline;\n}\ndeclare class ZodPipeline<A extends ZodTypeAny, B extends ZodTypeAny> extends ZodType<\n B['_output'],\n ZodPipelineDef<A, B>,\n A['_input']\n> {\n _parse(input: ParseInput): ParseReturnType<any>;\n static create<A extends ZodTypeAny, B extends ZodTypeAny>(a: A, b: B): ZodPipeline<A, B>;\n}\ndeclare type BuiltIn =\n | (((...args: any[]) => any) | (new (...args: any[]) => any))\n | {\n readonly [Symbol.toStringTag]: string;\n }\n | Date\n | Error\n | Generator\n | Promise<unknown>\n | RegExp;\ndeclare type MakeReadonly<T> =\n T extends Map<infer K, infer V>\n ? ReadonlyMap<K, V>\n : T extends Set<infer V>\n ? ReadonlySet<V>\n : T extends [infer Head, ...infer Tail]\n ? readonly [Head, ...Tail]\n : T extends Array<infer V>\n ? ReadonlyArray<V>\n : T extends BuiltIn\n ? T\n : Readonly<T>;\ninterface ZodReadonlyDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n innerType: T;\n typeName: ZodFirstPartyTypeKind.ZodReadonly;\n}\ndeclare class ZodReadonly<T extends ZodTypeAny> extends ZodType<\n MakeReadonly<T['_output']>,\n ZodReadonlyDef<T>,\n MakeReadonly<T['_input']>\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: <T_1 extends ZodTypeAny>(type: T_1, params?: RawCreateParams) => ZodReadonly<T_1>;\n unwrap(): T;\n}\ndeclare type CustomParams = CustomErrorParams & {\n fatal?: boolean;\n};\ndeclare function custom<T>(\n check?: (data: any) => any,\n params?: string | CustomParams | ((input: any) => CustomParams),\n /**\n * @deprecated\n *\n * Pass `fatal` into the params object instead:\n *\n * ```ts\n * z.string().custom((val) => val.length > 5, { fatal: false })\n * ```\n *\n */\n fatal?: boolean,\n): ZodType<T, ZodTypeDef, T>;\n\ndeclare const late: {\n object: <T extends ZodRawShape>(\n shape: () => T,\n params?: RawCreateParams,\n ) => ZodObject<\n T,\n 'strip',\n ZodTypeAny,\n {\n [k in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T>, any>]: objectUtil.addQuestionMarks<\n baseObjectOutputType<T>,\n any\n >[k];\n },\n { [k_1 in keyof baseObjectInputType<T>]: baseObjectInputType<T>[k_1] }\n >;\n};\ndeclare enum ZodFirstPartyTypeKind {\n ZodString = 'ZodString',\n ZodNumber = 'ZodNumber',\n ZodNaN = 'ZodNaN',\n ZodBigInt = 'ZodBigInt',\n ZodBoolean = 'ZodBoolean',\n ZodDate = 'ZodDate',\n ZodSymbol = 'ZodSymbol',\n ZodUndefined = 'ZodUndefined',\n ZodNull = 'ZodNull',\n ZodAny = 'ZodAny',\n ZodUnknown = 'ZodUnknown',\n ZodNever = 'ZodNever',\n ZodVoid = 'ZodVoid',\n ZodArray = 'ZodArray',\n ZodObject = 'ZodObject',\n ZodUnion = 'ZodUnion',\n ZodDiscriminatedUnion = 'ZodDiscriminatedUnion',\n ZodIntersection = 'ZodIntersection',\n ZodTuple = 'ZodTuple',\n ZodRecord = 'ZodRecord',\n ZodMap = 'ZodMap',\n ZodSet = 'ZodSet',\n ZodFunction = 'ZodFunction',\n ZodLazy = 'ZodLazy',\n ZodLiteral = 'ZodLiteral',\n ZodEnum = 'ZodEnum',\n ZodEffects = 'ZodEffects',\n ZodNativeEnum = 'ZodNativeEnum',\n ZodOptional = 'ZodOptional',\n ZodNullable = 'ZodNullable',\n ZodDefault = 'ZodDefault',\n ZodCatch = 'ZodCatch',\n ZodPromise = 'ZodPromise',\n ZodBranded = 'ZodBranded',\n ZodPipeline = 'ZodPipeline',\n ZodReadonly = 'ZodReadonly',\n}\ndeclare type ZodFirstPartySchemaTypes =\n | ZodString\n | ZodNumber\n | ZodNaN\n | ZodBigInt\n | ZodBoolean\n | ZodDate\n | ZodUndefined\n | ZodNull\n | ZodAny\n | ZodUnknown\n | ZodNever\n | ZodVoid\n | ZodArray<any, any>\n | ZodObject<any, any, any>\n | ZodUnion<any>\n | ZodDiscriminatedUnion<any, any>\n | ZodIntersection<any, any>\n | ZodTuple<any, any>\n | ZodRecord<any, any>\n | ZodMap<any>\n | ZodSet<any>\n | ZodFunction<any, any>\n | ZodLazy<any>\n | ZodLiteral<any>\n | ZodEnum<any>\n | ZodEffects<any, any, any>\n | ZodNativeEnum<any>\n | ZodOptional<any>\n | ZodNullable<any>\n | ZodDefault<any>\n | ZodCatch<any>\n | ZodPromise<any>\n | ZodBranded<any, any>\n | ZodPipeline<any, any>\n | ZodReadonly<any>\n | ZodSymbol;\ndeclare abstract class Class {\n constructor(..._: any[]);\n}\ndeclare const instanceOfType: <T extends typeof Class>(\n cls: T,\n params?: CustomParams,\n) => ZodType<InstanceType<T>, ZodTypeDef, InstanceType<T>>;\ndeclare const stringType: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: true | undefined;\n })\n | undefined,\n) => ZodString;\ndeclare const numberType: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n) => ZodNumber;\ndeclare const nanType: (params?: RawCreateParams) => ZodNaN;\ndeclare const bigIntType: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n) => ZodBigInt;\ndeclare const booleanType: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n) => ZodBoolean;\ndeclare const dateType: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n) => ZodDate;\ndeclare const symbolType: (params?: RawCreateParams) => ZodSymbol;\ndeclare const undefinedType: (params?: RawCreateParams) => ZodUndefined;\ndeclare const nullType: (params?: RawCreateParams) => ZodNull;\ndeclare const anyType: (params?: RawCreateParams) => ZodAny;\ndeclare const unknownType: (params?: RawCreateParams) => ZodUnknown;\ndeclare const neverType: (params?: RawCreateParams) => ZodNever;\ndeclare const voidType: (params?: RawCreateParams) => ZodVoid;\ndeclare const arrayType: <T extends ZodTypeAny>(schema: T, params?: RawCreateParams) => ZodArray<T, 'many'>;\ndeclare const objectType: <T extends ZodRawShape>(\n shape: T,\n params?: RawCreateParams,\n) => ZodObject<\n T,\n 'strip',\n ZodTypeAny,\n {\n [k in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T>, any>]: objectUtil.addQuestionMarks<\n baseObjectOutputType<T>,\n any\n >[k];\n },\n { [k_1 in keyof baseObjectInputType<T>]: baseObjectInputType<T>[k_1] }\n>;\ndeclare const strictObjectType: <T extends ZodRawShape>(\n shape: T,\n params?: RawCreateParams,\n) => ZodObject<\n T,\n 'strict',\n ZodTypeAny,\n {\n [k in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T>, any>]: objectUtil.addQuestionMarks<\n baseObjectOutputType<T>,\n any\n >[k];\n },\n { [k_1 in keyof baseObjectInputType<T>]: baseObjectInputType<T>[k_1] }\n>;\ndeclare const unionType: <T extends readonly [ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>(\n types: T,\n params?: RawCreateParams,\n) => ZodUnion<T>;\ndeclare const discriminatedUnionType: typeof ZodDiscriminatedUnion.create;\ndeclare const intersectionType: <T extends ZodTypeAny, U extends ZodTypeAny>(\n left: T,\n right: U,\n params?: RawCreateParams,\n) => ZodIntersection<T, U>;\ndeclare const tupleType: <T extends [] | [ZodTypeAny, ...ZodTypeAny[]]>(\n schemas: T,\n params?: RawCreateParams,\n) => ZodTuple<T, null>;\ndeclare const recordType: typeof ZodRecord.create;\ndeclare const mapType: <Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny>(\n keyType: Key,\n valueType: Value,\n params?: RawCreateParams,\n) => ZodMap<Key, Value>;\ndeclare const setType: <Value extends ZodTypeAny = ZodTypeAny>(\n valueType: Value,\n params?: RawCreateParams,\n) => ZodSet<Value>;\ndeclare const functionType: typeof ZodFunction.create;\ndeclare const lazyType: <T extends ZodTypeAny>(getter: () => T, params?: RawCreateParams) => ZodLazy<T>;\ndeclare const literalType: <T extends Primitive>(value: T, params?: RawCreateParams) => ZodLiteral<T>;\ndeclare const enumType: typeof createZodEnum;\ndeclare const nativeEnumType: <T extends EnumLike>(values: T, params?: RawCreateParams) => ZodNativeEnum<T>;\ndeclare const promiseType: <T extends ZodTypeAny>(schema: T, params?: RawCreateParams) => ZodPromise<T>;\ndeclare const effectsType: <I extends ZodTypeAny>(\n schema: I,\n effect: Effect<I['_output']>,\n params?: RawCreateParams,\n) => ZodEffects<I, I['_output'], input<I>>;\ndeclare const optionalType: <T extends ZodTypeAny>(type: T, params?: RawCreateParams) => ZodOptional<T>;\ndeclare const nullableType: <T extends ZodTypeAny>(type: T, params?: RawCreateParams) => ZodNullable<T>;\ndeclare const preprocessType: <I extends ZodTypeAny>(\n preprocess: (arg: unknown, ctx: RefinementCtx) => unknown,\n schema: I,\n params?: RawCreateParams,\n) => ZodEffects<I, I['_output'], unknown>;\ndeclare const pipelineType: typeof ZodPipeline.create;\ndeclare const ostring: () => ZodOptional<ZodString>;\ndeclare const onumber: () => ZodOptional<ZodNumber>;\ndeclare const oboolean: () => ZodOptional<ZodBoolean>;\ndeclare const coerce: {\n string: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: true | undefined;\n })\n | undefined,\n ) => ZodString;\n number: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodNumber;\n boolean: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodBoolean;\n bigint: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodBigInt;\n date: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodDate;\n};\n\ndeclare const NEVER: never;\n\n//# sourceMappingURL=external.d.ts.map\n\ndeclare const z_setErrorMap: typeof setErrorMap;\ndeclare const z_getErrorMap: typeof getErrorMap;\ndeclare const z_makeIssue: typeof makeIssue;\ntype z_ParseParams = ParseParams;\ntype z_ParsePathComponent = ParsePathComponent;\ntype z_ParsePath = ParsePath;\ndeclare const z_EMPTY_PATH: typeof EMPTY_PATH;\ntype z_ParseContext = ParseContext;\ntype z_ParseInput = ParseInput;\ndeclare const z_addIssueToContext: typeof addIssueToContext;\ntype z_ObjectPair = ObjectPair;\ntype z_ParseStatus = ParseStatus;\ndeclare const z_ParseStatus: typeof ParseStatus;\ntype z_ParseResult = ParseResult;\ndeclare const z_INVALID: typeof INVALID;\ndeclare const z_DIRTY: typeof DIRTY;\ndeclare const z_OK: typeof OK;\ntype z_SyncParseReturnType<T = any> = SyncParseReturnType<T>;\ntype z_AsyncParseReturnType<T> = AsyncParseReturnType<T>;\ntype z_ParseReturnType<T> = ParseReturnType<T>;\ndeclare const z_isAborted: typeof isAborted;\ndeclare const z_isDirty: typeof isDirty;\ndeclare const z_isValid: typeof isValid;\ndeclare const z_isAsync: typeof isAsync;\ntype z_Primitive = Primitive;\ntype z_Scalars = Scalars;\ndeclare const z_util: typeof util;\ndeclare const z_objectUtil: typeof objectUtil;\ntype z_ZodParsedType = ZodParsedType;\ndeclare const z_getParsedType: typeof getParsedType;\ndeclare const z_oboolean: typeof oboolean;\ndeclare const z_onumber: typeof onumber;\ndeclare const z_ostring: typeof ostring;\ntype z_RefinementCtx = RefinementCtx;\ntype z_ZodRawShape = ZodRawShape;\ntype z_ZodTypeAny = ZodTypeAny;\ntype z_TypeOf<T extends ZodType<any, any, any>> = TypeOf<T>;\ntype z_input<T extends ZodType<any, any, any>> = input<T>;\ntype z_output<T extends ZodType<any, any, any>> = output<T>;\ntype z_CustomErrorParams = CustomErrorParams;\ntype z_ZodTypeDef = ZodTypeDef;\ntype z_RawCreateParams = RawCreateParams;\ntype z_ProcessedCreateParams = ProcessedCreateParams;\ntype z_SafeParseSuccess<Output> = SafeParseSuccess<Output>;\ntype z_SafeParseError<Input> = SafeParseError<Input>;\ntype z_SafeParseReturnType<Input, Output> = SafeParseReturnType<Input, Output>;\ntype z_ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input = Output> = ZodType<Output, Def, Input>;\ndeclare const z_ZodType: typeof ZodType;\ntype z_IpVersion = IpVersion;\ntype z_ZodStringCheck = ZodStringCheck;\ntype z_ZodStringDef = ZodStringDef;\ndeclare const z_datetimeRegex: typeof datetimeRegex;\ntype z_ZodString = ZodString;\ndeclare const z_ZodString: typeof ZodString;\ntype z_ZodNumberCheck = ZodNumberCheck;\ntype z_ZodNumberDef = ZodNumberDef;\ntype z_ZodNumber = ZodNumber;\ndeclare const z_ZodNumber: typeof ZodNumber;\ntype z_ZodBigIntCheck = ZodBigIntCheck;\ntype z_ZodBigIntDef = ZodBigIntDef;\ntype z_ZodBigInt = ZodBigInt;\ndeclare const z_ZodBigInt: typeof ZodBigInt;\ntype z_ZodBooleanDef = ZodBooleanDef;\ntype z_ZodBoolean = ZodBoolean;\ndeclare const z_ZodBoolean: typeof ZodBoolean;\ntype z_ZodDateCheck = ZodDateCheck;\ntype z_ZodDateDef = ZodDateDef;\ntype z_ZodDate = ZodDate;\ndeclare const z_ZodDate: typeof ZodDate;\ntype z_ZodSymbolDef = ZodSymbolDef;\ntype z_ZodSymbol = ZodSymbol;\ndeclare const z_ZodSymbol: typeof ZodSymbol;\ntype z_ZodUndefinedDef = ZodUndefinedDef;\ntype z_ZodUndefined = ZodUndefined;\ndeclare const z_ZodUndefined: typeof ZodUndefined;\ntype z_ZodNullDef = ZodNullDef;\ntype z_ZodNull = ZodNull;\ndeclare const z_ZodNull: typeof ZodNull;\ntype z_ZodAnyDef = ZodAnyDef;\ntype z_ZodAny = ZodAny;\ndeclare const z_ZodAny: typeof ZodAny;\ntype z_ZodUnknownDef = ZodUnknownDef;\ntype z_ZodUnknown = ZodUnknown;\ndeclare const z_ZodUnknown: typeof ZodUnknown;\ntype z_ZodNeverDef = ZodNeverDef;\ntype z_ZodNever = ZodNever;\ndeclare const z_ZodNever: typeof ZodNever;\ntype z_ZodVoidDef = ZodVoidDef;\ntype z_ZodVoid = ZodVoid;\ndeclare const z_ZodVoid: typeof ZodVoid;\ntype z_ZodArrayDef<T extends ZodTypeAny = ZodTypeAny> = ZodArrayDef<T>;\ntype z_ArrayCardinality = ArrayCardinality;\ntype z_arrayOutputType<T extends ZodTypeAny, Cardinality extends ArrayCardinality = 'many'> = arrayOutputType<\n T,\n Cardinality\n>;\ntype z_ZodArray<T extends ZodTypeAny, Cardinality extends ArrayCardinality = 'many'> = ZodArray<T, Cardinality>;\ndeclare const z_ZodArray: typeof ZodArray;\ntype z_ZodNonEmptyArray<T extends ZodTypeAny> = ZodNonEmptyArray<T>;\ntype z_UnknownKeysParam = UnknownKeysParam;\ntype z_ZodObjectDef<\n T extends ZodRawShape = ZodRawShape,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n Catchall extends ZodTypeAny = ZodTypeAny,\n> = ZodObjectDef<T, UnknownKeys, Catchall>;\ntype z_mergeTypes<A, B> = mergeTypes<A, B>;\ntype z_objectOutputType<\n Shape extends ZodRawShape,\n Catchall extends ZodTypeAny,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n> = objectOutputType<Shape, Catchall, UnknownKeys>;\ntype z_baseObjectOutputType<Shape extends ZodRawShape> = baseObjectOutputType<Shape>;\ntype z_objectInputType<\n Shape extends ZodRawShape,\n Catchall extends ZodTypeAny,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n> = objectInputType<Shape, Catchall, UnknownKeys>;\ntype z_baseObjectInputType<Shape extends ZodRawShape> = baseObjectInputType<Shape>;\ntype z_CatchallOutput<T extends ZodType> = CatchallOutput<T>;\ntype z_CatchallInput<T extends ZodType> = CatchallInput<T>;\ntype z_PassthroughType<T extends UnknownKeysParam> = PassthroughType<T>;\ntype z_deoptional<T extends ZodTypeAny> = deoptional<T>;\ntype z_SomeZodObject = SomeZodObject;\ntype z_noUnrecognized<Obj extends object, Shape extends object> = noUnrecognized<Obj, Shape>;\ntype z_ZodObject<\n T extends ZodRawShape,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n Catchall extends ZodTypeAny = ZodTypeAny,\n Output = objectOutputType<T, Catchall, UnknownKeys>,\n Input = objectInputType<T, Catchall, UnknownKeys>,\n> = ZodObject<T, UnknownKeys, Catchall, Output, Input>;\ndeclare const z_ZodObject: typeof ZodObject;\ntype z_AnyZodObject = AnyZodObject;\ntype z_ZodUnionOptions = ZodUnionOptions;\ntype z_ZodUnionDef<T extends ZodUnionOptions = Readonly<[ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>> = ZodUnionDef<T>;\ntype z_ZodUnion<T extends ZodUnionOptions> = ZodUnion<T>;\ndeclare const z_ZodUnion: typeof ZodUnion;\ntype z_ZodDiscriminatedUnionOption<Discriminator extends string> = ZodDiscriminatedUnionOption<Discriminator>;\ntype z_ZodDiscriminatedUnionDef<\n Discriminator extends string,\n Options extends ZodDiscriminatedUnionOption<string>[] = ZodDiscriminatedUnionOption<string>[],\n> = ZodDiscriminatedUnionDef<Discriminator, Options>;\ntype z_ZodDiscriminatedUnion<\n Discriminator extends string,\n Options extends ZodDiscriminatedUnionOption<Discriminator>[],\n> = ZodDiscriminatedUnion<Discriminator, Options>;\ndeclare const z_ZodDiscriminatedUnion: typeof ZodDiscriminatedUnion;\ntype z_ZodIntersectionDef<T extends ZodTypeAny = ZodTypeAny, U extends ZodTypeAny = ZodTypeAny> = ZodIntersectionDef<\n T,\n U\n>;\ntype z_ZodIntersection<T extends ZodTypeAny, U extends ZodTypeAny> = ZodIntersection<T, U>;\ndeclare const z_ZodIntersection: typeof ZodIntersection;\ntype z_ZodTupleItems = ZodTupleItems;\ntype z_AssertArray<T> = AssertArray<T>;\ntype z_OutputTypeOfTuple<T extends ZodTupleItems | []> = OutputTypeOfTuple<T>;\ntype z_OutputTypeOfTupleWithRest<\n T extends ZodTupleItems | [],\n Rest extends ZodTypeAny | null = null,\n> = OutputTypeOfTupleWithRest<T, Rest>;\ntype z_InputTypeOfTuple<T extends ZodTupleItems | []> = InputTypeOfTuple<T>;\ntype z_InputTypeOfTupleWithRest<\n T extends ZodTupleItems | [],\n Rest extends ZodTypeAny | null = null,\n> = InputTypeOfTupleWithRest<T, Rest>;\ntype z_ZodTupleDef<T extends ZodTupleItems | [] = ZodTupleItems, Rest extends ZodTypeAny | null = null> = ZodTupleDef<\n T,\n Rest\n>;\ntype z_AnyZodTuple = AnyZodTuple;\ntype z_ZodTuple<\n T extends [ZodTypeAny, ...ZodTypeAny[]] | [] = [ZodTypeAny, ...ZodTypeAny[]],\n Rest extends ZodTypeAny | null = null,\n> = ZodTuple<T, Rest>;\ndeclare const z_ZodTuple: typeof ZodTuple;\ntype z_ZodRecordDef<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> = ZodRecordDef<\n Key,\n Value\n>;\ntype z_KeySchema = KeySchema;\ntype z_RecordType<K extends string | number | symbol, V> = RecordType<K, V>;\ntype z_ZodRecord<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> = ZodRecord<Key, Value>;\ndeclare const z_ZodRecord: typeof ZodRecord;\ntype z_ZodMapDef<Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny> = ZodMapDef<Key, Value>;\ntype z_ZodMap<Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny> = ZodMap<Key, Value>;\ndeclare const z_ZodMap: typeof ZodMap;\ntype z_ZodSetDef<Value extends ZodTypeAny = ZodTypeAny> = ZodSetDef<Value>;\ntype z_ZodSet<Value extends ZodTypeAny = ZodTypeAny> = ZodSet<Value>;\ndeclare const z_ZodSet: typeof ZodSet;\ntype z_ZodFunctionDef<\n Args extends ZodTuple<any, any> = ZodTuple<any, any>,\n Returns extends ZodTypeAny = ZodTypeAny,\n> = ZodFunctionDef<Args, Returns>;\ntype z_OuterTypeOfFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> = OuterTypeOfFunction<\n Args,\n Returns\n>;\ntype z_InnerTypeOfFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> = InnerTypeOfFunction<\n Args,\n Returns\n>;\ntype z_ZodFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> = ZodFunction<Args, Returns>;\ndeclare const z_ZodFunction: typeof ZodFunction;\ntype z_ZodLazyDef<T extends ZodTypeAny = ZodTypeAny> = ZodLazyDef<T>;\ntype z_ZodLazy<T extends ZodTypeAny> = ZodLazy<T>;\ndeclare const z_ZodLazy: typeof ZodLazy;\ntype z_ZodLiteralDef<T = any> = ZodLiteralDef<T>;\ntype z_ZodLiteral<T> = ZodLiteral<T>;\ndeclare const z_ZodLiteral: typeof ZodLiteral;\ntype z_ArrayKeys = ArrayKeys;\ntype z_Indices<T> = Indices<T>;\ntype z_EnumValues<T extends string = string> = EnumValues<T>;\ntype z_Values<T extends EnumValues> = Values<T>;\ntype z_ZodEnumDef<T extends EnumValues = EnumValues> = ZodEnumDef<T>;\ntype z_Writeable<T> = Writeable<T>;\ntype z_FilterEnum<Values, ToExclude> = FilterEnum<Values, ToExclude>;\ntype z_typecast<A, T> = typecast<A, T>;\ntype z_ZodEnum<T extends [string, ...string[]]> = ZodEnum<T>;\ndeclare const z_ZodEnum: typeof ZodEnum;\ntype z_ZodNativeEnumDef<T extends EnumLike = EnumLike> = ZodNativeEnumDef<T>;\ntype z_EnumLike = EnumLike;\ntype z_ZodNativeEnum<T extends EnumLike> = ZodNativeEnum<T>;\ndeclare const z_ZodNativeEnum: typeof ZodNativeEnum;\ntype z_ZodPromiseDef<T extends ZodTypeAny = ZodTypeAny> = ZodPromiseDef<T>;\ntype z_ZodPromise<T extends ZodTypeAny> = ZodPromise<T>;\ndeclare const z_ZodPromise: typeof ZodPromise;\ntype z_Refinement<T> = Refinement<T>;\ntype z_SuperRefinement<T> = SuperRefinement<T>;\ntype z_RefinementEffect<T> = RefinementEffect<T>;\ntype z_TransformEffect<T> = TransformEffect<T>;\ntype z_PreprocessEffect<T> = PreprocessEffect<T>;\ntype z_Effect<T> = Effect<T>;\ntype z_ZodEffectsDef<T extends ZodTypeAny = ZodTypeAny> = ZodEffectsDef<T>;\ntype z_ZodEffects<T extends ZodTypeAny, Output = output<T>, Input = input<T>> = ZodEffects<T, Output, Input>;\ndeclare const z_ZodEffects: typeof ZodEffects;\ntype z_ZodOptionalDef<T extends ZodTypeAny = ZodTypeAny> = ZodOptionalDef<T>;\ntype z_ZodOptionalType<T extends ZodTypeAny> = ZodOptionalType<T>;\ntype z_ZodOptional<T extends ZodTypeAny> = ZodOptional<T>;\ndeclare const z_ZodOptional: typeof ZodOptional;\ntype z_ZodNullableDef<T extends ZodTypeAny = ZodTypeAny> = ZodNullableDef<T>;\ntype z_ZodNullableType<T extends ZodTypeAny> = ZodNullableType<T>;\ntype z_ZodNullable<T extends ZodTypeAny> = ZodNullable<T>;\ndeclare const z_ZodNullable: typeof ZodNullable;\ntype z_ZodDefaultDef<T extends ZodTypeAny = ZodTypeAny> = ZodDefaultDef<T>;\ntype z_ZodDefault<T extends ZodTypeAny> = ZodDefault<T>;\ndeclare const z_ZodDefault: typeof ZodDefault;\ntype z_ZodCatchDef<T extends ZodTypeAny = ZodTypeAny> = ZodCatchDef<T>;\ntype z_ZodCatch<T extends ZodTypeAny> = ZodCatch<T>;\ndeclare const z_ZodCatch: typeof ZodCatch;\ntype z_ZodNaNDef = ZodNaNDef;\ntype z_ZodNaN = ZodNaN;\ndeclare const z_ZodNaN: typeof ZodNaN;\ntype z_ZodBrandedDef<T extends ZodTypeAny> = ZodBrandedDef<T>;\ntype z_BRAND<T extends string | number | symbol> = BRAND<T>;\ntype z_ZodBranded<T extends ZodTypeAny, B extends string | number | symbol> = ZodBranded<T, B>;\ndeclare const z_ZodBranded: typeof ZodBranded;\ntype z_ZodPipelineDef<A extends ZodTypeAny, B extends ZodTypeAny> = ZodPipelineDef<A, B>;\ntype z_ZodPipeline<A extends ZodTypeAny, B extends ZodTypeAny> = ZodPipeline<A, B>;\ndeclare const z_ZodPipeline: typeof ZodPipeline;\ntype z_ZodReadonlyDef<T extends ZodTypeAny = ZodTypeAny> = ZodReadonlyDef<T>;\ntype z_ZodReadonly<T extends ZodTypeAny> = ZodReadonly<T>;\ndeclare const z_ZodReadonly: typeof ZodReadonly;\ndeclare const z_custom: typeof custom;\ndeclare const z_late: typeof late;\ntype z_ZodFirstPartyTypeKind = ZodFirstPartyTypeKind;\ndeclare const z_ZodFirstPartyTypeKind: typeof ZodFirstPartyTypeKind;\ntype z_ZodFirstPartySchemaTypes = ZodFirstPartySchemaTypes;\ndeclare const z_coerce: typeof coerce;\ndeclare const z_NEVER: typeof NEVER;\ntype z_inferFlattenedErrors<T extends ZodType<any, any, any>, U = string> = inferFlattenedErrors<T, U>;\ntype z_typeToFlattenedError<T, U = string> = typeToFlattenedError<T, U>;\ntype z_ZodIssueCode = ZodIssueCode;\ntype z_ZodIssueBase = ZodIssueBase;\ntype z_ZodInvalidTypeIssue = ZodInvalidTypeIssue;\ntype z_ZodInvalidLiteralIssue = ZodInvalidLiteralIssue;\ntype z_ZodUnrecognizedKeysIssue = ZodUnrecognizedKeysIssue;\ntype z_ZodInvalidUnionIssue = ZodInvalidUnionIssue;\ntype z_ZodInvalidUnionDiscriminatorIssue = ZodInvalidUnionDiscriminatorIssue;\ntype z_ZodInvalidEnumValueIssue = ZodInvalidEnumValueIssue;\ntype z_ZodInvalidArgumentsIssue = ZodInvalidArgumentsIssue;\ntype z_ZodInvalidReturnTypeIssue = ZodInvalidReturnTypeIssue;\ntype z_ZodInvalidDateIssue = ZodInvalidDateIssue;\ntype z_StringValidation = StringValidation;\ntype z_ZodInvalidStringIssue = ZodInvalidStringIssue;\ntype z_ZodTooSmallIssue = ZodTooSmallIssue;\ntype z_ZodTooBigIssue = ZodTooBigIssue;\ntype z_ZodInvalidIntersectionTypesIssue = ZodInvalidIntersectionTypesIssue;\ntype z_ZodNotMultipleOfIssue = ZodNotMultipleOfIssue;\ntype z_ZodNotFiniteIssue = ZodNotFiniteIssue;\ntype z_ZodCustomIssue = ZodCustomIssue;\ntype z_DenormalizedError = DenormalizedError;\ntype z_ZodIssueOptionalMessage = ZodIssueOptionalMessage;\ntype z_ZodIssue = ZodIssue;\ndeclare const z_quotelessJson: typeof quotelessJson;\ntype z_ZodFormattedError<T, U = string> = ZodFormattedError<T, U>;\ntype z_inferFormattedError<T extends ZodType<any, any, any>, U = string> = inferFormattedError<T, U>;\ntype z_ZodError<T = any> = ZodError<T>;\ndeclare const z_ZodError: typeof ZodError;\ntype z_IssueData = IssueData;\ntype z_ErrorMapCtx = ErrorMapCtx;\ntype z_ZodErrorMap = ZodErrorMap;\ndeclare namespace z {\n export {\n errorMap as defaultErrorMap,\n z_setErrorMap as setErrorMap,\n z_getErrorMap as getErrorMap,\n z_makeIssue as makeIssue,\n type z_ParseParams as ParseParams,\n type z_ParsePathComponent as ParsePathComponent,\n type z_ParsePath as ParsePath,\n z_EMPTY_PATH as EMPTY_PATH,\n type z_ParseContext as ParseContext,\n type z_ParseInput as ParseInput,\n z_addIssueToContext as addIssueToContext,\n type z_ObjectPair as ObjectPair,\n z_ParseStatus as ParseStatus,\n type z_ParseResult as ParseResult,\n z_INVALID as INVALID,\n z_DIRTY as DIRTY,\n z_OK as OK,\n type z_SyncParseReturnType as SyncParseReturnType,\n type z_AsyncParseReturnType as AsyncParseReturnType,\n type z_ParseReturnType as ParseReturnType,\n z_isAborted as isAborted,\n z_isDirty as isDirty,\n z_isValid as isValid,\n z_isAsync as isAsync,\n type z_Primitive as Primitive,\n type z_Scalars as Scalars,\n z_util as util,\n z_objectUtil as objectUtil,\n type z_ZodParsedType as ZodParsedType,\n z_getParsedType as getParsedType,\n type TypeOf as infer,\n ZodEffects as ZodTransformer,\n ZodType as Schema,\n ZodType as ZodSchema,\n anyType as any,\n arrayType as array,\n bigIntType as bigint,\n booleanType as boolean,\n dateType as date,\n discriminatedUnionType as discriminatedUnion,\n effectsType as effect,\n enumType as enum,\n functionType as function,\n instanceOfType as instanceof,\n intersectionType as intersection,\n lazyType as lazy,\n literalType as literal,\n mapType as map,\n nanType as nan,\n nativeEnumType as nativeEnum,\n neverType as never,\n nullType as null,\n nullableType as nullable,\n numberType as number,\n objectType as object,\n z_oboolean as oboolean,\n z_onumber as onumber,\n optionalType as optional,\n z_ostring as ostring,\n pipelineType as pipeline,\n preprocessType as preprocess,\n promiseType as promise,\n recordType as record,\n setType as set,\n strictObjectType as strictObject,\n stringType as string,\n symbolType as symbol,\n effectsType as transformer,\n tupleType as tuple,\n undefinedType as undefined,\n unionType as union,\n unknownType as unknown,\n voidType as void,\n type z_RefinementCtx as RefinementCtx,\n type z_ZodRawShape as ZodRawShape,\n type z_ZodTypeAny as ZodTypeAny,\n type z_TypeOf as TypeOf,\n type z_input as input,\n type z_output as output,\n type z_CustomErrorParams as CustomErrorParams,\n type z_ZodTypeDef as ZodTypeDef,\n type z_RawCreateParams as RawCreateParams,\n type z_ProcessedCreateParams as ProcessedCreateParams,\n type z_SafeParseSuccess as SafeParseSuccess,\n type z_SafeParseError as SafeParseError,\n type z_SafeParseReturnType as SafeParseReturnType,\n z_ZodType as ZodType,\n type z_IpVersion as IpVersion,\n type z_ZodStringCheck as ZodStringCheck,\n type z_ZodStringDef as ZodStringDef,\n z_datetimeRegex as datetimeRegex,\n z_ZodString as ZodString,\n type z_ZodNumberCheck as ZodNumberCheck,\n type z_ZodNumberDef as ZodNumberDef,\n z_ZodNumber as ZodNumber,\n type z_ZodBigIntCheck as ZodBigIntCheck,\n type z_ZodBigIntDef as ZodBigIntDef,\n z_ZodBigInt as ZodBigInt,\n type z_ZodBooleanDef as ZodBooleanDef,\n z_ZodBoolean as ZodBoolean,\n type z_ZodDateCheck as ZodDateCheck,\n type z_ZodDateDef as ZodDateDef,\n z_ZodDate as ZodDate,\n type z_ZodSymbolDef as ZodSymbolDef,\n z_ZodSymbol as ZodSymbol,\n type z_ZodUndefinedDef as ZodUndefinedDef,\n z_ZodUndefined as ZodUndefined,\n type z_ZodNullDef as ZodNullDef,\n z_ZodNull as ZodNull,\n type z_ZodAnyDef as ZodAnyDef,\n z_ZodAny as ZodAny,\n type z_ZodUnknownDef as ZodUnknownDef,\n z_ZodUnknown as ZodUnknown,\n type z_ZodNeverDef as ZodNeverDef,\n z_ZodNever as ZodNever,\n type z_ZodVoidDef as ZodVoidDef,\n z_ZodVoid as ZodVoid,\n type z_ZodArrayDef as ZodArrayDef,\n type z_ArrayCardinality as ArrayCardinality,\n type z_arrayOutputType as arrayOutputType,\n z_ZodArray as ZodArray,\n type z_ZodNonEmptyArray as ZodNonEmptyArray,\n type z_UnknownKeysParam as UnknownKeysParam,\n type z_ZodObjectDef as ZodObjectDef,\n type z_mergeTypes as mergeTypes,\n type z_objectOutputType as objectOutputType,\n type z_baseObjectOutputType as baseObjectOutputType,\n type z_objectInputType as objectInputType,\n type z_baseObjectInputType as baseObjectInputType,\n type z_CatchallOutput as CatchallOutput,\n type z_CatchallInput as CatchallInput,\n type z_PassthroughType as PassthroughType,\n type z_deoptional as deoptional,\n type z_SomeZodObject as SomeZodObject,\n type z_noUnrecognized as noUnrecognized,\n z_ZodObject as ZodObject,\n type z_AnyZodObject as AnyZodObject,\n type z_ZodUnionOptions as ZodUnionOptions,\n type z_ZodUnionDef as ZodUnionDef,\n z_ZodUnion as ZodUnion,\n type z_ZodDiscriminatedUnionOption as ZodDiscriminatedUnionOption,\n type z_ZodDiscriminatedUnionDef as ZodDiscriminatedUnionDef,\n z_ZodDiscriminatedUnion as ZodDiscriminatedUnion,\n type z_ZodIntersectionDef as ZodIntersectionDef,\n z_ZodIntersection as ZodIntersection,\n type z_ZodTupleItems as ZodTupleItems,\n type z_AssertArray as AssertArray,\n type z_OutputTypeOfTuple as OutputTypeOfTuple,\n type z_OutputTypeOfTupleWithRest as OutputTypeOfTupleWithRest,\n type z_InputTypeOfTuple as InputTypeOfTuple,\n type z_InputTypeOfTupleWithRest as InputTypeOfTupleWithRest,\n type z_ZodTupleDef as ZodTupleDef,\n type z_AnyZodTuple as AnyZodTuple,\n z_ZodTuple as ZodTuple,\n type z_ZodRecordDef as ZodRecordDef,\n type z_KeySchema as KeySchema,\n type z_RecordType as RecordType,\n z_ZodRecord as ZodRecord,\n type z_ZodMapDef as ZodMapDef,\n z_ZodMap as ZodMap,\n type z_ZodSetDef as ZodSetDef,\n z_ZodSet as ZodSet,\n type z_ZodFunctionDef as ZodFunctionDef,\n type z_OuterTypeOfFunction as OuterTypeOfFunction,\n type z_InnerTypeOfFunction as InnerTypeOfFunction,\n z_ZodFunction as ZodFunction,\n type z_ZodLazyDef as ZodLazyDef,\n z_ZodLazy as ZodLazy,\n type z_ZodLiteralDef as ZodLiteralDef,\n z_ZodLiteral as ZodLiteral,\n type z_ArrayKeys as ArrayKeys,\n type z_Indices as Indices,\n type z_EnumValues as EnumValues,\n type z_Values as Values,\n type z_ZodEnumDef as ZodEnumDef,\n type z_Writeable as Writeable,\n type z_FilterEnum as FilterEnum,\n type z_typecast as typecast,\n z_ZodEnum as ZodEnum,\n type z_ZodNativeEnumDef as ZodNativeEnumDef,\n type z_EnumLike as EnumLike,\n z_ZodNativeEnum as ZodNativeEnum,\n type z_ZodPromiseDef as ZodPromiseDef,\n z_ZodPromise as ZodPromise,\n type z_Refinement as Refinement,\n type z_SuperRefinement as SuperRefinement,\n type z_RefinementEffect as RefinementEffect,\n type z_TransformEffect as TransformEffect,\n type z_PreprocessEffect as PreprocessEffect,\n type z_Effect as Effect,\n type z_ZodEffectsDef as ZodEffectsDef,\n z_ZodEffects as ZodEffects,\n type z_ZodOptionalDef as ZodOptionalDef,\n type z_ZodOptionalType as ZodOptionalType,\n z_ZodOptional as ZodOptional,\n type z_ZodNullableDef as ZodNullableDef,\n type z_ZodNullableType as ZodNullableType,\n z_ZodNullable as ZodNullable,\n type z_ZodDefaultDef as ZodDefaultDef,\n z_ZodDefault as ZodDefault,\n type z_ZodCatchDef as ZodCatchDef,\n z_ZodCatch as ZodCatch,\n type z_ZodNaNDef as ZodNaNDef,\n z_ZodNaN as ZodNaN,\n type z_ZodBrandedDef as ZodBrandedDef,\n type z_BRAND as BRAND,\n z_ZodBranded as ZodBranded,\n type z_ZodPipelineDef as ZodPipelineDef,\n z_ZodPipeline as ZodPipeline,\n type z_ZodReadonlyDef as ZodReadonlyDef,\n z_ZodReadonly as ZodReadonly,\n z_custom as custom,\n z_late as late,\n z_ZodFirstPartyTypeKind as ZodFirstPartyTypeKind,\n type z_ZodFirstPartySchemaTypes as ZodFirstPartySchemaTypes,\n z_coerce as coerce,\n z_NEVER as NEVER,\n type z_inferFlattenedErrors as inferFlattenedErrors,\n type z_typeToFlattenedError as typeToFlattenedError,\n type z_ZodIssueCode as ZodIssueCode,\n type z_ZodIssueBase as ZodIssueBase,\n type z_ZodInvalidTypeIssue as ZodInvalidTypeIssue,\n type z_ZodInvalidLiteralIssue as ZodInvalidLiteralIssue,\n type z_ZodUnrecognizedKeysIssue as ZodUnrecognizedKeysIssue,\n type z_ZodInvalidUnionIssue as ZodInvalidUnionIssue,\n type z_ZodInvalidUnionDiscriminatorIssue as ZodInvalidUnionDiscriminatorIssue,\n type z_ZodInvalidEnumValueIssue as ZodInvalidEnumValueIssue,\n type z_ZodInvalidArgumentsIssue as ZodInvalidArgumentsIssue,\n type z_ZodInvalidReturnTypeIssue as ZodInvalidReturnTypeIssue,\n type z_ZodInvalidDateIssue as ZodInvalidDateIssue,\n type z_StringValidation as StringValidation,\n type z_ZodInvalidStringIssue as ZodInvalidStringIssue,\n type z_ZodTooSmallIssue as ZodTooSmallIssue,\n type z_ZodTooBigIssue as ZodTooBigIssue,\n type z_ZodInvalidIntersectionTypesIssue as ZodInvalidIntersectionTypesIssue,\n type z_ZodNotMultipleOfIssue as ZodNotMultipleOfIssue,\n type z_ZodNotFiniteIssue as ZodNotFiniteIssue,\n type z_ZodCustomIssue as ZodCustomIssue,\n type z_DenormalizedError as DenormalizedError,\n type z_ZodIssueOptionalMessage as ZodIssueOptionalMessage,\n type z_ZodIssue as ZodIssue,\n z_quotelessJson as quotelessJson,\n type z_ZodFormattedError as ZodFormattedError,\n type z_inferFormattedError as inferFormattedError,\n z_ZodError as ZodError,\n type z_IssueData as IssueData,\n type z_ErrorMapCtx as ErrorMapCtx,\n type z_ZodErrorMap as ZodErrorMap,\n };\n}\n\n//# sourceMappingURL=index.d.ts.map\n\nexport {\n type AnyZodObject,\n type AnyZodTuple,\n type ArrayCardinality,\n type ArrayKeys,\n type AssertArray,\n type AsyncParseReturnType,\n BRAND,\n type CatchallInput,\n type CatchallOutput,\n type CustomErrorParams,\n DIRTY,\n type DenormalizedError,\n EMPTY_PATH,\n type Effect,\n type EnumLike,\n type EnumValues,\n type ErrorMapCtx,\n type FilterEnum,\n INVALID,\n type Indices,\n type InnerTypeOfFunction,\n type InputTypeOfTuple,\n type InputTypeOfTupleWithRest,\n type IpVersion,\n type IssueData,\n type KeySchema,\n NEVER,\n OK,\n type ObjectPair,\n type OuterTypeOfFunction,\n type OutputTypeOfTuple,\n type OutputTypeOfTupleWithRest,\n type ParseContext,\n type ParseInput,\n type ParseParams,\n type ParsePath,\n type ParsePathComponent,\n type ParseResult,\n type ParseReturnType,\n ParseStatus,\n type PassthroughType,\n type PreprocessEffect,\n type Primitive,\n type ProcessedCreateParams,\n type RawCreateParams,\n type RecordType,\n type Refinement,\n type RefinementCtx,\n type RefinementEffect,\n type SafeParseError,\n type SafeParseReturnType,\n type SafeParseSuccess,\n type Scalars,\n ZodType as Schema,\n type SomeZodObject,\n type StringValidation,\n type SuperRefinement,\n type SyncParseReturnType,\n type TransformEffect,\n type TypeOf,\n type UnknownKeysParam,\n type Values,\n type Writeable,\n ZodAny,\n type ZodAnyDef,\n ZodArray,\n type ZodArrayDef,\n ZodBigInt,\n type ZodBigIntCheck,\n type ZodBigIntDef,\n ZodBoolean,\n type ZodBooleanDef,\n ZodBranded,\n type ZodBrandedDef,\n ZodCatch,\n type ZodCatchDef,\n type ZodCustomIssue,\n ZodDate,\n type ZodDateCheck,\n type ZodDateDef,\n ZodDefault,\n type ZodDefaultDef,\n ZodDiscriminatedUnion,\n type ZodDiscriminatedUnionDef,\n type ZodDiscriminatedUnionOption,\n ZodEffects,\n type ZodEffectsDef,\n ZodEnum,\n type ZodEnumDef,\n ZodError,\n type ZodErrorMap,\n type ZodFirstPartySchemaTypes,\n ZodFirstPartyTypeKind,\n type ZodFormattedError,\n ZodFunction,\n type ZodFunctionDef,\n ZodIntersection,\n type ZodIntersectionDef,\n type ZodInvalidArgumentsIssue,\n type ZodInvalidDateIssue,\n type ZodInvalidEnumValueIssue,\n type ZodInvalidIntersectionTypesIssue,\n type ZodInvalidLiteralIssue,\n type ZodInvalidReturnTypeIssue,\n type ZodInvalidStringIssue,\n type ZodInvalidTypeIssue,\n type ZodInvalidUnionDiscriminatorIssue,\n type ZodInvalidUnionIssue,\n type ZodIssue,\n type ZodIssueBase,\n ZodIssueCode,\n type ZodIssueOptionalMessage,\n ZodLazy,\n type ZodLazyDef,\n ZodLiteral,\n type ZodLiteralDef,\n ZodMap,\n type ZodMapDef,\n ZodNaN,\n type ZodNaNDef,\n ZodNativeEnum,\n type ZodNativeEnumDef,\n ZodNever,\n type ZodNeverDef,\n type ZodNonEmptyArray,\n type ZodNotFiniteIssue,\n type ZodNotMultipleOfIssue,\n ZodNull,\n type ZodNullDef,\n ZodNullable,\n type ZodNullableDef,\n type ZodNullableType,\n ZodNumber,\n type ZodNumberCheck,\n type ZodNumberDef,\n ZodObject,\n type ZodObjectDef,\n ZodOptional,\n type ZodOptionalDef,\n type ZodOptionalType,\n ZodParsedType,\n ZodPipeline,\n type ZodPipelineDef,\n ZodPromise,\n type ZodPromiseDef,\n type ZodRawShape,\n ZodReadonly,\n type ZodReadonlyDef,\n ZodRecord,\n type ZodRecordDef,\n ZodType as ZodSchema,\n ZodSet,\n type ZodSetDef,\n ZodString,\n type ZodStringCheck,\n type ZodStringDef,\n ZodSymbol,\n type ZodSymbolDef,\n type ZodTooBigIssue,\n type ZodTooSmallIssue,\n ZodEffects as ZodTransformer,\n ZodTuple,\n type ZodTupleDef,\n type ZodTupleItems,\n ZodType,\n type ZodTypeAny,\n type ZodTypeDef,\n ZodUndefined,\n type ZodUndefinedDef,\n ZodUnion,\n type ZodUnionDef,\n type ZodUnionOptions,\n ZodUnknown,\n type ZodUnknownDef,\n type ZodUnrecognizedKeysIssue,\n ZodVoid,\n type ZodVoidDef,\n addIssueToContext,\n anyType as any,\n arrayType as array,\n type arrayOutputType,\n type baseObjectInputType,\n type baseObjectOutputType,\n bigIntType as bigint,\n booleanType as boolean,\n coerce,\n custom,\n dateType as date,\n datetimeRegex,\n z as default,\n errorMap as defaultErrorMap,\n type deoptional,\n discriminatedUnionType as discriminatedUnion,\n effectsType as effect,\n enumType as enum,\n functionType as function,\n getErrorMap,\n getParsedType,\n type TypeOf as infer,\n type inferFlattenedErrors,\n type inferFormattedError,\n type input,\n instanceOfType as instanceof,\n intersectionType as intersection,\n isAborted,\n isAsync,\n isDirty,\n isValid,\n late,\n lazyType as lazy,\n literalType as literal,\n makeIssue,\n mapType as map,\n type mergeTypes,\n nanType as nan,\n nativeEnumType as nativeEnum,\n neverType as never,\n type noUnrecognized,\n nullType as null,\n nullableType as nullable,\n numberType as number,\n objectType as object,\n type objectInputType,\n type objectOutputType,\n objectUtil,\n oboolean,\n onumber,\n optionalType as optional,\n ostring,\n type output,\n pipelineType as pipeline,\n preprocessType as preprocess,\n promiseType as promise,\n quotelessJson,\n recordType as record,\n setType as set,\n setErrorMap,\n strictObjectType as strictObject,\n stringType as string,\n symbolType as symbol,\n effectsType as transformer,\n tupleType as tuple,\n type typeToFlattenedError,\n type typecast,\n undefinedType as undefined,\n unionType as union,\n unknownType as unknown,\n util,\n voidType as void,\n z,\n};\n",
|
|
12981
12981
|
documentationUrl: "https://zod.dev/"
|
|
12982
12982
|
}
|
|
12983
|
-
], lg = { globals: { "global.d.ts": sg } }, ug = og, dg = M.lazy(async () => ({ default: (await Promise.resolve().then(() =>
|
|
12983
|
+
], lg = { globals: { "global.d.ts": sg } }, ug = og, dg = M.lazy(async () => ({ default: (await Promise.resolve().then(() => Wy)).Function })), fg = ({ id: e }) => {
|
|
12984
12984
|
let t = hg(e), n = Gm(), r = Um((e) => e.onFunctionReady), [i, a] = L(), o = I(null), s = I(null);
|
|
12985
12985
|
eh(e, "monaco", {
|
|
12986
12986
|
serialize: () => o.current?.saveViewState() ?? s.current ?? null,
|
|
@@ -17478,6 +17478,22 @@ var m_ = p_({
|
|
|
17478
17478
|
if (!t || t.mode !== "scoped" || !Array.isArray(e)) return [];
|
|
17479
17479
|
let n = [];
|
|
17480
17480
|
return e.forEach((e) => {
|
|
17481
|
+
if (nv(e.value) && typeof e.value.$call == "string") {
|
|
17482
|
+
let r = mv(t, e.value.$call);
|
|
17483
|
+
if (!r) return;
|
|
17484
|
+
let i = nv(r.parameters) ? r.parameters.properties ?? {} : {}, a = Object.keys(i), o = nv(e.value.kwargs) ? e.value.kwargs : {}, s = a.filter((e) => !(e in o)).map((e) => ({
|
|
17485
|
+
name: e,
|
|
17486
|
+
default: i[e]?.default
|
|
17487
|
+
})), c = Object.keys(o).filter((e) => !a.includes(e) && e !== "$positional");
|
|
17488
|
+
(s.length > 0 || c.length > 0) && n.push({
|
|
17489
|
+
rowId: e.id,
|
|
17490
|
+
rowKey: e.key ?? "",
|
|
17491
|
+
functionName: e.value.$call,
|
|
17492
|
+
missing: s,
|
|
17493
|
+
unrecognized: c
|
|
17494
|
+
});
|
|
17495
|
+
return;
|
|
17496
|
+
}
|
|
17481
17497
|
if (!lv(e)) return;
|
|
17482
17498
|
let r = uv(e.value);
|
|
17483
17499
|
if (!r) return;
|
|
@@ -17531,20 +17547,43 @@ var m_ = p_({
|
|
|
17531
17547
|
};
|
|
17532
17548
|
});
|
|
17533
17549
|
return i ? a : null;
|
|
17534
|
-
}, _v =
|
|
17550
|
+
}, _v = (e) => e && nv(e.parameters) && nv(e.parameters.properties) ? Object.keys(e.parameters.properties) : [], vv = (e, t, n) => {
|
|
17551
|
+
if (!Array.isArray(e) || e.length === 0) return null;
|
|
17552
|
+
let r = _v(t), i = String(e[0] ?? "").trim();
|
|
17553
|
+
if (!i) return null;
|
|
17554
|
+
let a = { ...n ?? {} };
|
|
17555
|
+
r.forEach((t, n) => {
|
|
17556
|
+
e[n + 1] !== void 0 && (a[t] = e[n + 1]);
|
|
17557
|
+
});
|
|
17558
|
+
let o = e.slice(r.length + 1);
|
|
17559
|
+
return o.length > 0 ? a.$positional = o : delete a.$positional, {
|
|
17560
|
+
$call: i,
|
|
17561
|
+
kwargs: a
|
|
17562
|
+
};
|
|
17563
|
+
}, yv = (e, t) => {
|
|
17564
|
+
if (!nv(e)) return null;
|
|
17565
|
+
let n = typeof e.$call == "string" ? e.$call.trim() : "";
|
|
17566
|
+
if (!n) return null;
|
|
17567
|
+
let r = nv(e.kwargs) ? e.kwargs : {}, i = _v(t).map((e) => r[e] === void 0 ? "" : r[e]), a = Array.isArray(r.$positional) ? r.$positional : [];
|
|
17568
|
+
return [
|
|
17569
|
+
n,
|
|
17570
|
+
...i,
|
|
17571
|
+
...a
|
|
17572
|
+
];
|
|
17573
|
+
}, bv = M.createContext({}), xv = (e = {}) => ({
|
|
17535
17574
|
id: crypto.randomUUID(),
|
|
17536
17575
|
key: "",
|
|
17537
17576
|
value: "",
|
|
17538
17577
|
...e
|
|
17539
|
-
}),
|
|
17578
|
+
}), Sv = ({ children: e }) => {
|
|
17540
17579
|
let t = F(() => Ln((e, t) => ({
|
|
17541
17580
|
disabled: !1,
|
|
17542
17581
|
debugIndex: 0,
|
|
17543
17582
|
addRowAbove: (t = 0) => {
|
|
17544
|
-
e(U((e) => (e.expressions.splice(t, 0,
|
|
17583
|
+
e(U((e) => (e.expressions.splice(t, 0, xv()), e)));
|
|
17545
17584
|
},
|
|
17546
17585
|
addRowBelow: (t) => {
|
|
17547
|
-
e(U((e) => (t ??= e.expressions.length - 1, e.expressions.splice(t + 1, 0,
|
|
17586
|
+
e(U((e) => (t ??= e.expressions.length - 1, e.expressions.splice(t + 1, 0, xv()), e)));
|
|
17548
17587
|
},
|
|
17549
17588
|
expressions: [],
|
|
17550
17589
|
setExpressions: (t) => {
|
|
@@ -17569,16 +17608,16 @@ var m_ = p_({
|
|
|
17569
17608
|
}, e)));
|
|
17570
17609
|
}
|
|
17571
17610
|
})), []);
|
|
17572
|
-
return /* @__PURE__ */ V(
|
|
17611
|
+
return /* @__PURE__ */ V(bv.Provider, {
|
|
17573
17612
|
value: t,
|
|
17574
17613
|
children: e
|
|
17575
17614
|
});
|
|
17576
17615
|
};
|
|
17577
|
-
function
|
|
17578
|
-
return Rn(M.useContext(
|
|
17616
|
+
function Cv(e, t = Cc.default) {
|
|
17617
|
+
return Rn(M.useContext(bv), wc(e, t));
|
|
17579
17618
|
}
|
|
17580
|
-
var
|
|
17581
|
-
let e =
|
|
17619
|
+
var wv = () => M.useContext(bv), Tv = () => {
|
|
17620
|
+
let e = wv(), { debugIndex: t, traceCount: n } = Cv(({ debug: e, debugIndex: t }) => ({
|
|
17582
17621
|
debugIndex: t,
|
|
17583
17622
|
traceCount: G(e?.trace?.traceData).with(W.array(), (e) => e.length).otherwise(() => null)
|
|
17584
17623
|
}));
|
|
@@ -17588,8 +17627,8 @@ var xv = () => M.useContext(_v), Sv = () => {
|
|
|
17588
17627
|
traceCount: n,
|
|
17589
17628
|
onDebugIndexChange: (t) => e.setState({ debugIndex: t })
|
|
17590
17629
|
});
|
|
17591
|
-
},
|
|
17592
|
-
let o = I(!1), s =
|
|
17630
|
+
}, Ev = ({ value: e, onChange: t, defaultValue: n = [], disabled: r = !1, permission: i = "edit:full", functionScope: a }) => {
|
|
17631
|
+
let o = I(!1), s = wv(), { setExpressions: c, expressions: l } = Cv(({ setExpressions: e, expressions: t }) => ({
|
|
17593
17632
|
setExpressions: e,
|
|
17594
17633
|
expressions: t
|
|
17595
17634
|
}));
|
|
@@ -17611,34 +17650,34 @@ var xv = () => M.useContext(_v), Sv = () => {
|
|
|
17611
17650
|
} else n && c(n);
|
|
17612
17651
|
o.current = !0;
|
|
17613
17652
|
}, []), null;
|
|
17614
|
-
},
|
|
17653
|
+
}, Dv = (e) => Array.isArray(e.type) ? e.type.find((e) => e !== "null") ?? e.type[0] : e.type, Ov = (e) => {
|
|
17615
17654
|
if (!e || typeof e != "object") return An.fromJson("Any");
|
|
17616
|
-
if (Array.isArray(e.oneOf) && e.oneOf.length > 0) return
|
|
17617
|
-
if (Array.isArray(e.anyOf) && e.anyOf.length > 0) return
|
|
17618
|
-
if (Array.isArray(e.allOf) && e.allOf.length > 0) return e.allOf.reduce((e, t) => e.merge(
|
|
17619
|
-
switch (
|
|
17655
|
+
if (Array.isArray(e.oneOf) && e.oneOf.length > 0) return Ov(e.oneOf[0]);
|
|
17656
|
+
if (Array.isArray(e.anyOf) && e.anyOf.length > 0) return Ov(e.anyOf[0]);
|
|
17657
|
+
if (Array.isArray(e.allOf) && e.allOf.length > 0) return e.allOf.reduce((e, t) => e.merge(Ov(t)), An.fromJson({ Object: {} }));
|
|
17658
|
+
switch (Dv(e)) {
|
|
17620
17659
|
case "object": {
|
|
17621
17660
|
let t = An.fromJson({ Object: {} });
|
|
17622
17661
|
return Object.entries(e.properties ?? {}).forEach(([e, n]) => {
|
|
17623
|
-
t.set(e,
|
|
17662
|
+
t.set(e, Ov(n));
|
|
17624
17663
|
}), t;
|
|
17625
17664
|
}
|
|
17626
|
-
case "array": return
|
|
17665
|
+
case "array": return Ov(Array.isArray(e.items) ? e.items[0] : e.items).toArray();
|
|
17627
17666
|
case "string": return An.fromJson("String");
|
|
17628
17667
|
case "boolean": return An.fromJson("Bool");
|
|
17629
17668
|
case "number":
|
|
17630
17669
|
case "integer": return An.fromJson("Number");
|
|
17631
17670
|
case "null": return An.fromJson("Null");
|
|
17632
|
-
default: return e.properties ?
|
|
17671
|
+
default: return e.properties ? Ov({
|
|
17633
17672
|
...e,
|
|
17634
17673
|
type: "object"
|
|
17635
|
-
}) : e.items ?
|
|
17674
|
+
}) : e.items ? Ov({
|
|
17636
17675
|
...e,
|
|
17637
17676
|
type: "array"
|
|
17638
17677
|
}) : e.nullable ? An.fromJson("Null") : An.fromJson("Any");
|
|
17639
17678
|
}
|
|
17640
|
-
},
|
|
17641
|
-
let { addRowAbove: n, addRowBelow: r, disabled: i } =
|
|
17679
|
+
}, kv = ({ index: e, children: t }) => {
|
|
17680
|
+
let { addRowAbove: n, addRowBelow: r, disabled: i } = Cv(({ addRowBelow: e, addRowAbove: t, disabled: n }) => ({
|
|
17642
17681
|
addRowBelow: e,
|
|
17643
17682
|
addRowAbove: t,
|
|
17644
17683
|
disabled: n
|
|
@@ -17650,7 +17689,7 @@ var xv = () => M.useContext(_v), Sv = () => {
|
|
|
17650
17689
|
addRowBelow: r,
|
|
17651
17690
|
children: t
|
|
17652
17691
|
});
|
|
17653
|
-
},
|
|
17692
|
+
}, Av = rv, jv = ({ expression: e, index: t, variableType: n, customFunctions: r, functionScope: i }) => {
|
|
17654
17693
|
let a = Z(), [o, s] = L(!1), [c, l] = L("function"), u = I(null), d = i?.mode ?? "free", f = F(() => ov(r), [r]), p = F(() => d === "scoped" ? i?.functions ?? [] : f, [
|
|
17655
17694
|
d,
|
|
17656
17695
|
i,
|
|
@@ -17666,7 +17705,7 @@ var xv = () => M.useContext(_v), Sv = () => {
|
|
|
17666
17705
|
if (r.length === i) return r;
|
|
17667
17706
|
let a = n.split(";;");
|
|
17668
17707
|
return a.length === i ? a : r.length < i && a.length > i ? [...a.slice(0, i - 1), a.slice(i - 1).join(";;")] : r;
|
|
17669
|
-
}, y = (t, n = e.returnSchema ??
|
|
17708
|
+
}, y = (t, n = e.returnSchema ?? Av) => {
|
|
17670
17709
|
if (!t || typeof t == "string" && !t.trim()) return null;
|
|
17671
17710
|
let r = bm(t), i = r[0], a = f.find((e) => e.name === i);
|
|
17672
17711
|
if (!a) {
|
|
@@ -17707,7 +17746,7 @@ var xv = () => M.useContext(_v), Sv = () => {
|
|
|
17707
17746
|
if (!lv(e)) return null;
|
|
17708
17747
|
if (e.funcmeta) {
|
|
17709
17748
|
if (e.funcmeta.parameters?.properties) {
|
|
17710
|
-
let t = {}, n = e.funcmeta.parameters.properties, r = y(e.value, e.returnSchema ??
|
|
17749
|
+
let t = {}, n = e.funcmeta.parameters.properties, r = y(e.value, e.returnSchema ?? Av);
|
|
17711
17750
|
return Object.keys(n).forEach((i) => {
|
|
17712
17751
|
let a = r?.arg_exprs?.[i];
|
|
17713
17752
|
if (a != null) {
|
|
@@ -17726,14 +17765,14 @@ var xv = () => M.useContext(_v), Sv = () => {
|
|
|
17726
17765
|
arg_exprs: e.arg_exprs || {}
|
|
17727
17766
|
};
|
|
17728
17767
|
}
|
|
17729
|
-
return y(e.value, e.returnSchema ??
|
|
17768
|
+
return y(e.value, e.returnSchema ?? Av);
|
|
17730
17769
|
}, [
|
|
17731
17770
|
e.type,
|
|
17732
17771
|
e.funcmeta,
|
|
17733
17772
|
e.arg_exprs,
|
|
17734
17773
|
e.value,
|
|
17735
17774
|
f
|
|
17736
|
-
]), { updateRow: x, removeRow: S, disabled: C, permission: w, configurable: T } =
|
|
17775
|
+
]), { updateRow: x, removeRow: S, disabled: C, permission: w, configurable: T } = Cv(({ updateRow: e, removeRow: t, disabled: n, permission: r, configurable: i }) => ({
|
|
17737
17776
|
updateRow: e,
|
|
17738
17777
|
removeRow: t,
|
|
17739
17778
|
disabled: n,
|
|
@@ -17815,7 +17854,7 @@ var xv = () => M.useContext(_v), Sv = () => {
|
|
|
17815
17854
|
}),
|
|
17816
17855
|
/* @__PURE__ */ V("div", {
|
|
17817
17856
|
className: "expression-list-item__key",
|
|
17818
|
-
children: /* @__PURE__ */ V(
|
|
17857
|
+
children: /* @__PURE__ */ V(kv, {
|
|
17819
17858
|
index: t,
|
|
17820
17859
|
children: /* @__PURE__ */ V(Gp, {
|
|
17821
17860
|
noStyle: !0,
|
|
@@ -17896,7 +17935,7 @@ var xv = () => M.useContext(_v), Sv = () => {
|
|
|
17896
17935
|
})
|
|
17897
17936
|
})
|
|
17898
17937
|
}),
|
|
17899
|
-
/* @__PURE__ */ V(
|
|
17938
|
+
/* @__PURE__ */ V(Nv, {
|
|
17900
17939
|
expression: e,
|
|
17901
17940
|
placement: "inline"
|
|
17902
17941
|
})
|
|
@@ -17905,7 +17944,7 @@ var xv = () => M.useContext(_v), Sv = () => {
|
|
|
17905
17944
|
}] : [], {
|
|
17906
17945
|
key: "code",
|
|
17907
17946
|
label: a("cf.code"),
|
|
17908
|
-
children: /* @__PURE__ */ V(
|
|
17947
|
+
children: /* @__PURE__ */ V(kv, {
|
|
17909
17948
|
index: t,
|
|
17910
17949
|
children: /* @__PURE__ */ H("div", {
|
|
17911
17950
|
className: "code-mode-container",
|
|
@@ -17925,7 +17964,7 @@ var xv = () => M.useContext(_v), Sv = () => {
|
|
|
17925
17964
|
onBlur: () => s(!1),
|
|
17926
17965
|
noStyle: !0
|
|
17927
17966
|
})
|
|
17928
|
-
}), /* @__PURE__ */ V(
|
|
17967
|
+
}), /* @__PURE__ */ V(Nv, {
|
|
17929
17968
|
expression: e,
|
|
17930
17969
|
placement: "inline"
|
|
17931
17970
|
})]
|
|
@@ -17940,15 +17979,15 @@ var xv = () => M.useContext(_v), Sv = () => {
|
|
|
17940
17979
|
iconOnly: !0,
|
|
17941
17980
|
disabled: w !== "edit:full" || C,
|
|
17942
17981
|
onConfirm: ne
|
|
17943
|
-
}), o && /* @__PURE__ */ V(
|
|
17982
|
+
}), o && /* @__PURE__ */ V(Mv, {
|
|
17944
17983
|
id: e.id,
|
|
17945
17984
|
value: e.value
|
|
17946
17985
|
})]
|
|
17947
17986
|
})
|
|
17948
17987
|
]
|
|
17949
17988
|
});
|
|
17950
|
-
},
|
|
17951
|
-
let { inputData: n, initial: r } =
|
|
17989
|
+
}, Mv = M.memo(({ id: e, value: t }) => {
|
|
17990
|
+
let { inputData: n, initial: r } = Cv(({ debug: t, debugIndex: n, calculatedInputData: r }) => {
|
|
17952
17991
|
let i = (t?.snapshot?.expressions ?? []).find((t) => t.id === e), a = i?.key ? Gh(t?.trace.traceData, n)?.[i.key] : void 0;
|
|
17953
17992
|
return {
|
|
17954
17993
|
inputData: r,
|
|
@@ -17966,15 +18005,15 @@ var xv = () => M.useContext(_v), Sv = () => {
|
|
|
17966
18005
|
initial: r
|
|
17967
18006
|
})
|
|
17968
18007
|
});
|
|
17969
|
-
}),
|
|
17970
|
-
let { trace: n } =
|
|
18008
|
+
}), Nv = ({ expression: e, placement: t = "floating" }) => {
|
|
18009
|
+
let { trace: n } = Cv(({ debug: t, debugIndex: n }) => ({ trace: Pv({
|
|
17971
18010
|
traceData: Gh(t?.trace?.traceData, n),
|
|
17972
18011
|
output: Gh(t?.trace?.output, n),
|
|
17973
18012
|
outputPath: t?.snapshot?.outputPath,
|
|
17974
18013
|
key: e.key
|
|
17975
18014
|
}) }));
|
|
17976
18015
|
if (n === void 0) return null;
|
|
17977
|
-
let r =
|
|
18016
|
+
let r = Rv(n);
|
|
17978
18017
|
return /* @__PURE__ */ V("div", {
|
|
17979
18018
|
className: z("expression-list-item__resultOverlay", t === "inline" && "expression-list-item__resultOverlay--inline"),
|
|
17980
18019
|
children: /* @__PURE__ */ H(X.Text, {
|
|
@@ -17989,20 +18028,20 @@ var xv = () => M.useContext(_v), Sv = () => {
|
|
|
17989
18028
|
children: ["= ", r]
|
|
17990
18029
|
})
|
|
17991
18030
|
});
|
|
17992
|
-
},
|
|
18031
|
+
}, Pv = ({ traceData: e, output: t, outputPath: n, key: r }) => {
|
|
17993
18032
|
if (!r) return;
|
|
17994
|
-
let i =
|
|
17995
|
-
if (
|
|
18033
|
+
let i = Fv(e, r);
|
|
18034
|
+
if (Lv(i) && Object.prototype.hasOwnProperty.call(i, "result")) return i.result;
|
|
17996
18035
|
if (i !== void 0) return i;
|
|
17997
|
-
let a =
|
|
17998
|
-
return a === void 0 ?
|
|
17999
|
-
},
|
|
18000
|
-
if (
|
|
18001
|
-
},
|
|
18036
|
+
let a = Fv(n ? Iv(t, n) : t, r);
|
|
18037
|
+
return a === void 0 ? Fv(t, r) : a;
|
|
18038
|
+
}, Fv = (e, t) => {
|
|
18039
|
+
if (Lv(e) && Object.prototype.hasOwnProperty.call(e, t)) return e[t];
|
|
18040
|
+
}, Iv = (e, t) => t.split(".").reduce((e, t) => Fv(e, t), e), Lv = (e) => !!e && typeof e == "object" && !Array.isArray(e), Rv = (e) => {
|
|
18002
18041
|
let t = JSON.stringify(e);
|
|
18003
18042
|
return t === void 0 ? String(e) : t;
|
|
18004
|
-
},
|
|
18005
|
-
let n = Z(), r = t?.mode ?? "free", { expressions: i, addRowBelow: a, permission: o, disabled: s, inputVariableType: c } =
|
|
18043
|
+
}, zv = {}, Bv = ({ customFunctions: e, functionScope: t }) => {
|
|
18044
|
+
let n = Z(), r = t?.mode ?? "free", { expressions: i, addRowBelow: a, permission: o, disabled: s, inputVariableType: c } = Cv(({ expressions: e, addRowBelow: t, permission: n, disabled: r, inputVariableType: i }) => ({
|
|
18006
18045
|
expressions: e,
|
|
18007
18046
|
addRowBelow: t,
|
|
18008
18047
|
permission: n,
|
|
@@ -18013,7 +18052,7 @@ var xv = () => M.useContext(_v), Sv = () => {
|
|
|
18013
18052
|
if (!Es() || !c) return;
|
|
18014
18053
|
let e = c.clone();
|
|
18015
18054
|
i.filter((e) => e.key.length > 0).forEach((t) => {
|
|
18016
|
-
let n = t.type === "function" || cv(t.value) ?
|
|
18055
|
+
let n = t.type === "function" || cv(t.value) ? Ov(t.returnSchema ?? zv) : e.calculateType(Array.isArray(t.value) ? t.value.join(";;") : t.value);
|
|
18017
18056
|
e.set(`$.${t.key}`, n);
|
|
18018
18057
|
}), u(e);
|
|
18019
18058
|
}, [i, c]), /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("div", {
|
|
@@ -18040,7 +18079,7 @@ var xv = () => M.useContext(_v), Sv = () => {
|
|
|
18040
18079
|
children: r === "legacy" && /* @__PURE__ */ V(ps, { children: n("cf.legacy") })
|
|
18041
18080
|
})
|
|
18042
18081
|
]
|
|
18043
|
-
}), (i || []).map((n, r) => /* @__PURE__ */ V(
|
|
18082
|
+
}), (i || []).map((n, r) => /* @__PURE__ */ V(jv, {
|
|
18044
18083
|
expression: n,
|
|
18045
18084
|
index: r,
|
|
18046
18085
|
variableType: l,
|
|
@@ -18058,28 +18097,28 @@ var xv = () => M.useContext(_v), Sv = () => {
|
|
|
18058
18097
|
children: n("cf.addRow")
|
|
18059
18098
|
})
|
|
18060
18099
|
})] });
|
|
18061
|
-
},
|
|
18100
|
+
}, Vv = ({ customFunctions: e, debug: t, hideCommandBar: n, inputVariableType: r, functionScope: i, ...a }) => {
|
|
18062
18101
|
let o = Qn(Zn(Wn, { activationConstraint: { distance: 4 } }), Zn(Vn, { coordinateGetter: rr }));
|
|
18063
|
-
return /* @__PURE__ */ V(
|
|
18102
|
+
return /* @__PURE__ */ V(Sv, { children: /* @__PURE__ */ H(Hv, {
|
|
18064
18103
|
sensors: o,
|
|
18065
18104
|
children: [
|
|
18066
|
-
/* @__PURE__ */ V(
|
|
18105
|
+
/* @__PURE__ */ V(Ev, {
|
|
18067
18106
|
...a,
|
|
18068
18107
|
functionScope: i
|
|
18069
18108
|
}),
|
|
18070
|
-
!n && /* @__PURE__ */ V(
|
|
18071
|
-
/* @__PURE__ */ V(
|
|
18109
|
+
!n && /* @__PURE__ */ V(Tv, {}),
|
|
18110
|
+
/* @__PURE__ */ V(Bv, {
|
|
18072
18111
|
customFunctions: e,
|
|
18073
18112
|
functionScope: i
|
|
18074
18113
|
}),
|
|
18075
|
-
/* @__PURE__ */ V(
|
|
18114
|
+
/* @__PURE__ */ V(Uv, {
|
|
18076
18115
|
debug: t,
|
|
18077
18116
|
inputVariableType: r
|
|
18078
18117
|
})
|
|
18079
18118
|
]
|
|
18080
18119
|
}) });
|
|
18081
|
-
},
|
|
18082
|
-
let n =
|
|
18120
|
+
}, Hv = ({ sensors: e, children: t }) => {
|
|
18121
|
+
let n = wv(), r = ({ active: e, over: t }) => {
|
|
18083
18122
|
if (!t) return;
|
|
18084
18123
|
let r = e.data.current?.index, i = t.data.current?.index;
|
|
18085
18124
|
r !== void 0 && i !== void 0 && r !== i && n.getState().moveRows(r, i);
|
|
@@ -18092,8 +18131,8 @@ var xv = () => M.useContext(_v), Sv = () => {
|
|
|
18092
18131
|
onDragEnd: r,
|
|
18093
18132
|
children: t
|
|
18094
18133
|
});
|
|
18095
|
-
},
|
|
18096
|
-
let n = e, r =
|
|
18134
|
+
}, Uv = ({ debug: e, inputVariableType: t }) => {
|
|
18135
|
+
let n = e, r = wv();
|
|
18097
18136
|
return P(() => {
|
|
18098
18137
|
r.setState({ inputVariableType: t });
|
|
18099
18138
|
}, [t]), P(() => {
|
|
@@ -18123,7 +18162,7 @@ var xv = () => M.useContext(_v), Sv = () => {
|
|
|
18123
18162
|
(e.debugIndex !== n.debugIndex || e.debug !== n.debug) && t(e);
|
|
18124
18163
|
});
|
|
18125
18164
|
}, []), null;
|
|
18126
|
-
},
|
|
18165
|
+
}, Wv = ({ id: e, user: t, customFunctions: n }) => {
|
|
18127
18166
|
let r = Gm(), i = nh(e, { attachGlobals: !1 }), { disabled: a, content: o, globalType: s } = $(({ disabled: t, decisionGraph: n, globalType: r }) => ({
|
|
18128
18167
|
disabled: t,
|
|
18129
18168
|
content: (n?.nodes ?? []).find((t) => t.id === e)?.content,
|
|
@@ -18136,16 +18175,26 @@ var xv = () => M.useContext(_v), Sv = () => {
|
|
|
18136
18175
|
})).otherwise(() => null),
|
|
18137
18176
|
nodeSnapshot: G(t).with({ result: W.nonNullable }, ({ result: t }) => t.snapshot?.nodes?.find((t) => t.id === e)?.content).otherwise(() => null),
|
|
18138
18177
|
viewConfig: r
|
|
18139
|
-
})), f = F(() => dv(o?.kind, n), [o?.kind, n]), p = Z(), m = o?.config?.expressions, h = F(() => hv(m, f), [m, f]), g = h.length, _ = h.reduce((e, t) => e + t.missing.length, 0), v = h.reduce((e, t) => e + t.unrecognized.length, 0), y = (
|
|
18140
|
-
|
|
18141
|
-
|
|
18142
|
-
|
|
18143
|
-
|
|
18144
|
-
|
|
18178
|
+
})), f = F(() => dv(o?.kind, n), [o?.kind, n]), p = Z(), m = o?.config?.expressions, h = F(() => hv(m, f), [m, f]), g = h.length, _ = h.reduce((e, t) => e + t.missing.length, 0), v = h.reduce((e, t) => e + t.unrecognized.length, 0), y = F(() => (m ?? []).map((e) => {
|
|
18179
|
+
if (!e || typeof e.value != "object" || Array.isArray(e.value)) return e;
|
|
18180
|
+
let t = f.functions.find((t) => t?.name === e.value.$call), n = yv(e.value, t);
|
|
18181
|
+
return n ? {
|
|
18182
|
+
...e,
|
|
18183
|
+
value: n
|
|
18184
|
+
} : e;
|
|
18185
|
+
}), [m, f.functions]), b = (n) => {
|
|
18186
|
+
let i = new Map((m ?? []).map((e) => [e?.id, e])), a = (n ?? []).map((e) => {
|
|
18187
|
+
let t = Array.isArray(e?.value) ? e.value[0] : typeof e?.value?.$call == "string" ? e.value.$call : void 0, n = f.functions.find((e) => e?.name === t), r = i.get(e?.id)?.value, a = r && typeof r == "object" && !Array.isArray(r) ? r.kwargs ?? null : null, o = vv(e?.value, n, a);
|
|
18188
|
+
return o ? {
|
|
18189
|
+
...e,
|
|
18190
|
+
value: o
|
|
18191
|
+
} : e;
|
|
18192
|
+
});
|
|
18193
|
+
r.updateNode(e, (e) => (e.content.config.expressions = a, e.content.config.meta = {
|
|
18145
18194
|
user: t ?? "",
|
|
18146
18195
|
proj: t ?? ""
|
|
18147
18196
|
}, e));
|
|
18148
|
-
},
|
|
18197
|
+
}, x = F(() => {
|
|
18149
18198
|
if (!i) return;
|
|
18150
18199
|
let e = i.clone();
|
|
18151
18200
|
return o?.config?.inputField && (e = e.calculateType(o.config.inputField)), o?.config?.executionMode === "loop" && (e = e.arrayItem()), Object.entries(s ?? {}).forEach(([t, n]) => e.set(t, n)), e;
|
|
@@ -18154,13 +18203,13 @@ var xv = () => M.useContext(_v), Sv = () => {
|
|
|
18154
18203
|
o?.config?.inputField,
|
|
18155
18204
|
o?.config?.executionMode,
|
|
18156
18205
|
s
|
|
18157
|
-
]),
|
|
18206
|
+
]), S = F(() => {
|
|
18158
18207
|
if (!c || !l || !u) return;
|
|
18159
18208
|
if (!Es()) return {
|
|
18160
18209
|
trace: c,
|
|
18161
18210
|
snapshot: u.config
|
|
18162
18211
|
};
|
|
18163
|
-
let e = Object.fromEntries(Object.entries(c.traceData || {}).map(([e, t]) => [e,
|
|
18212
|
+
let e = Object.fromEntries(Object.entries(c.traceData || {}).map(([e, t]) => [e, Gv(t.result)])), t = {
|
|
18164
18213
|
...l,
|
|
18165
18214
|
$: e
|
|
18166
18215
|
};
|
|
@@ -18207,33 +18256,33 @@ var xv = () => M.useContext(_v), Sv = () => {
|
|
|
18207
18256
|
disabled: a,
|
|
18208
18257
|
onClick: () => {
|
|
18209
18258
|
let e = gv(m, h, f);
|
|
18210
|
-
e &&
|
|
18259
|
+
e && b(e);
|
|
18211
18260
|
},
|
|
18212
18261
|
children: p("cf.argsFillMissing")
|
|
18213
18262
|
})]
|
|
18214
18263
|
}), /* @__PURE__ */ V("div", {
|
|
18215
18264
|
style: { paddingTop: g > 0 ? 8 : 0 },
|
|
18216
|
-
children: /* @__PURE__ */ V(
|
|
18217
|
-
value:
|
|
18265
|
+
children: /* @__PURE__ */ V(Vv, {
|
|
18266
|
+
value: y,
|
|
18218
18267
|
disabled: a,
|
|
18219
18268
|
permission: d?.enabled ? d?.permissions?.[e] : "edit:full",
|
|
18220
18269
|
customFunctions: n,
|
|
18221
18270
|
functionScope: f,
|
|
18222
|
-
debug:
|
|
18223
|
-
inputVariableType:
|
|
18271
|
+
debug: S,
|
|
18272
|
+
inputVariableType: x,
|
|
18224
18273
|
onChange: (e) => {
|
|
18225
|
-
|
|
18274
|
+
b(e);
|
|
18226
18275
|
}
|
|
18227
18276
|
})
|
|
18228
18277
|
})]
|
|
18229
18278
|
});
|
|
18230
|
-
},
|
|
18279
|
+
}, Gv = (e) => {
|
|
18231
18280
|
try {
|
|
18232
18281
|
return JSON.parse(e);
|
|
18233
18282
|
} catch {
|
|
18234
18283
|
return null;
|
|
18235
18284
|
}
|
|
18236
|
-
},
|
|
18285
|
+
}, Kv = (e) => {
|
|
18237
18286
|
let t = [];
|
|
18238
18287
|
for (let n of e) {
|
|
18239
18288
|
let e = n.group ?? "", r = t.find((t) => t.group === e);
|
|
@@ -18246,10 +18295,10 @@ var xv = () => M.useContext(_v), Sv = () => {
|
|
|
18246
18295
|
item: e,
|
|
18247
18296
|
index: t
|
|
18248
18297
|
})).sort((e, t) => (e.item.order ?? 0) - (t.item.order ?? 0) || e.index - t.index).map(({ item: e }) => e));
|
|
18249
|
-
},
|
|
18298
|
+
}, qv = ({ item: e, disabled: t }) => /* @__PURE__ */ V(B, { children: e.render({ disabled: t }) }), Jv = ({ items: e }) => {
|
|
18250
18299
|
let { disabled: t = !1 } = $(({ disabled: e }) => ({ disabled: e }));
|
|
18251
18300
|
if (!e || e.length === 0) return null;
|
|
18252
|
-
let n =
|
|
18301
|
+
let n = Kv(e), r = [];
|
|
18253
18302
|
for (let e of n) r.includes(e.group ?? "") || r.push(e.group ?? "");
|
|
18254
18303
|
return /* @__PURE__ */ V("div", {
|
|
18255
18304
|
"aria-label": "toolbar-items",
|
|
@@ -18260,13 +18309,13 @@ var xv = () => M.useContext(_v), Sv = () => {
|
|
|
18260
18309
|
}), n.filter((t) => (t.group ?? "") === e).map((e) => /* @__PURE__ */ V(yc, {
|
|
18261
18310
|
fallback: null,
|
|
18262
18311
|
onError: (t) => console.error(`[seal-editor] toolbar item "${e.id}" crashed:`, t),
|
|
18263
|
-
children: /* @__PURE__ */ V(
|
|
18312
|
+
children: /* @__PURE__ */ V(qv, {
|
|
18264
18313
|
item: e,
|
|
18265
18314
|
disabled: t
|
|
18266
18315
|
})
|
|
18267
18316
|
}, e.id))] }, e || `__anonymous_${r}`))
|
|
18268
18317
|
});
|
|
18269
|
-
},
|
|
18318
|
+
}, Yv = ({ userResolver: e }) => {
|
|
18270
18319
|
let { stateStore: t } = Km();
|
|
18271
18320
|
return P(() => {
|
|
18272
18321
|
if (!e) return;
|
|
@@ -18282,14 +18331,14 @@ var xv = () => M.useContext(_v), Sv = () => {
|
|
|
18282
18331
|
n = !0;
|
|
18283
18332
|
};
|
|
18284
18333
|
}, [e]), null;
|
|
18285
|
-
},
|
|
18334
|
+
}, Xv = M.memo(ke(function({ reactFlowProOptions: e, tabBarExtraContent: t, toolbarItems: n, userResolver: r, customFunctions: i }, a) {
|
|
18286
18335
|
let [o, s] = L(!1), { hasActiveNode: c, viewConfig: l, hideLeftToolbar: u } = $(({ decisionGraph: e, activeTab: t, viewConfig: n, hideLeftToolbar: r }) => ({
|
|
18287
18336
|
hasActiveNode: (e?.nodes ?? []).some((e) => e.id === t),
|
|
18288
18337
|
viewConfig: n,
|
|
18289
18338
|
hideLeftToolbar: r
|
|
18290
|
-
})), d = n && n.length > 0 ? /* @__PURE__ */ H(B, { children: [t, /* @__PURE__ */ V(
|
|
18339
|
+
})), d = n && n.length > 0 ? /* @__PURE__ */ H(B, { children: [t, /* @__PURE__ */ V(Jv, { items: n })] }) : t;
|
|
18291
18340
|
return /* @__PURE__ */ H(B, { children: [
|
|
18292
|
-
/* @__PURE__ */ V(
|
|
18341
|
+
/* @__PURE__ */ V(Yv, { userResolver: r }),
|
|
18293
18342
|
!u && /* @__PURE__ */ V($_, {}),
|
|
18294
18343
|
/* @__PURE__ */ H("div", {
|
|
18295
18344
|
className: "[grid-area:graph] flex flex-1 flex-col gap-1 overflow-hidden bg-white",
|
|
@@ -18305,12 +18354,12 @@ var xv = () => M.useContext(_v), Sv = () => {
|
|
|
18305
18354
|
onDisableTabs: s
|
|
18306
18355
|
}),
|
|
18307
18356
|
/* @__PURE__ */ V(U_, { className: z([!c && l?.enabled && "flex flex-col"]) }),
|
|
18308
|
-
/* @__PURE__ */ V(
|
|
18357
|
+
/* @__PURE__ */ V(Zv, { customFunctions: i })
|
|
18309
18358
|
]
|
|
18310
18359
|
}),
|
|
18311
18360
|
/* @__PURE__ */ V(S_, {})
|
|
18312
18361
|
] });
|
|
18313
|
-
})),
|
|
18362
|
+
})), Zv = M.memo(({ customFunctions: e }) => {
|
|
18314
18363
|
let { openNodes: t, activeNodeId: n, components: r, user: i, customNodes: a } = $(({ decisionGraph: e, openTabs: t, activeTab: n, components: r, user: i, customNodes: a }) => {
|
|
18315
18364
|
let o = (e?.nodes ?? []).find((e) => e.id === n)?.id;
|
|
18316
18365
|
return {
|
|
@@ -18359,7 +18408,7 @@ var xv = () => M.useContext(_v), Sv = () => {
|
|
|
18359
18408
|
id: t.id,
|
|
18360
18409
|
user: i,
|
|
18361
18410
|
customFunctions: e
|
|
18362
|
-
}) : /* @__PURE__ */ V(
|
|
18411
|
+
}) : /* @__PURE__ */ V(Wv, {
|
|
18363
18412
|
id: t.id,
|
|
18364
18413
|
user: i,
|
|
18365
18414
|
customFunctions: e
|
|
@@ -18369,10 +18418,10 @@ var xv = () => M.useContext(_v), Sv = () => {
|
|
|
18369
18418
|
})
|
|
18370
18419
|
}, t?.id))
|
|
18371
18420
|
});
|
|
18372
|
-
}),
|
|
18421
|
+
}), Qv = ke(({ reactFlowProOptions: e, tabBarExtraContent: t, toolbarItems: n, userResolver: r, ...i }, a) => /* @__PURE__ */ V(yc, { children: /* @__PURE__ */ V("div", {
|
|
18373
18422
|
className: z(["seal-dg", i?.hideLeftToolbar && "hidden-left-toolbar"]),
|
|
18374
18423
|
children: /* @__PURE__ */ V(Li, { children: /* @__PURE__ */ V(Hm, { children: /* @__PURE__ */ H(Xm, { children: [
|
|
18375
|
-
/* @__PURE__ */ V(
|
|
18424
|
+
/* @__PURE__ */ V(Xv, {
|
|
18376
18425
|
ref: a,
|
|
18377
18426
|
reactFlowProOptions: e,
|
|
18378
18427
|
tabBarExtraContent: t,
|
|
@@ -18383,7 +18432,7 @@ var xv = () => M.useContext(_v), Sv = () => {
|
|
|
18383
18432
|
/* @__PURE__ */ V(h_, {}),
|
|
18384
18433
|
/* @__PURE__ */ V(s_, { ...i })
|
|
18385
18434
|
] }) }) })
|
|
18386
|
-
}) })),
|
|
18435
|
+
}) })), $v = (e) => ({
|
|
18387
18436
|
kind: e.kind,
|
|
18388
18437
|
icon: e.icon,
|
|
18389
18438
|
color: e.color,
|
|
@@ -18443,7 +18492,7 @@ var xv = () => M.useContext(_v), Sv = () => {
|
|
|
18443
18492
|
})
|
|
18444
18493
|
});
|
|
18445
18494
|
}
|
|
18446
|
-
}),
|
|
18495
|
+
}), ey = ({ value: e, onChange: t, readOnly: n }) => {
|
|
18447
18496
|
let r = pc(), i = Z();
|
|
18448
18497
|
return /* @__PURE__ */ V(Ki, {
|
|
18449
18498
|
loading: /* @__PURE__ */ V(qo, { size: "large" }),
|
|
@@ -18502,7 +18551,7 @@ var xv = () => M.useContext(_v), Sv = () => {
|
|
|
18502
18551
|
};
|
|
18503
18552
|
//#endregion
|
|
18504
18553
|
//#region src/reui/icons/animated/outline/check-circle.tsx
|
|
18505
|
-
function
|
|
18554
|
+
function ty({ className: e }) {
|
|
18506
18555
|
return /* @__PURE__ */ V("svg", {
|
|
18507
18556
|
width: "24",
|
|
18508
18557
|
height: "24",
|
|
@@ -18518,7 +18567,7 @@ function Qv({ className: e }) {
|
|
|
18518
18567
|
}
|
|
18519
18568
|
//#endregion
|
|
18520
18569
|
//#region src/reui/icons/animated/outline/cross-circle.tsx
|
|
18521
|
-
function
|
|
18570
|
+
function ny({ className: e }) {
|
|
18522
18571
|
return /* @__PURE__ */ V("svg", {
|
|
18523
18572
|
width: "24",
|
|
18524
18573
|
height: "24",
|
|
@@ -18534,7 +18583,7 @@ function $v({ className: e }) {
|
|
|
18534
18583
|
}
|
|
18535
18584
|
//#endregion
|
|
18536
18585
|
//#region src/components/decision-graph/simulator/simulator-nodes-panel.tsx
|
|
18537
|
-
var
|
|
18586
|
+
var ry = ({ search: e, onSearchChange: t, loading: n = !1, simulate: r, nodeTypes: i, viewConfig: a, selectedNode: o, onSelectNode: s, onClear: c, onGoToNode: l }) => {
|
|
18538
18587
|
let u = Z(), d = F(() => !r || !("result" in r) ? [] : Object.entries(r.result?.trace ?? {}).filter(([e]) => !a?.enabled || !!a?.permissions?.[e]).map(([e, t]) => ({
|
|
18539
18588
|
...t,
|
|
18540
18589
|
nodeId: e
|
|
@@ -18610,7 +18659,7 @@ var ey = ({ search: e, onSearchChange: t, loading: n = !1, simulate: r, nodeType
|
|
|
18610
18659
|
children: [/* @__PURE__ */ H(X.Text, {
|
|
18611
18660
|
"data-role": "name",
|
|
18612
18661
|
className: "flex min-w-0 items-center [&>svg]:align-[-3px]",
|
|
18613
|
-
children: [/* @__PURE__ */ V(
|
|
18662
|
+
children: [/* @__PURE__ */ V(iy, { status: G(r).with({ error: W.nonNullable }, () => "error").with({ result: W.nonNullable }, () => "success").otherwise(() => "not-run") }), /* @__PURE__ */ V("span", {
|
|
18614
18663
|
className: "truncate",
|
|
18615
18664
|
children: "Graph"
|
|
18616
18665
|
})]
|
|
@@ -18628,7 +18677,7 @@ var ey = ({ search: e, onSearchChange: t, loading: n = !1, simulate: r, nodeType
|
|
|
18628
18677
|
"data-role": "name",
|
|
18629
18678
|
className: "flex min-w-0 items-center gap-1.5 [&>svg]:align-[-3px]",
|
|
18630
18679
|
title: e.name,
|
|
18631
|
-
children: [/* @__PURE__ */ V(
|
|
18680
|
+
children: [/* @__PURE__ */ V(iy, { status: e.nodeId === r?.error?.data?.nodeId ? "error" : "success" }), /* @__PURE__ */ V("span", {
|
|
18632
18681
|
className: "truncate",
|
|
18633
18682
|
children: e.name
|
|
18634
18683
|
})]
|
|
@@ -18643,10 +18692,10 @@ var ey = ({ search: e, onSearchChange: t, loading: n = !1, simulate: r, nodeType
|
|
|
18643
18692
|
})
|
|
18644
18693
|
})
|
|
18645
18694
|
})] });
|
|
18646
|
-
},
|
|
18695
|
+
}, iy = ({ status: e }) => e === "not-run" ? null : e === "success" ? /* @__PURE__ */ V(ty, { className: "mr-1.5 size-3 shrink-0 text-[var(--seal-color-success)] opacity-60" }) : /* @__PURE__ */ V(ny, { className: "mr-1 size-3 shrink-0 text-[var(--seal-color-error)]" });
|
|
18647
18696
|
//#endregion
|
|
18648
18697
|
//#region src/reui/icons/animated/outline/link.tsx
|
|
18649
|
-
function
|
|
18698
|
+
function ay({ className: e, style: t }) {
|
|
18650
18699
|
return /* @__PURE__ */ H("svg", {
|
|
18651
18700
|
width: "24",
|
|
18652
18701
|
height: "24",
|
|
@@ -18668,7 +18717,7 @@ function ny({ className: e, style: t }) {
|
|
|
18668
18717
|
}
|
|
18669
18718
|
//#endregion
|
|
18670
18719
|
//#region src/components/decision-graph/simulator/simulator-request-toolbar.tsx
|
|
18671
|
-
var
|
|
18720
|
+
var oy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n, sourceOptions: r, bindingName: i, hasInputNode: a, loading: o, onSourceChange: s, onFormat: c, onCopy: l, onRun: u }) => /* @__PURE__ */ H("div", {
|
|
18672
18721
|
className: "flex items-center justify-between gap-2 border-b border-border px-3 py-2",
|
|
18673
18722
|
children: [
|
|
18674
18723
|
/* @__PURE__ */ V(Y, {
|
|
@@ -18686,7 +18735,7 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
18686
18735
|
title: e("simulator.currentBinding"),
|
|
18687
18736
|
children: /* @__PURE__ */ H("div", {
|
|
18688
18737
|
className: "flex min-w-0 items-center gap-1",
|
|
18689
|
-
children: [/* @__PURE__ */ V(
|
|
18738
|
+
children: [/* @__PURE__ */ V(ay, { className: "size-3 shrink-0 text-[var(--muted-foreground)]" }), /* @__PURE__ */ V(Go, {
|
|
18690
18739
|
size: "small",
|
|
18691
18740
|
value: n,
|
|
18692
18741
|
options: r,
|
|
@@ -18700,7 +18749,7 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
18700
18749
|
className: "flex min-w-0 items-center gap-1 text-xs",
|
|
18701
18750
|
children: [/* @__PURE__ */ V(Y, {
|
|
18702
18751
|
title: e("simulator.currentBinding"),
|
|
18703
|
-
children: /* @__PURE__ */ V(
|
|
18752
|
+
children: /* @__PURE__ */ V(ay, { className: "size-3 shrink-0 text-[var(--muted-foreground)]" })
|
|
18704
18753
|
}), /* @__PURE__ */ V("span", {
|
|
18705
18754
|
className: "truncate",
|
|
18706
18755
|
children: i
|
|
@@ -18747,7 +18796,7 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
18747
18796
|
] })
|
|
18748
18797
|
})
|
|
18749
18798
|
]
|
|
18750
|
-
}),
|
|
18799
|
+
}), sy = ({ t: e, requestValue: t, resolvedSimulatorExampleBinding: i, onRequestValueChange: a, onMarkEdited: o, onExternalChange: c }) => {
|
|
18751
18800
|
let { stateStore: u, actions: d } = Km(), f = ({ activeExampleBinding: t, preparedParsed: r, triggeredBy: i, showSuccessMessage: f = !0 }) => {
|
|
18752
18801
|
let { decisionGraph: p } = u.getState(), m = p.nodes.find((e) => e.id === t.nodeId);
|
|
18753
18802
|
if (!m) return R.error(e("simulator.boundRequestNodeNotFound")), null;
|
|
@@ -18817,7 +18866,7 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
18817
18866
|
return c || R.error(e("request.saveDataSourceFailed")), null;
|
|
18818
18867
|
}
|
|
18819
18868
|
} };
|
|
18820
|
-
},
|
|
18869
|
+
}, cy = 700, ly = ({ enabled: e, requestValue: t, requestSourcesSignature: n, boundRequestSourceIndex: r, onSyncToSchema: i, onPushToEditor: a, debounceMs: o = 700 }) => {
|
|
18821
18870
|
let s = I(null), c = I(void 0), l = I(t);
|
|
18822
18871
|
l.current = t;
|
|
18823
18872
|
let u = I(void 0), d = I({
|
|
@@ -18846,7 +18895,7 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
18846
18895
|
]), { flush: () => {
|
|
18847
18896
|
s.current !== null && (window.clearTimeout(s.current), s.current = null, c.current = l.current, d.current.onSyncToSchema());
|
|
18848
18897
|
} };
|
|
18849
|
-
},
|
|
18898
|
+
}, uy = ({ inputNodeContent: e, inputNodeId: t, simulatorExampleBinding: n, dataLabel: i = "Data" }) => {
|
|
18850
18899
|
let a = e, o = F(() => c(a, { dataLabel: i }), [a, i]), s = F(() => !n || n.nodeId !== t ? -1 : o[n.sourceIndex] ? n.sourceIndex : -1, [
|
|
18851
18900
|
t,
|
|
18852
18901
|
o,
|
|
@@ -18875,7 +18924,7 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
18875
18924
|
bindingName: h,
|
|
18876
18925
|
shouldShowSimulatorSourceSelect: !!h && !!t && o.length > 1
|
|
18877
18926
|
};
|
|
18878
|
-
},
|
|
18927
|
+
}, dy = ({ defaultRequest: e, simulatorRequest: t, currentBindingIdentity: n, onExternalChange: r }) => {
|
|
18879
18928
|
let [i, a] = L(e), [o, s] = L(!1), [c, l] = L(!1), u = I(null), d = I(null), f = I(void 0);
|
|
18880
18929
|
return P(() => () => {
|
|
18881
18930
|
u.current !== null && window.clearTimeout(u.current);
|
|
@@ -18895,7 +18944,7 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
18895
18944
|
setUserHasEdited: s,
|
|
18896
18945
|
isApplyingExternalRequest: c
|
|
18897
18946
|
};
|
|
18898
|
-
},
|
|
18947
|
+
}, fy = ({ onChange: e, hasInputNode: t, loading: n, onRun: i, defaultRequest: a }) => {
|
|
18899
18948
|
let o = Z(), { stateStore: s, actions: c } = Km(), { simulatorRequest: l, simulatorExampleBinding: d, inputNodeContent: f, inputNodeId: p } = $(({ simulatorRequest: e, simulatorExampleBinding: t, decisionGraph: n }) => {
|
|
18900
18949
|
let r = n?.nodes?.find((e) => e.type === "inputNode");
|
|
18901
18950
|
return {
|
|
@@ -18904,12 +18953,12 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
18904
18953
|
inputNodeContent: r?.content,
|
|
18905
18954
|
inputNodeId: r?.id
|
|
18906
18955
|
};
|
|
18907
|
-
}), { requestSources: m, boundRequestSourceIndex: h, defaultRequestSourceIndex: g, defaultRequestSource: _, resolvedSimulatorExampleBinding: v, currentBindingIdentity: y, requestDefinitions: b, sourceOptions: S, bindingName: w, shouldShowSimulatorSourceSelect: T } =
|
|
18956
|
+
}), { requestSources: m, boundRequestSourceIndex: h, defaultRequestSourceIndex: g, defaultRequestSource: _, resolvedSimulatorExampleBinding: v, currentBindingIdentity: y, requestDefinitions: b, sourceOptions: S, bindingName: w, shouldShowSimulatorSourceSelect: T } = uy({
|
|
18908
18957
|
inputNodeContent: f,
|
|
18909
18958
|
inputNodeId: p,
|
|
18910
18959
|
simulatorExampleBinding: d,
|
|
18911
18960
|
dataLabel: o("request.dataLabel")
|
|
18912
|
-
}), { requestValue: D, setRequestValue: ee, userHasEdited: te, setUserHasEdited: ne, isApplyingExternalRequest: re } =
|
|
18961
|
+
}), { requestValue: D, setRequestValue: ee, userHasEdited: te, setUserHasEdited: ne, isApplyingExternalRequest: re } = dy({
|
|
18913
18962
|
defaultRequest: a,
|
|
18914
18963
|
simulatorRequest: l,
|
|
18915
18964
|
currentBindingIdentity: y,
|
|
@@ -18948,14 +18997,14 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
18948
18997
|
c.setNodeType(t.id, Bm.InferredOutput, new An(e));
|
|
18949
18998
|
} catch {}
|
|
18950
18999
|
}, [D]);
|
|
18951
|
-
let { persistRequestToExampleSource: ae } =
|
|
19000
|
+
let { persistRequestToExampleSource: ae } = sy({
|
|
18952
19001
|
t: o,
|
|
18953
19002
|
requestValue: D,
|
|
18954
19003
|
resolvedSimulatorExampleBinding: v,
|
|
18955
19004
|
onRequestValueChange: ee,
|
|
18956
19005
|
onMarkEdited: () => ne(!0),
|
|
18957
19006
|
onExternalChange: e
|
|
18958
|
-
}), oe = JSON.stringify(m.map((e) => e.data)), { flush: O } =
|
|
19007
|
+
}), oe = JSON.stringify(m.map((e) => e.data)), { flush: O } = ly({
|
|
18959
19008
|
enabled: !!(t && v),
|
|
18960
19009
|
requestValue: D,
|
|
18961
19010
|
requestSourcesSignature: oe,
|
|
@@ -18975,7 +19024,7 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
18975
19024
|
c.setSimulatorRequest(JSON.stringify(t, null, 2));
|
|
18976
19025
|
}
|
|
18977
19026
|
});
|
|
18978
|
-
return /* @__PURE__ */ H(M.Fragment, { children: [/* @__PURE__ */ V(
|
|
19027
|
+
return /* @__PURE__ */ H(M.Fragment, { children: [/* @__PURE__ */ V(oy, {
|
|
18979
19028
|
t: o,
|
|
18980
19029
|
shouldShowSimulatorSourceSelect: T,
|
|
18981
19030
|
boundRequestSourceIndex: h,
|
|
@@ -19023,7 +19072,7 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19023
19072
|
className: "relative min-h-0 flex-1 overflow-hidden",
|
|
19024
19073
|
children: [/* @__PURE__ */ V("div", {
|
|
19025
19074
|
className: "absolute inset-0",
|
|
19026
|
-
children: /* @__PURE__ */ V(
|
|
19075
|
+
children: /* @__PURE__ */ V(ey, {
|
|
19027
19076
|
value: D,
|
|
19028
19077
|
onChange: (t) => {
|
|
19029
19078
|
ee(t), ne(!0), c.setSimulatorRequest(t ?? ""), e?.(t ?? "");
|
|
@@ -19034,9 +19083,9 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19034
19083
|
children: /* @__PURE__ */ V(qo, { size: "small" })
|
|
19035
19084
|
})]
|
|
19036
19085
|
})] });
|
|
19037
|
-
},
|
|
19086
|
+
}, py = /* @__PURE__ */ function(e) {
|
|
19038
19087
|
return e.Output = "Output", e.Input = "Input", e.Trace = "Trace", e;
|
|
19039
|
-
}(
|
|
19088
|
+
}(py || {}), my = ({ defaultRequest: e, onChange: t, onRun: n, onClear: r, loading: i = !1, simulationFooter: a, leftPanel: o = fy }) => {
|
|
19040
19089
|
let s = Z(), [c, l] = ph("simulation.search", ""), [u, d] = ph("simulation.segment", "Output"), { viewConfig: f } = $((e) => ({ viewConfig: e.viewConfig })), { actions: p } = Km(), { nodeTypes: m, simulate: h, hasInputNode: g } = $(({ decisionGraph: e, simulate: t }) => ({
|
|
19041
19090
|
simulate: t,
|
|
19042
19091
|
hasInputNode: e.nodes.some((e) => e.type === Q.Input),
|
|
@@ -19069,7 +19118,7 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19069
19118
|
minSize: 20,
|
|
19070
19119
|
maxSize: 20,
|
|
19071
19120
|
className: "flex w-[260px] flex-col",
|
|
19072
|
-
children: /* @__PURE__ */ V(
|
|
19121
|
+
children: /* @__PURE__ */ V(ry, {
|
|
19073
19122
|
search: c,
|
|
19074
19123
|
onSearchChange: l,
|
|
19075
19124
|
loading: i,
|
|
@@ -19095,7 +19144,7 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19095
19144
|
size: "small",
|
|
19096
19145
|
style: { width: "100%" },
|
|
19097
19146
|
onChange: (e) => d(e),
|
|
19098
|
-
items: Object.values(
|
|
19147
|
+
items: Object.values(py).map((e) => ({
|
|
19099
19148
|
key: e,
|
|
19100
19149
|
label: e
|
|
19101
19150
|
})),
|
|
@@ -19111,12 +19160,12 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19111
19160
|
})
|
|
19112
19161
|
}), /* @__PURE__ */ V("div", {
|
|
19113
19162
|
className: "min-h-0 flex-1 overflow-y-auto",
|
|
19114
|
-
children: /* @__PURE__ */ V(
|
|
19163
|
+
children: /* @__PURE__ */ V(ey, {
|
|
19115
19164
|
readOnly: !0,
|
|
19116
|
-
value: G(h).with({ result: W._ }, ({ result: e }) => G(_).with("graph", () =>
|
|
19165
|
+
value: G(h).with({ result: W._ }, ({ result: e }) => G(_).with("graph", () => hy({
|
|
19117
19166
|
traceData: e?.trace,
|
|
19118
19167
|
output: e?.result
|
|
19119
|
-
}, u ?? "Output")).otherwise(() =>
|
|
19168
|
+
}, u ?? "Output")).otherwise(() => hy(e?.trace[_], u ?? "Output"))).otherwise(() => "")
|
|
19120
19169
|
})
|
|
19121
19170
|
})]
|
|
19122
19171
|
})
|
|
@@ -19126,10 +19175,10 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19126
19175
|
children: a
|
|
19127
19176
|
})]
|
|
19128
19177
|
});
|
|
19129
|
-
},
|
|
19178
|
+
}, hy = (e, t) => {
|
|
19130
19179
|
let n = G([t, e]).with(["Output", { output: W._ }], ([, { output: e }]) => e).with(["Input", { input: W._ }], ([, { input: e }]) => e).with(["Trace", { trace: W._ }], ([, { trace: e }]) => e).with(["Trace", { traceData: W._ }], ([, { traceData: e }]) => e).otherwise(() => ({}));
|
|
19131
19180
|
return Kr.stringify(n, void 0, 2);
|
|
19132
|
-
},
|
|
19181
|
+
}, gy = /* @__PURE__ */ new Set(["position", "_diff"]), _y = /* @__PURE__ */ new Set(["_diff"]), vy = (e) => typeof e != "object" || !e ? JSON.stringify(e) ?? "undefined" : Array.isArray(e) ? `[${e.map(vy).join(",")}]` : `{${Object.entries(e).filter(([, e]) => e !== void 0).sort(([e], [t]) => e < t ? -1 : +(e > t)).map(([e, t]) => `${JSON.stringify(e)}:${vy(t)}`).join(",")}}`, yy = (e, t) => Object.fromEntries(Object.entries(e).filter(([e]) => !t.has(e))), by = (e, t, n) => [.../* @__PURE__ */ new Set([...Object.keys(yy(e, n)), ...Object.keys(yy(t, n))])].filter((n) => vy(e[n]) !== vy(t[n])), xy = (e, t, n) => {
|
|
19133
19182
|
let r = new Map(e.map((e) => [e.id, e])), i = new Map(t.map((e) => [e.id, e])), a = [], o = [], s = [];
|
|
19134
19183
|
for (let [e, t] of i) r.has(e) || a.push({
|
|
19135
19184
|
id: e,
|
|
@@ -19146,7 +19195,7 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19146
19195
|
});
|
|
19147
19196
|
continue;
|
|
19148
19197
|
}
|
|
19149
|
-
let a =
|
|
19198
|
+
let a = by(t, r, n);
|
|
19150
19199
|
a.length > 0 && s.push({
|
|
19151
19200
|
id: e,
|
|
19152
19201
|
name: r.name ?? t.name,
|
|
@@ -19159,8 +19208,8 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19159
19208
|
removed: o,
|
|
19160
19209
|
modified: s
|
|
19161
19210
|
};
|
|
19162
|
-
},
|
|
19163
|
-
let n =
|
|
19211
|
+
}, Sy = (e, t) => {
|
|
19212
|
+
let n = xy(e.nodes ?? [], t.nodes ?? [], gy), r = xy(e.edges ?? [], t.edges ?? [], _y);
|
|
19164
19213
|
return {
|
|
19165
19214
|
addedNodes: n.added,
|
|
19166
19215
|
removedNodes: n.removed,
|
|
@@ -19170,7 +19219,7 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19170
19219
|
modifiedEdges: r.modified,
|
|
19171
19220
|
unchanged: n.added.length + n.removed.length + n.modified.length + r.added.length + r.removed.length + r.modified.length === 0
|
|
19172
19221
|
};
|
|
19173
|
-
},
|
|
19222
|
+
}, Cy = ({ report: e, onDebug: t }) => {
|
|
19174
19223
|
let n = Z();
|
|
19175
19224
|
return /* @__PURE__ */ V("div", {
|
|
19176
19225
|
className: "min-h-0 flex-1 overflow-y-auto",
|
|
@@ -19207,7 +19256,7 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19207
19256
|
]
|
|
19208
19257
|
}, `${e.name}-${r}`))
|
|
19209
19258
|
});
|
|
19210
|
-
},
|
|
19259
|
+
}, wy = () => {
|
|
19211
19260
|
let e = Z(), t = Gm(), { decisionGraph: n, panels: r, fixturesRunner: i, fixturesRun: a } = $(({ decisionGraph: e, panels: t, fixturesRunner: n, fixturesRun: r }) => ({
|
|
19212
19261
|
decisionGraph: e,
|
|
19213
19262
|
panels: t,
|
|
@@ -19255,7 +19304,7 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19255
19304
|
className: "mx-3 mt-2 rounded-md border border-destructive/40 bg-destructive/10 px-3 py-1.5 text-xs text-destructive",
|
|
19256
19305
|
children: a.error === "no-examples" ? e("request.fixturesNoExamples") : a.error === "no-input-node" ? e("request.fixturesNoInputNode") : a.error ?? e("request.runAllFailed")
|
|
19257
19306
|
}),
|
|
19258
|
-
a?.status === "done" && a.report && /* @__PURE__ */ V(
|
|
19307
|
+
a?.status === "done" && a.report && /* @__PURE__ */ V(Cy, {
|
|
19259
19308
|
report: a.report,
|
|
19260
19309
|
onDebug: (e) => {
|
|
19261
19310
|
if (!o) return;
|
|
@@ -19272,7 +19321,7 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19272
19321
|
})
|
|
19273
19322
|
]
|
|
19274
19323
|
});
|
|
19275
|
-
},
|
|
19324
|
+
}, Ty = "data:image/svg+xml,%3csvg%20id='fi_5968381'%20enable-background='new%200%200%20512%20512'%20height='512'%20viewBox='0%200%20512%20512'%20width='512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%3e%3cpath%20d='m50%200h412c27.614%200%2050%2022.386%2050%2050v412c0%2027.614-22.386%2050-50%2050h-412c-27.614%200-50-22.386-50-50v-412c0-27.614%2022.386-50%2050-50z'%20fill='%233178c6'%3e%3c/path%3e%3cpath%20d='m50%200h412c27.614%200%2050%2022.386%2050%2050v412c0%2027.614-22.386%2050-50%2050h-412c-27.614%200-50-22.386-50-50v-412c0-27.614%2022.386-50%2050-50z'%20fill='%233178c6'%3e%3c/path%3e%3cpath%20clip-rule='evenodd'%20d='m316.939%20407.424v50.061c8.138%204.172%2017.763%207.3%2028.875%209.386s22.823%203.129%2035.135%203.129c21.219%200%2044.448-3.035%2062.602-14.784%2018.064-11.691%2026.449-31.14%2026.449-52.172%200-15.637-4.851-30.684-15.807-42.081-16.429-17.091-39.516-24.022-60.255-34.183-10.389-5.09-24.727-12.992-24.727-26.361%200-3.441.887-6.543%202.661-9.307%207.132-11.113%2022.973-13.376%2035.057-13.376%2013.717%200%2028.189%203.071%2040.926%208.76%204.434%201.982%208.529%204.276%2012.285%206.884v-46.776c-7.616-2.92-15.937-5.084-24.962-6.492s-19.381-2.112-31.066-2.112c-11.895%200-23.163%201.278-33.805%203.833s-20.006%206.544-28.093%2011.967c-8.086%205.424-14.476%2012.333-19.171%2020.729-4.695%208.395-7.043%2018.433-7.043%2030.114%200%2014.914%204.304%2027.638%2012.912%2038.172%208.607%2010.533%2021.675%2019.45%2039.204%2026.751%2011.792%204.822%2024.053%209.581%2034.665%2016.739%207.355%204.96%2014.007%2011.877%2014.007%2021.275%200%206.821-3.856%2012.604-9.468%2016.192-8.303%205.308-18.936%206.492-28.563%206.492-10.851%200-21.597-1.903-32.24-5.71-10.641-3.806-20.501-9.516-29.578-17.13zm-84.159-123.342h64.22v-41.082h-179v41.082h63.906v182.918h50.874z'%20fill='%23fff'%20fill-rule='evenodd'%3e%3c/path%3e%3c/g%3e%3c/svg%3e", Ey = {
|
|
19276
19325
|
dark: {
|
|
19277
19326
|
string: "#CE9178",
|
|
19278
19327
|
number: "#B5CEA8",
|
|
@@ -19289,8 +19338,8 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19289
19338
|
error: "#E51400",
|
|
19290
19339
|
info: "rgba(0, 0, 0, 0.65)"
|
|
19291
19340
|
}
|
|
19292
|
-
},
|
|
19293
|
-
let r = pc(), i = Z(), a =
|
|
19341
|
+
}, Dy = ({ lines: e, msSinceRun: t, filter: n }) => {
|
|
19342
|
+
let r = pc(), i = Z(), a = Ey[r ?? "light"], o = M.useMemo(() => {
|
|
19294
19343
|
let t = (n ?? "").trim().toLowerCase();
|
|
19295
19344
|
return t ? e.filter((e) => e.toLowerCase().includes(t)) : e;
|
|
19296
19345
|
}, [e, n]), s = o.length > 0;
|
|
@@ -19324,7 +19373,7 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19324
19373
|
children: /* @__PURE__ */ V("div", {
|
|
19325
19374
|
className: "seal-function__debugger__log__values",
|
|
19326
19375
|
children: o.map((e, t) => {
|
|
19327
|
-
let n =
|
|
19376
|
+
let n = My(e);
|
|
19328
19377
|
return /* @__PURE__ */ V(na, {
|
|
19329
19378
|
data: n,
|
|
19330
19379
|
shouldExpandNodeInitially: () => !1,
|
|
@@ -19335,11 +19384,11 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19335
19384
|
children: i
|
|
19336
19385
|
}), ": "] })), e.length >= 1) {
|
|
19337
19386
|
let i = [...e];
|
|
19338
|
-
i.pop(), i = i.reverse(), r.push(
|
|
19387
|
+
i.pop(), i = i.reverse(), r.push(Oy(a)(jy(n, i), t));
|
|
19339
19388
|
}
|
|
19340
19389
|
return /* @__PURE__ */ V(B, { children: r });
|
|
19341
19390
|
},
|
|
19342
|
-
valueRenderer:
|
|
19391
|
+
valueRenderer: Ay(a),
|
|
19343
19392
|
theme: {
|
|
19344
19393
|
base00: "var(--card)",
|
|
19345
19394
|
base03: "var(--seal-color-text-base)",
|
|
@@ -19372,12 +19421,12 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19372
19421
|
})
|
|
19373
19422
|
]
|
|
19374
19423
|
});
|
|
19375
|
-
},
|
|
19424
|
+
}, Oy = (e) => (t, n) => {
|
|
19376
19425
|
if (n === "Object") {
|
|
19377
19426
|
let n = Object.entries(t), r = n.reduce((t, [r, i], a) => [...t, /* @__PURE__ */ H("span", { children: [
|
|
19378
19427
|
r,
|
|
19379
19428
|
": ",
|
|
19380
|
-
|
|
19429
|
+
Ay(e)(ky(i), i),
|
|
19381
19430
|
a !== n.length - 1 && /* @__PURE__ */ V(B, { children: ", " })
|
|
19382
19431
|
] }, r)], []);
|
|
19383
19432
|
return /* @__PURE__ */ H(B, { children: [
|
|
@@ -19387,7 +19436,7 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19387
19436
|
] });
|
|
19388
19437
|
}
|
|
19389
19438
|
if (n === "Array") {
|
|
19390
|
-
let n = t, r = n.reduce((t, r, i) => [...t, /* @__PURE__ */ H("span", { children: [
|
|
19439
|
+
let n = t, r = n.reduce((t, r, i) => [...t, /* @__PURE__ */ H("span", { children: [Ay(e)(ky(r), r), i !== n.length - 1 && /* @__PURE__ */ V(B, { children: ", " })] }, i)], []);
|
|
19391
19440
|
return /* @__PURE__ */ H(B, { children: [
|
|
19392
19441
|
n.length > 2 ? `(${n.length})` : "",
|
|
19393
19442
|
" [",
|
|
@@ -19396,13 +19445,13 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19396
19445
|
] });
|
|
19397
19446
|
}
|
|
19398
19447
|
return null;
|
|
19399
|
-
},
|
|
19448
|
+
}, ky = (e) => {
|
|
19400
19449
|
switch (!0) {
|
|
19401
19450
|
case Array.isArray(e): return `Array(${e.length})`;
|
|
19402
19451
|
case typeof e == "object": return "{...}";
|
|
19403
19452
|
default: return JSON.stringify(e);
|
|
19404
19453
|
}
|
|
19405
|
-
},
|
|
19454
|
+
}, Ay = (e) => (t, n) => {
|
|
19406
19455
|
let r = t;
|
|
19407
19456
|
return typeof n == "string" ? r.startsWith("\"Error:") ? /* @__PURE__ */ V("span", {
|
|
19408
19457
|
style: { color: e.error },
|
|
@@ -19420,13 +19469,13 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19420
19469
|
style: { color: e.number },
|
|
19421
19470
|
children: r
|
|
19422
19471
|
}) : r;
|
|
19423
|
-
},
|
|
19472
|
+
}, jy = (e, t) => t.reduce((e, t) => e && e[t] ? e[t] : null, e), My = (e) => {
|
|
19424
19473
|
if (typeof e == "string" && (e = e.trim(), e)) try {
|
|
19425
19474
|
return JSON.parse(e);
|
|
19426
19475
|
} catch {
|
|
19427
19476
|
return `[UNSERIALIZED]: ${e}`;
|
|
19428
19477
|
}
|
|
19429
|
-
},
|
|
19478
|
+
}, Ny = {
|
|
19430
19479
|
dark: {
|
|
19431
19480
|
base00: "var(--card)",
|
|
19432
19481
|
base03: "var(--seal-color-text-base)",
|
|
@@ -19439,15 +19488,15 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19439
19488
|
base0B: "var(--seal-color-text-base)",
|
|
19440
19489
|
base0D: "var(--seal-color-text-base)"
|
|
19441
19490
|
}
|
|
19442
|
-
},
|
|
19443
|
-
...
|
|
19491
|
+
}, Py = (e) => ({
|
|
19492
|
+
...Ny[e],
|
|
19444
19493
|
base00: "var(--card)",
|
|
19445
19494
|
base03: "var(--seal-color-text-base)",
|
|
19446
19495
|
base0B: "var(--seal-color-text-base)",
|
|
19447
19496
|
base0D: "var(--seal-color-text-base)",
|
|
19448
19497
|
tree: { display: "inline-block" }
|
|
19449
|
-
}),
|
|
19450
|
-
let n =
|
|
19498
|
+
}), Fy = ({ input: e, output: t }) => {
|
|
19499
|
+
let n = Py(pc() ?? "light"), [r, i] = M.useState(null);
|
|
19451
19500
|
return e == null && t == null ? null : /* @__PURE__ */ V("div", {
|
|
19452
19501
|
className: "border-b border-[var(--seal-color-border-fade)] text-xs [font-family:var(--mono-font-family)]",
|
|
19453
19502
|
children: [{
|
|
@@ -19484,9 +19533,9 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19484
19533
|
}, e);
|
|
19485
19534
|
})
|
|
19486
19535
|
});
|
|
19487
|
-
},
|
|
19536
|
+
}, Iy = /* @__PURE__ */ function(e) {
|
|
19488
19537
|
return e.Console = "Console", e.Libraries = "Libraries", e;
|
|
19489
|
-
}(
|
|
19538
|
+
}(Iy || {}), Ly = ({ trace: e, editor: t, libraries: n = [], editorValue: r, disabled: i }) => {
|
|
19490
19539
|
let a = e?.traceData?.log || [], [o, s] = L("Console"), [c, l] = L(""), u = Z();
|
|
19491
19540
|
return /* @__PURE__ */ V("div", {
|
|
19492
19541
|
className: "h-full border-l border-[var(--border)]",
|
|
@@ -19498,7 +19547,7 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19498
19547
|
rootClassName: "seal-inline-tabs",
|
|
19499
19548
|
size: "small",
|
|
19500
19549
|
style: { width: "100%" },
|
|
19501
|
-
items: Object.values(
|
|
19550
|
+
items: Object.values(Iy).map((e) => ({
|
|
19502
19551
|
key: e,
|
|
19503
19552
|
label: e
|
|
19504
19553
|
})),
|
|
@@ -19521,7 +19570,7 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19521
19570
|
}), /* @__PURE__ */ V("div", {
|
|
19522
19571
|
className: "grow overflow-y-auto",
|
|
19523
19572
|
children: G(o).with("Console", () => /* @__PURE__ */ H(B, { children: [
|
|
19524
|
-
e && /* @__PURE__ */ V(
|
|
19573
|
+
e && /* @__PURE__ */ V(Fy, {
|
|
19525
19574
|
input: e.input,
|
|
19526
19575
|
output: e.output
|
|
19527
19576
|
}),
|
|
@@ -19535,18 +19584,18 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19535
19584
|
className: "h-7 w-full min-w-0 rounded-md border border-border bg-muted/40 px-2 text-xs outline-none focus:border-primary/50"
|
|
19536
19585
|
})
|
|
19537
19586
|
}),
|
|
19538
|
-
a.length === 0 && /* @__PURE__ */ V(
|
|
19587
|
+
a.length === 0 && /* @__PURE__ */ V(Dy, {
|
|
19539
19588
|
lines: ["\"Info: Use console.log and run simulation to debug your code.\""],
|
|
19540
19589
|
msSinceRun: null
|
|
19541
19590
|
}),
|
|
19542
|
-
a.map((e, t) => /* @__PURE__ */ V(
|
|
19591
|
+
a.map((e, t) => /* @__PURE__ */ V(Dy, {
|
|
19543
19592
|
lines: e.lines,
|
|
19544
19593
|
msSinceRun: e.msSinceRun,
|
|
19545
19594
|
filter: c
|
|
19546
19595
|
}, t))
|
|
19547
19596
|
] })).with("Libraries", () => /* @__PURE__ */ V("div", {
|
|
19548
19597
|
className: "flex flex-col",
|
|
19549
|
-
children: n.map((e) => /* @__PURE__ */ V(
|
|
19598
|
+
children: n.map((e) => /* @__PURE__ */ V(Ry, {
|
|
19550
19599
|
lib: e,
|
|
19551
19600
|
disabled: i,
|
|
19552
19601
|
editorValue: r,
|
|
@@ -19560,14 +19609,14 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19560
19609
|
})]
|
|
19561
19610
|
})
|
|
19562
19611
|
});
|
|
19563
|
-
},
|
|
19612
|
+
}, Ry = ({ lib: e, onImport: t, editorValue: n, disabled: r }) => {
|
|
19564
19613
|
let i = Z(), a = F(() => !n || !n.includes(`from "${e.name}"`) && !n.includes(`from '${e.name}'`), [e.name, n]);
|
|
19565
19614
|
return /* @__PURE__ */ H("div", {
|
|
19566
19615
|
className: "flex items-center gap-2 border-b border-[var(--seal-color-border-fade)] p-2 no-underline",
|
|
19567
19616
|
children: [
|
|
19568
19617
|
/* @__PURE__ */ V("img", {
|
|
19569
19618
|
alt: "TypeScript Library",
|
|
19570
|
-
src:
|
|
19619
|
+
src: Ty,
|
|
19571
19620
|
height: 18
|
|
19572
19621
|
}),
|
|
19573
19622
|
/* @__PURE__ */ V(X.Text, {
|
|
@@ -19609,12 +19658,12 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19609
19658
|
})
|
|
19610
19659
|
]
|
|
19611
19660
|
}, e.name);
|
|
19612
|
-
},
|
|
19661
|
+
}, zy = (e) => By(e.toJson()), By = (e) => G(e).with("String", () => "string").with("Bool", () => "boolean").with("Number", () => "number").with("Null", () => "null").with("Any", () => "any").with({ Object: W.select() }, (e) => `{${Object.entries(e).map(([e, t]) => [e, By(t)].join(":")).join(",")}}`).with({ Array: W.select() }, (e) => `${By(e)}[]`).with({ Const: W.select() }, (e) => `"${e}"`).with({ Enum: [W._, W.select()] }, (e) => e.map((e) => `"${e}"`).join(" | ")).exhaustive(), Vy = {
|
|
19613
19662
|
Hint: 1,
|
|
19614
19663
|
Info: 2,
|
|
19615
19664
|
Warning: 4,
|
|
19616
19665
|
Error: 8
|
|
19617
|
-
},
|
|
19666
|
+
}, Hy = ({ disabled: e = !1, disableDebug: t, language: n = "javascript", defaultValue: r, value: i, onChange: a, trace: o, onMonacoReady: s, onEditorMount: c, error: l, inputData: u, previousValue: d, permission: f = "edit:full", libraries: p = cg }) => {
|
|
19618
19667
|
let m = Ji(), h = I(!1), g = pc(), [_, v] = L(), [y, b] = L(), x = Ci((e) => {
|
|
19619
19668
|
a?.(e);
|
|
19620
19669
|
}, 100), [S, C] = L(), [w, T] = L(), E = wi(() => S?.layout(), 100, { trailing: !0 }), D = wi(() => w?.layout(), 100, { trailing: !0 });
|
|
@@ -19646,7 +19695,7 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19646
19695
|
}, []), P(() => {
|
|
19647
19696
|
if (!m) return;
|
|
19648
19697
|
let e = "any";
|
|
19649
|
-
Es() && (e =
|
|
19698
|
+
Es() && (e = zy(jn(u))), m.languages.typescript.javascriptDefaults.addExtraLib(`
|
|
19650
19699
|
type Input = ${e};
|
|
19651
19700
|
type Output = Promise<any>;
|
|
19652
19701
|
|
|
@@ -19669,7 +19718,7 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19669
19718
|
if (!r) return;
|
|
19670
19719
|
let i = new m.Range(t, r.getLineFirstNonWhitespaceColumn(t), t, r.getLineLastNonWhitespaceColumn(t));
|
|
19671
19720
|
m.editor.setModelMarkers(r, "gorules", [{
|
|
19672
|
-
severity:
|
|
19721
|
+
severity: Vy.Error,
|
|
19673
19722
|
message: n,
|
|
19674
19723
|
startLineNumber: i.startLineNumber,
|
|
19675
19724
|
endLineNumber: i.endLineNumber,
|
|
@@ -19713,7 +19762,7 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19713
19762
|
theme: g === "dark" ? "vs-dark" : "light",
|
|
19714
19763
|
height: "100%",
|
|
19715
19764
|
options: {
|
|
19716
|
-
...
|
|
19765
|
+
...Uy,
|
|
19717
19766
|
readOnly: !0
|
|
19718
19767
|
}
|
|
19719
19768
|
}) : /* @__PURE__ */ V(Ki, {
|
|
@@ -19729,13 +19778,13 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19729
19778
|
theme: g === "dark" ? "vs-dark" : "light",
|
|
19730
19779
|
height: "100%",
|
|
19731
19780
|
options: {
|
|
19732
|
-
...
|
|
19781
|
+
...Uy,
|
|
19733
19782
|
readOnly: e || f !== "edit:full"
|
|
19734
19783
|
}
|
|
19735
19784
|
})
|
|
19736
19785
|
}), !t && /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V(Qi, {}), /* @__PURE__ */ V(Xi, {
|
|
19737
19786
|
minSize: 25,
|
|
19738
|
-
children: !t && /* @__PURE__ */ V(
|
|
19787
|
+
children: !t && /* @__PURE__ */ V(Ly, {
|
|
19739
19788
|
libraries: cg,
|
|
19740
19789
|
trace: o,
|
|
19741
19790
|
editor: S,
|
|
@@ -19745,7 +19794,7 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19745
19794
|
})] })]
|
|
19746
19795
|
})
|
|
19747
19796
|
}) });
|
|
19748
|
-
},
|
|
19797
|
+
}, Uy = {
|
|
19749
19798
|
automaticLayout: !0,
|
|
19750
19799
|
contextmenu: !1,
|
|
19751
19800
|
fontSize: 13,
|
|
@@ -19759,8 +19808,8 @@ var ry = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19759
19808
|
horizontalScrollbarSize: 4,
|
|
19760
19809
|
horizontalSliderSize: 4
|
|
19761
19810
|
}
|
|
19762
|
-
},
|
|
19811
|
+
}, Wy = /* @__PURE__ */ ua({ Function: () => Hy });
|
|
19763
19812
|
//#endregion
|
|
19764
|
-
export {
|
|
19813
|
+
export { cy as AUTO_SYNC_DEBOUNCE_MS, ge as COLUMN_FIELD_TYPE_OPTIONS, Zd as CodeEditor, Wv as CustomFunctionTable, A as CustomKind, me as DECISION_GRAPH_CONTENT_TYPE, Qv as DecisionGraph, dm as DecisionTable, gc as DictionaryProvider, Gp as DiffAutosizeTextArea, Wp as DiffCodeEditor, Xp as DiffIcon, Hp as DiffInput, zp as DiffRadio, Up as DiffSelect, Vp as DiffSwitch, Zh as Expression, Mf as ExpressionBuilder, wy as FixturesPanel, Hy as Function, bh as GraphDecisionNode, Ch as GraphNode, my as GraphSimulator, dc as I18nProvider, a as INPUT_CONTRACT_VERSION, _c as JdmConfigProvider, Vs as MODE_EXTRAS, yh as NodeColor, se as NodeKind, Bm as NodeTypeKind, ee as OUTPUT_FIELD_TYPE_OPTIONS, ey as SimulatorEditor, Gg as TabRequest, Jv as ToolbarAnchor, rh as addStrikethrough, de as anyNodeSchema, i as applySchemaTextToInputContract, ih as buildDiffString, f as buildRequestExampleTemplateFromDefinitions, y as buildRequestSchemaFromDefinitions, i_ as calculateDiffGraph, Kv as clusterToolbarItems, ud as codemirror, he as columnEnumSchema, ne as columnFieldTypeSchema, oh as compareAndUnifyLists, ah as compareStringFields, h as computeExampleDrift, Sy as computeGraphDiff, le as contractExamplesToSources, $v as createJdmNode, uc as createT, k as customNodeSchema, Us as darkTokens, _e as decisionModelSchema, re as decisionNodeSchema, ae as decisionTableSchema, fe as edgeSchema, Ds as ensureWasmLoaded, ue as expressionNodeSchema, O as functionNodeSchema, r as getRequestDefinitions, c as getRequestExampleSources, d as getRequestSchemaSourceValue, ce as hasExampleDrift, oe as inputNodeSchema, Ov as jsonSchemaToVariableType, Hs as lightTokens, p as migrateRequestExampleDataByDefinitions, D as nodeSchema, m_ as nodeSpecification, ye as normalizeRequestDefinitionOrders, w as normalizeRequestFieldKey, E as normalizeRequestJsonKeys, ve as outputFieldTypeSchema, xe as outputNodeSchema, o_ as processEdges, a_ as processNodes, g as readRequestInputContract, o as requestSchemaFingerprint, u as resolveRequestSchemaValue, od as setUdfCompletions, T as stringifyRequestSchemaValue, te as switchNodeSchema, s as updateRequestSchemaExamples, Gm as useDecisionGraphActions, Um as useDecisionGraphListeners, Km as useDecisionGraphRaw, Wm as useDecisionGraphReferences, $ as useDecisionGraphState, hc as useDictionaries, Jm as useEdgeDiff, $m as useGraphSerializer, qm as useNodeDiff, nh as useNodeType, ph as usePersistentState, ly as useSimulatorAutoSync, Z as useT, eh as useTabSerializer, pc as useThemeMode, Os as useWasmReady, be as validationSchema, l as writeRequestInputContract };
|
|
19765
19814
|
|
|
19766
19815
|
//# sourceMappingURL=index.js.map
|