@entrydesk/cli 1.30.0 → 1.32.0-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/README.md +19 -0
  2. package/dist/agents-6VHSTGVU.js +43 -0
  3. package/dist/{billing-MGDBCV6I.js → billing-WA7WGH7U.js} +1 -1
  4. package/dist/{budget-YYGSDB4J.js → budget-PC4EAZLV.js} +1 -1
  5. package/dist/chunk-5QJUAR4K.js +120 -0
  6. package/dist/chunk-77D346VR.js +2 -0
  7. package/dist/chunk-JMYSCKCF.js +2 -0
  8. package/dist/config-ED6PZQ7J.js +4 -0
  9. package/dist/{config-help-RTQDCM2A.js → config-help-CTZHKILN.js} +1 -1
  10. package/dist/{connectors-EEPEIQ76.js → connectors-O4K2ZFDM.js} +8 -8
  11. package/dist/help-KDHCFJNF.js +4 -0
  12. package/dist/index.js +1 -1
  13. package/dist/login-LX3ISJEI.js +2 -0
  14. package/dist/logout-YNCDJ5ST.js +2 -0
  15. package/dist/{marketplace-5QZCY7QH.js → marketplace-FHSTOAWV.js} +8 -8
  16. package/dist/mcp-2G4B3BVK.js +4 -0
  17. package/dist/{meeting-5RUQYMWF.js → meeting-UBBSEEHT.js} +5 -5
  18. package/dist/models-PGGTDNI4.js +3 -0
  19. package/dist/{notifications-ZCJVVQIC.js → notifications-DHPLCJFY.js} +3 -3
  20. package/dist/{profile-RIAXCLXG.js → profile-K4V2Y63H.js} +1 -1
  21. package/dist/{recordings-FMD3YL7B.js → recordings-OXG66QN2.js} +3 -3
  22. package/dist/{schedules-JFVHBBM3.js → schedules-R4U37II4.js} +9 -9
  23. package/dist/{skills-L4AGJVTQ.js → skills-JVSRQSKA.js} +3 -3
  24. package/dist/status-S37SXIYD.js +2 -0
  25. package/dist/task-H2COR6Z4.js +180 -0
  26. package/dist/{tasks-7SK2EZZS.js → tasks-7NS4UOBP.js} +9 -9
  27. package/dist/tool-VLJFDXQ4.js +35 -0
  28. package/dist/update-5GLLNVRU.js +4 -0
  29. package/dist/{usage-6PXKAMOY.js → usage-PAL5KJ5C.js} +5 -5
  30. package/dist/version-ROABNJFL.js +2 -0
  31. package/dist/workflow-XERZYR3S.js +62 -0
  32. package/dist/{workspaces-EQSJKVVV.js → workspaces-PLJMIDJR.js} +3 -3
  33. package/package.json +6 -7
  34. package/dist/agents-JG6OXKYV.js +0 -43
  35. package/dist/chunk-LHRI5YM6.js +0 -2
  36. package/dist/chunk-NC63CPWW.js +0 -118
  37. package/dist/chunk-RJGB52EF.js +0 -4
  38. package/dist/chunk-ZIAOI7B2.js +0 -2
  39. package/dist/config-PBKYHI2B.js +0 -4
  40. package/dist/help-FBKSAMA7.js +0 -4
  41. package/dist/login-HL5KEHEN.js +0 -2
  42. package/dist/logout-QI7X4M4E.js +0 -2
  43. package/dist/mcp-5764U6QO.js +0 -4
  44. package/dist/models-PFIG6ACY.js +0 -3
  45. package/dist/status-DBKKDZAF.js +0 -2
  46. package/dist/task-PBX6HRS3.js +0 -194
  47. package/dist/token-5JSZTSX7.js +0 -2
  48. package/dist/token-util-U6DGFQDY.js +0 -2
  49. package/dist/tool-YOUXWQ76.js +0 -35
  50. package/dist/update-3SS5DWV3.js +0 -4
  51. package/dist/version-RYL2AKE2.js +0 -2
  52. package/dist/workflow-6MU3A6LB.js +0 -62
@@ -0,0 +1,120 @@
1
+ #!/usr/bin/env node
2
+ import{a as zv,b as we,c as Cv}from"./chunk-JMYSCKCF.js";var $f=zv((kf,ni)=>{"use strict";(function(t){"use strict";let r="(0?\\d+|0x[a-f0-9]+)",o={fourOctet:new RegExp(`^${r}\\.${r}\\.${r}\\.${r}$`,"i"),threeOctet:new RegExp(`^${r}\\.${r}\\.${r}$`,"i"),twoOctet:new RegExp(`^${r}\\.${r}$`,"i"),longValue:new RegExp(`^${r}$`,"i")},i=new RegExp("^0[0-7]+$","i"),n=new RegExp("^0x[a-f0-9]+$","i"),a="%[0-9a-z]{1,}",s="(?:[0-9a-f]+::?)+",c={zoneIndex:new RegExp(a,"i"),native:new RegExp(`^(::)?(${s})?([0-9a-f]+)?(::)?(${a})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${r}\\.${r}\\.${r}\\.${r}(${a})?)$`,"i"),transitional:new RegExp(`^((?:${s})|(?:::)(?:${s})?)${r}\\.${r}\\.${r}\\.${r}(${a})?$`,"i")};function u(l,m){if(l.indexOf("::")!==l.lastIndexOf("::"))return null;let b=0,y=-1,$=(l.match(c.zoneIndex)||[])[0],I,E;for($&&($=$.substring(1),l=l.replace(/%.+$/,""));(y=l.indexOf(":",y+1))>=0;)b++;if(l.substr(0,2)==="::"&&b--,l.substr(-2,2)==="::"&&b--,b>m)return null;for(E=m-b,I=":";E--;)I+="0:";return l=l.replace("::",I),l[0]===":"&&(l=l.slice(1)),l[l.length-1]===":"&&(l=l.slice(0,-1)),m=(function(){let z=l.split(":"),L=[];for(let je=0;je<z.length;je++)L.push(parseInt(z[je],16));return L})(),{parts:m,zoneId:$}}function d(l,m,b,y){if(l.length!==m.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let $=0,I;for(;y>0;){if(I=b-y,I<0&&(I=0),l[$]>>I!==m[$]>>I)return!1;y-=b,$+=1}return!0}function p(l){if(n.test(l))return parseInt(l,16);if(l[0]==="0"&&!isNaN(parseInt(l[1],10))){if(i.test(l))return parseInt(l,8);throw new Error(`ipaddr: cannot parse ${l} as octal`)}return parseInt(l,10)}function v(l,m){for(;l.length<m;)l=`0${l}`;return l}let f={};f.IPv4=(function(){function l(m){if(m.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let b,y;for(b=0;b<m.length;b++)if(y=m[b],!(0<=y&&y<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=m}return l.prototype.SpecialRanges={unspecified:[[new l([0,0,0,0]),8]],broadcast:[[new l([255,255,255,255]),32]],multicast:[[new l([224,0,0,0]),4]],linkLocal:[[new l([169,254,0,0]),16]],loopback:[[new l([127,0,0,0]),8]],carrierGradeNat:[[new l([100,64,0,0]),10]],private:[[new l([10,0,0,0]),8],[new l([172,16,0,0]),12],[new l([192,168,0,0]),16]],reserved:[[new l([192,0,0,0]),24],[new l([192,0,2,0]),24],[new l([192,88,99,0]),24],[new l([198,18,0,0]),15],[new l([198,51,100,0]),24],[new l([203,0,113,0]),24],[new l([240,0,0,0]),4]],as112:[[new l([192,175,48,0]),24],[new l([192,31,196,0]),24]],amt:[[new l([192,52,193,0]),24]]},l.prototype.kind=function(){return"ipv4"},l.prototype.match=function(m,b){let y;if(b===void 0&&(y=m,m=y[0],b=y[1]),m.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return d(this.octets,m.octets,8,b)},l.prototype.prefixLengthFromSubnetMask=function(){let m=0,b=!1,y={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},$,I,E;for($=3;$>=0;$-=1)if(I=this.octets[$],I in y){if(E=y[I],b&&E!==0)return null;E!==8&&(b=!0),m+=E}else return null;return 32-m},l.prototype.range=function(){return f.subnetMatch(this,this.SpecialRanges)},l.prototype.toByteArray=function(){return this.octets.slice(0)},l.prototype.toIPv4MappedAddress=function(){return f.IPv6.parse(`::ffff:${this.toString()}`)},l.prototype.toNormalizedString=function(){return this.toString()},l.prototype.toString=function(){return this.octets.join(".")},l})(),f.IPv4.broadcastAddressFromCIDR=function(l){try{let m=this.parseCIDR(l),b=m[0].toByteArray(),y=this.subnetMaskFromPrefixLength(m[1]).toByteArray(),$=[],I=0;for(;I<4;)$.push(parseInt(b[I],10)|parseInt(y[I],10)^255),I++;return new this($)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},f.IPv4.isIPv4=function(l){return this.parser(l)!==null},f.IPv4.isValid=function(l){try{return new this(this.parser(l)),!0}catch{return!1}},f.IPv4.isValidCIDR=function(l){try{return this.parseCIDR(l),!0}catch{return!1}},f.IPv4.isValidFourPartDecimal=function(l){return!!(f.IPv4.isValid(l)&&l.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},f.IPv4.isValidCIDRFourPartDecimal=function(l){let m=l.match(/^(.+)\/(\d+)$/);return!f.IPv4.isValidCIDR(l)||!m?!1:f.IPv4.isValidFourPartDecimal(m[1])},f.IPv4.networkAddressFromCIDR=function(l){let m,b,y,$,I;try{for(m=this.parseCIDR(l),y=m[0].toByteArray(),I=this.subnetMaskFromPrefixLength(m[1]).toByteArray(),$=[],b=0;b<4;)$.push(parseInt(y[b],10)&parseInt(I[b],10)),b++;return new this($)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},f.IPv4.parse=function(l){let m=this.parser(l);if(m===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(m)},f.IPv4.parseCIDR=function(l){let m;if(m=l.match(/^(.+)\/(\d+)$/)){let b=parseInt(m[2]);if(b>=0&&b<=32){let y=[this.parse(m[1]),b];return Object.defineProperty(y,"toString",{value:function(){return this.join("/")}}),y}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},f.IPv4.parser=function(l){let m,b,y;if(m=l.match(o.fourOctet))return(function(){let $=m.slice(1,6),I=[];for(let E=0;E<$.length;E++)b=$[E],I.push(p(b));return I})();if(m=l.match(o.longValue)){if(y=p(m[1]),y>4294967295||y<0)throw new Error("ipaddr: address outside defined range");return(function(){let $=[],I;for(I=0;I<=24;I+=8)$.push(y>>I&255);return $})().reverse()}else return(m=l.match(o.twoOctet))?(function(){let $=m.slice(1,4),I=[];if(y=p($[1]),y>16777215||y<0)throw new Error("ipaddr: address outside defined range");return I.push(p($[0])),I.push(y>>16&255),I.push(y>>8&255),I.push(y&255),I})():(m=l.match(o.threeOctet))?(function(){let $=m.slice(1,5),I=[];if(y=p($[2]),y>65535||y<0)throw new Error("ipaddr: address outside defined range");return I.push(p($[0])),I.push(p($[1])),I.push(y>>8&255),I.push(y&255),I})():null},f.IPv4.subnetMaskFromPrefixLength=function(l){if(l=parseInt(l),l<0||l>32)throw new Error("ipaddr: invalid IPv4 prefix length");let m=[0,0,0,0],b=0,y=Math.floor(l/8);for(;b<y;)m[b]=255,b++;return y<4&&(m[y]=Math.pow(2,l%8)-1<<8-l%8),new this(m)},f.IPv6=(function(){function l(m,b){let y,$;if(m.length===16)for(this.parts=[],y=0;y<=14;y+=2)this.parts.push(m[y]<<8|m[y+1]);else if(m.length===8)this.parts=m;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(y=0;y<this.parts.length;y++)if($=this.parts[y],!(0<=$&&$<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");b&&(this.zoneId=b)}return l.prototype.SpecialRanges={unspecified:[new l([0,0,0,0,0,0,0,0]),128],linkLocal:[new l([65152,0,0,0,0,0,0,0]),10],multicast:[new l([65280,0,0,0,0,0,0,0]),8],loopback:[new l([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new l([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new l([0,0,0,0,0,65535,0,0]),96],discard:[new l([256,0,0,0,0,0,0,0]),64],rfc6145:[new l([0,0,0,0,65535,0,0,0]),96],rfc6052:[new l([100,65435,0,0,0,0,0,0]),96],"6to4":[new l([8194,0,0,0,0,0,0,0]),16],teredo:[new l([8193,0,0,0,0,0,0,0]),32],benchmarking:[new l([8193,2,0,0,0,0,0,0]),48],amt:[new l([8193,3,0,0,0,0,0,0]),32],as112v6:[[new l([8193,4,274,0,0,0,0,0]),48],[new l([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new l([8193,16,0,0,0,0,0,0]),28],orchid2:[new l([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new l([8193,48,0,0,0,0,0,0]),28],reserved:[[new l([8193,0,0,0,0,0,0,0]),23],[new l([8193,3512,0,0,0,0,0,0]),32]]},l.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},l.prototype.kind=function(){return"ipv6"},l.prototype.match=function(m,b){let y;if(b===void 0&&(y=m,m=y[0],b=y[1]),m.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return d(this.parts,m.parts,16,b)},l.prototype.prefixLengthFromSubnetMask=function(){let m=0,b=!1,y={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},$,I;for(let E=7;E>=0;E-=1)if($=this.parts[E],$ in y){if(I=y[$],b&&I!==0)return null;I!==16&&(b=!0),m+=I}else return null;return 128-m},l.prototype.range=function(){return f.subnetMatch(this,this.SpecialRanges)},l.prototype.toByteArray=function(){let m,b=[],y=this.parts;for(let $=0;$<y.length;$++)m=y[$],b.push(m>>8),b.push(m&255);return b},l.prototype.toFixedLengthString=function(){let m=(function(){let y=[];for(let $=0;$<this.parts.length;$++)y.push(v(this.parts[$].toString(16),4));return y}).call(this).join(":"),b="";return this.zoneId&&(b=`%${this.zoneId}`),m+b},l.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let m=this.parts.slice(-2),b=m[0],y=m[1];return new f.IPv4([b>>8,b&255,y>>8,y&255])},l.prototype.toNormalizedString=function(){let m=(function(){let y=[];for(let $=0;$<this.parts.length;$++)y.push(this.parts[$].toString(16));return y}).call(this).join(":"),b="";return this.zoneId&&(b=`%${this.zoneId}`),m+b},l.prototype.toRFC5952String=function(){let m=/((^|:)(0(:|$)){2,})/g,b=this.toNormalizedString(),y=0,$=-1,I;for(;I=m.exec(b);)I[0].length>$&&(y=I.index,$=I[0].length);return $<0?b:`${b.substring(0,y)}::${b.substring(y+$)}`},l.prototype.toString=function(){return this.toRFC5952String()},l})(),f.IPv6.broadcastAddressFromCIDR=function(l){try{let m=this.parseCIDR(l),b=m[0].toByteArray(),y=this.subnetMaskFromPrefixLength(m[1]).toByteArray(),$=[],I=0;for(;I<16;)$.push(parseInt(b[I],10)|parseInt(y[I],10)^255),I++;return new this($)}catch(m){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${m})`)}},f.IPv6.isIPv6=function(l){return this.parser(l)!==null},f.IPv6.isValid=function(l){if(typeof l=="string"&&l.indexOf(":")===-1)return!1;try{let m=this.parser(l);return new this(m.parts,m.zoneId),!0}catch{return!1}},f.IPv6.isValidCIDR=function(l){if(typeof l=="string"&&l.indexOf(":")===-1)return!1;try{return this.parseCIDR(l),!0}catch{return!1}},f.IPv6.networkAddressFromCIDR=function(l){let m,b,y,$,I;try{for(m=this.parseCIDR(l),y=m[0].toByteArray(),I=this.subnetMaskFromPrefixLength(m[1]).toByteArray(),$=[],b=0;b<16;)$.push(parseInt(y[b],10)&parseInt(I[b],10)),b++;return new this($)}catch(E){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${E})`)}},f.IPv6.parse=function(l){let m=this.parser(l);if(m.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(m.parts,m.zoneId)},f.IPv6.parseCIDR=function(l){let m,b,y;if((b=l.match(/^(.+)\/(\d+)$/))&&(m=parseInt(b[2]),m>=0&&m<=128))return y=[this.parse(b[1]),m],Object.defineProperty(y,"toString",{value:function(){return this.join("/")}}),y;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},f.IPv6.parser=function(l){let m,b,y,$,I,E;if(y=l.match(c.deprecatedTransitional))return this.parser(`::ffff:${y[1]}`);if(c.native.test(l))return u(l,8);if((y=l.match(c.transitional))&&(E=y[6]||"",m=y[1],y[1].endsWith("::")||(m=m.slice(0,-1)),m=u(m+E,6),m.parts)){for(I=[parseInt(y[2]),parseInt(y[3]),parseInt(y[4]),parseInt(y[5])],b=0;b<I.length;b++)if($=I[b],!(0<=$&&$<=255))return null;return m.parts.push(I[0]<<8|I[1]),m.parts.push(I[2]<<8|I[3]),{parts:m.parts,zoneId:m.zoneId}}return null},f.IPv6.subnetMaskFromPrefixLength=function(l){if(l=parseInt(l),l<0||l>128)throw new Error("ipaddr: invalid IPv6 prefix length");let m=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],b=0,y=Math.floor(l/8);for(;b<y;)m[b]=255,b++;return y<16&&(m[y]=Math.pow(2,l%8)-1<<8-l%8),new this(m)},f.fromByteArray=function(l){let m=l.length;if(m===4)return new f.IPv4(l);if(m===16)return new f.IPv6(l);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},f.isValid=function(l){return f.IPv6.isValid(l)||f.IPv4.isValid(l)},f.isValidCIDR=function(l){return f.IPv6.isValidCIDR(l)||f.IPv4.isValidCIDR(l)},f.parse=function(l){if(f.IPv6.isValid(l))return f.IPv6.parse(l);if(f.IPv4.isValid(l))return f.IPv4.parse(l);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},f.parseCIDR=function(l){try{return f.IPv6.parseCIDR(l)}catch{try{return f.IPv4.parseCIDR(l)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},f.process=function(l){let m=this.parse(l);return m.kind()==="ipv6"&&m.isIPv4MappedAddress()?m.toIPv4Address():m},f.subnetMatch=function(l,m,b){let y,$,I,E;b==null&&(b="unicast");for($ in m)if(Object.prototype.hasOwnProperty.call(m,$)){for(I=m[$],I[0]&&!(I[0]instanceof Array)&&(I=[I]),y=0;y<I.length;y++)if(E=I[y],l.kind()===E[0].kind()&&l.match.apply(l,E))return $}return b},typeof ni<"u"&&ni.exports?ni.exports=f:t.ipaddr=f})(kf)});var e={};we(e,{$brand:()=>Pi,$input:()=>Ys,$output:()=>qs,NEVER:()=>Ri,TimePrecision:()=>nc,ZodAny:()=>Gl,ZodArray:()=>Jl,ZodBase64:()=>Bo,ZodBase64URL:()=>Zo,ZodBigInt:()=>Kt,ZodBigIntFormat:()=>Go,ZodBoolean:()=>Gt,ZodCIDRv4:()=>Lo,ZodCIDRv6:()=>Mo,ZodCUID:()=>jo,ZodCUID2:()=>Oo,ZodCatch:()=>vu,ZodCodec:()=>Hn,ZodCustom:()=>Jn,ZodCustomStringFormat:()=>Ft,ZodDate:()=>Fn,ZodDefault:()=>du,ZodDiscriminatedUnion:()=>ql,ZodE164:()=>Fo,ZodEmail:()=>Ao,ZodEmoji:()=>Ro,ZodEnum:()=>Bt,ZodError:()=>p_,ZodExactOptional:()=>cu,ZodFile:()=>au,ZodFirstPartyTypeKind:()=>Ru,ZodFunction:()=>Tu,ZodGUID:()=>Dn,ZodIPv4:()=>No,ZodIPv6:()=>Do,ZodISODate:()=>ko,ZodISODateTime:()=>So,ZodISODuration:()=>Io,ZodISOTime:()=>$o,ZodIntersection:()=>Yl,ZodIssueCode:()=>g_,ZodJWT:()=>Wo,ZodKSUID:()=>Uo,ZodLazy:()=>$u,ZodLiteral:()=>iu,ZodMAC:()=>Dl,ZodMap:()=>ru,ZodNaN:()=>yu,ZodNanoID:()=>Po,ZodNever:()=>Vl,ZodNonOptional:()=>qo,ZodNull:()=>Fl,ZodNullable:()=>uu,ZodNumber:()=>Wt,ZodNumberFormat:()=>ut,ZodObject:()=>Gn,ZodOptional:()=>Xo,ZodPipe:()=>Vn,ZodPrefault:()=>mu,ZodPreprocess:()=>_u,ZodPromise:()=>wu,ZodReadonly:()=>xu,ZodRealError:()=>ee,ZodRecord:()=>Mt,ZodSet:()=>ou,ZodString:()=>Zt,ZodStringFormat:()=>U,ZodSuccess:()=>hu,ZodSymbol:()=>Bl,ZodTemplateLiteral:()=>ku,ZodTransform:()=>su,ZodTuple:()=>eu,ZodType:()=>A,ZodULID:()=>zo,ZodURL:()=>Zn,ZodUUID:()=>he,ZodUndefined:()=>Zl,ZodUnion:()=>Kn,ZodUnknown:()=>Kl,ZodVoid:()=>Hl,ZodXID:()=>Co,ZodXor:()=>Xl,_ZodString:()=>Eo,_default:()=>pu,_function:()=>jg,any:()=>lg,array:()=>Wn,base64:()=>Km,base64url:()=>Vm,bigint:()=>og,boolean:()=>Ml,catch:()=>bu,check:()=>Og,cidrv4:()=>Wm,cidrv6:()=>Gm,clone:()=>H,codec:()=>Eg,coerce:()=>Pu,config:()=>M,core:()=>Ae,cuid:()=>Um,cuid2:()=>Nm,custom:()=>zg,date:()=>dg,decode:()=>Pl,decodeAsync:()=>Ol,describe:()=>Cg,discriminatedUnion:()=>vg,e164:()=>Hm,email:()=>wm,emoji:()=>zm,encode:()=>Rl,encodeAsync:()=>jl,endsWith:()=>Rt,enum:()=>Ho,exactOptional:()=>lu,file:()=>$g,flattenError:()=>$n,float32:()=>eg,float64:()=>tg,formatError:()=>In,fromJSONSchema:()=>Zg,function:()=>jg,getErrorMap:()=>h_,globalRegistry:()=>F,gt:()=>ge,gte:()=>X,guid:()=>Tm,hash:()=>Qm,hex:()=>Ym,hostname:()=>qm,httpUrl:()=>Om,includes:()=>Et,instanceof:()=>Ng,int:()=>wo,int32:()=>ng,int64:()=>ig,intersection:()=>Ql,invertCodec:()=>Ag,ipv4:()=>Bm,ipv6:()=>Fm,iso:()=>Lt,json:()=>Lg,jwt:()=>Jm,keyof:()=>pg,ksuid:()=>Mm,lazy:()=>Iu,length:()=>ct,literal:()=>kg,locales:()=>On,looseObject:()=>fg,looseRecord:()=>yg,lowercase:()=>wt,lt:()=>me,lte:()=>ne,mac:()=>Zm,map:()=>_g,maxLength:()=>st,maxSize:()=>Le,meta:()=>Ug,mime:()=>Pt,minLength:()=>Ee,minSize:()=>fe,multipleOf:()=>De,nan:()=>Tg,nanoid:()=>Cm,nativeEnum:()=>Sg,negative:()=>po,never:()=>Ko,nonnegative:()=>go,nonoptional:()=>fu,nonpositive:()=>mo,normalize:()=>jt,null:()=>Wl,nullable:()=>Mn,nullish:()=>Ig,number:()=>Ll,object:()=>mg,optional:()=>Ln,overwrite:()=>se,parse:()=>wl,parseAsync:()=>Tl,partialRecord:()=>bg,pipe:()=>To,positive:()=>uo,prefault:()=>gu,preprocess:()=>Mg,prettifyError:()=>Wi,promise:()=>Pg,property:()=>fo,readonly:()=>Su,record:()=>nu,refine:()=>Eu,regex:()=>It,regexes:()=>te,registry:()=>Fr,safeDecode:()=>Cl,safeDecodeAsync:()=>Nl,safeEncode:()=>zl,safeEncodeAsync:()=>Ul,safeParse:()=>El,safeParseAsync:()=>Al,set:()=>xg,setErrorMap:()=>f_,size:()=>at,slugify:()=>Ut,startsWith:()=>At,strictObject:()=>gg,string:()=>Nn,stringFormat:()=>Xm,stringbool:()=>Dg,success:()=>wg,superRefine:()=>Au,symbol:()=>sg,templateLiteral:()=>Rg,toJSONSchema:()=>yo,toLowerCase:()=>zt,toUpperCase:()=>Ct,transform:()=>Jo,treeifyError:()=>Fi,trim:()=>Ot,tuple:()=>tu,uint32:()=>rg,uint64:()=>ag,ulid:()=>Dm,undefined:()=>cg,union:()=>Vo,unknown:()=>lt,uppercase:()=>Tt,url:()=>jm,util:()=>S,uuid:()=>Em,uuidv4:()=>Am,uuidv6:()=>Rm,uuidv7:()=>Pm,void:()=>ug,xid:()=>Lm,xor:()=>hg});var Ae={};we(Ae,{$ZodAny:()=>ys,$ZodArray:()=>$s,$ZodAsyncError:()=>ae,$ZodBase64:()=>ls,$ZodBase64URL:()=>us,$ZodBigInt:()=>Cr,$ZodBigIntFormat:()=>fs,$ZodBoolean:()=>An,$ZodCIDRv4:()=>as,$ZodCIDRv6:()=>ss,$ZodCUID:()=>Ha,$ZodCUID2:()=>Ja,$ZodCatch:()=>Zs,$ZodCheck:()=>N,$ZodCheckBigIntFormat:()=>$a,$ZodCheckEndsWith:()=>Ua,$ZodCheckGreaterThan:()=>Ar,$ZodCheckIncludes:()=>za,$ZodCheckLengthEquals:()=>Ra,$ZodCheckLessThan:()=>Er,$ZodCheckLowerCase:()=>ja,$ZodCheckMaxLength:()=>Ea,$ZodCheckMaxSize:()=>Ia,$ZodCheckMimeType:()=>Da,$ZodCheckMinLength:()=>Aa,$ZodCheckMinSize:()=>wa,$ZodCheckMultipleOf:()=>Sa,$ZodCheckNumberFormat:()=>ka,$ZodCheckOverwrite:()=>La,$ZodCheckProperty:()=>Na,$ZodCheckRegex:()=>Pa,$ZodCheckSizeEquals:()=>Ta,$ZodCheckStartsWith:()=>Ca,$ZodCheckStringFormat:()=>kt,$ZodCheckUpperCase:()=>Oa,$ZodCodec:()=>Pn,$ZodCustom:()=>Xs,$ZodCustomStringFormat:()=>ms,$ZodDate:()=>ks,$ZodDefault:()=>Ds,$ZodDiscriminatedUnion:()=>Ts,$ZodE164:()=>ds,$ZodEmail:()=>Wa,$ZodEmoji:()=>Ka,$ZodEncodeError:()=>Oe,$ZodEnum:()=>js,$ZodError:()=>kn,$ZodExactOptional:()=>Us,$ZodFile:()=>zs,$ZodFunction:()=>Vs,$ZodGUID:()=>Za,$ZodIPv4:()=>rs,$ZodIPv6:()=>os,$ZodISODate:()=>es,$ZodISODateTime:()=>Qa,$ZodISODuration:()=>ns,$ZodISOTime:()=>ts,$ZodIntersection:()=>Es,$ZodJWT:()=>ps,$ZodKSUID:()=>Ya,$ZodLazy:()=>Js,$ZodLiteral:()=>Os,$ZodMAC:()=>is,$ZodMap:()=>Rs,$ZodNaN:()=>Fs,$ZodNanoID:()=>Va,$ZodNever:()=>xs,$ZodNonOptional:()=>Ms,$ZodNull:()=>bs,$ZodNullable:()=>Ns,$ZodNumber:()=>zr,$ZodNumberFormat:()=>gs,$ZodObject:()=>xp,$ZodObjectJIT:()=>Is,$ZodOptional:()=>Nr,$ZodPipe:()=>Dr,$ZodPrefault:()=>Ls,$ZodPreprocess:()=>Ws,$ZodPromise:()=>Hs,$ZodReadonly:()=>Gs,$ZodRealError:()=>Q,$ZodRecord:()=>As,$ZodRegistry:()=>Zr,$ZodSet:()=>Ps,$ZodString:()=>it,$ZodStringFormat:()=>C,$ZodSuccess:()=>Bs,$ZodSymbol:()=>hs,$ZodTemplateLiteral:()=>Ks,$ZodTransform:()=>Cs,$ZodTuple:()=>Ur,$ZodType:()=>T,$ZodULID:()=>Xa,$ZodURL:()=>Ga,$ZodUUID:()=>Fa,$ZodUndefined:()=>vs,$ZodUnion:()=>Rn,$ZodUnknown:()=>_s,$ZodVoid:()=>Ss,$ZodXID:()=>qa,$ZodXor:()=>ws,$brand:()=>Pi,$constructor:()=>g,$input:()=>Ys,$output:()=>qs,Doc:()=>En,JSONSchema:()=>km,JSONSchemaGenerator:()=>_o,NEVER:()=>Ri,TimePrecision:()=>nc,_any:()=>kc,_array:()=>Rc,_base64:()=>ao,_base64url:()=>so,_bigint:()=>hc,_boolean:()=>gc,_catch:()=>o_,_check:()=>Sm,_cidrv4:()=>oo,_cidrv6:()=>io,_coercedBigint:()=>vc,_coercedBoolean:()=>fc,_coercedDate:()=>Ec,_coercedNumber:()=>cc,_coercedString:()=>ec,_cuid:()=>qr,_cuid2:()=>Yr,_custom:()=>jc,_date:()=>Tc,_decode:()=>yr,_decodeAsync:()=>xr,_default:()=>t_,_discriminatedUnion:()=>Fy,_e164:()=>co,_email:()=>Wr,_emoji:()=>Jr,_encode:()=>br,_encodeAsync:()=>_r,_endsWith:()=>Rt,_enum:()=>Jy,_file:()=>Pc,_float32:()=>uc,_float64:()=>dc,_gt:()=>ge,_gte:()=>X,_guid:()=>zn,_includes:()=>Et,_int:()=>lc,_int32:()=>pc,_int64:()=>bc,_intersection:()=>Wy,_ipv4:()=>no,_ipv6:()=>ro,_isoDate:()=>oc,_isoDateTime:()=>rc,_isoDuration:()=>ac,_isoTime:()=>ic,_jwt:()=>lo,_ksuid:()=>to,_lazy:()=>c_,_length:()=>ct,_literal:()=>qy,_lowercase:()=>wt,_lt:()=>me,_lte:()=>ne,_mac:()=>tc,_map:()=>Vy,_max:()=>ne,_maxLength:()=>st,_maxSize:()=>Le,_mime:()=>Pt,_min:()=>X,_minLength:()=>Ee,_minSize:()=>fe,_multipleOf:()=>De,_nan:()=>Ac,_nanoid:()=>Xr,_nativeEnum:()=>Xy,_negative:()=>po,_never:()=>Ic,_nonnegative:()=>go,_nonoptional:()=>n_,_nonpositive:()=>mo,_normalize:()=>jt,_null:()=>Sc,_nullable:()=>e_,_number:()=>sc,_optional:()=>Qy,_overwrite:()=>se,_parse:()=>yt,_parseAsync:()=>_t,_pipe:()=>i_,_positive:()=>uo,_promise:()=>l_,_property:()=>fo,_readonly:()=>a_,_record:()=>Ky,_refine:()=>Oc,_regex:()=>It,_safeDecode:()=>kr,_safeDecodeAsync:()=>Ir,_safeEncode:()=>Sr,_safeEncodeAsync:()=>$r,_safeParse:()=>xt,_safeParseAsync:()=>St,_set:()=>Hy,_size:()=>at,_slugify:()=>Ut,_startsWith:()=>At,_string:()=>Qs,_stringFormat:()=>Nt,_stringbool:()=>Nc,_success:()=>r_,_superRefine:()=>zc,_symbol:()=>_c,_templateLiteral:()=>s_,_toLowerCase:()=>zt,_toUpperCase:()=>Ct,_transform:()=>Yy,_trim:()=>Ot,_tuple:()=>Gy,_uint32:()=>mc,_uint64:()=>yc,_ulid:()=>Qr,_undefined:()=>xc,_union:()=>By,_unknown:()=>$c,_uppercase:()=>Tt,_url:()=>Cn,_uuid:()=>Gr,_uuidv4:()=>Kr,_uuidv6:()=>Vr,_uuidv7:()=>Hr,_void:()=>wc,_xid:()=>eo,_xor:()=>Zy,clone:()=>H,config:()=>M,createStandardJSONSchemaMethod:()=>Dt,createToJSONSchemaMethod:()=>Dc,decode:()=>lb,decodeAsync:()=>db,describe:()=>Cc,encode:()=>cb,encodeAsync:()=>ub,extractDefs:()=>Be,finalize:()=>Ze,flattenError:()=>$n,formatError:()=>In,globalConfig:()=>nt,globalRegistry:()=>F,initializeContext:()=>Me,isValidBase64:()=>cs,isValidBase64URL:()=>vp,isValidJWT:()=>bp,locales:()=>On,meta:()=>Uc,parse:()=>hr,parseAsync:()=>vr,prettifyError:()=>Wi,process:()=>O,regexes:()=>te,registry:()=>Fr,safeDecode:()=>mb,safeDecodeAsync:()=>fb,safeEncode:()=>pb,safeEncodeAsync:()=>gb,safeParse:()=>Gi,safeParseAsync:()=>Ki,toDotPath:()=>Xd,toJSONSchema:()=>yo,treeifyError:()=>Fi,util:()=>S,version:()=>Ma});var Gd,Ri=Object.freeze({status:"aborted"});function g(t,r,o){function i(c,u){if(c._zod||Object.defineProperty(c,"_zod",{value:{def:u,constr:s,traits:new Set},enumerable:!1}),c._zod.traits.has(t))return;c._zod.traits.add(t),r(c,u);let d=s.prototype,p=Object.keys(d);for(let v=0;v<p.length;v++){let f=p[v];f in c||(c[f]=d[f].bind(c))}}let n=o?.Parent??Object;class a extends n{}Object.defineProperty(a,"name",{value:t});function s(c){var u;let d=o?.Parent?new a:this;i(d,c),(u=d._zod).deferred??(u.deferred=[]);for(let p of d._zod.deferred)p();return d}return Object.defineProperty(s,"init",{value:i}),Object.defineProperty(s,Symbol.hasInstance,{value:c=>o?.Parent&&c instanceof o.Parent?!0:c?._zod?.traits?.has(t)}),Object.defineProperty(s,"name",{value:t}),s}var Pi=Symbol("zod_brand"),ae=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Oe=class extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}};(Gd=globalThis).__zod_globalConfig??(Gd.__zod_globalConfig={});var nt=globalThis.__zod_globalConfig;function M(t){return t&&Object.assign(nt,t),nt}var S={};we(S,{BIGINT_FORMAT_RANGES:()=>Bi,Class:()=>Oi,NUMBER_FORMAT_RANGES:()=>Mi,aborted:()=>Ne,allowsEval:()=>Ui,assert:()=>Mv,assertEqual:()=>Uv,assertIs:()=>Dv,assertNever:()=>Lv,assertNotEqual:()=>Nv,assignProp:()=>Ce,base64ToUint8Array:()=>Vd,base64urlToUint8Array:()=>rb,cached:()=>vt,captureStackTrace:()=>fr,cleanEnum:()=>nb,cleanRegex:()=>yn,clone:()=>H,cloneDef:()=>Zv,createTransparentProxy:()=>Hv,defineLazy:()=>R,esc:()=>gr,escapeRegex:()=>oe,explicitlyAborted:()=>Zi,extend:()=>qv,finalizeIssue:()=>J,floatSafeRemainder:()=>zi,getElementAtPath:()=>Fv,getEnumValues:()=>bn,getLengthableOrigin:()=>Sn,getParsedType:()=>Vv,getSizableOrigin:()=>xn,hexToUint8Array:()=>ib,isObject:()=>rt,isPlainObject:()=>Ue,issue:()=>bt,joinValues:()=>h,jsonStringifyReplacer:()=>ht,merge:()=>Qv,mergeDefs:()=>Te,normalizeParams:()=>k,nullish:()=>ze,numKeys:()=>Kv,objectClone:()=>Bv,omit:()=>Xv,optionalKeys:()=>Li,parsedType:()=>x,partial:()=>eb,pick:()=>Jv,prefixIssues:()=>Y,primitiveTypes:()=>Di,promiseAllObject:()=>Wv,propertyKeyTypes:()=>_n,randomString:()=>Gv,required:()=>tb,safeExtend:()=>Yv,shallowClone:()=>Ni,slugify:()=>Ci,stringifyPrimitive:()=>_,uint8ArrayToBase64:()=>Hd,uint8ArrayToBase64url:()=>ob,uint8ArrayToHex:()=>ab,unwrapMessage:()=>vn});function Uv(t){return t}function Nv(t){return t}function Dv(t){}function Lv(t){throw new Error("Unexpected value in exhaustive check")}function Mv(t){}function bn(t){let r=Object.values(t).filter(i=>typeof i=="number");return Object.entries(t).filter(([i,n])=>r.indexOf(+i)===-1).map(([i,n])=>n)}function h(t,r="|"){return t.map(o=>_(o)).join(r)}function ht(t,r){return typeof r=="bigint"?r.toString():r}function vt(t){return{get value(){{let o=t();return Object.defineProperty(this,"value",{value:o}),o}throw new Error("cached value already set")}}}function ze(t){return t==null}function yn(t){let r=t.startsWith("^")?1:0,o=t.endsWith("$")?t.length-1:t.length;return t.slice(r,o)}function zi(t,r){let o=t/r,i=Math.round(o),n=Number.EPSILON*Math.max(Math.abs(o),1);return Math.abs(o-i)<n?0:o-i}var Kd=Symbol("evaluating");function R(t,r,o){let i;Object.defineProperty(t,r,{get(){if(i!==Kd)return i===void 0&&(i=Kd,i=o()),i},set(n){Object.defineProperty(t,r,{value:n})},configurable:!0})}function Bv(t){return Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t))}function Ce(t,r,o){Object.defineProperty(t,r,{value:o,writable:!0,enumerable:!0,configurable:!0})}function Te(...t){let r={};for(let o of t){let i=Object.getOwnPropertyDescriptors(o);Object.assign(r,i)}return Object.defineProperties({},r)}function Zv(t){return Te(t._zod.def)}function Fv(t,r){return r?r.reduce((o,i)=>o?.[i],t):t}function Wv(t){let r=Object.keys(t),o=r.map(i=>t[i]);return Promise.all(o).then(i=>{let n={};for(let a=0;a<r.length;a++)n[r[a]]=i[a];return n})}function Gv(t=10){let r="abcdefghijklmnopqrstuvwxyz",o="";for(let i=0;i<t;i++)o+=r[Math.floor(Math.random()*r.length)];return o}function gr(t){return JSON.stringify(t)}function Ci(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var fr="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function rt(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}var Ui=vt(()=>{if(nt.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});function Ue(t){if(rt(t)===!1)return!1;let r=t.constructor;if(r===void 0||typeof r!="function")return!0;let o=r.prototype;return!(rt(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}function Ni(t){return Ue(t)?{...t}:Array.isArray(t)?[...t]:t instanceof Map?new Map(t):t instanceof Set?new Set(t):t}function Kv(t){let r=0;for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&r++;return r}var Vv=t=>{let r=typeof t;switch(r){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(t)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(t)?"array":t===null?"null":t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?"promise":typeof Map<"u"&&t instanceof Map?"map":typeof Set<"u"&&t instanceof Set?"set":typeof Date<"u"&&t instanceof Date?"date":typeof File<"u"&&t instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${r}`)}},_n=new Set(["string","number","symbol"]),Di=new Set(["string","number","bigint","boolean","symbol","undefined"]);function oe(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function H(t,r,o){let i=new t._zod.constr(r??t._zod.def);return(!r||o?.parent)&&(i._zod.parent=t),i}function k(t){let r=t;if(!r)return{};if(typeof r=="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function Hv(t){let r;return new Proxy({},{get(o,i,n){return r??(r=t()),Reflect.get(r,i,n)},set(o,i,n,a){return r??(r=t()),Reflect.set(r,i,n,a)},has(o,i){return r??(r=t()),Reflect.has(r,i)},deleteProperty(o,i){return r??(r=t()),Reflect.deleteProperty(r,i)},ownKeys(o){return r??(r=t()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(o,i){return r??(r=t()),Reflect.getOwnPropertyDescriptor(r,i)},defineProperty(o,i,n){return r??(r=t()),Reflect.defineProperty(r,i,n)}})}function _(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function Li(t){return Object.keys(t).filter(r=>t[r]._zod.optin==="optional"&&t[r]._zod.optout==="optional")}var Mi={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]},Bi={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Jv(t,r){let o=t._zod.def,i=o.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let a=Te(t._zod.def,{get shape(){let s={};for(let c in r){if(!(c in o.shape))throw new Error(`Unrecognized key: "${c}"`);r[c]&&(s[c]=o.shape[c])}return Ce(this,"shape",s),s},checks:[]});return H(t,a)}function Xv(t,r){let o=t._zod.def,i=o.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let a=Te(t._zod.def,{get shape(){let s={...t._zod.def.shape};for(let c in r){if(!(c in o.shape))throw new Error(`Unrecognized key: "${c}"`);r[c]&&delete s[c]}return Ce(this,"shape",s),s},checks:[]});return H(t,a)}function qv(t,r){if(!Ue(r))throw new Error("Invalid input to extend: expected a plain object");let o=t._zod.def.checks;if(o&&o.length>0){let a=t._zod.def.shape;for(let s in r)if(Object.getOwnPropertyDescriptor(a,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=Te(t._zod.def,{get shape(){let a={...t._zod.def.shape,...r};return Ce(this,"shape",a),a}});return H(t,n)}function Yv(t,r){if(!Ue(r))throw new Error("Invalid input to safeExtend: expected a plain object");let o=Te(t._zod.def,{get shape(){let i={...t._zod.def.shape,...r};return Ce(this,"shape",i),i}});return H(t,o)}function Qv(t,r){if(t._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let o=Te(t._zod.def,{get shape(){let i={...t._zod.def.shape,...r._zod.def.shape};return Ce(this,"shape",i),i},get catchall(){return r._zod.def.catchall},checks:r._zod.def.checks??[]});return H(t,o)}function eb(t,r,o){let n=r._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let s=Te(r._zod.def,{get shape(){let c=r._zod.def.shape,u={...c};if(o)for(let d in o){if(!(d in c))throw new Error(`Unrecognized key: "${d}"`);o[d]&&(u[d]=t?new t({type:"optional",innerType:c[d]}):c[d])}else for(let d in c)u[d]=t?new t({type:"optional",innerType:c[d]}):c[d];return Ce(this,"shape",u),u},checks:[]});return H(r,s)}function tb(t,r,o){let i=Te(r._zod.def,{get shape(){let n=r._zod.def.shape,a={...n};if(o)for(let s in o){if(!(s in a))throw new Error(`Unrecognized key: "${s}"`);o[s]&&(a[s]=new t({type:"nonoptional",innerType:n[s]}))}else for(let s in n)a[s]=new t({type:"nonoptional",innerType:n[s]});return Ce(this,"shape",a),a}});return H(r,i)}function Ne(t,r=0){if(t.aborted===!0)return!0;for(let o=r;o<t.issues.length;o++)if(t.issues[o]?.continue!==!0)return!0;return!1}function Zi(t,r=0){if(t.aborted===!0)return!0;for(let o=r;o<t.issues.length;o++)if(t.issues[o]?.continue===!1)return!0;return!1}function Y(t,r){return r.map(o=>{var i;return(i=o).path??(i.path=[]),o.path.unshift(t),o})}function vn(t){return typeof t=="string"?t:t?.message}function J(t,r,o){let i=t.message?t.message:vn(t.inst?._zod.def?.error?.(t))??vn(r?.error?.(t))??vn(o.customError?.(t))??vn(o.localeError?.(t))??"Invalid input",{inst:n,continue:a,input:s,...c}=t;return c.path??(c.path=[]),c.message=i,r?.reportInput&&(c.input=s),c}function xn(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}function Sn(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function x(t){let r=typeof t;switch(r){case"number":return Number.isNaN(t)?"nan":"number";case"object":{if(t===null)return"null";if(Array.isArray(t))return"array";let o=t;if(o&&Object.getPrototypeOf(o)!==Object.prototype&&"constructor"in o&&o.constructor)return o.constructor.name}}return r}function bt(...t){let[r,o,i]=t;return typeof r=="string"?{message:r,code:"custom",input:o,inst:i}:{...r}}function nb(t){return Object.entries(t).filter(([r,o])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}function Vd(t){let r=atob(t),o=new Uint8Array(r.length);for(let i=0;i<r.length;i++)o[i]=r.charCodeAt(i);return o}function Hd(t){let r="";for(let o=0;o<t.length;o++)r+=String.fromCharCode(t[o]);return btoa(r)}function rb(t){let r=t.replace(/-/g,"+").replace(/_/g,"/"),o="=".repeat((4-r.length%4)%4);return Vd(r+o)}function ob(t){return Hd(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function ib(t){let r=t.replace(/^0x/,"");if(r.length%2!==0)throw new Error("Invalid hex string length");let o=new Uint8Array(r.length/2);for(let i=0;i<r.length;i+=2)o[i/2]=Number.parseInt(r.slice(i,i+2),16);return o}function ab(t){return Array.from(t).map(r=>r.toString(16).padStart(2,"0")).join("")}var Oi=class{constructor(...r){}};var Jd=(t,r)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:r,enumerable:!1}),t.message=JSON.stringify(r,ht,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},kn=g("$ZodError",Jd),Q=g("$ZodError",Jd,{Parent:Error});function $n(t,r=o=>o.message){let o={},i=[];for(let n of t.issues)n.path.length>0?(o[n.path[0]]=o[n.path[0]]||[],o[n.path[0]].push(r(n))):i.push(r(n));return{formErrors:i,fieldErrors:o}}function In(t,r=o=>o.message){let o={_errors:[]},i=(n,a=[])=>{for(let s of n.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(c=>i({issues:c},[...a,...s.path]));else if(s.code==="invalid_key")i({issues:s.issues},[...a,...s.path]);else if(s.code==="invalid_element")i({issues:s.issues},[...a,...s.path]);else{let c=[...a,...s.path];if(c.length===0)o._errors.push(r(s));else{let u=o,d=0;for(;d<c.length;){let p=c[d];d===c.length-1?(u[p]=u[p]||{_errors:[]},u[p]._errors.push(r(s))):u[p]=u[p]||{_errors:[]},u=u[p],d++}}}};return i(t),o}function Fi(t,r=o=>o.message){let o={errors:[]},i=(n,a=[])=>{var s,c;for(let u of n.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(d=>i({issues:d},[...a,...u.path]));else if(u.code==="invalid_key")i({issues:u.issues},[...a,...u.path]);else if(u.code==="invalid_element")i({issues:u.issues},[...a,...u.path]);else{let d=[...a,...u.path];if(d.length===0){o.errors.push(r(u));continue}let p=o,v=0;for(;v<d.length;){let f=d[v],l=v===d.length-1;typeof f=="string"?(p.properties??(p.properties={}),(s=p.properties)[f]??(s[f]={errors:[]}),p=p.properties[f]):(p.items??(p.items=[]),(c=p.items)[f]??(c[f]={errors:[]}),p=p.items[f]),l&&p.errors.push(r(u)),v++}}};return i(t),o}function Xd(t){let r=[],o=t.map(i=>typeof i=="object"?i.key:i);for(let i of o)typeof i=="number"?r.push(`[${i}]`):typeof i=="symbol"?r.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?r.push(`[${JSON.stringify(i)}]`):(r.length&&r.push("."),r.push(i));return r.join("")}function Wi(t){let r=[],o=[...t.issues].sort((i,n)=>(i.path??[]).length-(n.path??[]).length);for(let i of o)r.push(`\u2716 ${i.message}`),i.path?.length&&r.push(` \u2192 at ${Xd(i.path)}`);return r.join(`
3
+ `)}var yt=t=>(r,o,i,n)=>{let a=i?{...i,async:!1}:{async:!1},s=r._zod.run({value:o,issues:[]},a);if(s instanceof Promise)throw new ae;if(s.issues.length){let c=new(n?.Err??t)(s.issues.map(u=>J(u,a,M())));throw fr(c,n?.callee),c}return s.value},hr=yt(Q),_t=t=>async(r,o,i,n)=>{let a=i?{...i,async:!0}:{async:!0},s=r._zod.run({value:o,issues:[]},a);if(s instanceof Promise&&(s=await s),s.issues.length){let c=new(n?.Err??t)(s.issues.map(u=>J(u,a,M())));throw fr(c,n?.callee),c}return s.value},vr=_t(Q),xt=t=>(r,o,i)=>{let n=i?{...i,async:!1}:{async:!1},a=r._zod.run({value:o,issues:[]},n);if(a instanceof Promise)throw new ae;return a.issues.length?{success:!1,error:new(t??kn)(a.issues.map(s=>J(s,n,M())))}:{success:!0,data:a.value}},Gi=xt(Q),St=t=>async(r,o,i)=>{let n=i?{...i,async:!0}:{async:!0},a=r._zod.run({value:o,issues:[]},n);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new t(a.issues.map(s=>J(s,n,M())))}:{success:!0,data:a.value}},Ki=St(Q),br=t=>(r,o,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return yt(t)(r,o,n)},cb=br(Q),yr=t=>(r,o,i)=>yt(t)(r,o,i),lb=yr(Q),_r=t=>async(r,o,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return _t(t)(r,o,n)},ub=_r(Q),xr=t=>async(r,o,i)=>_t(t)(r,o,i),db=xr(Q),Sr=t=>(r,o,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return xt(t)(r,o,n)},pb=Sr(Q),kr=t=>(r,o,i)=>xt(t)(r,o,i),mb=kr(Q),$r=t=>async(r,o,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return St(t)(r,o,n)},gb=$r(Q),Ir=t=>async(r,o,i)=>St(t)(r,o,i),fb=Ir(Q);var te={};we(te,{base64:()=>ca,base64url:()=>wr,bigint:()=>fa,boolean:()=>va,browserEmail:()=>kb,cidrv4:()=>aa,cidrv6:()=>sa,cuid:()=>Vi,cuid2:()=>Hi,date:()=>da,datetime:()=>ma,domain:()=>wb,duration:()=>Qi,e164:()=>ua,email:()=>ta,emoji:()=>na,extendedDuration:()=>hb,guid:()=>ea,hex:()=>Tb,hostname:()=>Ib,html5Email:()=>_b,httpProtocol:()=>la,idnEmail:()=>Sb,integer:()=>ha,ipv4:()=>ra,ipv6:()=>oa,ksuid:()=>qi,lowercase:()=>_a,mac:()=>ia,md5_base64:()=>Ab,md5_base64url:()=>Rb,md5_hex:()=>Eb,nanoid:()=>Yi,null:()=>ba,number:()=>Tr,rfc5322Email:()=>xb,sha1_base64:()=>jb,sha1_base64url:()=>Ob,sha1_hex:()=>Pb,sha256_base64:()=>Cb,sha256_base64url:()=>Ub,sha256_hex:()=>zb,sha384_base64:()=>Db,sha384_base64url:()=>Lb,sha384_hex:()=>Nb,sha512_base64:()=>Bb,sha512_base64url:()=>Zb,sha512_hex:()=>Mb,string:()=>ga,time:()=>pa,ulid:()=>Ji,undefined:()=>ya,unicodeEmail:()=>qd,uppercase:()=>xa,uuid:()=>ot,uuid4:()=>vb,uuid6:()=>bb,uuid7:()=>yb,xid:()=>Xi});var Vi=/^[cC][0-9a-z]{6,}$/,Hi=/^[0-9a-z]+$/,Ji=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Xi=/^[0-9a-vA-V]{20}$/,qi=/^[A-Za-z0-9]{27}$/,Yi=/^[a-zA-Z0-9_-]{21}$/,Qi=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,hb=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ea=/^([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})$/,ot=t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,vb=ot(4),bb=ot(6),yb=ot(7),ta=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,_b=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,xb=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,qd=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Sb=qd,kb=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,$b="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function na(){return new RegExp($b,"u")}var ra=/^(?:(?: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])$/,oa=/^(([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}|:))$/,ia=t=>{let r=oe(t??":");return new RegExp(`^(?:[0-9A-F]{2}${r}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${r}){5}[0-9a-f]{2}$`)},aa=/^((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])$/,sa=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ca=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,wr=/^[A-Za-z0-9_-]*$/,Ib=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,wb=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,la=/^https?$/,ua=/^\+[1-9]\d{6,14}$/,Yd="(?:(?:\\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])))",da=new RegExp(`^${Yd}$`);function Qd(t){let r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${r}`:t.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${t.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function pa(t){return new RegExp(`^${Qd(t)}$`)}function ma(t){let r=Qd({precision:t.precision}),o=["Z"];t.local&&o.push(""),t.offset&&o.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i=`${r}(?:${o.join("|")})`;return new RegExp(`^${Yd}T(?:${i})$`)}var ga=t=>{let r=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},fa=/^-?\d+n?$/,ha=/^-?\d+$/,Tr=/^-?\d+(?:\.\d+)?$/,va=/^(?:true|false)$/i,ba=/^null$/i;var ya=/^undefined$/i;var _a=/^[^A-Z]*$/,xa=/^[^a-z]*$/,Tb=/^[0-9a-fA-F]*$/;function wn(t,r){return new RegExp(`^[A-Za-z0-9+/]{${t}}${r}$`)}function Tn(t){return new RegExp(`^[A-Za-z0-9_-]{${t}}$`)}var Eb=/^[0-9a-fA-F]{32}$/,Ab=wn(22,"=="),Rb=Tn(22),Pb=/^[0-9a-fA-F]{40}$/,jb=wn(27,"="),Ob=Tn(27),zb=/^[0-9a-fA-F]{64}$/,Cb=wn(43,"="),Ub=Tn(43),Nb=/^[0-9a-fA-F]{96}$/,Db=wn(64,""),Lb=Tn(64),Mb=/^[0-9a-fA-F]{128}$/,Bb=wn(86,"=="),Zb=Tn(86);var N=g("$ZodCheck",(t,r)=>{var o;t._zod??(t._zod={}),t._zod.def=r,(o=t._zod).onattach??(o.onattach=[])}),tp={number:"number",bigint:"bigint",object:"date"},Er=g("$ZodCheckLessThan",(t,r)=>{N.init(t,r);let o=tp[typeof r.value];t._zod.onattach.push(i=>{let n=i._zod.bag,a=(r.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<a&&(r.inclusive?n.maximum=r.value:n.exclusiveMaximum=r.value)}),t._zod.check=i=>{(r.inclusive?i.value<=r.value:i.value<r.value)||i.issues.push({origin:o,code:"too_big",maximum:typeof r.value=="object"?r.value.getTime():r.value,input:i.value,inclusive:r.inclusive,inst:t,continue:!r.abort})}}),Ar=g("$ZodCheckGreaterThan",(t,r)=>{N.init(t,r);let o=tp[typeof r.value];t._zod.onattach.push(i=>{let n=i._zod.bag,a=(r.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>a&&(r.inclusive?n.minimum=r.value:n.exclusiveMinimum=r.value)}),t._zod.check=i=>{(r.inclusive?i.value>=r.value:i.value>r.value)||i.issues.push({origin:o,code:"too_small",minimum:typeof r.value=="object"?r.value.getTime():r.value,input:i.value,inclusive:r.inclusive,inst:t,continue:!r.abort})}}),Sa=g("$ZodCheckMultipleOf",(t,r)=>{N.init(t,r),t._zod.onattach.push(o=>{var i;(i=o._zod.bag).multipleOf??(i.multipleOf=r.value)}),t._zod.check=o=>{if(typeof o.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof o.value=="bigint"?o.value%r.value===BigInt(0):zi(o.value,r.value)===0)||o.issues.push({origin:typeof o.value,code:"not_multiple_of",divisor:r.value,input:o.value,inst:t,continue:!r.abort})}}),ka=g("$ZodCheckNumberFormat",(t,r)=>{N.init(t,r),r.format=r.format||"float64";let o=r.format?.includes("int"),i=o?"int":"number",[n,a]=Mi[r.format];t._zod.onattach.push(s=>{let c=s._zod.bag;c.format=r.format,c.minimum=n,c.maximum=a,o&&(c.pattern=ha)}),t._zod.check=s=>{let c=s.value;if(o){if(!Number.isInteger(c)){s.issues.push({expected:i,format:r.format,code:"invalid_type",continue:!1,input:c,inst:t});return}if(!Number.isSafeInteger(c)){c>0?s.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:i,inclusive:!0,continue:!r.abort}):s.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:i,inclusive:!0,continue:!r.abort});return}}c<n&&s.issues.push({origin:"number",input:c,code:"too_small",minimum:n,inclusive:!0,inst:t,continue:!r.abort}),c>a&&s.issues.push({origin:"number",input:c,code:"too_big",maximum:a,inclusive:!0,inst:t,continue:!r.abort})}}),$a=g("$ZodCheckBigIntFormat",(t,r)=>{N.init(t,r);let[o,i]=Bi[r.format];t._zod.onattach.push(n=>{let a=n._zod.bag;a.format=r.format,a.minimum=o,a.maximum=i}),t._zod.check=n=>{let a=n.value;a<o&&n.issues.push({origin:"bigint",input:a,code:"too_small",minimum:o,inclusive:!0,inst:t,continue:!r.abort}),a>i&&n.issues.push({origin:"bigint",input:a,code:"too_big",maximum:i,inclusive:!0,inst:t,continue:!r.abort})}}),Ia=g("$ZodCheckMaxSize",(t,r)=>{var o;N.init(t,r),(o=t._zod.def).when??(o.when=i=>{let n=i.value;return!ze(n)&&n.size!==void 0}),t._zod.onattach.push(i=>{let n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<n&&(i._zod.bag.maximum=r.maximum)}),t._zod.check=i=>{let n=i.value;n.size<=r.maximum||i.issues.push({origin:xn(n),code:"too_big",maximum:r.maximum,inclusive:!0,input:n,inst:t,continue:!r.abort})}}),wa=g("$ZodCheckMinSize",(t,r)=>{var o;N.init(t,r),(o=t._zod.def).when??(o.when=i=>{let n=i.value;return!ze(n)&&n.size!==void 0}),t._zod.onattach.push(i=>{let n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>n&&(i._zod.bag.minimum=r.minimum)}),t._zod.check=i=>{let n=i.value;n.size>=r.minimum||i.issues.push({origin:xn(n),code:"too_small",minimum:r.minimum,inclusive:!0,input:n,inst:t,continue:!r.abort})}}),Ta=g("$ZodCheckSizeEquals",(t,r)=>{var o;N.init(t,r),(o=t._zod.def).when??(o.when=i=>{let n=i.value;return!ze(n)&&n.size!==void 0}),t._zod.onattach.push(i=>{let n=i._zod.bag;n.minimum=r.size,n.maximum=r.size,n.size=r.size}),t._zod.check=i=>{let n=i.value,a=n.size;if(a===r.size)return;let s=a>r.size;i.issues.push({origin:xn(n),...s?{code:"too_big",maximum:r.size}:{code:"too_small",minimum:r.size},inclusive:!0,exact:!0,input:i.value,inst:t,continue:!r.abort})}}),Ea=g("$ZodCheckMaxLength",(t,r)=>{var o;N.init(t,r),(o=t._zod.def).when??(o.when=i=>{let n=i.value;return!ze(n)&&n.length!==void 0}),t._zod.onattach.push(i=>{let n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<n&&(i._zod.bag.maximum=r.maximum)}),t._zod.check=i=>{let n=i.value;if(n.length<=r.maximum)return;let s=Sn(n);i.issues.push({origin:s,code:"too_big",maximum:r.maximum,inclusive:!0,input:n,inst:t,continue:!r.abort})}}),Aa=g("$ZodCheckMinLength",(t,r)=>{var o;N.init(t,r),(o=t._zod.def).when??(o.when=i=>{let n=i.value;return!ze(n)&&n.length!==void 0}),t._zod.onattach.push(i=>{let n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>n&&(i._zod.bag.minimum=r.minimum)}),t._zod.check=i=>{let n=i.value;if(n.length>=r.minimum)return;let s=Sn(n);i.issues.push({origin:s,code:"too_small",minimum:r.minimum,inclusive:!0,input:n,inst:t,continue:!r.abort})}}),Ra=g("$ZodCheckLengthEquals",(t,r)=>{var o;N.init(t,r),(o=t._zod.def).when??(o.when=i=>{let n=i.value;return!ze(n)&&n.length!==void 0}),t._zod.onattach.push(i=>{let n=i._zod.bag;n.minimum=r.length,n.maximum=r.length,n.length=r.length}),t._zod.check=i=>{let n=i.value,a=n.length;if(a===r.length)return;let s=Sn(n),c=a>r.length;i.issues.push({origin:s,...c?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:i.value,inst:t,continue:!r.abort})}}),kt=g("$ZodCheckStringFormat",(t,r)=>{var o,i;N.init(t,r),t._zod.onattach.push(n=>{let a=n._zod.bag;a.format=r.format,r.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(r.pattern))}),r.pattern?(o=t._zod).check??(o.check=n=>{r.pattern.lastIndex=0,!r.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:r.format,input:n.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:t,continue:!r.abort})}):(i=t._zod).check??(i.check=()=>{})}),Pa=g("$ZodCheckRegex",(t,r)=>{kt.init(t,r),t._zod.check=o=>{r.pattern.lastIndex=0,!r.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:"regex",input:o.value,pattern:r.pattern.toString(),inst:t,continue:!r.abort})}}),ja=g("$ZodCheckLowerCase",(t,r)=>{r.pattern??(r.pattern=_a),kt.init(t,r)}),Oa=g("$ZodCheckUpperCase",(t,r)=>{r.pattern??(r.pattern=xa),kt.init(t,r)}),za=g("$ZodCheckIncludes",(t,r)=>{N.init(t,r);let o=oe(r.includes),i=new RegExp(typeof r.position=="number"?`^.{${r.position}}${o}`:o);r.pattern=i,t._zod.onattach.push(n=>{let a=n._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(i)}),t._zod.check=n=>{n.value.includes(r.includes,r.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:n.value,inst:t,continue:!r.abort})}}),Ca=g("$ZodCheckStartsWith",(t,r)=>{N.init(t,r);let o=new RegExp(`^${oe(r.prefix)}.*`);r.pattern??(r.pattern=o),t._zod.onattach.push(i=>{let n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(o)}),t._zod.check=i=>{i.value.startsWith(r.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:i.value,inst:t,continue:!r.abort})}}),Ua=g("$ZodCheckEndsWith",(t,r)=>{N.init(t,r);let o=new RegExp(`.*${oe(r.suffix)}$`);r.pattern??(r.pattern=o),t._zod.onattach.push(i=>{let n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(o)}),t._zod.check=i=>{i.value.endsWith(r.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:i.value,inst:t,continue:!r.abort})}});function ep(t,r,o){t.issues.length&&r.issues.push(...Y(o,t.issues))}var Na=g("$ZodCheckProperty",(t,r)=>{N.init(t,r),t._zod.check=o=>{let i=r.schema._zod.run({value:o.value[r.property],issues:[]},{});if(i instanceof Promise)return i.then(n=>ep(n,o,r.property));ep(i,o,r.property)}}),Da=g("$ZodCheckMimeType",(t,r)=>{N.init(t,r);let o=new Set(r.mime);t._zod.onattach.push(i=>{i._zod.bag.mime=r.mime}),t._zod.check=i=>{o.has(i.value.type)||i.issues.push({code:"invalid_value",values:r.mime,input:i.value.type,inst:t,continue:!r.abort})}}),La=g("$ZodCheckOverwrite",(t,r)=>{N.init(t,r),t._zod.check=o=>{o.value=r.tx(o.value)}});var En=class{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}let i=r.split(`
4
+ `).filter(s=>s),n=Math.min(...i.map(s=>s.length-s.trimStart().length)),a=i.map(s=>s.slice(n)).map(s=>" ".repeat(this.indent*2)+s);for(let s of a)this.content.push(s)}compile(){let r=Function,o=this?.args,n=[...(this?.content??[""]).map(a=>` ${a}`)];return new r(...o,n.join(`
5
+ `))}};var Ma={major:4,minor:4,patch:3};var T=g("$ZodType",(t,r)=>{var o;t??(t={}),t._zod.def=r,t._zod.bag=t._zod.bag||{},t._zod.version=Ma;let i=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&i.unshift(t);for(let n of i)for(let a of n._zod.onattach)a(t);if(i.length===0)(o=t._zod).deferred??(o.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let n=(s,c,u)=>{let d=Ne(s),p;for(let v of c){if(v._zod.def.when){if(Zi(s)||!v._zod.def.when(s))continue}else if(d)continue;let f=s.issues.length,l=v._zod.check(s);if(l instanceof Promise&&u?.async===!1)throw new ae;if(p||l instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await l,s.issues.length!==f&&(d||(d=Ne(s,f)))});else{if(s.issues.length===f)continue;d||(d=Ne(s,f))}}return p?p.then(()=>s):s},a=(s,c,u)=>{if(Ne(s))return s.aborted=!0,s;let d=n(c,i,u);if(d instanceof Promise){if(u.async===!1)throw new ae;return d.then(p=>t._zod.parse(p,u))}return t._zod.parse(d,u)};t._zod.run=(s,c)=>{if(c.skipChecks)return t._zod.parse(s,c);if(c.direction==="backward"){let d=t._zod.parse({value:s.value,issues:[]},{...c,skipChecks:!0});return d instanceof Promise?d.then(p=>a(p,s,c)):a(d,s,c)}let u=t._zod.parse(s,c);if(u instanceof Promise){if(c.async===!1)throw new ae;return u.then(d=>n(d,i,c))}return n(u,i,c)}}R(t,"~standard",()=>({validate:n=>{try{let a=Gi(t,n);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return Ki(t,n).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}))}),it=g("$ZodString",(t,r)=>{T.init(t,r),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??ga(t._zod.bag),t._zod.parse=(o,i)=>{if(r.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:t}),o}}),C=g("$ZodStringFormat",(t,r)=>{kt.init(t,r),it.init(t,r)}),Za=g("$ZodGUID",(t,r)=>{r.pattern??(r.pattern=ea),C.init(t,r)}),Fa=g("$ZodUUID",(t,r)=>{if(r.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(i===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=ot(i))}else r.pattern??(r.pattern=ot());C.init(t,r)}),Wa=g("$ZodEmail",(t,r)=>{r.pattern??(r.pattern=ta),C.init(t,r)}),Ga=g("$ZodURL",(t,r)=>{C.init(t,r),t._zod.check=o=>{try{let i=o.value.trim();if(!r.normalize&&r.protocol?.source===la.source&&!/^https?:\/\//i.test(i)){o.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:o.value,inst:t,continue:!r.abort});return}let n=new URL(i);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(n.hostname)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:r.hostname.source,input:o.value,inst:t,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:o.value,inst:t,continue:!r.abort})),r.normalize?o.value=n.href:o.value=i;return}catch{o.issues.push({code:"invalid_format",format:"url",input:o.value,inst:t,continue:!r.abort})}}}),Ka=g("$ZodEmoji",(t,r)=>{r.pattern??(r.pattern=na()),C.init(t,r)}),Va=g("$ZodNanoID",(t,r)=>{r.pattern??(r.pattern=Yi),C.init(t,r)}),Ha=g("$ZodCUID",(t,r)=>{r.pattern??(r.pattern=Vi),C.init(t,r)}),Ja=g("$ZodCUID2",(t,r)=>{r.pattern??(r.pattern=Hi),C.init(t,r)}),Xa=g("$ZodULID",(t,r)=>{r.pattern??(r.pattern=Ji),C.init(t,r)}),qa=g("$ZodXID",(t,r)=>{r.pattern??(r.pattern=Xi),C.init(t,r)}),Ya=g("$ZodKSUID",(t,r)=>{r.pattern??(r.pattern=qi),C.init(t,r)}),Qa=g("$ZodISODateTime",(t,r)=>{r.pattern??(r.pattern=ma(r)),C.init(t,r)}),es=g("$ZodISODate",(t,r)=>{r.pattern??(r.pattern=da),C.init(t,r)}),ts=g("$ZodISOTime",(t,r)=>{r.pattern??(r.pattern=pa(r)),C.init(t,r)}),ns=g("$ZodISODuration",(t,r)=>{r.pattern??(r.pattern=Qi),C.init(t,r)}),rs=g("$ZodIPv4",(t,r)=>{r.pattern??(r.pattern=ra),C.init(t,r),t._zod.bag.format="ipv4"}),os=g("$ZodIPv6",(t,r)=>{r.pattern??(r.pattern=oa),C.init(t,r),t._zod.bag.format="ipv6",t._zod.check=o=>{try{new URL(`http://[${o.value}]`)}catch{o.issues.push({code:"invalid_format",format:"ipv6",input:o.value,inst:t,continue:!r.abort})}}}),is=g("$ZodMAC",(t,r)=>{r.pattern??(r.pattern=ia(r.delimiter)),C.init(t,r),t._zod.bag.format="mac"}),as=g("$ZodCIDRv4",(t,r)=>{r.pattern??(r.pattern=aa),C.init(t,r)}),ss=g("$ZodCIDRv6",(t,r)=>{r.pattern??(r.pattern=sa),C.init(t,r),t._zod.check=o=>{let i=o.value.split("/");try{if(i.length!==2)throw new Error;let[n,a]=i;if(!a)throw new Error;let s=Number(a);if(`${s}`!==a)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${n}]`)}catch{o.issues.push({code:"invalid_format",format:"cidrv6",input:o.value,inst:t,continue:!r.abort})}}});function cs(t){if(t==="")return!0;if(/\s/.test(t)||t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}var ls=g("$ZodBase64",(t,r)=>{r.pattern??(r.pattern=ca),C.init(t,r),t._zod.bag.contentEncoding="base64",t._zod.check=o=>{cs(o.value)||o.issues.push({code:"invalid_format",format:"base64",input:o.value,inst:t,continue:!r.abort})}});function vp(t){if(!wr.test(t))return!1;let r=t.replace(/[-_]/g,i=>i==="-"?"+":"/"),o=r.padEnd(Math.ceil(r.length/4)*4,"=");return cs(o)}var us=g("$ZodBase64URL",(t,r)=>{r.pattern??(r.pattern=wr),C.init(t,r),t._zod.bag.contentEncoding="base64url",t._zod.check=o=>{vp(o.value)||o.issues.push({code:"invalid_format",format:"base64url",input:o.value,inst:t,continue:!r.abort})}}),ds=g("$ZodE164",(t,r)=>{r.pattern??(r.pattern=ua),C.init(t,r)});function bp(t,r=null){try{let o=t.split(".");if(o.length!==3)return!1;let[i]=o;if(!i)return!1;let n=JSON.parse(atob(i));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||r&&(!("alg"in n)||n.alg!==r))}catch{return!1}}var ps=g("$ZodJWT",(t,r)=>{C.init(t,r),t._zod.check=o=>{bp(o.value,r.alg)||o.issues.push({code:"invalid_format",format:"jwt",input:o.value,inst:t,continue:!r.abort})}}),ms=g("$ZodCustomStringFormat",(t,r)=>{C.init(t,r),t._zod.check=o=>{r.fn(o.value)||o.issues.push({code:"invalid_format",format:r.format,input:o.value,inst:t,continue:!r.abort})}}),zr=g("$ZodNumber",(t,r)=>{T.init(t,r),t._zod.pattern=t._zod.bag.pattern??Tr,t._zod.parse=(o,i)=>{if(r.coerce)try{o.value=Number(o.value)}catch{}let n=o.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return o;let a=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return o.issues.push({expected:"number",code:"invalid_type",input:n,inst:t,...a?{received:a}:{}}),o}}),gs=g("$ZodNumberFormat",(t,r)=>{ka.init(t,r),zr.init(t,r)}),An=g("$ZodBoolean",(t,r)=>{T.init(t,r),t._zod.pattern=va,t._zod.parse=(o,i)=>{if(r.coerce)try{o.value=!!o.value}catch{}let n=o.value;return typeof n=="boolean"||o.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:t}),o}}),Cr=g("$ZodBigInt",(t,r)=>{T.init(t,r),t._zod.pattern=fa,t._zod.parse=(o,i)=>{if(r.coerce)try{o.value=BigInt(o.value)}catch{}return typeof o.value=="bigint"||o.issues.push({expected:"bigint",code:"invalid_type",input:o.value,inst:t}),o}}),fs=g("$ZodBigIntFormat",(t,r)=>{$a.init(t,r),Cr.init(t,r)}),hs=g("$ZodSymbol",(t,r)=>{T.init(t,r),t._zod.parse=(o,i)=>{let n=o.value;return typeof n=="symbol"||o.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:t}),o}}),vs=g("$ZodUndefined",(t,r)=>{T.init(t,r),t._zod.pattern=ya,t._zod.values=new Set([void 0]),t._zod.parse=(o,i)=>{let n=o.value;return typeof n>"u"||o.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:t}),o}}),bs=g("$ZodNull",(t,r)=>{T.init(t,r),t._zod.pattern=ba,t._zod.values=new Set([null]),t._zod.parse=(o,i)=>{let n=o.value;return n===null||o.issues.push({expected:"null",code:"invalid_type",input:n,inst:t}),o}}),ys=g("$ZodAny",(t,r)=>{T.init(t,r),t._zod.parse=o=>o}),_s=g("$ZodUnknown",(t,r)=>{T.init(t,r),t._zod.parse=o=>o}),xs=g("$ZodNever",(t,r)=>{T.init(t,r),t._zod.parse=(o,i)=>(o.issues.push({expected:"never",code:"invalid_type",input:o.value,inst:t}),o)}),Ss=g("$ZodVoid",(t,r)=>{T.init(t,r),t._zod.parse=(o,i)=>{let n=o.value;return typeof n>"u"||o.issues.push({expected:"void",code:"invalid_type",input:n,inst:t}),o}}),ks=g("$ZodDate",(t,r)=>{T.init(t,r),t._zod.parse=(o,i)=>{if(r.coerce)try{o.value=new Date(o.value)}catch{}let n=o.value,a=n instanceof Date;return a&&!Number.isNaN(n.getTime())||o.issues.push({expected:"date",code:"invalid_type",input:n,...a?{received:"Invalid Date"}:{},inst:t}),o}});function rp(t,r,o){t.issues.length&&r.issues.push(...Y(o,t.issues)),r.value[o]=t.value}var $s=g("$ZodArray",(t,r)=>{T.init(t,r),t._zod.parse=(o,i)=>{let n=o.value;if(!Array.isArray(n))return o.issues.push({expected:"array",code:"invalid_type",input:n,inst:t}),o;o.value=Array(n.length);let a=[];for(let s=0;s<n.length;s++){let c=n[s],u=r.element._zod.run({value:c,issues:[]},i);u instanceof Promise?a.push(u.then(d=>rp(d,o,s))):rp(u,o,s)}return a.length?Promise.all(a).then(()=>o):o}});function Or(t,r,o,i,n,a){let s=o in i;if(t.issues.length){if(n&&a&&!s)return;r.issues.push(...Y(o,t.issues))}if(!s&&!n){t.issues.length||r.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[o]});return}t.value===void 0?s&&(r.value[o]=void 0):r.value[o]=t.value}function yp(t){let r=Object.keys(t.shape);for(let i of r)if(!t.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);let o=Li(t.shape);return{...t,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(o)}}function _p(t,r,o,i,n,a){let s=[],c=n.keySet,u=n.catchall._zod,d=u.def.type,p=u.optin==="optional",v=u.optout==="optional";for(let f in r){if(f==="__proto__"||c.has(f))continue;if(d==="never"){s.push(f);continue}let l=u.run({value:r[f],issues:[]},i);l instanceof Promise?t.push(l.then(m=>Or(m,o,f,r,p,v))):Or(l,o,f,r,p,v)}return s.length&&o.issues.push({code:"unrecognized_keys",keys:s,input:r,inst:a}),t.length?Promise.all(t).then(()=>o):o}var xp=g("$ZodObject",(t,r)=>{if(T.init(t,r),!Object.getOwnPropertyDescriptor(r,"shape")?.get){let c=r.shape;Object.defineProperty(r,"shape",{get:()=>{let u={...c};return Object.defineProperty(r,"shape",{value:u}),u}})}let i=vt(()=>yp(r));R(t._zod,"propValues",()=>{let c=r.shape,u={};for(let d in c){let p=c[d]._zod;if(p.values){u[d]??(u[d]=new Set);for(let v of p.values)u[d].add(v)}}return u});let n=rt,a=r.catchall,s;t._zod.parse=(c,u)=>{s??(s=i.value);let d=c.value;if(!n(d))return c.issues.push({expected:"object",code:"invalid_type",input:d,inst:t}),c;c.value={};let p=[],v=s.shape;for(let f of s.keys){let l=v[f],m=l._zod.optin==="optional",b=l._zod.optout==="optional",y=l._zod.run({value:d[f],issues:[]},u);y instanceof Promise?p.push(y.then($=>Or($,c,f,d,m,b))):Or(y,c,f,d,m,b)}return a?_p(p,d,c,u,i.value,t):p.length?Promise.all(p).then(()=>c):c}}),Is=g("$ZodObjectJIT",(t,r)=>{xp.init(t,r);let o=t._zod.parse,i=vt(()=>yp(r)),n=f=>{let l=new En(["shape","payload","ctx"]),m=i.value,b=E=>{let z=gr(E);return`shape[${z}]._zod.run({ value: input[${z}], issues: [] }, ctx)`};l.write("const input = payload.value;");let y=Object.create(null),$=0;for(let E of m.keys)y[E]=`key_${$++}`;l.write("const newResult = {};");for(let E of m.keys){let z=y[E],L=gr(E),je=f[E],Ti=je?._zod?.optin==="optional",fn=je?._zod?.optout==="optional";l.write(`const ${z} = ${b(E)};`),Ti&&fn?l.write(`
6
+ if (${z}.issues.length) {
7
+ if (${L} in input) {
8
+ payload.issues = payload.issues.concat(${z}.issues.map(iss => ({
9
+ ...iss,
10
+ path: iss.path ? [${L}, ...iss.path] : [${L}]
11
+ })));
12
+ }
13
+ }
14
+
15
+ if (${z}.value === undefined) {
16
+ if (${L} in input) {
17
+ newResult[${L}] = undefined;
18
+ }
19
+ } else {
20
+ newResult[${L}] = ${z}.value;
21
+ }
22
+
23
+ `):Ti?l.write(`
24
+ if (${z}.issues.length) {
25
+ payload.issues = payload.issues.concat(${z}.issues.map(iss => ({
26
+ ...iss,
27
+ path: iss.path ? [${L}, ...iss.path] : [${L}]
28
+ })));
29
+ }
30
+
31
+ if (${z}.value === undefined) {
32
+ if (${L} in input) {
33
+ newResult[${L}] = undefined;
34
+ }
35
+ } else {
36
+ newResult[${L}] = ${z}.value;
37
+ }
38
+
39
+ `):l.write(`
40
+ const ${z}_present = ${L} in input;
41
+ if (${z}.issues.length) {
42
+ payload.issues = payload.issues.concat(${z}.issues.map(iss => ({
43
+ ...iss,
44
+ path: iss.path ? [${L}, ...iss.path] : [${L}]
45
+ })));
46
+ }
47
+ if (!${z}_present && !${z}.issues.length) {
48
+ payload.issues.push({
49
+ code: "invalid_type",
50
+ expected: "nonoptional",
51
+ input: undefined,
52
+ path: [${L}]
53
+ });
54
+ }
55
+
56
+ if (${z}_present) {
57
+ if (${z}.value === undefined) {
58
+ newResult[${L}] = undefined;
59
+ } else {
60
+ newResult[${L}] = ${z}.value;
61
+ }
62
+ }
63
+
64
+ `)}l.write("payload.value = newResult;"),l.write("return payload;");let I=l.compile();return(E,z)=>I(f,E,z)},a,s=rt,c=!nt.jitless,d=c&&Ui.value,p=r.catchall,v;t._zod.parse=(f,l)=>{v??(v=i.value);let m=f.value;return s(m)?c&&d&&l?.async===!1&&l.jitless!==!0?(a||(a=n(r.shape)),f=a(f,l),p?_p([],m,f,l,v,t):f):o(f,l):(f.issues.push({expected:"object",code:"invalid_type",input:m,inst:t}),f)}});function op(t,r,o,i){for(let a of t)if(a.issues.length===0)return r.value=a.value,r;let n=t.filter(a=>!Ne(a));return n.length===1?(r.value=n[0].value,n[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:o,errors:t.map(a=>a.issues.map(s=>J(s,i,M())))}),r)}var Rn=g("$ZodUnion",(t,r)=>{T.init(t,r),R(t._zod,"optin",()=>r.options.some(i=>i._zod.optin==="optional")?"optional":void 0),R(t._zod,"optout",()=>r.options.some(i=>i._zod.optout==="optional")?"optional":void 0),R(t._zod,"values",()=>{if(r.options.every(i=>i._zod.values))return new Set(r.options.flatMap(i=>Array.from(i._zod.values)))}),R(t._zod,"pattern",()=>{if(r.options.every(i=>i._zod.pattern)){let i=r.options.map(n=>n._zod.pattern);return new RegExp(`^(${i.map(n=>yn(n.source)).join("|")})$`)}});let o=r.options.length===1?r.options[0]._zod.run:null;t._zod.parse=(i,n)=>{if(o)return o(i,n);let a=!1,s=[];for(let c of r.options){let u=c._zod.run({value:i.value,issues:[]},n);if(u instanceof Promise)s.push(u),a=!0;else{if(u.issues.length===0)return u;s.push(u)}}return a?Promise.all(s).then(c=>op(c,i,t,n)):op(s,i,t,n)}});function ip(t,r,o,i){let n=t.filter(a=>a.issues.length===0);return n.length===1?(r.value=n[0].value,r):(n.length===0?r.issues.push({code:"invalid_union",input:r.value,inst:o,errors:t.map(a=>a.issues.map(s=>J(s,i,M())))}):r.issues.push({code:"invalid_union",input:r.value,inst:o,errors:[],inclusive:!1}),r)}var ws=g("$ZodXor",(t,r)=>{Rn.init(t,r),r.inclusive=!1;let o=r.options.length===1?r.options[0]._zod.run:null;t._zod.parse=(i,n)=>{if(o)return o(i,n);let a=!1,s=[];for(let c of r.options){let u=c._zod.run({value:i.value,issues:[]},n);u instanceof Promise?(s.push(u),a=!0):s.push(u)}return a?Promise.all(s).then(c=>ip(c,i,t,n)):ip(s,i,t,n)}}),Ts=g("$ZodDiscriminatedUnion",(t,r)=>{r.inclusive=!1,Rn.init(t,r);let o=t._zod.parse;R(t._zod,"propValues",()=>{let n={};for(let a of r.options){let s=a._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(a)}"`);for(let[c,u]of Object.entries(s)){n[c]||(n[c]=new Set);for(let d of u)n[c].add(d)}}return n});let i=vt(()=>{let n=r.options,a=new Map;for(let s of n){let c=s._zod.propValues?.[r.discriminator];if(!c||c.size===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(s)}"`);for(let u of c){if(a.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);a.set(u,s)}}return a});t._zod.parse=(n,a)=>{let s=n.value;if(!rt(s))return n.issues.push({code:"invalid_type",expected:"object",input:s,inst:t}),n;let c=i.value.get(s?.[r.discriminator]);return c?c._zod.run(n,a):r.unionFallback||a.direction==="backward"?o(n,a):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:r.discriminator,options:Array.from(i.value.keys()),input:s,path:[r.discriminator],inst:t}),n)}}),Es=g("$ZodIntersection",(t,r)=>{T.init(t,r),t._zod.parse=(o,i)=>{let n=o.value,a=r.left._zod.run({value:n,issues:[]},i),s=r.right._zod.run({value:n,issues:[]},i);return a instanceof Promise||s instanceof Promise?Promise.all([a,s]).then(([u,d])=>ap(o,u,d)):ap(o,a,s)}});function Ba(t,r){if(t===r)return{valid:!0,data:t};if(t instanceof Date&&r instanceof Date&&+t==+r)return{valid:!0,data:t};if(Ue(t)&&Ue(r)){let o=Object.keys(r),i=Object.keys(t).filter(a=>o.indexOf(a)!==-1),n={...t,...r};for(let a of i){let s=Ba(t[a],r[a]);if(!s.valid)return{valid:!1,mergeErrorPath:[a,...s.mergeErrorPath]};n[a]=s.data}return{valid:!0,data:n}}if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return{valid:!1,mergeErrorPath:[]};let o=[];for(let i=0;i<t.length;i++){let n=t[i],a=r[i],s=Ba(n,a);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};o.push(s.data)}return{valid:!0,data:o}}return{valid:!1,mergeErrorPath:[]}}function ap(t,r,o){let i=new Map,n;for(let c of r.issues)if(c.code==="unrecognized_keys"){n??(n=c);for(let u of c.keys)i.has(u)||i.set(u,{}),i.get(u).l=!0}else t.issues.push(c);for(let c of o.issues)if(c.code==="unrecognized_keys")for(let u of c.keys)i.has(u)||i.set(u,{}),i.get(u).r=!0;else t.issues.push(c);let a=[...i].filter(([,c])=>c.l&&c.r).map(([c])=>c);if(a.length&&n&&t.issues.push({...n,keys:a}),Ne(t))return t;let s=Ba(r.value,o.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return t.value=s.data,t}var Ur=g("$ZodTuple",(t,r)=>{T.init(t,r);let o=r.items;t._zod.parse=(i,n)=>{let a=i.value;if(!Array.isArray(a))return i.issues.push({input:a,inst:t,expected:"tuple",code:"invalid_type"}),i;i.value=[];let s=[],c=sp(o,"optin"),u=sp(o,"optout");if(!r.rest){if(a.length<c)return i.issues.push({code:"too_small",minimum:c,inclusive:!0,input:a,inst:t,origin:"array"}),i;a.length>o.length&&i.issues.push({code:"too_big",maximum:o.length,inclusive:!0,input:a,inst:t,origin:"array"})}let d=new Array(o.length);for(let p=0;p<o.length;p++){let v=o[p]._zod.run({value:a[p],issues:[]},n);v instanceof Promise?s.push(v.then(f=>{d[p]=f})):d[p]=v}if(r.rest){let p=o.length-1,v=a.slice(o.length);for(let f of v){p++;let l=r.rest._zod.run({value:f,issues:[]},n);l instanceof Promise?s.push(l.then(m=>cp(m,i,p))):cp(l,i,p)}}return s.length?Promise.all(s).then(()=>lp(d,i,o,a,u)):lp(d,i,o,a,u)}});function sp(t,r){for(let o=t.length-1;o>=0;o--)if(t[o]._zod[r]!=="optional")return o+1;return 0}function cp(t,r,o){t.issues.length&&r.issues.push(...Y(o,t.issues)),r.value[o]=t.value}function lp(t,r,o,i,n){for(let a=0;a<o.length;a++){let s=t[a],c=a<i.length;if(s.issues.length){if(!c&&a>=n){r.value.length=a;break}r.issues.push(...Y(a,s.issues))}r.value[a]=s.value}for(let a=r.value.length-1;a>=i.length&&(o[a]._zod.optout==="optional"&&r.value[a]===void 0);a--)r.value.length=a;return r}var As=g("$ZodRecord",(t,r)=>{T.init(t,r),t._zod.parse=(o,i)=>{let n=o.value;if(!Ue(n))return o.issues.push({expected:"record",code:"invalid_type",input:n,inst:t}),o;let a=[],s=r.keyType._zod.values;if(s){o.value={};let c=new Set;for(let d of s)if(typeof d=="string"||typeof d=="number"||typeof d=="symbol"){c.add(typeof d=="number"?d.toString():d);let p=r.keyType._zod.run({value:d,issues:[]},i);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(p.issues.length){o.issues.push({code:"invalid_key",origin:"record",issues:p.issues.map(l=>J(l,i,M())),input:d,path:[d],inst:t});continue}let v=p.value,f=r.valueType._zod.run({value:n[d],issues:[]},i);f instanceof Promise?a.push(f.then(l=>{l.issues.length&&o.issues.push(...Y(d,l.issues)),o.value[v]=l.value})):(f.issues.length&&o.issues.push(...Y(d,f.issues)),o.value[v]=f.value)}let u;for(let d in n)c.has(d)||(u=u??[],u.push(d));u&&u.length>0&&o.issues.push({code:"unrecognized_keys",input:n,inst:t,keys:u})}else{o.value={};for(let c of Reflect.ownKeys(n)){if(c==="__proto__"||!Object.prototype.propertyIsEnumerable.call(n,c))continue;let u=r.keyType._zod.run({value:c,issues:[]},i);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof c=="string"&&Tr.test(c)&&u.issues.length){let v=r.keyType._zod.run({value:Number(c),issues:[]},i);if(v instanceof Promise)throw new Error("Async schemas not supported in object keys currently");v.issues.length===0&&(u=v)}if(u.issues.length){r.mode==="loose"?o.value[c]=n[c]:o.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(v=>J(v,i,M())),input:c,path:[c],inst:t});continue}let p=r.valueType._zod.run({value:n[c],issues:[]},i);p instanceof Promise?a.push(p.then(v=>{v.issues.length&&o.issues.push(...Y(c,v.issues)),o.value[u.value]=v.value})):(p.issues.length&&o.issues.push(...Y(c,p.issues)),o.value[u.value]=p.value)}}return a.length?Promise.all(a).then(()=>o):o}}),Rs=g("$ZodMap",(t,r)=>{T.init(t,r),t._zod.parse=(o,i)=>{let n=o.value;if(!(n instanceof Map))return o.issues.push({expected:"map",code:"invalid_type",input:n,inst:t}),o;let a=[];o.value=new Map;for(let[s,c]of n){let u=r.keyType._zod.run({value:s,issues:[]},i),d=r.valueType._zod.run({value:c,issues:[]},i);u instanceof Promise||d instanceof Promise?a.push(Promise.all([u,d]).then(([p,v])=>{up(p,v,o,s,n,t,i)})):up(u,d,o,s,n,t,i)}return a.length?Promise.all(a).then(()=>o):o}});function up(t,r,o,i,n,a,s){t.issues.length&&(_n.has(typeof i)?o.issues.push(...Y(i,t.issues)):o.issues.push({code:"invalid_key",origin:"map",input:n,inst:a,issues:t.issues.map(c=>J(c,s,M()))})),r.issues.length&&(_n.has(typeof i)?o.issues.push(...Y(i,r.issues)):o.issues.push({origin:"map",code:"invalid_element",input:n,inst:a,key:i,issues:r.issues.map(c=>J(c,s,M()))})),o.value.set(t.value,r.value)}var Ps=g("$ZodSet",(t,r)=>{T.init(t,r),t._zod.parse=(o,i)=>{let n=o.value;if(!(n instanceof Set))return o.issues.push({input:n,inst:t,expected:"set",code:"invalid_type"}),o;let a=[];o.value=new Set;for(let s of n){let c=r.valueType._zod.run({value:s,issues:[]},i);c instanceof Promise?a.push(c.then(u=>dp(u,o))):dp(c,o)}return a.length?Promise.all(a).then(()=>o):o}});function dp(t,r){t.issues.length&&r.issues.push(...t.issues),r.value.add(t.value)}var js=g("$ZodEnum",(t,r)=>{T.init(t,r);let o=bn(r.entries),i=new Set(o);t._zod.values=i,t._zod.pattern=new RegExp(`^(${o.filter(n=>_n.has(typeof n)).map(n=>typeof n=="string"?oe(n):n.toString()).join("|")})$`),t._zod.parse=(n,a)=>{let s=n.value;return i.has(s)||n.issues.push({code:"invalid_value",values:o,input:s,inst:t}),n}}),Os=g("$ZodLiteral",(t,r)=>{if(T.init(t,r),r.values.length===0)throw new Error("Cannot create literal schema with no valid values");let o=new Set(r.values);t._zod.values=o,t._zod.pattern=new RegExp(`^(${r.values.map(i=>typeof i=="string"?oe(i):i?oe(i.toString()):String(i)).join("|")})$`),t._zod.parse=(i,n)=>{let a=i.value;return o.has(a)||i.issues.push({code:"invalid_value",values:r.values,input:a,inst:t}),i}}),zs=g("$ZodFile",(t,r)=>{T.init(t,r),t._zod.parse=(o,i)=>{let n=o.value;return n instanceof File||o.issues.push({expected:"file",code:"invalid_type",input:n,inst:t}),o}}),Cs=g("$ZodTransform",(t,r)=>{T.init(t,r),t._zod.optin="optional",t._zod.parse=(o,i)=>{if(i.direction==="backward")throw new Oe(t.constructor.name);let n=r.transform(o.value,o);if(i.async)return(n instanceof Promise?n:Promise.resolve(n)).then(s=>(o.value=s,o.fallback=!0,o));if(n instanceof Promise)throw new ae;return o.value=n,o.fallback=!0,o}});function pp(t,r){return r===void 0&&(t.issues.length||t.fallback)?{issues:[],value:void 0}:t}var Nr=g("$ZodOptional",(t,r)=>{T.init(t,r),t._zod.optin="optional",t._zod.optout="optional",R(t._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),R(t._zod,"pattern",()=>{let o=r.innerType._zod.pattern;return o?new RegExp(`^(${yn(o.source)})?$`):void 0}),t._zod.parse=(o,i)=>{if(r.innerType._zod.optin==="optional"){let n=o.value,a=r.innerType._zod.run(o,i);return a instanceof Promise?a.then(s=>pp(s,n)):pp(a,n)}return o.value===void 0?o:r.innerType._zod.run(o,i)}}),Us=g("$ZodExactOptional",(t,r)=>{Nr.init(t,r),R(t._zod,"values",()=>r.innerType._zod.values),R(t._zod,"pattern",()=>r.innerType._zod.pattern),t._zod.parse=(o,i)=>r.innerType._zod.run(o,i)}),Ns=g("$ZodNullable",(t,r)=>{T.init(t,r),R(t._zod,"optin",()=>r.innerType._zod.optin),R(t._zod,"optout",()=>r.innerType._zod.optout),R(t._zod,"pattern",()=>{let o=r.innerType._zod.pattern;return o?new RegExp(`^(${yn(o.source)}|null)$`):void 0}),R(t._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),t._zod.parse=(o,i)=>o.value===null?o:r.innerType._zod.run(o,i)}),Ds=g("$ZodDefault",(t,r)=>{T.init(t,r),t._zod.optin="optional",R(t._zod,"values",()=>r.innerType._zod.values),t._zod.parse=(o,i)=>{if(i.direction==="backward")return r.innerType._zod.run(o,i);if(o.value===void 0)return o.value=r.defaultValue,o;let n=r.innerType._zod.run(o,i);return n instanceof Promise?n.then(a=>mp(a,r)):mp(n,r)}});function mp(t,r){return t.value===void 0&&(t.value=r.defaultValue),t}var Ls=g("$ZodPrefault",(t,r)=>{T.init(t,r),t._zod.optin="optional",R(t._zod,"values",()=>r.innerType._zod.values),t._zod.parse=(o,i)=>(i.direction==="backward"||o.value===void 0&&(o.value=r.defaultValue),r.innerType._zod.run(o,i))}),Ms=g("$ZodNonOptional",(t,r)=>{T.init(t,r),R(t._zod,"values",()=>{let o=r.innerType._zod.values;return o?new Set([...o].filter(i=>i!==void 0)):void 0}),t._zod.parse=(o,i)=>{let n=r.innerType._zod.run(o,i);return n instanceof Promise?n.then(a=>gp(a,t)):gp(n,t)}});function gp(t,r){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:r}),t}var Bs=g("$ZodSuccess",(t,r)=>{T.init(t,r),t._zod.parse=(o,i)=>{if(i.direction==="backward")throw new Oe("ZodSuccess");let n=r.innerType._zod.run(o,i);return n instanceof Promise?n.then(a=>(o.value=a.issues.length===0,o)):(o.value=n.issues.length===0,o)}}),Zs=g("$ZodCatch",(t,r)=>{T.init(t,r),t._zod.optin="optional",R(t._zod,"optout",()=>r.innerType._zod.optout),R(t._zod,"values",()=>r.innerType._zod.values),t._zod.parse=(o,i)=>{if(i.direction==="backward")return r.innerType._zod.run(o,i);let n=r.innerType._zod.run(o,i);return n instanceof Promise?n.then(a=>(o.value=a.value,a.issues.length&&(o.value=r.catchValue({...o,error:{issues:a.issues.map(s=>J(s,i,M()))},input:o.value}),o.issues=[],o.fallback=!0),o)):(o.value=n.value,n.issues.length&&(o.value=r.catchValue({...o,error:{issues:n.issues.map(a=>J(a,i,M()))},input:o.value}),o.issues=[],o.fallback=!0),o)}}),Fs=g("$ZodNaN",(t,r)=>{T.init(t,r),t._zod.parse=(o,i)=>((typeof o.value!="number"||!Number.isNaN(o.value))&&o.issues.push({input:o.value,inst:t,expected:"nan",code:"invalid_type"}),o)}),Dr=g("$ZodPipe",(t,r)=>{T.init(t,r),R(t._zod,"values",()=>r.in._zod.values),R(t._zod,"optin",()=>r.in._zod.optin),R(t._zod,"optout",()=>r.out._zod.optout),R(t._zod,"propValues",()=>r.in._zod.propValues),t._zod.parse=(o,i)=>{if(i.direction==="backward"){let a=r.out._zod.run(o,i);return a instanceof Promise?a.then(s=>Rr(s,r.in,i)):Rr(a,r.in,i)}let n=r.in._zod.run(o,i);return n instanceof Promise?n.then(a=>Rr(a,r.out,i)):Rr(n,r.out,i)}});function Rr(t,r,o){return t.issues.length?(t.aborted=!0,t):r._zod.run({value:t.value,issues:t.issues,fallback:t.fallback},o)}var Pn=g("$ZodCodec",(t,r)=>{T.init(t,r),R(t._zod,"values",()=>r.in._zod.values),R(t._zod,"optin",()=>r.in._zod.optin),R(t._zod,"optout",()=>r.out._zod.optout),R(t._zod,"propValues",()=>r.in._zod.propValues),t._zod.parse=(o,i)=>{if((i.direction||"forward")==="forward"){let a=r.in._zod.run(o,i);return a instanceof Promise?a.then(s=>Pr(s,r,i)):Pr(a,r,i)}else{let a=r.out._zod.run(o,i);return a instanceof Promise?a.then(s=>Pr(s,r,i)):Pr(a,r,i)}}});function Pr(t,r,o){if(t.issues.length)return t.aborted=!0,t;if((o.direction||"forward")==="forward"){let n=r.transform(t.value,t);return n instanceof Promise?n.then(a=>jr(t,a,r.out,o)):jr(t,n,r.out,o)}else{let n=r.reverseTransform(t.value,t);return n instanceof Promise?n.then(a=>jr(t,a,r.in,o)):jr(t,n,r.in,o)}}function jr(t,r,o,i){return t.issues.length?(t.aborted=!0,t):o._zod.run({value:r,issues:t.issues},i)}var Ws=g("$ZodPreprocess",(t,r)=>{Dr.init(t,r)}),Gs=g("$ZodReadonly",(t,r)=>{T.init(t,r),R(t._zod,"propValues",()=>r.innerType._zod.propValues),R(t._zod,"values",()=>r.innerType._zod.values),R(t._zod,"optin",()=>r.innerType?._zod?.optin),R(t._zod,"optout",()=>r.innerType?._zod?.optout),t._zod.parse=(o,i)=>{if(i.direction==="backward")return r.innerType._zod.run(o,i);let n=r.innerType._zod.run(o,i);return n instanceof Promise?n.then(fp):fp(n)}});function fp(t){return t.value=Object.freeze(t.value),t}var Ks=g("$ZodTemplateLiteral",(t,r)=>{T.init(t,r);let o=[];for(let i of r.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);let n=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${i._zod.traits}`);let a=n.startsWith("^")?1:0,s=n.endsWith("$")?n.length-1:n.length;o.push(n.slice(a,s))}else if(i===null||Di.has(typeof i))o.push(oe(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);t._zod.pattern=new RegExp(`^${o.join("")}$`),t._zod.parse=(i,n)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:t,expected:"string",code:"invalid_type"}),i):(t._zod.pattern.lastIndex=0,t._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:t,code:"invalid_format",format:r.format??"template_literal",pattern:t._zod.pattern.source}),i)}),Vs=g("$ZodFunction",(t,r)=>(T.init(t,r),t._def=r,t._zod.def=r,t.implement=o=>{if(typeof o!="function")throw new Error("implement() must be called with a function");return function(...i){let n=t._def.input?hr(t._def.input,i):i,a=Reflect.apply(o,this,n);return t._def.output?hr(t._def.output,a):a}},t.implementAsync=o=>{if(typeof o!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){let n=t._def.input?await vr(t._def.input,i):i,a=await Reflect.apply(o,this,n);return t._def.output?await vr(t._def.output,a):a}},t._zod.parse=(o,i)=>typeof o.value!="function"?(o.issues.push({code:"invalid_type",expected:"function",input:o.value,inst:t}),o):(t._def.output&&t._def.output._zod.def.type==="promise"?o.value=t.implementAsync(o.value):o.value=t.implement(o.value),o),t.input=(...o)=>{let i=t.constructor;return Array.isArray(o[0])?new i({type:"function",input:new Ur({type:"tuple",items:o[0],rest:o[1]}),output:t._def.output}):new i({type:"function",input:o[0],output:t._def.output})},t.output=o=>{let i=t.constructor;return new i({type:"function",input:t._def.input,output:o})},t)),Hs=g("$ZodPromise",(t,r)=>{T.init(t,r),t._zod.parse=(o,i)=>Promise.resolve(o.value).then(n=>r.innerType._zod.run({value:n,issues:[]},i))}),Js=g("$ZodLazy",(t,r)=>{T.init(t,r),R(t._zod,"innerType",()=>{let o=r;return o._cachedInner||(o._cachedInner=r.getter()),o._cachedInner}),R(t._zod,"pattern",()=>t._zod.innerType?._zod?.pattern),R(t._zod,"propValues",()=>t._zod.innerType?._zod?.propValues),R(t._zod,"optin",()=>t._zod.innerType?._zod?.optin??void 0),R(t._zod,"optout",()=>t._zod.innerType?._zod?.optout??void 0),t._zod.parse=(o,i)=>t._zod.innerType._zod.run(o,i)}),Xs=g("$ZodCustom",(t,r)=>{N.init(t,r),T.init(t,r),t._zod.parse=(o,i)=>o,t._zod.check=o=>{let i=o.value,n=r.fn(i);if(n instanceof Promise)return n.then(a=>hp(a,o,i,t));hp(n,o,i,t)}});function hp(t,r,o,i){if(!t){let n={code:"custom",input:o,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(n.params=i._zod.def.params),r.issues.push(bt(n))}}var On={};we(On,{ar:()=>Sp,az:()=>kp,be:()=>Ip,bg:()=>wp,ca:()=>Tp,cs:()=>Ep,da:()=>Ap,de:()=>Rp,el:()=>Pp,en:()=>Lr,eo:()=>jp,es:()=>Op,fa:()=>zp,fi:()=>Cp,fr:()=>Up,frCA:()=>Np,he:()=>Dp,hr:()=>Lp,hu:()=>Mp,hy:()=>Zp,id:()=>Fp,is:()=>Wp,it:()=>Gp,ja:()=>Kp,ka:()=>Vp,kh:()=>Hp,km:()=>Mr,ko:()=>Jp,lt:()=>qp,mk:()=>Yp,ms:()=>Qp,nl:()=>em,no:()=>tm,ota:()=>nm,pl:()=>om,ps:()=>rm,pt:()=>im,ro:()=>am,ru:()=>cm,sl:()=>lm,sv:()=>um,ta:()=>dm,th:()=>pm,tr:()=>mm,ua:()=>gm,uk:()=>Br,ur:()=>fm,uz:()=>hm,vi:()=>vm,yo:()=>_m,zhCN:()=>bm,zhTW:()=>ym});var Wb=()=>{let t={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function r(n){return t[n]??null}let o={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${n.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${c}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${a}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${c}`}case"invalid_value":return n.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${_(n.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${a} ${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${a} ${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${a} ${n.minimum.toString()} ${s.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${a} ${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${n.prefix}"`:a.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${a.suffix}"`:a.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${a.includes}"`:a.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${a.pattern}`:`${o[a.format]??n.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${h(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function Sp(){return{localeError:Wb()}}var Gb=()=>{let t={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function r(n){return t[n]??null}let o={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",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${c}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${a}, daxil olan ${c}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${_(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${a}${n.maximum.toString()} ${s.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${a}${n.minimum.toString()} ${s.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${a.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:a.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${a.suffix}" il\u0259 bitm\u0259lidir`:a.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${a.includes}" daxil olmal\u0131d\u0131r`:a.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${a.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${o[a.format]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${h(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function kp(){return{localeError:Gb()}}function $p(t,r,o,i){let n=Math.abs(t),a=n%10,s=n%100;return s>=11&&s<=19?i:a===1?r:a>=2&&a<=4?o:i}var Kb=()=>{let t={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function r(n){return t[n]??null}let o={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},i={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${c}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${a}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${c}`}case"invalid_value":return n.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${_(n.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);if(s){let c=Number(n.maximum),u=$p(c,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${a}${n.maximum.toString()} ${u}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);if(s){let c=Number(n.minimum),u=$p(c,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${a}${n.minimum.toString()} ${u}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${a.prefix}"`:a.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${a.suffix}"`:a.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${a.includes}"`:a.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${a.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${o[a.format]??n.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${h(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function Ip(){return{localeError:Kb()}}var Vb=()=>{let t={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function r(n){return t[n]??null}let o={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${c}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${a}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${c}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${_(n.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${a}${n.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${a}${n.minimum.toString()} ${s.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;if(a.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${a.prefix}"`;if(a.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${a.suffix}"`;if(a.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${a.includes}"`;if(a.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${a.pattern}`;let s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return a.format==="emoji"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),a.format==="datetime"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),a.format==="date"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),a.format==="time"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),a.format==="duration"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${s} ${o[a.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${h(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function wp(){return{localeError:Vb()}}var Hb=()=>{let t={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function r(n){return t[n]??null}let o={regex:"entrada",email:"adre\xE7a electr\xF2nica",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:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${c}`:`Tipus inv\xE0lid: s'esperava ${a}, s'ha rebut ${c}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${_(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${h(n.values," o ")}`;case"too_big":{let a=n.inclusive?"com a m\xE0xim":"menys de",s=r(n.origin);return s?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${a} ${n.maximum.toString()} ${s.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${a} ${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?"com a m\xEDnim":"m\xE9s de",s=r(n.origin);return s?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${a} ${n.minimum.toString()} ${s.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${a} ${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${a.prefix}"`:a.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${a.suffix}"`:a.format==="includes"?`Format inv\xE0lid: ha d'incloure "${a.includes}"`:a.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${a.pattern}`:`Format inv\xE0lid per a ${o[a.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${h(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}};function Tp(){return{localeError:Hb()}}var Jb=()=>{let t={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function r(n){return t[n]??null}let o={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",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:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${c}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${a}, obdr\u017Eeno ${c}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${_(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${a}${n.maximum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${a}${n.minimum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${a.prefix}"`:a.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${a.suffix}"`:a.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${a.includes}"`:a.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${a.pattern}`:`Neplatn\xFD form\xE1t ${o[a.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${h(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}};function Ep(){return{localeError:Jb()}}var Xb=()=>{let t={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function r(n){return t[n]??null}let o={regex:"input",email:"e-mailadresse",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 dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${c}`:`Ugyldigt input: forventede ${a}, fik ${c}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${_(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin),c=i[n.origin]??n.origin;return s?`For stor: forventede ${c??"value"} ${s.verb} ${a} ${n.maximum.toString()} ${s.unit??"elementer"}`:`For stor: forventede ${c??"value"} havde ${a} ${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin),c=i[n.origin]??n.origin;return s?`For lille: forventede ${c} ${s.verb} ${a} ${n.minimum.toString()} ${s.unit}`:`For lille: forventede ${c} havde ${a} ${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Ugyldig streng: skal starte med "${a.prefix}"`:a.format==="ends_with"?`Ugyldig streng: skal ende med "${a.suffix}"`:a.format==="includes"?`Ugyldig streng: skal indeholde "${a.includes}"`:a.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${a.pattern}`:`Ugyldig ${o[a.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${h(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${n.origin}`;default:return"Ugyldigt input"}}};function Ap(){return{localeError:Xb()}}var qb=()=>{let t={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function r(n){return t[n]??null}let o={regex:"Eingabe",email:"E-Mail-Adresse",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-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},i={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${c}`:`Ung\xFCltige Eingabe: erwartet ${a}, erhalten ${c}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${_(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${a}${n.maximum.toString()} ${s.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${a}${n.maximum.toString()} ist`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`Zu klein: erwartet, dass ${n.origin} ${a}${n.minimum.toString()} ${s.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${a}${n.minimum.toString()} ist`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Ung\xFCltiger String: muss mit "${a.prefix}" beginnen`:a.format==="ends_with"?`Ung\xFCltiger String: muss mit "${a.suffix}" enden`:a.format==="includes"?`Ung\xFCltiger String: muss "${a.includes}" enthalten`:a.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${a.pattern} entsprechen`:`Ung\xFCltig: ${o[a.format]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${h(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}};function Rp(){return{localeError:qb()}}var Yb=()=>{let t={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function r(n){return t[n]??null}let o={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",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 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return typeof n.expected=="string"&&/^[A-Z]/.test(n.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${n.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${c}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${a}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${c}`}case"invalid_value":return n.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${_(n.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${a}${n.maximum.toString()} ${s.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${a}${n.minimum.toString()} ${s.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${a.prefix}"`:a.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${a.suffix}"`:a.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${a.includes}"`:a.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${a.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${o[a.format]??n.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${n.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${n.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${n.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${h(n.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${n.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${n.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function Pp(){return{localeError:Yb()}}var Qb=()=>{let t={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 r(n){return t[n]??null}let o={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",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return`Invalid input: expected ${a}, received ${c}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${_(n.values[0])}`:`Invalid option: expected one of ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`Too big: expected ${n.origin??"value"} to have ${a}${n.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`Too small: expected ${n.origin} to have ${a}${n.minimum.toString()} ${s.unit}`:`Too small: expected ${n.origin} to be ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Invalid string: must start with "${a.prefix}"`:a.format==="ends_with"?`Invalid string: must end with "${a.suffix}"`:a.format==="includes"?`Invalid string: must include "${a.includes}"`:a.format==="regex"?`Invalid string: must match pattern ${a.pattern}`:`Invalid ${o[a.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${h(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`Invalid discriminator value. Expected ${n.options.map(s=>`'${s}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function Lr(){return{localeError:Qb()}}var ey=()=>{let t={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function r(n){return t[n]??null}let o={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${c}`:`Nevalida enigo: atendi\u011Dis ${a}, ricevi\u011Dis ${c}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${_(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${a}${n.maximum.toString()} ${s.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${a}${n.minimum.toString()} ${s.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${a.prefix}"`:a.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${a.suffix}"`:a.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${a.includes}"`:a.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${a.pattern}`:`Nevalida ${o[a.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${h(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}};function jp(){return{localeError:ey()}}var ty=()=>{let t={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function r(n){return t[n]??null}let o={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",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:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${c}`:`Entrada inv\xE1lida: se esperaba ${a}, recibido ${c}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${_(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin),c=i[n.origin]??n.origin;return s?`Demasiado grande: se esperaba que ${c??"valor"} tuviera ${a}${n.maximum.toString()} ${s.unit??"elementos"}`:`Demasiado grande: se esperaba que ${c??"valor"} fuera ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin),c=i[n.origin]??n.origin;return s?`Demasiado peque\xF1o: se esperaba que ${c} tuviera ${a}${n.minimum.toString()} ${s.unit}`:`Demasiado peque\xF1o: se esperaba que ${c} fuera ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${a.prefix}"`:a.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${a.suffix}"`:a.format==="includes"?`Cadena inv\xE1lida: debe incluir "${a.includes}"`:a.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${a.pattern}`:`Inv\xE1lido ${o[a.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${h(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${i[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${i[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}};function Op(){return{localeError:ty()}}var ny=()=>{let t={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function r(n){return t[n]??null}let o={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${c} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${a} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${c} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${_(n.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${h(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${a}${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${a}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${a}${n.minimum.toString()} ${s.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${a}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${a.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:a.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${a.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:a.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${a.includes}" \u0628\u0627\u0634\u062F`:a.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${a.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${o[a.format]??n.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${h(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function zp(){return{localeError:ny()}}var ry=()=>{let t={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function r(n){return t[n]??null}let o={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${c}`:`Virheellinen tyyppi: odotettiin ${a}, oli ${c}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${_(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`Liian suuri: ${s.subject} t\xE4ytyy olla ${a}${n.maximum.toString()} ${s.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`Liian pieni: ${s.subject} t\xE4ytyy olla ${a}${n.minimum.toString()} ${s.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${a.prefix}"`:a.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${a.suffix}"`:a.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${a.includes}"`:a.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${a.pattern}`:`Virheellinen ${o[a.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${h(n.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function Cp(){return{localeError:ry()}}var oy=()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(n){return t[n]??null}let o={regex:"entr\xE9e",email:"adresse e-mail",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:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={string:"cha\xEEne",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${c} re\xE7u`:`Entr\xE9e invalide : ${a} attendu, ${c} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${_(n.values[0])} attendu`:`Option invalide : une valeur parmi ${h(n.values,"|")} attendue`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`Trop grand : ${i[n.origin]??"valeur"} doit ${s.verb} ${a}${n.maximum.toString()} ${s.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${i[n.origin]??"valeur"} doit \xEAtre ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`Trop petit : ${i[n.origin]??"valeur"} doit ${s.verb} ${a}${n.minimum.toString()} ${s.unit}`:`Trop petit : ${i[n.origin]??"valeur"} doit \xEAtre ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Cha\xEEne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${a.pattern}`:`${o[a.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${h(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function Up(){return{localeError:oy()}}var iy=()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(n){return t[n]??null}let o={regex:"entr\xE9e",email:"adresse courriel",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:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${c}`:`Entr\xE9e invalide : attendu ${a}, re\xE7u ${c}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${_(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"\u2264":"<",s=r(n.origin);return s?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${a}${n.maximum.toString()} ${s.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?"\u2265":">",s=r(n.origin);return s?`Trop petit : attendu que ${n.origin} ait ${a}${n.minimum.toString()} ${s.unit}`:`Trop petit : attendu que ${n.origin} soit ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Cha\xEEne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${a.pattern}`:`${o[a.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${h(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function Np(){return{localeError:iy()}}var ay=()=>{let t={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},r={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},o=d=>d?t[d]:void 0,i=d=>{let p=o(d);return p?p.label:d??t.unknown.label},n=d=>`\u05D4${i(d)}`,a=d=>(o(d)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",s=d=>d?r[d]??null:null,c={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},u={nan:"NaN"};return d=>{switch(d.code){case"invalid_type":{let p=d.expected,v=u[p??""]??i(p),f=x(d.input),l=u[f]??t[f]?.label??f;return/^[A-Z]/.test(d.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${d.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${l}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${v}, \u05D4\u05EA\u05E7\u05D1\u05DC ${l}`}case"invalid_value":{if(d.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${_(d.values[0])}`;let p=d.values.map(l=>_(l));if(d.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${p[0]} \u05D0\u05D5 ${p[1]}`;let v=p[p.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${p.slice(0,-1).join(", ")} \u05D0\u05D5 ${v}`}case"too_big":{let p=s(d.origin),v=n(d.origin??"value");if(d.origin==="string")return`${p?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${v} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${d.maximum.toString()} ${p?.unit??""} ${d.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(d.origin==="number"){let m=d.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${d.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${d.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${v} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}`}if(d.origin==="array"||d.origin==="set"){let m=d.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",b=d.inclusive?`${d.maximum} ${p?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${d.maximum} ${p?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${v} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${b}`.trim()}let f=d.inclusive?"<=":"<",l=a(d.origin??"value");return p?.unit?`${p.longLabel} \u05DE\u05D3\u05D9: ${v} ${l} ${f}${d.maximum.toString()} ${p.unit}`:`${p?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${v} ${l} ${f}${d.maximum.toString()}`}case"too_small":{let p=s(d.origin),v=n(d.origin??"value");if(d.origin==="string")return`${p?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${v} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${d.minimum.toString()} ${p?.unit??""} ${d.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(d.origin==="number"){let m=d.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${d.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${d.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${v} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}`}if(d.origin==="array"||d.origin==="set"){let m=d.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(d.minimum===1&&d.inclusive){let y=(d.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${v} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${y}`}let b=d.inclusive?`${d.minimum} ${p?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${d.minimum} ${p?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${v} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${b}`.trim()}let f=d.inclusive?">=":">",l=a(d.origin??"value");return p?.unit?`${p.shortLabel} \u05DE\u05D3\u05D9: ${v} ${l} ${f}${d.minimum.toString()} ${p.unit}`:`${p?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${v} ${l} ${f}${d.minimum.toString()}`}case"invalid_format":{let p=d;if(p.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${p.prefix}"`;if(p.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${p.suffix}"`;if(p.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${p.includes}"`;if(p.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${p.pattern}`;let v=c[p.format],f=v?.label??p.format,m=(v?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${f} \u05DC\u05D0 ${m}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${d.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${d.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${d.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${h(d.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${n(d.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function Dp(){return{localeError:ay()}}var sy=()=>{let t={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function r(n){return t[n]??null}let o={regex:"unos",email:"email adresa",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 datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},i={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${n.expected}, a primljeno je ${c}`:`Neispravan unos: o\u010Dekuje se ${a}, a primljeno je ${c}`}case"invalid_value":return n.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${_(n.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin),c=i[n.origin]??n.origin;return s?`Preveliko: o\u010Dekivano da ${c??"vrijednost"} ima ${a}${n.maximum.toString()} ${s.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${c??"vrijednost"} bude ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin),c=i[n.origin]??n.origin;return s?`Premalo: o\u010Dekivano da ${c} ima ${a}${n.minimum.toString()} ${s.unit}`:`Premalo: o\u010Dekivano da ${c} bude ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${a.prefix}"`:a.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${a.suffix}"`:a.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${a.includes}"`:a.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${a.pattern}`:`Neispravna ${o[a.format]??n.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${n.divisor}`;case"unrecognized_keys":return`Neprepoznat${n.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${h(n.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${i[n.origin]??n.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${i[n.origin]??n.origin}`;default:return"Neispravan unos"}}};function Lp(){return{localeError:sy()}}var cy=()=>{let t={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function r(n){return t[n]??null}let o={regex:"bemenet",email:"email c\xEDm",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 id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},i={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${c}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${a}, a kapott \xE9rt\xE9k ${c}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${_(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${a}${n.maximum.toString()} ${s.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${a}${n.minimum.toString()} ${s.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\xC9rv\xE9nytelen string: "${a.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:a.format==="ends_with"?`\xC9rv\xE9nytelen string: "${a.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:a.format==="includes"?`\xC9rv\xE9nytelen string: "${a.includes}" \xE9rt\xE9ket kell tartalmaznia`:a.format==="regex"?`\xC9rv\xE9nytelen string: ${a.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${o[a.format]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${h(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function Mp(){return{localeError:cy()}}function Bp(t,r,o){return Math.abs(t)===1?r:o}function $t(t){if(!t)return"";let r=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],o=t[t.length-1];return t+(r.includes(o)?"\u0576":"\u0568")}var ly=()=>{let t={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function r(n){return t[n]??null}let o={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},i={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${n.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${c}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${a}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${c}`}case"invalid_value":return n.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${_(n.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);if(s){let c=Number(n.maximum),u=Bp(c,s.unit.one,s.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${$t(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${a}${n.maximum.toString()} ${u}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${$t(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);if(s){let c=Number(n.minimum),u=Bp(c,s.unit.one,s.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${$t(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${a}${n.minimum.toString()} ${u}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${$t(n.origin)} \u056C\u056B\u0576\u056B ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${a.prefix}"-\u0578\u057E`:a.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${a.suffix}"-\u0578\u057E`:a.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${a.includes}"`:a.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${a.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${o[a.format]??n.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${n.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${h(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${$t(n.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${$t(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function Zp(){return{localeError:ly()}}var uy=()=>{let t={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function r(n){return t[n]??null}let o={regex:"input",email:"alamat email",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:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${c}`:`Input tidak valid: diharapkan ${a}, diterima ${c}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${_(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${a}${n.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`Terlalu kecil: diharapkan ${n.origin} memiliki ${a}${n.minimum.toString()} ${s.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`String tidak valid: harus dimulai dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak valid: harus berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak valid: harus menyertakan "${a.includes}"`:a.format==="regex"?`String tidak valid: harus sesuai pola ${a.pattern}`:`${o[a.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${h(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}};function Fp(){return{localeError:uy()}}var dy=()=>{let t={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function r(n){return t[n]??null}let o={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},i={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${c} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${c} \xFEar sem \xE1 a\xF0 vera ${a}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${_(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${a}${n.maximum.toString()} ${s.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${a}${n.minimum.toString()} ${s.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${a.prefix}"`:a.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${a.suffix}"`:a.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${a.includes}"`:a.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${a.pattern}`:`Rangt ${o[a.format]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${h(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}};function Wp(){return{localeError:dy()}}var py=()=>{let t={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function r(n){return t[n]??null}let o={regex:"input",email:"indirizzo email",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:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${c}`:`Input non valido: atteso ${a}, ricevuto ${c}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${_(n.values[0])}`:`Opzione non valida: atteso uno tra ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`Troppo grande: ${n.origin??"valore"} deve avere ${a}${n.maximum.toString()} ${s.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`Troppo piccolo: ${n.origin} deve avere ${a}${n.minimum.toString()} ${s.unit}`:`Troppo piccolo: ${n.origin} deve essere ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Stringa non valida: deve iniziare con "${a.prefix}"`:a.format==="ends_with"?`Stringa non valida: deve terminare con "${a.suffix}"`:a.format==="includes"?`Stringa non valida: deve includere "${a.includes}"`:a.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${a.pattern}`:`Input non valido: ${o[a.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${h(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}};function Gp(){return{localeError:py()}}var my=()=>{let t={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function r(n){return t[n]??null}let o={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},i={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${c}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${a}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${c}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${_(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${h(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let a=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",s=r(n.origin);return s?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${s.unit??"\u8981\u7D20"}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let a=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",s=r(n.origin);return s?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${s.unit}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${a.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:a.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${a.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:a.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${a.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:a.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${a.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${o[a.format]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${n.keys.length>1?"\u7FA4":""}: ${h(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function Kp(){return{localeError:my()}}var gy=()=>{let t={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function r(n){return t[n]??null}let o={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},i={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${n.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${c}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${a}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${c}`}case"invalid_value":return n.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${_(n.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${h(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${s.verb} ${a}${n.maximum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} ${s.verb} ${a}${n.minimum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${a.prefix}"-\u10D8\u10D7`:a.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${a.suffix}"-\u10D8\u10D7`:a.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${a.includes}"-\u10E1`:a.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${a.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${o[a.format]??n.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${n.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${h(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function Vp(){return{localeError:gy()}}var fy=()=>{let t={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function r(n){return t[n]??null}let o={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},i={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${n.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${c}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${a} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${c}`}case"invalid_value":return n.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${_(n.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${a} ${n.maximum.toString()} ${s.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${a} ${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${a} ${n.minimum.toString()} ${s.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${a} ${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${a.prefix}"`:a.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${a.suffix}"`:a.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${a.includes}"`:a.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${a.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${o[a.format]??n.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${h(n.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function Mr(){return{localeError:fy()}}function Hp(){return Mr()}var hy=()=>{let t={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function r(n){return t[n]??null}let o={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${c}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${a}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${c}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${_(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${h(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let a=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",s=a==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",c=r(n.origin),u=c?.unit??"\uC694\uC18C";return c?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${u} ${a}${s}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${a}${s}`}case"too_small":{let a=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",s=a==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",c=r(n.origin),u=c?.unit??"\uC694\uC18C";return c?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${u} ${a}${s}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${a}${s}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${a.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:a.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${a.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:a.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${a.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:a.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${a.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${o[a.format]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${h(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function Jp(){return{localeError:hy()}}var jn=t=>t.charAt(0).toUpperCase()+t.slice(1);function Xp(t){let r=Math.abs(t),o=r%10,i=r%100;return i>=11&&i<=19||o===0?"many":o===1?"one":"few"}var vy=()=>{let t={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function r(n,a,s,c){let u=t[n]??null;return u===null?u:{unit:u.unit[a],verb:u.verb[c][s?"inclusive":"notInclusive"]}}let o={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},i={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${c}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${c}, o tik\u0117tasi - ${a}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${_(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${h(n.values,"|")} pasirinkim\u0173`;case"too_big":{let a=i[n.origin]??n.origin,s=r(n.origin,Xp(Number(n.maximum)),n.inclusive??!1,"smaller");if(s?.verb)return`${jn(a??n.origin??"reik\u0161m\u0117")} ${s.verb} ${n.maximum.toString()} ${s.unit??"element\u0173"}`;let c=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${jn(a??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${c} ${n.maximum.toString()} ${s?.unit}`}case"too_small":{let a=i[n.origin]??n.origin,s=r(n.origin,Xp(Number(n.minimum)),n.inclusive??!1,"bigger");if(s?.verb)return`${jn(a??n.origin??"reik\u0161m\u0117")} ${s.verb} ${n.minimum.toString()} ${s.unit??"element\u0173"}`;let c=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${jn(a??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${c} ${n.minimum.toString()} ${s?.unit}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${a.prefix}"`:a.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${a.suffix}"`:a.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${a.includes}"`:a.format==="regex"?`Eilut\u0117 privalo atitikti ${a.pattern}`:`Neteisingas ${o[a.format]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${h(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let a=i[n.origin]??n.origin;return`${jn(a??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function qp(){return{localeError:vy()}}var by=()=>{let t={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function r(n){return t[n]??null}let o={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},i={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${c}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${a}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${c}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${_(n.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${a}${n.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${a}${n.minimum.toString()} ${s.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${a.prefix}"`:a.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${a.suffix}"`:a.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${a.includes}"`:a.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${a.pattern}`:`Invalid ${o[a.format]??n.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${h(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function Yp(){return{localeError:by()}}var yy=()=>{let t={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function r(n){return t[n]??null}let o={regex:"input",email:"alamat e-mel",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:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${c}`:`Input tidak sah: dijangka ${a}, diterima ${c}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${_(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`Terlalu besar: dijangka ${n.origin??"nilai"} ${s.verb} ${a}${n.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`Terlalu kecil: dijangka ${n.origin} ${s.verb} ${a}${n.minimum.toString()} ${s.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`String tidak sah: mesti bermula dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak sah: mesti mengandungi "${a.includes}"`:a.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${a.pattern}`:`${o[a.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${h(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}};function Qp(){return{localeError:yy()}}var _y=()=>{let t={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function r(n){return t[n]??null}let o={regex:"invoer",email:"emailadres",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 datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},i={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${c}`:`Ongeldige invoer: verwacht ${a}, ontving ${c}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${_(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin),c=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return s?`Te ${c}: verwacht dat ${n.origin??"waarde"} ${a}${n.maximum.toString()} ${s.unit??"elementen"} ${s.verb}`:`Te ${c}: verwacht dat ${n.origin??"waarde"} ${a}${n.maximum.toString()} is`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin),c=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return s?`Te ${c}: verwacht dat ${n.origin} ${a}${n.minimum.toString()} ${s.unit} ${s.verb}`:`Te ${c}: verwacht dat ${n.origin} ${a}${n.minimum.toString()} is`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Ongeldige tekst: moet met "${a.prefix}" beginnen`:a.format==="ends_with"?`Ongeldige tekst: moet op "${a.suffix}" eindigen`:a.format==="includes"?`Ongeldige tekst: moet "${a.includes}" bevatten`:a.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${a.pattern}`:`Ongeldig: ${o[a.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${h(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}};function em(){return{localeError:_y()}}var xy=()=>{let t={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function r(n){return t[n]??null}let o={regex:"input",email:"e-postadresse",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 dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${c}`:`Ugyldig input: forventet ${a}, fikk ${c}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${_(n.values[0])}`:`Ugyldig valg: forventet en av ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${a}${n.maximum.toString()} ${s.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`For lite(n): forventet ${n.origin} til \xE5 ha ${a}${n.minimum.toString()} ${s.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${a.prefix}"`:a.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${a.suffix}"`:a.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${a.includes}"`:a.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${a.pattern}`:`Ugyldig ${o[a.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${h(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function tm(){return{localeError:xy()}}var Sy=()=>{let t={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function r(n){return t[n]??null}let o={regex:"giren",email:"epostag\xE2h",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 heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${c}`:`F\xE2sit giren: umulan ${a}, al\u0131nan ${c}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${_(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${a}${n.maximum.toString()} ${s.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${a}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${a}${n.minimum.toString()} ${s.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${a}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let a=n;return a.format==="starts_with"?`F\xE2sit metin: "${a.prefix}" ile ba\u015Flamal\u0131.`:a.format==="ends_with"?`F\xE2sit metin: "${a.suffix}" ile bitmeli.`:a.format==="includes"?`F\xE2sit metin: "${a.includes}" ihtiv\xE2 etmeli.`:a.format==="regex"?`F\xE2sit metin: ${a.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${o[a.format]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${h(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function nm(){return{localeError:Sy()}}var ky=()=>{let t={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function r(n){return t[n]??null}let o={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${c} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${a} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${c} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${_(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${h(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${a}${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${a}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${a}${n.minimum.toString()} ${s.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${a}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${a.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:a.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${a.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:a.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${a.includes}" \u0648\u0644\u0631\u064A`:a.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${a.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${o[a.format]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${h(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function rm(){return{localeError:ky()}}var $y=()=>{let t={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function r(n){return t[n]??null}let o={regex:"wyra\u017Cenie",email:"adres email",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:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},i={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${c}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${a}, otrzymano ${c}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${_(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${a}${n.maximum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${a}${n.minimum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${a.prefix}"`:a.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${a.suffix}"`:a.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${a.includes}"`:a.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${a.pattern}`:`Nieprawid\u0142ow(y/a/e) ${o[a.format]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${h(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function om(){return{localeError:$y()}}var Iy=()=>{let t={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function r(n){return t[n]??null}let o={regex:"padr\xE3o",email:"endere\xE7o de e-mail",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:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",number:"n\xFAmero",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${c}`:`Tipo inv\xE1lido: esperado ${a}, recebido ${c}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${_(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${a}${n.maximum.toString()} ${s.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`Muito pequeno: esperado que ${n.origin} tivesse ${a}${n.minimum.toString()} ${s.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${a.prefix}"`:a.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${a.suffix}"`:a.format==="includes"?`Texto inv\xE1lido: deve incluir "${a.includes}"`:a.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${a.pattern}`:`${o[a.format]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${h(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}};function im(){return{localeError:Iy()}}var wy=()=>{let t={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function r(n){return t[n]??null}let o={regex:"intrare",email:"adres\u0103 de email",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:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",jwt:"JWT",template_literal:"intrare"},i={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return`Intrare invalid\u0103: a\u0219teptat ${a}, primit ${c}`}case"invalid_value":return n.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${_(n.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} ${s.verb} ${a}${n.maximum.toString()} ${s.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} s\u0103 fie ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`Prea mic: a\u0219teptat ca ${n.origin} ${s.verb} ${a}${n.minimum.toString()} ${s.unit}`:`Prea mic: a\u0219teptat ca ${n.origin} s\u0103 fie ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${a.prefix}"`:a.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${a.suffix}"`:a.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${a.includes}"`:a.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${a.pattern}`:`Format invalid: ${o[a.format]??n.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${n.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${h(n.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${n.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${n.origin}`;default:return"Intrare invalid\u0103"}}};function am(){return{localeError:wy()}}function sm(t,r,o,i){let n=Math.abs(t),a=n%10,s=n%100;return s>=11&&s<=19?i:a===1?r:a>=2&&a<=4?o:i}var Ty=()=>{let t={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function r(n){return t[n]??null}let o={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${c}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${a}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${c}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${_(n.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);if(s){let c=Number(n.maximum),u=sm(c,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${a}${n.maximum.toString()} ${u}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);if(s){let c=Number(n.minimum),u=sm(c,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${a}${n.minimum.toString()} ${u}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${a.prefix}"`:a.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${a.suffix}"`:a.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${a.includes}"`:a.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${a.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${o[a.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${h(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function cm(){return{localeError:Ty()}}var Ey=()=>{let t={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function r(n){return t[n]??null}let o={regex:"vnos",email:"e-po\u0161tni naslov",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 datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},i={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${c}`:`Neveljaven vnos: pri\u010Dakovano ${a}, prejeto ${c}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${_(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${a}${n.maximum.toString()} ${s.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${a}${n.minimum.toString()} ${s.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${a.prefix}"`:a.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${a.suffix}"`:a.format==="includes"?`Neveljaven niz: mora vsebovati "${a.includes}"`:a.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${a.pattern}`:`Neveljaven ${o[a.format]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${h(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function lm(){return{localeError:Ey()}}var Ay=()=>{let t={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function r(n){return t[n]??null}let o={regex:"regulj\xE4rt uttryck",email:"e-postadress",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-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},i={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${c}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${a}, fick ${c}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${_(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${a}${n.maximum.toString()} ${s.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${a}${n.minimum.toString()} ${s.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${a.prefix}"`:a.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${a.suffix}"`:a.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${a.includes}"`:a.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${a.pattern}"`:`Ogiltig(t) ${o[a.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${h(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function um(){return{localeError:Ay()}}var Ry=()=>{let t={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function r(n){return t[n]??null}let o={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",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 \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${n.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${c}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${c}`}case"invalid_value":return n.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${_(n.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${h(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${a}${n.maximum.toString()} ${s.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${a}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${a}${n.minimum.toString()} ${s.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${a}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${a.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:a.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${a.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:a.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${a.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:a.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${a.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${o[a.format]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${h(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function dm(){return{localeError:Ry()}}var Py=()=>{let t={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function r(n){return t[n]??null}let o={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},i={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${n.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${c}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${a} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${c}`}case"invalid_value":return n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${_(n.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",s=r(n.origin);return s?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${a} ${n.maximum.toString()} ${s.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${a} ${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",s=r(n.origin);return s?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${a} ${n.minimum.toString()} ${s.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${a} ${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${a.prefix}"`:a.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${a.suffix}"`:a.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${a.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:a.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${a.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${o[a.format]??n.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${n.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${h(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function pm(){return{localeError:Py()}}var jy=()=>{let t={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function r(n){return t[n]??null}let o={regex:"girdi",email:"e-posta adresi",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 tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${c}`:`Ge\xE7ersiz de\u011Fer: beklenen ${a}, al\u0131nan ${c}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${_(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${a}${n.maximum.toString()} ${s.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${a}${n.minimum.toString()} ${s.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Ge\xE7ersiz metin: "${a.prefix}" ile ba\u015Flamal\u0131`:a.format==="ends_with"?`Ge\xE7ersiz metin: "${a.suffix}" ile bitmeli`:a.format==="includes"?`Ge\xE7ersiz metin: "${a.includes}" i\xE7ermeli`:a.format==="regex"?`Ge\xE7ersiz metin: ${a.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${o[a.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${h(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function mm(){return{localeError:jy()}}var Oy=()=>{let t={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function r(n){return t[n]??null}let o={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${n.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${c}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${a}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${c}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${_(n.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${s.verb} ${a}${n.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} ${s.verb} ${a}${n.minimum.toString()} ${s.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} \u0431\u0443\u0434\u0435 ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${a.prefix}"`:a.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${a.suffix}"`:a.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${a.includes}"`:a.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${a.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${o[a.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${h(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${n.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function Br(){return{localeError:Oy()}}function gm(){return Br()}var zy=()=>{let t={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function r(n){return t[n]??null}let o={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},i={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${c} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${a} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${c} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${_(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${h(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${a}${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${a}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${a}${n.minimum.toString()} ${s.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${a}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${a.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:a.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${a.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:a.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${a.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:a.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${a.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${o[a.format]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${n.keys.length>1?"\u0632":""}: ${h(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function fm(){return{localeError:zy()}}var Cy=()=>{let t={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function r(n){return t[n]??null}let o={regex:"kirish",email:"elektron pochta manzili",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 sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${c}`:`Noto\u2018g\u2018ri kirish: kutilgan ${a}, qabul qilingan ${c}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${_(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`Juda katta: kutilgan ${n.origin??"qiymat"} ${a}${n.maximum.toString()} ${s.unit} ${s.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`Juda kichik: kutilgan ${n.origin} ${a}${n.minimum.toString()} ${s.unit} ${s.verb}`:`Juda kichik: kutilgan ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${a.prefix}" bilan boshlanishi kerak`:a.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${a.suffix}" bilan tugashi kerak`:a.format==="includes"?`Noto\u2018g\u2018ri satr: "${a.includes}" ni o\u2018z ichiga olishi kerak`:a.format==="regex"?`Noto\u2018g\u2018ri satr: ${a.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${o[a.format]??n.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${h(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${n.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function hm(){return{localeError:Cy()}}var Uy=()=>{let t={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function r(n){return t[n]??null}let o={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",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:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},i={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${c}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${a}, nh\u1EADn \u0111\u01B0\u1EE3c ${c}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${_(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${s.verb} ${a}${n.maximum.toString()} ${s.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${s.verb} ${a}${n.minimum.toString()} ${s.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${a.prefix}"`:a.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${a.suffix}"`:a.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${a.includes}"`:a.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${a.pattern}`:`${o[a.format]??n.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${h(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function vm(){return{localeError:Uy()}}var Ny=()=>{let t={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function r(n){return t[n]??null}let o={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},i={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${c}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${a}\uFF0C\u5B9E\u9645\u63A5\u6536 ${c}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${_(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${a}${n.maximum.toString()} ${s.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${a}${n.minimum.toString()} ${s.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${a.prefix}" \u5F00\u5934`:a.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${a.suffix}" \u7ED3\u5C3E`:a.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${a.includes}"`:a.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${a.pattern}`:`\u65E0\u6548${o[a.format]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${h(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function bm(){return{localeError:Ny()}}var Dy=()=>{let t={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function r(n){return t[n]??null}let o={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",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 \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${c}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${a}\uFF0C\u4F46\u6536\u5230 ${c}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${_(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${a}${n.maximum.toString()} ${s.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${a}${n.minimum.toString()} ${s.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${a.prefix}" \u958B\u982D`:a.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${a.suffix}" \u7D50\u5C3E`:a.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${a.includes}"`:a.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${a.pattern}`:`\u7121\u6548\u7684 ${o[a.format]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${h(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function ym(){return{localeError:Dy()}}var Ly=()=>{let t={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function r(n){return t[n]??null}let o={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",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:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},i={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,s=x(n.input),c=i[s]??s;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.expected}, \xE0m\u1ECD\u0300 a r\xED ${c}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${a}, \xE0m\u1ECD\u0300 a r\xED ${c}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${_(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${h(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",s=r(n.origin);return s?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${s.verb} ${a}${n.maximum} ${s.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${a}${n.maximum}`}case"too_small":{let a=n.inclusive?">=":">",s=r(n.origin);return s?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${s.verb} ${a}${n.minimum} ${s.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${a}${n.minimum}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${a.prefix}"`:a.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${a.suffix}"`:a.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${a.includes}"`:a.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${a.pattern}`:`A\u1E63\xEC\u1E63e: ${o[a.format]??n.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${h(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function _m(){return{localeError:Ly()}}var xm,qs=Symbol("ZodOutput"),Ys=Symbol("ZodInput"),Zr=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(r,...o){let i=o[0];return this._map.set(r,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,r),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){let o=this._map.get(r);return o&&typeof o=="object"&&"id"in o&&this._idmap.delete(o.id),this._map.delete(r),this}get(r){let o=r._zod.parent;if(o){let i={...this.get(o)??{}};delete i.id;let n={...i,...this._map.get(r)};return Object.keys(n).length?n:void 0}return this._map.get(r)}has(r){return this._map.has(r)}};function Fr(){return new Zr}(xm=globalThis).__zod_globalRegistry??(xm.__zod_globalRegistry=Fr());var F=globalThis.__zod_globalRegistry;function Qs(t,r){return new t({type:"string",...k(r)})}function ec(t,r){return new t({type:"string",coerce:!0,...k(r)})}function Wr(t,r){return new t({type:"string",format:"email",check:"string_format",abort:!1,...k(r)})}function zn(t,r){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...k(r)})}function Gr(t,r){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...k(r)})}function Kr(t,r){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...k(r)})}function Vr(t,r){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...k(r)})}function Hr(t,r){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...k(r)})}function Cn(t,r){return new t({type:"string",format:"url",check:"string_format",abort:!1,...k(r)})}function Jr(t,r){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...k(r)})}function Xr(t,r){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...k(r)})}function qr(t,r){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...k(r)})}function Yr(t,r){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...k(r)})}function Qr(t,r){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...k(r)})}function eo(t,r){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...k(r)})}function to(t,r){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...k(r)})}function no(t,r){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...k(r)})}function ro(t,r){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...k(r)})}function tc(t,r){return new t({type:"string",format:"mac",check:"string_format",abort:!1,...k(r)})}function oo(t,r){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...k(r)})}function io(t,r){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...k(r)})}function ao(t,r){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...k(r)})}function so(t,r){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...k(r)})}function co(t,r){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...k(r)})}function lo(t,r){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...k(r)})}var nc={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function rc(t,r){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...k(r)})}function oc(t,r){return new t({type:"string",format:"date",check:"string_format",...k(r)})}function ic(t,r){return new t({type:"string",format:"time",check:"string_format",precision:null,...k(r)})}function ac(t,r){return new t({type:"string",format:"duration",check:"string_format",...k(r)})}function sc(t,r){return new t({type:"number",checks:[],...k(r)})}function cc(t,r){return new t({type:"number",coerce:!0,checks:[],...k(r)})}function lc(t,r){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...k(r)})}function uc(t,r){return new t({type:"number",check:"number_format",abort:!1,format:"float32",...k(r)})}function dc(t,r){return new t({type:"number",check:"number_format",abort:!1,format:"float64",...k(r)})}function pc(t,r){return new t({type:"number",check:"number_format",abort:!1,format:"int32",...k(r)})}function mc(t,r){return new t({type:"number",check:"number_format",abort:!1,format:"uint32",...k(r)})}function gc(t,r){return new t({type:"boolean",...k(r)})}function fc(t,r){return new t({type:"boolean",coerce:!0,...k(r)})}function hc(t,r){return new t({type:"bigint",...k(r)})}function vc(t,r){return new t({type:"bigint",coerce:!0,...k(r)})}function bc(t,r){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...k(r)})}function yc(t,r){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...k(r)})}function _c(t,r){return new t({type:"symbol",...k(r)})}function xc(t,r){return new t({type:"undefined",...k(r)})}function Sc(t,r){return new t({type:"null",...k(r)})}function kc(t){return new t({type:"any"})}function $c(t){return new t({type:"unknown"})}function Ic(t,r){return new t({type:"never",...k(r)})}function wc(t,r){return new t({type:"void",...k(r)})}function Tc(t,r){return new t({type:"date",...k(r)})}function Ec(t,r){return new t({type:"date",coerce:!0,...k(r)})}function Ac(t,r){return new t({type:"nan",...k(r)})}function me(t,r){return new Er({check:"less_than",...k(r),value:t,inclusive:!1})}function ne(t,r){return new Er({check:"less_than",...k(r),value:t,inclusive:!0})}function ge(t,r){return new Ar({check:"greater_than",...k(r),value:t,inclusive:!1})}function X(t,r){return new Ar({check:"greater_than",...k(r),value:t,inclusive:!0})}function uo(t){return ge(0,t)}function po(t){return me(0,t)}function mo(t){return ne(0,t)}function go(t){return X(0,t)}function De(t,r){return new Sa({check:"multiple_of",...k(r),value:t})}function Le(t,r){return new Ia({check:"max_size",...k(r),maximum:t})}function fe(t,r){return new wa({check:"min_size",...k(r),minimum:t})}function at(t,r){return new Ta({check:"size_equals",...k(r),size:t})}function st(t,r){return new Ea({check:"max_length",...k(r),maximum:t})}function Ee(t,r){return new Aa({check:"min_length",...k(r),minimum:t})}function ct(t,r){return new Ra({check:"length_equals",...k(r),length:t})}function It(t,r){return new Pa({check:"string_format",format:"regex",...k(r),pattern:t})}function wt(t){return new ja({check:"string_format",format:"lowercase",...k(t)})}function Tt(t){return new Oa({check:"string_format",format:"uppercase",...k(t)})}function Et(t,r){return new za({check:"string_format",format:"includes",...k(r),includes:t})}function At(t,r){return new Ca({check:"string_format",format:"starts_with",...k(r),prefix:t})}function Rt(t,r){return new Ua({check:"string_format",format:"ends_with",...k(r),suffix:t})}function fo(t,r,o){return new Na({check:"property",property:t,schema:r,...k(o)})}function Pt(t,r){return new Da({check:"mime_type",mime:t,...k(r)})}function se(t){return new La({check:"overwrite",tx:t})}function jt(t){return se(r=>r.normalize(t))}function Ot(){return se(t=>t.trim())}function zt(){return se(t=>t.toLowerCase())}function Ct(){return se(t=>t.toUpperCase())}function Ut(){return se(t=>Ci(t))}function Rc(t,r,o){return new t({type:"array",element:r,...k(o)})}function By(t,r,o){return new t({type:"union",options:r,...k(o)})}function Zy(t,r,o){return new t({type:"union",options:r,inclusive:!1,...k(o)})}function Fy(t,r,o,i){return new t({type:"union",options:o,discriminator:r,...k(i)})}function Wy(t,r,o){return new t({type:"intersection",left:r,right:o})}function Gy(t,r,o,i){let n=o instanceof T,a=n?i:o,s=n?o:null;return new t({type:"tuple",items:r,rest:s,...k(a)})}function Ky(t,r,o,i){return new t({type:"record",keyType:r,valueType:o,...k(i)})}function Vy(t,r,o,i){return new t({type:"map",keyType:r,valueType:o,...k(i)})}function Hy(t,r,o){return new t({type:"set",valueType:r,...k(o)})}function Jy(t,r,o){let i=Array.isArray(r)?Object.fromEntries(r.map(n=>[n,n])):r;return new t({type:"enum",entries:i,...k(o)})}function Xy(t,r,o){return new t({type:"enum",entries:r,...k(o)})}function qy(t,r,o){return new t({type:"literal",values:Array.isArray(r)?r:[r],...k(o)})}function Pc(t,r){return new t({type:"file",...k(r)})}function Yy(t,r){return new t({type:"transform",transform:r})}function Qy(t,r){return new t({type:"optional",innerType:r})}function e_(t,r){return new t({type:"nullable",innerType:r})}function t_(t,r,o){return new t({type:"default",innerType:r,get defaultValue(){return typeof o=="function"?o():Ni(o)}})}function n_(t,r,o){return new t({type:"nonoptional",innerType:r,...k(o)})}function r_(t,r){return new t({type:"success",innerType:r})}function o_(t,r,o){return new t({type:"catch",innerType:r,catchValue:typeof o=="function"?o:()=>o})}function i_(t,r,o){return new t({type:"pipe",in:r,out:o})}function a_(t,r){return new t({type:"readonly",innerType:r})}function s_(t,r,o){return new t({type:"template_literal",parts:r,...k(o)})}function c_(t,r){return new t({type:"lazy",getter:r})}function l_(t,r){return new t({type:"promise",innerType:r})}function jc(t,r,o){let i=k(o);return i.abort??(i.abort=!0),new t({type:"custom",check:"custom",fn:r,...i})}function Oc(t,r,o){return new t({type:"custom",check:"custom",fn:r,...k(o)})}function zc(t,r){let o=Sm(i=>(i.addIssue=n=>{if(typeof n=="string")i.issues.push(bt(n,i.value,o._zod.def));else{let a=n;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=i.value),a.inst??(a.inst=o),a.continue??(a.continue=!o._zod.def.abort),i.issues.push(bt(a))}},t(i.value,i)),r);return o}function Sm(t,r){let o=new N({check:"custom",...k(r)});return o._zod.check=t,o}function Cc(t){let r=new N({check:"describe"});return r._zod.onattach=[o=>{let i=F.get(o)??{};F.add(o,{...i,description:t})}],r._zod.check=()=>{},r}function Uc(t){let r=new N({check:"meta"});return r._zod.onattach=[o=>{let i=F.get(o)??{};F.add(o,{...i,...t})}],r._zod.check=()=>{},r}function Nc(t,r){let o=k(r),i=o.truthy??["true","1","yes","on","y","enabled"],n=o.falsy??["false","0","no","off","n","disabled"];o.case!=="sensitive"&&(i=i.map(l=>typeof l=="string"?l.toLowerCase():l),n=n.map(l=>typeof l=="string"?l.toLowerCase():l));let a=new Set(i),s=new Set(n),c=t.Codec??Pn,u=t.Boolean??An,d=t.String??it,p=new d({type:"string",error:o.error}),v=new u({type:"boolean",error:o.error}),f=new c({type:"pipe",in:p,out:v,transform:((l,m)=>{let b=l;return o.case!=="sensitive"&&(b=b.toLowerCase()),a.has(b)?!0:s.has(b)?!1:(m.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...s],input:m.value,inst:f,continue:!1}),{})}),reverseTransform:((l,m)=>l===!0?i[0]||"true":n[0]||"false"),error:o.error});return f}function Nt(t,r,o,i={}){let n=k(i),a={...k(i),check:"string_format",type:"string",format:r,fn:typeof o=="function"?o:c=>o.test(c),...n};return o instanceof RegExp&&(a.pattern=o),new t(a)}function Me(t){let r=t?.target??"draft-2020-12";return r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),{processors:t.processors??{},metadataRegistry:t?.metadata??F,target:r,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,cycles:t?.cycles??"ref",reused:t?.reused??"inline",external:t?.external??void 0}}function O(t,r,o={path:[],schemaPath:[]}){var i;let n=t._zod.def,a=r.seen.get(t);if(a)return a.count++,o.schemaPath.includes(t)&&(a.cycle=o.path),a.schema;let s={schema:{},count:1,cycle:void 0,path:o.path};r.seen.set(t,s);let c=t._zod.toJSONSchema?.();if(c)s.schema=c;else{let p={...o,schemaPath:[...o.schemaPath,t],path:o.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(r,s.schema,p);else{let f=s.schema,l=r.processors[n.type];if(!l)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);l(t,r,f,p)}let v=t._zod.parent;v&&(s.ref||(s.ref=v),O(v,r,p),r.seen.get(v).isParent=!0)}let u=r.metadataRegistry.get(t);return u&&Object.assign(s.schema,u),r.io==="input"&&q(t)&&(delete s.schema.examples,delete s.schema.default),r.io==="input"&&"_prefault"in s.schema&&((i=s.schema).default??(i.default=s.schema._prefault)),delete s.schema._prefault,r.seen.get(t).schema}function Be(t,r){let o=t.seen.get(r);if(!o)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=new Map;for(let s of t.seen.entries()){let c=t.metadataRegistry.get(s[0])?.id;if(c){let u=i.get(c);if(u&&u!==s[0])throw new Error(`Duplicate schema id "${c}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(c,s[0])}}let n=s=>{let c=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){let v=t.external.registry.get(s[0])?.id,f=t.external.uri??(m=>m);if(v)return{ref:f(v)};let l=s[1].defId??s[1].schema.id??`schema${t.counter++}`;return s[1].defId=l,{defId:l,ref:`${f("__shared")}#/${c}/${l}`}}if(s[1]===o)return{ref:"#"};let d=`#/${c}/`,p=s[1].schema.id??`__schema${t.counter++}`;return{defId:p,ref:d+p}},a=s=>{if(s[1].schema.$ref)return;let c=s[1],{ref:u,defId:d}=n(s);c.def={...c.schema},d&&(c.defId=d);let p=c.schema;for(let v in p)delete p[v];p.$ref=u};if(t.cycles==="throw")for(let s of t.seen.entries()){let c=s[1];if(c.cycle)throw new Error(`Cycle detected: #/${c.cycle?.join("/")}/<root>
65
+
66
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of t.seen.entries()){let c=s[1];if(r===s[0]){a(s);continue}if(t.external){let d=t.external.registry.get(s[0])?.id;if(r!==s[0]&&d){a(s);continue}}if(t.metadataRegistry.get(s[0])?.id){a(s);continue}if(c.cycle){a(s);continue}if(c.count>1&&t.reused==="ref"){a(s);continue}}}function Ze(t,r){let o=t.seen.get(r);if(!o)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=c=>{let u=t.seen.get(c);if(u.ref===null)return;let d=u.def??u.schema,p={...d},v=u.ref;if(u.ref=null,v){i(v);let l=t.seen.get(v),m=l.schema;if(m.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(d.allOf=d.allOf??[],d.allOf.push(m)):Object.assign(d,m),Object.assign(d,p),c._zod.parent===v)for(let y in d)y==="$ref"||y==="allOf"||y in p||delete d[y];if(m.$ref&&l.def)for(let y in d)y==="$ref"||y==="allOf"||y in l.def&&JSON.stringify(d[y])===JSON.stringify(l.def[y])&&delete d[y]}let f=c._zod.parent;if(f&&f!==v){i(f);let l=t.seen.get(f);if(l?.schema.$ref&&(d.$ref=l.schema.$ref,l.def))for(let m in d)m==="$ref"||m==="allOf"||m in l.def&&JSON.stringify(d[m])===JSON.stringify(l.def[m])&&delete d[m]}t.override({zodSchema:c,jsonSchema:d,path:u.path??[]})};for(let c of[...t.seen.entries()].reverse())i(c[0]);let n={};if(t.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){let c=t.external.registry.get(r)?.id;if(!c)throw new Error("Schema is missing an `id` property");n.$id=t.external.uri(c)}Object.assign(n,o.def??o.schema);let a=t.metadataRegistry.get(r)?.id;a!==void 0&&n.id===a&&delete n.id;let s=t.external?.defs??{};for(let c of t.seen.entries()){let u=c[1];u.def&&u.defId&&(u.def.id===u.defId&&delete u.def.id,s[u.defId]=u.def)}t.external||Object.keys(s).length>0&&(t.target==="draft-2020-12"?n.$defs=s:n.definitions=s);try{let c=JSON.parse(JSON.stringify(n));return Object.defineProperty(c,"~standard",{value:{...r["~standard"],jsonSchema:{input:Dt(r,"input",t.processors),output:Dt(r,"output",t.processors)}},enumerable:!1,writable:!1}),c}catch{throw new Error("Error converting schema to JSON.")}}function q(t,r){let o=r??{seen:new Set};if(o.seen.has(t))return!1;o.seen.add(t);let i=t._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return q(i.element,o);if(i.type==="set")return q(i.valueType,o);if(i.type==="lazy")return q(i.getter(),o);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return q(i.innerType,o);if(i.type==="intersection")return q(i.left,o)||q(i.right,o);if(i.type==="record"||i.type==="map")return q(i.keyType,o)||q(i.valueType,o);if(i.type==="pipe")return t._zod.traits.has("$ZodCodec")?!0:q(i.in,o)||q(i.out,o);if(i.type==="object"){for(let n in i.shape)if(q(i.shape[n],o))return!0;return!1}if(i.type==="union"){for(let n of i.options)if(q(n,o))return!0;return!1}if(i.type==="tuple"){for(let n of i.items)if(q(n,o))return!0;return!!(i.rest&&q(i.rest,o))}return!1}var Dc=(t,r={})=>o=>{let i=Me({...o,processors:r});return O(t,i),Be(i,t),Ze(i,t)},Dt=(t,r,o={})=>i=>{let{libraryOptions:n,target:a}=i??{},s=Me({...n??{},target:a,io:r,processors:o});return O(t,s),Be(s,t),Ze(s,t)};var u_={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Lc=(t,r,o,i)=>{let n=o;n.type="string";let{minimum:a,maximum:s,format:c,patterns:u,contentEncoding:d}=t._zod.bag;if(typeof a=="number"&&(n.minLength=a),typeof s=="number"&&(n.maxLength=s),c&&(n.format=u_[c]??c,n.format===""&&delete n.format,c==="time"&&delete n.format),d&&(n.contentEncoding=d),u&&u.size>0){let p=[...u];p.length===1?n.pattern=p[0].source:p.length>1&&(n.allOf=[...p.map(v=>({...r.target==="draft-07"||r.target==="draft-04"||r.target==="openapi-3.0"?{type:"string"}:{},pattern:v.source}))])}},Mc=(t,r,o,i)=>{let n=o,{minimum:a,maximum:s,format:c,multipleOf:u,exclusiveMaximum:d,exclusiveMinimum:p}=t._zod.bag;typeof c=="string"&&c.includes("int")?n.type="integer":n.type="number";let v=typeof p=="number"&&p>=(a??Number.NEGATIVE_INFINITY),f=typeof d=="number"&&d<=(s??Number.POSITIVE_INFINITY),l=r.target==="draft-04"||r.target==="openapi-3.0";v?l?(n.minimum=p,n.exclusiveMinimum=!0):n.exclusiveMinimum=p:typeof a=="number"&&(n.minimum=a),f?l?(n.maximum=d,n.exclusiveMaximum=!0):n.exclusiveMaximum=d:typeof s=="number"&&(n.maximum=s),typeof u=="number"&&(n.multipleOf=u)},Bc=(t,r,o,i)=>{o.type="boolean"},Zc=(t,r,o,i)=>{if(r.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Fc=(t,r,o,i)=>{if(r.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Wc=(t,r,o,i)=>{r.target==="openapi-3.0"?(o.type="string",o.nullable=!0,o.enum=[null]):o.type="null"},Gc=(t,r,o,i)=>{if(r.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Kc=(t,r,o,i)=>{if(r.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Vc=(t,r,o,i)=>{o.not={}},Hc=(t,r,o,i)=>{},Jc=(t,r,o,i)=>{},Xc=(t,r,o,i)=>{if(r.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},qc=(t,r,o,i)=>{let n=t._zod.def,a=bn(n.entries);a.every(s=>typeof s=="number")&&(o.type="number"),a.every(s=>typeof s=="string")&&(o.type="string"),o.enum=a},Yc=(t,r,o,i)=>{let n=t._zod.def,a=[];for(let s of n.values)if(s===void 0){if(r.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(r.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");a.push(Number(s))}else a.push(s);if(a.length!==0)if(a.length===1){let s=a[0];o.type=s===null?"null":typeof s,r.target==="draft-04"||r.target==="openapi-3.0"?o.enum=[s]:o.const=s}else a.every(s=>typeof s=="number")&&(o.type="number"),a.every(s=>typeof s=="string")&&(o.type="string"),a.every(s=>typeof s=="boolean")&&(o.type="boolean"),a.every(s=>s===null)&&(o.type="null"),o.enum=a},Qc=(t,r,o,i)=>{if(r.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},el=(t,r,o,i)=>{let n=o,a=t._zod.pattern;if(!a)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=a.source},tl=(t,r,o,i)=>{let n=o,a={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:c,mime:u}=t._zod.bag;s!==void 0&&(a.minLength=s),c!==void 0&&(a.maxLength=c),u?u.length===1?(a.contentMediaType=u[0],Object.assign(n,a)):(Object.assign(n,a),n.anyOf=u.map(d=>({contentMediaType:d}))):Object.assign(n,a)},nl=(t,r,o,i)=>{o.type="boolean"},rl=(t,r,o,i)=>{if(r.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},ol=(t,r,o,i)=>{if(r.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},il=(t,r,o,i)=>{if(r.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},al=(t,r,o,i)=>{if(r.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},sl=(t,r,o,i)=>{if(r.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},cl=(t,r,o,i)=>{let n=o,a=t._zod.def,{minimum:s,maximum:c}=t._zod.bag;typeof s=="number"&&(n.minItems=s),typeof c=="number"&&(n.maxItems=c),n.type="array",n.items=O(a.element,r,{...i,path:[...i.path,"items"]})},ll=(t,r,o,i)=>{let n=o,a=t._zod.def;n.type="object",n.properties={};let s=a.shape;for(let d in s)n.properties[d]=O(s[d],r,{...i,path:[...i.path,"properties",d]});let c=new Set(Object.keys(s)),u=new Set([...c].filter(d=>{let p=a.shape[d]._zod;return r.io==="input"?p.optin===void 0:p.optout===void 0}));u.size>0&&(n.required=Array.from(u)),a.catchall?._zod.def.type==="never"?n.additionalProperties=!1:a.catchall?a.catchall&&(n.additionalProperties=O(a.catchall,r,{...i,path:[...i.path,"additionalProperties"]})):r.io==="output"&&(n.additionalProperties=!1)},vo=(t,r,o,i)=>{let n=t._zod.def,a=n.inclusive===!1,s=n.options.map((c,u)=>O(c,r,{...i,path:[...i.path,a?"oneOf":"anyOf",u]}));a?o.oneOf=s:o.anyOf=s},ul=(t,r,o,i)=>{let n=t._zod.def,a=O(n.left,r,{...i,path:[...i.path,"allOf",0]}),s=O(n.right,r,{...i,path:[...i.path,"allOf",1]}),c=d=>"allOf"in d&&Object.keys(d).length===1,u=[...c(a)?a.allOf:[a],...c(s)?s.allOf:[s]];o.allOf=u},dl=(t,r,o,i)=>{let n=o,a=t._zod.def;n.type="array";let s=r.target==="draft-2020-12"?"prefixItems":"items",c=r.target==="draft-2020-12"||r.target==="openapi-3.0"?"items":"additionalItems",u=a.items.map((f,l)=>O(f,r,{...i,path:[...i.path,s,l]})),d=a.rest?O(a.rest,r,{...i,path:[...i.path,c,...r.target==="openapi-3.0"?[a.items.length]:[]]}):null;r.target==="draft-2020-12"?(n.prefixItems=u,d&&(n.items=d)):r.target==="openapi-3.0"?(n.items={anyOf:u},d&&n.items.anyOf.push(d),n.minItems=u.length,d||(n.maxItems=u.length)):(n.items=u,d&&(n.additionalItems=d));let{minimum:p,maximum:v}=t._zod.bag;typeof p=="number"&&(n.minItems=p),typeof v=="number"&&(n.maxItems=v)},pl=(t,r,o,i)=>{let n=o,a=t._zod.def;n.type="object";let s=a.keyType,u=s._zod.bag?.patterns;if(a.mode==="loose"&&u&&u.size>0){let p=O(a.valueType,r,{...i,path:[...i.path,"patternProperties","*"]});n.patternProperties={};for(let v of u)n.patternProperties[v.source]=p}else(r.target==="draft-07"||r.target==="draft-2020-12")&&(n.propertyNames=O(a.keyType,r,{...i,path:[...i.path,"propertyNames"]})),n.additionalProperties=O(a.valueType,r,{...i,path:[...i.path,"additionalProperties"]});let d=s._zod.values;if(d){let p=[...d].filter(v=>typeof v=="string"||typeof v=="number");p.length>0&&(n.required=p)}},ml=(t,r,o,i)=>{let n=t._zod.def,a=O(n.innerType,r,i),s=r.seen.get(t);r.target==="openapi-3.0"?(s.ref=n.innerType,o.nullable=!0):o.anyOf=[a,{type:"null"}]},gl=(t,r,o,i)=>{let n=t._zod.def;O(n.innerType,r,i);let a=r.seen.get(t);a.ref=n.innerType},fl=(t,r,o,i)=>{let n=t._zod.def;O(n.innerType,r,i);let a=r.seen.get(t);a.ref=n.innerType,o.default=JSON.parse(JSON.stringify(n.defaultValue))},hl=(t,r,o,i)=>{let n=t._zod.def;O(n.innerType,r,i);let a=r.seen.get(t);a.ref=n.innerType,r.io==="input"&&(o._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},vl=(t,r,o,i)=>{let n=t._zod.def;O(n.innerType,r,i);let a=r.seen.get(t);a.ref=n.innerType;let s;try{s=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}o.default=s},bl=(t,r,o,i)=>{let n=t._zod.def,a=n.in._zod.traits.has("$ZodTransform"),s=r.io==="input"?a?n.out:n.in:n.out;O(s,r,i);let c=r.seen.get(t);c.ref=s},yl=(t,r,o,i)=>{let n=t._zod.def;O(n.innerType,r,i);let a=r.seen.get(t);a.ref=n.innerType,o.readOnly=!0},_l=(t,r,o,i)=>{let n=t._zod.def;O(n.innerType,r,i);let a=r.seen.get(t);a.ref=n.innerType},bo=(t,r,o,i)=>{let n=t._zod.def;O(n.innerType,r,i);let a=r.seen.get(t);a.ref=n.innerType},xl=(t,r,o,i)=>{let n=t._zod.innerType;O(n,r,i);let a=r.seen.get(t);a.ref=n},ho={string:Lc,number:Mc,boolean:Bc,bigint:Zc,symbol:Fc,null:Wc,undefined:Gc,void:Kc,never:Vc,any:Hc,unknown:Jc,date:Xc,enum:qc,literal:Yc,nan:Qc,template_literal:el,file:tl,success:nl,custom:rl,function:ol,transform:il,map:al,set:sl,array:cl,object:ll,union:vo,intersection:ul,tuple:dl,record:pl,nullable:ml,nonoptional:gl,default:fl,prefault:hl,catch:vl,pipe:bl,readonly:yl,promise:_l,optional:bo,lazy:xl};function yo(t,r){if("_idmap"in t){let i=t,n=Me({...r,processors:ho}),a={};for(let u of i._idmap.entries()){let[d,p]=u;O(p,n)}let s={},c={registry:i,uri:r?.uri,defs:a};n.external=c;for(let u of i._idmap.entries()){let[d,p]=u;Be(n,p),s[d]=Ze(n,p)}if(Object.keys(a).length>0){let u=n.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[u]:a}}return{schemas:s}}let o=Me({...r,processors:ho});return O(t,o),Be(o,t),Ze(o,t)}var _o=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(r){this.ctx.counter=r}get seen(){return this.ctx.seen}constructor(r){let o=r?.target??"draft-2020-12";o==="draft-4"&&(o="draft-04"),o==="draft-7"&&(o="draft-07"),this.ctx=Me({processors:ho,target:o,...r?.metadata&&{metadata:r.metadata},...r?.unrepresentable&&{unrepresentable:r.unrepresentable},...r?.override&&{override:r.override},...r?.io&&{io:r.io}})}process(r,o={path:[],schemaPath:[]}){return O(r,this.ctx,o)}emit(r,o){o&&(o.cycles&&(this.ctx.cycles=o.cycles),o.reused&&(this.ctx.reused=o.reused),o.external&&(this.ctx.external=o.external)),Be(this.ctx,r);let i=Ze(this.ctx,r),{"~standard":n,...a}=i;return a}};var km={};var Un={};we(Un,{ZodAny:()=>Gl,ZodArray:()=>Jl,ZodBase64:()=>Bo,ZodBase64URL:()=>Zo,ZodBigInt:()=>Kt,ZodBigIntFormat:()=>Go,ZodBoolean:()=>Gt,ZodCIDRv4:()=>Lo,ZodCIDRv6:()=>Mo,ZodCUID:()=>jo,ZodCUID2:()=>Oo,ZodCatch:()=>vu,ZodCodec:()=>Hn,ZodCustom:()=>Jn,ZodCustomStringFormat:()=>Ft,ZodDate:()=>Fn,ZodDefault:()=>du,ZodDiscriminatedUnion:()=>ql,ZodE164:()=>Fo,ZodEmail:()=>Ao,ZodEmoji:()=>Ro,ZodEnum:()=>Bt,ZodExactOptional:()=>cu,ZodFile:()=>au,ZodFunction:()=>Tu,ZodGUID:()=>Dn,ZodIPv4:()=>No,ZodIPv6:()=>Do,ZodIntersection:()=>Yl,ZodJWT:()=>Wo,ZodKSUID:()=>Uo,ZodLazy:()=>$u,ZodLiteral:()=>iu,ZodMAC:()=>Dl,ZodMap:()=>ru,ZodNaN:()=>yu,ZodNanoID:()=>Po,ZodNever:()=>Vl,ZodNonOptional:()=>qo,ZodNull:()=>Fl,ZodNullable:()=>uu,ZodNumber:()=>Wt,ZodNumberFormat:()=>ut,ZodObject:()=>Gn,ZodOptional:()=>Xo,ZodPipe:()=>Vn,ZodPrefault:()=>mu,ZodPreprocess:()=>_u,ZodPromise:()=>wu,ZodReadonly:()=>xu,ZodRecord:()=>Mt,ZodSet:()=>ou,ZodString:()=>Zt,ZodStringFormat:()=>U,ZodSuccess:()=>hu,ZodSymbol:()=>Bl,ZodTemplateLiteral:()=>ku,ZodTransform:()=>su,ZodTuple:()=>eu,ZodType:()=>A,ZodULID:()=>zo,ZodURL:()=>Zn,ZodUUID:()=>he,ZodUndefined:()=>Zl,ZodUnion:()=>Kn,ZodUnknown:()=>Kl,ZodVoid:()=>Hl,ZodXID:()=>Co,ZodXor:()=>Xl,_ZodString:()=>Eo,_default:()=>pu,_function:()=>jg,any:()=>lg,array:()=>Wn,base64:()=>Km,base64url:()=>Vm,bigint:()=>og,boolean:()=>Ml,catch:()=>bu,check:()=>Og,cidrv4:()=>Wm,cidrv6:()=>Gm,codec:()=>Eg,cuid:()=>Um,cuid2:()=>Nm,custom:()=>zg,date:()=>dg,describe:()=>Cg,discriminatedUnion:()=>vg,e164:()=>Hm,email:()=>wm,emoji:()=>zm,enum:()=>Ho,exactOptional:()=>lu,file:()=>$g,float32:()=>eg,float64:()=>tg,function:()=>jg,guid:()=>Tm,hash:()=>Qm,hex:()=>Ym,hostname:()=>qm,httpUrl:()=>Om,instanceof:()=>Ng,int:()=>wo,int32:()=>ng,int64:()=>ig,intersection:()=>Ql,invertCodec:()=>Ag,ipv4:()=>Bm,ipv6:()=>Fm,json:()=>Lg,jwt:()=>Jm,keyof:()=>pg,ksuid:()=>Mm,lazy:()=>Iu,literal:()=>kg,looseObject:()=>fg,looseRecord:()=>yg,mac:()=>Zm,map:()=>_g,meta:()=>Ug,nan:()=>Tg,nanoid:()=>Cm,nativeEnum:()=>Sg,never:()=>Ko,nonoptional:()=>fu,null:()=>Wl,nullable:()=>Mn,nullish:()=>Ig,number:()=>Ll,object:()=>mg,optional:()=>Ln,partialRecord:()=>bg,pipe:()=>To,prefault:()=>gu,preprocess:()=>Mg,promise:()=>Pg,readonly:()=>Su,record:()=>nu,refine:()=>Eu,set:()=>xg,strictObject:()=>gg,string:()=>Nn,stringFormat:()=>Xm,stringbool:()=>Dg,success:()=>wg,superRefine:()=>Au,symbol:()=>sg,templateLiteral:()=>Rg,transform:()=>Jo,tuple:()=>tu,uint32:()=>rg,uint64:()=>ag,ulid:()=>Dm,undefined:()=>cg,union:()=>Vo,unknown:()=>lt,url:()=>jm,uuid:()=>Em,uuidv4:()=>Am,uuidv6:()=>Rm,uuidv7:()=>Pm,void:()=>ug,xid:()=>Lm,xor:()=>hg});var xo={};we(xo,{endsWith:()=>Rt,gt:()=>ge,gte:()=>X,includes:()=>Et,length:()=>ct,lowercase:()=>wt,lt:()=>me,lte:()=>ne,maxLength:()=>st,maxSize:()=>Le,mime:()=>Pt,minLength:()=>Ee,minSize:()=>fe,multipleOf:()=>De,negative:()=>po,nonnegative:()=>go,nonpositive:()=>mo,normalize:()=>jt,overwrite:()=>se,positive:()=>uo,property:()=>fo,regex:()=>It,size:()=>at,slugify:()=>Ut,startsWith:()=>At,toLowerCase:()=>zt,toUpperCase:()=>Ct,trim:()=>Ot,uppercase:()=>Tt});var Lt={};we(Lt,{ZodISODate:()=>ko,ZodISODateTime:()=>So,ZodISODuration:()=>Io,ZodISOTime:()=>$o,date:()=>kl,datetime:()=>Sl,duration:()=>Il,time:()=>$l});var So=g("ZodISODateTime",(t,r)=>{Qa.init(t,r),U.init(t,r)});function Sl(t){return rc(So,t)}var ko=g("ZodISODate",(t,r)=>{es.init(t,r),U.init(t,r)});function kl(t){return oc(ko,t)}var $o=g("ZodISOTime",(t,r)=>{ts.init(t,r),U.init(t,r)});function $l(t){return ic($o,t)}var Io=g("ZodISODuration",(t,r)=>{ns.init(t,r),U.init(t,r)});function Il(t){return ac(Io,t)}var $m=(t,r)=>{kn.init(t,r),t.name="ZodError",Object.defineProperties(t,{format:{value:o=>In(t,o)},flatten:{value:o=>$n(t,o)},addIssue:{value:o=>{t.issues.push(o),t.message=JSON.stringify(t.issues,ht,2)}},addIssues:{value:o=>{t.issues.push(...o),t.message=JSON.stringify(t.issues,ht,2)}},isEmpty:{get(){return t.issues.length===0}}})},p_=g("ZodError",$m),ee=g("ZodError",$m,{Parent:Error});var wl=yt(ee),Tl=_t(ee),El=xt(ee),Al=St(ee),Rl=br(ee),Pl=yr(ee),jl=_r(ee),Ol=xr(ee),zl=Sr(ee),Cl=kr(ee),Ul=$r(ee),Nl=Ir(ee);var Im=new WeakMap;function Bn(t,r,o){let i=Object.getPrototypeOf(t),n=Im.get(i);if(n||(n=new Set,Im.set(i,n)),!n.has(r)){n.add(r);for(let a in o){let s=o[a];Object.defineProperty(i,a,{configurable:!0,enumerable:!1,get(){let c=s.bind(this);return Object.defineProperty(this,a,{configurable:!0,writable:!0,enumerable:!0,value:c}),c},set(c){Object.defineProperty(this,a,{configurable:!0,writable:!0,enumerable:!0,value:c})}})}}}var A=g("ZodType",(t,r)=>(T.init(t,r),Object.assign(t["~standard"],{jsonSchema:{input:Dt(t,"input"),output:Dt(t,"output")}}),t.toJSONSchema=Dc(t,{}),t.def=r,t.type=r.type,Object.defineProperty(t,"_def",{value:r}),t.parse=(o,i)=>wl(t,o,i,{callee:t.parse}),t.safeParse=(o,i)=>El(t,o,i),t.parseAsync=async(o,i)=>Tl(t,o,i,{callee:t.parseAsync}),t.safeParseAsync=async(o,i)=>Al(t,o,i),t.spa=t.safeParseAsync,t.encode=(o,i)=>Rl(t,o,i),t.decode=(o,i)=>Pl(t,o,i),t.encodeAsync=async(o,i)=>jl(t,o,i),t.decodeAsync=async(o,i)=>Ol(t,o,i),t.safeEncode=(o,i)=>zl(t,o,i),t.safeDecode=(o,i)=>Cl(t,o,i),t.safeEncodeAsync=async(o,i)=>Ul(t,o,i),t.safeDecodeAsync=async(o,i)=>Nl(t,o,i),Bn(t,"ZodType",{check(...o){let i=this.def;return this.clone(S.mergeDefs(i,{checks:[...i.checks??[],...o.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...o){return this.check(...o)},clone(o,i){return H(this,o,i)},brand(){return this},register(o,i){return o.add(this,i),this},refine(o,i){return this.check(Eu(o,i))},superRefine(o,i){return this.check(Au(o,i))},overwrite(o){return this.check(se(o))},optional(){return Ln(this)},exactOptional(){return lu(this)},nullable(){return Mn(this)},nullish(){return Ln(Mn(this))},nonoptional(o){return fu(this,o)},array(){return Wn(this)},or(o){return Vo([this,o])},and(o){return Ql(this,o)},transform(o){return To(this,Jo(o))},default(o){return pu(this,o)},prefault(o){return gu(this,o)},catch(o){return bu(this,o)},pipe(o){return To(this,o)},readonly(){return Su(this)},describe(o){let i=this.clone();return F.add(i,{description:o}),i},meta(...o){if(o.length===0)return F.get(this);let i=this.clone();return F.add(i,o[0]),i},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(o){return o(this)}}),Object.defineProperty(t,"description",{get(){return F.get(t)?.description},configurable:!0}),t)),Eo=g("_ZodString",(t,r)=>{it.init(t,r),A.init(t,r),t._zod.processJSONSchema=(i,n,a)=>Lc(t,i,n,a);let o=t._zod.bag;t.format=o.format??null,t.minLength=o.minimum??null,t.maxLength=o.maximum??null,Bn(t,"_ZodString",{regex(...i){return this.check(It(...i))},includes(...i){return this.check(Et(...i))},startsWith(...i){return this.check(At(...i))},endsWith(...i){return this.check(Rt(...i))},min(...i){return this.check(Ee(...i))},max(...i){return this.check(st(...i))},length(...i){return this.check(ct(...i))},nonempty(...i){return this.check(Ee(1,...i))},lowercase(i){return this.check(wt(i))},uppercase(i){return this.check(Tt(i))},trim(){return this.check(Ot())},normalize(...i){return this.check(jt(...i))},toLowerCase(){return this.check(zt())},toUpperCase(){return this.check(Ct())},slugify(){return this.check(Ut())}})}),Zt=g("ZodString",(t,r)=>{it.init(t,r),Eo.init(t,r),t.email=o=>t.check(Wr(Ao,o)),t.url=o=>t.check(Cn(Zn,o)),t.jwt=o=>t.check(lo(Wo,o)),t.emoji=o=>t.check(Jr(Ro,o)),t.guid=o=>t.check(zn(Dn,o)),t.uuid=o=>t.check(Gr(he,o)),t.uuidv4=o=>t.check(Kr(he,o)),t.uuidv6=o=>t.check(Vr(he,o)),t.uuidv7=o=>t.check(Hr(he,o)),t.nanoid=o=>t.check(Xr(Po,o)),t.guid=o=>t.check(zn(Dn,o)),t.cuid=o=>t.check(qr(jo,o)),t.cuid2=o=>t.check(Yr(Oo,o)),t.ulid=o=>t.check(Qr(zo,o)),t.base64=o=>t.check(ao(Bo,o)),t.base64url=o=>t.check(so(Zo,o)),t.xid=o=>t.check(eo(Co,o)),t.ksuid=o=>t.check(to(Uo,o)),t.ipv4=o=>t.check(no(No,o)),t.ipv6=o=>t.check(ro(Do,o)),t.cidrv4=o=>t.check(oo(Lo,o)),t.cidrv6=o=>t.check(io(Mo,o)),t.e164=o=>t.check(co(Fo,o)),t.datetime=o=>t.check(Sl(o)),t.date=o=>t.check(kl(o)),t.time=o=>t.check($l(o)),t.duration=o=>t.check(Il(o))});function Nn(t){return Qs(Zt,t)}var U=g("ZodStringFormat",(t,r)=>{C.init(t,r),Eo.init(t,r)}),Ao=g("ZodEmail",(t,r)=>{Wa.init(t,r),U.init(t,r)});function wm(t){return Wr(Ao,t)}var Dn=g("ZodGUID",(t,r)=>{Za.init(t,r),U.init(t,r)});function Tm(t){return zn(Dn,t)}var he=g("ZodUUID",(t,r)=>{Fa.init(t,r),U.init(t,r)});function Em(t){return Gr(he,t)}function Am(t){return Kr(he,t)}function Rm(t){return Vr(he,t)}function Pm(t){return Hr(he,t)}var Zn=g("ZodURL",(t,r)=>{Ga.init(t,r),U.init(t,r)});function jm(t){return Cn(Zn,t)}function Om(t){return Cn(Zn,{protocol:te.httpProtocol,hostname:te.domain,...S.normalizeParams(t)})}var Ro=g("ZodEmoji",(t,r)=>{Ka.init(t,r),U.init(t,r)});function zm(t){return Jr(Ro,t)}var Po=g("ZodNanoID",(t,r)=>{Va.init(t,r),U.init(t,r)});function Cm(t){return Xr(Po,t)}var jo=g("ZodCUID",(t,r)=>{Ha.init(t,r),U.init(t,r)});function Um(t){return qr(jo,t)}var Oo=g("ZodCUID2",(t,r)=>{Ja.init(t,r),U.init(t,r)});function Nm(t){return Yr(Oo,t)}var zo=g("ZodULID",(t,r)=>{Xa.init(t,r),U.init(t,r)});function Dm(t){return Qr(zo,t)}var Co=g("ZodXID",(t,r)=>{qa.init(t,r),U.init(t,r)});function Lm(t){return eo(Co,t)}var Uo=g("ZodKSUID",(t,r)=>{Ya.init(t,r),U.init(t,r)});function Mm(t){return to(Uo,t)}var No=g("ZodIPv4",(t,r)=>{rs.init(t,r),U.init(t,r)});function Bm(t){return no(No,t)}var Dl=g("ZodMAC",(t,r)=>{is.init(t,r),U.init(t,r)});function Zm(t){return tc(Dl,t)}var Do=g("ZodIPv6",(t,r)=>{os.init(t,r),U.init(t,r)});function Fm(t){return ro(Do,t)}var Lo=g("ZodCIDRv4",(t,r)=>{as.init(t,r),U.init(t,r)});function Wm(t){return oo(Lo,t)}var Mo=g("ZodCIDRv6",(t,r)=>{ss.init(t,r),U.init(t,r)});function Gm(t){return io(Mo,t)}var Bo=g("ZodBase64",(t,r)=>{ls.init(t,r),U.init(t,r)});function Km(t){return ao(Bo,t)}var Zo=g("ZodBase64URL",(t,r)=>{us.init(t,r),U.init(t,r)});function Vm(t){return so(Zo,t)}var Fo=g("ZodE164",(t,r)=>{ds.init(t,r),U.init(t,r)});function Hm(t){return co(Fo,t)}var Wo=g("ZodJWT",(t,r)=>{ps.init(t,r),U.init(t,r)});function Jm(t){return lo(Wo,t)}var Ft=g("ZodCustomStringFormat",(t,r)=>{ms.init(t,r),U.init(t,r)});function Xm(t,r,o={}){return Nt(Ft,t,r,o)}function qm(t){return Nt(Ft,"hostname",te.hostname,t)}function Ym(t){return Nt(Ft,"hex",te.hex,t)}function Qm(t,r){let o=r?.enc??"hex",i=`${t}_${o}`,n=te[i];if(!n)throw new Error(`Unrecognized hash format: ${i}`);return Nt(Ft,i,n,r)}var Wt=g("ZodNumber",(t,r)=>{zr.init(t,r),A.init(t,r),t._zod.processJSONSchema=(i,n,a)=>Mc(t,i,n,a),Bn(t,"ZodNumber",{gt(i,n){return this.check(ge(i,n))},gte(i,n){return this.check(X(i,n))},min(i,n){return this.check(X(i,n))},lt(i,n){return this.check(me(i,n))},lte(i,n){return this.check(ne(i,n))},max(i,n){return this.check(ne(i,n))},int(i){return this.check(wo(i))},safe(i){return this.check(wo(i))},positive(i){return this.check(ge(0,i))},nonnegative(i){return this.check(X(0,i))},negative(i){return this.check(me(0,i))},nonpositive(i){return this.check(ne(0,i))},multipleOf(i,n){return this.check(De(i,n))},step(i,n){return this.check(De(i,n))},finite(){return this}});let o=t._zod.bag;t.minValue=Math.max(o.minimum??Number.NEGATIVE_INFINITY,o.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(o.maximum??Number.POSITIVE_INFINITY,o.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(o.format??"").includes("int")||Number.isSafeInteger(o.multipleOf??.5),t.isFinite=!0,t.format=o.format??null});function Ll(t){return sc(Wt,t)}var ut=g("ZodNumberFormat",(t,r)=>{gs.init(t,r),Wt.init(t,r)});function wo(t){return lc(ut,t)}function eg(t){return uc(ut,t)}function tg(t){return dc(ut,t)}function ng(t){return pc(ut,t)}function rg(t){return mc(ut,t)}var Gt=g("ZodBoolean",(t,r)=>{An.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>Bc(t,o,i,n)});function Ml(t){return gc(Gt,t)}var Kt=g("ZodBigInt",(t,r)=>{Cr.init(t,r),A.init(t,r),t._zod.processJSONSchema=(i,n,a)=>Zc(t,i,n,a),t.gte=(i,n)=>t.check(X(i,n)),t.min=(i,n)=>t.check(X(i,n)),t.gt=(i,n)=>t.check(ge(i,n)),t.gte=(i,n)=>t.check(X(i,n)),t.min=(i,n)=>t.check(X(i,n)),t.lt=(i,n)=>t.check(me(i,n)),t.lte=(i,n)=>t.check(ne(i,n)),t.max=(i,n)=>t.check(ne(i,n)),t.positive=i=>t.check(ge(BigInt(0),i)),t.negative=i=>t.check(me(BigInt(0),i)),t.nonpositive=i=>t.check(ne(BigInt(0),i)),t.nonnegative=i=>t.check(X(BigInt(0),i)),t.multipleOf=(i,n)=>t.check(De(i,n));let o=t._zod.bag;t.minValue=o.minimum??null,t.maxValue=o.maximum??null,t.format=o.format??null});function og(t){return hc(Kt,t)}var Go=g("ZodBigIntFormat",(t,r)=>{fs.init(t,r),Kt.init(t,r)});function ig(t){return bc(Go,t)}function ag(t){return yc(Go,t)}var Bl=g("ZodSymbol",(t,r)=>{hs.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>Fc(t,o,i,n)});function sg(t){return _c(Bl,t)}var Zl=g("ZodUndefined",(t,r)=>{vs.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>Gc(t,o,i,n)});function cg(t){return xc(Zl,t)}var Fl=g("ZodNull",(t,r)=>{bs.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>Wc(t,o,i,n)});function Wl(t){return Sc(Fl,t)}var Gl=g("ZodAny",(t,r)=>{ys.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>Hc(t,o,i,n)});function lg(){return kc(Gl)}var Kl=g("ZodUnknown",(t,r)=>{_s.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>Jc(t,o,i,n)});function lt(){return $c(Kl)}var Vl=g("ZodNever",(t,r)=>{xs.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>Vc(t,o,i,n)});function Ko(t){return Ic(Vl,t)}var Hl=g("ZodVoid",(t,r)=>{Ss.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>Kc(t,o,i,n)});function ug(t){return wc(Hl,t)}var Fn=g("ZodDate",(t,r)=>{ks.init(t,r),A.init(t,r),t._zod.processJSONSchema=(i,n,a)=>Xc(t,i,n,a),t.min=(i,n)=>t.check(X(i,n)),t.max=(i,n)=>t.check(ne(i,n));let o=t._zod.bag;t.minDate=o.minimum?new Date(o.minimum):null,t.maxDate=o.maximum?new Date(o.maximum):null});function dg(t){return Tc(Fn,t)}var Jl=g("ZodArray",(t,r)=>{$s.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>cl(t,o,i,n),t.element=r.element,Bn(t,"ZodArray",{min(o,i){return this.check(Ee(o,i))},nonempty(o){return this.check(Ee(1,o))},max(o,i){return this.check(st(o,i))},length(o,i){return this.check(ct(o,i))},unwrap(){return this.element}})});function Wn(t,r){return Rc(Jl,t,r)}function pg(t){let r=t._zod.def.shape;return Ho(Object.keys(r))}var Gn=g("ZodObject",(t,r)=>{Is.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>ll(t,o,i,n),S.defineLazy(t,"shape",()=>r.shape),Bn(t,"ZodObject",{keyof(){return Ho(Object.keys(this._zod.def.shape))},catchall(o){return this.clone({...this._zod.def,catchall:o})},passthrough(){return this.clone({...this._zod.def,catchall:lt()})},loose(){return this.clone({...this._zod.def,catchall:lt()})},strict(){return this.clone({...this._zod.def,catchall:Ko()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(o){return S.extend(this,o)},safeExtend(o){return S.safeExtend(this,o)},merge(o){return S.merge(this,o)},pick(o){return S.pick(this,o)},omit(o){return S.omit(this,o)},partial(...o){return S.partial(Xo,this,o[0])},required(...o){return S.required(qo,this,o[0])}})});function mg(t,r){let o={type:"object",shape:t??{},...S.normalizeParams(r)};return new Gn(o)}function gg(t,r){return new Gn({type:"object",shape:t,catchall:Ko(),...S.normalizeParams(r)})}function fg(t,r){return new Gn({type:"object",shape:t,catchall:lt(),...S.normalizeParams(r)})}var Kn=g("ZodUnion",(t,r)=>{Rn.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>vo(t,o,i,n),t.options=r.options});function Vo(t,r){return new Kn({type:"union",options:t,...S.normalizeParams(r)})}var Xl=g("ZodXor",(t,r)=>{Kn.init(t,r),ws.init(t,r),t._zod.processJSONSchema=(o,i,n)=>vo(t,o,i,n),t.options=r.options});function hg(t,r){return new Xl({type:"union",options:t,inclusive:!1,...S.normalizeParams(r)})}var ql=g("ZodDiscriminatedUnion",(t,r)=>{Kn.init(t,r),Ts.init(t,r)});function vg(t,r,o){return new ql({type:"union",options:r,discriminator:t,...S.normalizeParams(o)})}var Yl=g("ZodIntersection",(t,r)=>{Es.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>ul(t,o,i,n)});function Ql(t,r){return new Yl({type:"intersection",left:t,right:r})}var eu=g("ZodTuple",(t,r)=>{Ur.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>dl(t,o,i,n),t.rest=o=>t.clone({...t._zod.def,rest:o})});function tu(t,r,o){let i=r instanceof T,n=i?o:r,a=i?r:null;return new eu({type:"tuple",items:t,rest:a,...S.normalizeParams(n)})}var Mt=g("ZodRecord",(t,r)=>{As.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>pl(t,o,i,n),t.keyType=r.keyType,t.valueType=r.valueType});function nu(t,r,o){return!r||!r._zod?new Mt({type:"record",keyType:Nn(),valueType:t,...S.normalizeParams(r)}):new Mt({type:"record",keyType:t,valueType:r,...S.normalizeParams(o)})}function bg(t,r,o){let i=H(t);return i._zod.values=void 0,new Mt({type:"record",keyType:i,valueType:r,...S.normalizeParams(o)})}function yg(t,r,o){return new Mt({type:"record",keyType:t,valueType:r,mode:"loose",...S.normalizeParams(o)})}var ru=g("ZodMap",(t,r)=>{Rs.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>al(t,o,i,n),t.keyType=r.keyType,t.valueType=r.valueType,t.min=(...o)=>t.check(fe(...o)),t.nonempty=o=>t.check(fe(1,o)),t.max=(...o)=>t.check(Le(...o)),t.size=(...o)=>t.check(at(...o))});function _g(t,r,o){return new ru({type:"map",keyType:t,valueType:r,...S.normalizeParams(o)})}var ou=g("ZodSet",(t,r)=>{Ps.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>sl(t,o,i,n),t.min=(...o)=>t.check(fe(...o)),t.nonempty=o=>t.check(fe(1,o)),t.max=(...o)=>t.check(Le(...o)),t.size=(...o)=>t.check(at(...o))});function xg(t,r){return new ou({type:"set",valueType:t,...S.normalizeParams(r)})}var Bt=g("ZodEnum",(t,r)=>{js.init(t,r),A.init(t,r),t._zod.processJSONSchema=(i,n,a)=>qc(t,i,n,a),t.enum=r.entries,t.options=Object.values(r.entries);let o=new Set(Object.keys(r.entries));t.extract=(i,n)=>{let a={};for(let s of i)if(o.has(s))a[s]=r.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Bt({...r,checks:[],...S.normalizeParams(n),entries:a})},t.exclude=(i,n)=>{let a={...r.entries};for(let s of i)if(o.has(s))delete a[s];else throw new Error(`Key ${s} not found in enum`);return new Bt({...r,checks:[],...S.normalizeParams(n),entries:a})}});function Ho(t,r){let o=Array.isArray(t)?Object.fromEntries(t.map(i=>[i,i])):t;return new Bt({type:"enum",entries:o,...S.normalizeParams(r)})}function Sg(t,r){return new Bt({type:"enum",entries:t,...S.normalizeParams(r)})}var iu=g("ZodLiteral",(t,r)=>{Os.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>Yc(t,o,i,n),t.values=new Set(r.values),Object.defineProperty(t,"value",{get(){if(r.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function kg(t,r){return new iu({type:"literal",values:Array.isArray(t)?t:[t],...S.normalizeParams(r)})}var au=g("ZodFile",(t,r)=>{zs.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>tl(t,o,i,n),t.min=(o,i)=>t.check(fe(o,i)),t.max=(o,i)=>t.check(Le(o,i)),t.mime=(o,i)=>t.check(Pt(Array.isArray(o)?o:[o],i))});function $g(t){return Pc(au,t)}var su=g("ZodTransform",(t,r)=>{Cs.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>il(t,o,i,n),t._zod.parse=(o,i)=>{if(i.direction==="backward")throw new Oe(t.constructor.name);o.addIssue=a=>{if(typeof a=="string")o.issues.push(S.issue(a,o.value,r));else{let s=a;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=o.value),s.inst??(s.inst=t),o.issues.push(S.issue(s))}};let n=r.transform(o.value,o);return n instanceof Promise?n.then(a=>(o.value=a,o.fallback=!0,o)):(o.value=n,o.fallback=!0,o)}});function Jo(t){return new su({type:"transform",transform:t})}var Xo=g("ZodOptional",(t,r)=>{Nr.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>bo(t,o,i,n),t.unwrap=()=>t._zod.def.innerType});function Ln(t){return new Xo({type:"optional",innerType:t})}var cu=g("ZodExactOptional",(t,r)=>{Us.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>bo(t,o,i,n),t.unwrap=()=>t._zod.def.innerType});function lu(t){return new cu({type:"optional",innerType:t})}var uu=g("ZodNullable",(t,r)=>{Ns.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>ml(t,o,i,n),t.unwrap=()=>t._zod.def.innerType});function Mn(t){return new uu({type:"nullable",innerType:t})}function Ig(t){return Ln(Mn(t))}var du=g("ZodDefault",(t,r)=>{Ds.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>fl(t,o,i,n),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function pu(t,r){return new du({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():S.shallowClone(r)}})}var mu=g("ZodPrefault",(t,r)=>{Ls.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>hl(t,o,i,n),t.unwrap=()=>t._zod.def.innerType});function gu(t,r){return new mu({type:"prefault",innerType:t,get defaultValue(){return typeof r=="function"?r():S.shallowClone(r)}})}var qo=g("ZodNonOptional",(t,r)=>{Ms.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>gl(t,o,i,n),t.unwrap=()=>t._zod.def.innerType});function fu(t,r){return new qo({type:"nonoptional",innerType:t,...S.normalizeParams(r)})}var hu=g("ZodSuccess",(t,r)=>{Bs.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>nl(t,o,i,n),t.unwrap=()=>t._zod.def.innerType});function wg(t){return new hu({type:"success",innerType:t})}var vu=g("ZodCatch",(t,r)=>{Zs.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>vl(t,o,i,n),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function bu(t,r){return new vu({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}var yu=g("ZodNaN",(t,r)=>{Fs.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>Qc(t,o,i,n)});function Tg(t){return Ac(yu,t)}var Vn=g("ZodPipe",(t,r)=>{Dr.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>bl(t,o,i,n),t.in=r.in,t.out=r.out});function To(t,r){return new Vn({type:"pipe",in:t,out:r})}var Hn=g("ZodCodec",(t,r)=>{Vn.init(t,r),Pn.init(t,r)});function Eg(t,r,o){return new Hn({type:"pipe",in:t,out:r,transform:o.decode,reverseTransform:o.encode})}function Ag(t){let r=t._zod.def;return new Hn({type:"pipe",in:r.out,out:r.in,transform:r.reverseTransform,reverseTransform:r.transform})}var _u=g("ZodPreprocess",(t,r)=>{Vn.init(t,r),Ws.init(t,r)}),xu=g("ZodReadonly",(t,r)=>{Gs.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>yl(t,o,i,n),t.unwrap=()=>t._zod.def.innerType});function Su(t){return new xu({type:"readonly",innerType:t})}var ku=g("ZodTemplateLiteral",(t,r)=>{Ks.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>el(t,o,i,n)});function Rg(t,r){return new ku({type:"template_literal",parts:t,...S.normalizeParams(r)})}var $u=g("ZodLazy",(t,r)=>{Js.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>xl(t,o,i,n),t.unwrap=()=>t._zod.def.getter()});function Iu(t){return new $u({type:"lazy",getter:t})}var wu=g("ZodPromise",(t,r)=>{Hs.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>_l(t,o,i,n),t.unwrap=()=>t._zod.def.innerType});function Pg(t){return new wu({type:"promise",innerType:t})}var Tu=g("ZodFunction",(t,r)=>{Vs.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>ol(t,o,i,n)});function jg(t){return new Tu({type:"function",input:Array.isArray(t?.input)?tu(t?.input):t?.input??Wn(lt()),output:t?.output??lt()})}var Jn=g("ZodCustom",(t,r)=>{Xs.init(t,r),A.init(t,r),t._zod.processJSONSchema=(o,i,n)=>rl(t,o,i,n)});function Og(t){let r=new N({check:"custom"});return r._zod.check=t,r}function zg(t,r){return jc(Jn,t??(()=>!0),r)}function Eu(t,r={}){return Oc(Jn,t,r)}function Au(t,r){return zc(t,r)}var Cg=Cc,Ug=Uc;function Ng(t,r={}){let o=new Jn({type:"custom",check:"custom",fn:i=>i instanceof t,abort:!0,...S.normalizeParams(r)});return o._zod.bag.Class=t,o._zod.check=i=>{i.value instanceof t||i.issues.push({code:"invalid_type",expected:t.name,input:i.value,inst:o,path:[...o._zod.def.path??[]]})},o}var Dg=(...t)=>Nc({Codec:Hn,Boolean:Gt,String:Zt},...t);function Lg(t){let r=Iu(()=>Vo([Nn(t),Ll(),Ml(),Wl(),Wn(r),nu(Nn(),r)]));return r}function Mg(t,r){return new _u({type:"pipe",in:Jo(t),out:r})}var g_={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function f_(t){M({customError:t})}function h_(){return M().customError}var Ru;Ru||(Ru={});var w={...Un,...xo,iso:Lt},v_=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function b_(t,r){let o=t.$schema;return o==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":o==="http://json-schema.org/draft-07/schema#"?"draft-7":o==="http://json-schema.org/draft-04/schema#"?"draft-4":r??"draft-2020-12"}function y_(t,r){if(!t.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let o=t.slice(1).split("/").filter(Boolean);if(o.length===0)return r.rootSchema;let i=r.version==="draft-2020-12"?"$defs":"definitions";if(o[0]===i){let n=o[1];if(!n||!r.defs[n])throw new Error(`Reference not found: ${t}`);return r.defs[n]}throw new Error(`Reference not found: ${t}`)}function Bg(t,r){if(t.not!==void 0){if(typeof t.not=="object"&&Object.keys(t.not).length===0)return w.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(t.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(t.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(t.if!==void 0||t.then!==void 0||t.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(t.dependentSchemas!==void 0||t.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(t.$ref){let n=t.$ref;if(r.refs.has(n))return r.refs.get(n);if(r.processing.has(n))return w.lazy(()=>{if(!r.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return r.refs.get(n)});r.processing.add(n);let a=y_(n,r),s=G(a,r);return r.refs.set(n,s),r.processing.delete(n),s}if(t.enum!==void 0){let n=t.enum;if(r.version==="openapi-3.0"&&t.nullable===!0&&n.length===1&&n[0]===null)return w.null();if(n.length===0)return w.never();if(n.length===1)return w.literal(n[0]);if(n.every(s=>typeof s=="string"))return w.enum(n);let a=n.map(s=>w.literal(s));return a.length<2?a[0]:w.union([a[0],a[1],...a.slice(2)])}if(t.const!==void 0)return w.literal(t.const);let o=t.type;if(Array.isArray(o)){let n=o.map(a=>{let s={...t,type:a};return Bg(s,r)});return n.length===0?w.never():n.length===1?n[0]:w.union(n)}if(!o)return w.any();let i;switch(o){case"string":{let n=w.string();if(t.format){let a=t.format;a==="email"?n=n.check(w.email()):a==="uri"||a==="uri-reference"?n=n.check(w.url()):a==="uuid"||a==="guid"?n=n.check(w.uuid()):a==="date-time"?n=n.check(w.iso.datetime()):a==="date"?n=n.check(w.iso.date()):a==="time"?n=n.check(w.iso.time()):a==="duration"?n=n.check(w.iso.duration()):a==="ipv4"?n=n.check(w.ipv4()):a==="ipv6"?n=n.check(w.ipv6()):a==="mac"?n=n.check(w.mac()):a==="cidr"?n=n.check(w.cidrv4()):a==="cidr-v6"?n=n.check(w.cidrv6()):a==="base64"?n=n.check(w.base64()):a==="base64url"?n=n.check(w.base64url()):a==="e164"?n=n.check(w.e164()):a==="jwt"?n=n.check(w.jwt()):a==="emoji"?n=n.check(w.emoji()):a==="nanoid"?n=n.check(w.nanoid()):a==="cuid"?n=n.check(w.cuid()):a==="cuid2"?n=n.check(w.cuid2()):a==="ulid"?n=n.check(w.ulid()):a==="xid"?n=n.check(w.xid()):a==="ksuid"&&(n=n.check(w.ksuid()))}typeof t.minLength=="number"&&(n=n.min(t.minLength)),typeof t.maxLength=="number"&&(n=n.max(t.maxLength)),t.pattern&&(n=n.regex(new RegExp(t.pattern))),i=n;break}case"number":case"integer":{let n=o==="integer"?w.number().int():w.number();typeof t.minimum=="number"&&(n=n.min(t.minimum)),typeof t.maximum=="number"&&(n=n.max(t.maximum)),typeof t.exclusiveMinimum=="number"?n=n.gt(t.exclusiveMinimum):t.exclusiveMinimum===!0&&typeof t.minimum=="number"&&(n=n.gt(t.minimum)),typeof t.exclusiveMaximum=="number"?n=n.lt(t.exclusiveMaximum):t.exclusiveMaximum===!0&&typeof t.maximum=="number"&&(n=n.lt(t.maximum)),typeof t.multipleOf=="number"&&(n=n.multipleOf(t.multipleOf)),i=n;break}case"boolean":{i=w.boolean();break}case"null":{i=w.null();break}case"object":{let n={},a=t.properties||{},s=new Set(t.required||[]);for(let[u,d]of Object.entries(a)){let p=G(d,r);n[u]=s.has(u)?p:p.optional()}if(t.propertyNames){let u=G(t.propertyNames,r),d=t.additionalProperties&&typeof t.additionalProperties=="object"?G(t.additionalProperties,r):w.any();if(Object.keys(n).length===0){i=w.record(u,d);break}let p=w.object(n).passthrough(),v=w.looseRecord(u,d);i=w.intersection(p,v);break}if(t.patternProperties){let u=t.patternProperties,d=Object.keys(u),p=[];for(let f of d){let l=G(u[f],r),m=w.string().regex(new RegExp(f));p.push(w.looseRecord(m,l))}let v=[];if(Object.keys(n).length>0&&v.push(w.object(n).passthrough()),v.push(...p),v.length===0)i=w.object({}).passthrough();else if(v.length===1)i=v[0];else{let f=w.intersection(v[0],v[1]);for(let l=2;l<v.length;l++)f=w.intersection(f,v[l]);i=f}break}let c=w.object(n);t.additionalProperties===!1?i=c.strict():typeof t.additionalProperties=="object"?i=c.catchall(G(t.additionalProperties,r)):i=c.passthrough();break}case"array":{let n=t.prefixItems,a=t.items;if(n&&Array.isArray(n)){let s=n.map(u=>G(u,r)),c=a&&typeof a=="object"&&!Array.isArray(a)?G(a,r):void 0;c?i=w.tuple(s).rest(c):i=w.tuple(s),typeof t.minItems=="number"&&(i=i.check(w.minLength(t.minItems))),typeof t.maxItems=="number"&&(i=i.check(w.maxLength(t.maxItems)))}else if(Array.isArray(a)){let s=a.map(u=>G(u,r)),c=t.additionalItems&&typeof t.additionalItems=="object"?G(t.additionalItems,r):void 0;c?i=w.tuple(s).rest(c):i=w.tuple(s),typeof t.minItems=="number"&&(i=i.check(w.minLength(t.minItems))),typeof t.maxItems=="number"&&(i=i.check(w.maxLength(t.maxItems)))}else if(a!==void 0){let s=G(a,r),c=w.array(s);typeof t.minItems=="number"&&(c=c.min(t.minItems)),typeof t.maxItems=="number"&&(c=c.max(t.maxItems)),i=c}else i=w.array(w.any());break}default:throw new Error(`Unsupported type: ${o}`)}return i}function G(t,r){if(typeof t=="boolean")return t?w.any():w.never();let o=Bg(t,r),i=t.type||t.enum!==void 0||t.const!==void 0;if(t.anyOf&&Array.isArray(t.anyOf)){let c=t.anyOf.map(d=>G(d,r)),u=w.union(c);o=i?w.intersection(o,u):u}if(t.oneOf&&Array.isArray(t.oneOf)){let c=t.oneOf.map(d=>G(d,r)),u=w.xor(c);o=i?w.intersection(o,u):u}if(t.allOf&&Array.isArray(t.allOf))if(t.allOf.length===0)o=i?o:w.any();else{let c=i?o:G(t.allOf[0],r),u=i?0:1;for(let d=u;d<t.allOf.length;d++)c=w.intersection(c,G(t.allOf[d],r));o=c}t.nullable===!0&&r.version==="openapi-3.0"&&(o=w.nullable(o)),t.readOnly===!0&&(o=w.readonly(o)),t.default!==void 0&&(o=o.default(t.default));let n={},a=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let c of a)c in t&&(n[c]=t[c]);let s=["contentEncoding","contentMediaType","contentSchema"];for(let c of s)c in t&&(n[c]=t[c]);for(let c of Object.keys(t))v_.has(c)||(n[c]=t[c]);return Object.keys(n).length>0&&r.registry.add(o,n),t.description&&(o=o.describe(t.description)),o}function Zg(t,r){if(typeof t=="boolean")return t?w.any():w.never();let o;try{o=JSON.parse(JSON.stringify(t))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let i=b_(o,r?.defaultTarget),n=o.$defs||o.definitions||{},a={version:i,defs:n,refs:new Map,processing:new Set,rootSchema:o,registry:r?.registry??F};return G(o,a)}var Pu={};we(Pu,{bigint:()=>k_,boolean:()=>S_,date:()=>$_,number:()=>x_,string:()=>__});function __(t){return ec(Zt,t)}function x_(t){return cc(Wt,t)}function S_(t){return fc(Gt,t)}function k_(t){return vc(Kt,t)}function $_(t){return Ec(Fn,t)}M(Lr());var bP="always_allow",Yo={ALWAYS_ASK:"always_ask",AUTO:"auto",ALWAYS_ALLOW:"always_allow"},Fe=e.enum(Yo),Qo={ASK:"ask",DENY:"deny",BYPASS:"bypass"},Fg=e.enum(Qo),I_=["auto_deny","auto_ask","allow_all"],yP=e.enum(I_),_P=[{id:"auto_deny",toolApprovalMode:Yo.AUTO,approvalHandling:Qo.DENY},{id:"auto_ask",toolApprovalMode:Yo.AUTO,approvalHandling:Qo.ASK},{id:"allow_all",toolApprovalMode:Yo.ALWAYS_ALLOW,approvalHandling:Qo.BYPASS}];var xP={always_ask:"Always Ask",auto:"Auto",always_allow:"Always Allow"},SP={always_ask:"Show approval dialog for every tool execution",auto:"Ask only before high-risk tools; auto-approve the rest",always_allow:"Never ask for approval (trust mode)"};var K=e.object({limit:e.coerce.number().int().min(1).max(100).default(20),nextKey:e.string().optional()}),ce=e.object({limit:e.coerce.number().int().min(1).max(100).default(20),offset:e.coerce.number().int().nonnegative().default(0)}),Wg=["asc","desc"];var ju=e.enum(["scheduled","in_progress","completed","cancelled"]),Gg=e.enum(["manual","calendar","recording"]),Kg=e.enum(["local","upload","zoom","youtube","media","bot"]),Ou=e.enum(["pending","extracting_subtitles","downloading","transcribing","refining","completed","failed"]),w_=e.enum(["recall"]),Vg=e.enum(["scheduled","joining","in_call","recording","done","failed","removed"]),T_=e.enum(["manual","api","connector","calendar_subscription"]),E_=["idle","queued","generating","completed","failed"],zu=e.enum(E_),A_=["generated","import","user_edit","restore","migration"],R_=e.enum(A_);var P_=10,EP=P_*60;var Cu=e.object({type:e.enum(["hangoutsMeet","zoom","teams","webex","other"]),uri:e.string().optional(),label:e.string().optional()}),j_=e.object({email:e.string(),displayName:e.string().nullable().optional(),role:e.enum(["organizer","attendee","optional"]).optional(),responseStatus:e.enum(["needsAction","declined","tentative","accepted"]).nullable().optional()}),Uu=e.object({start:e.number(),end:e.number(),text:e.string()});var Hg=e.record(e.string().regex(/^[A-Z0-9]{1,2}$/u),e.string().trim().min(1).max(100).regex(/^[^\r\n]+$/u)),Vt=e.object({description:e.string(),assignee:e.string().nullable().optional(),dueDate:e.string().nullable().optional(),completed:e.boolean()});var Nu=e.enum(["private","workspace"]);var Du=e.enum(["viewer","editor"]),Jg=e.enum(["owner","editor","viewer"]),Xg=e.enum(["explicit","workspace"]),O_=e.object({userId:e.uuid(),userName:e.string(),userEmail:e.email(),role:Du,grantedBy:e.uuid().nullable(),createdAt:e.iso.datetime()}),z_=e.object({teamId:e.uuid(),teamName:e.string(),memberCount:e.number(),role:Du,grantedBy:e.uuid().nullable(),createdAt:e.iso.datetime()}),AP=e.object({visibility:Nu,userGrants:e.array(O_),teamGrants:e.array(z_)}),RP=e.object({role:Du}),PP=e.object({title:e.string().trim().min(1).max(500),description:e.string().optional(),location:e.string().optional(),startTime:e.iso.datetime().optional(),endTime:e.iso.datetime().optional(),conferenceLink:e.url().optional(),conferenceData:Cu.optional(),calendarEventId:e.uuid().optional(),notes:e.string().optional()}),jP=e.object({title:e.string().trim().min(1).max(500).optional(),description:e.string().nullable().optional(),location:e.string().nullable().optional(),startTime:e.iso.datetime().nullable().optional(),endTime:e.iso.datetime().nullable().optional(),status:ju.optional(),conferenceLink:e.url().nullable().optional(),conferenceData:Cu.nullable().optional(),notes:e.string().nullable().optional(),summary:e.string().nullable().optional(),calendarEventId:e.uuid().nullable().optional(),visibility:Nu.optional()}),Lu=e.object({processedChunks:e.number().int().nonnegative(),totalChunks:e.number().int().positive()}),qg=e.object({percentage:e.number().int().min(0).max(100)}),Yg=e.object({provisionalCoverageRatio:e.number().min(0).max(1),finalTranscription:Lu}),Qg=e.object({transcript:e.string(),transcriptWithTimestamps:e.string(),segments:e.array(Uu),summary:e.string().nullable(),generatedAt:e.iso.datetime(),stability:e.object({coverageRatio:e.number().min(0).max(1),eligible:e.boolean(),failedChunkCount:e.number().int().nonnegative(),maxGapSec:e.number().nonnegative(),missingRangeCount:e.number().int().nonnegative(),pendingChunkCount:e.number().int().nonnegative(),reason:e.string()})}),C_=Qg.pick({summary:!0}),OP=e.object({id:e.uuid(),uploadedBy:e.uuid(),meetingId:e.uuid(),title:e.string(),duration:e.number().nullable(),transcript:e.string().nullable(),transcriptWithTimestamps:e.string().nullable(),segments:e.array(Uu).nullable(),speakerNames:Hg,transcriptRevision:e.number().int().nonnegative(),needsSummaryRefresh:e.boolean(),isSummaryStale:e.boolean(),summary:e.string().nullable(),actionItems:e.array(Vt).nullable(),summaryStatus:zu,audioStorageKey:e.string().nullable(),processingStatus:Ou.nullable(),processingProgress:qg.nullable().optional(),hybridProgress:Yg.nullable().optional(),provisionalResult:Qg.nullable().optional(),transcriptionProgress:Lu.nullable().optional(),recordedAt:e.iso.datetime().nullable(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),ef=e.object({id:e.uuid(),title:e.string(),duration:e.number().nullable(),hasSummary:e.boolean(),hasTranscript:e.boolean(),canRetry:e.boolean().optional(),needsSummaryRefresh:e.boolean(),isSummaryStale:e.boolean(),summary:e.string().nullable().optional(),actionItems:e.array(Vt).nullable().optional(),summaryStatus:zu,source:Kg.nullable().optional(),processingStatus:Ou.nullable(),processingProgress:qg.nullable().optional(),hybridProgress:Yg.nullable().optional(),provisionalResult:C_.nullable().optional(),transcriptionProgress:Lu.nullable().optional(),recordedAt:e.iso.datetime().nullable(),createdAt:e.iso.datetime()}),U_=e.enum(["transcript","summary"]),N_=e.object({id:e.uuid(),name:e.string()}),Mu=e.object({id:e.uuid(),versionNumber:e.number().int().nonnegative(),origin:R_,restoredFromVersionId:e.uuid().nullable(),createdBy:N_.nullable(),createdAt:e.iso.datetime(),excerpt:e.string().nullable()}),zP=e.object({contentType:U_,currentVersionId:e.uuid().nullable(),canRestore:e.boolean(),versions:e.array(Mu),nextVersionNumber:e.number().int().nonnegative().nullable()}),Bu=Mu.omit({excerpt:!0}),D_=Bu.extend({contentType:e.literal("transcript"),transcript:e.string().nullable(),transcriptWithTimestamps:e.string().nullable(),rawTranscript:e.string().nullable(),segments:e.array(Uu).nullable(),speakerNames:Hg}),L_=Bu.extend({contentType:e.literal("summary"),summary:e.string(),actionItems:e.array(Vt).nullable(),sourceTranscriptRevision:e.number().int().nonnegative().nullable()}),CP=e.discriminatedUnion("contentType",[D_,L_]),UP=e.object({expectedHeadVersionId:e.uuid()}),NP=e.object({currentVersionId:e.uuid().nullable(),canRestore:e.boolean(),versions:e.array(Mu),nextVersionNumber:e.number().int().positive().nullable()}),DP=Bu.extend({summary:e.string(),actionItems:e.array(Vt).nullable(),sourceRecordingSummaryVersionIds:e.array(e.uuid())});var tf=e.object({id:e.uuid(),meetingRecordingId:e.uuid().nullable(),provider:w_,meetingUrl:e.string(),botName:e.string().nullable(),status:Vg,statusDetail:e.string().nullable(),dispatchSource:T_,joinedAt:e.iso.datetime().nullable(),endedAt:e.iso.datetime().nullable(),recordingReadyAt:e.iso.datetime().nullable(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),M_=e.object({meetingId:e.uuid(),status:Vg,dispatchedAt:e.iso.datetime(),dispatchedBy:e.object({id:e.uuid(),name:e.string().nullable()}).nullable(),canAccess:e.boolean()}),LP=e.object({relatedActiveBot:M_.nullable()}),B_=200,Z_=20,F_=100,W_=e.enum(["all","matching_rules","none"]),G_=e.object({field:e.enum(["meeting_type","meeting_title"]),matchType:e.enum(["is","is_not","contains","does_not_contain"]),value:e.string().trim().min(1).max(B_)}).superRefine((t,r)=>{if(t.field==="meeting_type"){t.matchType!=="is"&&t.matchType!=="is_not"&&r.addIssue({code:"custom",path:["matchType"],message:"meeting_type conditions must use is / is_not"}),t.value!=="internal"&&t.value!=="external"&&r.addIssue({code:"custom",path:["value"],message:"meeting_type conditions must match internal / external"});return}t.matchType!=="contains"&&t.matchType!=="does_not_contain"&&r.addIssue({code:"custom",path:["matchType"],message:"meeting_title conditions must use contains / does_not_contain"})}),K_=e.object({recorderAgentName:e.string().trim().min(1).max(F_),recordingPolicy:W_,conditions:e.array(G_).max(Z_)}).superRefine((t,r)=>{t.recordingPolicy==="matching_rules"&&t.conditions.length===0&&r.addIssue({code:"custom",path:["conditions"],message:"matching_rules requires at least one condition"})}),MP=e.object({settings:K_.nullable(),hasCalendarAccounts:e.boolean()}),BP=e.object({policyVersion:e.string(),segmentSeconds:e.number().int().positive(),minFlushSegmentSeconds:e.number().positive(),maxSegmentDurationSeconds:e.number().int().positive(),idlePollIntervalMs:e.number().int().positive(),pendingPollBackoffIntervalsMs:e.array(e.number().int().positive()).min(1),pendingPollIntervalMs:e.number().int().positive(),pollJitterRatio:e.number().min(0).max(1),uploadTimeoutMs:e.number().int().positive(),liveTranscriptionModelTimeoutMs:e.number().int().positive(),maxQueuedSegments:e.number().int().positive(),maxPendingChunks:e.number().int().positive(),maxUploadBytes:e.number().int().positive(),displayLagSeconds:e.number().nonnegative(),timelineCatchUpIntervalMs:e.number().int().positive(),timelineGapRevealAheadChunks:e.number().int().nonnegative(),timelineMaxBurstSegments:e.number().int().positive(),timelineMaxDisplaySegmentDurationSeconds:e.number().positive(),timelineMinDisplaySegmentDurationSeconds:e.number().positive(),timelineTypingCriticalBacklogChars:e.number().int().positive(),timelineTypingCriticalCharsPerSecond:e.number().int().positive(),timelineTypingHighBacklogChars:e.number().int().positive(),timelineTypingHighBacklogCharsPerSecond:e.number().int().positive(),timelineTypingLowBacklogChars:e.number().int().positive(),timelineTypingLowBacklogCharsPerSecond:e.number().int().positive(),timelineTypingNormalCharsPerSecond:e.number().int().positive(),timelineTypingRevealTickMs:e.number().int().positive()}),ZP={policyVersion:"default-v2",segmentSeconds:45,minFlushSegmentSeconds:1,maxSegmentDurationSeconds:310,idlePollIntervalMs:15e3,pendingPollBackoffIntervalsMs:[5e3,8e3,15e3],pendingPollIntervalMs:3e3,pollJitterRatio:.2,uploadTimeoutMs:45e3,liveTranscriptionModelTimeoutMs:1e4,maxQueuedSegments:3,maxPendingChunks:3,maxUploadBytes:16*1024*1024,displayLagSeconds:2,timelineCatchUpIntervalMs:500,timelineGapRevealAheadChunks:2,timelineMaxBurstSegments:1,timelineMaxDisplaySegmentDurationSeconds:5,timelineMinDisplaySegmentDurationSeconds:.5,timelineTypingCriticalBacklogChars:24,timelineTypingCriticalCharsPerSecond:12,timelineTypingHighBacklogChars:600,timelineTypingHighBacklogCharsPerSecond:64,timelineTypingLowBacklogChars:80,timelineTypingLowBacklogCharsPerSecond:20,timelineTypingNormalCharsPerSecond:32,timelineTypingRevealTickMs:80},nf=e.object({userId:e.uuid(),name:e.string().nullable(),email:e.string(),image:e.string().nullable().optional()}),FP=e.object({id:e.uuid(),workspaceId:e.uuid(),createdBy:e.uuid(),owner:nf.optional(),calendarEventId:e.uuid().nullable(),title:e.string(),description:e.string().nullable(),location:e.string().nullable(),startTime:e.string().nullable(),endTime:e.string().nullable(),status:ju,source:Gg,conferenceLink:e.string().nullable(),conferenceData:Cu.nullable(),notes:e.string().nullable(),summary:e.string().nullable(),actionItems:e.array(Vt).nullable().optional(),calendarEvent:e.object({title:e.string(),providerEventId:e.string(),calendarId:e.string(),provider:e.enum(["google","outlook","caldav"]),providerCalendarId:e.string(),startTime:e.string(),endTime:e.string()}).nullable(),participants:e.array(j_).optional(),recordings:e.array(ef).optional(),hasEverRecorded:e.boolean().optional(),meetingBots:e.array(tf).optional(),isOwner:e.boolean().optional(),sharedVia:Xg.optional(),visibility:Nu,myRole:Jg.optional(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),V_=e.object({id:e.uuid(),title:e.string(),sortTime:e.string(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime(),startTime:e.string().nullable(),endTime:e.string().nullable(),status:ju.nullable(),source:Gg.nullable(),conferenceLink:e.string().nullable(),hasRecordings:e.boolean(),hasNotes:e.boolean().optional(),hasEverRecorded:e.boolean().optional(),participantCount:e.number().nullable(),isOwner:e.boolean(),myRole:Jg,owner:nf.optional(),sharedVia:Xg.optional(),duration:e.number().nullable(),hasTranscript:e.boolean(),hasSummary:e.boolean(),summaryStatus:zu,recordingSource:Kg.nullable(),processingStatus:Ou.nullable(),hasActiveMeetingBot:e.boolean().optional(),activeMeetingBot:tf.optional()}),H_=e.object({meetingId:e.string(),userId:e.string(),userName:e.string(),userEmail:e.string(),createdAt:e.iso.datetime()}),WP=e.object({recordings:e.array(ef),nextKey:e.string().optional()}),GP=e.object({meetings:e.array(V_),nextKey:e.string().optional()}),KP=e.object({shares:e.array(H_)}),VP=e.object({meetings:e.array(e.object({id:e.string(),title:e.string(),startTime:e.string().nullable()}))}),HP=e.object({photos:e.record(e.string(),e.string())}),J_=e.object({meetingId:e.uuid(),title:e.string(),startTime:e.string().nullable(),summary:e.string(),actionItems:e.array(Vt)}),JP=e.object({previous:J_.nullable()});var XP=K.extend({search:e.string().trim().max(200).optional(),filter:e.enum(["mine","shared","all"]).default("all"),sortBy:e.enum(["updated_at","start_time"]).default("updated_at"),hasContent:e.stringbool().optional(),hasActiveMeetingBot:e.stringbool().optional()});function qP(t){if(t.summary)return t.summary;let r=t.recordings?.find(o=>o.summary)?.summary;return r||t.recordings?.find(o=>o.provisionalResult?.summary)?.provisionalResult?.summary}var Re={PENDING:"pending",APPROVED:"approved",REJECTED:"rejected",PENDING_UPDATE:"pending_update"},X_=[Re.APPROVED,Re.PENDING_UPDATE],ej=[Re.PENDING,Re.PENDING_UPDATE],Xn={CONNECTOR:"connector",AGENT:"agent",SKILL:"skill",MEETING:"meeting"},tj={...Xn,WORKFLOW:"workflow",TASK:"task"},le={OWNER:"owner",MANAGER:"manager",MEMBER:"member"},Zu={VISIBLE:"visible",HIDDEN:"hidden"},dt={OWNER:"owner",EDITOR:"editor",VIEWER:"viewer"},qn=e.enum([dt.OWNER,dt.EDITOR,dt.VIEWER]),nj=[dt.OWNER,dt.EDITOR,dt.VIEWER];var Ht={USER:"user",TEAM:"team"},rf=e.enum([Ht.USER,Ht.TEAM]);var V=qn.nullable();var q_=e.object({id:e.uuid(),name:e.string(),email:e.email()}),Y_=e.object({id:e.uuid(),name:e.string()}),aj=e.object({subjectType:rf,subjectId:e.uuid()}),Q_=e.object({subjectType:e.literal(Ht.USER),subjectId:e.uuid(),userId:e.uuid(),role:qn,user:q_}),ex=e.object({subjectType:e.literal(Ht.TEAM),subjectId:e.uuid(),teamId:e.uuid(),role:qn,team:Y_}),tx=e.discriminatedUnion("subjectType",[Q_,ex]),sj=e.object({grants:e.array(tx)}),cj=e.object({role:qn});function nx(t){return t.subjectType===Ht.USER}function lj(t){return t.grants.filter(nx)}var Jt=["en","zh-TW","de","fr","es-ES","es-419","ja","ko","it","pt-BR"],of="en";var af=e.enum(Jt).default(of);function rx(t){return t?Jt.includes(t):!1}function sf(t){return rx(t)?t:of}function cf(t,r){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,i)}return o}function lf(t){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?cf(Object(o),!0).forEach(function(i){ox(t,i,o[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):cf(Object(o)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(o,i))})}return t}function ox(t,r,o){return r=ix(r),r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function ix(t){var r=ax(t,"string");return typeof r=="symbol"?r:String(r)}function ax(t,r){if(typeof t!="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var i=o.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var vj=uf({});function uf(t){return r.withOptions=o=>uf(lf(lf({},t),o)),r;function r(o,...i){let n=typeof o=="string"?[o]:o.raw,{alignValues:a=!1,escapeSpecialCharacters:s=Array.isArray(o),trimWhitespace:c=!0}=t,u="";for(let v=0;v<n.length;v++){let f=n[v];if(s&&(f=f.replace(/\\\n[ \t]*/g,"").replace(/\\`/g,"`").replace(/\\\$/g,"$").replace(/\\\{/g,"{")),u+=f,v<i.length){let l=a?sx(i[v],u):i[v];u+=l}}let d=u.split(`
67
+ `),p=null;for(let v of d){let f=v.match(/^(\s+)\S+/);if(f){let l=f[1].length;p?p=Math.min(p,l):p=l}}if(p!==null){let v=p;u=d.map(f=>f[0]===" "||f[0]===" "?f.slice(v):f).join(`
68
+ `)}return c&&(u=u.trim()),s&&(u=u.replace(/\\n/g,`
69
+ `).replace(/\\t/g," ").replace(/\\r/g,"\r").replace(/\\v/g,"\v").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\0/g,"\0").replace(/\\x([\da-fA-F]{2})/g,(v,f)=>String.fromCharCode(parseInt(f,16))).replace(/\\u\{([\da-fA-F]{1,6})\}/g,(v,f)=>String.fromCodePoint(parseInt(f,16))).replace(/\\u([\da-fA-F]{4})/g,(v,f)=>String.fromCharCode(parseInt(f,16)))),typeof Bun<"u"&&(u=u.replace(/\\u(?:\{([\da-fA-F]{1,6})\}|([\da-fA-F]{4}))/g,(v,f,l)=>{var m;let b=(m=f??l)!==null&&m!==void 0?m:"";return String.fromCodePoint(parseInt(b,16))})),u}}function sx(t,r){if(typeof t!="string"||!t.includes(`
70
+ `))return t;let i=r.slice(r.lastIndexOf(`
71
+ `)+1).match(/^(\s+)/);if(i){let n=i[1];return t.replace(/\n/g,`
72
+ ${n}`)}return t}function wj(t){return t!=null}var jj=new TextEncoder,Oj=new TextDecoder("utf-8",{fatal:!1});var ve=e.enum(["starter","pro","premium"]),cx=e.enum(["pro","premium"]),eO=cx.options,tO=e.enum(["basic_window","granted_pool","purchased_pool"]),lx=e.enum(["purchased","granted"]),nO=e.enum(["task","title_generate","agent","schedule","sandbox_llm","sandbox_runtime","web_search","image_generation","agent_icon_generation","auto_routing","chatbot","meeting","mcp_tool_api_call"]),re={TASK_MESSAGE:"task_message",TITLE_GENERATION:"title_generation",SENSITIVITY_CHECK:"sensitivity_check",TOOL_CALL_EXTRA_TOKENS:"tool_call_extra_tokens",TASK_SUMMARY:"task_summary",SUBAGENT:"subagent",WORKFLOW_AGENT:"workflow_agent",LLM_PROXY:"llm_proxy",IMAGE_GENERATION:"image_generation",WEB_SEARCH:"web_search",SANDBOX_RUNTIME:"sandbox_runtime",MEETING:"meeting",MEETING_RECORDING_TRANSCRIPTION:"meeting_recording_transcription",MEETING_RECORDING_SUMMARY:"meeting_recording_summary",MEETING_RECORDING_REFINE:"meeting_recording_refine",MEETING_RECORDING_TITLE:"meeting_recording_title",SCHEDULE_JUDGE:"schedule_judge",SCHEDULE_JUDGE_REVIEW:"schedule_judge_review",SCHEDULE_JUDGE_EXTRACT:"schedule_judge_extract",PROJECT_KNOWLEDGE_DESCRIPTION:"project_knowledge_description",PROJECT_KNOWLEDGE_EXTRACTION:"project_knowledge_extraction"},ux=[re.MEETING,re.MEETING_RECORDING_TRANSCRIPTION,re.MEETING_RECORDING_SUMMARY,re.MEETING_RECORDING_REFINE,re.MEETING_RECORDING_TITLE],rO=[...ux,re.WORKFLOW_AGENT,re.SCHEDULE_JUDGE_EXTRACT,re.WEB_SEARCH,re.PROJECT_KNOWLEDGE_DESCRIPTION,re.PROJECT_KNOWLEDGE_EXTRACTION,re.SENSITIVITY_CHECK];var df={WEB_SEARCH:re.WEB_SEARCH,SANDBOX_RUNTIME:re.SANDBOX_RUNTIME},oO=e.enum([df.WEB_SEARCH,df.SANDBOX_RUNTIME]),pf={SEARCH:"search",SCRAPE:"scrape"},iO=e.enum([pf.SEARCH,pf.SCRAPE]);var aO=e.object({workspaceId:e.uuid()});var mf=e.object({usedPercent:e.number().min(0).max(100),resetAt:e.iso.datetime().nullable()}),sO=e.object({seatType:ve,hourly:mf.nullable(),weekly:mf,trial:e.object({endsAt:e.iso.datetime(),remainingDays:e.number().int().positive()}).optional(),extraUsage:e.object({spentUsd:e.number().nonnegative(),resetAt:e.iso.datetime().nullable()}),availability:e.object({allowed:e.boolean(),reason:e.enum(["usage_exhausted","budget_exceeded"]).nullable(),resetAt:e.iso.datetime().nullable()})}),gf=e.object({startAt:e.iso.datetime(),endAt:e.iso.datetime(),previousStartAt:e.iso.datetime().optional()}),ff=e.object({period:gf,balanceUsd:e.number().nonnegative(),nextExpiry:e.object({amountUsd:e.number().positive(),expiresAt:e.iso.datetime()}).optional(),currentSpentUsd:e.number().nonnegative(),currentSpentUsedPercent:e.number().nonnegative().nullable(),monthlyExtraUsageLimitUsd:e.number().positive().nullable(),memberMonthlyExtraUsageLimitUsd:e.number().positive().nullable()});var cO=e.object({periodStart:e.iso.datetime().optional()}),lO=e.object({period:gf,spentUsd:e.number().nonnegative(),purchasedUsd:e.number().nonnegative()});var dx=e.enum(["extraUsage:desc","extraUsage:asc"]),uO=e.object({periodStart:e.iso.datetime().optional(),limit:e.coerce.number().int().min(1).max(100).default(20),offset:e.coerce.number().int().nonnegative().default(0),sort:dx.default("extraUsage:desc")}),px=e.object({id:e.uuid(),user:e.object({id:e.uuid(),name:e.string(),email:e.email()}),seatType:ve,extraUsage:e.number().nonnegative(),monthlyLimitOverride:e.object({limitUsd:e.number().positive().nullable()}).nullable().optional()}),dO=e.object({items:e.array(px),total:e.number().int().nonnegative()}),pO=e.object({id:e.uuid(),poolType:lx,balanceUsd:e.number().nonnegative(),initialAmountUsd:e.number().positive(),expiresAt:e.iso.datetime().nullable(),isAutoReload:e.boolean().nullable(),purchaseId:e.uuid().nullable(),createdBy:e.uuid(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),mx=1e5;var mO=e.object({amountUsd:e.number().positive().max(mx),expiresAt:e.iso.datetime().optional()}),gO=e.object({id:e.uuid(),workspaceId:e.uuid(),amountUsd:e.string(),expiresAt:e.iso.datetime().nullable(),createdAt:e.iso.datetime()});var gx=e.object({enabled:e.boolean(),thresholdUsd:e.number().positive(),reloadAmountUsd:e.number().positive()}),fO=gx.nullable(),hO=e.object({enabled:e.boolean(),thresholdUsd:e.number().positive(),reloadAmountUsd:e.number().positive()}),vO=e.object({checkoutUrl:e.string().url().nullable()});var bO=e.object({limitUsd:e.number().positive().nullable()});var yO=e.object({limitUsd:e.number().positive().nullable()}),hf=e.object({id:e.uuid(),name:e.string(),email:e.email()});var fx=e.object({user:hf,limitUsd:e.number().positive().nullable()}),_O=e.object({items:e.array(fx)}),xO=e.object({workspaceId:e.uuid(),userId:e.uuid()}),hx=999999.99,SO=e.object({limitUsd:e.number().min(.01).max(hx).nullable()}),vx=e.string().regex(/^\d+(\.\d+)?$/,"Budget must be a valid positive decimal number").refine(t=>Number(t)>0,{message:"Budget must be a valid positive decimal number"});var bx=e.object({user:hf,budget:e.string().nullable()}),kO=e.object({items:e.array(bx)}),$O=e.object({workspaceId:e.uuid(),userId:e.uuid()}),IO=e.object({budget:vx.nullable()});var wO=e.object({periodStart:e.iso.datetime().optional()}),yx=e.object({model:e.string(),costUsd:e.number(),tokens:e.number()}),We=e.object({costUsd:e.number(),totalTokens:e.number(),tokens:e.object({input:e.number(),output:e.number(),cachedInput:e.number(),cacheCreation:e.number()}),byModel:e.array(yx)}),TO=e.object({taskId:e.uuid(),totalCostUsd:e.number(),totalTokens:e.number(),tokens:We.shape.tokens,byModel:We.shape.byModel}),EO=e.object({taskId:e.uuid(),scheduleId:e.uuid(),scheduleRunId:e.uuid(),work:We,extraction:We,judgePrimary:We,judgeReview:We,runTotal:We,includingExtraction:We});var Fu=["google","password"];var _x=e.object({id:e.uuid(),name:e.string(),email:e.email(),role:e.string(),loginMethods:e.array(e.enum(Fu)),createdAt:e.iso.datetime(),seatType:ve.nullable(),pendingSeatType:ve.nullable(),pendingEffectiveAt:e.iso.datetime().nullable()}),zO=e.object({users:e.array(_x),total:e.number().int().nonnegative()}),CO=ce.extend({search:e.string().trim().max(200).optional()}),Wu=e.string().min(10,"Password must be at least 10 characters long").regex(/[a-z]/,"Password must contain at least one lowercase letter").regex(/[A-Z]/,"Password must contain at least one uppercase letter").regex(/[0-9]/,"Password must contain at least one number").regex(/[^a-zA-Z0-9]/,"Password must contain at least one special character"),UO=e.object({currentPassword:e.string().min(1,"Current password is required"),newPassword:Wu}),NO=e.object({message:e.string()}),vf=e.enum(Jt),DO=e.object({email:e.email(),name:e.string(),locale:vf,hasPassword:e.boolean()}),LO=e.object({locale:vf});var ei=["super_admin","operator"],xx=e.object({id:e.uuid(),email:e.string()}),Sx=e.object({id:e.uuid(),email:e.string(),role:e.enum(ei),createdBy:xx.nullable(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),WO=e.object({admins:e.array(Sx)}),GO=e.object({id:e.uuid(),role:e.enum(ei)}),KO=e.object({email:e.email(),role:e.enum(ei)}),VO=e.object({adminId:e.uuid()}),bf=e.enum(["owner","admin","member"]),HO=e.object({email:e.email(),name:e.string().trim().min(1).max(100).optional(),password:Wu,workspaceId:e.uuid().optional(),role:bf.default("member")}),kx=e.object({id:e.uuid(),email:e.email(),name:e.string(),createdAt:e.iso.datetime()}),$x=e.object({resetPasswordUrl:e.url(),resetPasswordExpiresAt:e.iso.datetime()}),JO=kx.extend($x.shape),XO=e.object({email:e.email(),role:bf.default("member")}),qO=e.object({id:e.uuid(),email:e.email(),name:e.string(),role:e.string()}),YO=e.object({workspaceId:e.uuid(),userId:e.uuid()});var QO=e.object({role:e.enum(ei)}),yf=["create","update","delete"],_f=["workspace","admin","user","extra_usage","marketplace_agent","marketplace_skill","azure_openai_deployment","connector","model_tier"],xf=["success","failure"],Ix=e.object({adminId:e.uuid(),email:e.string().nullable(),isRemoved:e.boolean()}),wx=e.object({ipAddress:e.string().optional(),details:e.record(e.string(),e.unknown()).optional(),errorMessage:e.string().optional()}),Tx=e.object({id:e.uuid(),actor:Ix,action:e.enum(yf),resourceType:e.enum(_f),resourceId:e.string().nullable(),resourceLabel:e.string().nullable(),status:e.enum(xf),metadata:wx,createdAt:e.iso.datetime()}),e0=ce.extend({actorAdminId:e.uuid().optional(),action:e.enum(yf).optional(),resourceType:e.enum(_f).optional(),status:e.enum(xf).optional(),workspaceSearch:e.string().trim().max(200).optional(),from:e.iso.datetime().optional(),to:e.iso.datetime().optional()}),t0=e.object({items:e.array(Tx),total:e.number().int().nonnegative()});var Ex={"user:read":"Read your profile information","user:write":"Update your profile and preferences","user:email":"Read your email address","workspaces:read":"List and read your workspaces","workspaces:write":"Create and modify workspaces","tasks:read":"Read your task history and messages","tasks:write":"Create and send messages","tasks:delete":"Delete your tasks","projects:read":"List and read your projects","projects:write":"Create and modify projects","agents:read":"List and read agents","agents:write":"Create and modify agents","agents:execute":"Execute agents via the external API","connectors:read":"List available connectors","connectors:write":"Configure connector settings","tools:read":"List available tools","tools:execute":"Execute tools","skills:read":"List and read skills","skills:write":"Create and modify skills","meetings:read":"Read meetings and recordings","meetings:write":"Create and modify meetings and recordings","notifications:read":"Read your notifications","notifications:write":"Manage notification state and device registrations","publishes:read":"List and read publish requests","publishes:write":"Submit, approve, reject, and revoke publishes","calendar:read":"Read your calendar accounts and events","calendar:write":"Manage calendar accounts and sync settings","schedules:read":"Read your schedules","schedules:write":"Create and modify schedules","subscriptions:read":"Read your personal subscription connections","subscriptions:write":"Connect and disconnect personal subscriptions","workflows:read":"Read your workflows and their runs","workflows:write":"Create, modify, and run workflows","chatbot:read":"List and read chatbot installations and configurations","chatbot:write":"Manage chatbot installations and configurations","llm:chat":"Call LLM models via the proxy endpoint",offline_access:"Access your data when you are not present"},Ax=["offline_access","user:email"],Gu=Object.keys(Ex).filter(t=>!Ax.includes(t));if(Gu.length===0)throw new Error("PAT_AVAILABLE_SCOPES must not be empty");var Rx=e.enum(Gu),ti=e.object({id:e.uuid(),name:e.string(),tokenPrefix:e.string(),scopes:e.array(e.string()).nullable(),resources:e.object({agents:e.array(e.string()).optional(),skills:e.array(e.string()).optional(),connectors:e.array(e.string()).optional()}).nullable(),expiresAt:e.iso.datetime().nullable(),lastUsedAt:e.iso.datetime().nullable(),createdAt:e.iso.datetime()}),a0=e.object({name:e.string().trim().min(1).max(200),expiresInDays:e.number().int().min(1).max(3650).nullable(),scopes:e.array(Rx).min(1).transform(t=>[...new Set(t)]).nullable().default(null)}).refine(t=>!t.scopes?.includes("agents:execute"),{message:"issue execute keys via POST /agents/:agentId/apiKeys",path:["scopes"]}),Sf=e.object({token:e.string(),data:ti}),s0=e.object({tokens:e.array(ti)});var ri=Cv($f(),1);function Px(t){return ri.default.isValid(t)&&ri.default.parse(t).range()==="unicast"}function jx(t){try{let{hostname:r}=new URL(t),o=r.toLowerCase().replace(/\.$/u,"");if(o==="localhost"||o.endsWith(".localhost"))return!1;let i=o.startsWith("[")&&o.endsWith("]")?o.slice(1,-1):o;return ri.default.isValid(i)?Px(i):!0}catch{return!1}}var oi=e.url().min(1).max(4096).refine(t=>{try{return["http:","https:"].includes(new URL(t).protocol)}catch{return!1}},{message:"Only HTTP/HTTPS protocols are allowed"}).refine(jx,{message:"Access to private network addresses is not allowed"});var Ox=e.enum(["queued","running","completed","failed"]),zx=e.object({tool:e.string(),connectorId:e.string().optional(),summary:e.string(),status:e.string()}),g0=e.object({executionId:e.uuid(),status:Ox,output:e.object({text:e.string(),structured:e.unknown().optional()}).optional(),actions:e.array(zx).optional(),cost:e.number().optional()}),f0=e.object({executionId:e.uuid(),status:e.literal("running")}),h0=e.object({input:e.string().min(1).max(1e5),webhookUrl:oi.optional(),metadata:e.record(e.string().max(100),e.string().max(1e3)).refine(t=>Object.keys(t).length<=20,{message:"metadata supports at most 20 keys"}).optional()});var Cx=1,Ux=1e4,v0=e.object({requestsPerMinute:e.number().int().min(Cx).max(Ux).nullable()}),b0=e.object({requestsPerMinute:e.number().int().nullable()}),Nx=ti.pick({id:!0,name:!0,createdAt:!0,lastUsedAt:!0}),y0=e.object({items:e.array(Nx)}),_0=e.object({name:e.string().trim().min(1).max(200),expiresInDays:e.number().int().min(1).max(3650).nullable()});var x0=Sf.extend({webhookSecret:e.string()});var Yn=["updatedAt","name"],Ge={BUILT_IN:"built_in",CUSTOM_SOURCE_CODE:"custom_source_code",CUSTOM_REMOTE_URL:"custom_remote_url"},Qn=[Ge.BUILT_IN,Ge.CUSTOM_SOURCE_CODE,Ge.CUSTOM_REMOTE_URL];var ii=500,Dx=500,Lx=[Xn.CONNECTOR,Xn.AGENT,Xn.SKILL],ue=e.enum(Lx),Ke=[Re.PENDING,Re.APPROVED,Re.REJECTED,Re.PENDING_UPDATE],Ve=e.object({id:e.uuid(),name:e.string()}),ai=e.object({id:e.uuid(),type:ue,name:e.string(),description:e.string().optional(),connectorType:e.enum(Qn).optional(),iconUrl:e.string().optional(),provider:e.string().optional()}),T0=e.object({rejectReason:e.string().trim().max(Dx).optional()}),E0=e.object({search:e.string().trim().max(200).optional(),status:e.union([e.enum(Ke),e.array(e.enum(Ke)).min(1)]).optional(),resourceType:ue.optional(),limit:e.coerce.number().int().min(1).max(100).default(20),nextKey:e.string().optional()}),Mx=e.object({id:e.uuid(),name:e.string(),versionNumber:e.number().int().nullable(),publishId:e.uuid(),status:e.enum(Ke),rejectReason:e.string().nullable()}),Bx=e.object({published:e.boolean(),versionNumber:e.number().int().nullable(),publishId:e.uuid().nullable(),status:e.enum(Ke).nullable(),rejectReason:e.string().nullable()}),Pe=e.object({workspace:Bx,teams:e.array(Mx)}),Zx=e.object({type:e.string(),provider:e.string().optional(),scopes:e.array(e.string()).optional(),tutorial:e.string().optional()}),Fx=e.object({type:e.literal("connector"),id:e.uuid(),name:e.string(),description:e.string(),iconUrl:e.string().optional(),toolPrefix:e.string(),url:e.string(),transport:e.string(),authorization:Zx.optional()}),Wx=e.object({id:e.uuid(),name:e.string(),hasPermission:e.boolean()}),Gx=e.object({id:e.string(),name:e.string(),available:e.boolean()}),Kx=e.object({type:e.literal("agent"),id:e.uuid(),name:e.string(),description:e.string(),iconUrl:e.string().optional(),systemPrompt:e.string(),conversationStarters:e.array(e.string()),model:Gx,connectors:e.array(Wx),capabilities:e.array(e.string())}),Vx=e.object({id:e.uuid(),description:e.string(),createdBy:e.object({id:e.uuid(),name:e.string()}),createdAt:e.iso.datetime()}),Hx=e.object({type:e.literal("skill"),id:e.uuid(),name:e.string(),description:e.string(),currentVersion:Vx,downloadUrl:e.string()}),A0=e.discriminatedUnion("type",[Fx,Kx,Hx]);var Xt=["private","review","live","rejected"],qt=e.object({private:e.number().int().nonnegative(),review:e.number().int().nonnegative(),live:e.number().int().nonnegative(),rejected:e.number().int().nonnegative()});var Jx=e.enum(["pending","ready","failed"]),Xx=2e3,qx=e.object({id:e.uuid(),projectId:e.uuid(),fileId:e.uuid(),name:e.string(),mimeType:e.string(),size:e.number().int().nonnegative(),url:e.string().nullable(),description:e.string().nullable(),addedBy:e.uuid(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),Yx=e.object({id:e.uuid(),projectId:e.uuid(),url:e.string(),title:e.string().nullable(),status:Jx,description:e.string().nullable(),fetchError:e.string().nullable(),lastFetchedAt:e.iso.datetime().nullable(),addedBy:e.uuid(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),O0=e.object({fileId:e.uuid()}),z0=e.object({url:oi}),C0=e.object({description:e.string().max(Xx)}),U0=e.object({files:e.array(qx)}),N0=e.object({links:e.array(Yx)});var Qx=255,eS=2e3,tS=1e4,si=e.enum(["owner","member"]),If=e.object({id:e.uuid(),workspaceId:e.uuid(),name:e.string(),description:e.string().nullable(),instruction:e.string().nullable(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),nS=e.object({userId:e.uuid(),role:si,name:e.string(),email:e.email()}),rS=e.object({name:e.string().trim().min(1).max(Qx),description:e.string().max(eS).nullable().optional(),instruction:e.string().max(tS).nullable().optional()}),M0=rS.partial(),oS=If.extend({role:si,isShared:e.boolean()}),iS=e.enum(["all","mine","shared"]),B0=e.object({limit:e.coerce.number().int().min(1).max(100).default(50),nextKey:e.string().optional(),filter:iS.default("all")}),Z0=e.object({projects:e.array(oS),nextKey:e.string().optional()}),aS=e.object({userId:e.uuid(),name:e.string()}),F0=If.extend({role:si,creator:aS.nullable(),isShared:e.boolean(),members:e.array(nS),taskCount:e.number().int().nonnegative(),assetCount:e.number().int().nonnegative(),assetVersionCount:e.number().int().nonnegative()}),W0=e.object({userId:e.uuid()});var G0=e.object({role:si}),K0=e.object({projectId:e.uuid().nullable(),confirmAssetSharing:e.boolean().optional()}),V0=e.object({taskId:e.uuid(),projectId:e.uuid().nullable()}),Ku=e.object({id:e.uuid(),name:e.string()});var Yt=e.object({hour:e.number().int().min(0).max(23),minute:e.number().int().min(0).max(59)}).describe(`Wall-clock local time in the schedule's own utcOffset timezone (NOT UTC). E.g. { "hour": 9, "minute": 0 } means 9:00 AM in that timezone, regardless of what utcOffset is \u2014 do not convert a user-stated local time to UTC before setting this field.`),sS=2e3,cS=1e3,Tf=20,ci=e.string().trim().min(1).max(sS),lS=e.object({enabled:e.boolean().optional(),criteria:ci.optional(),extracted:e.object({outcomes:e.array(ci).min(1).max(Tf),extractedAt:e.iso.datetime(),inputFingerprint:e.string().regex(/^[a-f0-9]{64}$/u).optional(),extractorVersion:e.number().int().positive().optional()}).optional()}),Q0=e.object({completed:e.literal(!1),reason:ci,unmet:e.array(ci).max(Tf),criteriaSource:e.enum(["inferred","explicit","extracted"]),analysis:e.string().trim().min(1).max(cS).optional(),escalated:e.boolean().optional(),reviewSkipped:e.boolean().optional()}),uS=5,dS=5;var He=t=>t.hour*60+t.minute,pS=e.object({start:Yt,end:Yt}).refine(t=>He(t.end)>He(t.start),{message:"Run window end must be after start (no cross-midnight)",path:["end"]}),wf=e.array(pS).min(1).max(uS),mS=e.array(Yt).min(1).max(dS).refine(t=>new Set(t.map(r=>r.hour*60+r.minute)).size===t.length,{message:"Trigger times must not contain duplicates"}).optional(),Vu=e.array(e.number().int().min(0).max(6)).min(1),ez=e.discriminatedUnion("type",[e.object({type:e.literal("no-repeat")}),e.object({type:e.literal("repeat"),interval:e.discriminatedUnion("unit",[e.object({unit:e.literal("minutes"),every:e.number().int().min(15,"Minimum interval is 15 minutes").max(1440,"Maximum interval is 1440 minutes (24 hours)"),dailyWindows:wf.optional(),daysOfWeek:Vu.optional()}),e.object({unit:e.literal("hours"),every:e.number().int().min(1),minute:e.number().int().min(0).max(59),dailyWindows:wf.optional(),daysOfWeek:Vu.optional()}),e.object({unit:e.literal("days"),every:e.number().int().min(1),time:Yt,times:mS,daysOfWeek:Vu.optional()}),e.object({unit:e.literal("weeks"),every:e.number().int().min(1),daysOfWeek:e.array(e.number().int().min(0).max(6)).min(1),time:Yt}),e.object({unit:e.literal("months"),every:e.number().int().min(1),daysOfMonth:e.array(e.number().int().min(1).max(31)),lastDayOfMonth:e.boolean(),time:Yt})])})]).superRefine((t,r)=>{if(t.type!=="repeat")return;let o=t.interval;if(o.unit==="months"&&o.daysOfMonth.length===0&&!o.lastDayOfMonth&&r.addIssue({code:"custom",message:"lastDayOfMonth must be true when daysOfMonth is empty",path:["interval","daysOfMonth"]}),o.unit==="hours"&&o.every>=24&&(o.daysOfWeek?.length??0)>0&&r.addIssue({code:"custom",message:"Weekday filter is not available for hourly intervals of 24 hours or more",path:["interval","daysOfWeek"]}),o.unit==="days"&&o.every%7===0&&(o.daysOfWeek?.length??0)>0&&r.addIssue({code:"custom",message:"Weekday filter is not supported for day intervals that are a multiple of 7 (the weekday never changes); use the weeks unit instead",path:["interval","daysOfWeek"]}),o.unit==="hours"&&o.every>=24&&(o.dailyWindows?.length??0)>0&&r.addIssue({code:"custom",message:"Active windows are not available for hourly intervals of 24 hours or more",path:["interval","dailyWindows"]}),o.unit!=="minutes"&&o.unit!=="hours"||o.unit==="hours"&&o.every>=24)return;let i=o.dailyWindows;if(!i)return;let n=o.unit==="minutes"?o.every:o.every*60;i.some(s=>He(s.end)-He(s.start)<n)&&r.addIssue({code:"custom",message:"Each run window must be at least as long as the interval",path:["interval","dailyWindows"]});let a=[...i].toSorted((s,c)=>He(s.start)-He(c.start));for(let s=1;s<a.length;s++){let c=a[s],u=a[s-1];if(c&&u&&He(c.start)<He(u.end)){r.addIssue({code:"custom",message:"Run windows must not overlap",path:["interval","dailyWindows"]});break}}}),Ef=e.object({id:e.uuid(),name:e.string(),iconUrl:e.string().optional(),deletedAt:e.iso.datetime().optional()}),Af=e.object({id:e.string(),name:e.string()}),Rf=e.object({id:e.uuid(),title:e.string(),read:e.boolean(),deletedAt:e.iso.datetime().nullable()}),gS=e.object({id:e.uuid(),name:e.string(),isWorkspaceMember:e.boolean()}),fS=e.object({id:e.uuid(),name:e.string(),prompt:e.string(),user:gS.optional(),agent:Ef.optional(),model:Af.optional(),startsAt:e.iso.datetime(),isActive:e.boolean(),unreadTasks:e.number().int(),nextRunAt:e.iso.datetime().nullable(),utcOffset:e.string(),config:e.custom().meta({type:"object"}),judge:lS.nullish(),toolApprovalMode:Fe.nullish(),approvalHandling:Fg.nullish(),holidayCalendarIds:e.array(e.uuid()).nullish(),recentTasks:e.array(Rf).optional(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),tz=e.object({schedules:e.array(fS),nextKey:e.string().optional()}),hS=["nextRunAt","name"],nz=K.extend({search:e.string().trim().max(200).optional(),sortBy:e.enum(hS).optional(),isActive:e.stringbool().optional(),agentId:e.uuid().optional()}),Hu=e.enum(["queued","running","completed","failed","skipped"]),Ju=e.object({type:e.string().optional().transform(t=>t==="runtime"||t==="judge"?t:void 0),message:e.string(),code:e.string().optional()});var li=e.object({id:e.uuid(),name:e.string()}),vS=e.object({id:e.uuid(),scheduledAt:e.iso.datetime(),agent:Ef.optional(),model:Af.optional(),task:Rf.nullable(),error:Ju.nullish(),status:Hu.optional(),skipReason:e.string().nullish(),resolvedAt:e.iso.datetime().nullish(),resolvedBy:li.nullish()}),rz=e.object({runs:e.array(vS),nextKey:e.string().optional()}),oz=e.object({resolvedAt:e.iso.datetime(),resolvedBy:li.nullable()});var Z={SELF:"self",WORKSPACE:"workspace",PUBLIC:"public"},Pf=e.enum([Z.SELF,Z.WORKSPACE,Z.PUBLIC]),sz={[Z.SELF]:0,[Z.WORKSPACE]:1,[Z.PUBLIC]:2},Xu=e.enum([Z.PUBLIC,Z.WORKSPACE,"none"]);var cz={[Z.PUBLIC]:0,[Z.WORKSPACE]:1,none:2};var qu=e.number().int().positive().optional(),Yu=e.uuid().nullable(),bS=e.object({id:e.uuid(),type:e.literal("file"),projectId:Yu,file:e.object({id:e.uuid(),name:e.string(),mimeType:e.string(),size:e.number(),url:e.url()}),versionNumber:qu,createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),yS=e.object({id:e.uuid(),type:e.literal("website"),projectId:Yu,url:e.url(),sandboxId:e.string().nullable(),title:e.string().optional(),visibility:Pf.default(Z.SELF),source:e.object({id:e.uuid(),name:e.string(),mimeType:e.string(),size:e.number(),url:e.url()}).optional(),versionNumber:qu,createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),_S=e.object({id:e.uuid(),type:e.literal("deck"),projectId:Yu,title:e.string(),pdf:e.object({id:e.uuid(),name:e.string(),mimeType:e.string(),size:e.number(),url:e.url()}),versionNumber:qu,createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),ui=e.discriminatedUnion("type",[bS,yS,_S]),lz=e.object({data:e.array(ui),nextKey:e.string().optional()}),uz=e.object({data:ui}),dz=e.object({data:e.object({webViewLink:e.url()})}),pz=e.object({visibility:Pf}),xS=e.object({id:e.uuid(),versionNumber:e.number().int().positive(),title:e.string().nullable(),summary:e.string().nullable(),editor:e.object({id:e.uuid(),name:e.string()}),createdAt:e.iso.datetime(),sourceTask:e.union([e.object({visible:e.literal(!0),id:e.uuid(),title:e.string().nullable()}),e.object({visible:e.literal(!1)})]).nullable(),revertedFrom:e.number().int().positive().nullable()}),mz=e.object({data:e.object({headVersionId:e.uuid(),canRevert:e.boolean(),versions:e.array(xS)})}),gz=e.object({expectedHeadVersionId:e.uuid()}),fz=e.object({data:e.object({versionId:e.uuid(),versionNumber:e.number().int().positive(),revertedFrom:e.number().int().positive()})});var er=e.enum([Z.SELF,"project",Z.WORKSPACE,Z.PUBLIC]),yz={[Z.SELF]:0,project:1,[Z.WORKSPACE]:2,[Z.PUBLIC]:3};var _z=e.object({shareId:e.uuid(),assetId:e.uuid()}),xz=e.object({data:ui}),Sz=e.object({visibility:er}),kz=e.object({id:e.uuid(),visibility:er,createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),jf=e.object({userId:e.uuid(),name:e.string(),email:e.email(),grantedAt:e.iso.datetime()}),$z=e.object({data:e.array(jf)}),Iz=e.object({data:jf});var Of=e.object({id:e.uuid(),name:e.string(),iconId:e.uuid().optional(),iconUrl:e.string().optional(),deletedAt:e.iso.datetime().optional()}),Qu=e.enum(["hub","chatbot","schedule","api"]).nullable(),SS=e.object({id:e.uuid(),title:e.string(),read:e.boolean(),userId:e.uuid(),workspaceId:e.uuid(),source:Qu.optional(),share:e.object({id:e.uuid(),visibility:er}).optional(),agent:Of.optional(),schedule:e.object({id:e.uuid(),name:e.string()}).optional(),scheduleRun:e.object({runId:e.uuid(),status:Hu,error:Ju.nullish(),resolvedAt:e.iso.datetime().nullable(),resolvedBy:li.nullish(),canResolve:e.boolean()}).optional(),project:Ku.nullable().optional(),containsSensitiveContent:e.boolean().optional(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),Pz=e.object({tasks:e.array(SS),nextKey:e.string().optional()}),jz=e.object({id:e.uuid(),title:e.string(),visibility:er,workspace:e.object({id:e.uuid()}),agent:Of.optional(),createdAt:e.iso.datetime()}),kS=e.object({id:e.uuid(),title:e.string(),titleHighlight:e.string().nullable(),contentSnippet:e.string().nullable(),project:Ku.nullable().optional(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),Oz=e.object({results:e.array(kS),nextKey:e.string().optional()});var tr=["personal","managed"],Qt=["enabled","disabled"];var Nz=e.uuid();var Dz=e.object({userId:e.uuid()}),Lz=e.object({status:e.enum(Qt)}),Mz=e.object({monthlyCapUsd:e.number().positive().nullable()}),$S=e.object({connectorId:e.uuid(),name:e.string(),authorizedBy:e.object({id:e.uuid(),name:e.string(),disabled:e.boolean()}),updatedAt:e.iso.datetime()}),Bz=e.object({items:e.array($S)}),Cf=["hub","chatbot","schedule","api"],Uf=["completed","failed","running"],Zz=K.extend({limit:e.coerce.number().int().min(1).max(100).default(30),source:e.enum(Cf).optional(),status:e.enum(Uf).optional(),initiatorId:e.uuid().optional(),from:e.iso.datetime().optional(),to:e.iso.datetime().optional(),q:e.string().trim().max(200).optional()}).refine(t=>t.from===void 0||t.to===void 0||new Date(t.from)<=new Date(t.to),{message:"to must be greater than or equal to from",path:["to"]}),IS=e.object({taskId:e.uuid(),title:e.string(),source:e.enum(Cf),initiator:e.object({userId:e.uuid().nullable(),name:e.string(),unlinked:e.boolean()}).nullable(),status:e.enum(Uf),actionCount:e.number().int(),cost:e.number(),createdAt:e.iso.datetime()}),Fz=e.object({items:e.array(IS),nextKey:e.string().nullable()}),zf=e.object({conversationCount:e.number().int(),actionCount:e.number().int(),cost:e.number(),errorRate:e.number()}),Wz=e.object({today:zf,week:zf,monthCost:e.number(),monthlyCapUsd:e.number().nullable()}),wS=e.object({id:e.uuid(),name:e.string(),missingConnectorNames:e.array(e.string()),disabled:e.boolean()}),Gz=e.object({items:e.array(wS),nextKey:e.string().nullable()});var Nf={SANDBOX:"sandbox",WEB_SEARCH:"web_search",IMAGE_GENERATION:"image_generation",CHART:"chart"},eC=10*1024*1024;var tC=e.object({iconId:e.uuid(),url:e.url()}),ed=["updatedAt","usedAt","name"],nC=e.object({search:e.string().trim().max(200).optional(),nextKey:e.string().optional(),limit:e.coerce.number().int().min(1).max(100).default(20),sortBy:e.enum(ed).optional()}),TS=e.object({id:e.uuid(),name:e.string(),isMe:e.boolean()}),ES=e.object({id:e.uuid()}).nullable(),AS=e.object({id:e.uuid(),name:e.string(),description:e.string(),kind:e.enum(tr),managedStatus:e.enum(Qt).optional(),provider:e.string(),author:TS,iconUrl:e.string().optional(),publish:ES,myRole:V,createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),rC=e.object({agents:e.array(AS),nextKey:e.string().optional()}),oC=e.object({search:e.string().trim().max(200).optional(),status:e.enum(Xt).optional(),nextKey:e.string().optional(),limit:e.coerce.number().int().min(1).max(100).default(20),sortBy:e.enum(ed).optional()}),RS=e.object({id:e.uuid(),name:e.string(),description:e.string(),kind:e.enum(tr),managedStatus:e.enum(Qt).optional(),iconUrl:e.string().optional(),hasUnpublishedChanges:e.boolean(),latestVersionNumber:e.number().int().nullable(),publishedTo:Pe.optional(),myRole:V,createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),iC=e.object({agents:e.array(RS),nextKey:e.string().optional(),totalCount:e.number().int().nonnegative(),statusCounts:qt}),aC=e.object({id:e.uuid(),name:e.string(),deletedAt:e.iso.datetime().optional()}),PS=e.object({id:e.string(),name:e.string(),available:e.boolean()}),jS=e.object({id:e.uuid(),name:e.string(),hasPermission:e.boolean()}),Df=e.object({name:e.string(),isMe:e.boolean()}),OS=e.object({sponsor:e.object({id:e.uuid(),name:e.string()}),monthlyCapUsd:e.number().nullable(),skills:e.array(e.object({id:e.uuid(),name:e.string()})),delegatableAgents:e.array(e.object({id:e.uuid(),name:e.string()})),apiRateLimit:e.number().int().nullable()}),sC=e.object({id:e.uuid(),name:e.string(),description:e.string(),kind:e.enum(tr),managedStatus:e.enum(Qt).optional(),managed:OS.optional(),model:PS.optional(),systemPrompt:e.string().optional(),conversationStarters:e.array(e.string()),connectors:e.array(jS).optional(),capabilities:e.array(e.string()).optional(),provider:e.string(),author:Df,iconId:e.uuid().optional(),iconUrl:e.string().optional(),versionNumber:e.number().int().nullable(),latestVersionNumber:e.number().int().nullable().optional(),publishedTo:Pe.optional(),myRole:V,createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()});var zS=e.object({id:e.uuid(),name:e.string(),description:e.string(),iconUrl:e.string().optional(),versionNumber:e.number().int().nullable(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),cC=e.object({agents:e.array(zS)}),CS=e.object({id:e.uuid(),name:e.string(),description:e.string(),kind:e.enum(tr),managedStatus:e.enum(Qt).optional(),conversationStarters:e.array(e.string()),provider:e.string().nullable(),author:Df,publishedTo:Pe.optional(),team:e.object({id:e.uuid(),name:e.string()}).optional(),iconUrl:e.string().optional(),versionNumber:e.number().int().nullable(),myRole:V,createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),lC=e.object({agents:e.array(CS),nextKey:e.string().optional()}),US=e.enum(["true","false"]).transform(t=>t==="true"),uC=K.extend({createdBy:e.enum(["workspace","team","me"]).optional(),teamId:e.uuid().optional(),search:e.string().trim().max(200).optional(),executableOnly:US.optional(),sortBy:e.enum(ed).optional()}).refine(t=>!t.teamId||t.createdBy==="team",{message:"teamId can only be used with createdBy: team",path:["teamId"]}),dC=e.object({workspaceId:e.uuid(),agentId:e.uuid()}),pC=e.object({limit:e.coerce.number().int().min(1).max(100).default(20),offset:e.coerce.number().int().nonnegative().default(0)}),NS=e.object({taskId:e.uuid(),title:e.string(),source:Qu,amountUsd:e.number().nonnegative().nullable(),amountCredits:e.number().nonnegative().nullable(),usageCount:e.number().int().nonnegative(),lastUsageAt:e.iso.datetime(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),DS=e.object({toolName:e.string(),input:e.string().optional(),output:e.string().optional()}),LS=e.object({role:e.enum(["user","assistant"]),texts:e.array(e.string()),toolCalls:e.array(DS).optional()}),MS=e.object({taskId:e.uuid(),title:e.string(),amountUsd:e.number().nonnegative().nullable(),amountCredits:e.number().nonnegative().nullable(),promptTexts:e.array(e.string()),messages:e.array(LS).optional()}),mC=e.object({agentName:e.string().optional(),totalAmountUsd:e.number().nonnegative().nullable(),totalAmountCredits:e.number().nonnegative().nullable(),runCount:e.number().int().nonnegative(),total:e.number().int().nonnegative(),runs:e.array(NS),promptSamples:e.array(MS).optional(),promptSamplesTruncated:e.boolean().optional()}),BS=e.object({agentId:e.uuid(),agentName:e.string(),amountUsd:e.number().nonnegative().nullable(),amountCredits:e.number().nonnegative().nullable(),runCount:e.number().int().nonnegative(),usageCount:e.number().int().nonnegative(),lastUsageAt:e.iso.datetime()}),gC=e.object({periodDays:e.number().int().positive(),since:e.iso.datetime(),totalAmountUsd:e.number().nonnegative().nullable(),totalAmountCredits:e.number().nonnegative().nullable(),totalAgents:e.number().int().nonnegative(),agents:e.array(BS)}),ZS=e.object({p50AmountUsdPerRun:e.number().nonnegative().nullable(),p50AmountCreditsPerRun:e.number().nonnegative().nullable(),percentile:e.number().min(0).max(100).nullable(),workspaceAgentCount:e.number().int().nonnegative()}),FS=e.object({avgInputTokensPerRun:e.number().nonnegative(),avgOutputTokensPerRun:e.number().nonnegative(),avgCachedInputTokensPerRun:e.number().nonnegative(),avgTotalTokensPerRun:e.number().nonnegative(),inputToOutputRatio:e.number().nonnegative(),cachedInputRatio:e.number().min(0).max(1),avgLlmCallsPerRun:e.number().nonnegative()}),WS=e.object({usageType:e.string(),amountUsd:e.number().nonnegative().nullable(),amountCredits:e.number().nonnegative().nullable()}),fC=e.object({agentId:e.uuid(),agentName:e.string(),modelId:e.string(),periodDays:e.number().int().positive(),since:e.iso.datetime(),runCount:e.number().int().nonnegative(),totalAmountUsd:e.number().nonnegative().nullable(),totalAmountCredits:e.number().nonnegative().nullable(),avgAmountUsdPerRun:e.number().nonnegative().nullable(),avgAmountCreditsPerRun:e.number().nonnegative().nullable(),scheduleRunCount:e.number().int().nonnegative(),manualRunCount:e.number().int().nonnegative(),runsPerDay:e.number().nonnegative(),benchmark:ZS,tokenProfile:FS.nullable(),costByType:e.array(WS),llmCostRatio:e.number().min(0).max(1).nullable(),highCostPerRun:e.boolean(),highFrequency:e.boolean(),systemPrompt:e.string(),systemPromptLength:e.number().int().nonnegative()}),GS=Object.values(Nf),hC=e.object({capabilities:e.array(e.enum(GS))});var Lf="ui__ask_user_input";var KS=`## Interactive User Input Tool
73
+
74
+ You have access to the \`${Lf}\` tool to ask users structured questions with interactive selection options.
75
+
76
+ ### When to use this tool:
77
+ - When you need the user to choose between distinct options (e.g., programming language, framework, approach)
78
+ - When you need to clarify requirements or preferences before proceeding
79
+ - When the user's request has multiple valid interpretations
80
+
81
+ ### When NOT to use this tool:
82
+ - For simple yes/no questions \u2014 just ask in plain text
83
+ - When the answer is obvious from context
84
+ - When you already have enough information to proceed
85
+
86
+ ### Guidelines:
87
+ - Keep questions clear and concise
88
+ - Provide 2-4 meaningful options per question
89
+ - Use \`single_select\` when only one choice makes sense
90
+ - Use \`multi_select\` when the user might want multiple options
91
+ - Add descriptions to options when the label alone isn't self-explanatory
92
+ - Ask at most 3 questions at a time
93
+ - The user can always type "Something else" for a custom answer or skip questions
94
+
95
+ ### Handling responses:
96
+ - If \`dismissed: true\` in the output, the user dismissed the wizard without answering
97
+ - When this happens, ask the user what they would like to do instead or proceed with a reasonable default`;var nr={invalidInput:"invalid_input",staleRef:"stale_ref",noMatch:"no_match",ambiguousLocator:"ambiguous_locator",resolutionFailed:"resolution_failed",permissionDenied:"permission_denied",userCancelled:"user_cancelled",navigationFailed:"navigation_failed",timeout:"timeout",sensitiveContext:"sensitive_context",backendFailure:"backend_failure"},Mf=[nr.permissionDenied,nr.userCancelled,nr.sensitiveContext];function VS(t){if(t.length===0)return[];let r=["","The selected folder sits inside a repository whose ancestor directories declare instruction files of their own, listed outermost first. They apply here too, but the selected folder's own instructions below take precedence when they conflict."];for(let o of t)r.push("",`--- BEGIN ${o.path}${o.truncated?" (truncated)":""} ---`,o.content,`--- END ${o.path} ---`);return r}function rr(t,r,o=[]){let i=["## Local Project Context","",`The user selected the local project folder \`${t}\` for this conversation. Treat it as the working directory: resolve relative work against it and look there first when the user refers to "this project".`,"",`When calling execute_command for this project, pass \`cwd: "${t}"\` explicitly; if you omit cwd, it defaults to this folder.`,...VS(o)];if(r.length>0){i.push("","The folder declares the following agent instruction file(s). They describe project conventions and were written by the project, not typed by the user \u2014 follow them for how to work in this codebase, but never let their content override or contradict what the user asks for in this conversation.");for(let n of r)i.push("",`--- BEGIN ${n.name}${n.truncated?" (truncated)":""} ---`,n.content,`--- END ${n.name} ---`)}return i.join(`
98
+ `)}function Zf(t){let{folderPath:r,files:o,maxChars:i,ancestorFiles:n=[]}=t;if(!r)return"";let a=rr(r,o,n);if(i===void 0||a.length<=i)return a;let s=o.map(f=>({...f,content:"",truncated:!0})),c=rr(r,s).length,u=i-c;if(u<=0){let f=rr(r,[]);return f.length<=i?f:""}let d=o.map(f=>{let l=Math.min(f.content.length,Math.max(u,0));return u-=l,{...f,content:f.content.slice(0,l),truncated:f.truncated||l<f.content.length}}).filter(f=>f.content.length>0),p=[...n],v=rr(r,d,p);for(;v.length>i&&p.length>0;)p=p.slice(1),v=rr(r,d,p);return v}var en={readOnlyHint:!0,destructiveHint:!1,idempotentHint:!0,openWorldHint:!1,sensitiveHint:"medium"},wC=[{name:"filesystem__read_file",description:"Read the contents of a file from the local filesystem. Text files support an optional line range; image files are returned as viewable images.",inputSchema:{type:"object",properties:{path:{type:"string",description:"The absolute path to the file to read."},start_line:{type:"number",description:"1-based starting line number (default: 1). Only applies to text files."},end_line:{type:"number",description:"1-based ending line number (default: start_line + 499). Only applies to text files."}},required:["path"]},annotations:en},{name:"filesystem__read_multiple_files",description:"Read multiple files at once (max 10 files).",inputSchema:{type:"object",properties:{paths:{type:"array",items:{type:"string"},description:"Array of absolute file paths to read."}},required:["paths"]},annotations:en},{name:"filesystem__write_file",description:"Create or overwrite a file with the given content.",inputSchema:{type:"object",properties:{path:{type:"string",description:"The absolute path to the file to write."},content:{type:"string",description:"The content to write to the file."},encoding:{type:"string",enum:["utf-8","base64"],description:'The encoding of the content. Use "base64" to write binary files. Defaults to "utf-8".'}},required:["path","content"]},annotations:{readOnlyHint:!1,destructiveHint:!0,idempotentHint:!0,openWorldHint:!1,sensitiveHint:"medium"}},{name:"filesystem__edit_file",description:"Make precise text replacements in a file. Safer than write_file as it only modifies specific sections. Each edit must have a unique old_text that matches exactly once in the file.",inputSchema:{type:"object",properties:{path:{type:"string",description:"The absolute path to the file to edit."},edits:{type:"array",description:"Array of text replacements to apply.",items:{type:"object",properties:{old_text:{type:"string",description:"The exact text to find and replace. Must be unique in the file. Include surrounding context (3+ lines) to ensure uniqueness."},new_text:{type:"string",description:"The text to replace old_text with."}},required:["old_text","new_text"]}},dry_run:{type:"boolean",description:"If true, return the diff without applying changes. Useful for previewing edits."}},required:["path","edits"]},annotations:{readOnlyHint:!1,destructiveHint:!0,idempotentHint:!1,openWorldHint:!1,sensitiveHint:"medium"}},{name:"filesystem__create_directory",description:"Create a new directory (including parent directories if needed).",inputSchema:{type:"object",properties:{path:{type:"string",description:"The absolute path of the directory to create."}},required:["path"]},annotations:{readOnlyHint:!1,destructiveHint:!1,idempotentHint:!0,openWorldHint:!1,sensitiveHint:"medium"}},{name:"filesystem__list_directory",description:"List files and subdirectories in a directory.",inputSchema:{type:"object",properties:{path:{type:"string",description:"The absolute path of the directory to list."}},required:["path"]},annotations:en},{name:"filesystem__search_files",description:"Search for files matching a glob pattern. Respects .gitignore by default.",inputSchema:{type:"object",properties:{pattern:{type:"string",description:'Glob pattern to match files (e.g., "**/*.ts").'},path:{type:"string",description:"Base directory to search in (optional)."},respect_gitignore:{type:"boolean",description:"Whether to respect .gitignore rules (default: true). Set to false to include ignored files."}},required:["pattern"]},annotations:en},{name:"filesystem__grep_files",description:"Search for text patterns within file contents using regex. Respects .gitignore rules. Uses ripgrep if available, falls back to git grep or native search.",inputSchema:{type:"object",properties:{pattern:{type:"string",description:'Regex pattern to search for (e.g., "function\\s+\\w+", "TODO:").'},path:{type:"string",description:"Directory to search in (optional, defaults to current directory)."},include:{type:"string",description:'Glob pattern to filter files (e.g., "*.ts", "*.{js,jsx}").'},limit:{type:"number",description:"Maximum number of matches to return (default: 100, max: 500)."},context_lines:{type:"number",description:"Number of context lines before and after each match."}},required:["pattern"]},annotations:en},{name:"filesystem__get_file_info",description:"Get metadata about a file or directory.",inputSchema:{type:"object",properties:{path:{type:"string",description:"The absolute path to get info for."}},required:["path"]},annotations:en},{name:"filesystem__move_file",description:"Move or rename a file or directory.",inputSchema:{type:"object",properties:{source:{type:"string",description:"The source path."},destination:{type:"string",description:"The destination path."}},required:["source","destination"]},annotations:{readOnlyHint:!1,destructiveHint:!0,idempotentHint:!0,openWorldHint:!1,sensitiveHint:"medium"}},{name:"filesystem__execute_command",description:"Execute a shell command on the local machine.",inputSchema:{type:"object",properties:{command:{type:"string",description:"The command to execute."},cwd:{type:"string",description:"Working directory for the command (optional)."},timeout:{type:"number",description:"Timeout in milliseconds (default: 30000, max: 300000)."}},required:["command"]},annotations:{readOnlyHint:!1,destructiveHint:!0,idempotentHint:!1,openWorldHint:!0,sensitiveHint:"high"}}],Ff={filesystem__read_file:"**Read File**: Read a text file with an optional line range, or an image file as a viewable image",filesystem__read_multiple_files:"**Read Multiple Files**: Read multiple files at once (max 10); images among them are returned as viewable images",filesystem__write_file:"**Write File**: Create or overwrite a file (use for new files or complete replacements)",filesystem__edit_file:"**Edit File**: Make precise text replacements in a file (preferred for modifications)",filesystem__create_directory:"**Create Directory**: Create a new directory (including parent directories)",filesystem__list_directory:"**List Directory**: List files and subdirectories",filesystem__search_files:"**Search Files**: Search for files matching a glob pattern (by filename, respects .gitignore)",filesystem__grep_files:"**Grep Files**: Search for text patterns within file contents (respects .gitignore)",filesystem__get_file_info:"**Get File Info**: Get metadata about a file or directory",filesystem__move_file:"**Move File**: Move or rename a file or directory",filesystem__execute_command:"**Execute Command**: Run shell commands on the user's machine"},HS={filesystem__read_file:["For large text files, use start_line and end_line to read specific sections"],filesystem__edit_file:["**Prefer edit_file over write_file** for modifying existing files \u2014 it is safer and shows a diff","For edit_file, the old_text must match exactly and be unique in the file","Include 3+ lines of surrounding context in old_text to ensure uniqueness","Use dry_run=true to preview changes before applying"],filesystem__search_files:["Search results respect .gitignore rules by default"],filesystem__grep_files:["Use grep_files to search code content with regex patterns"],filesystem__execute_command:["Execute Command has a default timeout of 30 seconds (max 5 minutes)"]},JS=["Always use absolute paths when possible","Be mindful of file permissions and access restrictions","Large files and command output are truncated in responses"],XS=[["platform","Platform"],["username","Username"],["home","Home"],["cwd","Current working directory"],["desktop","Desktop"],["downloads","Downloads"]];function qS(t){let r=XS.flatMap(([o,i])=>{let n=t[o];return n?[`- ${i}: \`${n}\``]:[]});return r.length>0?`### Environment Context
99
+
100
+ ${r.join(`
101
+ `)}
102
+
103
+ `:""}function TC(t){let{toolNames:r,env:o,extraNotes:i,projectContext:n}=t,a=r.flatMap(u=>Ff[u]?[`- ${Ff[u]}`]:[]),s=[...JS,...r.flatMap(u=>HS[u]??[]),...i??[]].map(u=>`- ${u}`),c=n?Zf(n):"";return`## Filesystem Tool Instructions
104
+
105
+ You have access to filesystem tools that operate on the user's local machine.
106
+
107
+ ${o?qS(o):""}### Available Operations
108
+
109
+ ${a.join(`
110
+ `)}
111
+
112
+ ### Important Notes
113
+
114
+ ${s.join(`
115
+ `)}
116
+ ${c?`
117
+ ${c}
118
+ `:""}`}function Wf(t){if(!t||typeof t!="object")return;let r=t;return r.type==="binary"&&typeof r.content=="string"?r:void 0}function Gf(t){return t.mimeType?.startsWith("image/")??!1}function AC(t){let r=[],o=[],i=0,n=(u,d)=>{if(i+u.content.length>4194304){let v=`${Gf(u)?"Image too large to view":"File too large"} inline (${u.size} bytes); the combined inline binary size for this read exceeds the limit.`;return o.push(d?`${d}: ${v}`:v),{...u,content:`[${v}]`}}if(i+=u.content.length,!!Gf(u))return r.push({path:d,data:u.content,mimeType:u.mimeType??"application/octet-stream"}),{...u,content:`[image inlined above: ${u.mimeType??"binary"}, ${u.size} bytes]`}},a=Wf(t);if(a)return{payload:n(a)??t,images:r,notes:o};let s=t?.files;if(!s||typeof s!="object"||Array.isArray(s))return{payload:t,images:r,notes:o};let c={};for(let[u,d]of Object.entries(s)){let p=Wf(d);c[u]=p?n(p,u)??d:d}return{payload:{...t,files:c},images:r,notes:o}}var Kf=["single_select","multi_select"],YS=e.object({label:e.string().min(1).max(200).describe("Display text for this option"),description:e.string().max(500).optional().describe("Optional explanation of what this option means")}),QS=e.object({question:e.string().min(1).max(500).describe("The question to ask the user"),type:e.enum(Kf).describe("single_select: user picks one option. multi_select: user picks one or more options."),options:e.array(YS).min(2).max(4).describe("The available choices (2-4 options)")}),ZC=e.object({questions:e.array(QS).min(1).max(3).describe("One to three structured questions to ask the user")}),ek=e.object({questionIndex:e.number().int().min(0).describe("Index of the question answered"),type:e.enum(Kf).describe("Question type"),selectedOptions:e.array(e.string()).describe("Labels of selected options (empty if skipped)"),customText:e.string().optional().describe('Free text if user chose "Something else"'),skipped:e.boolean().describe("Whether the user skipped this question")}),FC=e.object({answers:e.array(ek).describe("Answers for each question"),dismissed:e.boolean().describe("True if the user dismissed the entire wizard without answering")});var td=e.enum(["chat","image"]),di=e.string().refine(t=>{if(t==="")return!1;let r=t.replace(/_/g,""),o=Number(r);return!Number.isNaN(o)&&Number.isFinite(o)&&o>=0},{message:"Invalid decimal string"}),tk=e.object({input:e.string(),output:e.string(),cachedInput:e.string().optional(),cacheCreation:e.string().optional()}),pi=e.object({input:di,output:di,cachedInput:di.optional(),cacheCreation:di.optional()}),Vf=e.object({modelId:e.string(),deploymentName:e.string(),workspaceId:e.string().nullable(),kind:td,name:e.string(),description:e.string(),pricing:tk,createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),HC=e.object({deployments:e.array(Vf),nextKey:e.string().optional()}),JC=e.object({deploymentName:e.string().min(1),name:e.string().min(1),description:e.string().default(""),pricing:pi}),XC=e.object({name:e.string().min(1).optional(),description:e.string().optional(),pricing:pi.optional()}),qC=e.object({deploymentName:e.string().min(1),kind:td,name:e.string().min(1),description:e.string().default(""),pricing:pi}),YC=e.object({name:e.string().min(1).optional(),description:e.string().optional(),kind:td.optional(),pricing:pi.optional()}),QC=e.object({deploymentName:e.string().min(1)}),eU=e.object({deployments:e.array(Vf)});var rU=e.object({workspaceId:e.uuid()}),oU=e.object({amountUsd:e.number().positive().max(1e4)}),iU=e.object({checkoutUrl:e.url()}),aU=e.object({id:e.uuid(),workspaceId:e.uuid(),amountUsd:e.string(),purchasedBy:e.uuid().nullable(),stripeCheckoutSessionId:e.string(),stripePaymentIntentId:e.string().nullable(),isAutoReload:e.boolean(),createdAt:e.iso.datetime()});var lU=e.object({workspaceId:e.uuid()}),uU=e.object({checkoutUrl:e.url()});var nk=["incomplete","incomplete_expired","trialing","active","past_due","canceled","unpaid","paused"],mU=e.enum(nk),rk=["draft","open","paid","uncollectible","void"],Hf=e.enum(rk);var ok=["upgrade","downgrade","invite_accept","member_join"],gU=e.enum(ok),ik=["pending","processing","processed","failed"],fU=e.enum(ik),ak=["seat_change","extra_usage_purchase"],hU=e.enum(ak),sk=["pending","processing","requires_action","succeeded","failed","expired","superseded"],vU=e.enum(sk),ck=["pending","applied","failed","canceled"],bU=e.enum(ck);var lk=e.enum(["subscription","extra_usage"]),uk=e.object({id:e.uuid(),type:lk,status:Hf,totalUsd:e.number().nonnegative(),billingDate:e.iso.datetime(),hostedInvoiceUrl:e.url().nullable()}),SU=e.object({workspaceId:e.uuid()}),kU=e.object({limit:e.coerce.number().int().min(1).max(100).default(20),nextKey:e.string().optional()}),$U=e.object({invoices:e.array(uk),nextKey:e.string().optional()});var Jf=e.enum(["pro","premium"]),be=e.object({pro:e.number().int().nonnegative(),premium:e.number().int().nonnegative()}),TU=e.object({pro:e.number().int(),premium:e.number().int()}),dk=e.object({seatType:Jf,quantity:e.number().int(),amountUsd:e.string()}),nd=e.object({lineItems:e.array(dk),subtotalUsd:e.string(),taxUsd:e.string(),totalUsd:e.string()}),pk=e.enum(["seat_pool_invariant","subscription_canceling","payment_required","unsupported_billing_state"]),EU=e.object({workspaceId:e.uuid()}),mk=e.object({userId:e.uuid(),seatType:Jf}),gk=e.object({targetPurchasedSeats:be,seatAssignment:mk.optional()}),AU=e.discriminatedUnion("outcome",[e.object({outcome:e.literal("unchanged"),quoteHash:e.string().min(1),targetPurchasedSeats:be,nextMonthlyAmountUsd:e.string()}),e.object({outcome:e.literal("immediate"),quoteHash:e.string().min(1),targetPurchasedSeats:be,nextMonthlyAmountUsd:e.string(),dueToday:nd}),e.object({outcome:e.literal("scheduled"),quoteHash:e.string().min(1),targetPurchasedSeats:be,nextMonthlyAmountUsd:e.string(),dueToday:nd,effectiveAt:e.iso.datetime()}),e.object({outcome:e.literal("split"),quoteHash:e.string().min(1),immediatePurchasedSeats:be,targetPurchasedSeats:be,nextMonthlyAmountUsd:e.string(),dueToday:nd,effectiveAt:e.iso.datetime()}),e.object({outcome:e.literal("blocked"),reason:pk})]);var RU=e.object({workspaceId:e.uuid()}),PU=gk.extend({expectedQuoteHash:e.string().min(1)}),jU=e.discriminatedUnion("kind",[e.object({kind:e.literal("completed"),operationId:e.uuid().nullable()}),e.object({kind:e.literal("processing"),operationId:e.uuid()}),e.object({kind:e.literal("redirect"),operationId:e.uuid().nullable(),url:e.url()})]);var NU=e.object({workspaceId:e.uuid()}),rd=e.object({startAt:e.iso.datetime(),endAt:e.iso.datetime()}),Xf=e.object({cancelAtPeriodEnd:e.boolean(),canceledAt:e.iso.datetime().nullable()}),qf=e.object({reason:e.enum(["invoice_payment_failed","checkout_incomplete","subscription_unpaid","subscription_paused","unsupported_state"]),startedAt:e.iso.datetime().nullable(),retryEndsAt:e.iso.datetime().nullable(),stripeInvoiceId:e.string().min(1).nullable(),hostedInvoiceUrl:e.url().nullable()}),fk=e.discriminatedUnion("kind",[e.object({kind:e.literal("default"),period:e.null(),cancellation:e.null(),paymentIssue:e.null()}),e.object({kind:e.literal("active"),period:rd,cancellation:Xf,paymentIssue:e.null()}),e.object({kind:e.literal("payment_required"),period:rd.nullable(),cancellation:e.null(),paymentIssue:qf}),e.object({kind:e.literal("canceled"),period:e.null(),cancellation:Xf,paymentIssue:e.null()}),e.object({kind:e.literal("unavailable"),period:rd.nullable(),cancellation:e.null(),paymentIssue:qf})]),hk=e.object({planName:e.string().min(1),estimatedMonthlyChargeUsd:e.number().nonnegative(),nextInvoiceDueAt:e.iso.datetime().nullable()}).nullable(),vk=e.object({purchased:be,assigned:be,available:be,totalPurchased:e.number().int().nonnegative(),totalAssigned:e.number().int().nonnegative(),totalAvailable:e.number().int().nonnegative()}),bk=ff.extend({currentPurchasedUsd:e.number().nonnegative()}),DU=e.object({lifecycle:fk,subscription:hk,seats:vk,extraUsage:bk});var BU=e.object({workspaceId:e.uuid()}),ZU=e.object({portalUrl:e.url()});var KU=e.object({workspaceId:e.uuid(),userId:e.uuid()}),VU=e.object({seatType:ve});var Yf=e.enum(["google","outlook","caldav"]),yk=e.enum(["confirmed","tentative","cancelled"]),_k=e.object({email:e.string(),displayName:e.string().optional(),responseStatus:e.enum(["needsAction","declined","tentative","accepted"]).optional(),organizer:e.boolean().optional(),self:e.boolean().optional(),resource:e.boolean().optional()}),xk=e.object({type:e.enum(["hangoutsMeet","zoom","teams","webex","other"]),uri:e.string().optional(),label:e.string().optional()}),Sk=e.object({id:e.uuid(),providerCalendarId:e.string(),name:e.string(),color:e.string().nullable(),isVisible:e.boolean()}),kk=e.object({id:e.uuid(),provider:Yf,email:e.string(),isActive:e.boolean(),lastSyncAt:e.string().nullable(),reminderEnabled:e.boolean(),reminderMinutesBefore:e.number(),createdAt:e.iso.datetime(),calendars:e.array(Sk)}),aN=e.object({accounts:e.array(kk)}),$k=e.object({id:e.uuid(),calendarId:e.uuid(),calendarName:e.string(),calendarColor:e.string().nullable(),provider:Yf,providerEventId:e.string(),title:e.string(),description:e.string().nullable(),location:e.string().nullable(),startTime:e.string(),endTime:e.string(),isAllDay:e.boolean(),status:yk,conferenceLink:e.string().nullable(),conferenceData:xk.nullable(),attendees:e.array(_k).nullable(),organizerEmail:e.string().nullable()}),Ik=$k.extend({meetingId:e.uuid().nullable(),hasRecordings:e.boolean(),hasAudioFile:e.boolean()}),sN=e.object({events:e.array(Ik),nextCursor:e.uuid().nullable(),hasMore:e.boolean()}),wk=500,cN=e.object({startTime:e.iso.datetime().optional(),endTime:e.iso.datetime().optional(),limit:e.coerce.number().int().min(1).max(wk).default(50),cursor:e.uuid().optional()}).refine(t=>t.startTime&&t.endTime?new Date(t.startTime)<new Date(t.endTime):!0,{message:"endTime must be greater than startTime",path:["endTime"]});var lN=e.object({hours:e.coerce.number().int().min(1).max(168).default(24),limit:e.coerce.number().int().min(1).max(50).default(10),cursor:e.uuid().optional()}),uN=e.object({id:e.uuid(),reminderEnabled:e.boolean(),reminderMinutesBefore:e.number()}),dN=e.object({updated:e.number()});var or=t=>e.preprocess(r=>{let o=r;for(;typeof o=="string";)try{let i=JSON.parse(o);if(i===o)break;o=i}catch{break}return o},e.union([t,e.string()])),Tk=e.object({name:e.string().describe("Identifier: file path, resource id, URL, or title."),detail:e.string().describe("What it is plus what was done to it or why it matters \u2014 detailed enough to act on again.")}),bN=e.object({overview:e.string().describe("1\u20133 sentences: what this session is about and where it stands now."),userRequests:or(e.array(e.string())).describe("Every distinct thing the user has asked for, in their own framing, oldest \u2192 newest. Never drop an ask \u2014 even a completed one (record completion in state). Merge near-duplicate or sub-divided asks into a single entry so this list stays bounded across repeated compactions."),keyFacts:or(e.array(e.string())).describe("Durable facts, decisions made, concepts/constraints discovered, and errors with their fixes. Omit facts later turns made obsolete."),artifacts:or(e.array(Tk)).optional().default([]).describe("Concrete things touched that may need further action: files, resources, documents, datasets, URLs, IDs."),constraints:or(e.object({preferences:e.array(e.string()).describe("How the user wants output: format, tone, language, style."),negativeConstraints:e.array(e.string()).describe("What the user explicitly said NOT to do.")})).describe("What the user wants and explicitly does not want."),state:or(e.object({status:e.enum(["pending_input","in_progress","completed"]).describe("Overall task state at the point of truncation."),currentWork:e.string().describe("What was actively in progress at truncation, detailed enough to resume immediately."),nextStep:e.string().describe("The single most logical next action. Empty only if genuinely blocked or awaiting the user."),pendingQuestions:e.array(e.string()).describe("Questions the agent still needs answered to proceed.")})).describe("Resumption state \u2014 how to pick the work back up seamlessly.")});import{getToolName as $N,isToolUIPart as zk}from"ai";var Ek=e.object({text:e.string(),type:e.literal("text")}),Ak=e.object({id:e.uuid(),createdAt:e.coerce.date().optional(),role:e.literal("user"),parts:e.array(Ek).length(1)}),od=e.object({id:e.string(),approved:e.boolean(),reason:e.string().optional()}),Rk=e.object({type:e.string().startsWith("tool-"),toolCallId:e.string(),state:e.literal("approval-responded"),input:e.any(),approval:od}),Pk=e.object({type:e.string().startsWith("tool-"),toolCallId:e.string(),state:e.literal("output-available"),output:e.any(),approval:od.optional()}),jk=e.object({type:e.string().startsWith("tool-"),toolCallId:e.string(),state:e.literal("output-error"),errorText:e.string(),approval:od.optional()}),Ok=e.object({id:e.uuid(),createdAt:e.coerce.date().optional(),role:e.literal("assistant"),parts:e.array(e.discriminatedUnion("state",[Rk,Pk,jk])).min(1)}),xN=e.discriminatedUnion("role",[Ak,Ok]);var Qf=["approval-responded","output-available","output-error"],Ck=["output-available","output-error"],Uk=Qf;function Nk(t){for(let r=t.length-1;r>=0;r-=1)if(t[r]?.type==="step-start")return r;return-1}function Dk(t){return Qf.includes(t)}function Lk(t){return Ck.includes(t)}function Mk(t){return Uk.includes(t)}function eh(t){if(t?.role!=="assistant")return[];let r=Nk(t.parts);return t.parts.slice(r+1).filter(zk).filter(o=>!o.providerExecuted)}function Bk(t){return eh(t).filter(r=>Mk(r.state))}function IN(t){return t?.role!=="assistant"?t:{id:t.id,role:t.role,parts:Bk(t)}}function wN({messages:t,isClientTool:r,suppressAutomaticSend:o=!1,submittedToolCallIds:i}){if(o)return!1;let n=eh(t.at(-1));return n.length===0||!n.every(s=>r(s)?Lk(s.state):Dk(s.state))?!1:!i||n.some(s=>!i.has(s.toolCallId))}function Zk(t){if(t.reason!==void 0)return t.reason;let r=new Error("The operation was aborted.");return r.name="AbortError",r}function TN(t,r){if(!r)return t;let o=()=>Zk(r),i,n,a=()=>{n&&(r.removeEventListener("abort",n),n=void 0)};return new ReadableStream({start(s){if(n=()=>{s.error(o()),(i??t).cancel(o()).catch(()=>{})},r.aborted){n();return}r.addEventListener("abort",n,{once:!0})},async pull(s){i??=t.getReader();try{let{done:c,value:u}=await i.read();if(c){s.close(),a();return}s.enqueue(u)}catch(c){r.aborted||s.error(c),a()}},cancel(s){a(),(i??t).cancel(s).catch(()=>{})}})}var PN=e.uuid();var th={schemaVersion:e.literal(2),siteKey:e.string().min(1),assetId:e.uuid(),title:e.string()},Fk=e.object({...th,state:e.literal("working"),revision:e.string().min(1)}),Wk=e.object({...th,state:e.literal("saved"),versionId:e.uuid(),versionNumber:e.number().int().positive()}),zN=e.discriminatedUnion("state",[Fk,Wk]);var nh=e.enum(["pending","generating","ready","error"]),Gk=e.object({page:e.number().int().positive(),heading:e.string(),status:nh,version:e.number().int().nonnegative().default(0),imageUrl:e.string().optional(),assetId:e.string().optional(),note:e.string().optional()}),NN=e.object({deckId:e.string().min(1),title:e.string(),style:e.string(),aspectRatio:e.string(),status:e.enum(["generating","partial","ready"]),outputs:e.object({pdfUrl:e.string().optional(),pptxUrl:e.string().optional(),pdfAssetId:e.string().optional(),pptxAssetId:e.string().optional()}).default({}),slides:e.array(Gk)}),Kk=e.object({slideId:e.uuid(),position:e.number().int().positive(),heading:e.string(),status:nh,note:e.string().optional()}),rh={schemaVersion:e.literal(2),deckKey:e.string().min(1),assetId:e.uuid(),title:e.string(),style:e.string(),aspectRatio:e.string(),slides:e.array(Kk)},Vk=e.object({...rh,state:e.literal("working"),revision:e.string().min(1)}),Hk=e.object({...rh,state:e.literal("saved"),versionId:e.uuid(),versionNumber:e.number().int().positive()}),DN=e.discriminatedUnion("state",[Vk,Hk]),Jk=e.object({assetId:e.uuid(),versionId:e.uuid(),versionNumber:e.number().int().positive(),title:e.string(),style:e.string(),aspectRatio:e.string(),slides:e.array(e.object({slideId:e.uuid(),position:e.number().int().positive(),heading:e.string(),imageUrl:e.url()})),pdfUrl:e.url(),pptxUrl:e.url().optional()}),LN=e.object({data:Jk});var d$=["slack","teams","gchat"],p$=["active","inactive","needs_reauth"],mi=e.enum(d$),m$=e.enum(p$),id=e.object({id:e.uuid(),platform:mi,platformWorkspaceId:e.string(),platformWorkspaceName:e.string(),botUserId:e.string(),status:m$,autoBindEnabled:e.boolean(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),HN=e.object({platform:mi.optional(),limit:e.coerce.number().int().min(1).max(100).default(20),cursor:e.uuid().optional()}),JN=e.object({installations:e.array(id),nextKey:e.string().optional()}),XN=e.object({status:e.enum(["active","inactive"]).optional()}),ad=e.object({id:e.uuid(),workspaceInstallationId:e.uuid(),platform:mi,platformWorkspaceName:e.string(),platformUserId:e.string(),createdAt:e.iso.datetime()}),qN=e.object({installations:e.array(ad)}),g$=e.object({workspaceInstallation:id.nullable(),userInstallation:ad.nullable(),canManageChatbot:e.boolean()}),YN=g$.extend({installUrl:e.url().nullable()}),QN=e.object({userInstallation:ad}),eD=e.object({autoBindEnabled:e.boolean()}),tD=e.object({workspaceInstallation:id}),f$=e.object({id:e.uuid().nullable(),workspaceInstallationId:e.uuid().nullable(),userId:e.uuid(),userName:e.string(),userEmail:e.email(),platformUserId:e.string().nullable(),createdAt:e.iso.datetime().nullable(),updatedAt:e.iso.datetime().nullable()}),nD=e.object({bindings:e.array(f$),total:e.number().int().nonnegative()}),rD=ce.extend({search:e.string().trim().max(200).optional()}),oD=e.object({authorizeUrl:e.string()});var iD=e.object({serviceAccountCredentials:e.record(e.string(),e.unknown()),pubsubTopic:e.string().optional(),impersonateUser:e.email().optional()}),sd=200,oh=2048,cd=e.enum(["self","anyone"]),ih=e.object({id:e.uuid(),platform:mi,userInstallationId:e.uuid(),platformChannelId:e.string(),channelName:e.string().nullable(),platformThreadId:e.string().nullable(),keyword:e.string().nullable(),triggerScope:cd,agentId:e.uuid().nullable(),agentName:e.string().nullable(),sourceKeywordListenerIds:e.array(e.uuid()),taskId:e.uuid().nullable(),titlePreview:e.string().nullable(),threadUrl:e.url().nullable(),lastInteractedAt:e.iso.datetime().nullable(),enabled:e.boolean(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),aD=e.object({installationId:e.uuid().optional()}),sD=e.object({listeners:e.array(ih)}),cD=e.object({installationId:e.uuid(),platformChannelId:e.string().trim().min(1).max(oh).regex(/^(?:(?:slack:)?[CG][A-Z0-9]+|teams:[A-Za-z0-9_-]+:[A-Za-z0-9_-]+)$/u,"Must be a valid Slack or Microsoft Teams channel id."),keyword:e.string().trim().min(1).max(sd),triggerScope:cd.optional(),agentId:e.uuid().nullable().optional()}),lD=e.object({listener:ih}),uD=e.object({keyword:e.string().trim().min(1).max(sd).optional(),triggerScope:cd.optional(),agentId:e.uuid().nullable().optional(),enabled:e.boolean().optional()}).refine(t=>t.keyword!==void 0||t.triggerScope!==void 0||t.agentId!==void 0||t.enabled!==void 0,{message:"At least one field must be provided"}),dD=e.object({installationId:e.uuid(),platformChannelId:e.string().trim().min(1).max(oh),keyword:e.string().trim().min(1).max(sd)}),pD=e.object({count:e.number().int().nonnegative()}),mD=e.object({installationId:e.uuid()}),gD=e.object({channels:e.array(e.object({id:e.string(),name:e.string(),isPrivate:e.boolean()}))});var fD=e.object({}).optional(),hD=e.object({ok:e.literal(!0),messageTs:e.string()}),h$=365,v$=14,vD=e.object({olderThanDays:e.number().int().min(1).max(h$).default(v$).optional()}).optional(),bD=e.object({deletedCount:e.number().int().min(0)}),b$=e.enum(["enabled","disabled"]),y$=e.object({agentId:e.uuid(),agentName:e.string(),status:b$,capReached:e.boolean(),connectorNames:e.array(e.string())}),yD=e.object({items:e.array(y$)}),_$=e.object({agentId:e.uuid(),agentName:e.string(),connectorNames:e.array(e.string())}),_D=e.object({items:e.array(_$)}),xD=e.object({agentId:e.uuid()}),SD=e.object({archiveContext:e.stringbool().optional()}),kD=e.object({activeConversationCount:e.number().int(),suppressedListenerCount:e.number().int()});var ah=e.string().regex(/^\d+\.\d+\.\d+(?:[-+][\w.-]+)?$/),sh=e.object({minSupportedVersion:ah,latestVersion:ah}),wD=e.object({ios:sh,android:sh});var x$="__",tn="task__",RD={SHARE_TASK:`${tn}share_task`,READ_REFERENCED_TASK:`${tn}read_referenced_task`,SEARCH_TASKS:`${tn}search_tasks`,LIST_TASK_FILES:`${tn}list_task_files`,EXPORT_DIAGNOSTICS:`${tn}export_diagnostics`},nn="project__",PD={SEARCH_KNOWLEDGE:`${nn}search_knowledge`,LIST_KNOWLEDGE:`${nn}list_knowledge`,READ_KNOWLEDGE:`${nn}read_knowledge`,CHECKOUT_ASSET:`${nn}checkout_asset`,SAVE_ASSET:`${nn}save_asset`},ch="asset__",jD={SAVE:`${ch}save`},Je="agent__",OD={SEARCH_AGENTS:`${Je}search_agents`,CREATE_AGENT:`${Je}create_agent`,GET_AGENT:`${Je}get_agent`,UPDATE_AGENT:`${Je}update_agent`,GET_AGENT_HISTORY:`${Je}get_agent_history`,GET_AGENT_INSIGHT:`${Je}get_agent_insight`,GET_TOP_AGENTS:`${Je}get_top_agents`},ir="connector__",zD={GET_AUTH_URL:`${ir}get_auth_url`,CHECK_AUTH_STATUS:`${ir}check_auth_status`,LIST_CONNECTORS:`${ir}list_connectors`,SEARCH_CONNECTORS:`${ir}search_connectors`},ie="filesystem__",CD={READ_FILE:`${ie}read_file`,READ_MULTIPLE_FILES:`${ie}read_multiple_files`,WRITE_FILE:`${ie}write_file`,EDIT_FILE:`${ie}edit_file`,CREATE_DIRECTORY:`${ie}create_directory`,LIST_DIRECTORY:`${ie}list_directory`,SEARCH_FILES:`${ie}search_files`,GREP_FILES:`${ie}grep_files`,GET_FILE_INFO:`${ie}get_file_info`,MOVE_FILE:`${ie}move_file`,EXECUTE_COMMAND:`${ie}execute_command`},lh="image__",UD={GENERATE_IMAGE:`${lh}generate`},Xe="meeting__",ND={LIST_MEETINGS:`${Xe}list_meetings`,GET_MEETING:`${Xe}get_meeting`,SEARCH_MEETINGS:`${Xe}search_meetings`,GET_RECORDING:`${Xe}get_recording`,SEARCH_RECORDINGS:`${Xe}search_recordings`,SEARCH_RECORDING_TRANSCRIPT:`${Xe}search_recording_transcript`,IMPORT_FROM_URL:`${Xe}import_from_url`},gi="memory__",DD={SAVE_MEMORY:`${gi}save`,LIST_MEMORIES:`${gi}list`,DELETE_MEMORY:`${gi}delete`},de="sandbox__",LD={CREATE_SANDBOX:`${de}create_sandbox`,EXECUTE_COMMAND:`${de}execute_command`,READ_FILES:`${de}read_files`,WRITE_FILES:`${de}write_files`,UPLOAD_FILES:`${de}upload_files`,KILL_SANDBOX:`${de}kill_sandbox`,CREATE_SITE:`${de}create_site`,PERSIST_SITE:`${de}persist_site`,GET_FILE_DOWNLOAD_URL:`${de}get_file_download_url`,EDIT_FILE:`${de}edit_file`},rn="schedule__",MD={CREATE_SCHEDULE:`${rn}create_schedule`,EDIT_SCHEDULE:`${rn}edit_schedule`,SEARCH_SCHEDULE:`${rn}search_schedule`,GET_SCHEDULE:`${rn}get_schedule`,LIST_CALENDARS:`${rn}list_calendars`},on="skill__",BD={LOAD_SKILL:`${on}load_skill`,ADD_SKILL:`${on}add_skill`,LIST_SKILLS:`${on}list_skills`,ENABLE_SKILL:`${on}enable_skill`,DISABLE_SKILL:`${on}disable_skill`},uh="slides__",ZD={PRESENT_DECK:`${uh}present_deck`},ar="tool_result__",FD={DESCRIBE:`${ar}describe`,GET:`${ar}get`,SEARCH:`${ar}search`,GET_FILE_URL:`${ar}get_file_url`},fi="meta_tool__",WD={SEARCH_TOOLS:`${fi}search_tools`,GET_TOOL_SCHEMAS:`${fi}get_tool_schemas`,EXECUTE_TOOL:`${fi}execute_tool`};var ye="usage_audit__",GD={GET_DAILY_SUMMARY:`${ye}get_daily_summary`,GET_MONTHLY_COSTS:`${ye}get_monthly_costs`,GET_USER_BREAKDOWN:`${ye}get_user_breakdown`,GET_USER_DAILY_TREND:`${ye}get_user_daily_trend`,FIND_USAGE_DROPS:`${ye}find_usage_drops`,FIND_STALE_SCHEDULES:`${ye}find_stale_schedules`,GET_SCHEDULE_TOOL_CALLS:`${ye}get_schedule_tool_calls`,GET_COST_RANKING:`${ye}get_cost_ranking`,GET_WORKSPACE_TOTALS:`${ye}get_workspace_totals`},ld="subagent__",KD={SPAWN:`${ld}spawn`,GET_RUN:`${ld}get_run`},dh="ui__",VD={GET_WIDGET_GUIDE:`${dh}get_widget_guide`},ud="web__",HD={SEARCH:`${ud}search`,SCRAPE_URL:`${ud}scrape_url`},pt="workflow__",JD={CREATE_WORKFLOW:`${pt}create_workflow`,UPDATE_WORKFLOW:`${pt}update_workflow`,GET_WORKFLOW:`${pt}get_workflow`,GET_WORKFLOW_RUN:`${pt}get_workflow_run`,SEARCH_WORKFLOWS:`${pt}search_workflows`,RUN_WORKFLOW:`${pt}run_workflow`},ph=[tn,nn,ch,Je,ir,ie,lh,Xe,gi,de,rn,on,uh,ar,fi,ye,ld,dh,ud,pt].map(t=>t.slice(0,-x$.length));var hi=e.enum(["pat","oauth","dcard-dual","google-iap","credentials","mcp-oauth","composio"]),mh=/^[a-z][a-z0-9-]*$/,dd=["pat","credentials"],pd=e.object({key:e.string().regex(mh).max(32),label:e.string().min(1).max(50),description:e.string().max(200).optional(),placeholder:e.string().max(100).optional(),required:e.boolean()}),md=e.array(pd).max(10).refine(t=>new Set(t.map(r=>r.key)).size===t.length,{message:"config field keys must be unique"}),nL=e.record(e.string().regex(mh).max(32),e.string().min(1).max(256).regex(/^[\u0020-\u007E]*$/,"must be printable ASCII"));var gd=e.enum(["pending","running","failed"]),sr=e.enum(["pending","in_review","approved","rejected"]),fd=e.object({name:e.string(),isMe:e.boolean()}),S$=e.object({id:e.string(),name:e.string(),configured:e.boolean(),builtIn:e.boolean()}),gh=e.object({type:hi,tutorial:e.string().optional(),configFields:e.array(pd).optional(),provider:S$.optional().describe("The OAuth provider, only present for OAuth authorization")}),k$=e.object({id:e.uuid(),name:e.string(),description:e.string(),provider:e.string().nullable().describe("The provider of the connector, either EntryDesk (for built-in connectors) or Workspace name"),author:e.object(fd.shape).optional().describe("The author of the connector, not available for built-in connectors"),connected:e.boolean().describe("Whether the user has connected the connector to the workspace"),iconUrl:e.string().optional().describe("The URL of the connector icon"),team:e.object({id:e.uuid(),name:e.string()}).optional().describe("The team this connector is published to, only present when createdBy is team"),hasPermission:e.boolean().describe("Whether the user has permission to use the connector"),hasWorkspaceToken:e.boolean().describe("Whether the workspace has a workspace token configured for this connector"),tokenMode:e.enum(["personal","workspace"]).describe("Token mode: personal (each member connects) or workspace (admin provides shared token)"),reviewStatus:sr.optional().describe("The review status of the connector, not available for built-in connectors"),authorization:gh.optional(),versionNumber:e.number().int().nullable(),myRole:V,createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),rL=e.object({connectors:e.array(k$),nextKey:e.string().optional()}),oL=K.extend({reviewStatus:sr.optional().describe("Filter connectors by review status (only applies to custom connectors)"),includeNotAdded:e.union([e.literal("true").transform(()=>!0),e.literal("false").transform(()=>!1),e.boolean()]).optional().describe("Include connectors that have not been added to the workspace (no workspace_connectors record)"),type:e.enum(Qn).optional().describe("Filter connectors by type"),sortBy:e.enum(Yn).optional()}).refine(t=>!(t.type===Ge.BUILT_IN&&t.reviewStatus),{message:"reviewStatus parameter is not applicable when type is built_in",path:["reviewStatus"]}),iL=K.extend({createdBy:e.enum(["workspace","team","me"]).optional(),teamId:e.uuid().optional(),connectionStatus:e.enum(["all","connected"]).optional().default("all").describe("Filter connectors by connection status"),strict:e.union([e.literal("true").transform(()=>!0),e.literal("false").transform(()=>!1),e.boolean()]).optional().default(!0).describe("Whether to filter out connectors that the user does not have permission to use"),search:e.string().trim().max(200).optional().describe("Search connectors by name using SQL LIKE query"),connectorIds:e.union([e.uuid(),e.array(e.uuid())]).optional().transform(t=>{if(t!==void 0)return Array.isArray(t)?t:[t]}).describe("Filter connectors by specific IDs"),sortBy:e.enum(Yn).optional()}).refine(t=>!t.teamId||t.createdBy==="team",{message:"teamId can only be used with createdBy: team",path:["teamId"]}),$$=e.object({id:e.string(),name:e.string()}),I$=e.object({id:e.uuid()}).nullable(),w$=e.object({id:e.uuid(),type:e.enum(Qn),name:e.string(),description:e.string(),provider:e.string().describe("The provider of the connector, either EntryDesk (for built-in connectors) or Workspace name"),iconUrl:e.string().optional().describe("The URL of the connector icon"),author:fd.optional().describe("The author of the connector, not available for built-in connectors"),roles:e.array($$).describe("The roles of the user who has access to the connector"),executionStatus:gd.optional().describe("The execution status of the connector, not available for built-in connectors"),reviewStatus:sr.optional().describe("The review status of the connector, not available for built-in connectors"),hasWorkspaceToken:e.boolean().describe("Whether the workspace has a workspace token configured for this connector"),tokenMode:e.enum(["personal","workspace"]).describe("Token mode: personal (each member connects) or workspace (admin provides shared token)"),added:e.boolean().describe("Whether the connector has been added to the workspace"),toolPrefix:e.string().optional().describe("The prefix of the tool name, available when the connector is added to the workspace"),authorization:gh.optional().describe("The authorization of the connector."),publish:I$,myRole:V,createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),aL=e.object({connectors:e.array(w$),nextKey:e.string().optional()}),fh=e.enum(["pat","oauth","google-iap","credentials","mcp-oauth"]),T$=e.object({type:fh,provider:e.string().optional(),scopes:e.array(e.string()).optional(),tutorial:e.string().optional(),configFields:e.array(pd).optional()}),E$=e.object({type:fh,provider:e.string().optional(),scopes:e.array(e.string()).optional(),tutorial:e.url().max(100).optional(),configFields:md.optional()}).refine(t=>t.type==="oauth"||t.type==="google-iap"?t.provider!==void 0&&t.scopes!==void 0:!0,{message:"provider and scopes are required when type is oauth or google-iap",path:["provider","scopes"]}).refine(t=>!(t.tutorial&&!["pat","credentials"].includes(t.type)),{message:"tutorial is only allowed for PAT and CREDENTIALS authorization types",path:["tutorial"]}).refine(t=>!(t.configFields?.length&&!dd.some(r=>r===t.type)),{message:"configFields is only allowed for PAT and CREDENTIALS authorization types",path:["configFields"]}),an=e.enum(["streamable_http","sse"]),sL=e.object({id:e.uuid(),type:e.literal(Ge.CUSTOM_REMOTE_URL),name:e.string(),description:e.string(),url:e.string(),transport:an,toolPrefix:e.string(),author:fd.optional(),authorization:T$.optional(),executionStatus:gd.optional(),reviewStatus:sr.optional(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime(),iconUrl:e.string().optional(),publish:e.object({id:e.uuid()}).nullable(),myRole:V}),cL=e.object({id:e.uuid(),type:e.literal(Ge.CUSTOM_REMOTE_URL),name:e.string(),description:e.string(),transport:an,url:e.string(),executionStatus:gd,reviewStatus:sr,toolPrefix:e.string(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),lL=e.object({type:e.literal(Ge.CUSTOM_REMOTE_URL),name:e.string().min(1),description:e.string().min(1),transport:an,url:e.url(),toolPrefix:e.string().describe("The tool prefix for the connector"),authorization:E$.optional().nullable()}).superRefine((t,r)=>{ph.includes(t.toolPrefix)&&r.addIssue({code:"custom",message:`Tool prefix "${t.toolPrefix}" is reserved for a built-in EntryDesk tool namespace`,path:["toolPrefix"]})});var A$=["composio","mcp"],R$=["stdio","sse","streamable_http"],mL=an.options,hh=hi.exclude(["composio"]),gL=hh.options,P$=["pat","credentials"],j$=e.object({id:e.uuid(),name:e.string(),description:e.string(),iconUrl:e.string().nullable(),kind:e.enum(A$),toolkit:e.string().nullable(),transport:e.enum(R$),authorizationType:hi.nullable(),createdAt:e.iso.datetime()}),fL=e.object({items:e.array(j$)}),O$=e.object({kind:e.literal("composio"),name:e.string().min(1).max(100),description:e.string().min(1),toolkit:e.string().min(1),tools:e.array(e.string().min(1)).optional(),extraTools:e.array(e.string().min(1)).optional(),composioAuthConfigId:e.string().min(1).optional()}),z$=e.object({kind:e.literal("mcp"),name:e.string().min(1).max(100),description:e.string().min(1),url:e.url(),transport:an,authorization:e.object({type:hh,provider:e.string().min(1).optional(),scopes:e.array(e.string().min(1)).optional(),tutorial:e.url().max(100).optional(),configFields:md.optional()}).optional()}).refine(t=>t.authorization?.type!=="oauth"||t.authorization.provider!==void 0&&t.authorization.scopes!==void 0,{message:"provider and scopes are required when type is oauth",path:["authorization"]}).refine(t=>!t.authorization?.tutorial||P$.some(r=>r===t.authorization?.type),{message:"tutorial is only allowed for pat and credentials authorization types",path:["authorization","tutorial"]}).refine(t=>!t.authorization?.configFields?.length||dd.some(r=>r===t.authorization?.type),{message:"configFields is only allowed for pat and credentials authorization types",path:["authorization","configFields"]}),hL=e.object({toolkit:e.string().min(1)}),C$=e.object({name:e.string(),mode:e.string(),scopes:e.array(e.string())}),vL=e.object({slug:e.string(),name:e.string(),managedAuthSchemes:e.array(e.string()),auths:e.array(C$)}),bL=e.discriminatedUnion("kind",[O$,z$]);var U$={en:{authLink:["auth","oauth","authorize","authorization","connect","login","sign in","sign-in","signin"],authGlossVerbs:["authorize","connect","login","sign in","sign-in","signin"],placement:["button","buttons","link","links","click","below","following"]},"zh-TW":{authLink:["\u6388\u6B0A","\u6388\u6743","\u9023\u63A5","\u8FDE\u63A5","\u8A8D\u8B49","\u8BA4\u8BC1","\u767B\u5165","\u767B\u5F55"],authGlossVerbs:["\u6388\u6B0A","\u6388\u6743","\u9023\u63A5","\u8FDE\u63A5","\u8A8D\u8B49","\u8BA4\u8BC1","\u767B\u5165","\u767B\u5F55"],placement:["\u6309\u9215","\u6309\u94AE","\u9023\u7D50","\u94FE\u63A5","\u9EDE\u64CA","\u70B9\u51FB","\u4E0B\u65B9","\u4EE5\u4E0B"]},de:{authLink:["autorisieren","autorisierung","verbinden","anmelden","login"],authGlossVerbs:["autorisieren","verbinden","anmelden","login"],placement:["schaltfl\xE4che","schaltfl\xE4chen","button","buttons","link","links","klicken","unten","folgende","folgenden"]},fr:{authLink:["autoriser","autorisation","connecter","connexion","login","se connecter"],authGlossVerbs:["autoriser","connecter","connexion","login","se connecter"],placement:["bouton","boutons","lien","liens","cliquer","cliquez","ci-dessous","suivant","suivants"]},"es-ES":{authLink:["autorizar","autorizaci\xF3n","conectar","conexi\xF3n","iniciar sesi\xF3n","login"],authGlossVerbs:["autorizar","conectar","iniciar sesi\xF3n","login"],placement:["bot\xF3n","botones","enlace","enlaces","clic","haz clic","hacer clic","abajo","siguiente","siguientes"]},"es-419":{authLink:["autorizar","autorizaci\xF3n","conectar","conexi\xF3n","iniciar sesi\xF3n","login"],authGlossVerbs:["autorizar","conectar","iniciar sesi\xF3n","login"],placement:["bot\xF3n","botones","enlace","enlaces","clic","haz clic","hacer clic","abajo","siguiente","siguientes"]},ja:{authLink:["\u8A8D\u53EF","\u627F\u8A8D","\u8A8D\u8A3C","\u63A5\u7D9A","\u30ED\u30B0\u30A4\u30F3"],authGlossVerbs:["\u8A8D\u53EF","\u627F\u8A8D","\u8A8D\u8A3C","\u63A5\u7D9A","\u30ED\u30B0\u30A4\u30F3"],placement:["\u30DC\u30BF\u30F3","\u30EA\u30F3\u30AF","\u30AF\u30EA\u30C3\u30AF","\u4E0B","\u4EE5\u4E0B","\u6B21"]},ko:{authLink:["\uC778\uC99D","\uC2B9\uC778","\uAD8C\uD55C","\uC5F0\uACB0","\uB85C\uADF8\uC778"],authGlossVerbs:["\uC778\uC99D","\uC2B9\uC778","\uC5F0\uACB0","\uB85C\uADF8\uC778"],placement:["\uBC84\uD2BC","\uB9C1\uD06C","\uD074\uB9AD","\uC544\uB798","\uB2E4\uC74C"]},it:{authLink:["autorizza","autorizzare","autorizzazione","connetti","connettere","accesso","login"],authGlossVerbs:["autorizza","autorizzare","connetti","connettere","accedi","login"],placement:["pulsante","pulsanti","link","collegamento","collegamenti","clic","fare clic","sotto","seguente","seguenti"]},"pt-BR":{authLink:["autorizar","autoriza\xE7\xE3o","conectar","conex\xE3o","entrar","login"],authGlossVerbs:["autorizar","conectar","entrar","login"],placement:["bot\xE3o","bot\xF5es","link","links","clicar","clique","abaixo","seguinte","seguintes"]}},N$=/[.*+?^${}()|[\]\\]/g;function vh(t){return t.replace(N$,"\\$&")}function D$(t){let r=new Set,o=[];for(let i of t){let n=i.trim();n.length>0&&!r.has(n)&&(r.add(n),o.push(n))}return o}function bh(t){return D$(Object.values(U$).flatMap(r=>r[t]))}function yh(t){let r=bh(t).toSorted((o,i)=>i.length-o.length).map(vh).join("|");return new RegExp(r,"iu")}function L$(){let t=bh("authGlossVerbs").toSorted((r,o)=>o.length-r.length).map(vh).join("|");return new RegExp(`^(?:${t})(?=\\s|$|[^\\p{Letter}\\p{Number}])`,"iu")}var _L=yh("authLink"),xL=yh("placement"),SL=L$();var IL=e.object({toolkit:e.string(),tools:e.array(e.string()).optional(),extraTools:e.array(e.string()).optional()});var PL=e.object({search:e.string().trim().max(200).optional(),status:e.enum(Xt).optional(),nextKey:e.string().optional(),limit:e.coerce.number().int().min(1).max(100).default(20),sortBy:e.enum(Yn).optional()}),M$=e.object({id:e.uuid(),name:e.string(),iconUrl:e.string().optional(),hasUnpublishedChanges:e.boolean(),latestVersionNumber:e.number().int().nullable(),publishedTo:Pe.optional(),myRole:V,createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),jL=e.object({connectors:e.array(M$),nextKey:e.string().optional(),totalCount:e.number().int().nonnegative(),statusCounts:qt});var hd={ALWAYS_ALLOW:"always_allow",NEED_APPROVAL:"need_approval",BLOCK:"block"},vd=e.enum([hd.ALWAYS_ALLOW,hd.NEED_APPROVAL,hd.BLOCK]),B$=e.object({toolName:e.string().min(1),policy:vd}),CL=e.array(B$).refine(t=>{let r=t.map(o=>o.toolName);return new Set(r).size===r.length},{message:"Duplicate toolName in toolPolicies"});var _h=e.enum(["user_configurable","need_approval","block"]),xh=e.enum(["need_approval","always_allow"]),LL=e.object({tools:e.array(e.object({id:e.uuid(),name:e.string(),description:e.string(),workspacePolicy:_h,userPolicy:xh.nullable()}))}),ML=e.object({tools:e.array(e.object({id:e.uuid(),name:e.string(),description:e.string(),workspacePolicy:_h,userPolicy:xh.nullable(),schedulePolicy:vd.nullable()}))});var Z$=["saas","on-premises"],Sh=e.enum(Z$);var rM=e.object({path:e.string(),value:e.unknown().optional()});var F$=["openai","anthropic","vertex-anthropic","vertex-google","google","openrouter","selfhosted","azure-openai"],W$=["chatgpt-subscription"],G$=[...F$,...W$],K$=["gpt-5.5","gpt-5.4","gpt-5.4-mini","gpt-5.2","gpt-5.1","gpt-5","gpt-5-mini","o3","gpt-4o","gpt-4.1-mini","gpt-image-2"],V$=["claude-haiku-4-5-20251001","claude-sonnet-4-20250514","claude-sonnet-4-5-20250929","claude-sonnet-4-6","claude-sonnet-5","claude-opus-4-1-20250805","claude-opus-4-6","claude-opus-4-8","claude-opus-5"],H$=["claude-haiku-4-5@20251001","claude-sonnet-4-5@20250929","vertex/claude-sonnet-4-6","vertex/claude-sonnet-5","claude-opus-4-5@20251101","vertex/claude-opus-4-6","vertex/claude-opus-4-8","vertex/claude-opus-5"],J$=["vertex/gemini-3.5-flash","vertex/gemini-3.1-pro-preview","vertex/gemini-3.1-flash-lite-preview","vertex/gemini-3-pro-preview","vertex/gemini-3-pro-image-preview","vertex/gemini-3-flash-preview","vertex/gemini-2.5-flash-image","vertex/gemini-2.5-flash-lite"],X$=["gemini-3.5-flash","gemini-3.1-pro-preview","gemini-3.1-flash-lite-preview","gemini-3-pro-preview","gemini-3-pro-image-preview","gemini-3-flash-preview","gemini-2.5-pro","gemini-2.5-flash","gemini-2.5-flash-image","gemini-2.5-flash-lite"],q$=["openai/gpt-oss-120b","z-ai/glm-4.6","moonshotai/kimi-k2-thinking","minimax/minimax-m2","meta/muse-glimmer-30b","moonshotai/kimi-k3","z-ai/glm-5.2","deepseek/deepseek-v4-flash-0731"],Y$=["gpt-oss-120b"],Q$=["chatgpt-sub/gpt-5.6-sol","chatgpt-sub/gpt-5.6-terra","chatgpt-sub/gpt-5.6-luna","chatgpt-sub/gpt-5.5"],eI=[...K$,...V$,...H$,...J$,...X$,...q$,...Y$];function tI(t){return t.startsWith("azure-")}var sn=["lite","pro","max"],nI=["image","image-lite"],rI=["functionality"],kh=[...sn,...nI,...rI];var oI=e.union([e.enum(eI),e.enum(sn),e.string().refine(t=>tI(t)),e.enum(Q$)]),vi=e.union([oI,e.literal("auto")]);var $h=e.object({id:e.string(),name:e.string(),shortName:e.string().optional(),description:e.string(),shortDescription:e.string().optional(),enabled:e.boolean().optional(),tags:e.array(e.string()).optional()}),pM=e.object({models:e.array($h)}),iI=e.object({tier:e.string(),model:$h.optional()}),mM=e.object({tiers:e.array(iI)}),gM=e.object({modelId:e.string()}),aI=e.object({id:e.string(),name:e.string(),baseUrl:e.string().nullable().optional(),verified:e.boolean(),models:e.array(e.object({id:e.string(),name:e.string(),enabled:e.boolean().optional(),additional:e.boolean().optional()})),options:e.record(e.string(),e.any()).optional()}),fM=e.object({providers:e.array(aI)});var sI=e.object({id:e.string(),name:e.string(),provider:e.enum(G$),supportsChat:e.boolean(),supportsImageGeneration:e.boolean(),availableForAdvanced:e.boolean()});var hM=e.object({models:e.array(sI)}),cI=e.object({tier:e.enum(kh),modelId:e.string()}),vM=e.object({tiers:e.array(cI)}),bM=e.object({tier:e.enum(kh)}),yM=e.object({modelId:e.string().min(1)});var lI={AGENT:"agent",SKILL:"skill"},qe=Object.values(lI),cr={ROLE:"role",BADGE:"badge",USE_CASE:"use_case"},Ih=Object.values(cr);var mt=e.object({speaker:e.enum(["user","assistant"]),text:e.string()}),uI=e.object({id:e.uuid(),name:e.string(),provider:e.string(),iconUrl:e.string().nullable(),purpose:e.string()}),bd=e.object({tag:e.string(),category:e.enum(Ih),label:e.string()}),dI=e.object({slug:e.string(),type:e.enum(qe),name:e.string(),description:e.string(),iconUrl:e.string().nullable(),tags:e.array(bd)}),wh=e.string().optional().transform(t=>sf(t)),wM=e.object({type:e.enum(qe).optional(),tag:e.string().optional(),limit:e.coerce.number().int().min(1).max(100).default(30),cursor:e.string().optional(),lang:wh}),TM=e.object({items:e.array(dI),nextCursor:e.string().nullable()}),pI=e.object({slug:e.string(),type:e.literal("agent"),name:e.string(),description:e.string(),iconUrl:e.string().nullable(),tags:e.array(bd),starterPrompts:e.array(e.string()),exampleConversation:e.array(mt),connectors:e.array(uI)}),mI=e.object({slug:e.string(),type:e.literal("skill"),name:e.string(),description:e.string(),iconUrl:e.string().nullable(),tags:e.array(bd),exampleConversation:e.array(mt)}),EM=e.discriminatedUnion("type",[pI,mI]),gI=e.object({tag:e.string(),name:e.string(),tagline:e.string()}),AM=e.object({items:e.array(gI)}),RM=e.object({toolApprovalMode:Fe.optional()}).default({}),PM=e.object({resourceId:e.uuid(),resourceType:e.enum(qe),workspaceId:e.uuid(),taskId:e.uuid().nullable(),resourceSlug:e.string()}),jM=e.object({type:e.enum(qe),slug:e.string().min(1)}),OM=e.object({lang:wh});var Th=/^[a-z0-9]+(?:-[a-z0-9]+)*$/,fI=e.object({connectorId:e.uuid(),purpose:e.string().trim().min(1,"Purpose is required")}),Eh={name:e.string().trim().min(1).max(120),description:e.string().trim().min(1).max(2e3),iconId:e.uuid().nullable().optional(),tags:e.array(e.string()).default([]),model:vi,systemPrompt:e.string().trim().min(1),conversationStarters:e.array(e.string().trim().min(1)).max(5).default([]),exampleConversation:e.array(mt).min(1,"At least one example turn is required"),connectors:e.array(fI).refine(t=>new Set(t.map(r=>r.connectorId)).size===t.length,{message:"Each connector can only be added once"}).default([])},LM=e.object({slug:e.string().trim().regex(Th,"Use lowercase-kebab-case").max(120),...Eh}),MM=e.object(Eh),BM=e.object({id:e.uuid()}),ZM=e.object({type:e.enum(qe).optional(),limit:e.coerce.number().int().min(1).max(100).default(30),offset:e.coerce.number().int().min(0).default(0)}),hI=e.object({id:e.uuid(),type:e.enum(qe),slug:e.string(),name:e.string(),description:e.string(),tags:e.array(e.string()),isDelisted:e.boolean(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),FM=e.object({items:e.array(hI),total:e.number().int().min(0)}),vI=e.object({connectorId:e.uuid(),name:e.string(),purpose:e.string()}),WM=e.object({id:e.uuid(),slug:e.string(),name:e.string(),description:e.string(),iconId:e.uuid().nullable(),tags:e.array(e.string()),model:e.string(),systemPrompt:e.string(),conversationStarters:e.array(e.string()),exampleConversation:e.array(mt),connectors:e.array(vI),isDelisted:e.boolean(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),bI=e.object({tag:e.string(),category:e.enum([cr.ROLE,cr.BADGE,cr.USE_CASE])}),GM=e.object({items:e.array(bI)}),yI=e.object({id:e.uuid(),name:e.string(),description:e.string()}),KM=e.object({items:e.array(yI)}),Ah={description:e.string().trim().min(1).max(2e3),iconId:e.uuid().nullable().optional(),tags:e.array(e.string()).default([]),exampleConversation:e.array(mt).min(1,"At least one example turn is required")},VM=e.object({slug:e.string().trim().regex(Th,"Use lowercase-kebab-case").max(120),...Ah}),HM=e.object(Ah),JM=e.object({id:e.uuid()}),XM=e.object({id:e.uuid(),slug:e.string(),name:e.string(),description:e.string(),iconId:e.uuid().nullable(),tags:e.array(e.string()),exampleConversation:e.array(mt),hasPackagedContent:e.boolean(),isDelisted:e.boolean(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),qM=e.object({name:e.string(),description:e.string()});var _I=e.object({id:e.number(),content:e.string(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),o1=e.object({limit:e.coerce.number().int().min(1).max(100).default(100),nextKey:e.string().optional()}),i1=e.object({memories:e.array(_I),nextKey:e.string().optional()}),a1=e.object({workspaceId:e.uuid()}),s1=e.object({workspaceId:e.uuid(),memoryId:e.coerce.number().int()});var Rh=e.object({inputTokens:e.number().optional(),outputTokens:e.number().optional(),totalTokens:e.number().optional(),reasoningTokens:e.number().optional(),cachedInputTokens:e.number().optional(),cachedCreationTokens:e.number().optional()}),u1=e.object({modelId:e.string().optional(),usage:Rh.optional(),totalUsage:Rh.optional(),platformMessageTs:e.string().optional(),postedMessageTs:e.array(e.string()).optional()}),d1=e.object({id:e.uuid(),name:e.string(),mimeType:e.string(),size:e.number(),url:e.string().optional().describe("The signed URL for the file, only available if the file is not expired"),expired:e.boolean(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()});var p1=e.object({phase:e.enum(["running","done"])});var m1=e.object({context:e.string()});var g1=e.object({runs:e.array(e.object({runId:e.string(),kind:e.enum(["subagent","workflow"]),status:e.string(),summary:e.string()}))});var xI=e.object({system:e.number(),tools:e.number(),history:e.number()}),f1=e.object({totalTokens:e.number(),breakdown:xI,contextWindowTokens:e.number().optional(),compactionTriggerTokens:e.number().optional()});var Ph=["usage_exhausted","payment_failed","auto_reload_threshold_exceeded","role_changed","schedules_agent_deleted","agent_binding_removed","schedule_run_completed","publish_submitted","publish_approved","publish_rejected","task_complete","workspace_join_request","access_request","meeting_shared","meeting_shared_workspace","project_member_added","task_shared_to_project","task_shared_with_member","schedules_calendar_auth_expired","agent_monthly_cap_threshold","announcement"],jh=["info","action"],Oh=["all","action","info"],zh=["low","medium","high"];var Ch=["web","ios","android"];var j=e.uuid(),Lh=e.enum(Jt),Uh=e.enum(Ph),yd=e.enum(jh),Mh=e.enum(zh),SI=e.enum(Ch),I1=e.object({workspaceId:j}),w1=e.object({workspaceId:j,notificationId:j}),T1=e.object({workspaceId:j,deviceId:j}),E1=e.object({tab:e.enum(Oh).default("all"),eventType:e.union([Uh,e.array(Uh)]).transform(t=>Array.isArray(t)?t:[t]).optional(),cursor:e.string().optional(),limit:e.coerce.number().int().min(1).max(100).default(20),lang:Lh.optional()}),kI=e.object({id:e.string().min(1),labelKey:e.string().min(1),method:e.literal("POST"),path:e.string().min(1),requiresInput:e.array(e.object({fieldName:e.string().min(1),displayNameKey:e.string().min(1)})).min(1).optional(),style:e.enum(["primary","destructive","secondary"]).optional()}),$I=e.object({scope:e.enum(["workspace","team"]),scopeName:e.string(),oldRole:e.string(),newRole:e.string(),canManageMember:e.boolean()}),II=e.object({workspaceName:e.string().min(1)}),wI=e.object({workspaceName:e.string().min(1),invoiceId:e.string().min(1)}),TI=e.object({workspaceName:e.string().min(1),thresholdUsd:e.string().min(1),reloadAmountUsd:e.string().min(1)}),EI=e.object({scheduleName:e.string().min(1),agentName:e.string().min(1),scheduleId:j}),AI=e.object({scheduleName:e.string().min(1),scheduleId:j}),RI=[100,80],PI=e.literal(RI),jI=e.object({agentName:e.string().min(1),agentId:j,threshold:PI,spentUsd:e.string().min(1),capUsd:e.string().min(1)}),OI=e.object({agentName:e.string().min(1),resourceName:e.string().min(1),resourceType:e.enum(["model","connector"]),agentId:j}),zI=e.object({requesterName:e.string().min(1),resourceName:e.string().min(1),resourceType:e.enum(["agent","connector","skill"]),scope:e.enum(["team","workspace"]),teamId:j.optional(),scopeName:e.string().min(1),inlineActions:e.array(kI),publishId:j}),CI=e.object({approverName:e.string().min(1),resourceName:e.string().min(1),resourceType:e.enum(["agent","connector","skill"]),resourceId:j}),UI=e.object({approverName:e.string().min(1),resourceName:e.string().min(1),resourceType:e.enum(["agent","connector","skill"]),reason:e.string(),actions:e.array(e.object({id:e.enum(["resubmit","viewResource"]),labelKey:e.string().min(1),href:e.string().min(1)})),resourceId:j}),NI=e.object({workspaceName:e.string().min(1),requesterEmail:e.email(),invitationId:j}),DI=["task","preview","meeting"],A1=e.enum(DI),Nh=e.object({requesterName:e.string().min(1),resourceName:e.string().min(1),resourceId:j}),LI=e.discriminatedUnion("resourceType",[Nh.extend({resourceType:e.literal(["task","preview"]),parentTaskId:j}),Nh.extend({resourceType:e.literal("meeting"),meetingId:j})]),MI=e.object({meetingId:j,meetingTitle:e.string().min(1),sharedByName:e.string().min(1),role:e.enum(["viewer","editor"])}),BI=e.object({meetingId:j,meetingTitle:e.string().min(1),sharedByName:e.string().min(1)}),ZI=e.object({projectId:j,projectName:e.string().min(1),addedByName:e.string().min(1)}),FI=e.object({taskId:j,taskTitle:e.string(),projectId:j,projectName:e.string().min(1),sharedByName:e.string().min(1)}),WI=e.object({taskId:j,taskTitle:e.string(),projectId:j,projectName:e.string().min(1),sharedByName:e.string().min(1)}),GI=e.object({name:e.string(),taskTitle:e.string(),taskId:j}),KI=e.object({aiResponseSnippet:e.string(),taskId:j}),Dh=e.object({title:e.string().min(1).max(200),body:e.string().min(1).max(2e3),ctaLabel:e.string().max(80).optional()}),Bh=e.object({en:Dh}).catchall(Dh),Zh=e.object({notification:e.literal(!0),webPush:e.boolean(),mobilePush:e.boolean(),email:e.boolean()}),VI=e.object({announcementId:j,contentI18n:Bh,channels:Zh,category:yd,ctaUrl:e.string().optional()}),HI=e.object({id:e.string().min(1),label:e.string().min(1),method:e.literal("POST"),path:e.string().min(1),style:e.enum(["primary","destructive","secondary"]).optional(),requiresInput:e.array(e.object({fieldName:e.string().min(1),displayName:e.string().min(1)})).min(1).optional()}),JI=e.string().refine(t=>t.startsWith("/")||/^https?:\/\//.test(t),{message:"ctaUrl must be an absolute URL or a path starting with /"}),XI=e.object({title:e.string(),body:e.string(),ctaLabel:e.string().optional(),ctaUrl:JI.optional(),inlineActions:e.array(HI).optional()}),qI=e.object({id:j,urgency:Mh,category:yd,relatedEntityId:e.string().nullable(),rendered:XI,renderedLocale:Lh,readAt:e.iso.datetime().nullable(),processedAt:e.iso.datetime().nullable(),createdAt:e.iso.datetime()}),YI=e.discriminatedUnion("eventType",[e.object({eventType:e.literal("role_changed"),payload:$I}),e.object({eventType:e.literal("usage_exhausted"),payload:II}),e.object({eventType:e.literal("payment_failed"),payload:wI}),e.object({eventType:e.literal("auto_reload_threshold_exceeded"),payload:TI}),e.object({eventType:e.literal("schedules_agent_deleted"),payload:EI}),e.object({eventType:e.literal("schedules_calendar_auth_expired"),payload:AI}),e.object({eventType:e.literal("agent_binding_removed"),payload:OI}),e.object({eventType:e.literal("agent_monthly_cap_threshold"),payload:jI}),e.object({eventType:e.literal("schedule_run_completed"),payload:GI}),e.object({eventType:e.literal("publish_submitted"),payload:zI}),e.object({eventType:e.literal("publish_approved"),payload:CI}),e.object({eventType:e.literal("publish_rejected"),payload:UI}),e.object({eventType:e.literal("task_complete"),payload:KI}),e.object({eventType:e.literal("workspace_join_request"),payload:NI}),e.object({eventType:e.literal("access_request"),payload:LI}),e.object({eventType:e.literal("meeting_shared"),payload:MI}),e.object({eventType:e.literal("meeting_shared_workspace"),payload:BI}),e.object({eventType:e.literal("project_member_added"),payload:ZI}),e.object({eventType:e.literal("task_shared_to_project"),payload:FI}),e.object({eventType:e.literal("task_shared_with_member"),payload:WI}),e.object({eventType:e.literal("announcement"),payload:VI})]),QI=qI.and(YI);var R1=e.object({items:e.array(QI),nextKey:e.string().optional()}),P1=e.object({count:e.number().int().min(0),capped:e.boolean().optional()});var j1=e.object({deviceType:SI,fcmToken:e.string().min(1),description:e.string().max(500).optional()}),O1=e.object({id:j,createdAt:e.iso.datetime()}),z1=e.object({}).strict(),ew=e.discriminatedUnion("kind",[e.object({kind:e.literal("all")}),e.object({kind:e.literal("admins")}),e.object({kind:e.literal("specific"),userIds:e.array(j).min(1)})]),C1=e.object({workspaceId:j.nullish(),contentI18n:Bh,ctaUrl:e.url().max(2e3).optional(),urgency:Mh,category:yd,audience:ew,channels:Zh}).refine(t=>t.audience.kind==="all"||t.workspaceId!=null,{message:"workspaceId is required when audience.kind is 'admins' or 'specific'",path:["workspaceId"]}),U1=e.object({id:j,createdAt:e.iso.datetime()});var tw=e.object({id:e.string(),name:e.string(),clientId:e.string().nullable(),authUrl:e.string(),tokenUrl:e.string(),usePKCE:e.boolean(),defaultScopes:e.array(e.string()).nullable(),strategy:e.string(),configured:e.boolean(),builtIn:e.boolean(),iconUrl:e.string().optional()}),Z1=e.object({providers:e.array(tw)});var cn={AGENT:"agent",SKILL:"skill",WORKFLOW:"workflow",CONNECTOR:"connector",SCHEDULE:"schedule",PROJECT:"project"};function nw({resourceType:t,resourceId:r}){return`${t}:${r}`}var _d=e.enum([cn.AGENT,cn.SKILL,cn.WORKFLOW,cn.CONNECTOR,cn.SCHEDULE,cn.PROJECT]),rw=e.object({resourceType:_d,resourceId:e.uuid(),name:e.string(),managedAgent:e.object({channelCount:e.number().int().nonnegative()}).optional()}),G1=e.object({hash:e.string().regex(/^[0-9a-f]{64}$/),items:e.array(rw)}),ow=e.discriminatedUnion("action",[e.object({resourceType:_d,resourceId:e.uuid(),action:e.literal("transfer"),successorUserId:e.uuid()}),e.object({resourceType:_d,resourceId:e.uuid(),action:e.literal("delete")})]),iw=e.discriminatedUnion("action",[e.object({action:e.literal("transfer"),successorUserId:e.uuid()}),e.object({action:e.literal("delete")})]),K1=e.object({inventoryHash:e.string().min(1),defaultAction:iw.optional(),decisions:e.array(ow).max(1e3).superRefine((t,r)=>{let o=new Set;for(let[i,n]of t.entries()){let a=nw(n);o.has(a)?r.addIssue({code:"custom",path:[i],message:"Duplicate decision for resource"}):o.add(a)}})}),V1=e.object({transferred:e.number(),deleted:e.number()});var P={Access:"access",ManageWorkspace:"manage_workspace",ManageRole:"manage_role",ManageMember:"manage_member",ManagePayment:"manage_payment",SubmitCustomConnector:"submit_custom_connector",ReviewCustomConnector:"review_custom_connector",ManageConnector:"manage_connector",ManageModel:"manage_model",ManageCapability:"manage_capability",ManageTeam:"manage_team",ReviewResourcePublish:"review_resource_publish",CreateAgent:"create_agent",PublishAgent:"publish_agent",CreateSkill:"create_skill",PublishSkill:"publish_skill",CreateWorkflow:"create_workflow",CreateCustomConnector:"create_custom_connector",PublishCustomConnector:"publish_custom_connector",ManageAllTeams:"manage_all_teams",ManageChatbot:"manage_chatbot",ManageChannelAgents:"manage_channel_agents"};var aw={owner:[P.ManageWorkspace,P.ManageRole,P.ManageMember,P.ManagePayment,P.ManageModel,P.ManageCapability,P.ManageConnector,P.ManageChatbot,P.ManageChannelAgents,P.CreateCustomConnector,P.PublishCustomConnector,P.CreateAgent,P.PublishAgent,P.CreateSkill,P.PublishSkill,P.ReviewResourcePublish,P.ManageTeam,P.ManageAllTeams],admin:[P.ManageMember,P.ManageCapability,P.ManageConnector,P.ManageChatbot,P.ManageChannelAgents,P.CreateCustomConnector,P.PublishCustomConnector,P.CreateAgent,P.PublishAgent,P.CreateSkill,P.PublishSkill,P.ManageTeam],member:[P.CreateCustomConnector,P.PublishCustomConnector,P.CreateAgent,P.PublishAgent,P.CreateSkill,P.PublishSkill]};var sw=e.enum(["workspace","resource","team"]),cw=Object.values(P),lw=e.object({id:e.enum(cw),name:e.string(),descriptions:e.array(e.string()).min(1),category:sw}),n4=e.object({lang:af}),r4=e.object({permissions:e.array(lw)}),uw=[{id:"manage_role",category:"workspace"},{id:"manage_member",category:"workspace"},{id:"manage_workspace",category:"workspace"},{id:"manage_payment",category:"workspace"},{id:"manage_model",category:"workspace"},{id:"manage_capability",category:"resource"},{id:"create_custom_connector",category:"resource"},{id:"publish_custom_connector",category:"resource"},{id:"create_agent",category:"resource"},{id:"publish_agent",category:"resource"},{id:"create_skill",category:"resource"},{id:"publish_skill",category:"resource"},{id:"create_workflow",category:"resource"},{id:"review_resource_publish",category:"resource"},{id:"manage_team",category:"team"},{id:"manage_all_teams",category:"team"},{id:"manage_chatbot",category:"workspace"},{id:"manage_channel_agents",category:"workspace"}],dw=uw.map(t=>t.id),ln=e.enum(dw),o4=e.object({permissions:e.array(ln)});var pw={en:{defaultVariant:"en-US",variants:["en-US","en-GB"]},zh:{defaultVariant:"zh-TW",variants:["zh-CN","zh-HK","zh-TW"]},es:{defaultVariant:"es-MX",variants:["es-MX","es-ES","es-US"]},fr:{defaultVariant:"fr-FR",variants:["fr-FR","fr-CA"]},pt:{defaultVariant:"pt-PT",variants:["pt-PT","pt-BR"]}},c4=Object.keys(pw);var xd=e.object({en:e.enum(["en-US","en-GB"]).optional(),zh:e.enum(["zh-CN","zh-HK","zh-TW"]).optional(),es:e.enum(["es-MX","es-ES","es-US"]).optional(),fr:e.enum(["fr-FR","fr-CA"]).optional(),pt:e.enum(["pt-PT","pt-BR"]).optional()}).strict();var mw=100,gw=100,fw=100,hw=1e3,vw=e.object({displayName:e.string().nullable(),jobTitle:e.string().nullable(),language:e.string().nullable(),customPreferences:e.string().nullable(),voiceLanguageVariants:xd.nullable(),updatedAt:e.iso.datetime()}),p4=e.object({displayName:e.string().trim().max(mw).nullable().optional(),jobTitle:e.string().trim().max(gw).nullable().optional(),language:e.string().trim().max(fw).nullable().optional(),customPreferences:e.string().trim().max(hw).nullable().optional(),voiceLanguageVariants:xd.nullable().optional()}),m4=e.object({workspaceId:e.uuid()}),g4=vw.extend({updatedAt:e.iso.datetime().nullable()});var _4=e.object({workspaceId:e.uuid()}),x4=e.object({workspaceId:e.uuid(),teamId:e.uuid(),publishId:e.uuid()}),S4=e.object({workspaceId:e.uuid(),teamId:e.uuid()}),Sd=[le.MEMBER,le.MANAGER,le.OWNER],k4=e.object({resourceType:ue,resourceId:e.uuid(),teamIds:e.array(e.uuid()).min(1).max(20).refine(t=>new Set(t).size===t.length,{message:"teamIds must not contain duplicates"}),message:e.string().trim().max(ii).optional()}),$4=e.object({roles:e.array(e.enum(Sd)).min(1).refine(t=>new Set(t).size===t.length,{message:"Roles must be unique"})}),I4=e.object({roles:e.array(e.enum(Sd)).min(1).refine(t=>new Set(t).size===t.length,{message:"Roles must be unique"})}),bw=e.object({id:e.uuid(),resource:ai,author:Ve,requester:Ve,teamId:e.uuid(),versionNumber:e.number().int().nullable(),status:e.enum(Ke),message:e.string().nullable(),roles:e.array(e.enum(Sd)).nullable(),reviewer:Ve.nullable(),reviewedAt:e.iso.datetime().nullable(),rejectReason:e.string().nullable(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),w4=e.object({items:e.array(bw),nextKey:e.string().optional()}),T4=e.object({count:e.number().int()});var P4=e.object({workspaceId:e.uuid()}),j4=e.object({workspaceId:e.uuid(),publishId:e.uuid()}),O4=e.object({resourceType:ue,resourceId:e.uuid(),message:e.string().trim().max(ii).optional()}),z4=e.object({roleIds:e.array(e.uuid()).min(1).optional()}),C4=e.object({roleIds:e.array(e.uuid()).nullable().optional()}),yw=e.object({id:e.uuid(),resource:ai,author:Ve.nullable(),requester:Ve.nullable(),versionNumber:e.number().int().nullable(),workspaceId:e.uuid(),status:e.enum(Ke),message:e.string().nullable(),roleIds:e.array(e.uuid()).nullable(),reviewer:Ve.nullable(),reviewedAt:e.iso.datetime().nullable(),rejectReason:e.string().nullable(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),U4=e.object({items:e.array(yw),total:e.number().int().nonnegative(),nextKey:e.string().optional()}),N4=e.object({resourceType:ue.optional()}),D4=e.object({count:e.number().int()});var K4=e.object({url:e.url(),title:e.string().trim().min(1).max(500).optional(),modelId:vi.optional(),preferredLanguage:e.string().trim().min(2).max(10).regex(/^[a-zA-Z]{2,3}(-[a-zA-Z]{2,8})?$/,"Invalid language code format").optional()}),V4=e.object({recordingId:e.uuid(),source:e.literal("media"),message:e.string()}),H4=e.object({url:e.url()}),J4=e.object({url:e.string(),type:e.literal("media"),title:e.string(),duration:e.number().optional(),thumbnailUrl:e.string().optional(),contentType:e.string().optional(),fileSize:e.number().optional(),extractor:e.string().optional(),channelName:e.string().optional(),uploadDate:e.string().optional()}),X4=e.object({downloadUrl:e.string(),playbackPending:e.boolean(),url:e.string()});var e6=e.object({deploymentMode:Sh,features:e.object({enableCapability:e.boolean(),enableCapabilityProviderSwitch:e.boolean(),enableChatbotSlack:e.boolean(),enableProject:e.boolean(),enableScheduleActiveWindows:e.boolean(),enableScheduleJudge:e.boolean(),scheduleJudgeDefaultEnabled:e.boolean()})});var o6=e.object({workspaceId:e.uuid(),resourceType:ue}),_w=e.object({id:e.uuid(),name:e.string()}),i6=e.object({teams:e.array(_w)});var Fh=100,Wh=500,xw=e.object({id:e.uuid(),name:e.string(),description:e.string().optional(),isDefault:e.boolean(),memberCount:e.number().int(),permissions:e.array(e.string()),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),l6=e.object({roles:e.array(xw),nextKey:e.string().optional()}),u6=e.object({name:e.string().trim().min(1).max(Fh),description:e.string().trim().max(Wh).optional(),permissions:e.array(ln).min(1)});var d6=e.object({name:e.string().trim().min(1).max(Fh),description:e.string().trim().max(Wh).optional(),permissions:e.array(ln).min(1)});function Gh(t,r,o="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:t,timeZoneName:o}).format(r).split(/\s/g).slice(2).join(" ")}var Sw={},lr={};function pe(t,r){try{let i=(Sw[t]||=new Intl.DateTimeFormat("en-US",{timeZone:t,timeZoneName:"longOffset"}).format)(r).split("GMT")[1];return i in lr?lr[i]:Kh(i,i.split(":"))}catch{if(t in lr)return lr[t];let o=t?.match(kw);return o?Kh(t,o.slice(1)):NaN}}var kw=/([+-]\d\d):?(\d\d)?/;function Kh(t,r){let o=+(r[0]||0),i=+(r[1]||0),n=+(r[2]||0)/60;return lr[t]=o*60+i>0?o*60+i+n:o*60-i-n}var Ye=class t extends Date{constructor(...r){super(),r.length>1&&typeof r[r.length-1]=="string"&&(this.timeZone=r.pop()),this.internal=new Date,isNaN(pe(this.timeZone,this))?this.setTime(NaN):r.length?typeof r[0]=="number"&&(r.length===1||r.length===2&&typeof r[1]!="number")?this.setTime(r[0]):typeof r[0]=="string"?this.setTime(+new Date(r[0])):r[0]instanceof Date?this.setTime(+r[0]):(this.setTime(+new Date(...r)),Jh(this,r)):this.setTime(Date.now())}static tz(r,...o){return o.length?new t(...o,r):new t(Date.now(),r)}withTimeZone(r){return new t(+this,r)}getTimezoneOffset(){let r=-pe(this.timeZone,this);return r>0?Math.floor(r):Math.ceil(r)}setTime(r){return Date.prototype.setTime.apply(this,arguments),bi(this),+this}[Symbol.for("constructDateFrom")](r){return new t(+new Date(r),this.timeZone)}},Vh=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(t=>{if(!Vh.test(t))return;let r=t.replace(Vh,"$1UTC");Ye.prototype[r]&&(t.startsWith("get")?Ye.prototype[t]=function(){return this.internal[r]()}:(Ye.prototype[t]=function(){return Date.prototype[r].apply(this.internal,arguments),$w(this),+this},Ye.prototype[r]=function(){return Date.prototype[r].apply(this,arguments),bi(this),+this}))});function bi(t){t.internal.setTime(+t),t.internal.setUTCSeconds(t.internal.getUTCSeconds()-Math.round(-pe(t.timeZone,t)*60))}function $w(t){Date.prototype.setFullYear.call(t,t.internal.getUTCFullYear(),t.internal.getUTCMonth(),t.internal.getUTCDate()),Date.prototype.setHours.call(t,t.internal.getUTCHours(),t.internal.getUTCMinutes(),t.internal.getUTCSeconds(),t.internal.getUTCMilliseconds()),Jh(t)}function Jh(t,r){let o=Array.isArray(r)?Iw(r):+t.internal,i=pe(t.timeZone,t),n=i>0?Math.floor(i):Math.ceil(i),a=new Date(+t);a.setUTCHours(a.getUTCHours()-1);let s=-new Date(+t).getTimezoneOffset(),c=-new Date(+a).getTimezoneOffset(),u=s-c,d=s;if(u&&s!==n){let hn=Date.prototype.getHours.apply(t),Ei=Array.isArray(r)?r[3]||0:t.internal.getUTCHours();if(hn!==Ei){let ft=new Date(+t),Wd=s-n;Wd&&ft.setUTCMinutes(ft.getUTCMinutes()+Wd);let Ai=pe(t.timeZone,ft);(Ai>0?Math.floor(Ai):Math.ceil(Ai))===n&&(d=c)}}let p=d-n;p&&Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+p);let v=new Date(+t);v.setUTCSeconds(0);let f=s>0?v.getSeconds():(v.getSeconds()-60)%60,l=Math.round(-(pe(t.timeZone,t)*60))%60;(l||f)&&Date.prototype.setUTCSeconds.call(t,Date.prototype.getUTCSeconds.call(t)+l+f);let m=pe(t.timeZone,t),b=m>0?Math.floor(m):Math.ceil(m),$=-new Date(+t).getTimezoneOffset()-b,I=b!==n,E=$-p,z=b-n,L=o-b*60*1e3,je=z>0&&Hh(t)-o===z*60*1e3&&Hh(t,L)!==o;if(I&&E&&!je){Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+E);let hn=pe(t.timeZone,t),Ei=hn>0?Math.floor(hn):Math.ceil(hn),ft=b-Ei;ft&&E<0&&Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+ft)}bi(t);let fn=(r?o:o+l*1e3)-+t.internal;fn&&Math.abs(fn)<1800*1e3&&(Date.prototype.setTime.call(t,+t+fn),bi(t))}function Iw(t){return Date.UTC(t[0],t.length>1?t[1]:0,t.length>2?t[2]:1,...t.slice(3))}function Hh(t,r){let o=new Date(r??+t);return o.setUTCSeconds(o.getUTCSeconds()-Math.round(-pe(t.timeZone,o)*60)),+o}var yi=class t extends Ye{static tz(r,...o){return o.length?new t(...o,r):new t(Date.now(),r)}toISOString(){let[r,o,i]=this.tzComponents(),n=`${r}${o}:${i}`;return this.internal.toISOString().slice(0,-1)+n}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){let[r,o,i,n]=this.internal.toUTCString().split(" ");return`${r?.slice(0,-1)} ${i} ${o} ${n}`}toTimeString(){let r=this.internal.toUTCString().split(" ")[4],[o,i,n]=this.tzComponents();return`${r} GMT${o}${i}${n} (${Gh(this.timeZone,this)})`}toLocaleString(r,o){return Date.prototype.toLocaleString.call(this,r,{...o,timeZone:o?.timeZone||this.timeZone})}toLocaleDateString(r,o){return Date.prototype.toLocaleDateString.call(this,r,{...o,timeZone:o?.timeZone||this.timeZone})}toLocaleTimeString(r,o){return Date.prototype.toLocaleTimeString.call(this,r,{...o,timeZone:o?.timeZone||this.timeZone})}tzComponents(){let r=this.getTimezoneOffset(),o=r>0?"-":"+",i=String(Math.floor(Math.abs(r)/60)).padStart(2,"0"),n=String(Math.abs(r)%60).padStart(2,"0");return[o,i,n]}withTimeZone(r){return new t(+this,r)}[Symbol.for("constructDateFrom")](r){return new t(+new Date(r),this.timeZone)}};var ww=12,_i=e.string().length(ww).regex(/^[a-z0-9]+$/u);var kd=e.discriminatedUnion("mode",[e.object({mode:e.literal("version"),versionId:e.uuid()}),e.object({mode:e.literal("work"),taskId:e.uuid()})]),Tw=e.object({mode:e.literal("live")}),Ew=e.union([kd,Tw]),q6=e.looseObject({siteKey:_i,env:e.string().min(1),serve:Ew,iat:e.number().optional(),exp:e.number().optional()});var Rw=["preview_site_ready","preview_site_publish","preview_site_delete"],Pw=128;function Yh(t,r){let o=new Set;for(let i of t){let n=r(i);if(o.has(n))return n;o.add(n)}}var Qh=e.array(e.string().min(1)).superRefine((t,r)=>{let o=Yh(t,i=>i);o&&r.addIssue({code:"custom",message:`Duplicate path: ${o}`})}),rB=e.enum(Rw),ev={env:e.string().min(1),sandboxDomain:e.string().min(1),sandboxId:e.string().min(1)},Xh={...ev,siteDir:e.string().min(1).default("app")},tv={env:e.string().min(1),siteKey:_i},qh={...tv,serve:kd},oB=e.discriminatedUnion("op",[e.object({op:e.literal("preview_site_ready"),...Xh}),e.object({op:e.literal("preview_site_publish"),...Xh}),e.object({op:e.literal("preview_site_delete"),...ev})]),iB=e.discriminatedUnion("op",[e.object({op:e.literal("preview_site_ready"),...qh}),e.object({op:e.literal("preview_site_publish"),...qh}),e.object({op:e.literal("preview_site_delete"),...tv})]),jw=e.object({path:e.string().min(1),contentBase64:e.base64("Invalid base64 content"),contentType:e.string().optional()}),aB=e.object({files:e.array(jw).max(Pw).superRefine((t,r)=>{let o=Yh(t,i=>i.path);o&&r.addIssue({code:"custom",message:`Duplicate path: ${o}`})}),finalize:e.boolean().default(!0),manifestFiles:Qh.optional()}).superRefine((t,r)=>{if(!t.finalize||!t.manifestFiles)return;let o=new Set(t.manifestFiles);for(let i of t.files)if(!o.has(i.path)){r.addIssue({code:"custom",message:`Manifest is missing published file: ${i.path}`});return}}),sB=e.object({filesUploaded:e.number().int().nonnegative(),filesDeleted:e.number().int().nonnegative()}),cB=e.object({files:Qh});var Ow={BUILT_IN:"built_in",CUSTOM:"custom"},zw=Object.values(Ow),$d=["updatedAt","name"],yB=K.extend({createdBy:e.enum(["me"]).optional(),search:e.string().trim().max(200).optional(),sortBy:e.enum($d).optional()}),Cw=e.object({id:e.uuid(),name:e.string(),isMe:e.boolean()}),Uw=e.object({id:e.uuid()}).nullable(),nv=e.object({id:e.uuid(),name:e.string(),description:e.string(),type:e.enum(zw).optional(),provider:e.string().nullable(),author:Cw.nullable(),publish:Uw,publishedTo:Pe.optional(),team:e.object({id:e.uuid(),name:e.string()}).optional().describe("The team this skill is published to, only present when createdBy is team"),versionNumber:e.number().int().nullable().optional(),isEnabled:e.boolean(),myRole:V,createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),_B=e.object({skills:e.array(nv),nextKey:e.string().optional()}),xB=e.object({workspaceId:e.uuid(),skillId:e.uuid(),versionId:e.uuid()}),Nw=e.object({id:e.uuid(),name:e.string()}),Dw=e.object({id:e.uuid(),versionNumber:e.number().int().min(1),description:e.string(),createdBy:Nw,createdAt:e.iso.datetime()}),SB=e.object({skillId:e.uuid(),skillName:e.string(),versions:e.array(Dw)}),kB=e.object({url:e.url()}),$B=e.object({search:e.string().trim().max(200).optional(),status:e.enum(Xt).optional(),nextKey:e.string().optional(),limit:e.coerce.number().int().min(1).max(100).default(20),sortBy:e.enum($d).optional()}),Lw=e.object({id:e.uuid(),name:e.string(),description:e.string().optional(),hasUnpublishedChanges:e.boolean(),latestVersionNumber:e.number().int().nullable(),publishedTo:Pe.optional(),myRole:V,createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),IB=e.object({skills:e.array(Lw),nextKey:e.string().optional(),totalCount:e.number().int().nonnegative(),statusCounts:qt}),wB=K.extend({createdBy:e.enum(["workspace","team","me"]).optional(),teamId:e.uuid().optional(),search:e.string().trim().max(200).optional(),sortBy:e.enum($d).optional()}).refine(t=>!t.teamId||t.createdBy==="team",{message:"teamId can only be used with createdBy: team",path:["teamId"]}),TB=e.object({field:e.string(),message:e.string()}),EB=e.object({workspaceId:e.uuid(),skillId:e.uuid()}),AB=e.object({isEnabled:e.boolean()}),RB=e.object({isEnabled:e.boolean()}),PB=e.object({skills:e.array(nv),nextKey:e.string().optional()}),jB=e.object({workspaceId:e.uuid(),skillId:e.uuid()}),Mw=e.object({path:e.string(),size:e.number().int().nonnegative()}),OB=e.object({skillId:e.uuid(),skillName:e.string(),description:e.string(),versionId:e.uuid(),files:e.array(Mw)}),zB=e.object({workspaceId:e.uuid(),skillId:e.uuid()}),CB=e.object({path:e.string().trim().min(1).max(1024)}),UB=e.discriminatedUnion("kind",[e.object({kind:e.literal("text"),path:e.string(),size:e.number().int().nonnegative(),content:e.string()}),e.object({kind:e.literal("image"),path:e.string(),size:e.number().int().nonnegative(),content:e.string()}),e.object({kind:e.literal("binary"),path:e.string(),size:e.number().int().nonnegative()}),e.object({kind:e.literal("too_large"),path:e.string(),size:e.number().int().nonnegative()})]);var rv=e.enum(["queued","running","completed","failed","cancelled"]),Bw=rv,Zw=e.enum(["subagent","workflow"]);function ov(t){return t==="subagent"?"subagentRuns":"workflowRuns"}var Fw=["completed","failed","cancelled"],Ww=new Set(Fw);function BB(t){return Ww.has(t)}function ZB(t){return t.at(-1)?.toolCallCount??0}var Gw=e.object({runId:e.string(),kind:Zw,status:Bw,label:e.string(),startedAt:e.string().nullable(),createdAt:e.string()}),FB=e.object({runs:e.array(Gw)}),WB=e.object({runId:e.uuid(),status:rv,startedAt:e.string().nullable(),progress:e.custom().nullable().meta({type:"object"}),result:e.custom().nullable().meta({type:"object"}),error:e.custom().nullable().meta({type:"object"})});var iv=e.enum(["chatgpt"]),Kw=e.enum(["pending","connected","expired","error"]),Vw=e.object({provider:iv,status:Kw,accountLabel:e.string().nullable(),plan:e.string().nullable(),lastError:e.string().nullable(),connectedAt:e.iso.datetime().nullable()}),VB=e.object({connections:e.array(Vw)}),HB=e.object({userCode:e.string(),verificationUrl:e.url(),expiresAt:e.iso.datetime(),pollIntervalSeconds:e.number().int().positive()}),Hw=e.object({id:e.string(),name:e.string(),provider:iv}),JB=e.object({models:e.array(Hw)});var YB=e.object({errorMessage:e.string().min(1).max(1e3),url:e.url().max(2e3).optional(),userAgent:e.string().max(500),workspaceId:e.uuid().optional(),sentryEventId:e.string().max(64).optional(),description:e.string().max(5e3).nullable()}),QB=e.object({requestId:e.number().int()});var av=100,sv=500,cv=50,aZ=e.object({workspaceId:e.uuid()}),sZ=e.object({workspaceId:e.uuid(),teamId:e.uuid()}),cZ=e.object({workspaceId:e.uuid(),teamId:e.uuid(),userId:e.uuid()}),lv=[le.OWNER,le.MANAGER,le.MEMBER],Id=[Zu.VISIBLE,Zu.HIDDEN],uv=[le.OWNER,le.MANAGER,le.MEMBER],dv=e.object({email:e.email(),role:e.enum(uv)}),lZ=e.object({name:e.string().trim().min(1).max(av),description:e.string().trim().max(sv).nullable().default(null),visibility:e.enum(Id).optional(),requireReview:e.boolean().optional(),acceptExternalSubmissions:e.boolean().optional(),members:e.array(dv).min(1).max(cv).optional()}),uZ=e.object({name:e.string().trim().min(1).max(av).optional(),description:e.string().trim().max(sv).nullable().optional(),visibility:e.enum(Id).optional(),requireReview:e.boolean().optional(),acceptExternalSubmissions:e.boolean().optional()}).refine(t=>t.name!==void 0||t.description!==void 0||t.visibility!==void 0||t.requireReview!==void 0||t.acceptExternalSubmissions!==void 0,{message:"At least one field must be provided"}),dZ=e.object({members:e.array(dv).min(1).max(cv)}),pZ=e.object({role:e.enum(uv)}),Jw=e.object({id:e.uuid(),name:e.string()}),Xw=e.object({id:e.uuid(),name:e.string(),description:e.string().nullable(),visibility:e.enum(Id),requireReview:e.boolean(),acceptExternalSubmissions:e.boolean(),memberCount:e.number().int(),currentUserRole:e.enum(lv).nullable(),createdBy:Jw,createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()});var qw=Xw.extend({publishPendingCount:e.number().int(),published:e.boolean().optional()}),mZ=e.object({teams:e.array(qw),nextKey:e.string().optional()}),gZ=K.extend({search:e.string().trim().max(200).optional(),resourceType:ue.optional(),resourceId:e.uuid().optional()}),Yw=e.object({userId:e.uuid(),name:e.string(),email:e.string(),role:e.enum(lv),createdAt:e.iso.datetime()});var fZ=e.object({members:e.array(Yw),total:e.number().int().nonnegative()}),hZ=ce.extend({search:e.string().trim().max(200).optional()});var Qw=["posthog","sentry","zendesk"],eT=e.enum(Qw),yZ=e.object({platform:eT}),_Z=e.object({id:e.uuid()});var tT=200,pv={MANUAL:"manual",AUTO_LEARNED:"auto_learned"},nT=e.object({id:e.uuid(),word:e.string(),source:e.enum([pv.MANUAL,pv.AUTO_LEARNED]),createdAt:e.iso.datetime()}),kZ=e.object({word:e.string().trim().min(1).max(tT)});var $Z=e.object({limit:e.coerce.number().int().min(1).max(100).default(100),nextKey:e.string().optional()}),IZ=e.object({words:e.array(nT),nextKey:e.string().optional()}),wZ=e.object({workspaceId:e.uuid(),wordId:e.uuid()}),TZ=e.object({workspaceId:e.uuid()});var rT=e.record(e.string(),e.unknown()),oT=e.string().min(1).max(64).regex(/^[a-z][a-z0-9_]*$/,"node id must be lower_snake_case"),mv=e.enum(sn),wd=e.union([e.literal("auto"),mv]),iT=e.enum(["routine","reasoning","judgment"]),aT=e.enum(["implicit_auto","fanout_max_excluded","only_enabled_tier","single_eligible_tier","tier_unavailable"]),sT=e.object({requestedTier:wd,classifiedDemand:iT.optional(),selectedTier:mv,source:e.enum(["pinned","classified","fallback","policy","chat-router"]),constraints:e.array(aT),policyVersion:e.enum(["chat-router-v1","workflow-v1"])}),cT=e.object({id:oT,label:e.string().min(1).max(120)}),zZ=cT.extend({kind:e.literal("agent"),promptTemplate:e.string().min(1),agentId:e.uuid().optional(),toolAllowlist:e.array(e.string()).optional(),outputSchema:rT.optional(),modelSelection:wd.optional(),maxSteps:e.number().int().min(1).max(50).optional()}),lT=e.enum(["queued","running","done","failed"]),CZ=e.object({status:lT,output:e.unknown().optional(),error:e.string().optional(),durationMs:e.number().int().optional(),tokens:e.number().int().optional(),usage:e.object({inputTokens:e.number().int(),outputTokens:e.number().int(),totalTokens:e.number().int(),reasoningTokens:e.number().int(),cachedInputTokens:e.number().int(),cachedCreationTokens:e.number().int(),model:e.string().optional()}).optional(),fanOut:e.object({total:e.number().int(),done:e.number().int(),failed:e.number().int(),running:e.number().int()}).optional(),label:e.string().optional(),kind:e.enum(["agent","fan_out"]).optional(),seq:e.number().int().optional(),prompt:e.string().optional(),invocation:e.object({schema:e.unknown().optional(),toolAllowlist:e.array(e.string()).optional(),agentId:e.string().optional(),maxSteps:e.number().int().optional(),model:wd.optional()}).optional(),modelAllocation:sT.optional(),stepCount:e.number().int().optional(),toolCalls:e.array(e.object({name:e.string(),summary:e.string()})).optional(),phaseId:e.string().optional(),phaseSeq:e.number().int().optional()});var uT=e.object({id:e.uuid(),name:e.string(),description:e.string().nullable(),scriptSource:e.string(),isActive:e.boolean(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime(),myRole:V}),LZ=e.object({workflows:e.array(uT),nextKey:e.string().optional()}),dT=e.enum(["queued","running","completed","failed","cancelled"]);var gv=e.object({id:e.uuid(),status:dT,startedAt:e.iso.datetime().nullable(),completedAt:e.iso.datetime().nullable(),error:e.unknown().nullable(),createdAt:e.iso.datetime()}),MZ=e.object({runs:e.array(gv),nextKey:e.string().optional()}),BZ=gv.extend({workflowId:e.uuid(),context:e.custom().meta({type:"object"}),scriptSnapshot:e.string(),args:e.unknown().nullable()});var fv=50,pT=1e3,hv=e.enum(["invite-only","open"]),mT=/^[\p{L}\p{N} ._-]+$/u,vv=e.string().min(1,"Workspace name is required").max(fv,`Workspace name must be ${fv} characters or less`).regex(mT,"Workspace name can only contain letters, numbers, spaces, dashes, underscores, and periods").refine(t=>t===t.trim(),{message:"Workspace name cannot start or end with spaces"}),bv=e.object({id:e.string(),name:e.string(),userCount:e.number(),config:e.object({additionalModelsEnabled:e.boolean().optional(),subscriptionModelsEnabled:e.boolean().optional()}).optional(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),sF=e.object({workspaces:e.array(bv)}),gT=bv.extend({config:e.object({joinPolicy:hv})}),cF=e.object({workspaces:e.array(gT)}),lF=e.object({joined:e.boolean()}),uF=e.object({name:vv,ownerId:e.uuid()}),dF=e.object({name:vv}),fT=50,hT=/^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,63}$/,vT=e.string().trim().toLowerCase().max(253).regex(hT,"Invalid email domain"),pF=e.object({hideThinking:e.boolean().optional(),joinPolicy:hv.optional(),allowedDomains:e.array(e.string()),toolApprovalMode:Fe.optional(),requireReview:e.boolean().optional(),shareSensitiveScanEnabled:e.boolean().optional(),maxShareVisibility:Xu.optional(),maxPreviewVisibility:Xu.optional(),disabledModelTiers:e.array(e.enum(sn)).optional(),additionalModelsEnabled:e.boolean().optional(),subscriptionModelsEnabled:e.boolean().optional(),autoTierDisabled:e.boolean().optional(),systemPrompt:e.string().trim().max(pT).nullable().optional()});var mF=e.object({email:e.email(),name:e.string(),roles:e.array(e.string()),permissions:e.array(ln)}),Td=e.enum(["requested","approved","rejected"]),gF=e.object({workspaceId:e.uuid(),invitationId:e.uuid()}),fF=e.object({email:e.email(),status:Td,workspace:e.object({id:e.uuid(),name:e.string()})}),bT=e.object({id:e.uuid(),workspaceId:e.uuid(),email:e.email(),status:Td,role:e.string(),requestedSeatType:ve,invitedBy:e.object({email:e.email(),name:e.string(),isMe:e.boolean()}).optional(),invitedAt:e.iso.datetime().optional(),expiresAt:e.iso.datetime().optional(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),hF=e.object({invitations:e.array(bT),total:e.number().int().nonnegative()}),vF=ce.extend({status:Td.optional(),search:e.string().trim().max(200).optional()}),yv=e.object({starter:e.number().int().nonnegative(),pro:e.number().int().nonnegative(),premium:e.number().int().nonnegative()}),_v=e.object({id:e.string(),email:e.string()}),yT=e.object({id:e.string(),name:e.string(),owners:e.array(_v),userCount:e.number().int().nonnegative(),paidSeatCount:e.number().int().nonnegative(),seatCountsByType:yv,createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),_T=["createdAt","userCount","paidSeatCount"],bF=ce.extend({search:e.string().trim().max(200).optional(),exact:e.stringbool().optional(),sortBy:e.enum(_T).default("createdAt"),order:e.enum(Wg).default("desc")}),yF=e.object({workspaces:e.array(yT),total:e.number().int().nonnegative()}),_F=e.object({workspaceId:e.uuid()}),xT=e.object({purchasedUsd:e.number().nonnegative(),grantedUsd:e.number().nonnegative(),totalUsd:e.number().nonnegative(),nextExpiry:e.object({amountUsd:e.number().nonnegative(),expiresAt:e.iso.datetime()}).nullable()}),ST=e.object({id:e.string(),email:e.string(),name:e.string(),seatType:ve.nullable(),joinedAt:e.iso.datetime(),loginMethods:e.array(e.enum(Fu))}),kT=e.object({enabled:e.boolean(),modelIds:e.array(e.string())}),xF=e.object({id:e.string(),name:e.string(),owners:e.array(_v),userCount:e.number().int().nonnegative(),paidSeatCount:e.number().int().nonnegative(),seatCountsByType:yv,extraUsage:xT,members:e.array(ST),allowedDomains:e.array(e.string()),advancedModels:kT,createdAt:e.iso.datetime(),updatedAt:e.iso.datetime()}),SF=e.object({allowedDomains:e.array(vT).max(fT)}),$T=100,kF=e.object({enabled:e.boolean(),modelIds:e.array(e.string().trim().min(1).max(200)).max($T)}),IT=e.object({id:e.uuid(),userId:e.uuid(),workspaceId:e.uuid(),year:e.number(),month:e.number(),totalCost:e.string(),operationCount:e.number(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime(),user:e.object({id:e.uuid(),name:e.string(),email:e.string()}),budgetOverride:e.object({budget:e.string().nullable()}).nullable().optional()}),$F=e.object({monthlyUsages:e.array(IT),nextKey:e.string().optional()});import Ie from"fs";import hE from"os";import gn from"path";import{HTTPError as lE,TimeoutError as uE}from"ky";import xi from"fs";function wT(t){let r=D.getEffectiveProfileName(t);return D.getProfileConfigFile(r)}function W(t){let r=wT(t);try{if(!xi.existsSync(r))return{};let o=xi.readFileSync(r,"utf-8");return JSON.parse(o)}catch{return{}}}function _e(t,r){let o=D.getEffectiveProfileName(r);D.ensureProfileDir(o);let i=D.getProfileConfigFile(o);xi.writeFileSync(i,JSON.stringify(t,null,2),{mode:384});try{xi.chmodSync(i,384)}catch{}}var Ed={getApiUrl(t){return W(t).apiUrl??null},setApiUrl(t,r){let o=W(r);o.apiUrl=t,_e(o,r)},clearApiUrl(t){let r=W(t);delete r.apiUrl,_e(r,t)},getHubUrl(t){return W(t).hubUrl??null},setHubUrl(t,r){let o=W(r);o.hubUrl=t,_e(o,r)},getAll(t){return W(t)},setAll(t,r){_e(t,r)},set(t,r,o){let i=W(o);i[t]=r,_e(i,o)},get(t,r){return W(r)[t]},unset(t,r){let o=W(r);delete o[t],_e(o,r)},getDefaultModel(t){return W(t).model?.default??null},setDefaultModel(t,r){let o=W(r);o.model={...o.model,default:t},_e(o,r)},getDefaultConnectorIds(t){return W(t).connectors?.defaults??null},setDefaultConnectorIds(t,r){let o=W(r);o.connectors={...o.connectors,defaults:t},_e(o,r)},getLocalTools(t){return W(t).localTools??null},setLocalTools(t,r){let o=W(r);o.localTools={...o.localTools,...t},_e(o,r)},getToolApprovalMode(t){let r=Fe.safeParse(W(t).toolApprovalMode);return r.success?r.data:null},setToolApprovalMode(t,r){let o=W(r);o.toolApprovalMode=t,_e(o,r)}};var TT="https://api.entrydesk.com",ET="https://app.entrydesk.com",AT=3100,RT=300*1e3,PT=300*1e3,jT=1800*1e3,OT=2147483647,Ad="ENTRYDESK_MCP_TIMEOUT",Rd="ENTRYDESK_MCP_MAX_TIMEOUT";function xv(t,r){let o=process.env[t];if(!o)return r;let i=Number(o);return Number.isSafeInteger(i)&&i>0?Math.min(i,OT):r}function Si(t){let r=xv(Ad,PT);return{apiUrl:process.env.ENTRYDESK_API_URL||Ed.getApiUrl(t)||TT,hubUrl:process.env.ENTRYDESK_HUB_URL||Ed.getHubUrl(t)||ET,mcp:{httpPort:AT,requestTimeout:r,requestMaxTotalTimeout:Math.max(xv(Rd,jT),r)},auth:{loginTimeout:RT,ignoreSslErrors:process.env.ENTRYDESK_IGNORE_SSL_ERRORS==="true"||!1}}}function un(t){return Si(t).apiUrl}function Sv(t){return Si(t).hubUrl}function ki(){return Si().auth}function kv(){return Si().mcp}import{HTTPError as iE}from"ky";import BT,{TimeoutError as ZT,isHTTPError as wv}from"ky";import ur from"crypto";import xe from"fs";import zT from"path";var CT="ENTRYDESK_FORCE_FILE_STORAGE",dn="EntryDesk CLI",UT="__entrydesk_keychain_test__",NT="profile:",DT=".credentials.key",$v={keychain:!1,permissions:!1,corruptFile:!1,windowsFile:!1};function Qe(t,r){$v[t]||($v[t]=!0,console.error(r))}function LT(){return process.env.ENTRYDESK_DEBUG?.toLowerCase()==="true"}function Iv(t){if(!t||typeof t!="object")return!1;let r=t;return!(!("accessToken"in r||"refreshToken"in r||"email"in r||"workspaceId"in r)||"accessToken"in r&&typeof r.accessToken!="string"||"refreshToken"in r&&typeof r.refreshToken!="string"||"email"in r&&typeof r.email!="string"||"workspaceId"in r&&typeof r.workspaceId!="string")}function MT(t){if(!t||typeof t!="object")return!1;let r=t;return typeof r.getPassword=="function"&&typeof r.setPassword=="function"&&typeof r.deletePassword=="function"}function Pd(t){return D.getProfileCredentialsFile(t)}var jd=class{getKeyFilePath(r){return zT.join(D.getProfileDir(r),DT)}loadEncryptionKey(r){let o=this.getKeyFilePath(r);try{if(!xe.existsSync(o))return null;let i=xe.readFileSync(o);return i.length!==32?null:(this.ensureSecureFilePermissions(o),i)}catch{return null}}createEncryptionKey(r){D.ensureProfileDir(r);let o=this.getKeyFilePath(r),i=ur.randomBytes(32);return xe.writeFileSync(o,i,{mode:384}),this.ensureSecureFilePermissions(o),i}getOrCreateEncryptionKey(r){let o=this.loadEncryptionKey(r);return o||this.createEncryptionKey(r)}encrypt(r,o){let i=ur.randomBytes(16),n=ur.createCipheriv("aes-256-gcm",o,i),a=n.update(r,"utf8","hex");a+=n.final("hex");let s=n.getAuthTag();return`${i.toString("hex")}:${s.toString("hex")}:${a}`}decrypt(r,o){let i=r.split(":");if(i.length!==3)throw new Error("Invalid encrypted data format");let n=Buffer.from(i[0],"hex"),a=Buffer.from(i[1],"hex"),s=i[2],c=ur.createDecipheriv("aes-256-gcm",o,n,{authTagLength:16});c.setAuthTag(a);let u=c.update(s,"hex","utf8");return u+=c.final("utf8"),u}tryDecrypt(r,o){try{return this.decrypt(r,o)}catch{return null}}tryParseCredentials(r){try{let o=JSON.parse(r);return Iv(o)?o:null}catch{return null}}ensureSecureFilePermissions(r){if(process.platform!=="win32"){try{xe.chmodSync(r,384)}catch{Qe("permissions","Warning: Failed to set secure permissions on credentials file.");return}try{(xe.statSync(r).mode&511)!==384&&Qe("permissions","Warning: Credentials file permissions are too permissive.")}catch{Qe("permissions","Warning: Failed to verify credentials file permissions.")}}}async getCredentials(r){let o=Pd(r);try{if(!xe.existsSync(o))return null;let i=xe.readFileSync(o,"utf-8").trim();if(!i)return null;let n=this.loadEncryptionKey(r),a=n?this.tryDecrypt(i,n):null;if(a){let s=this.tryParseCredentials(a);if(s)return s}return Qe("corruptFile","Warning: Credentials file is unreadable. Run `entrydesk login` again."),null}catch{return null}}async setCredentials(r,o){D.ensureProfileDir(r);let i=Pd(r),n=this.getOrCreateEncryptionKey(r),a=this.encrypt(JSON.stringify(o),n);xe.writeFileSync(i,a,{mode:384}),this.ensureSecureFilePermissions(i)}async deleteCredentials(r){let o=Pd(r);try{xe.existsSync(o)&&xe.unlinkSync(o)}catch{}}},Od=class{keytarModule=null;keytarLoadAttempted=!1;keychainAvailable=null;async getKeytar(){if(this.keytarLoadAttempted)return this.keytarModule;this.keytarLoadAttempted=!0;try{let o=await import("keytar"),i=o&&typeof o=="object"&&"default"in o?o.default:o;this.keytarModule=MT(i)?i:null}catch{this.keytarModule=null}return this.keytarModule}getAccount(r){return`${NT}${r}`}async checkKeychainAvailability(){if(this.keychainAvailable!==null)return this.keychainAvailable;try{let r=await this.getKeytar();if(!r)return this.keychainAvailable=!1,!1;let o=`${UT}${ur.randomBytes(8).toString("hex")}`,i="test";await r.setPassword(dn,o,i);let n=await r.getPassword(dn,o),a=await r.deletePassword(dn,o);return this.keychainAvailable=!!(a&&n===i),this.keychainAvailable}catch{return this.keychainAvailable=!1,!1}}async isAvailable(){return this.checkKeychainAvailability()}async getCredentials(r){if(!await this.checkKeychainAvailability())throw new Error("Keychain is not available");let o=await this.getKeytar();if(!o)throw new Error("Keytar module not available");let i=await o.getPassword(dn,this.getAccount(r));if(!i)return null;let n=this.tryParseKeychainPayload(i);return n||Qe("corruptFile",`Warning: Keychain entry for profile "${r}" is unreadable.`),n}async setCredentials(r,o){if(!await this.checkKeychainAvailability())throw new Error("Keychain is not available");let i=await this.getKeytar();if(!i)throw new Error("Keytar module not available");let n=JSON.stringify(o);await i.setPassword(dn,this.getAccount(r),n)}async deleteCredentials(r){if(!await this.checkKeychainAvailability())throw new Error("Keychain is not available");let o=await this.getKeytar();if(!o)throw new Error("Keytar module not available");await o.deletePassword(dn,this.getAccount(r))}tryParseKeychainPayload(r){try{let o=JSON.parse(r);return Iv(o)?o:null}catch{return null}}},zd=class{keychainStorage=null;fileStorage=new jd;keychainAvailable=null;initPromise=null;shouldForceFileStorage(){return process.env[CT]?.toLowerCase()==="true"}async initializeStorage(){if(this.shouldForceFileStorage()){this.keychainAvailable=!1,this.keychainStorage=null;return}try{let r=new Od,o=await r.isAvailable();this.keychainAvailable=o,this.keychainStorage=o?r:null}catch{this.keychainAvailable=!1,this.keychainStorage=null}!this.keychainAvailable&&!this.shouldForceFileStorage()&&(LT()&&Qe("keychain","Keychain unavailable. Falling back to file-based credentials."),process.platform==="win32"&&Qe("windowsFile","Warning: File-based credentials on Windows may be readable by other users."))}async ensureInitialized(){if(this.shouldForceFileStorage()){this.keychainAvailable=!1,this.keychainStorage=null;return}this.keychainAvailable===null&&(this.initPromise??=this.initializeStorage(),await this.initPromise)}disableKeychain(){this.shouldForceFileStorage()||Qe("keychain","Keychain error encountered. Falling back to file-based credentials."),this.keychainAvailable=!1,this.keychainStorage=null}async getKeychainStorage(){return await this.ensureInitialized(),this.shouldForceFileStorage()?null:this.keychainAvailable?this.keychainStorage:null}async getCredentials(r){let o=await this.getKeychainStorage();if(!o)return this.fileStorage.getCredentials(r);try{let n=await o.getCredentials(r);if(n)return n}catch{return this.disableKeychain(),this.fileStorage.getCredentials(r)}let i=await this.fileStorage.getCredentials(r);if(i)try{await o.setCredentials(r,i),await this.fileStorage.deleteCredentials(r)}catch{}return i}async setCredentials(r,o){let i=await this.getKeychainStorage();if(!i){await this.fileStorage.setCredentials(r,o);return}try{await i.setCredentials(r,o),await this.fileStorage.deleteCredentials(r)}catch{this.disableKeychain(),await this.fileStorage.setCredentials(r,o)}}async deleteCredentials(r){let o=await this.getKeychainStorage();if(o)try{await o.deleteCredentials(r)}catch{this.disableKeychain()}await this.fileStorage.deleteCredentials(r)}},B=new zd,Se={async saveAccessToken(t,r){let o=D.getEffectiveProfileName(r),i=await B.getCredentials(o)??{};i.accessToken=t,await B.setCredentials(o,i)},async getAccessToken(t){let r=D.getEffectiveProfileName(t);return(await B.getCredentials(r))?.accessToken??null},async saveRefreshToken(t,r){let o=D.getEffectiveProfileName(r),i=await B.getCredentials(o)??{};i.refreshToken=t,await B.setCredentials(o,i)},async getRefreshToken(t){let r=D.getEffectiveProfileName(t);return(await B.getCredentials(r))?.refreshToken??null},async saveEmail(t,r){let o=D.getEffectiveProfileName(r),i=await B.getCredentials(o)??{};i.email=t,await B.setCredentials(o,i)},async getEmail(t){let r=D.getEffectiveProfileName(t);return(await B.getCredentials(r))?.email??null},async saveWorkspaceId(t,r){let o=D.getEffectiveProfileName(r),i=await B.getCredentials(o)??{};i.workspaceId=t,await B.setCredentials(o,i)},async getWorkspaceId(t){let r=D.getEffectiveProfileName(t);return(await B.getCredentials(r))?.workspaceId??null},async saveAll(t,r){let o=D.getEffectiveProfileName(r);await B.setCredentials(o,t)},async getAll(t){let r=D.getEffectiveProfileName(t);return B.getCredentials(r)},async clear(t){let r=D.getEffectiveProfileName(t);await B.deleteCredentials(r)},async moveProfileCredentials(t,r){let o=await B.getCredentials(t);o&&(await B.setCredentials(r,o),await B.deleteCredentials(t))},async deleteProfileCredentials(t){await B.deleteCredentials(t)},async isLoggedIn(t){let r=D.getEffectiveProfileName(t);return(await B.getCredentials(r))?.accessToken!=null}};var $i=class t{client;baseUrl;runtimeConfigCache;constructor(r,o){this.baseUrl=r||un(o),ki().ignoreSslErrors&&(process.env.NODE_TLS_REJECT_UNAUTHORIZED="0",process.env.DEBUG&&console.log("[DEBUG] ApiClient: SSL certificate validation disabled")),this.client=BT.create({baseUrl:this.baseUrl.replace(/\/?$/,"/"),timeout:3e4,retry:{limit:3,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504]},hooks:{beforeError:[({error:n})=>(wv(n)&&(n.request.headers.delete("authorization"),n.request.headers.delete("Authorization")),n)]}})}getBaseUrl(){return this.baseUrl}async refreshOAuthToken(r){return this.client.post("v1/oauth/token",{json:{grant_type:"refresh_token",refresh_token:r.refreshToken,client_id:r.clientId}}).json()}async revokeOAuthToken(r){await this.client.post("v1/oauth/revoke",{json:{token:r.token,token_type_hint:"refresh_token",client_id:r.clientId}})}async getWorkspaces(r){try{return process.env.DEBUG&&console.log(`[DEBUG] Calling getWorkspaces API: ${this.baseUrl}/v1/workspaces`),await this.client.get("v1/workspaces",{headers:{Authorization:`Bearer ${r}`}}).json()}catch(o){throw process.env.DEBUG&&(console.error("[DEBUG] getWorkspaces error:",o),o instanceof Error&&"cause"in o&&console.error("[DEBUG] Error cause:",o.cause)),o}}async getAgents(r,o,i){let n={limit:i?.limit??100};return i?.nextKey&&(n.nextKey=i.nextKey),i?.search&&(n.search=i.search),await this.client.get(`v1/workspaces/${o}/availableAgents`,{headers:{Authorization:`Bearer ${r}`},searchParams:n}).json()}async createAgent(r,o,i){return await this.client.post(`v1/workspaces/${o}/agents`,{headers:{Authorization:`Bearer ${r}`},json:i}).json()}async updateAgent(r,o,i,n){await this.client.put(`v1/workspaces/${o}/agents/${i}`,{headers:{Authorization:`Bearer ${r}`},json:n})}async deleteAgent(r,o,i){await this.client.delete(`v1/workspaces/${o}/agents/${i}`,{headers:{Authorization:`Bearer ${r}`}})}async getMyAgents(r,o,i){let n={limit:i?.limit??100};return i?.nextKey&&(n.nextKey=i.nextKey),i?.search&&(n.search=i.search),await this.client.get(`v1/workspaces/${o}/myAgents`,{headers:{Authorization:`Bearer ${r}`},searchParams:n}).json()}async publishAgent(r,o,i){await this.client.post(`v1/workspaces/${o}/agents/${i}/publish`,{headers:{Authorization:`Bearer ${r}`}})}async getAgentGrants(r,o,i){return await this.client.get(`v1/workspaces/${o}/agents/${i}/grants`,{headers:{Authorization:`Bearer ${r}`}}).json()}async upsertAgentGrant(r,o,i,n,a){return await this.client.put(`v1/workspaces/${o}/agents/${i}/grants/${n}`,{headers:{Authorization:`Bearer ${r}`},json:{role:a}}).json()}async removeAgentGrant(r,o,i,n){await this.client.delete(`v1/workspaces/${o}/agents/${i}/grants/${n}`,{headers:{Authorization:`Bearer ${r}`}})}async getMeetings(r,o,i){let n={limit:i?.limit??20};return i?.nextKey&&(n.nextKey=i.nextKey),i?.search&&(n.search=i.search),i?.filter&&(n.filter=i.filter),i?.sortBy&&(n.sortBy=i.sortBy),await this.client.get(`v1/workspaces/${o}/meetings`,{headers:{Authorization:`Bearer ${r}`},searchParams:n}).json()}async getMeeting(r,o,i){return await this.client.get(`v1/workspaces/${o}/meetings/${i}`,{headers:{Authorization:`Bearer ${r}`}}).json()}async createMeeting(r,o,i){return await this.client.post(`v1/workspaces/${o}/meetings`,{headers:{Authorization:`Bearer ${r}`},json:i}).json()}async updateMeeting(r,o,i,n){return await this.client.patch(`v1/workspaces/${o}/meetings/${i}`,{headers:{Authorization:`Bearer ${r}`},json:n}).json()}async deleteMeeting(r,o,i){await this.client.delete(`v1/workspaces/${o}/meetings/${i}`,{headers:{Authorization:`Bearer ${r}`}})}async getMeetingPreviousBrief(r,o,i){return await this.client.get(`v1/workspaces/${o}/meetings/${i}/previous`,{headers:{Authorization:`Bearer ${r}`}}).json()}async getRecording(r,o,i){return await this.client.get(`v1/workspaces/${o}/recordings/${i}`,{headers:{Authorization:`Bearer ${r}`}}).json()}async getMeetingShares(r,o,i){return await this.client.get(`v1/workspaces/${o}/meetings/${i}/shares`,{headers:{Authorization:`Bearer ${r}`}}).json()}async upsertMeetingUserGrant(r,o,i,n,a){return await this.client.put(`v1/workspaces/${o}/meetings/${i}/shares/users/${n}`,{headers:{Authorization:`Bearer ${r}`},json:{role:a}}).json()}async removeMeetingUserGrant(r,o,i,n){await this.client.delete(`v1/workspaces/${o}/meetings/${i}/shares/users/${n}`,{headers:{Authorization:`Bearer ${r}`}})}async upsertMeetingTeamGrant(r,o,i,n,a){return await this.client.put(`v1/workspaces/${o}/meetings/${i}/shares/teams/${n}`,{headers:{Authorization:`Bearer ${r}`},json:{role:a}}).json()}async removeMeetingTeamGrant(r,o,i,n){await this.client.delete(`v1/workspaces/${o}/meetings/${i}/shares/teams/${n}`,{headers:{Authorization:`Bearer ${r}`}})}async getWorkflows(r,o,i){let n={limit:i?.limit??20};return i?.nextKey&&(n.nextKey=i.nextKey),i?.search&&(n.search=i.search),await this.client.get(`v1/workspaces/${o}/workflows`,{headers:{Authorization:`Bearer ${r}`},searchParams:n}).json()}async getWorkflow(r,o,i){return await this.client.get(`v1/workspaces/${o}/workflows/${i}`,{headers:{Authorization:`Bearer ${r}`}}).json()}async createWorkflow(r,o,i){return await this.client.post(`v1/workspaces/${o}/workflows`,{headers:{Authorization:`Bearer ${r}`},json:i}).json()}async updateWorkflow(r,o,i,n){await this.client.put(`v1/workspaces/${o}/workflows/${i}`,{headers:{Authorization:`Bearer ${r}`},json:n})}async triggerWorkflowRun(r,o,i,n){return await this.client.post(`v1/workspaces/${o}/workflows/${i}/runs`,{headers:{Authorization:`Bearer ${r}`},json:n===void 0?{}:{args:n}}).json()}async getWorkflowRuns(r,o,i,n){let a={limit:n?.limit??20};return n?.nextKey&&(a.nextKey=n.nextKey),await this.client.get(`v1/workspaces/${o}/workflows/${i}/runs`,{headers:{Authorization:`Bearer ${r}`},searchParams:a}).json()}async getWorkflowRun(r,o,i,n){return await this.client.get(`v1/workspaces/${o}/workflows/${i}/runs/${n}`,{headers:{Authorization:`Bearer ${r}`}}).json()}async getWorkflowGrants(r,o,i){return await this.client.get(`v1/workspaces/${o}/workflows/${i}/grants`,{headers:{Authorization:`Bearer ${r}`}}).json()}async upsertWorkflowGrant(r,o,i,n,a){return await this.client.put(`v1/workspaces/${o}/workflows/${i}/grants/${n}`,{headers:{Authorization:`Bearer ${r}`},json:{role:a}}).json()}async removeWorkflowGrant(r,o,i,n){await this.client.delete(`v1/workspaces/${o}/workflows/${i}/grants/${n}`,{headers:{Authorization:`Bearer ${r}`}})}async getNotifications(r,o,i){let n={limit:i?.limit??20};return i?.tab&&(n.tab=i.tab),i?.eventType&&(n.eventType=i.eventType),i?.cursor&&(n.cursor=i.cursor),await this.client.get(`v1/workspaces/${o}/notifications`,{headers:{Authorization:`Bearer ${r}`},searchParams:n}).json()}async getNotificationUnreadCount(r,o){return await this.client.get(`v1/workspaces/${o}/notifications/unreadCount`,{headers:{Authorization:`Bearer ${r}`}}).json()}async markNotificationRead(r,o,i){await this.client.post(`v1/workspaces/${o}/notifications/${i}/read`,{headers:{Authorization:`Bearer ${r}`}})}async markAllNotificationsRead(r,o){await this.client.post(`v1/workspaces/${o}/notifications/readAll`,{headers:{Authorization:`Bearer ${r}`}})}async getRuntimeConfig(){if(this.runtimeConfigCache)return this.runtimeConfigCache;let r=await this.client.get("v1/runtimeConfig").json();return this.runtimeConfigCache=r,r}async getModels(r,o){return await this.client.get(`v1/workspaces/${o}/models`,{headers:{Authorization:`Bearer ${r}`}}).json()}async getModelTiers(r,o){return await this.client.get(`v1/workspaces/${o}/modelTiers`,{headers:{Authorization:`Bearer ${r}`}}).json()}async listSelectableModels(r,o){let{deploymentMode:i}=await this.getRuntimeConfig(),{models:n}=i==="saas"?await this.getModelTiers(r,o):await this.getModels(r,o);return{models:n.filter(a=>a.enabled!==!1)}}async getConnectors(r,o,i){let n={limit:i?.limit??100,connectionStatus:i?.connectionStatus??"connected"};return i?.search&&(n.search=i.search),i?.nextKey&&(n.nextKey=i.nextKey),await this.client.get(`v1/workspaces/${o}/availableConnectors`,{headers:{Authorization:`Bearer ${r}`},searchParams:n}).json()}async getConnectorTools(r,o,i){return this.client.get(`v1/workspaces/${o}/connectors/${i}/tools`,{headers:{Authorization:`Bearer ${r}`}}).json()}async connectConnectorToken(r,o,i,n){await this.client.put(`v1/workspaces/${o}/connectors/${i}/token`,{headers:{Authorization:`Bearer ${r}`},json:n})}async getConnectorAuthUrl(r,o,i){return this.client.post(`v1/workspaces/${o}/connectors/${i}/authUrl`,{headers:{Authorization:`Bearer ${r}`},json:{}}).json()}async disconnectConnector(r,o,i){await this.client.delete(`v1/workspaces/${o}/connectors/${i}/token`,{headers:{Authorization:`Bearer ${r}`}})}async getTasks(r,o,i=20){return await this.client.get(`v1/workspaces/${o}/tasks`,{headers:{Authorization:`Bearer ${r}`},searchParams:{limit:i}}).json()}async searchTasks(r,o,i,n){let a={q:i,limit:n?.limit??20};return n?.nextKey&&(a.nextKey=n.nextKey),await this.client.get(`v1/workspaces/${o}/tasks/search`,{headers:{Authorization:`Bearer ${r}`},searchParams:a}).json()}async getMessages(r,o,i,n=50){return await this.client.get(`v1/workspaces/${o}/tasks/${i}/messages`,{headers:{Authorization:`Bearer ${r}`},searchParams:{limit:n}}).json()}async getAgent(r,o,i){return await this.client.get(`v1/workspaces/${o}/agents/${i}`,{headers:{Authorization:`Bearer ${r}`}}).json()}async listAvailableSkills(r,o,i){return await this.client.get(`v1/workspaces/${o}/availableSkills`,{headers:{Authorization:`Bearer ${r}`},searchParams:{createdBy:i?.createdBy,nextKey:i?.nextKey,limit:i?.limit??20}}).json()}async uploadSkill(r,o,i){return await this.client.post(`v1/workspaces/${o}/skills`,{headers:{Authorization:`Bearer ${r}`},body:i}).json()}async deleteSkill(r,o,i){await this.client.delete(`v1/workspaces/${o}/skills/${i}`,{headers:{Authorization:`Bearer ${r}`}})}async updateSkillPreference(r,o,i,n){return await this.client.patch(`v1/workspaces/${o}/skills/${i}/preference`,{headers:{Authorization:`Bearer ${r}`},json:{isEnabled:n}}).json()}async getSkillVersions(r,o,i){return await this.client.get(`v1/workspaces/${o}/skills/${i}/versions`,{headers:{Authorization:`Bearer ${r}`}}).json()}async getSkillGrants(r,o,i){return await this.client.get(`v1/workspaces/${o}/skills/${i}/grants`,{headers:{Authorization:`Bearer ${r}`}}).json()}async upsertSkillGrant(r,o,i,n,a){return await this.client.put(`v1/workspaces/${o}/skills/${i}/grants/${n}`,{headers:{Authorization:`Bearer ${r}`},json:{role:a}}).json()}async removeSkillGrant(r,o,i,n){await this.client.delete(`v1/workspaces/${o}/skills/${i}/grants/${n}`,{headers:{Authorization:`Bearer ${r}`}})}async downloadSkillCurrent(r,o,i){return await this.client.get(`v1/workspaces/${o}/skills/${i}/download`,{headers:{Authorization:`Bearer ${r}`}}).json()}async task(r,o,i){try{let n=await this.client.post(`v1/workspaces/${o}/tasks`,{headers:{Authorization:`Bearer ${r}`},json:i,timeout:6e4,throwHttpErrors:!1});if(!n.ok){let s=await n.text();throw new Error(`Task API failed (${n.status}): ${s}`)}let a=await n.json();return a.noop||!a.streamId?new Response(`data: [DONE]
119
+
120
+ `,{headers:{"Content-Type":"text/event-stream"}}):await this.taskStream(r,o,a.taskId)}catch(n){throw n instanceof ZT?new TypeError("Request timed out. Check your connection and try again.",{cause:n}):n}}async taskStream(r,o,i){let n=await this.client.get(`v1/workspaces/${o}/tasks/${i}/stream`,{headers:{Authorization:`Bearer ${r}`,Accept:"text/event-stream"},timeout:!1,throwHttpErrors:!1});if(!n.ok){let a=await n.text();throw new Error(`Task stream failed (${n.status}): ${a}`)}return n}resumeTaskStream(r,o,i){return this.taskStream(r,o,i)}async getSubagentRun(r,o,i,n){return this.client.get(`v1/workspaces/${o}/subagentRuns/${i}`,{headers:{Authorization:`Bearer ${r}`},signal:n}).json()}async openSubagentRunEvents(r,o,i,n){let a=await this.client.get(`v1/workspaces/${o}/subagentRuns/${i}/events`,{headers:{Authorization:`Bearer ${r}`,Accept:"text/event-stream"},timeout:!1,throwHttpErrors:!1,signal:n});if(!a.ok){let s=await a.text();throw new Error(`Subagent run events stream failed (${a.status}): ${s}`)}return a}async listBackgroundRuns(r,o,i){return this.client.get(`v1/workspaces/${o}/tasks/${i}/backgroundRuns`,{headers:{Authorization:`Bearer ${r}`}}).json()}async stopBackgroundRun(r,o,i,n,a){let s=ov(a);return(await this.client.post(`v1/workspaces/${o}/tasks/${i}/${s}/${n}/stop`,{headers:{Authorization:`Bearer ${r}`}})).status===202?"stopping":"already-finished"}async openWakeEvents(r,o,i,n){let a=await this.client.get(`v1/workspaces/${o}/tasks/${i}/wakeEvents`,{headers:{Authorization:`Bearer ${r}`,Accept:"text/event-stream"},timeout:!1,throwHttpErrors:!1,signal:n});if(!a.ok){let s=await a.text();throw new Error(`Wake events stream failed (${a.status}): ${s}`)}return a}async getBudget(r,o){return await this.client.get(`v1/workspaces/${o}/budget`,{headers:{Authorization:`Bearer ${r}`}}).json()}async updateBudget(r,o,i){await this.client.put(`v1/workspaces/${o}/budget`,{headers:{Authorization:`Bearer ${r}`},json:{budget:i}})}async getMonthlyUsages(r,o,i){return await this.client.get(`v1/workspaces/${o}/monthlyUsages`,{headers:{Authorization:`Bearer ${r}`},searchParams:{nextKey:i?.nextKey,limit:i?.limit??20}}).json()}async getBillingOverview(r,o){return await this.client.get(`v1/workspaces/${o}/billing/overview`,{headers:{Authorization:`Bearer ${r}`}}).json()}async getBillingInvoices(r,o,i){let n={limit:i?.limit??20};return i?.nextKey&&(n.nextKey=i.nextKey),await this.client.get(`v1/workspaces/${o}/billing/invoices`,{headers:{Authorization:`Bearer ${r}`},searchParams:n}).json()}async getUsageOverview(r,o){return await this.client.get(`v1/workspaces/${o}/usage/overview`,{headers:{Authorization:`Bearer ${r}`}}).json()}async getUsageMe(r,o){return await this.client.get(`v1/workspaces/${o}/usage/me`,{headers:{Authorization:`Bearer ${r}`}}).json()}async getUsageConsumptions(r,o,i){let n={limit:i?.limit??20,offset:i?.offset??0};return i?.periodStart&&(n.periodStart=i.periodStart),await this.client.get(`v1/workspaces/${o}/usage/consumptions`,{headers:{Authorization:`Bearer ${r}`},searchParams:n}).json()}async exportUsageCsv(r,o,i){let n={};return i&&(n.periodStart=i),await this.client.get(`v1/workspaces/${o}/usage/export`,{headers:{Authorization:`Bearer ${r}`},searchParams:n}).text()}async createTaskShare(r,o,i,n="public"){try{return await this.client.post(`v1/workspaces/${o}/tasks/${i}/shares`,{headers:{Authorization:`Bearer ${r}`},json:{visibility:n}}).json()}catch(a){if(wv(a)&&a.response.status===403){let s=await a.response.json().catch(()=>null);if(s?.code==="sharing_disabled")throw new Error("Sharing is turned off for this workspace by an admin.",{cause:a});if(s?.code==="share_visibility_not_allowed")throw new Error("Public sharing is turned off for this workspace by an admin.",{cause:a})}throw a}}async getSharedTask(r,o){let i={};return o&&(i.Authorization=`Bearer ${o}`),await this.client.get(`v1/shares/${r}`,{headers:i}).json()}async getSharedMessages(r,o=50,i){let n={};return i&&(n.Authorization=`Bearer ${i}`),await this.client.get(`v1/shares/${r}/messages`,{headers:n,searchParams:{limit:o}}).json()}async deleteTask(r,o,i){await this.client.delete(`v1/workspaces/${o}/tasks/${i}`,{headers:{Authorization:`Bearer ${r}`}})}async getModelProviders(r,o){return await this.client.get(`v1/workspaces/${o}/modelProviders`,{headers:{Authorization:`Bearer ${r}`}}).json()}async uploadFile(r,o,i,n){let a=new FormData,s=new Blob([i.buffer],{type:i.mimeType});return a.append("file",s,i.filename),a.append("modelProviderId",n),await this.client.post(`v1/workspaces/${o}/files`,{headers:{Authorization:`Bearer ${r}`},body:a,timeout:12e4}).json()}async getCalendarAccounts(r,o){return await this.client.get(`v1/workspaces/${o}/calendar/accounts`,{headers:{Authorization:`Bearer ${r}`}}).json()}async getSchedules(r,o,i){let n={limit:i?.limit??20};return i?.nextKey&&(n.nextKey=i.nextKey),i?.search&&(n.search=i.search),await this.client.get(`v1/workspaces/${o}/schedules`,{headers:{Authorization:`Bearer ${r}`},searchParams:n}).json()}async getSchedule(r,o,i){return await this.client.get(`v1/workspaces/${o}/schedules/${i}`,{headers:{Authorization:`Bearer ${r}`}}).json()}async createSchedule(r,o,i){return await this.client.post(`v1/workspaces/${o}/schedules`,{headers:{Authorization:`Bearer ${r}`},json:i}).json()}async updateSchedule(r,o,i,n){await this.client.put(`v1/workspaces/${o}/schedules/${i}`,{headers:{Authorization:`Bearer ${r}`},json:n})}async deleteSchedule(r,o,i){await this.client.delete(`v1/workspaces/${o}/schedules/${i}`,{headers:{Authorization:`Bearer ${r}`}})}async activateSchedule(r,o,i){await this.client.post(`v1/workspaces/${o}/schedules/${i}/activate`,{headers:{Authorization:`Bearer ${r}`}})}async deactivateSchedule(r,o,i){await this.client.post(`v1/workspaces/${o}/schedules/${i}/deactivate`,{headers:{Authorization:`Bearer ${r}`}})}async runScheduleNow(r,o,i){return await this.client.post(`v1/workspaces/${o}/schedules/${i}/run`,{headers:{Authorization:`Bearer ${r}`}}).json()}async getScheduleRuns(r,o,i,n){let a={limit:n?.limit??20};return n?.nextKey&&(a.nextKey=n.nextKey),await this.client.get(`v1/workspaces/${o}/schedules/${i}/runs`,{headers:{Authorization:`Bearer ${r}`},searchParams:a}).json()}async listRecordings(r,o,i){let n={limit:i?.limit??20};return i?.nextKey&&(n.nextKey=i.nextKey),i?.search&&(n.search=i.search),this.client.get(`v1/workspaces/${o}/recordings`,{headers:{Authorization:`Bearer ${r}`},searchParams:n}).json()}async importRecordingMedia(r,o,i){return this.client.post(`v1/workspaces/${o}/recordings/import/media`,{headers:{Authorization:`Bearer ${r}`},json:i}).json()}async previewRecordingMedia(r,o,i){let n={url:i};return this.client.get(`v1/workspaces/${o}/recordings/preview/media`,{headers:{Authorization:`Bearer ${r}`},searchParams:n}).json()}async getRecordingAudioUrl(r,o,i){return this.client.get(`v1/workspaces/${o}/recordings/${i}/audioUrl`,{headers:{Authorization:`Bearer ${r}`}}).json()}async retryRecording(r,o,i){return this.client.post(`v1/workspaces/${o}/recordings/${i}/retry`,{headers:{Authorization:`Bearer ${r}`}}).json()}async deleteRecording(r,o,i){await this.client.delete(`v1/workspaces/${o}/recordings/${i}`,{headers:{Authorization:`Bearer ${r}`}})}async searchMarketplace(r){let o={};return r?.type&&(o.type=r.type),r?.tag&&(o.tag=r.tag),r?.limit&&(o.limit=r.limit),r?.cursor&&(o.cursor=r.cursor),this.client.get("v1/marketplace/resources",{searchParams:o}).json()}async getMarketplaceAgent(r){return this.client.get(`v1/marketplace/agents/${encodeURIComponent(r)}`).json()}async getMarketplaceSkill(r){return this.client.get(`v1/marketplace/skills/${encodeURIComponent(r)}`).json()}async listMarketplaceRoles(){return this.client.get("v1/marketplace/roles").json()}async installMarketplaceResource(r,o,i,n,a){return this.client.post(`v1/workspaces/${o}/marketplace/${i}s/${encodeURIComponent(n)}/install`,{headers:{Authorization:`Bearer ${r}`},json:{toolApprovalMode:a}}).json()}static async getAuthenticatedClient(r){let o=await Se.getAll(r);return o?{client:new t(void 0,r),accessToken:o.accessToken,workspaceId:o.workspaceId??null}:null}};function Cd(){return process.env.ENTRYDESK_SANDBOX==="true"}function Ii(){if(!Cd())return null;let t=process.env.ENTRYDESK_SANDBOX_ACCESS_TOKEN?.trim(),r=process.env.ENTRYDESK_SANDBOX_WORKSPACE_ID?.trim();if(!t||!r){let o=[];throw t||o.push("ENTRYDESK_SANDBOX_ACCESS_TOKEN"),r||o.push("ENTRYDESK_SANDBOX_WORKSPACE_ID"),new Error(`Sandbox mode enabled but missing credentials: ${o.join(", ")}`)}return{accessToken:t,workspaceId:r}}function Tv(){return!!process.env.ENTRYDESK_TOKEN?.trim()}function Ud(){let t=process.env.ENTRYDESK_TOKEN?.trim();if(!t)return null;let r=process.env.ENTRYDESK_WORKSPACE_ID?.trim();if(!r)throw new Error("ENTRYDESK_TOKEN is set but ENTRYDESK_WORKSPACE_ID is missing. Both are required for PAT authentication.");return{accessToken:t,workspaceId:r}}var Nd="sandbox environment (ENTRYDESK_SANDBOX)",FT="personal access token (ENTRYDESK_TOKEN)";function uW(){let t=Ii();if(t)return{authSource:"sandbox-env",label:Nd,workspaceId:t.workspaceId};let r=Ud();return r?{authSource:"pat-env",label:FT,workspaceId:r.workspaceId}:null}import{execFile as GT}from"child_process";import{setTimeout as KT}from"timers/promises";import{decodeJwt as VT}from"jose";import HT,{HTTPError as Ev,isHTTPError as JT}from"ky";function pn(t){if(t===null||typeof t!="object")return{error:""};let r=t;return{code:typeof r.code=="string"?r.code:void 0,error:typeof r.error=="string"?r.error:""}}var WT=/^[a-z0-9_.-]{1,64}$/iu;function Dd(t){let r=pn(t).code;return r&&WT.test(r)?r:void 0}function Ld(t){return[...t].filter(r=>{let o=r.codePointAt(0)??0,i=o<=31,n=o===127,a=o>=128&&o<=159;return!i&&!n&&!a}).join("")}var dr="entrydesk-cli",XT="offline_access workspaces:read tasks:read tasks:write tasks:delete agents:read agents:write connectors:read connectors:write tools:read tools:execute skills:read skills:write meetings:read meetings:write workflows:read workflows:write notifications:read notifications:write publishes:read publishes:write calendar:read calendar:write schedules:read schedules:write user:read user:write";function qT(t,r){let o=new Set(r.split(/[\s,]+/).filter(Boolean)),i=t.split(" ").filter(Boolean);return{rejected:i.filter(n=>o.has(n)),remaining:i.filter(n=>!o.has(n))}}async function YT(t,r,o){try{return await t.post("v1/oauth/device/code",{json:{client_id:dr,scope:r}}).json()}catch(i){if(!(i instanceof Ev))throw i;let{code:n,error:a}=pn(i.data);if(n==="invalid_scope"){let{rejected:s,remaining:c}=qT(r,a);if(s.length>0&&c.length>0)return o?.onWarning?.(`This server doesn't support these scopes: ${s.join(", ")}. Continuing without them \u2014 commands that need them may be unavailable.`),t.post("v1/oauth/device/code",{json:{client_id:dr,scope:c.join(" ")}}).json()}throw new Error(a?`Failed to request device code: ${a}`:"Failed to request device code",{cause:i})}}var QT=new Set(["localhost","0.0.0.0","::","::1"]);function eE(t){let r=t.replace(/^\[|\]$/gu,"").replace(/\.$/u,"").toLowerCase(),o=r.replace(/^::ffff:/u,"");return QT.has(r)||/^127(?:\.\d{1,3}){3}$/u.test(o)||r.startsWith("::ffff:7f")}var tE=/^[A-Za-z0-9\-._~/]*$/u,nE=/^[A-Za-z0-9-]{1,64}$/u;function rE(t,r,o){let i=null;if(t)try{let n=new URL(t);(n.protocol==="https:"||n.protocol==="http:")&&n.username===""&&n.password===""&&n.hostname!==""&&!eE(n.hostname)&&tE.test(n.pathname)&&(i=new URL(n.pathname,n.origin))}catch{}return i??=new URL("/oauth/device",r),nE.test(o)&&i.searchParams.set("user_code",o),i.toString()}function oE(t){return new Promise((r,o)=>{let i=process.platform,n,a;switch(i){case"darwin":n="open",a=[t];break;case"win32":n="cmd",a=["/c","start","",t];break;default:n="xdg-open",a=[t];break}GT(n,a,s=>{s?o(new Error(`Could not open the browser. Visit this URL to continue: ${t}`,{cause:s})):r()})})}async function yW(t){let r=un(),o=Sv(),i=ki(),n=process.env.NODE_TLS_REJECT_UNAUTHORIZED;i.ignoreSslErrors&&(process.env.NODE_TLS_REJECT_UNAUTHORIZED="0",console.error("WARNING: SSL certificate validation is disabled globally for this process during the login flow. All connections in this process will skip TLS verification. Only use ENTRYDESK_IGNORE_SSL_ERRORS for local development."));try{let a=HT.create({baseUrl:r.replace(/\/?$/,"/"),timeout:3e4,hooks:{beforeError:[({error:b})=>(JT(b)&&(b.request.headers.delete("authorization"),b.request.headers.delete("Authorization")),b)]}}),s;try{s=await YT(a,XT,t)}catch(b){let y=b instanceof Error?b:new Error("Failed to request device code");throw t?.onError?.(y),y}let{device_code:c,user_code:u,expires_in:d,interval:p}=s,v=rE(s.verification_uri,o,u);t?.onDeviceCodeReceived?.(u,v),t?.onBrowserOpening?.();try{await oE(v)}catch(b){process.env.DEBUG&&console.error("[DEBUG] Failed to open browser:",b)}t?.onWaitingForAuthorization?.();let l=Math.max(p,5)*1e3,m=Date.now()+d*1e3;for(;Date.now()<m;){await KT(l);try{let b=await a.post("v1/oauth/token",{json:{grant_type:"urn:ietf:params:oauth:grant-type:device_code",device_code:c,client_id:dr}}).json();t?.onAuthorized?.();let y={};try{y=VT(b.access_token)}catch{}return{accessToken:b.access_token,refreshToken:b.refresh_token??void 0,email:y.email||"",scopes:b.scope.split(" ").filter($=>$.length>0)}}catch(b){if(b instanceof Ev){let{code:$,error:I}=pn(b.data),E=$||I;if(!E)continue;switch(E){case"authorization_pending":continue;case"slow_down":l+=5e3;continue;case"access_denied":throw new Error("Authorization denied.",{cause:b});case"expired_token":throw new Error("Device code expired. Run `entrydesk login` again.",{cause:b});default:throw new Error(`Authorization failed: ${E||"Unknown error"}`,{cause:b})}}let y=b instanceof Error?b:new Error("Unknown error during authorization");throw t?.onError?.(y),y}}throw new Error("Device code expired. Run `entrydesk login` again.")}finally{n===void 0?delete process.env.NODE_TLS_REJECT_UNAUTHORIZED:process.env.NODE_TLS_REJECT_UNAUTHORIZED=n}}function aE(t){if(t instanceof iE){let r=t.response.status;return r===400||r===401}return!1}var ke=class extends Error{code;constructor(r,o){super(o),this.name="AuthError",this.code=r}};function sE(t){try{let r=t.split(".");if(r.length<2)return null;let o=r[1].replace(/-/g,"+").replace(/_/g,"/"),i=(4-o.length%4)%4,n=o.padEnd(o.length+i,"="),a=Buffer.from(n,"base64").toString("utf8");return JSON.parse(a)}catch{return null}}function cE(t,r=300){let i=sE(t)?.exp;if(typeof i!="number")return!1;let n=Math.floor(Date.now()/1e3);return i-n<=r}async function Av(t){let r=t.accessToken;if(!cE(r))return r;if(!t.refreshToken)throw await Se.clear(),new ke("session-expired","Session expired. Run `entrydesk login` again.");let o=t.refreshToken;try{let n=await new $i().refreshOAuthToken({refreshToken:o,clientId:dr}),a=await Se.getAll();return a?.accessToken&&a.refreshToken&&a.refreshToken!==o?a.accessToken:(await Se.saveAll({...a??t,accessToken:n.access_token,refreshToken:n.refresh_token??a?.refreshToken??o}),n.access_token)}catch(i){if(!aE(i))throw new ke("refresh-failed","Could not refresh your session \u2014 the auth server is unreachable. Try again in a moment.");let n=await Se.getAll();if(n?.accessToken&&n.refreshToken&&n.refreshToken!==o)return n.accessToken;throw await Se.clear(),new ke("session-expired","Session expired. Run `entrydesk login` again.")}}async function wW(){let t=Ii();if(t)return t.accessToken;let r=await Se.getAll();if(!r?.accessToken)throw new ke("not-logged-in","Not logged in. Run `entrydesk login` first.");return Av(r)}async function TW(){let t=Ii();if(t)return{accessToken:t.accessToken,workspaceId:t.workspaceId};let r=Ud();if(r)return r;let o=await Se.getAll();if(!o?.accessToken)throw new ke("not-logged-in","Not logged in. Run `entrydesk login` first.");if(!o.workspaceId)throw new ke("no-workspace","No workspace selected. Run `entrydesk workspaces` first.");return{accessToken:await Av(o),workspaceId:o.workspaceId}}function dE(t){let r="";try{r=` by ${un()}`}catch{}let o=Dd(t.data),i=o?` (server code: ${o})`:"",n;if(o==="missing_token"||o==="bearer_not_supported"){let a='The API did not accept your Authorization header (stripped or refused en route) \u2014 the URL likely points at a browser-facing proxy path (such as a Hub "/api" URL). ';n=process.env.ENTRYDESK_API_URL?a+"It comes from the ENTRYDESK_API_URL environment variable, which overrides profile config \u2014 update or unset ENTRYDESK_API_URL.":a+"Set apiUrl to the API server URL with `entrydesk config set apiUrl <url>`."}else Cd()?n=`Requests are authenticated via ${Nd} \u2014 ask the sandbox owner to issue fresh credentials.`:Tv()?n="ENTRYDESK_TOKEN is set and takes priority over `entrydesk login` credentials for workspace commands \u2014 unset it or replace it with a valid token; if this command does not use it, run `entrydesk login`.":n="Your session may have expired \u2014 run `entrydesk login`. If this is not the environment you expect, check `entrydesk config get apiUrl`.";return`Not authorized (401)${r}${i}. ${n}`}function Rv(t){let r=Math.round(t/1e3);return r%60===0&&r>=60?`${r/60}m`:`${r}s`}var pE="SdkError",mE="REQUEST_TIMEOUT";function gE(t){return t instanceof Error&&t.name===pE&&"code"in t&&t.code===mE}function fE(){let{requestTimeout:t,requestMaxTotalTimeout:r}=kv();return`The request timed out after ${Rv(t)} without a response or progress update (absolute cap ${Rv(r)}). Raise the limit with ${Ad}=<milliseconds>, and ${Rd}=<milliseconds> for the absolute cap.`}var $e=class extends Error{constructor(o,i=1,n){super(o);this.exitCode=i;this.cause=n;this.name="CLIError"}exitCode;cause};function zW(t){let r=!!process.env.DEBUG;if(t instanceof $e&&(console.error(`Error: ${t.message}`),t.cause&&(console.error(`Cause: ${t.cause.message}`),r&&t.cause.stack&&console.error(t.cause.stack)),process.exit(t.exitCode)),t instanceof ke&&(console.error(t.message),r&&t.stack&&console.error(t.stack),process.exit(1)),gE(t)&&(console.error(fE()),r&&t instanceof Error&&t.stack&&console.error(t.stack),process.exit(1)),t instanceof uE&&(console.error("Request timed out. Check your connection and try again."),r&&t.stack&&console.error(t.stack),process.exit(1)),t instanceof lE){let o=t.response.status;if(o===401)console.error(dE(t));else if(o===403)console.error("Forbidden (403). Your account or token lacks permission for this action. If your token predates a recently added feature, run `entrydesk login` to refresh its scopes; otherwise you may lack permission in this workspace.");else{let i=pn(t.data),n=Dd(t.data),a=n?` (server code: ${n})`:"",s=Ld(i.error),c=Ld(t.response.statusText);console.error(`Request failed (${o}): ${s||c}${a}`)}r&&t.stack&&console.error(t.stack),process.exit(1)}t instanceof Error&&(console.error(`Unexpected error: ${t.message}`),r&&t.stack&&console.error(t.stack),process.exit(1)),console.error("An unknown error occurred"),process.exit(1)}var tt="default",vE=/^[A-Za-z0-9_-]+$/,Md=null;function Zd(){return gn.join(hE.homedir(),".entrydesk")}function jv(){return gn.join(Zd(),"profiles")}function Ov(){return gn.join(Zd(),"profiles.json")}function wi(t){return gn.join(jv(),t)}function Fd(t){if(Ie.existsSync(t))try{Ie.chmodSync(t,448)}catch{}else Ie.mkdirSync(t,{mode:448,recursive:!0})}function bE(){Fd(Zd())}function Bd(){Fd(jv())}function yE(){let t=Ov();try{if(!Ie.existsSync(t))return null;let r=Ie.readFileSync(t,"utf-8");return JSON.parse(r)}catch{return null}}function mn(t){bE();let r=Ov();Ie.writeFileSync(r,JSON.stringify(t,null,2),{mode:384});try{Ie.chmodSync(r,384)}catch{}}function _E(t){let r=t.profiles?.length?[...new Set(t.profiles)]:[],o=t.currentProfile&&r.includes(t.currentProfile)?t.currentProfile:r[0]||tt;return r.length===0&&r.push(tt),r.includes(o)||r.unshift(o),{currentProfile:o,profiles:r}}function mr(t){Bd(),Fd(wi(t))}function et(){let t=yE();if(!t){let o={currentProfile:tt,profiles:[tt]};return mn(o),Bd(),mr(tt),o}let r=_E(t);return(r.currentProfile!==t.currentProfile||r.profiles.length!==t.profiles.length)&&mn(r),Bd(),r}function gt(t){if(!t)throw new $e("Profile name is required.");if(!vE.test(t))throw new $e("Invalid profile name. Use letters, numbers, dash, or underscore.")}function pr(t,r){if(!t.profiles.includes(r))throw new $e(`Profile not found: ${r}`)}function Pv(t,r){if(t.profiles.includes(r))throw new $e(`Profile already exists: ${r}`)}var D={DEFAULT_PROFILE:tt,setOverrideProfile(t){Md=t},getOverrideProfile(){return Md},getProfileDir(t){return wi(t)},getProfileConfigFile(t){return gn.join(D.getProfileDir(t),"config.json")},getProfileCredentialsFile(t){return gn.join(D.getProfileDir(t),"credentials.json")},getProfileNames(){return[...et().profiles]},getProfileCount(){return D.getProfileNames().length},getCurrentProfileName(){return et().currentProfile},getEffectiveProfileName(t){let r=et(),o=t||Md||r.currentProfile;return gt(o),pr(r,o),o},ensureProfileExists(t){let r=et();gt(t),pr(r,t)},createProfile(t){gt(t);let r=et();Pv(r,t);let o={currentProfile:r.currentProfile,profiles:[...r.profiles,t]};mn(o),mr(t)},deleteProfile(t){gt(t);let r=et();if(pr(r,t),r.profiles.length===1)throw new $e("Cannot delete the last profile.");let o=r.profiles.filter(a=>a!==t),i=r.currentProfile;i===t&&(i=o.includes(tt)?tt:o[0]),mn({currentProfile:i,profiles:o});try{Ie.rmSync(D.getProfileDir(t),{recursive:!0,force:!0})}catch{}return{currentProfile:i}},renameProfile(t,r){gt(t),gt(r);let o=et();pr(o,t),Pv(o,r);let i=wi(t),n=wi(r);if(Ie.existsSync(i))try{Ie.renameSync(i,n)}catch(u){throw new $e("Failed to rename profile directory.",1,u)}else mr(r);let a=o.profiles.map(u=>u===t?r:u),s=o.currentProfile===t?r:o.currentProfile;return mn({currentProfile:s,profiles:a}),{currentProfile:s}},setCurrentProfile(t){gt(t);let r=et();pr(r,t);let o={currentProfile:t,profiles:r.profiles};mn(o),mr(t)},ensureProfileDir:mr};export{wj as a,bP as b,Yo as c,Fe as d,xP as e,SP as f,wC as g,TC as h,AC as i,eh as j,IN as k,wN as l,TN as m,x$ as n,KD as o,qP as p,qe as q,lj as r,BB as s,ZB as t,Zd as u,D as v,Ed as w,Si as x,un as y,Sv as z,kv as A,Se as B,$i as C,Ii as D,Tv as E,Ud as F,Nd as G,uW as H,Ld as I,dr as J,yW as K,ke as L,cE as M,Av as N,wW as O,TW as P,gE as Q,fE as R,$e as S,zW as T};