PageSourceSearch

https://www.meine-rvb.de/3588.095cd308f5e58ea5.js

js meine-rvb.de collected 2026-10-07 14:53:40 UTC 104,583 bytes, 1 lines download raw bytes

1(self.webpackChunkhomepageUi=self.webpackChunkhomepageUi||[]).push([[3588],{3588(Eo,kt,ze){ze.d(kt,{C5:()=>k,Gi:()=>$t,wp:()=>Ue,LM:()=>Pe,h2:()=>xt,yk:()=>P,e4:()=>$,Ur:()=>z,ce:()=>ke,ex:()=>c,N$:()=>dn,pl:()=>St});var y=ze(2383);const Pe=()=>!1,oe=g=>{Pe()&&console.warn("[payload] field value rejected \u2014 treated as absent",{input:g.input,issues:g.error.issues})},c=()=>y.Yj().trim().optional().catch(oe),$=()=>y.zM().optional().catch(oe),ke=()=>y.ai().optional().catch(oe),wt=()=>y.KC([y.Yj(),y.ai()]).optional().catch(oe),z=g=>g.optional().catch(oe),P=g=>y.YO(g).optional().catch(oe),L=g=>y.g1(y.Yj(),g).optional().catch(oe),k=y._H({":type":c(),cmsid:c(),layoutClasses:c(),containerClasses:c(),sticky:c(),individualization:c(),dataId:c()});function Fe(g){return""===g?void 0:g}const Oe=["h1","h2","h3","h4"];function $t(g,S){return Oe.find(T=>T===g)??S}ze(5247);const ln=new Map([["container","kf-container"],["container-fluid","kf-container-fluid"],["container-sm","kf-container-md"],["container-md","kf-container-lg"],["container-lg","kf-container-xl"],["container-xl","kf-container-xxl"],["pr-0","kf-p-r-0"],["pl-0","kf-p-l-0"],["row","kf-row"],["col","kf-col"],["no-gutters","kf-no-gutters"],["col-1","kf-col-1"],["col-2","kf-col-2"],["col-3","kf-col-3"],["col-4","kf-col-4"],["col-5","kf-col-5"],["col-6","kf-col-6"],["col-7","kf-col-7"],["col-8","kf-col-8"],["col-9","kf-col-9"],["col-10","kf-col-10"],["col-11","kf-col-11"],["col-12","kf-col-12"],["col-auto","kf-col-auto"],["col-sm","kf-col-md"],["col-sm-1","kf-col-md-1"],["col-sm-2","kf-col-md-2"],["col-sm-3","kf-col-md-3"],["col-sm-4","kf-col-md-4"],["col-sm-5","kf-col-md-5"],["col-sm-6","kf-col-md-6"],["col-sm-7","kf-col-md-7"],["col-sm-8","kf-col-md-8"],["col-sm-9","kf-col-md-9"],["col-sm-10","kf-col-md-10"],["col-sm-11","kf-col-md-11"],["col-sm-12","kf-col-md-12"],["col-sm-auto","kf-col-md-auto"],["col-md","kf-col-lg"],["col-md-1","kf-col-lg-1"],["col-md-2","kf-col-lg-2"],["col-md-3","kf-col-lg-3"],["col-md-4","kf-col-lg-4"],["col-md-5","kf-col-lg-5"],["col-md-6","kf-col-lg-6"],["col-md-7","kf-col-lg-7"],["col-md-8","kf-col-lg-8"],["col-md-9","kf-col-lg-9"],["col-md-10","kf-col-lg-10"],["col-md-11","kf-col-lg-11"],["col-md-12","kf-col-lg-12"],["col-md-auto","kf-col-lg-auto"],["col-lg","kf-col-xl"],["col-lg-1","kf-col-xl-1"],["col-lg-2","kf-col-xl-2"],["col-lg-3","kf-col-xl-3"],["col-lg-4","kf-col-xl-4"],["col-lg-5","kf-col-xl-5"],["col-lg-6","kf-col-xl-6"],["col-lg-7","kf-col-xl-7"],["col-lg-8","kf-col-xl-8"],["col-lg-9","kf-col-xl-9"],["col-lg-10","kf-col-xl-10"],["col-lg-11","kf-col-xl-11"],["col-lg-12","kf-col-xl-12"],["col-lg-auto","kf-col-xl-auto"],["col-xl","kf-col-xxl"],["col-xl-1","kf-col-xxl-1"],["col-xl-2","kf-col-xxl-2"],["col-xl-3","kf-col-xxl-3"],["col-xl-4","kf-col-xxl-4"],["col-xl-5","kf-col-xxl-5"],["col-xl-6","kf-col-xxl-6"],["col-xl-7","kf-col-xxl-7"],["col-xl-8","kf-col-xxl-8"],["col-xl-9","kf-col-xxl-9"],["col-xl-10","kf-col-xxl-10"],["col-xl-11","kf-col-xxl-11"],["col-xl-12","kf-col-xxl-12"],["col-xl-auto","kf-col-xxl-auto"],["align-self-auto","kf-align-self-auto"],["align-self-start","kf-align-self-start"],["align-self-end","kf-align-self-end"],["align-self-center","kf-align-self-center"],["align-self-baseline","kf-align-self-baseline"],["align-self-stretch","kf-align-self-stretch"],["align-self-sm-auto","kf-align-self-md-auto"],["align-self-sm-start","kf-align-self-md-start"],["align-self-sm-end","kf-align-self-md-end"],["align-self-sm-center","kf-align-self-md-center"],["align-self-sm-baseline","kf-align-self-md-baseline"],["align-self-sm-stretch","kf-align-self-md-stretch"],["align-self-md-auto","kf-align-self-lg-auto"],["align-self-md-start","kf-align-self-lg-start"],["align-self-md-end","kf-align-self-lg-end"],["align-self-md-center","kf-align-self-lg-center"],["align-self-md-baseline","kf-align-self-lg-baseline"],["align-self-md-stretch","kf-align-self-lg-stretch"],["align-self-lg-auto","kf-align-self-xl-auto"],["align-self-lg-start","kf-align-self-xl-start"],["align-self-lg-end","kf-align-self-xl-end"],["align-self-lg-center","kf-align-self-xl-center"],["align-self-lg-baseline","kf-align-self-xl-baseline"],["align-self-lg-stretch","kf-align-self-xl-stretch"],["align-self-xl-auto","kf-align-self-xxl-auto"],["align-self-xl-start","kf-align-self-xxl-start"],["align-self-xl-end","kf-align-self-xxl-end"],["align-self-xl-center","kf-align-self-xxl-center"],["align-self-xl-baseline","kf-align-self-xxl-baseline"],["align-self-xl-stretch","kf-align-self-xxl-stretch"],["align-items-start","kf-align-items-start"],["align-items-end","kf-align-items-end"],["align-items-center","kf-align-items-center"],["align-items-baseline","kf-align-items-baseline"],["align-items-stretch","kf-align-items-stretch"],["align-items-sm-start","kf-align-items-md-start"],["align-items-sm-end","kf-align-items-md-end"],["align-items-sm-center","kf-align-items-md-center"],["align-items-sm-baseline","kf-align-items-md-baseline"],["align-items-sm-stretch","kf-align-items-md-stretch"],["align-items-md-start","kf-align-items-lg-start"],["align-items-md-end","kf-align-items-lg-end"],["align-items-md-center","kf-align-items-lg-center"],["align-items-md-baseline","kf-align-items-lg-baseline"],["align-items-md-stretch","kf-align-items-lg-stretch"],["align-items-lg-start","kf-align-items-xl-start"],["align-items-lg-end","kf-align-items-xl-end"],["align-items-lg-center","kf-align-items-xl-center"],["align-items-lg-baseline","kf-align-items-xl-baseline"],["align-items-lg-stretch","kf-align-items-xl-stretch"],["align-items-xl-start","kf-align-items-xxl-start"],["align-items-xl-end","kf-align-items-xxl-end"],["align-items-xl-center","kf-align-items-xxl-center"],["align-items-xl-baseline","kf-align-items-xxl-baseline"],["align-items-xl-stretch","kf-align-items-xxl-stretch"],["justify-content-start","kf-justify-content-start"],["justify-content-end","kf-justify-content-end"],["justify-content-center","kf-justify-content-center"],["justify-content-between","kf-justify-content-between"],["justify-content-around","kf-justify-content-around"],["justify-content-sm-start","kf-justify-content-md-start"],["justify-content-sm-end","kf-justify-content-md-end"],["justify-content-sm-center","kf-justify-content-md-center"],["justify-content-sm-between","kf-justify-content-md-between"],["justify-content-sm-around","kf-justify-content-md-around"],["justify-content-md-start","kf-justify-content-lg-start"],["justify-content-md-end","kf-justify-content-lg-end"],["justify-content-md-center","kf-justify-content-lg-center"],["justify-content-md-between","kf-justify-content-lg-between"],["justify-content-md-around","kf-justify-content-lg-around"],["justify-content-lg-start","kf-justify-content-xl-start"],["justify-content-lg-end","kf-justify-content-xl-end"],["justify-content-lg-center","kf-justify-content-xl-center"],["justify-content-lg-between","kf-justify-content-xl-between"],["justify-content-lg-around","kf-justify-content-xl-around"],["justify-content-xl-start","kf-justify-content-xxl-start"],["justify-content-xl-end","kf-justify-content-xxl-end"],["justify-content-xl-center","kf-justify-content-xxl-center"],["justify-content-xl-between","kf-justify-content-xxl-between"],["justify-content-xl-around","kf-justify-content-xxl-around"],["align-content-start","kf-align-content-start"],["align-content-end","kf-align-content-end"],["align-content-center","kf-align-content-center"],["align-content-between","kf-align-content-between"],["align-content-around","kf-align-content-around"],["align-content-stretch","kf-align-content-stretch"],["align-content-sm-start","kf-align-content-md-start"],["align-content-sm-end","kf-align-content-md-end"],["align-content-sm-center","kf-align-content-md-center"],["align-content-sm-between","kf-align-content-md-between"],["align-content-sm-around","kf-align-content-md-around"],["align-content-sm-stretch","kf-align-content-md-stretch"],["align-content-md-start","kf-align-content-lg-start"],["align-content-md-end","kf-align-content-lg-end"],["align-content-md-center","kf-align-content-lg-center"],["align-content-md-between","kf-align-content-lg-between"],["align-content-md-around","kf-align-content-lg-around"],["align-content-md-stretch","kf-align-content-lg-stretch"],["align-content-lg-start","kf-align-content-xl-start"],["align-content-lg-end","kf-align-content-xl-end"],["align-content-lg-center","kf-align-content-xl-center"],["align-content-lg-between","kf-align-content-xl-between"],["align-content-lg-around","kf-align-content-xl-around"],["align-content-lg-stretch","kf-align-content-xl-stretch"],["align-content-xl-start","kf-align-content-xxl-start"],["align-content-xl-end","kf-align-content-xxl-end"],["align-content-xl-center","kf-align-content-xxl-center"],["align-content-xl-between","kf-align-content-xxl-between"],["align-content-xl-around","kf-align-content-xxl-around"],["align-content-xl-stretch","kf-align-content-xxl-stretch"]]);function Me(g){return g.replace(/\S+/g,S=>ln.get(S)??S)}function xt(g){return{cmsId:Fe(g.cmsid),layoutClasses:Me(g.layoutClasses??""),containerClasses:Me(g.containerClasses??""),individualization:g.individualization??"",dataId:Fe(g.dataId)}}function Ue(g,S){return[g.layoutClasses,...S,g.individualization].filter(
1Boolean).join(" ")}const we=new Map([["mat-caption","kf-note-text"],["mat-small","kf-body-2 kf-color-foreground-secondary-text"]]);function St(g){return g.replace(/(?<![\w-])class="([^"]*)"/g,(S,T)=>{const F=T.replace(/\S+/g,J=>we.get(J)??J);return F===T?S:`class="${F}"`})}const se=new Set;function Je(g){return!se.has(g)&&(se.add(g),!0)}function dn(g,S){const T=g.safeParse(S);if(T.success)return Pe()&&Be(g,S),T.data;if(Pe()){const F="object"==typeof S&&null!==S?S:void 0;console.warn("[payload] payload rejected \u2014 rendering defaults",{":type":F?.[":type"],cmsid:F?.cmsid,issues:T.error.issues})}return g.parse({})}function Be(g,S,T){if("object"!=typeof S||null===S)return;const F=g.def?.shape;if(void 0===F)return;const J=S,Ae="string"==typeof J[":type"]?J[":type"]:T??"unknown type";for(const ce of Object.keys(J))Object.hasOwn(F,ce)?Zt(F[ce],J[ce],`${Ae} \u203a ${ce}`):b.has(ce)||Ke(J[ce])||!Je(`${Ae}::${ce}`)||console.warn(`[payload] ${Ae} carries "${ce}", which its schema does not declare \u2014 new CMS field, or a typo`)}function Zt(g,S,T){const F=function $e(g){let S=g;for(;void 0!==S?.def?.innerType;)S=S.def.innerType;return S}(g),J=F?.def;"array"!==J?.type?"record"!==J?.type?"object"===J?.type&&F!==k&&Be(F,S,T):Q(J.valueType,Object.values(S??{}),T):Q(J.element,Array.isArray(S)?S:[],T)}function Q(g,S,T){for(const F of S)Zt(g,F,T)}const b=new Set([":items",":itemsOrder",":type"]);function Ve(g){return"object"==typeof g&&null!==g&&"string"==typeof g[":type"]}function Ke(g){if(Ve(g))return!0;if(Array.isArray(g))return 0===g.length||Ve(g[0]);if("object"!=typeof g||null===g)return!1;const[S]=Object.values(g);return void 0===S||Ve(S)}const R=y._H({url:c(),title:c(),target:c(),nofollow:$(),noreferrer:$(),external:$(),tracking:c(),mimeType:c(),multiLink:z(y._H({app:c(),loggedin:c(),loggedout:c()}))}),ee=y._H({fileReference:c(),filesizeString:c()}),Pt=ee.extend({mimeType:c()}),U=y._H({":type":c(),reference:c(),alt:c(),title:c(),width:ke(),height:ke(),dm:$(),transparent:$(),type:c(),caption:c()}),He=(k.extend({backgroundColor:c(),box:c(),variante:c(),headertype:c(),header:c(),":items":L(k),":itemsOrder":P(y.Yj())}),k.extend({expanded:$(),title:c(),text:c(),box:c()}),k.extend({expanded:$(),title:c(),box:c(),":items":L(k),":itemsOrder":P(y.Yj())}),k.extend({anwendungName:c(),auspraegungName:c(),auspraegungId:c(),auspraegung:c(),route:c(),tag:c()}),k.extend({shape:c(),type:c(),title:c(),icon:c(),iconAlt:c(),position:c(),link:z(R)})),de=(k.extend({header:c(),headertype:c(),position:c(),image:z(U),links:P(He)}),R.extend({description:c()})),ie=(y._H({":type":c(),buttonlinks:P(de)}),y._H({value:c(),label:c(),currency:c()})),fe=k.extend({hintergrund:c(),outline:$(),variante:c(),grafik:c(),image:z(U),icon:c(),iconAlt:c(),picto:c(),overline:c(),title:c(),titletype:c(),unterueberschrift:c(),text:c(),verlinkung:$(),link:z(R),linkTitle:c(),price:z(ie)}),te=(k.extend({header:c(),headertype:c(),liste:P(fe)}),k.extend({shape:c(),highlight:c(),overline:c(),contentHeadline:c(),contentHeadlinetype:c(),text:c(),buttonlabel:c(),icon:c(),iconAlt:c(),link:z(R)})),Ye=(k.extend({header:c(),headertype:c(),liste:P(te)}),k.extend({grafik:c(),overline:c(),contentHeadline:c(),contentHeadlinetype:c(),text:c(),buttonlabel:c(),icon:c(),image:z(U),link:z(R)})),he=(k.extend({header:c(),headertype:c(),liste:P(Ye)}),y._H({":type":c(),":items":L(fe),":itemsOrder":P(y.Yj())}),k.extend({userFilter:y.L5().optional(),header:c(),headertype:c(),subtitle:c()}),k.extend({image:z(U),verlinkung:$(),link:z(R),text:c(),viewport:$()})),Tt=(k.extend({header:c(),headertype:c(),":items":L(he),":itemsOrder":P(y.Yj())}),y._H({iconzelle:c(),iconzellentext:c(),iconalttext:c(),fusszeilenverweis:c()})),It=y._H({":type":c(),zeilenueberschrift:c(),iconzellen:P(Tt)}),qe=(y._H({":type":c(),iconzeilenausgeklappt:$(),subheader:c(),":items":L(It),":itemsOrder":P(y.Yj())}),k.extend({tag:c(),config:c(),":items":L(z(k)),":itemsOrder":P(y.Yj().optional().catch(oe))}),k.extend({headertype:c(),collapse:$(),links:P(y.L5())}),k.extend({header:c(),headertype:c(),rolling:$(),hideVisibility:$(),hideBullets:$(),pager:c(),count:c(),":items":L(k),":itemsOrder":P(y.Yj())}),k.extend({show1:$(),picto1:c(),headlinetype1:c(),headline1:c(),overline1:c(),title1:c(),text1:c(),link1:z(R),show2:$(),picto2:c(),headlinetype2:c(),headline2:c(),overline2:c(),title2:c(),text2:c(),link2:z(R),show3:$(),picto3:c(),headlinetype3:c(),headline3:c(),overline3:c(),title3:c(),text3:c(),link3:z(R)}
1),k.extend({topLevel:$(),direction:c(),backgroundColor:c(),classes:c(),flexClasses:c(),layoutWidth:c(),paddingStyle:c(),selfAlign:c(),":items":L(k),":itemsOrder":P(y.Yj())}),k.extend({auswahl:c(),ueberschrift:c(),text:c(),icon:c(),iconAlt:c(),tracking:c(),link:z(R),file:z(Pt),dateigroesse:c(),filedescription:c()}),k.extend({auswahl:c(),linktitle:c(),link:z(R),icon:c(),asset:z(Pt),assettitle:c(),assettitletag:c()})),At=k.extend({breite:c(),header:c(),liste:P(qe),":items":y.L5().optional(),":itemsOrder":y.L5().optional()}),Te=(k.extend({darstellung:c(),header:c(),headertype:c(),hintergrund:c(),position:c(),bereich:c(),image:z(U),collapseLinkListe:$(),collapseTextTeasser:$(),":items":L(At),":itemsOrder":P(y.Yj())}),y._H({role:c()})),ae=y._H({qualification:c()}),jt=y._H({branch:c()}),O=y._H({language:c()}),Et=(k.extend({firstname:c(),lastname:c(),image:z(U),roles:P(Te),qualifications:P(ae),branches:P(jt),languages:P(O),telnr:c(),mobile:c(),email:c(),description:c(),topicID:c(),tags:P(y.YO(y.Yj()))}),k.extend({darstellung:c(),hasMobileImage:$(),image:z(U),imageMobile:z(U),logo:z(U),text:c(),claim:c(),verlinkung:$(),buttonlabel1:c(),primary:z(R),verlinkung2:$(),buttonlabel2:c(),secondary:z(R)}),R.extend({icon:c(),iconAlt:c(),description:c()})),Qe=(k.extend({titel:c(),titelart:c(),subtitel:c(),subtitelsart:c(),ueberschrift:c(),hasMobileImage:$(),image:z(U),imageMobile:z(U),primary:z(R),buttonlabel1:c(),verlinkung2:$(),secondary:z(R),buttonlabel2:c(),buttons:P(Et)}),k.extend({activityName:c(),experienceVariant:c(),activityId:c(),gruppenID:P(c())}),k.extend({header:c(),headertype:c(),position:c(),graphic:c(),text:c(),image:z(U),icon:c()}),y._H({id:c(),title:c()})),Rt=(k.extend({cta:$(),tabs:P(Qe),link:z(R),title:c(),type:c(),icon:c()}),k.extend({text:c()}),k.extend({backgroundColor:c(),position:c(),ueberschriftsart:c(),ueberschrift:c(),text:c(),image:z(U),verlinkung:$(),link:z(R),linktitel:c(),type:c(),verlinkung2:$(),link2:z(R),linktitel2:c(),type2:c()}),y._H({":type":c(),":items":L(Ye),":itemsOrder":P(y.Yj())}),k.extend({backgroundColor:c(),headertype:c(),header:c(),verlinkung:$(),liste:z(k)}),k.extend({text:c()}),y._H({":type":c(),":items":L(te),":itemsOrder":P(y.Yj())}),y._H({text:c()})),tt=(y._H({":type":c(),orientation:c(),zeilenueberschrift:c(),textzellen:P(Rt)}),y._H({spaltenueberschrift:c()})),Ie=(k.extend({header:c(),headertype:c(),spaltenueberschriften:P(tt),":items":L(k),":itemsOrder":P(y.Yj())}),k.extend({darstellung:c(),source:c(),mp3accwavsource:c(),mp4webmsource:c(),position:c(),youtubeid:c(),youtubenofullscreen:$(),youtubehidecontrol:$(),mp4webminternal:z(ee),mp4webmexternal:c(),previewimage:z(U),alternativertext:c(),minute:wt(),sekunde:wt(),mp3acwavinternal:z(ee),mp3acwavexternal:c(),showoverlay:$(),datenschutzustimmung:$(),text:c(),texttext:c(),datenschutzlinktitel:c(),datenschutzlink:c(),datenschutzbuttontitel:c(),header:c(),headertype:c(),thema:c(),publishdate:c(),mp4transkriptionsdatei:z(ee),mp4audiodeskriptionsdatei:z(ee),mp3transkriptionsdatei:z(ee),audiodeskription:z(ee),transkript:z(ee),mp4subtitledatei:z(ee),hasSubtitlesInMedia:$()}),y._H({onTime:ke(),offTime:ke(),montag:$(),dienstag:$(),mittwoch:$(),donnerstag:$(),freitag:$(),samstag:$(),sonntag:$()}));y._H({":type":c(),zeitcontainer:P(Ie),":items":L(z(k)),":itemsOrder":P(y.Yj().optional().catch(oe))})},2383(Eo,kt,ze){ze.d(kt,{YO:()=>bt,zM:()=>zo,_H:()=>qc,ai:()=>yo,g1:()=>$o,Yj:()=>gt,KC:()=>tn,L5:()=>Ze});var y=ze(467);function z(e){const t=Object.values(e).filter(r=>"number"==typeof r);return Object.entries(e).filter(([r,o])=>-1===t.indexOf(+r)).map(([r,o])=>o)}function P(e,t="|"){return e.map(n=>Ke(n)).join(t)}function L(e,t){return"bigint"==typeof t?t.toString():t}function k(e){return{get value(){{const n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function Oe(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function D(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function H(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Me(e){return JSON.stringify(e)}const Ue="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function we(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}const St=k(()=>
1{if(W.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch{return!1}});function se(e){if(!1===we(e))return!1;const t=e.constructor;if(void 0===t||"function"!=typeof t)return!0;const n=t.prototype;return!(!1===we(n)||!1===Object.prototype.hasOwnProperty.call(n,"isPrototypeOf"))}function Je(e){return se(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const Be=new Set(["string","number","symbol"]);function $e(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Q(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function b(e){const t=e;if(!t)return{};if("string"==typeof t)return{error:()=>t};if(void 0!==t?.message){if(void 0!==t?.error)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,"string"==typeof t.error?{...t,error:()=>t.error}:t}function Ke(e){return"bigint"==typeof e?e.toString()+"n":"string"==typeof e?`"${e}"`:`${e}`}const ee={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]};function He(e,t,n,r="partial"){const s=t._zod.def.checks;if(s&&s.length>0)throw new Error(`.${r}() cannot be used on object schemas containing refinements`);const a=H(t._zod.def,{get shape(){const u=t._zod.def.shape,l={...u};if(n)for(const d of Reflect.ownKeys(n)){if(!Object.prototype.hasOwnProperty.call(u,d))throw new Error(`Unrecognized key: "${String(d)}"`);n[d]&&(l[d]=e?new e({type:"optional",innerType:u[d]}):u[d])}else for(const d of Reflect.ownKeys(u))l[d]=e?new e({type:"optional",innerType:u[d]}):u[d];return D(this,"shape",l),l},checks:[]});return Q(t,a)}function de(e,t=0){if(!0===e.aborted)return!0;for(let n=t;n<e.issues.length;n++)if(!0!==e.issues[n]?.continue)return!0;return!1}function gn(e,t=0){if(!0===e.aborted)return!0;for(let n=t;n<e.issues.length;n++)if(!1===e.issues[n]?.continue)return!0;return!1}function ie(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function fe(e){return"string"==typeof e?e:e?.message}function Ot(e,t,n){var r;for(let o=t;o<e.length;o++)(r=e[o]).schema??(r.schema=n)}function te(e,t,n){var r;const o=e.inst?._zod?.traits;o?.has("$ZodType")&&(o.has("$ZodCheck")?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);const s=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,i=e.message?e.message:fe(e.inst?._zod.def?.error?.(e))??fe(s?.(e))??fe(t?.error?.(e))??fe(n.customError?.(e))??fe(n.localeError?.(e))??"Invalid input",{inst:a,schema:u,continue:l,input:d,...f}=e;return f.path??(f.path=[]),f.message=i,t?.reportInput&&(f.input=d),f}const Ye=/[\uD800-\uDBFF]/;function Ge(e){const t=e.length;if(!Ye.test(e))return t;let n=t;for(let r=0;r<t-1;r++)55296==(64512&e.charCodeAt(r))&&56320==(64512&e.charCodeAt(r+1))&&(n--,r++);return n}function We(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function he(...e){const[t,n,r]=e;return"string"==typeof t?{message:t,code:"custom",input:n,inst:r}:{...t}}function _e(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function qe(e,t,n){return _e(e,t,n,!1)}function At(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return null==this?n:_e(this,t,n.bind(this))},set(r){_e(this,t,r)}})}let Te,ae=!1;const jt={configurable:!0,get(){ae=!0}};function O(e,t,n){const r=Object.getPrototypeOf(e._zod);t in r&&Te!==e._zod?Te=void 0:(Te=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,jt);const o=ae;ae=!1;try{const s=n(this);return ae?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:s}),ae=ae||o,s}catch(s){throw delete this[t],ae=ae||o,s}},set(o){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:o})}}))}function Et(e){const t=()=>e;return t["~constantCatch"]=!0,t}var Nt;const Xe={value:void 0,enumerable:!1};let Qe="captureStackTrace"in Error?Error:null;function p(e,t,n,r){function s(m){this.def=m,this.constr=f,this.traits=new Set}s.prototype={};const i=n,a=i&&new WeakSet;function u(m,h){if(!m._zod){Xe.value=new s(h);try{Object.defineProperty(m,"_zod",Xe)}finally{Xe.value=void 0}}if(m._zod.traits.has(e))return;if(m._zod.traits.add(e),t(m,h),a){const w=Object.getPrototypeOf(m),Z=m._zod.constr.prototype;let K=w;for(;
1K&&K!==Z;)K=Object.getPrototypeOf(K);const re=K??w;a.has(re)||(a.add(re),function bn(e,t){for(const n in t){const r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):At(e,n,r.value)}}(re,i))}const _=f.prototype;for(const w in _)Object.prototype.hasOwnProperty.call(_,w)&&(w in m||(m[w]=_[w].bind(m)))}const l=r?.Parent??Object;class d extends l{}function f(m){const h=r?.Parent?function wn(e){const t=Qe;if(t){const n=t.stackTraceLimit;if("number"==typeof n){try{t.stackTraceLimit=0}catch{return Qe=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}(d):this;u(h,m);const _=h._zod.deferred;if(_){for(const Z of _)Z();h._zod.deferred=void 0}const w=globalThis.__zod_globalConfig?.postProcessor;return w&&w(h),h}return Object.defineProperty(d,"name",{value:e}),Object.defineProperty(f,"init",{value:u}),Object.defineProperty(f,Symbol.hasInstance,{value:m=>!!(r?.Parent&&m instanceof r.Parent)||m?._zod?.traits?.has(e)}),Object.defineProperty(f,"name",{value:e}),f}class ge extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Ct extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(Nt=globalThis).__zod_globalConfig??(Nt.__zod_globalConfig={});const W=globalThis.__zod_globalConfig;function ne(e){return e&&Object.assign(W,e),W}class Rt extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}}const et="~memo",tt=[];function nt(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}const Dt=new WeakMap;function Ie(e,t){const n=Dt.get(e);if(void 0!==n)return n;if(t.has(e))return!0;t.add(e);let r=!1;const o=a=>{!r&&a?._zod&&Ie(a,t)&&(r=!0)},s=e._zod.def;switch(s.type){case"object":for(const a of Reflect.ownKeys(s.shape))o(s.shape[a]);o(s.catchall);break;case"array":o(s.element);break;case"tuple":for(const a of s.items)o(a);o(s.rest);break;case"record":case"map":o(s.keyType),o(s.valueType);break;case"set":o(s.valueType);break;case"union":for(const a of s.options)o(a);break;case"intersection":o(s.left),o(s.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":o(s.innerType);break;case"pipe":o(s.in),o(s.out);break;case"function":o(s.input),o(s.output);break;case"lazy":o(e._zod.innerType);break;case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(const a in s){const u=Object.getOwnPropertyDescriptor(s,a);if(!u||u.get)continue;const l=u.value;if(l&&"object"==typeof l)if(l._zod)o(l);else if(Array.isArray(l))for(const d of l)o(d)}}return t.delete(e),Dt.set(e,r),r}let S;const T=[],F={alloc(e,t,n){const r=S;if(!r)return n;S=void 0;const o={value:n,issues:null};return r.set(t.value,o),T.push(o),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{const n=e._zod.parse,r=(o,s)=>{if("backward"!==s.direction&&function Ae(e,t){const n=e[et]?.backEdges;return void 0!==n&&null!==t&&"object"==typeof t&&n.has(t)}(s,o.value))throw new Rt;return n(o,s)};e._zod.parse=r,e._zod.run===n&&(e._zod.run=r)})},attach(e){var t;let n,r,o;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{const s=e._zod.parse,i=(a,u)=>{if(void 0===n&&(n=Ie(e,new Set),!n))return e._zod.parse=s,e._zod.run===i&&(e._zod.run=s),s(a,u);const l=a.value;if(null===l||"object"!=typeof l)return s(a,u);let f,d=u[et];d||(d={buckets:new Map,backEdges:void 0},u[et]=d),r===u?f=o:(f=function g(e,t){let n=e.buckets.get(t);return n||(n=new Map,e.buckets.set(t,n)),n}(d,e),r=u,o=f);const m=f.get(l);if(m)return a.value=m.value,m.issues?m.issues.length&&a.issues.push(...nt(m.issues)):(a.memo=!0,d.backEdges??(d.backEdges=new Set),d.backEdges.add(m.value)),a;S=f;const h=T.length,_=s(a,u);S=void 0;const w=T.length>h?T.pop():void 0;return _ instanceof Promise?_.then(Z=>(w&&(w.issues=Z.issues.length?nt(Z.issues):tt),Z)):(w&&(w.issues=_.issues.length?nt(_.issues):tt),_)};e._zod.parse=i,e._zod.run===s&&(e._zod.run=i)})}},Go=/^[cC][0-9a-z]{6,}$/,Wo=/^[0-9a-z]+$/,qo=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,Xo=/^[0-9a-vA-V]{20}$/,Qo=/^[A-Za-z0-9]{27}$/,es=/^[a-zA-Z0-9_-]{21}$/,ns=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,rs=/^([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})$/,$n=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[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)$/,os=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,as=/^(?:(?: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])$/,cs=/^(([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}|:))$/,us=/^((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])$/,ls=/^(([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])$/,ds=/^$|^(?:[0-9a-zA-Z+/]{4}
1)*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,xn=/^[A-Za-z0-9_-]*$/,fs=/^https?$/,ps=/^\+[1-9]\d{6,14}$/,Sn="(?:(?:\\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 ms(e){return new RegExp(`^${e}$`)}const hs=ms(Sn);function Ft(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}const Zn=/^-?\d+$/,Lt=/^-?\d+(?:\.\d+)?$/,vs=/^(?:true|false)$/i,zs=/^[^A-Z]*$/,ks=/^[^a-z]*$/,B=p("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Mt=e=>{const t=e.value;return!function Fe(e){return null==e}(t)&&void 0!==t.length},rt={number:"number",bigint:"bigint",object:"date"},On=p("$ZodCheckLessThan",(e,t)=>{B.init(e,t);const n=rt[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag;t.value<((t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY)&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:rt[typeof r.value]??n,code:"too_big",maximum:"object"==typeof t.value?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Tn=p("$ZodCheckGreaterThan",(e,t)=>{B.init(e,t);const n=rt[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag;t.value>((t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY)&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:rt[typeof r.value]??n,code:"too_small",minimum:"object"==typeof t.value?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ws=p("$ZodCheckMultipleOf",(e,t)=>{B.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof n.value?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):0===function $t(e,t){const n=e/t,r=Math.round(n),o=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<o?0:n-r}(n.value,t.value))||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),$s=p("$ZodCheckNumberFormat",(e,t)=>{B.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[o,s]=ee[t.format];e._zod.onattach.push(i=>{const a=i._zod.bag;a.format=t.format,a.minimum=o,a.maximum=s,n&&(a.pattern=Zn)}),e._zod.check=i=>{const a=i.value;if(n){if(!Number.isInteger(a))return void i.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:a,inst:e});if(!Number.isSafeInteger(a))return void i.issues.push(a>0?{input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}:{input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort})}a<o&&i.issues.push({origin:"number",input:a,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),a>s&&i.issues.push({origin:"number",input:a,code:"too_big",maximum:s,inclusive:!0,inst:e,continue:!t.abort})}}),xs=p("$ZodCheckMaxLength",(e,t)=>{var n;B.init(e,t),(n=e._zod.def).when??(n.when=Mt),e._zod.onattach.push(r=>{t.maximum<(r._zod.bag.maximum??Number.POSITIVE_INFINITY)&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value,s=o.length;if(("string"==typeof o&&s>t.maximum?Ge(o):s)<=t.maximum)return;const a=We(o);r.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Ss=p("$ZodCheckMinLength",(e,t)=>{var n;B.init(e,t),(n=e._zod.def).when??(n.when=Mt),e._zod.onattach.push(r=>{t.minimum>(r._zod.bag.minimum??Number.NEGATIVE_INFINITY)&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value,s=o.length;if(("string"==typeof o&&s>=t.minimum&&s<2*t.minimum?Ge(o):s)>=t.minimum)return;const a=We(o);r.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Zs=p("$ZodCheckLengthEquals",(e,t)=>{var n;B.init(e,t),(n=e._zod.def).when??(n.when=Mt),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=r=>{const o=r.value,s=o.length,i="string"==typeof o&&s>=t.length&&s<=2*t.length?Ge(o):s;if(i===t.length)return;const a=We(o);r.issues.push({origin:a,...i>t.length?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),ot=p("$ZodCheckStringFormat",(e,t)=>{var n,r;B.init(e,t),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Ps=p("$ZodCheckRegex",(e,t)=>{ot.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Os=p("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=zs),ot.init(e,t)}),Ts=p("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=ks),ot.init(e,t)}),Is=p("$ZodCheckIncludes",(e,t)=>{B.init(e,t);const n=$e(t.includes),r=new RegExp("number"==typeof t.position?`^.{${t.position},}${n}`:n);t.pattern=r,e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input
1:o.value,inst:e,continue:!t.abort})}}),As=p("$ZodCheckStartsWith",(e,t)=>{B.init(e,t);const n=new RegExp(`^${$e(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),js=p("$ZodCheckEndsWith",(e,t)=>{B.init(e,t);const n=new RegExp(`.*${$e(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),Es=p("$ZodCheckOverwrite",(e,t)=>{B.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Ns{constructor(t=[],n={}){this.content=[],this.indent=0,this.args=t,this.closed=n}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if("function"==typeof t)return t(this,{execution:"sync"}),void t(this,{execution:"async"});const r=t.split("\n").filter(i=>i),o=Math.min(...r.map(i=>i.length-i.trimStart().length)),s=r.map(i=>i.slice(o)).map(i=>" ".repeat(2*this.indent)+i);for(const i of s)this.content.push(i)}compile(){const t=Function,n=this?.content??[""];return new t(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {\n${n.join("\n")}\n};`)(...Object.values(this.closed))}}const Ds={get:function Cs(){const e=this._zod;return e.message??(e.message=JSON.stringify(e.def,L,2)),e.message},set:function Rs(e){this._zod.message=e},enumerable:!0,configurable:!0},Ut={value:void 0,enumerable:!1},Jt={value:void 0,enumerable:!1},In=new WeakSet([Object.prototype,Error.prototype]),An=(e,t)=>{e.name="$ZodError",Ut.value=e._zod,Object.defineProperty(e,"_zod",Ut),Jt.value=t,Object.defineProperty(e,"issues",Jt),Ut.value=void 0,Jt.value=void 0,Object.defineProperty(e,"message",Ds);const n=Object.getPrototypeOf(e);In.has(n)||(In.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){const r=()=>this.message;return Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0})}}))},jn=p("$ZodError",An),q=p("$ZodError",An,void 0,{Parent:Error});function Fs(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||("__proto__"===t?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function st(e,t){return{callee:t?.callee??e,Err:t?.Err}}const it=e=>{const t=(n,r,o,s)=>{const i=o?{...o,async:!1}:{async:!1},a=n._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new ge;if(a.issues.length){const u=new(s?.Err??e)(a.issues.map(l=>te(l,i,ne())));throw Ue(u,s?.callee??t),u}return a.value};return t},at=e=>{const t=function(){var n=(0,y.A)(function*(r,o,s,i){const a=s?{...s,async:!0}:{async:!0};let u=r._zod.run({value:o,issues:[]},a);if(u instanceof Promise&&(u=yield u),u.issues.length){const l=new(i?.Err??e)(u.issues.map(d=>te(d,a,ne())));throw Ue(l,i?.callee??t),l}return u.value});return function(o,s,i,a){return n.apply(this,arguments)}}();return t},ct=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new ge;return s.issues.length?{success:!1,error:new(e??jn)(s.issues.map(i=>te(i,o,ne())))}:{success:!0,data:s.value}},Bs=ct(q),ut=e=>function(){var t=(0,y.A)(function*(n,r,o){const s=o?{...o,async:!0}:{async:!0};let i=n._zod.run({value:r,issues:[]},s);return i instanceof Promise&&(i=yield i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>te(a,s,ne())))}:{success:!0,data:i.value}});return function(n,r,o){return t.apply(this,arguments)}}(),Vs=ut(q),En=e=>{const t=it(e),n=(r,o,s,i)=>{const a=s?{...s,direction:"backward"}:{direction:"backward"};return t(r,o,a,st(n,i))};return n},Nn=e=>{const t=it(e),n=(r,o,s,i)=>t(r,o,s,st(n,i));return n},Cn=e=>{const t=at(e),n=function(){var r=(0,y.A)(function*(o,s,i,a){const u=i?{...i,direction:"backward"}:{direction:"backward"};
1return yield t(o,s,u,st(n,a))});return function(s,i,a,u){return r.apply(this,arguments)}}();return n},Rn=e=>{const t=at(e),n=function(){var r=(0,y.A)(function*(o,s,i,a){return yield t(o,s,i,st(n,a))});return function(s,i,a,u){return r.apply(this,arguments)}}();return n},Dn=e=>(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return ct(e)(t,n,o)},Fn=e=>(t,n,r)=>ct(e)(t,n,r),Ln=e=>function(){var t=(0,y.A)(function*(n,r,o){const s=o?{...o,direction:"backward"}:{direction:"backward"};return ut(e)(n,r,s)});return function(n,r,o){return t.apply(this,arguments)}}(),Mn=e=>function(){var t=(0,y.A)(function*(n,r,o){return ut(e)(n,r,o)});return function(n,r,o){return t.apply(this,arguments)}}(),Gs={major:4,minor:5,patch:4},I=p("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Gs;const r=e._zod.def.checks,o=e._zod.traits.has("$ZodCheck")?[e,...r??[]]:r?.length?[...r]:[];for(const s of o)for(const i of s._zod.onattach)i(e);if(0===o.length)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const s=(a,u,l)=>{if(a.memo)return a;let f,d=de(a);for(const m of u){if(m._zod.def.when){if(gn(a)||!m._zod.def.when(a))continue}else if(d)continue;const h=a.issues.length,_=m._zod.check(a);if(_ instanceof Promise&&!1===l?.async)throw new ge;if(f||_ instanceof Promise)f=(f??Promise.resolve()).then((0,y.A)(function*(){yield _,a.issues.length!==h&&(Ot(a.issues,h,e),d||(d=de(a,h)))}));else{if(a.issues.length===h)continue;Ot(a.issues,h,e),d||(d=de(a,h))}}return f?f.then(()=>a):a},i=(a,u,l)=>{if(de(a))return a.aborted=!0,a;const d=s(u,o,l);if(d instanceof Promise){if(!1===l.async)throw new ge;return d.then(f=>e._zod.parse(f,l))}return e._zod.parse(d,l)};e._zod.run=(a,u)=>{if(u.skipChecks)return e._zod.parse(a,u);if("backward"===u.direction){const d=e._zod.parse({value:a.value,issues:[]},{...u,skipChecks:!0});return d instanceof Promise?d.then(f=>i(f,a,u)):i(d,a,u)}const l=e._zod.parse(a,u);if(l instanceof Promise){if(!1===u.async)throw new ge;return l.then(d=>s(d,o,u))}return s(l,o,u)}}},{get"~standard"(){return qe(this,"~standard",Jn(this))},set"~standard"(e){_e(this,"~standard",e)}}),Un=e=>e.success?{value:e.data}:{issues:e.error?.issues};function Jn(e){return{validate:t=>{try{return Un(Bs(e,t))}catch{return Vs(e,t).then(Un)}},vendor:"zod",version:1}}const Vt=p("$ZodString",(e,t)=>{I.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??(e=>new RegExp(`^${e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*"}$`))(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return"string"==typeof n.value||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),A=p("$ZodStringFormat",(e,t)=>{ot.init(e,t),Vt.init(e,t)}),qs=p("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=rs),A.init(e,t)}),Xs=p("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===r)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=$n(r))}else t.pattern??(t.pattern=$n());A.init(e,t)}),Qs=p("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=os),A.init(e,t)}),ti=/[\t\n\r]/g,si=p("$ZodURL",(e,t)=>{A.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),o=function ei(e,t){if(!t.normalize&&t.protocol?.source===fs.source&&!/^https?:\/\//i.test(e))return 1;try{return new URL(e)}catch{return 2}}(r,t);return 1===o?void n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort}):2===o?void n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort}):(t.hostname&&!function ri(e,t){return t.lastIndex=0,t.test(e.hostname)}(o,t.hostname)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!function oi(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}(o,t.protocol)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),void(n.value=t.normalize?o.href:function ni(e){return e.replace(ti,"")}(r)))}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),ii=p("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=function is(){return new RegExp("^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$","u")}()),A.init(e,t)}),ai=p("$ZodNanoID",(e,t)=>{if(void 0!==t.length&&(!Number.isInteger(t.length)||t.length<1))throw new Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=void 0===t.length?es:function ts(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}(t.length)),A.init(e,t)}),ci=p("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Go),A.init(e,t)}),ui=p("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Wo),A.init(e,t)}),li=p("$ZodULID",(e,t)=>{t.pattern??(t.pattern=qo),A.init(e,t)}),di=p("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Xo),A.init(e,t)}),fi=p("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Qo),A.init(e,t)}),pi=p("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=function gs(e){const t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${Ft({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,r=e.local?`${n}|${Ft({precision:e.precision})}`:n;return new RegExp(`^${Sn}T(?:${r})$`)}(t)),A.init(e,t),(t.local||-1===t.precision)&&(e._zod.bag.laxFormat=!0,e._zod.onattach.push(n=>{n._zod.bag.laxFormat=!0}))}),mi=p("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=hs),A.init(e,t)}),hi=p("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=function _s(e){return new RegExp(`^${Ft(e)}$`)}(t)),A.init(e,t)}),_i=p("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=ns),A.init(e,t)}),gi=p("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=as),A.init(e,t),e._zod.bag.format="ipv4"}),yi=/^[0-9a-fA-F:.]+$/;function Kn(e){if(!yi.test(e))return!1;try{return new URL(`http://[${e}]`),!0}catch{return!1}}const bi=p("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=cs),A.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{Kn(n.value)||n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}),vi=p("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=us),A.init(e,t)}),ki=p("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=ls),A.init(e,t),e._zod.check=n=>{(function zi(e){const t=e.split("/");if(2!==t.length)return!1;const[n,r]=t;if(!r)return!1;const o=Number(r);return!(`${o}`!==r||o<0||o>128)&&Kn(n)})(n.value)||n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}});function Hn(e){if(""===e)return!0;
1if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}const wi=p("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=ds),A.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Hn(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}}),xi=p("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=xn),A.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{(function $i(e){if(!xn.test(e))return!1;const t=e.replace(/[-_]/g,r=>"-"===r?"+":"/");return Hn(t.padEnd(4*Math.ceil(t.length/4),"="))})(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Si=p("$ZodE164",(e,t)=>{t.pattern??(t.pattern=ps),A.init(e,t)}),Ti=p("$ZodJWT",(e,t)=>{A.init(e,t),e._zod.check=n=>{(function Oi(e,t=null){try{const n=e.split(".");if(3!==n.length)return!1;const[r]=n;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&"JWT"!==o?.typ||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}})(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Yn=p("$ZodNumber",(e,t)=>{I.init(e,t),e._zod.pattern=e._zod.bag.pattern??Lt,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const o=n.value;if("number"==typeof o&&!Number.isNaN(o)&&Number.isFinite(o))return n;const s="number"==typeof o?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:String(o):void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...s?{received:s}:{}}),n}}),Ii=p("$ZodNumberFormat",(e,t)=>{$s.init(e,t),Yn.init(e,t)}),Ai=p("$ZodBoolean",(e,t)=>{I.init(e,t),e._zod.pattern=vs,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const o=n.value;return"boolean"==typeof o||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),Ei=p("$ZodUnknown",(e,t)=>{I.init(e,t),e._zod.parse=n=>n}),Ni=p("$ZodNever",(e,t)=>{I.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Gn(e,t,n){e.issues.length&&t.issues.push(...ie(n,e.issues)),t.value[n]=e.value}const Ci=p("$ZodArray",(e,t)=>{I.init(e,t);const n=W.memoizer;n?.attach(e),e._zod.parse=(r,o)=>{const s=r.value;if(!Array.isArray(s))return r.issues.push({expected:"array",code:"invalid_type",input:s,inst:e}),r;r.value=n?n.alloc(e,r,Array(s.length),o):Array(s.length);const i=[];for(let a=0;a<s.length;a++){const l=t.element._zod.run({value:s[a],issues:[]},o);l instanceof Promise?i.push(l.then(d=>Gn(d,r,a))):Gn(l,r,a)}return i.length?Promise.all(i).then(()=>r):r}});function lt(e,t,n,r,o,s){const i=n in r,a="optional"===s;if(i||!a||"optional"!==o){if(e.issues.length){if(void 0!==o&&a&&!i)return;t.issues.push(...ie(n,e.issues))}if(!i&&void 0===o)return void(e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]}));void 0===e.value?i&&(t.value[n]=void 0):t.value[n]=e.value}}const Ri=[];function Wn(e){const t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:Ri,o=r.length?[...t,...r]:t;for(const i of o)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(i)}": expected a Zod schema`);const s=function R(e){return Object.keys(e).filter(t=>void 0!==e[t]._zod.optin&&"optional"===e[t]._zod.optout)}(e.shape);return{...e,allKeys:o,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(s)}}function qn(e,t,n,r,o,s){const i=[],a=o.keySet,u=o.catchall._zod,l=u.def.type,d=u.optin,f=u.optout;for(const m in t){if(a.has(m))continue;if("__proto__"===m){"never"===l&&i.push(m);continue}if("never"===l){i.push(m);continue}const h=u.run({value:t[m],issues:[]},r);h instanceof Promise?e.push(h.then(_=>lt(_,n,m,t,d,f))):lt(h,n,m,t,d,f)}return i.length&&n.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:s,continue:!0}),e.length?Promise.all(e).then(()=>n):n}const Xn=new WeakMap,Di=p("$ZodObject",(e,t)=>{if(I.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const u=t.shape;Xn.set(t,u),Object.defineProperty(t,"shape",{get:()=>{const l={...u};return Object.defineProperty(t,"shape",{value:l}),Xn.set(t,l),l}})}const r=k(()=>Wn(t));O(e,"propValues",u=>{const l=u.def.shape,d={};for(const f in l){const m=l[f]._zod;if(m.values){Object.prototype.hasOwnProperty.call(d,f)||D(d,f,new Set);for(const h of m.values)d[f].add(h);void 0!==m.optin&&d[f].add(void 0)}}return d});const o=we,s=t.catchall;let i;const a=W.memoizer;a?.attach(e),e._zod.parse=(u,l)=>{i??(i=r.value);const d=u.value;if(!o(d))return u.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),u;u.value=a?a.alloc(e,u,{},l):{};const f=[],m=i.shape;for(const h of i.allKeys){if("__proto__"===h)continue;const _=m[h],w=_._zod.optin,Z=_._zod.optout,K=_._zod.run({value:d[h],issues:[]},l);K instanceof Promise?f.push(K.then(re=>lt(re,u,h,d,w,Z))):lt(K,u,h,d,w,Z)}return s?qn(f,d,u,l,r.value,e):f.length?Promise.all(f).then(()=>u):u}}
1),Fi=p("$ZodObjectJIT",(e,t)=>{Di.init(e,t);const n=e._zod.parse,r=k(()=>Wn(t)),o=W.memoizer;let i;const a=we,u=!W.jitless,d=u&&St.value,f=t.catchall;let m;e._zod.parse=(h,_)=>{m??(m=r.value);const w=h.value;return a(w)?u&&d&&!1===_?.async&&!0!==_.jitless?(i||(i=(h=>{const _=r.value,w=_.symbolKeys,Z=new Ns(["payload","ctx"],{shape:h,inst:e,memo:o,syms:w}),K=G=>`shape[${G}]._zod.run({ value: input[${G}], issues: [] }, ctx)`,re=(G,N)=>`\n          for (let i = 0; i < ${G}.issues.length; i++) {\n            const iss = ${G}.issues[i];\n            iss.path = iss.path ? [${N}, ...iss.path] : [${N}];\n            payload.issues.push(iss);\n          }`;Z.write("const input = payload.value;");const To=Object.create(null);let Au=0;for(const G of _.allKeys)To[G]="key_"+Au++;Z.write(o?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(const G of _.allKeys){if("__proto__"===G)continue;const N=To[G],ue="symbol"==typeof G?`syms[${w.indexOf(G)}]`:Me(G),cn=`${ue} in input`,Io=h[G],Ao=Io?._zod?.optin,jo=void 0!==Ao,ju="optional"===Io?._zod?.optout;if(Z.write(`const ${N} = ${K(ue)};`),jo&&ju){const Eu="optional"===Ao?`${N}_present`:`${N}.value !== undefined || ${N}_present`;Z.write(`\n        const ${N}_present = ${cn};\n        if (!${N}.issues.length || ${N}_present) {\n          if (${N}.issues.length) {${re(N,ue)}\n          }\n\n          if (${Eu}) {\n            newResult[${ue}] = ${N}.value;\n          }\n        }\n\n      `)}else Z.write(jo?`\n        if (${N}.issues.length) {${re(N,ue)}\n        }\n        \n        if (${N}.value === undefined) {\n          if (${cn}) {\n            newResult[${ue}] = undefined;\n          }\n        } else {\n          newResult[${ue}] = ${N}.value;\n        }\n\n      `:`\n        const ${N}_present = ${cn};\n        if (${N}.issues.length) {${re(N,ue)}\n        }\n        if (!${N}_present && !${N}.issues.length) {\n          payload.issues.push({\n            code: "invalid_type",\n            expected: "nonoptional",\n            input: undefined,\n            path: [${ue}]\n          });\n        }\n\n        if (${N}_present) {\n          newResult[${ue}] = ${N}.value;\n        }\n\n      `)}return Z.write("payload.value = newResult;"),Z.write("return payload;"),Z.compile()})(t.shape)),h=i(h,_),f?qn([],w,h,_,m,e):h):n(h,_):(h.issues.push({expected:"object",code:"invalid_type",input:w,inst:e}),h)}});function Qn(e,t,n,r){for(const s of e)if(0===s.issues.length)return t.value=s.value,t;const o=e.filter(s=>!de(s));return 1===o.length?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(s=>s.issues.map(i=>te(i,r,ne())))}),t)}const Li=p("$ZodUnion",(e,t)=>{I.init(e,t),O(e,"optin",r=>r.def.options.some(o=>"defaulted"===o._zod.optin)?"defaulted":r.def.options.some(o=>void 0!==o._zod.optin)?"optional":void 0),O(e,"optout",r=>r.def.options.some(o=>"optional"===o._zod.optout)?"optional":void 0),O(e,"values",r=>{if(r.def.options.every(o=>o._zod.values))return new Set(r.def.options.flatMap(o=>Array.from(o._zod.values)))}),O(e,"pattern",r=>{if(r.def.options.every(o=>o._zod.pattern)){const o=r.def.options.map(s=>s._zod.pattern);return new RegExp(`^(${o.map(s=>Oe(s.source)).join("|")})$`)}});const n=1===t.options.length?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let s=!1;const i=[];for(const a of t.options){const u=a._zod.run({value:r.value,issues:[]},o);if(u instanceof Promise)i.push(u),s=!0;else{if(0===u.issues.length)return u;i.push(u)}}return s?Promise.all(i).then(a=>Qn(a,r,e,o)):Qn(i,r,e,o)}}),Mi=p("$ZodIntersection",(e,t)=>{I.init(e,t),e._zod.parse=(n,r)=>{const o=n.value,s=t.left._zod.run({value:o,issues:[]},r),i=t.right._zod.run({value:o,issues:[]},r);return s instanceof Promise||i instanceof Promise?Promise.all([s,i]).then(([u,l])=>er(n,u,l)):er(n,s,i)}});function Kt(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(se(e)&&se(t)){const n=Object.keys(t),r=Object.keys(e).filter(s=>-1!==n.indexOf(s)),o={...e,...t};Object.prototype.hasOwnProperty.call(o,"__proto__")&&delete o.__proto__;for(const s of r){if("__proto__"===s)continue;const i=Kt(e[s],t[s]);if(!i.valid)return{valid:!1,mergeErrorPath:[s,...i.mergeErrorPath]};o[s]=i.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const i=Kt(e[r],t[r]);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function er(e,t,n){const r=new Map;let o;const s=new Map,i=(l,d)=>{let f;if("unrecognized_keys"!==l.code||l.path?.length){if("invalid_key"!==l.code||"record"!==l.origin||1!==l.path?.length)return!1;{const m=String(l.path[0]);s.has(m)||s.set(m,l),f=[m]}}else o??(o=l),f=l.keys;for(const m of f)r.has(m)||r.set(m,{}),r.get(m)[d]=!0;return!0};for(const l of t.issues)i(l,"l")||e.issues.push(l);for(const l of n.issues)i(l,"r")||e.issues.push(l);const a=[...r].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(a.length){const l=o?a.filter(d=>o.keys.includes(d)):[];l.length&&e.issues.push({...o,keys:l});for(const d of a)!l.includes(d)&&s.has(d)&&e.issues.push(s.get(d))}const u=Kt(t.value,n.value);if(!u.valid){if(de(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(u.mergeErrorPath)}`)}return e.value=u.data,e}const Ji=p("$ZodRecord",(e,t)=>{I.init(e,t);const n=W.memoizer;n?.attach(e),e._zod.parse=(r,o)=>{const s=r.value;if(!se(s))return r.issues.push({expected:"record",code:"invalid_type",input:s,inst:e}),r;const i=[],a=t.keyType._zod.values;if(a&&!t.partial){r.value=n?n.alloc(e,r,{},o):{};const u=new Set;for(const d of a)if("string"==typeof d||"number"==typeof d||"symbol"==typeof d){if(u.add("number"==typeof d?d.toString():d),"__proto__"===d)continue;const f=t.keyType._zod.run({value:d,issues:[]},o);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(f.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:f.issues.map(_=>
1te(_,o,ne())),input:d,path:[d],inst:e});continue}const m=f.value;if("__proto__"===m)continue;const h=t.valueType._zod.run({value:s[d],issues:[]},o);h instanceof Promise?i.push(h.then(_=>{_.issues.length&&r.issues.push(...ie(d,_.issues)),r.value[m]=_.value})):(h.issues.length&&r.issues.push(...ie(d,h.issues)),r.value[m]=h.value)}let l;for(const d in s)if(!u.has(d))if("loose"===t.mode){if("__proto__"===d)continue;r.value[d]=s[d]}else l=l??[],l.push(d);l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:s,inst:e,keys:l,continue:!0})}else{let u;r.value=n?n.alloc(e,r,{},o):{};for(const l of Reflect.ownKeys(s)){if("__proto__"===l||!Object.prototype.propertyIsEnumerable.call(s,l))continue;let d=t.keyType._zod.run({value:l,issues:[]},o);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if("string"==typeof l&&Lt.test(l)&&d.issues.length){const _=t.keyType._zod.run({value:Number(l),issues:[]},o);if(_ instanceof Promise)throw new Error("Async schemas not supported in object keys currently");0===_.issues.length&&(d=_)}if(d.issues.length){"loose"===t.mode?r.value[l]=s[l]:a?(u=u??[],u.push(l)):r.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(_=>te(_,o,ne())),input:l,path:[l],inst:e});continue}const m=d.value;if("__proto__"===m)continue;const h=t.valueType._zod.run({value:s[l],issues:[]},o);h instanceof Promise?i.push(h.then(_=>{_.issues.length&&r.issues.push(...ie(l,_.issues)),r.value[m]=_.value})):(h.issues.length&&r.issues.push(...ie(l,h.issues)),r.value[m]=h.value)}u&&u.length>0&&r.issues.push({code:"unrecognized_keys",input:s,inst:e,keys:u,continue:!0})}return i.length?Promise.all(i).then(()=>r):r}}),Bi=p("$ZodEnum",(e,t)=>{I.init(e,t);const n=z(t.entries),r=new Set(n);e._zod.values=r;const o=n.filter(s=>Be.has(typeof s));e._zod.pattern=new RegExp(o.length?`^(${o.map(s=>$e(s.toString())).join("|")})$`:"^[^\\s\\S]$"),e._zod.parse=(s,i)=>{const a=s.value;return r.has(a)||s.issues.push({code:"invalid_value",values:n,input:a,inst:e}),s}}),Vi=p("$ZodTransform",(e,t)=>{I.init(e,t),e._zod.optin="optional",W.memoizer?.guard(e),e._zod.parse=(n,r)=>{if("backward"===r.direction)throw new Ct(e.constructor.name);const o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(i=>(n.value=i,n));if(o instanceof Promise)throw new ge;return n.value=o,n}});function or(e,t){return e.value=t.issues.length?void 0:t.value,e}const sr=p("$ZodOptional",(e,t)=>{I.init(e,t),O(e,"optin",n=>"defaulted"===n.def.innerType._zod.optin?"defaulted":"optional"),e._zod.optout="optional",O(e,"values",n=>{const r=n.def.innerType._zod.values;return r?new Set([...r,void 0]):void 0}),O(e,"pattern",n=>{const r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${Oe(r.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(void 0===n.value){if("defaulted"!==t.innerType._zod.optin)return n;const o=t.innerType._zod.run({value:n.value,issues:[]},r);return o instanceof Promise?o.then(s=>or(n,s)):or(n,o)}return t.innerType._zod.run(n,r)}}),Ki=p("$ZodExactOptional",(e,t)=>{sr.init(e,t),O(e,"values",n=>n.def.innerType._zod.values),O(e,"pattern",n=>n.def.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),Hi=p("$ZodNullable",(e,t)=>{I.init(e,t),O(e,"optin",n=>n.def.innerType._zod.optin),O(e,"optout",n=>n.def.innerType._zod.optout),O(e,"pattern",n=>{const r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${Oe(r.source)}|null)$`):void 0}),O(e,"values",n=>n.def.innerType._zod.values?new Set([...n.def.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>null===n.value?n:t.innerType._zod.run(n,r)}),Yi=p("$ZodDefault",(e,t)=>{I.init(e,t),e._zod.optin="defaulted",O(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if("backward"===r.direction)return t.innerType._zod.run(n,r);if(void 0===n.value)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>ir(s,t)):ir(o,t)}});function ir(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}const Gi=p("$ZodPrefault",(e,t)=>{I.init(e,t),e._zod.optin="defaulted",O(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>("backward"===r.direction||void 0===n.value&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),Wi=p("$ZodNonOptional",(e,t)=>{I.init(e,t),O(e,"values",n=>{const r=n.def.innerType._zod.values;return r?new Set([...r].filter(o=>void 0!==o)):void 0}),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>ar(s,e)):ar(o,e)}});function ar(e,t){return!e.issues.length&&void 0===e.value&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}
1function cr(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(o=>te(o,r,ne()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}const qi=p("$ZodCatch",(e,t)=>{I.init(e,t),O(e,"optin",n=>"defaulted"===n.def.innerType._zod.optin?"defaulted":"optional"),O(e,"optout",n=>n.def.innerType._zod.optout),O(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if("backward"===r.direction)return t.innerType._zod.run(n,r);const o=t.innerType._zod.run({value:n.value,issues:[]},r);return o instanceof Promise?o.then(s=>cr(n,s,t,r)):cr(n,o,t,r)}}),Xi=p("$ZodPipe",(e,t)=>{I.init(e,t),O(e,"values",n=>n.def.in._zod.values),O(e,"optin",n=>n.def.in._zod.optin),O(e,"optout",n=>n.def.out._zod.optout),O(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,r)=>{if("backward"===r.direction){const s=t.out._zod.run(n,r);return s instanceof Promise?s.then(i=>dt(i,t.in,r)):dt(s,t.in,r)}const o=t.in._zod.run(n,r);return o instanceof Promise?o.then(s=>dt(s,t.out,r)):dt(o,t.out,r)}});function dt(e,t,n){return e.issues.some(r=>"unrecognized_keys"!==r.code)?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const Qi=p("$ZodReadonly",(e,t)=>{I.init(e,t),O(e,"propValues",n=>n.def.innerType._zod.propValues),O(e,"values",n=>n.def.innerType._zod.values),O(e,"optin",n=>n.def.innerType?._zod?.optin),O(e,"optout",n=>n.def.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if("backward"===r.direction)return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(ur):ur(o)}});function ur(e){return e.memo||(e.value=Object.freeze(e.value)),e}const ea=p("$ZodCustom",(e,t)=>{B.init(e,t),I.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(s=>lr(s,n,r,e));lr(o,n,r,e)}});function lr(e,t,n,r){if(!e){const o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(he(o))}}var dr;class ta{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&"object"==typeof r&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&"object"==typeof n&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}(dr=globalThis).__zod_globalRegistry??(dr.__zod_globalRegistry=function na(){return new ta}());const le=globalThis.__zod_globalRegistry;function ra(e,t){return new e({type:"string",...b(t)})}function oa(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...b(t)})}function sa(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...b(t)})}function ia(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...b(t)})}function aa(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...b(t)})}function ca(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...b(t)})}function ua(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...b(t)})}function la(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...b(t)})}function da(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...b(t)})}function fa(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...b(t)})}function pa(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...b(t)})}function ma(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...b(t)})}function ha(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...b(t)})}function _a(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...b(t)})}function ga(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...b(t)})}function ya(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...b(t)})}function ba(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...b(t)})}function va(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...b(t)})}function za(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...b(t)})}function ka(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...b(t)})}function wa(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...b(t)})}function $a(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...b(t)})}function xa(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...b(t)})}function Sa(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...b(t)})}function Za(e,t){return new e({type:"string",format:"date",check:"string_format",...b(t)})}function Pa(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...b(t)})}function Oa(e,t){return new e({type:"string",format:"duration",check:"string_format",...b(t)})}function Ta(e,t){return new e({type:"number",checks:[],...b(t)})}function Ia(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...b(t)})}function Aa(e,t){return new e({type:"boolean",...b(t)})}function ja(e){return new e({type:"unknown"})}function Ea(e,t){return new e({type:"never",...b(t)})}function je(e,t){return new On({check:"less_than",...b(t),value:e,inclusive:!1})}function be(e,t){return new On({check:"less_than",...b(t),value:e,inclusive:!0})}function Ee(e,t){return new Tn({check:"greater_than",...b(t),value:e,inclusive:!1})}function ve(e,t){return new Tn({check:"greater_than",...b(t),value:e,inclusive:!0})}function Ht(e,t){return new ws({check:"multiple_of",...b(t),value:e})}function fr(e,t){return new xs({check:"max_length",...b(t),maximum:e})}function mt(e,t){return new Ss({check:"min_length",...b(t),minimum:e})}function pr(e,t){return new Zs({check:"length_equals",...b(t),length:e})}function Na(e,t){return new Ps({check:"string_format",format:"regex",...b(t),pattern:e})}function Ca(e){return new Os({check:"string_format",format:"lowercase",...b(e)})}
1function Ra(e){return new Ts({check:"string_format",format:"uppercase",...b(e)})}function Da(e,t){return new Is({check:"string_format",format:"includes",...b(t),includes:e})}function Fa(e,t){return new As({check:"string_format",format:"starts_with",...b(t),prefix:e})}function La(e,t){return new js({check:"string_format",format:"ends_with",...b(t),suffix:e})}function Se(e){return new Es({check:"overwrite",tx:e})}function Ma(e){return Se(t=>t.normalize(e))}function Ua(){return Se(e=>e.trim())}function Ja(){return Se(e=>e.toLowerCase())}function Ba(){return Se(e=>e.toUpperCase())}function Va(){return Se(e=>function xt(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}(e))}function Ka(e,t,n){return new e({type:"array",element:t,...b(n)})}function Ha(e,t,n){return new e({type:"custom",check:"custom",fn:t,...b(n)})}function Ya(e,t){const n=Ga(r=>(r.addIssue=o=>{if("string"==typeof o)r.issues.push(he(o,r.value,n._zod.def));else{const s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),"input"in s||(s.input=r.value),s.inst??(s.inst=n),s.continue??(s.continue=!n._zod.def.abort),r.issues.push(he(s))}},e(r.value,r)),t);return n}function Ga(e,t){const n=new B({check:"custom",...b(t)});return n._zod.check=e,n}function Ne(e,...t){for(const n of t)for(const r of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,r)&&D(e,r,n[r]);return e}function mr(e){let t=e?.target??"draft-2020-12";return"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??le,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function M(e,t,n,r,o){const s="function"==typeof t.unrepresentable?t.unrepresentable({zodSchema:e,path:r.path,message:o}):t.unrepresentable;if("any"===s)return!1;if(void 0===s||"throw"===s)throw new Error(o);return Object.assign(n,s),!0}function j(e,t,n={path:[],schemaPath:[]}){var r;const o=e._zod.def,s=t.seen.get(e);if(s)return s.count++,n.schemaPath.includes(e)&&(s.cycle=n.path),s.schema;const i={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,i),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;const a=e._zod.toJSONSchema?.();if(a)i.schema=a;else{const d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,d);else{const m=i.schema,h=t.processors[o.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);h(e,t,m,d)}const f=e._zod.parent;f&&(i.ref||(i.ref=f),j(f,t,d),t.seen.get(f).isParent=!0)}const u=t.metadataRegistry.get(e);return u&&Ne(i.schema,u),"input"===t.io&&V(e)&&(delete i.schema.examples,delete i.schema.default),"input"===t.io&&"_prefault"in i.schema&&((r=i.schema).default??(r.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function hr(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function _r(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;const r=new Map;for(const i of e.seen.entries()){const a=e.metadataRegistry.get(i[0])?.id;if(a){const u=r.get(a);if(u&&u!==i[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(a,i[0])}}const s=i=>{if(i[1].schema.$ref)return;const a=i[1],{ref:u,defId:l}=(i=>{const a="draft-2020-12"===e.target?"$defs":"definitions";if(e.external){const f=e.external.registry.get(i[0])?.id,m=e.external.uri??(_=>_);if(f)return{ref:m(f)};const h=i[1].defId??i[1].schema.id??"schema"+e.counter++;return i[1].defId=h,{defId:h,ref:`${m("__shared")}#/${a}/${hr(h)}`}}const l=`#/${a}/`;if(i[1]===n&&!i[1].schema.id)return{ref:"#"};const d=i[1].schema.id??"__schema"+e.counter++;return{defId:d,ref:l+hr(d)}})(i);a.def={...a.schema},l&&(a.defId=l);const d=a.schema;for(const f in d)delete d[f];d.$ref=u};if("throw"===e.cycles)for(const i of e.seen.entries()){const a=i[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>\n\nSet the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const i of e.seen.entries()){const a=i[1];if(t!==i[0]){if(e.external){const l=e.external.registry.get(i[0])?.id;if(t!==i[0]&&l){s(i);continue}}(e.metadataRegistry.get(i[0])?.id||a.cycle||a.count>1&&"ref"===e.reused)&&s(i)}else s(i)}e.external&&(e.sharedDefsExtractedFor=e.external)}function gr(e){const t=e.anyOf;if(!Array.isArray(t)||0===t.length||void 0!==e.type)return;const n=[];for(const r of t){if(!r||"object"!=typeof r)return;gr(r);const o=Object.keys(r);if(1!==o.length||"type"!==o[0])return;const s=r.type;for(const i of Array.isArray(s)?s:[s]){if("string"!=typeof i)return;n.includes(i)||n.push(i)}}delete e.anyOf,e.type=1===n.length?n[0]:n}const yr=new Set(["type","properties","required","additionalProperties"]),br=["oneOf","anyOf"];function vr(e){const t=e.additionalProperties;return void 0===t||!1===t||"object"!=typeof t||null===t?null:Object.keys(t).length?t:null}function Yt(e){const t=[];for(const s of e){if("object"!=typeof s||"object"!==s.type)return null;for(const i in s)if(!yr.has(i))return null;t.push(s)}const n={},r=new Set;for(const s of t){for(const i in s.properties){if(Object.prototype.hasOwnProperty.call(n,i))continue;const a=[];for(const l of t){const d=l.properties?.[i]??vr(l);null!=d&&(a.some(f=>JSON.stringify(f)===JSON.stringify(d))||a.push(d))}D(n,i,1===a.length?a[0]:Yt(a)??{allOf:a})}for(const i of s.required??[])r.add(i)}const o={type:"object",properties:n};if(r.size&&(o.required=[...r]),t.every(s=>!1===s.additionalProperties))o.additionalProperties=!1;else{const s=[];for(const i of t){const a=vr(i);a&&!s.some(u=>JSON.stringify(u)===JSON.stringify(a))&&s.push(a)}1===s.length?o.additionalProperties=s[0]:s.length>1&&(o.additionalProperties={allOf:s})}return o}function Xa(e){const t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(const o of yr)if(o in e)return;const n=t.filter(o=>br.some(s=>Array.isArray(o[s])));let r=null;if(n.length){const o=n[0],s=br.find(u=>Array.isArray(o[u]));if(1!==Object.keys(o).length)return;const i=t.filter(u=>u!==o),a=o[s].map(u=>Yt([...i,u]));if(a.some(u=>!u))return;r={[s]:a}}else r=Yt(t);r&&(delete e.allOf,Ne(e,r))}function zr(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=a=>{const u=e.seen.get(a);if(null===u.ref)return;const l=u.def??u.schema,d={...l},f=u.ref;if(u.ref=null,f){r(f);const h=e.seen.get(f),_=h.schema;if(!_.$ref||"draft-07"!==e.target&&"draft-04"!==e.target&&"openapi-3.0"!==e.target?Ne(l,_):(l.allOf=l.allOf??[],l.allOf.push(_)),Ne(l,d),a._zod.parent===f)for(const Z in l)"$ref"===Z||"allOf"===Z||Z in d||delete l[Z];if(_.$ref&&h.def)for(const Z in l)"$ref"===Z||"allOf"===Z||Z in h.def&&JSON.stringify(l[Z])===JSON.stringify(h.def[Z])&&delete l[Z]}const m=a._zod.parent;if(m&&m!==f){r(m);const h=e.seen.get(m);
1if(h?.schema.$ref&&(l.$ref=h.schema.$ref,h.def))for(const _ in l)"$ref"===_||"allOf"===_||_ in h.def&&JSON.stringify(l[_])===JSON.stringify(h.def[_])&&delete l[_]}e.override({zodSchema:a,jsonSchema:l,path:u.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(const a of[...e.seen.entries()].reverse())r(a[0]);if("openapi-3.0"!==e.target)for(const a of e.seen.entries())gr(a[1].def??a[1].schema);for(const a of e.deferred)a();if(e.intersections.length){const a=new Map;for(const u of e.seen.values())for(const l of[u.schema,u.def]){const d=l?.allOf;if(!Array.isArray(d))continue;const f=a.get(d);f?f.push(l):a.set(d,[l])}for(const u of e.intersections)for(const l of a.get(u)??[])Xa(l)}}const o={};if("draft-2020-12"===e.target?o.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===e.target?o.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===e.target&&(o.$schema="http://json-schema.org/draft-04/schema#"),e.external?.uri){const a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(a)}Ne(o,n.defId?n.schema:n.def??n.schema);const s=e.metadataRegistry.get(t)?.id;void 0!==s&&o.id===s&&delete o.id;const i=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(const a of e.seen.entries()){const u=a[1];u.def&&u.defId&&(u.def.id===u.defId&&delete u.def.id,D(i,u.defId,u.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(i).length>0&&("draft-2020-12"===e.target?o.$defs=i:o.definitions=i);try{const a=JSON.parse(JSON.stringify(o));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:ht(t,"input",e.processors),output:ht(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function V(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if("transform"===r.type)return!0;if("array"===r.type)return V(r.element,n);if("set"===r.type)return V(r.valueType,n);if("lazy"===r.type)return V(r.getter(),n);if("promise"===r.type||"optional"===r.type||"nonoptional"===r.type||"nullable"===r.type||"readonly"===r.type||"default"===r.type||"prefault"===r.type||"catch"===r.type)return V(r.innerType,n);if("intersection"===r.type)return V(r.left,n)||V(r.right,n);if("record"===r.type||"map"===r.type)return V(r.keyType,n)||V(r.valueType,n);if("pipe"===r.type)return!!e._zod.traits.has("$ZodCodec")||V(r.in,n)||V(r.out,n);if("object"===r.type){for(const o in r.shape)if(V(r.shape[o],n))return!0;return!1}if("union"===r.type){for(const o of r.options)if(V(o,n))return!0;return!1}if("tuple"===r.type){for(const o of r.items)if(V(o,n))return!0;return!(!r.rest||!V(r.rest,n))}return!1}const ht=(e,t,n={})=>r=>{const{libraryOptions:o,target:s}=r??{},i=mr({...o??{},target:s,io:t,processors:n});return j(e,i),_r(i,e),zr(i,e)},tc={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""};function Ce(e){const t=e._zod.def;return"pipe"===t.type&&t.in._zod.traits.has("$ZodTransform")?Ce(t.out):"catch"===t.type?Ce(t.innerType):e._zod.optin}function Gt(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);const _=e.get(t)?.def;if(!_)return t;const w=Gt(e,_,n);return w===_?t:w}for(const _ of["anyOf","oneOf"]){const w=t[_];if(!Array.isArray(w))continue;const Z=w.map(K=>Gt(e,K,n));Z.some((K,re)=>K!==w[re])&&(t={...t,[_]:Z})}const r=Array.isArray(t.type)?t.type:[t.type],o=!r.includes("string")&&r.some(_=>"number"===_||"integer"===_),s=t.enum??(void 0!==t.const?[t.const]:void 0);if(!o&&!s?.some(_=>"number"==typeof _))return t;const{minimum:i,maximum:a,exclusiveMinimum:u,exclusiveMaximum:l,multipleOf:d,format:f,id:m,...h}=t;return h.enum?h.enum=h.enum.map(_=>"number"==typeof _?String(_):_):"number"==typeof h.const&&(h.const=String(h.const)),o&&(h.type="string",s||(h.pattern=(r.includes("number")?Lt:Zn).source)),h}const Wt=new WeakMap,qt=Symbol();function Jr(e,t,n,r,o){let s=!1;const i=JSON.stringify(e,(a,u)=>"bigint"!=typeof u?u:(s=!0,null));return s?(M(t,n,r,o,"BigInt defaults cannot be represented in JSON Schema"),qt):JSON.parse(i)}const Xt=(e,t,n,r)=>{const o=e._zod.def;j(o.innerType,t,r),t.seen.get(e).ref=o.innerType},yc=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(s){return e[s]??null}const n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",credit_card:"credit card number",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};function o(s,i){return"number"!==s||"number"!=typeof i||Number.isFinite(i)?r[s]??s:String(i)}return s=>
1{switch(s.code){case"invalid_type":{const i=o(s.expected),a=function yn(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(null===e)return"null";if(Array.isArray(e))return"array";const n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}(s.input);return`Invalid input: expected ${i}, received ${o(a,s.input)}`}case"invalid_value":return 1===s.values.length?`Invalid input: expected ${Ke(s.values[0])}`:`Invalid option: expected one of ${P(s.values,"|")}`;case"too_big":{const i=s.exact?"exactly ":s.inclusive?"<=":"<",a=t(s.origin);return a?`Too big: expected ${s.origin??"value"} to have ${i}${s.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${s.origin??"value"} to be ${i}${s.maximum.toString()}`}case"too_small":{const i=s.exact?"exactly ":s.inclusive?">=":">",a=t(s.origin);return a?`Too small: expected ${s.origin} to have ${i}${s.minimum.toString()} ${a.unit}`:`Too small: expected ${s.origin} to be ${i}${s.minimum.toString()}`}case"invalid_format":return"starts_with"===s.format?`Invalid string: must start with "${s.prefix}"`:"ends_with"===s.format?`Invalid string: must end with "${s.suffix}"`:"includes"===s.format?`Invalid string: must include "${s.includes}"`:"regex"===s.format?`Invalid string: must match pattern ${s.pattern}`:`Invalid ${n[s.format]??s.format}`;case"not_multiple_of":return`Invalid number: must be a multiple of ${s.divisor}`;case"unrecognized_keys":return`Unrecognized key${s.keys.length>1?"s":""}: ${P(s.keys,", ")}`;case"invalid_key":return`Invalid key in ${s.origin}`;case"invalid_union":return s.options&&Array.isArray(s.options)&&s.options.length>0?`Invalid discriminator value. Expected ${s.options.map(a=>`'${a}'`).join(" | ")}`:!1===s.inclusive?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${s.origin}`;default:return"Invalid input"}}},Wr=new WeakSet([Object.prototype,Error.prototype]);function _t(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){const r=n(this);return Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0})}})}const X=p("ZodError",(e,t)=>{jn.init(e,t),e.name="ZodError";const n=Object.getPrototypeOf(e);Wr.has(n)||(Wr.add(n),_t(n,"format",r=>o=>function Ms(e,t=n=>n.message){const n={_errors:[]},r=(o,s=[])=>{for(const i of o.issues)if("invalid_union"===i.code&&i.errors.length)i.errors.map(a=>r({issues:a},[...s,...i.path]));else if("invalid_key"===i.code)r({issues:i.issues},[...s,...i.path]);else if("invalid_element"===i.code)r({issues:i.issues},[...s,...i.path]);else{const a=[...s,...i.path];if(0===a.length)n._errors.push(t(i));else{let u=n,l=0;for(;l<a.length;){const d=a[l],f=l===a.length-1;if("_errors"===d){f&&u._errors.push(t(i)),l++;continue}Object.prototype.hasOwnProperty.call(u,d)||Object.defineProperty(u,d,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});const m=u[d];f&&m._errors.push(t(i)),u=m,l++}}}};return r(e),n}(r,o)),_t(n,"flatten",r=>o=>function Ls(e,t=n=>n.message){const n={},r=[];for(const o of e.issues)o.path.length>0?Fs(n,o.path[0],()=>[]).push(t(o)):r.push(t(o));return{formErrors:r,fieldErrors:n}}(r,o)),_t(n,"addIssue",r=>o=>{r.issues.push(o),r.message=JSON.stringify(r.issues,L,2)}
1),_t(n,"addIssues",r=>o=>{r.issues.push(...o),r.message=JSON.stringify(r.issues,L,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return 0===this.issues.length}}))},void 0,{Parent:Error}),zc=it(X),kc=at(X),wc=ct(X),$c=ut(X),xc=En(X),Sc=Nn(X),Zc=Cn(X),Pc=Rn(X),Oc=Dn(X),Tc=Fn(X),Ic=Ln(X),Ac=Mn(X);function Re(){W.memoizer||ne({memoizer:F})}const E=p("ZodType",(e,t)=>(function jc(){W.localeError||ne(function bc(){return{localeError:yc()}}())}(),I.init(e,t),e.def=t,e.type=t.type,e),{check(...e){const t=this.def;return this.clone(H(t,{checks:[...t.checks??[],...e.map(n=>"function"==typeof n?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Q(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(function Tu(e,t={}){return Ha(an,e,t)}(e,t))},superRefine(e,t){return this.check(function Iu(e,t){return Ya(e,t)}(e,t))},overwrite(e){return this.check(Se(e))},optional(){return rn(this)},exactOptional(){return function lu(e){return new Zo({type:"optional",innerType:e})}(this)},nullable(){return on(this)},nullish(){return rn(on(this))},nonoptional(e){return function _u(e,t){return new Po({type:"nonoptional",innerType:e,...b(t)})}(this,e)},array(){return bt(this)},or(e){return tn([this,e])},and(e){return function nu(e,t){return new tu({type:"intersection",left:e,right:t})}(this,e)},transform(e){return Oo(this,function So(e){return new uu({type:"transform",transform:e})}(e))},default(e){return function pu(e,t){return new fu({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():Je(t)}})}(this,e)},prefault(e){return function hu(e,t){return new mu({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():Je(t)}})}(this,e)},catch(e){return function bu(e,t){return new yu({type:"catch",innerType:e,catchValue:"function"==typeof t?t:Et(t)})}(this,e)},pipe(e){return Oo(this,e)},readonly(){return function $u(e){return new wu({type:"readonly",innerType:e})}(this)},describe(e){const t=this.clone();return le.add(t,{description:e}),t},meta(...e){if(0===e.length)return le.get(this);const t=this.clone();return le.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return 0===t.length?e(this):e(this,...t)},get"~standard"(){return qe(this,"~standard",{...Jn(this),jsonSchema:{input:ht(this,"input"),output:ht(this,"output")}})},set"~standard"(e){_e(this,"~standard",e)},parse:function e(t,n){return zc(this,t,n,{callee:e})},parseAsync:function(){var e=(0,y.A)(function*(n,r){return yield kc(this,n,r,{callee:t})});function t(n,r){return e.apply(this,arguments)}return t}(),safeParse(e,t){return wc(this,e,t)},safeParseAsync(e,t){var n=this;return(0,y.A)(function*(){return $c(n,e,t)})()},get spa(){return this?.safeParseAsync},set spa(e){_e(this,"spa",e)},encode:function e(t,n){return xc(this,t,n,{callee:e})},decode:function e(t,n){return Sc(this,t,n,{callee:e})},encodeAsync:function(){var e=(0,y.A)(function*(n,r){return yield Zc(this,n,r,{callee:t})});function t(n,r){return e.apply(this,arguments)}return t}(),decodeAsync:function(){var e=(0,y.A)(function*(n,r){return yield Pc(this,n,r,{callee:t})});function t(n,r){return e.apply(this,arguments)}return t}(),safeEncode(e,t){return Oc(this,e,t)},safeDecode(e,t){return Tc(this,e,t)},safeEncodeAsync(e,t){var n=this;return(0,y.A)(function*(){return Ic(n,e,t)})()},safeDecodeAsync(e,t){var n=this;return(0,y.A)(function*(){return Ac(n,e,t)})()},toJSONSchema(e){return((e,t={})=>n=>{const r=mr({...n,processors:t});return j(e,r),_r(r,e),zr(r,e)})(this,{})(e)},get description(){return le.get(this)?.description},get _def(){return this._zod.def}}),qr=p("_ZodString",(e,t)=>{Vt.init(e,t),E.init(e,t),e._zod.processJSONSchema=(r,o,s)=>((e,t,n)=>{const o=n;o.type="string";const{minimum:s,maximum:i,format:a,patterns:u,contentEncoding:l,laxFormat:d}=e._zod.bag;if("number"==typeof s&&(o.minLength=s),"number"==typeof i&&(o.maxLength=i),a&&(o.format=tc[a]??a,""===o.format&&delete o.format,("time"===a||d)&&delete o.format),l&&(o.contentEncoding=l),u&&u.size>0){const f=[...u];1===f.length?o.pattern=f[0].source:f.length>1&&(o.allOf=[...f.map(m=>({..."draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target?{type:"string"}:{},pattern:m.source}))])}})(e,r,o);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null},{regex(...e){return this.check(Na(...e))},includes(...e){return this.check(Da(...e))},startsWith(...e){return this.check(Fa(...e))},endsWith(...e){return this.check(La(...e))},min(...e){return this.check(mt(...e))},max(...e){return this.check(fr(...e))},length(...e){return this.check(pr(...e))},nonempty(...e){return this.check(mt(1,...e))},lowercase(e){return this.check(Ca(e))},uppercase(e){return this.check(Ra(e))},trim(){return this.check(Ua())},normalize(...e){return this.check(Ma(...e))},toLowerCase(){return this.check(Ja())},toUpperCase(){return this.check(Ba())},slugify(){return this.check(Va())}}),Xr=p("ZodString",(e,t)=>{Vt.init(e,t),qr.init(e,t)},{email(e){return this.check(oa(Qr,e))},url(e){return this.check(la(Qt,e))},jwt(e){return this.check(xa(_o,e))},emoji(e){return this.check(da(to,e))},guid(e){return this.check(sa(eo,e))},uuid(e){return this.check(ia(pe,e))},uuidv4(e){return this.check(aa(pe,e))},uuidv6(e){return this.check(ca(pe,e))},uuidv7(e){return this.check(ua(pe,e))},nanoid(e){return this.check(fa(no,e))},cuid(e){return this.check(pa(ro,e))},cuid2(e){return this.check(ma(oo,e))},ulid(e){return this.check(ha(so,e))},base64(e){return this.check(ka(po,e))},base64url(e){return this.check(wa(mo,e))},xid(e){return this.check(_a(io,e))},ksuid(e){return this.check(ga(ao,e))},ipv4(e){return this.check(ya(co,e))},ipv6(e){return this.check(ba(uo,e))},cidrv4(e){return this.check(va(lo,e))},cidrv6(e){return this.check(za(fo,e))},e164(e){return this.check($a(ho,e))},datetime(e){return this.check(Sa(Ec,e))},date(e){return this.check(Za(Nc,e))},time(e){return this.check(Pa(Cc,e))},duration(e){return this.check(Oa(Rc,e))}});function gt(e){return ra(Xr,e)}const C=p("ZodStringFormat",(e,t)=>{A.init(e,t),qr.init(e,t)}),Ec=p("ZodISODateTime",(e,t)=>{pi.init(e,t),C.init(e,t)}),Nc=p("ZodISODate",(e,t)=>{mi.init(e,t),C.init(e,t)}),Cc=p("ZodISOTime",(e,t)=>{hi.init(e,t),C.init(e,t)}),Rc=p("ZodISODuration",(e,t)=>{_i.init(e,t),C.init(e,t)}),Qr=p("ZodEmail",(e,t)=>{Qs.init(e,t),C.init(e,t)}),eo=p("ZodGUID",(e,t)=>{qs.init(e,t),C.init(e,t)}),pe=p("ZodUUID",(e,t)=>{Xs.init(e,t),C.init(e,t)}),Qt=p("ZodURL",(e,t)=>{si.init(e,t),C.init(e,t)}),to=p("ZodEmoji",(e,t)=>{ii.init(e,t),C.init(e,t)}),no=p("ZodNanoID",(e,t)=>{ai.init(e,t),C.init(e,t)}),ro=p("ZodCUID",(e,t)=>{ci.init(e,t),C.init(e,t)}),oo=p("ZodCUID2",(e,t)=>{ui.init(e,t),C.init(e,t)}),so=p("ZodULID",(e,t)=>{li.init(e,t),C.init(e,t)}),io=p("ZodXID",(e,t)=>{di.init(e,t),C.init(e,t)}),ao=p("ZodKSUID",(e,t)=>{fi.init(e,t),C.init(e,t)}),co=p("ZodIPv4",(e,t)=>{gi.init(e,t),C.init(e,t)}),uo=p("ZodIPv6",(e,t)=>{bi.init(e,t),C.init(e,t)}),lo=p("ZodCIDRv4",(e,t)=>{vi.init(e,t),C.init(e,t)}),fo=p("ZodCIDRv6",(e,t)=>{ki.init(e,t),C.init(e,t)}),po=p("ZodBase64",(e,t)=>{wi.init(e,t),C.init(e,t)}),mo=p("ZodBase64URL",(e,t)=>{xi.init(e,t),C.init(e,t)}),ho=p("ZodE164",(e,t)=>{Si.init(e,t),C.init(e,t)}),_o=p("ZodJWT",(e,t)=>{Ti.init(e,t),C.init(e,t)}),go=p("ZodNumber",(e,t)=>{Yn.init(e,t),E.init(e,t),e._zod.processJSONSchema=(r,o,s)=>((e,t,n,r)=>{const o=n,{minimum:s,maximum:i,format:a,multipleOf:u,exclusiveMaximum:l,exclusiveMinimum:d}=e._zod.bag;o.type="string"==typeof a&&a.includes("int")?"integer":"number";const m="number"==typeof l&&l<=(i??Number.POSITIVE_INFINITY),h="draft-04"===t.target||"openapi-3.0"===t.target;"number"==typeof d&&d>=(s??Number.NEGATIVE_INFINITY)?h?(o.minimum=d,o.exclusiveMinimum=!0):o.exclusiveMinimum=d:"number"==typeof s&&(o.minimum=s),m?h?(o.maximum=l,o.exclusiveMaximum=!0):o.exclusiveMaximum=l:"number"==typeof i&&(o.maximum=i),"number"==typeof u&&(Number.isFinite(u)&&0!==u?o.multipleOf=Math.abs(u):M(e,t,o,r,`A multipleOf divisor of ${u} cannot be represented in JSON Schema`))})(e,r,o,s);const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null},{gt(e,t){return this.check(Ee(e,t))},gte(e,t){return this.check(ve(e,t))},min(e,t){return this.check(ve(e,t))},lt(e,t){return this.check(je(e,t))},lte(e,t){return this.check(be(e,t))},max(e,t){return this.check(be(e,t))},int(e){return this.check(bo(e))},safe(e){return this.check(bo(e))},positive(e){return this.check(Ee(0,e))},nonnegative(e){return this.check(ve(0,e))},negative(e){return this.check(je(0,e))},nonpositive(e){return this.check(be(0,e))},multipleOf(e,t){return this.check(Ht(e,t))},step(e,t){return this.check(Ht(e,t))},finite(){return this}});function yo(e){return Ta(go,e)}const De=p("ZodNumberFormat",(e,t)=>{Ii.init(e,t),go.init(e,t)});function bo(e){return Ia(De,e)}const vo=p("ZodBoolean",(e,t)=>{Ai.init(e,t),E.init(e,t),e._zod.processJSONSchema=(n,r,o)=>((e,t,n)=>{n.type="boolean"})(0,0,r)});function zo(e){return Aa(vo,e)}const Kc=p("ZodUnknown",(e,t)=>{Ei.init(e,t),E.init(e,t),e._zod.processJSONSchema=(n,r,o)=>{}});function Ze(){return ja(Kc)}const Hc=p("ZodNever",(e,t)=>{Ni.init(e,t),E.init(e,t),e._zod.processJSONSchema=(n,r,o)=>((e,t,n)=>{n.not={}})(0,0,r)});const Wc=p("ZodArray",(e,t)=>{Re(),Ci.init(e,t),E.init(e,t),e._zod.processJSONSchema=(n,r,o)=>((e,t,n,r)=>{const o=n,s=e._zod.def,{minimum:i,maximum:a}=e._zod.bag;"number"==typeof i&&(o.minItems=i),"number"==typeof a&&(o.maxItems=a),o.type="array",o.items=j(s.element,t,{...r,path:[...r.path,"items"]})})(e,n,r,o),e.element=t.element},{min(e,t){return this.check(mt(e,t))},nonempty(e){return this.check(mt(1,e))},max(e,t){return this.check(fr(e,t))},length(e,t){return this.check(pr(e,t))},unwrap(){return this.element}});function bt(e,t){return Ka(Wc,e,t)}const en=p("ZodObject",(e,t)=>{Re(),Fi.init(e,t),E.init(e,t),e._zod.processJSONSchema=(n,r,o)=>((e,t,n,r)=>{const o=n,s=e._zod.def,i=s.shape;if(Object.getOwnPropertySymbols(i).length&&M(e,t,o,r,"Symbol keys cannot be represented in JSON Schema"))return;o.type="object",o.properties={};for(const d in i)D(o.properties,d,j(i[d],t,{...r,path:[...r.path,"properties",d]}));const u=new Set(Object.keys(i)),l=new Set([...u].filter(d=>{const f=s.shape[d];return"input"===t.io?void 0===Ce(f):void 0===f._zod.optout}));l.size>0&&(o.required=Array.from(l)),"never"===s.catchall?._zod.def.type?o.additionalProperties=!1:s.catchall?s.catchall&&(o.additionalProperties=j(s.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):"output"===t.io&&(o.additionalProperties=!1)})(e,n,r,o),function zn(e,t,n,r){const o=function vn(e,t){const n=Object.getPrototypeOf(e);return t in n?void 0:n}(e,t);o&&Object.defineProperty(o,t,{configurable:!0,get(){const s={configurable:!0,writable:!0,enumerable:r,value:void 0};
1return Object.defineProperty(this,t,s),s.value=n(this),Object.defineProperty(this,t,s),s.value},set(s){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:s})}})}(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return function xo(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new zt({type:"enum",entries:n,...b(t)})}(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:Ze()})},loose(){return this.clone({...this._zod.def,catchall:Ze()})},strict(){return this.clone({...this._zod.def,catchall:Ea(Hc,e)});var e},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return function pn(e,t){if(!se(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const s=e._zod.def.shape;for(const i of Reflect.ownKeys(t))if(void 0!==Object.getOwnPropertyDescriptor(s,i))throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=H(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t};return D(this,"shape",s),s}});return Q(e,o)}(this,e)},safeExtend(e){return function mn(e,t){if(!se(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=H(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return D(this,"shape",r),r}});return Q(e,n)}(this,e)},merge(e){return function hn(e,t){if(!t?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=H(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return D(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Q(e,n)}(this,e)},pick(e){return function U(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");return Q(e,H(e._zod.def,{get shape(){const i={};for(const a of Reflect.ownKeys(t)){if(!Object.prototype.hasOwnProperty.call(n.shape,a))throw new Error(`Unrecognized key: "${String(a)}"`);t[a]&&D(i,a,n.shape[a])}return D(this,"shape",i),i},checks:[]}))}(this,e)},omit(e){return function fn(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const s=H(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const a of Reflect.ownKeys(t)){if(!Object.prototype.hasOwnProperty.call(n.shape,a))throw new Error(`Unrecognized key: "${String(a)}"`);t[a]&&delete i[a]}return D(this,"shape",i),i},checks:[]});return Q(e,s)}(this,e)},partial(...e){return He(nn,this,e[0])},exactPartial(...e){return He(Zo,this,e[0],"exactPartial")},required(...e){return function _n(e,t,n){const r=H(t._zod.def,{get shape(){const o=t._zod.def.shape,s={...o};if(n)for(const i of Reflect.ownKeys(n)){if(!Object.prototype.hasOwnProperty.call(s,i))throw new Error(`Unrecognized key: "${String(i)}"`);n[i]&&(s[i]=new e({type:"nonoptional",innerType:o[i]}))}else for(const i of Reflect.ownKeys(o))s[i]=new e({type:"nonoptional",innerType:o[i]});return D(this,"shape",s),s}});return Q(t,r)}(Po,this,e[0])}});function qc(e,t){return new en({type:"object",shape:e,catchall:Ze(),...b(t)})}const Xc=p("ZodUnion",(e,t)=>{Li.init(e,t),E.init(e,t),e._zod.processJSONSchema=(n,r,o)=>((e,t,n,r)=>{const o=e._zod.def,s=!1===o.inclusive,i=o.options.map((a,u)=>j(a,t,{...r,path:[...r.path,s?"oneOf":"anyOf",u]}));s?n.oneOf=i:n.anyOf=i})(e,n,r,o),e.options=t.options});function tn(e,t){return new Xc({type:"union",options:e,...b(t)})}const tu=p("ZodIntersection",(e,t)=>{Mi.init(e,t),E.init(e,t),e._zod.processJSONSchema=(n,r,o)=>((e,t,n,r)=>{const o=e._zod.def,s=j(o.left,t,{...r,path:[...r.path,"allOf",0]}),i=j(o.right,t,{...r,path:[...r.path,"allOf",1]}),a=l=>"allOf"in l&&1===Object.keys(l).length,u=[...a(s)?s.allOf:[s],...a(i)?i.allOf:[i]];n.allOf=u,t.intersections.push(u)})(e,n,r,o)}),vt=p("ZodRecord",(e,t)=>{Re(),Ji.init(e,t),E.init(e,t),e._zod.processJSONSchema=(n,r,o)=>((e,t,n,r)=>{const o=n,s=e._zod.def;o.type="object";const i=s.keyType,u=i._zod.bag?.patterns;if("loose"===s.mode&&u&&u.size>0){const f=j(s.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});o.patternProperties={};for(const m of u)D(o.patternProperties,m.source,f)}
1else{if("draft-07"===t.target||"draft-2020-12"===t.target){o.propertyNames=j(s.keyType,t,{...r,path:[...r.path,"propertyNames"]});let f=Wt.get(t);f||(f=[],Wt.set(t,f),t.deferred.push(()=>function _c(e){const t=new Map;for(const r of e.seen.values())r.def&&!t.has(r.schema)&&t.set(r.schema,r);const n=new Map;for(const r of Wt.get(e)??[]){const o=e.seen.get(r),s=(o?.def??o?.schema)?.propertyNames;if(!s||!0===s||n.has(s))continue;const i=Gt(t,s,new Set);i!==s&&n.set(s,i)}if(n.size)for(const r of e.seen.values())for(const o of[r.schema,r.def]){const s=o&&n.get(o.propertyNames);s&&(o.propertyNames=s)}}(t))),f.push(e)}o.additionalProperties=j(s.valueType,t,{...r,path:[...r.path,"additionalProperties"]})}const l=i._zod.values,d="input"===t.io&&void 0!==Ce(s.valueType);if(l&&!s.partial&&!d){const f=[...l].filter(m=>"string"==typeof m||"number"==typeof m);f.length>0&&(o.required=f.map(String))}})(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType});function $o(e,t,n){return new vt(t&&t._zod?{type:"record",keyType:e,valueType:t,...b(n)}:{type:"record",keyType:gt(),valueType:e,...b(t)})}const zt=p("ZodEnum",(e,t)=>{Bi.init(e,t),E.init(e,t),e._zod.processJSONSchema=(r,o,s)=>((e,t,n)=>{const s=z(e._zod.def.entries);0!==s.length?(s.every(i=>"number"==typeof i)&&(n.type="number"),s.every(i=>"string"==typeof i)&&(n.type="string"),n.enum=s):n.not={}})(e,0,o),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{const s={};for(const i of r){if(!n.has(i))throw new Error(`Key ${i} not found in enum`);s[i]=t.entries[i]}return new zt({...t,checks:[],...b(o),entries:s})},e.exclude=(r,o)=>{const s={...t.entries};for(const i of r){if(!n.has(i))throw new Error(`Key ${i} not found in enum`);delete s[i]}return new zt({...t,checks:[],...b(o),entries:s})}});const uu=p("ZodTransform",(e,t)=>{Re(),Vi.init(e,t),E.init(e,t),e._zod.processJSONSchema=(n,r,o)=>((e,t,n,r)=>{M(e,t,n,r,"Transforms cannot be represented in JSON Schema")})(e,n,r,o),e._zod.parse=(n,r)=>{if("backward"===r.direction)throw new Ct(e.constructor.name);n.addIssue=s=>{if("string"==typeof s)n.issues.push(he(s,n.value,t));else{const i=s;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),"input"in i||(i.input=n.value),i.inst??(i.inst=e),n.issues.push(he(i))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(s=>(n.value=s,n)):(n.value=o,n)}});const nn=p("ZodOptional",(e,t)=>{sr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Xt(e,n,0,o),e.unwrap=()=>e._zod.def.innerType});function rn(e){return new nn({type:"optional",innerType:e})}const Zo=p("ZodExactOptional",(e,t)=>{Ki.init(e,t),E.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Xt(e,n,0,o),e.unwrap=()=>e._zod.def.innerType}),du=p("ZodNullable",(e,t)=>{Hi.init(e,t),E.init(e,t),e._zod.processJSONSchema=(n,r,o)=>((e,t,n,r)=>{const o=e._zod.def,s=j(o.innerType,t,r),i=t.seen.get(e);"openapi-3.0"===t.target?(i.ref=o.innerType,n.nullable=!0):n.anyOf=[s,{type:"null"}]})(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function on(e){return new du({type:"nullable",innerType:e})}const fu=p("ZodDefault",(e,t)=>{Yi.init(e,t),E.init(e,t),e._zod.processJSONSchema=(n,r,o)=>((e,t,n,r)=>{const o=e._zod.def;j(o.innerType,t,r),t.seen.get(e).ref=o.innerType;const i=Jr(o.defaultValue,e,t,n,r);i!==qt&&(n.default=i)})(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),mu=p("ZodPrefault",(e,t)=>{Gi.init(e,t),E.init(e,t),e._zod.processJSONSchema=(n,r,o)=>((e,t,n,r)=>{const o=e._zod.def;if(j(o.innerType,t,r),t.seen.get(e).ref=o.innerType,"input"!==t.io)return;const i=Jr(o.defaultValue,e,t,n,r);i!==qt&&(n._prefault=i)})(e,n,r,o),e.unwrap=()=>e._zod.def.innerType}),Po=p("ZodNonOptional",(e,t)=>{Wi.init(e,t),E.init(e,t),e._zod.processJSONSchema=(n,r,o)=>((e,t,n,r)=>{const o=e._zod.def;j(o.innerType,t,r),t.seen.get(e).ref=o.innerType})(e,n,0,o),e.unwrap=()=>e._zod.def.innerType}),yu=p("ZodCatch",(e,t)=>{qi.init(e,t),E.init(e,t),e._zod.processJSONSchema=(n,r,o)=>((e,t,n,r)=>{const o=e._zod.def;let i;j(o.innerType,t,r),t.seen.get(e).ref=o.innerType;try{i=o.catchValue(void 0)}catch{return void M(e,t,n,r,"Dynamic catch values are not supported in JSON Schema")}n.default=i})(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),zu=p("ZodPipe",(e,t)=>{Xi.init(e,t),E.init(e,t),e._zod.processJSONSchema=(n,r,o)=>((e,t,n,r)=>{const o=e._zod.def,s=o.in._zod.traits.has("$ZodTransform"),i="input"===t.io?s?o.out:o.in:o.out;j(i,t,r),t.seen.get(e).ref=i}
1)(e,n,0,o),e.in=t.in,e.out=t.out});function Oo(e,t){return new zu({type:"pipe",in:e,out:t})}const wu=p("ZodReadonly",(e,t)=>{Qi.init(e,t),E.init(e,t),e._zod.processJSONSchema=(n,r,o)=>((e,t,n,r)=>{const o=e._zod.def;j(o.innerType,t,r),t.seen.get(e).ref=o.innerType,n.readOnly=!0})(e,n,r,o),e.unwrap=()=>e._zod.def.innerType}),an=p("ZodCustom",(e,t)=>{ea.init(e,t),E.init(e,t),e._zod.processJSONSchema=(n,r,o)=>((e,t,n,r)=>{M(e,t,n,r,"Custom types cannot be represented in JSON Schema")})(e,n,r,o)})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.