1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="15d89207-768c-81d3-3611-e4bd10b33243")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,963852,430124,777576,592210,588590,702547,91580,899875,658162,e=>{"use strict";let t;var n,a,i,r,s,o,l,d=e.i(340228);let u=d.z.enum(["youtube","tiktok","other"]),c=d.z.object({id:d.z.string().uuid(),userId:d.z.string().min(1),name:d.z.string().min(1),platform:u,createdAt:d.z.coerce.date(),updatedAt:d.z.coerce.date()}),m=d.z.array(c),p=d.z.string().trim().min(1).max(120).refine(e=>/[\p{L}\p{N}]/u.test(e),{message:"Channel name must include at least one letter or number"}),g=d.z.object({name:p,platform:u.default("youtube")}),b=d.z.object({id:d.z.string().uuid()}),z=d.z.object({name:p}),h=d.z.object({id:d.z.string().uuid()}),f=d.z.object({ok:d.z.literal(!0)}),y=d.z.enum(["en","ru","es","pt"]),v=d.z.object({niche:d.z.string().nullable(),channelName:d.z.string().nullable(),defaultVoice:d.z.string().nullable(),defaultStyle:d.z.string().nullable(),language:y,onboardingSkipped:d.z.boolean()}),_=d.z.object({isComplete:d.z.boolean(),hasNiche:d.z.boolean(),hasChannelSetup:d.z.boolean(),onboardingSkipped:d.z.boolean(),hasPurchasedQuiz:d.z.boolean(),hasActiveSubscription:d.z.boolean(),hasMinuteBalance:d.z.boolean(),preferences:v.nullable()}),x=d.z.object({balance:d.z.number(),freeTrialCreditSeconds:d.z.number()}),I=d.z.object({onboarding:_,channels:d.z.array(c),balance:x,isAdmin:d.z.boolean(),videoDomain:d.z.object({projectCount:d.z.number().int().nonnegative()})}),j=d.z.object({confirmation:d.z.literal("DELETE")}),k=d.z.object({ok:d.z.literal(!0),workflowId:d.z.string(),status:d.z.enum(["started","already_running"])}),S=d.z.object({page:d.z.coerce.number().int().min(1).optional(),pageSize:d.z.coerce.number().int().min(1).max(100).optional()}).optional().default({}),T=d.z.enum(["legacy_token","retail_credit"]),A=d.z.enum(["credit","debit"]),w=d.z.enum(["script","tts_voice","visuals","assembly","llm"]).nullable(),C=d.z.object({id:d.z.number().int(),userId:d.z.string(),amount:d.z.union([d.z.string(),d.z.number()]),billingUnit:T.default("legacy_token"),type:A,projectId:d.z.string().nullable(),category:w,description:d.z.string().nullable(),idempotencyKey:d.z.string().nullable(),createdAt:d.z.coerce.date()}),R=d.z.object({entries:d.z.array(C),totalCount:d.z.number().int().nonnegative(),page:d.z.number().int().min(1),pageSize:d.z.number().int().min(1).max(100),totalPages:d.z.number().int().nonnegative()}),P=d.z.enum(["monthly","annual","weekly"]),O=d.z.object({offerId:d.z.string(),offerKey:d.z.string(),kind:d.z.string(),catalogSlot:d.z.string(),visibility:d.z.string(),reacquirePolicy:d.z.string(),versionId:d.z.string(),displayName:d.z.string(),marketingCopy:d.z.string().nullable(),badge:d.z.string().nullable(),sortOrder:d.z.number(),billingInterval:P.nullable(),includedMinutes:d.z.number(),priceCents:d.z.number(),currency:d.z.string(),billingUnit:T.default("legacy_token"),featureList:d.z.array(d.z.string()),entitlementsSnapshot:d.z.record(d.z.unknown()),topUpEnabled:d.z.boolean(),introType:d.z.string(),renewalPolicy:d.z.string(),renewalTargetOfferId:d.z.string().nullable(),stripeRecurringPriceId:d.z.string().nullable(),stripeOneTimePriceId:d.z.string().nullable(),stripeCouponId:d.z.string().nullable(),assignmentSource:d.z.string()}),E=d.z.object({id:d.z.string(),stripeSubscriptionId:d.z.string(),stripeScheduleId:d.z.string().nullable(),status:d.z.string(),cancelAtPeriodEnd:d.z.boolean(),currentPeriodStart:d.z.coerce.date().nullable(),currentPeriodEnd:d.z.coerce.date().nullable(),introOfferConsumedAt:d.z.coerce.date().nullable(),currentOffer:O.nullable(),pendingOffer:O.nullable(),pendingChangeEffectiveAt:d.z.coerce.date().nullable()});d.z.object({subscription:E.nullable()});let Z=d.z.object({offerId:d.z.string(),versionId:d.z.string(),offerKey:d.z.string(),displayName:d.z.string(),priceCents:d.z.number().int(),credits:d.z.number(),bonusCredits:d.z.number()}
2),N=d.z.object({state:d.z.enum(["not_eligible","available","scheduled","claimed"]),reason:d.z.enum(["no_subscription","not_legacy","no_legacy_purchase","already_retail","inactive_term","cancel_pending","bonus_claimed","no_targets"]).nullable(),bonusPercent:d.z.number(),currentOfferKey:d.z.string().nullable(),currentBillingUnit:T.nullable(),effectiveAt:d.z.coerce.date().nullable(),scheduledOffer:Z.nullable(),targets:d.z.array(Z),claimedAt:d.z.coerce.date().nullable()}),U=d.z.object({subscription:E.nullable(),eligibleSubscriptionOffers:d.z.array(O),eligibleTopUpOffers:d.z.array(O),planMigration:N.optional()}),$=d.z.enum(["trending","latest","mostUsers"]),V=d.z.enum(["conversational","narration","characters","social_media","educational","advertisement","entertainment","unknown"]),D=d.z.enum(["highQuality","studio","any"]),L=d.z.enum(["all","curated","creator"]),M=d.z.enum(["male","female","neutral","any"]),F=d.z.enum(["young","middleAged","old","any"]),B=d.z.enum(["30d","90d","180d","365d","730d","infinite","any"]),q=d.z.enum(["include","exclude"]),G=d.z.object({query:d.z.string().trim().max(120).optional(),sort:$.optional(),language:d.z.string().trim().max(16).nullable().optional(),accent:d.z.string().trim().max(80).nullable().optional(),useCaseCategory:V.nullable().optional(),quality:D.optional(),category:L.optional(),gender:M.optional(),age:F.optional(),noticePeriod:B.optional(),customRates:q.optional(),liveModeration:q.optional(),cursor:d.z.string().trim().min(1).max(512).nullable().optional(),pageSize:d.z.coerce.number().int().min(1).max(100).optional(),voiceIds:d.z.array(d.z.string().trim().min(1).max(128)).max(100).optional()}).optional().default({}),K=d.z.object({voiceId:d.z.string(),name:d.z.string(),description:d.z.string(),tags:d.z.array(d.z.string())}),J=d.z.array(K),W=d.z.object({voiceId:d.z.string(),name:d.z.string(),description:d.z.string(),previewUrl:d.z.string().nullable(),providerCategory:d.z.string().nullable(),useCaseCategory:V,gender:d.z.string().nullable(),age:d.z.string().nullable(),accent:d.z.string().nullable(),primaryLanguage:d.z.string().nullable(),verifiedLanguageCount:d.z.number().int().nonnegative(),noticePeriodDays:d.z.number().int().nonnegative().nullable(),noticePeriodBucket:d.z.enum(["none","30d","90d","180d","365d","730d","infinite","unknown"]),recordingQuality:d.z.string().nullable(),isStudioQuality:d.z.boolean(),liveModerationEnabled:d.z.boolean(),customRatesEnabled:d.z.boolean(),likedByCount:d.z.number(),clonedByCount:d.z.number(),isFeatured:d.z.boolean(),trendingScore:d.z.number(),mostUsersScore:d.z.number()}),H=d.z.object({provider:d.z.string(),status:d.z.string(),lastAttemptAt:d.z.coerce.date().nullable(),lastSuccessAt:d.z.coerce.date().nullable(),lastStartedAt:
2d.z.coerce.date().nullable(),lastCompletedAt:d.z.coerce.date().nullable(),errorSummary:d.z.string().nullable(),syncedVoiceCount:d.z.number().int().nonnegative(),metadata:d.z.record(d.z.unknown()),updatedAt:d.z.coerce.date()}),Y=d.z.object({items:d.z.array(W),nextCursor:d.z.string().nullable(),totalCount:d.z.number().int().nonnegative(),filters:d.z.object({languages:d.z.array(d.z.string()),accents:d.z.array(d.z.string())}),syncState:H.nullable()});d.z.array(O);let Q=d.z.object({offerId:d.z.string().uuid(),thresholdTokens:d.z.number().positive(),monthlyCapCents:d.z.number().int().positive().max(1e6),returnUrl:d.z.string().url()}),X=d.z.object({enabled:d.z.boolean(),offerId:d.z.string().nullable(),thresholdTokens:d.z.number(),monthlyCapCents:d.z.number().int(),attention:d.z.string().nullable(),consentedAt:d.z.string().nullable()}),ee=d.z.object({url:d.z.string().url()});d.z.object({offerId:d.z.string().uuid(),versionId:d.z.string().uuid(),currentPeriodEnd:d.z.string().datetime()});let et=d.z.object({effectiveAt:d.z.string().datetime()});d.z.object({currentPeriodEnd:d.z.string().datetime()});let en=d.z.object({ok:d.z.literal(!0)}),ea=d.z.string().uuid();d.z.object({id:ea}),d.z.object({projectId:ea});let ei=d.z.object({}).passthrough();d.z.object({enabled:d.z.boolean(),from:d.z.string(),to:d.z.string(),reportsEnabled:d.z.boolean(),creditBalanceVerified:d.z.boolean(),targets:d.z.array(d.z.object({endpoint:d.z.string(),deployment:d.z.string(),model:d.z.string(),subscriptionId:d.z.string(),grantExpiresAt:d.z.string(),grantEligible:d.z.boolean(),rpm:d.z.number(),quotaScope:d.z.string(),supportsEdits:d.z.boolean(),active:d.z.boolean(),quality:d.z.string()})),rows:d.z.array(d.z.object({endpoint:d.z.string(),deployment:d.z.string(),model:d.z.string(),route:d.z.string(),quality:d.z.string(),attempts:d.z.number(),succeeded:d.z.number(),throttled:d.z.number(),failed:d.z.number(),averageLatencyMs:d.z.number()}))}),d.z.object({freeTrialCreditSeconds:d.z.number().int().min(0),onboardingPanelVariant:d.z.string()});let er=d.z.object({freeTrialCreditSeconds:d.z.number().int().min(0).max(86400),onboardingPanelVariant:d.z.string().optional()}),es=d.z.object({audioQueueConcurrencyLimit:d.z.number().int().min(1).max(100).nullable()}),eo=d.z.record(d.z.string(),d.z.unknown()).optional().default({}),el=d.z.array(ei),ed=d.z.object({role:d.z.enum(["user","admin"])}),eu=d.z.object({amount:d.z.number().positive(),type:d.z.enum(["credit","debit"]),reason:d.z.string().min(1).max(500),source:d.z.enum(["creator_grant","admin_adjustment"]).optional(),submissionId:d.z.string().min(1).max(255).optional(),idempotencyKey:d.z.string().min(1).max(255).optional()}),ec=d.z.object({email:d.z.string().trim().toLowerCase().email().max(320),amount:d.z.number().min(0),reason:d.z.string().trim().min(1).max(500),submissionId:d.z.string().min(1).max(255).optional()}),em=d.z.object({userId:d.z.string(),email:d.z.string(),accountCreated:d.z.boolean(),balance:d.z.number(),signInPath:d.z.string(),signInExpiresAt:d.z.string()});d.z.object({projectId:d.z.string()});let ep=d.z.object({cursor:d.z.coerce.number().int().min(0).default(0),limit:d.z.coerce.number().int().min(1).max(100).default(50)}).optional().default({}),eg=ei.extend({projectId:d.z.string().uuid(),userId:d.z.string(),userEmail:d.z.string().nullable(),userName:d.z.string().nullable(),topic:d.z.string(),title:d.z.string().nullable(),postedYoutubeUrl:d.z.string().nullable(),postedYoutubeVideoId:d.z.string().nullable(),youtubeLinkStatus:d.z.enum(["approved","pending_review","rejected"]).nullable(),youtubeLinkReviewReason:d.z.string().nullable(),youtubeLinkTitle:d.z.string().nullable(),youtubeLinkChannelTitle:d.z.string().nullable(),youtubeLinkDurationSec:d.z.number().int().nullable(),youtubeLinkDurationDeltaSec:d.z.number().int().nullable(),youtubeLinkCheckedAt:d.z.coerce.date().nullable(),completedAt:d.z.coerce.date().nullable(),postedAt:d.z.coerce.date(),bonusGranted:d.z.boolean()}),eb=d.z.object({rows:d.z.array(eg),nextCursor:d.z.number().int().min(0).nullable()}),ez=d.z.object({reason:d.z.string().max(500).optional()}).optional().default({}),eh="classic_visual_timeout_2026_08_09",ef=d.z.object({incidentId:d.z.literal(eh),mode:d.z.enum
2(["dry_run","apply"]),projectId:d.z.string().uuid(),recoveries:d.z.array(d.z.object({sceneId:d.z.string().uuid(),sourceJobId:d.z.string().uuid()}).strict()).min(1).max(5)}).strict().superRefine((e,t)=>{let n=new Set,a=new Set;for(let[i,r]of e.recoveries.entries())n.has(r.sceneId)&&t.addIssue({code:d.z.ZodIssueCode.custom,path:["recoveries",i,"sceneId"],message:"Each scene may appear only once."}),a.has(r.sourceJobId)&&t.addIssue({code:d.z.ZodIssueCode.custom,path:["recoveries",i,"sourceJobId"],message:"Each source job may appear only once."}),n.add(r.sceneId),a.add(r.sourceJobId)}),ey=d.z.object({incidentId:d.z.literal(eh),mode:d.z.enum(["dry_run","apply"]),projectId:d.z.string().uuid(),recoveries:d.z.array(d.z.object({sceneId:d.z.string().uuid(),sourceJobId:d.z.string().uuid(),jobRunId:d.z.string().uuid().nullable(),status:d.z.string().min(1).nullable(),error:d.z.string().min(1).nullable()}).strict())}).strict().superRefine((e,t)=>{e.recoveries.forEach((n,a)=>{let i=null===n.jobRunId&&null===n.status&&null===n.error,r=null!==n.jobRunId&&null!==n.status&&null===n.error,s=null===n.jobRunId&&null===n.status&&null!==n.error;("dry_run"!==e.mode||i)&&("apply"!==e.mode||r||s)||t.addIssue({code:d.z.ZodIssueCode.custom,path:["recoveries",a],message:"Recovery result does not match its operation mode."})})});d.z.object({projectId:d.z.string().uuid(),dryRun:d.z.boolean(),reset:d.z.boolean().optional()}).strict();let ev=d.z.object({sceneId:d.z.string().uuid(),sectionId:d.z.string().uuid(),currentStartMs:d.z.number().int().nonnegative().nullable(),correctedStartMs:d.z.number().int().nonnegative().nullable(),shiftMs:d.z.number().int().nullable()}).strict(),e_=d.z.object({sectionId:d.z.string().uuid(),sectionTtsTextHash:d.z.string().min(1),selectedAssetId:d.z.string().uuid().nullable(),selectedObjectKey:d.z.string().min(1).nullable(),actualDurationMs:d.z.number().int().positive().nullable(),needsResynthesis:d.z.boolean(),sourceClassification:d.z.enum(["unique-key","single-legacy-row","ambiguous-resynthesize","unknown"]),progress:d.z.object({status:d.z.enum(["not_started","queued","running","partial","completed","failed"]),totalSceneCount:d.z.number().int().nonnegative(),succeededSceneCount:d.z.number().int().nonnegative(),activeSceneCount:d.z.number().int().nonnegative(),failedSceneCount:d.z.number().int().nonnegative()}).strict()}).strict();d.z.object({projectId:d.z.string().uuid(),dryRun:d.z.boolean(),billingPolicy:d.z.literal("classic_narration_reslice_recovery_v1"),alreadyApplied:d.z.boolean(),sections:d.z.array(e_),scenes:d.z.array(ev),jobs:d.z.array(d.z.object({sceneId:d.z.string().uuid(),jobRunId:d.z.string().uuid(),status:d.z.string().min(1),startError:d.z.string().min(1).nullable()}).strict())}).strict(),d.z.object({limit:d.z.coerce.number().int().min(1).max(100).default(25),cursor:d.z.string().uuid().nullable().optional()}).strict().optional().default({}),d.z.object({projects:d.z.array(d.z.object({projectId:d.z.string().uuid(),ambiguousSectionCount:d.z.number().int().nonnegative(),mismatches:d.z.array(d.z.object({sectionId:d.z.string(),assetId:d.z.string().uuid(),objectKey:d.z.string().min(1),expectedDurationMs:d.z.number().int().nonnegative().nullable(),actualDurationMs:d.z.number().int().nonnegative().nullable()}).strict()),unknowns:d.z.array(d.z.object({status:d.z.literal("unknown"),sectionId:d.z.string(),assetId:d.z.string().uuid(),objectKey:d.z.string().min(1),expectedDurationMs:d.z.number().int().nonnegative().nullable(),actualDurationMs:d.z.null()}).strict())}).strict().superRefine((e,t)=>{0===e.ambiguousSectionCount&&0===e.mismatches.length&&0===e.unknowns.length&&t.addIssue({code:d.z.ZodIssueCode.custom,message:"A scan project must contain a mismatch, unknown asset, or ambiguous section."})})),nextCursor:d.z.string().uuid().nullable()}).strict();let ex="legacy_overlay_export_repair_2026_08_09";d.z.object({incidentId:d.z.literal(ex),mode:d.z.enum(["dry_run","apply"]),projectId:d.z.string().uuid()}).strict(),d.z.object({incidentId:d.z.literal(ex),mode:d.z.enum(["dry_run","apply"]),projectId:d.z.string().uuid(),renderId:d.z.string().uuid().nullable(),jobRunId:d.z.string().uuid().nullable(),status:d.z.string().nullable()});let eI="kenu_narration_continuity_2026_08_10",ej="06d2c31e-3648-4b6a-b22e-52c87c37872f";
2d.z.object({incidentId:d.z.literal(eI),mode:d.z.enum(["dry_run","apply"]),projectId:d.z.literal(ej)}).strict(),d.z.object({incidentId:d.z.literal(eI),mode:d.z.enum(["dry_run","apply"]),projectId:d.z.literal(ej),continuityMode:d.z.literal("long_form"),totalNarratedSceneCount:d.z.number().int().nonnegative(),remainingSceneCount:d.z.number().int().nonnegative(),retiredSceneAssetCount:d.z.number().int().nonnegative(),retiredSectionAssetCount:d.z.number().int().nonnegative(),preservedVisualAssetCount:d.z.number().int().nonnegative(),alreadyApplied:d.z.boolean(),jobRunId:d.z.string().uuid().nullable(),status:d.z.string().nullable(),startError:d.z.string().nullable()}),d.z.object({parentJobId:d.z.string().min(1).max(255).optional(),sourceJobIds:d.z.array(d.z.string().min(1).max(255)).min(1).max(50).refine(e=>new Set(e).size===e.length,"Source job ids must be unique.").optional(),recoveryAttempt:d.z.number().int().min(0).max(3).optional()}).strict().superRefine((e,t)=>{e.parentJobId&&e.sourceJobIds&&t.addIssue({code:d.z.ZodIssueCode.custom,message:"Choose either a parent batch or source jobs, not both."}),e.parentJobId||e.sourceJobIds||t.addIssue({code:d.z.ZodIssueCode.custom,message:"Name the exact parent batch or source jobs to inspect."})});let ek=d.z.object({outcome:d.z.enum(["started","replayed"]),turnId:d.z.string(),projectId:d.z.string()});d.z.union([ek.extend({parentJobId:d.z.string(),childCount:d.z.number().int().positive(),sourceJobIds:d.z.never().optional()}),ek.extend({sourceJobIds:d.z.array(d.z.string()).min(1),parentJobId:d.z.never().optional(),childCount:d.z.never().optional()})]);let eS=d.z.object({parentJobId:d.z.string(),state:d.z.enum(["completed","failed"]),finishedAt:d.z.coerce.date().nullable(),createdAt:d.z.coerce.date()});d.z.object({projectId:d.z.string(),batches:d.z.array(eS)});let eT=d.z.object({jobId:d.z.string(),kind:d.z.string(),state:d.z.enum(["completed","failed"]),finishedAt:d.z.coerce.date().nullable(),createdAt:d.z.coerce.date(),hasOutputArtifact:d.z.boolean()});d.z.object({projectId:d.z.string(),jobs:d.z.array(eT)});let eA=d.z.object({reason:d.z.string().trim().min(1).max(500).optional()}),ew=d.z.object({ok:d.z.literal(!0),workflowId:d.z.string(),status:d.z.enum(["started","already_running"]),alreadyDeleted:d.z.boolean(),identity:d.z.enum(["removed","already_removed","failed"])});e.s(["CLASSIC_VISUAL_TIMEOUT_INCIDENT_ID",0,eh,"adminAdjustBalanceRequestSchema",0,eu,"adminClassicVisualTimeoutRecoveryRequestSchema",0,ef,"adminClassicVisualTimeoutRecoveryResponseSchema",0,ey,"adminCompUserRequestSchema",0,ec,"adminCompUserResponseSchema",0,em,"adminCreateBillingAssignmentRuleRequestSchema",0,ei,"adminCreateBillingOfferRequestSchema",0,ei,"adminCreateBillingOfferVersionRequestSchema",0,ei,"adminDeleteUserRequestSchema",0,eA,"adminDeleteUserResponseSchema",0,ew,"adminForceFailJobRequestSchema",0,ez,"adminListQuerySchema",0,eo,"adminOkResponseSchema",0,en,"adminPassthroughListResponseSchema",0,el,"adminPassthroughResponseSchema",0,ei,"adminPreviewBillingResolutionRequestSchema",0,ei,"adminSetBillingUserOfferAssignmentRequestSchema",0,ei,"adminSetUserRoleRequestSchema",0,ed,"adminUpdateBillingAssignmentRuleRequestSchema",0,ei,"adminUpdateBillingOfferRequestSchema",0,ei,"adminUpdateBillingOfferVersionRequestSchema",0,ei,"adminVoiceProfileRequestSchema",0,ei,"adminYoutubeLinksRequestSchema",0,ep,"adminYoutubeLinksResponseSchema",0,eb,"elevenlabsSettingsSchema",0,ei,"setAdminAppSettingsRequestSchema",0,er,"setElevenlabsSettingsRequestSchema",0,es],430124);let eC=["backoffice:users:read","backoffice:projects:read","backoffice:billing:read","backoffice:credits:grant","backoffice:credits:debit","backoffice:studio-evals:read","backoffice:studio-evals:run","backoffice:studio-evals:export","backoffice:studio-evals:export-sensitive","backoffice:skills:read","backoffice:skills:write","backoffice:prompts:read","backoffice:prompts:write"],eR=d.z.enum(eC),eP=d.z.array(d.z.string().trim().min(1).max(255)).min(1).max(100),eO=d.z.object({userIds:eP.optional(),projectIds:eP.optional()}).strict().superRefine((e,t)=>
2{for(let[n,a]of Object.entries(e))a&&new Set(a).size!==a.length&&t.addIssue({code:"custom",message:`${n} must not contain duplicates.`,path:[n]})}),eE=d.z.object({name:d.z.string().trim().min(1).max(100),scopes:d.z.array(eR).min(1).max(eC.length),expiresInDays:d.z.number().int().min(1).max(90).default(30),constraints:eO.optional()}).strict().superRefine((e,t)=>{new Set(e.scopes).size!==e.scopes.length&&t.addIssue({code:"custom",message:"Scopes must not contain duplicates.",path:["scopes"]})}),eZ=d.z.object({id:d.z.string().uuid(),ownerUserId:d.z.string(),name:d.z.string(),audience:d.z.literal("backoffice"),tokenHint:d.z.string(),scopes:d.z.array(eR),constraints:eO.nullable(),expiresAt:d.z.coerce.date(),revokedAt:d.z.coerce.date().nullable(),lastUsedAt:d.z.coerce.date().nullable(),createdAt:d.z.coerce.date()}),eN=d.z.object({token:d.z.string().startsWith("ntbo_"),accessToken:eZ}),eU=d.z.array(eZ);d.z.object({limit:d.z.coerce.number().int().min(1).max(100).default(50),cursor:d.z.string().trim().min(1).max(512).optional()}).optional().default({});let e$=d.z.object({text:d.z.string(),kind:d.z.string(),updatedAt:d.z.coerce.date(),expiresAt:d.z.coerce.date()}),eV=d.z.object({id:d.z.string(),userId:d.z.string(),title:d.z.string(),status:d.z.enum(["active","archived"]),latestTurnStatus:d.z.string().nullable(),latestTurnAt:d.z.coerce.date().nullable(),activeJobCount:d.z.number().int().nonnegative(),failedJobCount:d.z.number().int().nonnegative(),currentActivity:e$.nullable(),createdAt:d.z.coerce.date(),updatedAt:d.z.coerce.date()});d.z.object({items:d.z.array(eV),nextCursor:d.z.string().nullable()}),d.z.object({id:d.z.string(),email:d.z.string().email(),name:d.z.string().nullable(),role:d.z.enum(["user","admin"]),isActive:d.z.boolean(),createdAt:d.z.coerce.date()});let eD=d.z.object({offerId:d.z.string(),offerKey:d.z.string(),kind:d.z.string(),displayName:d.z.string(),billingInterval:d.z.enum(["monthly","annual","weekly"]).nullable()}),eL=d.z.object({status:d.z.string(),cancelAtPeriodEnd:d.z.boolean(),currentPeriodStart:d.z.coerce.date().nullable(),currentPeriodEnd:d.z.coerce.date().nullable(),currentOffer:eD.nullable(),pendingOffer:eD.nullable(),pendingChangeEffectiveAt:d.z.coerce.date().nullable()});d.z.object({userId:d.z.string(),balance:d.z.number(),subscription:eL.nullable()}),d.z.object({amount:d.z.number().positive().max(1e6),reason:d.z.string().trim().min(1).max(500),source:d.z.enum(["creator_grant","admin_adjustment"]).default("admin_adjustment")}).strict(),d.z.object({ok:d.z.literal(!0),userId:d.z.string(),balance:d.z.number()}),d.z.string().trim().min(1).max(255);let eM=d.z.string().trim().min(1).max(100).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/,"skill id must be a kebab-case slug"),eF=d.z.string().trim().min(1).max(500),eB=d.z.object({path:d.z.string(),bytes:d.z.number().int().nonnegative(),binary:d.z.boolean(),executable:d.z.boolean()}),eq=d.z.object({id:eM,description:d.z.string(),enabled:d.z.boolean(),currentVersion:d.z.number().int().positive().nullable(),versionCount:d.z.number().int().nonnegative(),publishedBy:d.z.string().nullable(),files:d.z.array(eB),updatedAt:d.z.coerce.date()});d.z.object({skills:d.z.array(eq)}),d.z.object({content:d.z.string().min(1)}).strict(),d.z.object({id:eM,version:d.z.number().int().nonnegative(),description:d.z.string(),unchanged:d.z.boolean()}),d.z.object({enabled:d.z.boolean()}).strict(),d.z.object({id:eM,enabled:d.z.boolean()}),d.z.object({path:eF}),d.z.object({id:eM,path:d.z.string(),content:d.z.string().nullable(),binary:d.z.boolean(),bytes:d.z.number().int().nonnegative(),executable:d.z.boolean(),files:d.z.array(d.z.string())}),d.z.object({path:eF,content:d.z.string(),executable:d.z.boolean().optional()}).strict(),d.z.object({id:eM,path:d.z.string(),deleted:d.z.literal(!0),version:d.z.number().int().nonnegative(),description:d.z.string(),unchanged:d.z.boolean()});let eG=d.z.string().trim().min(1).max(100).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/,"prompt name must be a kebab-case slug"),eK=d.z.string().trim().min(1).max(32).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/,"prompt label must be a kebab-case slug"),eJ=d.z.object({model:d.z.string().trim().min(1).max(200).optional()}).passthrough(),eW=d.z.object({name:eG,description:d.z.string(),enabled:d.z.boolean(),currentVersion:d.z.number().int().positive().nullable(),versionCount:d.z.number().int().nonnegative(),publishedBy:d.z.string().nullable(),bytes:d.z.number().int().nonnegative(),model:d.z.string().nullable(),labels:d.z.array(d.z.object({label:d.z.string(),version:d.z.number().int().nonnegative()}
2)),updatedAt:d.z.coerce.date()});d.z.object({prompts:d.z.array(eW)});let eH=d.z.object({versionId:d.z.string(),version:d.z.number().int().positive(),text:d.z.string(),config:eJ,publishedBy:d.z.string(),createdAt:d.z.coerce.date(),isCurrent:d.z.boolean()});d.z.object({limit:d.z.coerce.number().int().min(1).max(100).optional()}),d.z.object({name:eG,versions:d.z.array(eH)}),d.z.object({text:d.z.string().min(1),description:d.z.string().trim().max(1024).optional(),config:eJ.optional()}).strict(),d.z.object({name:eG,version:d.z.number().int().positive(),versionId:d.z.string(),unchanged:d.z.boolean()}),d.z.object({enabled:d.z.boolean()}).strict(),d.z.object({name:eG,enabled:d.z.boolean()}),d.z.object({version:d.z.number().int().positive()}).strict(),d.z.object({name:eG,version:d.z.number().int().positive(),versionId:d.z.string()}),d.z.object({label:eK,version:d.z.number().int().positive()}).strict(),d.z.object({name:eG,label:eK,version:d.z.number().int().positive(),versionId:d.z.string()}),d.z.object({name:eG,label:eK,cleared:d.z.literal(!0)}),e.s(["BACKOFFICE_SCOPES",0,eC,"adminAccessTokenSummarySchema",0,eZ,"createAdminAccessTokenRequestSchema",0,eE,"createAdminAccessTokenResponseSchema",0,eN,"listAdminAccessTokensResponseSchema",0,eU],777576);var eY=e.i(255635);let eQ=["channel_v1","channel_v2"],eX=d.z.enum(eQ),e0=d.z.object({onboardingPanelVariant:eX});e.s(["DEFAULT_ONBOARDING_PANEL_VARIANT",0,"channel_v1","ONBOARDING_PANEL_VARIANTS",0,eQ,"getOnboardingConfigResponseSchema",0,e0,"onboardingPanelVariantSchema",0,eX],592210);let e1=d.z.object({ok:d.z.literal(!0)}),e2=d.z.object({ok:d.z.literal(!0),creditsGranted:d.z.number().min(0),alreadyGranted:d.z.boolean(),isComplete:d.z.boolean()}),e5=d.z.object({emailNotifications:d.z.boolean()});d.z.object({niche:d.z.string().trim().min(1).max(120)});let e9=d.z.string().trim().min(1).max(120).refine(e=>/[\p{L}\p{N}]/u.test(e),{message:"Channel name must include at least one letter or number"}),e4=d.z.object({channelName:e9,defaultVoice:d.z.string().trim().min(1).max(120).optional(),defaultStyle:d.z.string().trim().min(1).max(500).optional(),language:d.z.string().trim().min(1).max(20).optional()}),e6=d.z.object({ok:d.z.literal(!0),channelId:d.z.string().nullable()});d.z.object({channelName:e9});let e3=d.z.object({language:y}),e8=d.z.object({defaultVoice:d.z.string().nullable()}),e7=d.z.object({defaultStyle:d.z.string().max(500).nullable()}),te=d.z.object({niche:d.z.string().max(200).nullable()}),tt=d.z.object({emailNotifications:d.z.boolean()});var tn=e.i(247167),ta=e.i(190218);let ti=d.z.enum(["side_income","existing_channel","automation_test","agency_clients","exploring"]),tr=d.z.enum(["500","2000","10000","50000","unsure"]),ts=d.z.enum(["horror_analog","personal_finance","business_scandals","tech_deals","true_crime","ai_tools","science_nature","military_war","travel_architecture","self_improvement","spirituality_religion","history_explainers","geography","recommendations","gaming_lets_play"]),to=d.z.enum(["one_test","weekly","multi_weekly","daily_shorts","system_decides"]),tl=d.z.enum(["best_shot","balanced","cheap_test"]),td=d.z.enum(["studio","pro","growth","starter","weekly_warmup"]),tu=d.z.enum(["desktop","mobile","tablet"]),tc=d.z.enum(["started","result_viewed","checkout_started","purchased","main_offer_rejected","downsell_viewed","downsell_rejected","secret_offer_viewed","secret_offer_rejected","abandoned"]),tm=tc.exclude(["checkout_started","purchased"]),tp=d.z.object({intent:ti.optional(),monthlyRevenueGoal:tr.optional(),topicPreference:ts.optional(),postingCommitment:to.optional(),budgetMode:tl.optional()}).strict(),tg=d.z.object({landingVariant:d.z.string().max(120).optional(),utmSource:d.z.string().max(120).optional(),utmMedium:d.z.string().max(120).optional(),utmCampaign:d.z.string().max(120).optional(),utmContent:d.z.string().max(120).optional(),utmTerm:d.z.string().max(120).optional(),gclid:d.z.string().max(500).optional(),fbclid:d.z.string().max(500).optional(),referrer:d.z.string().max(500).optional(),timezone:d.z.string().max(120).optional(),countryCode:d.z.string().length(2).regex(/^[a-z]{2}$/i).optional(),locale:d.z.string().max(35).optional(),languages:d.z.array(d.z.string().max(35)).max(10).optional(),deviceType:tu.optional(),deviceModel:d.z.string().max(120).optional(),osName:d.z.string().max(60).optional(),osVersion:d.z.string().max(80).optional(),browserName:d.z.string().max(60).optional(),browserVersion:d.z.string().max(120).optional(),platform:d.z.string().max(120).optional(),ar
2chitecture:d.z.string().max(40).optional(),bitness:d.z.string().max(20).optional(),deviceMemory:d.z.number().positive().max(1024).optional(),hardwareConcurrency:d.z.number().int().positive().max(512).optional(),maxTouchPoints:d.z.number().int().min(0).max(50).optional()}).strict(),tb=d.z.object({offerType:td,offerKey:d.z.string().min(1),score:d.z.number(),explanation:d.z.string().min(1),estimatedUpsideCopy:d.z.string().min(1),initialOfferCap:d.z.string().min(1).optional(),downsellOfferType:td.optional(),downsellOfferKey:d.z.string().min(1).optional(),secretOfferType:td.optional(),secretOfferKey:d.z.string().min(1).optional()}),tz=d.z.object({key:d.z.string().min(1).max(120),variant:d.z.string().min(1).max(120),source:d.z.string().max(120).nullable().optional()}).strict(),th=d.z.object({unitAmountCents:d.z.number().int().nonnegative(),interval:d.z.enum(["day","week","month","year"]),productName:d.z.string().min(1).max(500),productDescription:d.z.string().min(1).max(1e3)}).strict(),tf=d.z.object({v:d.z.literal(1),offerId:d.z.string().max(120).nullable().optional(),offerVersionId:d.z.string().max(120).nullable().optional(),offerKey:d.z.string().min(1).max(500),offerKind:d.z.enum(["subscription","topup"]),offerType:d.z.string().max(120).nullable().optional(),source:d.z.enum(["main","downsell","secret","unknown"]).optional(),billingInterval:d.z.enum(["monthly","annual","weekly"]).nullable().optional(),displayName:d.z.string().max(500).nullable().optional(),priceCents:d.z.number().int().nonnegative().nullable().optional(),currency:d.z.string().max(10).nullable().optional(),includedMinutes:d.z.number().nonnegative().nullable().optional(),couponId:d.z.string().max(500).nullable().optional(),promotionCodeId:d.z.string().max(500).nullable().optional(),discountSource:d.z.string().max(120).nullable().optional(),discountPercent:d.z.number().min(0).max(100).nullable().optional(),discountTier:d.z.string().max(120).nullable().optional(),introType:d.z.string().max(120).nullable().optional(),renewalPolicy:d.z.string().max(120).nullable().optional(),renewalTargetOfferId:d.z.string().max(120).nullable().optional(),stripeRecurringPriceId:d.z.string().max(500).nullable().optional(),stripeOneTimePriceId:d.z.string().max(500).nullable().optional(),checkoutLineItemOverride:th.nullable().optional(),reacquirePolicy:d.z.string().max(120).nullable().optional(),assignmentSource:d.z.string().max(120).nullable().optional(),checkoutSessionId:d.z.string().max(500).nullable().optional(),experiments:d.z.array(tz).max(12).optional(),createdAt:d.z.string().min(1),expiresAt:d.z.string().min(1)}).strict(),ty=d.z.object({sessionId:d.z.string().uuid(),answers:tp,recommendation:tb.nullable(),status:tc,selectedOfferKey:d.z.string().nullable(),checkoutOfferSnapshot:tf.nullable().default(null)}),tv=d.z.object({resumeSessionId:d.z.string().uuid().optional(),source:tg.optional()}).optional(),t_=d.z.object({sessionId:d.z.string().uuid(),answers:tp});t_.omit({sessionId:!0});let tx=d.z.object({ok:d.z.literal(!0),answers:tp}),tI=d.z.object({sessionId:d.z.string().uuid(),answers:tp.optional()});tI.omit({sessionId:!0});let tj=d.z.object({recommendation:tb}),tk=d.z.object({sessionId:d.z.string().uuid(),status:tm,selectedOfferKey:d.z.string().max(120).optional()});function tS(e,t){return tn.default.env[e]?.trim()||t}tk.omit({sessionId:!0}),ty.nullable(),ta.SUBSCRIPTION_PLANS.studio.name,ta.SUBSCRIPTION_PLANS.pro.name,ta.SUBSCRIPTION_PLANS.growth.name,ta.SUBSCRIPTION_PLANS.starter.name,tS("NEXT_PUBLIC_ONBOARDING_STUDIO_OFFER_KEY","studio"),tS("NEXT_PUBLIC_ONBOARDING_PRO_OFFER_KEY","pro"),tS("NEXT_PUBLIC_ONBOARDING_GROWTH_OFFER_KEY","growth"),tS("NEXT_PUBLIC_ONBOARDING_STARTER_OFFER_KEY","starter"),tS("NEXT_PUBLIC_ONBOARDING_WEEKLY_WARMUP_OFFER_KEY","weekly-warmup"),tS("NEXT_PUBLIC_ONBOARDING_WEEKLY_WARMUP_SECRET_OFFER_KEY","weekly-warmup-warmup6"),e.s([],660444),e.i(660444),(n=r||(r={})).assertEqual=e=>{},n.assertIs=function(e){},n.assertNever=function(e){throw Error()},n.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},n.getValidEnumValues=e=>{let t=n.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),a={};for(let n of t)a[n]=e[n];return n.objectValues(a)},n.objectValues=e=>n.objectKeys(e).map(function(t){return e[t]}),n.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];
2for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},n.find=(e,t)=>{for(let n of e)if(t(n))return n},n.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,n.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},n.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(s||(s={})).mergeShapes=(e,t)=>({...e,...t});let tT=r.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),tA=e=>{switch(typeof e){case"undefined":return tT.undefined;case"string":return tT.string;case"number":return Number.isNaN(e)?tT.nan:tT.number;case"boolean":return tT.boolean;case"function":return tT.function;case"bigint":return tT.bigint;case"symbol":return tT.symbol;case"object":if(Array.isArray(e))return tT.array;if(null===e)return tT.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return tT.promise;if("u">typeof Map&&e instanceof Map)return tT.map;if("u">typeof Set&&e instanceof Set)return tT.set;if("u">typeof Date&&e instanceof Date)return tT.date;return tT.object;default:return tT.unknown}};e.s(["ZodParsedType",0,tT,"getParsedType",0,tA,"objectUtil",0,s,"util",0,r],917852);
2let tw=r.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),tC=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class tR extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},n={_errors:[]},a=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(a);else if("invalid_return_type"===i.code)a(i.returnTypeError);else if("invalid_arguments"===i.code)a(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,a=0;for(;a<i.path.length;){let n=i.path[a];a===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],a++}}};return a(this),n}static assert(e){if(!(e instanceof tR))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,r.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},n=[];for(let a of this.issues)if(a.path.length>0){let n=a.path[0];t[n]=t[n]||[],t[n].push(e(a))}else n.push(e(a));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}tR.create=e=>new tR(e),e.s(["ZodError",0,tR,"ZodIssueCode",0,tw,"quotelessJson",0,tC],659550);let tP=(e,t)=>{let n;switch(e.code){case tw.invalid_type:n=e.received===tT.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case tw.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,r.jsonStringifyReplacer)}`;break;case tw.unrecognized_keys:n=`Unrecognized key(s) in object: ${r.joinValues(e.keys,", ")}`;break;case tw.invalid_union:n="Invalid input";break;case tw.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${r.joinValues(e.options)}`;break;case tw.invalid_enum_value:n=`Invalid enum value. Expected ${r.joinValues(e.options)}, received '${e.received}'`;break;case tw.invalid_arguments:n="Invalid function arguments";break;case tw.invalid_return_type:n="Invalid function return type";break;case tw.invalid_date:n="Invalid date";break;case tw.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:r.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case tw.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case tw.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case tw.custom:n="Invalid input";break;case tw.invalid_intersection_types:n="Intersection results could not be merged";break;case tw.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case tw.not_finite:n="Number must be finite";break;default:n=t.defaultError,r.assertNever(e)}return{message:n}},tO=tP;function tE(e){tO=e}function tZ(){return tO}e.s(["getErrorMap",0,tZ,"setErrorMap",0,tE],991556),e.i(991556),e.s(["defaultErrorMap",0,tP,"getErrorMap",0,tZ,"setErrorMap",0,tE],867822),e.i(867822);let tN=e=>{let{data:t,path:n,errorMaps:a,issueData:i}=e,r=[...n,...i.path||[]],s={...i,path:r};if(void 0!==i.message)return{...i,path:r,message:i.message};let o="";for(let e of a.filter(e=>!!e).slice().reverse())o=e(s,{data:t,defaultError:o}).message;return{...i,path:r,message:o}},tU=[];function t$(e,t){let n=tZ(),a=tN({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===tP?void 0:tP].filter(e=>!!e)});e.common.issues.push(a)}class tV{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let a of t){if("aborted"===a.status)return tD;"dirty"===a.status&&e.dirty(),n.push(a.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let e of t){let t=await e.key,a=await e.value;n.push({key:t,value:a})}return tV.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let a of t){let{key:t,value:i}=a;if("aborted"===t.status||"aborted"===i.status)return tD;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||a.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}}let tD=Object.freeze({status:"aborted"}),tL=e=>({status:"dirty",value:e}),tM=e=>
2({status:"valid",value:e}),tF=e=>"aborted"===e.status,tB=e=>"dirty"===e.status,tq=e=>"valid"===e.status,tG=e=>"u">typeof Promise&&e instanceof Promise;e.s(["DIRTY",0,tL,"EMPTY_PATH",0,tU,"INVALID",0,tD,"OK",0,tM,"ParseStatus",0,tV,"addIssueToContext",0,t$,"isAborted",0,tF,"isAsync",0,tG,"isDirty",0,tB,"isValid",0,tq,"makeIssue",0,tN],607638),e.i(607638),e.s([],573738),e.i(573738),e.i(917852),(a=o||(o={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},a.toString=e=>"string"==typeof e?e:e?.message;class tK{constructor(e,t,n,a){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let tJ=(e,t)=>{if(tq(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new tR(e.common.issues);return this._error=t,this._error}}};function tW(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:a,description:i}=e;if(t&&(n||a))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:r}=e;return"invalid_enum_value"===t.code?{message:r??i.defaultError}:void 0===i.data?{message:r??a??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:r??n??i.defaultError}},description:i}}class tH{get description(){return this._def.description}_getType(e){return tA(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:tA(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new tV,ctx:{common:e.parent.common,data:e.data,parsedType:tA(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(tG(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){let n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:tA(e)},a=this._parseSync({data:e,path:n.path,parent:n});return tJ(n,a)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:tA(e)};if(!this["~standard"].async)try{let n=this._parseSync({data:e,path:[],parent:t});return tq(n)?{value:n.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>tq(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:tA(e)},a=this._parse({data:e,path:n.path,parent:n});return tJ(n,await (tG(a)?a:Promise.resolve(a)))}refine(e,t){return this._refinement((n,a)=>{let i=e(n),r=()=>a.addIssue({code:tw.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(n):t});return"u">typeof Promise&&i instanceof Promise?i.then(e=>!!e||(r(),!1)):!!i||(r(),!1)})}refinement(e,t){return this._refinement((n,a)=>!!e(n)||(a.addIssue("function"==typeof t?t(n,a):t),!1))}_refinement(e){return new nE({schema:this,typeName:l.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return nZ.create(this,this._def)}nullable(){return nN.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return nh.create(this)}promise(){return nO.create(this,this._def)}or(e){return ny.create([this,e],this._def)}and(e){return nx.create(this,e,this._def)}transform(e){return new nE({...tW(this._def),schema:this,typeName:l.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new nU({...tW(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:l.ZodDefault})}brand(){return new nL({typeName:l.ZodBranded,type:this,...tW(this._def)})}catch(e){return new n$({...tW(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:l.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return nM.create(this,e)}readonly(){return nF.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let tY=/^c[^\s-]{8,}
vendor: 25,580 bytes, line 2
2$/i,tQ=/^[0-9a-z]+$/,tX=/^[0-9A-HJKMNP-TV-Z]{26}$/i,t0=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,t1=/^[a-z0-9_-]{21}$/i,t2=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,t5=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,t9=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,t4=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,t6=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,t3=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,t8=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,t7=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ne=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nt="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",nn=RegExp(`^${nt}$`);function na(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function ni(e){let t=`${nt}T${na(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,RegExp(`^${t}$`)}class nr extends tH{_parse(e){var n,a,i,s;let o;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==tT.string){let t=this._getOrReturnCtx(e);return t$(t,{code:tw.invalid_type,expected:tT.string,received:t.parsedType}),tD}let l=new tV;for(let d of this._def.checks)if("min"===d.kind)e.data.length<d.value&&(t$(o=this._getOrReturnCtx(e,o),{code:tw.too_small,minimum:d.value,type:"string",inclusive:!0,exact:!1,message:d.message}),l.dirty());else if("max"===d.kind)e.data.length>d.value&&(t$(o=this._getOrReturnCtx(e,o),{code:tw.too_big,maximum:d.value,type:"string",inclusive:!0,exact:!1,message:d.message}),l.dirty());else if("length"===d.kind){let t=e.data.length>d.value,n=e.data.length<d.value;(t||n)&&(o=this._getOrReturnCtx(e,o),t?t$(o,{code:tw.too_big,maximum:d.value,type:"string",inclusive:!0,exact:!0,message:d.message}):n&&t$(o,{code:tw.too_small,minimum:d.value,type:"string",inclusive:!0,exact:!0,message:d.message}),l.dirty())}else if("email"===d.kind)t9.test(e.data)||(t$(o=this._getOrReturnCtx(e,o),{validation:"email",code:tw.invalid_string,message:d.message}),l.dirty());else if("emoji"===d.kind)t||(t=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),t.test(e.data)||(t$(o=this._getOrReturnCtx(e,o),{validation:"emoji",code:tw.invalid_string,message:d.message}),l.dirty());else if("uuid"===d.kind)t0.test(e.data)||(t$(o=this._getOrReturnCtx(e,o),{validation:"uuid",code:tw.invalid_string,message:d.message}),l.dirty());else if("nanoid"===d.kind)t1.test(e.data)||(t$(o=this._getOrReturnCtx(e,o),{validation:"nanoid",code:tw.invalid_string,message:d.message}),l.dirty());else if("cuid"===d.kind)tY.test(e.data)||(t$(o=this._getOrReturnCtx(e,o),{validation:"cuid",code:tw.invalid_string,message:d.message}),l.dirty());else if("cuid2"===d.kind)tQ.test(e.data)||(t$(o=this._getOrReturnCtx(e,o),{validation:"cuid2",code:tw.invalid_string,message:d.message}),l.dirty());else if("ulid"===d.kind)tX.test(e.data)||(t$(o=this._getOrReturnCtx(e,o),{validation:"ulid",code:tw.invalid_string,message:d.message}),l.dirty());else if("url"===d.kind)try{new URL(e.data)}catch{t$(o=this._getOrReturnCtx(e,o),{validation:"url",code:tw.invalid_string,message:d.message}),l.dirty()}else"regex"===d.kind?(d.regex.lastIndex=0,d.regex.test(e.data)||(t$(o=this._getOrReturnCtx(e,o),{validation:"regex",code:tw.invalid_string,message:d.message}),l.dirty())):"trim"===d.kind?e.data=e.data.trim():"includes"===d.kind?e.data.includes(d.value,d.position)||(t$(o=this._getOrReturnCtx(e,o),{code:tw.invalid_string,validation:{includes:d.value,position:d.position},message:d.message}),l.dirty()):"toLowerCase"===d.kind?e.data=e.data.toLowerCase():"toUpperCase"===d.kind?e.data=e.data.toUpperCase():"startsWith"===d.kind?e.data.startsWith(d.value)||(t$(o=this._getOrReturnCtx(e,o),{code:tw.invalid_string,validation:{startsWith:d.value},message:d.message}),l.dirty()):"endsWith"===d.kind?e.data.endsWith(d.value)||(t$(o=this._getOrReturnCtx(e,o),{code:tw.invalid_string,validation:{endsWith:d.value},message:d.message}),l.dirty()):"datetime"===d.kind?ni(d).test(e.data)||(t$(o=this._getOrReturnCtx(e,o),{code:tw.invalid_string,validation:"datetime",message:d.message}),l.dirty()):"date"===d.kind?nn.test(e.data)||(t$(o=this._getOrReturnCtx(e,o),{code:tw.invalid_string,validation:"date",message:d.message}),l.dirty()):"time"===d.kind?RegExp(`^${na(d)}$`).test(e.data)||(t$(o=this._getOrReturnCtx(e,o),{code:tw.invalid_string,validation:"time",message:d.message}),l.dirty()):"duration"===d.kind?t5.test(e.data)||(t$(o=this._getOrReturnCtx(e,o),{validation:"duration",code:tw.invalid_string,message:d.message}),l.dirty()):"ip"===d.kind?(n=e.data,!(("v4"===(a=d.version)||!a)&&t4.test(n)||("v6"===a||!a)&&t3.test(n))&&1&&(t$(o=this._getOrReturnCtx(e,o),{validation:"ip",code:tw.invalid_string,message:d.message}),l.dirty())):"jwt"===d.kind?!function(e,t){if(!t2.test(e))return!1;try{let[n]=e.split(".");if(!n)return!1;let a=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(a));if("object"!=typeof i||null===i||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)return!1;return!0}catch{return!1}}(e.data,d.alg)&&(t$(o=this._getOrReturnCtx(e,o),{validation:"jwt",code:tw.invalid_string,message:d.message}),l.dirty()):"cidr"===d.kind?(i=e.data,!(("v4"===(s=d.version)||!s)&&t6.test(i)||("v6"===s||!s)&&t8.test(i))&&1&&(t$(o=this._getOrReturnCtx(e,o),{validation:"cidr",code:tw.invalid_string,message:d.message}),l.dirty())):"base64"===d.kind?t7.test(e.data)||(t$(o=this._getOrReturnCtx(e,o),{validation:"base64",code:tw.invalid_string,message:d.message}),l.dirty()):"base64url"===d.kind?ne.test(e.data)||(t$(o=this._getOrReturnCtx(e,o),{validation:"base64url",code:tw.invalid_string,message:d.message}),l.dirty()):r.assertNever(d);return{status:l.value,value:e.data}}_regex(e,t,n){return this.refinement(t=>e.test(t),{validation:t,code:tw.invalid_string,...o.errToObj(n)})}_addCheck(e){return new nr({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...o.errToObj(e)})}url(e){return this._addCheck({kind:"url",...o.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...o.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...o.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...o.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...o.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...o.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...o.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...o.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...o.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...o.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...o.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...o.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...o.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...o.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...o.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...o.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...o.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...o.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...o.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...o.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...o.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...o.errToObj(t)})}nonempty(e){return this.min(1,o.errToObj(e))}trim(){return new nr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new nr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new nr({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}nr.create=e=>new nr({checks:[],typeName:l.ZodString,coerce:e?.coerce??!1,...tW(e)});class ns extends tH{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==tT.number){let t=this._getOrReturnCtx(e);return t$(t,{code:tw.invalid_type,expected:tT.number,received:t.parsedType}),tD}let n=new tV;for(let a of this._def.checks)"int"===a.kind?r.isInteger(e.data)||(t$(t=this._getOrReturnCtx(e,t),{code:tw.invalid_type,expected:"integer",received:"float",message:a.message}),n.dirty()):"min"===a.kind?(a.inclusive?e.data<a.value:e.data<=a.value)&&(t$(t=this._getOrReturnCtx(e,t),{code:tw.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),n.dirty()):"max"===a.kind?(a.inclusive?e.data>a.value:e.data>=a.value)&&(t$(t=this._getOrReturnCtx(e,t),{code:tw.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),n.dirty()):"multipleOf"===a.kind?0!==function(e,t){let n=(e.toString().split(".")[1]||"").length,a=(t.toString().split(".")[1]||"").length,i=n>a?n:a;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}(e.data,a.value)&&(t$(t=this._getOrReturnCtx(e,t),{code:tw.not_multiple_of,multipleOf:a.value,message:a.message}),n.dirty()):"finite"===a.kind?Number.isFinite(e.data)||(t$(t=this._getOrReturnCtx(e,t),{code:tw.not_finite,message:a.message}),n.dirty()):r.assertNever(a);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,o.toString(t))}gt(e,t){return this.setLimit("min",e,!1,o.toString(t))}lte(e,t){return this.setLimit("max",e,!0,o.toString(t))}lt(e,t){return this.setLimit("max",e,!1,o.toString(t))}setLimit(e,t,n,a){return new ns({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:o.toString(a)}]})}_addCheck(e){return new ns({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:o.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:o.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:o.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:o.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:o.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:o.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:o.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:o.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:o.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&r.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks)if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;else"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value);return Number.isFinite(t)&&Number.isFinite(e)}}ns.create=e=>new ns({checks:[],typeName:l.ZodNumber,coerce:e?.coerce||!1,...tW(e)});class no extends tH{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==tT.bigint)return this._getInvalidInput(e);let n=new tV;for(let a of this._def.checks)"min"===a.kind?(a.inclusive?e.data<a.value:e.data<=a.value)&&(t$(t=this._getOrReturnCtx(e,t),{code:tw.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),n.dirty()):"max"===a.kind?(a.inclusive?e.data>a.value:e.data>=a.value)&&(t$(t=this._getOrReturnCtx(e,t),{code:tw.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),n.dirty()):"multipleOf"===a.kind?e.data%a.value!==BigInt(0)&&(t$(t=this._getOrReturnCtx(e,t),{code:tw.not_multiple_of,multipleOf:a.value,message:a.message}),n.dirty()):r.assertNever(a);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return t$(t,{code:tw.invalid_type,expected:tT.bigint,received:t.parsedType}),tD}gte(e,t){return this.setLimit("min",e,!0,o.toString(t))}gt(e,t){return this.setLimit("min",e,!1,o.toString(t))}lte(e,t){return this.setLimit("max",e,!0,o.toString(t))}lt(e,t){return this.setLimit("max",e,!1,o.toString(t))}setLimit(e,t,n,a){return new no({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:o.toString(a)}]})}_addCheck(e){return new no({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:o.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:o.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:o.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:o.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:o.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}no.create=e=>new no({checks:[],typeName:l.ZodBigInt,coerce:e?.coerce??!1,...tW(e)});class nl extends tH{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==tT.boolean){let t=this._getOrReturnCtx(e);return t$(t,{code:tw.invalid_type,expected:tT.boolean,received:t.parsedType}),tD}return tM(e.data)}}nl.create=e=>new nl({typeName:l.ZodBoolean,coerce:e?.coerce||!1,...tW(e)});class nd extends tH{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==tT.date){let t=this._getOrReturnCtx(e);return t$(t,{code:tw.invalid_type,expected:tT.date,received:t.parsedType}),tD}if(Number.isNaN(e.data.getTime()))return t$(this._getOrReturnCtx(e),{code:tw.invalid_date}),tD;let n=new tV;for(let a of this._def.checks)"min"===a.kind?e.data.getTime()<a.value&&(t$(t=this._getOrReturnCtx(e,t),{code:tw.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),n.dirty()):"max"===a.kind?e.data.getTime()>a.value&&(t$(t=this._getOrReturnCtx(e,t),{code:tw.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),n.dirty()):r.assertNever(a);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new nd({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:o.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:o.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}nd.create=e=>new nd({checks:[],coerce:e?.coerce||!1,typeName:l.ZodDate,...tW(e)});class nu extends tH{_parse(e){if(this._getType(e)!==tT.symbol){let t=this._getOrReturnCtx(e);return t$(t,{code:tw.invalid_type,expected:tT.symbol,received:t.parsedType}),tD}return tM(e.data)}}nu.create=e=>new nu({typeName:l.ZodSymbol,...tW(e)});class nc extends tH{_parse(e){if(this._getType(e)!==tT.undefined){let t=this._getOrReturnCtx(e);return t$(t,{code:tw.invalid_type,expected:tT.undefined,received:t.parsedType}),tD}return tM(e.data)}}nc.create=e=>new nc({typeName:l.ZodUndefined,...tW(e)});class nm extends tH{_parse(e){if(this._getType(e)!==tT.null){let t=this._getOrReturnCtx(e);return t$(t,{code:tw.invalid_type,expected:tT.null,received:t.parsedType}),tD}return tM(e.data)}}nm.create=e=>new nm({typeName:l.ZodNull,...tW(e)});class np extends tH{constructor(){super(...arguments),this._any=!0}_parse(e){return tM(e.data)}}np.create=e=>new np({typeName:l.ZodAny,...tW(e)});class ng extends tH{constructor(){super(...arguments),this._unknown=!0}_parse(e){return tM(e.data)}}ng.create=e=>new ng({typeName:l.ZodUnknown,...tW(e)});class nb extends tH{_parse(e){let t=this._getOrReturnCtx(e);return t$(t,{code:tw.invalid_type,expected:tT.never,received:t.parsedType}),tD}}nb.create=e=>new nb({typeName:l.ZodNever,...tW(e)});class nz extends tH{_parse(e){if(this._getType(e)!==tT.undefined){let t=this._getOrReturnCtx(e);return t$(t,{code:tw.invalid_type,expected:tT.void,received:t.parsedType}),tD}return tM(e.data)}}nz.create=e=>new nz({typeName:l.ZodVoid,...tW(e)});class nh extends tH{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),a=this._def;if(t.parsedType!==tT.array)return t$(t,{code:tw.invalid_type,expected:tT.array,received:t.parsedType}),tD;if(null!==a.exactLength){let e=t.data.length>a.exactLength.value,i=t.data.length<a.exactLength.value;(e||i)&&(t$(t,{code:e?tw.too_big:tw.too_small,minimum:i?a.exactLength.value:void 0,maximum:e?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),n.dirty())}if(null!==a.minLength&&t.data.length<a.minLength.value&&(t$(t,{code:tw.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),n.dirty()),null!==a.maxLength&&t.data.length>a.maxLength.value&&(t$(t,{code:tw.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>a.type._parseAsync(new tK(t,e,t.path,n)))).then(e=>tV.mergeArray(n,e));let i=[...t.data].map((e,n)=>a.type._parseSync(new tK(t,e,t.path,n)));return tV.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new nh({...this._def,minLength:{value:e,message:o.toString(t)}})}max(e,t){return new nh({...this._def,maxLength:{value:e,message:o.toString(t)}})}length(e,t){return new nh({...this._def,exactLength:{value:e,message:o.toString(t)}})}nonempty(e){return this.min(1,e)}}nh.create=(e,t)=>new nh({type:e,minLength:null,maxLength:null,exactLength:null,typeName:l.ZodArray,...tW(t)});class nf extends tH{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=r.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==tT.object){let t=this._getOrReturnCtx(e);return t$(t,{code:tw.invalid_type,expected:tT.object,received:t.parsedType}),tD}let{status:t,ctx:n}=this._processInputParams(e),{shape:a,keys:i}=this._getCached(),r=[];if(!(this._def.catchall instanceof nb&&"strip"===this._def.unknownKeys))for(let e in n.data)i.includes(e)||r.push(e);let s=[];for(let e of i){let t=a[e],i=n.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new tK(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof nb){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of r)s.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)r.length>0&&(t$(n,{code:tw.unrecognized_keys,keys:r}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of r){let a=n.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new tK(n,a,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of s){let n=await t.key,a=await t.value;e.push({key:n,value:a,alwaysSet:t.alwaysSet})}return e}).then(e=>tV.mergeObjectSync(t,e)):tV.mergeObjectSync(t,s)}get shape(){return this._def.shape()}strict(e){return o.errToObj,new nf({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{let a=this._def.errorMap?.(t,n).message??n.defaultError;return"unrecognized_keys"===t.code?{message:o.errToObj(e).message??a}:{message:a}}}:{}})}strip(){return new nf({...this._def,unknownKeys:"strip"})}passthrough(){return new nf({...this._def,unknownKeys:"passthrough"})}extend(e){return new nf({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new nf({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:l.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new nf({...this._def,catchall:e})}pick(e){let t={};for(let n of r.objectKeys(e))e[n]&&this.shape[n]&&(t[n]=this.shape[n]);return new nf({...this._def,shape:()=>t})}omit(e){let t={};for(let n of r.objectKeys(this.shape))e[n]||(t[n]=this.shape[n]);return new nf({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof nf){let n={};for(let a in t.shape){let i=t.shape[a];n[a]=nZ.create(e(i))}return new nf({...t._def,shape:()=>n})}if(t instanceof nh)return new nh({...t._def,type:e(t.element)});if(t instanceof nZ)return nZ.create(e(t.unwrap()));if(t instanceof nN)return nN.create(e(t.unwrap()));if(t instanceof nI)return nI.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let n of r.objectKeys(this.shape)){let a=this.shape[n];e&&!e[n]?t[n]=a:t[n]=a.optional()}return new nf({...this._def,shape:()=>t})}required(e){let t={};for(let n of r.objectKeys(this.shape))if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof nZ;)e=e._def.innerType;t[n]=e}return new nf({...this._def,shape:()=>t})}keyof(){return nC(r.objectKeys(this.shape))}}nf.create=(e,t)=>new nf({shape:()=>e,unknownKeys:"strip",catchall:nb.create(),typeName:l.ZodObject,...tW(t)}),nf.strictCreate=(e,t)=>new nf({shape:()=>e,unknownKeys:"strict",catchall:nb.create(),typeName:l.ZodObject,...tW(t)}),nf.lazycreate=(e,t)=>new nf({shape:e,unknownKeys:"strip",catchall:nb.create(),typeName:l.ZodObject,...tW(t)});
2class ny extends tH{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new tR(e.ctx.common.issues));return t$(t,{code:tw.invalid_union,unionErrors:n}),tD});{let e,a=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},r=i._parseSync({data:t.data,path:t.path,parent:n});if("valid"===r.status)return r;"dirty"!==r.status||e||(e={result:r,ctx:n}),n.common.issues.length&&a.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=a.map(e=>new tR(e));return t$(t,{code:tw.invalid_union,unionErrors:i}),tD}}get options(){return this._def.options}}ny.create=(e,t)=>new ny({options:e,typeName:l.ZodUnion,...tW(t)});let nv=e=>{if(e instanceof nA)return nv(e.schema);if(e instanceof nE)return nv(e.innerType());if(e instanceof nw)return[e.value];if(e instanceof nR)return e.options;if(e instanceof nP)return r.objectValues(e.enum);else if(e instanceof nU)return nv(e._def.innerType);else if(e instanceof nc)return[void 0];else if(e instanceof nm)return[null];else if(e instanceof nZ)return[void 0,...nv(e.unwrap())];else if(e instanceof nN)return[null,...nv(e.unwrap())];else if(e instanceof nL)return nv(e.unwrap());else if(e instanceof nF)return nv(e.unwrap());else if(e instanceof n$)return nv(e._def.innerType);else return[]};class n_ extends tH{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==tT.object)return t$(t,{code:tw.invalid_type,expected:tT.object,received:t.parsedType}),tD;let n=this.discriminator,a=t.data[n],i=this.optionsMap.get(a);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(t$(t,{code:tw.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),tD)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let a=new Map;for(let n of t){let t=nv(n.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(a.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);a.set(i,n)}}return new n_({typeName:l.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:a,...tW(n)})}}class nx extends tH{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),a=(e,a)=>{if(tF(e)||tF(a))return tD;let i=function e(t,n){let a=tA(t),i=tA(n);if(t===n)return{valid:!0,data:t};if(a===tT.object&&i===tT.object){let a=r.objectKeys(n),i=r.objectKeys(t).filter(e=>-1!==a.indexOf(e)),s={...t,...n};for(let a of i){let i=e(t[a],n[a]);if(!i.valid)return{valid:!1};s[a]=i.data}return{valid:!0,data:s}}if(a===tT.array&&i===tT.array){if(t.length!==n.length)return{valid:!1};let a=[];for(let i=0;i<t.length;i++){let r=e(t[i],n[i]);if(!r.valid)return{valid:!1};a.push(r.data)}return{valid:!0,data:a}}if(a===tT.date&&i===tT.date&&+t==+n)return{valid:!0,data:t};return{valid:!1}}(e.value,a.value);return i.valid?((tB(e)||tB(a))&&t.dirty(),{status:t.value,value:i.data}):(t$(n,{code:tw.invalid_intersection_types}),tD)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>a(e,t)):a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}nx.create=(e,t,n)=>new nx({left:e,right:t,typeName:l.ZodIntersection,...tW(n)});class nI extends tH{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==tT.array)return t$(n,{code:tw.invalid_type,expected:tT.array,received:n.parsedType}),tD;if(n.data.length<this._def.items.length)return t$(n,{code:tw.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),tD;!this._def.rest&&n.data.length>this._def.items.length&&(t$(n,{code:tw.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let a=[...n.data].map((e,t)=>{let a=this._def.items[t]||this._def.rest;return a?a._parse(new tK(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(a).then(e=>tV.mergeArray(t,e)):tV.mergeArray(t,a)}get items(){return this._def.items}rest(e){return new nI({...this._def,rest:e})}}nI.create=(e,t)=>
2{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new nI({items:e,typeName:l.ZodTuple,rest:null,...tW(t)})};class nj extends tH{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==tT.object)return t$(n,{code:tw.invalid_type,expected:tT.object,received:n.parsedType}),tD;let a=[],i=this._def.keyType,r=this._def.valueType;for(let e in n.data)a.push({key:i._parse(new tK(n,e,n.path,e)),value:r._parse(new tK(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?tV.mergeObjectAsync(t,a):tV.mergeObjectSync(t,a)}get element(){return this._def.valueType}static create(e,t,n){return new nj(t instanceof tH?{keyType:e,valueType:t,typeName:l.ZodRecord,...tW(n)}:{keyType:nr.create(),valueType:e,typeName:l.ZodRecord,...tW(t)})}}class nk extends tH{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==tT.map)return t$(n,{code:tw.invalid_type,expected:tT.map,received:n.parsedType}),tD;let a=this._def.keyType,i=this._def.valueType,r=[...n.data.entries()].map(([e,t],r)=>({key:a._parse(new tK(n,e,n.path,[r,"key"])),value:i._parse(new tK(n,t,n.path,[r,"value"]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of r){let a=await n.key,i=await n.value;if("aborted"===a.status||"aborted"===i.status)return tD;("dirty"===a.status||"dirty"===i.status)&&t.dirty(),e.set(a.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of r){let a=n.key,i=n.value;if("aborted"===a.status||"aborted"===i.status)return tD;("dirty"===a.status||"dirty"===i.status)&&t.dirty(),e.set(a.value,i.value)}return{status:t.value,value:e}}}}nk.create=(e,t,n)=>new nk({valueType:t,keyType:e,typeName:l.ZodMap,...tW(n)});class nS extends tH{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==tT.set)return t$(n,{code:tw.invalid_type,expected:tT.set,received:n.parsedType}),tD;let a=this._def;null!==a.minSize&&n.data.size<a.minSize.value&&(t$(n,{code:tw.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),t.dirty()),null!==a.maxSize&&n.data.size>a.maxSize.value&&(t$(n,{code:tw.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),t.dirty());let i=this._def.valueType;function r(e){let n=new Set;for(let a of e){if("aborted"===a.status)return tD;"dirty"===a.status&&t.dirty(),n.add(a.value)}return{status:t.value,value:n}}let s=[...n.data.values()].map((e,t)=>i._parse(new tK(n,e,n.path,t)));return n.common.async?Promise.all(s).then(e=>r(e)):r(s)}min(e,t){return new nS({...this._def,minSize:{value:e,message:o.toString(t)}})}max(e,t){return new nS({...this._def,maxSize:{value:e,message:o.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}nS.create=(e,t)=>new nS({valueType:e,minSize:null,maxSize:null,typeName:l.ZodSet,...tW(t)});class nT extends tH{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==tT.function)return t$(t,{code:tw.invalid_type,expected:tT.function,received:t.parsedType}),tD;function n(e,n){return tN({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,tZ(),tP].filter(e=>!!e),issueData:{code:tw.invalid_arguments,argumentsError:n}})}function a(e,n){return tN({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,tZ(),tP].filter(e=>!!e),issueData:{code:tw.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},r=t.data;if(this._def.returns instanceof nO){let e=this;return tM(async function(...t){let s=new tR([]),o=await e._def.args.parseAsync(t,i).catch(e=>{throw s.addIssue(n(t,e)),s}),l=await Reflect.apply(r,this,o);return await e._def.returns._def.type.parseAsync(l,i).catch(e=>{throw s.addIssue(a(l,e)),s})})}{let e=this;return tM(function(...t){let s=e._def.args.safeParse(t,i);if(!s.success)throw new tR([n(t,s.error)]);let o=Reflect.apply(r,this,s.data),l=e._def.returns.safeParse(o,i);if(!l.success)throw new tR([a(o,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new nT({...this._def,args:nI.create(e).rest(ng.create())})}returns(e){return new nT({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new nT({args:e||nI.create([]).rest(ng.create()),returns:t||ng.create(),typeName:l.ZodFunction,...tW(n)})}}class nA extends tH{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}nA.create=(e,t)=>
2new nA({getter:e,typeName:l.ZodLazy,...tW(t)});class nw extends tH{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return t$(t,{received:t.data,code:tw.invalid_literal,expected:this._def.value}),tD}return{status:"valid",value:e.data}}get value(){return this._def.value}}function nC(e,t){return new nR({values:e,typeName:l.ZodEnum,...tW(t)})}nw.create=(e,t)=>new nw({value:e,typeName:l.ZodLiteral,...tW(t)});class nR extends tH{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),n=this._def.values;return t$(t,{expected:r.joinValues(n),received:t.parsedType,code:tw.invalid_type}),tD}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return t$(t,{received:t.data,code:tw.invalid_enum_value,options:n}),tD}return tM(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return nR.create(e,{...this._def,...t})}exclude(e,t=this._def){return nR.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}nR.create=nC;class nP extends tH{_parse(e){let t=r.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==tT.string&&n.parsedType!==tT.number){let e=r.objectValues(t);return t$(n,{expected:r.joinValues(e),received:n.parsedType,code:tw.invalid_type}),tD}if(this._cache||(this._cache=new Set(r.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=r.objectValues(t);return t$(n,{received:n.data,code:tw.invalid_enum_value,options:e}),tD}return tM(e.data)}get enum(){return this._def.values}}nP.create=(e,t)=>new nP({values:e,typeName:l.ZodNativeEnum,...tW(t)});class nO extends tH{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==tT.promise&&!1===t.common.async?(t$(t,{code:tw.invalid_type,expected:tT.promise,received:t.parsedType}),tD):tM((t.parsedType===tT.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}nO.create=(e,t)=>new nO({type:e,typeName:l.ZodPromise,...tW(t)});class nE extends tH{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===l.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),a=this._def.effect||null,i={addIssue:e=>{t$(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===a.type){let e=a.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return tD;let a=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===a.status?tD:"dirty"===a.status||"dirty"===t.value?tL(a.value):a});{if("aborted"===t.value)return tD;let a=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===a.status?tD:"dirty"===a.status||"dirty"===t.value?tL(a.value):a}}if("refinement"===a.type){let e=e=>{let t=a.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?tD:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))));{let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===a.status?tD:("dirty"===a.status&&t.dirty(),e(a.value),{status:t.value,value:a.value})}}if("transform"===a.type)if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>tq(e)?Promise.resolve(a.transform(e.value,i)).then(e=>({status:t.value,value:e})):tD);else{let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!tq(e))return tD;let r=a.transform(e.value,i);if(r instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:r}}r.assertNever(a)}}
2nE.create=(e,t,n)=>new nE({schema:e,typeName:l.ZodEffects,effect:t,...tW(n)}),nE.createWithPreprocess=(e,t,n)=>new nE({schema:t,effect:{type:"preprocess",transform:e},typeName:l.ZodEffects,...tW(n)});class nZ extends tH{_parse(e){return this._getType(e)===tT.undefined?tM(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}nZ.create=(e,t)=>new nZ({innerType:e,typeName:l.ZodOptional,...tW(t)});class nN extends tH{_parse(e){return this._getType(e)===tT.null?tM(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}nN.create=(e,t)=>new nN({innerType:e,typeName:l.ZodNullable,...tW(t)});class nU extends tH{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===tT.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}nU.create=(e,t)=>new nU({innerType:e,typeName:l.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...tW(t)});class n$ extends tH{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},a=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return tG(a)?a.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new tR(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===a.status?a.value:this._def.catchValue({get error(){return new tR(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}n$.create=(e,t)=>new n$({innerType:e,typeName:l.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...tW(t)});class nV extends tH{_parse(e){if(this._getType(e)!==tT.nan){let t=this._getOrReturnCtx(e);return t$(t,{code:tw.invalid_type,expected:tT.nan,received:t.parsedType}),tD}return{status:"valid",value:e.data}}}nV.create=e=>new nV({typeName:l.ZodNaN,...tW(e)});let nD=Symbol("zod_brand");class nL extends tH{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class nM extends tH{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?tD:"dirty"===e.status?(t.dirty(),tL(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?tD:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new nM({in:e,out:t,typeName:l.ZodPipeline})}}class nF extends tH{_parse(e){let t=this._def.innerType._parse(e),n=e=>(tq(e)&&(e.value=Object.freeze(e.value)),e);return tG(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}}function nB(e,t){let n="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof n?{message:n}:n}function nq(e,t={},n){return e?np.create().superRefine((a,i)=>{let r=e(a);if(r instanceof Promise)return r.then(e=>{if(!e){let e=nB(t,a),r=e.fatal??n??!0;i.addIssue({code:"custom",...e,fatal:r})}});if(!r){let e=nB(t,a),r=e.fatal??n??!0;i.addIssue({code:"custom",...e,fatal:r})}}):np.create()}nF.create=(e,t)=>new nF({innerType:e,typeName:l.ZodReadonly,...tW(t)});let nG={object:nf.lazycreate};(i=l||(l={})).ZodString="ZodString",i.ZodNumber="ZodNumber",i.ZodNaN="ZodNaN",i.ZodBigInt="ZodBigInt",i.ZodBoolean="ZodBoolean",i.ZodDate="ZodDate",i.ZodSymbol="ZodSymbol",i.ZodUndefined="ZodUndefined",i.ZodNull="ZodNull",i.ZodAny="ZodAny",i.ZodUnknown="ZodUnknown",i.ZodNever="ZodNever",i.ZodVoid="ZodVoid",i.ZodArray="ZodArray",i.ZodObject="ZodObject",i.ZodUnion="ZodUnion",i.ZodDiscriminatedUnion="ZodDiscriminatedUnion",i.ZodIntersection="ZodIntersection",i.ZodTuple="ZodTuple",i.ZodRecord="ZodRecord",i.ZodMap="ZodMap",i.ZodSet="ZodSet",i.ZodFunction="ZodFunction",i.ZodLazy="ZodLazy",i.ZodLiteral="ZodLiteral",i.ZodEnum="ZodEnum",i.ZodEffects="ZodEffects",i.ZodNativeEnum="ZodNativeEnum",i.ZodOptional="ZodOptional",i.ZodNullable="ZodNullable",i.ZodDefault="ZodDefault",i.ZodCatch="ZodCatch",i.ZodPromise="ZodPromise",i.ZodBranded="ZodBranded",i.ZodPipeline="ZodPipeline",i.ZodReadonly="ZodReadonly";let nK=(e,t={message:`Input not instance of ${e.name}`})=>nq(t=>t instanceof e,t),nJ=nr.create,nW=ns.create,nH=nV.create,nY=no.create,nQ=nl.create,nX=nd.create,n0=nu.create,n1=nc.create,n2=nm.create,n5=np.create,n9=ng.create,n4=nb.create,n6=nz.create,n3=nh.create,n8=nf.create,n7=nf.strictCreate,ae=ny.create,at=n_.create,an=nx.create,aa=nI.create,ai=nj.create,ar=nk.create,as=nS.create,ao=nT.create,al=nA.create,ad=nw.create,au=nR.create,ac=nP.create,am=nO.create,ap=nE.create,ag=nZ.create,ab=nN.create,az=nE.createWithPreprocess,ah=nM.create,af=()=>nJ().optional(),ay=()=>nW().optional(),av=()=>nQ().optional(),a_={string:e=>nr.create({...e,coerce:!0}),number:e=>ns.create({...e,coerce:!0}),boolean:e=>nl.create({...e,coerce:!0}),bigint:e=>no.create({...e,coerce:!0}),date:e=>nd.create({...e,coerce:!0})};e.s(["BRAND",0,nD,"NEVER",0,tD,"Schema",0,tH,"ZodAny",0,np,"ZodArray",0,nh,"ZodBigInt",0,no,"ZodBoolean",0,nl,"ZodBranded",0,nL,"ZodCatch",0,n$,"ZodDate",0,nd,"ZodDefault",0,nU,"ZodDiscriminatedUnion",0,n_,"ZodEffects",0,nE,"ZodEnum",0,nR,"ZodFirstPartyTypeKind",0,l,"ZodFunction",0,nT,"ZodIntersection",0,nx,"ZodLazy",0,nA,"ZodLiteral",0,nw,"ZodMap",0,nk,"ZodNaN",0,nV,"ZodNativeEnum",0,nP,"ZodNever",0,nb,"ZodNull",0,nm,"ZodNullable",0,nN,"ZodNumber",0,ns,"ZodObject",0,nf,"ZodOptional",0,nZ,"ZodPipeline",0,nM,"ZodPromise",0,nO,"ZodReadonly",0,nF,"ZodRecord",0,nj,"ZodSchema",0,tH,"ZodSet",0,nS,"ZodString",0,nr,"ZodSymbol",0,nu,"ZodTransformer",0,nE,"ZodTuple",0,nI,"ZodType",0,tH,"ZodUndefined",0,nc,"ZodUnion",0,ny,"ZodUnknown",0,ng,"ZodVoid",0,nz,"any",0,n5,"array",0,n3,"bigint",0,nY,"boolean",0,nQ,"coerce",0,a_,"custom",0,nq,"date",0,nX,"datetimeRegex",0,ni,"discriminatedUnion",0,at,"effect",0,ap,"enum",0,au,"function",0,ao,"instanceof",0,nK,"intersection",0,an,"late",0,nG,"lazy",0,al,"literal",0,ad,"map",0,ar,"nan",0,nH,"nativeEnum",0,ac,"never",0,n4,"null",0,n2,"nullable",0,ab,"number",0,nW,"object",0,n8,"oboolean",0,av,"onumber",0,ay,"optional",0,ag,"ostring",0,af,"pipeline",0,ah,"preprocess",0,az,"promise",0,am,"record",0,ai,"set",0,as,"strictObject",0,n7,"string",0,nJ,"symbol",0,n0,"transformer",0,ap,"tuple",0,aa,"undefined",0,n1,"union",0,ae,"unknown",0,n9,"void",0,n6],981936),e.i(981936),e.i(659550),e.s(["BRAND",0,nD,"DIRTY",0,tL,"EMPTY_PATH",0,tU,"INVALID",0,tD,"NEVER",0,tD,"OK",0,tM,"ParseStatus",0,tV,"Schema",0,tH,"ZodAny",0,np,"ZodArray",0,nh,"ZodBigInt",0,no,"ZodBoolean",0,nl,"ZodBranded",0,nL,"ZodCatch",0,n$,"ZodDate",0,nd,"ZodDefault",0,nU,"ZodDiscriminatedUnion",0,n_,"ZodEffects",0,nE,"ZodEnum",0,nR,"ZodError",0,tR,"ZodFirstPartyTypeKind",0,l,"ZodFunction",0,nT,"ZodIntersection",0,nx,"ZodIssueCode",0,tw,"ZodLazy",0,nA,"ZodLiteral",0,nw,"ZodMap",0,nk,"ZodNaN",0,nV,"ZodNativeEnum",0,nP,"ZodNever",0,nb,"ZodNull",0,nm,"ZodNullable",0,nN,"ZodNumber",0,ns,"ZodObject",0,nf,"ZodOptional",0,nZ,"ZodParsedType",0,tT,"ZodPipeline",0,nM,"ZodPromise",0,nO,"ZodReadonly",0,nF,"ZodRecord",0,nj,"ZodSchema",0,tH,"ZodSet",0,nS,"ZodString",0,nr,"ZodSymbol",0,nu,"ZodTransformer",0,nE,"ZodTuple",0,nI,"ZodType",0,tH,"ZodUndefined",0,nc,"ZodUnion",0,ny,"ZodUnknown",0,ng,"ZodVoid",0,nz,"addIssueToContext",0,t$,"any",0,n5,"array",0,n3,"bigint",0,nY,"boolean",0,nQ,"coerce",0,a_,"custom",0,nq,"date",0,nX,"datetimeRegex",0,ni,"defaultErrorMap",0,tP,"discriminatedUnion",0,at,"effect",0,ap,"enum",0,au,"function",0,ao,"getErrorMap",0,tZ,"getParsedType",0,tA,"instanceof",0,nK,"intersection",0,an,"isAborted",0,tF,"isAsync",0,tG,"isDirty",0,tB,"isValid",0,tq,"late",0,nG,"lazy",0,al,"literal",0,ad,"makeIssue",0,tN,"map",0,ar,"nan",0,nH,"nativeEnum",0,ac,"never",0,n4,"null",0,n2,"nullable",0,ab,"number",0,nW,"object",0,n8,"objectUtil",0,s,"oboolean",0,av,"onumber",0,ay,"optional",0,ag,"ostring",0,af,"pipeline",0,ah,"preprocess",0,az,"promise",0,am,"quotelessJson",0,tC,"record",0,ai,"set",0,as,"setErrorMap",0,tE,"strictObject",0,n7,"string",0,nJ,"symbol",0,n0,"transformer",0,ap,"tuple",0,aa,"undefined",0,n1,"union",0,ae,"unknown",0,n9,"util",0,r,"void",0,n6],171635);var ax=e.i(171635);e.s(["z",0,ax],588590);var ax=ax;let aI=ax.enum(["bottom","middle","top"]),aj=ax.enum(["left","center","right"]),ak=ax.object({fontFamily:ax.string().min(1).max(120),fontSize:ax.number().int().min(12).max(96),color:ax.string().regex(/^#[0-9A-Fa-f]{6}$/),outlineColor:ax.string().regex(/^#[0-9A-Fa-f]{6}$/),outlineWidth:ax.number().int().min(0).max(12),shadow:ax.number().int().min(0).max(8),position:aI,align:aj,verticalMargin:ax.number().int().min(0).max(240)});function aS(e){return ak.parse(e)}e.s(["DEFAULT_PRODUCTION_SUBTITLES_VISIBLE",0,!1,"DEFAULT_PRODUCTION_SUBTITLE_STYLE",0,{fontFamily:"Arial",fontSize:44,color:"#FFFFFF",outlineColor:"#000000",outlineWidth:3,shadow:2,position:"bottom",align:"center",verticalMargin:56},"normalizeProductionSubtitleStyle",0,aS,"productionSubtitleStyleSchema",0,ak,"stripNarrationCuesForSubtitles",0,function(e){return e.replace(/\[[^\]\n]{1,40}\]/g,"").replace(/\s+/g," ").trim()}],702547);
2let aT=d.z.enum(["16:9","9:16","1:1","4:5"]),aA=d.z.enum(["short","long"]),aw=d.z.enum(["cheap","balanced","premium"]),aC=d.z.object({musicBed:d.z.object({enabled:d.z.boolean().optional().default(!1),mood:d.z.enum(["calm","upbeat","dramatic","warm","neutral"]).optional().default("neutral"),levelDb:d.z.number().min(-30).max(-12).optional().default(-20)}).optional().default({}),keepClipAudio:d.z.object({enabled:d.z.boolean().optional().default(!1),levelDb:d.z.number().min(-30).max(-10).optional().default(-18)}).optional().default({})}),aR=d.z.object({configured:d.z.boolean(),label:d.z.string().nullable().optional()}),aP=d.z.object({productionStatus:d.z.string().nullable().default(null),languageCode:d.z.string().nullable().default(null),videoFormat:d.z.string().nullable().default(null),aspectRatio:d.z.string().nullable().default(null),narratorVoice:aR.optional(),subtitleStyle:ak.optional(),subtitlesVisible:d.z.boolean().optional(),audioSettings:aC.optional()}),aO=d.z.object({topic:d.z.string(),targetAudience:d.z.str
2ing().nullable().optional(),corePromise:d.z.string().nullable().optional(),format:aA,targetDurationSec:d.z.number(),tone:d.z.string().nullable().optional(),styleNotes:d.z.string().nullable().optional(),mustCoverJson:d.z.array(d.z.string()).nullable().optional(),avoidJson:d.z.array(d.z.string()).nullable().optional(),costPreference:aw}),aE=d.z.object({text:d.z.string(),why_it_works:d.z.string().optional(),hookPattern:d.z.string().optional(),visualDirection:d.z.string().optional(),scrollStopPower:d.z.number().optional(),curiosityGap:d.z.number().optional(),specificity:d.z.number().optional(),emotionalTrigger:d.z.number().optional(),visualCompatibility:d.z.number().optional(),nicheFit:d.z.number().optional(),overall:d.z.number().optional()}),aZ=d.z.object({thesis:d.z.string().optional(),viewerPayoff:d.z.string().optional()}),aN=d.z.object({id:d.z.string(),status:d.z.string(),titleOptionsJson:d.z.array(d.z.string()),hookOptionsJson:d.z.array(aE),selectedAngle:aZ.default({}),selectedTitle:d.z.string().nullable().default(null),selectedHook:d.z.string().nullable().default(null)}),aU=d.z.object({id:d.z.string(),title:d.z.string(),goal:d.z.string().nullable().default(null),keyQuestionAnswered:d.z.string().nullable().optional(),targetDurationSec:d.z.number().nullable().default(null),orderIndex:d.z.number().default(0),status:d.z.string().optional()}),a$=d.z.object({narrationText:d.z.string(),estimatedDurationSec:d.z.number().nullable().default(null),versionNumber:d.z.number().default(0)}),aV=d.z.object({id:d.z.string(),sectionId:d.z.string().nullable().default(null),orderIndex:d.z.number(),sceneType:d.z.string().optional(),narrationText:d.z.string(),mainIdea:d.z.string().nullable().optional(),visualGoal:d.z.string().nullable().optional(),targetDurationSec:d.z.number().nullable().default(null),actualDurationSec:d.z.number().nullable().optional(),status:d.z.string().default(""),visualStrategy:d.z.string().nullable().default(null),visualPrompt:d.z.string().nullable().default(null),searchQuery:d.z.string().nullable().default(null),overlayText:d.z.string().nullable().default(null)}),aD=d.z.object({recommendedAssetStrategy:d.z.string(),reason:d.z.string().nullable().optional(),primaryPrompt:d.z.string().nullable().default(null),searchQuery:d.z.string().nullable().default(null),cameraMotion:d.z.string().nullable().optional(),aspectRatioNotes:d.z.string().nullable().optional(),estimatedCostTier:d.z.string().nullable().default(null),status:d.z.string()}),aL=d.z.object({sceneId:d.z.string(),sceneOrder:d.z.number().int(),continuityAnchors:d.z.string(),subjectIdentity:d.z.string().nullable(),settingContinuity:d.z.string().nullable(),motionRequirements:d.z.string().nullable(),documentTextGuard:d.z.string().nullable(),sceneWindowContext:d.z.string(),standalonePromptRequirements:d.z.string()}),aM=d.z.object({videoStyle:d.z.string(),recurringSubject:d.z.string(),recurringObjectPlace:d.z.string().nullable(),documentTextRisk:d.z.string().nullable(),scenes:d.z.array(aL)}),aF=d.z.object({audioMenuEnabled:d.z.boolean().optional().default(!1),visualRegenerationsUncapped:d.z.boolean().optional().default(!1),project:aP.nullable().optional(),brief:aO.nullable().optional(),concepts:d.z.array(aN).optional(),sections:d.z.array(aU).optional(),scriptsBySection:d.z.record(d.z.array(a$)).optional(),scenes:d.z.array(aV).optional(),plansByScene:d.z.record(d.z.array(aD)).optional(),visualContinuity:aM.nullable().optional(),step:d.z.number().int().min(1),resumePath:d.z.string()}),aB=d.z.enum(["draft","in_progress","ready","published","archived","failed"]),aq=d.z.enum(["draft","concept_ready","sections_ready","script_ready","scenes_ready","asset_plan_ready","assets_generating","preview_ready","final_ready","exported","failed"]),aG=d.z.object({channelId:d.z.string().uuid().nullable().optional()}).optional().default({}),aK=d.z.object({projectId:d.z.string().uuid()}
2),aJ=d.z.enum(["not_started","waiting","generating","switching_service","delayed","needs_action","complete"]),aW=d.z.union([d.z.string().regex(/^\d+ of \d+ scenes are rendered\. \d+ scenes are not queued yet and nothing is running\. Render the remaining scenes to continue\.$/),d.z.string().regex(/^Your work is saved and \d+ scenes are queued for a generation slot\. No action is needed\.$/),d.z.literal("We're creating your scenes now. You can safely leave this page."),d.z.literal("One generation service was slow, so we switched automatically. No action is needed."),d.z.literal("Generation is taking longer than expected. Your work is safe, and we are continuing in the background. You will not be charged for scenes that fail."),d.z.literal("Some scenes need your attention. Completed work is safe, and failed scenes were not charged. Review the affected scenes to edit or retry them."),d.z.literal("All scenes are ready.")]),aH=d.z.object({projectId:d.z.string().uuid(),state:aJ,total:d.z.number().int().nonnegative(),ready:d.z.number().int().nonnegative(),notStarted:d.z.number().int().nonnegative(),waiting:d.z.number().int().nonnegative(),delayedRetry:d.z.number().int().nonnegative(),generating:d.z.number().int().nonnegative(),needsAction:d.z.number().int().nonnegative(),autoRenderStopped:d.z.object({reason:d.z.literal("insufficient_tokens"),scenes:d.z.number().int().nonnegative()}).nullable().default(null),etaSeconds:d.z.object({min:d.z.number().int().nonnegative(),max:d.z.number().int().nonnegative()}).nullable(),customerMessage:aW,lastProgressAt:d.z.string().nullable(),snapshotRevision:d.z.string().regex(/^\d+$/)}),aY=aH.extend({etaSeconds:d.z.object({min:d.z.number().int().nonnegative(),max:d.z.number().int().nonnegative()}).strict().nullable()}).strict(),aQ=d.z.object({id:d.z.string().uuid(),userId:d.z.string(),channelId:d.z.string().uuid().nullable(),title:d.z.string().nullable(),topic:d.z.string(),status:aB,languageCode:d.z.string(),aspectRatio:aT,targetDurationSec:d.z.number().int(),productionStatus:aq.nullable(),videoFormat:aA.nullable(),tone:d.z.string().nullable(),costProfile:aw.nullable(),stylePresetId:d.z.string().uuid().nullable(),voiceProfileId:d.z.string().uuid().nullable(),currentConceptId:d.z.string().uuid().nullable(),currentSectionPlanVersion:d.z.number().int().nullable(),currentRenderId:d.z.string().uuid().nullable(),currentTimelineVersionId:d.z.string().uuid().nullable(),completedAt:d.z.coerce.date().nullable().default(null),postedYoutubeUrl:d.z.string().nullable().default(null),youtubePromptSkipped:d.z.boolean().default(!1),metadata:d.z.record(d.z.unknown()),createdAt:d.z.coerce.date(),updatedAt:d.z.coerce.date()}),aX=d.z.object({id:d.z.string(),assetType:d.z.enum(["thumbnail","video","image"]),playbackUrl:d.z.string().nullable(),mimeType:d.z.string().nullable(),width:d.z.number().int().nullable(),height:d.z.number().int().nullable(),durationMs:d.z.number().int().nullable()}),a0=aQ.extend({previewAsset:aX.nullable(),hasRenderedVideo:d.z.boolean(),activeJobCount:d.z.number().int().nonnegative().default(0),dashboardPath:d.z.string(),generationProgress:aH}),a1=d.z.array(a0),a2=d.z.object({id:d.z.string().uuid(),status:aB,productionStatus:aq.nullable(),updatedAt:d.z.coerce.date(),dashboardPath:d.z.string(),hasRenderedVideo:d.z.boolean(),activeJobCount:d.z.number().int().nonnegative(),generationProgress:aH}),a5=d.z.array(a2);a0.extend({previewAsset:aX.strict().nullable(),generationProgress:aY}).strict(),a2.extend({generationProgress:aY}).strict();let a9=d.z.object({projectId:d.z.string().uuid(),effectiveMaxReachedStep:d.z.number().int().min(1),firstIncompleteStep:d.z.number().int().min(1),allComplete:d.z.boolean(),resumePath:d.z.string(),stepComplete:d.z.array(d.z.boolean())}),a4=d.z.object({limit:d.z.coerce.number().int().min(1).max(100).optional()}).optional().default({}),a6=d.z.enum(["brief","script","beats","storyboard","image","video","audio","captions","qc","rough_cut"]),a3=d.z.enum(["queued","running","succeeded","failed","cancelled"]);d.z.object({id:d.z.string().uuid(),projectId:d.z.string().uuid(),targetType:d.z.string(),targetId:d.z.string().uuid().nullable(),runType:a6,provider:d.z.string(),model:d.z.string(),status:a3,promptText:d.z.string().nullable(),inputPayload:d.z.record(d.z.unknown()),outputPayload:d.z.record(d.z.unknown()),params:d.z.record(d.z.unknown()),providerJobId:d.z.string().nullable(),costUsd:d.z.union([d.z.string(),d.z.number()]).nullable(),latencyMs:d.z.number().int().nullable(),errorMessage:d.z.string().nullable(),createdAt:d.z.coerce.date(),startedAt:
2d.z.coerce.date().nullable(),completedAt:d.z.coerce.date().nullable()});let a8=d.z.object({id:d.z.string().uuid(),projectId:d.z.string().uuid(),targetType:d.z.string(),targetId:d.z.string().uuid().nullable(),runType:a6,status:a3,customerMessage:d.z.string().nullable(),latencyMs:d.z.number().int().nullable(),createdAt:d.z.string(),startedAt:d.z.string().nullable(),completedAt:d.z.string().nullable()}),a7=d.z.enum(["render","generate-concepts","generate-section-plan","generate-section-script","generate-script-draft","split-section-scenes","generate-preview-plan","generate-visual-continuity-context","generate-scene-asset-plan","run-section-workflow","run-full-production-chain","generate-scene-audio","generate-scene-visual","production-preview-timeline","production-export"]),ie=d.z.enum(["pending","queued","running","succeeded","failed","cancelled"]),it=d.z.enum(["generation_delayed","change_request","try_again"]);d.z.object({id:d.z.string().uuid(),projectId:d.z.string().uuid(),operation:a7,status:ie,queueJobId:d.z.string().nullable(),payload:d.z.record(d.z.unknown()),errorMessage:d.z.string().nullable(),customerIssueCode:it.nullable().optional(),createdAt:d.z.coerce.date(),startedAt:d.z.coerce.date().nullable(),completedAt:d.z.coerce.date().nullable()});let ia=d.z.object({id:d.z.string().uuid(),projectId:d.z.string().uuid(),operation:a7,status:ie,sceneId:d.z.string().uuid().nullable(),sectionId:d.z.string().uuid().nullable().default(null),customerIssueCode:it.nullable().optional(),errorMessage:d.z.string().nullable(),createdAt:d.z.coerce.date(),startedAt:d.z.coerce.date().nullable(),completedAt:d.z.coerce.date().nullable()}),ii=d.z.array(a8),ir=d.z.array(ia),is=d.z.string().trim().min(3).max(500),io={title:200,languageCode:16,tone:200,targetAudience:500,corePromise:1e3,styleNotes:2e3,briefListItem:500,briefListItems:50},il=d.z.object({topic:is,title:d.z.string().max(io.title).optional(),channelId:d.z.string().uuid().nullable().optional(),languageCode:d.z.string().min(2).max(io.languageCode).optional(),videoFormat:aA.default("short"),aspectRatio:aT.optional(),targetDurationSec:d.z.number().int().positive().max(7200).optional(),tone:d.z.string().max(io.tone).optional(),costProfile:aw.optional(),targetAudience:d.z.string().max(io.targetAudience).optional(),corePromise:d.z.string().max(io.corePromise).optional(),styleNotes:d.z.string().max(io.styleNotes).optional(),stylePresetId:d.z.string().trim().max(120).optional(),styleLabel:d.z.string().trim().max(200).optional(),mustCover:d.z.array(d.z.string().max(io.briefListItem)).max(io.briefListItems).optional(),avoid:d.z.array(d.z.string().max(io.briefListItem)).max(io.briefListItems).optional(),voiceId:d.z.string().trim().min(1).max(128).optional(),voiceLabel:d.z.string().trim().max(200).optional(),initializeBrief:d.z.boolean().optional()}),id=d.z.object({id:d.z.string().uuid(),timelineVersionId:d.z.string().uuid(),dashboardPath:d.z.string()}),iu=d.z.object({title:d.z.string().max(200).optional(),topic:is.optional(),targetDurationSec:d.z.number().int().min(15).max(7200).optional()}),ic=d.z.object({projectId:d.z.string().uuid(),url:d.z.string().trim().min(1).max(500).regex(/^https?:\/\/(www\.|m\.)?(youtube\.com\/(watch\?v=|shorts\/)[\w-]+|youtu\.be\/[\w-]+)/i,{message:"Enter a valid YouTube URL (youtube.com/watch, youtu.be, or /shorts)."})}),im=d.z.enum(["approved","pending_review"]),ip=d.z.object({granted:d.z.boolean(),balance:d.z.number(),bonusMinutes:d.z.number().int().positive(),status:im,reviewReason:d.z.string().nullable()}),ig=ei.extend({version:ei.extend({totalDurationMs:d.z.number().int().nullable().optional()}).optional()}).nullable();d.z.object({name:d.z.string().max(200).nullable().optional()}),d.z.object({timelineVersionId:d.z.string().uuid()}),d.z.object({trackId:d.z.string().uuid(),clipType:d.z.enum(["asset","text","caption","color","nested_timeline"]),startMs:d.z.number().int().min(0),durationMs:d.z.number().int().positive(),assetId:d.z.string().uuid().nullable().optional(),textContent:d.z.string().max(2e4).nullable().optional()}),d.z.object({clip:ei});let ib=ei.extend({id:d.z.string(),assetType:d.z.string(),metadata:d.z.record(d.z.unknown()),durationMs:d.z.number().int().nullable().optional()}),iz=d.z.array(ib),ih=d.z.object({assetIds:d.z.array(d.z.string().uuid()).max(200),download:d.z.boolean().optional()}),iy=d.z.record(d.z.string(),d.z.string().nullable());
2d.z.object({assetType:d.z.enum(["video","image","audio","music","voiceover","sfx","caption_file","transcript","thumbnail","document"]),sourceType:d.z.enum(["upload","imported"]),storageUri:d.z.string().min(1).max(2e3),mimeType:d.z.string().max(200).nullable().optional(),durationMs:d.z.number().int().positive().nullable().optional(),width:d.z.number().int().positive().nullable().optional(),height:d.z.number().int().positive().nullable().optional(),originalFilename:d.z.string().max(500).nullable().optional(),objectKey:d.z.string().max(2e3).nullable().optional(),bucket:d.z.string().max(200).nullable().optional(),metadata:d.z.record(d.z.string(),d.z.unknown()).nullable().optional()}),d.z.object({asset:ib}),d.z.object({runType:a6,provider:d.z.string().min(1).max(64),model:d.z.string().min(1).max(128),targetType:d.z.string().min(1).max(64),targetId:d.z.string().uuid().nullable().optional()}),d.z.object({runId:d.z.string().uuid()});let iv=d.z.object({voiceId:d.z.string().trim().min(1).max(128),label:d.z.string().max(200).optional()}),i_=d.z.object({operation:d.z.string().min(1).max(64),payload:d.z.record(d.z.string(),d.z.unknown()).optional()}),ix=d.z.object({jobRunId:d.z.string().uuid(),status:d.z.string()});d.z.object({jobRunId:d.z.string().uuid()}),e.s(["CREATE_VIDEO_PROJECT_FIELD_LIMITS",0,io,"assetPlaybackUrlsRequestSchema",0,ih,"assetPlaybackUrlsResponseSchema",0,iy,"createVideoProjectRequestSchema",0,il,"createVideoProjectResponseSchema",0,id,"dashboardVideoListRequestSchema",0,aG,"dashboardVideoListResponseSchema",0,a1,"dashboardVideoStatusesResponseSchema",0,a5,"enqueueVideoJobRequestSchema",0,i_,"enqueueVideoJobResponseSchema",0,ix,"generationRunsRequestSchema",0,a4,"setVideoWorkflowVoiceRequestSchema",0,iv,"skipYoutubePromptRequestSchema",0,aK,"submitYoutubeLinkRequestSchema",0,ic,"submitYoutubeLinkResponseSchema",0,ip,"timelineDetailSchema",0,ig,"updateVideoProjectMetaRequestSchema",0,iu,"videoAssetListResponseSchema",0,iz,"videoGenerationProgressSchema",0,aH,"videoGenerationRunsResponseSchema",0,ii,"videoJobRunsResponseSchema",0,ir,"videoMutationOkResponseSchema",0,en,"videoProductionPipelineStateSchema",0,aF,"videoProjectIdRequestSchema",0,aK,"videoWorkflowStateSchema",0,a9],91580);let iI=d.z.enum(["stock_video","generated_video","generated_image_with_motion","infographic","map_graphic","chart_graphic","typography_only","mixed_sequence"]),ij=d.z.enum(["generated_video","generated_image_with_motion"]),ik=ei.extend({id:d.z.string(),assetType:d.z.string(),sourceType:d.z.string(),createdAt:d.z.coerce.date(),playbackUrl:d.z.string().nullable().default(null),durationMs:d.z.number().nullable().default(null),width:d.z.number().nullable().default(null),height:d.z.number().nullable().default(null)}),iS=ik.extend({narrationWordCues:d.z.array(d.z.object({text:d.z.string(),startSec:d.z.number(),endSec:d.z.number()})).nullable().default(null)}),iT=d.z.object({free:d.z.literal(!0),limits:d.z.array(d.z.object({maxRequests:d.z.number().int().positive(),windowSeconds:d.z.number().int().positive()})).min(1)}),iA=ei.extend({scene:aV.extend({visualStrategy:d.z.string().nullable(),visualPrompt:d.z.string().nullable()}),hasPriorVisual:d.z.boolean().default(!1),generationCredits:d.z.number().nonnegative().optional(),visualAsset:ik.nullable(),audioAsset:iS.nullable()}),iw=d.z.object({rows:d.z.array(iA),freeSceneRegenerationPolicy:iT.optional()}),iC=d.z.object({topic:d.z.string().trim().min(3).max(500),targetAudience:d.z.string().max(500).optional(),corePromise:d.z.string().max(1e3).optional(),format:aA,targetDurationSec:d.z.number().int().min(15).max(7200),tone:d.z.string().trim().max(200).optional(),styleNotes:d.z.string().max(2e3).optional(),mustCover:d.z.array(d.z.string().max(500)).max(50).default([]),avoid:d.z.array(d.z.string().max(500)).max(50).default([]),costPreference:aw}),iR=d.z.object({}).optional().default({}),iP=d.z.object({selectedTitle:d.z.string().min(1).max(300),selectedHook:d.z.string().min(1).max(2e3)}),iO=d.z.object({targetSectionCount:d.z.number().int().min(1).max(50).optional()}),iE=d.z.object({title:d.z.string().min(1).max(500).optional(),goal:d.z.string().max(2e3).nullable().optional(),keyQuestionAnswered:d.z.string().max(2e3).nullable().optional(),targetDurationSec:d.z.number().int().positive().max(3600).optional()}),iZ=d.z.object({narrationText:d.z.string().min(1).max(1e5)}),iN=d.z.object({maxSceneDurationSec:d.z.number().int().min(1).max(60).optional()}),iU=d.z.object({narrationText:d.z.string().max(1e5).optional(),mainIdea:d.z.string().max(2e3).nullable().optional(),visualGoal:d.z.string().max(2e3).nullable().optional(),visualPrompt:d.z.string().max(5e3).nullable().optional(),visualStrategy:iI.optional(),searchQuery:d.z.string().max(500).nullable().optional(),overlayText:d.z.string().max(500).nullable().optional(),targetDurationSec:d.z.number().int().positive().max(600).nullable().optional()}),i$=d.z.object({visualPrompt:d.z.string().max(2e4),visualStrategy:ij,targetDurationSec:d.z.number().int().positive().max(600).nullable().optional()});d.z.object({voiceId:d.z.string().min(1).max(128).optional()});let iV=d.z.object({recommendedAssetStrategy:iI.optional(),primaryPrompt:d.z.string().max(5e3).nullable().optional(),searchQuery:d.z.string().max(500).nullable().optional()}),iD=d.z.object({autoGenerateAssets:d.z.boolean().optional(),autoGenerateSceneLimit:d.z.number().int().min(1).max(100).optional()});d.z.object({sceneId:d.z.string().uuid()}),d.z.object({sceneIds:d.z.array(d.z.string().uuid()).min(1).max(200).optional(),forceRegenerate:d.z.boolean().optional(),visualOnly:d.z.boolean().optional()}).optional().default({});let iL=d.z.object({style:d.z.unknown().transform(e=>aS(e)),subtitlesVisible:d.z.boolean().optional()}
2),iM=d.z.enum(["calm","upbeat","dramatic","warm","neutral"]),iF=d.z.object({musicBed:d.z.object({enabled:d.z.boolean().default(!1),mood:iM.default("neutral"),levelDb:d.z.number().min(-30).max(-12).default(-20)}),keepClipAudio:d.z.object({enabled:d.z.boolean().default(!1),levelDb:d.z.number().min(-30).max(-10).default(-18)})});d.z.object({jobRunId:d.z.string().uuid(),queueJobId:d.z.string().nullable(),status:d.z.string()});let iB=d.z.object({jobRunId:d.z.string().uuid(),status:d.z.string()}),iq=iB.extend({ok:d.z.literal(!0)}),iG=iB.extend({ok:d.z.literal(!0),queued:d.z.literal(!0)}),iK=ei.extend({ok:d.z.literal(!0),stage:d.z.enum(["audio","visuals","complete"]),queuedAudioJobs:d.z.number().int().min(0),queuedVisualJobs:d.z.number().int().min(0),queuedVisualJobsNow:d.z.number().int().min(0).optional(),pendingVisualJobs:d.z.number().int().min(0).optional(),activePreviewRenderScenes:d.z.number().int().min(0).optional()}),iJ=d.z.discriminatedUnion("queued",[iG.extend({renderId:d.z.string().uuid()}),d.z.object({ok:d.z.literal(!0),queued:d.z.literal(!1),renderId:d.z.string().uuid(),alreadyActive:d.z.literal(!0)})]);d.z.object({partnerCode:d.z.string(),linkPath:d.z.string()});let iW=ei.extend({linkPath:d.z.string().optional()});d.z.array(iW),d.z.object({userId:d.z.string().min(1),status:d.z.enum(["pending","active","suspended"]),segment:d.z.enum(["creator","user","agency","community"]),rewardType:d.z.enum(["cash","credit"]),commissionBps:d.z.number().int().min(1).max(1e4),attributionWindowDays:d.z.number().int().min(1).max(365),commissionWindowDays:d.z.number().int().min(1).max(730),notes:d.z.string().max(2e3).nullable().optional()});let iH=d.z.enum(["legacy_token","retail_credit"]),iY=d.z.object({shouldPrompt:d.z.boolean(),rewardUnit:iH.optional(),rewardAmount:d.z.number().optional()}),iQ=d.z.object({response:d.z.string().trim().min(1,"Please tell us how you found us.").max(500)}),iX=d.z.object({granted:d.z.boolean(),rewardMinutes:d.z.number().int().nonnegative(),rewardUnit:iH,balance:d.z.number()}),i0=d.z.object({ok:d.z.literal(!0)}),i1=d.z.object({cursor:d.z.coerce.number().int().min(0).default(0),limit:d.z.coerce.number().int().min(1).max(100).default(50)}).default({cursor:0,limit:50}),i2=d.z.object({id:d.z.string().uuid(),userId:d.z.string(),userEmail:d.z.string().nullable(),userName:d.z.string().nullable(),response:d.z.string().nullable(),skipped:d.z.boolean(),rewardMinutes:d.z.number().int(),createdAt:d.z.coerce.date()}),i5=d.z.object({total:d.z.number().int().nonnegative(),answered:d.z.number().int().nonnegative(),skipped:d.z.number().int().nonnegative(),minutesGranted:d.z.number().int().nonnegative()}),i9=d.z.object({rows:d.z.array(i2),nextCursor:d.z.number().int().min(0).nullable(),stats:i5});e.s(["ATTRIBUTION_RESPONSE_MAX_LENGTH",0,500,"adminAttributionListRequestSchema",0,i1,"adminAttributionListResponseSchema",0,i9,"attributionRewardAmounts",0,{legacy_token:5,retail_credit:100},"attributionStatusResponseSchema",0,iY,"skipAttributionResponseSchema",0,i0,"submitAttributionRequestSchema",0,iQ,"submitAttributionResponseSchema",0,iX],899875);var i4=e.i(722894),i6=e.i(340415);d.z.object({title:d.z.string().optional(),initialMessage:d.z.string().optional(),coordinatorModelId:d.z.string().nullable().optional(),idempotencyKey:d.z.string().optional(),videoFormatId:d.z.enum(i6.STUDIO_ACTIVE_VIDEO_FORMAT_IDS).optional()}).passthrough();let i3=d.z.object({formatId:d.z.enum(i6.STUDIO_REQUESTED_VIDEO_FORMAT_IDS)}),i8=d.z.object({requestId:d.z.string(),created:d.z.boolean()}),i7=d.z.enum(["planned","creating","ready","in_edit"]),re=d.z.lazy(()=>d.z.object({id:d.z.string().min(1),kind:d.z.string().min(1),title:d.z.string().min(1),order:d.z.number().int().nonnegative(),durationSec:d.z.number().nonnegative().nullable(),status:i7.nullable(),thumbnailArtifactId:d.z.string().min(1).nullable(),children:d.z.array(re)})),rt=d.z.object({schemaVersion:d.z.literal(1),revisions:d.z.object({workspace:d.z.number().int().positive().nullable(),timeline:d.z.number().int().positive().nullable()}
2),project:d.z.object({title:d.z.string().min(1),aspect:d.z.enum(["16:9","9:16","1:1"]).nullable(),durationTargetSec:d.z.number().positive().nullable(),durationCurrentSec:d.z.number().nonnegative().nullable()}),progress:d.z.object({totalShots:d.z.number().int().nonnegative(),creatingShots:d.z.number().int().nonnegative(),readyShots:d.z.number().int().nonnegative(),inEditShots:d.z.number().int().nonnegative()}),nodes:d.z.array(re)});e.s(["studioFormatRequestResponseSchema",0,i8,"studioFormatRequestSchema",0,i3,"studioProductionBoardResponseSchema",0,rt],658162);let rn=d.z.enum(["production_audit","offline_replay","media_canary"]),ra=d.z.enum(["queued","running","completed","failed","cancelled"]),ri=d.z.object({projectId:d.z.string().trim().min(1).max(255),mode:rn.default("production_audit"),evaluatorSetVersion:d.z.string().trim().min(1).max(100).default("production-audit-v3"),candidate:d.z.record(d.z.unknown()).optional()}).strict(),rr=d.z.object({evaluator:d.z.string(),status:d.z.enum(["passed","failed","missing_data"]),score:d.z.number().min(0).max(1).nullable(),reason:d.z.string(),details:d.z.record(d.z.unknown()).optional()}),rs=d.z.object({evaluatorSetVersion:d.z.string(),total:d.z.number().int().nonnegative(),passed:d.z.number().int().nonnegative(),failed:d.z.number().int().nonnegative(),missingData:d.z.number().int().nonnegative(),scores:d.z.array(rr)}),ro=d.z.object({id:d.z.string(),evalRunId:d.z.string(),sourceProjectId:d.z.string().nullable(),sourceTraceId:d.z.string().nullable(),datasetItemId:d.z.string().nullable(),status:ra,attempt:d.z.number().int().positive(),outputTraceId:d.z.string().nullable(),scores:d.z.record(d.z.unknown()).nullable(),error:d.z.string().nullable(),createdAt:d.z.coerce.date(),startedAt:d.z.coerce.date().nullable(),finishedAt:d.z.coerce.date().nullable()}),rl=d.z.object({id:d.z.string(),projectId:d.z.string().nullable(),mode:rn,evaluatorSetVersion:d.z.string(),candidate:d.z.record(d.z.unknown()).nullable(),status:ra,triggerKind:d.z.string(),actorRef:d.z.string(),workflowId:d.z.string().nullable(),traceId:d.z.string().nullable(),langfuseExperimentId:d.z.string().nullable(),summary:rs.nullable(),error:d.z.string().nullable(),createdAt:d.z.coerce.date(),startedAt:d.z.coerce.date().nullable(),finishedAt:d.z.coerce.date().nullable()}),rd=rl.extend({items:d.z.array(ro)}),ru=d.z.object({projectId:d.z.string().trim().min(1).max(255).optional(),status:ra.optional(),limit:d.z.coerce.number().int().min(1).max(100).default(50),cursor:d.z.string().trim().min(1).max(512).optional()}).optional().default({}),rc=d.z.object({items:d.z.array(rl),nextCursor:d.z.string().nullable()}),rm=d.z.enum(["support","diagnostic"]),rp=["all","traces","turn","message","event","job","job_event","artifact","workspace_file","llm_usage","run_skill","run_prompt","audit","token_ledger","token_hold","hold_capture","eval_run","eval_item","trace","trace_observation","trace_score"],rg=d.z.string().trim().transform(e=>e.split(",").map(e=>e.trim()).filter(Boolean)).pipe(d.z.array(d.z.enum(rp)).min(1)).optional();d.z.object({profile:rm.default("support"),include:rg,from:d.z.coerce.date().optional(),to:d.z.coerce.date().optional()}),d.z.object({schemaVersion:d.z.literal(3),kind:d.z.enum(["project","evaluation"]),projectId:d.z.string().nullable(),evalRunId:d.z.string().nullable(),profile:rm,snapshotAt:d.z.string().datetime(),redaction:d.z.object({sourcePayloads:d.z.enum(["masked","included"]),secrets:d.z.literal("removed")}),sources:d.z.record(d.z.number().int().nonnegative()),traces:d.z.object({enabled:d.z.boolean(),sessionId:d.z.string().nullable(),from:d.z.string().datetime().nullable(),to:d.z.string().datetime().nullable()}),warnings:d.z.array(d.z.string())}),d.z.object({complete:d.z.boolean(),emittedRecords:d.z.number().int().nonnegative(),emittedBytes:d.z.number().int().nonnegative(),emittedByType:d.z.record(d.z.number().int().nonnegative()),sha256:d.z.string().regex(/^[a-f0-9]{64}$/),warning:d.z.string().nullable(),warnings:d.z.array(d.z.string())}
2),d.z.object({profile:rm.default("support"),include:d.z.array(d.z.enum(rp)).min(1).optional(),from:d.z.coerce.date().optional(),to:d.z.coerce.date().optional()}).strict();let rb=d.z.enum(["queued","running","ready","failed"]);async function rz(e){let t=await fetch("/api/studio/format-requests",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(i3.parse(e))});if(!t.ok)throw Error("Couldn't save your request. Please try again.");return i8.parse(await t.json())}function rh(e){return"u">typeof FormData&&e instanceof FormData}async function rf(e,t,n){let a=rh(n.body)?n.body:void 0===n.body?void 0:JSON.stringify(n.body),i={...void 0===n.body||rh(n.body)?{}:{"content-type":"application/json"},...n.headers},r={credentials:"include",method:n.method,...void 0===a?{}:{body:a},...Object.keys(i).length?{headers:i}:{}},s=await fetch(`/api/backend${e}`,r),o=await s.json().catch(()=>null);if(!s.ok){let e=Error(o&&"object"==typeof o&&"message"in o&&"string"==typeof o.message?o.message:"Request failed");throw o&&"object"==typeof o&&!Array.isArray(o)&&(e.data={...o,..."string"==typeof o.code?{appCode:o.code}:{}}),e}return t.parse(o)}function ry(e){let t=new URLSearchParams;for(let[n,a]of Object.entries(e))null!=a&&t.set(n,String(a));let n=t.toString();return n?`?${n}`:""}async function rv(){return rf("/channels",m,{method:"GET"})}async function r_(e){return rf("/channels",c,{method:"POST",body:g.parse(e)})}async function rx(e){let t=b.parse(e),n=z.parse(e);return rf(`/channels/${t.id}`,c,{method:"PATCH",body:n})}async function rI(e){let t=h.parse(e);return rf(`/channels/${t.id}`,f,{method:"DELETE"})}async function rj(){return rf("/onboarding-config",e0,{method:"GET"})}async function rk(){return rf("/viewer/dashboard-bootstrap",I,{method:"GET"})}async function rS(e){return rf("/account/deletion",k,{method:"POST",body:j.parse(e)})}async function rT(){return rf("/billing/balance",x,{method:"GET"})}async function rA(e){let t=S.parse(e);return rf(`/billing/token-history${ry(t)}`,R,{method:"GET"})}async function rw(){return rf("/billing/state",U,{method:"GET"})}async function rC(){return rf("/billing/voices/seeded",J,{method:"GET"})}async function rR(e){return rf("/billing/voices/available",Y,{method:"POST",body:G.parse(e)})}async function rP(e){let t=i4.listGenerationModelsRequestSchema.parse(e??{});return rf(`/generations/models${ry(t)}`,i4.listGenerationModelsResponseSchema,{method:"GET"})}async function rO(e){let t=eY.listMediaApiAssetsRequestSchema.parse(e??{});return rf(`/generations/assets${ry(t)}`,eY.listMediaApiAssetsResponseSchema,{method:"GET"})}async function rE(e){let t=eY.listMediaApiGenerationsRequestSchema.parse(e??{});return rf(`/generations${ry(t)}`,eY.listMediaApiGenerationsResponseSchema,{method:"GET"})}async function rZ(e){return rf("/generations/estimate",i4.generationEstimateSchema,{method:"POST",body:i4.estimateGenerationRequestSchema.parse(e)})}async function rN(e){let t=new FormData;return t.append("file",e,e.name),rf("/generations/uploads",eY.mediaApiAssetSchema,{method:"POST",body:t})}async function rU(e,t=crypto.randomUUID()){return rf("/generations",eY.mediaApiGenerationSchema,{method:"POST",body:i4.createGenerationRequestSchema.parse(e),headers:{"idempotency-key":t}})}async function r$(e){let t=aG.parse(e);return rf(`/videos/dashboard${ry(t)}`,a1,{method:"GET"})}async function rV(e){let t=aG.parse(e);return rf(`/videos/dashboard/statuses${ry(t)}`,a5,{method:"GET"})}async function rD(e){let t=aK.parse(e);return rf(`/videos/${encodeURIComponent(t.projectId)}/workflow-state`,a9,{method:"GET"})}async function rL(e){let t=aK.parse(e);return rf(`/videos/${encodeURIComponent(t.projectId)}/production-state`,aF,{method:"GET"})}async function rM(e){let t=aK.parse(e);return rf(`/videos/${encodeURIComponent(t.projectId)}/generation-progress`,aH,{method:"GET"})}async function rF(e){let t=aK.parse(e),n=a4.parse(e);return rf(`/videos/${encodeURIComponent(t.projectId)}/runs${ry(n)}`,ii,{method:"GET"})}async function rB(e){let t=aK.parse(e);return rf(`/videos/${encodeURIComponent(t.projectId)}/job-runs`,ir,{method:"GET"})}async function rq(e){return rf("/videos",id,{method:"POST",body:il.parse(e)})}async function rG(e){let t=aK.parse(e);return rf(`/videos/${encodeURIComponent(t.projectId)}`,en,{method:"DELETE"})}async function rK(e){let t=aK.parse(e),n=iu.parse(e);return rf(`/videos/${encodeURIComponent(t.projectId)}/meta`,en,{method:"PATCH",body:n})}async function rJ(e){let t=aK.parse(e),n=ic.parse(e);return rf(`/videos/${encodeURIComponent(t.projectId)}/youtube-link`,ip,{method:"POST",body:n})}async function rW(e){let t=aK.parse(e);return rf(`/videos/${encodeURIComponent(t.projectId)}/youtube-prompt/skip`,en,{method:"POST"})}async function rH(e){let t=aK.parse(e);return rf(`/videos/${encodeURIComponent(t.projectId)}/timeline`,ig,{method:"GET"})}async function rY(e){let t=aK.parse(e);return rf(`/videos/${encodeURIComponent(t.projectId)}/assets`,iz,{method:"GET"})}async function rQ(e){let t=aK.parse(e),n=ih.parse(e);return rf(`/videos/${encodeURIComponent(t.projectId)}/assets/playback-urls`,iy,{method:"POST",body:n})}async function rX(e){let t=aK.parse(e),n=iv.parse(e);return rf(`/videos/${encodeURIComponent(t.projectId)}/workflow/voice`,en,{method:"PATCH",body:n})}async function r0(e){let t=aK.parse(e);return rf(`/videos/${encodeURIComponent(t.projectId)}/workflow/exports-viewed`,en,{method:"POST"})}async function r1(e){let t=aK.parse(e),n=i_.parse(e);return rf(`/videos/${encodeURIComponent(t.projectId)}/jobs`,ix,{method:"POST",body:n})}async function r2(e){let t=aK.parse(e);return rf(`/videos/${encodeURIComponent(t.projectId)}/jobs/${encodeURIComponent(e.jobRunId)}/cancel`,en,{method:"POST"})}async function r5(e){let t=aK.parse(e);return rf(`/video-production/${encodeURIComponent(t.projectId)}`,aF,{method:"GET"})}async function r9(e){let t=aK.parse(e);return rf(`/video-production/${encodeURIComponent(t.projectId)}/preview-scenes`,iw,{method:"GET"})}async function r4(e){let t=aK.parse(e),n=iC.parse(e);return rf(`/video-production/${encodeURIComponent(t.projectId)}/brief`,en,{method:"PUT",body:n})}async function r6(e){let t=aK.parse(e),n=iR.parse(e);return rf(`/video-production/${encodeURIComponent(t.projectId)}/concepts/generate`,iq,{method:"POST",body:n})}async function r3(e){let t=aK.parse(e),n=iP.parse(e);return rf(`/video-production/${encodeURIComponent(t.projectId)}/concepts/${encodeURIComponent(e.conceptId)}/approve`,en,{method:"POST",body:n})}async function r8(e){let t=aK.parse(e),n=iO.parse(e);return rf(`/video-production/${encodeURIComponent(t.projectId)}/sections/generate`,ei,{method:"POST",body:n})}async function r7(e){let t=aK.parse(e),n=iE.parse(e);return rf(`/video-production/${encodeURIComponent(t.projectId)}/sections/${encodeURIComponent(e.sectionId)}`,en,{method:"PATCH",body:n})}async function se(e){let t=aK.parse(e);return rf(`/video-production/${encodeURIComponent(t.projectId)}/section-scripts/generate`,ei,{method:"POST"})}async function st(e){let t=aK.parse(e),n=iZ.parse(e);return rf(`/video-production/${encodeURIComponent(t.projectId)}/section-scripts/${encodeURIComponent(e.sectionId)}`,en,{method:"PATCH",body:n})}async function sn(e){let t=aK.parse(e),n=iN.parse(e);return rf(`/video-production/${encodeURIComponent(t.projectId)}/scenes/split`,ei,{method:"POST",body:n})}async function sa(e){let t=aK.parse(e),n=iU.parse(e);return rf(`/video-production/${encodeURIComponent(t.projectId)}/scenes/${encodeURIComponent(e.sceneId)}`,en,{method:"PATCH",body:n})}async function si(e){let t=aK.parse(e),n=i$.parse(e);return rf(`/video-production/${encodeURIComponent(t.projectId)}/preview-scenes/${encodeURIComponent(e.sceneId)}/visual/regenerate`,en,{method:"POST",body:n})}async function sr(e){let t=aK.parse(e),n=iD.parse(e);return rf(`/video-production/${encodeURIComponent(t.projectId)}/asset-plans/generate`,ei,{method:"POST",body:n})}async function ss(e){let t=aK.parse(e),n=e.planId??t.projectId;return rf(`/video-production/${encodeURIComponent(t.projectId)}/asset-plans/${encodeURIComponent(n)}/approve`,en,{method:"POST"})}async function so(e){let t=aK.parse(e),n=iV.parse(e),a=e.planId??e.sceneId??t.projectId;return rf(`/video-production/${encodeURIComponent(t.projectId)}/asset-plans/${encodeURIComponent(a)}`,en,{method:"PATCH",body:n})}async function sl(e){let t=aK.parse(e);return rf(`/video-production/${encodeURIComponent(t.projectId)}
2/preview/render`,iK,{method:"POST",...e.sceneIds?{body:{sceneIds:e.sceneIds,...e.forceRegenerate?{forceRegenerate:!0}:{},...e.visualOnly?{visualOnly:!0}:{}}}:{}})}async function sd(e){let t=aK.parse(e);return rf(`/video-production/${encodeURIComponent(t.projectId)}/preview-scenes/${encodeURIComponent(e.sceneId)}/render`,iK,{method:"POST"})}async function su(e){let t=aK.parse(e);return rf(`/video-production/${encodeURIComponent(t.projectId)}/preview/approve`,en,{method:"POST"})}async function sc(e){let t=aK.parse(e),n=iL.parse(e);return rf(`/video-production/${encodeURIComponent(t.projectId)}/subtitle-style`,en,{method:"PATCH",body:n})}async function sm(e){let t=aK.parse(e),n=iF.parse(e);return rf(`/video-production/${encodeURIComponent(t.projectId)}/audio-settings`,en,{method:"PATCH",body:n})}async function sp(e){let t=aK.parse(e);return rf(`/video-production/${encodeURIComponent(t.projectId)}/final-export`,iJ,{method:"POST"})}async function sg(e){let t=aK.parse(e);return rf(`/video-production/${encodeURIComponent(t.projectId)}/exported`,en,{method:"POST"})}async function sb(){return rf("/admin/app-settings",ei,{method:"GET"})}async function sz(){return rf("/admin/access-tokens",eU,{method:"GET"})}async function sh(e){return rf("/admin/access-tokens",eN,{method:"POST",body:eE.parse(e)})}async function sf(e){return rf(`/admin/access-tokens/${encodeURIComponent(e.accessTokenId)}`,eZ,{method:"DELETE"})}async function sy(){return rf("/admin/user-api-tokens",eY.listUserApiAccessTokensResponseSchema,{method:"GET"})}async function sv(e){return rf("/admin/user-api-tokens",eY.createUserApiAccessTokenResponseSchema,{method:"POST",body:eY.createUserApiAccessTokenRequestSchema.parse(e)})}async function s_(e){return rf(`/admin/user-api-tokens/${encodeURIComponent(e.accessTokenId)}`,eY.userApiAccessTokenSummarySchema,{method:"DELETE"})}async function sx(e){return rf("/admin/app-settings",ei,{method:"PUT",body:er.parse(e)})}async function sI(){return rf("/admin/elevenlabs-settings",ei,{method:"GET"})}async function sj(e){return rf("/admin/elevenlabs-settings",ei,{method:"PUT",body:es.parse(e)})}async function sk(){return rf("/admin/voice-profiles",ei,{method:"GET"})}async function sS(e){let t=ei.parse(e),n="string"==typeof e.id?e.id:"new";return rf(`/admin/voice-profiles/${encodeURIComponent(n)}`,ei,{method:"PUT",body:t})}async function sT(e){return rf(`/admin/voice-profiles/${encodeURIComponent(e.id)}`,en,{method:"DELETE"})}async function sA(e){return rf("/admin/r2/backfill-keys",ei,{method:"POST",body:e})}async function sw(e){let t=eo.parse(e);return rf(`/admin/projects${ry(t)}`,ei,{method:"GET"})}async function sC(e){let t=e?.projectId??"all";return rf(`/admin/projects/${encodeURIComponent(t)}/videos`,el,{method:"GET"})}async function sR(e){return rf(`/admin/projects/${encodeURIComponent(e.projectId)}`,ei,{method:"GET"})}async function sP(e){return rf(`/admin/projects/${encodeURIComponent(e.projectId)}/jobs/${encodeURIComponent(e.jobRunId)}/cancel`,en,{method:"POST"})}async function sO(e){return rf(`/admin/projects/${encodeURIComponent(e.projectId)}/jobs/${encodeURIComponent(e.jobRunId)}/retry`,ei,{method:"POST"})}async function sE(e){return rf("/admin/incidents/classic-visual-timeout-2026-08-09/recover",ey,{method:"POST",body:ef.parse(e)})}async function sZ(e){return rf(`/admin/projects/${encodeURIComponent(e.projectId)}/jobs/${encodeURIComponent(e.jobRunId)}/force-fail`,en,{method:"POST",body:ez.parse(e)})}async function sN(){return rf("/admin/queue-status",ei,{method:"GET"})}async function sU(e){let t=eo.parse(e);return rf(`/admin/users${ry(t)}`,ei,{method:"GET"})}async function s$(e){return rf(`/admin/users/${encodeURIComponent(e.userId)}`,ei,{method:"GET"})}async function sV(e){return rf(`/admin/users/${encodeURIComponent(e.userId)}/role`,en,{method:"PATCH",body:ed.parse(e)})}async function sD(e){let{userId:t,...n}=e;return rf(`/admin/users/${encodeURIComponent(t)}/deletion`,ew,{method:"POST",body:eA.parse(n)})}async function sL(e){return rf(`/admin/users/${encodeURIComponent(e.userId)}/balance-adjustments`,en,{method:"POST",body:eu.parse(e)})}async function sM(){return rf("/admin/users/backfill-emails",ei,{method:"POST"})}async function sF(e){return rf("/admin/users/comp",em,{method:"POST",body:ec.parse(e)})}async function sB(){return rf("/admin/billing/offers",el,{method:"GET"})}async function sq(e){return rf("/admin/billing/offers",ei,{method:"POST",body:ei.parse(e)})}async function sG(e){return rf(`/admin/billing/offers/${encodeURIComponent(e.offerId)}`,ei,{method:"PATCH",body:ei.parse(e)})}async function sK(e){return rf(`/admin/billing/offers/${encodeURIComponent(e.offerId)}/versions`,ei,{method:"POST",body:ei.parse(e)})}async function sJ(e){return rf(`/admin/billing/offer-versions/${encodeURIComponent(e.versionId)}`,ei,{method:"PATCH",body:ei.parse(e)})}async function sW(e){return rf(`/admin/billing/offers/${encodeURIComponent(e.offerId)}/active-version`,en,{method:"POST",body:{versionId:e.versionId}})}async function sH(){return rf("/admin/billing/assignment-rules",el,{method:"GET"})}async function sY(e){return rf("/admin/billing/assignment-rules",ei,{method:"POST",body:ei.parse(e)})}async function sQ(e){return rf(`/admin/billing/assignment-rules/${encodeURIComponent(e.ruleId)}`,ei,{method:"PATCH",body:ei.parse(e)})}async function sX(e){let t=eo.parse(e);return rf(`/admin/billing/user-assignments${ry(t)}`,el,{method:"GET"})}async function s0(e){return rf(`/admin/billing/users/${encodeURIComponent(e.userId)}/offer-assignment`,ei,{method:"PUT",body:ei.parse(e)})}async function s1(e){return rf(`/admin/billing/users/${encodeURIComponent(e.userId)}/offer-assignment${ry({kind:e.kind})}`,en,{method:"DELETE"})}async function s2(e){return rf("/admin/billing/preview-resolution",ei,{method:"POST",body:ei.parse(e)})}async function s5(e){let t=ep.parse(e);return rf(`/admin/youtube-links${ry(t)}`,eb,{method:"GET"})}async function s9(){return rf("/admin/user-stats",ei,{method:"GET"})}async function s4(){return rf("/onboarding/status",_,{method:"GET"})}async function s6(){return rf("/onboarding/notification-preferences",e5,{method:"GET"})}async function s3(e){return rf("/onboarding/channel",e6,{method:"POST",body:e4.parse(e)})}async function s8(e){return rf("/onboarding/language",e1,{method:"PATCH",body:e3.parse(e)})}async function s7(e){return rf("/onboarding/default-voice",e1,{method:"PATCH",body:e8.parse(e)})}async function oe(e){return rf("/onboarding/default-style",e1,{method:"PATCH",body:e7.parse(e)})}async function ot(e){return rf("/onboarding/niche",e1,{method:"PATCH",body:te.parse(e)})}async function on(){return rf("/onboarding/skip-paywall",e2,{method:"POST"})}async function oa(e){return rf("/onboarding/notification-preferences",e1,{method:"PATCH",body:tt.parse(e)})}async function oi(e){return rf("/onboarding/quiz/sessions",ty,{method:"POST",body:tv.parse(e)})}async function or(e){let t=t_.parse(e);return rf(`/onboarding/quiz/sessions/${encodeURIComponent(t.sessionId)}/answers`,tx,{method:"PATCH",body:{answers:t.answers}})}async function os(e){let t=tI.parse(e);return rf(`/onboarding/quiz/sessions/${encodeURIComponent(t.sessionId)}/complete`,tj,{method:"POST",body:{answers:t.answers}})}async function oo(e){let t=tk.parse(e);return rf(`/onboarding/quiz/sessions/${encodeURIComponent(t.sessionId)}/status`,e1,{method:"PATCH",body:{status:t.status,...t.selectedOfferKey?{selectedOfferKey:t.selectedOfferKey}:{}}})}async function ol(){return rf("/attribution/status",iY,{method:"GET"})}async function od(e){return rf("/attribution/submit",iX,{method:"POST",body:iQ.parse(e)})}
2async function ou(){return rf("/attribution/skip",i0,{method:"POST"})}async function oc(e){let t=i1.parse(e);return rf(`/attribution/admin/responses${ry(t)}`,i9,{method:"GET"})}async function om(e){let t=ru.parse(e);return rf(`/admin/studio/evaluations${ry(t)}`,rc,{method:"GET"})}async function op(e){return rf("/admin/studio/evaluations",rl,{method:"POST",body:ri.parse(e)})}async function og(e){return rf(`/admin/studio/evaluations/${encodeURIComponent(e)}`,rd,{method:"GET"})}async function ob(e){return rf(`/admin/studio/evaluations/${encodeURIComponent(e)}/cancel`,rd,{method:"POST"})}async function oz(){return rf("/billing/auto-recharge",X,{method:"GET"})}async function oh(e){return rf("/billing/auto-recharge/setup",ee,{method:"POST",body:Q.parse(e)})}async function of(){return rf("/billing/auto-recharge/disable",X,{method:"POST"})}async function oy(e){let t=await fetch("/api/stripe/plan-change",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),n=await t.json();if(!t.ok)throw Error(n.error??"Unable to change your plan.");return et.parse(n)}async function ov(e){let t=await fetch("/api/stripe/cancel-at-renewal",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({currentPeriodEnd:e})}),n=await t.json();if(!t.ok)throw Error(n.error??"Unable to confirm cancellation.");return et.parse(n)}d.z.object({id:d.z.string(),kind:d.z.enum(["project","evaluation"]),projectId:d.z.string().nullable(),evalRunId:d.z.string().nullable(),profile:rm,include:d.z.array(d.z.string()).nullable(),from:d.z.string().datetime().nullable(),to:d.z.string().datetime().nullable(),status:rb,bytes:d.z.number().int().nonnegative().nullable(),records:d.z.number().int().nonnegative().nullable(),sha256:d.z.string().nullable(),complete:d.z.boolean().nullable(),warnings:d.z.array(d.z.string()),error:d.z.string().nullable(),downloadUrl:d.z.string().nullable(),expiresAt:d.z.string().datetime().nullable(),createdAt:d.z.string().datetime(),startedAt:d.z.string().datetime().nullable(),finishedAt:d.z.string().datetime().nullable()}),e.s(["adjustAdminUserBalance",0,sL,"approveVideoProductionAssetPlan",0,ss,"approveVideoProductionConcept",0,r3,"approveVideoProductionPreview",0,su,"backfillAdminR2Keys",0,sA,"backfillAdminUserEmails",0,sM,"cancelAdminProjectJob",0,sP,"cancelAdminStudioEvaluation",0,ob,"cancelSubscriptionAtRenewal",0,ov,"cancelVideoJobRun",0,r2,"changeSubscriptionPlan",0,oy,"clearAdminBillingUserOfferAssignment",0,s1,"compAdminUser",0,sF,"completeOnboardingQuiz",0,os,"createAdminAccessToken",0,sh,"createAdminBillingAssignmentRule",0,sY,"createAdminBillingOffer",0,sq,"createAdminBillingOfferVersion",0,sK,"createAdminStudioEvaluation",0,op,"createAdminUserApiToken",0,sv,"createChannel",0,r_,"createGeneration",0,rU,"createVideoProject",0,rq,"deleteAdminUser",0,sD,"deleteAdminVoiceProfile",0,sT,"deleteChannel",0,rI,"deleteOwnAccount",0,rS,"deleteVideoProject",0,rG,"disableAutoRecharge",0,of,"enqueueVideoJob",0,r1,"estimateGeneration",0,rZ,"finalizeVideoProductionExport",0,sp,"forceFailAdminProjectJob",0,sZ,"generateVideoProductionAssetPlans",0,sr,"generateVideoProductionConcepts",0,r6,"generateVideoProductionSectionPlan",0,r8,"generateVideoProductionSectionScripts",0,se,"getAdminAppSettings",0,sb,"getAdminElevenlabsSettings",0,sI,"getAdminProjectDetail",0,sR,"getAdminQueueStatus",0,sN,"getAdminStudioEvaluation",0,og,"getAdminUserDetail",0,s$,"getAdminUserStats",0,s9,"getAttributionStatus",0,ol,"getAutoRecharge",0,oz,"getAvailableVoices",0,rR,"getBillingBalance",0,rT,"getBillingState",0,rw,"getDashboardBootstrap",0,rk,"getNotificationPreferences",0,s6,"getOnboardingConfig",0,rj,"getOnboardingStatus",0,s4,"getProductionState",0,rL,"getSeededVoices",0,rC,"getTokenHistory",0,rA,"getVideoAssetPlaybackUrls",0,rQ,"getVideoDashboardStatuses",0,rV,"getVideoGenerationProgress",0,rM,"getVideoGenerationRuns",0,rF,"getVideoJobRuns",0,rB,"getVideoProductionPipeline",0,r5,"getVideoTimeline",0,rH,"getVideoWorkflowState",0,rD,"listAdminAccessTokens",0,sz,"listAdminAttributionResponses",0,oc,"listAdminBillingAssignmentRules",0,sH,"listAdminBillingOffers",0,sB,"listAdminBillingUserAssignments",0,sX,"listAdminProjectVideos",0,sC,"listAdminProjects",0,sw,"listAdminStudioEvaluations",0,om,"listAdminUserApiTokens",0,sy,"listAdminUsers",0,sU,"listAdminVoiceProfiles",0,sk,"listAdminYoutubeLinks",0,s5,"listChannels",0,rv,"listDashboardVideos",0,r$,"listGeneratedAssets",0,rO,"listGenerationModels",0,rP,"listGenerations",0,rE,"listVideoAssets",0,rY,"listVideoProductionPreviewScenes",0,r9,"markOnboardingQuizStatus",0,oo,"markVideoExportsViewed",0,r0,"markVideoProductionExported",0,sg,"previewAdminBillingResolution",0,s2,"recoverAdminClassicVisualTimeoutIncident",0,sE,"regenerateVideoProductionPreviewSceneVisual",0,si,"renderVideoProductionPreviewScene",0,sd,"renderVideoProductionPreviewScenes",0,sl,"requestStudioVideoFormat",0,rz,"retryAdminProjectJob",0,sO,"revokeAdminAccessToken",0,sf,"revokeAdminUserApiToken",0,s_,"saveOnboardingChannel",0,s3,"saveOnboardingQuizAnswer",0,or,"saveVideoProductionAudioSettings",0,sm,"saveVideoProductionBrief",0,r4,"saveVideoProductionSubtitleStyle",0,sc,"setAdminAppSettings",0,sx,"setAdminBillingOfferActiveVersion",0,sW,"setAdminBillingUserOfferAssignment",0,s0,"setAdminElevenlabsSettings",0,sj,"setAdminUserRole",0,sV,"setVideoWorkflowVoice",0,rX,"setupAutoRecharge",0,oh,"skipAttribution",0,ou,"skipOnboardingPaywall",0,on,"skipYoutubePrompt",0,rW,"splitVideoProductionScenes",0,sn,"startOnboardingQuizSession",0,oi,"submitAttribution",0,od,"submitYoutubeLink",0,rJ,"updateAdminBillingAssignmentRule",0,sQ,"updateAdminBillingOffer",0,sG,"updateAdminBillingOfferVersion",0,sJ,"updateChannel",0,rx,"updateDefaultStyle",0,oe,"updateDefaultVoice",0,s7,"updateLanguage",0,s8,"updateNiche",0,ot,"updateNotificationPreferences",0,oa,"updateVideoProductionAssetPlan",0,so,"updateVideoProductionScene",0,sa,"updateVideoProductionSection",0,r7,"updateVideoProductionSectionScript",0,st,"updateVideoProjectMeta",0,rK,"uploadReferenceImage",0,rN,"upsertAdminVoiceProfile",0,sS],963852)}]); 3 4//# debugId=15d89207-768c-81d3-3611-e4bd10b33243
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.