quilltap 4.14.0-dev.97 → 4.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -87,7 +87,7 @@ A theme only needs to set one to override that derivation:
87
87
  * Declared on [data-theme] and .dark (specificity 0,1,0); a theme's compiled
88
88
  * CSS overrides them. Tailwind's --color-* / --radius-* / --font-* map
89
89
  * (theme-tokens.css) reads these names.
90
- */`;var Xi=Yi.flatMap(t=>t.tokens),Uz=new Map(Xi.map(t=>[t.name,t])),Fz=new Map(Yi.map(t=>[t.id,t]));var Xh=[{className:"qt-app-layout",surface:"app-shell",label:"App layout",description:"The whole signed-in window: the left rail beside the main column.",since:1},{className:"qt-skip-link",surface:"app-shell",label:"Skip-to-content link",description:"Visually hidden until focused.",within:["qt-app-layout"],since:1},{className:"qt-app-main",surface:"app-shell",label:"Main column",description:"Everything right of the left rail: the content and the footer.",within:["qt-app-layout"],since:1},{className:"qt-app-content",surface:"app-shell",label:"Main content (`<main>`)",description:"The `<main>` landmark. Inside the signed-in shell it holds the page toolbar and the scroll area; on the setup, unlock and sign-in pages it is the whole page.",since:1},{className:"qt-app-scroll",surface:"app-shell",label:"Content scroll area",description:"The scrolling region under the page toolbar that holds the page or the workspace.",within:["qt-app-content"],since:1},{className:"qt-page-toolbar",surface:"app-shell",label:"Page toolbar",description:"The one global toolbar across the top of the content; it follows the focused workspace pane.",within:["qt-app-content"],since:1},{className:"qt-page-toolbar-left",surface:"app-shell",label:"Page toolbar, left group",within:["qt-page-toolbar"],since:1},{className:"qt-page-toolbar-center",surface:"app-shell",label:"Page toolbar, centre group",within:["qt-page-toolbar"],since:1},{className:"qt-page-toolbar-right",surface:"app-shell",label:"Page toolbar, right group",within:["qt-page-toolbar"],since:1},{className:"qt-footer",surface:"app-shell",label:"Footer",description:"The line at the foot of the main column: version, data directory, copyright.",within:["qt-app-main"],since:1}];var L$=["facts","dossier","metadata","physical-description","scenarios","vault","conversations","memories","bulk-edits","wardrobe","inventory","atlas","photos","depiction-guidelines","trust","talents","wardrobe-permissions","control","connection-profile","conversation-partner","image-profile","timestamps","chat-tools"],Qh=[{className:"qt-character-page",surface:"character",label:"Character page",description:"Also carries the older bare `character-page` class.",since:1},{className:"qt-character-header",surface:"character",label:"Character header",description:"The sticky header: back link, avatar, name and meta, actions.",within:["qt-character-page"],since:1},{className:"qt-character-avatar",surface:"character",label:"Character avatar",description:"The avatar region; a menu button for changing the picture.",within:["qt-character-header"],since:1},{className:"qt-character-identity",surface:"character",label:"Character name and meta",description:"Name, favourite star, title, pronouns, age, kind badges, then tags and stats.",within:["qt-character-header"],since:1},{className:"qt-character-tags",surface:"character",label:"Character tags",description:"Alias and group pills.",within:["qt-character-identity"],since:1},{className:"qt-character-stats",surface:"character",label:"Character stats",description:"The counts line (chats, memories, photos, …).",within:["qt-character-identity"],since:1},{className:"qt-character-actions",surface:"character",label:"Character actions",description:"Start a chat, and the action menus.",within:["qt-character-header"],since:1},{className:"qt-character-archived-banner",surface:"character",label:"Archived banner",description:"Shown when the character rests in the archive.",within:["qt-character-page"],since:1},{className:"qt-section-card",surface:"character",label:"Character field section",description:"One card of a character-page section. Also a `qt-card`.",within:["qt-character-page"],variants:[{attribute:"data-section",values:L$,description:"Which section, by its anchor."}],since:1},{className:"qt-section-card-header",surface:"character",label:"Field section header",within:["qt-section-card"],since:1},{className:"qt-section-card-body",surface:"character",label:"Field section body",within:["qt-section-card"],since:1}];var eb=["home","salon","salon-list","terminal","document","aurora","prospero","scriptorium","settings","files","photos","scenarios","brahma","wardrobe","inventory","atlas","profile","about","generate-image","document-standalone","character-new","character","settings-wizard","custom-tools","theme-editor","theme-specimens"];var M$=["left","right"],Ws={attribute:"data-pane",values:M$,description:"Which pane: `left`, or `right` when the workspace is split."},Js={attribute:"data-tab-kind",values:eb,description:"What the tab holds: one of the workspace tab kinds (`home`, `salon`, `character`, `settings`, …)."},tb=[{className:"qt-workspace",surface:"workspace",label:"Workspace",description:"The two-pane tab host: a grid of pane chrome on top, tab content beneath.",within:["qt-app-scroll"],since:1},{className:"qt-workspace-backdrop",surface:"workspace",label:"Workspace backdrop",description:"The single story background behind both panes.",within:["qt-workspace"],since:1},{className:"qt-workspace-backdrop-layer",surface:"workspace",label:"Workspace backdrop layer",within:["qt-workspace-backdrop"],since:1},{className:"qt-workspace-pane-chrome",surface:"workspace",label:"Pane chrome",description:"A pane's tab strip area, above its content.",within:["qt-workspace"],variants:[Ws],since:1},{className:"qt-tab-strip",surface:"workspace",label:"Tab strip",within:["qt-workspace-pane-chrome"],variants:[Ws],since:1},{className:"qt-tab-select",surface:"workspace",label:"Tab button",description:"The focusable part of a workspace tab (icon and title).",within:["qt-tab"],states:[{kind:"aria",attribute:"aria-selected",values:["true","false"],label:"The visible tab in its pane"}],since:1},{className:"qt-tab-icon",surface:"workspace",label:"Tab icon",within:["qt-tab"],since:1},{className:"qt-tab-label",surface:"workspace",label:"Tab title",within:["qt-tab-select"],since:1},{className:"qt-tab-close",surface:"workspace",label:"Tab close button",within:["qt-tab"],since:1},{className:"qt-tab-pane",surface:"workspace",label:"Tab content",description:"One tab's view. Hidden tabs stay mounted (and carry `hidden`), so scope to the visible one with `:not(.hidden)`.",within:["qt-workspace"],variants:[Ws,Js],since:1},{className:"qt-workspace-divider",surface:"workspace",label:"Split divider",description:"The draggable bar between split panes.",within:["qt-workspace"],since:1},{className:"qt-workspace-divider-grip",surface:"workspace",label:"Split divider grip",within:["qt-workspace-divider"],since:1},{className:"qt-workspace-empty",surface:"workspace",label:"Empty pane",within:["qt-workspace"],since:1},{className:"qt-tab-drop-zone",surface:"workspace",label:"Split drop zone",description:"Shown while a tab is dragged in an unsplit workspace.",within:["qt-workspace"],since:1}];function z(t,e,n){return{className:t,surface:"common",label:e,...n?{description:n}:{},since:1}}s(z,"family");var rb=[z("qt-page-container","Page container","The width-limited column most full pages (Settings, a character, the lists) sit in."),z("qt-card","Card"),{...z("qt-card-header","Card header"),within:["qt-card"]},z("qt-card-title","Card title"),z("qt-card-subtitle","Card subtitle"),z("qt-card-description","Card description"),z("qt-card-interactive","Clickable card"),z("qt-button","Button","The base button; usually paired with a variant class."),z("qt-button-primary","Primary button"),z("qt-button-secondary","Secondary button"),z("qt-button-ghost","Ghost button"),z("qt-button-destructive","Destructive button"),z("qt-button-success","Success button"),z("qt-button-warning","Warning button"),z("qt-button-sm","Small button","A size modifier, beside a variant."),z("qt-button-icon","Icon button"),{...z("qt-input","Text input"),states:[{kind:"class",className:"qt-input-error",label:"Invalid"}]},z("qt-textarea","Text area"),z("qt-select","Select"),z("qt-select-sm","Small select"),z("qt-badge","Badge"),z("qt-badge-primary","Primary badge"),z("qt-badge-secondary","Secondary badge"),z("qt-badge-success","Success badge"),z("qt-badge-warning","Warning badge"),z("qt-badge-info","Info badge"),z("qt-badge-destructive","Destructive badge"),z("qt-badge-outline","Outline badge"),z("qt-badge-character","Character badge"),z("qt-badge-user-character","Operator-character badge"),z("qt-badge-chat","Chat badge"),z("qt-badge-tag","Tag badge"),z("qt-badge-memory","Memory badge"),z("qt-badge-project","Project badge"),z("qt-alert","Alert"),z("qt-alert-info","Info alert"),z("qt-alert-success","Success alert"),z("qt-alert-warning","Warning alert"),z("qt-alert-error","Error alert"),z("qt-heading-1","Heading, level 1 size"),z("qt-heading-2","Heading, level 2 size"),z("qt-heading-3","Heading, level 3 size"),z("qt-heading-4","Heading, level 4 size"),z("qt-page-title","Page title","The large title at the head of a page."),z("qt-section-title","Section title","A heading over a card, panel or settings group."),z("qt-text-section","Section heading text","A smaller section heading inside a form or panel."),z("qt-text-brand","Brand-coloured text","Text in the brand colour: links, the active item, small accents."),z("qt-font-brand","Brand name","The Quilltap name, set in the brand font."),z("qt-spinner","Spinner","A loading spinner; `qt-spinner-sm` beside it for the small one."),z("qt-thinking-indicator","Thinking mark","The mark shown while a model is thinking; it animates by --qt-thinking-duration and --qt-thinking-origin."),z("qt-empty-state-title","Empty-state title","The heading of the notice shown where a list has nothing in it."),{...z("qt-wikilink","Wiki link","A [[link]] between documents in rendered text."),states:[{kind:"class",className:"qt-wikilink-broken",label:"Points at nothing"}]},z("qt-file-preview-panel","File preview panel","The panel a text file is previewed on."),z("qt-diagram","Diagram","A rendered diagram in a message or document, with its toolbar."),z("qt-avatar-image","Avatar picture box","The framed box holding an avatar picture or its initial."),z("qt-avatar-labels","Avatar caption","Name and title beneath an avatar."),{...z("qt-avatar-name","Avatar name"),within:["qt-avatar-labels"]},{...z("qt-avatar-title","Avatar title"),within:["qt-avatar-labels"]},z("qt-tab-group","In-page tab group","Entity-page tabs (a character, a project) and small view switchers."),{className:"qt-tab",surface:"common",label:"Tab",description:"Shared by the workspace tab strip (`.qt-tab-strip .qt-tab`) and the in-page tabs (`.qt-tab-group .qt-tab`): scope by the parent. Only workspace tabs carry `data-tab-kind`.",within:["qt-tab-strip","qt-tab-group"],variants:[Js],states:[{kind:"class",className:"qt-tab-active",label:"The selected tab"},{kind:"class",className:"qt-tab-dragging",label:"Being dragged (workspace)"}],since:1},{className:"qt-empty-state",surface:"common",label:"Empty state",description:'The "nothing here yet" block; its title is `qt-empty-state-title`.',since:1},{className:"qt-empty-state-icon",surface:"common",label:"Empty state icon",within:["qt-empty-state"],since:1},{className:"qt-empty-state-description",surface:"common",label:"Empty state description",within:["qt-empty-state"],since:1},{className:"qt-empty-state-action",surface:"common",label:"Empty state action",description:"The button or link under an empty state.",within:["qt-empty-state"],since:1},{className:"qt-loading-state",surface:"common",label:"Loading state",description:"The block shown while a list or card is fetched.",since:1},{className:"qt-tooltip",surface:"common",label:"Tooltip",since:1},{className:"qt-popover",surface:"common",label:"Popover",description:"A small anchored panel: a delete confirmation, the character picker.",since:1},{className:"qt-entity-card",surface:"common",label:"Entity card",description:"A character, chat, group or project in a list.",since:1},{className:"qt-label",surface:"common",label:"Field label",description:"A form field's label.",since:1},{className:"qt-link",surface:"common",label:"Link",description:"An ordinary text link.",since:1},{className:"qt-checkbox",surface:"common",label:"Checkbox",since:1},{className:"qt-radio",surface:"common",label:"Radio button",since:1},{className:"qt-range",surface:"common",label:"Slider",description:"A range input.",since:1},{className:"qt-prose",surface:"common",label:"Rendered Markdown",description:"Markdown rendered as prose: messages, previews, help.",since:1},{className:"qt-code-block",surface:"common",label:"Code block",description:"A fenced code block in rendered Markdown.",since:1},{className:"qt-code-inline",surface:"common",label:"Inline code",since:1},{className:"qt-progress",surface:"common",label:"Progress bar",description:"The track.",since:1},{className:"qt-progress-fill",surface:"common",label:"Progress bar fill",description:"The filled part of a progress bar.",within:["qt-progress"],states:[{kind:"class",className:"qt-progress-fill-success",label:"Finished well"},{kind:"class",className:"qt-progress-fill-danger",label:"Failed"},{kind:"class",className:"qt-progress-fill-idle",label:"Waiting"}],since:1}];var nb=[{className:"qt-dialog-overlay",surface:"dialog",label:"Dialog backdrop",since:1},{className:"qt-dialog",surface:"dialog",label:"Dialog",description:'The dialog panel. Also carries `data-qt-modal` and `role="dialog"` or `role="alertdialog"`.',within:["qt-dialog-overlay"],states:[{kind:"class",className:"qt-dialog-wide",label:"Page-width dialog"},{kind:"aria",attribute:"aria-busy",values:["true"],label:"Working; Escape and the close button wait"}],since:1},{className:"qt-dialog-header",surface:"dialog",label:"Dialog header",within:["qt-dialog"],since:1},{className:"qt-dialog-title",surface:"dialog",label:"Dialog title",within:["qt-dialog-header"],since:1},{className:"qt-dialog-description",surface:"dialog",label:"Dialog subtitle",within:["qt-dialog-header"],since:1},{className:"qt-dialog-close",surface:"dialog",label:"Dialog close button",within:["qt-dialog-header"],since:1},{className:"qt-dialog-body",surface:"dialog",label:"Dialog body",description:"Always present, and unstyled: the default padding is `qt-dialog-body-default`, which a dialog drops when it lays out its own body.",within:["qt-dialog"],states:[{kind:"class",className:"qt-dialog-body-default",label:"Default padding (the dialog lays out nothing of its own)"}],since:1},{className:"qt-dialog-footer",surface:"dialog",label:"Dialog footer",description:"Always present when there are actions, and unstyled: the default look is `qt-dialog-footer-default`.",within:["qt-dialog"],states:[{kind:"class",className:"qt-dialog-footer-default",label:"Default footer look"}],since:1},{className:"qt-floating-dialog",surface:"dialog",label:"Floating dialog",description:"A non-modal dialog that floats over the page (the Inform dialog, among others). Modal dialogs are `qt-dialog`.",since:1},{className:"qt-slide-over-panel",surface:"dialog",label:"Slide-over panel",description:"A panel that slides in from the edge of the window.",since:1}];var U$=["chats","projects","characters"],ib=[{className:"qt-homepage-container",surface:"home",label:"Home page",description:"A picture a theme paints behind the home page should stand aside while `qt-homepage-backdrop` is set: a dynamic-backgrounds collage is showing instead.",states:[{kind:"class",className:"qt-homepage-backdrop",label:"A dynamic background is showing"}],since:1},{className:"qt-homepage-welcome",surface:"home",label:"Welcome block",description:"The greeting at the top of the home page.",within:["qt-homepage-container"],since:1},{className:"qt-quick-actions",surface:"home",label:"Quick actions row",within:["qt-homepage-container"],since:1},{className:"qt-homepage-grid",surface:"home",label:"Home card grid",description:"Holds the three home cards side by side.",within:["qt-homepage-container"],since:1},{className:"qt-homepage-section",surface:"home",label:"Home page card",within:["qt-homepage-grid"],variants:[{attribute:"data-section",values:U$,description:"Which card: recent chats, active projects or favourite characters."}],since:1},{className:"qt-homepage-section-header",surface:"home",label:"Home card header",within:["qt-homepage-section"],since:1},{className:"qt-homepage-section-title",surface:"home",label:"Home card title",within:["qt-homepage-section-header"],since:1},{className:"qt-homepage-section-link",surface:"home",label:'Home card "View all" link',within:["qt-homepage-section-header"],since:1},{className:"qt-homepage-section-content",surface:"home",label:"Home card body",within:["qt-homepage-section"],since:1},{className:"qt-homepage-row",surface:"home",label:"Home list row",description:"One chat or project in the Recent Chats or Active Projects card.",within:["qt-homepage-section-content"],since:1},{className:"qt-homepage-empty",surface:"home",label:"Home card empty state",within:["qt-homepage-section-content"],since:1},{className:"qt-characters-grid",surface:"home",label:"Favourite characters grid",within:["qt-homepage-section-content"],since:1},{className:"qt-character-card",surface:"home",label:"Favourite character card",within:["qt-characters-grid"],since:1}];var u={};Ke(u,{$brand:()=>ul,$input:()=>Fd,$output:()=>Ud,INVALID:()=>ke,NEVER:()=>cl,TimePrecision:()=>ep,ZodAny:()=>Um,ZodArray:()=>Vm,ZodBase64:()=>Ka,ZodBase64URL:()=>Ga,ZodBigInt:()=>Br,ZodBigIntFormat:()=>Ja,ZodBoolean:()=>Fr,ZodCIDRv4:()=>Za,ZodCIDRv6:()=>Va,ZodCUID:()=>Ra,ZodCUID2:()=>ja,ZodCatch:()=>mf,ZodCodec:()=>hi,ZodCompileAsyncError:()=>Fe,ZodCompileUnsupportedError:()=>F,ZodCreditCard:()=>Dm,ZodCustom:()=>bi,ZodCustomStringFormat:()=>Vt,ZodDate:()=>ui,ZodDefault:()=>sf,ZodDiscriminatedUnion:()=>Gm,ZodE164:()=>Ha,ZodEmail:()=>Da,ZodEmoji:()=>Pa,ZodEnum:()=>Lr,ZodError:()=>a0,ZodExactOptional:()=>es,ZodFile:()=>rf,ZodFirstPartyTypeKind:()=>Tf,ZodFunction:()=>$f,ZodGUID:()=>za,ZodIBAN:()=>zm,ZodIPv4:()=>Fa,ZodIPv6:()=>Ba,ZodISODate:()=>yt,ZodISODateTime:()=>bt,ZodISODuration:()=>kt,ZodISOTime:()=>vt,ZodInstanceOf:()=>If,ZodIntersection:()=>Hm,ZodIssueCode:()=>c0,ZodJWT:()=>Wa,ZodKSUID:()=>Ua,ZodLazy:()=>kf,ZodLiteral:()=>tf,ZodMAC:()=>Em,ZodMap:()=>Qm,ZodNaN:()=>gf,ZodNanoID:()=>qa,ZodNever:()=>Bm,ZodNonOptional:()=>ts,ZodNull:()=>Lm,ZodNullable:()=>af,ZodNumber:()=>Ur,ZodNumberFormat:()=>Kt,ZodObject:()=>pi,ZodOptional:()=>fi,ZodPipe:()=>gi,ZodPrefault:()=>cf,ZodPreprocess:()=>hf,ZodPromise:()=>wf,ZodReadonly:()=>bf,ZodRealError:()=>Ce,ZodRecord:()=>jr,ZodSet:()=>ef,ZodString:()=>Mr,ZodStringFormat:()=>W,ZodSuccess:()=>pf,ZodSymbol:()=>Rm,ZodTemplateLiteral:()=>vf,ZodTransform:()=>nf,ZodTuple:()=>Jm,ZodType:()=>L,ZodULID:()=>La,ZodURL:()=>ci,ZodUUID:()=>Ye,ZodUndefined:()=>jm,ZodUnion:()=>mi,ZodUnknown:()=>Fm,ZodVoid:()=>Zm,ZodXID:()=>Ma,ZodXor:()=>Km,_ZodString:()=>Ea,_default:()=>lf,_function:()=>Ev,any:()=>cv,array:()=>di,base64:()=>By,base64url:()=>Zy,bigint:()=>iv,boolean:()=>qm,catch:()=>ff,check:()=>Dv,cidrv4:()=>Uy,cidrv6:()=>Fy,clone:()=>Z,codec:()=>Cv,coerce:()=>Af,compile:()=>Kd,config:()=>ne,core:()=>nt,creditCard:()=>Ky,cuid:()=>Dy,cuid2:()=>zy,currencyCode:()=>Xy,custom:()=>zv,date:()=>dv,decode:()=>Sm,decodeAsync:()=>Tm,deepPartial:()=>Gv,describe:()=>Pv,discriminatedUnion:()=>bv,e164:()=>Vy,email:()=>$y,emoji:()=>Oy,encode:()=>_m,encodeAsync:()=>Im,endsWith:()=>Tr,enum:()=>Xa,exactOptional:()=>of,file:()=>_v,flattenError:()=>An,float32:()=>ev,float64:()=>tv,formatError:()=>Nn,fromJSONSchema:()=>Vv,function:()=>Ev,getDiscriminatedOption:()=>cu,getErrorMap:()=>d0,globalRegistry:()=>he,gt:()=>We,gte:()=>Ee,guid:()=>_y,hash:()=>Qy,hex:()=>Yy,hostname:()=>Jy,httpUrl:()=>Ny,iban:()=>Gy,includes:()=>Sr,input:()=>Wv,instanceof:()=>Rv,int:()=>Na,int32:()=>rv,int64:()=>ov,intersection:()=>Wm,invertCodec:()=>Av,ipv4:()=>jy,ipv6:()=>My,iso:()=>yi,json:()=>Lv,jwt:()=>Hy,keyof:()=>pv,ksuid:()=>Ry,lazy:()=>xf,length:()=>Mt,literal:()=>$v,locales:()=>Qn,looseObject:()=>gv,looseRecord:()=>vv,lowercase:()=>$r,lt:()=>He,lte:()=>Oe,mac:()=>Ly,map:()=>kv,maxLength:()=>Lt,maxSize:()=>mt,memoizer:()=>Hn,meta:()=>qv,mime:()=>Ar,minLength:()=>rt,minSize:()=>Je,multipleOf:()=>pt,nan:()=>Tv,nanoid:()=>Ey,nativeEnum:()=>wv,negative:()=>va,never:()=>Ya,nonnegative:()=>xa,nonoptional:()=>df,nonpositive:()=>ka,normalize:()=>Nr,null:()=>Mm,nullable:()=>li,nullish:()=>Sv,number:()=>Pm,object:()=>mv,optional:()=>Bt,output:()=>Jv,overwrite:()=>Be,parse:()=>km,parseAsync:()=>xm,partialRecord:()=>yv,pipe:()=>Oa,positive:()=>ya,prefault:()=>uf,preprocess:()=>Mv,prettifyError:()=>gl,promise:()=>Ov,properties:()=>Cr,property:()=>wa,readonly:()=>yf,record:()=>Xm,refine:()=>_f,regex:()=>wr,regexes:()=>je,registry:()=>Go,safeDecode:()=>Am,safeDecodeAsync:()=>Om,safeEncode:()=>Cm,safeEncodeAsync:()=>Nm,safeParse:()=>wm,safeParseAsync:()=>$m,set:()=>xv,setErrorMap:()=>u0,size:()=>jt,slugify:()=>zr,startsWith:()=>Ir,strictObject:()=>fv,string:()=>si,stringFormat:()=>Wy,stringbool:()=>jv,success:()=>Iv,superRefine:()=>Sf,symbol:()=>sv,templateLiteral:()=>Nv,toJSONSchema:()=>Ia,toLowerCase:()=>Er,toUpperCase:()=>Dr,toZod:()=>vn,transform:()=>Qa,treeifyError:()=>fl,trim:()=>Or,tuple:()=>Ym,uint32:()=>nv,uint64:()=>av,ulid:()=>Py,undefined:()=>lv,union:()=>Zr,unknown:()=>Ft,uppercase:()=>_r,url:()=>Ay,util:()=>x,uuid:()=>Sy,uuidv4:()=>Iy,uuidv6:()=>Ty,uuidv7:()=>Cy,validate:()=>On,validateAsync:()=>En,void:()=>uv,withParser:()=>Ho,xid:()=>qy,xor:()=>hv});var nt={};Ke(nt,{$ZodAny:()=>eu,$ZodArray:()=>au,$ZodAsyncError:()=>Ie,$ZodBase64:()=>Fc,$ZodBase64URL:()=>Bc,$ZodBigInt:()=>qo,$ZodBigIntFormat:()=>Jc,$ZodBoolean:()=>Fn,$ZodCIDRv4:()=>Mc,$ZodCIDRv6:()=>Uc,$ZodCUID:()=>Cc,$ZodCUID2:()=>Ac,$ZodCatch:()=>Su,$ZodCheck:()=>Y,$ZodCheckBigIntFormat:()=>tc,$ZodCheckEndsWith:()=>mc,$ZodCheckGreaterThan:()=>ko,$ZodCheckIncludes:()=>dc,$ZodCheckLengthEquals:()=>sc,$ZodCheckLessThan:()=>vo,$ZodCheckLowerCase:()=>cc,$ZodCheckMaxLength:()=>oc,$ZodCheckMaxSize:()=>rc,$ZodCheckMimeType:()=>hc,$ZodCheckMinLength:()=>ac,$ZodCheckMinSize:()=>nc,$ZodCheckMultipleOf:()=>Ql,$ZodCheckNumberFormat:()=>ec,$ZodCheckOverwrite:()=>bc,$ZodCheckProperties:()=>gc,$ZodCheckProperty:()=>fc,$ZodCheckRegex:()=>lc,$ZodCheckSizeEquals:()=>ic,$ZodCheckStartsWith:()=>pc,$ZodCheckStringFormat:()=>br,$ZodCheckUpperCase:()=>uc,$ZodCodec:()=>Zn,$ZodCreditCard:()=>Vc,$ZodCustom:()=>Eu,$ZodCustomStringFormat:()=>Hc,$ZodCyclicError:()=>Bo,$ZodDate:()=>iu,$ZodDefault:()=>xu,$ZodDiscriminatedUnion:()=>uu,$ZodE164:()=>Zc,$ZodEmail:()=>wc,$ZodEmoji:()=>Ic,$ZodEncodeError:()=>ut,$ZodEnum:()=>gu,$ZodError:()=>ml,$ZodExactOptional:()=>vu,$ZodFile:()=>bu,$ZodFunction:()=>Nu,$ZodGUID:()=>kc,$ZodIBAN:()=>Kc,$ZodIPv4:()=>Rc,$ZodIPv6:()=>jc,$ZodISODate:()=>zc,$ZodISODateTime:()=>Dc,$ZodISODuration:()=>qc,$ZodISOTime:()=>Pc,$ZodIntersection:()=>du,$ZodJWT:()=>Gc,$ZodKSUID:()=>Ec,$ZodLazy:()=>Vn,$ZodLiteral:()=>hu,$ZodMAC:()=>Lc,$ZodMap:()=>mu,$ZodNaN:()=>Iu,$ZodNanoID:()=>Tc,$ZodNever:()=>ru,$ZodNonOptional:()=>$u,$ZodNull:()=>Qc,$ZodNullable:()=>ku,$ZodNumber:()=>Po,$ZodNumberFormat:()=>Wc,$ZodObject:()=>Lb,$ZodObjectJIT:()=>su,$ZodOptional:()=>jo,$ZodPipe:()=>Lo,$ZodPrefault:()=>wu,$ZodPreprocess:()=>Tu,$ZodPromise:()=>Ou,$ZodReadonly:()=>Cu,$ZodRealError:()=>Te,$ZodRecord:()=>pu,$ZodRegistry:()=>Ko,$ZodSet:()=>fu,$ZodString:()=>zt,$ZodStringFormat:()=>V,$ZodSuccess:()=>_u,$ZodSymbol:()=>Yc,$ZodTemplateLiteral:()=>Au,$ZodTransform:()=>yu,$ZodTuple:()=>Ro,$ZodType:()=>j,$ZodULID:()=>Nc,$ZodURL:()=>Sc,$ZodUUID:()=>xc,$ZodUndefined:()=>Xc,$ZodUnion:()=>Bn,$ZodUnknown:()=>tu,$ZodVoid:()=>nu,$ZodXID:()=>Oc,$ZodXor:()=>lu,$brand:()=>ul,$constructor:()=>y,$input:()=>Fd,$output:()=>Ud,Doc:()=>Dt,INVALID:()=>ke,JSONSchema:()=>ky,JSONSchemaGenerator:()=>Ta,NEVER:()=>cl,TimePrecision:()=>ep,URL_BAD_FORMAT:()=>$c,URL_UNPARSEABLE:()=>Rn,ZodCompileAsyncError:()=>Fe,ZodCompileUnsupportedError:()=>F,_any:()=>bp,_array:()=>_p,_base64:()=>fa,_base64url:()=>ga,_bigint:()=>up,_boolean:()=>lp,_catch:()=>HT,_check:()=>iy,_cidrv4:()=>pa,_cidrv6:()=>ma,_coercedBigint:()=>dp,_coercedBoolean:()=>cp,_coercedDate:()=>wp,_coercedNumber:()=>rp,_coercedString:()=>Jd,_creditCard:()=>Xd,_cuid:()=>oa,_cuid2:()=>aa,_custom:()=>Ip,_date:()=>xp,_decode:()=>so,_decodeAsync:()=>co,_default:()=>VT,_discriminatedUnion:()=>DT,_e164:()=>ha,_email:()=>Yo,_emoji:()=>na,_encode:()=>ao,_encodeAsync:()=>lo,_endsWith:()=>Tr,_enum:()=>LT,_file:()=>Sp,_float32:()=>ip,_float64:()=>op,_gt:()=>We,_gte:()=>Ee,_guid:()=>Xo,_iban:()=>Qd,_includes:()=>Sr,_int:()=>np,_int32:()=>ap,_int64:()=>pp,_intersection:()=>zT,_ipv4:()=>ua,_ipv6:()=>da,_isoDate:()=>ri,_isoDateTime:()=>ti,_isoDuration:()=>ii,_isoTime:()=>ni,_jwt:()=>ba,_ksuid:()=>ca,_lazy:()=>XT,_length:()=>Mt,_literal:()=>UT,_lowercase:()=>$r,_lt:()=>He,_lte:()=>Oe,_mac:()=>Yd,_map:()=>RT,_max:()=>Oe,_maxLength:()=>Lt,_maxSize:()=>mt,_mime:()=>Ar,_min:()=>Ee,_minLength:()=>rt,_minSize:()=>Je,_multipleOf:()=>pt,_nan:()=>$p,_nanoid:()=>ia,_nativeEnum:()=>MT,_negative:()=>va,_never:()=>vp,_nonnegative:()=>xa,_nonoptional:()=>KT,_nonpositive:()=>ka,_normalize:()=>Nr,_null:()=>hp,_nullable:()=>ZT,_number:()=>tp,_optional:()=>BT,_overwrite:()=>Be,_parse:()=>mr,_parseAsync:()=>fr,_pipe:()=>WT,_positive:()=>ya,_promise:()=>QT,_properties:()=>Cr,_property:()=>wa,_readonly:()=>JT,_record:()=>qT,_refine:()=>Tp,_regex:()=>wr,_safeDecode:()=>po,_safeDecodeAsync:()=>fo,_safeEncode:()=>uo,_safeEncodeAsync:()=>mo,_safeParse:()=>gr,_safeParseAsync:()=>hr,_set:()=>jT,_size:()=>jt,_slugify:()=>zr,_startsWith:()=>Ir,_string:()=>Wd,_stringFormat:()=>Ut,_stringbool:()=>Op,_success:()=>GT,_superRefine:()=>Cp,_symbol:()=>fp,_templateLiteral:()=>YT,_toLowerCase:()=>Er,_toUpperCase:()=>Dr,_transform:()=>FT,_trim:()=>Or,_tuple:()=>PT,_uint32:()=>sp,_uint64:()=>mp,_ulid:()=>sa,_undefined:()=>gp,_union:()=>OT,_unknown:()=>yp,_uppercase:()=>_r,_url:()=>ei,_uuid:()=>Qo,_uuidv4:()=>ea,_uuidv6:()=>ta,_uuidv7:()=>ra,_void:()=>kp,_xid:()=>la,_xor:()=>ET,base64Charset:()=>No,base64urlCharset:()=>Un,canParseURL:()=>_c,clone:()=>Z,compile:()=>Kd,compileFn:()=>Wo,config:()=>ne,createStandardJSONSchemaMethod:()=>Pr,createToJSONSchemaMethod:()=>Dp,decode:()=>E_,decodeAsync:()=>z_,describe:()=>Ap,encode:()=>O_,encodeAsync:()=>D_,extractDefs:()=>gt,finalize:()=>ht,flattenError:()=>An,formatError:()=>Nn,getDiscriminatedOption:()=>cu,globalConfig:()=>me,globalRegistry:()=>he,handleUnrepresentable:()=>ce,initializeContext:()=>ft,isBackEdge:()=>Vo,isRecursiveSchema:()=>Zo,isValidBase64:()=>Mn,isValidBase64URL:()=>Oo,isValidCIDRv6:()=>Ao,isValidCreditCard:()=>Eo,isValidIBAN:()=>Do,isValidIPv6:()=>Ln,isValidJWT:()=>zo,locales:()=>Qn,memoizer:()=>Hn,mergeValues:()=>yr,meta:()=>Np,parse:()=>io,parseAsync:()=>oo,parseURLObject:()=>qb,prettifyError:()=>gl,process:()=>K,processSchema:()=>K,regexes:()=>je,registry:()=>Go,safeDecode:()=>q_,safeDecodeAsync:()=>j_,safeEncode:()=>P_,safeEncodeAsync:()=>R_,safeParse:()=>I_,safeParseAsync:()=>T_,standardProps:()=>So,stripTabAndNewline:()=>jn,toDotPath:()=>gb,toJSONSchema:()=>Ia,toZod:()=>vn,treeifyError:()=>fl,urlHostnameOk:()=>To,urlProtocolOk:()=>Co,util:()=>x,validate:()=>On,validateAsync:()=>En,validateURL:()=>Io,version:()=>yc,withParser:()=>Ho});var x={};Ke(x,{BIGINT_FORMAT_RANGES:()=>_n,CONSTANT_CATCH:()=>ro,Class:()=>Qs,NUMBER_FORMAT_RANGES:()=>$n,aborted:()=>ve,allowsEval:()=>rl,assert:()=>K$,assertEqual:()=>F$,assertIs:()=>Z$,assertNever:()=>V$,assertNotEqual:()=>B$,assignProp:()=>ge,attachSchema:()=>Sn,base64ToUint8Array:()=>cb,base64urlToUint8Array:()=>d_,cached:()=>cr,captureStackTrace:()=>eo,cleanEnum:()=>u_,cleanRegex:()=>et,clone:()=>Z,cloneDef:()=>W$,codePointLength:()=>Ot,constantCatch:()=>sl,createTransparentProxy:()=>t_,defineLazy:()=>el,defineLazyInternal:()=>U,derived:()=>g_,esc:()=>ye,escapeRegex:()=>Re,explicitlyAborted:()=>ol,extend:()=>i_,finalizeIssue:()=>Se,floatSafeRemainder:()=>kn,getElementAtPath:()=>J$,getEnumValues:()=>sr,getLengthableOrigin:()=>Tn,getParsedType:()=>e_,getSizableOrigin:()=>In,hexToUint8Array:()=>m_,hide:()=>Cn,installLazyProp:()=>v_,isObject:()=>Nt,isPlainObject:()=>qe,issue:()=>pr,joinValues:()=>v,jsonStringifyReplacer:()=>lr,members:()=>al,merge:()=>a_,mergeDefs:()=>Ue,normalizeParams:()=>T,nullish:()=>Qi,numKeys:()=>Q$,objectClone:()=>G$,omit:()=>n_,optionalKeys:()=>il,own:()=>ct,parsedType:()=>$,partial:()=>s_,pick:()=>r_,prefixIssues:()=>_e,primitiveTypes:()=>nl,promiseAllObject:()=>Y$,propertyKeyTypes:()=>wn,randomString:()=>X$,rawShape:()=>ur,required:()=>l_,safeExtend:()=>o_,shallowClone:()=>xn,sizeCaps:()=>dr,slugify:()=>tl,stringifyPrimitive:()=>w,toZod:()=>vn,uint8ArrayToBase64:()=>ub,uint8ArrayToBase64url:()=>p_,uint8ArrayToHex:()=>f_,unwrapMessage:()=>ar});function F$(t){return t}s(F$,"assertEqual");function B$(t){return t}s(B$,"assertNotEqual");function vn(){return t=>t}s(vn,"toZod");function Z$(t){}s(Z$,"assertIs");function V$(t){throw new Error("Unexpected value in exhaustive check")}s(V$,"assertNever");function K$(t){}s(K$,"assert");function sr(t){let e=Object.values(t).filter(i=>typeof i=="number");return Object.entries(t).filter(([i,r])=>e.indexOf(+i)===-1).map(([i,r])=>r)}s(sr,"getEnumValues");function v(t,e="|"){return t.map(n=>w(n)).join(e)}s(v,"joinValues");function lr(t,e){return typeof e=="bigint"?e.toString():e}s(lr,"jsonStringifyReplacer");var Xs=class{static{s(this,"Cached")}constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;return e!==void 0&&(this._value=e(),this._getter=void 0),this._value}};function cr(t){return new Xs(t)}s(cr,"cached");function Qi(t){return t==null}s(Qi,"nullish");function et(t){let e=t.startsWith("^")?1:0,n=t.endsWith("$")?t.length-1:t.length;return t.slice(e,n)}s(et,"cleanRegex");function kn(t,e){let n=t/e,i=Math.round(n),r=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-i)<r?0:n-i}s(kn,"floatSafeRemainder");var ob=Symbol("evaluating");function el(t,e,n){let i;Object.defineProperty(t,e,{get(){if(i!==ob)return i===void 0&&(i=ob,i=n()),i},set(r){Object.defineProperty(t,e,{value:r})},configurable:!0})}s(el,"defineLazy");function G$(t){return Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t))}s(G$,"objectClone");function ge(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0})}s(ge,"assignProp");function ur(t){let e=Object.getOwnPropertyDescriptor(t,"shape");return e?.get?e.get.raw:e?.value}s(ur,"rawShape");function Qe(t){return ur(t._zod.def)??t._zod.def.shape}s(Qe,"sourceShape");function ab(t,e,n){Object.defineProperty(t,e,{get(){let i=n();return ge(this,e,i),i},enumerable:!0,configurable:!0})}s(ab,"deferProp");function sb(t,e,n){e in t?ge(t,e,n):t[e]=n}s(sb,"putProp");function At(t,e,n,i){let r=Qe(e);for(let o of n){let a=Object.getOwnPropertyDescriptor(r,o);a.enumerable&&(a.get?ab(t,o,()=>{let l=e._zod.def.shape[o];return i?i(l,o):l}):sb(t,o,i?i(a.value,o):a.value))}}s(At,"mirrorShape");function H$(t,e){for(let n of Reflect.ownKeys(e)){let i=Object.getOwnPropertyDescriptor(e,n);i.enumerable&&(i.get?ab(t,n,()=>e[n]):sb(t,n,i.value))}}s(H$,"mirrorProps");function Ue(...t){let e={};for(let n of t){let i=Object.getOwnPropertyDescriptors(n);Object.assign(e,i)}return Object.defineProperties({},e)}s(Ue,"mergeDefs");function W$(t){return Ue(t._zod.def)}s(W$,"cloneDef");function J$(t,e){return e?e.reduce((n,i)=>n?.[i],t):t}s(J$,"getElementAtPath");function Y$(t){let e=Object.keys(t),n=e.map(i=>t[i]);return Promise.all(n).then(i=>{let r={};for(let o=0;o<e.length;o++)r[e[o]]=i[o];return r})}s(Y$,"promiseAllObject");function X$(t=10){let e="abcdefghijklmnopqrstuvwxyz",n="";for(let i=0;i<t;i++)n+=e[Math.floor(Math.random()*e.length)];return n}s(X$,"randomString");function ye(t){return JSON.stringify(t)}s(ye,"esc");function tl(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}s(tl,"slugify");var eo="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function Nt(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}s(Nt,"isObject");var rl=cr(()=>{if(me.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});function qe(t){if(Nt(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!="function")return!0;let n=e.prototype;return!(Nt(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}s(qe,"isPlainObject");function xn(t){return qe(t)?{...t}:Array.isArray(t)?[...t]:t instanceof Map?new Map(t):t instanceof Set?new Set(t):t}s(xn,"shallowClone");function Q$(t){let e=0;for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}s(Q$,"numKeys");var e_=s(t=>{let e=typeof t;switch(e){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(t)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(t)?"array":t===null?"null":t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?"promise":typeof Map<"u"&&t instanceof Map?"map":typeof Set<"u"&&t instanceof Set?"set":typeof Date<"u"&&t instanceof Date?"date":typeof File<"u"&&t instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${e}`)}},"getParsedType"),wn=new Set(["string","number","symbol"]),nl=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Re(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}s(Re,"escapeRegex");function Z(t,e,n){let i=new t._zod.constr(e??t._zod.def);return(!e||n?.parent)&&(i._zod.parent=t),i}s(Z,"clone");function T(t){let e=t;if(!e)return{};if(typeof e=="string")return{error:s(()=>e,"error")};if(e?.message!==void 0){if(e?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:s(()=>e.error,"error")}:e}s(T,"normalizeParams");function t_(t){let e;return new Proxy({},{get(n,i,r){return e??(e=t()),Reflect.get(e,i,r)},set(n,i,r,o){return e??(e=t()),Reflect.set(e,i,r,o)},has(n,i){return e??(e=t()),Reflect.has(e,i)},deleteProperty(n,i){return e??(e=t()),Reflect.deleteProperty(e,i)},ownKeys(n){return e??(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(n,i){return e??(e=t()),Reflect.getOwnPropertyDescriptor(e,i)},defineProperty(n,i,r){return e??(e=t()),Reflect.defineProperty(e,i,r)}})}s(t_,"createTransparentProxy");function w(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}s(w,"stringifyPrimitive");function il(t){return Object.keys(t).filter(e=>t[e]._zod.optin!==void 0&&t[e]._zod.optout==="optional")}s(il,"optionalKeys");var $n={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},_n={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function r_(t,e){let n=t._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o={};return At(o,t,to(t,e)),Z(t,Ue(n,{shape:o,checks:[]}))}s(r_,"pick");function to(t,e){let n=Qe(t),i=[];for(let r of Reflect.ownKeys(e)){if(!Object.getOwnPropertyDescriptor(n,r)?.enumerable)throw new Error(`Unrecognized key: "${String(r)}"`);e[r]&&i.push(r)}return i}s(to,"maskedKeys");function n_(t,e){let n=t._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=new Set(to(t,e)),a={};return At(a,t,Reflect.ownKeys(Qe(t)).filter(l=>!o.has(l))),Z(t,Ue(n,{shape:a,checks:[]}))}s(n_,"omit");function i_(t,e){if(!qe(e))throw new Error("Invalid input to extend: expected a plain object");let n=t._zod.def.checks;if(n&&n.length>0){let r=Qe(t);for(let o of Reflect.ownKeys(e))if(Object.getOwnPropertyDescriptor(r,o)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Z(t,Ue(t._zod.def,{shape:lb(t,e)}))}s(i_,"extend");function lb(t,e){let n={};return At(n,t,Reflect.ownKeys(Qe(t))),H$(n,e),n}s(lb,"extended");function o_(t,e){if(!qe(e))throw new Error("Invalid input to safeExtend: expected a plain object");return Z(t,Ue(t._zod.def,{shape:lb(t,e)}))}s(o_,"safeExtend");function a_(t,e){if(!e?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(t._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n={};At(n,t,Reflect.ownKeys(Qe(t))),At(n,e,Reflect.ownKeys(Qe(e)));let i=Ue(t._zod.def,{shape:n,get catchall(){return e._zod.def.catchall},checks:e._zod.def.checks??[]});return Z(t,i)}s(a_,"merge");function s_(t,e,n,i="partial"){let o=e._zod.def.checks;if(o&&o.length>0)throw new Error(`.${i}() cannot be used on object schemas containing refinements`);let l=n?new Set(to(e,n)):void 0,c={};return At(c,e,Reflect.ownKeys(Qe(e)),t&&((d,p)=>l&&!l.has(p)?d:new t({type:"optional",innerType:d}))),Z(e,Ue(e._zod.def,{shape:c,checks:[]}))}s(s_,"partial");function l_(t,e,n){let i=n?new Set(to(e,n)):void 0,r={};return At(r,e,Reflect.ownKeys(Qe(e)),(o,a)=>i&&!i.has(a)?o:new t({type:"nonoptional",innerType:o})),Z(e,Ue(e._zod.def,{shape:r}))}s(l_,"required");function ve(t,e=0){if(t.aborted===!0)return!0;for(let n=e;n<t.issues.length;n++)if(t.issues[n]?.continue!==!0)return!0;return!1}s(ve,"aborted");function ol(t,e=0){if(t.aborted===!0)return!0;for(let n=e;n<t.issues.length;n++)if(t.issues[n]?.continue===!1)return!0;return!1}s(ol,"explicitlyAborted");function _e(t,e){return e.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(t),n})}s(_e,"prefixIssues");function ar(t){return typeof t=="string"?t:t?.message}s(ar,"unwrapMessage");function dr(t){let e=[];for(let n of t??[]){let i=n._zod.def;if(!/_(length|size)$|_equals$/.test(i.check))break;let r=i.maximum??i.length??i.size;r>=0&&e.push([r,n])}return e}s(dr,"sizeCaps");function Sn(t,e,n){var i;for(let r=e;r<t.length;r++)(i=t[r]).schema??(i.schema=n)}s(Sn,"attachSchema");function Se(t,e,n){var i;let r=t.inst?._zod?.traits;r?.has("$ZodType")&&(r.has("$ZodCheck")?(i=t).schema??(i.schema=t.inst):t.schema=t.inst);let o=t.schema!==t.inst?t.schema?._zod.def?.error:void 0,a=t.message?t.message:ar(t.inst?._zod.def?.error?.(t))??ar(o?.(t))??ar(e?.error?.(t))??ar(n.customError?.(t))??ar(n.localeError?.(t))??"Invalid input",l={};for(let c of Object.keys(t))c==="inst"||c==="schema"||c==="continue"||c==="input"||c==="__proto__"||(l[c]=t[c]);return l.path??(l.path=[]),l.message=a,e?.reportInput&&(l.input=t.input),l}s(Se,"finalizeIssue");function In(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}s(In,"getSizableOrigin");var c_=/[\uD800-\uDBFF]/;function Ot(t){let e=t.length;if(!c_.test(t))return e;let n=e;for(let i=0;i<e-1;i++)(t.charCodeAt(i)&64512)===55296&&(t.charCodeAt(i+1)&64512)===56320&&(n--,i++);return n}s(Ot,"codePointLength");function Tn(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}s(Tn,"getLengthableOrigin");function $(t){let e=typeof t;switch(e){case"number":return Number.isNaN(t)?"nan":"number";case"object":{if(t===null)return"null";if(Array.isArray(t))return"array";let n=t;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return e}s($,"parsedType");function pr(...t){let[e,n,i]=t;return typeof e=="string"?{message:e,code:"custom",input:n,inst:i}:{...e}}s(pr,"issue");function u_(t){return Object.entries(t).filter(([e,n])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}s(u_,"cleanEnum");function cb(t){let e=atob(t),n=new Uint8Array(e.length);for(let i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return n}s(cb,"base64ToUint8Array");function ub(t){let e="";for(let n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return btoa(e)}s(ub,"uint8ArrayToBase64");function d_(t){let e=t.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-e.length%4)%4);return cb(e+n)}s(d_,"base64urlToUint8Array");function p_(t){return ub(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}s(p_,"uint8ArrayToBase64url");function m_(t){let e=t.replace(/^0x/,"");if(e.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(e.length/2);for(let i=0;i<e.length;i+=2)n[i/2]=Number.parseInt(e.slice(i,i+2),16);return n}s(m_,"hexToUint8Array");function f_(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}s(f_,"uint8ArrayToHex");var Qs=class{static{s(this,"Class")}constructor(...e){}};function al(t,e){for(let n in e){let i=Object.getOwnPropertyDescriptor(e,n);i.get?Object.defineProperty(t,n,{...i,enumerable:!1}):h_(t,n,i.value)}}s(al,"members");function ct(t,e,n,i=!0){return Object.defineProperty(t,e,{configurable:!0,writable:!0,enumerable:i,value:n}),n}s(ct,"own");function Cn(t,e,n){return ct(t,e,n,!1)}s(Cn,"hide");function g_(t,e){for(let n in t){let i=t[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!0,get(){return ct(this,n,i(this))},set(r){ct(this,n,r)}})}return e}s(g_,"derived");function h_(t,e,n){Object.defineProperty(t,e,{configurable:!0,get(){return this==null?n:ct(this,e,n.bind(this))},set(i){ct(this,e,i)}})}s(h_,"defineBound");function b_(t,e){let n=Object.getPrototypeOf(t);return e in n?void 0:n}s(b_,"claim");var Ys,lt=!1,y_={configurable:!0,get(){lt=!0}};function U(t,e,n){let i=Object.getPrototypeOf(t._zod);if(e in i&&Ys!==t._zod){Ys=void 0;return}Ys=t._zod,Object.defineProperty(i,e,{configurable:!0,get(){Object.defineProperty(this,e,y_);let r=lt;lt=!1;try{let o=n(this);return lt?delete this[e]:Object.defineProperty(this,e,{configurable:!0,writable:!0,value:o}),lt=lt||r,o}catch(o){throw delete this[e],lt=lt||r,o}},set(r){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:r})}})}s(U,"defineLazyInternal");function v_(t,e,n,i){let r=b_(t,e);r&&Object.defineProperty(r,e,{configurable:!0,get(){let o={configurable:!0,writable:!0,enumerable:i,value:void 0};return Object.defineProperty(this,e,o),o.value=n(this),Object.defineProperty(this,e,o),o.value},set(o){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:i,value:o})}})}s(v_,"installLazyProp");var ro="~constantCatch";function sl(t){let e=s(()=>t,"fn");return e[ro]=!0,e}s(sl,"constantCatch");var db,cl=Object.freeze({status:"aborted"}),ll={value:void 0,enumerable:!1},pb="captureStackTrace"in Error?Error:null;function k_(t){let e=pb;if(e){let n=e.stackTraceLimit;if(typeof n=="number"){try{e.stackTraceLimit=0}catch{return pb=null,new t}try{return new t}finally{e.stackTraceLimit=n}}}return new t}s(k_,"newError");function y(t,e,n,i){let r={};function o(f){this.def=f,this.constr=g,this.traits=new Set}s(o,"Internals"),o.prototype=r;let a=n,l=a&&new WeakSet;function c(f,m){if(f._zod){if(f._zod.traits.has(t))return}else{ll.value=new o(m);try{Object.defineProperty(f,"_zod",ll)}finally{ll.value=void 0}}if(f._zod.traits.add(t),e(f,m),l){let b=Object.getPrototypeOf(f),k=f._zod.constr.prototype,I=b;for(;I&&I!==k;)I=Object.getPrototypeOf(I);let C=I??b;l.has(C)||(l.add(C),al(C,a))}let h=g.prototype;for(let b in h)Object.prototype.hasOwnProperty.call(h,b)&&(b in f||(f[b]=h[b].bind(f)))}s(c,"init");let d=i?.Parent??Object;class p extends d{static{s(this,"Definition")}}Object.defineProperty(p,"name",{value:t});function g(f){let m=i?.Parent?k_(p):this;c(m,f);let h=m._zod.deferred;if(h){for(let k of h)k();m._zod.deferred=void 0}let b=globalThis.__zod_globalConfig?.postProcessor;return b&&b(m),m}return s(g,"_"),Object.defineProperty(g,"init",{value:c}),Object.defineProperty(g,Symbol.hasInstance,{value:s(f=>i?.Parent&&f instanceof i.Parent?!0:f?._zod?.traits?.has(t),"value")}),Object.defineProperty(g,"name",{value:t}),g}s(y,"$constructor");var ul=Symbol("zod_brand"),Ie=class extends Error{static{s(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},ut=class extends Error{static{s(this,"$ZodEncodeError")}constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};(db=globalThis).__zod_globalConfig??(db.__zod_globalConfig={});var me=globalThis.__zod_globalConfig;function ne(t){return t&&Object.assign(me,t),me}s(ne,"config");function x_(){let t=this._zod;return t.message??(t.message=JSON.stringify(t.def,lr,2)),t.message}s(x_,"_getMessage");function w_(t){this._zod.message=t}s(w_,"_setMessage");var $_={get:x_,set:w_,enumerable:!0,configurable:!0},pl={value:void 0,enumerable:!1},mb=new WeakSet([Object.prototype,Error.prototype]),fb=s((t,e)=>{t.name="$ZodError",pl.value=e,Object.defineProperty(t,"issues",pl),pl.value=void 0,Object.defineProperty(t,"message",$_);let n=Object.getPrototypeOf(t);mb.has(n)||(mb.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let i=s(()=>this.message,"value");return Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0})}}))},"initializer"),ml=y("$ZodError",fb),Te=y("$ZodError",fb,void 0,{Parent:Error});function __(t,e,n){return Object.prototype.hasOwnProperty.call(t,e)||(e==="__proto__"?Object.defineProperty(t,e,{value:n(),writable:!0,enumerable:!0,configurable:!0}):t[e]=n()),t[e]}s(__,"node");function An(t,e=n=>n.message){let n={},i=[];for(let r of t.issues)r.path.length>0?__(n,r.path[0],()=>[]).push(e(r)):i.push(e(r));return{formErrors:i,fieldErrors:n}}s(An,"flattenError");function Nn(t,e=n=>n.message){let n={_errors:[]},i=s((r,o=[])=>{for(let a of r.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(l=>i({issues:l},[...o,...a.path]));else if(a.code==="invalid_key")i({issues:a.issues},[...o,...a.path]);else if(a.code==="invalid_element")i({issues:a.issues},[...o,...a.path]);else{let l=[...o,...a.path];if(l.length===0)n._errors.push(e(a));else{let c=n,d=0;for(;d<l.length;){let p=l[d],g=d===l.length-1;if(p==="_errors"){g&&c._errors.push(e(a)),d++;continue}Object.prototype.hasOwnProperty.call(c,p)||Object.defineProperty(c,p,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let f=c[p];g&&f._errors.push(e(a)),c=f,d++}}}},"processError");return i(t),n}s(Nn,"formatError");function fl(t,e=n=>n.message){let n={errors:[]},i=s((r,o=[])=>{var a;for(let l of r.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(c=>i({issues:c},[...o,...l.path]));else if(l.code==="invalid_key")i({issues:l.issues},[...o,...l.path]);else if(l.code==="invalid_element")i({issues:l.issues},[...o,...l.path]);else{let c=[...o,...l.path];if(c.length===0){n.errors.push(e(l));continue}let d=n,p=0;for(;p<c.length;){let g=c[p],f=p===c.length-1;typeof g=="string"?(d.properties??(d.properties={}),Object.prototype.hasOwnProperty.call(d.properties,g)||Object.defineProperty(d.properties,g,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0}),d=d.properties[g]):(d.items??(d.items=[]),(a=d.items)[g]??(a[g]={errors:[]}),d=d.items[g]),f&&d.errors.push(e(l)),p++}}},"processError");return i(t),n}s(fl,"treeifyError");function gb(t){let e=[],n=t.map(i=>typeof i=="object"?i.key:i);for(let i of n)typeof i=="number"?e.push(`[${i}]`):typeof i=="symbol"?e.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?e.push(`[${JSON.stringify(i)}]`):(e.length&&e.push("."),e.push(i));return e.join("")}s(gb,"toDotPath");function gl(t){let e=[],n=[...t.issues].sort((i,r)=>(i.path??[]).length-(r.path??[]).length);for(let i of n)e.push(`✖ ${i.message}`),i.path?.length&&e.push(` → at ${gb(i.path)}`);return e.join(`
90
+ */`;var Xi=Yi.flatMap(t=>t.tokens),Uz=new Map(Xi.map(t=>[t.name,t])),Fz=new Map(Yi.map(t=>[t.id,t]));var Xh=[{className:"qt-app-layout",surface:"app-shell",label:"App layout",description:"The whole signed-in window: the left rail beside the main column.",since:1},{className:"qt-skip-link",surface:"app-shell",label:"Skip-to-content link",description:"Visually hidden until focused.",within:["qt-app-layout"],since:1},{className:"qt-app-main",surface:"app-shell",label:"Main column",description:"Everything right of the left rail: the content and the footer.",within:["qt-app-layout"],since:1},{className:"qt-app-content",surface:"app-shell",label:"Main content (`<main>`)",description:"The `<main>` landmark. Inside the signed-in shell it holds the page toolbar and the scroll area; on the setup, unlock and sign-in pages it is the whole page.",since:1},{className:"qt-app-scroll",surface:"app-shell",label:"Content scroll area",description:"The scrolling region under the page toolbar that holds the page or the workspace.",within:["qt-app-content"],since:1},{className:"qt-page-toolbar",surface:"app-shell",label:"Page toolbar",description:"The one global toolbar across the top of the content; it follows the focused workspace pane.",within:["qt-app-content"],since:1},{className:"qt-page-toolbar-left",surface:"app-shell",label:"Page toolbar, left group",within:["qt-page-toolbar"],since:1},{className:"qt-page-toolbar-center",surface:"app-shell",label:"Page toolbar, centre group",within:["qt-page-toolbar"],since:1},{className:"qt-page-toolbar-right",surface:"app-shell",label:"Page toolbar, right group",within:["qt-page-toolbar"],since:1},{className:"qt-footer",surface:"app-shell",label:"Footer",description:"The line at the foot of the main column: version, data directory, copyright.",within:["qt-app-main"],since:1}];var L$=["facts","dossier","metadata","physical-description","scenarios","vault","conversations","memories","bulk-edits","wardrobe","inventory","atlas","photos","depiction-guidelines","trust","talents","wardrobe-permissions","control","connection-profile","conversation-partner","image-profile","timestamps","chat-tools"],Qh=[{className:"qt-character-page",surface:"character",label:"Character page",description:"Also carries the older bare `character-page` class.",since:1},{className:"qt-character-header",surface:"character",label:"Character header",description:"The sticky header: back link, avatar, name and meta, actions.",within:["qt-character-page"],since:1},{className:"qt-character-avatar",surface:"character",label:"Character avatar",description:"The avatar region; a menu button for changing the picture.",within:["qt-character-header"],since:1},{className:"qt-character-identity",surface:"character",label:"Character name and meta",description:"Name, favourite star, title, pronouns, age, kind badges, then tags and stats.",within:["qt-character-header"],since:1},{className:"qt-character-tags",surface:"character",label:"Character tags",description:"Alias and group pills.",within:["qt-character-identity"],since:1},{className:"qt-character-stats",surface:"character",label:"Character stats",description:"The counts line (chats, memories, photos, …).",within:["qt-character-identity"],since:1},{className:"qt-character-actions",surface:"character",label:"Character actions",description:"Start a chat, and the action menus.",within:["qt-character-header"],since:1},{className:"qt-character-archived-banner",surface:"character",label:"Archived banner",description:"Shown when the character rests in the archive.",within:["qt-character-page"],since:1},{className:"qt-section-card",surface:"character",label:"Character field section",description:"One card of a character-page section. Also a `qt-card`.",within:["qt-character-page"],variants:[{attribute:"data-section",values:L$,description:"Which section, by its anchor."}],since:1},{className:"qt-section-card-header",surface:"character",label:"Field section header",within:["qt-section-card"],since:1},{className:"qt-section-card-body",surface:"character",label:"Field section body",within:["qt-section-card"],since:1}];var eb=["home","salon","salon-list","terminal","document","aurora","prospero","scriptorium","settings","files","photos","scenarios","brahma","wardrobe","inventory","atlas","profile","about","generate-image","document-standalone","character-new","character","settings-wizard","custom-tools","theme-editor","theme-specimens"];var M$=["left","right"],Ws={attribute:"data-pane",values:M$,description:"Which pane: `left`, or `right` when the workspace is split."},Js={attribute:"data-tab-kind",values:eb,description:"What the tab holds: one of the workspace tab kinds (`home`, `salon`, `character`, `settings`, …)."},tb=[{className:"qt-workspace",surface:"workspace",label:"Workspace",description:"The two-pane tab host: a grid of pane chrome on top, tab content beneath.",within:["qt-app-scroll"],since:1},{className:"qt-workspace-backdrop",surface:"workspace",label:"Workspace backdrop",description:"The single story background behind both panes.",within:["qt-workspace"],since:1},{className:"qt-workspace-backdrop-layer",surface:"workspace",label:"Workspace backdrop layer",within:["qt-workspace-backdrop"],since:1},{className:"qt-workspace-pane-chrome",surface:"workspace",label:"Pane chrome",description:"A pane's tab strip area, above its content.",within:["qt-workspace"],variants:[Ws],since:1},{className:"qt-tab-strip",surface:"workspace",label:"Tab strip",within:["qt-workspace-pane-chrome"],variants:[Ws],since:1},{className:"qt-tab-select",surface:"workspace",label:"Tab button",description:"The focusable part of a workspace tab (icon and title).",within:["qt-tab"],states:[{kind:"aria",attribute:"aria-selected",values:["true","false"],label:"The visible tab in its pane"}],since:1},{className:"qt-tab-icon",surface:"workspace",label:"Tab icon",within:["qt-tab"],since:1},{className:"qt-tab-label",surface:"workspace",label:"Tab title",within:["qt-tab-select"],since:1},{className:"qt-tab-close",surface:"workspace",label:"Tab close button",within:["qt-tab"],since:1},{className:"qt-tab-pane",surface:"workspace",label:"Tab content",description:"One tab's view. Hidden tabs stay mounted (and carry `hidden`), so scope to the visible one with `:not(.hidden)`.",within:["qt-workspace"],variants:[Ws,Js],since:1},{className:"qt-workspace-divider",surface:"workspace",label:"Split divider",description:"The draggable bar between split panes.",within:["qt-workspace"],since:1},{className:"qt-workspace-divider-grip",surface:"workspace",label:"Split divider grip",within:["qt-workspace-divider"],since:1},{className:"qt-workspace-empty",surface:"workspace",label:"Empty pane",within:["qt-workspace"],since:1},{className:"qt-tab-drop-zone",surface:"workspace",label:"Split drop zone",description:"Shown while a tab is dragged in an unsplit workspace.",within:["qt-workspace"],since:1}];function z(t,e,n){return{className:t,surface:"common",label:e,...n?{description:n}:{},since:1}}s(z,"family");var rb=[z("qt-page-container","Page container","The width-limited column most full pages (Settings, a character, the lists) sit in."),z("qt-card","Card"),{...z("qt-card-header","Card header"),within:["qt-card"]},z("qt-card-title","Card title"),z("qt-card-subtitle","Card subtitle"),z("qt-card-description","Card description"),z("qt-card-interactive","Clickable card"),z("qt-button","Button","The base button; usually paired with a variant class."),z("qt-button-primary","Primary button"),z("qt-button-secondary","Secondary button"),z("qt-button-ghost","Ghost button"),z("qt-button-destructive","Destructive button"),z("qt-button-success","Success button"),z("qt-button-warning","Warning button"),z("qt-button-sm","Small button","A size modifier, beside a variant."),z("qt-button-icon","Icon button"),{...z("qt-input","Text input"),states:[{kind:"class",className:"qt-input-error",label:"Invalid"}]},z("qt-textarea","Text area"),z("qt-select","Select"),z("qt-select-sm","Small select"),z("qt-badge","Badge"),z("qt-badge-primary","Primary badge"),z("qt-badge-secondary","Secondary badge"),z("qt-badge-success","Success badge"),z("qt-badge-warning","Warning badge"),z("qt-badge-info","Info badge"),z("qt-badge-destructive","Destructive badge"),z("qt-badge-outline","Outline badge"),z("qt-badge-character","Character badge"),z("qt-badge-user-character","Operator-character badge"),z("qt-badge-chat","Chat badge"),z("qt-badge-tag","Tag badge"),z("qt-badge-memory","Memory badge"),z("qt-badge-project","Project badge"),z("qt-alert","Alert"),z("qt-alert-info","Info alert"),z("qt-alert-success","Success alert"),z("qt-alert-warning","Warning alert"),z("qt-alert-error","Error alert"),z("qt-heading-1","Heading, level 1 size"),z("qt-heading-2","Heading, level 2 size"),z("qt-heading-3","Heading, level 3 size"),z("qt-heading-4","Heading, level 4 size"),z("qt-page-title","Page title","The large title at the head of a page."),z("qt-section-title","Section title","A heading over a card, panel or settings group."),z("qt-text-section","Section heading text","A smaller section heading inside a form or panel."),z("qt-text-brand","Brand-coloured text","Text in the brand colour: links, the active item, small accents."),z("qt-font-brand","Brand name","The Quilltap name, set in the brand font."),z("qt-spinner","Spinner","A loading spinner; `qt-spinner-sm` beside it for the small one."),z("qt-thinking-indicator","Thinking mark","The mark shown while a model is thinking; it animates by --qt-thinking-duration and --qt-thinking-origin."),z("qt-empty-state-title","Empty-state title","The heading of the notice shown where a list has nothing in it."),{...z("qt-wikilink","Wiki link","A [[link]] between documents in rendered text."),states:[{kind:"class",className:"qt-wikilink-broken",label:"Points at nothing"}]},z("qt-file-preview-panel","File preview panel","The panel a text file is previewed on."),z("qt-diagram","Diagram","A rendered diagram in a message or document, with its toolbar."),z("qt-avatar-image","Avatar picture box","The framed box holding an avatar picture or its initial."),z("qt-avatar-labels","Avatar caption","Name and title beneath an avatar."),{...z("qt-avatar-name","Avatar name"),within:["qt-avatar-labels"]},{...z("qt-avatar-title","Avatar title"),within:["qt-avatar-labels"]},z("qt-tab-group","In-page tab group","Entity-page tabs (a character, a project) and small view switchers."),{className:"qt-tab",surface:"common",label:"Tab",description:"Shared by the workspace tab strip (`.qt-tab-strip .qt-tab`) and the in-page tabs (`.qt-tab-group .qt-tab`): scope by the parent. Only workspace tabs carry `data-tab-kind`.",within:["qt-tab-strip","qt-tab-group"],variants:[Js],states:[{kind:"class",className:"qt-tab-active",label:"The selected tab"},{kind:"class",className:"qt-tab-dragging",label:"Being dragged (workspace)"}],since:1},{className:"qt-empty-state",surface:"common",label:"Empty state",description:'The "nothing here yet" block; its title is `qt-empty-state-title`.',since:1},{className:"qt-empty-state-icon",surface:"common",label:"Empty state icon",within:["qt-empty-state"],since:1},{className:"qt-empty-state-description",surface:"common",label:"Empty state description",within:["qt-empty-state"],since:1},{className:"qt-empty-state-action",surface:"common",label:"Empty state action",description:"The button or link under an empty state.",within:["qt-empty-state"],since:1},{className:"qt-loading-state",surface:"common",label:"Loading state",description:"The block shown while a list or card is fetched.",since:1},{className:"qt-tooltip",surface:"common",label:"Tooltip",since:1},{className:"qt-popover",surface:"common",label:"Popover",description:"A small anchored panel: a delete confirmation, the character picker.",since:1},{className:"qt-entity-card",surface:"common",label:"Entity card",description:"A character, chat, group or project in a list.",since:1},{className:"qt-label",surface:"common",label:"Field label",description:"A form field's label.",since:1},{className:"qt-link",surface:"common",label:"Link",description:"An ordinary text link.",since:1},{className:"qt-checkbox",surface:"common",label:"Checkbox",since:1},{className:"qt-radio",surface:"common",label:"Radio button",since:1},{className:"qt-range",surface:"common",label:"Slider",description:"A range input.",since:1},{className:"qt-prose",surface:"common",label:"Rendered Markdown",description:"Markdown rendered as prose: messages, previews, help.",since:1},{className:"qt-code-block",surface:"common",label:"Code block",description:"A fenced code block in rendered Markdown.",since:1},{className:"qt-code-inline",surface:"common",label:"Inline code",since:1},{className:"qt-progress",surface:"common",label:"Progress bar",description:"The track.",since:1},{className:"qt-progress-fill",surface:"common",label:"Progress bar fill",description:"The filled part of a progress bar.",within:["qt-progress"],states:[{kind:"class",className:"qt-progress-fill-success",label:"Finished well"},{kind:"class",className:"qt-progress-fill-danger",label:"Failed"},{kind:"class",className:"qt-progress-fill-idle",label:"Waiting"}],since:1}];var nb=[{className:"qt-dialog-overlay",surface:"dialog",label:"Dialog backdrop",since:1},{className:"qt-dialog",surface:"dialog",label:"Dialog",description:'The dialog panel. Also carries `data-qt-modal` and `role="dialog"` or `role="alertdialog"`.',within:["qt-dialog-overlay"],states:[{kind:"class",className:"qt-dialog-wide",label:"Page-width dialog"},{kind:"aria",attribute:"aria-busy",values:["true"],label:"Working; Escape and the close button wait"}],since:1},{className:"qt-dialog-header",surface:"dialog",label:"Dialog header",within:["qt-dialog"],since:1},{className:"qt-dialog-title",surface:"dialog",label:"Dialog title",within:["qt-dialog-header"],since:1},{className:"qt-dialog-description",surface:"dialog",label:"Dialog subtitle",within:["qt-dialog-header"],since:1},{className:"qt-dialog-close",surface:"dialog",label:"Dialog close button",within:["qt-dialog-header"],since:1},{className:"qt-dialog-body",surface:"dialog",label:"Dialog body",description:"Always present, and unstyled: the default padding is `qt-dialog-body-default`, which a dialog drops when it lays out its own body.",within:["qt-dialog"],states:[{kind:"class",className:"qt-dialog-body-default",label:"Default padding (the dialog lays out nothing of its own)"}],since:1},{className:"qt-dialog-footer",surface:"dialog",label:"Dialog footer",description:"Always present when there are actions, and unstyled: the default look is `qt-dialog-footer-default`.",within:["qt-dialog"],states:[{kind:"class",className:"qt-dialog-footer-default",label:"Default footer look"}],since:1},{className:"qt-floating-dialog",surface:"dialog",label:"Floating dialog",description:"A non-modal dialog that floats over the page (the Inform dialog, among others). Modal dialogs are `qt-dialog`.",since:1},{className:"qt-slide-over-panel",surface:"dialog",label:"Slide-over panel",description:"A panel that slides in from the edge of the window.",since:1}];var U$=["resume","chats","characters","projects"],ib=[{className:"qt-homepage-container",surface:"home",label:"Home page",description:"A picture a theme paints behind the home page should stand aside while `qt-homepage-backdrop` is set: a dynamic-backgrounds collage is showing instead.",states:[{kind:"class",className:"qt-homepage-backdrop",label:"A dynamic background is showing"}],since:1},{className:"qt-homepage-header",surface:"home",label:"Home header line",description:"The greeting and the quick actions, side by side at the top of the home page.",within:["qt-homepage-container"],since:2},{className:"qt-homepage-welcome",surface:"home",label:"Welcome block",description:"The greeting at the top of the home page.",within:["qt-homepage-header"],since:1},{className:"qt-quick-actions",surface:"home",label:"Quick actions row",within:["qt-homepage-header"],since:1},{className:"qt-homepage-grid",surface:"home",label:"Home band stack",description:"Holds the home bands, one under another.",within:["qt-homepage-container"],since:1},{className:"qt-homepage-section",surface:"home",label:"Home page band",within:["qt-homepage-grid"],variants:[{attribute:"data-section",values:U$,description:"Which band: the conversation last touched, the recent conversations beside it, the characters or the projects."}],since:1},{className:"qt-homepage-section-header",surface:"home",label:"Home band header",within:["qt-homepage-section"],since:1},{className:"qt-homepage-section-title",surface:"home",label:"Home band title",within:["qt-homepage-section-header"],since:1},{className:"qt-homepage-section-link",surface:"home",label:'Home band "View all" link',within:["qt-homepage-section-header"],since:1},{className:"qt-homepage-section-content",surface:"home",label:"Home band body",within:["qt-homepage-section"],since:1},{className:"qt-homepage-row",surface:"home",label:"Home list row",description:"One conversation in the recent list, or one project tile on the projects shelf.",within:["qt-homepage-section-content"],since:1},{className:"qt-homepage-empty",surface:"home",label:"Home band empty state",within:["qt-homepage-section-content"],since:1},{className:"qt-homepage-resume-picture",surface:"home",label:"Resume card picture",description:"The story background of the conversation last touched (or its cast, when it has none), across the top of the resume card.",within:["qt-homepage-section"],since:2},{className:"qt-homepage-resume-title",surface:"home",label:"Resume card title",description:"The title, in full, of the conversation last touched.",within:["qt-homepage-section-content"],since:2},{className:"qt-characters-grid",surface:"home",label:"Character portrait wall",within:["qt-homepage-section-content"],since:1},{className:"qt-character-card",surface:"home",label:"Character portrait",description:"One character on the home page: a portrait and a name. The last place on the wall, for everyone who did not fit, wears it too.",within:["qt-characters-grid"],since:1},{className:"qt-character-card-popover",surface:"home",label:"Character portrait card",description:"The card that opens on a portrait at rest or in focus: title, model, the latest conversation and the character's page.",within:["qt-character-card"],since:2}];var u={};Ke(u,{$brand:()=>ul,$input:()=>Fd,$output:()=>Ud,INVALID:()=>ke,NEVER:()=>cl,TimePrecision:()=>ep,ZodAny:()=>Um,ZodArray:()=>Vm,ZodBase64:()=>Ka,ZodBase64URL:()=>Ga,ZodBigInt:()=>Br,ZodBigIntFormat:()=>Ja,ZodBoolean:()=>Fr,ZodCIDRv4:()=>Za,ZodCIDRv6:()=>Va,ZodCUID:()=>Ra,ZodCUID2:()=>ja,ZodCatch:()=>mf,ZodCodec:()=>hi,ZodCompileAsyncError:()=>Fe,ZodCompileUnsupportedError:()=>F,ZodCreditCard:()=>Dm,ZodCustom:()=>bi,ZodCustomStringFormat:()=>Vt,ZodDate:()=>ui,ZodDefault:()=>sf,ZodDiscriminatedUnion:()=>Gm,ZodE164:()=>Ha,ZodEmail:()=>Da,ZodEmoji:()=>Pa,ZodEnum:()=>Lr,ZodError:()=>a0,ZodExactOptional:()=>es,ZodFile:()=>rf,ZodFirstPartyTypeKind:()=>Tf,ZodFunction:()=>$f,ZodGUID:()=>za,ZodIBAN:()=>zm,ZodIPv4:()=>Fa,ZodIPv6:()=>Ba,ZodISODate:()=>yt,ZodISODateTime:()=>bt,ZodISODuration:()=>kt,ZodISOTime:()=>vt,ZodInstanceOf:()=>If,ZodIntersection:()=>Hm,ZodIssueCode:()=>c0,ZodJWT:()=>Wa,ZodKSUID:()=>Ua,ZodLazy:()=>kf,ZodLiteral:()=>tf,ZodMAC:()=>Em,ZodMap:()=>Qm,ZodNaN:()=>gf,ZodNanoID:()=>qa,ZodNever:()=>Bm,ZodNonOptional:()=>ts,ZodNull:()=>Lm,ZodNullable:()=>af,ZodNumber:()=>Ur,ZodNumberFormat:()=>Kt,ZodObject:()=>pi,ZodOptional:()=>fi,ZodPipe:()=>gi,ZodPrefault:()=>cf,ZodPreprocess:()=>hf,ZodPromise:()=>wf,ZodReadonly:()=>bf,ZodRealError:()=>Ce,ZodRecord:()=>jr,ZodSet:()=>ef,ZodString:()=>Mr,ZodStringFormat:()=>W,ZodSuccess:()=>pf,ZodSymbol:()=>Rm,ZodTemplateLiteral:()=>vf,ZodTransform:()=>nf,ZodTuple:()=>Jm,ZodType:()=>L,ZodULID:()=>La,ZodURL:()=>ci,ZodUUID:()=>Ye,ZodUndefined:()=>jm,ZodUnion:()=>mi,ZodUnknown:()=>Fm,ZodVoid:()=>Zm,ZodXID:()=>Ma,ZodXor:()=>Km,_ZodString:()=>Ea,_default:()=>lf,_function:()=>Ev,any:()=>cv,array:()=>di,base64:()=>By,base64url:()=>Zy,bigint:()=>iv,boolean:()=>qm,catch:()=>ff,check:()=>Dv,cidrv4:()=>Uy,cidrv6:()=>Fy,clone:()=>Z,codec:()=>Cv,coerce:()=>Af,compile:()=>Kd,config:()=>ne,core:()=>nt,creditCard:()=>Ky,cuid:()=>Dy,cuid2:()=>zy,currencyCode:()=>Xy,custom:()=>zv,date:()=>dv,decode:()=>Sm,decodeAsync:()=>Tm,deepPartial:()=>Gv,describe:()=>Pv,discriminatedUnion:()=>bv,e164:()=>Vy,email:()=>$y,emoji:()=>Oy,encode:()=>_m,encodeAsync:()=>Im,endsWith:()=>Tr,enum:()=>Xa,exactOptional:()=>of,file:()=>_v,flattenError:()=>An,float32:()=>ev,float64:()=>tv,formatError:()=>Nn,fromJSONSchema:()=>Vv,function:()=>Ev,getDiscriminatedOption:()=>cu,getErrorMap:()=>d0,globalRegistry:()=>he,gt:()=>We,gte:()=>Ee,guid:()=>_y,hash:()=>Qy,hex:()=>Yy,hostname:()=>Jy,httpUrl:()=>Ny,iban:()=>Gy,includes:()=>Sr,input:()=>Wv,instanceof:()=>Rv,int:()=>Na,int32:()=>rv,int64:()=>ov,intersection:()=>Wm,invertCodec:()=>Av,ipv4:()=>jy,ipv6:()=>My,iso:()=>yi,json:()=>Lv,jwt:()=>Hy,keyof:()=>pv,ksuid:()=>Ry,lazy:()=>xf,length:()=>Mt,literal:()=>$v,locales:()=>Qn,looseObject:()=>gv,looseRecord:()=>vv,lowercase:()=>$r,lt:()=>He,lte:()=>Oe,mac:()=>Ly,map:()=>kv,maxLength:()=>Lt,maxSize:()=>mt,memoizer:()=>Hn,meta:()=>qv,mime:()=>Ar,minLength:()=>rt,minSize:()=>Je,multipleOf:()=>pt,nan:()=>Tv,nanoid:()=>Ey,nativeEnum:()=>wv,negative:()=>va,never:()=>Ya,nonnegative:()=>xa,nonoptional:()=>df,nonpositive:()=>ka,normalize:()=>Nr,null:()=>Mm,nullable:()=>li,nullish:()=>Sv,number:()=>Pm,object:()=>mv,optional:()=>Bt,output:()=>Jv,overwrite:()=>Be,parse:()=>km,parseAsync:()=>xm,partialRecord:()=>yv,pipe:()=>Oa,positive:()=>ya,prefault:()=>uf,preprocess:()=>Mv,prettifyError:()=>gl,promise:()=>Ov,properties:()=>Cr,property:()=>wa,readonly:()=>yf,record:()=>Xm,refine:()=>_f,regex:()=>wr,regexes:()=>je,registry:()=>Go,safeDecode:()=>Am,safeDecodeAsync:()=>Om,safeEncode:()=>Cm,safeEncodeAsync:()=>Nm,safeParse:()=>wm,safeParseAsync:()=>$m,set:()=>xv,setErrorMap:()=>u0,size:()=>jt,slugify:()=>zr,startsWith:()=>Ir,strictObject:()=>fv,string:()=>si,stringFormat:()=>Wy,stringbool:()=>jv,success:()=>Iv,superRefine:()=>Sf,symbol:()=>sv,templateLiteral:()=>Nv,toJSONSchema:()=>Ia,toLowerCase:()=>Er,toUpperCase:()=>Dr,toZod:()=>vn,transform:()=>Qa,treeifyError:()=>fl,trim:()=>Or,tuple:()=>Ym,uint32:()=>nv,uint64:()=>av,ulid:()=>Py,undefined:()=>lv,union:()=>Zr,unknown:()=>Ft,uppercase:()=>_r,url:()=>Ay,util:()=>x,uuid:()=>Sy,uuidv4:()=>Iy,uuidv6:()=>Ty,uuidv7:()=>Cy,validate:()=>On,validateAsync:()=>En,void:()=>uv,withParser:()=>Ho,xid:()=>qy,xor:()=>hv});var nt={};Ke(nt,{$ZodAny:()=>eu,$ZodArray:()=>au,$ZodAsyncError:()=>Ie,$ZodBase64:()=>Fc,$ZodBase64URL:()=>Bc,$ZodBigInt:()=>qo,$ZodBigIntFormat:()=>Jc,$ZodBoolean:()=>Fn,$ZodCIDRv4:()=>Mc,$ZodCIDRv6:()=>Uc,$ZodCUID:()=>Cc,$ZodCUID2:()=>Ac,$ZodCatch:()=>Su,$ZodCheck:()=>Y,$ZodCheckBigIntFormat:()=>tc,$ZodCheckEndsWith:()=>mc,$ZodCheckGreaterThan:()=>ko,$ZodCheckIncludes:()=>dc,$ZodCheckLengthEquals:()=>sc,$ZodCheckLessThan:()=>vo,$ZodCheckLowerCase:()=>cc,$ZodCheckMaxLength:()=>oc,$ZodCheckMaxSize:()=>rc,$ZodCheckMimeType:()=>hc,$ZodCheckMinLength:()=>ac,$ZodCheckMinSize:()=>nc,$ZodCheckMultipleOf:()=>Ql,$ZodCheckNumberFormat:()=>ec,$ZodCheckOverwrite:()=>bc,$ZodCheckProperties:()=>gc,$ZodCheckProperty:()=>fc,$ZodCheckRegex:()=>lc,$ZodCheckSizeEquals:()=>ic,$ZodCheckStartsWith:()=>pc,$ZodCheckStringFormat:()=>br,$ZodCheckUpperCase:()=>uc,$ZodCodec:()=>Zn,$ZodCreditCard:()=>Vc,$ZodCustom:()=>Eu,$ZodCustomStringFormat:()=>Hc,$ZodCyclicError:()=>Bo,$ZodDate:()=>iu,$ZodDefault:()=>xu,$ZodDiscriminatedUnion:()=>uu,$ZodE164:()=>Zc,$ZodEmail:()=>wc,$ZodEmoji:()=>Ic,$ZodEncodeError:()=>ut,$ZodEnum:()=>gu,$ZodError:()=>ml,$ZodExactOptional:()=>vu,$ZodFile:()=>bu,$ZodFunction:()=>Nu,$ZodGUID:()=>kc,$ZodIBAN:()=>Kc,$ZodIPv4:()=>Rc,$ZodIPv6:()=>jc,$ZodISODate:()=>zc,$ZodISODateTime:()=>Dc,$ZodISODuration:()=>qc,$ZodISOTime:()=>Pc,$ZodIntersection:()=>du,$ZodJWT:()=>Gc,$ZodKSUID:()=>Ec,$ZodLazy:()=>Vn,$ZodLiteral:()=>hu,$ZodMAC:()=>Lc,$ZodMap:()=>mu,$ZodNaN:()=>Iu,$ZodNanoID:()=>Tc,$ZodNever:()=>ru,$ZodNonOptional:()=>$u,$ZodNull:()=>Qc,$ZodNullable:()=>ku,$ZodNumber:()=>Po,$ZodNumberFormat:()=>Wc,$ZodObject:()=>Lb,$ZodObjectJIT:()=>su,$ZodOptional:()=>jo,$ZodPipe:()=>Lo,$ZodPrefault:()=>wu,$ZodPreprocess:()=>Tu,$ZodPromise:()=>Ou,$ZodReadonly:()=>Cu,$ZodRealError:()=>Te,$ZodRecord:()=>pu,$ZodRegistry:()=>Ko,$ZodSet:()=>fu,$ZodString:()=>zt,$ZodStringFormat:()=>V,$ZodSuccess:()=>_u,$ZodSymbol:()=>Yc,$ZodTemplateLiteral:()=>Au,$ZodTransform:()=>yu,$ZodTuple:()=>Ro,$ZodType:()=>j,$ZodULID:()=>Nc,$ZodURL:()=>Sc,$ZodUUID:()=>xc,$ZodUndefined:()=>Xc,$ZodUnion:()=>Bn,$ZodUnknown:()=>tu,$ZodVoid:()=>nu,$ZodXID:()=>Oc,$ZodXor:()=>lu,$brand:()=>ul,$constructor:()=>y,$input:()=>Fd,$output:()=>Ud,Doc:()=>Dt,INVALID:()=>ke,JSONSchema:()=>ky,JSONSchemaGenerator:()=>Ta,NEVER:()=>cl,TimePrecision:()=>ep,URL_BAD_FORMAT:()=>$c,URL_UNPARSEABLE:()=>Rn,ZodCompileAsyncError:()=>Fe,ZodCompileUnsupportedError:()=>F,_any:()=>bp,_array:()=>_p,_base64:()=>fa,_base64url:()=>ga,_bigint:()=>up,_boolean:()=>lp,_catch:()=>HT,_check:()=>iy,_cidrv4:()=>pa,_cidrv6:()=>ma,_coercedBigint:()=>dp,_coercedBoolean:()=>cp,_coercedDate:()=>wp,_coercedNumber:()=>rp,_coercedString:()=>Jd,_creditCard:()=>Xd,_cuid:()=>oa,_cuid2:()=>aa,_custom:()=>Ip,_date:()=>xp,_decode:()=>so,_decodeAsync:()=>co,_default:()=>VT,_discriminatedUnion:()=>DT,_e164:()=>ha,_email:()=>Yo,_emoji:()=>na,_encode:()=>ao,_encodeAsync:()=>lo,_endsWith:()=>Tr,_enum:()=>LT,_file:()=>Sp,_float32:()=>ip,_float64:()=>op,_gt:()=>We,_gte:()=>Ee,_guid:()=>Xo,_iban:()=>Qd,_includes:()=>Sr,_int:()=>np,_int32:()=>ap,_int64:()=>pp,_intersection:()=>zT,_ipv4:()=>ua,_ipv6:()=>da,_isoDate:()=>ri,_isoDateTime:()=>ti,_isoDuration:()=>ii,_isoTime:()=>ni,_jwt:()=>ba,_ksuid:()=>ca,_lazy:()=>XT,_length:()=>Mt,_literal:()=>UT,_lowercase:()=>$r,_lt:()=>He,_lte:()=>Oe,_mac:()=>Yd,_map:()=>RT,_max:()=>Oe,_maxLength:()=>Lt,_maxSize:()=>mt,_mime:()=>Ar,_min:()=>Ee,_minLength:()=>rt,_minSize:()=>Je,_multipleOf:()=>pt,_nan:()=>$p,_nanoid:()=>ia,_nativeEnum:()=>MT,_negative:()=>va,_never:()=>vp,_nonnegative:()=>xa,_nonoptional:()=>KT,_nonpositive:()=>ka,_normalize:()=>Nr,_null:()=>hp,_nullable:()=>ZT,_number:()=>tp,_optional:()=>BT,_overwrite:()=>Be,_parse:()=>mr,_parseAsync:()=>fr,_pipe:()=>WT,_positive:()=>ya,_promise:()=>QT,_properties:()=>Cr,_property:()=>wa,_readonly:()=>JT,_record:()=>qT,_refine:()=>Tp,_regex:()=>wr,_safeDecode:()=>po,_safeDecodeAsync:()=>fo,_safeEncode:()=>uo,_safeEncodeAsync:()=>mo,_safeParse:()=>gr,_safeParseAsync:()=>hr,_set:()=>jT,_size:()=>jt,_slugify:()=>zr,_startsWith:()=>Ir,_string:()=>Wd,_stringFormat:()=>Ut,_stringbool:()=>Op,_success:()=>GT,_superRefine:()=>Cp,_symbol:()=>fp,_templateLiteral:()=>YT,_toLowerCase:()=>Er,_toUpperCase:()=>Dr,_transform:()=>FT,_trim:()=>Or,_tuple:()=>PT,_uint32:()=>sp,_uint64:()=>mp,_ulid:()=>sa,_undefined:()=>gp,_union:()=>OT,_unknown:()=>yp,_uppercase:()=>_r,_url:()=>ei,_uuid:()=>Qo,_uuidv4:()=>ea,_uuidv6:()=>ta,_uuidv7:()=>ra,_void:()=>kp,_xid:()=>la,_xor:()=>ET,base64Charset:()=>No,base64urlCharset:()=>Un,canParseURL:()=>_c,clone:()=>Z,compile:()=>Kd,compileFn:()=>Wo,config:()=>ne,createStandardJSONSchemaMethod:()=>Pr,createToJSONSchemaMethod:()=>Dp,decode:()=>E_,decodeAsync:()=>z_,describe:()=>Ap,encode:()=>O_,encodeAsync:()=>D_,extractDefs:()=>gt,finalize:()=>ht,flattenError:()=>An,formatError:()=>Nn,getDiscriminatedOption:()=>cu,globalConfig:()=>me,globalRegistry:()=>he,handleUnrepresentable:()=>ce,initializeContext:()=>ft,isBackEdge:()=>Vo,isRecursiveSchema:()=>Zo,isValidBase64:()=>Mn,isValidBase64URL:()=>Oo,isValidCIDRv6:()=>Ao,isValidCreditCard:()=>Eo,isValidIBAN:()=>Do,isValidIPv6:()=>Ln,isValidJWT:()=>zo,locales:()=>Qn,memoizer:()=>Hn,mergeValues:()=>yr,meta:()=>Np,parse:()=>io,parseAsync:()=>oo,parseURLObject:()=>qb,prettifyError:()=>gl,process:()=>K,processSchema:()=>K,regexes:()=>je,registry:()=>Go,safeDecode:()=>q_,safeDecodeAsync:()=>j_,safeEncode:()=>P_,safeEncodeAsync:()=>R_,safeParse:()=>I_,safeParseAsync:()=>T_,standardProps:()=>So,stripTabAndNewline:()=>jn,toDotPath:()=>gb,toJSONSchema:()=>Ia,toZod:()=>vn,treeifyError:()=>fl,urlHostnameOk:()=>To,urlProtocolOk:()=>Co,util:()=>x,validate:()=>On,validateAsync:()=>En,validateURL:()=>Io,version:()=>yc,withParser:()=>Ho});var x={};Ke(x,{BIGINT_FORMAT_RANGES:()=>_n,CONSTANT_CATCH:()=>ro,Class:()=>Qs,NUMBER_FORMAT_RANGES:()=>$n,aborted:()=>ve,allowsEval:()=>rl,assert:()=>K$,assertEqual:()=>F$,assertIs:()=>Z$,assertNever:()=>V$,assertNotEqual:()=>B$,assignProp:()=>ge,attachSchema:()=>Sn,base64ToUint8Array:()=>cb,base64urlToUint8Array:()=>d_,cached:()=>cr,captureStackTrace:()=>eo,cleanEnum:()=>u_,cleanRegex:()=>et,clone:()=>Z,cloneDef:()=>W$,codePointLength:()=>Ot,constantCatch:()=>sl,createTransparentProxy:()=>t_,defineLazy:()=>el,defineLazyInternal:()=>U,derived:()=>g_,esc:()=>ye,escapeRegex:()=>Re,explicitlyAborted:()=>ol,extend:()=>i_,finalizeIssue:()=>Se,floatSafeRemainder:()=>kn,getElementAtPath:()=>J$,getEnumValues:()=>sr,getLengthableOrigin:()=>Tn,getParsedType:()=>e_,getSizableOrigin:()=>In,hexToUint8Array:()=>m_,hide:()=>Cn,installLazyProp:()=>v_,isObject:()=>Nt,isPlainObject:()=>qe,issue:()=>pr,joinValues:()=>v,jsonStringifyReplacer:()=>lr,members:()=>al,merge:()=>a_,mergeDefs:()=>Ue,normalizeParams:()=>T,nullish:()=>Qi,numKeys:()=>Q$,objectClone:()=>G$,omit:()=>n_,optionalKeys:()=>il,own:()=>ct,parsedType:()=>$,partial:()=>s_,pick:()=>r_,prefixIssues:()=>_e,primitiveTypes:()=>nl,promiseAllObject:()=>Y$,propertyKeyTypes:()=>wn,randomString:()=>X$,rawShape:()=>ur,required:()=>l_,safeExtend:()=>o_,shallowClone:()=>xn,sizeCaps:()=>dr,slugify:()=>tl,stringifyPrimitive:()=>w,toZod:()=>vn,uint8ArrayToBase64:()=>ub,uint8ArrayToBase64url:()=>p_,uint8ArrayToHex:()=>f_,unwrapMessage:()=>ar});function F$(t){return t}s(F$,"assertEqual");function B$(t){return t}s(B$,"assertNotEqual");function vn(){return t=>t}s(vn,"toZod");function Z$(t){}s(Z$,"assertIs");function V$(t){throw new Error("Unexpected value in exhaustive check")}s(V$,"assertNever");function K$(t){}s(K$,"assert");function sr(t){let e=Object.values(t).filter(i=>typeof i=="number");return Object.entries(t).filter(([i,r])=>e.indexOf(+i)===-1).map(([i,r])=>r)}s(sr,"getEnumValues");function v(t,e="|"){return t.map(n=>w(n)).join(e)}s(v,"joinValues");function lr(t,e){return typeof e=="bigint"?e.toString():e}s(lr,"jsonStringifyReplacer");var Xs=class{static{s(this,"Cached")}constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;return e!==void 0&&(this._value=e(),this._getter=void 0),this._value}};function cr(t){return new Xs(t)}s(cr,"cached");function Qi(t){return t==null}s(Qi,"nullish");function et(t){let e=t.startsWith("^")?1:0,n=t.endsWith("$")?t.length-1:t.length;return t.slice(e,n)}s(et,"cleanRegex");function kn(t,e){let n=t/e,i=Math.round(n),r=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-i)<r?0:n-i}s(kn,"floatSafeRemainder");var ob=Symbol("evaluating");function el(t,e,n){let i;Object.defineProperty(t,e,{get(){if(i!==ob)return i===void 0&&(i=ob,i=n()),i},set(r){Object.defineProperty(t,e,{value:r})},configurable:!0})}s(el,"defineLazy");function G$(t){return Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t))}s(G$,"objectClone");function ge(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0})}s(ge,"assignProp");function ur(t){let e=Object.getOwnPropertyDescriptor(t,"shape");return e?.get?e.get.raw:e?.value}s(ur,"rawShape");function Qe(t){return ur(t._zod.def)??t._zod.def.shape}s(Qe,"sourceShape");function ab(t,e,n){Object.defineProperty(t,e,{get(){let i=n();return ge(this,e,i),i},enumerable:!0,configurable:!0})}s(ab,"deferProp");function sb(t,e,n){e in t?ge(t,e,n):t[e]=n}s(sb,"putProp");function At(t,e,n,i){let r=Qe(e);for(let o of n){let a=Object.getOwnPropertyDescriptor(r,o);a.enumerable&&(a.get?ab(t,o,()=>{let l=e._zod.def.shape[o];return i?i(l,o):l}):sb(t,o,i?i(a.value,o):a.value))}}s(At,"mirrorShape");function H$(t,e){for(let n of Reflect.ownKeys(e)){let i=Object.getOwnPropertyDescriptor(e,n);i.enumerable&&(i.get?ab(t,n,()=>e[n]):sb(t,n,i.value))}}s(H$,"mirrorProps");function Ue(...t){let e={};for(let n of t){let i=Object.getOwnPropertyDescriptors(n);Object.assign(e,i)}return Object.defineProperties({},e)}s(Ue,"mergeDefs");function W$(t){return Ue(t._zod.def)}s(W$,"cloneDef");function J$(t,e){return e?e.reduce((n,i)=>n?.[i],t):t}s(J$,"getElementAtPath");function Y$(t){let e=Object.keys(t),n=e.map(i=>t[i]);return Promise.all(n).then(i=>{let r={};for(let o=0;o<e.length;o++)r[e[o]]=i[o];return r})}s(Y$,"promiseAllObject");function X$(t=10){let e="abcdefghijklmnopqrstuvwxyz",n="";for(let i=0;i<t;i++)n+=e[Math.floor(Math.random()*e.length)];return n}s(X$,"randomString");function ye(t){return JSON.stringify(t)}s(ye,"esc");function tl(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}s(tl,"slugify");var eo="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function Nt(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}s(Nt,"isObject");var rl=cr(()=>{if(me.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});function qe(t){if(Nt(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!="function")return!0;let n=e.prototype;return!(Nt(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}s(qe,"isPlainObject");function xn(t){return qe(t)?{...t}:Array.isArray(t)?[...t]:t instanceof Map?new Map(t):t instanceof Set?new Set(t):t}s(xn,"shallowClone");function Q$(t){let e=0;for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}s(Q$,"numKeys");var e_=s(t=>{let e=typeof t;switch(e){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(t)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(t)?"array":t===null?"null":t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?"promise":typeof Map<"u"&&t instanceof Map?"map":typeof Set<"u"&&t instanceof Set?"set":typeof Date<"u"&&t instanceof Date?"date":typeof File<"u"&&t instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${e}`)}},"getParsedType"),wn=new Set(["string","number","symbol"]),nl=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Re(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}s(Re,"escapeRegex");function Z(t,e,n){let i=new t._zod.constr(e??t._zod.def);return(!e||n?.parent)&&(i._zod.parent=t),i}s(Z,"clone");function T(t){let e=t;if(!e)return{};if(typeof e=="string")return{error:s(()=>e,"error")};if(e?.message!==void 0){if(e?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:s(()=>e.error,"error")}:e}s(T,"normalizeParams");function t_(t){let e;return new Proxy({},{get(n,i,r){return e??(e=t()),Reflect.get(e,i,r)},set(n,i,r,o){return e??(e=t()),Reflect.set(e,i,r,o)},has(n,i){return e??(e=t()),Reflect.has(e,i)},deleteProperty(n,i){return e??(e=t()),Reflect.deleteProperty(e,i)},ownKeys(n){return e??(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(n,i){return e??(e=t()),Reflect.getOwnPropertyDescriptor(e,i)},defineProperty(n,i,r){return e??(e=t()),Reflect.defineProperty(e,i,r)}})}s(t_,"createTransparentProxy");function w(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}s(w,"stringifyPrimitive");function il(t){return Object.keys(t).filter(e=>t[e]._zod.optin!==void 0&&t[e]._zod.optout==="optional")}s(il,"optionalKeys");var $n={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},_n={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function r_(t,e){let n=t._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o={};return At(o,t,to(t,e)),Z(t,Ue(n,{shape:o,checks:[]}))}s(r_,"pick");function to(t,e){let n=Qe(t),i=[];for(let r of Reflect.ownKeys(e)){if(!Object.getOwnPropertyDescriptor(n,r)?.enumerable)throw new Error(`Unrecognized key: "${String(r)}"`);e[r]&&i.push(r)}return i}s(to,"maskedKeys");function n_(t,e){let n=t._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=new Set(to(t,e)),a={};return At(a,t,Reflect.ownKeys(Qe(t)).filter(l=>!o.has(l))),Z(t,Ue(n,{shape:a,checks:[]}))}s(n_,"omit");function i_(t,e){if(!qe(e))throw new Error("Invalid input to extend: expected a plain object");let n=t._zod.def.checks;if(n&&n.length>0){let r=Qe(t);for(let o of Reflect.ownKeys(e))if(Object.getOwnPropertyDescriptor(r,o)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Z(t,Ue(t._zod.def,{shape:lb(t,e)}))}s(i_,"extend");function lb(t,e){let n={};return At(n,t,Reflect.ownKeys(Qe(t))),H$(n,e),n}s(lb,"extended");function o_(t,e){if(!qe(e))throw new Error("Invalid input to safeExtend: expected a plain object");return Z(t,Ue(t._zod.def,{shape:lb(t,e)}))}s(o_,"safeExtend");function a_(t,e){if(!e?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(t._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n={};At(n,t,Reflect.ownKeys(Qe(t))),At(n,e,Reflect.ownKeys(Qe(e)));let i=Ue(t._zod.def,{shape:n,get catchall(){return e._zod.def.catchall},checks:e._zod.def.checks??[]});return Z(t,i)}s(a_,"merge");function s_(t,e,n,i="partial"){let o=e._zod.def.checks;if(o&&o.length>0)throw new Error(`.${i}() cannot be used on object schemas containing refinements`);let l=n?new Set(to(e,n)):void 0,c={};return At(c,e,Reflect.ownKeys(Qe(e)),t&&((d,p)=>l&&!l.has(p)?d:new t({type:"optional",innerType:d}))),Z(e,Ue(e._zod.def,{shape:c,checks:[]}))}s(s_,"partial");function l_(t,e,n){let i=n?new Set(to(e,n)):void 0,r={};return At(r,e,Reflect.ownKeys(Qe(e)),(o,a)=>i&&!i.has(a)?o:new t({type:"nonoptional",innerType:o})),Z(e,Ue(e._zod.def,{shape:r}))}s(l_,"required");function ve(t,e=0){if(t.aborted===!0)return!0;for(let n=e;n<t.issues.length;n++)if(t.issues[n]?.continue!==!0)return!0;return!1}s(ve,"aborted");function ol(t,e=0){if(t.aborted===!0)return!0;for(let n=e;n<t.issues.length;n++)if(t.issues[n]?.continue===!1)return!0;return!1}s(ol,"explicitlyAborted");function _e(t,e){return e.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(t),n})}s(_e,"prefixIssues");function ar(t){return typeof t=="string"?t:t?.message}s(ar,"unwrapMessage");function dr(t){let e=[];for(let n of t??[]){let i=n._zod.def;if(!/_(length|size)$|_equals$/.test(i.check))break;let r=i.maximum??i.length??i.size;r>=0&&e.push([r,n])}return e}s(dr,"sizeCaps");function Sn(t,e,n){var i;for(let r=e;r<t.length;r++)(i=t[r]).schema??(i.schema=n)}s(Sn,"attachSchema");function Se(t,e,n){var i;let r=t.inst?._zod?.traits;r?.has("$ZodType")&&(r.has("$ZodCheck")?(i=t).schema??(i.schema=t.inst):t.schema=t.inst);let o=t.schema!==t.inst?t.schema?._zod.def?.error:void 0,a=t.message?t.message:ar(t.inst?._zod.def?.error?.(t))??ar(o?.(t))??ar(e?.error?.(t))??ar(n.customError?.(t))??ar(n.localeError?.(t))??"Invalid input",l={};for(let c of Object.keys(t))c==="inst"||c==="schema"||c==="continue"||c==="input"||c==="__proto__"||(l[c]=t[c]);return l.path??(l.path=[]),l.message=a,e?.reportInput&&(l.input=t.input),l}s(Se,"finalizeIssue");function In(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}s(In,"getSizableOrigin");var c_=/[\uD800-\uDBFF]/;function Ot(t){let e=t.length;if(!c_.test(t))return e;let n=e;for(let i=0;i<e-1;i++)(t.charCodeAt(i)&64512)===55296&&(t.charCodeAt(i+1)&64512)===56320&&(n--,i++);return n}s(Ot,"codePointLength");function Tn(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}s(Tn,"getLengthableOrigin");function $(t){let e=typeof t;switch(e){case"number":return Number.isNaN(t)?"nan":"number";case"object":{if(t===null)return"null";if(Array.isArray(t))return"array";let n=t;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return e}s($,"parsedType");function pr(...t){let[e,n,i]=t;return typeof e=="string"?{message:e,code:"custom",input:n,inst:i}:{...e}}s(pr,"issue");function u_(t){return Object.entries(t).filter(([e,n])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}s(u_,"cleanEnum");function cb(t){let e=atob(t),n=new Uint8Array(e.length);for(let i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return n}s(cb,"base64ToUint8Array");function ub(t){let e="";for(let n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return btoa(e)}s(ub,"uint8ArrayToBase64");function d_(t){let e=t.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-e.length%4)%4);return cb(e+n)}s(d_,"base64urlToUint8Array");function p_(t){return ub(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}s(p_,"uint8ArrayToBase64url");function m_(t){let e=t.replace(/^0x/,"");if(e.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(e.length/2);for(let i=0;i<e.length;i+=2)n[i/2]=Number.parseInt(e.slice(i,i+2),16);return n}s(m_,"hexToUint8Array");function f_(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}s(f_,"uint8ArrayToHex");var Qs=class{static{s(this,"Class")}constructor(...e){}};function al(t,e){for(let n in e){let i=Object.getOwnPropertyDescriptor(e,n);i.get?Object.defineProperty(t,n,{...i,enumerable:!1}):h_(t,n,i.value)}}s(al,"members");function ct(t,e,n,i=!0){return Object.defineProperty(t,e,{configurable:!0,writable:!0,enumerable:i,value:n}),n}s(ct,"own");function Cn(t,e,n){return ct(t,e,n,!1)}s(Cn,"hide");function g_(t,e){for(let n in t){let i=t[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!0,get(){return ct(this,n,i(this))},set(r){ct(this,n,r)}})}return e}s(g_,"derived");function h_(t,e,n){Object.defineProperty(t,e,{configurable:!0,get(){return this==null?n:ct(this,e,n.bind(this))},set(i){ct(this,e,i)}})}s(h_,"defineBound");function b_(t,e){let n=Object.getPrototypeOf(t);return e in n?void 0:n}s(b_,"claim");var Ys,lt=!1,y_={configurable:!0,get(){lt=!0}};function U(t,e,n){let i=Object.getPrototypeOf(t._zod);if(e in i&&Ys!==t._zod){Ys=void 0;return}Ys=t._zod,Object.defineProperty(i,e,{configurable:!0,get(){Object.defineProperty(this,e,y_);let r=lt;lt=!1;try{let o=n(this);return lt?delete this[e]:Object.defineProperty(this,e,{configurable:!0,writable:!0,value:o}),lt=lt||r,o}catch(o){throw delete this[e],lt=lt||r,o}},set(r){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:r})}})}s(U,"defineLazyInternal");function v_(t,e,n,i){let r=b_(t,e);r&&Object.defineProperty(r,e,{configurable:!0,get(){let o={configurable:!0,writable:!0,enumerable:i,value:void 0};return Object.defineProperty(this,e,o),o.value=n(this),Object.defineProperty(this,e,o),o.value},set(o){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:i,value:o})}})}s(v_,"installLazyProp");var ro="~constantCatch";function sl(t){let e=s(()=>t,"fn");return e[ro]=!0,e}s(sl,"constantCatch");var db,cl=Object.freeze({status:"aborted"}),ll={value:void 0,enumerable:!1},pb="captureStackTrace"in Error?Error:null;function k_(t){let e=pb;if(e){let n=e.stackTraceLimit;if(typeof n=="number"){try{e.stackTraceLimit=0}catch{return pb=null,new t}try{return new t}finally{e.stackTraceLimit=n}}}return new t}s(k_,"newError");function y(t,e,n,i){let r={};function o(f){this.def=f,this.constr=g,this.traits=new Set}s(o,"Internals"),o.prototype=r;let a=n,l=a&&new WeakSet;function c(f,m){if(f._zod){if(f._zod.traits.has(t))return}else{ll.value=new o(m);try{Object.defineProperty(f,"_zod",ll)}finally{ll.value=void 0}}if(f._zod.traits.add(t),e(f,m),l){let b=Object.getPrototypeOf(f),k=f._zod.constr.prototype,I=b;for(;I&&I!==k;)I=Object.getPrototypeOf(I);let C=I??b;l.has(C)||(l.add(C),al(C,a))}let h=g.prototype;for(let b in h)Object.prototype.hasOwnProperty.call(h,b)&&(b in f||(f[b]=h[b].bind(f)))}s(c,"init");let d=i?.Parent??Object;class p extends d{static{s(this,"Definition")}}Object.defineProperty(p,"name",{value:t});function g(f){let m=i?.Parent?k_(p):this;c(m,f);let h=m._zod.deferred;if(h){for(let k of h)k();m._zod.deferred=void 0}let b=globalThis.__zod_globalConfig?.postProcessor;return b&&b(m),m}return s(g,"_"),Object.defineProperty(g,"init",{value:c}),Object.defineProperty(g,Symbol.hasInstance,{value:s(f=>i?.Parent&&f instanceof i.Parent?!0:f?._zod?.traits?.has(t),"value")}),Object.defineProperty(g,"name",{value:t}),g}s(y,"$constructor");var ul=Symbol("zod_brand"),Ie=class extends Error{static{s(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},ut=class extends Error{static{s(this,"$ZodEncodeError")}constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};(db=globalThis).__zod_globalConfig??(db.__zod_globalConfig={});var me=globalThis.__zod_globalConfig;function ne(t){return t&&Object.assign(me,t),me}s(ne,"config");function x_(){let t=this._zod;return t.message??(t.message=JSON.stringify(t.def,lr,2)),t.message}s(x_,"_getMessage");function w_(t){this._zod.message=t}s(w_,"_setMessage");var $_={get:x_,set:w_,enumerable:!0,configurable:!0},pl={value:void 0,enumerable:!1},mb=new WeakSet([Object.prototype,Error.prototype]),fb=s((t,e)=>{t.name="$ZodError",pl.value=e,Object.defineProperty(t,"issues",pl),pl.value=void 0,Object.defineProperty(t,"message",$_);let n=Object.getPrototypeOf(t);mb.has(n)||(mb.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let i=s(()=>this.message,"value");return Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0})}}))},"initializer"),ml=y("$ZodError",fb),Te=y("$ZodError",fb,void 0,{Parent:Error});function __(t,e,n){return Object.prototype.hasOwnProperty.call(t,e)||(e==="__proto__"?Object.defineProperty(t,e,{value:n(),writable:!0,enumerable:!0,configurable:!0}):t[e]=n()),t[e]}s(__,"node");function An(t,e=n=>n.message){let n={},i=[];for(let r of t.issues)r.path.length>0?__(n,r.path[0],()=>[]).push(e(r)):i.push(e(r));return{formErrors:i,fieldErrors:n}}s(An,"flattenError");function Nn(t,e=n=>n.message){let n={_errors:[]},i=s((r,o=[])=>{for(let a of r.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(l=>i({issues:l},[...o,...a.path]));else if(a.code==="invalid_key")i({issues:a.issues},[...o,...a.path]);else if(a.code==="invalid_element")i({issues:a.issues},[...o,...a.path]);else{let l=[...o,...a.path];if(l.length===0)n._errors.push(e(a));else{let c=n,d=0;for(;d<l.length;){let p=l[d],g=d===l.length-1;if(p==="_errors"){g&&c._errors.push(e(a)),d++;continue}Object.prototype.hasOwnProperty.call(c,p)||Object.defineProperty(c,p,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let f=c[p];g&&f._errors.push(e(a)),c=f,d++}}}},"processError");return i(t),n}s(Nn,"formatError");function fl(t,e=n=>n.message){let n={errors:[]},i=s((r,o=[])=>{var a;for(let l of r.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(c=>i({issues:c},[...o,...l.path]));else if(l.code==="invalid_key")i({issues:l.issues},[...o,...l.path]);else if(l.code==="invalid_element")i({issues:l.issues},[...o,...l.path]);else{let c=[...o,...l.path];if(c.length===0){n.errors.push(e(l));continue}let d=n,p=0;for(;p<c.length;){let g=c[p],f=p===c.length-1;typeof g=="string"?(d.properties??(d.properties={}),Object.prototype.hasOwnProperty.call(d.properties,g)||Object.defineProperty(d.properties,g,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0}),d=d.properties[g]):(d.items??(d.items=[]),(a=d.items)[g]??(a[g]={errors:[]}),d=d.items[g]),f&&d.errors.push(e(l)),p++}}},"processError");return i(t),n}s(fl,"treeifyError");function gb(t){let e=[],n=t.map(i=>typeof i=="object"?i.key:i);for(let i of n)typeof i=="number"?e.push(`[${i}]`):typeof i=="symbol"?e.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?e.push(`[${JSON.stringify(i)}]`):(e.length&&e.push("."),e.push(i));return e.join("")}s(gb,"toDotPath");function gl(t){let e=[],n=[...t.issues].sort((i,r)=>(i.path??[]).length-(r.path??[]).length);for(let i of n)e.push(`✖ ${i.message}`),i.path?.length&&e.push(` → at ${gb(i.path)}`);return e.join(`
91
91
  `)}s(gl,"prettifyError");function no(t,e){return{callee:e?.callee??t,Err:e?.Err}}s(no,"finalizeParams");var mr=s(t=>{let e=s((n,i,r,o)=>{let a=r?{...r,async:!1}:{async:!1},l=n._zod.run({value:i,issues:[]},a);if(l instanceof Promise)throw new Ie;if(l.issues.length){let c=new(o?.Err??t)(l.issues.map(d=>Se(d,a,ne())));throw eo(c,o?.callee??e),c}return l.value},"fn");return e},"_parse"),io=mr(Te),fr=s(t=>{let e=s(async(n,i,r,o)=>{let a=r?{...r,async:!0}:{async:!0},l=n._zod.run({value:i,issues:[]},a);if(l instanceof Promise&&(l=await l),l.issues.length){let c=new(o?.Err??t)(l.issues.map(d=>Se(d,a,ne())));throw eo(c,o?.callee??e),c}return l.value},"fn");return e},"_parseAsync"),oo=fr(Te),gr=s(t=>(e,n,i)=>{let r=i?{...i,async:!1}:{async:!1},o=e._zod.run({value:n,issues:[]},r);if(o instanceof Promise)throw new Ie;return o.issues.length?hb(t,o.issues,r):{success:!0,data:o.value}},"_safeParse"),I_=gr(Te);function hb(t,e,n){let i;return{success:!1,get error(){return i||(i=new t(e.map(r=>Se(r,n,ne()))),e=void 0,n=void 0),i},set error(r){i=r,e=void 0,n=void 0}}}s(hb,"failure");var hr=s(t=>async(e,n,i)=>{let r=i?{...i,async:!0}:{async:!0},o=e._zod.run({value:n,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length?hb(t,o.issues,r):{success:!0,data:o.value}},"_safeParseAsync"),T_=hr(Te),C_=Symbol.for("zod.compile.invalid"),A_=Symbol.for("zod.compile.fallback"),On=s(((t,e,n)=>{let i=t._zod.bag.validator;if(i!==void 0){if(i(e)!==C_)return!0;if(i.definite===!0&&n===void 0)return!1}return N_(t,e,n)}),"validate");function N_(t,e,n){let i=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},r=t._zod.bag.fallbackRun,o;if(r?(i[A_]=!0,o=r({value:e,issues:[]},i)):o=t._zod.run({value:e,issues:[]},i),o instanceof Promise)throw new Ie;return o.issues.length===0}s(N_,"validateFallback");var En=s(async(t,e,n)=>{let i=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},r=t._zod.run({value:e,issues:[]},i);return r instanceof Promise&&(r=await r),r.issues.length===0},"validateAsync"),ao=s(t=>{let e=mr(t),n=s((i,r,o,a)=>{let l=o?{...o,direction:"backward"}:{direction:"backward"};return e(i,r,l,no(n,a))},"fn");return n},"_encode"),O_=ao(Te),so=s(t=>{let e=mr(t),n=s((i,r,o,a)=>e(i,r,o,no(n,a)),"fn");return n},"_decode"),E_=so(Te),lo=s(t=>{let e=fr(t),n=s(async(i,r,o,a)=>{let l=o?{...o,direction:"backward"}:{direction:"backward"};return await e(i,r,l,no(n,a))},"fn");return n},"_encodeAsync"),D_=lo(Te),co=s(t=>{let e=fr(t),n=s(async(i,r,o,a)=>await e(i,r,o,no(n,a)),"fn");return n},"_decodeAsync"),z_=co(Te),uo=s(t=>(e,n,i)=>{let r=i?{...i,direction:"backward"}:{direction:"backward"};return gr(t)(e,n,r)},"_safeEncode"),P_=uo(Te),po=s(t=>(e,n,i)=>gr(t)(e,n,i),"_safeDecode"),q_=po(Te),mo=s(t=>async(e,n,i)=>{let r=i?{...i,direction:"backward"}:{direction:"backward"};return hr(t)(e,n,r)},"_safeEncodeAsync"),R_=mo(Te),fo=s(t=>async(e,n,i)=>hr(t)(e,n,i),"_safeDecodeAsync"),j_=fo(Te);var je={};Ke(je,{anyString:()=>Fl,base64:()=>Dl,base64url:()=>zl,bigint:()=>Zl,boolean:()=>Vl,browserEmail:()=>K_,cidrv4:()=>Ol,cidrv6:()=>El,creditCard:()=>go,cuid:()=>bl,cuid2:()=>yl,currencyCode:()=>jl,date:()=>Ll,datetime:()=>Ul,domain:()=>ql,duration:()=>_l,e164:()=>Rl,email:()=>Il,emoji:()=>Tl,extendedDuration:()=>L_,guid:()=>Sl,hex:()=>Jl,hostname:()=>Pl,html5Email:()=>B_,httpProtocol:()=>Dn,iban:()=>ho,idnEmail:()=>V_,integer:()=>zn,ipv4:()=>Cl,ipv6:()=>Al,ksuid:()=>xl,lowercase:()=>Hl,mac:()=>Nl,md5_base64:()=>J_,md5_base64url:()=>Y_,md5_hex:()=>W_,nanoid:()=>wl,nanoidOfLength:()=>$l,null:()=>Kl,number:()=>tt,rfc5322Email:()=>Z_,sha1_base64:()=>Q_,sha1_base64url:()=>eS,sha1_hex:()=>X_,sha256_base64:()=>rS,sha256_base64url:()=>nS,sha256_hex:()=>tS,sha384_base64:()=>oS,sha384_base64url:()=>aS,sha384_hex:()=>iS,sha512_base64:()=>lS,sha512_base64url:()=>cS,sha512_hex:()=>sS,string:()=>Bl,time:()=>Ml,ulid:()=>vl,undefined:()=>Gl,unicodeEmail:()=>bb,uppercase:()=>Wl,uuid:()=>Et,uuid4:()=>M_,uuid6:()=>U_,uuid7:()=>F_,xid:()=>kl});var bl=/^[cC][0-9a-z]{6,}$/,yl=/^[0-9a-z]+$/,vl=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,kl=/^[0-9a-vA-V]{20}$/,xl=/^[A-Za-z0-9]{27}$/,wl=/^[a-zA-Z0-9_-]{21}$/;function $l(t){return new RegExp(`^[a-zA-Z0-9_-]{${t}}$`)}s($l,"nanoidOfLength");var _l=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,L_=/^[-+]?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)?)??$/,Sl=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Et=s(t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,"uuid"),M_=Et(4),U_=Et(6),F_=Et(7),Il=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,B_=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Z_=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,bb=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,V_=bb,K_=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,G_="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function Tl(){return new RegExp(G_,"u")}s(Tl,"emoji");var Cl=/^(?:(?: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])$/,Al=/^(([0-9a-fA-F]{1,4}:){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}|:))$/,Nl=s(t=>{let e=Re(t??":");return new RegExp(`^(?:[0-9A-F]{2}${e}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${e}){5}[0-9a-f]{2}$`)},"mac"),Ol=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,El=/^(([0-9a-fA-F]{1,4}:){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}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Dl=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,zl=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,Pl=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,ql=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/,Dn=/^https?$/,Rl=/^\+[1-9]\d{6,14}$/,go=/^\d(?:[ -]?\d){11,18}$/,jl=/^(?:AED|AFN|ALL|AMD|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLE|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VED|VES|VND|VUV|WST|XAD|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XCG|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWG)$/,ho=/^[A-Z]{2}(?!00|01|99)\d{2}[A-Z0-9]{11,30}$/,yb="(?:(?:\\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])))";function H_(t){return new RegExp(`^${t}$`)}s(H_,"anchor");var Ll=H_(yb);function hl(t){let e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:t.seconds?`${e}:[0-5]\\d(?:\\.\\d+)?`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}s(hl,"timeSource");function Ml(t){return new RegExp(`^${hl(t)}$`)}s(Ml,"time");function Ul(t){let e=["Z"];t.offset&&e.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${hl({precision:t.precision,seconds:!0})}(?:${e.join("|")})`,i=t.local?`${n}|${hl({precision:t.precision})}`:n;return new RegExp(`^${yb}T(?:${i})$`)}s(Ul,"datetime");var Fl=/^[\s\S]{0,}$/,Bl=s(t=>{let e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},"string"),Zl=/^-?\d+n?$/,zn=/^-?\d+$/,tt=/^-?\d+(?:\.\d+)?$/,Vl=/^(?:true|false)$/i,Kl=/^null$/i;var Gl=/^undefined$/i;var Hl=/^[^A-Z]*$/,Wl=/^[^a-z]*$/,Jl=/^[0-9a-fA-F]*$/;function Pn(t,e){return new RegExp(`^[A-Za-z0-9+/]{${t}}${e}$`)}s(Pn,"fixedBase64");function qn(t){return new RegExp(`^[A-Za-z0-9_-]{${t}}$`)}s(qn,"fixedBase64url");var W_=/^[0-9a-fA-F]{32}$/,J_=Pn(22,"=="),Y_=qn(22),X_=/^[0-9a-fA-F]{40}$/,Q_=Pn(27,"="),eS=qn(27),tS=/^[0-9a-fA-F]{64}$/,rS=Pn(43,"="),nS=qn(43),iS=/^[0-9a-fA-F]{96}$/,oS=Pn(64,""),aS=qn(64),sS=/^[0-9a-fA-F]{128}$/,lS=Pn(86,"=="),cS=qn(86);var Y=y("$ZodCheck",(t,e)=>{var n;t._zod??(t._zod={}),t._zod.def=e,(n=t._zod).onattach??(n.onattach=[])}),Yl=s(t=>{let e=t.value;return!Qi(e)&&e.size!==void 0},"_whenHasSize"),Xl=s(t=>{let e=t.value;return!Qi(e)&&e.length!==void 0},"_whenHasLength"),bo={number:"number",bigint:"bigint",object:"date"},vo=y("$ZodCheckLessThan",(t,e)=>{Y.init(t,e);let n=bo[typeof e.value];t._zod.check=i=>{(e.inclusive?i.value<=e.value:i.value<e.value)||i.issues.push({origin:bo[typeof i.value]??n,code:"too_big",maximum:typeof e.value=="object"?e.value.getTime():e.value,input:i.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),ko=y("$ZodCheckGreaterThan",(t,e)=>{Y.init(t,e);let n=bo[typeof e.value];t._zod.check=i=>{(e.inclusive?i.value>=e.value:i.value>e.value)||i.issues.push({origin:bo[typeof i.value]??n,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:i.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),Ql=y("$ZodCheckMultipleOf",(t,e)=>{Y.init(t,e),t._zod.check=n=>{if(typeof n.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?e.value!==BigInt(0)&&n.value%e.value===BigInt(0):kn(n.value,e.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:e.value,input:n.value,inst:t,continue:!e.abort})}}),ec=y("$ZodCheckNumberFormat",(t,e)=>{Y.init(t,e),e.format=e.format||"float64";let n=e.format?.includes("int"),i=n?"int":"number",[r,o]=$n[e.format];t._zod.check=a=>{let l=a.value;if(n){if(!Number.isInteger(l)){a.issues.push({expected:i,format:e.format,code:"invalid_type",continue:!1,input:l,inst:t});return}if(!Number.isSafeInteger(l)){l>0?a.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:i,inclusive:!0,continue:!e.abort}):a.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:i,inclusive:!0,continue:!e.abort});return}}l<r&&a.issues.push({origin:"number",input:l,code:"too_small",minimum:r,inclusive:!0,inst:t,continue:!e.abort}),l>o&&a.issues.push({origin:"number",input:l,code:"too_big",maximum:o,inclusive:!0,inst:t,continue:!e.abort})}}),tc=y("$ZodCheckBigIntFormat",(t,e)=>{Y.init(t,e);let[n,i]=_n[e.format];t._zod.check=r=>{let o=r.value;o<n&&r.issues.push({origin:"bigint",input:o,code:"too_small",minimum:n,inclusive:!0,inst:t,continue:!e.abort}),o>i&&r.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:!0,inst:t,continue:!e.abort})}}),rc=y("$ZodCheckMaxSize",(t,e)=>{var n;Y.init(t,e),(n=t._zod.def).when??(n.when=Yl),t._zod.check=i=>{let r=i.value;r.size<=e.maximum||i.issues.push({origin:In(r),code:"too_big",maximum:e.maximum,inclusive:!0,input:r,inst:t,continue:!e.abort})}}),nc=y("$ZodCheckMinSize",(t,e)=>{var n;Y.init(t,e),(n=t._zod.def).when??(n.when=Yl),t._zod.check=i=>{let r=i.value;r.size>=e.minimum||i.issues.push({origin:In(r),code:"too_small",minimum:e.minimum,inclusive:!0,input:r,inst:t,continue:!e.abort})}}),ic=y("$ZodCheckSizeEquals",(t,e)=>{var n;Y.init(t,e),(n=t._zod.def).when??(n.when=Yl),t._zod.check=i=>{let r=i.value,o=r.size;if(o===e.size)return;let a=o>e.size;i.issues.push({origin:In(r),...a?{code:"too_big",maximum:e.size}:{code:"too_small",minimum:e.size},inclusive:!0,exact:!0,input:i.value,inst:t,continue:!e.abort})}}),oc=y("$ZodCheckMaxLength",(t,e)=>{var n;Y.init(t,e),(n=t._zod.def).when??(n.when=Xl),t._zod.check=i=>{let r=i.value,o=r.length;if((typeof r=="string"&&o>e.maximum?Ot(r):o)<=e.maximum)return;let l=Tn(r);i.issues.push({origin:l,code:"too_big",maximum:e.maximum,inclusive:!0,input:r,inst:t,continue:!e.abort})}}),ac=y("$ZodCheckMinLength",(t,e)=>{var n;Y.init(t,e),(n=t._zod.def).when??(n.when=Xl),t._zod.check=i=>{let r=i.value,o=r.length;if((typeof r=="string"&&o>=e.minimum&&o<e.minimum*2?Ot(r):o)>=e.minimum)return;let l=Tn(r);i.issues.push({origin:l,code:"too_small",minimum:e.minimum,inclusive:!0,input:r,inst:t,continue:!e.abort})}}),sc=y("$ZodCheckLengthEquals",(t,e)=>{var n;Y.init(t,e),(n=t._zod.def).when??(n.when=Xl),t._zod.check=i=>{let r=i.value,o=r.length,a=typeof r=="string"&&o>=e.length&&o<=e.length*2?Ot(r):o;if(a===e.length)return;let l=Tn(r),c=a>e.length;i.issues.push({origin:l,...c?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:i.value,inst:t,continue:!e.abort})}}),br=y("$ZodCheckStringFormat",(t,e)=>{var n,i;Y.init(t,e),e.pattern?(n=t._zod).check??(n.check=r=>{e.pattern.lastIndex=0,!e.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:e.format,input:r.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:t,continue:!e.abort})}):(i=t._zod).check??(i.check=()=>{})}),lc=y("$ZodCheckRegex",(t,e)=>{br.init(t,e),t._zod.check=n=>{e.pattern.lastIndex=0,!e.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),cc=y("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=Hl),br.init(t,e)}),uc=y("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=Wl),br.init(t,e)}),dc=y("$ZodCheckIncludes",(t,e)=>{Y.init(t,e);let n=Re(e.includes),i=new RegExp(typeof e.position=="number"?`^.{${e.position},}${n}`:n);e.pattern=i,t._zod.check=r=>{r.value.includes(e.includes,e.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:r.value,inst:t,continue:!e.abort})}}),pc=y("$ZodCheckStartsWith",(t,e)=>{Y.init(t,e);let n=new RegExp(`^${Re(e.prefix)}.*`);e.pattern??(e.pattern=n),t._zod.check=i=>{i.value.startsWith(e.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:i.value,inst:t,continue:!e.abort})}}),mc=y("$ZodCheckEndsWith",(t,e)=>{Y.init(t,e);let n=new RegExp(`.*${Re(e.suffix)}$`);e.pattern??(e.pattern=n),t._zod.check=i=>{i.value.endsWith(e.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:i.value,inst:t,continue:!e.abort})}});function yo(t,e,n){t.issues.length&&e.issues.push(..._e(n,t.issues))}s(yo,"handleCheckPropertyResult");var fc=y("$ZodCheckProperty",(t,e)=>{Y.init(t,e),t._zod.check=n=>{let i=e.schema._zod.run({value:n.value[e.property],issues:[]},{});if(i instanceof Promise)return i.then(r=>yo(r,n,e.property));yo(i,n,e.property)}}),gc=y("$ZodCheckProperties",(t,e)=>{Y.init(t,e),Cn(t,Symbol.iterator,function*(){yield t});let n;t._zod.check=i=>{if(i.value==null){i.issues.push({expected:"object",code:"invalid_type",input:i.value,inst:t});return}n??(n=Reflect.ownKeys(e.shape).map(a=>[a,e.shape[a]]));let r=i.value,o;for(let[a,l]of n){let c=l._zod.run({value:r[a],issues:[]},{});c instanceof Promise?(o??(o=[]),o.push(c.then(d=>yo(d,i,a)))):yo(c,i,a)}if(o)return Promise.all(o).then(()=>{})}}),hc=y("$ZodCheckMimeType",(t,e)=>{Y.init(t,e);let n=new Set(e.mime);t._zod.check=i=>{n.has(i.value.type)||i.issues.push({code:"invalid_value",values:e.mime,input:i.value.type,inst:t,continue:!e.abort})}}),bc=y("$ZodCheckOverwrite",(t,e)=>{Y.init(t,e),t._zod.check=n=>{n.value=e.tx(n.value)}});var Dt=class{static{s(this,"Doc")}constructor(e=[],n={}){this.content=[],this.indent=0,this.args=e,this.closed=n}indented(e){this.indent+=1;try{e(this)}finally{this.indent-=1}}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let i=e.split(`
92
92
  `).filter(a=>a),r=Math.min(...i.map(a=>a.length-a.trimStart().length)),o=i.map(a=>a.slice(r)).map(a=>" ".repeat(this.indent*2)+a);for(let a of o)this.content.push(a)}compile(){let e=Function,n=this?.content??[""];return new e(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
93
93
  ${n.join(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quilltap",
3
- "version": "4.14.0-dev.97",
3
+ "version": "4.14.0",
4
4
  "description": "Self-hosted AI workspace for writers, worldbuilders, and roleplayers. Run with npx quilltap.",
5
5
  "author": {
6
6
  "name": "Charles Sebold",