@lsamien/yaoyao 0.5.0 → 0.5.1
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/README.md +12 -8
- package/bin/hermes-yaoyao.mjs +10 -1
- package/build-info.json +11 -3
- package/desktop/main.mjs +29 -6
- package/dist/admin/admin.html +18 -0
- package/dist/admin/assets/AccountPage-B3c7oAur.js +2 -0
- package/dist/admin/assets/AccountPage-B3c7oAur.js.map +1 -0
- package/dist/admin/assets/AccountPage-CtSyt5Ut.css +1 -0
- package/dist/admin/assets/AppIcon-Ci5jJQ_z.css +1 -0
- package/dist/admin/assets/AppIcon-DT0aZXKp.js +2 -0
- package/dist/admin/assets/AppIcon-DT0aZXKp.js.map +1 -0
- package/dist/admin/assets/AuditPage-CCU02Ssr.css +1 -0
- package/dist/admin/assets/AuditPage-kQHS8ez1.js +2 -0
- package/dist/admin/assets/AuditPage-kQHS8ez1.js.map +1 -0
- package/dist/admin/assets/DesktopHostSettingsPanel-0ExrDTcn.css +1 -0
- package/dist/admin/assets/DesktopHostSettingsPanel-x8qZaYP_.js +3 -0
- package/dist/admin/assets/DesktopHostSettingsPanel-x8qZaYP_.js.map +1 -0
- package/dist/admin/assets/DevicesPage-BYmzYCVl.css +1 -0
- package/dist/admin/assets/DevicesPage-CygAF7MF.js +2 -0
- package/dist/admin/assets/DevicesPage-CygAF7MF.js.map +1 -0
- package/dist/admin/assets/ExecutionPage-C7dAaW56.css +1 -0
- package/dist/admin/assets/ExecutionPage-MrUVepUz.js +4 -0
- package/dist/admin/assets/ExecutionPage-MrUVepUz.js.map +1 -0
- package/dist/admin/assets/HermesModelSettingsPanel-CjdtWrj3.css +1 -0
- package/dist/admin/assets/HermesModelSettingsPanel-DzV-tcHN.js +4 -0
- package/dist/admin/assets/HermesModelSettingsPanel-DzV-tcHN.js.map +1 -0
- package/dist/admin/assets/LocalVmSettingsPanel-KroYaJcH.js +2 -0
- package/dist/admin/assets/LocalVmSettingsPanel-KroYaJcH.js.map +1 -0
- package/dist/admin/assets/MemoryPage-CMzoheMD.js +2 -0
- package/dist/admin/assets/MemoryPage-CMzoheMD.js.map +1 -0
- package/dist/admin/assets/NetworkPage-DXxW3wcm.js +2 -0
- package/dist/admin/assets/NetworkPage-DXxW3wcm.js.map +1 -0
- package/dist/admin/assets/NetworkPage-D_7uKgV8.css +1 -0
- package/dist/admin/assets/OverviewPage-9Bj0bs6r.js +2 -0
- package/dist/admin/assets/OverviewPage-9Bj0bs6r.js.map +1 -0
- package/dist/admin/assets/OverviewPage-C6p0VjPP.css +1 -0
- package/dist/admin/assets/PushPage-Ifc68pyh.js +2 -0
- package/dist/admin/assets/PushPage-Ifc68pyh.js.map +1 -0
- package/dist/admin/assets/RunnerSettingsPanel-CBFh_1xp.js +4 -0
- package/dist/admin/assets/RunnerSettingsPanel-CBFh_1xp.js.map +1 -0
- package/dist/admin/assets/RunnerSettingsPanel-CcDBl75r.css +1 -0
- package/dist/admin/assets/SystemManagementPanel-DYnwEsvo.js +6 -0
- package/dist/admin/assets/SystemManagementPanel-DYnwEsvo.js.map +1 -0
- package/dist/admin/assets/SystemManagementPanel-bwpHvkQn.css +1 -0
- package/dist/admin/assets/UpdatePage-pSh40naO.js +2 -0
- package/dist/admin/assets/UpdatePage-pSh40naO.js.map +1 -0
- package/dist/admin/assets/UpdatePage-sEtLezMA.css +1 -0
- package/dist/admin/assets/UsersPage-DEImZamY.js +2 -0
- package/dist/admin/assets/UsersPage-DEImZamY.js.map +1 -0
- package/dist/admin/assets/VoicePage-CVMwNSdM.css +1 -0
- package/dist/admin/assets/VoicePage-I6C1byXU.js +2 -0
- package/dist/admin/assets/VoicePage-I6C1byXU.js.map +1 -0
- package/dist/admin/assets/_plugin-vue_export-helper-B5sAOsbt.js +2 -0
- package/dist/admin/assets/_plugin-vue_export-helper-B5sAOsbt.js.map +1 -0
- package/dist/admin/assets/admin-e1fQJC78.css +1 -0
- package/dist/admin/assets/admin-fxq6uao1.js +5 -0
- package/dist/admin/assets/admin-fxq6uao1.js.map +1 -0
- package/dist/admin/assets/agentManagement-BJKdxRR4.js +2 -0
- package/dist/admin/assets/agentManagement-BJKdxRR4.js.map +1 -0
- package/dist/admin/assets/id-JJk5w4N8.js +2 -0
- package/dist/admin/assets/id-JJk5w4N8.js.map +1 -0
- package/dist/admin/assets/webOrigin-B8RkRJQC.js +2 -0
- package/dist/admin/assets/webOrigin-B8RkRJQC.js.map +1 -0
- package/dist/admin/brand/AppIcon-1024.png +0 -0
- package/dist/admin/icons/apple-touch-icon.png +0 -0
- package/dist/admin/icons/favicon-32.png +0 -0
- package/dist/admin/icons/icon-192.png +0 -0
- package/dist/admin/icons/icon-512.png +0 -0
- package/dist/admin/icons/logo-64.png +0 -0
- package/dist/admin/manifest.webmanifest +21 -0
- package/dist/admin/provider-logos/airtable.svg +13 -0
- package/dist/admin/provider-logos/discord.svg +15 -0
- package/dist/admin/provider-logos/github.svg +10 -0
- package/dist/admin/provider-logos/gmail.svg +1 -0
- package/dist/admin/provider-logos/googlecalendar.svg +148 -0
- package/dist/admin/provider-logos/googledrive.svg +25 -0
- package/dist/admin/provider-logos/linear.svg +5 -0
- package/dist/admin/provider-logos/notion.svg +11 -0
- package/dist/admin/provider-logos/outlook.svg +76 -0
- package/dist/admin/provider-logos/slack.svg +22 -0
- package/dist/admin/provider-logos/trello.svg +19 -0
- package/dist/admin/provider-logos/twitter.svg +128 -0
- package/dist/admin/setting-previews/dark.png +0 -0
- package/dist/admin/setting-previews/light.png +0 -0
- package/dist/admin/setting-previews/system.png +0 -0
- package/dist/assets/AboutDialog-hLF4HDDI.js +2 -0
- package/dist/assets/AboutDialog-hLF4HDDI.js.map +1 -0
- package/dist/assets/{AgentAvatar-C37KUyoW.js → AgentAvatar-DGAfESjC.js} +3 -3
- package/dist/assets/AgentAvatar-DGAfESjC.js.map +1 -0
- package/dist/assets/{AppIcon-BPvEfb2q.js → AppIcon-BSQW3rNo.js} +2 -2
- package/dist/assets/{AppIcon-BPvEfb2q.js.map → AppIcon-BSQW3rNo.js.map} +1 -1
- package/dist/assets/BotAutomationsView-F2DUYiMz.js +2 -0
- package/dist/assets/{BotAutomationsView-gKt3Ynba.js.map → BotAutomationsView-F2DUYiMz.js.map} +1 -1
- package/dist/assets/BotPluginsDialog-GWss_AWD.js +2 -0
- package/dist/assets/{BotPluginsDialog-BDb-ov2N.js.map → BotPluginsDialog-GWss_AWD.js.map} +1 -1
- package/dist/assets/BotSettingsDialog-DSzLNVzl.css +1 -0
- package/dist/assets/BotSettingsDialog-Dp_NQ5Kv.js +2 -0
- package/dist/assets/BotSettingsDialog-Dp_NQ5Kv.js.map +1 -0
- package/dist/assets/BrandMark-y7NnuoOH.js +2 -0
- package/dist/assets/BrandMark-y7NnuoOH.js.map +1 -0
- package/dist/assets/ComputerPanel-BttazrS8.js +2 -0
- package/dist/assets/{ComputerPanel-CzE73VoT.js.map → ComputerPanel-BttazrS8.js.map} +1 -1
- package/dist/assets/ComputerViewerView-cIjIUTqR.js +2 -0
- package/dist/assets/{ComputerViewerView-Lc3DX3Qp.js.map → ComputerViewerView-cIjIUTqR.js.map} +1 -1
- package/dist/assets/ConversationsView-3Gd2atFN.js +81 -0
- package/dist/assets/ConversationsView-3Gd2atFN.js.map +1 -0
- package/dist/assets/ConversationsView-BAilBM3y.css +1 -0
- package/dist/assets/StandaloneDialog-Dakzt5_X.js +2 -0
- package/dist/assets/{StandaloneDialog-DibKSM6U.js.map → StandaloneDialog-Dakzt5_X.js.map} +1 -1
- package/dist/assets/TeamAvatar-CnkDPqYB.js +2 -0
- package/dist/assets/TeamAvatar-CnkDPqYB.js.map +1 -0
- package/dist/assets/WorkspaceKnowledgePanel-B6xMyHdp.css +1 -0
- package/dist/assets/WorkspaceKnowledgePanel-ChnX-SdQ.js +2 -0
- package/dist/assets/WorkspaceKnowledgePanel-ChnX-SdQ.js.map +1 -0
- package/dist/assets/WorkspaceRoutinesPanel-Dfi6aiNd.js +2 -0
- package/dist/assets/{WorkspaceRoutinesPanel-CIJJtGi1.js.map → WorkspaceRoutinesPanel-Dfi6aiNd.js.map} +1 -1
- package/dist/assets/{_plugin-vue_export-helper-CW5Ldrk2.js → _plugin-vue_export-helper-CscYwSBt.js} +2 -2
- package/dist/assets/_plugin-vue_export-helper-CscYwSBt.js.map +1 -0
- package/dist/assets/browser-B97PQaMt.js.map +1 -1
- package/dist/assets/client-DlFcPeeo.js +2 -0
- package/dist/assets/{client-BQtZaYs8.js.map → client-DlFcPeeo.js.map} +1 -1
- package/dist/assets/docx-preview-DZusoPTe.js.map +1 -1
- package/dist/assets/index-CSZzZB6k.js +3 -0
- package/dist/assets/{index-B9T7NLfA.js.map → index-CSZzZB6k.js.map} +1 -1
- package/dist/assets/pdf-tIZzkLfe.js.map +1 -1
- package/dist/assets/vue-router-BhrrTMUg.js +2 -0
- package/dist/assets/vue-router-BhrrTMUg.js.map +1 -0
- package/dist/index.html +8 -8
- package/dist-server/server/admin/app.js +323 -0
- package/dist-server/server/admin/audit.js +106 -0
- package/dist-server/server/admin/routes.js +68 -0
- package/dist-server/server/admin/sessions.js +198 -0
- package/dist-server/server/admin/throttle.js +51 -0
- package/dist-server/server/admin/totp.js +60 -0
- package/dist-server/server/app.js +95 -21
- package/dist-server/server/config.js +26 -0
- package/dist-server/server/desktopHosts.js +57 -0
- package/dist-server/server/index.js +46 -0
- package/dist-server/server/localAuth.js +39 -0
- package/dist-server/server/security.js +5 -3
- package/dist-server/server/workspaceRoutes.js +2 -0
- package/package.json +2 -2
- package/release.json +3 -3
- package/dist/assets/AboutDialog-nXDYG57h.js +0 -2
- package/dist/assets/AboutDialog-nXDYG57h.js.map +0 -1
- package/dist/assets/AgentAvatar-C37KUyoW.js.map +0 -1
- package/dist/assets/BotAutomationsView-gKt3Ynba.js +0 -2
- package/dist/assets/BotPluginsDialog-BDb-ov2N.js +0 -2
- package/dist/assets/BotSettingsDialog-DqA2zJZK.js +0 -5
- package/dist/assets/BotSettingsDialog-DqA2zJZK.js.map +0 -1
- package/dist/assets/BotSettingsDialog-yxqKMuZ-.css +0 -1
- package/dist/assets/BrandMark-DHKCL6jN.js +0 -2
- package/dist/assets/BrandMark-DHKCL6jN.js.map +0 -1
- package/dist/assets/ComputerPanel-CzE73VoT.js +0 -2
- package/dist/assets/ComputerViewerView-Lc3DX3Qp.js +0 -2
- package/dist/assets/ConversationsView-CTqxBOQ9.js +0 -83
- package/dist/assets/ConversationsView-CTqxBOQ9.js.map +0 -1
- package/dist/assets/ConversationsView-Cbj8h0ms.css +0 -1
- package/dist/assets/LocalVmSettingsPanel-D2kMqDFb.js +0 -2
- package/dist/assets/LocalVmSettingsPanel-D2kMqDFb.js.map +0 -1
- package/dist/assets/RunnerSettingsPanel-C85I5Md_.css +0 -1
- package/dist/assets/RunnerSettingsPanel-Hw8OyWFI.js +0 -4
- package/dist/assets/RunnerSettingsPanel-Hw8OyWFI.js.map +0 -1
- package/dist/assets/StandaloneDialog-DibKSM6U.js +0 -2
- package/dist/assets/SystemManagementPanel-5uMrQ0km.css +0 -1
- package/dist/assets/SystemManagementPanel-_N_phucL.js +0 -7
- package/dist/assets/SystemManagementPanel-_N_phucL.js.map +0 -1
- package/dist/assets/TeamAvatar-C9jl8KF_.js +0 -2
- package/dist/assets/TeamAvatar-C9jl8KF_.js.map +0 -1
- package/dist/assets/UpdateCheckDialog-CPKcCSFt.js +0 -2
- package/dist/assets/UpdateCheckDialog-CPKcCSFt.js.map +0 -1
- package/dist/assets/UpdateCheckDialog-CRlyWnE7.css +0 -1
- package/dist/assets/WorkspaceRoutinesPanel-CIJJtGi1.js +0 -2
- package/dist/assets/_plugin-vue_export-helper-CW5Ldrk2.js.map +0 -1
- package/dist/assets/client-BQtZaYs8.js +0 -2
- package/dist/assets/index-B9T7NLfA.js +0 -3
- package/dist/assets/localVm-owThjmhy.js +0 -2
- package/dist/assets/localVm-owThjmhy.js.map +0 -1
- package/dist/assets/systemUpdate-CXMCaKgI.js +0 -2
- package/dist/assets/systemUpdate-CXMCaKgI.js.map +0 -1
- package/dist/assets/vue-router-DYhC9cWJ.js +0 -2
- package/dist/assets/vue-router-DYhC9cWJ.js.map +0 -1
- /package/dist/{assets → admin/assets}/LocalVmSettingsPanel-Dedfhqlq.css +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentAvatar-DGAfESjC.js","names":["_a","clone","initializer","util.jsonStringifyReplacer","core.$ZodAsyncError","util.finalizeIssue","core.config","errors.$ZodError","safeParse","errors.$ZodRealError","safeParseAsync","util.nullish","util.getLengthableOrigin","util.aborted","util.explicitlyAborted","core.$ZodAsyncError","safeParse","safeParseAsync","util.prefixIssues","util.finalizeIssue","core.config","util.cleanRegex","util.isPlainObject","util.getEnumValues","util.escapeRegex","core.$ZodEncodeError","util.issue","checks.$ZodCheckMaxLength","util.normalizeParams","checks.$ZodCheckMinLength","checks.$ZodCheckLengthEquals","checks.$ZodCheckOverwrite","issue","util.issue","checks.$ZodCheck","core.formatError","core.flattenError","util.jsonStringifyReplacer","parse.parse","parse.safeParse","parse.parseAsync","parse.safeParseAsync","parse.encode","parse.decode","parse.encodeAsync","parse.decodeAsync","parse.safeEncode","parse.safeDecode","parse.safeEncodeAsync","parse.safeDecodeAsync","util.mergeDefs","core.clone","checks.overwrite","processors.arrayProcessor","checks.minLength","checks.maxLength","checks.length","core._array","processors.unionProcessor","util.normalizeParams","processors.intersectionProcessor","processors.enumProcessor","processors.transformProcessor","core.$ZodEncodeError","issue","util.issue","processors.optionalProcessor","processors.nullableProcessor","processors.defaultProcessor","util.shallowClone","processors.prefaultProcessor","processors.nonoptionalProcessor","processors.catchProcessor","processors.pipeProcessor","processors.readonlyProcessor","processors.customProcessor","core._refine","core._superRefine"],"sources":["../../src/shared/agentIdentity.ts","../../src/client/components/common/maus/laoa-data.ts","../../../yaoyao/node_modules/zod/v4/core/core.js","../../../yaoyao/node_modules/zod/v4/core/util.js","../../../yaoyao/node_modules/zod/v4/core/errors.js","../../../yaoyao/node_modules/zod/v4/core/parse.js","../../../yaoyao/node_modules/zod/v4/core/checks.js","../../../yaoyao/node_modules/zod/v4/core/versions.js","../../../yaoyao/node_modules/zod/v4/core/schemas.js","../../../yaoyao/node_modules/zod/v4/core/registries.js","../../../yaoyao/node_modules/zod/v4/core/api.js","../../../yaoyao/node_modules/zod/v4/core/to-json-schema.js","../../../yaoyao/node_modules/zod/v4/core/json-schema-processors.js","../../../yaoyao/node_modules/zod/v4/classic/errors.js","../../../yaoyao/node_modules/zod/v4/classic/parse.js","../../../yaoyao/node_modules/zod/v4/classic/schemas.js","../../src/client/components/common/maus/mascot-bodies.ts","../../src/client/components/common/maus/cursor-face-data.ts","../../src/client/components/common/maus/cursor-engine.ts","../../src/client/components/common/maus/silhouettes.ts","../../src/client/components/common/AgentAvatar.vue","../../src/client/components/common/AgentAvatar.vue"],"sourcesContent":["export const YAOYAO_AGENT_IDENTITY_NAMESPACE = 'hermes-yaoyao-identity'\nexport const YAOYAO_AGENT_IDENTITY_VERSION = 2\nexport const AVATAR_DESCRIPTOR_PREFIX = 'yaoyao-avatar:v2:'\nexport const MAX_AVATAR_IMAGE_LENGTH = 2_800_000\nexport const MAX_AVATAR_DESCRIPTOR_LENGTH = MAX_AVATAR_IMAGE_LENGTH + 4096\nexport const AGENT_MASCOT_SHAPES = ['circle', 'square', 'triangle', 'ellipse', 'capsule', 'hexagon', 'cloud', 'droplet'] as const\nexport type AgentMascotShape = typeof AGENT_MASCOT_SHAPES[number]\nexport const AGENT_MASCOT_SHAPE_OPTIONS: readonly AgentMascotShape[] = ['circle', 'ellipse', 'square', 'capsule', 'triangle', 'hexagon', 'cloud', 'droplet']\nexport const AGENT_MASCOT_EXPRESSIONS = ['idle', 'happy', 'curious', 'drowsy', 'working', 'thinking', 'listening', 'sleeping', 'suspicious', 'proud'] as const\nexport type AgentMascotExpression = typeof AGENT_MASCOT_EXPRESSIONS[number]\nexport const AGENT_MASCOT_BODIES = ['cursor', 'blob', 'circle', 'squircle', 'capsule', 'drop', 'shield', 'hexagon', 'diamond', 'star'] as const\nexport type AgentMascotBody = typeof AGENT_MASCOT_BODIES[number]\nexport const AGENT_MASCOT_BODY_LABELS: Record<AgentMascotBody, string> = { cursor: '光标', blob: '软团', circle: '圆球', squircle: '圆角块', capsule: '胶囊体', drop: '液滴', shield: '盾牌', hexagon: '六边体', diamond: '菱形', star: '星星' }\nexport const AGENT_MASCOT_EXPRESSION_LABELS: Record<AgentMascotExpression, string> = { idle: '默认', happy: '开心', curious: '好奇', drowsy: '困倦', working: '工作', thinking: '思考', listening: '倾听', sleeping: '睡眠', suspicious: '疑惑', proud: '自豪' }\nexport const AGENT_MASCOT_COLORS = ['#000000', '#94643a', '#ff2d45', '#ff6b00', '#ff9900', '#00c875', '#00b9ac', '#1488ff', '#9655f7', '#f52ba5', '#808080'] as const\nexport const AGENT_MASCOT_COLOR_LABELS: Record<string, string> = { '#000000':'黑色', '#94643a':'棕色', '#ff2d45':'红色', '#ff6b00':'橙色', '#ff9900':'金黄色', '#00c875':'绿色', '#00b9ac':'青绿色', '#1488ff':'蓝色', '#9655f7':'紫色', '#f52ba5':'粉色', '#808080':'灰色' }\nexport const AGENT_IMAGE_CROPS = ['circle', 'rounded', 'square'] as const\nexport type AgentImageCrop = typeof AGENT_IMAGE_CROPS[number]\nexport type AgentAvatarMode = 'mascot' | 'image'\nexport interface AgentIdentity {\n version: 2\n displayName: string\n avatarMode: AgentAvatarMode\n shape: AgentMascotShape\n color: string\n expression: AgentMascotExpression\n bodyId?: AgentMascotBody | null\n imageCrop?: AgentImageCrop\n imageDataURL?: string\n}\nexport interface AgentIdentityProfileSource { name?: unknown; display_name?: unknown; displayName?: unknown; description?: unknown; ui_meta?: unknown }\nconst imagePattern = /^data:image\\/(png|jpeg|webp);base64,[A-Za-z0-9+/]+={0,2}$/i\nconst legacyPattern = /^yaoyao-mascot:v1:(circle|square|triangle|ellipse|capsule|hexagon|cloud|droplet):([0-9a-f]{6}):(friendly|focused|curious|calm)$/i\nfunction object(v: unknown): Record<string, unknown> { return v && typeof v === 'object' && !Array.isArray(v) ? v as Record<string, unknown> : {} }\nfunction name(v: unknown): string { return typeof v === 'string' ? v.trim().replace(/\\s+/g, ' ').slice(0, 100) : '' }\nexport function validAvatarImage(v: unknown): boolean { return typeof v === 'string' && v.length <= MAX_AVATAR_IMAGE_LENGTH && imagePattern.test(v) }\nexport function defaultAgentIdentity(profile: string, displayName?: string): AgentIdentity {\n return { version: 2, displayName: name(displayName) || name(profile) || 'default', avatarMode: 'mascot', shape: 'circle', color: '#00c875', expression: 'idle', bodyId: null, imageCrop: 'rounded' }\n}\nexport function randomAgentIdentity(profile: string, displayName?: string, random: () => number = Math.random): AgentIdentity {\n const identity = defaultAgentIdentity(profile, displayName)\n const count = AGENT_MASCOT_SHAPES.length + AGENT_MASCOT_BODIES.length\n const visual = Math.min(count - 1, Math.max(0, Math.floor(random() * count)))\n if (visual < AGENT_MASCOT_SHAPES.length) identity.shape = AGENT_MASCOT_SHAPES[visual]!\n else identity.bodyId = AGENT_MASCOT_BODIES[visual - AGENT_MASCOT_SHAPES.length]!\n identity.color = AGENT_MASCOT_COLORS[Math.min(AGENT_MASCOT_COLORS.length - 1, Math.max(0, Math.floor(random() * AGENT_MASCOT_COLORS.length)))]!\n identity.expression = AGENT_MASCOT_EXPRESSIONS[Math.min(AGENT_MASCOT_EXPRESSIONS.length - 1, Math.max(0, Math.floor(random() * AGENT_MASCOT_EXPRESSIONS.length)))]!\n return identity\n}\nfunction descriptor(v: Record<string, unknown>): AgentIdentity | null {\n if (v.version !== 2 || !['mascot', 'image'].includes(String(v.avatarMode)) || !AGENT_MASCOT_SHAPES.includes(v.shape as AgentMascotShape)\n || typeof v.color !== 'string' || !/^#[0-9a-f]{6}$/i.test(v.color)\n || !AGENT_MASCOT_EXPRESSIONS.includes(v.expression as AgentMascotExpression)\n || (v.bodyId != null && !AGENT_MASCOT_BODIES.includes(v.bodyId as AgentMascotBody))\n || (v.imageCrop != null && !AGENT_IMAGE_CROPS.includes(v.imageCrop as AgentImageCrop))\n || (v.imageDataURL != null && !validAvatarImage(v.imageDataURL))\n || (v.avatarMode === 'image' && !validAvatarImage(v.imageDataURL))) return null\n return { version: 2, displayName: name(v.displayName), avatarMode: v.avatarMode as AgentAvatarMode, shape: v.shape as AgentMascotShape, color: v.color.toLowerCase(), expression: v.expression as AgentMascotExpression,\n bodyId: v.bodyId as AgentMascotBody | null ?? null, imageCrop: v.imageCrop as AgentImageCrop ?? 'rounded', ...(v.imageDataURL ? { imageDataURL: v.imageDataURL as string } : {}) }\n}\nexport function decodeAgentAvatar(value: string | undefined): AgentIdentity | null {\n if (!value || value.length > MAX_AVATAR_DESCRIPTOR_LENGTH) return null\n if (validAvatarImage(value)) return { ...defaultAgentIdentity(''), avatarMode: 'image', imageDataURL: value }\n if (legacyPattern.test(value)) return defaultAgentIdentity('')\n if (!value.startsWith(AVATAR_DESCRIPTOR_PREFIX)) return null\n try { return descriptor(object(JSON.parse(value.slice(AVATAR_DESCRIPTOR_PREFIX.length)))) } catch { return null }\n}\nexport function encodeAgentAvatar(identity: AgentIdentity): string {\n const value = descriptor({ ...identity, version: 2, bodyId: identity.bodyId ?? null, imageCrop: identity.imageCrop ?? 'rounded' })\n if (!value) throw new Error('无效的头像设置')\n const { displayName: _, ...data } = value\n return AVATAR_DESCRIPTOR_PREFIX + JSON.stringify(data)\n}\nexport function decodeAgentMascotAvatar(value: string | undefined): AgentIdentity | null {\n const identity = decodeAgentAvatar(value)\n return identity?.avatarMode === 'mascot' ? identity : null\n}\nexport function isAgentImageAvatar(value: string | undefined): boolean { return decodeAgentAvatar(value)?.avatarMode === 'image' }\nexport function normalizeAvatar(value: string | undefined): string { return encodeAgentAvatar(decodeAgentAvatar(value) ?? defaultAgentIdentity('')) }\nexport function agentIdentityFromProfile(source: AgentIdentityProfileSource): AgentIdentity {\n const meta = object(source.ui_meta), current = object(meta[YAOYAO_AGENT_IDENTITY_NAMESPACE]), legacy = object(meta['hermes-bots'])\n const displayName = name(current.display_name) || name(legacy.title) || name(source.display_name) || name(source.displayName) || name(source.description) || name(source.name)\n const fallback = defaultAgentIdentity(name(source.name), displayName)\n const image = validAvatarImage(current.image_data_url) ? current.image_data_url as string : validAvatarImage(legacy.avatar) ? legacy.avatar as string : undefined\n if (current.version !== 2) return { ...fallback, ...(image ? { imageDataURL: image, avatarMode: current.avatar_mode === 'image' || !Object.keys(current).length ? 'image' as const : 'mascot' as const } : {}) }\n return descriptor({ version: 2, displayName, avatarMode: current.avatar_mode, shape: current.shape, color: current.color, expression: current.expression, bodyId: current.body_id, imageCrop: current.image_crop, imageDataURL: current.image_data_url }) ?? fallback\n}\nexport function agentIdentityMetadata(identity: AgentIdentity): Record<string, unknown> {\n const v = descriptor({ ...identity })\n if (!v) throw new Error('无效的头像设置')\n return { version: 2, display_name: name(identity.displayName), avatar_mode: v.avatarMode, shape: v.shape, color: v.color, expression: v.expression, body_id: v.bodyId, image_crop: v.imageCrop, ...(v.imageDataURL ? { image_data_url: v.imageDataURL } : {}) }\n}\n","// Generated by hermes-yaoyao/scripts/generate-laoa-avatars.mjs. Do not hand-edit.\n// LaoA-GrokBot 527c3b5746bed34da3a6d4f9747e483c84534a41 (MIT); legacy bodies OpenMausBot (Apache-2.0).\nexport const LAOA_DATA = {\"source\":{\"project\":\"LaoA-GrokBot\",\"commit\":\"527c3b5746bed34da3a6d4f9747e483c84534a41\",\"license\":\"MIT\"},\"faceBox\":228.541,\"shapes\":{\"circle\":{\"path\":\"M228.541 114.228 C228.541 130.133 225.184 145.994 218.738 160.534 C212.674 174.217 203.904 186.669 193.065 196.988 C155.933 232.34 99.497 238.596 55.5255 212.24 C45.097 205.99 35.6851 198.072 27.7451 188.866 C19.1926 178.953 12.3686 167.569 7.65781 155.351 C2.60712 142.264 0 128.257 0 114.228 C0 98.3219 3.35751 82.4611 9.80315 67.9215 C15.8672 54.2382 24.6377 41.7862 35.4767 31.4668 C72.6081 -3.88483 129.044 -10.1413 173.016 16.2153 C183.444 22.4653 192.856 30.3829 200.796 39.5896 C209.349 49.5018 216.173 60.8859 220.883 73.1037 C225.934 86.1906 228.541 100.198 228.541 114.228 Z\",\"bounds\":[0,-0.000018,228.541,228.455006],\"viewport\":[0,-0.043015,228.541,228.541],\"anchor\":[120,122.5,1]},\"square\":{\"path\":\"M55 10 C55 10 174 10 174 10 C204 10 219 25 219 55 C219 55 219 174 219 174 C219 204 204 219 174 219 C174 219 55 219 55 219 C25 219 10 204 10 174 C10 174 10 55 10 55 C10 25 25 10 55 10 Z\",\"bounds\":[10,10,209,209],\"viewport\":[10,10,209,209],\"anchor\":[120,122.5,1]},\"triangle\":{\"path\":\"M114 9 C119.333333 9 124 13 128 21 C128 21 220 194 220 194 C224.666667 204.666667 220.333333 210 207 210 C207 210 21 210 21 210 C7.666667 210 3.666667 204.666667 9 194 C9 194 101 21 101 21 C104.333333 13 108.666667 9 114 9 Z\",\"bounds\":[6.714286,9,215.100529,201],\"viewport\":[6.714286,1.949736,215.100529,215.100529],\"anchor\":[114.2705,135,0.648232]},\"capsule\":{\"path\":\"M61 31 C61 31 168 31 168 31 C202 31 220 65 220 114 C220 163 202 197 168 197 C168 197 61 197 61 197 C27 197 9 163 9 114 C9 65 27 31 61 31 Z\",\"bounds\":[9,31,211,166],\"viewport\":[9,8.5,211,211],\"anchor\":[120,122.5,0.857243]},\"hexagon\":{\"path\":\"M114 5 C114 5 207 58 207 58 C214.333333 62 218 68.666667 218 78 C218 78 218 153 218 153 C218 162.333333 214.333333 169 207 173 C207 173 128 218 128 218 C118.666667 223.333333 109.333333 223.333333 100 218 C100 218 21 173 21 173 C13.666667 169 10 162.333333 10 153 C10 153 10 78 10 78 C10 68.666667 13.666667 62 21 58 C21 58 100 12 100 12 C109.333333 7.333333 114 5 114 5 Z\",\"bounds\":[10,5,208,217],\"viewport\":[5.5,5,217,217],\"anchor\":[120,122.5,0.903046]},\"cloud\":{\"path\":\"M55 188 C21 188 6 169 12 142 C-1 113 20 86 51 84 C61 48 96 35 124 55 C151 28 195 46 195 82 C226 91 235 128 213 149 C214 174 193 190 165 188 Z\",\"bounds\":[8.084666,42,217.061825,146.168243],\"viewport\":[8.084666,6.553209,217.061825,217.061825],\"anchor\":[114.2705,125,0.723114]},\"droplet\":{\"path\":\"M114 5 C137 42 202 103 202 151 C202 196 165 222 114 222 C63 222 26 196 26 151 C26 103 91 42 114 5 Z\",\"bounds\":[26,5,176,217],\"viewport\":[5.5,5,217,217],\"anchor\":[114.2705,140,0.799557]},\"ellipse\":{\"path\":\"M222.2705 114.2705 C222.2705 162.87156 173.91726 202.2705 114.2705 202.2705 C54.62374 202.2705 6.2705 162.87156 6.2705 114.2705 C6.2705 65.66944 54.62374 26.2705 114.2705 26.2705 C173.91726 26.2705 222.2705 65.66944 222.2705 114.2705 Z\",\"bounds\":[6.2705,26.2705,216,176],\"viewport\":[6.2705,6.2705,216,216],\"anchor\":[120,122.5,0.849079]}},\"bodies\":{\"cursor\":{\"path\":\"M68.1612 9.8302 C68.831234 10.393712 69.501706 10.956705 70.172633 11.519154 C71.473231 12.612873 72.76878 13.712192 74.06094 14.815863 C76.21486 16.652222 78.406422 18.440939 80.600998 20.228405 C83.254447 22.393239 85.896206 24.572195 88.538851 26.750193 C90.735631 28.560646 92.933229 30.37007 95.133429 32.176365 C99.342117 35.633384 103.532995 39.10744 107.680527 42.637645 C109.992566 44.600401 112.351114 46.496137 114.728083 48.37919 C116.894556 50.12803 119.009216 51.935729 121.128942 53.740692 C123.047682 55.370493 124.985481 56.967974 126.959082 58.531476 C129.61943 60.639025 132.205397 62.825128 134.789056 65.025134 C136.707796 66.654935 138.645595 68.252416 140.619196 69.815918 C142.936319 71.651561 145.198846 73.542032 147.449253 75.458139 C150.11596 77.727456 152.814417 79.944432 155.557626 82.121157 C161.253424 86.684046 166.859244 91.359265 172.416574 96.089395 C174.728943 98.052453 177.087826 99.948479 179.465145 101.83181 C181.631618 103.58065 183.746278 105.388349 185.866004 107.193312 C187.784744 108.823113 189.722543 110.420594 191.696144 111.984096 C208.585019 125.429073 208.585019 125.429073 209.674343 134.041422 C210.226056 141.247584 209.259036 147.105107 204.76234 152.964438 C200.997198 157.019206 196.301874 160.965349 190.536607 161.358328 C190.12914 161.360617 189.721672 161.362907 189.301858 161.365266 C188.830866 161.369363 188.359874 161.37346 187.874609 161.377681 C187.107301 161.380009 187.107301 161.380009 186.324492 161.382385 C185.78139 161.386356 185.238289 161.390328 184.67873 161.39442 C183.499146 161.402761 182.319553 161.409826 181.139955 161.41577 C179.26633 161.425543 177.392774 161.439348 175.519183 161.454313 C170.191725 161.496252 164.864237 161.531864 159.536702 161.562474 C156.276035 161.581492 153.015446 161.606046 149.754843 161.63386 C148.518472 161.6433 147.282083 161.650652 146.045687 161.65578 C130.20765 161.722366 116.122166 163.77051 104.110929 175.187933 C101.273668 178.121188 98.933382 181.49907 96.535284 184.790091 C94.662461 187.338038 92.727917 189.838936 90.804324 192.348625 C87.653746 196.478727 84.525937 200.625264 81.412995 204.783783 C80.679154 205.76131 79.945264 206.738801 79.211323 207.716254 C77.794563 209.603742 76.386941 211.497599 74.984297 213.395594 C69.969699 220.137131 65.038901 226.744542 56.28284 228.392024 C48.307097 228.902538 41.854814 228.332827 35.49571 222.995722 C30.438415 218.155733 27.895411 212.353431 27.550951 205.403539 C27.516173 204.72367 27.481395 204.043802 27.445563 203.343331 C27.409792 202.59961 27.374022 201.855889 27.337167 201.089631 C27.297125 200.290022 27.256889 199.490422 27.216475 198.690832 C27.106207 196.497924 26.998722 194.304888 26.891687 192.111821 C26.776145 189.754577 26.657993 187.397464 26.540178 185.040333 C26.257518 179.374261 25.978905 173.707992 25.700605 168.041705 C25.569689 165.378314 25.438309 162.714946 25.306921 160.051579 C25.267717 159.256766 25.267717 159.256766 25.227721 158.445896 C25.174698 157.370935 25.121674 156.295974 25.068649 155.221013 C24.934589 152.503119 24.800566 149.785224 24.666585 147.067326 C24.639839 146.524792 24.613094 145.982258 24.585539 145.423284 C24.421628 142.097243 24.258108 138.771183 24.094845 135.44511 C23.405243 121.398569 22.698924 107.352996 21.97623 93.308121 C21.647065 86.90534 21.32378 80.50226 21.001302 74.09914 C20.742868 68.972682 20.479546 63.846522 20.210069 58.720633 C20.026397 55.217973 19.848861 51.715035 19.676035 48.211823 C19.576841 46.205016 19.474106 44.198564 19.36572 42.192221 C18.094317 18.580052 18.094317 18.580052 25.380544 8.865083 C37.931636 -4.997317 55.481838 -1.008206 68.1612 9.8302 Z\",\"bounds\":[18.726874,-0.006974,191.087499,228.548177],\"viewport\":[-0.003465,-0.006974,228.548177,228.548177],\"anchor\":[85.54,106.35,0.602064]},\"blob\":{\"path\":\"M224.983261 131.323825 C224.292417 141.255635 222.108097 150.893986 218.430311 160.23888 C214.752513 169.583774 209.758683 178.157057 203.44881 185.958716 C197.138937 193.760376 189.908636 200.513829 181.757895 206.219074 C173.607154 211.924319 164.930375 216.53186 155.727535 220.041676 C146.524706 223.551492 137.060895 225.983984 127.33609 227.339175 C117.611297 228.694354 107.829598 228.906726 97.990993 227.976301 C88.152377 227.045865 78.556952 224.841324 69.204705 221.362678 C59.852458 217.884033 51.183259 213.113434 43.197107 207.050904 C35.210955 200.988374 28.337451 193.876956 22.576572 185.71665 C16.815703 177.556332 12.373567 168.799125 9.250187 159.445017 C6.126807 150.090909 4.240551 140.582561 3.59142 130.919983 C2.942288 121.257394 3.319669 111.695919 4.72355 102.235569 C6.127431 92.775219 8.450855 83.519274 11.693833 74.467736 C14.936812 65.416197 19.171671 56.727981 24.39841 48.403085 C29.625161 40.078178 35.931494 32.489174 43.317409 25.636072 C50.703335 18.782969 59.023589 13.174878 68.278206 8.81182 C77.532823 4.448762 87.258252 1.704589 97.454516 0.579289 C107.650768 -0.54601 117.71241 -0.04363 127.639443 2.08644 C137.566475 4.21651 146.900283 7.63901 155.640866 12.353941 C164.38145 17.068871 172.362404 22.648493 179.583742 29.092806 C186.805067 35.537108 193.27785 42.5778 199.002079 50.21487 C204.726307 57.851941 209.647459 66.009331 213.765546 74.68704 C217.883632 83.364761 220.955485 92.490691 222.981106 102.064852 C225.006715 111.639014 225.674104 121.392005 224.983261 131.323825 Z\",\"bounds\":[3.283553,-0.004194,221.963248,228.548633],\"viewport\":[-0.00914,-0.004194,228.548633,228.548633],\"anchor\":[111.22,116.58,0.791]},\"circle\":{\"path\":\"M228.541 114.2705 C228.541 177.380349 177.380349 228.541 114.2705 228.541 C51.160651 228.541 0 177.380349 0 114.2705 C0 51.160651 51.160651 0 114.2705 0 C177.380349 0 228.541 51.160651 228.541 114.2705 Z\",\"bounds\":[0,0,228.541,228.541],\"viewport\":[0,0,228.541,228.541],\"anchor\":[113.82,110.27,0.791]},\"squircle\":{\"path\":\"M57.13525 0 C95.225413 0 133.315587 0 171.40575 0 C202.96068 0 228.541 25.58032 228.541 57.13525 C228.541 95.225413 228.541 133.315587 228.541 171.40575 C228.541 202.96068 202.96068 228.541 171.40575 228.541 C133.315587 228.541 95.225413 228.541 57.13525 228.541 C25.58032 228.541 0 202.96068 0 171.40575 C0 133.315587 0 95.225413 0 57.13525 C0 25.58032 25.58032 0 57.13525 0 Z\",\"bounds\":[0,0,228.541,228.541],\"viewport\":[0,0,228.541,228.541],\"anchor\":[111.78,111.79,0.791]},\"capsule\":{\"path\":\"M114.2705 0 C161.602895 0 199.973375 38.37048 199.973375 85.702875 C199.973375 104.747962 199.973375 123.793038 199.973375 142.838125 C199.973375 190.17052 161.602895 228.541 114.2705 228.541 C66.938105 228.541 28.567625 190.17052 28.567625 142.838125 C28.567625 123.793038 28.567625 104.747962 28.567625 85.702875 C28.567625 38.37048 66.938105 0 114.2705 0 Z\",\"bounds\":[28.567625,0,171.40575,228.541],\"viewport\":[0,0,228.541,228.541],\"anchor\":[113.82,131.68,0.791]},\"drop\":{\"path\":\"M114.2705 0.000038 C185.942819 88.616781 206.158088 118.155696 206.158088 136.653374 C206.158088 187.401487 165.018613 228.540962 114.2705 228.540962 C63.522387 228.540962 22.382912 187.401487 22.382912 136.653374 C22.382912 118.155696 42.598181 88.616781 114.2705 0.000038 Z\",\"bounds\":[22.382912,0.000038,183.775176,228.540924],\"viewport\":[0.000038,0.000038,228.540924,228.540924],\"anchor\":[112.47,138.8,0.791]},\"shield\":{\"path\":\"M60.220991 24.322358 C96.253997 -8.107347 132.287003 -8.107347 168.320009 24.322358 C182.412922 72.57709 196.505823 120.831809 210.598736 169.08654 C226.453259 208.722847 214.562367 228.541 174.92606 228.541 C134.489024 228.541 94.051976 228.541 53.61494 228.541 C13.978633 228.541 2.087741 208.722847 17.942264 169.08654 C32.035177 120.831809 46.128078 72.57709 60.220991 24.322358 Z\",\"bounds\":[11.147468,0.000079,206.246063,228.540921],\"viewport\":[0.000039,0.000079,228.540921,228.540921],\"anchor\":[112.38,170.61,0.663994]},\"hexagon\":{\"path\":\"M108.24241 1.740183 C112.261137 -0.58003 116.279863 -0.58003 120.29859 1.740183 C149.769246 18.755072 179.239913 35.769974 208.710568 52.784863 C212.729295 55.105076 214.738658 58.585395 214.738658 63.22582 C214.738658 97.255611 214.738658 131.285389 214.738658 165.31518 C214.738658 169.955605 212.729295 173.435924 208.710568 175.756137 C179.239913 192.771026 149.769246 209.785928 120.29859 226.800817 C116.279863 229.12103 112.261137 229.12103 108.24241 226.800817 C78.771754 209.785928 49.301087 192.771026 19.830432 175.756137 C15.811705 173.435924 13.802342 169.955605 13.802342 165.31518 C13.802342 131.285389 13.802342 97.255611 13.802342 63.22582 C13.802342 58.585395 15.811705 55.105076 19.830432 52.784863 C49.301087 35.769974 78.771754 18.755072 108.24241 1.740183 Z\",\"bounds\":[13.802342,0.000023,200.936316,228.540954],\"viewport\":[0.000023,0.000023,228.540954,228.540954],\"anchor\":[112.26,110.7,0.791]},\"diamond\":{\"path\":\"M107.202223 3.534153 C111.914408 -1.178032 116.626592 -1.178032 121.338777 3.534153 C155.894804 38.09018 190.45082 72.646196 225.006847 107.202223 C229.719032 111.914408 229.719032 116.626592 225.006847 121.338777 C190.45082 155.894804 155.894804 190.45082 121.338777 225.006847 C116.626592 229.719032 111.914408 229.719032 107.202223 225.006847 C72.646196 190.45082 38.09018 155.894804 3.534153 121.338777 C-1.178032 116.626592 -1.178032 111.914408 3.534153 107.202223 C38.09018 72.646196 72.646196 38.09018 107.202223 3.534153 Z\",\"bounds\":[0.000014,0.000014,228.540972,228.540972],\"viewport\":[0.000014,0.000014,228.540972,228.540972],\"anchor\":[112.53,109.95,0.784132]},\"star\":{\"path\":\"M114.2705 5.592764 C127.21806 27.822355 140.16562 50.051946 153.113192 72.281524 C178.255798 77.726075 203.398404 83.170613 228.541023 88.615152 C211.400445 107.798347 194.259868 126.98153 177.119291 146.164714 C179.710718 171.75921 182.302145 197.353707 184.89356 222.948216 C161.352544 212.574478 137.811516 202.200751 114.2705 191.827025 C90.729484 202.200751 67.188456 212.574478 43.64744 222.948216 C46.238855 197.353707 48.830282 171.75921 51.421709 146.164714 C34.281132 126.98153 17.140555 107.798347 -0.000023 88.615152 C25.142596 83.170613 50.285202 77.726075 75.427808 72.281524 C88.37538 50.051946 101.32294 27.822355 114.2705 5.592764 Z\",\"bounds\":[-0.000023,5.592764,228.541046,217.355452],\"viewport\":[-0.000023,-0.000033,228.541046,228.541046],\"anchor\":[113.82,125.43,0.629299]}},\"expressions\":[[[[130.36,45.98],[132.71,46.19],[134.98,46.81],[137.11,47.83],[138.97,49.28],[140.47,51.09],[141.68,53.12],[142.73,55.23],[143.76,57.36],[144.78,59.49],[145.79,61.62],[146.79,63.76],[147.76,65.91],[148.71,68.07],[149.63,70.25],[150.52,72.43],[151.37,74.63],[151.99,76.91],[152.1,79.26],[151.64,81.57],[150.59,83.68],[149.04,85.45],[147.1,86.78],[144.9,87.62],[142.56,87.93],[140.22,87.71],[137.98,86.99],[135.93,85.82],[134.17,84.24],[132.78,82.34],[131.69,80.25],[130.77,78.08],[129.87,75.89],[128.94,73.72],[128,71.56],[127.03,69.4],[126.05,67.26],[125.05,65.12],[124.03,62.99],[122.93,60.9],[121.87,58.79],[121.03,56.59],[120.72,54.26],[121.1,51.93],[122.15,49.83],[123.75,48.1],[125.76,46.89],[128.01,46.19]],[[176.61,37.08],[178.72,37.59],[180.7,38.48],[182.52,39.65],[184.2,41.03],[185.71,42.59],[187.03,44.31],[188.2,46.14],[189.26,48.03],[190.27,49.96],[191.26,51.89],[192.23,53.84],[193.16,55.8],[194.05,57.78],[194.92,59.77],[195.74,61.78],[196.53,63.8],[197.27,65.84],[197.97,67.9],[198.47,70.01],[198.63,72.18],[198.4,74.33],[197.58,76.33],[195.95,77.72],[193.83,78.08],[191.71,77.65],[189.76,76.69],[188.03,75.38],[186.53,73.82],[185.28,72.05],[184.25,70.13],[183.4,68.14],[182.63,66.11],[181.87,64.07],[181.07,62.05],[180.25,60.04],[179.39,58.05],[178.49,56.07],[177.57,54.1],[176.61,52.15],[175.62,50.22],[174.59,48.31],[173.53,46.41],[172.54,44.48],[171.86,42.42],[171.76,40.26],[172.62,38.3],[174.45,37.19]]],[[[86.14,124.79],[89.16,124.92],[92.06,125.76],[94.68,127.27],[96.86,129.36],[98.48,131.92],[99.51,134.76],[100.12,137.73],[100.56,140.72],[101.01,143.72],[101.52,146.71],[102.06,149.69],[102.62,152.67],[103.2,155.64],[103.81,158.61],[104.44,161.57],[105.11,164.52],[105.81,167.47],[106.49,170.42],[106.72,173.44],[106.01,176.37],[104.37,178.9],[102.03,180.81],[99.26,181.99],[96.27,182.46],[93.25,182.25],[90.34,181.43],[87.65,180.04],[85.32,178.11],[83.51,175.7],[82.37,172.9],[81.66,169.96],[80.98,167],[80.32,164.05],[79.69,161.08],[79.08,158.12],[78.5,155.14],[77.94,152.16],[77.4,149.18],[76.89,146.2],[76.4,143.21],[75.93,140.21],[75.56,137.21],[75.7,134.19],[76.6,131.3],[78.22,128.76],[80.47,126.74],[83.18,125.4]],[[147.23,112.87],[150.24,113.13],[153.07,114.19],[155.53,115.94],[157.46,118.26],[158.73,121.01],[159.53,123.93],[160.21,126.88],[160.88,129.84],[161.52,132.8],[162.15,135.76],[162.74,138.73],[163.32,141.71],[163.87,144.69],[164.39,147.67],[164.9,150.66],[165.39,153.65],[165.8,156.65],[165.76,159.67],[164.98,162.59],[163.56,165.26],[161.61,167.58],[159.23,169.45],[156.52,170.77],[153.57,171.46],[150.55,171.4],[147.67,170.52],[145.19,168.79],[143.45,166.33],[142.57,163.44],[142.08,160.45],[141.61,157.46],[141.11,154.47],[140.59,151.48],[140.04,148.5],[139.47,145.53],[138.87,142.56],[138.25,139.59],[137.6,136.63],[136.94,133.68],[136.25,130.72],[135.59,127.77],[135.47,124.75],[136.07,121.78],[137.34,119.04],[139.19,116.65],[141.53,114.74],[144.26,113.44]]],[[[104.84,104.08],[109.39,104.89],[113.63,106.73],[117.32,109.5],[120.25,113.08],[122.22,117.25],[123.15,121.77],[122.92,126.39],[121.86,130.89],[120.61,135.35],[119.37,139.81],[118.15,144.27],[116.94,148.74],[115.74,153.21],[114.56,157.69],[113.39,162.17],[112.24,166.65],[111.13,171.15],[110.04,175.65],[108.89,180.13],[106.98,184.33],[103.8,187.67],[99.75,189.87],[95.25,190.93],[90.63,190.93],[86.11,189.97],[81.86,188.16],[78.05,185.54],[74.89,182.18],[72.62,178.16],[71.54,173.67],[71.94,169.08],[73.01,164.57],[74.13,160.08],[75.26,155.59],[76.42,151.11],[77.59,146.63],[78.77,142.15],[79.97,137.68],[81.18,133.22],[82.41,128.75],[83.65,124.29],[84.87,119.83],[86.33,115.43],[88.67,111.46],[91.9,108.15],[95.83,105.72],[100.23,104.35]],[[174.26,115.55],[178.59,116.54],[182.37,118.86],[185.31,122.2],[187.23,126.21],[188.12,130.57],[188.06,135.02],[187.52,139.44],[186.86,143.85],[186.11,148.25],[185.25,152.62],[184.3,156.98],[183.24,161.31],[182.07,165.61],[180.79,169.88],[179.39,174.12],[177.89,178.31],[176.27,182.47],[174.47,186.55],[172.17,190.35],[169.21,193.68],[165.73,196.46],[161.84,198.64],[157.66,200.16],[153.27,200.91],[148.83,200.69],[144.65,199.19],[141.47,196.14],[140.18,191.91],[140.82,187.53],[142.46,183.38],[144.16,179.26],[145.73,175.09],[147.18,170.87],[148.51,166.62],[149.73,162.33],[150.84,158.01],[151.84,153.67],[152.74,149.3],[153.54,144.91],[154.24,140.51],[154.85,136.1],[155.58,131.7],[156.93,127.46],[159.15,123.6],[162.12,120.29],[165.73,117.68],[169.84,116]]],[[[44.72,103.35],[47.95,103.93],[51.04,105.05],[53.93,106.62],[56.58,108.57],[58.97,110.83],[61.09,113.35],[62.93,116.07],[64.5,118.97],[65.79,121.99],[66.8,125.13],[67.52,128.34],[67.94,131.6],[68.08,134.89],[67.9,138.17],[67.4,141.42],[66.56,144.6],[65.33,147.66],[63.71,150.52],[61.69,153.11],[59.3,155.36],[56.54,157.16],[53.51,158.42],[50.29,159.07],[47,159.09],[43.76,158.5],[40.67,157.39],[37.78,155.82],[35.13,153.87],[32.75,151.6],[30.63,149.09],[28.78,146.36],[27.21,143.47],[25.92,140.44],[24.92,137.31],[24.2,134.1],[23.77,130.84],[23.64,127.55],[23.81,124.27],[24.31,121.01],[25.16,117.84],[26.38,114.78],[28,111.92],[30.02,109.33],[32.42,107.08],[35.17,105.28],[38.21,104.02],[41.43,103.37]],[[114.62,83.64],[118.31,83.88],[121.94,84.6],[125.44,85.77],[128.77,87.38],[131.86,89.4],[134.67,91.81],[137.13,94.56],[139.2,97.62],[140.85,100.93],[142.05,104.42],[142.79,108.05],[143.05,111.73],[142.83,115.42],[142.13,119.05],[140.95,122.55],[139.34,125.88],[137.3,128.96],[134.88,131.75],[132.11,134.2],[129.05,136.27],[125.75,137.93],[122.25,139.13],[118.63,139.86],[114.94,140.1],[111.25,139.86],[107.63,139.14],[104.12,137.97],[100.8,136.36],[97.7,134.34],[94.9,131.93],[92.44,129.18],[90.36,126.12],[88.72,122.81],[87.51,119.31],[86.78,115.69],[86.52,112.01],[86.74,108.32],[87.44,104.69],[88.61,101.18],[90.23,97.86],[92.27,94.78],[94.69,91.99],[97.45,89.54],[100.51,87.47],[103.82,85.81],[107.31,84.61],[110.94,83.88]]],[[[90.44,99.25],[93.11,99.26],[95.74,99.79],[98.37,100.3],[101,100.82],[103.64,101.33],[106.27,101.85],[108.9,102.37],[111.53,102.89],[114.16,103.41],[116.79,103.94],[119.42,104.47],[122.06,105],[124.69,105.53],[127.32,106.06],[129.94,106.6],[132.57,107.14],[135.2,107.68],[137.65,108.73],[139.5,110.65],[140.44,113.14],[140.36,115.81],[139.35,118.28],[137.48,120.18],[135,121.14],[132.32,121.11],[129.7,120.56],[127.08,120],[124.45,119.46],[121.82,118.93],[119.19,118.4],[116.56,117.87],[113.93,117.35],[111.29,116.83],[108.66,116.32],[106.02,115.82],[103.39,115.31],[100.76,114.79],[98.12,114.28],[95.49,113.75],[92.86,113.22],[90.23,112.68],[87.77,111.66],[85.93,109.74],[85.01,107.24],[85.06,104.57],[86.07,102.1],[87.96,100.22]],[[156.6,112.56],[158.91,112.66],[161.18,113.15],[163.45,113.64],[165.72,114.13],[167.99,114.62],[170.26,115.12],[172.53,115.62],[174.8,116.12],[177.07,116.62],[179.34,117.13],[181.6,117.64],[183.87,118.15],[186.14,118.67],[188.4,119.18],[190.67,119.7],[192.94,120.2],[195.12,120.96],[196.7,122.63],[197.45,124.82],[197.53,127.14],[197.07,129.41],[196.08,131.51],[194.49,133.18],[192.33,133.97],[190.04,133.68],[187.79,133.09],[185.52,132.57],[183.26,132.05],[180.99,131.54],[178.72,131.03],[176.45,130.53],[174.18,130.03],[171.91,129.54],[169.64,129.05],[167.37,128.56],[165.1,128.07],[162.83,127.58],[160.56,127.08],[158.29,126.57],[156.02,126.05],[153.9,125.14],[152.26,123.51],[151.32,121.4],[151.08,119.1],[151.53,116.82],[152.65,114.8],[154.41,113.31]]],[[[79.94,130.44],[83.08,130.57],[86.11,131.41],[88.89,132.89],[91.27,134.94],[93.15,137.46],[94.39,140.35],[95.11,143.42],[95.65,146.52],[96.2,149.62],[96.78,152.72],[97.39,155.81],[98.04,158.89],[98.72,161.97],[99.43,165.04],[100.18,168.1],[100.97,171.15],[101.81,174.18],[102.64,177.22],[103.01,180.34],[102.35,183.4],[100.66,186.04],[98.19,187.98],[95.28,189.16],[92.17,189.6],[89.03,189.37],[85.99,188.56],[83.16,187.2],[80.63,185.33],[78.55,182.97],[77.05,180.21],[76.1,177.21],[75.28,174.17],[74.5,171.11],[73.74,168.06],[73.02,164.99],[72.33,161.92],[71.68,158.83],[71.06,155.75],[70.47,152.65],[69.91,149.55],[69.37,146.45],[68.97,143.32],[69.12,140.18],[70.04,137.18],[71.7,134.51],[74.03,132.41],[76.86,131.04]],[[168.95,136.28],[171.31,136.97],[172.99,138.76],[173.66,141.13],[173.36,143.58],[172.24,145.79],[170.45,147.49],[168.22,148.58],[165.89,149.43],[163.57,150.31],[161.24,151.18],[158.9,152.02],[156.56,152.85],[154.21,153.65],[151.85,154.44],[149.48,155.2],[147.11,155.94],[144.73,156.65],[142.34,157.34],[139.95,158.01],[137.55,158.66],[135.14,159.27],[132.73,159.86],[130.31,160.43],[127.84,160.54],[125.53,159.69],[123.77,157.96],[122.89,155.66],[123.09,153.21],[124.36,151.09],[126.34,149.61],[128.69,148.83],[131.1,148.24],[133.51,147.62],[135.91,146.98],[138.31,146.32],[140.7,145.65],[143.08,144.95],[145.46,144.23],[147.83,143.49],[150.2,142.73],[152.56,141.95],[154.91,141.15],[157.25,140.32],[159.59,139.48],[161.92,138.61],[164.24,137.72],[166.54,136.78]]],[[[119.79,105.35],[121.94,105.42],[124.03,105.87],[126,106.72],[127.77,107.93],[129.27,109.47],[130.45,111.26],[131.29,113.23],[131.73,115.33],[131.79,117.47],[131.53,119.6],[131.11,121.71],[130.66,123.81],[130.27,125.92],[129.88,128.03],[129.49,130.14],[129.07,132.25],[128.62,134.35],[127.96,136.39],[126.96,138.29],[125.62,139.96],[123.99,141.36],[122.13,142.43],[120.11,143.15],[118,143.5],[115.85,143.45],[113.75,143],[111.79,142.15],[110.03,140.93],[108.54,139.38],[107.36,137.59],[106.53,135.61],[106.1,133.51],[106.07,131.37],[106.35,129.24],[106.77,127.14],[107.22,125.04],[107.64,122.93],[108.05,120.82],[108.45,118.71],[108.84,116.6],[109.25,114.49],[109.86,112.44],[110.83,110.52],[112.16,108.84],[113.78,107.44],[115.65,106.38],[117.67,105.68]],[[174.73,114.1],[176.71,114.59],[178.5,115.55],[180.04,116.88],[181.27,118.5],[182.17,120.33],[182.71,122.29],[182.9,124.32],[182.82,126.36],[182.56,128.38],[182.23,130.39],[181.89,132.4],[181.53,134.41],[181.16,136.41],[180.75,138.41],[180.3,140.4],[179.82,142.38],[179.18,144.31],[178.28,146.15],[177.14,147.83],[175.74,149.31],[174.11,150.53],[172.29,151.44],[170.32,151.97],[168.29,152.07],[166.29,151.69],[164.45,150.83],[162.87,149.54],[161.66,147.91],[160.83,146.06],[160.38,144.07],[160.29,142.04],[160.53,140.01],[160.98,138.02],[161.43,136.03],[161.84,134.04],[162.24,132.04],[162.62,130.03],[162.93,128.02],[163.24,126],[163.6,124],[164.11,122.03],[164.91,120.15],[165.99,118.43],[167.35,116.91],[168.94,115.64],[170.74,114.69],[172.7,114.15]]],[[[105.72,72.58],[108.82,72.78],[111.75,73.82],[114.27,75.64],[116.39,77.92],[118.42,80.29],[120.45,82.66],[122.47,85.03],[124.48,87.41],[126.49,89.8],[128.48,92.2],[130.47,94.6],[132.45,97.01],[134.43,99.42],[136.4,101.83],[138.37,104.25],[140.3,106.7],[141.85,109.39],[142.65,112.4],[142.63,115.51],[141.8,118.5],[140.21,121.17],[137.95,123.31],[135.17,124.7],[132.11,125.26],[129.02,124.98],[126.12,123.86],[123.67,121.94],[121.61,119.6],[119.66,117.17],[117.69,114.75],[115.73,112.33],[113.75,109.92],[111.77,107.52],[109.77,105.12],[107.77,102.73],[105.76,100.34],[103.75,97.96],[101.72,95.59],[99.68,93.23],[97.63,90.89],[95.91,88.3],[94.95,85.34],[94.92,82.24],[95.84,79.27],[97.56,76.68],[99.9,74.63],[102.67,73.22]],[[176.73,63.75],[179.52,64.43],[182.02,65.85],[184.15,67.78],[185.85,70.1],[187.08,72.7],[187.76,75.5],[187.76,78.37],[187.23,81.2],[186.58,84.01],[185.89,86.8],[185.16,89.59],[184.39,92.36],[183.59,95.13],[182.76,97.89],[181.88,100.64],[180.98,103.37],[180.02,106.09],[179.03,108.79],[177.99,111.48],[176.9,114.15],[175.5,116.66],[173.51,118.72],[171,120.11],[168.18,120.66],[165.34,120.29],[162.75,119.04],[160.62,117.12],[159.02,114.73],[158,112.04],[157.63,109.19],[157.98,106.34],[158.83,103.59],[159.86,100.9],[160.87,98.2],[161.85,95.49],[162.79,92.76],[163.7,90.03],[164.57,87.29],[165.41,84.53],[166.21,81.76],[166.98,78.99],[167.7,76.2],[168.38,73.4],[169,70.58],[169.79,67.82],[171.41,65.46],[173.88,64.03]]],[[[64.12,83.43],[66.69,84.08],[68.9,85.53],[70.57,87.6],[71.56,90.05],[71.86,92.69],[71.53,95.32],[70.55,97.78],[69.06,99.99],[67.36,102.03],[65.64,104.06],[63.95,106.11],[62.28,108.18],[60.63,110.27],[59,112.38],[57.41,114.5],[55.84,116.65],[54.29,118.82],[52.78,121],[51.31,123.22],[49.86,125.45],[48.42,127.69],[46.67,129.68],[44.36,130.96],[41.73,131.22],[39.22,130.38],[37.16,128.72],[35.64,126.55],[34.65,124.08],[34.2,121.46],[34.29,118.81],[34.94,116.24],[36.12,113.86],[37.54,111.61],[39.04,109.41],[40.54,107.21],[42.06,105.03],[43.61,102.87],[45.18,100.73],[46.79,98.6],[48.41,96.5],[50.07,94.42],[51.74,92.35],[53.45,90.31],[55.17,88.28],[56.94,86.3],[59.04,84.67],[61.48,83.65]],[[104.23,93.09],[106.97,93.77],[109.4,95.24],[111.32,97.31],[112.59,99.85],[113.4,102.57],[114.13,105.32],[114.87,108.06],[115.62,110.8],[116.37,113.54],[117.14,116.28],[117.9,119.02],[118.67,121.75],[119.45,124.49],[120.23,127.22],[121.03,129.95],[121.83,132.68],[122.6,135.41],[122.98,138.22],[122.57,141.02],[121.34,143.57],[119.44,145.67],[117.05,147.19],[114.34,148.04],[111.51,148.14],[108.77,147.45],[106.33,146.01],[104.38,143.96],[103.07,141.44],[102.21,138.73],[101.43,136],[100.65,133.27],[99.87,130.53],[99.09,127.8],[98.32,125.06],[97.55,122.33],[96.79,119.59],[96.04,116.85],[95.28,114.11],[94.53,111.37],[93.79,108.62],[93.05,105.88],[92.73,103.07],[93.18,100.27],[94.42,97.72],[96.32,95.62],[98.7,94.08],[101.4,93.21]]],[[[108.14,135.9],[111.13,136.06],[114.08,136.56],[116.95,137.39],[119.71,138.55],[122.31,140.03],[124.71,141.81],[126.86,143.89],[128.73,146.23],[130.27,148.8],[131.44,151.55],[132.22,154.44],[132.56,157.41],[132.47,160.4],[131.93,163.34],[130.96,166.17],[129.6,168.83],[127.87,171.28],[125.83,173.46],[123.51,175.35],[120.96,176.91],[118.23,178.13],[115.36,179],[112.42,179.52],[109.43,179.7],[106.44,179.54],[103.49,179.04],[100.62,178.21],[97.86,177.06],[95.26,175.58],[92.86,173.79],[90.71,171.71],[88.84,169.37],[87.3,166.81],[86.13,164.06],[85.35,161.17],[85.01,158.2],[85.11,155.21],[85.64,152.26],[86.61,149.43],[87.97,146.77],[89.7,144.33],[91.74,142.14],[94.06,140.25],[96.61,138.69],[99.34,137.47],[102.21,136.6],[105.15,136.08]],[[175.67,128.81],[177.16,128.85],[178.62,129.14],[180.01,129.67],[181.28,130.44],[182.41,131.42],[183.36,132.57],[184.12,133.85],[184.68,135.23],[185.05,136.68],[185.24,138.15],[185.27,139.64],[185.13,141.13],[184.85,142.59],[184.42,144.02],[183.85,145.4],[183.15,146.72],[182.33,147.96],[181.38,149.11],[180.32,150.16],[179.15,151.08],[177.88,151.87],[176.53,152.49],[175.1,152.91],[173.62,153.11],[172.13,153.07],[170.67,152.78],[169.28,152.24],[168.01,151.47],[166.88,150.49],[165.93,149.35],[165.18,148.06],[164.61,146.68],[164.24,145.24],[164.05,143.76],[164.02,142.27],[164.16,140.78],[164.44,139.32],[164.87,137.89],[165.44,136.51],[166.14,135.2],[166.96,133.95],[167.91,132.8],[168.97,131.75],[170.14,130.83],[171.4,130.04],[172.76,129.43],[174.19,129.01]]],[[[103.39,78.25],[106.56,78.38],[109.59,79.28],[112.29,80.94],[114.43,83.28],[115.86,86.1],[116.52,89.2],[116.32,92.37],[115.62,95.46],[114.86,98.55],[114.1,101.63],[113.36,104.72],[112.63,107.81],[111.91,110.91],[111.2,114.01],[110.51,117.1],[109.82,120.21],[109.16,123.31],[108.52,126.42],[107.84,129.53],[106.8,132.52],[105.04,135.16],[102.66,137.25],[99.81,138.63],[96.7,139.2],[93.54,138.96],[90.53,137.95],[87.87,136.24],[85.71,133.92],[84.21,131.13],[83.48,128.05],[83.5,124.88],[84,121.74],[84.7,118.64],[85.4,115.54],[86.08,112.44],[86.77,109.34],[87.48,106.24],[88.19,103.15],[88.92,100.05],[89.66,96.96],[90.41,93.88],[91.18,90.8],[91.95,87.71],[93.1,84.76],[94.95,82.19],[97.4,80.19],[100.28,78.86]],[[161.99,91.57],[165.07,92],[167.9,93.28],[170.32,95.23],[172.22,97.69],[173.49,100.53],[174.05,103.59],[173.93,106.7],[173.45,109.78],[172.9,112.85],[172.33,115.91],[171.71,118.97],[171.06,122.02],[170.38,125.06],[169.66,128.09],[168.91,131.12],[168.13,134.14],[167.33,137.15],[166.5,140.16],[165.58,143.14],[164.33,145.98],[162.5,148.5],[160.15,150.53],[157.38,151.95],[154.34,152.61],[151.24,152.43],[148.32,151.38],[145.83,149.52],[143.99,147.01],[142.95,144.08],[142.73,140.98],[143.25,137.91],[144.09,134.91],[144.94,131.91],[145.76,128.9],[146.54,125.89],[147.29,122.86],[148.01,119.83],[148.69,116.79],[149.34,113.74],[149.95,110.68],[150.54,107.62],[151.09,104.55],[151.6,101.47],[152.44,98.48],[154,95.79],[156.21,93.6],[158.94,92.12]]],[[[47.23,91.05],[51.61,92.47],[55.26,95.29],[57.96,99.03],[59.7,103.31],[60.56,107.85],[61.28,112.42],[62.11,116.97],[63.06,121.51],[64.11,126.01],[65.28,130.49],[66.56,134.94],[67.95,139.35],[69.44,143.73],[71.05,148.07],[72.77,152.37],[74.62,156.61],[76.52,160.83],[78.06,165.19],[78.52,169.78],[77.62,174.3],[75.2,178.22],[71.44,180.86],[66.96,181.91],[62.36,181.55],[57.99,180.06],[54.03,177.68],[50.59,174.58],[47.77,170.92],[45.62,166.83],[43.74,162.6],[41.96,158.33],[40.29,154.01],[38.72,149.66],[37.27,145.26],[35.93,140.83],[34.69,136.37],[33.56,131.88],[32.55,127.37],[31.65,122.83],[30.85,118.27],[30.2,113.69],[30.08,109.07],[30.85,104.51],[32.49,100.19],[35.01,96.32],[38.44,93.24],[42.64,91.35]],[[108.93,73.38],[113.76,73.6],[118.38,75.01],[122.49,77.56],[125.82,81.07],[128.1,85.34],[129.65,89.93],[131.04,94.58],[132.43,99.22],[133.82,103.87],[135.22,108.51],[136.6,113.16],[137.99,117.81],[139.36,122.46],[140.73,127.11],[142.13,131.76],[143.51,136.41],[144.82,141.08],[145.51,145.86],[144.91,150.66],[143.09,155.14],[140.17,158.99],[136.38,162.01],[132,164.05],[127.26,165.03],[122.42,164.86],[117.79,163.48],[113.67,160.95],[110.36,157.43],[108.17,153.11],[106.72,148.49],[105.36,143.83],[103.99,139.18],[102.62,134.53],[101.24,129.88],[99.87,125.23],[98.48,120.58],[97.09,115.93],[95.7,111.29],[94.29,106.64],[92.89,102],[91.49,97.36],[90.81,92.57],[91.38,87.77],[93.14,83.26],[96.02,79.37],[99.79,76.34],[104.18,74.32]]],[[[102.86,129.56],[106.39,129.96],[109.85,130.76],[113.21,131.94],[116.4,133.5],[119.39,135.42],[122.13,137.69],[124.56,140.28],[126.64,143.16],[128.33,146.29],[129.59,149.61],[130.37,153.08],[130.66,156.62],[130.43,160.16],[129.68,163.63],[128.42,166.96],[126.7,170.07],[124.54,172.89],[122.02,175.39],[119.18,177.52],[116.07,179.25],[112.76,180.54],[109.31,181.4],[105.78,181.82],[102.23,181.83],[98.7,181.42],[95.24,180.62],[91.88,179.44],[88.69,177.88],[85.7,175.96],[82.96,173.69],[80.53,171.1],[78.45,168.22],[76.76,165.1],[75.5,161.77],[74.72,158.31],[74.44,154.77],[74.67,151.22],[75.41,147.75],[76.67,144.42],[78.39,141.32],[80.55,138.49],[83.07,135.99],[85.91,133.86],[89.02,132.14],[92.33,130.84],[95.78,129.99],[99.31,129.56]],[[180.44,141.06],[183.61,141.1],[186.72,141.68],[189.66,142.86],[192.28,144.63],[194.43,146.96],[196,149.71],[197,152.72],[197.48,155.86],[197.51,159.03],[197.15,162.18],[196.43,165.27],[195.38,168.26],[194.07,171.15],[192.52,173.92],[190.74,176.55],[188.77,179.03],[186.6,181.35],[184.25,183.48],[181.74,185.41],[179.06,187.12],[176.23,188.56],[173.28,189.71],[170.21,190.52],[167.07,190.95],[163.9,190.91],[160.78,190.33],[157.84,189.15],[155.22,187.37],[153.08,185.04],[151.51,182.29],[150.51,179.28],[150.03,176.15],[150,172.98],[150.36,169.83],[151.07,166.74],[152.12,163.74],[153.43,160.85],[154.99,158.09],[156.76,155.46],[158.74,152.98],[160.91,150.66],[163.25,148.53],[165.77,146.59],[168.45,144.89],[171.27,143.45],[174.23,142.3],[177.29,141.48]]],[[[86.02,131.33],[88.42,131.69],[90.54,132.87],[92.12,134.71],[93.03,136.97],[93.17,139.39],[92.41,141.69],[90.78,143.48],[88.59,144.52],[86.19,144.97],[83.78,145.34],[81.37,145.72],[78.96,146.09],[76.54,146.45],[74.13,146.81],[71.72,147.16],[69.3,147.5],[66.88,147.84],[64.47,148.16],[62.05,148.47],[59.62,148.76],[57.2,149.03],[54.77,149.27],[52.34,149.49],[49.91,149.68],[47.53,149.28],[45.52,147.92],[44.04,145.99],[43.12,143.74],[42.85,141.32],[43.44,138.97],[45.04,137.17],[47.33,136.4],[49.76,136.2],[52.19,135.96],[54.62,135.7],[57.04,135.43],[59.46,135.15],[61.89,134.85],[64.31,134.54],[66.72,134.22],[69.14,133.89],[71.56,133.54],[73.97,133.19],[76.38,132.83],[78.79,132.45],[81.2,132.06],[83.61,131.67]],[[153.42,116.84],[155.92,117.69],[157.78,119.56],[158.72,122.03],[158.73,124.68],[157.84,127.18],[156.08,129.15],[153.71,130.33],[151.13,131],[148.55,131.65],[145.98,132.32],[143.4,132.98],[140.82,133.63],[138.23,134.27],[135.65,134.9],[133.06,135.53],[130.47,136.15],[127.88,136.76],[125.29,137.36],[122.69,137.94],[120.09,138.51],[117.49,139.06],[114.88,139.59],[112.27,140.1],[109.62,140.12],[107.17,139.14],[105.28,137.29],[104.18,134.88],[104.06,132.23],[105.03,129.78],[106.92,127.93],[109.35,126.87],[111.96,126.34],[114.57,125.8],[117.17,125.24],[119.77,124.67],[122.37,124.09],[124.96,123.5],[127.56,122.9],[130.15,122.29],[132.74,121.68],[135.32,121.05],[137.91,120.41],[140.49,119.76],[143.07,119.11],[145.65,118.44],[148.22,117.76],[150.78,117.03]]],[[[83.36,65.84],[86.61,66.42],[89.57,67.88],[92,70.12],[93.67,72.97],[94.46,76.17],[94.31,79.47],[93.61,82.71],[92.8,85.92],[92.02,89.14],[91.27,92.36],[90.56,95.6],[89.88,98.84],[89.23,102.09],[88.62,105.34],[88.03,108.61],[87.51,111.88],[87.01,115.15],[86.5,118.42],[85.65,121.62],[84.11,124.54],[81.9,126.99],[79.13,128.79],[75.98,129.8],[72.68,129.91],[69.47,129.13],[66.6,127.49],[64.24,125.18],[62.49,122.38],[61.42,119.25],[61.08,115.97],[61.36,112.67],[61.87,109.4],[62.45,106.13],[63.01,102.87],[63.61,99.61],[64.24,96.36],[64.9,93.11],[65.6,89.87],[66.33,86.64],[67.09,83.42],[67.89,80.2],[68.73,77],[69.89,73.9],[71.7,71.14],[74.1,68.86],[76.93,67.16],[80.07,66.12]],[[119.49,99.16],[121.99,99.28],[124.44,99.82],[126.9,100.34],[129.36,100.86],[131.81,101.38],[134.27,101.91],[136.72,102.44],[139.17,102.98],[141.62,103.52],[144.08,104.07],[146.52,104.62],[148.97,105.18],[151.42,105.74],[153.86,106.31],[156.31,106.89],[158.75,107.47],[161.2,108.02],[163.49,109.03],[165.16,110.87],[165.95,113.24],[165.87,115.74],[164.94,118.05],[163.17,119.8],[160.79,120.55],[158.31,120.29],[155.88,119.65],[153.44,119.06],[150.99,118.49],[148.55,117.92],[146.1,117.36],[143.65,116.81],[141.2,116.26],[138.75,115.73],[136.29,115.2],[133.84,114.67],[131.38,114.15],[128.93,113.62],[126.47,113.1],[124.02,112.57],[121.56,112.04],[119.11,111.5],[116.81,110.53],[115.08,108.73],[114.22,106.39],[114.29,103.9],[115.28,101.61],[117.12,99.93]]],[[[168.71,85.67],[170.73,86],[172.64,86.75],[174.37,87.85],[175.88,89.24],[177.11,90.88],[178.04,92.71],[178.71,94.65],[179.21,96.64],[179.64,98.65],[180.05,100.66],[180.45,102.67],[180.83,104.69],[181.18,106.71],[181.5,108.74],[181.77,110.78],[181.88,112.82],[181.71,114.87],[181.22,116.86],[180.41,118.74],[179.27,120.45],[177.83,121.91],[176.12,123.03],[174.2,123.74],[172.16,123.99],[170.13,123.75],[168.21,123.04],[166.49,121.93],[165.03,120.48],[163.88,118.79],[163.02,116.93],[162.49,114.95],[162.17,112.92],[161.85,110.89],[161.51,108.87],[161.14,106.84],[160.77,104.83],[160.37,102.81],[159.96,100.8],[159.52,98.79],[159.24,96.76],[159.3,94.71],[159.71,92.7],[160.48,90.8],[161.58,89.08],[163.01,87.61],[164.73,86.49],[166.67,85.83]],[[206.57,78.24],[208.3,78.8],[209.77,79.87],[210.99,81.22],[212.01,82.73],[212.85,84.34],[213.53,86.03],[214.08,87.77],[214.54,89.54],[214.95,91.31],[215.34,93.09],[215.7,94.88],[216.04,96.67],[216.36,98.46],[216.64,100.26],[216.89,102.07],[217.11,103.88],[217.25,105.7],[217.26,107.52],[217.1,109.33],[216.75,111.12],[216.16,112.84],[215.3,114.44],[214.04,115.75],[212.34,116.35],[210.58,115.96],[209.11,114.89],[207.97,113.48],[207.1,111.88],[206.44,110.18],[205.97,108.42],[205.62,106.63],[205.35,104.83],[205.11,103.02],[204.85,101.22],[204.55,99.42],[204.22,97.63],[203.87,95.84],[203.49,94.05],[203.09,92.28],[202.67,90.5],[202.32,88.71],[202.1,86.91],[202.1,85.08],[202.32,83.28],[202.77,81.51],[203.54,79.86],[204.82,78.59]]],[[[39.78,104.3],[42.64,105.01],[45.03,106.74],[46.73,109.15],[47.75,111.93],[48.35,114.83],[48.81,117.76],[49.31,120.68],[49.87,123.6],[50.48,126.5],[51.15,129.39],[51.86,132.27],[52.63,135.13],[53.44,137.98],[54.3,140.82],[55.19,143.65],[56.13,146.46],[57.1,149.26],[58.1,152.05],[58.86,154.92],[58.96,157.87],[58.18,160.72],[56.43,163.09],[53.84,164.48],[50.9,164.62],[48.08,163.75],[45.58,162.16],[43.51,160.05],[41.89,157.57],[40.67,154.87],[39.67,152.08],[38.73,149.26],[37.81,146.44],[36.94,143.61],[36.11,140.76],[35.34,137.9],[34.61,135.03],[33.92,132.14],[33.28,129.24],[32.7,126.34],[32.16,123.42],[31.67,120.5],[31.23,117.57],[31.14,114.61],[31.65,111.69],[32.74,108.94],[34.47,106.54],[36.89,104.86]],[[108.97,125.73],[111.9,126.2],[114.63,127.37],[117,129.16],[118.84,131.49],[119.99,134.23],[120.32,137.18],[119.85,140.11],[118.59,142.8],[116.78,145.16],[114.84,147.42],[112.89,149.67],[110.93,151.92],[108.97,154.16],[107.01,156.39],[105.03,158.62],[103.05,160.85],[101.07,163.06],[99.07,165.28],[97.09,167.5],[95.09,169.71],[93.05,171.88],[90.69,173.67],[87.89,174.66],[84.93,174.81],[82.02,174.22],[79.31,173],[76.92,171.24],[74.99,168.98],[73.7,166.3],[73.26,163.37],[73.74,160.45],[75.2,157.86],[77.17,155.63],[79.18,153.43],[81.18,151.23],[83.17,149.02],[85.16,146.8],[87.14,144.58],[89.11,142.35],[91.08,140.11],[93.04,137.87],[95,135.63],[96.95,133.38],[98.89,131.12],[100.87,128.89],[103.25,127.12],[106.02,126.04]]],[[[115.43,87.59],[118.19,88.24],[120.69,89.59],[122.69,91.59],[124.03,94.09],[124.63,96.87],[124.41,99.7],[123.7,102.45],[122.9,105.18],[122.12,107.92],[121.34,110.65],[120.57,113.39],[119.79,116.13],[119.02,118.87],[118.25,121.61],[117.48,124.35],[116.72,127.09],[115.97,129.83],[115.23,132.58],[114.45,135.32],[113.3,137.91],[111.49,140.09],[109.13,141.65],[106.41,142.48],[103.58,142.56],[100.82,141.91],[98.33,140.54],[96.33,138.53],[94.99,136.03],[94.38,133.26],[94.57,130.43],[95.25,127.67],[96.02,124.93],[96.79,122.19],[97.55,119.45],[98.31,116.7],[99.08,113.96],[99.85,111.22],[100.62,108.49],[101.4,105.75],[102.18,103.01],[102.95,100.27],[103.74,97.54],[104.51,94.8],[105.68,92.21],[107.5,90.04],[109.88,88.5],[112.59,87.67]],[[155.37,78.64],[158.04,79.15],[160.48,80.37],[162.53,82.16],[164.33,84.22],[166.1,86.3],[167.85,88.4],[169.58,90.51],[171.29,92.64],[172.98,94.78],[174.65,96.94],[176.3,99.12],[177.92,101.32],[179.51,103.54],[181.06,105.79],[182.57,108.07],[184.03,110.37],[185.2,112.83],[185.77,115.5],[185.73,118.23],[185.07,120.87],[183.8,123.28],[181.94,125.26],[179.57,126.6],[176.89,127.03],[174.24,126.43],[171.99,124.92],[170.26,122.8],[168.75,120.53],[167.22,118.27],[165.66,116.03],[164.07,113.81],[162.45,111.6],[160.82,109.41],[159.16,107.25],[157.47,105.1],[155.76,102.97],[154.03,100.85],[152.28,98.76],[150.51,96.68],[148.74,94.6],[147.29,92.29],[146.49,89.69],[146.36,86.97],[146.94,84.31],[148.23,81.91],[150.19,80.02],[152.66,78.89]]],[[[92.71,76.24],[95.76,76.59],[98.73,77.35],[101.56,78.53],[104.21,80.08],[106.63,81.96],[108.78,84.16],[110.61,86.62],[112.09,89.31],[113.19,92.17],[113.91,95.15],[114.24,98.2],[114.18,101.27],[113.73,104.31],[112.9,107.26],[111.7,110.09],[110.15,112.73],[108.28,115.17],[106.12,117.35],[103.71,119.24],[101.08,120.83],[98.27,122.07],[95.33,122.95],[92.3,123.44],[89.23,123.51],[86.18,123.17],[83.21,122.41],[80.38,121.23],[77.73,119.69],[75.31,117.8],[73.16,115.61],[71.33,113.14],[69.86,110.45],[68.75,107.59],[68.02,104.61],[67.7,101.56],[67.76,98.49],[68.22,95.46],[69.05,92.5],[70.25,89.68],[71.8,87.03],[73.67,84.59],[75.83,82.41],[78.24,80.52],[80.87,78.93],[83.67,77.69],[86.61,76.81],[89.64,76.32]],[[157.73,102.08],[159.31,102.13],[160.86,102.42],[162.35,102.95],[163.74,103.69],[165.01,104.62],[166.15,105.72],[167.13,106.95],[167.96,108.29],[168.63,109.72],[169.13,111.22],[169.45,112.76],[169.59,114.34],[169.55,115.91],[169.31,117.47],[168.88,118.99],[168.28,120.45],[167.52,121.83],[166.58,123.1],[165.48,124.23],[164.25,125.22],[162.89,126.02],[161.43,126.63],[159.91,127.02],[158.34,127.2],[156.76,127.14],[155.21,126.85],[153.73,126.33],[152.33,125.59],[151.06,124.65],[149.93,123.56],[148.94,122.33],[148.11,120.99],[147.44,119.56],[146.95,118.06],[146.62,116.51],[146.48,114.94],[146.52,113.37],[146.76,111.8],[147.18,110.28],[147.78,108.83],[148.56,107.45],[149.5,106.18],[150.59,105.05],[151.83,104.07],[153.18,103.26],[154.64,102.65],[156.17,102.26]]],[[[57.98,112.03],[61.01,112.26],[63.82,113.41],[66.22,115.27],[68.09,117.67],[69.36,120.44],[70.14,123.39],[70.64,126.39],[71.07,129.41],[71.58,132.42],[72.15,135.41],[72.76,138.4],[73.4,141.38],[74.09,144.35],[74.82,147.31],[75.59,150.26],[76.42,153.2],[77.3,156.12],[78.16,159.04],[78.68,162.04],[78.42,165.07],[77.28,167.88],[75.25,170.13],[72.54,171.49],[69.52,171.87],[66.51,171.44],[63.69,170.32],[61.16,168.61],[59.03,166.44],[57.38,163.89],[56.23,161.06],[55.34,158.15],[54.53,155.21],[53.73,152.27],[52.97,149.31],[52.25,146.35],[51.57,143.38],[50.93,140.4],[50.34,137.41],[49.78,134.41],[49.26,131.4],[48.78,128.39],[48.37,125.37],[48.37,122.33],[49.06,119.36],[50.44,116.65],[52.47,114.39],[55.04,112.78]],[[117.45,101.46],[120.57,101.84],[123.48,103.02],[125.99,104.91],[127.97,107.35],[129.25,110.23],[130.05,113.27],[130.76,116.34],[131.46,119.41],[132.15,122.49],[132.85,125.56],[133.55,128.63],[134.24,131.71],[134.93,134.78],[135.61,137.86],[136.32,140.93],[137.01,144],[137.66,147.09],[137.87,150.22],[137.25,153.3],[135.83,156.1],[133.73,158.45],[131.15,160.23],[128.22,161.38],[125.11,161.83],[121.98,161.5],[119.05,160.37],[116.52,158.51],[114.57,156.05],[113.37,153.14],[112.64,150.08],[111.95,147],[111.27,143.93],[110.58,140.85],[109.89,137.78],[109.2,134.7],[108.51,131.63],[107.81,128.56],[107.12,125.48],[106.42,122.41],[105.71,119.34],[105.02,116.27],[104.83,113.13],[105.42,110.04],[106.79,107.22],[108.84,104.83],[111.41,103.02],[114.33,101.87]]],[[[113.75,120.08],[118.16,120.78],[122.31,122.43],[125.98,124.96],[128.94,128.29],[131.02,132.23],[132.12,136.56],[132.1,141.02],[131.16,145.38],[129.94,149.68],[128.69,153.98],[127.44,158.27],[126.19,162.56],[124.92,166.85],[123.64,171.14],[122.35,175.42],[121.05,179.69],[119.76,183.97],[118.46,188.25],[117.05,192.49],[114.84,196.36],[111.47,199.27],[107.42,201.12],[103.04,201.99],[98.58,201.97],[94.18,201.19],[89.97,199.7],[86.1,197.48],[82.8,194.48],[80.41,190.72],[79.31,186.41],[79.87,182],[81.24,177.74],[82.57,173.47],[83.88,169.2],[85.19,164.92],[86.48,160.64],[87.75,156.36],[89.02,152.07],[90.28,147.78],[91.53,143.49],[92.77,139.19],[93.97,134.88],[95.5,130.69],[97.93,126.95],[101.16,123.87],[105.02,121.64],[109.3,120.36]],[[181.19,127.71],[185.4,128.03],[189.23,129.79],[192.19,132.8],[194.06,136.59],[194.87,140.74],[194.76,144.98],[194.21,149.18],[193.55,153.37],[192.79,157.55],[191.91,161.69],[190.91,165.82],[189.8,169.91],[188.57,173.97],[187.22,177.99],[185.72,181.96],[184.07,185.87],[182.26,189.7],[180.26,193.44],[177.85,196.92],[174.93,199.99],[171.62,202.64],[168,204.85],[164.13,206.59],[160.07,207.78],[155.86,208.24],[151.69,207.6],[148.31,205.16],[147.33,201.11],[148.48,197.06],[150.4,193.28],[152.24,189.46],[153.93,185.56],[155.48,181.61],[156.89,177.62],[158.17,173.57],[159.32,169.49],[160.35,165.38],[161.26,161.23],[162.06,157.07],[162.7,152.87],[163.29,148.67],[164.12,144.52],[165.46,140.5],[167.49,136.78],[170.16,133.49],[173.37,130.73],[177.08,128.7]]],[[[52.43,111.88],[55.76,112.3],[59,113.21],[62.08,114.57],[64.96,116.3],[67.61,118.36],[70.01,120.71],[72.16,123.3],[74.02,126.1],[75.61,129.06],[76.9,132.17],[77.89,135.38],[78.56,138.68],[78.89,142.02],[78.86,145.39],[78.45,148.72],[77.63,151.98],[76.39,155.11],[74.74,158.03],[72.67,160.68],[70.2,162.96],[67.38,164.79],[64.28,166.08],[61,166.78],[57.64,166.91],[54.3,166.49],[51.07,165.57],[47.99,164.22],[45.11,162.49],[42.46,160.42],[40.05,158.07],[37.91,155.48],[36.04,152.68],[34.46,149.72],[33.16,146.62],[32.17,143.4],[31.51,140.11],[31.18,136.76],[31.21,133.4],[31.62,130.06],[32.44,126.8],[33.67,123.68],[35.33,120.75],[37.4,118.1],[39.86,115.82],[42.68,114],[45.79,112.71],[49.07,112.01]],[[126.89,95.19],[130.56,95.44],[134.16,96.17],[137.64,97.36],[140.94,98.99],[143.98,101.06],[146.73,103.5],[149.13,106.29],[151.14,109.37],[152.72,112.69],[153.86,116.19],[154.54,119.8],[154.74,123.47],[154.45,127.14],[153.67,130.74],[152.43,134.2],[150.76,137.48],[148.69,140.51],[146.25,143.27],[143.48,145.69],[140.43,147.75],[137.14,149.39],[133.66,150.59],[130.06,151.32],[126.39,151.56],[122.72,151.31],[119.11,150.59],[115.63,149.4],[112.34,147.76],[109.29,145.7],[106.54,143.26],[104.14,140.47],[102.13,137.39],[100.55,134.07],[99.41,130.57],[98.73,126.96],[98.53,123.28],[98.83,119.62],[99.6,116.02],[100.84,112.56],[102.51,109.28],[104.59,106.25],[107.03,103.49],[109.79,101.07],[112.84,99.01],[116.13,97.36],[119.61,96.16],[123.22,95.43]]],[[[72.34,79.33],[74.93,79.64],[77.52,79.94],[80.12,80.25],[82.71,80.57],[85.3,80.91],[87.88,81.26],[90.47,81.63],[93.05,82],[95.63,82.39],[98.21,82.79],[100.79,83.21],[103.37,83.63],[105.94,84.07],[108.51,84.52],[111.09,84.92],[113.65,85.44],[115.99,86.56],[117.75,88.47],[118.68,90.89],[118.57,93.48],[117.47,95.83],[115.57,97.6],[113.16,98.56],[110.56,98.58],[108,98.1],[105.43,97.64],[102.85,97.19],[100.28,96.76],[97.7,96.33],[95.12,95.93],[92.54,95.53],[89.96,95.14],[87.38,94.77],[84.79,94.4],[82.2,94.06],[79.62,93.72],[77.02,93.41],[74.43,93.11],[71.84,92.81],[69.24,92.5],[66.78,91.69],[64.99,89.83],[64.25,87.35],[64.5,84.76],[65.58,82.39],[67.38,80.53],[69.74,79.45]],[[136.83,90.25],[139.33,90.71],[141.8,91.34],[144.28,91.93],[146.75,92.53],[149.22,93.14],[151.69,93.77],[154.15,94.4],[156.62,95.05],[159.08,95.71],[161.53,96.38],[163.98,97.07],[166.43,97.76],[168.88,98.47],[171.32,99.2],[173.75,99.94],[176.19,100.67],[178.49,101.74],[180.18,103.62],[181.12,105.98],[181.31,108.51],[180.69,110.96],[179.21,113.01],[176.98,114.19],[174.46,114.13],[172.02,113.41],[169.58,112.66],[167.14,111.93],[164.7,111.22],[162.25,110.52],[159.8,109.84],[157.34,109.17],[154.88,108.52],[152.42,107.88],[149.95,107.26],[147.48,106.64],[145.01,106.03],[142.54,105.42],[140.06,104.81],[137.59,104.21],[135.12,103.61],[132.78,102.62],[130.96,100.86],[129.93,98.55],[129.77,96.02],[130.49,93.59],[132.06,91.61],[134.31,90.46]]],[[[107.05,116.19],[110.26,116.71],[113.26,118],[115.85,119.97],[117.92,122.49],[119.29,125.45],[120.04,128.63],[120.54,131.86],[121.04,135.09],[121.54,138.31],[122.06,141.54],[122.59,144.77],[123.12,147.99],[123.67,151.21],[124.22,154.43],[124.8,157.65],[125.4,160.86],[125.95,164.08],[126.04,167.34],[125.2,170.49],[123.53,173.28],[121.14,175.49],[118.26,177.02],[115.11,177.87],[111.85,178.04],[108.63,177.56],[105.58,176.41],[102.87,174.58],[100.72,172.14],[99.35,169.18],[98.61,166],[98.04,162.78],[97.47,159.57],[96.91,156.35],[96.36,153.13],[95.83,149.9],[95.3,146.68],[94.78,143.45],[94.27,140.22],[93.76,137],[93.26,133.77],[92.82,130.53],[92.96,127.27],[93.87,124.15],[95.55,121.35],[97.88,119.07],[100.68,117.41],[103.79,116.44]],[[189.21,121.96],[191.36,122.71],[192.8,124.5],[193.41,126.73],[193.32,129.04],[192.59,131.23],[191.22,133.09],[189.28,134.34],[187.12,135.19],[184.95,136],[182.78,136.83],[180.61,137.63],[178.43,138.43],[176.24,139.2],[174.05,139.95],[171.85,140.69],[169.64,141.4],[167.43,142.09],[165.21,142.76],[162.98,143.42],[160.75,144.05],[158.51,144.66],[156.27,145.25],[154.02,145.81],[151.72,145.98],[149.57,145.18],[148.01,143.49],[147.25,141.31],[147.31,139],[148.16,136.86],[149.7,135.14],[151.74,134.05],[153.97,133.43],[156.21,132.84],[158.45,132.22],[160.68,131.59],[162.91,130.93],[165.13,130.26],[167.34,129.58],[169.55,128.87],[171.76,128.15],[173.95,127.41],[176.15,126.65],[178.33,125.87],[180.51,125.08],[182.68,124.26],[184.84,123.41],[186.98,122.53]]],[[[98.62,121.53],[100.72,121.6],[102.78,122.03],[104.72,122.83],[106.49,123.97],[108.01,125.42],[109.24,127.12],[110.15,129.02],[110.66,131.05],[110.78,133.15],[110.62,135.25],[110.34,137.33],[110.04,139.42],[109.76,141.5],[109.49,143.59],[109.21,145.68],[108.92,147.76],[108.6,149.84],[108.08,151.88],[107.18,153.78],[105.92,155.45],[104.34,156.83],[102.51,157.86],[100.51,158.52],[98.43,158.81],[96.33,158.72],[94.28,158.27],[92.33,157.47],[90.57,156.33],[89.03,154.89],[87.78,153.21],[86.85,151.32],[86.29,149.3],[86.13,147.2],[86.28,145.11],[86.57,143.02],[86.9,140.94],[87.2,138.86],[87.49,136.78],[87.79,134.69],[88.08,132.61],[88.4,130.53],[88.96,128.5],[89.88,126.61],[91.15,124.94],[92.73,123.56],[94.56,122.52],[96.54,121.84]],[[155.31,127.29],[157.36,127.43],[159.33,127.99],[161.14,128.96],[162.7,130.29],[163.95,131.92],[164.84,133.77],[165.35,135.75],[165.49,137.8],[165.35,139.85],[165.07,141.89],[164.79,143.92],[164.53,145.96],[164.26,148],[163.97,150.04],[163.65,152.06],[163.27,154.09],[162.7,156.06],[161.83,157.92],[160.68,159.62],[159.29,161.13],[157.69,162.41],[155.9,163.42],[153.97,164.1],[151.94,164.41],[149.89,164.32],[147.9,163.82],[146.06,162.92],[144.47,161.62],[143.24,159.98],[142.41,158.1],[142,156.09],[142.01,154.04],[142.32,152.01],[142.64,149.98],[142.96,147.95],[143.25,145.92],[143.51,143.88],[143.73,141.83],[143.97,139.79],[144.27,137.76],[144.74,135.76],[145.53,133.87],[146.62,132.13],[147.98,130.59],[149.57,129.28],[151.35,128.27],[153.28,127.58]]]],\"pools\":{\"sleeping\":[13,22,4],\"waking\":[13],\"idle\":[0,8],\"listening\":[10,1,19],\"thinking\":[8,16,14,17,5],\"searching\":[15,9,3,20,12,18],\"working\":[7,16,11,10],\"excited\":[2,17,21,3,11],\"surprised\":[3,21],\"suspicious\":[14,5,23],\"angry\":[7,16],\"drowsy\":[4,22,13],\"happy\":[2,11,17,19],\"curious\":[3,21,0,15],\"confused\":[14,5,8],\"bored\":[4,22,0],\"proud\":[15,8,2],\"shy\":[0,24,13],\"sad\":[4,13,22],\"laughing\":[2,11,17],\"scared\":[3,21],\"playful\":[2,17,11,8],\"celebrate\":[2,8,17],\"orbit\":[0,8],\"radar\":[0,8],\"progress\":[0,8],\"spawning\":[3,0],\"humming\":[0,8],\"loading\":[0,8],\"dictating\":[10,1,19],\"sending\":[0,8],\"receiving\":[19,0,8],\"uploading\":[15,9,8],\"writing\":[15,9],\"notifying\":[3,21,0],\"alerting\":[3,21],\"bouncing\":[2,17],\"dragging\":[3,15,0],\"powering-down\":[13,22],\"thinking-dots\":[8,16,14,17,5]}} as const\n","var _a;\n/** A special constant with type `never` */\nexport const NEVER = /*@__PURE__*/ Object.freeze({\n status: \"aborted\",\n});\nexport /*@__NO_SIDE_EFFECTS__*/ function $constructor(name, initializer, params) {\n function init(inst, def) {\n if (!inst._zod) {\n Object.defineProperty(inst, \"_zod\", {\n value: {\n def,\n constr: _,\n traits: new Set(),\n },\n enumerable: false,\n });\n }\n if (inst._zod.traits.has(name)) {\n return;\n }\n inst._zod.traits.add(name);\n initializer(inst, def);\n // support prototype modifications\n const proto = _.prototype;\n const keys = Object.keys(proto);\n for (let i = 0; i < keys.length; i++) {\n const k = keys[i];\n if (!(k in inst)) {\n inst[k] = proto[k].bind(inst);\n }\n }\n }\n // doesn't work if Parent has a constructor with arguments\n const Parent = params?.Parent ?? Object;\n class Definition extends Parent {\n }\n Object.defineProperty(Definition, \"name\", { value: name });\n function _(def) {\n var _a;\n const inst = params?.Parent ? new Definition() : this;\n init(inst, def);\n (_a = inst._zod).deferred ?? (_a.deferred = []);\n for (const fn of inst._zod.deferred) {\n fn();\n }\n return inst;\n }\n Object.defineProperty(_, \"init\", { value: init });\n Object.defineProperty(_, Symbol.hasInstance, {\n value: (inst) => {\n if (params?.Parent && inst instanceof params.Parent)\n return true;\n return inst?._zod?.traits?.has(name);\n },\n });\n Object.defineProperty(_, \"name\", { value: name });\n return _;\n}\n////////////////////////////// UTILITIES ///////////////////////////////////////\nexport const $brand = Symbol(\"zod_brand\");\nexport class $ZodAsyncError extends Error {\n constructor() {\n super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);\n }\n}\nexport class $ZodEncodeError extends Error {\n constructor(name) {\n super(`Encountered unidirectional transform during encode: ${name}`);\n this.name = \"ZodEncodeError\";\n }\n}\n(_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});\nexport const globalConfig = globalThis.__zod_globalConfig;\nexport function config(newConfig) {\n if (newConfig)\n Object.assign(globalConfig, newConfig);\n return globalConfig;\n}\n","import { globalConfig } from \"./core.js\";\n// functions\nexport function assertEqual(val) {\n return val;\n}\nexport function assertNotEqual(val) {\n return val;\n}\nexport function assertIs(_arg) { }\nexport function assertNever(_x) {\n throw new Error(\"Unexpected value in exhaustive check\");\n}\nexport function assert(_) { }\nexport function getEnumValues(entries) {\n const numericValues = Object.values(entries).filter((v) => typeof v === \"number\");\n const values = Object.entries(entries)\n .filter(([k, _]) => numericValues.indexOf(+k) === -1)\n .map(([_, v]) => v);\n return values;\n}\nexport function joinValues(array, separator = \"|\") {\n return array.map((val) => stringifyPrimitive(val)).join(separator);\n}\nexport function jsonStringifyReplacer(_, value) {\n if (typeof value === \"bigint\")\n return value.toString();\n return value;\n}\nexport function cached(getter) {\n const set = false;\n return {\n get value() {\n if (!set) {\n const value = getter();\n Object.defineProperty(this, \"value\", { value });\n return value;\n }\n throw new Error(\"cached value already set\");\n },\n };\n}\nexport function nullish(input) {\n return input === null || input === undefined;\n}\nexport function cleanRegex(source) {\n const start = source.startsWith(\"^\") ? 1 : 0;\n const end = source.endsWith(\"$\") ? source.length - 1 : source.length;\n return source.slice(start, end);\n}\nexport function floatSafeRemainder(val, step) {\n const ratio = val / step;\n const roundedRatio = Math.round(ratio);\n // Use a relative epsilon scaled to the magnitude of the result\n const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);\n if (Math.abs(ratio - roundedRatio) < tolerance)\n return 0;\n return ratio - roundedRatio;\n}\nconst EVALUATING = /* @__PURE__*/ Symbol(\"evaluating\");\nexport function defineLazy(object, key, getter) {\n let value = undefined;\n Object.defineProperty(object, key, {\n get() {\n if (value === EVALUATING) {\n // Circular reference detected, return undefined to break the cycle\n return undefined;\n }\n if (value === undefined) {\n value = EVALUATING;\n value = getter();\n }\n return value;\n },\n set(v) {\n Object.defineProperty(object, key, {\n value: v,\n // configurable: true,\n });\n // object[key] = v;\n },\n configurable: true,\n });\n}\nexport function objectClone(obj) {\n return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));\n}\nexport function assignProp(target, prop, value) {\n Object.defineProperty(target, prop, {\n value,\n writable: true,\n enumerable: true,\n configurable: true,\n });\n}\nexport function mergeDefs(...defs) {\n const mergedDescriptors = {};\n for (const def of defs) {\n const descriptors = Object.getOwnPropertyDescriptors(def);\n Object.assign(mergedDescriptors, descriptors);\n }\n return Object.defineProperties({}, mergedDescriptors);\n}\nexport function cloneDef(schema) {\n return mergeDefs(schema._zod.def);\n}\nexport function getElementAtPath(obj, path) {\n if (!path)\n return obj;\n return path.reduce((acc, key) => acc?.[key], obj);\n}\nexport function promiseAllObject(promisesObj) {\n const keys = Object.keys(promisesObj);\n const promises = keys.map((key) => promisesObj[key]);\n return Promise.all(promises).then((results) => {\n const resolvedObj = {};\n for (let i = 0; i < keys.length; i++) {\n resolvedObj[keys[i]] = results[i];\n }\n return resolvedObj;\n });\n}\nexport function randomString(length = 10) {\n const chars = \"abcdefghijklmnopqrstuvwxyz\";\n let str = \"\";\n for (let i = 0; i < length; i++) {\n str += chars[Math.floor(Math.random() * chars.length)];\n }\n return str;\n}\nexport function esc(str) {\n return JSON.stringify(str);\n}\nexport function slugify(input) {\n return input\n .toLowerCase()\n .trim()\n .replace(/[^\\w\\s-]/g, \"\")\n .replace(/[\\s_-]+/g, \"-\")\n .replace(/^-+|-+$/g, \"\");\n}\nexport const captureStackTrace = (\"captureStackTrace\" in Error ? Error.captureStackTrace : (..._args) => { });\nexport function isObject(data) {\n return typeof data === \"object\" && data !== null && !Array.isArray(data);\n}\nexport const allowsEval = /* @__PURE__*/ cached(() => {\n // Skip the probe under `jitless`: strict CSPs report the caught `new Function`\n // as a `securitypolicyviolation` even though the throw is swallowed.\n if (globalConfig.jitless) {\n return false;\n }\n // @ts-ignore\n if (typeof navigator !== \"undefined\" && navigator?.userAgent?.includes(\"Cloudflare\")) {\n return false;\n }\n try {\n const F = Function;\n new F(\"\");\n return true;\n }\n catch (_) {\n return false;\n }\n});\nexport function isPlainObject(o) {\n if (isObject(o) === false)\n return false;\n // modified constructor\n const ctor = o.constructor;\n if (ctor === undefined)\n return true;\n if (typeof ctor !== \"function\")\n return true;\n // modified prototype\n const prot = ctor.prototype;\n if (isObject(prot) === false)\n return false;\n // ctor doesn't have static `isPrototypeOf`\n if (Object.prototype.hasOwnProperty.call(prot, \"isPrototypeOf\") === false) {\n return false;\n }\n return true;\n}\nexport function shallowClone(o) {\n if (isPlainObject(o))\n return { ...o };\n if (Array.isArray(o))\n return [...o];\n if (o instanceof Map)\n return new Map(o);\n if (o instanceof Set)\n return new Set(o);\n return o;\n}\nexport function numKeys(data) {\n let keyCount = 0;\n for (const key in data) {\n if (Object.prototype.hasOwnProperty.call(data, key)) {\n keyCount++;\n }\n }\n return keyCount;\n}\nexport const getParsedType = (data) => {\n const t = typeof data;\n switch (t) {\n case \"undefined\":\n return \"undefined\";\n case \"string\":\n return \"string\";\n case \"number\":\n return Number.isNaN(data) ? \"nan\" : \"number\";\n case \"boolean\":\n return \"boolean\";\n case \"function\":\n return \"function\";\n case \"bigint\":\n return \"bigint\";\n case \"symbol\":\n return \"symbol\";\n case \"object\":\n if (Array.isArray(data)) {\n return \"array\";\n }\n if (data === null) {\n return \"null\";\n }\n if (data.then && typeof data.then === \"function\" && data.catch && typeof data.catch === \"function\") {\n return \"promise\";\n }\n if (typeof Map !== \"undefined\" && data instanceof Map) {\n return \"map\";\n }\n if (typeof Set !== \"undefined\" && data instanceof Set) {\n return \"set\";\n }\n if (typeof Date !== \"undefined\" && data instanceof Date) {\n return \"date\";\n }\n // @ts-ignore\n if (typeof File !== \"undefined\" && data instanceof File) {\n return \"file\";\n }\n return \"object\";\n default:\n throw new Error(`Unknown data type: ${t}`);\n }\n};\nexport const propertyKeyTypes = /* @__PURE__*/ new Set([\"string\", \"number\", \"symbol\"]);\nexport const primitiveTypes = /* @__PURE__*/ new Set([\n \"string\",\n \"number\",\n \"bigint\",\n \"boolean\",\n \"symbol\",\n \"undefined\",\n]);\nexport function escapeRegex(str) {\n return str.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n}\n// zod-specific utils\nexport function clone(inst, def, params) {\n const cl = new inst._zod.constr(def ?? inst._zod.def);\n if (!def || params?.parent)\n cl._zod.parent = inst;\n return cl;\n}\nexport function normalizeParams(_params) {\n const params = _params;\n if (!params)\n return {};\n if (typeof params === \"string\")\n return { error: () => params };\n if (params?.message !== undefined) {\n if (params?.error !== undefined)\n throw new Error(\"Cannot specify both `message` and `error` params\");\n params.error = params.message;\n }\n delete params.message;\n if (typeof params.error === \"string\")\n return { ...params, error: () => params.error };\n return params;\n}\nexport function createTransparentProxy(getter) {\n let target;\n return new Proxy({}, {\n get(_, prop, receiver) {\n target ?? (target = getter());\n return Reflect.get(target, prop, receiver);\n },\n set(_, prop, value, receiver) {\n target ?? (target = getter());\n return Reflect.set(target, prop, value, receiver);\n },\n has(_, prop) {\n target ?? (target = getter());\n return Reflect.has(target, prop);\n },\n deleteProperty(_, prop) {\n target ?? (target = getter());\n return Reflect.deleteProperty(target, prop);\n },\n ownKeys(_) {\n target ?? (target = getter());\n return Reflect.ownKeys(target);\n },\n getOwnPropertyDescriptor(_, prop) {\n target ?? (target = getter());\n return Reflect.getOwnPropertyDescriptor(target, prop);\n },\n defineProperty(_, prop, descriptor) {\n target ?? (target = getter());\n return Reflect.defineProperty(target, prop, descriptor);\n },\n });\n}\nexport function stringifyPrimitive(value) {\n if (typeof value === \"bigint\")\n return value.toString() + \"n\";\n if (typeof value === \"string\")\n return `\"${value}\"`;\n return `${value}`;\n}\nexport function optionalKeys(shape) {\n return Object.keys(shape).filter((k) => {\n return shape[k]._zod.optin === \"optional\" && shape[k]._zod.optout === \"optional\";\n });\n}\nexport const NUMBER_FORMAT_RANGES = {\n safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],\n int32: [-2147483648, 2147483647],\n uint32: [0, 4294967295],\n float32: [-3.4028234663852886e38, 3.4028234663852886e38],\n float64: [-Number.MAX_VALUE, Number.MAX_VALUE],\n};\nexport const BIGINT_FORMAT_RANGES = {\n int64: [/* @__PURE__*/ BigInt(\"-9223372036854775808\"), /* @__PURE__*/ BigInt(\"9223372036854775807\")],\n uint64: [/* @__PURE__*/ BigInt(0), /* @__PURE__*/ BigInt(\"18446744073709551615\")],\n};\nexport function pick(schema, mask) {\n const currDef = schema._zod.def;\n const checks = currDef.checks;\n const hasChecks = checks && checks.length > 0;\n if (hasChecks) {\n throw new Error(\".pick() cannot be used on object schemas containing refinements\");\n }\n const def = mergeDefs(schema._zod.def, {\n get shape() {\n const newShape = {};\n for (const key in mask) {\n if (!(key in currDef.shape)) {\n throw new Error(`Unrecognized key: \"${key}\"`);\n }\n if (!mask[key])\n continue;\n newShape[key] = currDef.shape[key];\n }\n assignProp(this, \"shape\", newShape); // self-caching\n return newShape;\n },\n checks: [],\n });\n return clone(schema, def);\n}\nexport function omit(schema, mask) {\n const currDef = schema._zod.def;\n const checks = currDef.checks;\n const hasChecks = checks && checks.length > 0;\n if (hasChecks) {\n throw new Error(\".omit() cannot be used on object schemas containing refinements\");\n }\n const def = mergeDefs(schema._zod.def, {\n get shape() {\n const newShape = { ...schema._zod.def.shape };\n for (const key in mask) {\n if (!(key in currDef.shape)) {\n throw new Error(`Unrecognized key: \"${key}\"`);\n }\n if (!mask[key])\n continue;\n delete newShape[key];\n }\n assignProp(this, \"shape\", newShape); // self-caching\n return newShape;\n },\n checks: [],\n });\n return clone(schema, def);\n}\nexport function extend(schema, shape) {\n if (!isPlainObject(shape)) {\n throw new Error(\"Invalid input to extend: expected a plain object\");\n }\n const checks = schema._zod.def.checks;\n const hasChecks = checks && checks.length > 0;\n if (hasChecks) {\n // Only throw if new shape overlaps with existing shape\n // Use getOwnPropertyDescriptor to check key existence without accessing values\n const existingShape = schema._zod.def.shape;\n for (const key in shape) {\n if (Object.getOwnPropertyDescriptor(existingShape, key) !== undefined) {\n throw new Error(\"Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.\");\n }\n }\n }\n const def = mergeDefs(schema._zod.def, {\n get shape() {\n const _shape = { ...schema._zod.def.shape, ...shape };\n assignProp(this, \"shape\", _shape); // self-caching\n return _shape;\n },\n });\n return clone(schema, def);\n}\nexport function safeExtend(schema, shape) {\n if (!isPlainObject(shape)) {\n throw new Error(\"Invalid input to safeExtend: expected a plain object\");\n }\n const def = mergeDefs(schema._zod.def, {\n get shape() {\n const _shape = { ...schema._zod.def.shape, ...shape };\n assignProp(this, \"shape\", _shape); // self-caching\n return _shape;\n },\n });\n return clone(schema, def);\n}\nexport function merge(a, b) {\n if (a._zod.def.checks?.length) {\n throw new Error(\".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.\");\n }\n const def = mergeDefs(a._zod.def, {\n get shape() {\n const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };\n assignProp(this, \"shape\", _shape); // self-caching\n return _shape;\n },\n get catchall() {\n return b._zod.def.catchall;\n },\n checks: b._zod.def.checks ?? [],\n });\n return clone(a, def);\n}\nexport function partial(Class, schema, mask) {\n const currDef = schema._zod.def;\n const checks = currDef.checks;\n const hasChecks = checks && checks.length > 0;\n if (hasChecks) {\n throw new Error(\".partial() cannot be used on object schemas containing refinements\");\n }\n const def = mergeDefs(schema._zod.def, {\n get shape() {\n const oldShape = schema._zod.def.shape;\n const shape = { ...oldShape };\n if (mask) {\n for (const key in mask) {\n if (!(key in oldShape)) {\n throw new Error(`Unrecognized key: \"${key}\"`);\n }\n if (!mask[key])\n continue;\n // if (oldShape[key]!._zod.optin === \"optional\") continue;\n shape[key] = Class\n ? new Class({\n type: \"optional\",\n innerType: oldShape[key],\n })\n : oldShape[key];\n }\n }\n else {\n for (const key in oldShape) {\n // if (oldShape[key]!._zod.optin === \"optional\") continue;\n shape[key] = Class\n ? new Class({\n type: \"optional\",\n innerType: oldShape[key],\n })\n : oldShape[key];\n }\n }\n assignProp(this, \"shape\", shape); // self-caching\n return shape;\n },\n checks: [],\n });\n return clone(schema, def);\n}\nexport function required(Class, schema, mask) {\n const def = mergeDefs(schema._zod.def, {\n get shape() {\n const oldShape = schema._zod.def.shape;\n const shape = { ...oldShape };\n if (mask) {\n for (const key in mask) {\n if (!(key in shape)) {\n throw new Error(`Unrecognized key: \"${key}\"`);\n }\n if (!mask[key])\n continue;\n // overwrite with non-optional\n shape[key] = new Class({\n type: \"nonoptional\",\n innerType: oldShape[key],\n });\n }\n }\n else {\n for (const key in oldShape) {\n // overwrite with non-optional\n shape[key] = new Class({\n type: \"nonoptional\",\n innerType: oldShape[key],\n });\n }\n }\n assignProp(this, \"shape\", shape); // self-caching\n return shape;\n },\n });\n return clone(schema, def);\n}\n// invalid_type | too_big | too_small | invalid_format | not_multiple_of | unrecognized_keys | invalid_union | invalid_key | invalid_element | invalid_value | custom\nexport function aborted(x, startIndex = 0) {\n if (x.aborted === true)\n return true;\n for (let i = startIndex; i < x.issues.length; i++) {\n if (x.issues[i]?.continue !== true) {\n return true;\n }\n }\n return false;\n}\n// Checks for explicit abort (continue === false), as opposed to implicit abort (continue === undefined).\n// Used to respect `abort: true` in .refine() even for checks that have a `when` function.\nexport function explicitlyAborted(x, startIndex = 0) {\n if (x.aborted === true)\n return true;\n for (let i = startIndex; i < x.issues.length; i++) {\n if (x.issues[i]?.continue === false) {\n return true;\n }\n }\n return false;\n}\nexport function prefixIssues(path, issues) {\n return issues.map((iss) => {\n var _a;\n (_a = iss).path ?? (_a.path = []);\n iss.path.unshift(path);\n return iss;\n });\n}\nexport function unwrapMessage(message) {\n return typeof message === \"string\" ? message : message?.message;\n}\nexport function finalizeIssue(iss, ctx, config) {\n const message = iss.message\n ? iss.message\n : (unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ??\n unwrapMessage(ctx?.error?.(iss)) ??\n unwrapMessage(config.customError?.(iss)) ??\n unwrapMessage(config.localeError?.(iss)) ??\n \"Invalid input\");\n const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;\n rest.path ?? (rest.path = []);\n rest.message = message;\n if (ctx?.reportInput) {\n rest.input = _input;\n }\n return rest;\n}\nexport function getSizableOrigin(input) {\n if (input instanceof Set)\n return \"set\";\n if (input instanceof Map)\n return \"map\";\n // @ts-ignore\n if (input instanceof File)\n return \"file\";\n return \"unknown\";\n}\nexport function getLengthableOrigin(input) {\n if (Array.isArray(input))\n return \"array\";\n if (typeof input === \"string\")\n return \"string\";\n return \"unknown\";\n}\nexport function parsedType(data) {\n const t = typeof data;\n switch (t) {\n case \"number\": {\n return Number.isNaN(data) ? \"nan\" : \"number\";\n }\n case \"object\": {\n if (data === null) {\n return \"null\";\n }\n if (Array.isArray(data)) {\n return \"array\";\n }\n const obj = data;\n if (obj && Object.getPrototypeOf(obj) !== Object.prototype && \"constructor\" in obj && obj.constructor) {\n return obj.constructor.name;\n }\n }\n }\n return t;\n}\nexport function issue(...args) {\n const [iss, input, inst] = args;\n if (typeof iss === \"string\") {\n return {\n message: iss,\n code: \"custom\",\n input,\n inst,\n };\n }\n return { ...iss };\n}\nexport function cleanEnum(obj) {\n return Object.entries(obj)\n .filter(([k, _]) => {\n // return true if NaN, meaning it's not a number, thus a string key\n return Number.isNaN(Number.parseInt(k, 10));\n })\n .map((el) => el[1]);\n}\n// Codec utility functions\nexport function base64ToUint8Array(base64) {\n const binaryString = atob(base64);\n const bytes = new Uint8Array(binaryString.length);\n for (let i = 0; i < binaryString.length; i++) {\n bytes[i] = binaryString.charCodeAt(i);\n }\n return bytes;\n}\nexport function uint8ArrayToBase64(bytes) {\n let binaryString = \"\";\n for (let i = 0; i < bytes.length; i++) {\n binaryString += String.fromCharCode(bytes[i]);\n }\n return btoa(binaryString);\n}\nexport function base64urlToUint8Array(base64url) {\n const base64 = base64url.replace(/-/g, \"+\").replace(/_/g, \"/\");\n const padding = \"=\".repeat((4 - (base64.length % 4)) % 4);\n return base64ToUint8Array(base64 + padding);\n}\nexport function uint8ArrayToBase64url(bytes) {\n return uint8ArrayToBase64(bytes).replace(/\\+/g, \"-\").replace(/\\//g, \"_\").replace(/=/g, \"\");\n}\nexport function hexToUint8Array(hex) {\n const cleanHex = hex.replace(/^0x/, \"\");\n if (cleanHex.length % 2 !== 0) {\n throw new Error(\"Invalid hex string length\");\n }\n const bytes = new Uint8Array(cleanHex.length / 2);\n for (let i = 0; i < cleanHex.length; i += 2) {\n bytes[i / 2] = Number.parseInt(cleanHex.slice(i, i + 2), 16);\n }\n return bytes;\n}\nexport function uint8ArrayToHex(bytes) {\n return Array.from(bytes)\n .map((b) => b.toString(16).padStart(2, \"0\"))\n .join(\"\");\n}\n// instanceof\nexport class Class {\n constructor(..._args) { }\n}\n","import { $constructor } from \"./core.js\";\nimport * as util from \"./util.js\";\nconst initializer = (inst, def) => {\n inst.name = \"$ZodError\";\n Object.defineProperty(inst, \"_zod\", {\n value: inst._zod,\n enumerable: false,\n });\n Object.defineProperty(inst, \"issues\", {\n value: def,\n enumerable: false,\n });\n inst.message = JSON.stringify(def, util.jsonStringifyReplacer, 2);\n Object.defineProperty(inst, \"toString\", {\n value: () => inst.message,\n enumerable: false,\n });\n};\nexport const $ZodError = $constructor(\"$ZodError\", initializer);\nexport const $ZodRealError = $constructor(\"$ZodError\", initializer, { Parent: Error });\nexport function flattenError(error, mapper = (issue) => issue.message) {\n const fieldErrors = {};\n const formErrors = [];\n for (const sub of error.issues) {\n if (sub.path.length > 0) {\n fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];\n fieldErrors[sub.path[0]].push(mapper(sub));\n }\n else {\n formErrors.push(mapper(sub));\n }\n }\n return { formErrors, fieldErrors };\n}\nexport function formatError(error, mapper = (issue) => issue.message) {\n const fieldErrors = { _errors: [] };\n const processError = (error, path = []) => {\n for (const issue of error.issues) {\n if (issue.code === \"invalid_union\" && issue.errors.length) {\n issue.errors.map((issues) => processError({ issues }, [...path, ...issue.path]));\n }\n else if (issue.code === \"invalid_key\") {\n processError({ issues: issue.issues }, [...path, ...issue.path]);\n }\n else if (issue.code === \"invalid_element\") {\n processError({ issues: issue.issues }, [...path, ...issue.path]);\n }\n else {\n const fullpath = [...path, ...issue.path];\n if (fullpath.length === 0) {\n fieldErrors._errors.push(mapper(issue));\n }\n else {\n let curr = fieldErrors;\n let i = 0;\n while (i < fullpath.length) {\n const el = fullpath[i];\n const terminal = i === fullpath.length - 1;\n if (!terminal) {\n curr[el] = curr[el] || { _errors: [] };\n }\n else {\n curr[el] = curr[el] || { _errors: [] };\n curr[el]._errors.push(mapper(issue));\n }\n curr = curr[el];\n i++;\n }\n }\n }\n }\n };\n processError(error);\n return fieldErrors;\n}\nexport function treeifyError(error, mapper = (issue) => issue.message) {\n const result = { errors: [] };\n const processError = (error, path = []) => {\n var _a, _b;\n for (const issue of error.issues) {\n if (issue.code === \"invalid_union\" && issue.errors.length) {\n // regular union error\n issue.errors.map((issues) => processError({ issues }, [...path, ...issue.path]));\n }\n else if (issue.code === \"invalid_key\") {\n processError({ issues: issue.issues }, [...path, ...issue.path]);\n }\n else if (issue.code === \"invalid_element\") {\n processError({ issues: issue.issues }, [...path, ...issue.path]);\n }\n else {\n const fullpath = [...path, ...issue.path];\n if (fullpath.length === 0) {\n result.errors.push(mapper(issue));\n continue;\n }\n let curr = result;\n let i = 0;\n while (i < fullpath.length) {\n const el = fullpath[i];\n const terminal = i === fullpath.length - 1;\n if (typeof el === \"string\") {\n curr.properties ?? (curr.properties = {});\n (_a = curr.properties)[el] ?? (_a[el] = { errors: [] });\n curr = curr.properties[el];\n }\n else {\n curr.items ?? (curr.items = []);\n (_b = curr.items)[el] ?? (_b[el] = { errors: [] });\n curr = curr.items[el];\n }\n if (terminal) {\n curr.errors.push(mapper(issue));\n }\n i++;\n }\n }\n }\n };\n processError(error);\n return result;\n}\n/** Format a ZodError as a human-readable string in the following form.\n *\n * From\n *\n * ```ts\n * ZodError {\n * issues: [\n * {\n * expected: 'string',\n * code: 'invalid_type',\n * path: [ 'username' ],\n * message: 'Invalid input: expected string'\n * },\n * {\n * expected: 'number',\n * code: 'invalid_type',\n * path: [ 'favoriteNumbers', 1 ],\n * message: 'Invalid input: expected number'\n * }\n * ];\n * }\n * ```\n *\n * to\n *\n * ```\n * username\n * ✖ Expected number, received string at \"username\n * favoriteNumbers[0]\n * ✖ Invalid input: expected number\n * ```\n */\nexport function toDotPath(_path) {\n const segs = [];\n const path = _path.map((seg) => (typeof seg === \"object\" ? seg.key : seg));\n for (const seg of path) {\n if (typeof seg === \"number\")\n segs.push(`[${seg}]`);\n else if (typeof seg === \"symbol\")\n segs.push(`[${JSON.stringify(String(seg))}]`);\n else if (/[^\\w$]/.test(seg))\n segs.push(`[${JSON.stringify(seg)}]`);\n else {\n if (segs.length)\n segs.push(\".\");\n segs.push(seg);\n }\n }\n return segs.join(\"\");\n}\nexport function prettifyError(error) {\n const lines = [];\n // sort by path length\n const issues = [...error.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);\n // Process each issue\n for (const issue of issues) {\n lines.push(`✖ ${issue.message}`);\n if (issue.path?.length)\n lines.push(` → at ${toDotPath(issue.path)}`);\n }\n // Convert Map to formatted string\n return lines.join(\"\\n\");\n}\n","import * as core from \"./core.js\";\nimport * as errors from \"./errors.js\";\nimport * as util from \"./util.js\";\nexport const _parse = (_Err) => (schema, value, _ctx, _params) => {\n const ctx = _ctx ? { ..._ctx, async: false } : { async: false };\n const result = schema._zod.run({ value, issues: [] }, ctx);\n if (result instanceof Promise) {\n throw new core.$ZodAsyncError();\n }\n if (result.issues.length) {\n const e = new (_params?.Err ?? _Err)(result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())));\n util.captureStackTrace(e, _params?.callee);\n throw e;\n }\n return result.value;\n};\nexport const parse = /* @__PURE__*/ _parse(errors.$ZodRealError);\nexport const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {\n const ctx = _ctx ? { ..._ctx, async: true } : { async: true };\n let result = schema._zod.run({ value, issues: [] }, ctx);\n if (result instanceof Promise)\n result = await result;\n if (result.issues.length) {\n const e = new (params?.Err ?? _Err)(result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())));\n util.captureStackTrace(e, params?.callee);\n throw e;\n }\n return result.value;\n};\nexport const parseAsync = /* @__PURE__*/ _parseAsync(errors.$ZodRealError);\nexport const _safeParse = (_Err) => (schema, value, _ctx) => {\n const ctx = _ctx ? { ..._ctx, async: false } : { async: false };\n const result = schema._zod.run({ value, issues: [] }, ctx);\n if (result instanceof Promise) {\n throw new core.$ZodAsyncError();\n }\n return result.issues.length\n ? {\n success: false,\n error: new (_Err ?? errors.$ZodError)(result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config()))),\n }\n : { success: true, data: result.value };\n};\nexport const safeParse = /* @__PURE__*/ _safeParse(errors.$ZodRealError);\nexport const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {\n const ctx = _ctx ? { ..._ctx, async: true } : { async: true };\n let result = schema._zod.run({ value, issues: [] }, ctx);\n if (result instanceof Promise)\n result = await result;\n return result.issues.length\n ? {\n success: false,\n error: new _Err(result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config()))),\n }\n : { success: true, data: result.value };\n};\nexport const safeParseAsync = /* @__PURE__*/ _safeParseAsync(errors.$ZodRealError);\nexport const _encode = (_Err) => (schema, value, _ctx) => {\n const ctx = _ctx ? { ..._ctx, direction: \"backward\" } : { direction: \"backward\" };\n return _parse(_Err)(schema, value, ctx);\n};\nexport const encode = /* @__PURE__*/ _encode(errors.$ZodRealError);\nexport const _decode = (_Err) => (schema, value, _ctx) => {\n return _parse(_Err)(schema, value, _ctx);\n};\nexport const decode = /* @__PURE__*/ _decode(errors.$ZodRealError);\nexport const _encodeAsync = (_Err) => async (schema, value, _ctx) => {\n const ctx = _ctx ? { ..._ctx, direction: \"backward\" } : { direction: \"backward\" };\n return _parseAsync(_Err)(schema, value, ctx);\n};\nexport const encodeAsync = /* @__PURE__*/ _encodeAsync(errors.$ZodRealError);\nexport const _decodeAsync = (_Err) => async (schema, value, _ctx) => {\n return _parseAsync(_Err)(schema, value, _ctx);\n};\nexport const decodeAsync = /* @__PURE__*/ _decodeAsync(errors.$ZodRealError);\nexport const _safeEncode = (_Err) => (schema, value, _ctx) => {\n const ctx = _ctx ? { ..._ctx, direction: \"backward\" } : { direction: \"backward\" };\n return _safeParse(_Err)(schema, value, ctx);\n};\nexport const safeEncode = /* @__PURE__*/ _safeEncode(errors.$ZodRealError);\nexport const _safeDecode = (_Err) => (schema, value, _ctx) => {\n return _safeParse(_Err)(schema, value, _ctx);\n};\nexport const safeDecode = /* @__PURE__*/ _safeDecode(errors.$ZodRealError);\nexport const _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {\n const ctx = _ctx ? { ..._ctx, direction: \"backward\" } : { direction: \"backward\" };\n return _safeParseAsync(_Err)(schema, value, ctx);\n};\nexport const safeEncodeAsync = /* @__PURE__*/ _safeEncodeAsync(errors.$ZodRealError);\nexport const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {\n return _safeParseAsync(_Err)(schema, value, _ctx);\n};\nexport const safeDecodeAsync = /* @__PURE__*/ _safeDecodeAsync(errors.$ZodRealError);\n","// import { $ZodType } from \"./schemas.js\";\nimport * as core from \"./core.js\";\nimport * as regexes from \"./regexes.js\";\nimport * as util from \"./util.js\";\nexport const $ZodCheck = /*@__PURE__*/ core.$constructor(\"$ZodCheck\", (inst, def) => {\n var _a;\n inst._zod ?? (inst._zod = {});\n inst._zod.def = def;\n (_a = inst._zod).onattach ?? (_a.onattach = []);\n});\nconst numericOriginMap = {\n number: \"number\",\n bigint: \"bigint\",\n object: \"date\",\n};\nexport const $ZodCheckLessThan = /*@__PURE__*/ core.$constructor(\"$ZodCheckLessThan\", (inst, def) => {\n $ZodCheck.init(inst, def);\n const origin = numericOriginMap[typeof def.value];\n inst._zod.onattach.push((inst) => {\n const bag = inst._zod.bag;\n const curr = (def.inclusive ? bag.maximum : bag.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;\n if (def.value < curr) {\n if (def.inclusive)\n bag.maximum = def.value;\n else\n bag.exclusiveMaximum = def.value;\n }\n });\n inst._zod.check = (payload) => {\n if (def.inclusive ? payload.value <= def.value : payload.value < def.value) {\n return;\n }\n payload.issues.push({\n origin,\n code: \"too_big\",\n maximum: typeof def.value === \"object\" ? def.value.getTime() : def.value,\n input: payload.value,\n inclusive: def.inclusive,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckGreaterThan = /*@__PURE__*/ core.$constructor(\"$ZodCheckGreaterThan\", (inst, def) => {\n $ZodCheck.init(inst, def);\n const origin = numericOriginMap[typeof def.value];\n inst._zod.onattach.push((inst) => {\n const bag = inst._zod.bag;\n const curr = (def.inclusive ? bag.minimum : bag.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;\n if (def.value > curr) {\n if (def.inclusive)\n bag.minimum = def.value;\n else\n bag.exclusiveMinimum = def.value;\n }\n });\n inst._zod.check = (payload) => {\n if (def.inclusive ? payload.value >= def.value : payload.value > def.value) {\n return;\n }\n payload.issues.push({\n origin,\n code: \"too_small\",\n minimum: typeof def.value === \"object\" ? def.value.getTime() : def.value,\n input: payload.value,\n inclusive: def.inclusive,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckMultipleOf = \n/*@__PURE__*/ core.$constructor(\"$ZodCheckMultipleOf\", (inst, def) => {\n $ZodCheck.init(inst, def);\n inst._zod.onattach.push((inst) => {\n var _a;\n (_a = inst._zod.bag).multipleOf ?? (_a.multipleOf = def.value);\n });\n inst._zod.check = (payload) => {\n if (typeof payload.value !== typeof def.value)\n throw new Error(\"Cannot mix number and bigint in multiple_of check.\");\n const isMultiple = typeof payload.value === \"bigint\"\n ? payload.value % def.value === BigInt(0)\n : util.floatSafeRemainder(payload.value, def.value) === 0;\n if (isMultiple)\n return;\n payload.issues.push({\n origin: typeof payload.value,\n code: \"not_multiple_of\",\n divisor: def.value,\n input: payload.value,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckNumberFormat = /*@__PURE__*/ core.$constructor(\"$ZodCheckNumberFormat\", (inst, def) => {\n $ZodCheck.init(inst, def); // no format checks\n def.format = def.format || \"float64\";\n const isInt = def.format?.includes(\"int\");\n const origin = isInt ? \"int\" : \"number\";\n const [minimum, maximum] = util.NUMBER_FORMAT_RANGES[def.format];\n inst._zod.onattach.push((inst) => {\n const bag = inst._zod.bag;\n bag.format = def.format;\n bag.minimum = minimum;\n bag.maximum = maximum;\n if (isInt)\n bag.pattern = regexes.integer;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n if (isInt) {\n if (!Number.isInteger(input)) {\n // invalid_format issue\n // payload.issues.push({\n // expected: def.format,\n // format: def.format,\n // code: \"invalid_format\",\n // input,\n // inst,\n // });\n // invalid_type issue\n payload.issues.push({\n expected: origin,\n format: def.format,\n code: \"invalid_type\",\n continue: false,\n input,\n inst,\n });\n return;\n // not_multiple_of issue\n // payload.issues.push({\n // code: \"not_multiple_of\",\n // origin: \"number\",\n // input,\n // inst,\n // divisor: 1,\n // });\n }\n if (!Number.isSafeInteger(input)) {\n if (input > 0) {\n // too_big\n payload.issues.push({\n input,\n code: \"too_big\",\n maximum: Number.MAX_SAFE_INTEGER,\n note: \"Integers must be within the safe integer range.\",\n inst,\n origin,\n inclusive: true,\n continue: !def.abort,\n });\n }\n else {\n // too_small\n payload.issues.push({\n input,\n code: \"too_small\",\n minimum: Number.MIN_SAFE_INTEGER,\n note: \"Integers must be within the safe integer range.\",\n inst,\n origin,\n inclusive: true,\n continue: !def.abort,\n });\n }\n return;\n }\n }\n if (input < minimum) {\n payload.issues.push({\n origin: \"number\",\n input,\n code: \"too_small\",\n minimum,\n inclusive: true,\n inst,\n continue: !def.abort,\n });\n }\n if (input > maximum) {\n payload.issues.push({\n origin: \"number\",\n input,\n code: \"too_big\",\n maximum,\n inclusive: true,\n inst,\n continue: !def.abort,\n });\n }\n };\n});\nexport const $ZodCheckBigIntFormat = /*@__PURE__*/ core.$constructor(\"$ZodCheckBigIntFormat\", (inst, def) => {\n $ZodCheck.init(inst, def); // no format checks\n const [minimum, maximum] = util.BIGINT_FORMAT_RANGES[def.format];\n inst._zod.onattach.push((inst) => {\n const bag = inst._zod.bag;\n bag.format = def.format;\n bag.minimum = minimum;\n bag.maximum = maximum;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n if (input < minimum) {\n payload.issues.push({\n origin: \"bigint\",\n input,\n code: \"too_small\",\n minimum: minimum,\n inclusive: true,\n inst,\n continue: !def.abort,\n });\n }\n if (input > maximum) {\n payload.issues.push({\n origin: \"bigint\",\n input,\n code: \"too_big\",\n maximum,\n inclusive: true,\n inst,\n continue: !def.abort,\n });\n }\n };\n});\nexport const $ZodCheckMaxSize = /*@__PURE__*/ core.$constructor(\"$ZodCheckMaxSize\", (inst, def) => {\n var _a;\n $ZodCheck.init(inst, def);\n (_a = inst._zod.def).when ?? (_a.when = (payload) => {\n const val = payload.value;\n return !util.nullish(val) && val.size !== undefined;\n });\n inst._zod.onattach.push((inst) => {\n const curr = (inst._zod.bag.maximum ?? Number.POSITIVE_INFINITY);\n if (def.maximum < curr)\n inst._zod.bag.maximum = def.maximum;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n const size = input.size;\n if (size <= def.maximum)\n return;\n payload.issues.push({\n origin: util.getSizableOrigin(input),\n code: \"too_big\",\n maximum: def.maximum,\n inclusive: true,\n input,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckMinSize = /*@__PURE__*/ core.$constructor(\"$ZodCheckMinSize\", (inst, def) => {\n var _a;\n $ZodCheck.init(inst, def);\n (_a = inst._zod.def).when ?? (_a.when = (payload) => {\n const val = payload.value;\n return !util.nullish(val) && val.size !== undefined;\n });\n inst._zod.onattach.push((inst) => {\n const curr = (inst._zod.bag.minimum ?? Number.NEGATIVE_INFINITY);\n if (def.minimum > curr)\n inst._zod.bag.minimum = def.minimum;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n const size = input.size;\n if (size >= def.minimum)\n return;\n payload.issues.push({\n origin: util.getSizableOrigin(input),\n code: \"too_small\",\n minimum: def.minimum,\n inclusive: true,\n input,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckSizeEquals = /*@__PURE__*/ core.$constructor(\"$ZodCheckSizeEquals\", (inst, def) => {\n var _a;\n $ZodCheck.init(inst, def);\n (_a = inst._zod.def).when ?? (_a.when = (payload) => {\n const val = payload.value;\n return !util.nullish(val) && val.size !== undefined;\n });\n inst._zod.onattach.push((inst) => {\n const bag = inst._zod.bag;\n bag.minimum = def.size;\n bag.maximum = def.size;\n bag.size = def.size;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n const size = input.size;\n if (size === def.size)\n return;\n const tooBig = size > def.size;\n payload.issues.push({\n origin: util.getSizableOrigin(input),\n ...(tooBig ? { code: \"too_big\", maximum: def.size } : { code: \"too_small\", minimum: def.size }),\n inclusive: true,\n exact: true,\n input: payload.value,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckMaxLength = /*@__PURE__*/ core.$constructor(\"$ZodCheckMaxLength\", (inst, def) => {\n var _a;\n $ZodCheck.init(inst, def);\n (_a = inst._zod.def).when ?? (_a.when = (payload) => {\n const val = payload.value;\n return !util.nullish(val) && val.length !== undefined;\n });\n inst._zod.onattach.push((inst) => {\n const curr = (inst._zod.bag.maximum ?? Number.POSITIVE_INFINITY);\n if (def.maximum < curr)\n inst._zod.bag.maximum = def.maximum;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n const length = input.length;\n if (length <= def.maximum)\n return;\n const origin = util.getLengthableOrigin(input);\n payload.issues.push({\n origin,\n code: \"too_big\",\n maximum: def.maximum,\n inclusive: true,\n input,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckMinLength = /*@__PURE__*/ core.$constructor(\"$ZodCheckMinLength\", (inst, def) => {\n var _a;\n $ZodCheck.init(inst, def);\n (_a = inst._zod.def).when ?? (_a.when = (payload) => {\n const val = payload.value;\n return !util.nullish(val) && val.length !== undefined;\n });\n inst._zod.onattach.push((inst) => {\n const curr = (inst._zod.bag.minimum ?? Number.NEGATIVE_INFINITY);\n if (def.minimum > curr)\n inst._zod.bag.minimum = def.minimum;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n const length = input.length;\n if (length >= def.minimum)\n return;\n const origin = util.getLengthableOrigin(input);\n payload.issues.push({\n origin,\n code: \"too_small\",\n minimum: def.minimum,\n inclusive: true,\n input,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckLengthEquals = /*@__PURE__*/ core.$constructor(\"$ZodCheckLengthEquals\", (inst, def) => {\n var _a;\n $ZodCheck.init(inst, def);\n (_a = inst._zod.def).when ?? (_a.when = (payload) => {\n const val = payload.value;\n return !util.nullish(val) && val.length !== undefined;\n });\n inst._zod.onattach.push((inst) => {\n const bag = inst._zod.bag;\n bag.minimum = def.length;\n bag.maximum = def.length;\n bag.length = def.length;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n const length = input.length;\n if (length === def.length)\n return;\n const origin = util.getLengthableOrigin(input);\n const tooBig = length > def.length;\n payload.issues.push({\n origin,\n ...(tooBig ? { code: \"too_big\", maximum: def.length } : { code: \"too_small\", minimum: def.length }),\n inclusive: true,\n exact: true,\n input: payload.value,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckStringFormat = /*@__PURE__*/ core.$constructor(\"$ZodCheckStringFormat\", (inst, def) => {\n var _a, _b;\n $ZodCheck.init(inst, def);\n inst._zod.onattach.push((inst) => {\n const bag = inst._zod.bag;\n bag.format = def.format;\n if (def.pattern) {\n bag.patterns ?? (bag.patterns = new Set());\n bag.patterns.add(def.pattern);\n }\n });\n if (def.pattern)\n (_a = inst._zod).check ?? (_a.check = (payload) => {\n def.pattern.lastIndex = 0;\n if (def.pattern.test(payload.value))\n return;\n payload.issues.push({\n origin: \"string\",\n code: \"invalid_format\",\n format: def.format,\n input: payload.value,\n ...(def.pattern ? { pattern: def.pattern.toString() } : {}),\n inst,\n continue: !def.abort,\n });\n });\n else\n (_b = inst._zod).check ?? (_b.check = () => { });\n});\nexport const $ZodCheckRegex = /*@__PURE__*/ core.$constructor(\"$ZodCheckRegex\", (inst, def) => {\n $ZodCheckStringFormat.init(inst, def);\n inst._zod.check = (payload) => {\n def.pattern.lastIndex = 0;\n if (def.pattern.test(payload.value))\n return;\n payload.issues.push({\n origin: \"string\",\n code: \"invalid_format\",\n format: \"regex\",\n input: payload.value,\n pattern: def.pattern.toString(),\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckLowerCase = /*@__PURE__*/ core.$constructor(\"$ZodCheckLowerCase\", (inst, def) => {\n def.pattern ?? (def.pattern = regexes.lowercase);\n $ZodCheckStringFormat.init(inst, def);\n});\nexport const $ZodCheckUpperCase = /*@__PURE__*/ core.$constructor(\"$ZodCheckUpperCase\", (inst, def) => {\n def.pattern ?? (def.pattern = regexes.uppercase);\n $ZodCheckStringFormat.init(inst, def);\n});\nexport const $ZodCheckIncludes = /*@__PURE__*/ core.$constructor(\"$ZodCheckIncludes\", (inst, def) => {\n $ZodCheck.init(inst, def);\n const escapedRegex = util.escapeRegex(def.includes);\n const pattern = new RegExp(typeof def.position === \"number\" ? `^.{${def.position}}${escapedRegex}` : escapedRegex);\n def.pattern = pattern;\n inst._zod.onattach.push((inst) => {\n const bag = inst._zod.bag;\n bag.patterns ?? (bag.patterns = new Set());\n bag.patterns.add(pattern);\n });\n inst._zod.check = (payload) => {\n if (payload.value.includes(def.includes, def.position))\n return;\n payload.issues.push({\n origin: \"string\",\n code: \"invalid_format\",\n format: \"includes\",\n includes: def.includes,\n input: payload.value,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckStartsWith = /*@__PURE__*/ core.$constructor(\"$ZodCheckStartsWith\", (inst, def) => {\n $ZodCheck.init(inst, def);\n const pattern = new RegExp(`^${util.escapeRegex(def.prefix)}.*`);\n def.pattern ?? (def.pattern = pattern);\n inst._zod.onattach.push((inst) => {\n const bag = inst._zod.bag;\n bag.patterns ?? (bag.patterns = new Set());\n bag.patterns.add(pattern);\n });\n inst._zod.check = (payload) => {\n if (payload.value.startsWith(def.prefix))\n return;\n payload.issues.push({\n origin: \"string\",\n code: \"invalid_format\",\n format: \"starts_with\",\n prefix: def.prefix,\n input: payload.value,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckEndsWith = /*@__PURE__*/ core.$constructor(\"$ZodCheckEndsWith\", (inst, def) => {\n $ZodCheck.init(inst, def);\n const pattern = new RegExp(`.*${util.escapeRegex(def.suffix)}$`);\n def.pattern ?? (def.pattern = pattern);\n inst._zod.onattach.push((inst) => {\n const bag = inst._zod.bag;\n bag.patterns ?? (bag.patterns = new Set());\n bag.patterns.add(pattern);\n });\n inst._zod.check = (payload) => {\n if (payload.value.endsWith(def.suffix))\n return;\n payload.issues.push({\n origin: \"string\",\n code: \"invalid_format\",\n format: \"ends_with\",\n suffix: def.suffix,\n input: payload.value,\n inst,\n continue: !def.abort,\n });\n };\n});\n///////////////////////////////////\n///// $ZodCheckProperty /////\n///////////////////////////////////\nfunction handleCheckPropertyResult(result, payload, property) {\n if (result.issues.length) {\n payload.issues.push(...util.prefixIssues(property, result.issues));\n }\n}\nexport const $ZodCheckProperty = /*@__PURE__*/ core.$constructor(\"$ZodCheckProperty\", (inst, def) => {\n $ZodCheck.init(inst, def);\n inst._zod.check = (payload) => {\n const result = def.schema._zod.run({\n value: payload.value[def.property],\n issues: [],\n }, {});\n if (result instanceof Promise) {\n return result.then((result) => handleCheckPropertyResult(result, payload, def.property));\n }\n handleCheckPropertyResult(result, payload, def.property);\n return;\n };\n});\nexport const $ZodCheckMimeType = /*@__PURE__*/ core.$constructor(\"$ZodCheckMimeType\", (inst, def) => {\n $ZodCheck.init(inst, def);\n const mimeSet = new Set(def.mime);\n inst._zod.onattach.push((inst) => {\n inst._zod.bag.mime = def.mime;\n });\n inst._zod.check = (payload) => {\n if (mimeSet.has(payload.value.type))\n return;\n payload.issues.push({\n code: \"invalid_value\",\n values: def.mime,\n input: payload.value.type,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckOverwrite = /*@__PURE__*/ core.$constructor(\"$ZodCheckOverwrite\", (inst, def) => {\n $ZodCheck.init(inst, def);\n inst._zod.check = (payload) => {\n payload.value = def.tx(payload.value);\n };\n});\n","export const version = {\n major: 4,\n minor: 4,\n patch: 3,\n};\n","import * as checks from \"./checks.js\";\nimport * as core from \"./core.js\";\nimport { Doc } from \"./doc.js\";\nimport { parse, parseAsync, safeParse, safeParseAsync } from \"./parse.js\";\nimport * as regexes from \"./regexes.js\";\nimport * as util from \"./util.js\";\nimport { version } from \"./versions.js\";\nexport const $ZodType = /*@__PURE__*/ core.$constructor(\"$ZodType\", (inst, def) => {\n var _a;\n inst ?? (inst = {});\n inst._zod.def = def; // set _def property\n inst._zod.bag = inst._zod.bag || {}; // initialize _bag object\n inst._zod.version = version;\n const checks = [...(inst._zod.def.checks ?? [])];\n // if inst is itself a checks.$ZodCheck, run it as a check\n if (inst._zod.traits.has(\"$ZodCheck\")) {\n checks.unshift(inst);\n }\n for (const ch of checks) {\n for (const fn of ch._zod.onattach) {\n fn(inst);\n }\n }\n if (checks.length === 0) {\n // deferred initializer\n // inst._zod.parse is not yet defined\n (_a = inst._zod).deferred ?? (_a.deferred = []);\n inst._zod.deferred?.push(() => {\n inst._zod.run = inst._zod.parse;\n });\n }\n else {\n const runChecks = (payload, checks, ctx) => {\n let isAborted = util.aborted(payload);\n let asyncResult;\n for (const ch of checks) {\n if (ch._zod.def.when) {\n if (util.explicitlyAborted(payload))\n continue;\n const shouldRun = ch._zod.def.when(payload);\n if (!shouldRun)\n continue;\n }\n else if (isAborted) {\n continue;\n }\n const currLen = payload.issues.length;\n const _ = ch._zod.check(payload);\n if (_ instanceof Promise && ctx?.async === false) {\n throw new core.$ZodAsyncError();\n }\n if (asyncResult || _ instanceof Promise) {\n asyncResult = (asyncResult ?? Promise.resolve()).then(async () => {\n await _;\n const nextLen = payload.issues.length;\n if (nextLen === currLen)\n return;\n if (!isAborted)\n isAborted = util.aborted(payload, currLen);\n });\n }\n else {\n const nextLen = payload.issues.length;\n if (nextLen === currLen)\n continue;\n if (!isAborted)\n isAborted = util.aborted(payload, currLen);\n }\n }\n if (asyncResult) {\n return asyncResult.then(() => {\n return payload;\n });\n }\n return payload;\n };\n const handleCanaryResult = (canary, payload, ctx) => {\n // abort if the canary is aborted\n if (util.aborted(canary)) {\n canary.aborted = true;\n return canary;\n }\n // run checks first, then\n const checkResult = runChecks(payload, checks, ctx);\n if (checkResult instanceof Promise) {\n if (ctx.async === false)\n throw new core.$ZodAsyncError();\n return checkResult.then((checkResult) => inst._zod.parse(checkResult, ctx));\n }\n return inst._zod.parse(checkResult, ctx);\n };\n inst._zod.run = (payload, ctx) => {\n if (ctx.skipChecks) {\n return inst._zod.parse(payload, ctx);\n }\n if (ctx.direction === \"backward\") {\n // run canary\n // initial pass (no checks)\n const canary = inst._zod.parse({ value: payload.value, issues: [] }, { ...ctx, skipChecks: true });\n if (canary instanceof Promise) {\n return canary.then((canary) => {\n return handleCanaryResult(canary, payload, ctx);\n });\n }\n return handleCanaryResult(canary, payload, ctx);\n }\n // forward\n const result = inst._zod.parse(payload, ctx);\n if (result instanceof Promise) {\n if (ctx.async === false)\n throw new core.$ZodAsyncError();\n return result.then((result) => runChecks(result, checks, ctx));\n }\n return runChecks(result, checks, ctx);\n };\n }\n // Lazy initialize ~standard to avoid creating objects for every schema\n util.defineLazy(inst, \"~standard\", () => ({\n validate: (value) => {\n try {\n const r = safeParse(inst, value);\n return r.success ? { value: r.data } : { issues: r.error?.issues };\n }\n catch (_) {\n return safeParseAsync(inst, value).then((r) => (r.success ? { value: r.data } : { issues: r.error?.issues }));\n }\n },\n vendor: \"zod\",\n version: 1,\n }));\n});\nexport { clone } from \"./util.js\";\nexport const $ZodString = /*@__PURE__*/ core.$constructor(\"$ZodString\", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.pattern = [...(inst?._zod.bag?.patterns ?? [])].pop() ?? regexes.string(inst._zod.bag);\n inst._zod.parse = (payload, _) => {\n if (def.coerce)\n try {\n payload.value = String(payload.value);\n }\n catch (_) { }\n if (typeof payload.value === \"string\")\n return payload;\n payload.issues.push({\n expected: \"string\",\n code: \"invalid_type\",\n input: payload.value,\n inst,\n });\n return payload;\n };\n});\nexport const $ZodStringFormat = /*@__PURE__*/ core.$constructor(\"$ZodStringFormat\", (inst, def) => {\n // check initialization must come first\n checks.$ZodCheckStringFormat.init(inst, def);\n $ZodString.init(inst, def);\n});\nexport const $ZodGUID = /*@__PURE__*/ core.$constructor(\"$ZodGUID\", (inst, def) => {\n def.pattern ?? (def.pattern = regexes.guid);\n $ZodStringFormat.init(inst, def);\n});\nexport const $ZodUUID = /*@__PURE__*/ core.$constructor(\"$ZodUUID\", (inst, def) => {\n if (def.version) {\n const versionMap = {\n v1: 1,\n v2: 2,\n v3: 3,\n v4: 4,\n v5: 5,\n v6: 6,\n v7: 7,\n v8: 8,\n };\n const v = versionMap[def.version];\n if (v === undefined)\n throw new Error(`Invalid UUID version: \"${def.version}\"`);\n def.pattern ?? (def.pattern = regexes.uuid(v));\n }\n else\n def.pattern ?? (def.pattern = regexes.uuid());\n $ZodStringFormat.init(inst, def);\n});\nexport const $ZodEmail = /*@__PURE__*/ core.$constructor(\"$ZodEmail\", (inst, def) => {\n def.pattern ?? (def.pattern = regexes.email);\n $ZodStringFormat.init(inst, def);\n});\nexport const $ZodURL = /*@__PURE__*/ core.$constructor(\"$ZodURL\", (inst, def) => {\n $ZodStringFormat.init(inst, def);\n inst._zod.check = (payload) => {\n try {\n // Trim whitespace from input\n const trimmed = payload.value.trim();\n // When normalize is off, require :// for http/https URLs\n // This prevents strings like \"http:example.com\" or \"https:/path\" from being silently accepted\n if (!def.normalize && def.protocol?.source === regexes.httpProtocol.source) {\n if (!/^https?:\\/\\//i.test(trimmed)) {\n payload.issues.push({\n code: \"invalid_format\",\n format: \"url\",\n note: \"Invalid URL format\",\n input: payload.value,\n inst,\n continue: !def.abort,\n });\n return;\n }\n }\n // @ts-ignore\n const url = new URL(trimmed);\n if (def.hostname) {\n def.hostname.lastIndex = 0;\n if (!def.hostname.test(url.hostname)) {\n payload.issues.push({\n code: \"invalid_format\",\n format: \"url\",\n note: \"Invalid hostname\",\n pattern: def.hostname.source,\n input: payload.value,\n inst,\n continue: !def.abort,\n });\n }\n }\n if (def.protocol) {\n def.protocol.lastIndex = 0;\n if (!def.protocol.test(url.protocol.endsWith(\":\") ? url.protocol.slice(0, -1) : url.protocol)) {\n payload.issues.push({\n code: \"invalid_format\",\n format: \"url\",\n note: \"Invalid protocol\",\n pattern: def.protocol.source,\n input: payload.value,\n inst,\n continue: !def.abort,\n });\n }\n }\n // Set the output value based on normalize flag\n if (def.normalize) {\n // Use normalized URL\n payload.value = url.href;\n }\n else {\n // Preserve the original input (trimmed)\n payload.value = trimmed;\n }\n return;\n }\n catch (_) {\n payload.issues.push({\n code: \"invalid_format\",\n format: \"url\",\n input: payload.value,\n inst,\n continue: !def.abort,\n });\n }\n };\n});\nexport const $ZodEmoji = /*@__PURE__*/ core.$constructor(\"$ZodEmoji\", (inst, def) => {\n def.pattern ?? (def.pattern = regexes.emoji());\n $ZodStringFormat.init(inst, def);\n});\nexport const $ZodNanoID = /*@__PURE__*/ core.$constructor(\"$ZodNanoID\", (inst, def) => {\n def.pattern ?? (def.pattern = regexes.nanoid);\n $ZodStringFormat.init(inst, def);\n});\n/**\n * @deprecated CUID v1 is deprecated by its authors due to information leakage\n * (timestamps embedded in the id). Use {@link $ZodCUID2} instead.\n * See https://github.com/paralleldrive/cuid.\n */\nexport const $ZodCUID = /*@__PURE__*/ core.$constructor(\"$ZodCUID\", (inst, def) => {\n def.pattern ?? (def.pattern = regexes.cuid);\n $ZodStringFormat.init(inst, def);\n});\nexport const $ZodCUID2 = /*@__PURE__*/ core.$constructor(\"$ZodCUID2\", (inst, def) => {\n def.pattern ?? (def.pattern = regexes.cuid2);\n $ZodStringFormat.init(inst, def);\n});\nexport const $ZodULID = /*@__PURE__*/ core.$constructor(\"$ZodULID\", (inst, def) => {\n def.pattern ?? (def.pattern = regexes.ulid);\n $ZodStringFormat.init(inst, def);\n});\nexport const $ZodXID = /*@__PURE__*/ core.$constructor(\"$ZodXID\", (inst, def) => {\n def.pattern ?? (def.pattern = regexes.xid);\n $ZodStringFormat.init(inst, def);\n});\nexport const $ZodKSUID = /*@__PURE__*/ core.$constructor(\"$ZodKSUID\", (inst, def) => {\n def.pattern ?? (def.pattern = regexes.ksuid);\n $ZodStringFormat.init(inst, def);\n});\nexport const $ZodISODateTime = /*@__PURE__*/ core.$constructor(\"$ZodISODateTime\", (inst, def) => {\n def.pattern ?? (def.pattern = regexes.datetime(def));\n $ZodStringFormat.init(inst, def);\n});\nexport const $ZodISODate = /*@__PURE__*/ core.$constructor(\"$ZodISODate\", (inst, def) => {\n def.pattern ?? (def.pattern = regexes.date);\n $ZodStringFormat.init(inst, def);\n});\nexport const $ZodISOTime = /*@__PURE__*/ core.$constructor(\"$ZodISOTime\", (inst, def) => {\n def.pattern ?? (def.pattern = regexes.time(def));\n $ZodStringFormat.init(inst, def);\n});\nexport const $ZodISODuration = /*@__PURE__*/ core.$constructor(\"$ZodISODuration\", (inst, def) => {\n def.pattern ?? (def.pattern = regexes.duration);\n $ZodStringFormat.init(inst, def);\n});\nexport const $ZodIPv4 = /*@__PURE__*/ core.$constructor(\"$ZodIPv4\", (inst, def) => {\n def.pattern ?? (def.pattern = regexes.ipv4);\n $ZodStringFormat.init(inst, def);\n inst._zod.bag.format = `ipv4`;\n});\nexport const $ZodIPv6 = /*@__PURE__*/ core.$constructor(\"$ZodIPv6\", (inst, def) => {\n def.pattern ?? (def.pattern = regexes.ipv6);\n $ZodStringFormat.init(inst, def);\n inst._zod.bag.format = `ipv6`;\n inst._zod.check = (payload) => {\n try {\n // @ts-ignore\n new URL(`http://[${payload.value}]`);\n // return;\n }\n catch {\n payload.issues.push({\n code: \"invalid_format\",\n format: \"ipv6\",\n input: payload.value,\n inst,\n continue: !def.abort,\n });\n }\n };\n});\nexport const $ZodMAC = /*@__PURE__*/ core.$constructor(\"$ZodMAC\", (inst, def) => {\n def.pattern ?? (def.pattern = regexes.mac(def.delimiter));\n $ZodStringFormat.init(inst, def);\n inst._zod.bag.format = `mac`;\n});\nexport const $ZodCIDRv4 = /*@__PURE__*/ core.$constructor(\"$ZodCIDRv4\", (inst, def) => {\n def.pattern ?? (def.pattern = regexes.cidrv4);\n $ZodStringFormat.init(inst, def);\n});\nexport const $ZodCIDRv6 = /*@__PURE__*/ core.$constructor(\"$ZodCIDRv6\", (inst, def) => {\n def.pattern ?? (def.pattern = regexes.cidrv6); // not used for validation\n $ZodStringFormat.init(inst, def);\n inst._zod.check = (payload) => {\n const parts = payload.value.split(\"/\");\n try {\n if (parts.length !== 2)\n throw new Error();\n const [address, prefix] = parts;\n if (!prefix)\n throw new Error();\n const prefixNum = Number(prefix);\n if (`${prefixNum}` !== prefix)\n throw new Error();\n if (prefixNum < 0 || prefixNum > 128)\n throw new Error();\n // @ts-ignore\n new URL(`http://[${address}]`);\n }\n catch {\n payload.issues.push({\n code: \"invalid_format\",\n format: \"cidrv6\",\n input: payload.value,\n inst,\n continue: !def.abort,\n });\n }\n };\n});\n////////////////////////////// ZodBase64 //////////////////////////////\nexport function isValidBase64(data) {\n if (data === \"\")\n return true;\n // atob ignores whitespace, so reject it up front.\n if (/\\s/.test(data))\n return false;\n if (data.length % 4 !== 0)\n return false;\n try {\n // @ts-ignore\n atob(data);\n return true;\n }\n catch {\n return false;\n }\n}\nexport const $ZodBase64 = /*@__PURE__*/ core.$constructor(\"$ZodBase64\", (inst, def) => {\n def.pattern ?? (def.pattern = regexes.base64);\n $ZodStringFormat.init(inst, def);\n inst._zod.bag.contentEncoding = \"base64\";\n inst._zod.check = (payload) => {\n if (isValidBase64(payload.value))\n return;\n payload.issues.push({\n code: \"invalid_format\",\n format: \"base64\",\n input: payload.value,\n inst,\n continue: !def.abort,\n });\n };\n});\n////////////////////////////// ZodBase64 //////////////////////////////\nexport function isValidBase64URL(data) {\n if (!regexes.base64url.test(data))\n return false;\n const base64 = data.replace(/[-_]/g, (c) => (c === \"-\" ? \"+\" : \"/\"));\n const padded = base64.padEnd(Math.ceil(base64.length / 4) * 4, \"=\");\n return isValidBase64(padded);\n}\nexport const $ZodBase64URL = /*@__PURE__*/ core.$constructor(\"$ZodBase64URL\", (inst, def) => {\n def.pattern ?? (def.pattern = regexes.base64url);\n $ZodStringFormat.init(inst, def);\n inst._zod.bag.contentEncoding = \"base64url\";\n inst._zod.check = (payload) => {\n if (isValidBase64URL(payload.value))\n return;\n payload.issues.push({\n code: \"invalid_format\",\n format: \"base64url\",\n input: payload.value,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodE164 = /*@__PURE__*/ core.$constructor(\"$ZodE164\", (inst, def) => {\n def.pattern ?? (def.pattern = regexes.e164);\n $ZodStringFormat.init(inst, def);\n});\n////////////////////////////// ZodJWT //////////////////////////////\nexport function isValidJWT(token, algorithm = null) {\n try {\n const tokensParts = token.split(\".\");\n if (tokensParts.length !== 3)\n return false;\n const [header] = tokensParts;\n if (!header)\n return false;\n // @ts-ignore\n const parsedHeader = JSON.parse(atob(header));\n if (\"typ\" in parsedHeader && parsedHeader?.typ !== \"JWT\")\n return false;\n if (!parsedHeader.alg)\n return false;\n if (algorithm && (!(\"alg\" in parsedHeader) || parsedHeader.alg !== algorithm))\n return false;\n return true;\n }\n catch {\n return false;\n }\n}\nexport const $ZodJWT = /*@__PURE__*/ core.$constructor(\"$ZodJWT\", (inst, def) => {\n $ZodStringFormat.init(inst, def);\n inst._zod.check = (payload) => {\n if (isValidJWT(payload.value, def.alg))\n return;\n payload.issues.push({\n code: \"invalid_format\",\n format: \"jwt\",\n input: payload.value,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCustomStringFormat = /*@__PURE__*/ core.$constructor(\"$ZodCustomStringFormat\", (inst, def) => {\n $ZodStringFormat.init(inst, def);\n inst._zod.check = (payload) => {\n if (def.fn(payload.value))\n return;\n payload.issues.push({\n code: \"invalid_format\",\n format: def.format,\n input: payload.value,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodNumber = /*@__PURE__*/ core.$constructor(\"$ZodNumber\", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.pattern = inst._zod.bag.pattern ?? regexes.number;\n inst._zod.parse = (payload, _ctx) => {\n if (def.coerce)\n try {\n payload.value = Number(payload.value);\n }\n catch (_) { }\n const input = payload.value;\n if (typeof input === \"number\" && !Number.isNaN(input) && Number.isFinite(input)) {\n return payload;\n }\n const received = typeof input === \"number\"\n ? Number.isNaN(input)\n ? \"NaN\"\n : !Number.isFinite(input)\n ? \"Infinity\"\n : undefined\n : undefined;\n payload.issues.push({\n expected: \"number\",\n code: \"invalid_type\",\n input,\n inst,\n ...(received ? { received } : {}),\n });\n return payload;\n };\n});\nexport const $ZodNumberFormat = /*@__PURE__*/ core.$constructor(\"$ZodNumberFormat\", (inst, def) => {\n checks.$ZodCheckNumberFormat.init(inst, def);\n $ZodNumber.init(inst, def); // no format checks\n});\nexport const $ZodBoolean = /*@__PURE__*/ core.$constructor(\"$ZodBoolean\", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.pattern = regexes.boolean;\n inst._zod.parse = (payload, _ctx) => {\n if (def.coerce)\n try {\n payload.value = Boolean(payload.value);\n }\n catch (_) { }\n const input = payload.value;\n if (typeof input === \"boolean\")\n return payload;\n payload.issues.push({\n expected: \"boolean\",\n code: \"invalid_type\",\n input,\n inst,\n });\n return payload;\n };\n});\nexport const $ZodBigInt = /*@__PURE__*/ core.$constructor(\"$ZodBigInt\", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.pattern = regexes.bigint;\n inst._zod.parse = (payload, _ctx) => {\n if (def.coerce)\n try {\n payload.value = BigInt(payload.value);\n }\n catch (_) { }\n if (typeof payload.value === \"bigint\")\n return payload;\n payload.issues.push({\n expected: \"bigint\",\n code: \"invalid_type\",\n input: payload.value,\n inst,\n });\n return payload;\n };\n});\nexport const $ZodBigIntFormat = /*@__PURE__*/ core.$constructor(\"$ZodBigIntFormat\", (inst, def) => {\n checks.$ZodCheckBigIntFormat.init(inst, def);\n $ZodBigInt.init(inst, def); // no format checks\n});\nexport const $ZodSymbol = /*@__PURE__*/ core.$constructor(\"$ZodSymbol\", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.parse = (payload, _ctx) => {\n const input = payload.value;\n if (typeof input === \"symbol\")\n return payload;\n payload.issues.push({\n expected: \"symbol\",\n code: \"invalid_type\",\n input,\n inst,\n });\n return payload;\n };\n});\nexport const $ZodUndefined = /*@__PURE__*/ core.$constructor(\"$ZodUndefined\", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.pattern = regexes.undefined;\n inst._zod.values = new Set([undefined]);\n inst._zod.parse = (payload, _ctx) => {\n const input = payload.value;\n if (typeof input === \"undefined\")\n return payload;\n payload.issues.push({\n expected: \"undefined\",\n code: \"invalid_type\",\n input,\n inst,\n });\n return payload;\n };\n});\nexport const $ZodNull = /*@__PURE__*/ core.$constructor(\"$ZodNull\", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.pattern = regexes.null;\n inst._zod.values = new Set([null]);\n inst._zod.parse = (payload, _ctx) => {\n const input = payload.value;\n if (input === null)\n return payload;\n payload.issues.push({\n expected: \"null\",\n code: \"invalid_type\",\n input,\n inst,\n });\n return payload;\n };\n});\nexport const $ZodAny = /*@__PURE__*/ core.$constructor(\"$ZodAny\", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.parse = (payload) => payload;\n});\nexport const $ZodUnknown = /*@__PURE__*/ core.$constructor(\"$ZodUnknown\", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.parse = (payload) => payload;\n});\nexport const $ZodNever = /*@__PURE__*/ core.$constructor(\"$ZodNever\", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.parse = (payload, _ctx) => {\n payload.issues.push({\n expected: \"never\",\n code: \"invalid_type\",\n input: payload.value,\n inst,\n });\n return payload;\n };\n});\nexport const $ZodVoid = /*@__PURE__*/ core.$constructor(\"$ZodVoid\", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.parse = (payload, _ctx) => {\n const input = payload.value;\n if (typeof input === \"undefined\")\n return payload;\n payload.issues.push({\n expected: \"void\",\n code: \"invalid_type\",\n input,\n inst,\n });\n return payload;\n };\n});\nexport const $ZodDate = /*@__PURE__*/ core.$constructor(\"$ZodDate\", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.parse = (payload, _ctx) => {\n if (def.coerce) {\n try {\n payload.value = new Date(payload.value);\n }\n catch (_err) { }\n }\n const input = payload.value;\n const isDate = input instanceof Date;\n const isValidDate = isDate && !Number.isNaN(input.getTime());\n if (isValidDate)\n return payload;\n payload.issues.push({\n expected: \"date\",\n code: \"invalid_type\",\n input,\n ...(isDate ? { received: \"Invalid Date\" } : {}),\n inst,\n });\n return payload;\n };\n});\nfunction handleArrayResult(result, final, index) {\n if (result.issues.length) {\n final.issues.push(...util.prefixIssues(index, result.issues));\n }\n final.value[index] = result.value;\n}\nexport const $ZodArray = /*@__PURE__*/ core.$constructor(\"$ZodArray\", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.parse = (payload, ctx) => {\n const input = payload.value;\n if (!Array.isArray(input)) {\n payload.issues.push({\n expected: \"array\",\n code: \"invalid_type\",\n input,\n inst,\n });\n return payload;\n }\n payload.value = Array(input.length);\n const proms = [];\n for (let i = 0; i < input.length; i++) {\n const item = input[i];\n const result = def.element._zod.run({\n value: item,\n issues: [],\n }, ctx);\n if (result instanceof Promise) {\n proms.push(result.then((result) => handleArrayResult(result, payload, i)));\n }\n else {\n handleArrayResult(result, payload, i);\n }\n }\n if (proms.length) {\n return Promise.all(proms).then(() => payload);\n }\n return payload; //handleArrayResultsAsync(parseResults, final);\n };\n});\nfunction handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {\n const isPresent = key in input;\n if (result.issues.length) {\n // For optional-in/out schemas, ignore errors on absent keys.\n if (isOptionalIn && isOptionalOut && !isPresent) {\n return;\n }\n final.issues.push(...util.prefixIssues(key, result.issues));\n }\n if (!isPresent && !isOptionalIn) {\n if (!result.issues.length) {\n final.issues.push({\n code: \"invalid_type\",\n expected: \"nonoptional\",\n input: undefined,\n path: [key],\n });\n }\n return;\n }\n if (result.value === undefined) {\n if (isPresent) {\n final.value[key] = undefined;\n }\n }\n else {\n final.value[key] = result.value;\n }\n}\nfunction normalizeDef(def) {\n const keys = Object.keys(def.shape);\n for (const k of keys) {\n if (!def.shape?.[k]?._zod?.traits?.has(\"$ZodType\")) {\n throw new Error(`Invalid element at key \"${k}\": expected a Zod schema`);\n }\n }\n const okeys = util.optionalKeys(def.shape);\n return {\n ...def,\n keys,\n keySet: new Set(keys),\n numKeys: keys.length,\n optionalKeys: new Set(okeys),\n };\n}\nfunction handleCatchall(proms, input, payload, ctx, def, inst) {\n const unrecognized = [];\n const keySet = def.keySet;\n const _catchall = def.catchall._zod;\n const t = _catchall.def.type;\n const isOptionalIn = _catchall.optin === \"optional\";\n const isOptionalOut = _catchall.optout === \"optional\";\n for (const key in input) {\n // skip __proto__ so it can't replace the result prototype via the\n // assignment setter on the plain {} we build into\n if (key === \"__proto__\")\n continue;\n if (keySet.has(key))\n continue;\n if (t === \"never\") {\n unrecognized.push(key);\n continue;\n }\n const r = _catchall.run({ value: input[key], issues: [] }, ctx);\n if (r instanceof Promise) {\n proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut)));\n }\n else {\n handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);\n }\n }\n if (unrecognized.length) {\n payload.issues.push({\n code: \"unrecognized_keys\",\n keys: unrecognized,\n input,\n inst,\n });\n }\n if (!proms.length)\n return payload;\n return Promise.all(proms).then(() => {\n return payload;\n });\n}\nexport const $ZodObject = /*@__PURE__*/ core.$constructor(\"$ZodObject\", (inst, def) => {\n // requires cast because technically $ZodObject doesn't extend\n $ZodType.init(inst, def);\n // const sh = def.shape;\n const desc = Object.getOwnPropertyDescriptor(def, \"shape\");\n if (!desc?.get) {\n const sh = def.shape;\n Object.defineProperty(def, \"shape\", {\n get: () => {\n const newSh = { ...sh };\n Object.defineProperty(def, \"shape\", {\n value: newSh,\n });\n return newSh;\n },\n });\n }\n const _normalized = util.cached(() => normalizeDef(def));\n util.defineLazy(inst._zod, \"propValues\", () => {\n const shape = def.shape;\n const propValues = {};\n for (const key in shape) {\n const field = shape[key]._zod;\n if (field.values) {\n propValues[key] ?? (propValues[key] = new Set());\n for (const v of field.values)\n propValues[key].add(v);\n }\n }\n return propValues;\n });\n const isObject = util.isObject;\n const catchall = def.catchall;\n let value;\n inst._zod.parse = (payload, ctx) => {\n value ?? (value = _normalized.value);\n const input = payload.value;\n if (!isObject(input)) {\n payload.issues.push({\n expected: \"object\",\n code: \"invalid_type\",\n input,\n inst,\n });\n return payload;\n }\n payload.value = {};\n const proms = [];\n const shape = value.shape;\n for (const key of value.keys) {\n const el = shape[key];\n const isOptionalIn = el._zod.optin === \"optional\";\n const isOptionalOut = el._zod.optout === \"optional\";\n const r = el._zod.run({ value: input[key], issues: [] }, ctx);\n if (r instanceof Promise) {\n proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut)));\n }\n else {\n handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);\n }\n }\n if (!catchall) {\n return proms.length ? Promise.all(proms).then(() => payload) : payload;\n }\n return handleCatchall(proms, input, payload, ctx, _normalized.value, inst);\n };\n});\nexport const $ZodObjectJIT = /*@__PURE__*/ core.$constructor(\"$ZodObjectJIT\", (inst, def) => {\n // requires cast because technically $ZodObject doesn't extend\n $ZodObject.init(inst, def);\n const superParse = inst._zod.parse;\n const _normalized = util.cached(() => normalizeDef(def));\n const generateFastpass = (shape) => {\n const doc = new Doc([\"shape\", \"payload\", \"ctx\"]);\n const normalized = _normalized.value;\n const parseStr = (key) => {\n const k = util.esc(key);\n return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;\n };\n doc.write(`const input = payload.value;`);\n const ids = Object.create(null);\n let counter = 0;\n for (const key of normalized.keys) {\n ids[key] = `key_${counter++}`;\n }\n // A: preserve key order {\n doc.write(`const newResult = {};`);\n for (const key of normalized.keys) {\n const id = ids[key];\n const k = util.esc(key);\n const schema = shape[key];\n const isOptionalIn = schema?._zod?.optin === \"optional\";\n const isOptionalOut = schema?._zod?.optout === \"optional\";\n doc.write(`const ${id} = ${parseStr(key)};`);\n if (isOptionalIn && isOptionalOut) {\n // For optional-in/out schemas, ignore errors on absent keys\n doc.write(`\n if (${id}.issues.length) {\n if (${k} in input) {\n payload.issues = payload.issues.concat(${id}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${k}, ...iss.path] : [${k}]\n })));\n }\n }\n \n if (${id}.value === undefined) {\n if (${k} in input) {\n newResult[${k}] = undefined;\n }\n } else {\n newResult[${k}] = ${id}.value;\n }\n \n `);\n }\n else if (!isOptionalIn) {\n doc.write(`\n const ${id}_present = ${k} in input;\n if (${id}.issues.length) {\n payload.issues = payload.issues.concat(${id}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${k}, ...iss.path] : [${k}]\n })));\n }\n if (!${id}_present && !${id}.issues.length) {\n payload.issues.push({\n code: \"invalid_type\",\n expected: \"nonoptional\",\n input: undefined,\n path: [${k}]\n });\n }\n\n if (${id}_present) {\n if (${id}.value === undefined) {\n newResult[${k}] = undefined;\n } else {\n newResult[${k}] = ${id}.value;\n }\n }\n\n `);\n }\n else {\n doc.write(`\n if (${id}.issues.length) {\n payload.issues = payload.issues.concat(${id}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${k}, ...iss.path] : [${k}]\n })));\n }\n \n if (${id}.value === undefined) {\n if (${k} in input) {\n newResult[${k}] = undefined;\n }\n } else {\n newResult[${k}] = ${id}.value;\n }\n \n `);\n }\n }\n doc.write(`payload.value = newResult;`);\n doc.write(`return payload;`);\n const fn = doc.compile();\n return (payload, ctx) => fn(shape, payload, ctx);\n };\n let fastpass;\n const isObject = util.isObject;\n const jit = !core.globalConfig.jitless;\n const allowsEval = util.allowsEval;\n const fastEnabled = jit && allowsEval.value; // && !def.catchall;\n const catchall = def.catchall;\n let value;\n inst._zod.parse = (payload, ctx) => {\n value ?? (value = _normalized.value);\n const input = payload.value;\n if (!isObject(input)) {\n payload.issues.push({\n expected: \"object\",\n code: \"invalid_type\",\n input,\n inst,\n });\n return payload;\n }\n if (jit && fastEnabled && ctx?.async === false && ctx.jitless !== true) {\n // always synchronous\n if (!fastpass)\n fastpass = generateFastpass(def.shape);\n payload = fastpass(payload, ctx);\n if (!catchall)\n return payload;\n return handleCatchall([], input, payload, ctx, value, inst);\n }\n return superParse(payload, ctx);\n };\n});\nfunction handleUnionResults(results, final, inst, ctx) {\n for (const result of results) {\n if (result.issues.length === 0) {\n final.value = result.value;\n return final;\n }\n }\n const nonaborted = results.filter((r) => !util.aborted(r));\n if (nonaborted.length === 1) {\n final.value = nonaborted[0].value;\n return nonaborted[0];\n }\n final.issues.push({\n code: \"invalid_union\",\n input: final.value,\n inst,\n errors: results.map((result) => result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config()))),\n });\n return final;\n}\nexport const $ZodUnion = /*@__PURE__*/ core.$constructor(\"$ZodUnion\", (inst, def) => {\n $ZodType.init(inst, def);\n util.defineLazy(inst._zod, \"optin\", () => def.options.some((o) => o._zod.optin === \"optional\") ? \"optional\" : undefined);\n util.defineLazy(inst._zod, \"optout\", () => def.options.some((o) => o._zod.optout === \"optional\") ? \"optional\" : undefined);\n util.defineLazy(inst._zod, \"values\", () => {\n if (def.options.every((o) => o._zod.values)) {\n return new Set(def.options.flatMap((option) => Array.from(option._zod.values)));\n }\n return undefined;\n });\n util.defineLazy(inst._zod, \"pattern\", () => {\n if (def.options.every((o) => o._zod.pattern)) {\n const patterns = def.options.map((o) => o._zod.pattern);\n return new RegExp(`^(${patterns.map((p) => util.cleanRegex(p.source)).join(\"|\")})$`);\n }\n return undefined;\n });\n const first = def.options.length === 1 ? def.options[0]._zod.run : null;\n inst._zod.parse = (payload, ctx) => {\n if (first) {\n return first(payload, ctx);\n }\n let async = false;\n const results = [];\n for (const option of def.options) {\n const result = option._zod.run({\n value: payload.value,\n issues: [],\n }, ctx);\n if (result instanceof Promise) {\n results.push(result);\n async = true;\n }\n else {\n if (result.issues.length === 0)\n return result;\n results.push(result);\n }\n }\n if (!async)\n return handleUnionResults(results, payload, inst, ctx);\n return Promise.all(results).then((results) => {\n return handleUnionResults(results, payload, inst, ctx);\n });\n };\n});\nfunction handleExclusiveUnionResults(results, final, inst, ctx) {\n const successes = results.filter((r) => r.issues.length === 0);\n if (successes.length === 1) {\n final.value = successes[0].value;\n return final;\n }\n if (successes.length === 0) {\n // No matches - same as regular union\n final.issues.push({\n code: \"invalid_union\",\n input: final.value,\n inst,\n errors: results.map((result) => result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config()))),\n });\n }\n else {\n // Multiple matches - exclusive union failure\n final.issues.push({\n code: \"invalid_union\",\n input: final.value,\n inst,\n errors: [],\n inclusive: false,\n });\n }\n return final;\n}\nexport const $ZodXor = /*@__PURE__*/ core.$constructor(\"$ZodXor\", (inst, def) => {\n $ZodUnion.init(inst, def);\n def.inclusive = false;\n const first = def.options.length === 1 ? def.options[0]._zod.run : null;\n inst._zod.parse = (payload, ctx) => {\n if (first) {\n return first(payload, ctx);\n }\n let async = false;\n const results = [];\n for (const option of def.options) {\n const result = option._zod.run({\n value: payload.value,\n issues: [],\n }, ctx);\n if (result instanceof Promise) {\n results.push(result);\n async = true;\n }\n else {\n results.push(result);\n }\n }\n if (!async)\n return handleExclusiveUnionResults(results, payload, inst, ctx);\n return Promise.all(results).then((results) => {\n return handleExclusiveUnionResults(results, payload, inst, ctx);\n });\n };\n});\nexport const $ZodDiscriminatedUnion = \n/*@__PURE__*/\ncore.$constructor(\"$ZodDiscriminatedUnion\", (inst, def) => {\n def.inclusive = false;\n $ZodUnion.init(inst, def);\n const _super = inst._zod.parse;\n util.defineLazy(inst._zod, \"propValues\", () => {\n const propValues = {};\n for (const option of def.options) {\n const pv = option._zod.propValues;\n if (!pv || Object.keys(pv).length === 0)\n throw new Error(`Invalid discriminated union option at index \"${def.options.indexOf(option)}\"`);\n for (const [k, v] of Object.entries(pv)) {\n if (!propValues[k])\n propValues[k] = new Set();\n for (const val of v) {\n propValues[k].add(val);\n }\n }\n }\n return propValues;\n });\n const disc = util.cached(() => {\n const opts = def.options;\n const map = new Map();\n for (const o of opts) {\n const values = o._zod.propValues?.[def.discriminator];\n if (!values || values.size === 0)\n throw new Error(`Invalid discriminated union option at index \"${def.options.indexOf(o)}\"`);\n for (const v of values) {\n if (map.has(v)) {\n throw new Error(`Duplicate discriminator value \"${String(v)}\"`);\n }\n map.set(v, o);\n }\n }\n return map;\n });\n inst._zod.parse = (payload, ctx) => {\n const input = payload.value;\n if (!util.isObject(input)) {\n payload.issues.push({\n code: \"invalid_type\",\n expected: \"object\",\n input,\n inst,\n });\n return payload;\n }\n const opt = disc.value.get(input?.[def.discriminator]);\n if (opt) {\n return opt._zod.run(payload, ctx);\n }\n // Fall back to union matching when the fast discriminator path fails:\n // - explicitly enabled via unionFallback, or\n // - during backward direction (encode), since codec-based discriminators\n // have different values in forward vs backward directions\n if (def.unionFallback || ctx.direction === \"backward\") {\n return _super(payload, ctx);\n }\n // no matching discriminator\n payload.issues.push({\n code: \"invalid_union\",\n errors: [],\n note: \"No matching discriminator\",\n discriminator: def.discriminator,\n options: Array.from(disc.value.keys()),\n input,\n path: [def.discriminator],\n inst,\n });\n return payload;\n };\n});\nexport const $ZodIntersection = /*@__PURE__*/ core.$constructor(\"$ZodIntersection\", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.parse = (payload, ctx) => {\n const input = payload.value;\n const left = def.left._zod.run({ value: input, issues: [] }, ctx);\n const right = def.right._zod.run({ value: input, issues: [] }, ctx);\n const async = left instanceof Promise || right instanceof Promise;\n if (async) {\n return Promise.all([left, right]).then(([left, right]) => {\n return handleIntersectionResults(payload, left, right);\n });\n }\n return handleIntersectionResults(payload, left, right);\n };\n});\nfunction mergeValues(a, b) {\n // const aType = parse.t(a);\n // const bType = parse.t(b);\n if (a === b) {\n return { valid: true, data: a };\n }\n if (a instanceof Date && b instanceof Date && +a === +b) {\n return { valid: true, data: a };\n }\n if (util.isPlainObject(a) && util.isPlainObject(b)) {\n const bKeys = Object.keys(b);\n const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1);\n const newObj = { ...a, ...b };\n for (const key of sharedKeys) {\n const sharedValue = mergeValues(a[key], b[key]);\n if (!sharedValue.valid) {\n return {\n valid: false,\n mergeErrorPath: [key, ...sharedValue.mergeErrorPath],\n };\n }\n newObj[key] = sharedValue.data;\n }\n return { valid: true, data: newObj };\n }\n if (Array.isArray(a) && Array.isArray(b)) {\n if (a.length !== b.length) {\n return { valid: false, mergeErrorPath: [] };\n }\n const newArray = [];\n for (let index = 0; index < a.length; index++) {\n const itemA = a[index];\n const itemB = b[index];\n const sharedValue = mergeValues(itemA, itemB);\n if (!sharedValue.valid) {\n return {\n valid: false,\n mergeErrorPath: [index, ...sharedValue.mergeErrorPath],\n };\n }\n newArray.push(sharedValue.data);\n }\n return { valid: true, data: newArray };\n }\n return { valid: false, mergeErrorPath: [] };\n}\nfunction handleIntersectionResults(result, left, right) {\n // Track which side(s) report each key as unrecognized\n const unrecKeys = new Map();\n let unrecIssue;\n for (const iss of left.issues) {\n if (iss.code === \"unrecognized_keys\") {\n unrecIssue ?? (unrecIssue = iss);\n for (const k of iss.keys) {\n if (!unrecKeys.has(k))\n unrecKeys.set(k, {});\n unrecKeys.get(k).l = true;\n }\n }\n else {\n result.issues.push(iss);\n }\n }\n for (const iss of right.issues) {\n if (iss.code === \"unrecognized_keys\") {\n for (const k of iss.keys) {\n if (!unrecKeys.has(k))\n unrecKeys.set(k, {});\n unrecKeys.get(k).r = true;\n }\n }\n else {\n result.issues.push(iss);\n }\n }\n // Report only keys unrecognized by BOTH sides\n const bothKeys = [...unrecKeys].filter(([, f]) => f.l && f.r).map(([k]) => k);\n if (bothKeys.length && unrecIssue) {\n result.issues.push({ ...unrecIssue, keys: bothKeys });\n }\n if (util.aborted(result))\n return result;\n const merged = mergeValues(left.value, right.value);\n if (!merged.valid) {\n throw new Error(`Unmergable intersection. Error path: ` + `${JSON.stringify(merged.mergeErrorPath)}`);\n }\n result.value = merged.data;\n return result;\n}\nexport const $ZodTuple = /*@__PURE__*/ core.$constructor(\"$ZodTuple\", (inst, def) => {\n $ZodType.init(inst, def);\n const items = def.items;\n inst._zod.parse = (payload, ctx) => {\n const input = payload.value;\n if (!Array.isArray(input)) {\n payload.issues.push({\n input,\n inst,\n expected: \"tuple\",\n code: \"invalid_type\",\n });\n return payload;\n }\n payload.value = [];\n const proms = [];\n const optinStart = getTupleOptStart(items, \"optin\");\n const optoutStart = getTupleOptStart(items, \"optout\");\n if (!def.rest) {\n if (input.length < optinStart) {\n payload.issues.push({\n code: \"too_small\",\n minimum: optinStart,\n inclusive: true,\n input,\n inst,\n origin: \"array\",\n });\n return payload;\n }\n if (input.length > items.length) {\n payload.issues.push({\n code: \"too_big\",\n maximum: items.length,\n inclusive: true,\n input,\n inst,\n origin: \"array\",\n });\n }\n }\n // Run every item in parallel, collecting results into an indexed\n // array. The post-processing in `handleTupleResults` walks them in\n // order so it can decide whether an absent optional-output error can\n // truncate the tail or must be reported to preserve required output.\n const itemResults = new Array(items.length);\n for (let i = 0; i < items.length; i++) {\n const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);\n if (r instanceof Promise) {\n proms.push(r.then((rr) => {\n itemResults[i] = rr;\n }));\n }\n else {\n itemResults[i] = r;\n }\n }\n if (def.rest) {\n let i = items.length - 1;\n const rest = input.slice(items.length);\n for (const el of rest) {\n i++;\n const result = def.rest._zod.run({ value: el, issues: [] }, ctx);\n if (result instanceof Promise) {\n proms.push(result.then((r) => handleTupleResult(r, payload, i)));\n }\n else {\n handleTupleResult(result, payload, i);\n }\n }\n }\n if (proms.length) {\n return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));\n }\n return handleTupleResults(itemResults, payload, items, input, optoutStart);\n };\n});\nfunction getTupleOptStart(items, key) {\n for (let i = items.length - 1; i >= 0; i--) {\n if (items[i]._zod[key] !== \"optional\")\n return i + 1;\n }\n return 0;\n}\nfunction handleTupleResult(result, final, index) {\n if (result.issues.length) {\n final.issues.push(...util.prefixIssues(index, result.issues));\n }\n final.value[index] = result.value;\n}\nfunction handleTupleResults(itemResults, final, items, input, optoutStart) {\n // Walk results in order. Mirror $ZodObject's swallow-on-absent-optional\n // rule, but only after `optoutStart`: the first index where the output\n // tuple tail can be absent.\n for (let i = 0; i < items.length; i++) {\n const r = itemResults[i];\n const isPresent = i < input.length;\n if (r.issues.length) {\n if (!isPresent && i >= optoutStart) {\n final.value.length = i;\n break;\n }\n final.issues.push(...util.prefixIssues(i, r.issues));\n }\n final.value[i] = r.value;\n }\n // Drop trailing slots that produced `undefined` for absent input\n // (the array analog of an absent optional key on an object). The\n // `i >= input.length` floor is critical: an explicit `undefined`\n // *inside* the input must be preserved even when the schema is\n // optional-out (e.g. `z.string().or(z.undefined())` accepting an\n // explicit undefined value).\n for (let i = final.value.length - 1; i >= input.length; i--) {\n if (items[i]._zod.optout === \"optional\" && final.value[i] === undefined) {\n final.value.length = i;\n }\n else {\n break;\n }\n }\n return final;\n}\nexport const $ZodRecord = /*@__PURE__*/ core.$constructor(\"$ZodRecord\", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.parse = (payload, ctx) => {\n const input = payload.value;\n if (!util.isPlainObject(input)) {\n payload.issues.push({\n expected: \"record\",\n code: \"invalid_type\",\n input,\n inst,\n });\n return payload;\n }\n const proms = [];\n const values = def.keyType._zod.values;\n if (values) {\n payload.value = {};\n const recordKeys = new Set();\n for (const key of values) {\n if (typeof key === \"string\" || typeof key === \"number\" || typeof key === \"symbol\") {\n recordKeys.add(typeof key === \"number\" ? key.toString() : key);\n const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);\n if (keyResult instanceof Promise) {\n throw new Error(\"Async schemas not supported in object keys currently\");\n }\n if (keyResult.issues.length) {\n payload.issues.push({\n code: \"invalid_key\",\n origin: \"record\",\n issues: keyResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),\n input: key,\n path: [key],\n inst,\n });\n continue;\n }\n const outKey = keyResult.value;\n const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);\n if (result instanceof Promise) {\n proms.push(result.then((result) => {\n if (result.issues.length) {\n payload.issues.push(...util.prefixIssues(key, result.issues));\n }\n payload.value[outKey] = result.value;\n }));\n }\n else {\n if (result.issues.length) {\n payload.issues.push(...util.prefixIssues(key, result.issues));\n }\n payload.value[outKey] = result.value;\n }\n }\n }\n let unrecognized;\n for (const key in input) {\n if (!recordKeys.has(key)) {\n unrecognized = unrecognized ?? [];\n unrecognized.push(key);\n }\n }\n if (unrecognized && unrecognized.length > 0) {\n payload.issues.push({\n code: \"unrecognized_keys\",\n input,\n inst,\n keys: unrecognized,\n });\n }\n }\n else {\n payload.value = {};\n // Reflect.ownKeys for Symbol-key support; filter non-enumerable to match z.object()\n for (const key of Reflect.ownKeys(input)) {\n if (key === \"__proto__\")\n continue;\n if (!Object.prototype.propertyIsEnumerable.call(input, key))\n continue;\n let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);\n if (keyResult instanceof Promise) {\n throw new Error(\"Async schemas not supported in object keys currently\");\n }\n // Numeric string fallback: if key is a numeric string and failed, retry with Number(key)\n // This handles z.number(), z.literal([1, 2, 3]), and unions containing numeric literals\n const checkNumericKey = typeof key === \"string\" && regexes.number.test(key) && keyResult.issues.length;\n if (checkNumericKey) {\n const retryResult = def.keyType._zod.run({ value: Number(key), issues: [] }, ctx);\n if (retryResult instanceof Promise) {\n throw new Error(\"Async schemas not supported in object keys currently\");\n }\n if (retryResult.issues.length === 0) {\n keyResult = retryResult;\n }\n }\n if (keyResult.issues.length) {\n if (def.mode === \"loose\") {\n // Pass through unchanged\n payload.value[key] = input[key];\n }\n else {\n // Default \"strict\" behavior: error on invalid key\n payload.issues.push({\n code: \"invalid_key\",\n origin: \"record\",\n issues: keyResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),\n input: key,\n path: [key],\n inst,\n });\n }\n continue;\n }\n const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);\n if (result instanceof Promise) {\n proms.push(result.then((result) => {\n if (result.issues.length) {\n payload.issues.push(...util.prefixIssues(key, result.issues));\n }\n payload.value[keyResult.value] = result.value;\n }));\n }\n else {\n if (result.issues.length) {\n payload.issues.push(...util.prefixIssues(key, result.issues));\n }\n payload.value[keyResult.value] = result.value;\n }\n }\n }\n if (proms.length) {\n return Promise.all(proms).then(() => payload);\n }\n return payload;\n };\n});\nexport const $ZodMap = /*@__PURE__*/ core.$constructor(\"$ZodMap\", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.parse = (payload, ctx) => {\n const input = payload.value;\n if (!(input instanceof Map)) {\n payload.issues.push({\n expected: \"map\",\n code: \"invalid_type\",\n input,\n inst,\n });\n return payload;\n }\n const proms = [];\n payload.value = new Map();\n for (const [key, value] of input) {\n const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);\n const valueResult = def.valueType._zod.run({ value: value, issues: [] }, ctx);\n if (keyResult instanceof Promise || valueResult instanceof Promise) {\n proms.push(Promise.all([keyResult, valueResult]).then(([keyResult, valueResult]) => {\n handleMapResult(keyResult, valueResult, payload, key, input, inst, ctx);\n }));\n }\n else {\n handleMapResult(keyResult, valueResult, payload, key, input, inst, ctx);\n }\n }\n if (proms.length)\n return Promise.all(proms).then(() => payload);\n return payload;\n };\n});\nfunction handleMapResult(keyResult, valueResult, final, key, input, inst, ctx) {\n if (keyResult.issues.length) {\n if (util.propertyKeyTypes.has(typeof key)) {\n final.issues.push(...util.prefixIssues(key, keyResult.issues));\n }\n else {\n final.issues.push({\n code: \"invalid_key\",\n origin: \"map\",\n input,\n inst,\n issues: keyResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),\n });\n }\n }\n if (valueResult.issues.length) {\n if (util.propertyKeyTypes.has(typeof key)) {\n final.issues.push(...util.prefixIssues(key, valueResult.issues));\n }\n else {\n final.issues.push({\n origin: \"map\",\n code: \"invalid_element\",\n input,\n inst,\n key: key,\n issues: valueResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),\n });\n }\n }\n final.value.set(keyResult.value, valueResult.value);\n}\nexport const $ZodSet = /*@__PURE__*/ core.$constructor(\"$ZodSet\", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.parse = (payload, ctx) => {\n const input = payload.value;\n if (!(input instanceof Set)) {\n payload.issues.push({\n input,\n inst,\n expected: \"set\",\n code: \"invalid_type\",\n });\n return payload;\n }\n const proms = [];\n payload.value = new Set();\n for (const item of input) {\n const result = def.valueType._zod.run({ value: item, issues: [] }, ctx);\n if (result instanceof Promise) {\n proms.push(result.then((result) => handleSetResult(result, payload)));\n }\n else\n handleSetResult(result, payload);\n }\n if (proms.length)\n return Promise.all(proms).then(() => payload);\n return payload;\n };\n});\nfunction handleSetResult(result, final) {\n if (result.issues.length) {\n final.issues.push(...result.issues);\n }\n final.value.add(result.value);\n}\nexport const $ZodEnum = /*@__PURE__*/ core.$constructor(\"$ZodEnum\", (inst, def) => {\n $ZodType.init(inst, def);\n const values = util.getEnumValues(def.entries);\n const valuesSet = new Set(values);\n inst._zod.values = valuesSet;\n inst._zod.pattern = new RegExp(`^(${values\n .filter((k) => util.propertyKeyTypes.has(typeof k))\n .map((o) => (typeof o === \"string\" ? util.escapeRegex(o) : o.toString()))\n .join(\"|\")})$`);\n inst._zod.parse = (payload, _ctx) => {\n const input = payload.value;\n if (valuesSet.has(input)) {\n return payload;\n }\n payload.issues.push({\n code: \"invalid_value\",\n values,\n input,\n inst,\n });\n return payload;\n };\n});\nexport const $ZodLiteral = /*@__PURE__*/ core.$constructor(\"$ZodLiteral\", (inst, def) => {\n $ZodType.init(inst, def);\n if (def.values.length === 0) {\n throw new Error(\"Cannot create literal schema with no valid values\");\n }\n const values = new Set(def.values);\n inst._zod.values = values;\n inst._zod.pattern = new RegExp(`^(${def.values\n .map((o) => (typeof o === \"string\" ? util.escapeRegex(o) : o ? util.escapeRegex(o.toString()) : String(o)))\n .join(\"|\")})$`);\n inst._zod.parse = (payload, _ctx) => {\n const input = payload.value;\n if (values.has(input)) {\n return payload;\n }\n payload.issues.push({\n code: \"invalid_value\",\n values: def.values,\n input,\n inst,\n });\n return payload;\n };\n});\nexport const $ZodFile = /*@__PURE__*/ core.$constructor(\"$ZodFile\", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.parse = (payload, _ctx) => {\n const input = payload.value;\n // @ts-ignore\n if (input instanceof File)\n return payload;\n payload.issues.push({\n expected: \"file\",\n code: \"invalid_type\",\n input,\n inst,\n });\n return payload;\n };\n});\nexport const $ZodTransform = /*@__PURE__*/ core.$constructor(\"$ZodTransform\", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.optin = \"optional\";\n inst._zod.parse = (payload, ctx) => {\n if (ctx.direction === \"backward\") {\n throw new core.$ZodEncodeError(inst.constructor.name);\n }\n const _out = def.transform(payload.value, payload);\n if (ctx.async) {\n const output = _out instanceof Promise ? _out : Promise.resolve(_out);\n return output.then((output) => {\n payload.value = output;\n payload.fallback = true;\n return payload;\n });\n }\n if (_out instanceof Promise) {\n throw new core.$ZodAsyncError();\n }\n payload.value = _out;\n payload.fallback = true;\n return payload;\n };\n});\nfunction handleOptionalResult(result, input) {\n if (input === undefined && (result.issues.length || result.fallback)) {\n return { issues: [], value: undefined };\n }\n return result;\n}\nexport const $ZodOptional = /*@__PURE__*/ core.$constructor(\"$ZodOptional\", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.optin = \"optional\";\n inst._zod.optout = \"optional\";\n util.defineLazy(inst._zod, \"values\", () => {\n return def.innerType._zod.values ? new Set([...def.innerType._zod.values, undefined]) : undefined;\n });\n util.defineLazy(inst._zod, \"pattern\", () => {\n const pattern = def.innerType._zod.pattern;\n return pattern ? new RegExp(`^(${util.cleanRegex(pattern.source)})?$`) : undefined;\n });\n inst._zod.parse = (payload, ctx) => {\n if (def.innerType._zod.optin === \"optional\") {\n const input = payload.value;\n const result = def.innerType._zod.run(payload, ctx);\n if (result instanceof Promise)\n return result.then((r) => handleOptionalResult(r, input));\n return handleOptionalResult(result, input);\n }\n if (payload.value === undefined) {\n return payload;\n }\n return def.innerType._zod.run(payload, ctx);\n };\n});\nexport const $ZodExactOptional = /*@__PURE__*/ core.$constructor(\"$ZodExactOptional\", (inst, def) => {\n // Call parent init - inherits optin/optout = \"optional\"\n $ZodOptional.init(inst, def);\n // Override values/pattern to NOT add undefined\n util.defineLazy(inst._zod, \"values\", () => def.innerType._zod.values);\n util.defineLazy(inst._zod, \"pattern\", () => def.innerType._zod.pattern);\n // Override parse to just delegate (no undefined handling)\n inst._zod.parse = (payload, ctx) => {\n return def.innerType._zod.run(payload, ctx);\n };\n});\nexport const $ZodNullable = /*@__PURE__*/ core.$constructor(\"$ZodNullable\", (inst, def) => {\n $ZodType.init(inst, def);\n util.defineLazy(inst._zod, \"optin\", () => def.innerType._zod.optin);\n util.defineLazy(inst._zod, \"optout\", () => def.innerType._zod.optout);\n util.defineLazy(inst._zod, \"pattern\", () => {\n const pattern = def.innerType._zod.pattern;\n return pattern ? new RegExp(`^(${util.cleanRegex(pattern.source)}|null)$`) : undefined;\n });\n util.defineLazy(inst._zod, \"values\", () => {\n return def.innerType._zod.values ? new Set([...def.innerType._zod.values, null]) : undefined;\n });\n inst._zod.parse = (payload, ctx) => {\n // Forward direction (decode): allow null to pass through\n if (payload.value === null)\n return payload;\n return def.innerType._zod.run(payload, ctx);\n };\n});\nexport const $ZodDefault = /*@__PURE__*/ core.$constructor(\"$ZodDefault\", (inst, def) => {\n $ZodType.init(inst, def);\n // inst._zod.qin = \"true\";\n inst._zod.optin = \"optional\";\n util.defineLazy(inst._zod, \"values\", () => def.innerType._zod.values);\n inst._zod.parse = (payload, ctx) => {\n if (ctx.direction === \"backward\") {\n return def.innerType._zod.run(payload, ctx);\n }\n // Forward direction (decode): apply defaults for undefined input\n if (payload.value === undefined) {\n payload.value = def.defaultValue;\n /**\n * $ZodDefault returns the default value immediately in forward direction.\n * It doesn't pass the default value into the validator (\"prefault\"). There's no reason to pass the default value through validation. The validity of the default is enforced by TypeScript statically. Otherwise, it's the responsibility of the user to ensure the default is valid. In the case of pipes with divergent in/out types, you can specify the default on the `in` schema of your ZodPipe to set a \"prefault\" for the pipe. */\n return payload;\n }\n // Forward direction: continue with default handling\n const result = def.innerType._zod.run(payload, ctx);\n if (result instanceof Promise) {\n return result.then((result) => handleDefaultResult(result, def));\n }\n return handleDefaultResult(result, def);\n };\n});\nfunction handleDefaultResult(payload, def) {\n if (payload.value === undefined) {\n payload.value = def.defaultValue;\n }\n return payload;\n}\nexport const $ZodPrefault = /*@__PURE__*/ core.$constructor(\"$ZodPrefault\", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.optin = \"optional\";\n util.defineLazy(inst._zod, \"values\", () => def.innerType._zod.values);\n inst._zod.parse = (payload, ctx) => {\n if (ctx.direction === \"backward\") {\n return def.innerType._zod.run(payload, ctx);\n }\n // Forward direction (decode): apply prefault for undefined input\n if (payload.value === undefined) {\n payload.value = def.defaultValue;\n }\n return def.innerType._zod.run(payload, ctx);\n };\n});\nexport const $ZodNonOptional = /*@__PURE__*/ core.$constructor(\"$ZodNonOptional\", (inst, def) => {\n $ZodType.init(inst, def);\n util.defineLazy(inst._zod, \"values\", () => {\n const v = def.innerType._zod.values;\n return v ? new Set([...v].filter((x) => x !== undefined)) : undefined;\n });\n inst._zod.parse = (payload, ctx) => {\n const result = def.innerType._zod.run(payload, ctx);\n if (result instanceof Promise) {\n return result.then((result) => handleNonOptionalResult(result, inst));\n }\n return handleNonOptionalResult(result, inst);\n };\n});\nfunction handleNonOptionalResult(payload, inst) {\n if (!payload.issues.length && payload.value === undefined) {\n payload.issues.push({\n code: \"invalid_type\",\n expected: \"nonoptional\",\n input: payload.value,\n inst,\n });\n }\n return payload;\n}\nexport const $ZodSuccess = /*@__PURE__*/ core.$constructor(\"$ZodSuccess\", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.parse = (payload, ctx) => {\n if (ctx.direction === \"backward\") {\n throw new core.$ZodEncodeError(\"ZodSuccess\");\n }\n const result = def.innerType._zod.run(payload, ctx);\n if (result instanceof Promise) {\n return result.then((result) => {\n payload.value = result.issues.length === 0;\n return payload;\n });\n }\n payload.value = result.issues.length === 0;\n return payload;\n };\n});\nexport const $ZodCatch = /*@__PURE__*/ core.$constructor(\"$ZodCatch\", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.optin = \"optional\";\n util.defineLazy(inst._zod, \"optout\", () => def.innerType._zod.optout);\n util.defineLazy(inst._zod, \"values\", () => def.innerType._zod.values);\n inst._zod.parse = (payload, ctx) => {\n if (ctx.direction === \"backward\") {\n return def.innerType._zod.run(payload, ctx);\n }\n // Forward direction (decode): apply catch logic\n const result = def.innerType._zod.run(payload, ctx);\n if (result instanceof Promise) {\n return result.then((result) => {\n payload.value = result.value;\n if (result.issues.length) {\n payload.value = def.catchValue({\n ...payload,\n error: {\n issues: result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),\n },\n input: payload.value,\n });\n payload.issues = [];\n payload.fallback = true;\n }\n return payload;\n });\n }\n payload.value = result.value;\n if (result.issues.length) {\n payload.value = def.catchValue({\n ...payload,\n error: {\n issues: result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),\n },\n input: payload.value,\n });\n payload.issues = [];\n payload.fallback = true;\n }\n return payload;\n };\n});\nexport const $ZodNaN = /*@__PURE__*/ core.$constructor(\"$ZodNaN\", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.parse = (payload, _ctx) => {\n if (typeof payload.value !== \"number\" || !Number.isNaN(payload.value)) {\n payload.issues.push({\n input: payload.value,\n inst,\n expected: \"nan\",\n code: \"invalid_type\",\n });\n return payload;\n }\n return payload;\n };\n});\nexport const $ZodPipe = /*@__PURE__*/ core.$constructor(\"$ZodPipe\", (inst, def) => {\n $ZodType.init(inst, def);\n util.defineLazy(inst._zod, \"values\", () => def.in._zod.values);\n util.defineLazy(inst._zod, \"optin\", () => def.in._zod.optin);\n util.defineLazy(inst._zod, \"optout\", () => def.out._zod.optout);\n util.defineLazy(inst._zod, \"propValues\", () => def.in._zod.propValues);\n inst._zod.parse = (payload, ctx) => {\n if (ctx.direction === \"backward\") {\n const right = def.out._zod.run(payload, ctx);\n if (right instanceof Promise) {\n return right.then((right) => handlePipeResult(right, def.in, ctx));\n }\n return handlePipeResult(right, def.in, ctx);\n }\n const left = def.in._zod.run(payload, ctx);\n if (left instanceof Promise) {\n return left.then((left) => handlePipeResult(left, def.out, ctx));\n }\n return handlePipeResult(left, def.out, ctx);\n };\n});\nfunction handlePipeResult(left, next, ctx) {\n if (left.issues.length) {\n // prevent further checks\n left.aborted = true;\n return left;\n }\n return next._zod.run({ value: left.value, issues: left.issues, fallback: left.fallback }, ctx);\n}\nexport const $ZodCodec = /*@__PURE__*/ core.$constructor(\"$ZodCodec\", (inst, def) => {\n $ZodType.init(inst, def);\n util.defineLazy(inst._zod, \"values\", () => def.in._zod.values);\n util.defineLazy(inst._zod, \"optin\", () => def.in._zod.optin);\n util.defineLazy(inst._zod, \"optout\", () => def.out._zod.optout);\n util.defineLazy(inst._zod, \"propValues\", () => def.in._zod.propValues);\n inst._zod.parse = (payload, ctx) => {\n const direction = ctx.direction || \"forward\";\n if (direction === \"forward\") {\n const left = def.in._zod.run(payload, ctx);\n if (left instanceof Promise) {\n return left.then((left) => handleCodecAResult(left, def, ctx));\n }\n return handleCodecAResult(left, def, ctx);\n }\n else {\n const right = def.out._zod.run(payload, ctx);\n if (right instanceof Promise) {\n return right.then((right) => handleCodecAResult(right, def, ctx));\n }\n return handleCodecAResult(right, def, ctx);\n }\n };\n});\nfunction handleCodecAResult(result, def, ctx) {\n if (result.issues.length) {\n // prevent further checks\n result.aborted = true;\n return result;\n }\n const direction = ctx.direction || \"forward\";\n if (direction === \"forward\") {\n const transformed = def.transform(result.value, result);\n if (transformed instanceof Promise) {\n return transformed.then((value) => handleCodecTxResult(result, value, def.out, ctx));\n }\n return handleCodecTxResult(result, transformed, def.out, ctx);\n }\n else {\n const transformed = def.reverseTransform(result.value, result);\n if (transformed instanceof Promise) {\n return transformed.then((value) => handleCodecTxResult(result, value, def.in, ctx));\n }\n return handleCodecTxResult(result, transformed, def.in, ctx);\n }\n}\nfunction handleCodecTxResult(left, value, nextSchema, ctx) {\n // Check if transform added any issues\n if (left.issues.length) {\n left.aborted = true;\n return left;\n }\n return nextSchema._zod.run({ value, issues: left.issues }, ctx);\n}\nexport const $ZodPreprocess = /*@__PURE__*/ core.$constructor(\"$ZodPreprocess\", (inst, def) => {\n $ZodPipe.init(inst, def);\n});\nexport const $ZodReadonly = /*@__PURE__*/ core.$constructor(\"$ZodReadonly\", (inst, def) => {\n $ZodType.init(inst, def);\n util.defineLazy(inst._zod, \"propValues\", () => def.innerType._zod.propValues);\n util.defineLazy(inst._zod, \"values\", () => def.innerType._zod.values);\n util.defineLazy(inst._zod, \"optin\", () => def.innerType?._zod?.optin);\n util.defineLazy(inst._zod, \"optout\", () => def.innerType?._zod?.optout);\n inst._zod.parse = (payload, ctx) => {\n if (ctx.direction === \"backward\") {\n return def.innerType._zod.run(payload, ctx);\n }\n const result = def.innerType._zod.run(payload, ctx);\n if (result instanceof Promise) {\n return result.then(handleReadonlyResult);\n }\n return handleReadonlyResult(result);\n };\n});\nfunction handleReadonlyResult(payload) {\n payload.value = Object.freeze(payload.value);\n return payload;\n}\nexport const $ZodTemplateLiteral = /*@__PURE__*/ core.$constructor(\"$ZodTemplateLiteral\", (inst, def) => {\n $ZodType.init(inst, def);\n const regexParts = [];\n for (const part of def.parts) {\n if (typeof part === \"object\" && part !== null) {\n // is Zod schema\n if (!part._zod.pattern) {\n // if (!source)\n throw new Error(`Invalid template literal part, no pattern found: ${[...part._zod.traits].shift()}`);\n }\n const source = part._zod.pattern instanceof RegExp ? part._zod.pattern.source : part._zod.pattern;\n if (!source)\n throw new Error(`Invalid template literal part: ${part._zod.traits}`);\n const start = source.startsWith(\"^\") ? 1 : 0;\n const end = source.endsWith(\"$\") ? source.length - 1 : source.length;\n regexParts.push(source.slice(start, end));\n }\n else if (part === null || util.primitiveTypes.has(typeof part)) {\n regexParts.push(util.escapeRegex(`${part}`));\n }\n else {\n throw new Error(`Invalid template literal part: ${part}`);\n }\n }\n inst._zod.pattern = new RegExp(`^${regexParts.join(\"\")}$`);\n inst._zod.parse = (payload, _ctx) => {\n if (typeof payload.value !== \"string\") {\n payload.issues.push({\n input: payload.value,\n inst,\n expected: \"string\",\n code: \"invalid_type\",\n });\n return payload;\n }\n inst._zod.pattern.lastIndex = 0;\n if (!inst._zod.pattern.test(payload.value)) {\n payload.issues.push({\n input: payload.value,\n inst,\n code: \"invalid_format\",\n format: def.format ?? \"template_literal\",\n pattern: inst._zod.pattern.source,\n });\n return payload;\n }\n return payload;\n };\n});\nexport const $ZodFunction = /*@__PURE__*/ core.$constructor(\"$ZodFunction\", (inst, def) => {\n $ZodType.init(inst, def);\n inst._def = def;\n inst._zod.def = def;\n inst.implement = (func) => {\n if (typeof func !== \"function\") {\n throw new Error(\"implement() must be called with a function\");\n }\n return function (...args) {\n const parsedArgs = inst._def.input ? parse(inst._def.input, args) : args;\n const result = Reflect.apply(func, this, parsedArgs);\n if (inst._def.output) {\n return parse(inst._def.output, result);\n }\n return result;\n };\n };\n inst.implementAsync = (func) => {\n if (typeof func !== \"function\") {\n throw new Error(\"implementAsync() must be called with a function\");\n }\n return async function (...args) {\n const parsedArgs = inst._def.input ? await parseAsync(inst._def.input, args) : args;\n const result = await Reflect.apply(func, this, parsedArgs);\n if (inst._def.output) {\n return await parseAsync(inst._def.output, result);\n }\n return result;\n };\n };\n inst._zod.parse = (payload, _ctx) => {\n if (typeof payload.value !== \"function\") {\n payload.issues.push({\n code: \"invalid_type\",\n expected: \"function\",\n input: payload.value,\n inst,\n });\n return payload;\n }\n // Check if output is a promise type to determine if we should use async implementation\n const hasPromiseOutput = inst._def.output && inst._def.output._zod.def.type === \"promise\";\n if (hasPromiseOutput) {\n payload.value = inst.implementAsync(payload.value);\n }\n else {\n payload.value = inst.implement(payload.value);\n }\n return payload;\n };\n inst.input = (...args) => {\n const F = inst.constructor;\n if (Array.isArray(args[0])) {\n return new F({\n type: \"function\",\n input: new $ZodTuple({\n type: \"tuple\",\n items: args[0],\n rest: args[1],\n }),\n output: inst._def.output,\n });\n }\n return new F({\n type: \"function\",\n input: args[0],\n output: inst._def.output,\n });\n };\n inst.output = (output) => {\n const F = inst.constructor;\n return new F({\n type: \"function\",\n input: inst._def.input,\n output,\n });\n };\n return inst;\n});\nexport const $ZodPromise = /*@__PURE__*/ core.$constructor(\"$ZodPromise\", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.parse = (payload, ctx) => {\n return Promise.resolve(payload.value).then((inner) => def.innerType._zod.run({ value: inner, issues: [] }, ctx));\n };\n});\nexport const $ZodLazy = /*@__PURE__*/ core.$constructor(\"$ZodLazy\", (inst, def) => {\n $ZodType.init(inst, def);\n // Cache the resolved inner type on the shared `def` so all clones of this\n // lazy (e.g. via `.describe()`/`.meta()`) share the same inner instance,\n // preserving identity for cycle detection on recursive schemas.\n util.defineLazy(inst._zod, \"innerType\", () => {\n const d = def;\n if (!d._cachedInner)\n d._cachedInner = def.getter();\n return d._cachedInner;\n });\n util.defineLazy(inst._zod, \"pattern\", () => inst._zod.innerType?._zod?.pattern);\n util.defineLazy(inst._zod, \"propValues\", () => inst._zod.innerType?._zod?.propValues);\n util.defineLazy(inst._zod, \"optin\", () => inst._zod.innerType?._zod?.optin ?? undefined);\n util.defineLazy(inst._zod, \"optout\", () => inst._zod.innerType?._zod?.optout ?? undefined);\n inst._zod.parse = (payload, ctx) => {\n const inner = inst._zod.innerType;\n return inner._zod.run(payload, ctx);\n };\n});\nexport const $ZodCustom = /*@__PURE__*/ core.$constructor(\"$ZodCustom\", (inst, def) => {\n checks.$ZodCheck.init(inst, def);\n $ZodType.init(inst, def);\n inst._zod.parse = (payload, _) => {\n return payload;\n };\n inst._zod.check = (payload) => {\n const input = payload.value;\n const r = def.fn(input);\n if (r instanceof Promise) {\n return r.then((r) => handleRefineResult(r, payload, input, inst));\n }\n handleRefineResult(r, payload, input, inst);\n return;\n };\n});\nfunction handleRefineResult(result, payload, input, inst) {\n if (!result) {\n const _iss = {\n code: \"custom\",\n input,\n inst, // incorporates params.error into issue reporting\n path: [...(inst._zod.def.path ?? [])], // incorporates params.error into issue reporting\n continue: !inst._zod.def.abort,\n // params: inst._zod.def.params,\n };\n if (inst._zod.def.params)\n _iss.params = inst._zod.def.params;\n payload.issues.push(util.issue(_iss));\n }\n}\n","var _a;\nexport const $output = Symbol(\"ZodOutput\");\nexport const $input = Symbol(\"ZodInput\");\nexport class $ZodRegistry {\n constructor() {\n this._map = new WeakMap();\n this._idmap = new Map();\n }\n add(schema, ..._meta) {\n const meta = _meta[0];\n this._map.set(schema, meta);\n if (meta && typeof meta === \"object\" && \"id\" in meta) {\n this._idmap.set(meta.id, schema);\n }\n return this;\n }\n clear() {\n this._map = new WeakMap();\n this._idmap = new Map();\n return this;\n }\n remove(schema) {\n const meta = this._map.get(schema);\n if (meta && typeof meta === \"object\" && \"id\" in meta) {\n this._idmap.delete(meta.id);\n }\n this._map.delete(schema);\n return this;\n }\n get(schema) {\n // return this._map.get(schema) as any;\n // inherit metadata\n const p = schema._zod.parent;\n if (p) {\n const pm = { ...(this.get(p) ?? {}) };\n delete pm.id; // do not inherit id\n const f = { ...pm, ...this._map.get(schema) };\n return Object.keys(f).length ? f : undefined;\n }\n return this._map.get(schema);\n }\n has(schema) {\n return this._map.has(schema);\n }\n}\n// registries\nexport function registry() {\n return new $ZodRegistry();\n}\n(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());\nexport const globalRegistry = globalThis.__zod_globalRegistry;\n","import * as checks from \"./checks.js\";\nimport * as registries from \"./registries.js\";\nimport * as schemas from \"./schemas.js\";\nimport * as util from \"./util.js\";\n// @__NO_SIDE_EFFECTS__\nexport function _string(Class, params) {\n return new Class({\n type: \"string\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _coercedString(Class, params) {\n return new Class({\n type: \"string\",\n coerce: true,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _email(Class, params) {\n return new Class({\n type: \"string\",\n format: \"email\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _guid(Class, params) {\n return new Class({\n type: \"string\",\n format: \"guid\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _uuid(Class, params) {\n return new Class({\n type: \"string\",\n format: \"uuid\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _uuidv4(Class, params) {\n return new Class({\n type: \"string\",\n format: \"uuid\",\n check: \"string_format\",\n abort: false,\n version: \"v4\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _uuidv6(Class, params) {\n return new Class({\n type: \"string\",\n format: \"uuid\",\n check: \"string_format\",\n abort: false,\n version: \"v6\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _uuidv7(Class, params) {\n return new Class({\n type: \"string\",\n format: \"uuid\",\n check: \"string_format\",\n abort: false,\n version: \"v7\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _url(Class, params) {\n return new Class({\n type: \"string\",\n format: \"url\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _emoji(Class, params) {\n return new Class({\n type: \"string\",\n format: \"emoji\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _nanoid(Class, params) {\n return new Class({\n type: \"string\",\n format: \"nanoid\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n/**\n * @deprecated CUID v1 is deprecated by its authors due to information leakage\n * (timestamps embedded in the id). Use {@link _cuid2} instead.\n * See https://github.com/paralleldrive/cuid.\n */\n// @__NO_SIDE_EFFECTS__\nexport function _cuid(Class, params) {\n return new Class({\n type: \"string\",\n format: \"cuid\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _cuid2(Class, params) {\n return new Class({\n type: \"string\",\n format: \"cuid2\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _ulid(Class, params) {\n return new Class({\n type: \"string\",\n format: \"ulid\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _xid(Class, params) {\n return new Class({\n type: \"string\",\n format: \"xid\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _ksuid(Class, params) {\n return new Class({\n type: \"string\",\n format: \"ksuid\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _ipv4(Class, params) {\n return new Class({\n type: \"string\",\n format: \"ipv4\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _ipv6(Class, params) {\n return new Class({\n type: \"string\",\n format: \"ipv6\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _mac(Class, params) {\n return new Class({\n type: \"string\",\n format: \"mac\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _cidrv4(Class, params) {\n return new Class({\n type: \"string\",\n format: \"cidrv4\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _cidrv6(Class, params) {\n return new Class({\n type: \"string\",\n format: \"cidrv6\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _base64(Class, params) {\n return new Class({\n type: \"string\",\n format: \"base64\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _base64url(Class, params) {\n return new Class({\n type: \"string\",\n format: \"base64url\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _e164(Class, params) {\n return new Class({\n type: \"string\",\n format: \"e164\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _jwt(Class, params) {\n return new Class({\n type: \"string\",\n format: \"jwt\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\nexport const TimePrecision = {\n Any: null,\n Minute: -1,\n Second: 0,\n Millisecond: 3,\n Microsecond: 6,\n};\n// @__NO_SIDE_EFFECTS__\nexport function _isoDateTime(Class, params) {\n return new Class({\n type: \"string\",\n format: \"datetime\",\n check: \"string_format\",\n offset: false,\n local: false,\n precision: null,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _isoDate(Class, params) {\n return new Class({\n type: \"string\",\n format: \"date\",\n check: \"string_format\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _isoTime(Class, params) {\n return new Class({\n type: \"string\",\n format: \"time\",\n check: \"string_format\",\n precision: null,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _isoDuration(Class, params) {\n return new Class({\n type: \"string\",\n format: \"duration\",\n check: \"string_format\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _number(Class, params) {\n return new Class({\n type: \"number\",\n checks: [],\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _coercedNumber(Class, params) {\n return new Class({\n type: \"number\",\n coerce: true,\n checks: [],\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _int(Class, params) {\n return new Class({\n type: \"number\",\n check: \"number_format\",\n abort: false,\n format: \"safeint\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _float32(Class, params) {\n return new Class({\n type: \"number\",\n check: \"number_format\",\n abort: false,\n format: \"float32\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _float64(Class, params) {\n return new Class({\n type: \"number\",\n check: \"number_format\",\n abort: false,\n format: \"float64\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _int32(Class, params) {\n return new Class({\n type: \"number\",\n check: \"number_format\",\n abort: false,\n format: \"int32\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _uint32(Class, params) {\n return new Class({\n type: \"number\",\n check: \"number_format\",\n abort: false,\n format: \"uint32\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _boolean(Class, params) {\n return new Class({\n type: \"boolean\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _coercedBoolean(Class, params) {\n return new Class({\n type: \"boolean\",\n coerce: true,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _bigint(Class, params) {\n return new Class({\n type: \"bigint\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _coercedBigint(Class, params) {\n return new Class({\n type: \"bigint\",\n coerce: true,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _int64(Class, params) {\n return new Class({\n type: \"bigint\",\n check: \"bigint_format\",\n abort: false,\n format: \"int64\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _uint64(Class, params) {\n return new Class({\n type: \"bigint\",\n check: \"bigint_format\",\n abort: false,\n format: \"uint64\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _symbol(Class, params) {\n return new Class({\n type: \"symbol\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _undefined(Class, params) {\n return new Class({\n type: \"undefined\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _null(Class, params) {\n return new Class({\n type: \"null\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _any(Class) {\n return new Class({\n type: \"any\",\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _unknown(Class) {\n return new Class({\n type: \"unknown\",\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _never(Class, params) {\n return new Class({\n type: \"never\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _void(Class, params) {\n return new Class({\n type: \"void\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _date(Class, params) {\n return new Class({\n type: \"date\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _coercedDate(Class, params) {\n return new Class({\n type: \"date\",\n coerce: true,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _nan(Class, params) {\n return new Class({\n type: \"nan\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _lt(value, params) {\n return new checks.$ZodCheckLessThan({\n check: \"less_than\",\n ...util.normalizeParams(params),\n value,\n inclusive: false,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _lte(value, params) {\n return new checks.$ZodCheckLessThan({\n check: \"less_than\",\n ...util.normalizeParams(params),\n value,\n inclusive: true,\n });\n}\nexport { \n/** @deprecated Use `z.lte()` instead. */\n_lte as _max, };\n// @__NO_SIDE_EFFECTS__\nexport function _gt(value, params) {\n return new checks.$ZodCheckGreaterThan({\n check: \"greater_than\",\n ...util.normalizeParams(params),\n value,\n inclusive: false,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _gte(value, params) {\n return new checks.$ZodCheckGreaterThan({\n check: \"greater_than\",\n ...util.normalizeParams(params),\n value,\n inclusive: true,\n });\n}\nexport { \n/** @deprecated Use `z.gte()` instead. */\n_gte as _min, };\n// @__NO_SIDE_EFFECTS__\nexport function _positive(params) {\n return _gt(0, params);\n}\n// negative\n// @__NO_SIDE_EFFECTS__\nexport function _negative(params) {\n return _lt(0, params);\n}\n// nonpositive\n// @__NO_SIDE_EFFECTS__\nexport function _nonpositive(params) {\n return _lte(0, params);\n}\n// nonnegative\n// @__NO_SIDE_EFFECTS__\nexport function _nonnegative(params) {\n return _gte(0, params);\n}\n// @__NO_SIDE_EFFECTS__\nexport function _multipleOf(value, params) {\n return new checks.$ZodCheckMultipleOf({\n check: \"multiple_of\",\n ...util.normalizeParams(params),\n value,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _maxSize(maximum, params) {\n return new checks.$ZodCheckMaxSize({\n check: \"max_size\",\n ...util.normalizeParams(params),\n maximum,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _minSize(minimum, params) {\n return new checks.$ZodCheckMinSize({\n check: \"min_size\",\n ...util.normalizeParams(params),\n minimum,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _size(size, params) {\n return new checks.$ZodCheckSizeEquals({\n check: \"size_equals\",\n ...util.normalizeParams(params),\n size,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _maxLength(maximum, params) {\n const ch = new checks.$ZodCheckMaxLength({\n check: \"max_length\",\n ...util.normalizeParams(params),\n maximum,\n });\n return ch;\n}\n// @__NO_SIDE_EFFECTS__\nexport function _minLength(minimum, params) {\n return new checks.$ZodCheckMinLength({\n check: \"min_length\",\n ...util.normalizeParams(params),\n minimum,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _length(length, params) {\n return new checks.$ZodCheckLengthEquals({\n check: \"length_equals\",\n ...util.normalizeParams(params),\n length,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _regex(pattern, params) {\n return new checks.$ZodCheckRegex({\n check: \"string_format\",\n format: \"regex\",\n ...util.normalizeParams(params),\n pattern,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _lowercase(params) {\n return new checks.$ZodCheckLowerCase({\n check: \"string_format\",\n format: \"lowercase\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _uppercase(params) {\n return new checks.$ZodCheckUpperCase({\n check: \"string_format\",\n format: \"uppercase\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _includes(includes, params) {\n return new checks.$ZodCheckIncludes({\n check: \"string_format\",\n format: \"includes\",\n ...util.normalizeParams(params),\n includes,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _startsWith(prefix, params) {\n return new checks.$ZodCheckStartsWith({\n check: \"string_format\",\n format: \"starts_with\",\n ...util.normalizeParams(params),\n prefix,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _endsWith(suffix, params) {\n return new checks.$ZodCheckEndsWith({\n check: \"string_format\",\n format: \"ends_with\",\n ...util.normalizeParams(params),\n suffix,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _property(property, schema, params) {\n return new checks.$ZodCheckProperty({\n check: \"property\",\n property,\n schema,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _mime(types, params) {\n return new checks.$ZodCheckMimeType({\n check: \"mime_type\",\n mime: types,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _overwrite(tx) {\n return new checks.$ZodCheckOverwrite({\n check: \"overwrite\",\n tx,\n });\n}\n// normalize\n// @__NO_SIDE_EFFECTS__\nexport function _normalize(form) {\n return _overwrite((input) => input.normalize(form));\n}\n// trim\n// @__NO_SIDE_EFFECTS__\nexport function _trim() {\n return _overwrite((input) => input.trim());\n}\n// toLowerCase\n// @__NO_SIDE_EFFECTS__\nexport function _toLowerCase() {\n return _overwrite((input) => input.toLowerCase());\n}\n// toUpperCase\n// @__NO_SIDE_EFFECTS__\nexport function _toUpperCase() {\n return _overwrite((input) => input.toUpperCase());\n}\n// slugify\n// @__NO_SIDE_EFFECTS__\nexport function _slugify() {\n return _overwrite((input) => util.slugify(input));\n}\n// @__NO_SIDE_EFFECTS__\nexport function _array(Class, element, params) {\n return new Class({\n type: \"array\",\n element,\n // get element() {\n // return element;\n // },\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _union(Class, options, params) {\n return new Class({\n type: \"union\",\n options,\n ...util.normalizeParams(params),\n });\n}\nexport function _xor(Class, options, params) {\n return new Class({\n type: \"union\",\n options,\n inclusive: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _discriminatedUnion(Class, discriminator, options, params) {\n return new Class({\n type: \"union\",\n options,\n discriminator,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _intersection(Class, left, right) {\n return new Class({\n type: \"intersection\",\n left,\n right,\n });\n}\n// export function _tuple(\n// Class: util.SchemaClass<schemas.$ZodTuple>,\n// items: [],\n// params?: string | $ZodTupleParams\n// ): schemas.$ZodTuple<[], null>;\n// @__NO_SIDE_EFFECTS__\nexport function _tuple(Class, items, _paramsOrRest, _params) {\n const hasRest = _paramsOrRest instanceof schemas.$ZodType;\n const params = hasRest ? _params : _paramsOrRest;\n const rest = hasRest ? _paramsOrRest : null;\n return new Class({\n type: \"tuple\",\n items,\n rest,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _record(Class, keyType, valueType, params) {\n return new Class({\n type: \"record\",\n keyType,\n valueType,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _map(Class, keyType, valueType, params) {\n return new Class({\n type: \"map\",\n keyType,\n valueType,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _set(Class, valueType, params) {\n return new Class({\n type: \"set\",\n valueType,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _enum(Class, values, params) {\n const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;\n // if (Array.isArray(values)) {\n // for (const value of values) {\n // entries[value] = value;\n // }\n // } else {\n // Object.assign(entries, values);\n // }\n // const entries: util.EnumLike = {};\n // for (const val of values) {\n // entries[val] = val;\n // }\n return new Class({\n type: \"enum\",\n entries,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\n/** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead.\n *\n * ```ts\n * enum Colors { red, green, blue }\n * z.enum(Colors);\n * ```\n */\nexport function _nativeEnum(Class, entries, params) {\n return new Class({\n type: \"enum\",\n entries,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _literal(Class, value, params) {\n return new Class({\n type: \"literal\",\n values: Array.isArray(value) ? value : [value],\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _file(Class, params) {\n return new Class({\n type: \"file\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _transform(Class, fn) {\n return new Class({\n type: \"transform\",\n transform: fn,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _optional(Class, innerType) {\n return new Class({\n type: \"optional\",\n innerType,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _nullable(Class, innerType) {\n return new Class({\n type: \"nullable\",\n innerType,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _default(Class, innerType, defaultValue) {\n return new Class({\n type: \"default\",\n innerType,\n get defaultValue() {\n return typeof defaultValue === \"function\" ? defaultValue() : util.shallowClone(defaultValue);\n },\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _nonoptional(Class, innerType, params) {\n return new Class({\n type: \"nonoptional\",\n innerType,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _success(Class, innerType) {\n return new Class({\n type: \"success\",\n innerType,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _catch(Class, innerType, catchValue) {\n return new Class({\n type: \"catch\",\n innerType,\n catchValue: (typeof catchValue === \"function\" ? catchValue : () => catchValue),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _pipe(Class, in_, out) {\n return new Class({\n type: \"pipe\",\n in: in_,\n out,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _readonly(Class, innerType) {\n return new Class({\n type: \"readonly\",\n innerType,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _templateLiteral(Class, parts, params) {\n return new Class({\n type: \"template_literal\",\n parts,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _lazy(Class, getter) {\n return new Class({\n type: \"lazy\",\n getter,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _promise(Class, innerType) {\n return new Class({\n type: \"promise\",\n innerType,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _custom(Class, fn, _params) {\n const norm = util.normalizeParams(_params);\n norm.abort ?? (norm.abort = true); // default to abort:false\n const schema = new Class({\n type: \"custom\",\n check: \"custom\",\n fn: fn,\n ...norm,\n });\n return schema;\n}\n// same as _custom but defaults to abort:false\n// @__NO_SIDE_EFFECTS__\nexport function _refine(Class, fn, _params) {\n const schema = new Class({\n type: \"custom\",\n check: \"custom\",\n fn: fn,\n ...util.normalizeParams(_params),\n });\n return schema;\n}\n// @__NO_SIDE_EFFECTS__\nexport function _superRefine(fn, params) {\n const ch = _check((payload) => {\n payload.addIssue = (issue) => {\n if (typeof issue === \"string\") {\n payload.issues.push(util.issue(issue, payload.value, ch._zod.def));\n }\n else {\n // for Zod 3 backwards compatibility\n const _issue = issue;\n if (_issue.fatal)\n _issue.continue = false;\n _issue.code ?? (_issue.code = \"custom\");\n _issue.input ?? (_issue.input = payload.value);\n _issue.inst ?? (_issue.inst = ch);\n _issue.continue ?? (_issue.continue = !ch._zod.def.abort); // abort is always undefined, so this is always true...\n payload.issues.push(util.issue(_issue));\n }\n };\n return fn(payload.value, payload);\n }, params);\n return ch;\n}\n// @__NO_SIDE_EFFECTS__\nexport function _check(fn, params) {\n const ch = new checks.$ZodCheck({\n check: \"custom\",\n ...util.normalizeParams(params),\n });\n ch._zod.check = fn;\n return ch;\n}\n// @__NO_SIDE_EFFECTS__\nexport function describe(description) {\n const ch = new checks.$ZodCheck({ check: \"describe\" });\n ch._zod.onattach = [\n (inst) => {\n const existing = registries.globalRegistry.get(inst) ?? {};\n registries.globalRegistry.add(inst, { ...existing, description });\n },\n ];\n ch._zod.check = () => { }; // no-op check\n return ch;\n}\n// @__NO_SIDE_EFFECTS__\nexport function meta(metadata) {\n const ch = new checks.$ZodCheck({ check: \"meta\" });\n ch._zod.onattach = [\n (inst) => {\n const existing = registries.globalRegistry.get(inst) ?? {};\n registries.globalRegistry.add(inst, { ...existing, ...metadata });\n },\n ];\n ch._zod.check = () => { }; // no-op check\n return ch;\n}\n// @__NO_SIDE_EFFECTS__\nexport function _stringbool(Classes, _params) {\n const params = util.normalizeParams(_params);\n let truthyArray = params.truthy ?? [\"true\", \"1\", \"yes\", \"on\", \"y\", \"enabled\"];\n let falsyArray = params.falsy ?? [\"false\", \"0\", \"no\", \"off\", \"n\", \"disabled\"];\n if (params.case !== \"sensitive\") {\n truthyArray = truthyArray.map((v) => (typeof v === \"string\" ? v.toLowerCase() : v));\n falsyArray = falsyArray.map((v) => (typeof v === \"string\" ? v.toLowerCase() : v));\n }\n const truthySet = new Set(truthyArray);\n const falsySet = new Set(falsyArray);\n const _Codec = Classes.Codec ?? schemas.$ZodCodec;\n const _Boolean = Classes.Boolean ?? schemas.$ZodBoolean;\n const _String = Classes.String ?? schemas.$ZodString;\n const stringSchema = new _String({ type: \"string\", error: params.error });\n const booleanSchema = new _Boolean({ type: \"boolean\", error: params.error });\n const codec = new _Codec({\n type: \"pipe\",\n in: stringSchema,\n out: booleanSchema,\n transform: ((input, payload) => {\n let data = input;\n if (params.case !== \"sensitive\")\n data = data.toLowerCase();\n if (truthySet.has(data)) {\n return true;\n }\n else if (falsySet.has(data)) {\n return false;\n }\n else {\n payload.issues.push({\n code: \"invalid_value\",\n expected: \"stringbool\",\n values: [...truthySet, ...falsySet],\n input: payload.value,\n inst: codec,\n continue: false,\n });\n return {};\n }\n }),\n reverseTransform: ((input, _payload) => {\n if (input === true) {\n return truthyArray[0] || \"true\";\n }\n else {\n return falsyArray[0] || \"false\";\n }\n }),\n error: params.error,\n });\n return codec;\n}\n// @__NO_SIDE_EFFECTS__\nexport function _stringFormat(Class, format, fnOrRegex, _params = {}) {\n const params = util.normalizeParams(_params);\n const def = {\n ...util.normalizeParams(_params),\n check: \"string_format\",\n type: \"string\",\n format,\n fn: typeof fnOrRegex === \"function\" ? fnOrRegex : (val) => fnOrRegex.test(val),\n ...params,\n };\n if (fnOrRegex instanceof RegExp) {\n def.pattern = fnOrRegex;\n }\n const inst = new Class(def);\n return inst;\n}\n","import { globalRegistry } from \"./registries.js\";\n// function initializeContext<T extends schemas.$ZodType>(inputs: JSONSchemaGeneratorParams<T>): ToJSONSchemaContext<T> {\n// return {\n// processor: inputs.processor,\n// metadataRegistry: inputs.metadata ?? globalRegistry,\n// target: inputs.target ?? \"draft-2020-12\",\n// unrepresentable: inputs.unrepresentable ?? \"throw\",\n// };\n// }\nexport function initializeContext(params) {\n // Normalize target: convert old non-hyphenated versions to hyphenated versions\n let target = params?.target ?? \"draft-2020-12\";\n if (target === \"draft-4\")\n target = \"draft-04\";\n if (target === \"draft-7\")\n target = \"draft-07\";\n return {\n processors: params.processors ?? {},\n metadataRegistry: params?.metadata ?? globalRegistry,\n target,\n unrepresentable: params?.unrepresentable ?? \"throw\",\n override: params?.override ?? (() => { }),\n io: params?.io ?? \"output\",\n counter: 0,\n seen: new Map(),\n cycles: params?.cycles ?? \"ref\",\n reused: params?.reused ?? \"inline\",\n external: params?.external ?? undefined,\n };\n}\nexport function process(schema, ctx, _params = { path: [], schemaPath: [] }) {\n var _a;\n const def = schema._zod.def;\n // check for schema in seens\n const seen = ctx.seen.get(schema);\n if (seen) {\n seen.count++;\n // check if cycle\n const isCycle = _params.schemaPath.includes(schema);\n if (isCycle) {\n seen.cycle = _params.path;\n }\n return seen.schema;\n }\n // initialize\n const result = { schema: {}, count: 1, cycle: undefined, path: _params.path };\n ctx.seen.set(schema, result);\n // custom method overrides default behavior\n const overrideSchema = schema._zod.toJSONSchema?.();\n if (overrideSchema) {\n result.schema = overrideSchema;\n }\n else {\n const params = {\n ..._params,\n schemaPath: [..._params.schemaPath, schema],\n path: _params.path,\n };\n if (schema._zod.processJSONSchema) {\n schema._zod.processJSONSchema(ctx, result.schema, params);\n }\n else {\n const _json = result.schema;\n const processor = ctx.processors[def.type];\n if (!processor) {\n throw new Error(`[toJSONSchema]: Non-representable type encountered: ${def.type}`);\n }\n processor(schema, ctx, _json, params);\n }\n const parent = schema._zod.parent;\n if (parent) {\n // Also set ref if processor didn't (for inheritance)\n if (!result.ref)\n result.ref = parent;\n process(parent, ctx, params);\n ctx.seen.get(parent).isParent = true;\n }\n }\n // metadata\n const meta = ctx.metadataRegistry.get(schema);\n if (meta)\n Object.assign(result.schema, meta);\n if (ctx.io === \"input\" && isTransforming(schema)) {\n // examples/defaults only apply to output type of pipe\n delete result.schema.examples;\n delete result.schema.default;\n }\n // set prefault as default\n if (ctx.io === \"input\" && \"_prefault\" in result.schema)\n (_a = result.schema).default ?? (_a.default = result.schema._prefault);\n delete result.schema._prefault;\n // pulling fresh from ctx.seen in case it was overwritten\n const _result = ctx.seen.get(schema);\n return _result.schema;\n}\nexport function extractDefs(ctx, schema\n// params: EmitParams\n) {\n // iterate over seen map;\n const root = ctx.seen.get(schema);\n if (!root)\n throw new Error(\"Unprocessed schema. This is a bug in Zod.\");\n // Track ids to detect duplicates across different schemas\n const idToSchema = new Map();\n for (const entry of ctx.seen.entries()) {\n const id = ctx.metadataRegistry.get(entry[0])?.id;\n if (id) {\n const existing = idToSchema.get(id);\n if (existing && existing !== entry[0]) {\n throw new Error(`Duplicate schema id \"${id}\" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);\n }\n idToSchema.set(id, entry[0]);\n }\n }\n // returns a ref to the schema\n // defId will be empty if the ref points to an external schema (or #)\n const makeURI = (entry) => {\n // comparing the seen objects because sometimes\n // multiple schemas map to the same seen object.\n // e.g. lazy\n // external is configured\n const defsSegment = ctx.target === \"draft-2020-12\" ? \"$defs\" : \"definitions\";\n if (ctx.external) {\n const externalId = ctx.external.registry.get(entry[0])?.id; // ?? \"__shared\";// `__schema${ctx.counter++}`;\n // check if schema is in the external registry\n const uriGenerator = ctx.external.uri ?? ((id) => id);\n if (externalId) {\n return { ref: uriGenerator(externalId) };\n }\n // otherwise, add to __shared\n const id = entry[1].defId ?? entry[1].schema.id ?? `schema${ctx.counter++}`;\n entry[1].defId = id; // set defId so it will be reused if needed\n return { defId: id, ref: `${uriGenerator(\"__shared\")}#/${defsSegment}/${id}` };\n }\n if (entry[1] === root) {\n return { ref: \"#\" };\n }\n // self-contained schema\n const uriPrefix = `#`;\n const defUriPrefix = `${uriPrefix}/${defsSegment}/`;\n const defId = entry[1].schema.id ?? `__schema${ctx.counter++}`;\n return { defId, ref: defUriPrefix + defId };\n };\n // stored cached version in `def` property\n // remove all properties, set $ref\n const extractToDef = (entry) => {\n // if the schema is already a reference, do not extract it\n if (entry[1].schema.$ref) {\n return;\n }\n const seen = entry[1];\n const { ref, defId } = makeURI(entry);\n seen.def = { ...seen.schema };\n // defId won't be set if the schema is a reference to an external schema\n // or if the schema is the root schema\n if (defId)\n seen.defId = defId;\n // wipe away all properties except $ref\n const schema = seen.schema;\n for (const key in schema) {\n delete schema[key];\n }\n schema.$ref = ref;\n };\n // throw on cycles\n // break cycles\n if (ctx.cycles === \"throw\") {\n for (const entry of ctx.seen.entries()) {\n const seen = entry[1];\n if (seen.cycle) {\n throw new Error(\"Cycle detected: \" +\n `#/${seen.cycle?.join(\"/\")}/<root>` +\n '\\n\\nSet the `cycles` parameter to `\"ref\"` to resolve cyclical schemas with defs.');\n }\n }\n }\n // extract schemas into $defs\n for (const entry of ctx.seen.entries()) {\n const seen = entry[1];\n // convert root schema to # $ref\n if (schema === entry[0]) {\n extractToDef(entry); // this has special handling for the root schema\n continue;\n }\n // extract schemas that are in the external registry\n if (ctx.external) {\n const ext = ctx.external.registry.get(entry[0])?.id;\n if (schema !== entry[0] && ext) {\n extractToDef(entry);\n continue;\n }\n }\n // extract schemas with `id` meta\n const id = ctx.metadataRegistry.get(entry[0])?.id;\n if (id) {\n extractToDef(entry);\n continue;\n }\n // break cycles\n if (seen.cycle) {\n // any\n extractToDef(entry);\n continue;\n }\n // extract reused schemas\n if (seen.count > 1) {\n if (ctx.reused === \"ref\") {\n extractToDef(entry);\n // biome-ignore lint:\n continue;\n }\n }\n }\n}\nexport function finalize(ctx, schema) {\n const root = ctx.seen.get(schema);\n if (!root)\n throw new Error(\"Unprocessed schema. This is a bug in Zod.\");\n // flatten refs - inherit properties from parent schemas\n const flattenRef = (zodSchema) => {\n const seen = ctx.seen.get(zodSchema);\n // already processed\n if (seen.ref === null)\n return;\n const schema = seen.def ?? seen.schema;\n const _cached = { ...schema };\n const ref = seen.ref;\n seen.ref = null; // prevent infinite recursion\n if (ref) {\n flattenRef(ref);\n const refSeen = ctx.seen.get(ref);\n const refSchema = refSeen.schema;\n // merge referenced schema into current\n if (refSchema.$ref && (ctx.target === \"draft-07\" || ctx.target === \"draft-04\" || ctx.target === \"openapi-3.0\")) {\n // older drafts can't combine $ref with other properties\n schema.allOf = schema.allOf ?? [];\n schema.allOf.push(refSchema);\n }\n else {\n Object.assign(schema, refSchema);\n }\n // restore child's own properties (child wins)\n Object.assign(schema, _cached);\n const isParentRef = zodSchema._zod.parent === ref;\n // For parent chain, child is a refinement - remove parent-only properties\n if (isParentRef) {\n for (const key in schema) {\n if (key === \"$ref\" || key === \"allOf\")\n continue;\n if (!(key in _cached)) {\n delete schema[key];\n }\n }\n }\n // When ref was extracted to $defs, remove properties that match the definition\n if (refSchema.$ref && refSeen.def) {\n for (const key in schema) {\n if (key === \"$ref\" || key === \"allOf\")\n continue;\n if (key in refSeen.def && JSON.stringify(schema[key]) === JSON.stringify(refSeen.def[key])) {\n delete schema[key];\n }\n }\n }\n }\n // If parent was extracted (has $ref), propagate $ref to this schema\n // This handles cases like: readonly().meta({id}).describe()\n // where processor sets ref to innerType but parent should be referenced\n const parent = zodSchema._zod.parent;\n if (parent && parent !== ref) {\n // Ensure parent is processed first so its def has inherited properties\n flattenRef(parent);\n const parentSeen = ctx.seen.get(parent);\n if (parentSeen?.schema.$ref) {\n schema.$ref = parentSeen.schema.$ref;\n // De-duplicate with parent's definition\n if (parentSeen.def) {\n for (const key in schema) {\n if (key === \"$ref\" || key === \"allOf\")\n continue;\n if (key in parentSeen.def && JSON.stringify(schema[key]) === JSON.stringify(parentSeen.def[key])) {\n delete schema[key];\n }\n }\n }\n }\n }\n // execute overrides\n ctx.override({\n zodSchema: zodSchema,\n jsonSchema: schema,\n path: seen.path ?? [],\n });\n };\n for (const entry of [...ctx.seen.entries()].reverse()) {\n flattenRef(entry[0]);\n }\n const result = {};\n if (ctx.target === \"draft-2020-12\") {\n result.$schema = \"https://json-schema.org/draft/2020-12/schema\";\n }\n else if (ctx.target === \"draft-07\") {\n result.$schema = \"http://json-schema.org/draft-07/schema#\";\n }\n else if (ctx.target === \"draft-04\") {\n result.$schema = \"http://json-schema.org/draft-04/schema#\";\n }\n else if (ctx.target === \"openapi-3.0\") {\n // OpenAPI 3.0 schema objects should not include a $schema property\n }\n else {\n // Arbitrary string values are allowed but won't have a $schema property set\n }\n if (ctx.external?.uri) {\n const id = ctx.external.registry.get(schema)?.id;\n if (!id)\n throw new Error(\"Schema is missing an `id` property\");\n result.$id = ctx.external.uri(id);\n }\n Object.assign(result, root.def ?? root.schema);\n // The `id` in `.meta()` is a Zod-specific registration tag used to extract\n // schemas into $defs — it is not user-facing JSON Schema metadata. Strip it\n // from the output body where it would otherwise leak. The id is preserved\n // implicitly via the $defs key (and via $ref paths).\n const rootMetaId = ctx.metadataRegistry.get(schema)?.id;\n if (rootMetaId !== undefined && result.id === rootMetaId)\n delete result.id;\n // build defs object\n const defs = ctx.external?.defs ?? {};\n for (const entry of ctx.seen.entries()) {\n const seen = entry[1];\n if (seen.def && seen.defId) {\n if (seen.def.id === seen.defId)\n delete seen.def.id;\n defs[seen.defId] = seen.def;\n }\n }\n // set definitions in result\n if (ctx.external) {\n }\n else {\n if (Object.keys(defs).length > 0) {\n if (ctx.target === \"draft-2020-12\") {\n result.$defs = defs;\n }\n else {\n result.definitions = defs;\n }\n }\n }\n try {\n // this \"finalizes\" this schema and ensures all cycles are removed\n // each call to finalize() is functionally independent\n // though the seen map is shared\n const finalized = JSON.parse(JSON.stringify(result));\n Object.defineProperty(finalized, \"~standard\", {\n value: {\n ...schema[\"~standard\"],\n jsonSchema: {\n input: createStandardJSONSchemaMethod(schema, \"input\", ctx.processors),\n output: createStandardJSONSchemaMethod(schema, \"output\", ctx.processors),\n },\n },\n enumerable: false,\n writable: false,\n });\n return finalized;\n }\n catch (_err) {\n throw new Error(\"Error converting schema to JSON.\");\n }\n}\nfunction isTransforming(_schema, _ctx) {\n const ctx = _ctx ?? { seen: new Set() };\n if (ctx.seen.has(_schema))\n return false;\n ctx.seen.add(_schema);\n const def = _schema._zod.def;\n if (def.type === \"transform\")\n return true;\n if (def.type === \"array\")\n return isTransforming(def.element, ctx);\n if (def.type === \"set\")\n return isTransforming(def.valueType, ctx);\n if (def.type === \"lazy\")\n return isTransforming(def.getter(), ctx);\n if (def.type === \"promise\" ||\n def.type === \"optional\" ||\n def.type === \"nonoptional\" ||\n def.type === \"nullable\" ||\n def.type === \"readonly\" ||\n def.type === \"default\" ||\n def.type === \"prefault\") {\n return isTransforming(def.innerType, ctx);\n }\n if (def.type === \"intersection\") {\n return isTransforming(def.left, ctx) || isTransforming(def.right, ctx);\n }\n if (def.type === \"record\" || def.type === \"map\") {\n return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);\n }\n if (def.type === \"pipe\") {\n if (_schema._zod.traits.has(\"$ZodCodec\"))\n return true;\n return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);\n }\n if (def.type === \"object\") {\n for (const key in def.shape) {\n if (isTransforming(def.shape[key], ctx))\n return true;\n }\n return false;\n }\n if (def.type === \"union\") {\n for (const option of def.options) {\n if (isTransforming(option, ctx))\n return true;\n }\n return false;\n }\n if (def.type === \"tuple\") {\n for (const item of def.items) {\n if (isTransforming(item, ctx))\n return true;\n }\n if (def.rest && isTransforming(def.rest, ctx))\n return true;\n return false;\n }\n return false;\n}\n/**\n * Creates a toJSONSchema method for a schema instance.\n * This encapsulates the logic of initializing context, processing, extracting defs, and finalizing.\n */\nexport const createToJSONSchemaMethod = (schema, processors = {}) => (params) => {\n const ctx = initializeContext({ ...params, processors });\n process(schema, ctx);\n extractDefs(ctx, schema);\n return finalize(ctx, schema);\n};\nexport const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {\n const { libraryOptions, target } = params ?? {};\n const ctx = initializeContext({ ...(libraryOptions ?? {}), target, io, processors });\n process(schema, ctx);\n extractDefs(ctx, schema);\n return finalize(ctx, schema);\n};\n","import { extractDefs, finalize, initializeContext, process, } from \"./to-json-schema.js\";\nimport { getEnumValues } from \"./util.js\";\nconst formatMap = {\n guid: \"uuid\",\n url: \"uri\",\n datetime: \"date-time\",\n json_string: \"json-string\",\n regex: \"\", // do not set\n};\n// ==================== SIMPLE TYPE PROCESSORS ====================\nexport const stringProcessor = (schema, ctx, _json, _params) => {\n const json = _json;\n json.type = \"string\";\n const { minimum, maximum, format, patterns, contentEncoding } = schema._zod\n .bag;\n if (typeof minimum === \"number\")\n json.minLength = minimum;\n if (typeof maximum === \"number\")\n json.maxLength = maximum;\n // custom pattern overrides format\n if (format) {\n json.format = formatMap[format] ?? format;\n if (json.format === \"\")\n delete json.format; // empty format is not valid\n // JSON Schema format: \"time\" requires a full time with offset or Z\n // z.iso.time() does not include timezone information, so format: \"time\" should never be used\n if (format === \"time\") {\n delete json.format;\n }\n }\n if (contentEncoding)\n json.contentEncoding = contentEncoding;\n if (patterns && patterns.size > 0) {\n const regexes = [...patterns];\n if (regexes.length === 1)\n json.pattern = regexes[0].source;\n else if (regexes.length > 1) {\n json.allOf = [\n ...regexes.map((regex) => ({\n ...(ctx.target === \"draft-07\" || ctx.target === \"draft-04\" || ctx.target === \"openapi-3.0\"\n ? { type: \"string\" }\n : {}),\n pattern: regex.source,\n })),\n ];\n }\n }\n};\nexport const numberProcessor = (schema, ctx, _json, _params) => {\n const json = _json;\n const { minimum, maximum, format, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag;\n if (typeof format === \"string\" && format.includes(\"int\"))\n json.type = \"integer\";\n else\n json.type = \"number\";\n // when both minimum and exclusiveMinimum exist, pick the more restrictive one\n const exMin = typeof exclusiveMinimum === \"number\" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);\n const exMax = typeof exclusiveMaximum === \"number\" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);\n const legacy = ctx.target === \"draft-04\" || ctx.target === \"openapi-3.0\";\n if (exMin) {\n if (legacy) {\n json.minimum = exclusiveMinimum;\n json.exclusiveMinimum = true;\n }\n else {\n json.exclusiveMinimum = exclusiveMinimum;\n }\n }\n else if (typeof minimum === \"number\") {\n json.minimum = minimum;\n }\n if (exMax) {\n if (legacy) {\n json.maximum = exclusiveMaximum;\n json.exclusiveMaximum = true;\n }\n else {\n json.exclusiveMaximum = exclusiveMaximum;\n }\n }\n else if (typeof maximum === \"number\") {\n json.maximum = maximum;\n }\n if (typeof multipleOf === \"number\")\n json.multipleOf = multipleOf;\n};\nexport const booleanProcessor = (_schema, _ctx, json, _params) => {\n json.type = \"boolean\";\n};\nexport const bigintProcessor = (_schema, ctx, _json, _params) => {\n if (ctx.unrepresentable === \"throw\") {\n throw new Error(\"BigInt cannot be represented in JSON Schema\");\n }\n};\nexport const symbolProcessor = (_schema, ctx, _json, _params) => {\n if (ctx.unrepresentable === \"throw\") {\n throw new Error(\"Symbols cannot be represented in JSON Schema\");\n }\n};\nexport const nullProcessor = (_schema, ctx, json, _params) => {\n if (ctx.target === \"openapi-3.0\") {\n json.type = \"string\";\n json.nullable = true;\n json.enum = [null];\n }\n else {\n json.type = \"null\";\n }\n};\nexport const undefinedProcessor = (_schema, ctx, _json, _params) => {\n if (ctx.unrepresentable === \"throw\") {\n throw new Error(\"Undefined cannot be represented in JSON Schema\");\n }\n};\nexport const voidProcessor = (_schema, ctx, _json, _params) => {\n if (ctx.unrepresentable === \"throw\") {\n throw new Error(\"Void cannot be represented in JSON Schema\");\n }\n};\nexport const neverProcessor = (_schema, _ctx, json, _params) => {\n json.not = {};\n};\nexport const anyProcessor = (_schema, _ctx, _json, _params) => {\n // empty schema accepts anything\n};\nexport const unknownProcessor = (_schema, _ctx, _json, _params) => {\n // empty schema accepts anything\n};\nexport const dateProcessor = (_schema, ctx, _json, _params) => {\n if (ctx.unrepresentable === \"throw\") {\n throw new Error(\"Date cannot be represented in JSON Schema\");\n }\n};\nexport const enumProcessor = (schema, _ctx, json, _params) => {\n const def = schema._zod.def;\n const values = getEnumValues(def.entries);\n // Number enums can have both string and number values\n if (values.every((v) => typeof v === \"number\"))\n json.type = \"number\";\n if (values.every((v) => typeof v === \"string\"))\n json.type = \"string\";\n json.enum = values;\n};\nexport const literalProcessor = (schema, ctx, json, _params) => {\n const def = schema._zod.def;\n const vals = [];\n for (const val of def.values) {\n if (val === undefined) {\n if (ctx.unrepresentable === \"throw\") {\n throw new Error(\"Literal `undefined` cannot be represented in JSON Schema\");\n }\n else {\n // do not add to vals\n }\n }\n else if (typeof val === \"bigint\") {\n if (ctx.unrepresentable === \"throw\") {\n throw new Error(\"BigInt literals cannot be represented in JSON Schema\");\n }\n else {\n vals.push(Number(val));\n }\n }\n else {\n vals.push(val);\n }\n }\n if (vals.length === 0) {\n // do nothing (an undefined literal was stripped)\n }\n else if (vals.length === 1) {\n const val = vals[0];\n json.type = val === null ? \"null\" : typeof val;\n if (ctx.target === \"draft-04\" || ctx.target === \"openapi-3.0\") {\n json.enum = [val];\n }\n else {\n json.const = val;\n }\n }\n else {\n if (vals.every((v) => typeof v === \"number\"))\n json.type = \"number\";\n if (vals.every((v) => typeof v === \"string\"))\n json.type = \"string\";\n if (vals.every((v) => typeof v === \"boolean\"))\n json.type = \"boolean\";\n if (vals.every((v) => v === null))\n json.type = \"null\";\n json.enum = vals;\n }\n};\nexport const nanProcessor = (_schema, ctx, _json, _params) => {\n if (ctx.unrepresentable === \"throw\") {\n throw new Error(\"NaN cannot be represented in JSON Schema\");\n }\n};\nexport const templateLiteralProcessor = (schema, _ctx, json, _params) => {\n const _json = json;\n const pattern = schema._zod.pattern;\n if (!pattern)\n throw new Error(\"Pattern not found in template literal\");\n _json.type = \"string\";\n _json.pattern = pattern.source;\n};\nexport const fileProcessor = (schema, _ctx, json, _params) => {\n const _json = json;\n const file = {\n type: \"string\",\n format: \"binary\",\n contentEncoding: \"binary\",\n };\n const { minimum, maximum, mime } = schema._zod.bag;\n if (minimum !== undefined)\n file.minLength = minimum;\n if (maximum !== undefined)\n file.maxLength = maximum;\n if (mime) {\n if (mime.length === 1) {\n file.contentMediaType = mime[0];\n Object.assign(_json, file);\n }\n else {\n Object.assign(_json, file); // shared props at root\n _json.anyOf = mime.map((m) => ({ contentMediaType: m })); // only contentMediaType differs\n }\n }\n else {\n Object.assign(_json, file);\n }\n};\nexport const successProcessor = (_schema, _ctx, json, _params) => {\n json.type = \"boolean\";\n};\nexport const customProcessor = (_schema, ctx, _json, _params) => {\n if (ctx.unrepresentable === \"throw\") {\n throw new Error(\"Custom types cannot be represented in JSON Schema\");\n }\n};\nexport const functionProcessor = (_schema, ctx, _json, _params) => {\n if (ctx.unrepresentable === \"throw\") {\n throw new Error(\"Function types cannot be represented in JSON Schema\");\n }\n};\nexport const transformProcessor = (_schema, ctx, _json, _params) => {\n if (ctx.unrepresentable === \"throw\") {\n throw new Error(\"Transforms cannot be represented in JSON Schema\");\n }\n};\nexport const mapProcessor = (_schema, ctx, _json, _params) => {\n if (ctx.unrepresentable === \"throw\") {\n throw new Error(\"Map cannot be represented in JSON Schema\");\n }\n};\nexport const setProcessor = (_schema, ctx, _json, _params) => {\n if (ctx.unrepresentable === \"throw\") {\n throw new Error(\"Set cannot be represented in JSON Schema\");\n }\n};\n// ==================== COMPOSITE TYPE PROCESSORS ====================\nexport const arrayProcessor = (schema, ctx, _json, params) => {\n const json = _json;\n const def = schema._zod.def;\n const { minimum, maximum } = schema._zod.bag;\n if (typeof minimum === \"number\")\n json.minItems = minimum;\n if (typeof maximum === \"number\")\n json.maxItems = maximum;\n json.type = \"array\";\n json.items = process(def.element, ctx, {\n ...params,\n path: [...params.path, \"items\"],\n });\n};\nexport const objectProcessor = (schema, ctx, _json, params) => {\n const json = _json;\n const def = schema._zod.def;\n json.type = \"object\";\n json.properties = {};\n const shape = def.shape;\n for (const key in shape) {\n json.properties[key] = process(shape[key], ctx, {\n ...params,\n path: [...params.path, \"properties\", key],\n });\n }\n // required keys\n const allKeys = new Set(Object.keys(shape));\n const requiredKeys = new Set([...allKeys].filter((key) => {\n const v = def.shape[key]._zod;\n if (ctx.io === \"input\") {\n return v.optin === undefined;\n }\n else {\n return v.optout === undefined;\n }\n }));\n if (requiredKeys.size > 0) {\n json.required = Array.from(requiredKeys);\n }\n // catchall\n if (def.catchall?._zod.def.type === \"never\") {\n // strict\n json.additionalProperties = false;\n }\n else if (!def.catchall) {\n // regular\n if (ctx.io === \"output\")\n json.additionalProperties = false;\n }\n else if (def.catchall) {\n json.additionalProperties = process(def.catchall, ctx, {\n ...params,\n path: [...params.path, \"additionalProperties\"],\n });\n }\n};\nexport const unionProcessor = (schema, ctx, json, params) => {\n const def = schema._zod.def;\n // Exclusive unions (inclusive === false) use oneOf (exactly one match) instead of anyOf (one or more matches)\n // This includes both z.xor() and discriminated unions\n const isExclusive = def.inclusive === false;\n const options = def.options.map((x, i) => process(x, ctx, {\n ...params,\n path: [...params.path, isExclusive ? \"oneOf\" : \"anyOf\", i],\n }));\n if (isExclusive) {\n json.oneOf = options;\n }\n else {\n json.anyOf = options;\n }\n};\nexport const intersectionProcessor = (schema, ctx, json, params) => {\n const def = schema._zod.def;\n const a = process(def.left, ctx, {\n ...params,\n path: [...params.path, \"allOf\", 0],\n });\n const b = process(def.right, ctx, {\n ...params,\n path: [...params.path, \"allOf\", 1],\n });\n const isSimpleIntersection = (val) => \"allOf\" in val && Object.keys(val).length === 1;\n const allOf = [\n ...(isSimpleIntersection(a) ? a.allOf : [a]),\n ...(isSimpleIntersection(b) ? b.allOf : [b]),\n ];\n json.allOf = allOf;\n};\nexport const tupleProcessor = (schema, ctx, _json, params) => {\n const json = _json;\n const def = schema._zod.def;\n json.type = \"array\";\n const prefixPath = ctx.target === \"draft-2020-12\" ? \"prefixItems\" : \"items\";\n const restPath = ctx.target === \"draft-2020-12\" ? \"items\" : ctx.target === \"openapi-3.0\" ? \"items\" : \"additionalItems\";\n const prefixItems = def.items.map((x, i) => process(x, ctx, {\n ...params,\n path: [...params.path, prefixPath, i],\n }));\n const rest = def.rest\n ? process(def.rest, ctx, {\n ...params,\n path: [...params.path, restPath, ...(ctx.target === \"openapi-3.0\" ? [def.items.length] : [])],\n })\n : null;\n if (ctx.target === \"draft-2020-12\") {\n json.prefixItems = prefixItems;\n if (rest) {\n json.items = rest;\n }\n }\n else if (ctx.target === \"openapi-3.0\") {\n json.items = {\n anyOf: prefixItems,\n };\n if (rest) {\n json.items.anyOf.push(rest);\n }\n json.minItems = prefixItems.length;\n if (!rest) {\n json.maxItems = prefixItems.length;\n }\n }\n else {\n json.items = prefixItems;\n if (rest) {\n json.additionalItems = rest;\n }\n }\n // length\n const { minimum, maximum } = schema._zod.bag;\n if (typeof minimum === \"number\")\n json.minItems = minimum;\n if (typeof maximum === \"number\")\n json.maxItems = maximum;\n};\nexport const recordProcessor = (schema, ctx, _json, params) => {\n const json = _json;\n const def = schema._zod.def;\n json.type = \"object\";\n // For looseRecord with regex patterns, use patternProperties\n // This correctly represents \"only validate keys matching the pattern\" semantics\n // and composes well with allOf (intersections)\n const keyType = def.keyType;\n const keyBag = keyType._zod.bag;\n const patterns = keyBag?.patterns;\n if (def.mode === \"loose\" && patterns && patterns.size > 0) {\n // Use patternProperties for looseRecord with regex patterns\n const valueSchema = process(def.valueType, ctx, {\n ...params,\n path: [...params.path, \"patternProperties\", \"*\"],\n });\n json.patternProperties = {};\n for (const pattern of patterns) {\n json.patternProperties[pattern.source] = valueSchema;\n }\n }\n else {\n // Default behavior: use propertyNames + additionalProperties\n if (ctx.target === \"draft-07\" || ctx.target === \"draft-2020-12\") {\n json.propertyNames = process(def.keyType, ctx, {\n ...params,\n path: [...params.path, \"propertyNames\"],\n });\n }\n json.additionalProperties = process(def.valueType, ctx, {\n ...params,\n path: [...params.path, \"additionalProperties\"],\n });\n }\n // Add required for keys with discrete values (enum, literal, etc.)\n const keyValues = keyType._zod.values;\n if (keyValues) {\n const validKeyValues = [...keyValues].filter((v) => typeof v === \"string\" || typeof v === \"number\");\n if (validKeyValues.length > 0) {\n json.required = validKeyValues;\n }\n }\n};\nexport const nullableProcessor = (schema, ctx, json, params) => {\n const def = schema._zod.def;\n const inner = process(def.innerType, ctx, params);\n const seen = ctx.seen.get(schema);\n if (ctx.target === \"openapi-3.0\") {\n seen.ref = def.innerType;\n json.nullable = true;\n }\n else {\n json.anyOf = [inner, { type: \"null\" }];\n }\n};\nexport const nonoptionalProcessor = (schema, ctx, _json, params) => {\n const def = schema._zod.def;\n process(def.innerType, ctx, params);\n const seen = ctx.seen.get(schema);\n seen.ref = def.innerType;\n};\nexport const defaultProcessor = (schema, ctx, json, params) => {\n const def = schema._zod.def;\n process(def.innerType, ctx, params);\n const seen = ctx.seen.get(schema);\n seen.ref = def.innerType;\n json.default = JSON.parse(JSON.stringify(def.defaultValue));\n};\nexport const prefaultProcessor = (schema, ctx, json, params) => {\n const def = schema._zod.def;\n process(def.innerType, ctx, params);\n const seen = ctx.seen.get(schema);\n seen.ref = def.innerType;\n if (ctx.io === \"input\")\n json._prefault = JSON.parse(JSON.stringify(def.defaultValue));\n};\nexport const catchProcessor = (schema, ctx, json, params) => {\n const def = schema._zod.def;\n process(def.innerType, ctx, params);\n const seen = ctx.seen.get(schema);\n seen.ref = def.innerType;\n let catchValue;\n try {\n catchValue = def.catchValue(undefined);\n }\n catch {\n throw new Error(\"Dynamic catch values are not supported in JSON Schema\");\n }\n json.default = catchValue;\n};\nexport const pipeProcessor = (schema, ctx, _json, params) => {\n const def = schema._zod.def;\n const inIsTransform = def.in._zod.traits.has(\"$ZodTransform\");\n const innerType = ctx.io === \"input\" ? (inIsTransform ? def.out : def.in) : def.out;\n process(innerType, ctx, params);\n const seen = ctx.seen.get(schema);\n seen.ref = innerType;\n};\nexport const readonlyProcessor = (schema, ctx, json, params) => {\n const def = schema._zod.def;\n process(def.innerType, ctx, params);\n const seen = ctx.seen.get(schema);\n seen.ref = def.innerType;\n json.readOnly = true;\n};\nexport const promiseProcessor = (schema, ctx, _json, params) => {\n const def = schema._zod.def;\n process(def.innerType, ctx, params);\n const seen = ctx.seen.get(schema);\n seen.ref = def.innerType;\n};\nexport const optionalProcessor = (schema, ctx, _json, params) => {\n const def = schema._zod.def;\n process(def.innerType, ctx, params);\n const seen = ctx.seen.get(schema);\n seen.ref = def.innerType;\n};\nexport const lazyProcessor = (schema, ctx, _json, params) => {\n const innerType = schema._zod.innerType;\n process(innerType, ctx, params);\n const seen = ctx.seen.get(schema);\n seen.ref = innerType;\n};\n// ==================== ALL PROCESSORS ====================\nexport const allProcessors = {\n string: stringProcessor,\n number: numberProcessor,\n boolean: booleanProcessor,\n bigint: bigintProcessor,\n symbol: symbolProcessor,\n null: nullProcessor,\n undefined: undefinedProcessor,\n void: voidProcessor,\n never: neverProcessor,\n any: anyProcessor,\n unknown: unknownProcessor,\n date: dateProcessor,\n enum: enumProcessor,\n literal: literalProcessor,\n nan: nanProcessor,\n template_literal: templateLiteralProcessor,\n file: fileProcessor,\n success: successProcessor,\n custom: customProcessor,\n function: functionProcessor,\n transform: transformProcessor,\n map: mapProcessor,\n set: setProcessor,\n array: arrayProcessor,\n object: objectProcessor,\n union: unionProcessor,\n intersection: intersectionProcessor,\n tuple: tupleProcessor,\n record: recordProcessor,\n nullable: nullableProcessor,\n nonoptional: nonoptionalProcessor,\n default: defaultProcessor,\n prefault: prefaultProcessor,\n catch: catchProcessor,\n pipe: pipeProcessor,\n readonly: readonlyProcessor,\n promise: promiseProcessor,\n optional: optionalProcessor,\n lazy: lazyProcessor,\n};\nexport function toJSONSchema(input, params) {\n if (\"_idmap\" in input) {\n // Registry case\n const registry = input;\n const ctx = initializeContext({ ...params, processors: allProcessors });\n const defs = {};\n // First pass: process all schemas to build the seen map\n for (const entry of registry._idmap.entries()) {\n const [_, schema] = entry;\n process(schema, ctx);\n }\n const schemas = {};\n const external = {\n registry,\n uri: params?.uri,\n defs,\n };\n // Update the context with external configuration\n ctx.external = external;\n // Second pass: emit each schema\n for (const entry of registry._idmap.entries()) {\n const [key, schema] = entry;\n extractDefs(ctx, schema);\n schemas[key] = finalize(ctx, schema);\n }\n if (Object.keys(defs).length > 0) {\n const defsSegment = ctx.target === \"draft-2020-12\" ? \"$defs\" : \"definitions\";\n schemas.__shared = {\n [defsSegment]: defs,\n };\n }\n return { schemas };\n }\n // Single schema case\n const ctx = initializeContext({ ...params, processors: allProcessors });\n process(input, ctx);\n extractDefs(ctx, input);\n return finalize(ctx, input);\n}\n","import * as core from \"../core/index.js\";\nimport { $ZodError } from \"../core/index.js\";\nimport * as util from \"../core/util.js\";\nconst initializer = (inst, issues) => {\n $ZodError.init(inst, issues);\n inst.name = \"ZodError\";\n Object.defineProperties(inst, {\n format: {\n value: (mapper) => core.formatError(inst, mapper),\n // enumerable: false,\n },\n flatten: {\n value: (mapper) => core.flattenError(inst, mapper),\n // enumerable: false,\n },\n addIssue: {\n value: (issue) => {\n inst.issues.push(issue);\n inst.message = JSON.stringify(inst.issues, util.jsonStringifyReplacer, 2);\n },\n // enumerable: false,\n },\n addIssues: {\n value: (issues) => {\n inst.issues.push(...issues);\n inst.message = JSON.stringify(inst.issues, util.jsonStringifyReplacer, 2);\n },\n // enumerable: false,\n },\n isEmpty: {\n get() {\n return inst.issues.length === 0;\n },\n // enumerable: false,\n },\n });\n // Object.defineProperty(inst, \"isEmpty\", {\n // get() {\n // return inst.issues.length === 0;\n // },\n // });\n};\nexport const ZodError = /*@__PURE__*/ core.$constructor(\"ZodError\", initializer);\nexport const ZodRealError = /*@__PURE__*/ core.$constructor(\"ZodError\", initializer, {\n Parent: Error,\n});\n// /** @deprecated Use `z.core.$ZodErrorMapCtx` instead. */\n// export type ErrorMapCtx = core.$ZodErrorMapCtx;\n","import * as core from \"../core/index.js\";\nimport { ZodRealError } from \"./errors.js\";\nexport const parse = /* @__PURE__ */ core._parse(ZodRealError);\nexport const parseAsync = /* @__PURE__ */ core._parseAsync(ZodRealError);\nexport const safeParse = /* @__PURE__ */ core._safeParse(ZodRealError);\nexport const safeParseAsync = /* @__PURE__ */ core._safeParseAsync(ZodRealError);\n// Codec functions\nexport const encode = /* @__PURE__ */ core._encode(ZodRealError);\nexport const decode = /* @__PURE__ */ core._decode(ZodRealError);\nexport const encodeAsync = /* @__PURE__ */ core._encodeAsync(ZodRealError);\nexport const decodeAsync = /* @__PURE__ */ core._decodeAsync(ZodRealError);\nexport const safeEncode = /* @__PURE__ */ core._safeEncode(ZodRealError);\nexport const safeDecode = /* @__PURE__ */ core._safeDecode(ZodRealError);\nexport const safeEncodeAsync = /* @__PURE__ */ core._safeEncodeAsync(ZodRealError);\nexport const safeDecodeAsync = /* @__PURE__ */ core._safeDecodeAsync(ZodRealError);\n","import * as core from \"../core/index.js\";\nimport { util } from \"../core/index.js\";\nimport * as processors from \"../core/json-schema-processors.js\";\nimport { createStandardJSONSchemaMethod, createToJSONSchemaMethod } from \"../core/to-json-schema.js\";\nimport * as checks from \"./checks.js\";\nimport * as iso from \"./iso.js\";\nimport * as parse from \"./parse.js\";\n// Lazy-bind builder methods.\n//\n// Builder methods (`.optional`, `.array`, `.refine`, ...) live as\n// non-enumerable getters on each concrete schema constructor's\n// prototype. On first access from an instance the getter allocates\n// `fn.bind(this)` and caches it as an own property on that instance,\n// so detached usage (`const m = schema.optional; m()`) still works\n// and the per-instance allocation only happens for methods actually\n// touched.\n//\n// One install per (prototype, group), memoized by `_installedGroups`.\nconst _installedGroups = /* @__PURE__ */ new WeakMap();\nfunction _installLazyMethods(inst, group, methods) {\n const proto = Object.getPrototypeOf(inst);\n let installed = _installedGroups.get(proto);\n if (!installed) {\n installed = new Set();\n _installedGroups.set(proto, installed);\n }\n if (installed.has(group))\n return;\n installed.add(group);\n for (const key in methods) {\n const fn = methods[key];\n Object.defineProperty(proto, key, {\n configurable: true,\n enumerable: false,\n get() {\n const bound = fn.bind(this);\n Object.defineProperty(this, key, {\n configurable: true,\n writable: true,\n enumerable: true,\n value: bound,\n });\n return bound;\n },\n set(v) {\n Object.defineProperty(this, key, {\n configurable: true,\n writable: true,\n enumerable: true,\n value: v,\n });\n },\n });\n }\n}\nexport const ZodType = /*@__PURE__*/ core.$constructor(\"ZodType\", (inst, def) => {\n core.$ZodType.init(inst, def);\n Object.assign(inst[\"~standard\"], {\n jsonSchema: {\n input: createStandardJSONSchemaMethod(inst, \"input\"),\n output: createStandardJSONSchemaMethod(inst, \"output\"),\n },\n });\n inst.toJSONSchema = createToJSONSchemaMethod(inst, {});\n inst.def = def;\n inst.type = def.type;\n Object.defineProperty(inst, \"_def\", { value: def });\n // Parse-family is intentionally kept as per-instance closures: these are\n // the hot path AND the most-detached methods (`arr.map(schema.parse)`,\n // `const { parse } = schema`, etc.). Eager closures here mean callers pay\n // ~12 closure allocations per schema but get monomorphic call sites and\n // detached usage that \"just works\".\n inst.parse = (data, params) => parse.parse(inst, data, params, { callee: inst.parse });\n inst.safeParse = (data, params) => parse.safeParse(inst, data, params);\n inst.parseAsync = async (data, params) => parse.parseAsync(inst, data, params, { callee: inst.parseAsync });\n inst.safeParseAsync = async (data, params) => parse.safeParseAsync(inst, data, params);\n inst.spa = inst.safeParseAsync;\n inst.encode = (data, params) => parse.encode(inst, data, params);\n inst.decode = (data, params) => parse.decode(inst, data, params);\n inst.encodeAsync = async (data, params) => parse.encodeAsync(inst, data, params);\n inst.decodeAsync = async (data, params) => parse.decodeAsync(inst, data, params);\n inst.safeEncode = (data, params) => parse.safeEncode(inst, data, params);\n inst.safeDecode = (data, params) => parse.safeDecode(inst, data, params);\n inst.safeEncodeAsync = async (data, params) => parse.safeEncodeAsync(inst, data, params);\n inst.safeDecodeAsync = async (data, params) => parse.safeDecodeAsync(inst, data, params);\n // All builder methods are placed on the internal prototype as lazy-bind\n // getters. On first access per-instance, a bound thunk is allocated and\n // cached as an own property; subsequent accesses skip the getter. This\n // means: no per-instance allocation for unused methods, full\n // detachability preserved (`const m = schema.optional; m()` works), and\n // shared underlying function references across all instances.\n _installLazyMethods(inst, \"ZodType\", {\n check(...chks) {\n const def = this.def;\n return this.clone(util.mergeDefs(def, {\n checks: [\n ...(def.checks ?? []),\n ...chks.map((ch) => typeof ch === \"function\" ? { _zod: { check: ch, def: { check: \"custom\" }, onattach: [] } } : ch),\n ],\n }), { parent: true });\n },\n with(...chks) {\n return this.check(...chks);\n },\n clone(def, params) {\n return core.clone(this, def, params);\n },\n brand() {\n return this;\n },\n register(reg, meta) {\n reg.add(this, meta);\n return this;\n },\n refine(check, params) {\n return this.check(refine(check, params));\n },\n superRefine(refinement, params) {\n return this.check(superRefine(refinement, params));\n },\n overwrite(fn) {\n return this.check(checks.overwrite(fn));\n },\n optional() {\n return optional(this);\n },\n exactOptional() {\n return exactOptional(this);\n },\n nullable() {\n return nullable(this);\n },\n nullish() {\n return optional(nullable(this));\n },\n nonoptional(params) {\n return nonoptional(this, params);\n },\n array() {\n return array(this);\n },\n or(arg) {\n return union([this, arg]);\n },\n and(arg) {\n return intersection(this, arg);\n },\n transform(tx) {\n return pipe(this, transform(tx));\n },\n default(d) {\n return _default(this, d);\n },\n prefault(d) {\n return prefault(this, d);\n },\n catch(params) {\n return _catch(this, params);\n },\n pipe(target) {\n return pipe(this, target);\n },\n readonly() {\n return readonly(this);\n },\n describe(description) {\n const cl = this.clone();\n core.globalRegistry.add(cl, { description });\n return cl;\n },\n meta(...args) {\n // overloaded: meta() returns the registered metadata, meta(data)\n // returns a clone with `data` registered. The mapped type picks\n // up the second overload, so we accept variadic any-args and\n // return `any` to satisfy both at runtime.\n if (args.length === 0)\n return core.globalRegistry.get(this);\n const cl = this.clone();\n core.globalRegistry.add(cl, args[0]);\n return cl;\n },\n isOptional() {\n return this.safeParse(undefined).success;\n },\n isNullable() {\n return this.safeParse(null).success;\n },\n apply(fn) {\n return fn(this);\n },\n });\n Object.defineProperty(inst, \"description\", {\n get() {\n return core.globalRegistry.get(inst)?.description;\n },\n configurable: true,\n });\n return inst;\n});\n/** @internal */\nexport const _ZodString = /*@__PURE__*/ core.$constructor(\"_ZodString\", (inst, def) => {\n core.$ZodString.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.stringProcessor(inst, ctx, json, params);\n const bag = inst._zod.bag;\n inst.format = bag.format ?? null;\n inst.minLength = bag.minimum ?? null;\n inst.maxLength = bag.maximum ?? null;\n _installLazyMethods(inst, \"_ZodString\", {\n regex(...args) {\n return this.check(checks.regex(...args));\n },\n includes(...args) {\n return this.check(checks.includes(...args));\n },\n startsWith(...args) {\n return this.check(checks.startsWith(...args));\n },\n endsWith(...args) {\n return this.check(checks.endsWith(...args));\n },\n min(...args) {\n return this.check(checks.minLength(...args));\n },\n max(...args) {\n return this.check(checks.maxLength(...args));\n },\n length(...args) {\n return this.check(checks.length(...args));\n },\n nonempty(...args) {\n return this.check(checks.minLength(1, ...args));\n },\n lowercase(params) {\n return this.check(checks.lowercase(params));\n },\n uppercase(params) {\n return this.check(checks.uppercase(params));\n },\n trim() {\n return this.check(checks.trim());\n },\n normalize(...args) {\n return this.check(checks.normalize(...args));\n },\n toLowerCase() {\n return this.check(checks.toLowerCase());\n },\n toUpperCase() {\n return this.check(checks.toUpperCase());\n },\n slugify() {\n return this.check(checks.slugify());\n },\n });\n});\nexport const ZodString = /*@__PURE__*/ core.$constructor(\"ZodString\", (inst, def) => {\n core.$ZodString.init(inst, def);\n _ZodString.init(inst, def);\n inst.email = (params) => inst.check(core._email(ZodEmail, params));\n inst.url = (params) => inst.check(core._url(ZodURL, params));\n inst.jwt = (params) => inst.check(core._jwt(ZodJWT, params));\n inst.emoji = (params) => inst.check(core._emoji(ZodEmoji, params));\n inst.guid = (params) => inst.check(core._guid(ZodGUID, params));\n inst.uuid = (params) => inst.check(core._uuid(ZodUUID, params));\n inst.uuidv4 = (params) => inst.check(core._uuidv4(ZodUUID, params));\n inst.uuidv6 = (params) => inst.check(core._uuidv6(ZodUUID, params));\n inst.uuidv7 = (params) => inst.check(core._uuidv7(ZodUUID, params));\n inst.nanoid = (params) => inst.check(core._nanoid(ZodNanoID, params));\n inst.guid = (params) => inst.check(core._guid(ZodGUID, params));\n inst.cuid = (params) => inst.check(core._cuid(ZodCUID, params));\n inst.cuid2 = (params) => inst.check(core._cuid2(ZodCUID2, params));\n inst.ulid = (params) => inst.check(core._ulid(ZodULID, params));\n inst.base64 = (params) => inst.check(core._base64(ZodBase64, params));\n inst.base64url = (params) => inst.check(core._base64url(ZodBase64URL, params));\n inst.xid = (params) => inst.check(core._xid(ZodXID, params));\n inst.ksuid = (params) => inst.check(core._ksuid(ZodKSUID, params));\n inst.ipv4 = (params) => inst.check(core._ipv4(ZodIPv4, params));\n inst.ipv6 = (params) => inst.check(core._ipv6(ZodIPv6, params));\n inst.cidrv4 = (params) => inst.check(core._cidrv4(ZodCIDRv4, params));\n inst.cidrv6 = (params) => inst.check(core._cidrv6(ZodCIDRv6, params));\n inst.e164 = (params) => inst.check(core._e164(ZodE164, params));\n // iso\n inst.datetime = (params) => inst.check(iso.datetime(params));\n inst.date = (params) => inst.check(iso.date(params));\n inst.time = (params) => inst.check(iso.time(params));\n inst.duration = (params) => inst.check(iso.duration(params));\n});\nexport function string(params) {\n return core._string(ZodString, params);\n}\nexport const ZodStringFormat = /*@__PURE__*/ core.$constructor(\"ZodStringFormat\", (inst, def) => {\n core.$ZodStringFormat.init(inst, def);\n _ZodString.init(inst, def);\n});\nexport const ZodEmail = /*@__PURE__*/ core.$constructor(\"ZodEmail\", (inst, def) => {\n // ZodStringFormat.init(inst, def);\n core.$ZodEmail.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nexport function email(params) {\n return core._email(ZodEmail, params);\n}\nexport const ZodGUID = /*@__PURE__*/ core.$constructor(\"ZodGUID\", (inst, def) => {\n // ZodStringFormat.init(inst, def);\n core.$ZodGUID.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nexport function guid(params) {\n return core._guid(ZodGUID, params);\n}\nexport const ZodUUID = /*@__PURE__*/ core.$constructor(\"ZodUUID\", (inst, def) => {\n // ZodStringFormat.init(inst, def);\n core.$ZodUUID.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nexport function uuid(params) {\n return core._uuid(ZodUUID, params);\n}\nexport function uuidv4(params) {\n return core._uuidv4(ZodUUID, params);\n}\n// ZodUUIDv6\nexport function uuidv6(params) {\n return core._uuidv6(ZodUUID, params);\n}\n// ZodUUIDv7\nexport function uuidv7(params) {\n return core._uuidv7(ZodUUID, params);\n}\nexport const ZodURL = /*@__PURE__*/ core.$constructor(\"ZodURL\", (inst, def) => {\n // ZodStringFormat.init(inst, def);\n core.$ZodURL.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nexport function url(params) {\n return core._url(ZodURL, params);\n}\nexport function httpUrl(params) {\n return core._url(ZodURL, {\n protocol: core.regexes.httpProtocol,\n hostname: core.regexes.domain,\n ...util.normalizeParams(params),\n });\n}\nexport const ZodEmoji = /*@__PURE__*/ core.$constructor(\"ZodEmoji\", (inst, def) => {\n // ZodStringFormat.init(inst, def);\n core.$ZodEmoji.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nexport function emoji(params) {\n return core._emoji(ZodEmoji, params);\n}\nexport const ZodNanoID = /*@__PURE__*/ core.$constructor(\"ZodNanoID\", (inst, def) => {\n // ZodStringFormat.init(inst, def);\n core.$ZodNanoID.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nexport function nanoid(params) {\n return core._nanoid(ZodNanoID, params);\n}\n/**\n * @deprecated CUID v1 is deprecated by its authors due to information leakage\n * (timestamps embedded in the id). Use {@link ZodCUID2} instead.\n * See https://github.com/paralleldrive/cuid.\n */\nexport const ZodCUID = /*@__PURE__*/ core.$constructor(\"ZodCUID\", (inst, def) => {\n // ZodStringFormat.init(inst, def);\n core.$ZodCUID.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\n/**\n * Validates a CUID v1 string.\n *\n * @deprecated CUID v1 is deprecated by its authors due to information leakage\n * (timestamps embedded in the id). Use {@link cuid2 | `z.cuid2()`} instead.\n * See https://github.com/paralleldrive/cuid.\n */\nexport function cuid(params) {\n return core._cuid(ZodCUID, params);\n}\nexport const ZodCUID2 = /*@__PURE__*/ core.$constructor(\"ZodCUID2\", (inst, def) => {\n // ZodStringFormat.init(inst, def);\n core.$ZodCUID2.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nexport function cuid2(params) {\n return core._cuid2(ZodCUID2, params);\n}\nexport const ZodULID = /*@__PURE__*/ core.$constructor(\"ZodULID\", (inst, def) => {\n // ZodStringFormat.init(inst, def);\n core.$ZodULID.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nexport function ulid(params) {\n return core._ulid(ZodULID, params);\n}\nexport const ZodXID = /*@__PURE__*/ core.$constructor(\"ZodXID\", (inst, def) => {\n // ZodStringFormat.init(inst, def);\n core.$ZodXID.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nexport function xid(params) {\n return core._xid(ZodXID, params);\n}\nexport const ZodKSUID = /*@__PURE__*/ core.$constructor(\"ZodKSUID\", (inst, def) => {\n // ZodStringFormat.init(inst, def);\n core.$ZodKSUID.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nexport function ksuid(params) {\n return core._ksuid(ZodKSUID, params);\n}\nexport const ZodIPv4 = /*@__PURE__*/ core.$constructor(\"ZodIPv4\", (inst, def) => {\n // ZodStringFormat.init(inst, def);\n core.$ZodIPv4.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nexport function ipv4(params) {\n return core._ipv4(ZodIPv4, params);\n}\nexport const ZodMAC = /*@__PURE__*/ core.$constructor(\"ZodMAC\", (inst, def) => {\n // ZodStringFormat.init(inst, def);\n core.$ZodMAC.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nexport function mac(params) {\n return core._mac(ZodMAC, params);\n}\nexport const ZodIPv6 = /*@__PURE__*/ core.$constructor(\"ZodIPv6\", (inst, def) => {\n // ZodStringFormat.init(inst, def);\n core.$ZodIPv6.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nexport function ipv6(params) {\n return core._ipv6(ZodIPv6, params);\n}\nexport const ZodCIDRv4 = /*@__PURE__*/ core.$constructor(\"ZodCIDRv4\", (inst, def) => {\n core.$ZodCIDRv4.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nexport function cidrv4(params) {\n return core._cidrv4(ZodCIDRv4, params);\n}\nexport const ZodCIDRv6 = /*@__PURE__*/ core.$constructor(\"ZodCIDRv6\", (inst, def) => {\n core.$ZodCIDRv6.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nexport function cidrv6(params) {\n return core._cidrv6(ZodCIDRv6, params);\n}\nexport const ZodBase64 = /*@__PURE__*/ core.$constructor(\"ZodBase64\", (inst, def) => {\n // ZodStringFormat.init(inst, def);\n core.$ZodBase64.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nexport function base64(params) {\n return core._base64(ZodBase64, params);\n}\nexport const ZodBase64URL = /*@__PURE__*/ core.$constructor(\"ZodBase64URL\", (inst, def) => {\n // ZodStringFormat.init(inst, def);\n core.$ZodBase64URL.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nexport function base64url(params) {\n return core._base64url(ZodBase64URL, params);\n}\nexport const ZodE164 = /*@__PURE__*/ core.$constructor(\"ZodE164\", (inst, def) => {\n // ZodStringFormat.init(inst, def);\n core.$ZodE164.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nexport function e164(params) {\n return core._e164(ZodE164, params);\n}\nexport const ZodJWT = /*@__PURE__*/ core.$constructor(\"ZodJWT\", (inst, def) => {\n // ZodStringFormat.init(inst, def);\n core.$ZodJWT.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nexport function jwt(params) {\n return core._jwt(ZodJWT, params);\n}\nexport const ZodCustomStringFormat = /*@__PURE__*/ core.$constructor(\"ZodCustomStringFormat\", (inst, def) => {\n // ZodStringFormat.init(inst, def);\n core.$ZodCustomStringFormat.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nexport function stringFormat(format, fnOrRegex, _params = {}) {\n return core._stringFormat(ZodCustomStringFormat, format, fnOrRegex, _params);\n}\nexport function hostname(_params) {\n return core._stringFormat(ZodCustomStringFormat, \"hostname\", core.regexes.hostname, _params);\n}\nexport function hex(_params) {\n return core._stringFormat(ZodCustomStringFormat, \"hex\", core.regexes.hex, _params);\n}\nexport function hash(alg, params) {\n const enc = params?.enc ?? \"hex\";\n const format = `${alg}_${enc}`;\n const regex = core.regexes[format];\n if (!regex)\n throw new Error(`Unrecognized hash format: ${format}`);\n return core._stringFormat(ZodCustomStringFormat, format, regex, params);\n}\nexport const ZodNumber = /*@__PURE__*/ core.$constructor(\"ZodNumber\", (inst, def) => {\n core.$ZodNumber.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.numberProcessor(inst, ctx, json, params);\n _installLazyMethods(inst, \"ZodNumber\", {\n gt(value, params) {\n return this.check(checks.gt(value, params));\n },\n gte(value, params) {\n return this.check(checks.gte(value, params));\n },\n min(value, params) {\n return this.check(checks.gte(value, params));\n },\n lt(value, params) {\n return this.check(checks.lt(value, params));\n },\n lte(value, params) {\n return this.check(checks.lte(value, params));\n },\n max(value, params) {\n return this.check(checks.lte(value, params));\n },\n int(params) {\n return this.check(int(params));\n },\n safe(params) {\n return this.check(int(params));\n },\n positive(params) {\n return this.check(checks.gt(0, params));\n },\n nonnegative(params) {\n return this.check(checks.gte(0, params));\n },\n negative(params) {\n return this.check(checks.lt(0, params));\n },\n nonpositive(params) {\n return this.check(checks.lte(0, params));\n },\n multipleOf(value, params) {\n return this.check(checks.multipleOf(value, params));\n },\n step(value, params) {\n return this.check(checks.multipleOf(value, params));\n },\n finite() {\n return this;\n },\n });\n const bag = inst._zod.bag;\n inst.minValue =\n Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;\n inst.maxValue =\n Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;\n inst.isInt = (bag.format ?? \"\").includes(\"int\") || Number.isSafeInteger(bag.multipleOf ?? 0.5);\n inst.isFinite = true;\n inst.format = bag.format ?? null;\n});\nexport function number(params) {\n return core._number(ZodNumber, params);\n}\nexport const ZodNumberFormat = /*@__PURE__*/ core.$constructor(\"ZodNumberFormat\", (inst, def) => {\n core.$ZodNumberFormat.init(inst, def);\n ZodNumber.init(inst, def);\n});\nexport function int(params) {\n return core._int(ZodNumberFormat, params);\n}\nexport function float32(params) {\n return core._float32(ZodNumberFormat, params);\n}\nexport function float64(params) {\n return core._float64(ZodNumberFormat, params);\n}\nexport function int32(params) {\n return core._int32(ZodNumberFormat, params);\n}\nexport function uint32(params) {\n return core._uint32(ZodNumberFormat, params);\n}\nexport const ZodBoolean = /*@__PURE__*/ core.$constructor(\"ZodBoolean\", (inst, def) => {\n core.$ZodBoolean.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.booleanProcessor(inst, ctx, json, params);\n});\nexport function boolean(params) {\n return core._boolean(ZodBoolean, params);\n}\nexport const ZodBigInt = /*@__PURE__*/ core.$constructor(\"ZodBigInt\", (inst, def) => {\n core.$ZodBigInt.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.bigintProcessor(inst, ctx, json, params);\n inst.gte = (value, params) => inst.check(checks.gte(value, params));\n inst.min = (value, params) => inst.check(checks.gte(value, params));\n inst.gt = (value, params) => inst.check(checks.gt(value, params));\n inst.gte = (value, params) => inst.check(checks.gte(value, params));\n inst.min = (value, params) => inst.check(checks.gte(value, params));\n inst.lt = (value, params) => inst.check(checks.lt(value, params));\n inst.lte = (value, params) => inst.check(checks.lte(value, params));\n inst.max = (value, params) => inst.check(checks.lte(value, params));\n inst.positive = (params) => inst.check(checks.gt(BigInt(0), params));\n inst.negative = (params) => inst.check(checks.lt(BigInt(0), params));\n inst.nonpositive = (params) => inst.check(checks.lte(BigInt(0), params));\n inst.nonnegative = (params) => inst.check(checks.gte(BigInt(0), params));\n inst.multipleOf = (value, params) => inst.check(checks.multipleOf(value, params));\n const bag = inst._zod.bag;\n inst.minValue = bag.minimum ?? null;\n inst.maxValue = bag.maximum ?? null;\n inst.format = bag.format ?? null;\n});\nexport function bigint(params) {\n return core._bigint(ZodBigInt, params);\n}\nexport const ZodBigIntFormat = /*@__PURE__*/ core.$constructor(\"ZodBigIntFormat\", (inst, def) => {\n core.$ZodBigIntFormat.init(inst, def);\n ZodBigInt.init(inst, def);\n});\n// int64\nexport function int64(params) {\n return core._int64(ZodBigIntFormat, params);\n}\n// uint64\nexport function uint64(params) {\n return core._uint64(ZodBigIntFormat, params);\n}\nexport const ZodSymbol = /*@__PURE__*/ core.$constructor(\"ZodSymbol\", (inst, def) => {\n core.$ZodSymbol.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.symbolProcessor(inst, ctx, json, params);\n});\nexport function symbol(params) {\n return core._symbol(ZodSymbol, params);\n}\nexport const ZodUndefined = /*@__PURE__*/ core.$constructor(\"ZodUndefined\", (inst, def) => {\n core.$ZodUndefined.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.undefinedProcessor(inst, ctx, json, params);\n});\nfunction _undefined(params) {\n return core._undefined(ZodUndefined, params);\n}\nexport { _undefined as undefined };\nexport const ZodNull = /*@__PURE__*/ core.$constructor(\"ZodNull\", (inst, def) => {\n core.$ZodNull.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.nullProcessor(inst, ctx, json, params);\n});\nfunction _null(params) {\n return core._null(ZodNull, params);\n}\nexport { _null as null };\nexport const ZodAny = /*@__PURE__*/ core.$constructor(\"ZodAny\", (inst, def) => {\n core.$ZodAny.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.anyProcessor(inst, ctx, json, params);\n});\nexport function any() {\n return core._any(ZodAny);\n}\nexport const ZodUnknown = /*@__PURE__*/ core.$constructor(\"ZodUnknown\", (inst, def) => {\n core.$ZodUnknown.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.unknownProcessor(inst, ctx, json, params);\n});\nexport function unknown() {\n return core._unknown(ZodUnknown);\n}\nexport const ZodNever = /*@__PURE__*/ core.$constructor(\"ZodNever\", (inst, def) => {\n core.$ZodNever.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.neverProcessor(inst, ctx, json, params);\n});\nexport function never(params) {\n return core._never(ZodNever, params);\n}\nexport const ZodVoid = /*@__PURE__*/ core.$constructor(\"ZodVoid\", (inst, def) => {\n core.$ZodVoid.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.voidProcessor(inst, ctx, json, params);\n});\nfunction _void(params) {\n return core._void(ZodVoid, params);\n}\nexport { _void as void };\nexport const ZodDate = /*@__PURE__*/ core.$constructor(\"ZodDate\", (inst, def) => {\n core.$ZodDate.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.dateProcessor(inst, ctx, json, params);\n inst.min = (value, params) => inst.check(checks.gte(value, params));\n inst.max = (value, params) => inst.check(checks.lte(value, params));\n const c = inst._zod.bag;\n inst.minDate = c.minimum ? new Date(c.minimum) : null;\n inst.maxDate = c.maximum ? new Date(c.maximum) : null;\n});\nexport function date(params) {\n return core._date(ZodDate, params);\n}\nexport const ZodArray = /*@__PURE__*/ core.$constructor(\"ZodArray\", (inst, def) => {\n core.$ZodArray.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.arrayProcessor(inst, ctx, json, params);\n inst.element = def.element;\n _installLazyMethods(inst, \"ZodArray\", {\n min(n, params) {\n return this.check(checks.minLength(n, params));\n },\n nonempty(params) {\n return this.check(checks.minLength(1, params));\n },\n max(n, params) {\n return this.check(checks.maxLength(n, params));\n },\n length(n, params) {\n return this.check(checks.length(n, params));\n },\n unwrap() {\n return this.element;\n },\n });\n});\nexport function array(element, params) {\n return core._array(ZodArray, element, params);\n}\n// .keyof\nexport function keyof(schema) {\n const shape = schema._zod.def.shape;\n return _enum(Object.keys(shape));\n}\nexport const ZodObject = /*@__PURE__*/ core.$constructor(\"ZodObject\", (inst, def) => {\n core.$ZodObjectJIT.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.objectProcessor(inst, ctx, json, params);\n util.defineLazy(inst, \"shape\", () => {\n return def.shape;\n });\n _installLazyMethods(inst, \"ZodObject\", {\n keyof() {\n return _enum(Object.keys(this._zod.def.shape));\n },\n catchall(catchall) {\n return this.clone({ ...this._zod.def, catchall: catchall });\n },\n passthrough() {\n return this.clone({ ...this._zod.def, catchall: unknown() });\n },\n loose() {\n return this.clone({ ...this._zod.def, catchall: unknown() });\n },\n strict() {\n return this.clone({ ...this._zod.def, catchall: never() });\n },\n strip() {\n return this.clone({ ...this._zod.def, catchall: undefined });\n },\n extend(incoming) {\n return util.extend(this, incoming);\n },\n safeExtend(incoming) {\n return util.safeExtend(this, incoming);\n },\n merge(other) {\n return util.merge(this, other);\n },\n pick(mask) {\n return util.pick(this, mask);\n },\n omit(mask) {\n return util.omit(this, mask);\n },\n partial(...args) {\n return util.partial(ZodOptional, this, args[0]);\n },\n required(...args) {\n return util.required(ZodNonOptional, this, args[0]);\n },\n });\n});\nexport function object(shape, params) {\n const def = {\n type: \"object\",\n shape: shape ?? {},\n ...util.normalizeParams(params),\n };\n return new ZodObject(def);\n}\n// strictObject\nexport function strictObject(shape, params) {\n return new ZodObject({\n type: \"object\",\n shape,\n catchall: never(),\n ...util.normalizeParams(params),\n });\n}\n// looseObject\nexport function looseObject(shape, params) {\n return new ZodObject({\n type: \"object\",\n shape,\n catchall: unknown(),\n ...util.normalizeParams(params),\n });\n}\nexport const ZodUnion = /*@__PURE__*/ core.$constructor(\"ZodUnion\", (inst, def) => {\n core.$ZodUnion.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.unionProcessor(inst, ctx, json, params);\n inst.options = def.options;\n});\nexport function union(options, params) {\n return new ZodUnion({\n type: \"union\",\n options: options,\n ...util.normalizeParams(params),\n });\n}\nexport const ZodXor = /*@__PURE__*/ core.$constructor(\"ZodXor\", (inst, def) => {\n ZodUnion.init(inst, def);\n core.$ZodXor.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.unionProcessor(inst, ctx, json, params);\n inst.options = def.options;\n});\n/** Creates an exclusive union (XOR) where exactly one option must match.\n * Unlike regular unions that succeed when any option matches, xor fails if\n * zero or more than one option matches the input. */\nexport function xor(options, params) {\n return new ZodXor({\n type: \"union\",\n options: options,\n inclusive: false,\n ...util.normalizeParams(params),\n });\n}\nexport const ZodDiscriminatedUnion = /*@__PURE__*/ core.$constructor(\"ZodDiscriminatedUnion\", (inst, def) => {\n ZodUnion.init(inst, def);\n core.$ZodDiscriminatedUnion.init(inst, def);\n});\nexport function discriminatedUnion(discriminator, options, params) {\n // const [options, params] = args;\n return new ZodDiscriminatedUnion({\n type: \"union\",\n options,\n discriminator,\n ...util.normalizeParams(params),\n });\n}\nexport const ZodIntersection = /*@__PURE__*/ core.$constructor(\"ZodIntersection\", (inst, def) => {\n core.$ZodIntersection.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.intersectionProcessor(inst, ctx, json, params);\n});\nexport function intersection(left, right) {\n return new ZodIntersection({\n type: \"intersection\",\n left: left,\n right: right,\n });\n}\nexport const ZodTuple = /*@__PURE__*/ core.$constructor(\"ZodTuple\", (inst, def) => {\n core.$ZodTuple.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.tupleProcessor(inst, ctx, json, params);\n inst.rest = (rest) => inst.clone({\n ...inst._zod.def,\n rest: rest,\n });\n});\nexport function tuple(items, _paramsOrRest, _params) {\n const hasRest = _paramsOrRest instanceof core.$ZodType;\n const params = hasRest ? _params : _paramsOrRest;\n const rest = hasRest ? _paramsOrRest : null;\n return new ZodTuple({\n type: \"tuple\",\n items: items,\n rest,\n ...util.normalizeParams(params),\n });\n}\nexport const ZodRecord = /*@__PURE__*/ core.$constructor(\"ZodRecord\", (inst, def) => {\n core.$ZodRecord.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.recordProcessor(inst, ctx, json, params);\n inst.keyType = def.keyType;\n inst.valueType = def.valueType;\n});\nexport function record(keyType, valueType, params) {\n // v3-compat: z.record(valueType, params?) — defaults keyType to z.string()\n if (!valueType || !valueType._zod) {\n return new ZodRecord({\n type: \"record\",\n keyType: string(),\n valueType: keyType,\n ...util.normalizeParams(valueType),\n });\n }\n return new ZodRecord({\n type: \"record\",\n keyType,\n valueType: valueType,\n ...util.normalizeParams(params),\n });\n}\n// type alksjf = core.output<core.$ZodRecordKey>;\nexport function partialRecord(keyType, valueType, params) {\n const k = core.clone(keyType);\n k._zod.values = undefined;\n return new ZodRecord({\n type: \"record\",\n keyType: k,\n valueType: valueType,\n ...util.normalizeParams(params),\n });\n}\nexport function looseRecord(keyType, valueType, params) {\n return new ZodRecord({\n type: \"record\",\n keyType,\n valueType: valueType,\n mode: \"loose\",\n ...util.normalizeParams(params),\n });\n}\nexport const ZodMap = /*@__PURE__*/ core.$constructor(\"ZodMap\", (inst, def) => {\n core.$ZodMap.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.mapProcessor(inst, ctx, json, params);\n inst.keyType = def.keyType;\n inst.valueType = def.valueType;\n inst.min = (...args) => inst.check(core._minSize(...args));\n inst.nonempty = (params) => inst.check(core._minSize(1, params));\n inst.max = (...args) => inst.check(core._maxSize(...args));\n inst.size = (...args) => inst.check(core._size(...args));\n});\nexport function map(keyType, valueType, params) {\n return new ZodMap({\n type: \"map\",\n keyType: keyType,\n valueType: valueType,\n ...util.normalizeParams(params),\n });\n}\nexport const ZodSet = /*@__PURE__*/ core.$constructor(\"ZodSet\", (inst, def) => {\n core.$ZodSet.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.setProcessor(inst, ctx, json, params);\n inst.min = (...args) => inst.check(core._minSize(...args));\n inst.nonempty = (params) => inst.check(core._minSize(1, params));\n inst.max = (...args) => inst.check(core._maxSize(...args));\n inst.size = (...args) => inst.check(core._size(...args));\n});\nexport function set(valueType, params) {\n return new ZodSet({\n type: \"set\",\n valueType: valueType,\n ...util.normalizeParams(params),\n });\n}\nexport const ZodEnum = /*@__PURE__*/ core.$constructor(\"ZodEnum\", (inst, def) => {\n core.$ZodEnum.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.enumProcessor(inst, ctx, json, params);\n inst.enum = def.entries;\n inst.options = Object.values(def.entries);\n const keys = new Set(Object.keys(def.entries));\n inst.extract = (values, params) => {\n const newEntries = {};\n for (const value of values) {\n if (keys.has(value)) {\n newEntries[value] = def.entries[value];\n }\n else\n throw new Error(`Key ${value} not found in enum`);\n }\n return new ZodEnum({\n ...def,\n checks: [],\n ...util.normalizeParams(params),\n entries: newEntries,\n });\n };\n inst.exclude = (values, params) => {\n const newEntries = { ...def.entries };\n for (const value of values) {\n if (keys.has(value)) {\n delete newEntries[value];\n }\n else\n throw new Error(`Key ${value} not found in enum`);\n }\n return new ZodEnum({\n ...def,\n checks: [],\n ...util.normalizeParams(params),\n entries: newEntries,\n });\n };\n});\nfunction _enum(values, params) {\n const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;\n return new ZodEnum({\n type: \"enum\",\n entries,\n ...util.normalizeParams(params),\n });\n}\nexport { _enum as enum };\n/** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead.\n *\n * ```ts\n * enum Colors { red, green, blue }\n * z.enum(Colors);\n * ```\n */\nexport function nativeEnum(entries, params) {\n return new ZodEnum({\n type: \"enum\",\n entries,\n ...util.normalizeParams(params),\n });\n}\nexport const ZodLiteral = /*@__PURE__*/ core.$constructor(\"ZodLiteral\", (inst, def) => {\n core.$ZodLiteral.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.literalProcessor(inst, ctx, json, params);\n inst.values = new Set(def.values);\n Object.defineProperty(inst, \"value\", {\n get() {\n if (def.values.length > 1) {\n throw new Error(\"This schema contains multiple valid literal values. Use `.values` instead.\");\n }\n return def.values[0];\n },\n });\n});\nexport function literal(value, params) {\n return new ZodLiteral({\n type: \"literal\",\n values: Array.isArray(value) ? value : [value],\n ...util.normalizeParams(params),\n });\n}\nexport const ZodFile = /*@__PURE__*/ core.$constructor(\"ZodFile\", (inst, def) => {\n core.$ZodFile.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.fileProcessor(inst, ctx, json, params);\n inst.min = (size, params) => inst.check(core._minSize(size, params));\n inst.max = (size, params) => inst.check(core._maxSize(size, params));\n inst.mime = (types, params) => inst.check(core._mime(Array.isArray(types) ? types : [types], params));\n});\nexport function file(params) {\n return core._file(ZodFile, params);\n}\nexport const ZodTransform = /*@__PURE__*/ core.$constructor(\"ZodTransform\", (inst, def) => {\n core.$ZodTransform.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.transformProcessor(inst, ctx, json, params);\n inst._zod.parse = (payload, _ctx) => {\n if (_ctx.direction === \"backward\") {\n throw new core.$ZodEncodeError(inst.constructor.name);\n }\n payload.addIssue = (issue) => {\n if (typeof issue === \"string\") {\n payload.issues.push(util.issue(issue, payload.value, def));\n }\n else {\n // for Zod 3 backwards compatibility\n const _issue = issue;\n if (_issue.fatal)\n _issue.continue = false;\n _issue.code ?? (_issue.code = \"custom\");\n _issue.input ?? (_issue.input = payload.value);\n _issue.inst ?? (_issue.inst = inst);\n // _issue.continue ??= true;\n payload.issues.push(util.issue(_issue));\n }\n };\n const output = def.transform(payload.value, payload);\n if (output instanceof Promise) {\n return output.then((output) => {\n payload.value = output;\n payload.fallback = true;\n return payload;\n });\n }\n payload.value = output;\n payload.fallback = true;\n return payload;\n };\n});\nexport function transform(fn) {\n return new ZodTransform({\n type: \"transform\",\n transform: fn,\n });\n}\nexport const ZodOptional = /*@__PURE__*/ core.$constructor(\"ZodOptional\", (inst, def) => {\n core.$ZodOptional.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.optionalProcessor(inst, ctx, json, params);\n inst.unwrap = () => inst._zod.def.innerType;\n});\nexport function optional(innerType) {\n return new ZodOptional({\n type: \"optional\",\n innerType: innerType,\n });\n}\nexport const ZodExactOptional = /*@__PURE__*/ core.$constructor(\"ZodExactOptional\", (inst, def) => {\n core.$ZodExactOptional.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.optionalProcessor(inst, ctx, json, params);\n inst.unwrap = () => inst._zod.def.innerType;\n});\nexport function exactOptional(innerType) {\n return new ZodExactOptional({\n type: \"optional\",\n innerType: innerType,\n });\n}\nexport const ZodNullable = /*@__PURE__*/ core.$constructor(\"ZodNullable\", (inst, def) => {\n core.$ZodNullable.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.nullableProcessor(inst, ctx, json, params);\n inst.unwrap = () => inst._zod.def.innerType;\n});\nexport function nullable(innerType) {\n return new ZodNullable({\n type: \"nullable\",\n innerType: innerType,\n });\n}\n// nullish\nexport function nullish(innerType) {\n return optional(nullable(innerType));\n}\nexport const ZodDefault = /*@__PURE__*/ core.$constructor(\"ZodDefault\", (inst, def) => {\n core.$ZodDefault.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.defaultProcessor(inst, ctx, json, params);\n inst.unwrap = () => inst._zod.def.innerType;\n inst.removeDefault = inst.unwrap;\n});\nexport function _default(innerType, defaultValue) {\n return new ZodDefault({\n type: \"default\",\n innerType: innerType,\n get defaultValue() {\n return typeof defaultValue === \"function\" ? defaultValue() : util.shallowClone(defaultValue);\n },\n });\n}\nexport const ZodPrefault = /*@__PURE__*/ core.$constructor(\"ZodPrefault\", (inst, def) => {\n core.$ZodPrefault.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.prefaultProcessor(inst, ctx, json, params);\n inst.unwrap = () => inst._zod.def.innerType;\n});\nexport function prefault(innerType, defaultValue) {\n return new ZodPrefault({\n type: \"prefault\",\n innerType: innerType,\n get defaultValue() {\n return typeof defaultValue === \"function\" ? defaultValue() : util.shallowClone(defaultValue);\n },\n });\n}\nexport const ZodNonOptional = /*@__PURE__*/ core.$constructor(\"ZodNonOptional\", (inst, def) => {\n core.$ZodNonOptional.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.nonoptionalProcessor(inst, ctx, json, params);\n inst.unwrap = () => inst._zod.def.innerType;\n});\nexport function nonoptional(innerType, params) {\n return new ZodNonOptional({\n type: \"nonoptional\",\n innerType: innerType,\n ...util.normalizeParams(params),\n });\n}\nexport const ZodSuccess = /*@__PURE__*/ core.$constructor(\"ZodSuccess\", (inst, def) => {\n core.$ZodSuccess.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.successProcessor(inst, ctx, json, params);\n inst.unwrap = () => inst._zod.def.innerType;\n});\nexport function success(innerType) {\n return new ZodSuccess({\n type: \"success\",\n innerType: innerType,\n });\n}\nexport const ZodCatch = /*@__PURE__*/ core.$constructor(\"ZodCatch\", (inst, def) => {\n core.$ZodCatch.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.catchProcessor(inst, ctx, json, params);\n inst.unwrap = () => inst._zod.def.innerType;\n inst.removeCatch = inst.unwrap;\n});\nfunction _catch(innerType, catchValue) {\n return new ZodCatch({\n type: \"catch\",\n innerType: innerType,\n catchValue: (typeof catchValue === \"function\" ? catchValue : () => catchValue),\n });\n}\nexport { _catch as catch };\nexport const ZodNaN = /*@__PURE__*/ core.$constructor(\"ZodNaN\", (inst, def) => {\n core.$ZodNaN.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.nanProcessor(inst, ctx, json, params);\n});\nexport function nan(params) {\n return core._nan(ZodNaN, params);\n}\nexport const ZodPipe = /*@__PURE__*/ core.$constructor(\"ZodPipe\", (inst, def) => {\n core.$ZodPipe.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.pipeProcessor(inst, ctx, json, params);\n inst.in = def.in;\n inst.out = def.out;\n});\nexport function pipe(in_, out) {\n return new ZodPipe({\n type: \"pipe\",\n in: in_,\n out: out,\n // ...util.normalizeParams(params),\n });\n}\nexport const ZodCodec = /*@__PURE__*/ core.$constructor(\"ZodCodec\", (inst, def) => {\n ZodPipe.init(inst, def);\n core.$ZodCodec.init(inst, def);\n});\nexport function codec(in_, out, params) {\n return new ZodCodec({\n type: \"pipe\",\n in: in_,\n out: out,\n transform: params.decode,\n reverseTransform: params.encode,\n });\n}\nexport function invertCodec(codec) {\n const def = codec._zod.def;\n return new ZodCodec({\n type: \"pipe\",\n in: def.out,\n out: def.in,\n transform: def.reverseTransform,\n reverseTransform: def.transform,\n });\n}\nexport const ZodPreprocess = /*@__PURE__*/ core.$constructor(\"ZodPreprocess\", (inst, def) => {\n ZodPipe.init(inst, def);\n core.$ZodPreprocess.init(inst, def);\n});\nexport const ZodReadonly = /*@__PURE__*/ core.$constructor(\"ZodReadonly\", (inst, def) => {\n core.$ZodReadonly.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.readonlyProcessor(inst, ctx, json, params);\n inst.unwrap = () => inst._zod.def.innerType;\n});\nexport function readonly(innerType) {\n return new ZodReadonly({\n type: \"readonly\",\n innerType: innerType,\n });\n}\nexport const ZodTemplateLiteral = /*@__PURE__*/ core.$constructor(\"ZodTemplateLiteral\", (inst, def) => {\n core.$ZodTemplateLiteral.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.templateLiteralProcessor(inst, ctx, json, params);\n});\nexport function templateLiteral(parts, params) {\n return new ZodTemplateLiteral({\n type: \"template_literal\",\n parts,\n ...util.normalizeParams(params),\n });\n}\nexport const ZodLazy = /*@__PURE__*/ core.$constructor(\"ZodLazy\", (inst, def) => {\n core.$ZodLazy.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.lazyProcessor(inst, ctx, json, params);\n inst.unwrap = () => inst._zod.def.getter();\n});\nexport function lazy(getter) {\n return new ZodLazy({\n type: \"lazy\",\n getter: getter,\n });\n}\nexport const ZodPromise = /*@__PURE__*/ core.$constructor(\"ZodPromise\", (inst, def) => {\n core.$ZodPromise.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.promiseProcessor(inst, ctx, json, params);\n inst.unwrap = () => inst._zod.def.innerType;\n});\nexport function promise(innerType) {\n return new ZodPromise({\n type: \"promise\",\n innerType: innerType,\n });\n}\nexport const ZodFunction = /*@__PURE__*/ core.$constructor(\"ZodFunction\", (inst, def) => {\n core.$ZodFunction.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.functionProcessor(inst, ctx, json, params);\n});\nexport function _function(params) {\n return new ZodFunction({\n type: \"function\",\n input: Array.isArray(params?.input) ? tuple(params?.input) : (params?.input ?? array(unknown())),\n output: params?.output ?? unknown(),\n });\n}\nexport { _function as function };\nexport const ZodCustom = /*@__PURE__*/ core.$constructor(\"ZodCustom\", (inst, def) => {\n core.$ZodCustom.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.processJSONSchema = (ctx, json, params) => processors.customProcessor(inst, ctx, json, params);\n});\n// custom checks\nexport function check(fn) {\n const ch = new core.$ZodCheck({\n check: \"custom\",\n // ...util.normalizeParams(params),\n });\n ch._zod.check = fn;\n return ch;\n}\nexport function custom(fn, _params) {\n return core._custom(ZodCustom, fn ?? (() => true), _params);\n}\nexport function refine(fn, _params = {}) {\n return core._refine(ZodCustom, fn, _params);\n}\n// superRefine\nexport function superRefine(fn, params) {\n return core._superRefine(fn, params);\n}\n// Re-export describe and meta from core\nexport const describe = core.describe;\nexport const meta = core.meta;\nfunction _instanceof(cls, params = {}) {\n const inst = new ZodCustom({\n type: \"custom\",\n check: \"custom\",\n fn: (data) => data instanceof cls,\n abort: true,\n ...util.normalizeParams(params),\n });\n inst._zod.bag.Class = cls;\n // Override check to emit invalid_type instead of custom\n inst._zod.check = (payload) => {\n if (!(payload.value instanceof cls)) {\n payload.issues.push({\n code: \"invalid_type\",\n expected: cls.name,\n input: payload.value,\n inst,\n path: [...(inst._zod.def.path ?? [])],\n });\n }\n };\n return inst;\n}\nexport { _instanceof as instanceof };\n// stringbool\nexport const stringbool = (...args) => core._stringbool({\n Codec: ZodCodec,\n Boolean: ZodBoolean,\n String: ZodString,\n}, ...args);\nexport function json(params) {\n const jsonSchema = lazy(() => {\n return union([string(params), number(), boolean(), _null(), array(jsonSchema), record(string(), jsonSchema)]);\n });\n return jsonSchema;\n}\n// preprocess\nexport function preprocess(fn, schema) {\n return new ZodPreprocess({\n type: \"pipe\",\n in: transform(fn),\n out: schema,\n });\n}\n","// Adapted from OpenMausBot (3a84701), Apache-2.0. See THIRD_PARTY_NOTICES.md.\n/**\n * The mascot bodies a bot can wear.\n *\n * GENERATED FILE — do not hand-edit. Run `pnpm gen:bodies` to rebuild it from\n * `scripts/gen-mascot-bodies.ts`, which solves each face placement against the real\n * expression geometry and verifies that nothing clips.\n *\n * Every body carries the same face at the same size: the generator clamps the whole\n * catalog to the smallest face any one body can hold, so the mascot reads as one\n * character in different bodies rather than ten different mascots. Roomier bodies simply\n * end up with more margin around the face.\n *\n * The fields match `CursorSilhouette` exactly, so a body can be handed to the renderer\n * with no adapter in between.\n */\n\nimport { z } from \"zod\";\n\n/** Every selectable body id, in the order the picker shows them. */\nexport const MASCOT_BODY_IDS = [\"cursor\", \"blob\", \"circle\", \"squircle\", \"capsule\", \"drop\", \"shield\", \"hexagon\", \"diamond\", \"star\"] as const;\n\nexport type MascotBodyId = (typeof MASCOT_BODY_IDS)[number];\n\nexport const mascotBodySchema = z.enum(MASCOT_BODY_IDS);\n\nexport interface MascotBody {\n id: MascotBodyId;\n /** Human-readable name, used for the picker and the accessible label. */\n name: string;\n /** Transform mapping the outline into the face box. */\n fit: string;\n /** Body markup. `{{GRADIENT}}` is replaced with the bot's own gradient. */\n body: string;\n /** The same outline without a fill, used as the clip region. */\n clip: string;\n /** Where the face sits inside the body, in face-space units. */\n anchor: { x: number; y: number; scale: number };\n}\n\n/** The shipped mascot, and the fallback for any unrecognised value. */\nexport const DEFAULT_MASCOT_BODY: MascotBodyId = \"cursor\";\n\nexport const MASCOT_BODIES: Record<MascotBodyId, MascotBody> = {\n cursor: {\n id: \"cursor\",\n name: \"Cursor\",\n fit: \"translate(68.1612 9.8302) scale(0.593918)\",\n body: \"<path fill=\\\"{{GRADIENT}}\\\" d=\\\"M0 0 C1.12815992 0.94880479 2.25705591 1.89673511 3.38671875 2.84375 C5.57657936 4.68528228 7.75793952 6.53624249 9.93359375 8.39453125 C13.5602214 11.48647103 17.25022962 14.49819427 20.9453125 17.5078125 C25.41301487 21.15281776 29.86103386 24.8215994 34.31054688 28.48876953 C38.00933931 31.5370903 41.70951059 34.58367973 45.4140625 37.625 C52.50037463 43.44570076 59.55669812 49.29508834 66.54003906 55.23901367 C70.43289872 58.54377434 74.40406577 61.73568847 78.40625 64.90625 C82.05401433 67.85083084 85.6145398 70.89451533 89.18359375 73.93359375 C92.41424312 76.67774533 95.67698054 79.36747809 99 82 C103.47931906 85.54855146 107.83340036 89.22936876 112.18359375 92.93359375 C115.41424312 95.67774533 118.67698054 98.36747809 122 101 C125.9014198 104.09073517 129.71091352 107.27378506 133.5 110.5 C137.99002543 114.32092614 142.53350963 118.0537239 147.15234375 121.71875 C156.74255328 129.40144186 166.1812645 137.27326897 175.53833008 145.23754883 C179.4317456 148.54281661 183.40347641 151.73522157 187.40625 154.90625 C191.05401433 157.85083084 194.6145398 160.89451533 198.18359375 163.93359375 C201.41424312 166.67774533 204.67698054 169.36747809 208 172 C236.43637507 194.63776677 236.43637507 194.63776677 238.27050781 209.13867188 C239.19944445 221.27193361 237.57124038 231.13444436 230 241 C223.66050278 247.82715086 215.75482398 254.47140646 206.04764748 255.13307858 C205.3615811 255.13693349 204.67551472 255.1407884 203.96865845 255.14476013 C203.17563324 255.15165863 202.38260803 255.15855713 201.56555176 255.16566467 C200.27360901 255.16958473 200.27360901 255.16958473 198.95556641 255.17358398 C198.04112762 255.180271 197.12668884 255.18695801 196.18453979 255.19384766 C194.19843498 255.20789156 192.21231409 255.21978771 190.22618484 255.22979546 C187.07149762 255.24625057 183.91692738 255.26949556 180.76229858 255.29469299 C171.79227585 255.36530712 162.82220292 255.42526708 153.85205078 255.47680664 C148.36195434 255.5088283 142.87198905 255.55017011 137.38199997 255.59700203 C135.30028042 255.61289593 133.21853066 255.62527474 131.13676834 255.63390923 C104.46972494 255.74602279 80.75351522 259.19455182 60.52978516 278.41845703 C55.75259196 283.35727885 51.81217213 289.04473423 47.77441406 294.5859375 C44.62107661 298.87600364 41.36381878 303.08685058 38.125 307.3125 C32.82026548 314.26649347 27.55386673 321.24815866 22.3125 328.25 C21.07690581 329.89589556 19.84122979 331.5417297 18.60546875 333.1875 C16.22002164 336.36552908 13.84996009 339.55428087 11.48828125 342.75 C3.0450311 354.10095576 -5.25712203 365.22607871 -20 368 C-33.42903027 368.85957067 -44.2929604 367.90032788 -55 358.9140625 C-63.51513963 350.76480778 -67.79688328 340.99527428 -68.37686157 329.29350281 C-68.43541887 328.1487851 -68.49397617 327.00406738 -68.55430794 325.82466125 C-68.61453573 324.57243271 -68.67476353 323.32020416 -68.73681641 322.0300293 C-68.80423726 320.68369989 -68.87198477 319.33738681 -68.94003105 317.99108887 C-69.12569162 314.29881586 -69.30666938 310.60632592 -69.48688698 306.91378379 C-69.68142908 302.94481208 -69.88036562 298.97606035 -70.07873535 295.00727844 C-70.55465828 285.46711948 -71.02377004 275.92663022 -71.49235249 266.3861084 C-71.71278092 261.90166682 -71.93398876 257.41726373 -72.1552124 252.93286133 C-72.22122149 251.59460763 -72.22122149 251.59460763 -72.28856409 250.2293185 C-72.37783973 248.41936974 -72.46711776 246.6094211 -72.55639815 244.79947257 C-72.7821203 240.22326204 -73.00777832 235.64704836 -73.23336792 231.0708313 C-73.2783997 230.15734865 -73.32343148 229.24386601 -73.36982787 228.30270207 C-73.64581049 222.70253299 -73.92113412 217.10233189 -74.19602597 211.50210917 C-75.35713101 187.85146938 -76.54638525 164.20245932 -77.76320994 140.55462319 C-78.3174362 129.77404232 -78.86176258 118.9929594 -79.40472984 108.2118063 C-79.83986282 99.58021501 -80.28322749 90.94912395 -80.73695588 82.31848997 C-81.04621068 76.42094211 -81.34513355 70.52292566 -81.63612723 64.62444884 C-81.8031421 61.24551841 -81.97612174 57.86718776 -82.15861511 54.48903847 C-84.29931862 14.73242483 -84.29931862 14.73242483 -72.03125 -1.625 C-50.89854752 -24.96559677 -21.34867451 -18.24899383 0 0 Z \\\"/>\",\n clip: \"<path d=\\\"M0 0 C1.12815992 0.94880479 2.25705591 1.89673511 3.38671875 2.84375 C5.57657936 4.68528228 7.75793952 6.53624249 9.93359375 8.39453125 C13.5602214 11.48647103 17.25022962 14.49819427 20.9453125 17.5078125 C25.41301487 21.15281776 29.86103386 24.8215994 34.31054688 28.48876953 C38.00933931 31.5370903 41.70951059 34.58367973 45.4140625 37.625 C52.50037463 43.44570076 59.55669812 49.29508834 66.54003906 55.23901367 C70.43289872 58.54377434 74.40406577 61.73568847 78.40625 64.90625 C82.05401433 67.85083084 85.6145398 70.89451533 89.18359375 73.93359375 C92.41424312 76.67774533 95.67698054 79.36747809 99 82 C103.47931906 85.54855146 107.83340036 89.22936876 112.18359375 92.93359375 C115.41424312 95.67774533 118.67698054 98.36747809 122 101 C125.9014198 104.09073517 129.71091352 107.27378506 133.5 110.5 C137.99002543 114.32092614 142.53350963 118.0537239 147.15234375 121.71875 C156.74255328 129.40144186 166.1812645 137.27326897 175.53833008 145.23754883 C179.4317456 148.54281661 183.40347641 151.73522157 187.40625 154.90625 C191.05401433 157.85083084 194.6145398 160.89451533 198.18359375 163.93359375 C201.41424312 166.67774533 204.67698054 169.36747809 208 172 C236.43637507 194.63776677 236.43637507 194.63776677 238.27050781 209.13867188 C239.19944445 221.27193361 237.57124038 231.13444436 230 241 C223.66050278 247.82715086 215.75482398 254.47140646 206.04764748 255.13307858 C205.3615811 255.13693349 204.67551472 255.1407884 203.96865845 255.14476013 C203.17563324 255.15165863 202.38260803 255.15855713 201.56555176 255.16566467 C200.27360901 255.16958473 200.27360901 255.16958473 198.95556641 255.17358398 C198.04112762 255.180271 197.12668884 255.18695801 196.18453979 255.19384766 C194.19843498 255.20789156 192.21231409 255.21978771 190.22618484 255.22979546 C187.07149762 255.24625057 183.91692738 255.26949556 180.76229858 255.29469299 C171.79227585 255.36530712 162.82220292 255.42526708 153.85205078 255.47680664 C148.36195434 255.5088283 142.87198905 255.55017011 137.38199997 255.59700203 C135.30028042 255.61289593 133.21853066 255.62527474 131.13676834 255.63390923 C104.46972494 255.74602279 80.75351522 259.19455182 60.52978516 278.41845703 C55.75259196 283.35727885 51.81217213 289.04473423 47.77441406 294.5859375 C44.62107661 298.87600364 41.36381878 303.08685058 38.125 307.3125 C32.82026548 314.26649347 27.55386673 321.24815866 22.3125 328.25 C21.07690581 329.89589556 19.84122979 331.5417297 18.60546875 333.1875 C16.22002164 336.36552908 13.84996009 339.55428087 11.48828125 342.75 C3.0450311 354.10095576 -5.25712203 365.22607871 -20 368 C-33.42903027 368.85957067 -44.2929604 367.90032788 -55 358.9140625 C-63.51513963 350.76480778 -67.79688328 340.99527428 -68.37686157 329.29350281 C-68.43541887 328.1487851 -68.49397617 327.00406738 -68.55430794 325.82466125 C-68.61453573 324.57243271 -68.67476353 323.32020416 -68.73681641 322.0300293 C-68.80423726 320.68369989 -68.87198477 319.33738681 -68.94003105 317.99108887 C-69.12569162 314.29881586 -69.30666938 310.60632592 -69.48688698 306.91378379 C-69.68142908 302.94481208 -69.88036562 298.97606035 -70.07873535 295.00727844 C-70.55465828 285.46711948 -71.02377004 275.92663022 -71.49235249 266.3861084 C-71.71278092 261.90166682 -71.93398876 257.41726373 -72.1552124 252.93286133 C-72.22122149 251.59460763 -72.22122149 251.59460763 -72.28856409 250.2293185 C-72.37783973 248.41936974 -72.46711776 246.6094211 -72.55639815 244.79947257 C-72.7821203 240.22326204 -73.00777832 235.64704836 -73.23336792 231.0708313 C-73.2783997 230.15734865 -73.32343148 229.24386601 -73.36982787 228.30270207 C-73.64581049 222.70253299 -73.92113412 217.10233189 -74.19602597 211.50210917 C-75.35713101 187.85146938 -76.54638525 164.20245932 -77.76320994 140.55462319 C-78.3174362 129.77404232 -78.86176258 118.9929594 -79.40472984 108.2118063 C-79.83986282 99.58021501 -80.28322749 90.94912395 -80.73695588 82.31848997 C-81.04621068 76.42094211 -81.34513355 70.52292566 -81.63612723 64.62444884 C-81.8031421 61.24551841 -81.97612174 57.86718776 -82.15861511 54.48903847 C-84.29931862 14.73242483 -84.29931862 14.73242483 -72.03125 -1.625 C-50.89854752 -24.96559677 -21.34867451 -18.24899383 0 0 Z \\\"/>\",\n anchor: { x: 85.54, y: 106.35, scale: 0.791 },\n },\n blob: {\n id: \"blob\",\n name: \"Blob\",\n fit: \"translate(-0.7217 2.9555) scale(1.134706)\",\n body: \"<path fill=\\\"{{GRADIENT}}\\\" d=\\\"M198.91052 113.12915C198.30169 121.88191 196.37668 130.37605 193.1355 138.61157C189.89431 146.84709 185.49332 154.4026 179.93252 161.27809C174.37172 168.15358 167.99976 174.1053 160.81663 179.13325C153.6335 184.1612 145.98678 188.22176 137.87645 191.31491C129.76613 194.40806 121.42581 196.55178 112.85548 197.74609C104.28516 198.94039 95.66469 199.12755 86.99407 198.30758C78.32344 197.4876 69.86713 195.54477 61.62513 192.47909C53.38313 189.41341 45.74309 185.20915 38.70501 179.86633C31.66693 174.52351 25.60941 168.25632 20.53243 161.06476C15.45546 153.87319 11.54067 146.15559 8.78808 137.91195C6.03549 129.66831 4.37316 121.28874 3.80109 112.77325C3.22902 104.25775 3.5616 95.83136 4.79882 87.49409C6.03604 79.15682 8.08364 70.99969 10.94163 63.0227C13.79962 55.04571 17.53174 47.38891 22.13799 40.0523C26.74425 32.71568 32.30193 26.0276 38.81103 19.98806C45.32014 13.94852 52.65266 9.00619 60.80862 5.16109C68.96458 1.31599 77.53546 -1.10241 86.52128 -2.09412C95.50709 -3.08583 104.37427 -2.64309 113.12282 -0.76589C121.87137 1.11131 130.09712 4.12751 137.80007 8.28271C145.50302 12.43791 152.53652 17.35515 158.90058 23.03443C165.26463 28.7137 170.969 34.91856 176.01368 41.649C181.05836 48.37944 185.3953 55.56843 189.02451 63.21597C192.65372 70.86352 195.3609 78.90607 197.14605 87.34364C198.93119 95.78121 199.51935 104.37638 198.91052 113.12915Z\\\"/>\",\n clip: \"<path d=\\\"M198.91052 113.12915C198.30169 121.88191 196.37668 130.37605 193.1355 138.61157C189.89431 146.84709 185.49332 154.4026 179.93252 161.27809C174.37172 168.15358 167.99976 174.1053 160.81663 179.13325C153.6335 184.1612 145.98678 188.22176 137.87645 191.31491C129.76613 194.40806 121.42581 196.55178 112.85548 197.74609C104.28516 198.94039 95.66469 199.12755 86.99407 198.30758C78.32344 197.4876 69.86713 195.54477 61.62513 192.47909C53.38313 189.41341 45.74309 185.20915 38.70501 179.86633C31.66693 174.52351 25.60941 168.25632 20.53243 161.06476C15.45546 153.87319 11.54067 146.15559 8.78808 137.91195C6.03549 129.66831 4.37316 121.28874 3.80109 112.77325C3.22902 104.25775 3.5616 95.83136 4.79882 87.49409C6.03604 79.15682 8.08364 70.99969 10.94163 63.0227C13.79962 55.04571 17.53174 47.38891 22.13799 40.0523C26.74425 32.71568 32.30193 26.0276 38.81103 19.98806C45.32014 13.94852 52.65266 9.00619 60.80862 5.16109C68.96458 1.31599 77.53546 -1.10241 86.52128 -2.09412C95.50709 -3.08583 104.37427 -2.64309 113.12282 -0.76589C121.87137 1.11131 130.09712 4.12751 137.80007 8.28271C145.50302 12.43791 152.53652 17.35515 158.90058 23.03443C165.26463 28.7137 170.969 34.91856 176.01368 41.649C181.05836 48.37944 185.3953 55.56843 189.02451 63.21597C192.65372 70.86352 195.3609 78.90607 197.14605 87.34364C198.93119 95.78121 199.51935 104.37638 198.91052 113.12915Z\\\"/>\",\n anchor: { x: 111.22, y: 116.58, scale: 0.791 },\n },\n circle: {\n id: \"circle\",\n name: \"Circle\",\n fit: \"translate(0 0) scale(1.142705)\",\n body: \"<path fill=\\\"{{GRADIENT}}\\\" d=\\\"M200 100C200 155.22847 155.22847 200 100 200C44.77153 200 0 155.22847 0 100C0 44.77153 44.77153 0 100 0C155.22847 0 200 44.77153 200 100Z\\\"/>\",\n clip: \"<path d=\\\"M200 100C200 155.22847 155.22847 200 100 200C44.77153 200 0 155.22847 0 100C0 44.77153 44.77153 0 100 0C155.22847 0 200 44.77153 200 100Z\\\"/>\",\n anchor: { x: 113.82, y: 110.27, scale: 0.791 },\n },\n squircle: {\n id: \"squircle\",\n name: \"Squircle\",\n fit: \"translate(0 0) scale(1.142705)\",\n body: \"<path fill=\\\"{{GRADIENT}}\\\" d=\\\"M50 0C83.33333 0 116.66667 0 150 0C177.61424 0 200 22.38576 200 50C200 83.33333 200 116.66667 200 150C200 177.61424 177.61424 200 150 200C116.66667 200 83.33333 200 50 200C22.38576 200 0 177.61424 0 150C0 116.66667 0 83.33333 0 50C0 22.38576 22.38576 0 50 0Z\\\"/>\",\n clip: \"<path d=\\\"M50 0C83.33333 0 116.66667 0 150 0C177.61424 0 200 22.38576 200 50C200 83.33333 200 116.66667 200 150C200 177.61424 177.61424 200 150 200C116.66667 200 83.33333 200 50 200C22.38576 200 0 177.61424 0 150C0 116.66667 0 83.33333 0 50C0 22.38576 22.38576 0 50 0Z\\\"/>\",\n anchor: { x: 111.78, y: 111.79, scale: 0.791 },\n },\n capsule: {\n id: \"capsule\",\n name: \"Capsule\",\n fit: \"translate(0 0) scale(1.142705)\",\n body: \"<path fill=\\\"{{GRADIENT}}\\\" d=\\\"M100 0C141.42136 0 175 33.57864 175 75C175 91.66667 175 108.33333 175 125C175 166.42136 141.42136 200 100 200C58.57864 200 25 166.42136 25 125C25 108.33333 25 91.66667 25 75C25 33.57864 58.57864 0 100 0Z\\\"/>\",\n clip: \"<path d=\\\"M100 0C141.42136 0 175 33.57864 175 75C175 91.66667 175 108.33333 175 125C175 166.42136 141.42136 200 100 200C58.57864 200 25 166.42136 25 125C25 108.33333 25 91.66667 25 75C25 33.57864 58.57864 0 100 0Z\\\"/>\",\n anchor: { x: 113.82, y: 131.68, scale: 0.791 },\n },\n drop: {\n id: \"drop\",\n name: \"Drop\",\n fit: \"translate(-3.5341 -3.5341) scale(1.178046)\",\n body: \"<path fill=\\\"{{GRADIENT}}\\\" d=\\\"M100 3C160.84 78.2235 178 103.298 178 119C178 162.07821 143.07821 197 100 197C56.92179 197 22 162.07821 22 119C22 103.298 39.16 78.2235 100 3Z\\\"/>\",\n clip: \"<path d=\\\"M100 3C160.84 78.2235 178 103.298 178 119C178 162.07821 143.07821 197 100 197C56.92179 197 22 162.07821 22 119C22 103.298 39.16 78.2235 100 3Z\\\"/>\",\n anchor: { x: 112.47, y: 138.8, scale: 0.791 },\n },\n shield: {\n id: \"shield\",\n name: \"Shield\",\n fit: \"translate(-12.1611 -24.3222) scale(1.264316)\",\n body: \"<path fill=\\\"{{GRADIENT}}\\\" d=\\\"M57.25 38.475C85.75 12.825 114.25 12.825 142.75 38.475C153.89667 76.64167 165.04333 114.80833 176.19 152.975C188.73 184.325 179.325 200 147.975 200C115.99167 200 84.00833 200 52.025 200C20.675 200 11.27 184.325 23.81 152.975C34.95667 114.80833 46.10333 76.64167 57.25 38.475Z\\\"/>\",\n clip: \"<path d=\\\"M57.25 38.475C85.75 12.825 114.25 12.825 142.75 38.475C153.89667 76.64167 165.04333 114.80833 176.19 152.975C188.73 184.325 179.325 200 147.975 200C115.99167 200 84.00833 200 52.025 200C20.675 200 11.27 184.325 23.81 152.975C34.95667 114.80833 46.10333 76.64167 57.25 38.475Z\\\"/>\",\n anchor: { x: 112.38, y: 170.61, scale: 0.791 },\n },\n hexagon: {\n id: \"hexagon\",\n name: \"Hexagon\",\n fit: \"translate(-4.1077 -4.1077) scale(1.183782)\",\n body: \"<path fill=\\\"{{GRADIENT}}\\\" d=\\\"M94.90777 4.94C98.30259 2.98 101.69741 2.98 105.09223 4.94C129.98757 19.31333 154.88292 33.68667 179.77826 48.06C183.17308 50.02 184.87049 52.96 184.87049 56.88C184.87049 85.62667 184.87049 114.37333 184.87049 143.12C184.87049 147.04 183.17308 149.98 179.77826 151.94C154.88292 166.31333 129.98757 180.68667 105.09223 195.06C101.69741 197.02 98.30259 197.02 94.90777 195.06C70.01243 180.68667 45.11708 166.31333 20.22174 151.94C16.82692 149.98 15.12951 147.04 15.12951 143.12C15.12951 114.37333 15.12951 85.62667 15.12951 56.88C15.12951 52.96 16.82692 50.02 20.22174 48.06C45.11708 33.68667 70.01243 19.31333 94.90777 4.94Z\\\"/>\",\n clip: \"<path d=\\\"M94.90777 4.94C98.30259 2.98 101.69741 2.98 105.09223 4.94C129.98757 19.31333 154.88292 33.68667 179.77826 48.06C183.17308 50.02 184.87049 52.96 184.87049 56.88C184.87049 85.62667 184.87049 114.37333 184.87049 143.12C184.87049 147.04 183.17308 149.98 179.77826 151.94C154.88292 166.31333 129.98757 180.68667 105.09223 195.06C101.69741 197.02 98.30259 197.02 94.90777 195.06C70.01243 180.68667 45.11708 166.31333 20.22174 151.94C16.82692 149.98 15.12951 147.04 15.12951 143.12C15.12951 114.37333 15.12951 85.62667 15.12951 56.88C15.12951 52.96 16.82692 50.02 20.22174 48.06C45.11708 33.68667 70.01243 19.31333 94.90777 4.94Z\\\"/>\",\n anchor: { x: 112.26, y: 110.7, scale: 0.791 },\n },\n diamond: {\n id: \"diamond\",\n name: \"Diamond\",\n fit: \"translate(-5.9383 -5.9383) scale(1.202088)\",\n body: \"<path fill=\\\"{{GRADIENT}}\\\" d=\\\"M94.12 7.88C98.04 3.96 101.96 3.96 105.88 7.88C134.62667 36.62667 163.37333 65.37333 192.12 94.12C196.04 98.04 196.04 101.96 192.12 105.88C163.37333 134.62667 134.62667 163.37333 105.88 192.12C101.96 196.04 98.04 196.04 94.12 192.12C65.37333 163.37333 36.62667 134.62667 7.88 105.88C3.96 101.96 3.96 98.04 7.88 94.12C36.62667 65.37333 65.37333 36.62667 94.12 7.88Z\\\"/>\",\n clip: \"<path d=\\\"M94.12 7.88C98.04 3.96 101.96 3.96 105.88 7.88C134.62667 36.62667 163.37333 65.37333 192.12 94.12C196.04 98.04 196.04 101.96 192.12 105.88C163.37333 134.62667 134.62667 163.37333 105.88 192.12C101.96 196.04 98.04 196.04 94.12 192.12C65.37333 163.37333 36.62667 134.62667 7.88 105.88C3.96 101.96 3.96 98.04 7.88 94.12C36.62667 65.37333 65.37333 36.62667 94.12 7.88Z\\\"/>\",\n anchor: { x: 112.53, y: 109.95, scale: 0.791 },\n },\n star: {\n id: \"star\",\n name: \"Star\",\n fit: \"translate(-8.3327 3.1407) scale(1.226032)\",\n body: \"<path fill=\\\"{{GRADIENT}}\\\" d=\\\"M100 2C110.56054 20.13133 121.12108 38.26266 131.68163 56.39398C152.18893 60.83477 172.69623 65.27555 193.20354 69.71633C179.22301 85.3629 165.24248 101.00946 151.26195 116.65602C153.37562 137.5319 155.48929 158.40778 157.60295 179.28367C138.40197 170.82244 119.20098 162.36122 100 153.9C80.79902 162.36122 61.59803 170.82244 42.39705 179.28367C44.51071 158.40778 46.62438 137.5319 48.73805 116.65602C34.75752 101.00946 20.77699 85.3629 6.79646 69.71633C27.30377 65.27555 47.81107 60.83477 68.31837 56.39398C78.87892 38.26266 89.43946 20.13133 100 2Z\\\"/>\",\n clip: \"<path d=\\\"M100 2C110.56054 20.13133 121.12108 38.26266 131.68163 56.39398C152.18893 60.83477 172.69623 65.27555 193.20354 69.71633C179.22301 85.3629 165.24248 101.00946 151.26195 116.65602C153.37562 137.5319 155.48929 158.40778 157.60295 179.28367C138.40197 170.82244 119.20098 162.36122 100 153.9C80.79902 162.36122 61.59803 170.82244 42.39705 179.28367C44.51071 158.40778 46.62438 137.5319 48.73805 116.65602C34.75752 101.00946 20.77699 85.3629 6.79646 69.71633C27.30377 65.27555 47.81107 60.83477 68.31837 56.39398C78.87892 38.26266 89.43946 20.13133 100 2Z\\\"/>\",\n anchor: { x: 113.82, y: 125.43, scale: 0.791 },\n },\n};\n\n/** Runtime-safe read of an untrusted persisted or streamed body id. */\nexport function botMascotBody(value: unknown): MascotBodyId {\n return mascotBodySchema.safeParse(value).data ?? DEFAULT_MASCOT_BODY;\n}\n","// Original two-eye geometry from LaoA-GrokBot (MIT). See THIRD_PARTY_NOTICES.md.\nimport { LAOA_DATA } from './laoa-data'\nexport const FACE_BOX = 228.541\nexport const FACE_CENTRE: [number, number] = [120, 122.5]\nexport const GAZE_TRAVEL = { x: 13.2, y: 8.4 }\nexport type Ring = [number, number][]\n/** Preserve the authored eye positions, including each expression's look direction. */\nexport const EXPRESSIONS: Ring[][] = LAOA_DATA.expressions.map(ex => ex.map(ring => ring.map(p => [p[0], p[1]])))\nexport const EXPRESSION_COUNT = EXPRESSIONS.length\n","import { LAOA_DATA } from './laoa-data'\n// Adapted from OpenMausBot (3a84701), Apache-2.0. See THIRD_PARTY_NOTICES.md.\n/**\n * CursorAvatar — an animated mascot built on the \"cursor\" silhouette.\n *\n * Data and frame functions retained from OpenMausBot; the host below is framework-neutral.\n *\n * import CursorAvatar from './CursorAvatar'\n *\n * <CursorAvatar state=\"thinking\" silhouette={MASCOT_BODIES.cursor} size={160} />\n *\n * The state drives everything — which expressions cycle, how often, and when it blinks.\n * Set `state` and it animates itself; see CURSOR_STATES for the full list.\n *\n * Props of note:\n * state one of CURSOR_STATES\n * expression pin a single face and stop the cycling\n * lookAround how much each expression glances around. 0 = always straight ahead\n * gaze / turn aim the eyes, or rotate the head around its implied sphere\n *\n * Made with Blob Studio.\n */\n\nimport { MASCOT_BODIES } from \"./mascot-bodies\"\nimport {\n EXPRESSIONS,\n EXPRESSION_COUNT,\n FACE_BOX,\n FACE_CENTRE,\n GAZE_TRAVEL,\n type Ring,\n} from \"./cursor-face-data\"\n\nexport {\n EXPRESSIONS,\n EXPRESSION_COUNT,\n FACE_BOX,\n FACE_CENTRE,\n GAZE_TRAVEL,\n}\nexport type { Ring }\n\n/* ------------------------------------------------------------------- shape */\n\nexport interface CursorSilhouette {\n viewBox?: string\n /** Human-readable name, used for the accessible label. */\n name: string\n /** Transform mapping the artwork into the 228.541-unit face box. '' for none. */\n fit: string\n /** SVG markup for the body. The token {{GRADIENT}} is replaced with the instance gradient. */\n body: string\n /** SVG markup defining the clip region — the union of the silhouette's filled shapes. */\n clip: string\n /** Where the face sits inside the silhouette, in face-space units. */\n anchor: { x: number; y: number; scale: number }\n}\n\n// The generator solves this body's face placement once; `MASCOT_BODIES.cursor`\n// is the single source of truth desktop and iOS both build from. Its shape\n// carries one extra field (`id`) that `CursorSilhouette` does not, so it is\n// derived here rather than assigned directly.\nconst { id: _cursorBodyId, ...cursorSilhouette } = MASCOT_BODIES.cursor;\nexport const DEFAULT_SILHOUETTE: CursorSilhouette = cursorSilhouette;\n\nexport const DEFAULT_GRADIENT: [string, string, string] = [\"#9FE6B5\",\"#3FAE6E\",\"#1C7A4C\"]\n\nconst VIEW_BOX = `-15 -15 ${FACE_BOX + 30} ${FACE_BOX + 30}`\nconst SPHERE_C = 114.2705\nconst SPHERE_R = 105\n\n/* ------------------------------------------------------------------ motion */\n\n/**\n * How the body itself moves. The face engine on its own leaves the silhouette perfectly\n * still, which reads as dead for states literally named `bouncing` or `spawning`.\n *\n * All of this is shape-agnostic — it moves whatever silhouette it is given, so an uploaded\n * logo animates exactly like the built-in circle.\n *\n * bob vertical travel, [amplitude in face units, period ms]\n * sway rotation, [degrees, period ms]\n * pulse uniform scale, [fraction, period ms] — breathing\n * circle orbital drift, [radius, period ms]\n * jitter fast nervous shake, [amplitude, period ms]\n * tilt constant lean, degrees\n * squash 0..1, how much a bob squashes the body at the bottom of its arc\n * enter one-shot on entering the state, [starting scale, duration ms]\n * settle scale it eases to and holds, for exits like powering-down\n */\nexport interface BodyMotion {\n bob?: [number, number]\n sway?: [number, number]\n pulse?: [number, number]\n circle?: [number, number]\n jitter?: [number, number]\n tilt?: number\n squash?: number\n enter?: [number, number]\n settle?: number\n}\n\nexport const MOTION = {\n // Lifecycle — quiet, breathing, alive but not busy.\n sleeping: { pulse: [0.028, 4600], tilt: 2 },\n waking: { enter: [0.92, 700], pulse: [0.03, 2200] },\n idle: { pulse: [0.014, 3600] },\n listening: { bob: [2, 2600], pulse: [0.012, 2600] },\n thinking: { sway: [1.6, 3000], pulse: [0.01, 3000] },\n searching: { bob: [3, 1400], sway: [2.2, 1400] },\n working: { bob: [2.5, 900], squash: 0.22 },\n\n // Reactions — the loud half.\n excited: { bob: [9, 520], sway: [3, 1040], squash: 0.35 },\n surprised: { enter: [1.14, 340], jitter: [0.8, 120] },\n suspicious: { sway: [2.4, 2600], tilt: -3 },\n angry: { jitter: [1.3, 95], tilt: 2 },\n drowsy: { pulse: [0.026, 5000], tilt: 3 },\n happy: { bob: [5, 820], squash: 0.28 },\n curious: { sway: [3.4, 1900], tilt: -4 },\n confused: { sway: [3, 2200] },\n bored: { pulse: [0.016, 5200], tilt: 2 },\n proud: { bob: [1.6, 2400], pulse: [0.02, 2400] },\n shy: { pulse: [0.016, 3000], tilt: 4 },\n sad: { pulse: [0.02, 4600], tilt: 3 },\n laughing: { bob: [7, 430], squash: 0.4 },\n scared: { jitter: [2.2, 75] },\n playful: { bob: [6, 620], sway: [5, 1240], squash: 0.3 },\n celebrate: { bob: [10, 480], sway: [4, 960], squash: 0.35 },\n\n // Agent morphs — the mascot standing in for a process.\n orbit: { circle: [6, 3200] },\n radar: { sway: [6, 2400], pulse: [0.012, 2400] },\n progress: { pulse: [0.022, 1600] },\n\n // Product cycle.\n spawning: { enter: [0.02, 820], pulse: [0.014, 3600] },\n humming: { pulse: [0.016, 2800] },\n loading: { sway: [2.2, 1500], pulse: [0.012, 1500] },\n dictating: { bob: [2, 2000] },\n writing: { bob: [1.6, 1100] },\n sending: { bob: [3, 900] },\n receiving: { bob: [3, 900] },\n uploading: { bob: [3, 1000] },\n notifying: { bob: [4, 700], sway: [2.5, 700] },\n alerting: { jitter: [2.6, 85] },\n dragging: { tilt: -6, sway: [2, 900] },\n bouncing: { bob: [12, 560], squash: 0.45 },\n 'powering-down': { settle: 0.05, tilt: 4 },\n} satisfies Record<CursorState, BodyMotion>\n\n/** How long a `settle` takes to reach its resting scale. */\nconst SETTLE_MS = 1400\n\n/* ----------------------------------------------------------------- effects */\n\n/**\n * Confetti, motion ribbons, and glyph morphs.\n *\n * All three are shape-agnostic: they orbit, burst around, or stand in for whatever\n * silhouette they are given, so an uploaded logo behaves exactly like the built-in circle.\n *\n * These layers are driven imperatively from the frame loop rather than through React\n * state. A celebrate burst is ~14 elements changing every frame, and a page showing all\n * states at once would otherwise re-render continuously.\n */\n\nconst TAU = Math.PI * 2\n\n/** Deterministic per-particle randomness — same seed, same particle, every run. */\nconst hash01 = (n: number) => {\n const x = Math.sin(n * 127.1 + 311.7) * 43758.5453\n return x - Math.floor(x)\n}\n\nconst CONFETTI_COLORS = ['#F472B6', '#C084FC', '#818CF8', '#38BDF8', '#34D399', '#FACC15', '#FB7185']\nconst RIBBON_COLORS = ['#4ADE80', '#34D399', '#22D3EE', '#60A5FA']\n\nexport interface ConfettiSpec {\n /** How many pieces are in flight per burst. */\n count: number\n /** Milliseconds between bursts. */\n period: number\n /** How long one piece lives, ms. */\n life: number\n /** Radius the pieces launch from, so a burst clears the face instead of covering it. */\n origin: number\n /** How far pieces travel beyond that, in face units. */\n spread: number\n}\n\nexport interface TrailSpec {\n /** How many ribbons orbit the body. */\n count: number\n /** Milliseconds for one full orbit. */\n period: number\n /** Orbit radius, in face units. */\n radius: number\n}\n\nexport interface GlyphSpec {\n /** Markup drawn in place of the body. {{GRADIENT}} is replaced with the body paint. */\n markup: string\n /** Milliseconds between appearances. */\n period: number\n /** How long the glyph is held, ms. */\n hold: number\n}\n\nexport interface StateEffects {\n confetti?: ConfettiSpec\n trails?: TrailSpec\n glyph?: GlyphSpec\n}\n\ninterface EffectsByState extends Partial<Record<CursorState, StateEffects>> {}\n\n/**\n * The exclamation mark the mascot becomes when something needs attention — drawn as a\n * tapered bar and a dot so it reads as a character rather than a rectangle.\n */\nconst GLYPH_BANG =\n '<path fill=\"{{GRADIENT}}\" d=\"M99 58 Q99 43 114.3 43 Q129.6 43 129.6 58 L123 150 Q122 161 114.3 161 Q106.6 161 105.6 150 Z\"/>' +\n '<circle fill=\"{{GRADIENT}}\" cx=\"114.3\" cy=\"188\" r=\"15\"/>'\n\n/** The question mark for genuine confusion. Stroked, so it stays light against the body. */\nconst GLYPH_QUERY =\n '<path fill=\"none\" stroke=\"{{GRADIENT}}\" stroke-width=\"19\" stroke-linecap=\"round\" ' +\n 'd=\"M88 76 A27 27 0 1 1 114.3 112 L114.3 132\"/>' +\n '<circle fill=\"{{GRADIENT}}\" cx=\"114.3\" cy=\"170\" r=\"13\"/>'\n\nexport const EFFECTS: EffectsByState = {\n // Celebration — the loud burst.\n // Travel is deliberately bounded: the viewBox only carries 15 units of margin, so a\n // piece thrown much past ~130 from centre would be clipped mid-flight.\n celebrate: { confetti: { count: 16, period: 1500, life: 1300, origin: 74, spread: 54 } },\n excited: { confetti: { count: 9, period: 2000, life: 1100, origin: 72, spread: 44 } },\n laughing: { confetti: { count: 7, period: 2400, life: 1000, origin: 70, spread: 38 } },\n\n // Work in flight — ribbons circling the body.\n working: { trails: { count: 3, period: 2200, radius: 126 } },\n orbit: { trails: { count: 3, period: 2600, radius: 128 } },\n radar: { trails: { count: 2, period: 2000, radius: 132 } },\n progress: { trails: { count: 3, period: 1800, radius: 124 } },\n loading: { trails: { count: 2, period: 2200, radius: 126 } },\n uploading: { trails: { count: 2, period: 1700, radius: 122 } },\n sending: { trails: { count: 2, period: 1500, radius: 120 } },\n receiving: { trails: { count: 2, period: 1500, radius: 120 } },\n\n // The mascot standing aside to show a symbol.\n alerting: { glyph: { markup: GLYPH_BANG, period: 2600, hold: 1100 } },\n notifying: { glyph: { markup: GLYPH_BANG, period: 4200, hold: 900 } },\n confused: { glyph: { markup: GLYPH_QUERY, period: 5200, hold: 1200 } },\n}\n\nconst SVG_NS = 'http://www.w3.org/2000/svg'\n\n/** Grows or shrinks a layer's pool of <path> children to exactly `count`. */\nfunction poolPaths(layer: SVGGElement, count: number): SVGPathElement[] {\n while (layer.childNodes.length > count) layer.removeChild(layer.lastChild!)\n while (layer.childNodes.length < count) {\n const path = document.createElementNS(SVG_NS, 'path')\n path.setAttribute('stroke-linecap', 'round')\n path.setAttribute('fill', 'none')\n layer.appendChild(path)\n }\n return Array.from(layer.querySelectorAll<SVGPathElement>(':scope > path'))\n}\n\n/** Confetti: short curved strokes thrown outward, arcing down as they fade. */\nfunction drawConfetti(\n layer: SVGGElement,\n spec: ConfettiSpec,\n elapsed: number,\n strength: number,\n cx: number,\n cy: number\n) {\n const paths = poolPaths(layer, spec.count)\n for (let i = 0; i < spec.count; i++) {\n const path = paths[i]\n const seedA = hash01(i + 1)\n const seedB = hash01(i + 41)\n const seedC = hash01(i + 91)\n\n // Stagger the pieces across the burst window so they don't leave as one wall.\n const t = (((elapsed + seedC * spec.period) % spec.period) / spec.life) * 1\n if (t > 1) {\n path.setAttribute('opacity', '0')\n continue\n }\n\n const angle = seedA * TAU\n const travel = spec.spread * (0.45 + seedB * 0.55) * (1 - (1 - t) * (1 - t))\n const distance = (spec.origin + travel) * strength\n const gravity = 34 * strength * t * t\n const x = cx + Math.cos(angle) * distance\n const y = cy + Math.sin(angle) * distance + gravity\n const length = 11 + seedB * 12\n const spin = angle + (seedC - 0.5) * 5 * t\n const ex = x + Math.cos(spin) * length\n const ey = y + Math.sin(spin) * length\n // A slight bend reads as paper rather than a matchstick.\n const bend = (seedA - 0.5) * length * 0.7\n const mx = (x + ex) / 2 - Math.sin(spin) * bend\n const my = (y + ey) / 2 + Math.cos(spin) * bend\n\n path.setAttribute('d', `M${x.toFixed(1)} ${y.toFixed(1)} Q${mx.toFixed(1)} ${my.toFixed(1)} ${ex.toFixed(1)} ${ey.toFixed(1)}`)\n path.setAttribute('stroke', CONFETTI_COLORS[i % CONFETTI_COLORS.length])\n path.setAttribute('stroke-width', (4 + seedB * 2.4).toFixed(1))\n path.setAttribute('opacity', (t < 0.12 ? t / 0.12 : 1 - (t - 0.12) / 0.88).toFixed(3))\n }\n}\n\n/** Ribbons: arcs sweeping around the body on their own periods. */\nfunction drawTrails(\n layer: SVGGElement,\n spec: TrailSpec,\n elapsed: number,\n strength: number,\n cx: number,\n cy: number\n) {\n const paths = poolPaths(layer, spec.count)\n const SAMPLES = 12\n for (let i = 0; i < spec.count; i++) {\n const path = paths[i]\n const seedA = hash01(i + 3)\n const seedB = hash01(i + 29)\n const direction = i % 2 === 0 ? 1 : -1\n const period = spec.period * (0.8 + seedA * 0.5)\n const radius = spec.radius * strength * (0.78 + seedB * 0.4)\n const start = direction * (elapsed / period) * TAU + seedA * TAU\n const span = 0.85 + seedB * 0.7\n\n let d = ''\n for (let s = 0; s <= SAMPLES; s++) {\n const k = s / SAMPLES\n const angle = start + span * k\n // Breathe the radius along the arc so the ribbon curls instead of tracing a circle.\n const r = radius * (1 + Math.sin(k * Math.PI) * 0.14)\n const x = cx + Math.cos(angle) * r\n const y = cy + Math.sin(angle) * r * 0.78\n d += (s === 0 ? 'M' : 'L') + x.toFixed(1) + ' ' + y.toFixed(1)\n }\n path.setAttribute('d', d)\n path.setAttribute('stroke', RIBBON_COLORS[i % RIBBON_COLORS.length])\n path.setAttribute('stroke-width', (5 + seedA * 3).toFixed(1))\n path.setAttribute('opacity', '0.85')\n }\n}\n\n/** How present the glyph is right now, 0..1, with eased edges. */\nfunction glyphAmount(spec: GlyphSpec, elapsed: number): number {\n const position = elapsed % spec.period\n const start = spec.period - spec.hold\n if (position < start) return 0\n const into = position - start\n const remaining = spec.hold - into\n const EASE = 200\n return Math.max(0, Math.min(1, Math.min(into, remaining) / EASE))\n}\n\nexport interface EffectFrame {\n trails: SVGGElement | null\n confetti: SVGGElement | null\n glyph: SVGGElement | null\n bodyContent: SVGGElement | null\n state: CursorState\n elapsed: number\n strength: number\n paint: string\n showEffects: boolean\n showGlyphs: boolean\n showTrails?: boolean\n}\n\n/** Called once per frame from the engine loop. */\nexport function updateEffects(frame: EffectFrame) {\n const spec = EFFECTS[frame.state]\n const centre = FACE_BOX / 2\n const strength = frame.strength\n\n if (frame.trails) {\n if (spec?.trails && frame.showEffects && frame.showTrails !== false && strength > 0) {\n drawTrails(frame.trails, spec.trails, frame.elapsed, strength, centre, centre)\n } else if (frame.trails.childNodes.length) {\n frame.trails.replaceChildren()\n }\n }\n\n if (frame.confetti) {\n if (spec?.confetti && frame.showEffects && strength > 0) {\n drawConfetti(frame.confetti, spec.confetti, frame.elapsed, strength, centre, centre)\n } else if (frame.confetti.childNodes.length) {\n frame.confetti.replaceChildren()\n }\n }\n\n if (frame.glyph && frame.bodyContent) {\n if (spec?.glyph && frame.showGlyphs) {\n const amount = glyphAmount(spec.glyph, frame.elapsed)\n const markup = spec.glyph.markup.replace(/\\{\\{GRADIENT\\}\\}/g, frame.paint)\n if (frame.glyph.getAttribute('data-glyph') !== markup) {\n frame.glyph.setAttribute('data-glyph', markup)\n frame.glyph.innerHTML = markup\n }\n frame.glyph.style.opacity = String(amount)\n // Scale up as it arrives, so the swap reads as a transformation.\n const scale = 0.72 + 0.28 * amount\n frame.glyph.setAttribute(\n 'transform',\n `translate(${centre} ${centre}) scale(${scale.toFixed(3)}) translate(${-centre} ${-centre})`\n )\n // The body steps aside rather than sitting behind the glyph.\n frame.bodyContent.style.opacity = String(1 - amount)\n } else {\n if (frame.glyph.getAttribute('data-glyph')) {\n frame.glyph.removeAttribute('data-glyph')\n frame.glyph.replaceChildren()\n }\n frame.glyph.style.opacity = '0'\n frame.bodyContent.style.opacity = '1'\n }\n }\n}\n\n/* ------------------------------------------------------------------ states */\n\nexport type CursorState =\n | \"sleeping\"\n | \"waking\"\n | \"idle\"\n | \"listening\"\n | \"thinking\"\n | \"searching\"\n | \"working\"\n | \"excited\"\n | \"surprised\"\n | \"suspicious\"\n | \"angry\"\n | \"drowsy\"\n | \"happy\"\n | \"curious\"\n | \"confused\"\n | \"bored\"\n | \"proud\"\n | \"shy\"\n | \"sad\"\n | \"laughing\"\n | \"scared\"\n | \"playful\"\n | \"celebrate\"\n | \"orbit\"\n | \"radar\"\n | \"progress\"\n | \"spawning\"\n | \"humming\"\n | \"loading\"\n | \"dictating\"\n | \"sending\"\n | \"receiving\"\n | \"uploading\"\n | \"writing\"\n | \"notifying\"\n | \"alerting\"\n | \"bouncing\"\n | \"dragging\"\n | \"powering-down\"\n\n/**\n * Which expressions a state cycles through. The first is its resting face, chosen as the\n * pool's most forward-facing member so a mascot at rest looks at you rather than past you.\n */\nexport const POOLS: Record<CursorState, number[]> = Object.fromEntries(Object.entries(LAOA_DATA.pools).map(([key,values]) => [key,[...values]])) as Record<CursorState, number[]>\n\n/** How long a state holds an expression before drifting to another, in ms. */\nconst EXPR_CADENCE = {\n sleeping: [\n 6000,\n 10000\n ],\n waking: [\n 800,\n 800\n ],\n idle: [\n 9000,\n 16000\n ],\n listening: [\n 2800,\n 5000\n ],\n thinking: [\n 2000,\n 3600\n ],\n searching: [\n 1000,\n 1800\n ],\n working: [\n 1800,\n 3200\n ],\n excited: [\n 1100,\n 2000\n ],\n surprised: [\n 2500,\n 4000\n ],\n suspicious: [\n 2600,\n 4500\n ],\n angry: [\n 2200,\n 3800\n ],\n drowsy: [\n 4000,\n 8000\n ],\n happy: [\n 2500,\n 4500\n ],\n curious: [\n 1800,\n 3200\n ],\n confused: [\n 2200,\n 3800\n ],\n bored: [\n 3500,\n 6000\n ],\n proud: [\n 3500,\n 6000\n ],\n shy: [\n 3000,\n 5500\n ],\n sad: [\n 4000,\n 7000\n ],\n laughing: [\n 1200,\n 2400\n ],\n scared: [\n 900,\n 1800\n ],\n playful: [\n 1500,\n 3000\n ],\n celebrate: [\n 1400,\n 2600\n ],\n orbit: [\n 4000,\n 8000\n ],\n radar: [\n 4000,\n 8000\n ],\n progress: [\n 4000,\n 8000\n ],\n spawning: [\n 1200,\n 1200\n ],\n humming: [\n 5000,\n 9000\n ],\n loading: [\n 6000,\n 10000\n ],\n dictating: [\n 4000,\n 8000\n ],\n sending: [\n 4000,\n 8000\n ],\n receiving: [\n 4000,\n 8000\n ],\n uploading: [\n 4000,\n 8000\n ],\n writing: [\n 4000,\n 8000\n ],\n notifying: [\n 1500,\n 2600\n ],\n alerting: [\n 2000,\n 3600\n ],\n bouncing: [\n 3000,\n 6000\n ],\n dragging: [\n 1600,\n 3000\n ],\n \"powering-down\": [\n 6000,\n 9000\n ]\n} satisfies Record<CursorState, [number, number]>\n\n/** Blink cadence in ms, or null for states that never blink. */\nconst BLINK = {\n sleeping: null,\n waking: null,\n idle: [\n 6000,\n 14000\n ],\n listening: [\n 3000,\n 7000\n ],\n thinking: [\n 3500,\n 7000\n ],\n searching: [\n 1600,\n 4000\n ],\n working: [\n 2800,\n 5500\n ],\n excited: [\n 2000,\n 4000\n ],\n surprised: [\n 1800,\n 3500\n ],\n suspicious: [\n 4500,\n 8000\n ],\n angry: [\n 3500,\n 7000\n ],\n drowsy: null,\n happy: [\n 2500,\n 5000\n ],\n curious: [\n 2500,\n 5500\n ],\n confused: [\n 2800,\n 5500\n ],\n bored: [\n 4000,\n 8000\n ],\n proud: [\n 3500,\n 7000\n ],\n shy: [\n 3000,\n 6000\n ],\n sad: [\n 4000,\n 8000\n ],\n laughing: [\n 2500,\n 5000\n ],\n scared: [\n 1200,\n 3000\n ],\n playful: [\n 2000,\n 4500\n ],\n celebrate: [\n 2200,\n 4500\n ],\n orbit: null,\n radar: null,\n progress: null,\n spawning: null,\n humming: [\n 4000,\n 8000\n ],\n loading: null,\n dictating: null,\n sending: null,\n receiving: null,\n uploading: null,\n writing: null,\n notifying: [\n 2000,\n 4000\n ],\n alerting: null,\n bouncing: null,\n dragging: [\n 2200,\n 4500\n ],\n \"powering-down\": null\n} satisfies Record<CursorState, [number, number] | null>\n\n/** Grouping, for pickers and docs. */\nexport const STATE_GROUPS = {\n \"Cycle de vie\": [\n \"sleeping\",\n \"waking\",\n \"idle\",\n \"listening\",\n \"thinking\",\n \"searching\",\n \"working\"\n ],\n \"Réactions\": [\n \"excited\",\n \"surprised\",\n \"suspicious\",\n \"angry\",\n \"drowsy\",\n \"happy\",\n \"curious\",\n \"confused\",\n \"bored\",\n \"proud\",\n \"shy\",\n \"sad\",\n \"laughing\",\n \"scared\",\n \"playful\",\n \"celebrate\"\n ],\n \"Morphes agent\": [\n \"orbit\",\n \"radar\",\n \"progress\"\n ],\n \"Cycle produit\": [\n \"spawning\",\n \"humming\",\n \"loading\",\n \"dictating\",\n \"writing\",\n \"sending\",\n \"receiving\",\n \"uploading\",\n \"notifying\",\n \"alerting\",\n \"dragging\",\n \"bouncing\",\n \"powering-down\"\n ]\n} satisfies Record<string, CursorState[]>\n\nconst isCursorState = (state: string): state is CursorState => state in POOLS\nexport const CURSOR_STATES = Object.keys(POOLS).filter(isCursorState)\n\n/* ------------------------------------------------------------------- maths */\n\nconst clamp = (v: number, min: number, max: number) => Math.max(min, Math.min(max, v))\nconst noTimestamp = (): number | null => null\n\nconst toPath = (ring: Ring) =>\n 'M' + ring.map(p => p[0].toFixed(2) + ' ' + p[1].toFixed(2)).join('L') + 'Z'\n\nconst clone = (rings: Ring[]): Ring[] =>\n rings.map(r => r.map((p): [number, number] => [p[0], p[1]]))\n\n/** Ring centroid for eye projection. */\nconst ringCentre = (ring: Ring): [number, number] => {\n let x = 0\n let y = 0\n for (const p of ring) {\n x += p[0]\n y += p[1]\n }\n return [x / ring.length, y / ring.length]\n}\n\n/** Face-space transform placing the face inside a silhouette. */\nexport const anchorTransform = (a: { x: number; y: number; scale: number }) =>\n `translate(${a.x} ${a.y}) scale(${a.scale}) translate(${-FACE_CENTRE[0]} ${-FACE_CENTRE[1]})`\n\n/** Overshooting ease, so a pop-in lands with a little life instead of stopping dead. */\nconst easeOutBack = (t: number) => {\n const c = 1.7\n const u = t - 1\n return 1 + (c + 1) * u * u * u + c * u * u\n}\n\nconst easeInOut = (t: number) => (t < 0.5 ? 2 * t * t : 1 - 2 * (1 - t) * (1 - t))\n\n/**\n * Builds the body's transform for this frame.\n *\n * `elapsed` is time since the state was entered, which is what one-shot entrances need;\n * loops read it too so every mascot on a page doesn't pulse in lockstep.\n */\nexport function bodyTransform(motion: BodyMotion, elapsed: number, strength: number): string {\n if (strength <= 0) return ''\n const centre = FACE_BOX / 2\n const ground = FACE_BOX\n const wave = (period: number, phase = 0) => Math.sin((elapsed / period) * Math.PI * 2 + phase)\n\n let dx = 0\n let dy = 0\n let rotation = motion.tilt ? motion.tilt * strength : 0\n let scale = 1\n let sx = 1\n let sy = 1\n\n if (motion.bob) {\n const [amplitude, period] = motion.bob\n const p = wave(period)\n dy -= amplitude * strength * p\n if (motion.squash) {\n // Squash at the bottom of the arc, stretch at the top. Volume roughly conserved.\n const amount = motion.squash * strength * Math.max(0, -p)\n sy = 1 - amount * 0.5\n sx = 1 + amount * 0.5\n }\n }\n if (motion.circle) {\n const [radius, period] = motion.circle\n dx += radius * strength * wave(period)\n dy += radius * strength * wave(period, Math.PI / 2)\n }\n if (motion.sway) {\n const [degrees, period] = motion.sway\n rotation += degrees * strength * wave(period)\n }\n if (motion.pulse) {\n const [fraction, period] = motion.pulse\n scale *= 1 + fraction * strength * wave(period)\n }\n if (motion.jitter) {\n const [amplitude, period] = motion.jitter\n // Two incommensurate waves read as nervous rather than metronomic.\n dx += amplitude * strength * wave(period)\n dy += amplitude * strength * wave(period * 0.63, 1.1)\n }\n if (motion.enter) {\n const [from, duration] = motion.enter\n const t = elapsed / duration\n scale *= t >= 1 ? 1 : from + (1 - from) * easeOutBack(Math.max(t, 0))\n }\n if (motion.settle !== undefined) {\n const t = Math.min(Math.max(elapsed / SETTLE_MS, 0), 1)\n scale *= 1 + (motion.settle - 1) * easeInOut(t) * strength\n }\n\n const parts: string[] = []\n if (dx || dy) parts.push(`translate(${dx.toFixed(2)} ${dy.toFixed(2)})`)\n if (rotation) parts.push(`rotate(${rotation.toFixed(2)} ${centre} ${centre})`)\n if (scale !== 1) {\n parts.push(`translate(${centre} ${centre}) scale(${scale.toFixed(4)}) translate(${-centre} ${-centre})`)\n }\n if (sx !== 1 || sy !== 1) {\n // Squash pivots on the ground, not the middle — otherwise it floats instead of landing.\n parts.push(`translate(${centre} ${ground}) scale(${sx.toFixed(4)} ${sy.toFixed(4)}) translate(${-centre} ${-ground})`)\n }\n return parts.join(' ')\n}\n\n/* --------------------------------------------------------------- component */\n\n\nexport interface CursorOptions {\n state: CursorState\n paused: boolean\n color: string\n silhouette: CursorSilhouette\n gaze?: { x?: number; y?: number }\n expression?: number\n fixedTime?: number\n /** Live activity rings. A saved \"working\" face does not wear them. */\n ribbons?: boolean\n /** Draw activity around an uploaded avatar without drawing a replacement face. */\n effectsOnly?: boolean\n}\ntype Engine = ReturnType<typeof newEngine>\nfunction newEngine() {\n return { current: clone(EXPRESSIONS[0]), target: EXPRESSIONS[0], expression: 0, morph: 1, velocity: 0, blinkStart: noTimestamp(), spinStart: noTimestamp(), spinDuration: 900, last: 0, stateStart: 0, lastState: 'idle' as CursorState, lastBodyTransform: '',\n props: {state: 'idle' as CursorState, expression: undefined as number | undefined, gaze: undefined as {x?:number;y?:number}|undefined, turn:0, spring:7, eyeScale:1, paused:true, motionStrength:0, effects:true, glyphs:true, ribbons:true} }\n}\nlet nextId = 0\nexport function mountCursorAvatar(svg: SVGSVGElement, initial: CursorOptions) {\n const uid = `maus-${++nextId}`\n const engine = { current: newEngine() }\n const paintRef = { current: initial.color }\n const node = <T extends Element>(id: string) => ({ current: svg.querySelector<T>(`[data-part=\"${id}\"]`)! })\n svg.setAttribute('viewBox', VIEW_BOX)\n svg.innerHTML = `<defs><clipPath id=\"${uid}-clip\" data-part=\"clip\" /></defs><g data-part=\"trails\"/><g data-part=\"bodyGroup\"><g data-part=\"bodyContent\"><g data-part=\"outline\"/><g clip-path=\"url(#${uid}-clip)\"><g data-part=\"face\"><path data-part=\"eye0\" fill=\"white\"/><path data-part=\"eye1\" fill=\"white\"/></g></g></g><g data-part=\"glyph\" opacity=\"0\"/></g><g data-part=\"confetti\"/>`\n const eye0=node<SVGPathElement>('eye0'), eye1=node<SVGPathElement>('eye1')\n const bodyGroup=node<SVGGElement>('bodyGroup'), bodyContent=node<SVGGElement>('bodyContent'), trailLayer=node<SVGGElement>('trails'), confettiLayer=node<SVGGElement>('confetti'), glyphLayer=node<SVGGElement>('glyph')\n const selectExpression = (index:number, immediate = false) => {\n const e=engine.current, i=((index % EXPRESSION_COUNT)+EXPRESSION_COUNT)%EXPRESSION_COUNT\n if (i === e.expression && e.morph >= 1 && !immediate) return\n e.current=displayed(e)\n e.target=EXPRESSIONS[i];e.expression=i;e.morph=immediate?1:0;e.velocity=0\n }\n const draw = (e: Engine, now: number, spinTurn: number) => {\n const p = e.props\n const rings = displayed(e)\n const gx = clamp(p.gaze?.x ?? 0, -1, 1) * GAZE_TRAVEL.x\n const gy = clamp(p.gaze?.y ?? 0, -1, 1) * GAZE_TRAVEL.y\n const radians = (((p.turn ?? 0) + spinTurn) * Math.PI) / 180\n const base = p.eyeScale ?? 1\n const blink = blinkScale(e, now)\n\n rings.forEach((ring, index) => {\n const el = index === 0 ? eye0.current : eye1.current\n if (!el) return\n const c = ringCentre(ring)\n const baseLongitude = Math.asin(clamp((c[0] - SPHERE_C) / SPHERE_R, -1, 1))\n const longitude = baseLongitude + radians\n const depth = Math.cos(longitude)\n const perspective = Math.max(depth, 0.02) / Math.max(Math.cos(baseLongitude), 0.02)\n el.setAttribute('d', toPath(ring))\n el.setAttribute(\n 'transform',\n `translate(${(SPHERE_C + SPHERE_R * Math.sin(longitude) + gx).toFixed(2)} ${(\n c[1] + gy\n ).toFixed(2)}) scale(${clamp(perspective * base, 0.02, 2.4).toFixed(4)} ${clamp(\n blink * base,\n 0.02,\n 2.4\n ).toFixed(4)}) translate(${(-c[0]).toFixed(2)} ${(-c[1]).toFixed(2)})`\n )\n el.style.opacity = depth > 0.02 ? '1' : '0'\n })\n\n // The body. One-shot entrances need time since the state began, so track that here\n // rather than in an effect — the loop already has the clock.\n const bodyEl = bodyGroup.current\n if (bodyEl) {\n if (p.state !== e.lastState) {\n e.lastState = p.state\n e.stateStart = now\n }\n const transform = bodyTransform(\n MOTION[p.state] ?? {},\n now - e.stateStart,\n p.motionStrength ?? 1\n )\n if (transform !== e.lastBodyTransform) {\n e.lastBodyTransform = transform\n if (transform) bodyEl.setAttribute('transform', transform)\n else bodyEl.removeAttribute('transform')\n }\n }\n\n updateEffects({\n trails: trailLayer.current,\n confetti: confettiLayer.current,\n glyph: glyphLayer.current,\n bodyContent: bodyContent.current,\n state: p.state,\n elapsed: now - e.stateStart,\n strength: p.motionStrength ?? 1,\n paint: paintRef.current,\n showEffects: p.effects !== false,\n showGlyphs: p.glyphs !== false,\n showTrails: p.ribbons !== false,\n })\n }\n\n\n let options=initial, frame=0, blinkTimer: ReturnType<typeof setTimeout>|undefined, expressionTimer:ReturnType<typeof setTimeout>|undefined, disposed=false\n function stop() { cancelAnimationFrame(frame);frame=0;clearTimeout(blinkTimer);clearTimeout(expressionTimer) }\n function armBlink() {\n const range=BLINK[options.state]\n if(options.paused||options.fixedTime!==undefined||!range)return\n blinkTimer=setTimeout(()=>{engine.current.blinkStart=performance.now();armBlink()},range[0]+Math.random()*(range[1]-range[0]))\n }\n function armExpression() {\n if(options.paused||options.fixedTime!==undefined||options.expression!==undefined)return\n const [lo,hi]=EXPR_CADENCE[options.state]\n expressionTimer=setTimeout(()=>{const pool=POOLS[options.state].filter(i=>i!==engine.current.expression);selectExpression(pool.length?pool[Math.floor(Math.random()*pool.length)]:POOLS[options.state][0]);armExpression()},lo+Math.random()*(hi-lo))\n }\n function step(now:number) {\n frame=0\n if(disposed||options.paused||options.fixedTime!==undefined)return\n const e=engine.current, dt=Math.min((now-e.last)/1000,.1);e.last=now\n e.velocity+=(-14*e.velocity-49*(e.morph-1))*dt;e.morph+=e.velocity*dt\n if(!Number.isFinite(e.morph)){e.morph=1;e.velocity=0}\n draw(e,now,0);frame=requestAnimationFrame(step)\n }\n let lastBody = '', lastClip = ''\n function update(next:CursorOptions) {\n const changed=options.state!==next.state||options.expression!==next.expression\n const resume=options.paused!==next.paused||options.fixedTime!==next.fixedTime\n options=next\n svg.setAttribute('viewBox', next.silhouette.viewBox ?? VIEW_BOX)\n const e=engine.current, now=performance.now();paintRef.current=next.color\n e.props={...e.props,state:next.state,expression:next.expression,gaze:next.gaze,paused:next.paused,motionStrength:next.paused?0:1,ribbons:next.ribbons!==false}\n const [vx,vy,vw,vh] = (next.silhouette.viewBox ?? VIEW_BOX).split(/\\s+/).map(Number)\n const cx = vx + vw / 2, cy = vy + vh / 2\n const hasTrails = !next.paused && next.ribbons !== false && !!EFFECTS[next.state]?.trails\n bodyGroup.current.style.visibility = next.effectsOnly ? 'hidden' : ''\n // Leave room for live ribbons while keeping the saved silhouette and resting size.\n bodyContent.current.setAttribute('transform', hasTrails ? `translate(${cx} ${cy}) scale(.72) translate(${-cx} ${-cy})` : '')\n trailLayer.current.setAttribute('transform', `translate(${cx} ${cy}) scale(${Math.min(vw,vh) / FACE_BOX}) translate(${-FACE_BOX / 2} ${-FACE_BOX / 2})`)\n const outline=node<SVGGElement>('outline').current, clip=node<SVGClipPathElement>('clip').current, face=node<SVGGElement>('face').current\n const body=next.silhouette.body.replace(/\\{\\{GRADIENT\\}\\}/g,next.color)\n if(lastBody!==body){outline.innerHTML=body;lastBody=body}\n if(lastClip!==next.silhouette.clip){clip.innerHTML=next.silhouette.clip;lastClip=next.silhouette.clip}\n outline.setAttribute('transform',next.silhouette.fit||'');clip.setAttribute('transform',next.silhouette.fit||'');face.setAttribute('transform',anchorTransform(next.silhouette.anchor))\n if(changed||next.paused||e.last===0)selectExpression(next.expression??POOLS[next.state][0],next.paused||e.last===0)\n if(changed||e.last===0){e.stateStart=now;e.lastState=next.state}\n e.last=now\n if(changed||resume||!frame){stop();armBlink();armExpression()}\n draw(e,next.paused ? e.stateStart+(next.fixedTime??0) : next.fixedTime===undefined?now:e.stateStart+next.fixedTime,0)\n if(!next.paused&&next.fixedTime===undefined&&!frame)frame=requestAnimationFrame(step)\n }\n update(initial)\n return {update,dispose(){disposed=true;stop();svg.replaceChildren()}}\n}\nfunction displayed(e: { current: Ring[]; target: Ring[]; morph: number }): Ring[] {\n const m = clamp(e.morph, 0, 1)\n return e.current.map((ring, eye) =>\n ring.map((p, i): [number, number] => [\n p[0] + (e.target[eye][i][0] - p[0]) * m,\n p[1] + (e.target[eye][i][1] - p[1]) * m,\n ])\n )\n}\n\nfunction blinkScale(e: { blinkStart: number | null }, now: number) {\n if (e.blinkStart === null) return 1\n const t = (now - e.blinkStart) / 320\n if (t >= 1) {\n e.blinkStart = null\n return 1\n }\n // Fast close, slower open.\n return Math.max(t < 0.42 ? 1 - t / 0.42 : (t - 0.42) / 0.58, 0.04)\n}\n","// Shared LaoA-GrokBot geometry; see THIRD_PARTY_NOTICES.md.\nimport type { CursorSilhouette } from './cursor-engine'\nimport { LAOA_DATA } from './laoa-data'\nfunction silhouette(name: string, geometry: {path:string;anchor:readonly number[];viewport:readonly number[]}): CursorSilhouette {\n const [x,y,scale] = geometry.anchor\n return {name,fit:'',body:`<path d=\"${geometry.path}\" fill=\"{{GRADIENT}}\"/>`,clip:`<path d=\"${geometry.path}\"/>`,anchor:{x,y,scale},viewBox:geometry.viewport.join(' ')}\n}\nexport const MASCOT_SILHOUETTES = Object.fromEntries(Object.entries(LAOA_DATA.shapes).map(([id,value]) => [id==='ellipse'?'oval':id,silhouette(id,value)])) as Record<string,CursorSilhouette>\nexport const LAOA_BODIES = Object.fromEntries(Object.entries(LAOA_DATA.bodies).map(([id,value]) => [id,silhouette(id,value)])) as Record<keyof typeof LAOA_DATA.bodies,CursorSilhouette>\n","<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue'\nimport { decodeAgentAvatar } from '@shared/agentIdentity'\nimport { mountCursorAvatar, type CursorState } from './maus/cursor-engine'\nimport { MASCOT_SILHOUETTES, LAOA_BODIES } from './maus/silhouettes'\ntype MascotState = 'idle' | 'working' | 'loading' | 'notifying' | 'waiting' | 'success' | 'failure'\nconst props = withDefaults(defineProps<{ name: string; avatar?: string; size?: number; state?: MascotState; animated?: boolean; fixedTime?: number; expressionIndex?: number; activityKey?: string | number }>(), { avatar: '', size: 32, state: 'idle', animated: undefined })\nconst host = ref<HTMLElement>(), svg = ref<SVGSVGElement>(), visible = ref(true), foreground = ref(true), reduced = ref(false), hover = ref(false)\nconst gaze = ref({x:0,y:0})\nconst oneShot = ref<CursorState>()\nconst beatEnded = ref(false), imageFailed = ref(false)\nlet beat: ReturnType<typeof setTimeout> | undefined\nlet observer: IntersectionObserver | undefined\nlet media: MediaQueryList | undefined\nlet renderer: ReturnType<typeof mountCursorAvatar> | undefined\n// Missing metadata during refresh is not a configured green mascot.\nconst identity = computed(() => decodeAgentAvatar(props.avatar))\nconst hasImage = computed(() => identity.value?.avatarMode === 'image' && !!identity.value.imageDataURL && !imageFailed.value)\nconst hasMascot = computed(() => identity.value?.avatarMode === 'mascot')\nconst hasVisual = computed(() => hasImage.value || hasMascot.value)\nconst radius = computed(() => identity.value?.imageCrop === 'circle' ? '50%' : identity.value?.imageCrop === 'square' ? '0' : '22%')\nconst states: Record<MascotState, CursorState> = {idle:'idle',working:'working',loading:'loading',waiting:'alerting',notifying:'notifying',success:'happy',failure:'sad'}\nconst runtimeActive = computed(() => props.state !== 'idle' && !beatEnded.value)\nconst imageActivity = computed(() => hasImage.value && runtimeActive.value && ['working', 'loading'].includes(props.state))\nconst state = computed<CursorState>(() => runtimeActive.value ? states[props.state] : oneShot.value ?? identity.value?.expression ?? 'idle')\nconst live = computed(() => hasVisual.value && visible.value && foreground.value && !reduced.value && props.animated !== false && (props.animated === true || props.size >= 56 || runtimeActive.value || !!oneShot.value || hover.value))\nconst options = computed(() => identity.value && hasVisual.value ? ({ state: state.value, paused: !live.value, color: identity.value.color, gaze: gaze.value,\n silhouette: hasImage.value ? MASCOT_SILHOUETTES.circle : identity.value.bodyId ? LAOA_BODIES[identity.value.bodyId] : MASCOT_SILHOUETTES[identity.value.shape === 'ellipse' ? 'oval' : identity.value.shape], fixedTime: props.fixedTime, expression: props.expressionIndex,\n effectsOnly: hasImage.value, ribbons: runtimeActive.value || state.value !== 'working' }) : undefined)\nfunction sync() {\n if (!svg.value || !options.value || (hasImage.value && !imageActivity.value)) { renderer?.dispose();renderer=undefined;return }\n if (!renderer) renderer=mountCursorAvatar(svg.value, options.value)\n else renderer.update(options.value)\n}\nfunction pointer(event: PointerEvent) {\n if (reduced.value || props.animated === false) return\n const rect = (event.currentTarget as HTMLElement).getBoundingClientRect()\n hover.value=true\n gaze.value={x:Math.max(-1,Math.min(1,(event.clientX-rect.left)/rect.width*2-1)),y:Math.max(-1,Math.min(1,(event.clientY-rect.top)/rect.height*2-1))}\n}\nfunction leave() { hover.value=false;gaze.value={x:0,y:0} }\nfunction visibility() { foreground.value=document.visibilityState!=='hidden' }\nfunction motion() { reduced.value=media?.matches ?? false }\nwatch(() => props.avatar, () => { imageFailed.value=false })\nwatch(() => [props.state, props.activityKey] as const, ([next]) => {\n clearTimeout(beat);beatEnded.value=false;oneShot.value=undefined\n if(props.fixedTime === undefined && ['success','failure','notifying'].includes(next)) beat=setTimeout(()=>{beatEnded.value=true},1400)\n},{immediate:true})\nwatch([options,svg,imageActivity],sync,{flush:'post'})\nonMounted(()=>{\n visibility();media=window.matchMedia?.('(prefers-reduced-motion: reduce)');motion();media?.addEventListener('change',motion)\n document.addEventListener('visibilitychange',visibility)\n if(typeof IntersectionObserver!=='undefined' && host.value){observer=new IntersectionObserver(entries=>{visible.value=entries[0]?.isIntersecting ?? false});observer.observe(host.value)}\n sync()\n})\nonBeforeUnmount(()=>{renderer?.dispose();observer?.disconnect();clearTimeout(beat);media?.removeEventListener('change',motion);document.removeEventListener('visibilitychange',visibility)})\n</script>\n<template>\n <span ref=\"host\" class=\"agent-avatar\" :class=\"[`agent-avatar--${props.state}`, {'agent-avatar--image':hasImage, 'agent-avatar--image-active': imageActivity && live}]\" :style=\"{width:`${size}px`,height:`${size}px`}\" role=\"img\" :aria-label=\"`${name} 的头像`\" @pointermove=\"pointer\" @pointerleave=\"leave\" :data-animated=\"live && (!hasImage || imageActivity)\" :data-expression=\"state\">\n <span v-if=\"!hasVisual\" class=\"agent-avatar__placeholder\" aria-hidden=\"true\" />\n <img @error=\"imageFailed = true\" v-if=\"hasImage\" :src=\"identity?.imageDataURL\" alt=\"\" :style=\"{borderRadius:radius}\" />\n <svg v-if=\"hasMascot || imageActivity\" ref=\"svg\" aria-hidden=\"true\" />\n </span>\n</template>\n<style scoped>\n.agent-avatar{display:block;position:relative;flex:0 0 auto;overflow:visible;line-height:1;background:transparent}.agent-avatar img,.agent-avatar svg{display:block;width:100%;height:100%;object-fit:cover}\n.agent-avatar__placeholder{display:block;width:100%;height:100%;border-radius:50%;background:var(--surface-soft);box-shadow:inset 0 0 0 1px var(--line)}\n.agent-avatar svg{overflow:visible;pointer-events:none}.agent-avatar--image svg{position:absolute;inset:0}.agent-avatar--image-active img{transform:scale(.72)}\n</style>\n","<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue'\nimport { decodeAgentAvatar } from '@shared/agentIdentity'\nimport { mountCursorAvatar, type CursorState } from './maus/cursor-engine'\nimport { MASCOT_SILHOUETTES, LAOA_BODIES } from './maus/silhouettes'\ntype MascotState = 'idle' | 'working' | 'loading' | 'notifying' | 'waiting' | 'success' | 'failure'\nconst props = withDefaults(defineProps<{ name: string; avatar?: string; size?: number; state?: MascotState; animated?: boolean; fixedTime?: number; expressionIndex?: number; activityKey?: string | number }>(), { avatar: '', size: 32, state: 'idle', animated: undefined })\nconst host = ref<HTMLElement>(), svg = ref<SVGSVGElement>(), visible = ref(true), foreground = ref(true), reduced = ref(false), hover = ref(false)\nconst gaze = ref({x:0,y:0})\nconst oneShot = ref<CursorState>()\nconst beatEnded = ref(false), imageFailed = ref(false)\nlet beat: ReturnType<typeof setTimeout> | undefined\nlet observer: IntersectionObserver | undefined\nlet media: MediaQueryList | undefined\nlet renderer: ReturnType<typeof mountCursorAvatar> | undefined\n// Missing metadata during refresh is not a configured green mascot.\nconst identity = computed(() => decodeAgentAvatar(props.avatar))\nconst hasImage = computed(() => identity.value?.avatarMode === 'image' && !!identity.value.imageDataURL && !imageFailed.value)\nconst hasMascot = computed(() => identity.value?.avatarMode === 'mascot')\nconst hasVisual = computed(() => hasImage.value || hasMascot.value)\nconst radius = computed(() => identity.value?.imageCrop === 'circle' ? '50%' : identity.value?.imageCrop === 'square' ? '0' : '22%')\nconst states: Record<MascotState, CursorState> = {idle:'idle',working:'working',loading:'loading',waiting:'alerting',notifying:'notifying',success:'happy',failure:'sad'}\nconst runtimeActive = computed(() => props.state !== 'idle' && !beatEnded.value)\nconst imageActivity = computed(() => hasImage.value && runtimeActive.value && ['working', 'loading'].includes(props.state))\nconst state = computed<CursorState>(() => runtimeActive.value ? states[props.state] : oneShot.value ?? identity.value?.expression ?? 'idle')\nconst live = computed(() => hasVisual.value && visible.value && foreground.value && !reduced.value && props.animated !== false && (props.animated === true || props.size >= 56 || runtimeActive.value || !!oneShot.value || hover.value))\nconst options = computed(() => identity.value && hasVisual.value ? ({ state: state.value, paused: !live.value, color: identity.value.color, gaze: gaze.value,\n silhouette: hasImage.value ? MASCOT_SILHOUETTES.circle : identity.value.bodyId ? LAOA_BODIES[identity.value.bodyId] : MASCOT_SILHOUETTES[identity.value.shape === 'ellipse' ? 'oval' : identity.value.shape], fixedTime: props.fixedTime, expression: props.expressionIndex,\n effectsOnly: hasImage.value, ribbons: runtimeActive.value || state.value !== 'working' }) : undefined)\nfunction sync() {\n if (!svg.value || !options.value || (hasImage.value && !imageActivity.value)) { renderer?.dispose();renderer=undefined;return }\n if (!renderer) renderer=mountCursorAvatar(svg.value, options.value)\n else renderer.update(options.value)\n}\nfunction pointer(event: PointerEvent) {\n if (reduced.value || props.animated === false) return\n const rect = (event.currentTarget as HTMLElement).getBoundingClientRect()\n hover.value=true\n gaze.value={x:Math.max(-1,Math.min(1,(event.clientX-rect.left)/rect.width*2-1)),y:Math.max(-1,Math.min(1,(event.clientY-rect.top)/rect.height*2-1))}\n}\nfunction leave() { hover.value=false;gaze.value={x:0,y:0} }\nfunction visibility() { foreground.value=document.visibilityState!=='hidden' }\nfunction motion() { reduced.value=media?.matches ?? false }\nwatch(() => props.avatar, () => { imageFailed.value=false })\nwatch(() => [props.state, props.activityKey] as const, ([next]) => {\n clearTimeout(beat);beatEnded.value=false;oneShot.value=undefined\n if(props.fixedTime === undefined && ['success','failure','notifying'].includes(next)) beat=setTimeout(()=>{beatEnded.value=true},1400)\n},{immediate:true})\nwatch([options,svg,imageActivity],sync,{flush:'post'})\nonMounted(()=>{\n visibility();media=window.matchMedia?.('(prefers-reduced-motion: reduce)');motion();media?.addEventListener('change',motion)\n document.addEventListener('visibilitychange',visibility)\n if(typeof IntersectionObserver!=='undefined' && host.value){observer=new IntersectionObserver(entries=>{visible.value=entries[0]?.isIntersecting ?? false});observer.observe(host.value)}\n sync()\n})\nonBeforeUnmount(()=>{renderer?.dispose();observer?.disconnect();clearTimeout(beat);media?.removeEventListener('change',motion);document.removeEventListener('visibilitychange',visibility)})\n</script>\n<template>\n <span ref=\"host\" class=\"agent-avatar\" :class=\"[`agent-avatar--${props.state}`, {'agent-avatar--image':hasImage, 'agent-avatar--image-active': imageActivity && live}]\" :style=\"{width:`${size}px`,height:`${size}px`}\" role=\"img\" :aria-label=\"`${name} 的头像`\" @pointermove=\"pointer\" @pointerleave=\"leave\" :data-animated=\"live && (!hasImage || imageActivity)\" :data-expression=\"state\">\n <span v-if=\"!hasVisual\" class=\"agent-avatar__placeholder\" aria-hidden=\"true\" />\n <img @error=\"imageFailed = true\" v-if=\"hasImage\" :src=\"identity?.imageDataURL\" alt=\"\" :style=\"{borderRadius:radius}\" />\n <svg v-if=\"hasMascot || imageActivity\" ref=\"svg\" aria-hidden=\"true\" />\n </span>\n</template>\n<style scoped>\n.agent-avatar{display:block;position:relative;flex:0 0 auto;overflow:visible;line-height:1;background:transparent}.agent-avatar img,.agent-avatar svg{display:block;width:100%;height:100%;object-fit:cover}\n.agent-avatar__placeholder{display:block;width:100%;height:100%;border-radius:50%;background:var(--surface-soft);box-shadow:inset 0 0 0 1px var(--line)}\n.agent-avatar svg{overflow:visible;pointer-events:none}.agent-avatar--image svg{position:absolute;inset:0}.agent-avatar--image-active img{transform:scale(.72)}\n</style>\n"],"x_google_ignoreList":[2,3,4,5,6,7,8,9,10,11,12,13,14,15],"mappings":"4IAAA,IAAa,EAAkC,yBAElC,EAA2B,oBAG3B,EAAsB,CAAC,SAAU,SAAU,WAAY,UAAW,UAAW,UAAW,QAAS,SAAS,EAE1G,EAA0D,CAAC,SAAU,UAAW,SAAU,UAAW,WAAY,UAAW,QAAS,SAAS,EAC9I,EAA2B,CAAC,OAAQ,QAAS,UAAW,SAAU,UAAW,WAAY,YAAa,WAAY,aAAc,OAAO,EAEvI,EAAsB,CAAC,SAAU,OAAQ,SAAU,WAAY,UAAW,OAAQ,SAAU,UAAW,UAAW,MAAM,EAExH,EAA4D,CAAE,OAA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,CACP,KACA,GACF,EACA,UAAW,CACT,KACA,GACF,EACA,WAAY,CACV,KACA,IACF,EACA,MAAO,CACL,KACA,IACF,EACA,OAAQ,CACN,IACA,GACF,EACA,MAAO,CACL,KACA,IACF,EACA,QAAS,CACP,KACA,IACF,EACA,SAAU,CACR,KACA,IACF,EACA,MAAO,CACL,KACA,GACF,EACA,MAAO,CACL,KACA,GACF,EACA,IAAK,CACH,IACA,IACF,EACA,IAAK,CACH,IACA,GACF,EACA,SAAU,CACR,KACA,IACF,EACA,OAAQ,CACN,IACA,IACF,EACA,QAAS,CACP,KACA,GACF,EACA,UAAW,CACT,KACA,IACF,EACA,MAAO,CACL,IACA,GACF,EACA,MAAO,CACL,IACA,GACF,EACA,SAAU,CACR,IACA,GACF,EACA,SAAU,CACR,KACA,IACF,EACA,QAAS,CACP,IACA,GACF,EACA,QAAS,CACP,IACA,GACF,EACA,UAAW,CACT,IACA,GACF,EACA,QAAS,CACP,IACA,GACF,EACA,UAAW,CACT,IACA,GACF,EACA,UAAW,CACT,IACA,GACF,EACA,QAAS,CACP,IACA,GACF,EACA,UAAW,CACT,KACA,IACF,EACA,SAAU,CACR,IACA,IACF,EACA,SAAU,CACR,IACA,GACF,EACA,SAAU,CACR,KACA,GACF,EACA,gBAAiB,CACf,IACA,GACF,CACF,EAGM,GAAQ,CACZ,SAAU,KACV,OAAQ,KACR,KAAM,CACJ,IACA,IACF,EACA,UAAW,CACT,IACA,GACF,EACA,SAAU,CACR,KACA,GACF,EACA,UAAW,CACT,KACA,GACF,EACA,QAAS,CACP,KACA,IACF,EACA,QAAS,CACP,IACA,GACF,EACA,UAAW,CACT,KACA,IACF,EACA,WAAY,CACV,KACA,GACF,EACA,MAAO,CACL,KACA,GACF,EACA,OAAQ,KACR,MAAO,CACL,KACA,GACF,EACA,QAAS,CACP,KACA,IACF,EACA,SAAU,CACR,KACA,IACF,EACA,MAAO,CACL,IACA,GACF,EACA,MAAO,CACL,KACA,GACF,EACA,IAAK,CACH,IACA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