@activepieces/piece-microsoft-sharepoint 0.4.1 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/i18n/ja.json +2 -2
- package/src/i18n/translation.json +9 -7
- package/src/index.js +23 -23
package/src/index.js
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
"use strict";var LE=Object.create;var wn=Object.defineProperty;var jE=Object.getOwnPropertyDescriptor;var FE=Object.getOwnPropertyNames;var BE=Object.getPrototypeOf,VE=Object.prototype.hasOwnProperty;var s=(e,t)=>wn(e,"name",{value:t,configurable:!0});var ZE=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(o){throw n=[o],o}};var S=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(n){throw t=0,n}},tt=(e,t)=>{for(var n in t)wn(e,n,{get:t[n],enumerable:!0})},xh=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of FE(t))!VE.call(e,r)&&r!==n&&wn(e,r,{get:()=>t[r],enumerable:!(o=jE(t,r))||o.enumerable});return e};var ae=(e,t,n)=>(n=e!=null?LE(BE(e)):{},xh(t||!e||!e.__esModule?wn(n,"default",{value:e,enumerable:!0}):n,e)),Pe=e=>xh(wn({},"__esModule",{value:!0}),e);var _v=S((vv,Eu)=>{(function(e){"use strict";let t="(0?\\d+|0x[a-f0-9]+)",n={fourOctet:new RegExp(`^${t}\\.${t}\\.${t}\\.${t}$`,"i"),threeOctet:new RegExp(`^${t}\\.${t}\\.${t}$`,"i"),twoOctet:new RegExp(`^${t}\\.${t}$`,"i"),longValue:new RegExp(`^${t}$`,"i")},o=new RegExp("^0[0-7]+$","i"),r=new RegExp("^0x[a-f0-9]+$","i"),i="%[0-9a-z]{1,}",a="(?:[0-9a-f]+::?)+",u={zoneIndex:new RegExp(i,"i"),native:new RegExp(`^(::)?(${a})?([0-9a-f]+)?(::)?(${i})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${t}\\.${t}\\.${t}\\.${t}(${i})?)$`,"i"),transitional:new RegExp(`^((?:${a})|(?:::)(?:${a})?)${t}\\.${t}\\.${t}\\.${t}(${i})?$`,"i")};function c(p,m){if(p.indexOf("::")!==p.lastIndexOf("::"))return null;let _=0,P=-1,E=(p.match(u.zoneIndex)||[])[0],T,F;for(E&&(E=E.substring(1),p=p.replace(/%.+$/,""));(P=p.indexOf(":",P+1))>=0;)_++;if(p.substr(0,2)==="::"&&_--,p.substr(-2,2)==="::"&&_--,_>m)return null;for(F=m-_,T=":";F--;)T+="0:";return p=p.replace("::",T),p[0]===":"&&(p=p.slice(1)),p[p.length-1]===":"&&(p=p.slice(0,-1)),m=(function(){let oe=p.split(":"),me=[];for(let qe=0;qe<oe.length;qe++)me.push(parseInt(oe[qe],16));return me})(),{parts:m,zoneId:E}}s(c,"expandIPv6");function l(p,m,_,P){if(p.length!==m.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let E=0,T;for(;P>0;){if(T=_-P,T<0&&(T=0),p[E]>>T!==m[E]>>T)return!1;P-=_,E+=1}return!0}s(l,"matchCIDR");function d(p){if(r.test(p))return parseInt(p,16);if(p[0]==="0"&&!isNaN(parseInt(p[1],10))){if(o.test(p))return parseInt(p,8);throw new Error(`ipaddr: cannot parse ${p} as octal`)}return parseInt(p,10)}s(d,"parseIntAuto");function g(p,m){for(;p.length<m;)p=`0${p}`;return p}s(g,"padPart");let h={};h.IPv4=(function(){function p(m){if(m.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let _,P;for(_=0;_<m.length;_++)if(P=m[_],!(0<=P&&P<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=m}return s(p,"IPv4"),p.prototype.SpecialRanges={unspecified:[[new p([0,0,0,0]),8]],broadcast:[[new p([255,255,255,255]),32]],multicast:[[new p([224,0,0,0]),4]],linkLocal:[[new p([169,254,0,0]),16]],loopback:[[new p([127,0,0,0]),8]],carrierGradeNat:[[new p([100,64,0,0]),10]],private:[[new p([10,0,0,0]),8],[new p([172,16,0,0]),12],[new p([192,168,0,0]),16]],reserved:[[new p([192,0,0,0]),24],[new p([192,0,2,0]),24],[new p([192,88,99,0]),24],[new p([198,18,0,0]),15],[new p([198,51,100,0]),24],[new p([203,0,113,0]),24],[new p([240,0,0,0]),4]],as112:[[new p([192,175,48,0]),24],[new p([192,31,196,0]),24]],amt:[[new p([192,52,193,0]),24]]},p.prototype.kind=function(){return"ipv4"},p.prototype.match=function(m,_){let P;if(_===void 0&&(P=m,m=P[0],_=P[1]),m.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return l(this.octets,m.octets,8,_)},p.prototype.prefixLengthFromSubnetMask=function(){let m=0,_=!1,P={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},E,T,F;for(E=3;E>=0;E-=1)if(T=this.octets[E],T in P){if(F=P[T],_&&F!==0)return null;F!==8&&(_=!0),m+=F}else return null;return 32-m},p.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},p.prototype.toByteArray=function(){return this.octets.slice(0)},p.prototype.toIPv4MappedAddress=function(){return h.IPv6.parse(`::ffff:${this.toString()}`)},p.prototype.toNormalizedString=function(){return this.toString()},p.prototype.toString=function(){return this.octets.join(".")},p})(),h.IPv4.broadcastAddressFromCIDR=function(p){try{let m=this.parseCIDR(p),_=m[0].toByteArray(),P=this.subnetMaskFromPrefixLength(m[1]).toByteArray(),E=[],T=0;for(;T<4;)E.push(parseInt(_[T],10)|parseInt(P[T],10)^255),T++;return new this(E)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},h.IPv4.isIPv4=function(p){return this.parser(p)!==null},h.IPv4.isValid=function(p){try{return new this(this.parser(p)),!0}catch{return!1}},h.IPv4.isValidCIDR=function(p){try{return this.parseCIDR(p),!0}catch{return!1}},h.IPv4.isValidFourPartDecimal=function(p){return!!(h.IPv4.isValid(p)&&p.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},h.IPv4.isValidCIDRFourPartDecimal=function(p){let m=p.match(/^(.+)\/(\d+)$/);return!h.IPv4.isValidCIDR(p)||!m?!1:h.IPv4.isValidFourPartDecimal(m[1])},h.IPv4.networkAddressFromCIDR=function(p){let m,_,P,E,T;try{for(m=this.parseCIDR(p),P=m[0].toByteArray(),T=this.subnetMaskFromPrefixLength(m[1]).toByteArray(),E=[],_=0;_<4;)E.push(parseInt(P[_],10)&parseInt(T[_],10)),_++;return new this(E)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},h.IPv4.parse=function(p){let m=this.parser(p);if(m===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(m)},h.IPv4.parseCIDR=function(p){let m;if(m=p.match(/^(.+)\/(\d+)$/)){let _=parseInt(m[2]);if(_>=0&&_<=32){let P=[this.parse(m[1]),_];return Object.defineProperty(P,"toString",{value:s(function(){return this.join("/")},"value")}),P}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},h.IPv4.parser=function(p){let m,_,P;if(m=p.match(n.fourOctet))return(function(){let E=m.slice(1,6),T=[];for(let F=0;F<E.length;F++)_=E[F],T.push(d(_));return T})();if(m=p.match(n.longValue)){if(P=d(m[1]),P>4294967295||P<0)throw new Error("ipaddr: address outside defined range");return(function(){let E=[],T;for(T=0;T<=24;T+=8)E.push(P>>T&255);return E})().reverse()}else return(m=p.match(n.twoOctet))?(function(){let E=m.slice(1,4),T=[];if(P=d(E[1]),P>16777215||P<0)throw new Error("ipaddr: address outside defined range");return T.push(d(E[0])),T.push(P>>16&255),T.push(P>>8&255),T.push(P&255),T})():(m=p.match(n.threeOctet))?(function(){let E=m.slice(1,5),T=[];if(P=d(E[2]),P>65535||P<0)throw new Error("ipaddr: address outside defined range");return T.push(d(E[0])),T.push(d(E[1])),T.push(P>>8&255),T.push(P&255),T})():null},h.IPv4.subnetMaskFromPrefixLength=function(p){if(p=parseInt(p),p<0||p>32)throw new Error("ipaddr: invalid IPv4 prefix length");let m=[0,0,0,0],_=0,P=Math.floor(p/8);for(;_<P;)m[_]=255,_++;return P<4&&(m[P]=Math.pow(2,p%8)-1<<8-p%8),new this(m)},h.IPv6=(function(){function p(m,_){let P,E;if(m.length===16)for(this.parts=[],P=0;P<=14;P+=2)this.parts.push(m[P]<<8|m[P+1]);else if(m.length===8)this.parts=m;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(P=0;P<this.parts.length;P++)if(E=this.parts[P],!(0<=E&&E<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");_&&(this.zoneId=_)}return s(p,"IPv6"),p.prototype.SpecialRanges={unspecified:[new p([0,0,0,0,0,0,0,0]),128],linkLocal:[new p([65152,0,0,0,0,0,0,0]),10],multicast:[new p([65280,0,0,0,0,0,0,0]),8],loopback:[new p([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new p([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new p([0,0,0,0,0,65535,0,0]),96],discard:[new p([256,0,0,0,0,0,0,0]),64],rfc6145:[new p([0,0,0,0,65535,0,0,0]),96],rfc6052:[new p([100,65435,0,0,0,0,0,0]),96],"6to4":[new p([8194,0,0,0,0,0,0,0]),16],teredo:[new p([8193,0,0,0,0,0,0,0]),32],benchmarking:[new p([8193,2,0,0,0,0,0,0]),48],amt:[new p([8193,3,0,0,0,0,0,0]),32],as112v6:[[new p([8193,4,274,0,0,0,0,0]),48],[new p([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new p([8193,16,0,0,0,0,0,0]),28],orchid2:[new p([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new p([8193,48,0,0,0,0,0,0]),28],reserved:[[new p([8193,0,0,0,0,0,0,0]),23],[new p([8193,3512,0,0,0,0,0,0]),32]]},p.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},p.prototype.kind=function(){return"ipv6"},p.prototype.match=function(m,_){let P;if(_===void 0&&(P=m,m=P[0],_=P[1]),m.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return l(this.parts,m.parts,16,_)},p.prototype.prefixLengthFromSubnetMask=function(){let m=0,_=!1,P={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},E,T;for(let F=7;F>=0;F-=1)if(E=this.parts[F],E in P){if(T=P[E],_&&T!==0)return null;T!==16&&(_=!0),m+=T}else return null;return 128-m},p.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},p.prototype.toByteArray=function(){let m,_=[],P=this.parts;for(let E=0;E<P.length;E++)m=P[E],_.push(m>>8),_.push(m&255);return _},p.prototype.toFixedLengthString=function(){let m=(function(){let P=[];for(let E=0;E<this.parts.length;E++)P.push(g(this.parts[E].toString(16),4));return P}).call(this).join(":"),_="";return this.zoneId&&(_=`%${this.zoneId}`),m+_},p.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),_=m[0],P=m[1];return new h.IPv4([_>>8,_&255,P>>8,P&255])},p.prototype.toNormalizedString=function(){let m=(function(){let P=[];for(let E=0;E<this.parts.length;E++)P.push(this.parts[E].toString(16));return P}).call(this).join(":"),_="";return this.zoneId&&(_=`%${this.zoneId}`),m+_},p.prototype.toRFC5952String=function(){let m=/((^|:)(0(:|$)){2,})/g,_=this.toNormalizedString(),P=0,E=-1,T;for(;T=m.exec(_);)T[0].length>E&&(P=T.index,E=T[0].length);return E<0?_:`${_.substring(0,P)}::${_.substring(P+E)}`},p.prototype.toString=function(){return this.toRFC5952String()},p})(),h.IPv6.broadcastAddressFromCIDR=function(p){try{let m=this.parseCIDR(p),_=m[0].toByteArray(),P=this.subnetMaskFromPrefixLength(m[1]).toByteArray(),E=[],T=0;for(;T<16;)E.push(parseInt(_[T],10)|parseInt(P[T],10)^255),T++;return new this(E)}catch(m){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${m})`)}},h.IPv6.isIPv6=function(p){return this.parser(p)!==null},h.IPv6.isValid=function(p){if(typeof p=="string"&&p.indexOf(":")===-1)return!1;try{let m=this.parser(p);return new this(m.parts,m.zoneId),!0}catch{return!1}},h.IPv6.isValidCIDR=function(p){if(typeof p=="string"&&p.indexOf(":")===-1)return!1;try{return this.parseCIDR(p),!0}catch{return!1}},h.IPv6.networkAddressFromCIDR=function(p){let m,_,P,E,T;try{for(m=this.parseCIDR(p),P=m[0].toByteArray(),T=this.subnetMaskFromPrefixLength(m[1]).toByteArray(),E=[],_=0;_<16;)E.push(parseInt(P[_],10)&parseInt(T[_],10)),_++;return new this(E)}catch(F){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${F})`)}},h.IPv6.parse=function(p){let m=this.parser(p);if(m.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(m.parts,m.zoneId)},h.IPv6.parseCIDR=function(p){let m,_,P;if((_=p.match(/^(.+)\/(\d+)$/))&&(m=parseInt(_[2]),m>=0&&m<=128))return P=[this.parse(_[1]),m],Object.defineProperty(P,"toString",{value:s(function(){return this.join("/")},"value")}),P;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},h.IPv6.parser=function(p){let m,_,P,E,T,F;if(P=p.match(u.deprecatedTransitional))return this.parser(`::ffff:${P[1]}`);if(u.native.test(p))return c(p,8);if((P=p.match(u.transitional))&&(F=P[6]||"",m=P[1],P[1].endsWith("::")||(m=m.slice(0,-1)),m=c(m+F,6),m.parts)){for(T=[parseInt(P[2]),parseInt(P[3]),parseInt(P[4]),parseInt(P[5])],_=0;_<T.length;_++)if(E=T[_],!(0<=E&&E<=255))return null;return m.parts.push(T[0]<<8|T[1]),m.parts.push(T[2]<<8|T[3]),{parts:m.parts,zoneId:m.zoneId}}return null},h.IPv6.subnetMaskFromPrefixLength=function(p){if(p=parseInt(p),p<0||p>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],_=0,P=Math.floor(p/8);for(;_<P;)m[_]=255,_++;return P<16&&(m[P]=Math.pow(2,p%8)-1<<8-p%8),new this(m)},h.fromByteArray=function(p){let m=p.length;if(m===4)return new h.IPv4(p);if(m===16)return new h.IPv6(p);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},h.isValid=function(p){return h.IPv6.isValid(p)||h.IPv4.isValid(p)},h.isValidCIDR=function(p){return h.IPv6.isValidCIDR(p)||h.IPv4.isValidCIDR(p)},h.parse=function(p){if(h.IPv6.isValid(p))return h.IPv6.parse(p);if(h.IPv4.isValid(p))return h.IPv4.parse(p);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},h.parseCIDR=function(p){try{return h.IPv6.parseCIDR(p)}catch{try{return h.IPv4.parseCIDR(p)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},h.process=function(p){let m=this.parse(p);return m.kind()==="ipv6"&&m.isIPv4MappedAddress()?m.toIPv4Address():m},h.subnetMatch=function(p,m,_){let P,E,T,F;_==null&&(_="unicast");for(E in m)if(Object.prototype.hasOwnProperty.call(m,E)){for(T=m[E],T[0]&&!(T[0]instanceof Array)&&(T=[T]),P=0;P<T.length;P++)if(F=T[P],p.kind()===F[0].kind()&&p.match.apply(p,F))return E}return _},typeof Eu<"u"&&Eu.exports?Eu.exports=h:e.ipaddr=h})(vv)});var S_=S((J6,I_)=>{var T_=require("stream").Stream,Mw=require("util");I_.exports=gt;function gt(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}s(gt,"DelayedStream");Mw.inherits(gt,T_);gt.create=function(e,t){var n=new this;t=t||{};for(var o in t)n[o]=t[o];n.source=e;var r=e.emit;return e.emit=function(){return n._handleEmit(arguments),r.apply(e,arguments)},e.on("error",function(){}),n.pauseStream&&e.pause(),n};Object.defineProperty(gt.prototype,"readable",{configurable:!0,enumerable:!0,get:s(function(){return this.source.readable},"get")});gt.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};gt.prototype.resume=function(){this._released||this.release(),this.source.resume()};gt.prototype.pause=function(){this.source.pause()};gt.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};gt.prototype.pipe=function(){var e=T_.prototype.pipe.apply(this,arguments);return this.resume(),e};gt.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}e[0]==="data"&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)};gt.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}});var O_=S((K6,$_)=>{var Lw=require("util"),w_=require("stream").Stream,A_=S_();$_.exports=Ae;function Ae(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}s(Ae,"CombinedStream");Lw.inherits(Ae,w_);Ae.create=function(e){var t=new this;e=e||{};for(var n in e)t[n]=e[n];return t};Ae.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};Ae.prototype.append=function(e){var t=Ae.isStreamLike(e);if(t){if(!(e instanceof A_)){var n=A_.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=n}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this};Ae.prototype.pipe=function(e,t){return w_.prototype.pipe.call(this,e,t),this.resume(),e};Ae.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};Ae.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e>"u"){this.end();return}if(typeof e!="function"){this._pipeNext(e);return}var t=e;t(function(n){var o=Ae.isStreamLike(n);o&&(n.on("data",this._checkDataSize.bind(this)),this._handleErrors(n)),this._pipeNext(n)}.bind(this))};Ae.prototype._pipeNext=function(e){this._currentStream=e;var t=Ae.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var n=e;this.write(n),this._getNext()};Ae.prototype._handleErrors=function(e){var t=this;e.on("error",function(n){t._emitError(n)})};Ae.prototype.write=function(e){this.emit("data",e)};Ae.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};Ae.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};Ae.prototype.end=function(){this._reset(),this.emit("end")};Ae.prototype.destroy=function(){this._reset(),this.emit("close")};Ae.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};Ae.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};Ae.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};Ae.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var z_=S((Q6,R_)=>{"use strict";R_.exports={"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dat"]},"application/msword":{source:"iana",extensions:["doc"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",extensions:["docx"]},"application/vnd.ms-excel":{source:"iana",extensions:["xls"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",extensions:["xlsx"]},"application/vnd.ms-powerpoint":{source:"iana",extensions:["ppt"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",extensions:["pptx"]},"application/csv":{compressible:!0,extensions:["csv"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"text/plain":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["txt","text","log"]},"text/html":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["html","htm"]},"text/css":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["css"]},"text/csv":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["csv"]},"text/markdown":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["md","markdown"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/webp":{source:"apache",compressible:!1,extensions:["webp"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tiff","tif"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/heic":{source:"iana",compressible:!1,extensions:["heic"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mp3","mpga"]},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/ogg":{source:"iana",compressible:!1,extensions:["ogg","oga"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","m4v"]},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg"]},"video/webm":{source:"iana",compressible:!1,extensions:["webm"]},"video/quicktime":{source:"iana",compressible:!1,extensions:["mov","qt"]},"video/x-msvideo":{source:"iana",compressible:!1,extensions:["avi"]},"font/woff":{source:"iana",compressible:!1,extensions:["woff"]},"font/woff2":{source:"iana",compressible:!1,extensions:["woff2"]},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"multipart/form-data":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/ics":{compressible:!0,extensions:["ics"]},"text/calendar":{source:"iana",compressible:!0,extensions:["ics","ifb"]},"application/x-ndjson":{compressible:!0,extensions:["ndjson"]}}});var C_=S(Qe=>{"use strict";var Ou=z_(),jw=require("path").extname,k_=/^\s*([^;\s]*)(?:;|\s|$)/,Fw=/^text\//i;Qe.charset=D_;Qe.charsets={lookup:D_};Qe.contentType=Bw;Qe.extension=Vw;Qe.extensions=Object.create(null);Qe.lookup=Zw;Qe.types=Object.create(null);Hw(Qe.extensions,Qe.types);function D_(e){if(!e||typeof e!="string")return!1;var t=k_.exec(e),n=t&&Ou[t[1].toLowerCase()];return n&&n.charset?n.charset:t&&Fw.test(t[1])?"UTF-8":!1}s(D_,"charset");function Bw(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?Qe.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var n=Qe.charset(t);n&&(t+="; charset="+n.toLowerCase())}return t}s(Bw,"contentType");function Vw(e){if(!e||typeof e!="string")return!1;var t=k_.exec(e),n=t&&Qe.extensions[t[1].toLowerCase()];return!n||!n.length?!1:n[0]}s(Vw,"extension");function Zw(e){if(!e||typeof e!="string")return!1;var t=jw("x."+e).toLowerCase().substr(1);return t&&Qe.types[t]||!1}s(Zw,"lookup");function Hw(e,t){var n=["nginx","apache",void 0,"iana"];Object.keys(Ou).forEach(s(function(r){var i=Ou[r],a=i.extensions;if(!(!a||!a.length)){e[r]=a;for(var u=0;u<a.length;u++){var c=a[u];if(t[c]){var l=n.indexOf(Ou[t[c]].source),d=n.indexOf(i.source);if(t[c]!=="application/octet-stream"&&(l>d||l===d&&t[c].substr(0,12)==="application/"))continue}t[c]=r}}},"forEachMimeType"))}s(Hw,"populateMaps")});var U_=S((rB,N_)=>{N_.exports=qw;function qw(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}s(qw,"defer")});var Tm=S((oB,L_)=>{var M_=U_();L_.exports=Gw;function Gw(e){var t=!1;return M_(function(){t=!0}),s(function(o,r){t?e(o,r):M_(s(function(){e(o,r)},"nextTick_callback"))},"async_callback")}s(Gw,"async")});var Im=S((aB,j_)=>{j_.exports=Ww;function Ww(e){Object.keys(e.jobs).forEach(Jw.bind(e)),e.jobs={}}s(Ww,"abort");function Jw(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}s(Jw,"clean")});var Sm=S((uB,B_)=>{var F_=Tm(),Xw=Im();B_.exports=Kw;function Kw(e,t,n,o){var r=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[r]=Yw(t,r,e[r],function(i,a){r in n.jobs&&(delete n.jobs[r],i?Xw(n):n.results[r]=a,o(i,n.results))})}s(Kw,"iterate");function Yw(e,t,n,o){var r;return e.length==2?r=e(n,F_(o)):r=e(n,t,F_(o)),r}s(Yw,"runJob")});var Am=S((lB,V_)=>{V_.exports=Qw;function Qw(e,t){var n=!Array.isArray(e),o={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};return t&&o.keyedList.sort(n?t:function(r,i){return t(e[r],e[i])}),o}s(Qw,"state")});var wm=S((dB,Z_)=>{var e$=Im(),t$=Tm();Z_.exports=r$;function r$(e){Object.keys(this.jobs).length&&(this.index=this.size,e$(this),t$(e)(null,this.results))}s(r$,"terminator")});var q_=S((mB,H_)=>{var n$=Sm(),o$=Am(),i$=wm();H_.exports=a$;function a$(e,t,n){for(var o=o$(e);o.index<(o.keyedList||e).length;)n$(e,t,o,function(r,i){if(r){n(r,i);return}if(Object.keys(o.jobs).length===0){n(null,o.results);return}}),o.index++;return i$.bind(o,n)}s(a$,"parallel")});var $m=S((gB,Ru)=>{var G_=Sm(),s$=Am(),u$=wm();Ru.exports=c$;Ru.exports.ascending=W_;Ru.exports.descending=l$;function c$(e,t,n,o){var r=s$(e,n);return G_(e,t,r,s(function i(a,u){if(a){o(a,u);return}if(r.index++,r.index<(r.keyedList||e).length){G_(e,t,r,i);return}o(null,r.results)},"iteratorHandler")),u$.bind(r,o)}s(c$,"serialOrdered");function W_(e,t){return e<t?-1:e>t?1:0}s(W_,"ascending");function l$(e,t){return-1*W_(e,t)}s(l$,"descending")});var X_=S((vB,J_)=>{var p$=$m();J_.exports=d$;function d$(e,t,n){return p$(e,t,null,n)}s(d$,"serial")});var Y_=S((PB,K_)=>{K_.exports={parallel:q_(),serial:X_(),serialOrdered:$m()}});var Om=S((xB,Q_)=>{"use strict";Q_.exports=Object});var tP=S((bB,eP)=>{"use strict";eP.exports=Error});var nP=S((EB,rP)=>{"use strict";rP.exports=EvalError});var iP=S((TB,oP)=>{"use strict";oP.exports=RangeError});var sP=S((IB,aP)=>{"use strict";aP.exports=ReferenceError});var cP=S((SB,uP)=>{"use strict";uP.exports=SyntaxError});var zu=S((AB,lP)=>{"use strict";lP.exports=TypeError});var dP=S((wB,pP)=>{"use strict";pP.exports=URIError});var mP=S(($B,fP)=>{"use strict";fP.exports=Math.abs});var gP=S((OB,hP)=>{"use strict";hP.exports=Math.floor});var vP=S((RB,yP)=>{"use strict";yP.exports=Math.max});var PP=S((zB,_P)=>{"use strict";_P.exports=Math.min});var bP=S((kB,xP)=>{"use strict";xP.exports=Math.pow});var TP=S((DB,EP)=>{"use strict";EP.exports=Math.round});var SP=S((CB,IP)=>{"use strict";IP.exports=Number.isNaN||s(function(t){return t!==t},"isNaN")});var wP=S((UB,AP)=>{"use strict";var f$=SP();AP.exports=s(function(t){return f$(t)||t===0?t:t<0?-1:1},"sign")});var OP=S((LB,$P)=>{"use strict";$P.exports=Object.getOwnPropertyDescriptor});var Rm=S((jB,RP)=>{"use strict";var ku=OP();if(ku)try{ku([],"length")}catch{ku=null}RP.exports=ku});var kP=S((FB,zP)=>{"use strict";var Du=Object.defineProperty||!1;if(Du)try{Du({},"a",{value:1})}catch{Du=!1}zP.exports=Du});var zm=S((BB,DP)=>{"use strict";DP.exports=s(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var r=42;t[n]=r;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,n);if(u.value!==r||u.enumerable!==!0)return!1}return!0},"hasSymbols")});var UP=S((ZB,NP)=>{"use strict";var CP=typeof Symbol<"u"&&Symbol,m$=zm();NP.exports=s(function(){return typeof CP!="function"||typeof Symbol!="function"||typeof CP("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:m$()},"hasNativeSymbols")});var km=S((qB,MP)=>{"use strict";MP.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Dm=S((GB,LP)=>{"use strict";var h$=Om();LP.exports=h$.getPrototypeOf||null});var BP=S((WB,FP)=>{"use strict";var g$="Function.prototype.bind called on incompatible ",y$=Object.prototype.toString,v$=Math.max,_$="[object Function]",jP=s(function(t,n){for(var o=[],r=0;r<t.length;r+=1)o[r]=t[r];for(var i=0;i<n.length;i+=1)o[i+t.length]=n[i];return o},"concatty"),P$=s(function(t,n){for(var o=[],r=n||0,i=0;r<t.length;r+=1,i+=1)o[i]=t[r];return o},"slicy"),x$=s(function(e,t){for(var n="",o=0;o<e.length;o+=1)n+=e[o],o+1<e.length&&(n+=t);return n},"joiny");FP.exports=s(function(t){var n=this;if(typeof n!="function"||y$.apply(n)!==_$)throw new TypeError(g$+n);for(var o=P$(arguments,1),r,i=s(function(){if(this instanceof r){var d=n.apply(this,jP(o,arguments));return Object(d)===d?d:this}return n.apply(t,jP(o,arguments))},"binder"),a=v$(0,n.length-o.length),u=[],c=0;c<a;c++)u[c]="$"+c;if(r=Function("binder","return function ("+x$(u,",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var l=s(function(){},"Empty");l.prototype=n.prototype,r.prototype=new l,l.prototype=null}return r},"bind")});var ln=S((XB,VP)=>{"use strict";var b$=BP();VP.exports=Function.prototype.bind||b$});var Cu=S((KB,ZP)=>{"use strict";ZP.exports=Function.prototype.call});var Cm=S((YB,HP)=>{"use strict";HP.exports=Function.prototype.apply});var GP=S((QB,qP)=>{"use strict";qP.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var JP=S((eV,WP)=>{"use strict";var E$=ln(),T$=Cm(),I$=Cu(),S$=GP();WP.exports=S$||E$.call(I$,T$)});var KP=S((tV,XP)=>{"use strict";var A$=ln(),w$=zu(),$$=Cu(),O$=JP();XP.exports=s(function(t){if(t.length<1||typeof t[0]!="function")throw new w$("a function is required");return O$(A$,$$,t)},"callBindBasic")});var nx=S((nV,rx)=>{"use strict";var R$=KP(),YP=Rm(),ex;try{ex=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Nm=!!ex&&YP&&YP(Object.prototype,"__proto__"),tx=Object,QP=tx.getPrototypeOf;rx.exports=Nm&&typeof Nm.get=="function"?R$([Nm.get]):typeof QP=="function"?s(function(t){return QP(t==null?t:tx(t))},"getDunder"):!1});var ux=S((iV,sx)=>{"use strict";var ox=km(),ix=Dm(),ax=nx();sx.exports=ox?s(function(t){return ox(t)},"getProto"):ix?s(function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return ix(t)},"getProto"):ax?s(function(t){return ax(t)},"getProto"):null});var Um=S((sV,cx)=>{"use strict";var z$=Function.prototype.call,k$=Object.prototype.hasOwnProperty,D$=ln();cx.exports=D$.call(z$,k$)});var gx=S((uV,hx)=>{"use strict";var ne,C$=Om(),N$=tP(),U$=nP(),M$=iP(),L$=sP(),mn=cP(),fn=zu(),j$=dP(),F$=mP(),B$=gP(),V$=vP(),Z$=PP(),H$=bP(),q$=TP(),G$=wP(),fx=Function,Mm=s(function(e){try{return fx('"use strict"; return ('+e+").constructor;")()}catch{}},"getEvalledConstructor"),Ri=Rm(),W$=kP(),Lm=s(function(){throw new fn},"throwTypeError"),J$=Ri?(function(){try{return arguments.callee,Lm}catch{try{return Ri(arguments,"callee").get}catch{return Lm}}})():Lm,pn=UP()(),Ne=ux(),X$=Dm(),K$=km(),mx=Cm(),zi=Cu(),dn={},Y$=typeof Uint8Array>"u"||!Ne?ne:Ne(Uint8Array),Er={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ne:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ne:ArrayBuffer,"%ArrayIteratorPrototype%":pn&&Ne?Ne([][Symbol.iterator]()):ne,"%AsyncFromSyncIteratorPrototype%":ne,"%AsyncFunction%":dn,"%AsyncGenerator%":dn,"%AsyncGeneratorFunction%":dn,"%AsyncIteratorPrototype%":dn,"%Atomics%":typeof Atomics>"u"?ne:Atomics,"%BigInt%":typeof BigInt>"u"?ne:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ne:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ne:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ne:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":N$,"%eval%":eval,"%EvalError%":U$,"%Float16Array%":typeof Float16Array>"u"?ne:Float16Array,"%Float32Array%":typeof Float32Array>"u"?ne:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ne:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ne:FinalizationRegistry,"%Function%":fx,"%GeneratorFunction%":dn,"%Int8Array%":typeof Int8Array>"u"?ne:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ne:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ne:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":pn&&Ne?Ne(Ne([][Symbol.iterator]())):ne,"%JSON%":typeof JSON=="object"?JSON:ne,"%Map%":typeof Map>"u"?ne:Map,"%MapIteratorPrototype%":typeof Map>"u"||!pn||!Ne?ne:Ne(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":C$,"%Object.getOwnPropertyDescriptor%":Ri,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ne:Promise,"%Proxy%":typeof Proxy>"u"?ne:Proxy,"%RangeError%":M$,"%ReferenceError%":L$,"%Reflect%":typeof Reflect>"u"?ne:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ne:Set,"%SetIteratorPrototype%":typeof Set>"u"||!pn||!Ne?ne:Ne(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ne:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":pn&&Ne?Ne(""[Symbol.iterator]()):ne,"%Symbol%":pn?Symbol:ne,"%SyntaxError%":mn,"%ThrowTypeError%":J$,"%TypedArray%":Y$,"%TypeError%":fn,"%Uint8Array%":typeof Uint8Array>"u"?ne:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ne:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ne:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ne:Uint32Array,"%URIError%":j$,"%WeakMap%":typeof WeakMap>"u"?ne:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ne:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ne:WeakSet,"%Function.prototype.call%":zi,"%Function.prototype.apply%":mx,"%Object.defineProperty%":W$,"%Object.getPrototypeOf%":X$,"%Math.abs%":F$,"%Math.floor%":B$,"%Math.max%":V$,"%Math.min%":Z$,"%Math.pow%":H$,"%Math.round%":q$,"%Math.sign%":G$,"%Reflect.getPrototypeOf%":K$};if(Ne)try{null.error}catch(e){lx=Ne(Ne(e)),Er["%Error.prototype%"]=lx}var lx,Q$=s(function e(t){var n;if(t==="%AsyncFunction%")n=Mm("async function () {}");else if(t==="%GeneratorFunction%")n=Mm("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=Mm("async function* () {}");else if(t==="%AsyncGenerator%"){var o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if(t==="%AsyncIteratorPrototype%"){var r=e("%AsyncGenerator%");r&&Ne&&(n=Ne(r.prototype))}return Er[t]=n,n},"doEval"),px={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ki=ln(),Nu=Um(),eO=ki.call(zi,Array.prototype.concat),tO=ki.call(mx,Array.prototype.splice),dx=ki.call(zi,String.prototype.replace),Uu=ki.call(zi,String.prototype.slice),rO=ki.call(zi,RegExp.prototype.exec),nO=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,oO=/\\(\\)?/g,iO=s(function(t){var n=Uu(t,0,1),o=Uu(t,-1);if(n==="%"&&o!=="%")throw new mn("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&n!=="%")throw new mn("invalid intrinsic syntax, expected opening `%`");var r=[];return dx(t,nO,function(i,a,u,c){r[r.length]=u?dx(c,oO,"$1"):a||i}),r},"stringToPath"),aO=s(function(t,n){var o=t,r;if(Nu(px,o)&&(r=px[o],o="%"+r[0]+"%"),Nu(Er,o)){var i=Er[o];if(i===dn&&(i=Q$(o)),typeof i>"u"&&!n)throw new fn("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:i}}throw new mn("intrinsic "+t+" does not exist!")},"getBaseIntrinsic");hx.exports=s(function(t,n){if(typeof t!="string"||t.length===0)throw new fn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new fn('"allowMissing" argument must be a boolean');if(rO(/^%?[^%]*%?$/,t)===null)throw new mn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=iO(t),r=o.length>0?o[0]:"",i=aO("%"+r+"%",n),a=i.name,u=i.value,c=!1,l=i.alias;l&&(r=l[0],tO(o,eO([0,1],l)));for(var d=1,g=!0;d<o.length;d+=1){var h=o[d],p=Uu(h,0,1),m=Uu(h,-1);if((p==='"'||p==="'"||p==="`"||m==='"'||m==="'"||m==="`")&&p!==m)throw new mn("property names with quotes must have matching quotes");if((h==="constructor"||!g)&&(c=!0),r+="."+h,a="%"+r+"%",Nu(Er,a))u=Er[a];else if(u!=null){if(!(h in u)){if(!n)throw new fn("base intrinsic for "+t+" exists, but the property is not available.");return}if(Ri&&d+1>=o.length){var _=Ri(u,h);g=!!_,g&&"get"in _&&!("originalValue"in _.get)?u=_.get:u=u[h]}else g=Nu(u,h),u=u[h];g&&!c&&(Er[a]=u)}}return u},"GetIntrinsic")});var vx=S((lV,yx)=>{"use strict";var sO=zm();yx.exports=s(function(){return sO()&&!!Symbol.toStringTag},"hasToStringTagShams")});var xx=S((dV,Px)=>{"use strict";var uO=gx(),_x=uO("%Object.defineProperty%",!0),cO=vx()(),lO=Um(),pO=zu(),Mu=cO?Symbol.toStringTag:null;Px.exports=s(function(t,n){var o=arguments.length>2&&!!arguments[2]&&arguments[2].force,r=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof o<"u"&&typeof o!="boolean"||typeof r<"u"&&typeof r!="boolean")throw new pO("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Mu&&(o||!lO(t,Mu))&&(_x?_x(t,Mu,{configurable:!r,enumerable:!1,value:n,writable:!1}):t[Mu]=n)},"setToStringTag")});var Ex=S((mV,bx)=>{"use strict";var dO=Function.prototype.call,fO=Object.prototype.hasOwnProperty,mO=ln();bx.exports=mO.call(dO,fO)});var Ix=S((hV,Tx)=>{"use strict";Tx.exports=function(e,t){return Object.keys(t).forEach(function(n){e[n]=e[n]||t[n]}),e}});var wx=S((gV,Ax)=>{"use strict";var Vm=O_(),hO=require("util"),jm=require("path"),gO=require("http"),yO=require("https"),vO=require("url").parse,_O=require("fs"),PO=require("stream").Stream,xO=require("crypto"),Fm=C_(),bO=Y_(),EO=xx(),Jt=Ex(),Bm=Ix();function Sx(e){return String(e).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}s(Sx,"escapeHeaderParam");function ue(e){if(!(this instanceof ue))return new ue(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Vm.call(this),e=e||{};for(var t in e)this[t]=e[t]}s(ue,"FormData");hO.inherits(ue,Vm);ue.LINE_BREAK=`\r
|
|
2
|
-
`;ue.DEFAULT_CONTENT_TYPE="application/octet-stream";ue.prototype.append=function(e,t,n){n=n||{},typeof n=="string"&&(n={filename:n});var o=Vm.prototype.append.bind(this);if((typeof t=="number"||t==null)&&(t=String(t)),Array.isArray(t)){this._error(new Error("Arrays are not supported."));return}var r=this._multiPartHeader(e,t,n),i=this._multiPartFooter();o(r),o(t),o(i),this._trackLength(r,t,n)};ue.prototype._trackLength=function(e,t,n){var o=0;n.knownLength!=null?o+=Number(n.knownLength):Buffer.isBuffer(t)?o=t.length:typeof t=="string"&&(o=Buffer.byteLength(t)),this._valueLength+=o,this._overheadLength+=Buffer.byteLength(e)+ue.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&Jt(t,"httpVersion"))&&!(t instanceof PO))&&(n.knownLength||this._valuesToMeasure.push(t))};ue.prototype._lengthRetriever=function(e,t){Jt(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):_O.stat(e.path,function(n,o){if(n){t(n);return}var r=o.size-(e.start?e.start:0);t(null,r)}):Jt(e,"httpVersion")?t(null,Number(e.headers["content-length"])):Jt(e,"httpModule")?(e.on("response",function(n){e.pause(),t(null,Number(n.headers["content-length"]))}),e.resume()):t("Unknown stream")};ue.prototype._multiPartHeader=function(e,t,n){if(typeof n.header=="string")return n.header;var o=this._getContentDisposition(t,n),r=this._getContentType(t,n),i="",a={"Content-Disposition":["form-data",'name="'+Sx(e)+'"'].concat(o||[]),"Content-Type":[].concat(r||[])};typeof n.header=="object"&&Bm(a,n.header);var u;for(var c in a)if(Jt(a,c)){if(u=a[c],u==null)continue;Array.isArray(u)||(u=[u]),u.length&&(i+=c+": "+u.join("; ")+ue.LINE_BREAK)}return"--"+this.getBoundary()+ue.LINE_BREAK+i+ue.LINE_BREAK};ue.prototype._getContentDisposition=function(e,t){var n;if(typeof t.filepath=="string"?n=jm.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?n=jm.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&Jt(e,"httpVersion")&&(n=jm.basename(e.client._httpMessage.path||"")),n)return'filename="'+Sx(n)+'"'};ue.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e&&e.name&&(n=Fm.lookup(e.name)),!n&&e&&e.path&&(n=Fm.lookup(e.path)),!n&&e&&e.readable&&Jt(e,"httpVersion")&&(n=e.headers["content-type"]),!n&&(t.filepath||t.filename)&&(n=Fm.lookup(t.filepath||t.filename)),!n&&e&&typeof e=="object"&&(n=ue.DEFAULT_CONTENT_TYPE),n};ue.prototype._multiPartFooter=function(){return function(e){var t=ue.LINE_BREAK,n=this._streams.length===0;n&&(t+=this._lastBoundary()),e(t)}.bind(this)};ue.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+ue.LINE_BREAK};ue.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)Jt(e,t)&&(n[t.toLowerCase()]=e[t]);return n};ue.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};ue.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};ue.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,o=this._streams.length;n<o;n++)typeof this._streams[n]!="function"&&(Buffer.isBuffer(this._streams[n])?e=Buffer.concat([e,this._streams[n]]):e=Buffer.concat([e,Buffer.from(this._streams[n])]),(typeof this._streams[n]!="string"||this._streams[n].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(ue.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};ue.prototype._generateBoundary=function(){this._boundary="--------------------------"+xO.randomBytes(12).toString("hex")};ue.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e};ue.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};ue.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}bO.parallel(this._valuesToMeasure,this._lengthRetriever,function(n,o){if(n){e(n);return}o.forEach(function(r){t+=r}),e(null,t)})};ue.prototype.submit=function(e,t){var n,o,r={method:"post"};return typeof e=="string"?(e=vO(e),o=Bm({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},r)):(o=Bm(e,r),o.port||(o.port=o.protocol==="https:"?443:80)),o.headers=this.getHeaders(e.headers),o.protocol==="https:"?n=yO.request(o):n=gO.request(o),this.getLength(function(i,a){if(i&&i!=="Unknown stream"){this._error(i);return}if(a&&n.setHeader("Content-Length",a),this.pipe(n),t){var u,c=s(function(l,d){return n.removeListener("error",c),n.removeListener("response",u),t.call(this,l,d)},"callback");u=c.bind(this,null),n.on("error",c),n.on("response",u)}}.bind(this)),n};ue.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};ue.prototype.toString=function(){return"[object FormData]"};EO(ue.prototype,"FormData");Ax.exports=ue});var Te={};tt(Te,{__addDisposableResource:()=>ib,__assign:()=>Lu,__asyncDelegator:()=>Kx,__asyncGenerator:()=>Xx,__asyncValues:()=>Yx,__await:()=>hn,__awaiter:()=>Zx,__classPrivateFieldGet:()=>rb,__classPrivateFieldIn:()=>ob,__classPrivateFieldSet:()=>nb,__createBinding:()=>Fu,__decorate:()=>Ux,__disposeResources:()=>ab,__esDecorate:()=>Lx,__exportStar:()=>qx,__extends:()=>Cx,__generator:()=>Hx,__importDefault:()=>tb,__importStar:()=>eb,__makeTemplateObject:()=>Qx,__metadata:()=>Vx,__param:()=>Mx,__propKey:()=>Fx,__read:()=>Gm,__rest:()=>Nx,__rewriteRelativeImportExtension:()=>sb,__runInitializers:()=>jx,__setFunctionName:()=>Bx,__spread:()=>Gx,__spreadArray:()=>Jx,__spreadArrays:()=>Wx,__values:()=>ju,default:()=>MO});function Cx(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Hm(e,t);function n(){this.constructor=e}s(n,"__"),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function Nx(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function Ux(e,t,n,o){var r=arguments.length,i=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,n):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,o);else for(var u=e.length-1;u>=0;u--)(a=e[u])&&(i=(r<3?a(i):r>3?a(t,n,i):a(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i}function Mx(e,t){return function(n,o){t(n,o,e)}}function Lx(e,t,n,o,r,i){function a(E){if(E!==void 0&&typeof E!="function")throw new TypeError("Function expected");return E}s(a,"accept");for(var u=o.kind,c=u==="getter"?"get":u==="setter"?"set":"value",l=!t&&e?o.static?e:e.prototype:null,d=t||(l?Object.getOwnPropertyDescriptor(l,o.name):{}),g,h=!1,p=n.length-1;p>=0;p--){var m={};for(var _ in o)m[_]=_==="access"?{}:o[_];for(var _ in o.access)m.access[_]=o.access[_];m.addInitializer=function(E){if(h)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(E||null))};var P=(0,n[p])(u==="accessor"?{get:d.get,set:d.set}:d[c],m);if(u==="accessor"){if(P===void 0)continue;if(P===null||typeof P!="object")throw new TypeError("Object expected");(g=a(P.get))&&(d.get=g),(g=a(P.set))&&(d.set=g),(g=a(P.init))&&r.unshift(g)}else(g=a(P))&&(u==="field"?r.unshift(g):d[c]=g)}l&&Object.defineProperty(l,o.name,d),h=!0}function jx(e,t,n){for(var o=arguments.length>2,r=0;r<t.length;r++)n=o?t[r].call(e,n):t[r].call(e);return o?n:void 0}function Fx(e){return typeof e=="symbol"?e:"".concat(e)}function Bx(e,t,n){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function Vx(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Zx(e,t,n,o){function r(i){return i instanceof n?i:new n(function(a){a(i)})}return s(r,"adopt"),new(n||(n=Promise))(function(i,a){function u(d){try{l(o.next(d))}catch(g){a(g)}}s(u,"fulfilled");function c(d){try{l(o.throw(d))}catch(g){a(g)}}s(c,"rejected");function l(d){d.done?i(d.value):r(d.value).then(u,c)}s(l,"step"),l((o=o.apply(e,t||[])).next())})}function Hx(e,t){var n={label:0,sent:s(function(){if(i[0]&1)throw i[1];return i[1]},"sent"),trys:[],ops:[]},o,r,i,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(l){return function(d){return c([l,d])}}function c(l){if(o)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(n=0)),n;)try{if(o=1,r&&(i=l[0]&2?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,r=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){n.label=l[1];break}if(l[0]===6&&n.label<i[1]){n.label=i[1],i=l;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(l);break}i[2]&&n.ops.pop(),n.trys.pop();continue}l=t.call(e,n)}catch(d){l=[6,d],r=0}finally{o=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function qx(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Fu(t,e,n)}function ju(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:s(function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}},"next")};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Gm(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),r,i=[],a;try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(u){a={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i}function Gx(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Gm(arguments[t]));return e}function Wx(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var o=Array(e),r=0,t=0;t<n;t++)for(var i=arguments[t],a=0,u=i.length;a<u;a++,r++)o[r]=i[a];return o}function Jx(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,i;o<r;o++)(i||!(o in t))&&(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}function hn(e){return this instanceof hn?(this.v=e,this):new hn(e)}function Xx(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=n.apply(e,t||[]),r,i=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",a),r[Symbol.asyncIterator]=function(){return this},r;function a(p){return function(m){return Promise.resolve(m).then(p,g)}}function u(p,m){o[p]&&(r[p]=function(_){return new Promise(function(P,E){i.push([p,_,P,E])>1||c(p,_)})},m&&(r[p]=m(r[p])))}function c(p,m){try{l(o[p](m))}catch(_){h(i[0][3],_)}}function l(p){p.value instanceof hn?Promise.resolve(p.value.v).then(d,g):h(i[0][2],p)}function d(p){c("next",p)}function g(p){c("throw",p)}function h(p,m){p(m),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Kx(e){var t,n;return t={},o("next"),o("throw",function(r){throw r}),o("return"),t[Symbol.iterator]=function(){return this},t;function o(r,i){t[r]=e[r]?function(a){return(n=!n)?{value:hn(e[r](a)),done:!1}:i?i(a):a}:i}}function Yx(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof ju=="function"?ju(e):e[Symbol.iterator](),n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n);function o(i){n[i]=e[i]&&function(a){return new Promise(function(u,c){a=e[i](a),r(u,c,a.done,a.value)})}}function r(i,a,u,c){Promise.resolve(c).then(function(l){i({value:l,done:u})},a)}}function Qx(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function eb(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=qm(e),o=0;o<n.length;o++)n[o]!=="default"&&Fu(t,e,n[o]);return NO(t,e),t}function tb(e){return e&&e.__esModule?e:{default:e}}function rb(e,t,n,o){if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?o:n==="a"?o.call(e):o?o.value:t.get(e)}function nb(e,t,n,o,r){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?r.call(e,n):r?r.value=n:t.set(e,n),n}function ob(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function ib(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var o,r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");o=t[Symbol.asyncDispose]}if(o===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");o=t[Symbol.dispose],n&&(r=o)}if(typeof o!="function")throw new TypeError("Object not disposable.");r&&(o=s(function(){try{r.call(this)}catch(i){return Promise.reject(i)}},"dispose")),e.stack.push({value:t,dispose:o,async:n})}else n&&e.stack.push({async:!0});return t}function ab(e){function t(i){e.error=e.hasError?new UO(i,e.error,"An error was suppressed during disposal."):i,e.hasError=!0}s(t,"fail");var n,o=0;function r(){for(;n=e.stack.pop();)try{if(!n.async&&o===1)return o=0,e.stack.push(n),Promise.resolve().then(r);if(n.dispose){var i=n.dispose.call(n.value);if(n.async)return o|=2,Promise.resolve(i).then(r,function(a){return t(a),r()})}else o|=1}catch(a){t(a)}if(o===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return s(r,"next"),r()}function sb(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(n,o,r,i,a){return o?t?".jsx":".js":r&&(!i||!a)?n:r+i+"."+a.toLowerCase()+"js"}):e}var Hm,Lu,Fu,NO,qm,UO,MO,Ie=ZE(()=>{Hm=s(function(e,t){return Hm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},Hm(e,t)},"extendStatics");s(Cx,"__extends");Lu=s(function(){return Lu=Object.assign||s(function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},"__assign"),Lu.apply(this,arguments)},"__assign");s(Nx,"__rest");s(Ux,"__decorate");s(Mx,"__param");s(Lx,"__esDecorate");s(jx,"__runInitializers");s(Fx,"__propKey");s(Bx,"__setFunctionName");s(Vx,"__metadata");s(Zx,"__awaiter");s(Hx,"__generator");Fu=Object.create?(function(e,t,n,o){o===void 0&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:s(function(){return t[n]},"get")}),Object.defineProperty(e,o,r)}):(function(e,t,n,o){o===void 0&&(o=n),e[o]=t[n]});s(qx,"__exportStar");s(ju,"__values");s(Gm,"__read");s(Gx,"__spread");s(Wx,"__spreadArrays");s(Jx,"__spreadArray");s(hn,"__await");s(Xx,"__asyncGenerator");s(Kx,"__asyncDelegator");s(Yx,"__asyncValues");s(Qx,"__makeTemplateObject");NO=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t},qm=s(function(e){return qm=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},qm(e)},"ownKeys");s(eb,"__importStar");s(tb,"__importDefault");s(rb,"__classPrivateFieldGet");s(nb,"__classPrivateFieldSet");s(ob,"__classPrivateFieldIn");s(ib,"__addDisposableResource");UO=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var o=new Error(n);return o.name="SuppressedError",o.error=e,o.suppressed=t,o};s(ab,"__disposeResources");s(sb,"__rewriteRelativeImportExtension");MO={__extends:Cx,__assign:Lu,__rest:Nx,__decorate:Ux,__param:Mx,__esDecorate:Lx,__runInitializers:jx,__propKey:Fx,__setFunctionName:Bx,__metadata:Vx,__awaiter:Zx,__generator:Hx,__createBinding:Fu,__exportStar:qx,__values:ju,__read:Gm,__spread:Gx,__spreadArrays:Wx,__spreadArray:Jx,__await:hn,__asyncGenerator:Xx,__asyncDelegator:Kx,__asyncValues:Yx,__makeTemplateObject:Qx,__importStar:eb,__importDefault:tb,__classPrivateFieldGet:rb,__classPrivateFieldSet:nb,__classPrivateFieldIn:ob,__addDisposableResource:ib,__disposeResources:ab,__rewriteRelativeImportExtension:sb}});var Ci=S(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});Bu.RequestMethod=void 0;var ub;(function(e){e.GET="GET",e.PATCH="PATCH",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"})(ub||(Bu.RequestMethod=ub={}))});var cb=S(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.BatchRequestContent=void 0;var gn=(Ie(),Pe(Te)),Wm=Ci(),LO=(function(){function e(t){if(this.requests=new Map,typeof t<"u"){var n=e.requestLimit;if(t.length>n){var o=new Error("Maximum requests limit exceeded, Max allowed number of requests are ".concat(n));throw o.name="Limit Exceeded Error",o}for(var r=0,i=t;r<i.length;r++){var a=i[r];this.addRequest(a)}}}return s(e,"BatchRequestContent"),e.validateDependencies=function(t){var n=s(function(a){for(var u=a.entries(),c=u.next();!c.done;){var l=c.value[1];if(l.dependsOn!==void 0&&l.dependsOn.length>0)return!1;c=u.next()}return!0},"isParallel"),o=s(function(a){var u=a.entries(),c=u.next(),l=c.value[1];if(l.dependsOn!==void 0&&l.dependsOn.length>0)return!1;var d=c;for(c=u.next();!c.done;){var g=c.value[1];if(g.dependsOn===void 0||g.dependsOn.length!==1||g.dependsOn[0]!==d.value[1].id)return!1;d=c,c=u.next()}return!0},"isSerial"),r=s(function(a){var u=a.entries(),c=u.next(),l=c.value[1],d;if(l.dependsOn===void 0||l.dependsOn.length===0)d=l.id;else if(l.dependsOn.length===1){var g=l.dependsOn[0];if(g!==l.id&&a.has(g))d=g;else return!1}else return!1;for(c=u.next();!c.done;){var h=c.value[1];if((h.dependsOn===void 0||h.dependsOn.length===0)&&d!==h.id||h.dependsOn!==void 0&&h.dependsOn.length!==0&&(h.dependsOn.length===1&&(h.id===d||h.dependsOn[0]!==d)||h.dependsOn.length>1))return!1;c=u.next()}return!0},"isSame");if(t.size===0){var i=new Error("Empty requests map, Please provide at least one request.");throw i.name="Empty Requests Error",i}return n(t)||o(t)||r(t)},e.getRequestData=function(t){return gn.__awaiter(this,void 0,void 0,function(){var n,o,r,i;return gn.__generator(this,function(a){switch(a.label){case 0:return n={url:""},o=new RegExp("^https?://"),n.url=o.test(t.url)?"/"+t.url.split(/.*?\/\/.*?\//)[1]:t.url,n.method=t.method,r={},t.headers.forEach(function(u,c){r[c]=u}),Object.keys(r).length&&(n.headers=r),t.method===Wm.RequestMethod.PATCH||t.method===Wm.RequestMethod.POST||t.method===Wm.RequestMethod.PUT?(i=n,[4,e.getRequestBody(t)]):[3,2];case 1:i.body=a.sent(),a.label=2;case 2:return[2,n]}})})},e.getRequestBody=function(t){return gn.__awaiter(this,void 0,void 0,function(){var n,o,r,i,a,u,c,l;return gn.__generator(this,function(d){switch(d.label){case 0:n=!1,d.label=1;case 1:return d.trys.push([1,3,,4]),r=t.clone(),[4,r.json()];case 2:return o=d.sent(),n=!0,[3,4];case 3:return i=d.sent(),[3,4];case 4:if(n)return[3,12];d.label=5;case 5:return d.trys.push([5,11,,12]),typeof Blob<"u"?[4,t.blob()]:[3,8];case 6:return a=d.sent(),u=new FileReader,[4,new Promise(function(g){u.addEventListener("load",function(){var h=u.result,p=new RegExp("^s*data:(.+?/.+?(;.+?=.+?)*)?(;base64)?,(.*)s*$"),m=p.exec(h);g(m[4])},!1),u.readAsDataURL(a)})];case 7:return o=d.sent(),[3,10];case 8:return typeof Buffer<"u"?[4,t.buffer()]:[3,10];case 9:c=d.sent(),o=c.toString("base64"),d.label=10;case 10:return n=!0,[3,12];case 11:return l=d.sent(),[3,12];case 12:return[2,o]}})})},e.prototype.addRequest=function(t){var n=e.requestLimit;if(t.id===""){var o=new Error("Id for a request is empty, Please provide an unique id");throw o.name="Empty Id For Request",o}if(this.requests.size===n){var o=new Error("Maximum requests limit exceeded, Max allowed number of requests are ".concat(n));throw o.name="Limit Exceeded Error",o}if(this.requests.has(t.id)){var o=new Error("Adding request with duplicate id ".concat(t.id,", Make the id of the requests unique"));throw o.name="Duplicate RequestId Error",o}return this.requests.set(t.id,t),t.id},e.prototype.removeRequest=function(t){for(var n=this.requests.delete(t),o=this.requests.entries(),r=o.next();!r.done;){var i=r.value[1].dependsOn;if(typeof i<"u"){var a=i.indexOf(t);a!==-1&&i.splice(a,1),i.length===0&&delete r.value[1].dependsOn}r=o.next()}return n},e.prototype.getContent=function(){return gn.__awaiter(this,void 0,void 0,function(){var t,n,o,r,u,u,i,a,u;return gn.__generator(this,function(c){switch(c.label){case 0:if(t=[],n={requests:t},o=this.requests.entries(),r=o.next(),r.done)throw u=new Error("No requests added yet, Please add at least one request."),u.name="Empty Payload",u;if(!e.validateDependencies(this.requests))throw u=new Error(`Invalid dependency found, Dependency should be:
|
|
1
|
+
"use strict";var ZE=Object.create;var wn=Object.defineProperty;var HE=Object.getOwnPropertyDescriptor;var qE=Object.getOwnPropertyNames;var GE=Object.getPrototypeOf,WE=Object.prototype.hasOwnProperty;var s=(e,t)=>wn(e,"name",{value:t,configurable:!0});var JE=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(o){throw n=[o],o}};var S=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(n){throw t=0,n}},tt=(e,t)=>{for(var n in t)wn(e,n,{get:t[n],enumerable:!0})},Ig=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of qE(t))!WE.call(e,r)&&r!==n&&wn(e,r,{get:()=>t[r],enumerable:!(o=HE(t,r))||o.enumerable});return e};var ae=(e,t,n)=>(n=e!=null?ZE(GE(e)):{},Ig(t||!e||!e.__esModule?wn(n,"default",{value:e,enumerable:!0}):n,e)),Pe=e=>Ig(wn({},"__esModule",{value:!0}),e);var Ev=S((bv,Eu)=>{(function(e){"use strict";let t="(0?\\d+|0x[a-f0-9]+)",n={fourOctet:new RegExp(`^${t}\\.${t}\\.${t}\\.${t}$`,"i"),threeOctet:new RegExp(`^${t}\\.${t}\\.${t}$`,"i"),twoOctet:new RegExp(`^${t}\\.${t}$`,"i"),longValue:new RegExp(`^${t}$`,"i")},o=new RegExp("^0[0-7]+$","i"),r=new RegExp("^0x[a-f0-9]+$","i"),i="%[0-9a-z]{1,}",a="(?:[0-9a-f]+::?)+",u={zoneIndex:new RegExp(i,"i"),native:new RegExp(`^(::)?(${a})?([0-9a-f]+)?(::)?(${i})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${t}\\.${t}\\.${t}\\.${t}(${i})?)$`,"i"),transitional:new RegExp(`^((?:${a})|(?:::)(?:${a})?)${t}\\.${t}\\.${t}\\.${t}(${i})?$`,"i")};function c(p,g){if(p.indexOf("::")!==p.lastIndexOf("::"))return null;let _=0,b=-1,E=(p.match(u.zoneIndex)||[])[0],T,Z;for(E&&(E=E.substring(1),p=p.replace(/%.+$/,""));(b=p.indexOf(":",b+1))>=0;)_++;if(p.substr(0,2)==="::"&&_--,p.substr(-2,2)==="::"&&_--,_>g)return null;for(Z=g-_,T=":";Z--;)T+="0:";return p=p.replace("::",T),p[0]===":"&&(p=p.slice(1)),p[p.length-1]===":"&&(p=p.slice(0,-1)),g=(function(){let ie=p.split(":"),le=[];for(let ze=0;ze<ie.length;ze++)le.push(parseInt(ie[ze],16));return le})(),{parts:g,zoneId:E}}s(c,"expandIPv6");function l(p,g,_,b){if(p.length!==g.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let E=0,T;for(;b>0;){if(T=_-b,T<0&&(T=0),p[E]>>T!==g[E]>>T)return!1;b-=_,E+=1}return!0}s(l,"matchCIDR");function d(p){if(r.test(p))return parseInt(p,16);if(p[0]==="0"&&!isNaN(parseInt(p[1],10))){if(o.test(p))return parseInt(p,8);throw new Error(`ipaddr: cannot parse ${p} as octal`)}return parseInt(p,10)}s(d,"parseIntAuto");function h(p,g){for(;p.length<g;)p=`0${p}`;return p}s(h,"padPart");let m={};m.IPv4=(function(){function p(g){if(g.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let _,b;for(_=0;_<g.length;_++)if(b=g[_],!(0<=b&&b<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=g}return s(p,"IPv4"),p.prototype.SpecialRanges={unspecified:[[new p([0,0,0,0]),8]],broadcast:[[new p([255,255,255,255]),32]],multicast:[[new p([224,0,0,0]),4]],linkLocal:[[new p([169,254,0,0]),16]],loopback:[[new p([127,0,0,0]),8]],carrierGradeNat:[[new p([100,64,0,0]),10]],private:[[new p([10,0,0,0]),8],[new p([172,16,0,0]),12],[new p([192,168,0,0]),16]],reserved:[[new p([192,0,0,0]),24],[new p([192,0,2,0]),24],[new p([192,88,99,0]),24],[new p([198,18,0,0]),15],[new p([198,51,100,0]),24],[new p([203,0,113,0]),24],[new p([240,0,0,0]),4]],as112:[[new p([192,175,48,0]),24],[new p([192,31,196,0]),24]],amt:[[new p([192,52,193,0]),24]]},p.prototype.kind=function(){return"ipv4"},p.prototype.match=function(g,_){let b;if(_===void 0&&(b=g,g=b[0],_=b[1]),g.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return l(this.octets,g.octets,8,_)},p.prototype.prefixLengthFromSubnetMask=function(){let g=0,_=!1,b={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},E,T,Z;for(E=3;E>=0;E-=1)if(T=this.octets[E],T in b){if(Z=b[T],_&&Z!==0)return null;Z!==8&&(_=!0),g+=Z}else return null;return 32-g},p.prototype.range=function(){return m.subnetMatch(this,this.SpecialRanges)},p.prototype.toByteArray=function(){return this.octets.slice(0)},p.prototype.toIPv4MappedAddress=function(){return m.IPv6.parse(`::ffff:${this.toString()}`)},p.prototype.toNormalizedString=function(){return this.toString()},p.prototype.toString=function(){return this.octets.join(".")},p})(),m.IPv4.broadcastAddressFromCIDR=function(p){try{let g=this.parseCIDR(p),_=g[0].toByteArray(),b=this.subnetMaskFromPrefixLength(g[1]).toByteArray(),E=[],T=0;for(;T<4;)E.push(parseInt(_[T],10)|parseInt(b[T],10)^255),T++;return new this(E)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},m.IPv4.isIPv4=function(p){return this.parser(p)!==null},m.IPv4.isValid=function(p){try{return new this(this.parser(p)),!0}catch{return!1}},m.IPv4.isValidCIDR=function(p){try{return this.parseCIDR(p),!0}catch{return!1}},m.IPv4.isValidFourPartDecimal=function(p){return!!(m.IPv4.isValid(p)&&p.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},m.IPv4.isValidCIDRFourPartDecimal=function(p){let g=p.match(/^(.+)\/(\d+)$/);return!m.IPv4.isValidCIDR(p)||!g?!1:m.IPv4.isValidFourPartDecimal(g[1])},m.IPv4.networkAddressFromCIDR=function(p){let g,_,b,E,T;try{for(g=this.parseCIDR(p),b=g[0].toByteArray(),T=this.subnetMaskFromPrefixLength(g[1]).toByteArray(),E=[],_=0;_<4;)E.push(parseInt(b[_],10)&parseInt(T[_],10)),_++;return new this(E)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},m.IPv4.parse=function(p){let g=this.parser(p);if(g===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(g)},m.IPv4.parseCIDR=function(p){let g;if(g=p.match(/^(.+)\/(\d+)$/)){let _=parseInt(g[2]);if(_>=0&&_<=32){let b=[this.parse(g[1]),_];return Object.defineProperty(b,"toString",{value:s(function(){return this.join("/")},"value")}),b}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},m.IPv4.parser=function(p){let g,_,b;if(g=p.match(n.fourOctet))return(function(){let E=g.slice(1,6),T=[];for(let Z=0;Z<E.length;Z++)_=E[Z],T.push(d(_));return T})();if(g=p.match(n.longValue)){if(b=d(g[1]),b>4294967295||b<0)throw new Error("ipaddr: address outside defined range");return(function(){let E=[],T;for(T=0;T<=24;T+=8)E.push(b>>T&255);return E})().reverse()}else return(g=p.match(n.twoOctet))?(function(){let E=g.slice(1,4),T=[];if(b=d(E[1]),b>16777215||b<0)throw new Error("ipaddr: address outside defined range");return T.push(d(E[0])),T.push(b>>16&255),T.push(b>>8&255),T.push(b&255),T})():(g=p.match(n.threeOctet))?(function(){let E=g.slice(1,5),T=[];if(b=d(E[2]),b>65535||b<0)throw new Error("ipaddr: address outside defined range");return T.push(d(E[0])),T.push(d(E[1])),T.push(b>>8&255),T.push(b&255),T})():null},m.IPv4.subnetMaskFromPrefixLength=function(p){if(p=parseInt(p),p<0||p>32)throw new Error("ipaddr: invalid IPv4 prefix length");let g=[0,0,0,0],_=0,b=Math.floor(p/8);for(;_<b;)g[_]=255,_++;return b<4&&(g[b]=Math.pow(2,p%8)-1<<8-p%8),new this(g)},m.IPv6=(function(){function p(g,_){let b,E;if(g.length===16)for(this.parts=[],b=0;b<=14;b+=2)this.parts.push(g[b]<<8|g[b+1]);else if(g.length===8)this.parts=g;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(b=0;b<this.parts.length;b++)if(E=this.parts[b],!(0<=E&&E<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");_&&(this.zoneId=_)}return s(p,"IPv6"),p.prototype.SpecialRanges={unspecified:[new p([0,0,0,0,0,0,0,0]),128],linkLocal:[new p([65152,0,0,0,0,0,0,0]),10],multicast:[new p([65280,0,0,0,0,0,0,0]),8],loopback:[new p([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new p([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new p([0,0,0,0,0,65535,0,0]),96],discard:[new p([256,0,0,0,0,0,0,0]),64],rfc6145:[new p([0,0,0,0,65535,0,0,0]),96],rfc6052:[new p([100,65435,0,0,0,0,0,0]),96],"6to4":[new p([8194,0,0,0,0,0,0,0]),16],teredo:[new p([8193,0,0,0,0,0,0,0]),32],benchmarking:[new p([8193,2,0,0,0,0,0,0]),48],amt:[new p([8193,3,0,0,0,0,0,0]),32],as112v6:[[new p([8193,4,274,0,0,0,0,0]),48],[new p([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new p([8193,16,0,0,0,0,0,0]),28],orchid2:[new p([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new p([8193,48,0,0,0,0,0,0]),28],reserved:[[new p([8193,0,0,0,0,0,0,0]),23],[new p([8193,3512,0,0,0,0,0,0]),32]]},p.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},p.prototype.kind=function(){return"ipv6"},p.prototype.match=function(g,_){let b;if(_===void 0&&(b=g,g=b[0],_=b[1]),g.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return l(this.parts,g.parts,16,_)},p.prototype.prefixLengthFromSubnetMask=function(){let g=0,_=!1,b={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},E,T;for(let Z=7;Z>=0;Z-=1)if(E=this.parts[Z],E in b){if(T=b[E],_&&T!==0)return null;T!==16&&(_=!0),g+=T}else return null;return 128-g},p.prototype.range=function(){return m.subnetMatch(this,this.SpecialRanges)},p.prototype.toByteArray=function(){let g,_=[],b=this.parts;for(let E=0;E<b.length;E++)g=b[E],_.push(g>>8),_.push(g&255);return _},p.prototype.toFixedLengthString=function(){let g=(function(){let b=[];for(let E=0;E<this.parts.length;E++)b.push(h(this.parts[E].toString(16),4));return b}).call(this).join(":"),_="";return this.zoneId&&(_=`%${this.zoneId}`),g+_},p.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let g=this.parts.slice(-2),_=g[0],b=g[1];return new m.IPv4([_>>8,_&255,b>>8,b&255])},p.prototype.toNormalizedString=function(){let g=(function(){let b=[];for(let E=0;E<this.parts.length;E++)b.push(this.parts[E].toString(16));return b}).call(this).join(":"),_="";return this.zoneId&&(_=`%${this.zoneId}`),g+_},p.prototype.toRFC5952String=function(){let g=/((^|:)(0(:|$)){2,})/g,_=this.toNormalizedString(),b=0,E=-1,T;for(;T=g.exec(_);)T[0].length>E&&(b=T.index,E=T[0].length);return E<0?_:`${_.substring(0,b)}::${_.substring(b+E)}`},p.prototype.toString=function(){return this.toRFC5952String()},p})(),m.IPv6.broadcastAddressFromCIDR=function(p){try{let g=this.parseCIDR(p),_=g[0].toByteArray(),b=this.subnetMaskFromPrefixLength(g[1]).toByteArray(),E=[],T=0;for(;T<16;)E.push(parseInt(_[T],10)|parseInt(b[T],10)^255),T++;return new this(E)}catch(g){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${g})`)}},m.IPv6.isIPv6=function(p){return this.parser(p)!==null},m.IPv6.isValid=function(p){if(typeof p=="string"&&p.indexOf(":")===-1)return!1;try{let g=this.parser(p);return new this(g.parts,g.zoneId),!0}catch{return!1}},m.IPv6.isValidCIDR=function(p){if(typeof p=="string"&&p.indexOf(":")===-1)return!1;try{return this.parseCIDR(p),!0}catch{return!1}},m.IPv6.networkAddressFromCIDR=function(p){let g,_,b,E,T;try{for(g=this.parseCIDR(p),b=g[0].toByteArray(),T=this.subnetMaskFromPrefixLength(g[1]).toByteArray(),E=[],_=0;_<16;)E.push(parseInt(b[_],10)&parseInt(T[_],10)),_++;return new this(E)}catch(Z){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${Z})`)}},m.IPv6.parse=function(p){let g=this.parser(p);if(g.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(g.parts,g.zoneId)},m.IPv6.parseCIDR=function(p){let g,_,b;if((_=p.match(/^(.+)\/(\d+)$/))&&(g=parseInt(_[2]),g>=0&&g<=128))return b=[this.parse(_[1]),g],Object.defineProperty(b,"toString",{value:s(function(){return this.join("/")},"value")}),b;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},m.IPv6.parser=function(p){let g,_,b,E,T,Z;if(b=p.match(u.deprecatedTransitional))return this.parser(`::ffff:${b[1]}`);if(u.native.test(p))return c(p,8);if((b=p.match(u.transitional))&&(Z=b[6]||"",g=b[1],b[1].endsWith("::")||(g=g.slice(0,-1)),g=c(g+Z,6),g.parts)){for(T=[parseInt(b[2]),parseInt(b[3]),parseInt(b[4]),parseInt(b[5])],_=0;_<T.length;_++)if(E=T[_],!(0<=E&&E<=255))return null;return g.parts.push(T[0]<<8|T[1]),g.parts.push(T[2]<<8|T[3]),{parts:g.parts,zoneId:g.zoneId}}return null},m.IPv6.subnetMaskFromPrefixLength=function(p){if(p=parseInt(p),p<0||p>128)throw new Error("ipaddr: invalid IPv6 prefix length");let g=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],_=0,b=Math.floor(p/8);for(;_<b;)g[_]=255,_++;return b<16&&(g[b]=Math.pow(2,p%8)-1<<8-p%8),new this(g)},m.fromByteArray=function(p){let g=p.length;if(g===4)return new m.IPv4(p);if(g===16)return new m.IPv6(p);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},m.isValid=function(p){return m.IPv6.isValid(p)||m.IPv4.isValid(p)},m.isValidCIDR=function(p){return m.IPv6.isValidCIDR(p)||m.IPv4.isValidCIDR(p)},m.parse=function(p){if(m.IPv6.isValid(p))return m.IPv6.parse(p);if(m.IPv4.isValid(p))return m.IPv4.parse(p);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},m.parseCIDR=function(p){try{return m.IPv6.parseCIDR(p)}catch{try{return m.IPv4.parseCIDR(p)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},m.process=function(p){let g=this.parse(p);return g.kind()==="ipv6"&&g.isIPv4MappedAddress()?g.toIPv4Address():g},m.subnetMatch=function(p,g,_){let b,E,T,Z;_==null&&(_="unicast");for(E in g)if(Object.prototype.hasOwnProperty.call(g,E)){for(T=g[E],T[0]&&!(T[0]instanceof Array)&&(T=[T]),b=0;b<T.length;b++)if(Z=T[b],p.kind()===Z[0].kind()&&p.match.apply(p,Z))return E}return _},typeof Eu<"u"&&Eu.exports?Eu.exports=m:e.ipaddr=m})(bv)});var U_=S((dB,N_)=>{var C_=require("stream").Stream,Jw=require("util");N_.exports=ht;function ht(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}s(ht,"DelayedStream");Jw.inherits(ht,C_);ht.create=function(e,t){var n=new this;t=t||{};for(var o in t)n[o]=t[o];n.source=e;var r=e.emit;return e.emit=function(){return n._handleEmit(arguments),r.apply(e,arguments)},e.on("error",function(){}),n.pauseStream&&e.pause(),n};Object.defineProperty(ht.prototype,"readable",{configurable:!0,enumerable:!0,get:s(function(){return this.source.readable},"get")});ht.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};ht.prototype.resume=function(){this._released||this.release(),this.source.resume()};ht.prototype.pause=function(){this.source.pause()};ht.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};ht.prototype.pipe=function(){var e=C_.prototype.pipe.apply(this,arguments);return this.resume(),e};ht.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}e[0]==="data"&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)};ht.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}});var F_=S((mB,j_)=>{var Kw=require("util"),L_=require("stream").Stream,M_=U_();j_.exports=Ae;function Ae(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}s(Ae,"CombinedStream");Kw.inherits(Ae,L_);Ae.create=function(e){var t=new this;e=e||{};for(var n in e)t[n]=e[n];return t};Ae.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};Ae.prototype.append=function(e){var t=Ae.isStreamLike(e);if(t){if(!(e instanceof M_)){var n=M_.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=n}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this};Ae.prototype.pipe=function(e,t){return L_.prototype.pipe.call(this,e,t),this.resume(),e};Ae.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};Ae.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e>"u"){this.end();return}if(typeof e!="function"){this._pipeNext(e);return}var t=e;t(function(n){var o=Ae.isStreamLike(n);o&&(n.on("data",this._checkDataSize.bind(this)),this._handleErrors(n)),this._pipeNext(n)}.bind(this))};Ae.prototype._pipeNext=function(e){this._currentStream=e;var t=Ae.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var n=e;this.write(n),this._getNext()};Ae.prototype._handleErrors=function(e){var t=this;e.on("error",function(n){t._emitError(n)})};Ae.prototype.write=function(e){this.emit("data",e)};Ae.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};Ae.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};Ae.prototype.end=function(){this._reset(),this.emit("end")};Ae.prototype.destroy=function(){this._reset(),this.emit("close")};Ae.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};Ae.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};Ae.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};Ae.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var V_=S((hB,B_)=>{"use strict";B_.exports={"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dat"]},"application/msword":{source:"iana",extensions:["doc"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",extensions:["docx"]},"application/vnd.ms-excel":{source:"iana",extensions:["xls"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",extensions:["xlsx"]},"application/vnd.ms-powerpoint":{source:"iana",extensions:["ppt"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",extensions:["pptx"]},"application/csv":{compressible:!0,extensions:["csv"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"text/plain":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["txt","text","log"]},"text/html":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["html","htm"]},"text/css":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["css"]},"text/csv":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["csv"]},"text/markdown":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["md","markdown"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/webp":{source:"apache",compressible:!1,extensions:["webp"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tiff","tif"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/heic":{source:"iana",compressible:!1,extensions:["heic"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mp3","mpga"]},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/ogg":{source:"iana",compressible:!1,extensions:["ogg","oga"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","m4v"]},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg"]},"video/webm":{source:"iana",compressible:!1,extensions:["webm"]},"video/quicktime":{source:"iana",compressible:!1,extensions:["mov","qt"]},"video/x-msvideo":{source:"iana",compressible:!1,extensions:["avi"]},"font/woff":{source:"iana",compressible:!1,extensions:["woff"]},"font/woff2":{source:"iana",compressible:!1,extensions:["woff2"]},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"multipart/form-data":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/ics":{compressible:!0,extensions:["ics"]},"text/calendar":{source:"iana",compressible:!0,extensions:["ics","ifb"]},"application/x-ndjson":{compressible:!0,extensions:["ndjson"]}}});var q_=S(Qe=>{"use strict";var Ru=V_(),Xw=require("path").extname,Z_=/^\s*([^;\s]*)(?:;|\s|$)/,Yw=/^text\//i;Qe.charset=H_;Qe.charsets={lookup:H_};Qe.contentType=Qw;Qe.extension=e$;Qe.extensions=Object.create(null);Qe.lookup=t$;Qe.types=Object.create(null);r$(Qe.extensions,Qe.types);function H_(e){if(!e||typeof e!="string")return!1;var t=Z_.exec(e),n=t&&Ru[t[1].toLowerCase()];return n&&n.charset?n.charset:t&&Yw.test(t[1])?"UTF-8":!1}s(H_,"charset");function Qw(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?Qe.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var n=Qe.charset(t);n&&(t+="; charset="+n.toLowerCase())}return t}s(Qw,"contentType");function e$(e){if(!e||typeof e!="string")return!1;var t=Z_.exec(e),n=t&&Qe.extensions[t[1].toLowerCase()];return!n||!n.length?!1:n[0]}s(e$,"extension");function t$(e){if(!e||typeof e!="string")return!1;var t=Xw("x."+e).toLowerCase().substr(1);return t&&Qe.types[t]||!1}s(t$,"lookup");function r$(e,t){var n=["nginx","apache",void 0,"iana"];Object.keys(Ru).forEach(s(function(r){var i=Ru[r],a=i.extensions;if(!(!a||!a.length)){e[r]=a;for(var u=0;u<a.length;u++){var c=a[u];if(t[c]){var l=n.indexOf(Ru[t[c]].source),d=n.indexOf(i.source);if(t[c]!=="application/octet-stream"&&(l>d||l===d&&t[c].substr(0,12)==="application/"))continue}t[c]=r}}},"forEachMimeType"))}s(r$,"populateMaps")});var W_=S((_B,G_)=>{G_.exports=n$;function n$(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}s(n$,"defer")});var $m=S((xB,K_)=>{var J_=W_();K_.exports=o$;function o$(e){var t=!1;return J_(function(){t=!0}),s(function(o,r){t?e(o,r):J_(s(function(){e(o,r)},"nextTick_callback"))},"async_callback")}s(o$,"async")});var Om=S((EB,X_)=>{X_.exports=i$;function i$(e){Object.keys(e.jobs).forEach(a$.bind(e)),e.jobs={}}s(i$,"abort");function a$(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}s(a$,"clean")});var Rm=S((IB,Q_)=>{var Y_=$m(),s$=Om();Q_.exports=u$;function u$(e,t,n,o){var r=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[r]=c$(t,r,e[r],function(i,a){r in n.jobs&&(delete n.jobs[r],i?s$(n):n.results[r]=a,o(i,n.results))})}s(u$,"iterate");function c$(e,t,n,o){var r;return e.length==2?r=e(n,Y_(o)):r=e(n,t,Y_(o)),r}s(c$,"runJob")});var zm=S((AB,eP)=>{eP.exports=l$;function l$(e,t){var n=!Array.isArray(e),o={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};return t&&o.keyedList.sort(n?t:function(r,i){return t(e[r],e[i])}),o}s(l$,"state")});var km=S(($B,tP)=>{var p$=Om(),d$=$m();tP.exports=f$;function f$(e){Object.keys(this.jobs).length&&(this.index=this.size,p$(this),d$(e)(null,this.results))}s(f$,"terminator")});var nP=S((RB,rP)=>{var m$=Rm(),g$=zm(),h$=km();rP.exports=y$;function y$(e,t,n){for(var o=g$(e);o.index<(o.keyedList||e).length;)m$(e,t,o,function(r,i){if(r){n(r,i);return}if(Object.keys(o.jobs).length===0){n(null,o.results);return}}),o.index++;return h$.bind(o,n)}s(y$,"parallel")});var Dm=S((kB,zu)=>{var oP=Rm(),v$=zm(),_$=km();zu.exports=P$;zu.exports.ascending=iP;zu.exports.descending=x$;function P$(e,t,n,o){var r=v$(e,n);return oP(e,t,r,s(function i(a,u){if(a){o(a,u);return}if(r.index++,r.index<(r.keyedList||e).length){oP(e,t,r,i);return}o(null,r.results)},"iteratorHandler")),_$.bind(r,o)}s(P$,"serialOrdered");function iP(e,t){return e<t?-1:e>t?1:0}s(iP,"ascending");function x$(e,t){return-1*iP(e,t)}s(x$,"descending")});var sP=S((CB,aP)=>{var b$=Dm();aP.exports=E$;function E$(e,t,n){return b$(e,t,null,n)}s(E$,"serial")});var cP=S((UB,uP)=>{uP.exports={parallel:nP(),serial:sP(),serialOrdered:Dm()}});var Cm=S((MB,lP)=>{"use strict";lP.exports=Object});var dP=S((LB,pP)=>{"use strict";pP.exports=Error});var mP=S((jB,fP)=>{"use strict";fP.exports=EvalError});var hP=S((FB,gP)=>{"use strict";gP.exports=RangeError});var vP=S((BB,yP)=>{"use strict";yP.exports=ReferenceError});var PP=S((VB,_P)=>{"use strict";_P.exports=SyntaxError});var ku=S((ZB,xP)=>{"use strict";xP.exports=TypeError});var EP=S((HB,bP)=>{"use strict";bP.exports=URIError});var IP=S((qB,TP)=>{"use strict";TP.exports=Math.abs});var AP=S((GB,SP)=>{"use strict";SP.exports=Math.floor});var $P=S((WB,wP)=>{"use strict";wP.exports=Math.max});var RP=S((JB,OP)=>{"use strict";OP.exports=Math.min});var kP=S((KB,zP)=>{"use strict";zP.exports=Math.pow});var CP=S((XB,DP)=>{"use strict";DP.exports=Math.round});var UP=S((YB,NP)=>{"use strict";NP.exports=Number.isNaN||s(function(t){return t!==t},"isNaN")});var LP=S((eV,MP)=>{"use strict";var T$=UP();MP.exports=s(function(t){return T$(t)||t===0?t:t<0?-1:1},"sign")});var FP=S((rV,jP)=>{"use strict";jP.exports=Object.getOwnPropertyDescriptor});var Nm=S((nV,BP)=>{"use strict";var Du=FP();if(Du)try{Du([],"length")}catch{Du=null}BP.exports=Du});var ZP=S((oV,VP)=>{"use strict";var Cu=Object.defineProperty||!1;if(Cu)try{Cu({},"a",{value:1})}catch{Cu=!1}VP.exports=Cu});var Um=S((iV,HP)=>{"use strict";HP.exports=s(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var r=42;t[n]=r;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,n);if(u.value!==r||u.enumerable!==!0)return!1}return!0},"hasSymbols")});var WP=S((sV,GP)=>{"use strict";var qP=typeof Symbol<"u"&&Symbol,I$=Um();GP.exports=s(function(){return typeof qP!="function"||typeof Symbol!="function"||typeof qP("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:I$()},"hasNativeSymbols")});var Mm=S((cV,JP)=>{"use strict";JP.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Lm=S((lV,KP)=>{"use strict";var S$=Cm();KP.exports=S$.getPrototypeOf||null});var QP=S((pV,YP)=>{"use strict";var A$="Function.prototype.bind called on incompatible ",w$=Object.prototype.toString,$$=Math.max,O$="[object Function]",XP=s(function(t,n){for(var o=[],r=0;r<t.length;r+=1)o[r]=t[r];for(var i=0;i<n.length;i+=1)o[i+t.length]=n[i];return o},"concatty"),R$=s(function(t,n){for(var o=[],r=n||0,i=0;r<t.length;r+=1,i+=1)o[i]=t[r];return o},"slicy"),z$=s(function(e,t){for(var n="",o=0;o<e.length;o+=1)n+=e[o],o+1<e.length&&(n+=t);return n},"joiny");YP.exports=s(function(t){var n=this;if(typeof n!="function"||w$.apply(n)!==O$)throw new TypeError(A$+n);for(var o=R$(arguments,1),r,i=s(function(){if(this instanceof r){var d=n.apply(this,XP(o,arguments));return Object(d)===d?d:this}return n.apply(t,XP(o,arguments))},"binder"),a=$$(0,n.length-o.length),u=[],c=0;c<a;c++)u[c]="$"+c;if(r=Function("binder","return function ("+z$(u,",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var l=s(function(){},"Empty");l.prototype=n.prototype,r.prototype=new l,l.prototype=null}return r},"bind")});var ln=S((fV,ex)=>{"use strict";var k$=QP();ex.exports=Function.prototype.bind||k$});var Nu=S((mV,tx)=>{"use strict";tx.exports=Function.prototype.call});var jm=S((gV,rx)=>{"use strict";rx.exports=Function.prototype.apply});var ox=S((hV,nx)=>{"use strict";nx.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var ax=S((yV,ix)=>{"use strict";var D$=ln(),C$=jm(),N$=Nu(),U$=ox();ix.exports=U$||D$.call(N$,C$)});var ux=S((vV,sx)=>{"use strict";var M$=ln(),L$=ku(),j$=Nu(),F$=ax();sx.exports=s(function(t){if(t.length<1||typeof t[0]!="function")throw new L$("a function is required");return F$(M$,j$,t)},"callBindBasic")});var mx=S((PV,fx)=>{"use strict";var B$=ux(),cx=Nm(),px;try{px=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Fm=!!px&&cx&&cx(Object.prototype,"__proto__"),dx=Object,lx=dx.getPrototypeOf;fx.exports=Fm&&typeof Fm.get=="function"?B$([Fm.get]):typeof lx=="function"?s(function(t){return lx(t==null?t:dx(t))},"getDunder"):!1});var _x=S((bV,vx)=>{"use strict";var gx=Mm(),hx=Lm(),yx=mx();vx.exports=gx?s(function(t){return gx(t)},"getProto"):hx?s(function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return hx(t)},"getProto"):yx?s(function(t){return yx(t)},"getProto"):null});var Bm=S((TV,Px)=>{"use strict";var V$=Function.prototype.call,Z$=Object.prototype.hasOwnProperty,H$=ln();Px.exports=H$.call(V$,Z$)});var Ax=S((IV,Sx)=>{"use strict";var ne,q$=Cm(),G$=dP(),W$=mP(),J$=hP(),K$=vP(),mn=PP(),fn=ku(),X$=EP(),Y$=IP(),Q$=AP(),eO=$P(),tO=RP(),rO=kP(),nO=CP(),oO=LP(),Tx=Function,Vm=s(function(e){try{return Tx('"use strict"; return ('+e+").constructor;")()}catch{}},"getEvalledConstructor"),Ri=Nm(),iO=ZP(),Zm=s(function(){throw new fn},"throwTypeError"),aO=Ri?(function(){try{return arguments.callee,Zm}catch{try{return Ri(arguments,"callee").get}catch{return Zm}}})():Zm,pn=WP()(),Ue=_x(),sO=Lm(),uO=Mm(),Ix=jm(),zi=Nu(),dn={},cO=typeof Uint8Array>"u"||!Ue?ne:Ue(Uint8Array),Tr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ne:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ne:ArrayBuffer,"%ArrayIteratorPrototype%":pn&&Ue?Ue([][Symbol.iterator]()):ne,"%AsyncFromSyncIteratorPrototype%":ne,"%AsyncFunction%":dn,"%AsyncGenerator%":dn,"%AsyncGeneratorFunction%":dn,"%AsyncIteratorPrototype%":dn,"%Atomics%":typeof Atomics>"u"?ne:Atomics,"%BigInt%":typeof BigInt>"u"?ne:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ne:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ne:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ne:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":G$,"%eval%":eval,"%EvalError%":W$,"%Float16Array%":typeof Float16Array>"u"?ne:Float16Array,"%Float32Array%":typeof Float32Array>"u"?ne:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ne:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ne:FinalizationRegistry,"%Function%":Tx,"%GeneratorFunction%":dn,"%Int8Array%":typeof Int8Array>"u"?ne:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ne:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ne:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":pn&&Ue?Ue(Ue([][Symbol.iterator]())):ne,"%JSON%":typeof JSON=="object"?JSON:ne,"%Map%":typeof Map>"u"?ne:Map,"%MapIteratorPrototype%":typeof Map>"u"||!pn||!Ue?ne:Ue(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":q$,"%Object.getOwnPropertyDescriptor%":Ri,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ne:Promise,"%Proxy%":typeof Proxy>"u"?ne:Proxy,"%RangeError%":J$,"%ReferenceError%":K$,"%Reflect%":typeof Reflect>"u"?ne:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ne:Set,"%SetIteratorPrototype%":typeof Set>"u"||!pn||!Ue?ne:Ue(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ne:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":pn&&Ue?Ue(""[Symbol.iterator]()):ne,"%Symbol%":pn?Symbol:ne,"%SyntaxError%":mn,"%ThrowTypeError%":aO,"%TypedArray%":cO,"%TypeError%":fn,"%Uint8Array%":typeof Uint8Array>"u"?ne:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ne:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ne:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ne:Uint32Array,"%URIError%":X$,"%WeakMap%":typeof WeakMap>"u"?ne:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ne:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ne:WeakSet,"%Function.prototype.call%":zi,"%Function.prototype.apply%":Ix,"%Object.defineProperty%":iO,"%Object.getPrototypeOf%":sO,"%Math.abs%":Y$,"%Math.floor%":Q$,"%Math.max%":eO,"%Math.min%":tO,"%Math.pow%":rO,"%Math.round%":nO,"%Math.sign%":oO,"%Reflect.getPrototypeOf%":uO};if(Ue)try{null.error}catch(e){xx=Ue(Ue(e)),Tr["%Error.prototype%"]=xx}var xx,lO=s(function e(t){var n;if(t==="%AsyncFunction%")n=Vm("async function () {}");else if(t==="%GeneratorFunction%")n=Vm("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=Vm("async function* () {}");else if(t==="%AsyncGenerator%"){var o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if(t==="%AsyncIteratorPrototype%"){var r=e("%AsyncGenerator%");r&&Ue&&(n=Ue(r.prototype))}return Tr[t]=n,n},"doEval"),bx={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ki=ln(),Uu=Bm(),pO=ki.call(zi,Array.prototype.concat),dO=ki.call(Ix,Array.prototype.splice),Ex=ki.call(zi,String.prototype.replace),Mu=ki.call(zi,String.prototype.slice),fO=ki.call(zi,RegExp.prototype.exec),mO=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,gO=/\\(\\)?/g,hO=s(function(t){var n=Mu(t,0,1),o=Mu(t,-1);if(n==="%"&&o!=="%")throw new mn("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&n!=="%")throw new mn("invalid intrinsic syntax, expected opening `%`");var r=[];return Ex(t,mO,function(i,a,u,c){r[r.length]=u?Ex(c,gO,"$1"):a||i}),r},"stringToPath"),yO=s(function(t,n){var o=t,r;if(Uu(bx,o)&&(r=bx[o],o="%"+r[0]+"%"),Uu(Tr,o)){var i=Tr[o];if(i===dn&&(i=lO(o)),typeof i>"u"&&!n)throw new fn("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:i}}throw new mn("intrinsic "+t+" does not exist!")},"getBaseIntrinsic");Sx.exports=s(function(t,n){if(typeof t!="string"||t.length===0)throw new fn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new fn('"allowMissing" argument must be a boolean');if(fO(/^%?[^%]*%?$/,t)===null)throw new mn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=hO(t),r=o.length>0?o[0]:"",i=yO("%"+r+"%",n),a=i.name,u=i.value,c=!1,l=i.alias;l&&(r=l[0],dO(o,pO([0,1],l)));for(var d=1,h=!0;d<o.length;d+=1){var m=o[d],p=Mu(m,0,1),g=Mu(m,-1);if((p==='"'||p==="'"||p==="`"||g==='"'||g==="'"||g==="`")&&p!==g)throw new mn("property names with quotes must have matching quotes");if((m==="constructor"||!h)&&(c=!0),r+="."+m,a="%"+r+"%",Uu(Tr,a))u=Tr[a];else if(u!=null){if(!(m in u)){if(!n)throw new fn("base intrinsic for "+t+" exists, but the property is not available.");return}if(Ri&&d+1>=o.length){var _=Ri(u,m);h=!!_,h&&"get"in _&&!("originalValue"in _.get)?u=_.get:u=u[m]}else h=Uu(u,m),u=u[m];h&&!c&&(Tr[a]=u)}}return u},"GetIntrinsic")});var $x=S((AV,wx)=>{"use strict";var vO=Um();wx.exports=s(function(){return vO()&&!!Symbol.toStringTag},"hasToStringTagShams")});var zx=S(($V,Rx)=>{"use strict";var _O=Ax(),Ox=_O("%Object.defineProperty%",!0),PO=$x()(),xO=Bm(),bO=ku(),Lu=PO?Symbol.toStringTag:null;Rx.exports=s(function(t,n){var o=arguments.length>2&&!!arguments[2]&&arguments[2].force,r=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof o<"u"&&typeof o!="boolean"||typeof r<"u"&&typeof r!="boolean")throw new bO("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Lu&&(o||!xO(t,Lu))&&(Ox?Ox(t,Lu,{configurable:!r,enumerable:!1,value:n,writable:!1}):t[Lu]=n)},"setToStringTag")});var Dx=S((RV,kx)=>{"use strict";var EO=Function.prototype.call,TO=Object.prototype.hasOwnProperty,IO=ln();kx.exports=IO.call(EO,TO)});var Nx=S((zV,Cx)=>{"use strict";Cx.exports=function(e,t){return Object.keys(t).forEach(function(n){e[n]=e[n]||t[n]}),e}});var Lx=S((kV,Mx)=>{"use strict";var Wm=F_(),SO=require("util"),Hm=require("path"),AO=require("http"),wO=require("https"),$O=require("url").parse,OO=require("fs"),RO=require("stream").Stream,zO=require("crypto"),qm=q_(),kO=cP(),DO=zx(),Jt=Dx(),Gm=Nx();function Ux(e){return String(e).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}s(Ux,"escapeHeaderParam");function ue(e){if(!(this instanceof ue))return new ue(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Wm.call(this),e=e||{};for(var t in e)this[t]=e[t]}s(ue,"FormData");SO.inherits(ue,Wm);ue.LINE_BREAK=`\r
|
|
2
|
+
`;ue.DEFAULT_CONTENT_TYPE="application/octet-stream";ue.prototype.append=function(e,t,n){n=n||{},typeof n=="string"&&(n={filename:n});var o=Wm.prototype.append.bind(this);if((typeof t=="number"||t==null)&&(t=String(t)),Array.isArray(t)){this._error(new Error("Arrays are not supported."));return}var r=this._multiPartHeader(e,t,n),i=this._multiPartFooter();o(r),o(t),o(i),this._trackLength(r,t,n)};ue.prototype._trackLength=function(e,t,n){var o=0;n.knownLength!=null?o+=Number(n.knownLength):Buffer.isBuffer(t)?o=t.length:typeof t=="string"&&(o=Buffer.byteLength(t)),this._valueLength+=o,this._overheadLength+=Buffer.byteLength(e)+ue.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&Jt(t,"httpVersion"))&&!(t instanceof RO))&&(n.knownLength||this._valuesToMeasure.push(t))};ue.prototype._lengthRetriever=function(e,t){Jt(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):OO.stat(e.path,function(n,o){if(n){t(n);return}var r=o.size-(e.start?e.start:0);t(null,r)}):Jt(e,"httpVersion")?t(null,Number(e.headers["content-length"])):Jt(e,"httpModule")?(e.on("response",function(n){e.pause(),t(null,Number(n.headers["content-length"]))}),e.resume()):t("Unknown stream")};ue.prototype._multiPartHeader=function(e,t,n){if(typeof n.header=="string")return n.header;var o=this._getContentDisposition(t,n),r=this._getContentType(t,n),i="",a={"Content-Disposition":["form-data",'name="'+Ux(e)+'"'].concat(o||[]),"Content-Type":[].concat(r||[])};typeof n.header=="object"&&Gm(a,n.header);var u;for(var c in a)if(Jt(a,c)){if(u=a[c],u==null)continue;Array.isArray(u)||(u=[u]),u.length&&(i+=c+": "+u.join("; ")+ue.LINE_BREAK)}return"--"+this.getBoundary()+ue.LINE_BREAK+i+ue.LINE_BREAK};ue.prototype._getContentDisposition=function(e,t){var n;if(typeof t.filepath=="string"?n=Hm.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?n=Hm.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&Jt(e,"httpVersion")&&(n=Hm.basename(e.client._httpMessage.path||"")),n)return'filename="'+Ux(n)+'"'};ue.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e&&e.name&&(n=qm.lookup(e.name)),!n&&e&&e.path&&(n=qm.lookup(e.path)),!n&&e&&e.readable&&Jt(e,"httpVersion")&&(n=e.headers["content-type"]),!n&&(t.filepath||t.filename)&&(n=qm.lookup(t.filepath||t.filename)),!n&&e&&typeof e=="object"&&(n=ue.DEFAULT_CONTENT_TYPE),n};ue.prototype._multiPartFooter=function(){return function(e){var t=ue.LINE_BREAK,n=this._streams.length===0;n&&(t+=this._lastBoundary()),e(t)}.bind(this)};ue.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+ue.LINE_BREAK};ue.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)Jt(e,t)&&(n[t.toLowerCase()]=e[t]);return n};ue.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};ue.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};ue.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,o=this._streams.length;n<o;n++)typeof this._streams[n]!="function"&&(Buffer.isBuffer(this._streams[n])?e=Buffer.concat([e,this._streams[n]]):e=Buffer.concat([e,Buffer.from(this._streams[n])]),(typeof this._streams[n]!="string"||this._streams[n].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(ue.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};ue.prototype._generateBoundary=function(){this._boundary="--------------------------"+zO.randomBytes(12).toString("hex")};ue.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e};ue.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};ue.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}kO.parallel(this._valuesToMeasure,this._lengthRetriever,function(n,o){if(n){e(n);return}o.forEach(function(r){t+=r}),e(null,t)})};ue.prototype.submit=function(e,t){var n,o,r={method:"post"};return typeof e=="string"?(e=$O(e),o=Gm({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},r)):(o=Gm(e,r),o.port||(o.port=o.protocol==="https:"?443:80)),o.headers=this.getHeaders(e.headers),o.protocol==="https:"?n=wO.request(o):n=AO.request(o),this.getLength(function(i,a){if(i&&i!=="Unknown stream"){this._error(i);return}if(a&&n.setHeader("Content-Length",a),this.pipe(n),t){var u,c=s(function(l,d){return n.removeListener("error",c),n.removeListener("response",u),t.call(this,l,d)},"callback");u=c.bind(this,null),n.on("error",c),n.on("response",u)}}.bind(this)),n};ue.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};ue.prototype.toString=function(){return"[object FormData]"};DO(ue.prototype,"FormData");Mx.exports=ue});var Te={};tt(Te,{__addDisposableResource:()=>pb,__assign:()=>ju,__asyncDelegator:()=>nb,__asyncGenerator:()=>rb,__asyncValues:()=>ob,__await:()=>gn,__awaiter:()=>Kx,__classPrivateFieldGet:()=>ub,__classPrivateFieldIn:()=>lb,__classPrivateFieldSet:()=>cb,__createBinding:()=>Bu,__decorate:()=>Gx,__disposeResources:()=>db,__esDecorate:()=>GO,__exportStar:()=>Yx,__extends:()=>Hx,__generator:()=>Xx,__importDefault:()=>sb,__importStar:()=>ab,__makeTemplateObject:()=>ib,__metadata:()=>Jx,__param:()=>Wx,__propKey:()=>JO,__read:()=>Xm,__rest:()=>qx,__runInitializers:()=>WO,__setFunctionName:()=>KO,__spread:()=>Qx,__spreadArray:()=>tb,__spreadArrays:()=>eb,__values:()=>Fu,default:()=>QO});function Hx(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Km(e,t);function n(){this.constructor=e}s(n,"__"),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function qx(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function Gx(e,t,n,o){var r=arguments.length,i=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,n):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,o);else for(var u=e.length-1;u>=0;u--)(a=e[u])&&(i=(r<3?a(i):r>3?a(t,n,i):a(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i}function Wx(e,t){return function(n,o){t(n,o,e)}}function GO(e,t,n,o,r,i){function a(E){if(E!==void 0&&typeof E!="function")throw new TypeError("Function expected");return E}s(a,"accept");for(var u=o.kind,c=u==="getter"?"get":u==="setter"?"set":"value",l=!t&&e?o.static?e:e.prototype:null,d=t||(l?Object.getOwnPropertyDescriptor(l,o.name):{}),h,m=!1,p=n.length-1;p>=0;p--){var g={};for(var _ in o)g[_]=_==="access"?{}:o[_];for(var _ in o.access)g.access[_]=o.access[_];g.addInitializer=function(E){if(m)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(E||null))};var b=(0,n[p])(u==="accessor"?{get:d.get,set:d.set}:d[c],g);if(u==="accessor"){if(b===void 0)continue;if(b===null||typeof b!="object")throw new TypeError("Object expected");(h=a(b.get))&&(d.get=h),(h=a(b.set))&&(d.set=h),(h=a(b.init))&&r.unshift(h)}else(h=a(b))&&(u==="field"?r.unshift(h):d[c]=h)}l&&Object.defineProperty(l,o.name,d),m=!0}function WO(e,t,n){for(var o=arguments.length>2,r=0;r<t.length;r++)n=o?t[r].call(e,n):t[r].call(e);return o?n:void 0}function JO(e){return typeof e=="symbol"?e:"".concat(e)}function KO(e,t,n){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function Jx(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Kx(e,t,n,o){function r(i){return i instanceof n?i:new n(function(a){a(i)})}return s(r,"adopt"),new(n||(n=Promise))(function(i,a){function u(d){try{l(o.next(d))}catch(h){a(h)}}s(u,"fulfilled");function c(d){try{l(o.throw(d))}catch(h){a(h)}}s(c,"rejected");function l(d){d.done?i(d.value):r(d.value).then(u,c)}s(l,"step"),l((o=o.apply(e,t||[])).next())})}function Xx(e,t){var n={label:0,sent:s(function(){if(i[0]&1)throw i[1];return i[1]},"sent"),trys:[],ops:[]},o,r,i,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(l){return function(d){return c([l,d])}}function c(l){if(o)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(n=0)),n;)try{if(o=1,r&&(i=l[0]&2?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,r=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){n.label=l[1];break}if(l[0]===6&&n.label<i[1]){n.label=i[1],i=l;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(l);break}i[2]&&n.ops.pop(),n.trys.pop();continue}l=t.call(e,n)}catch(d){l=[6,d],r=0}finally{o=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Yx(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Bu(t,e,n)}function Fu(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:s(function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}},"next")};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Xm(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),r,i=[],a;try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(u){a={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i}function Qx(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Xm(arguments[t]));return e}function eb(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var o=Array(e),r=0,t=0;t<n;t++)for(var i=arguments[t],a=0,u=i.length;a<u;a++,r++)o[r]=i[a];return o}function tb(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,i;o<r;o++)(i||!(o in t))&&(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}function gn(e){return this instanceof gn?(this.v=e,this):new gn(e)}function rb(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=n.apply(e,t||[]),r,i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(m){o[m]&&(r[m]=function(p){return new Promise(function(g,_){i.push([m,p,g,_])>1||u(m,p)})})}function u(m,p){try{c(o[m](p))}catch(g){h(i[0][3],g)}}function c(m){m.value instanceof gn?Promise.resolve(m.value.v).then(l,d):h(i[0][2],m)}function l(m){u("next",m)}function d(m){u("throw",m)}function h(m,p){m(p),i.shift(),i.length&&u(i[0][0],i[0][1])}}function nb(e){var t,n;return t={},o("next"),o("throw",function(r){throw r}),o("return"),t[Symbol.iterator]=function(){return this},t;function o(r,i){t[r]=e[r]?function(a){return(n=!n)?{value:gn(e[r](a)),done:!1}:i?i(a):a}:i}}function ob(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Fu=="function"?Fu(e):e[Symbol.iterator](),n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n);function o(i){n[i]=e[i]&&function(a){return new Promise(function(u,c){a=e[i](a),r(u,c,a.done,a.value)})}}function r(i,a,u,c){Promise.resolve(c).then(function(l){i({value:l,done:u})},a)}}function ib(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function ab(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Bu(t,e,n);return XO(t,e),t}function sb(e){return e&&e.__esModule?e:{default:e}}function ub(e,t,n,o){if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?o:n==="a"?o.call(e):o?o.value:t.get(e)}function cb(e,t,n,o,r){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?r.call(e,n):r?r.value=n:t.set(e,n),n}function lb(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function pb(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");o=t[Symbol.asyncDispose]}if(o===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");o=t[Symbol.dispose]}if(typeof o!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:o,async:n})}else n&&e.stack.push({async:!0});return t}function db(e){function t(o){e.error=e.hasError?new YO(o,e.error,"An error was suppressed during disposal."):o,e.hasError=!0}s(t,"fail");function n(){for(;e.stack.length;){var o=e.stack.pop();try{var r=o.dispose&&o.dispose.call(o.value);if(o.async)return Promise.resolve(r).then(n,function(i){return t(i),n()})}catch(i){t(i)}}if(e.hasError)throw e.error}return s(n,"next"),n()}var Km,ju,Bu,XO,YO,QO,Ie=JE(()=>{Km=s(function(e,t){return Km=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},Km(e,t)},"extendStatics");s(Hx,"__extends");ju=s(function(){return ju=Object.assign||s(function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},"__assign"),ju.apply(this,arguments)},"__assign");s(qx,"__rest");s(Gx,"__decorate");s(Wx,"__param");s(GO,"__esDecorate");s(WO,"__runInitializers");s(JO,"__propKey");s(KO,"__setFunctionName");s(Jx,"__metadata");s(Kx,"__awaiter");s(Xx,"__generator");Bu=Object.create?(function(e,t,n,o){o===void 0&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:s(function(){return t[n]},"get")}),Object.defineProperty(e,o,r)}):(function(e,t,n,o){o===void 0&&(o=n),e[o]=t[n]});s(Yx,"__exportStar");s(Fu,"__values");s(Xm,"__read");s(Qx,"__spread");s(eb,"__spreadArrays");s(tb,"__spreadArray");s(gn,"__await");s(rb,"__asyncGenerator");s(nb,"__asyncDelegator");s(ob,"__asyncValues");s(ib,"__makeTemplateObject");XO=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t};s(ab,"__importStar");s(sb,"__importDefault");s(ub,"__classPrivateFieldGet");s(cb,"__classPrivateFieldSet");s(lb,"__classPrivateFieldIn");s(pb,"__addDisposableResource");YO=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var o=new Error(n);return o.name="SuppressedError",o.error=e,o.suppressed=t,o};s(db,"__disposeResources");QO={__extends:Hx,__assign:ju,__rest:qx,__decorate:Gx,__param:Wx,__metadata:Jx,__awaiter:Kx,__generator:Xx,__createBinding:Bu,__exportStar:Yx,__values:Fu,__read:Xm,__spread:Qx,__spreadArrays:eb,__spreadArray:tb,__await:gn,__asyncGenerator:rb,__asyncDelegator:nb,__asyncValues:ob,__makeTemplateObject:ib,__importStar:ab,__importDefault:sb,__classPrivateFieldGet:ub,__classPrivateFieldSet:cb,__classPrivateFieldIn:lb,__addDisposableResource:pb,__disposeResources:db}});var Ci=S(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.RequestMethod=void 0;var fb;(function(e){e.GET="GET",e.PATCH="PATCH",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"})(fb||(Vu.RequestMethod=fb={}))});var mb=S(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.BatchRequestContent=void 0;var hn=(Ie(),Pe(Te)),Ym=Ci(),eR=(function(){function e(t){if(this.requests=new Map,typeof t<"u"){var n=e.requestLimit;if(t.length>n){var o=new Error("Maximum requests limit exceeded, Max allowed number of requests are ".concat(n));throw o.name="Limit Exceeded Error",o}for(var r=0,i=t;r<i.length;r++){var a=i[r];this.addRequest(a)}}}return s(e,"BatchRequestContent"),e.validateDependencies=function(t){var n=s(function(a){for(var u=a.entries(),c=u.next();!c.done;){var l=c.value[1];if(l.dependsOn!==void 0&&l.dependsOn.length>0)return!1;c=u.next()}return!0},"isParallel"),o=s(function(a){var u=a.entries(),c=u.next(),l=c.value[1];if(l.dependsOn!==void 0&&l.dependsOn.length>0)return!1;var d=c;for(c=u.next();!c.done;){var h=c.value[1];if(h.dependsOn===void 0||h.dependsOn.length!==1||h.dependsOn[0]!==d.value[1].id)return!1;d=c,c=u.next()}return!0},"isSerial"),r=s(function(a){var u=a.entries(),c=u.next(),l=c.value[1],d;if(l.dependsOn===void 0||l.dependsOn.length===0)d=l.id;else if(l.dependsOn.length===1){var h=l.dependsOn[0];if(h!==l.id&&a.has(h))d=h;else return!1}else return!1;for(c=u.next();!c.done;){var m=c.value[1];if((m.dependsOn===void 0||m.dependsOn.length===0)&&d!==m.id||m.dependsOn!==void 0&&m.dependsOn.length!==0&&(m.dependsOn.length===1&&(m.id===d||m.dependsOn[0]!==d)||m.dependsOn.length>1))return!1;c=u.next()}return!0},"isSame");if(t.size===0){var i=new Error("Empty requests map, Please provide at least one request.");throw i.name="Empty Requests Error",i}return n(t)||o(t)||r(t)},e.getRequestData=function(t){return hn.__awaiter(this,void 0,void 0,function(){var n,o,r,i;return hn.__generator(this,function(a){switch(a.label){case 0:return n={url:""},o=new RegExp("^https?://"),n.url=o.test(t.url)?"/"+t.url.split(/.*?\/\/.*?\//)[1]:t.url,n.method=t.method,r={},t.headers.forEach(function(u,c){r[c]=u}),Object.keys(r).length&&(n.headers=r),t.method===Ym.RequestMethod.PATCH||t.method===Ym.RequestMethod.POST||t.method===Ym.RequestMethod.PUT?(i=n,[4,e.getRequestBody(t)]):[3,2];case 1:i.body=a.sent(),a.label=2;case 2:return[2,n]}})})},e.getRequestBody=function(t){return hn.__awaiter(this,void 0,void 0,function(){var n,o,r,i,a,u,c,l;return hn.__generator(this,function(d){switch(d.label){case 0:n=!1,d.label=1;case 1:return d.trys.push([1,3,,4]),r=t.clone(),[4,r.json()];case 2:return o=d.sent(),n=!0,[3,4];case 3:return i=d.sent(),[3,4];case 4:if(n)return[3,12];d.label=5;case 5:return d.trys.push([5,11,,12]),typeof Blob<"u"?[4,t.blob()]:[3,8];case 6:return a=d.sent(),u=new FileReader,[4,new Promise(function(h){u.addEventListener("load",function(){var m=u.result,p=new RegExp("^s*data:(.+?/.+?(;.+?=.+?)*)?(;base64)?,(.*)s*$"),g=p.exec(m);h(g[4])},!1),u.readAsDataURL(a)})];case 7:return o=d.sent(),[3,10];case 8:return typeof Buffer<"u"?[4,t.buffer()]:[3,10];case 9:c=d.sent(),o=c.toString("base64"),d.label=10;case 10:return n=!0,[3,12];case 11:return l=d.sent(),[3,12];case 12:return[2,o]}})})},e.prototype.addRequest=function(t){var n=e.requestLimit;if(t.id===""){var o=new Error("Id for a request is empty, Please provide an unique id");throw o.name="Empty Id For Request",o}if(this.requests.size===n){var o=new Error("Maximum requests limit exceeded, Max allowed number of requests are ".concat(n));throw o.name="Limit Exceeded Error",o}if(this.requests.has(t.id)){var o=new Error("Adding request with duplicate id ".concat(t.id,", Make the id of the requests unique"));throw o.name="Duplicate RequestId Error",o}return this.requests.set(t.id,t),t.id},e.prototype.removeRequest=function(t){for(var n=this.requests.delete(t),o=this.requests.entries(),r=o.next();!r.done;){var i=r.value[1].dependsOn;if(typeof i<"u"){var a=i.indexOf(t);a!==-1&&i.splice(a,1),i.length===0&&delete r.value[1].dependsOn}r=o.next()}return n},e.prototype.getContent=function(){return hn.__awaiter(this,void 0,void 0,function(){var t,n,o,r,u,u,i,a,u;return hn.__generator(this,function(c){switch(c.label){case 0:if(t=[],n={requests:t},o=this.requests.entries(),r=o.next(),r.done)throw u=new Error("No requests added yet, Please add at least one request."),u.name="Empty Payload",u;if(!e.validateDependencies(this.requests))throw u=new Error(`Invalid dependency found, Dependency should be:
|
|
3
3
|
1. Parallel - no individual request states a dependency in the dependsOn property.
|
|
4
4
|
2. Serial - all individual requests depend on the previous individual request.
|
|
5
|
-
3. Same - all individual requests that state a dependency in the dependsOn property, state the same dependency.`),u.name="Invalid Dependency",u;c.label=1;case 1:return r.done?[3,3]:(i=r.value[1],[4,e.getRequestData(i.request)]);case 2:if(a=c.sent(),a.body!==void 0&&(a.headers===void 0||a.headers["content-type"]===void 0))throw u=new Error("Content-type header is not mentioned for request #".concat(i.id,", For request having body, Content-type header should be mentioned")),u.name="Invalid Content-type header",u;return a.id=i.id,i.dependsOn!==void 0&&i.dependsOn.length>0&&(a.dependsOn=i.dependsOn),t.push(a),r=o.next(),[3,1];case 3:return n.requests=t,[2,n]}})})},e.prototype.addDependency=function(t,n){if(!this.requests.has(t)){var o=new Error("Dependent ".concat(t," does not exists, Please check the id"));throw o.name="Invalid Dependent",o}if(typeof n<"u"&&!this.requests.has(n)){var o=new Error("Dependency ".concat(n," does not exists, Please check the id"));throw o.name="Invalid Dependency",o}if(typeof n<"u"){var r=this.requests.get(t);if(r.dependsOn===void 0&&(r.dependsOn=[]),r.dependsOn.indexOf(n)!==-1){var o=new Error("Dependency ".concat(n," is already added for the request ").concat(t));throw o.name="Duplicate Dependency",o}r.dependsOn.push(n)}else{for(var i=this.requests.entries(),a=void 0,u=i.next();!u.done&&u.value[1].id!==t;)a=u,u=i.next();if(typeof a<"u"){var c=a.value[0];if(u.value[1].dependsOn===void 0&&(u.value[1].dependsOn=[]),u.value[1].dependsOn.indexOf(c)!==-1){var o=new Error("Dependency ".concat(c," is already added for the request ").concat(t));throw o.name="Duplicate Dependency",o}u.value[1].dependsOn.push(c)}else{var o=new Error("Can't add dependency ".concat(n,", There is only a dependent request in the batch"));throw o.name="Invalid Dependency Addition",o}}},e.prototype.removeDependency=function(t,n){var o=this.requests.get(t);if(typeof o>"u"||o.dependsOn===void 0||o.dependsOn.length===0)return!1;if(typeof n<"u"){var r=o.dependsOn.indexOf(n);return r===-1?!1:(o.dependsOn.splice(r,1),!0)}else return delete o.dependsOn,!0},e.requestLimit=20,e})();Vu.BatchRequestContent=LO});var lb=S(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.BatchResponseContent=void 0;var jO=(Ie(),Pe(Te)),FO=(function(){function e(t){this.responses=new Map,this.update(t)}return s(e,"BatchResponseContent"),e.prototype.createResponseObject=function(t){var n=t.body,o={};if(o.status=t.status,t.statusText!==void 0&&(o.statusText=t.statusText),o.headers=t.headers,o.headers!==void 0&&o.headers["Content-Type"]!==void 0&&o.headers["Content-Type"].split(";")[0]==="application/json"){var r=JSON.stringify(n);return new Response(r,o)}return new Response(n,o)},e.prototype.update=function(t){this.nextLink=t["@odata.nextLink"];for(var n=t.responses,o=0,r=n.length;o<r;o++)this.responses.set(n[o].id,this.createResponseObject(n[o]))},e.prototype.getResponseById=function(t){return this.responses.get(t)},e.prototype.getResponses=function(){return this.responses},e.prototype.getResponsesIterator=function(){var t,n;return jO.__generator(this,function(o){switch(o.label){case 0:t=this.responses.entries(),n=t.next(),o.label=1;case 1:return n.done?[3,3]:[4,n.value];case 2:return o.sent(),n=t.next(),[3,1];case 3:return[2]}})},e})();Zu.BatchResponseContent=FO});var Jm=S(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.GRAPH_URLS=Xt.GRAPH_BASE_URL=Xt.GRAPH_API_VERSION=void 0;Xt.GRAPH_API_VERSION="v1.0";Xt.GRAPH_BASE_URL="https://graph.microsoft.com/";Xt.GRAPH_URLS=new Set(["graph.microsoft.com","graph.microsoft.us","dod-graph.microsoft.us","graph.microsoft.de","microsoftgraph.chinacloudapi.cn","canary.graph.microsoft.com"])});var wt=S(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.GraphClientError=void 0;var BO=(Ie(),Pe(Te)),VO=(function(e){BO.__extends(t,e);function t(n){var o=e.call(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return s(t,"GraphClientError"),t.setGraphClientError=function(n){var o;return n instanceof Error?o=n:(o=new t,o.customError=n),o},t})(Error);Hu.GraphClientError=VO});var qu=S(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.isCustomHost=lt.isGraphURL=lt.serializeContent=lt.urlJoin=lt.oDataQueryNames=void 0;var ZO=Jm(),HO=wt();lt.oDataQueryNames=["$select","$expand","$orderby","$filter","$top","$skip","$skipToken","$count"];var qO=s(function(e){var t=s(function(i){return i.replace(/\/+$/,"")},"removePostSlash"),n=s(function(i){return i.replace(/^\/+/,"")},"removePreSlash"),o=s(function(i,a){return[t(i),n(a)].join("/")},"joiner"),r=Array.prototype.slice.call(e);return r.reduce(o)},"urlJoin");lt.urlJoin=qO;var GO=s(function(e){var t=e&&e.constructor&&e.constructor.name;if(t==="Buffer"||t==="Blob"||t==="File"||t==="FormData"||typeof e=="string")return e;if(t==="ArrayBuffer")e=Buffer.from(e);else if(t==="Int8Array"||t==="Int16Array"||t==="Int32Array"||t==="Uint8Array"||t==="Uint16Array"||t==="Uint32Array"||t==="Uint8ClampedArray"||t==="Float32Array"||t==="Float64Array"||t==="DataView")e=Buffer.from(e.buffer);else try{e=JSON.stringify(e)}catch{throw new Error("Unable to stringify the content")}return e},"serializeContent");lt.serializeContent=GO;var WO=s(function(e){return pb(e)},"isGraphURL");lt.isGraphURL=WO;var JO=s(function(e,t){return t.forEach(function(n){return XO(n)}),pb(e,t)},"isCustomHost");lt.isCustomHost=JO;var pb=s(function(e,t){if(t===void 0&&(t=ZO.GRAPH_URLS),e=e.toLowerCase(),e.indexOf("https://")!==-1){e=e.replace("https://","");var n=e.indexOf(":"),o=e.indexOf("/"),r="";if(o!==-1)return n!==-1&&n<o?(r=e.substring(0,n),t.has(r)):(r=e.substring(0,o),t.has(r))}return!1},"isValidEndpoint"),XO=s(function(e){if(e.indexOf("/")!==-1)throw new HO.GraphClientError("Please add only hosts or hostnames to the CustomHosts config. If the url is `http://example.com:3000/`, host is `example:3000`")},"isCustomHostValid")});var Kt=S(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.MiddlewareControl=void 0;var KO=(function(){function e(t){t===void 0&&(t=[]),this.middlewareOptions=new Map;for(var n=0,o=t;n<o.length;n++){var r=o[n],i=r.constructor;this.middlewareOptions.set(i,r)}}return s(e,"MiddlewareControl"),e.prototype.getMiddlewareOptions=function(t){return this.middlewareOptions.get(t)},e.prototype.setMiddlewareOptions=function(t,n){this.middlewareOptions.set(t,n)},e})();Gu.MiddlewareControl=KO});var yn=S(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.cloneRequestWithNewUrl=pt.appendRequestHeader=pt.setRequestHeader=pt.getRequestHeader=pt.generateUUID=void 0;var db=(Ie(),Pe(Te)),YO=s(function(){for(var e="",t=0;t<32;t++)(t===8||t===12||t===16||t===20)&&(e+="-"),e+=Math.floor(Math.random()*16).toString(16);return e},"generateUUID");pt.generateUUID=YO;var QO=s(function(e,t,n){var o=null;if(typeof Request<"u"&&e instanceof Request)o=e.headers.get(n);else if(typeof t<"u"&&t.headers!==void 0)if(typeof Headers<"u"&&t.headers instanceof Headers)o=t.headers.get(n);else if(t.headers instanceof Array){for(var r=t.headers,i=0,a=r.length;i<a;i++)if(r[i][0]===n){o=r[i][1];break}}else t.headers[n]!==void 0&&(o=t.headers[n]);return o},"getRequestHeader");pt.getRequestHeader=QO;var eR=s(function(e,t,n,o){var r,i;if(typeof Request<"u"&&e instanceof Request)e.headers.set(n,o);else if(typeof t<"u")if(t.headers===void 0)t.headers=new Headers((r={},r[n]=o,r));else if(typeof Headers<"u"&&t.headers instanceof Headers)t.headers.set(n,o);else if(t.headers instanceof Array){for(var a=0,u=t.headers.length;a<u;a++){var c=t.headers[a];if(c[0]===n){c[1]=o;break}}a===u&&t.headers.push([n,o])}else Object.assign(t.headers,(i={},i[n]=o,i))},"setRequestHeader");pt.setRequestHeader=eR;var tR=s(function(e,t,n,o){var r,i;typeof Request<"u"&&e instanceof Request?e.headers.append(n,o):typeof t<"u"&&(t.headers===void 0?t.headers=new Headers((r={},r[n]=o,r)):typeof Headers<"u"&&t.headers instanceof Headers?t.headers.append(n,o):t.headers instanceof Array?t.headers.push([n,o]):t.headers===void 0?t.headers=(i={},i[n]=o,i):t.headers[n]===void 0?t.headers[n]=o:t.headers[n]+=", ".concat(o))},"appendRequestHeader");pt.appendRequestHeader=tR;var rR=s(function(e,t){return db.__awaiter(void 0,void 0,void 0,function(){var n,o,r,i,a,u,c,l,d,g,h,p,m;return db.__generator(this,function(_){switch(_.label){case 0:return t.headers.get("Content-Type")?[4,t.blob()]:[3,2];case 1:return o=_.sent(),[3,4];case 2:return[4,Promise.resolve(void 0)];case 3:o=_.sent(),_.label=4;case 4:return n=o,r=t.method,i=t.headers,a=t.referrer,u=t.referrerPolicy,c=t.mode,l=t.credentials,d=t.cache,g=t.redirect,h=t.integrity,p=t.keepalive,m=t.signal,[2,new Request(e,{method:r,headers:i,body:n,referrer:a,referrerPolicy:u,mode:c,credentials:l,cache:d,redirect:g,integrity:h,keepalive:p,signal:m})]}})})},"cloneRequestWithNewUrl");pt.cloneRequestWithNewUrl=rR});var Xm=S(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.AuthenticationHandlerOptions=void 0;var nR=(function(){function e(t,n){this.authenticationProvider=t,this.authenticationProviderOptions=n}return s(e,"AuthenticationHandlerOptions"),e})();Wu.AuthenticationHandlerOptions=nR});var _n=S(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.TelemetryHandlerOptions=vn.FeatureUsageFlag=void 0;var fb=Kt(),Km;(function(e){e[e.NONE=0]="NONE",e[e.REDIRECT_HANDLER_ENABLED=1]="REDIRECT_HANDLER_ENABLED",e[e.RETRY_HANDLER_ENABLED=2]="RETRY_HANDLER_ENABLED",e[e.AUTHENTICATION_HANDLER_ENABLED=4]="AUTHENTICATION_HANDLER_ENABLED"})(Km||(vn.FeatureUsageFlag=Km={}));var oR=(function(){function e(){this.featureUsage=Km.NONE}return s(e,"TelemetryHandlerOptions"),e.updateFeatureUsageFlag=function(t,n){var o;t.middlewareControl instanceof fb.MiddlewareControl?o=t.middlewareControl.getMiddlewareOptions(e):t.middlewareControl=new fb.MiddlewareControl,typeof o>"u"&&(o=new e,t.middlewareControl.setMiddlewareOptions(e,o)),o.setFeatureUsage(n)},e.prototype.setFeatureUsage=function(t){this.featureUsage=this.featureUsage|t},e.prototype.getFeatureUsage=function(){return this.featureUsage.toString(16)},e})();vn.TelemetryHandlerOptions=oR});var Xu=S(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.AuthenticationHandler=void 0;var mb=(Ie(),Pe(Te)),hb=qu(),iR=Kt(),aR=yn(),sR=Xm(),gb=_n(),uR=(function(){function e(t){this.authenticationProvider=t}return s(e,"AuthenticationHandler"),e.prototype.execute=function(t){return mb.__awaiter(this,void 0,void 0,function(){var n,o,r,i,a,u;return mb.__generator(this,function(c){switch(c.label){case 0:return n=typeof t.request=="string"?t.request:t.request.url,(0,hb.isGraphURL)(n)||t.customHosts&&(0,hb.isCustomHost)(n,t.customHosts)?(o=void 0,t.middlewareControl instanceof iR.MiddlewareControl&&(o=t.middlewareControl.getMiddlewareOptions(sR.AuthenticationHandlerOptions)),r=void 0,i=void 0,o&&(r=o.authenticationProvider,i=o.authenticationProviderOptions),r||(r=this.authenticationProvider),[4,r.getAccessToken(i)]):[3,2];case 1:return a=c.sent(),u="Bearer ".concat(a),(0,aR.appendRequestHeader)(t.request,t.options,e.AUTHORIZATION_HEADER,u),gb.TelemetryHandlerOptions.updateFeatureUsageFlag(t,gb.FeatureUsageFlag.AUTHENTICATION_HANDLER_ENABLED),[3,3];case 2:t.options.headers&&delete t.options.headers[e.AUTHORIZATION_HEADER],c.label=3;case 3:return[4,this.nextMiddleware.execute(t)];case 4:return[2,c.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e.AUTHORIZATION_HEADER="Authorization",e})();Ju.AuthenticationHandler=uR});var Yu=S(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.HTTPMessageHandler=void 0;var yb=(Ie(),Pe(Te)),cR=(function(){function e(){}return s(e,"HTTPMessageHandler"),e.prototype.execute=function(t){return yb.__awaiter(this,void 0,void 0,function(){var n;return yb.__generator(this,function(o){switch(o.label){case 0:return n=t,[4,fetch(t.request,t.options)];case 1:return n.response=o.sent(),[2]}})})},e})();Ku.HTTPMessageHandler=cR});var Ni=S(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.RetryHandlerOptions=void 0;var lR=(function(){function e(t,n,o){if(t===void 0&&(t=e.DEFAULT_DELAY),n===void 0&&(n=e.DEFAULT_MAX_RETRIES),o===void 0&&(o=e.defaultShouldRetry),t>e.MAX_DELAY&&n>e.MAX_MAX_RETRIES){var r=new Error("Delay and MaxRetries should not be more than ".concat(e.MAX_DELAY," and ").concat(e.MAX_MAX_RETRIES));throw r.name="MaxLimitExceeded",r}else if(t>e.MAX_DELAY){var r=new Error("Delay should not be more than ".concat(e.MAX_DELAY));throw r.name="MaxLimitExceeded",r}else if(n>e.MAX_MAX_RETRIES){var r=new Error("MaxRetries should not be more than ".concat(e.MAX_MAX_RETRIES));throw r.name="MaxLimitExceeded",r}else if(t<0&&n<0){var r=new Error("Delay and MaxRetries should not be negative");throw r.name="MinExpectationNotMet",r}else if(t<0){var r=new Error("Delay should not be negative");throw r.name="MinExpectationNotMet",r}else if(n<0){var r=new Error("MaxRetries should not be negative");throw r.name="MinExpectationNotMet",r}this.delay=Math.min(t,e.MAX_DELAY),this.maxRetries=Math.min(n,e.MAX_MAX_RETRIES),this.shouldRetry=o}return s(e,"RetryHandlerOptions"),e.prototype.getMaxDelay=function(){return e.MAX_DELAY},e.DEFAULT_DELAY=3,e.DEFAULT_MAX_RETRIES=3,e.MAX_DELAY=180,e.MAX_MAX_RETRIES=10,e.defaultShouldRetry=function(){return!0},e})();Qu.RetryHandlerOptions=lR});var tc=S(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});ec.RetryHandler=void 0;var Pn=(Ie(),Pe(Te)),Ym=Ci(),pR=Kt(),vb=yn(),_b=Ni(),Pb=_n(),dR=(function(){function e(t){t===void 0&&(t=new _b.RetryHandlerOptions),this.options=t}return s(e,"RetryHandler"),e.prototype.isRetry=function(t){return e.RETRY_STATUS_CODES.indexOf(t.status)!==-1},e.prototype.isBuffered=function(t,n){var o=typeof t=="string"?n.method:t.method,r=o===Ym.RequestMethod.PUT||o===Ym.RequestMethod.PATCH||o===Ym.RequestMethod.POST;if(r){var i=(0,vb.getRequestHeader)(t,n,"Content-Type")==="application/octet-stream";if(i)return!1}return!0},e.prototype.getDelay=function(t,n,o){var r=s(function(){return Number(Math.random().toFixed(3))},"getRandomness"),i=t.headers!==void 0?t.headers.get(e.RETRY_AFTER_HEADER):null,a;return i!==null?Number.isNaN(Number(i))?a=Math.round((new Date(i).getTime()-Date.now())/1e3):a=Number(i):a=n>=2?this.getExponentialBackOffTime(n)+o+r():o+r(),Math.min(a,this.options.getMaxDelay()+r())},e.prototype.getExponentialBackOffTime=function(t){return Math.round(1/2*(Math.pow(2,t)-1))},e.prototype.sleep=function(t){return Pn.__awaiter(this,void 0,void 0,function(){var n;return Pn.__generator(this,function(o){return n=t*1e3,[2,new Promise(function(r){return setTimeout(r,n)})]})})},e.prototype.getOptions=function(t){var n;return t.middlewareControl instanceof pR.MiddlewareControl&&(n=t.middlewareControl.getMiddlewareOptions(this.options.constructor)),typeof n>"u"&&(n=Object.assign(new _b.RetryHandlerOptions,this.options)),n},e.prototype.executeWithRetry=function(t,n,o){return Pn.__awaiter(this,void 0,void 0,function(){var r;return Pn.__generator(this,function(i){switch(i.label){case 0:return[4,this.nextMiddleware.execute(t)];case 1:return i.sent(),n<o.maxRetries&&this.isRetry(t.response)&&this.isBuffered(t.request,t.options)&&o.shouldRetry(o.delay,n,t.request,t.options,t.response)?(++n,(0,vb.setRequestHeader)(t.request,t.options,e.RETRY_ATTEMPT_HEADER,n.toString()),r=this.getDelay(t.response,n,o.delay),[4,this.sleep(r)]):[3,4];case 2:return i.sent(),[4,this.executeWithRetry(t,n,o)];case 3:return[2,i.sent()];case 4:return[2]}})})},e.prototype.execute=function(t){return Pn.__awaiter(this,void 0,void 0,function(){var n,o;return Pn.__generator(this,function(r){switch(r.label){case 0:return n=0,o=this.getOptions(t),Pb.TelemetryHandlerOptions.updateFeatureUsageFlag(t,Pb.FeatureUsageFlag.RETRY_HANDLER_ENABLED),[4,this.executeWithRetry(t,n,o)];case 1:return[2,r.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e.RETRY_STATUS_CODES=[429,503,504],e.RETRY_ATTEMPT_HEADER="Retry-Attempt",e.RETRY_AFTER_HEADER="Retry-After",e})();ec.RetryHandler=dR});var Ui=S(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.RedirectHandlerOptions=void 0;var fR=(function(){function e(t,n){if(t===void 0&&(t=e.DEFAULT_MAX_REDIRECTS),n===void 0&&(n=e.defaultShouldRedirect),t>e.MAX_MAX_REDIRECTS){var o=new Error("MaxRedirects should not be more than ".concat(e.MAX_MAX_REDIRECTS));throw o.name="MaxLimitExceeded",o}if(t<0){var o=new Error("MaxRedirects should not be negative");throw o.name="MinExpectationNotMet",o}this.maxRedirects=t,this.shouldRedirect=n}return s(e,"RedirectHandlerOptions"),e.DEFAULT_MAX_REDIRECTS=5,e.MAX_MAX_REDIRECTS=20,e.defaultShouldRedirect=function(){return!0},e})();rc.RedirectHandlerOptions=fR});var oc=S(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.RedirectHandler=void 0;var xn=(Ie(),Pe(Te)),mR=Ci(),hR=Kt(),gR=yn(),Qm=Ui(),xb=_n(),yR=(function(){function e(t){t===void 0&&(t=new Qm.RedirectHandlerOptions),this.options=t}return s(e,"RedirectHandler"),e.prototype.isRedirect=function(t){return e.REDIRECT_STATUS_CODES.indexOf(t.status)!==-1},e.prototype.hasLocationHeader=function(t){return t.headers.has(e.LOCATION_HEADER)},e.prototype.getLocationHeader=function(t){return t.headers.get(e.LOCATION_HEADER)},e.prototype.isRelativeURL=function(t){return t.indexOf("://")===-1},e.prototype.shouldDropAuthorizationHeader=function(t,n){var o=/^[A-Za-z].+?:\/\/.+?(?=\/|$)/,r=o.exec(t),i,a;r!==null&&(i=r[0]);var u=o.exec(n);return u!==null&&(a=u[0]),typeof i<"u"&&typeof a<"u"&&i!==a},e.prototype.updateRequestUrl=function(t,n){return xn.__awaiter(this,void 0,void 0,function(){var o,r;return xn.__generator(this,function(i){switch(i.label){case 0:return o=n,typeof n.request!="string"?[3,1]:(r=t,[3,3]);case 1:return[4,(0,gR.cloneRequestWithNewUrl)(t,n.request)];case 2:r=i.sent(),i.label=3;case 3:return o.request=r,[2]}})})},e.prototype.getOptions=function(t){var n;return t.middlewareControl instanceof hR.MiddlewareControl&&(n=t.middlewareControl.getMiddlewareOptions(Qm.RedirectHandlerOptions)),typeof n>"u"&&(n=Object.assign(new Qm.RedirectHandlerOptions,this.options)),n},e.prototype.executeWithRedirect=function(t,n,o){return xn.__awaiter(this,void 0,void 0,function(){var r,i;return xn.__generator(this,function(a){switch(a.label){case 0:return[4,this.nextMiddleware.execute(t)];case 1:return a.sent(),r=t.response,n<o.maxRedirects&&this.isRedirect(r)&&this.hasLocationHeader(r)&&o.shouldRedirect(r)?(++n,r.status!==e.STATUS_CODE_SEE_OTHER?[3,2]:(t.options.method=mR.RequestMethod.GET,delete t.options.body,[3,4])):[3,6];case 2:return i=this.getLocationHeader(r),!this.isRelativeURL(i)&&this.shouldDropAuthorizationHeader(r.url,i)&&delete t.options.headers[e.AUTHORIZATION_HEADER],[4,this.updateRequestUrl(i,t)];case 3:a.sent(),a.label=4;case 4:return[4,this.executeWithRedirect(t,n,o)];case 5:return a.sent(),[3,7];case 6:return[2];case 7:return[2]}})})},e.prototype.execute=function(t){return xn.__awaiter(this,void 0,void 0,function(){var n,o;return xn.__generator(this,function(r){switch(r.label){case 0:return n=0,o=this.getOptions(t),t.options.redirect=e.MANUAL_REDIRECT,xb.TelemetryHandlerOptions.updateFeatureUsageFlag(t,xb.FeatureUsageFlag.REDIRECT_HANDLER_ENABLED),[4,this.executeWithRedirect(t,n,o)];case 1:return[2,r.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e.REDIRECT_STATUS_CODES=[301,302,303,307,308],e.STATUS_CODE_SEE_OTHER=303,e.LOCATION_HEADER="Location",e.AUTHORIZATION_HEADER="Authorization",e.MANUAL_REDIRECT="manual",e})();nc.RedirectHandler=yR});var bb=S(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.PACKAGE_VERSION=void 0;ic.PACKAGE_VERSION="3.0.7"});var uc=S(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.TelemetryHandler=void 0;var Eb=(Ie(),Pe(Te)),Tb=qu(),vR=bb(),_R=Kt(),ac=yn(),PR=_n(),xR=(function(){function e(){}return s(e,"TelemetryHandler"),e.prototype.execute=function(t){return Eb.__awaiter(this,void 0,void 0,function(){var n,o,r,i,a;return Eb.__generator(this,function(u){switch(u.label){case 0:return n=typeof t.request=="string"?t.request:t.request.url,(0,Tb.isGraphURL)(n)||t.customHosts&&(0,Tb.isCustomHost)(n,t.customHosts)?(o=(0,ac.getRequestHeader)(t.request,t.options,e.CLIENT_REQUEST_ID_HEADER),o||(o=(0,ac.generateUUID)(),(0,ac.setRequestHeader)(t.request,t.options,e.CLIENT_REQUEST_ID_HEADER,o)),r="".concat(e.PRODUCT_NAME,"/").concat(vR.PACKAGE_VERSION),i=void 0,t.middlewareControl instanceof _R.MiddlewareControl&&(i=t.middlewareControl.getMiddlewareOptions(PR.TelemetryHandlerOptions)),i&&(a=i.getFeatureUsage(),r+=" (".concat(e.FEATURE_USAGE_STRING,"=").concat(a,")")),(0,ac.appendRequestHeader)(t.request,t.options,e.SDK_VERSION_HEADER,r)):(delete t.options.headers[e.CLIENT_REQUEST_ID_HEADER],delete t.options.headers[e.SDK_VERSION_HEADER]),[4,this.nextMiddleware.execute(t)];case 1:return[2,u.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e.CLIENT_REQUEST_ID_HEADER="client-request-id",e.SDK_VERSION_HEADER="SdkVersion",e.PRODUCT_NAME="graph-js",e.FEATURE_USAGE_STRING="featureUsage",e})();sc.TelemetryHandler=xR});var Ib=S(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.MiddlewareFactory=void 0;var bR=Xu(),ER=Yu(),TR=Ui(),IR=Ni(),SR=oc(),AR=tc(),wR=uc(),$R=s(function(){return typeof process=="object"&&typeof require=="function"},"isNodeEnvironment"),OR=(function(){function e(){}return s(e,"MiddlewareFactory"),e.getDefaultMiddlewareChain=function(t){var n=[],o=new bR.AuthenticationHandler(t),r=new AR.RetryHandler(new IR.RetryHandlerOptions),i=new wR.TelemetryHandler,a=new ER.HTTPMessageHandler;if(n.push(o),n.push(r),$R()){var u=new SR.RedirectHandler(new TR.RedirectHandlerOptions);n.push(u)}return n.push(i),n.push(a),n},e})();cc.MiddlewareFactory=OR});var pc=S(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.ChaosStrategy=void 0;var Sb;(function(e){e[e.MANUAL=0]="MANUAL",e[e.RANDOM=1]="RANDOM"})(Sb||(lc.ChaosStrategy=Sb={}))});var eh=S(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.ChaosHandlerOptions=void 0;var RR=pc(),zR=(function(){function e(t,n,o,r,i,a){if(t===void 0&&(t=RR.ChaosStrategy.RANDOM),n===void 0&&(n="Some error Happened"),this.chaosStrategy=t,this.statusCode=o,this.statusMessage=n,this.chaosPercentage=r!==void 0?r:10,this.responseBody=i,this.headers=a,this.chaosPercentage>100)throw new Error("Error Pecentage can not be more than 100")}return s(e,"ChaosHandlerOptions"),e})();dc.ChaosHandlerOptions=zR});var Ab=S(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.httpStatusCode=bn.methodStatusCode=void 0;bn.methodStatusCode={GET:[429,500,502,503,504],POST:[429,500,502,503,504,507],PUT:[429,500,502,503,504,507],PATCH:[429,500,502,503,504],DELETE:[429,500,502,503,504,507]};bn.httpStatusCode={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"}});var Ob=S(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.ChaosHandler=void 0;var fc=(Ie(),Pe(Te)),kR=Kt(),DR=yn(),wb=Ab(),th=eh(),$b=pc(),CR=(function(){function e(t,n){t===void 0&&(t=new th.ChaosHandlerOptions),this.options=t,this.manualMap=n}return s(e,"ChaosHandler"),e.prototype.createResponseHeaders=function(t,n,o){var r=t.headers?new Headers(t.headers):new Headers;return r.append("Cache-Control","no-store"),r.append("request-id",n),r.append("client-request-id",n),r.append("x-ms-ags-diagnostic",""),r.append("Date",o),r.append("Strict-Transport-Security",""),t.statusCode===429&&r.append("retry-after","3"),r},e.prototype.createResponseBody=function(t,n,o){if(t.responseBody)return t.responseBody;var r;if(t.statusCode>=400){var i=wb.httpStatusCode[t.statusCode],a=t.statusMessage;r={error:{code:i,message:a,innerError:{"request-id":n,date:o}}}}else r={};return r},e.prototype.createResponse=function(t,n){var o=n.request,r=(0,DR.generateUUID)(),i=new Date,a=this.createResponseHeaders(t,r,i.toString()),u=this.createResponseBody(t,r,i.toString()),c={url:o,status:t.statusCode,statusText:t.statusMessage,headers:a};n.response=new Response(typeof u=="string"?u:JSON.stringify(u),c)},e.prototype.sendRequest=function(t,n){return fc.__awaiter(this,void 0,void 0,function(){return fc.__generator(this,function(o){switch(o.label){case 0:return this.setStatusCode(t,n.request,n.options.method),t.chaosStrategy===$b.ChaosStrategy.MANUAL&&!this.nextMiddleware||Math.floor(Math.random()*100)<t.chaosPercentage?(this.createResponse(t,n),[3,3]):[3,1];case 1:return this.nextMiddleware?[4,this.nextMiddleware.execute(n)]:[3,3];case 2:o.sent(),o.label=3;case 3:return[2]}})})},e.prototype.getRandomStatusCode=function(t){var n=wb.methodStatusCode[t];return n[Math.floor(Math.random()*n.length)]},e.prototype.getRelativeURL=function(t){var n=/https?:\/\/graph\.microsoft\.com\/[^/]+(.+?)(\?|$)/,o;return n.exec(t)!==null&&(o=n.exec(t)[1]),o},e.prototype.setStatusCode=function(t,n,o){var r=this;if(t.chaosStrategy===$b.ChaosStrategy.MANUAL){if(t.statusCode===void 0){var i=this.getRelativeURL(n);this.manualMap.get(i)!==void 0?this.manualMap.get(i).get(o)!==void 0&&(t.statusCode=this.manualMap.get(i).get(o)):this.manualMap.forEach(function(a,u){var c=new RegExp(u+"$");c.test(i)&&r.manualMap.get(u).get(o)!==void 0&&(t.statusCode=r.manualMap.get(u).get(o))})}}else t.statusCode=this.getRandomStatusCode(o)},e.prototype.getOptions=function(t){var n;return t.middlewareControl instanceof kR.MiddlewareControl&&(n=t.middlewareControl.getMiddlewareOptions(th.ChaosHandlerOptions)),typeof n>"u"&&(n=Object.assign(new th.ChaosHandlerOptions,this.options)),n},e.prototype.execute=function(t){return fc.__awaiter(this,void 0,void 0,function(){var n;return fc.__generator(this,function(o){switch(o.label){case 0:return n=this.getOptions(t),[4,this.sendRequest(n,t)];case 1:return[2,o.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e})();mc.ChaosHandler=CR});var Mi=S(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.ResponseType=void 0;var Rb;(function(e){e.ARRAYBUFFER="arraybuffer",e.BLOB="blob",e.DOCUMENT="document",e.JSON="json",e.RAW="raw",e.STREAM="stream",e.TEXT="text"})(Rb||(hc.ResponseType=Rb={}))});var nh=S(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.GraphResponseHandler=En.DocumentType=void 0;var gc=(Ie(),Pe(Te)),Tr=Mi(),rh;(function(e){e.TEXT_HTML="text/html",e.TEXT_XML="text/xml",e.APPLICATION_XML="application/xml",e.APPLICATION_XHTML="application/xhtml+xml"})(rh||(En.DocumentType=rh={}));var yc;(function(e){e.TEXT_PLAIN="text/plain",e.APPLICATION_JSON="application/json"})(yc||(yc={}));var vc;(function(e){e.DOCUMENT="^(text\\/(html|xml))|(application\\/(xml|xhtml\\+xml))$",e.IMAGE="^image\\/.+"})(vc||(vc={}));var NR=(function(){function e(){}return s(e,"GraphResponseHandler"),e.parseDocumentResponse=function(t,n){return typeof DOMParser<"u"?new Promise(function(o,r){t.text().then(function(i){try{var a=new DOMParser,u=a.parseFromString(i,n);o(u)}catch(c){r(c)}})}):Promise.resolve(t.body)},e.convertResponse=function(t,n){return gc.__awaiter(this,void 0,void 0,function(){var o,r,i,a;return gc.__generator(this,function(u){switch(u.label){case 0:if(t.status===204)return[2,Promise.resolve()];switch(r=t.headers.get("Content-type"),i=n,i){case Tr.ResponseType.ARRAYBUFFER:return[3,1];case Tr.ResponseType.BLOB:return[3,3];case Tr.ResponseType.DOCUMENT:return[3,5];case Tr.ResponseType.JSON:return[3,7];case Tr.ResponseType.STREAM:return[3,9];case Tr.ResponseType.TEXT:return[3,11]}return[3,13];case 1:return[4,t.arrayBuffer()];case 2:return o=u.sent(),[3,24];case 3:return[4,t.blob()];case 4:return o=u.sent(),[3,24];case 5:return[4,e.parseDocumentResponse(t,rh.TEXT_XML)];case 6:return o=u.sent(),[3,24];case 7:return[4,t.json()];case 8:return o=u.sent(),[3,24];case 9:return[4,Promise.resolve(t.body)];case 10:return o=u.sent(),[3,24];case 11:return[4,t.text()];case 12:return o=u.sent(),[3,24];case 13:return r===null?[3,22]:(a=r.split(";")[0],new RegExp(vc.DOCUMENT).test(a)?[4,e.parseDocumentResponse(t,a)]:[3,15]);case 14:return o=u.sent(),[3,21];case 15:return new RegExp(vc.IMAGE).test(a)?(o=t.blob(),[3,21]):[3,16];case 16:return a!==yc.TEXT_PLAIN?[3,18]:[4,t.text()];case 17:return o=u.sent(),[3,21];case 18:return a!==yc.APPLICATION_JSON?[3,20]:[4,t.json()];case 19:return o=u.sent(),[3,21];case 20:o=Promise.resolve(t.body),u.label=21;case 21:return[3,23];case 22:o=Promise.resolve(t.body),u.label=23;case 23:return[3,24];case 24:return[2,o]}})})},e.getResponse=function(t,n,o){return gc.__awaiter(this,void 0,void 0,function(){var r;return gc.__generator(this,function(i){switch(i.label){case 0:return n!==Tr.ResponseType.RAW?[3,1]:[2,Promise.resolve(t)];case 1:return[4,e.convertResponse(t,n)];case 2:if(r=i.sent(),t.ok)if(typeof o=="function")o(null,r);else return[2,r];else throw r;i.label=3;case 3:return[2]}})})},e})();En.GraphResponseHandler=NR});var oh=S(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.Range=void 0;var UR=(function(){function e(t,n){t===void 0&&(t=-1),n===void 0&&(n=-1),this.minValue=t,this.maxValue=n}return s(e,"Range"),e})();_c.Range=UR});var ih=S(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});Pc.UploadResult=void 0;var MR=(function(){function e(t,n){this._location=n,this._responseBody=t}return s(e,"UploadResult"),Object.defineProperty(e.prototype,"location",{get:s(function(){return this._location},"get"),set:s(function(t){this._location=t},"set"),enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responseBody",{get:s(function(){return this._responseBody},"get"),set:s(function(t){this._responseBody=t},"set"),enumerable:!1,configurable:!0}),e.CreateUploadResult=function(t,n){return new e(t,n.get("location"))},e})();Pc.UploadResult=MR});var sh=S(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});bc.LargeFileUploadTask=void 0;var et=(Ie(),Pe(Te)),ah=wt(),LR=nh(),zb=Mi(),xc=oh(),jR=ih(),FR=(function(){function e(t,n,o,r){if(r===void 0&&(r={}),this.DEFAULT_FILE_SIZE=5*1024*1024,this.client=t,n.sliceFile)this.file=n;else throw new ah.GraphClientError("Please pass the FileUpload object, StreamUpload object or any custom implementation of the FileObject interface");this.file=n,r.rangeSize||(r.rangeSize=this.DEFAULT_FILE_SIZE),this.options=r,this.uploadSession=o,this.nextRange=new xc.Range(0,this.options.rangeSize-1)}return s(e,"LargeFileUploadTask"),e.createUploadSession=function(t,n,o,r){return r===void 0&&(r={}),et.__awaiter(this,void 0,void 0,function(){var i,a;return et.__generator(this,function(u){switch(u.label){case 0:return[4,t.api(n).headers(r).post(o)];case 1:return i=u.sent(),a={url:i.uploadUrl,expiry:new Date(i.expirationDateTime),isCancelled:!1},[2,a]}})})},e.prototype.parseRange=function(t){var n=t[0];if(typeof n>"u"||n==="")return new xc.Range;var o=n.split("-"),r=parseInt(o[0],10),i=parseInt(o[1],10);return Number.isNaN(i)&&(i=this.file.size-1),new xc.Range(r,i)},e.prototype.updateTaskStatus=function(t){this.uploadSession.expiry=new Date(t.expirationDateTime),this.nextRange=this.parseRange(t.nextExpectedRanges)},e.prototype.getNextRange=function(){if(this.nextRange.minValue===-1)return this.nextRange;var t=this.nextRange.minValue,n=t+this.options.rangeSize-1;return n>=this.file.size&&(n=this.file.size-1),new xc.Range(t,n)},e.prototype.sliceFile=function(t){if(console.warn("The LargeFileUploadTask.sliceFile() function has been deprecated and moved into the FileObject interface."),this.file.content instanceof ArrayBuffer||this.file.content instanceof Blob||this.file.content instanceof Uint8Array)return this.file.content.slice(t.minValue,t.maxValue+1);throw new ah.GraphClientError("The LargeFileUploadTask.sliceFile() function expects only Blob, ArrayBuffer or Uint8Array file content. Please note that the sliceFile() function is deprecated.")},e.prototype.upload=function(){return et.__awaiter(this,void 0,void 0,function(){var t,n,o,r,i,a,u;return et.__generator(this,function(c){switch(c.label){case 0:t=this.options&&this.options.uploadEventHandlers,c.label=1;case 1:if(this.uploadSession.isCancelled)return[3,5];if(n=this.getNextRange(),n.maxValue===-1)throw o=new Error("Task with which you are trying to upload is already completed, Please check for your uploaded file"),o.name="Invalid Session",o;return[4,this.file.sliceFile(n)];case 2:return r=c.sent(),[4,this.uploadSliceGetRawResponse(r,n,this.file.size)];case 3:if(i=c.sent(),!i)throw new ah.GraphClientError("Something went wrong! Large file upload slice response is null.");return[4,LR.GraphResponseHandler.getResponse(i)];case 4:return a=c.sent(),i.status===201||i.status===200&&a.id?(this.reportProgress(t,n),[2,jR.UploadResult.CreateUploadResult(a,i.headers)]):(u={expirationDateTime:a.expirationDateTime||a.ExpirationDateTime,nextExpectedRanges:a.NextExpectedRanges||a.nextExpectedRanges},this.updateTaskStatus(u),this.reportProgress(t,n),[3,1]);case 5:return[2]}})})},e.prototype.reportProgress=function(t,n){t&&t.progress&&t.progress(n,t.extraCallbackParam)},e.prototype.uploadSlice=function(t,n,o){return et.__awaiter(this,void 0,void 0,function(){return et.__generator(this,function(r){switch(r.label){case 0:return[4,this.client.api(this.uploadSession.url).headers({"Content-Length":"".concat(n.maxValue-n.minValue+1),"Content-Range":"bytes ".concat(n.minValue,"-").concat(n.maxValue,"/").concat(o),"Content-Type":"application/octet-stream"}).put(t)];case 1:return[2,r.sent()]}})})},e.prototype.uploadSliceGetRawResponse=function(t,n,o){return et.__awaiter(this,void 0,void 0,function(){return et.__generator(this,function(r){switch(r.label){case 0:return[4,this.client.api(this.uploadSession.url).headers({"Content-Length":"".concat(n.maxValue-n.minValue+1),"Content-Range":"bytes ".concat(n.minValue,"-").concat(n.maxValue,"/").concat(o),"Content-Type":"application/octet-stream"}).responseType(zb.ResponseType.RAW).put(t)];case 1:return[2,r.sent()]}})})},e.prototype.cancel=function(){return et.__awaiter(this,void 0,void 0,function(){var t;return et.__generator(this,function(n){switch(n.label){case 0:return[4,this.client.api(this.uploadSession.url).responseType(zb.ResponseType.RAW).delete()];case 1:return t=n.sent(),t.status===204&&(this.uploadSession.isCancelled=!0),[2,t]}})})},e.prototype.getStatus=function(){return et.__awaiter(this,void 0,void 0,function(){var t;return et.__generator(this,function(n){switch(n.label){case 0:return[4,this.client.api(this.uploadSession.url).get()];case 1:return t=n.sent(),this.updateTaskStatus(t),[2,t]}})})},e.prototype.resume=function(){return et.__awaiter(this,void 0,void 0,function(){return et.__generator(this,function(t){switch(t.label){case 0:return[4,this.getStatus()];case 1:return t.sent(),[4,this.upload()];case 2:return[2,t.sent()]}})})},e.prototype.getUploadSession=function(){return this.uploadSession},e})();bc.LargeFileUploadTask=FR});var uh=S(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.FileUpload=void 0;var BR=wt(),VR=(function(){function e(t,n,o){if(this.content=t,this.name=n,this.size=o,!t||!n||!o)throw new BR.GraphClientError("Please provide the upload content, name of the file and size of the file")}return s(e,"FileUpload"),e.prototype.sliceFile=function(t){return this.content.slice(t.minValue,t.maxValue+1)},e})();Ec.FileUpload=VR});var ch=S(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.getValidRangeSize=void 0;var ZR=5*1024*1024,HR=s(function(e){return e>320*1024&&(e=Math.floor(e/(320*1024))*320*1024),e},"roundTo320KB"),qR=s(function(e){e===void 0&&(e=ZR);var t=60*1024*1024;return e>t&&(e=t),HR(e)},"getValidRangeSize");Tc.getValidRangeSize=qR});var Db=S(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});Ic.OneDriveLargeFileUploadTask=void 0;var $t=(Ie(),Pe(Te)),kb=wt(),GR=uh(),WR=sh(),JR=ch(),XR=(function(e){$t.__extends(t,e);function t(n,o,r,i){return e.call(this,n,o,r,i)||this}return s(t,"OneDriveLargeFileUploadTask"),t.constructCreateSessionUrl=function(n,o){return o===void 0&&(o=t.DEFAULT_UPLOAD_PATH),n=n.trim(),o=o.trim(),o===""&&(o="/"),o[0]!=="/"&&(o="/".concat(o)),o[o.length-1]!=="/"&&(o="".concat(o,"/")),"/me/drive/root:".concat(o.split("/").map(function(r){return encodeURIComponent(r)}).join("/")).concat(encodeURIComponent(n),":/createUploadSession")},t.getFileInfo=function(n,o){var r,i;if(typeof Blob<"u"&&n instanceof Blob)r=new File([n],o),i=r.size;else if(typeof File<"u"&&n instanceof File)r=n,i=r.size;else if(typeof Uint8Array<"u"&&n instanceof Uint8Array){var a=n;i=a.byteLength,r=a.buffer.slice(a.byteOffset,a.byteOffset+a.byteLength)}return{content:r,size:i}},t.create=function(n,o,r){return $t.__awaiter(this,void 0,void 0,function(){var i,a,u;return $t.__generator(this,function(c){if(!n||!o||!r)throw new kb.GraphClientError("Please provide the Graph client instance, file object and OneDriveLargeFileUploadOptions value");return i=r.fileName,a=t.getFileInfo(o,i),u=new GR.FileUpload(a.content,i,a.size),[2,this.createTaskWithFileObject(n,u,r)]})})},t.createTaskWithFileObject=function(n,o,r){return $t.__awaiter(this,void 0,void 0,function(){var i,a,u,c;return $t.__generator(this,function(l){switch(l.label){case 0:if(!n||!o||!r)throw new kb.GraphClientError("Please provide the Graph client instance, FileObject interface implementation and OneDriveLargeFileUploadOptions value");return i=r.uploadSessionURL?r.uploadSessionURL:t.constructCreateSessionUrl(r.fileName,r.path),a={fileName:r.fileName,fileDescription:r.fileDescription,conflictBehavior:r.conflictBehavior},[4,t.createUploadSession(n,i,a)];case 1:return u=l.sent(),c=(0,JR.getValidRangeSize)(r.rangeSize),[2,new t(n,o,u,{rangeSize:c,uploadEventHandlers:r.uploadEventHandlers})]}})})},t.createUploadSession=function(n,o,r){return $t.__awaiter(this,void 0,void 0,function(){var i;return $t.__generator(this,function(a){return i={item:{"@microsoft.graph.conflictBehavior":r?.conflictBehavior||"rename",name:r?.fileName,description:r?.fileDescription}},[2,e.createUploadSession.call(this,n,o,i)]})})},t.prototype.commit=function(n,o){return o===void 0&&(o="rename"),$t.__awaiter(this,void 0,void 0,function(){var r;return $t.__generator(this,function(i){switch(i.label){case 0:return r={name:this.file.name,"@microsoft.graph.conflictBehavior":o,"@microsoft.graph.sourceUrl":this.uploadSession.url},[4,this.client.api(n).put(r)];case 1:return[2,i.sent()]}})})},t.DEFAULT_UPLOAD_PATH="/",t})(WR.LargeFileUploadTask);Ic.OneDriveLargeFileUploadTask=XR});var Nb=S(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.StreamUpload=void 0;var Cb=(Ie(),Pe(Te)),Li=wt(),KR=(function(){function e(t,n,o){if(this.content=t,this.name=n,this.size=o,!t||!n||!o)throw new Li.GraphClientError("Please provide the Readable Stream content, name of the file and size of the file")}return s(e,"StreamUpload"),e.prototype.sliceFile=function(t){return Cb.__awaiter(this,void 0,void 0,function(){var n,o,r,i,a,u,c;return Cb.__generator(this,function(l){switch(l.label){case 0:if(n=t.maxValue-t.minValue+1,o=[],this.previousSlice){if(t.minValue<this.previousSlice.range.minValue)throw new Li.GraphClientError("An error occurred while uploading the stream. Please restart the stream upload from the first byte of the file.");if(t.minValue<this.previousSlice.range.maxValue){if(r=this.previousSlice.range.minValue,i=this.previousSlice.range.maxValue,t.minValue===r&&t.maxValue===i)return[2,this.previousSlice.fileSlice];if(t.maxValue===i)return[2,this.previousSlice.fileSlice.slice(t.minValue,t.maxValue+1)];o.push(this.previousSlice.fileSlice.slice(t.minValue,i+1)),n=t.maxValue-i}}return this.content&&this.content.readable?this.content.readableLength>=n?(o.push(this.content.read(n)),[3,3]):[3,1]:[3,4];case 1:return u=(a=o).push,[4,this.readNBytesFromStream(n)];case 2:u.apply(a,[l.sent()]),l.label=3;case 3:return[3,5];case 4:throw new Li.GraphClientError("Stream is not readable.");case 5:return c=Buffer.concat(o),this.previousSlice={fileSlice:c,range:t},[2,c]}})})},e.prototype.readNBytesFromStream=function(t){var n=this;return new Promise(function(o,r){var i=[],a=t,u=0;n.content.on("end",function(){if(a>0)return r(new Li.GraphClientError("Stream ended before reading required range size"))}),n.content.on("readable",function(){for(var c;u<t&&(c=n.content.read(a))!==null;)u+=c.length,i.push(c),a>0&&(a=t-u);if(u===t)return o(Buffer.concat(i));if(!n.content||!n.content.readable)return r(new Li.GraphClientError("Error encountered while reading the stream during the upload"))})})},e})();Sc.StreamUpload=KR});var Ub=S(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});Ac.PageIterator=void 0;var Tn=(Ie(),Pe(Te)),YR=(function(){function e(t,n,o,r){this.client=t,this.collection=n.value,this.nextLink=n["@odata.nextLink"],this.deltaLink=n["@odata.deltaLink"],this.callback=o,this.cursor=0,this.complete=!1,this.requestOptions=r}return s(e,"PageIterator"),e.prototype.iterationHelper=function(){if(this.collection===void 0)return!1;for(var t=!0;t&&this.cursor<this.collection.length;){var n=this.collection[this.cursor];t=this.callback(n),this.cursor++}return t},e.prototype.fetchAndUpdateNextPageData=function(){return Tn.__awaiter(this,void 0,void 0,function(){var t,n;return Tn.__generator(this,function(o){switch(o.label){case 0:return t=this.client.api(this.nextLink),this.requestOptions&&(this.requestOptions.headers&&(t=t.headers(this.requestOptions.headers)),this.requestOptions.middlewareOptions&&(t=t.middlewareOptions(this.requestOptions.middlewareOptions)),this.requestOptions.options&&(t=t.options(this.requestOptions.options))),[4,t.get()];case 1:return n=o.sent(),this.collection=n.value,this.cursor=0,this.nextLink=n["@odata.nextLink"],this.deltaLink=n["@odata.deltaLink"],[2]}})})},e.prototype.getDeltaLink=function(){return this.deltaLink},e.prototype.iterate=function(){return Tn.__awaiter(this,void 0,void 0,function(){var t;return Tn.__generator(this,function(n){switch(n.label){case 0:t=this.iterationHelper(),n.label=1;case 1:return t?this.nextLink===void 0?[3,3]:[4,this.fetchAndUpdateNextPageData()]:[3,5];case 2:return n.sent(),t=this.iterationHelper(),[3,4];case 3:t=!1,n.label=4;case 4:return[3,1];case 5:return this.nextLink===void 0&&this.cursor>=this.collection.length&&(this.complete=!0),[2]}})})},e.prototype.resume=function(){return Tn.__awaiter(this,void 0,void 0,function(){return Tn.__generator(this,function(t){return[2,this.iterate()]})})},e.prototype.isComplete=function(){return this.complete},e})();Ac.PageIterator=YR});var lh=S($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.CustomAuthenticationProvider=void 0;var wc=(Ie(),Pe(Te)),Mb=wt(),QR=(function(){function e(t){this.provider=t}return s(e,"CustomAuthenticationProvider"),e.prototype.getAccessToken=function(){return wc.__awaiter(this,void 0,void 0,function(){var t=this;return wc.__generator(this,function(n){return[2,new Promise(function(o,r){t.provider(function(i,a){return wc.__awaiter(t,void 0,void 0,function(){var u,c;return wc.__generator(this,function(l){switch(l.label){case 0:return a?(o(a),[3,3]):[3,1];case 1:return i||(u="Access token is undefined or empty. Please provide a valid token. For more help - https://github.com/microsoftgraph/msgraph-sdk-javascript/blob/dev/docs/CustomAuthenticationProvider.md",i=new Mb.GraphClientError(u)),[4,Mb.GraphClientError.setGraphClientError(i)];case 2:c=l.sent(),r(c),l.label=3;case 3:return[2]}})})})})]})})},e})();$c.CustomAuthenticationProvider=QR});var ph=S(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.GraphError=void 0;var ez=(Ie(),Pe(Te)),tz=(function(e){ez.__extends(t,e);function t(n,o,r){n===void 0&&(n=-1);var i=e.call(this,o||r&&r.message)||this;return Object.setPrototypeOf(i,t.prototype),i.statusCode=n,i.code=null,i.requestId=null,i.date=new Date,i.body=null,i.stack=r?r.stack:i.stack,i}return s(t,"GraphError"),t})(Error);Oc.GraphError=tz});var jb=S(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});Rc.GraphErrorHandler=void 0;var Lb=(Ie(),Pe(Te)),dh=ph(),rz=(function(){function e(){}return s(e,"GraphErrorHandler"),e.constructError=function(t,n,o){var r=new dh.GraphError(n,"",t);return t.name!==void 0&&(r.code=t.name),r.body=t.toString(),r.date=new Date,r.headers=o?.headers,r},e.constructErrorFromResponse=function(t,n,o){var r=t.error,i=new dh.GraphError(n,r.message);return i.code=r.code,r.innerError!==void 0&&(i.requestId=r.innerError["request-id"],i.date=new Date(r.innerError.date)),i.body=JSON.stringify(r),i.headers=o?.headers,i},e.getError=function(t,n,o,r){return t===void 0&&(t=null),n===void 0&&(n=-1),Lb.__awaiter(this,void 0,void 0,function(){var i;return Lb.__generator(this,function(a){if(t&&t.error?i=e.constructErrorFromResponse(t,n,r):t instanceof Error?i=e.constructError(t,n,r):(i=new dh.GraphError(n),i.body=t),typeof o=="function")o(i,null);else return[2,i];return[2]})})},e})();Rc.GraphErrorHandler=rz});var fh=S(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.GraphRequest=void 0;var ye=(Ie(),Pe(Te)),nz=wt(),oz=jb(),ji=qu(),iz=nh(),az=Kt(),Ir=Ci(),sz=Mi(),uz=(function(){function e(t,n,o){var r=this;this.parsePath=function(i){if(i.indexOf("https://")!==-1){i=i.replace("https://","");var a=i.indexOf("/");a!==-1&&(r.urlComponents.host="https://"+i.substring(0,a),i=i.substring(a+1,i.length));var u=i.indexOf("/");u!==-1&&(r.urlComponents.version=i.substring(0,u),i=i.substring(u+1,i.length))}i.charAt(0)==="/"&&(i=i.substr(1));var c=i.indexOf("?");if(c===-1)r.urlComponents.path=i;else{r.urlComponents.path=i.substr(0,c);for(var l=i.substring(c+1,i.length).split("&"),d=0,g=l;d<g.length;d++){var h=g[d];r.parseQueryParameter(h)}}},this.httpClient=t,this.config=n,this.urlComponents={host:this.config.baseUrl,version:this.config.defaultVersion,oDataQueryParams:{},otherURLQueryParams:{},otherURLQueryOptions:[]},this._headers={},this._options={},this._middlewareOptions=[],this.parsePath(o)}return s(e,"GraphRequest"),e.prototype.addCsvQueryParameter=function(t,n,o){this.urlComponents.oDataQueryParams[t]=this.urlComponents.oDataQueryParams[t]?this.urlComponents.oDataQueryParams[t]+",":"";var r=[];o.length>1&&typeof n=="string"?r=Array.prototype.slice.call(o):typeof n=="string"?r.push(n):r=r.concat(n),this.urlComponents.oDataQueryParams[t]+=r.join(",")},e.prototype.buildFullUrl=function(){var t=(0,ji.urlJoin)([this.urlComponents.host,this.urlComponents.version,this.urlComponents.path])+this.createQueryString();return this.config.debugLogging&&console.log(t),t},e.prototype.createQueryString=function(){var t=this.urlComponents,n=[];if(Object.keys(t.oDataQueryParams).length!==0)for(var o in t.oDataQueryParams)Object.prototype.hasOwnProperty.call(t.oDataQueryParams,o)&&n.push(o+"="+t.oDataQueryParams[o]);if(Object.keys(t.otherURLQueryParams).length!==0)for(var o in t.otherURLQueryParams)Object.prototype.hasOwnProperty.call(t.otherURLQueryParams,o)&&n.push(o+"="+t.otherURLQueryParams[o]);if(t.otherURLQueryOptions.length!==0)for(var r=0,i=t.otherURLQueryOptions;r<i.length;r++){var a=i[r];n.push(a)}return n.length>0?"?"+n.join("&"):""},e.prototype.parseQueryParameter=function(t){if(typeof t=="string")if(t.charAt(0)==="?"&&(t=t.substring(1)),t.indexOf("&")!==-1)for(var n=t.split("&"),o=0,r=n;o<r.length;o++){var i=r[o];this.parseQueryParamenterString(i)}else this.parseQueryParamenterString(t);else if(t.constructor===Object)for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&this.setURLComponentsQueryParamater(a,t[a]);return this},e.prototype.parseQueryParamenterString=function(t){if(this.isValidQueryKeyValuePair(t)){var n=t.indexOf("="),o=t.substring(0,n),r=t.substring(n+1);this.setURLComponentsQueryParamater(o,r)}else this.urlComponents.otherURLQueryOptions.push(t)},e.prototype.setURLComponentsQueryParamater=function(t,n){if(ji.oDataQueryNames.indexOf(t)!==-1){var o=this.urlComponents.oDataQueryParams[t],r=o&&(t==="$expand"||t==="$select"||t==="$orderby");this.urlComponents.oDataQueryParams[t]=r?o+","+n:n}else this.urlComponents.otherURLQueryParams[t]=n},e.prototype.isValidQueryKeyValuePair=function(t){var n=t.indexOf("=");if(n===-1)return!1;var o=t.indexOf("(");return!(o!==-1&&t.indexOf("(")<n)},e.prototype.updateRequestOptions=function(t){var n=ye.__assign({},t.headers);if(this.config.fetchOptions!==void 0){var o=ye.__assign({},this.config.fetchOptions);Object.assign(t,o),typeof this.config.fetchOptions.headers!==void 0&&(t.headers=ye.__assign({},this.config.fetchOptions.headers))}Object.assign(t,this._options),t.headers!==void 0&&Object.assign(n,t.headers),Object.assign(n,this._headers),t.headers=n},e.prototype.send=function(t,n,o){var r;return ye.__awaiter(this,void 0,void 0,function(){var i,a,u,c,l,d,g,h;return ye.__generator(this,function(p){switch(p.label){case 0:a=new az.MiddlewareControl(this._middlewareOptions),this.updateRequestOptions(n),u=(r=this.config)===null||r===void 0?void 0:r.customHosts,p.label=1;case 1:return p.trys.push([1,4,,6]),[4,this.httpClient.sendRequest({request:t,options:n,middlewareControl:a,customHosts:u})];case 2:return c=p.sent(),i=c.response,[4,iz.GraphResponseHandler.getResponse(i,this._responseType,o)];case 3:return l=p.sent(),[2,l];case 4:if(d=p.sent(),d instanceof nz.GraphClientError)throw d;return g=void 0,i&&(g=i.status),[4,oz.GraphErrorHandler.getError(d,g,o,i)];case 5:throw h=p.sent(),h;case 6:return[2]}})})},e.prototype.setHeaderContentType=function(){if(!this._headers){this.header("Content-Type","application/json");return}for(var t=Object.keys(this._headers),n=0,o=t;n<o.length;n++){var r=o[n];if(r.toLowerCase()==="content-type")return}this.header("Content-Type","application/json")},e.prototype.header=function(t,n){return this._headers[t]=n,this},e.prototype.headers=function(t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(this._headers[n]=t[n]);return this},e.prototype.option=function(t,n){return this._options[t]=n,this},e.prototype.options=function(t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(this._options[n]=t[n]);return this},e.prototype.middlewareOptions=function(t){return this._middlewareOptions=t,this},e.prototype.version=function(t){return this.urlComponents.version=t,this},e.prototype.responseType=function(t){return this._responseType=t,this},e.prototype.select=function(t){return this.addCsvQueryParameter("$select",t,arguments),this},e.prototype.expand=function(t){return this.addCsvQueryParameter("$expand",t,arguments),this},e.prototype.orderby=function(t){return this.addCsvQueryParameter("$orderby",t,arguments),this},e.prototype.filter=function(t){return this.urlComponents.oDataQueryParams.$filter=t,this},e.prototype.search=function(t){return this.urlComponents.oDataQueryParams.$search=t,this},e.prototype.top=function(t){return this.urlComponents.oDataQueryParams.$top=t,this},e.prototype.skip=function(t){return this.urlComponents.oDataQueryParams.$skip=t,this},e.prototype.skipToken=function(t){return this.urlComponents.oDataQueryParams.$skipToken=t,this},e.prototype.count=function(t){return t===void 0&&(t=!0),this.urlComponents.oDataQueryParams.$count=t.toString(),this},e.prototype.query=function(t){return this.parseQueryParameter(t)},e.prototype.get=function(t){return ye.__awaiter(this,void 0,void 0,function(){var n,o,r;return ye.__generator(this,function(i){switch(i.label){case 0:return n=this.buildFullUrl(),o={method:Ir.RequestMethod.GET},[4,this.send(n,o,t)];case 1:return r=i.sent(),[2,r]}})})},e.prototype.post=function(t,n){return ye.__awaiter(this,void 0,void 0,function(){var o,r,i;return ye.__generator(this,function(a){switch(a.label){case 0:return o=this.buildFullUrl(),r={method:Ir.RequestMethod.POST,body:(0,ji.serializeContent)(t)},i=t&&t.constructor&&t.constructor.name,i==="FormData"?r.headers={}:(this.setHeaderContentType(),r.headers=this._headers),[4,this.send(o,r,n)];case 1:return[2,a.sent()]}})})},e.prototype.create=function(t,n){return ye.__awaiter(this,void 0,void 0,function(){return ye.__generator(this,function(o){switch(o.label){case 0:return[4,this.post(t,n)];case 1:return[2,o.sent()]}})})},e.prototype.put=function(t,n){return ye.__awaiter(this,void 0,void 0,function(){var o,r;return ye.__generator(this,function(i){switch(i.label){case 0:return o=this.buildFullUrl(),this.setHeaderContentType(),r={method:Ir.RequestMethod.PUT,body:(0,ji.serializeContent)(t)},[4,this.send(o,r,n)];case 1:return[2,i.sent()]}})})},e.prototype.patch=function(t,n){return ye.__awaiter(this,void 0,void 0,function(){var o,r;return ye.__generator(this,function(i){switch(i.label){case 0:return o=this.buildFullUrl(),this.setHeaderContentType(),r={method:Ir.RequestMethod.PATCH,body:(0,ji.serializeContent)(t)},[4,this.send(o,r,n)];case 1:return[2,i.sent()]}})})},e.prototype.update=function(t,n){return ye.__awaiter(this,void 0,void 0,function(){return ye.__generator(this,function(o){switch(o.label){case 0:return[4,this.patch(t,n)];case 1:return[2,o.sent()]}})})},e.prototype.delete=function(t){return ye.__awaiter(this,void 0,void 0,function(){var n,o;return ye.__generator(this,function(r){switch(r.label){case 0:return n=this.buildFullUrl(),o={method:Ir.RequestMethod.DELETE},[4,this.send(n,o,t)];case 1:return[2,r.sent()]}})})},e.prototype.del=function(t){return ye.__awaiter(this,void 0,void 0,function(){return ye.__generator(this,function(n){switch(n.label){case 0:return[4,this.delete(t)];case 1:return[2,n.sent()]}})})},e.prototype.getStream=function(t){return ye.__awaiter(this,void 0,void 0,function(){var n,o;return ye.__generator(this,function(r){switch(r.label){case 0:return n=this.buildFullUrl(),o={method:Ir.RequestMethod.GET},this.responseType(sz.ResponseType.STREAM),[4,this.send(n,o,t)];case 1:return[2,r.sent()]}})})},e.prototype.putStream=function(t,n){return ye.__awaiter(this,void 0,void 0,function(){var o,r;return ye.__generator(this,function(i){switch(i.label){case 0:return o=this.buildFullUrl(),r={method:Ir.RequestMethod.PUT,headers:{"Content-Type":"application/octet-stream"},body:t},[4,this.send(o,r,n)];case 1:return[2,i.sent()]}})})},e})();zc.GraphRequest=uz});var mh=S(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.HTTPClient=void 0;var Fb=(Ie(),Pe(Te)),cz=(function(){function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!t||!t.length){var o=new Error;throw o.name="InvalidMiddlewareChain",o.message="Please provide a default middleware chain or custom middleware chain",o}this.setMiddleware.apply(this,t)}return s(e,"HTTPClient"),e.prototype.setMiddleware=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];t.length>1?this.parseMiddleWareArray(t):this.middleware=t[0]},e.prototype.parseMiddleWareArray=function(t){t.forEach(function(n,o){o<t.length-1&&n.setNext(t[o+1])}),this.middleware=t[0]},e.prototype.sendRequest=function(t){return Fb.__awaiter(this,void 0,void 0,function(){var n;return Fb.__generator(this,function(o){switch(o.label){case 0:if(typeof t.request=="string"&&t.options===void 0)throw n=new Error,n.name="InvalidRequestOptions",n.message="Unable to execute the middleware, Please provide valid options for a request",n;return[4,this.middleware.execute(t)];case 1:return o.sent(),[2,t]}})})},e})();kc.HTTPClient=cz});var Vb=S(Dc=>{"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});Dc.HTTPClientFactory=void 0;var lz=(Ie(),Pe(Te)),Bb=mh(),pz=Xu(),dz=Yu(),fz=Ui(),mz=Ni(),hz=oc(),gz=tc(),yz=uc(),vz=s(function(){return typeof process=="object"&&typeof require=="function"},"isNodeEnvironment"),_z=(function(){function e(){}return s(e,"HTTPClientFactory"),e.createWithAuthenticationProvider=function(t){var n=new pz.AuthenticationHandler(t),o=new gz.RetryHandler(new mz.RetryHandlerOptions),r=new yz.TelemetryHandler,i=new dz.HTTPMessageHandler;if(n.setNext(o),vz()){var a=new hz.RedirectHandler(new fz.RedirectHandlerOptions);o.setNext(a),a.setNext(r)}else o.setNext(r);return r.setNext(i),e.createWithMiddleware(n)},e.createWithMiddleware=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new(Bb.HTTPClient.bind.apply(Bb.HTTPClient,lz.__spreadArray([void 0],t,!1)))},e})();Dc.HTTPClientFactory=_z});var Zb=S(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});Cc.validatePolyFilling=void 0;var Pz=s(function(){if(typeof Promise>"u"&&typeof fetch>"u"){var e=new Error("Library cannot function without Promise and fetch. So, please provide polyfill for them.");throw e.name="PolyFillNotAvailable",e}else if(typeof Promise>"u"){var e=new Error("Library cannot function without Promise. So, please provide polyfill for it.");throw e.name="PolyFillNotAvailable",e}else if(typeof fetch>"u"){var e=new Error("Library cannot function without fetch. So, please provide polyfill for it.");throw e.name="PolyFillNotAvailable",e}return!0},"validatePolyFilling");Cc.validatePolyFilling=Pz});var Gb=S(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.Client=void 0;var xz=(Ie(),Pe(Te)),Hb=Jm(),bz=lh(),Ez=fh(),qb=mh(),Tz=Vb(),Iz=Zb(),Sz=(function(){function e(t){this.config={baseUrl:Hb.GRAPH_BASE_URL,debugLogging:!1,defaultVersion:Hb.GRAPH_API_VERSION},(0,Iz.validatePolyFilling)();for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(this.config[n]=t[n]);var o;if(t.authProvider!==void 0&&t.middleware!==void 0){var r=new Error;throw r.name="AmbiguityInInitialization",r.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain not both",r}else if(t.authProvider!==void 0)o=Tz.HTTPClientFactory.createWithAuthenticationProvider(t.authProvider);else if(t.middleware!==void 0)o=new(qb.HTTPClient.bind.apply(qb.HTTPClient,xz.__spreadArray([void 0],[].concat(t.middleware),!1)));else{var r=new Error;throw r.name="InvalidMiddlewareChain",r.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain",r}this.httpClient=o}return s(e,"Client"),e.init=function(t){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=o==="authProvider"?new bz.CustomAuthenticationProvider(t[o]):t[o]);return e.initWithMiddleware(n)},e.initWithMiddleware=function(t){return new e(t)},e.prototype.api=function(t){return new Ez.GraphRequest(this.httpClient,this.config,t)},e})();Nc.Client=Sz});var ve=S(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.ResponseType=L.GraphRequest=L.GraphClientError=L.GraphError=L.CustomAuthenticationProvider=L.Client=L.PageIterator=L.Range=L.UploadResult=L.FileUpload=L.StreamUpload=L.getValidRangeSize=L.OneDriveLargeFileUploadTask=L.LargeFileUploadTask=L.ChaosHandler=L.ChaosStrategy=L.ChaosHandlerOptions=L.TelemetryHandlerOptions=L.FeatureUsageFlag=L.RedirectHandlerOptions=L.RetryHandlerOptions=L.AuthenticationHandlerOptions=L.MiddlewareFactory=L.TelemetryHandler=L.RedirectHandler=L.RetryHandler=L.HTTPMessageHandler=L.AuthenticationHandler=L.BatchResponseContent=L.BatchRequestContent=void 0;var Az=cb();Object.defineProperty(L,"BatchRequestContent",{enumerable:!0,get:s(function(){return Az.BatchRequestContent},"get")});var wz=lb();Object.defineProperty(L,"BatchResponseContent",{enumerable:!0,get:s(function(){return wz.BatchResponseContent},"get")});var $z=Xu();Object.defineProperty(L,"AuthenticationHandler",{enumerable:!0,get:s(function(){return $z.AuthenticationHandler},"get")});var Oz=Yu();Object.defineProperty(L,"HTTPMessageHandler",{enumerable:!0,get:s(function(){return Oz.HTTPMessageHandler},"get")});var Rz=tc();Object.defineProperty(L,"RetryHandler",{enumerable:!0,get:s(function(){return Rz.RetryHandler},"get")});var zz=oc();Object.defineProperty(L,"RedirectHandler",{enumerable:!0,get:s(function(){return zz.RedirectHandler},"get")});var kz=uc();Object.defineProperty(L,"TelemetryHandler",{enumerable:!0,get:s(function(){return kz.TelemetryHandler},"get")});var Dz=Ib();Object.defineProperty(L,"MiddlewareFactory",{enumerable:!0,get:s(function(){return Dz.MiddlewareFactory},"get")});var Cz=Xm();Object.defineProperty(L,"AuthenticationHandlerOptions",{enumerable:!0,get:s(function(){return Cz.AuthenticationHandlerOptions},"get")});var Nz=Ni();Object.defineProperty(L,"RetryHandlerOptions",{enumerable:!0,get:s(function(){return Nz.RetryHandlerOptions},"get")});var Uz=Ui();Object.defineProperty(L,"RedirectHandlerOptions",{enumerable:!0,get:s(function(){return Uz.RedirectHandlerOptions},"get")});var Wb=_n();Object.defineProperty(L,"FeatureUsageFlag",{enumerable:!0,get:s(function(){return Wb.FeatureUsageFlag},"get")});Object.defineProperty(L,"TelemetryHandlerOptions",{enumerable:!0,get:s(function(){return Wb.TelemetryHandlerOptions},"get")});var Mz=eh();Object.defineProperty(L,"ChaosHandlerOptions",{enumerable:!0,get:s(function(){return Mz.ChaosHandlerOptions},"get")});var Lz=pc();Object.defineProperty(L,"ChaosStrategy",{enumerable:!0,get:s(function(){return Lz.ChaosStrategy},"get")});var jz=Ob();Object.defineProperty(L,"ChaosHandler",{enumerable:!0,get:s(function(){return jz.ChaosHandler},"get")});var Fz=sh();Object.defineProperty(L,"LargeFileUploadTask",{enumerable:!0,get:s(function(){return Fz.LargeFileUploadTask},"get")});var Bz=Db();Object.defineProperty(L,"OneDriveLargeFileUploadTask",{enumerable:!0,get:s(function(){return Bz.OneDriveLargeFileUploadTask},"get")});var Vz=ch();Object.defineProperty(L,"getValidRangeSize",{enumerable:!0,get:s(function(){return Vz.getValidRangeSize},"get")});var Zz=Nb();Object.defineProperty(L,"StreamUpload",{enumerable:!0,get:s(function(){return Zz.StreamUpload},"get")});var Hz=uh();Object.defineProperty(L,"FileUpload",{enumerable:!0,get:s(function(){return Hz.FileUpload},"get")});var qz=ih();Object.defineProperty(L,"UploadResult",{enumerable:!0,get:s(function(){return qz.UploadResult},"get")});var Gz=oh();Object.defineProperty(L,"Range",{enumerable:!0,get:s(function(){return Gz.Range},"get")});var Wz=Ub();Object.defineProperty(L,"PageIterator",{enumerable:!0,get:s(function(){return Wz.PageIterator},"get")});var Jz=Gb();Object.defineProperty(L,"Client",{enumerable:!0,get:s(function(){return Jz.Client},"get")});var Xz=lh();Object.defineProperty(L,"CustomAuthenticationProvider",{enumerable:!0,get:s(function(){return Xz.CustomAuthenticationProvider},"get")});var Kz=ph();Object.defineProperty(L,"GraphError",{enumerable:!0,get:s(function(){return Kz.GraphError},"get")});var Yz=wt();Object.defineProperty(L,"GraphClientError",{enumerable:!0,get:s(function(){return Yz.GraphClientError},"get")});var Qz=fh();Object.defineProperty(L,"GraphRequest",{enumerable:!0,get:s(function(){return Qz.GraphRequest},"get")});var ek=Mi();Object.defineProperty(L,"ResponseType",{enumerable:!0,get:s(function(){return ek.ResponseType},"get")})});var In=S((yh,vh)=>{(function(e,t){typeof yh=="object"&&typeof vh<"u"?vh.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(yh,(function(){"use strict";var e=1e3,t=6e4,n=36e5,o="millisecond",r="second",i="minute",a="hour",u="day",c="week",l="month",d="quarter",g="year",h="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,P={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:s(function(G){var U=["th","st","nd","rd"],k=G%100;return"["+G+(U[(k-20)%10]||U[k]||U[0])+"]"},"ordinal")},E=s(function(G,U,k){var j=String(G);return!j||j.length>=U?G:""+Array(U+1-j.length).join(k)+G},"m"),T={s:E,z:s(function(G){var U=-G.utcOffset(),k=Math.abs(U),j=Math.floor(k/60),N=k%60;return(U<=0?"+":"-")+E(j,2,"0")+":"+E(N,2,"0")},"z"),m:s(function G(U,k){if(U.date()<k.date())return-G(k,U);var j=12*(k.year()-U.year())+(k.month()-U.month()),N=U.clone().add(j,l),ee=k-N<0,te=U.clone().add(j+(ee?-1:1),l);return+(-(j+(k-N)/(ee?N-te:te-N))||0)},"t"),a:s(function(G){return G<0?Math.ceil(G)||0:Math.floor(G)},"a"),p:s(function(G){return{M:l,y:g,w:c,d:u,D:h,h:a,m:i,s:r,ms:o,Q:d}[G]||String(G||"").toLowerCase().replace(/s$/,"")},"p"),u:s(function(G){return G===void 0},"u")},F="en",oe={};oe[F]=P;var me=s(function(G){return G instanceof Ge},"p"),qe=s(function G(U,k,j){var N;if(!U)return F;if(typeof U=="string"){var ee=U.toLowerCase();oe[ee]&&(N=ee),k&&(oe[ee]=k,N=ee);var te=U.split("-");if(!N&&te.length>1)return G(te[0])}else{var he=U.name;oe[he]=U,N=he}return!j&&N&&(F=N),N||!j&&F},"t"),Se=s(function(G,U){if(me(G))return G.clone();var k=typeof U=="object"?U:{};return k.date=G,k.args=arguments,new Ge(k)},"w"),re=T;re.l=qe,re.i=me,re.w=function(G,U){return Se(G,{locale:U.$L,utc:U.$u,x:U.$x,$offset:U.$offset})};var Ge=(function(){function G(k){this.$L=qe(k.locale,null,!0),this.parse(k)}s(G,"M");var U=G.prototype;return U.parse=function(k){this.$d=(function(j){var N=j.date,ee=j.utc;if(N===null)return new Date(NaN);if(re.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var te=N.match(m);if(te){var he=te[2]-1||0,we=(te[7]||"0").substring(0,3);return ee?new Date(Date.UTC(te[1],he,te[3]||1,te[4]||0,te[5]||0,te[6]||0,we)):new Date(te[1],he,te[3]||1,te[4]||0,te[5]||0,te[6]||0,we)}}return new Date(N)})(k),this.$x=k.x||{},this.init()},U.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},U.$utils=function(){return re},U.isValid=function(){return this.$d.toString()!==p},U.isSame=function(k,j){var N=Se(k);return this.startOf(j)<=N&&N<=this.endOf(j)},U.isAfter=function(k,j){return Se(k)<this.startOf(j)},U.isBefore=function(k,j){return this.endOf(j)<Se(k)},U.$g=function(k,j,N){return re.u(k)?this[j]:this.set(N,k)},U.unix=function(){return Math.floor(this.valueOf()/1e3)},U.valueOf=function(){return this.$d.getTime()},U.startOf=function(k,j){var N=this,ee=!!re.u(j)||j,te=re.p(k),he=s(function(Qt,We){var Rt=re.w(N.$u?Date.UTC(N.$y,We,Qt):new Date(N.$y,We,Qt),N);return ee?Rt:Rt.endOf(u)},"l"),we=s(function(Qt,We){return re.w(N.toDate()[Qt].apply(N.toDate("s"),(ee?[0,0,0,0]:[23,59,59,999]).slice(We)),N)},"$"),ze=this.$W,Le=this.$M,at=this.$D,Sr="set"+(this.$u?"UTC":"");switch(te){case g:return ee?he(1,0):he(31,11);case l:return ee?he(1,Le):he(0,Le+1);case c:var Yt=this.$locale().weekStart||0,Sn=(ze<Yt?ze+7:ze)-Yt;return he(ee?at-Sn:at+(6-Sn),Le);case u:case h:return we(Sr+"Hours",0);case a:return we(Sr+"Minutes",1);case i:return we(Sr+"Seconds",2);case r:return we(Sr+"Milliseconds",3);default:return this.clone()}},U.endOf=function(k){return this.startOf(k,!1)},U.$set=function(k,j){var N,ee=re.p(k),te="set"+(this.$u?"UTC":""),he=(N={},N[u]=te+"Date",N[h]=te+"Date",N[l]=te+"Month",N[g]=te+"FullYear",N[a]=te+"Hours",N[i]=te+"Minutes",N[r]=te+"Seconds",N[o]=te+"Milliseconds",N)[ee],we=ee===u?this.$D+(j-this.$W):j;if(ee===l||ee===g){var ze=this.clone().set(h,1);ze.$d[he](we),ze.init(),this.$d=ze.set(h,Math.min(this.$D,ze.daysInMonth())).$d}else he&&this.$d[he](we);return this.init(),this},U.set=function(k,j){return this.clone().$set(k,j)},U.get=function(k){return this[re.p(k)]()},U.add=function(k,j){var N,ee=this;k=Number(k);var te=re.p(j),he=s(function(Le){var at=Se(ee);return re.w(at.date(at.date()+Math.round(Le*k)),ee)},"y");if(te===l)return this.set(l,this.$M+k);if(te===g)return this.set(g,this.$y+k);if(te===u)return he(1);if(te===c)return he(7);var we=(N={},N[i]=t,N[a]=n,N[r]=e,N)[te]||1,ze=this.$d.getTime()+k*we;return re.w(ze,this)},U.subtract=function(k,j){return this.add(-1*k,j)},U.format=function(k){var j=this,N=this.$locale();if(!this.isValid())return N.invalidDate||p;var ee=k||"YYYY-MM-DDTHH:mm:ssZ",te=re.z(this),he=this.$H,we=this.$m,ze=this.$M,Le=N.weekdays,at=N.months,Sr=N.meridiem,Yt=s(function(We,Rt,An,Ji){return We&&(We[Rt]||We(j,ee))||An[Rt].slice(0,Ji)},"h"),Sn=s(function(We){return re.s(he%12||12,We,"0")},"d"),Qt=Sr||function(We,Rt,An){var Ji=We<12?"AM":"PM";return An?Ji.toLowerCase():Ji};return ee.replace(_,(function(We,Rt){return Rt||(function(An){switch(An){case"YY":return String(j.$y).slice(-2);case"YYYY":return re.s(j.$y,4,"0");case"M":return ze+1;case"MM":return re.s(ze+1,2,"0");case"MMM":return Yt(N.monthsShort,ze,at,3);case"MMMM":return Yt(at,ze);case"D":return j.$D;case"DD":return re.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return Yt(N.weekdaysMin,j.$W,Le,2);case"ddd":return Yt(N.weekdaysShort,j.$W,Le,3);case"dddd":return Le[j.$W];case"H":return String(he);case"HH":return re.s(he,2,"0");case"h":return Sn(1);case"hh":return Sn(2);case"a":return Qt(he,we,!0);case"A":return Qt(he,we,!1);case"m":return String(we);case"mm":return re.s(we,2,"0");case"s":return String(j.$s);case"ss":return re.s(j.$s,2,"0");case"SSS":return re.s(j.$ms,3,"0");case"Z":return te}return null})(We)||te.replace(":","")}))},U.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},U.diff=function(k,j,N){var ee,te=this,he=re.p(j),we=Se(k),ze=(we.utcOffset()-this.utcOffset())*t,Le=this-we,at=s(function(){return re.m(te,we)},"D");switch(he){case g:ee=at()/12;break;case l:ee=at();break;case d:ee=at()/3;break;case c:ee=(Le-ze)/6048e5;break;case u:ee=(Le-ze)/864e5;break;case a:ee=Le/n;break;case i:ee=Le/t;break;case r:ee=Le/e;break;default:ee=Le}return N?ee:re.a(ee)},U.daysInMonth=function(){return this.endOf(l).$D},U.$locale=function(){return oe[this.$L]},U.locale=function(k,j){if(!k)return this.$L;var N=this.clone(),ee=qe(k,j,!0);return ee&&(N.$L=ee),N},U.clone=function(){return re.w(this.$d,this)},U.toDate=function(){return new Date(this.valueOf())},U.toJSON=function(){return this.isValid()?this.toISOString():null},U.toISOString=function(){return this.$d.toISOString()},U.toString=function(){return this.$d.toUTCString()},G})(),Wi=Ge.prototype;return Se.prototype=Wi,[["$ms",o],["$s",r],["$m",i],["$H",a],["$W",u],["$M",l],["$y",g],["$D",h]].forEach((function(G){Wi[G[1]]=function(U){return this.$g(U,G[0],G[1])}})),Se.extend=function(G,U){return G.$i||(G(U,Ge,Se),G.$i=!0),Se},Se.locale=qe,Se.isDayjs=me,Se.unix=function(G){return Se(1e3*G)},Se.en=oe[F],Se.Ls=oe,Se.p={},Se}))});var ck={};tt(ck,{microsoftSharePoint:()=>uk});module.exports=Pe(ck);var nt={};tt(nt,{$ZodAny:()=>Gn,$ZodArray:()=>Kn,$ZodAsyncError:()=>dt,$ZodBase64:()=>Da,$ZodBase64URL:()=>Ca,$ZodBigInt:()=>jr,$ZodBigIntFormat:()=>La,$ZodBoolean:()=>or,$ZodCIDRv4:()=>za,$ZodCIDRv6:()=>ka,$ZodCUID:()=>Ta,$ZodCUID2:()=>Ia,$ZodCatch:()=>ts,$ZodCheck:()=>de,$ZodCheckBigIntFormat:()=>zl,$ZodCheckEndsWith:()=>Zl,$ZodCheckGreaterThan:()=>fa,$ZodCheckIncludes:()=>Bl,$ZodCheckLengthEquals:()=>Ml,$ZodCheckLessThan:()=>da,$ZodCheckLowerCase:()=>jl,$ZodCheckMaxLength:()=>Nl,$ZodCheckMaxSize:()=>kl,$ZodCheckMimeType:()=>ql,$ZodCheckMinLength:()=>Ul,$ZodCheckMinSize:()=>Dl,$ZodCheckMultipleOf:()=>Ol,$ZodCheckNumberFormat:()=>Rl,$ZodCheckOverwrite:()=>Gl,$ZodCheckProperty:()=>Hl,$ZodCheckRegex:()=>Ll,$ZodCheckSizeEquals:()=>Cl,$ZodCheckStartsWith:()=>Vl,$ZodCheckStringFormat:()=>Mr,$ZodCheckUpperCase:()=>Fl,$ZodCodec:()=>Br,$ZodCustom:()=>ao,$ZodCustomStringFormat:()=>Ma,$ZodDate:()=>Xn,$ZodDefault:()=>Ka,$ZodDiscriminatedUnion:()=>Yn,$ZodE164:()=>Na,$ZodEmail:()=>xa,$ZodEmoji:()=>ba,$ZodEncodeError:()=>zt,$ZodEnum:()=>to,$ZodError:()=>Un,$ZodExactOptional:()=>Xa,$ZodFile:()=>Ja,$ZodFunction:()=>is,$ZodGUID:()=>_a,$ZodIPv4:()=>$a,$ZodIPv6:()=>Oa,$ZodISODate:()=>Vn,$ZodISODateTime:()=>Bn,$ZodISODuration:()=>Hn,$ZodISOTime:()=>Zn,$ZodIntersection:()=>qa,$ZodJWT:()=>Ua,$ZodKSUID:()=>wa,$ZodLazy:()=>ss,$ZodLiteral:()=>ro,$ZodMAC:()=>Ra,$ZodMap:()=>Ga,$ZodNaN:()=>rs,$ZodNanoID:()=>Ea,$ZodNever:()=>Va,$ZodNonOptional:()=>Qa,$ZodNull:()=>Ba,$ZodNullable:()=>oo,$ZodNumber:()=>Lr,$ZodNumberFormat:()=>qn,$ZodObject:()=>Za,$ZodObjectJIT:()=>Kl,$ZodOptional:()=>Fr,$ZodPipe:()=>io,$ZodPrefault:()=>Ya,$ZodPromise:()=>as,$ZodReadonly:()=>ns,$ZodRealError:()=>Xe,$ZodRecord:()=>eo,$ZodRegistry:()=>us,$ZodSet:()=>Wa,$ZodString:()=>Pt,$ZodStringFormat:()=>le,$ZodSuccess:()=>es,$ZodSymbol:()=>ja,$ZodTemplateLiteral:()=>os,$ZodTransform:()=>no,$ZodTuple:()=>Qn,$ZodType:()=>H,$ZodULID:()=>Sa,$ZodURL:()=>Fn,$ZodUUID:()=>Pa,$ZodUndefined:()=>Fa,$ZodUnion:()=>ir,$ZodUnknown:()=>Wn,$ZodVoid:()=>Jn,$ZodXID:()=>Aa,$ZodXor:()=>Ha,$brand:()=>On,$constructor:()=>y,$input:()=>ls,$output:()=>cs,Doc:()=>jn,JSONSchema:()=>mg,JSONSchemaGenerator:()=>Ds,NEVER:()=>Xi,TimePrecision:()=>ds,_any:()=>Ho,_array:()=>Zp,_base64:()=>Ro,_base64url:()=>zo,_bigint:()=>ys,_boolean:()=>Bo,_catch:()=>XI,_check:()=>fg,_cidrv4:()=>$o,_cidrv6:()=>Oo,_coercedBigint:()=>Zo,_coercedBoolean:()=>Vo,_coercedDate:()=>Wo,_coercedNumber:()=>jo,_coercedString:()=>mo,_cuid:()=>bo,_cuid2:()=>Eo,_custom:()=>ei,_date:()=>Ts,_decode:()=>na,_decodeAsync:()=>ia,_default:()=>GI,_discriminatedUnion:()=>CI,_e164:()=>ko,_email:()=>ho,_emoji:()=>Po,_encode:()=>ra,_encodeAsync:()=>oa,_endsWith:()=>pr,_enum:()=>FI,_file:()=>Ss,_float32:()=>fs,_float64:()=>ms,_gt:()=>mt,_gte:()=>Re,_guid:()=>Hr,_includes:()=>cr,_int:()=>Fo,_int32:()=>hs,_int64:()=>vs,_intersection:()=>NI,_ipv4:()=>Ao,_ipv6:()=>wo,_isoDate:()=>No,_isoDateTime:()=>Co,_isoDuration:()=>Mo,_isoTime:()=>Uo,_jwt:()=>Do,_ksuid:()=>So,_lazy:()=>eS,_length:()=>Lt,_literal:()=>VI,_lowercase:()=>sr,_lt:()=>ft,_lte:()=>Be,_mac:()=>ps,_map:()=>LI,_max:()=>Be,_maxLength:()=>Mt,_maxSize:()=>bt,_mime:()=>dr,_min:()=>Re,_minLength:()=>$e,_minSize:()=>ht,_multipleOf:()=>xt,_nan:()=>Is,_nanoid:()=>xo,_nativeEnum:()=>BI,_negative:()=>Xo,_never:()=>Es,_nonnegative:()=>Yo,_nonoptional:()=>WI,_nonpositive:()=>Ko,_normalize:()=>fr,_null:()=>bs,_nullable:()=>qI,_number:()=>Lo,_optional:()=>HI,_overwrite:()=>ut,_parse:()=>zr,_parseAsync:()=>kr,_pipe:()=>KI,_positive:()=>Jo,_promise:()=>tS,_property:()=>Qo,_readonly:()=>YI,_record:()=>MI,_refine:()=>ti,_regex:()=>Ue,_safeDecode:()=>sa,_safeDecodeAsync:()=>ca,_safeEncode:()=>aa,_safeEncodeAsync:()=>ua,_safeParse:()=>Dr,_safeParseAsync:()=>Nr,_set:()=>jI,_size:()=>Ut,_slugify:()=>qr,_startsWith:()=>lr,_string:()=>fo,_stringFormat:()=>yr,_stringbool:()=>Os,_success:()=>JI,_superRefine:()=>As,_symbol:()=>Ps,_templateLiteral:()=>QI,_toLowerCase:()=>hr,_toUpperCase:()=>gr,_transform:()=>ZI,_trim:()=>mr,_tuple:()=>UI,_uint32:()=>gs,_uint64:()=>_s,_ulid:()=>To,_undefined:()=>xs,_union:()=>kI,_unknown:()=>qo,_uppercase:()=>ur,_url:()=>ar,_uuid:()=>go,_uuidv4:()=>yo,_uuidv6:()=>vo,_uuidv7:()=>_o,_void:()=>Go,_xid:()=>Io,_xor:()=>DI,clone:()=>ke,config:()=>xe,createStandardJSONSchemaMethod:()=>Gr,createToJSONSchemaMethod:()=>Hp,decode:()=>Dh,decodeAsync:()=>Nh,describe:()=>ws,encode:()=>kh,encodeAsync:()=>Ch,extractDefs:()=>Ft,finalize:()=>Bt,flattenError:()=>Or,formatError:()=>Rr,globalConfig:()=>$n,globalRegistry:()=>De,initializeContext:()=>jt,isValidBase64:()=>Xl,isValidBase64URL:()=>og,isValidJWT:()=>ig,locales:()=>Zr,meta:()=>$s,parse:()=>tr,parseAsync:()=>rr,prettifyError:()=>ta,process:()=>pe,regexes:()=>Ke,registry:()=>po,safeDecode:()=>Mh,safeDecodeAsync:()=>jh,safeEncode:()=>Uh,safeEncodeAsync:()=>Lh,safeParse:()=>Cr,safeParseAsync:()=>Ur,toDotPath:()=>zh,toJSONSchema:()=>ri,treeifyError:()=>ea,util:()=>w,version:()=>Wl});var Xi=Object.freeze({status:"aborted"});function y(e,t,n){function o(u,c){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:c,constr:a,traits:new Set},enumerable:!1}),u._zod.traits.has(e))return;u._zod.traits.add(e),t(u,c);let l=a.prototype,d=Object.keys(l);for(let g=0;g<d.length;g++){let h=d[g];h in u||(u[h]=l[h].bind(u))}}s(o,"init");let r=n?.Parent??Object;class i extends r{static{s(this,"Definition")}}Object.defineProperty(i,"name",{value:e});function a(u){var c;let l=n?.Parent?new i:this;o(l,u),(c=l._zod).deferred??(c.deferred=[]);for(let d of l._zod.deferred)d();return l}return s(a,"_"),Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:s(u=>n?.Parent&&u instanceof n.Parent?!0:u?._zod?.traits?.has(e),"value")}),Object.defineProperty(a,"name",{value:e}),a}s(y,"$constructor");var On=Symbol("zod_brand"),dt=class extends Error{static{s(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},zt=class extends Error{static{s(this,"$ZodEncodeError")}constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},$n={};function xe(e){return e&&Object.assign($n,e),$n}s(xe,"config");var w={};tt(w,{BIGINT_FORMAT_RANGES:()=>tl,Class:()=>Wc,NUMBER_FORMAT_RANGES:()=>el,aborted:()=>Nt,allowsEval:()=>Kc,assert:()=>JE,assertEqual:()=>HE,assertIs:()=>GE,assertNever:()=>WE,assertNotEqual:()=>qE,assignProp:()=>Dt,base64ToUint8Array:()=>$h,base64urlToUint8Array:()=>aT,cached:()=>wr,captureStackTrace:()=>Yi,cleanEnum:()=>iT,cleanRegex:()=>kn,clone:()=>ke,cloneDef:()=>KE,createTransparentProxy:()=>nT,defineLazy:()=>K,esc:()=>Ki,escapeRegex:()=>st,extend:()=>Ih,finalizeIssue:()=>Je,floatSafeRemainder:()=>Jc,getElementAtPath:()=>YE,getEnumValues:()=>zn,getLengthableOrigin:()=>Nn,getParsedType:()=>rT,getSizableOrigin:()=>Cn,hexToUint8Array:()=>uT,isObject:()=>er,isPlainObject:()=>Ct,issue:()=>$r,joinValues:()=>b,jsonStringifyReplacer:()=>Ar,merge:()=>oT,mergeDefs:()=>_t,normalizeParams:()=>I,nullish:()=>kt,numKeys:()=>tT,objectClone:()=>XE,omit:()=>Th,optionalKeys:()=>Qc,parsedType:()=>$,partial:()=>Ah,pick:()=>Eh,prefixIssues:()=>rt,primitiveTypes:()=>Yc,promiseAllObject:()=>QE,propertyKeyTypes:()=>Dn,randomString:()=>eT,required:()=>wh,safeExtend:()=>Sh,shallowClone:()=>Qi,slugify:()=>Xc,stringifyPrimitive:()=>A,uint8ArrayToBase64:()=>Oh,uint8ArrayToBase64url:()=>sT,uint8ArrayToHex:()=>cT,unwrapMessage:()=>Rn});function HE(e){return e}s(HE,"assertEqual");function qE(e){return e}s(qE,"assertNotEqual");function GE(e){}s(GE,"assertIs");function WE(e){throw new Error("Unexpected value in exhaustive check")}s(WE,"assertNever");function JE(e){}s(JE,"assert");function zn(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,r])=>t.indexOf(+o)===-1).map(([o,r])=>r)}s(zn,"getEnumValues");function b(e,t="|"){return e.map(n=>A(n)).join(t)}s(b,"joinValues");function Ar(e,t){return typeof t=="bigint"?t.toString():t}s(Ar,"jsonStringifyReplacer");function wr(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}s(wr,"cached");function kt(e){return e==null}s(kt,"nullish");function kn(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}s(kn,"cleanRegex");function Jc(e,t){let n=(e.toString().split(".")[1]||"").length,o=t.toString(),r=(o.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(o)){let c=o.match(/\d?e-(\d?)/);c?.[1]&&(r=Number.parseInt(c[1]))}let i=n>r?n:r,a=Number.parseInt(e.toFixed(i).replace(".","")),u=Number.parseInt(t.toFixed(i).replace(".",""));return a%u/10**i}s(Jc,"floatSafeRemainder");var bh=Symbol("evaluating");function K(e,t,n){let o;Object.defineProperty(e,t,{get(){if(o!==bh)return o===void 0&&(o=bh,o=n()),o},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}s(K,"defineLazy");function XE(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}s(XE,"objectClone");function Dt(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}s(Dt,"assignProp");function _t(...e){let t={};for(let n of e){let o=Object.getOwnPropertyDescriptors(n);Object.assign(t,o)}return Object.defineProperties({},t)}s(_t,"mergeDefs");function KE(e){return _t(e._zod.def)}s(KE,"cloneDef");function YE(e,t){return t?t.reduce((n,o)=>n?.[o],e):e}s(YE,"getElementAtPath");function QE(e){let t=Object.keys(e),n=t.map(o=>e[o]);return Promise.all(n).then(o=>{let r={};for(let i=0;i<t.length;i++)r[t[i]]=o[i];return r})}s(QE,"promiseAllObject");function eT(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let o=0;o<e;o++)n+=t[Math.floor(Math.random()*t.length)];return n}s(eT,"randomString");function Ki(e){return JSON.stringify(e)}s(Ki,"esc");function Xc(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}s(Xc,"slugify");var Yi="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function er(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}s(er,"isObject");var Kc=wr(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Ct(e){if(er(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(er(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}s(Ct,"isPlainObject");function Qi(e){return Ct(e)?{...e}:Array.isArray(e)?[...e]:e}s(Qi,"shallowClone");function tT(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}s(tT,"numKeys");var rT=s(e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},"getParsedType"),Dn=new Set(["string","number","symbol"]),Yc=new Set(["string","number","bigint","boolean","symbol","undefined"]);function st(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}s(st,"escapeRegex");function ke(e,t,n){let o=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(o._zod.parent=e),o}s(ke,"clone");function I(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:s(()=>t,"error")};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:s(()=>t.error,"error")}:t}s(I,"normalizeParams");function nT(e){let t;return new Proxy({},{get(n,o,r){return t??(t=e()),Reflect.get(t,o,r)},set(n,o,r,i){return t??(t=e()),Reflect.set(t,o,r,i)},has(n,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(n,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(n,o,r){return t??(t=e()),Reflect.defineProperty(t,o,r)}})}s(nT,"createTransparentProxy");function A(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}s(A,"stringifyPrimitive");function Qc(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}s(Qc,"optionalKeys");var el={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]},tl={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Eh(e,t){let n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=_t(e._zod.def,{get shape(){let a={};for(let u in t){if(!(u in n.shape))throw new Error(`Unrecognized key: "${u}"`);t[u]&&(a[u]=n.shape[u])}return Dt(this,"shape",a),a},checks:[]});return ke(e,i)}s(Eh,"pick");function Th(e,t){let n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=_t(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let u in t){if(!(u in n.shape))throw new Error(`Unrecognized key: "${u}"`);t[u]&&delete a[u]}return Dt(this,"shape",a),a},checks:[]});return ke(e,i)}s(Th,"omit");function Ih(e,t){if(!Ct(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let i=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let r=_t(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return Dt(this,"shape",i),i}});return ke(e,r)}s(Ih,"extend");function Sh(e,t){if(!Ct(t))throw new Error("Invalid input to safeExtend: expected a plain object");let n=_t(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return Dt(this,"shape",o),o}});return ke(e,n)}s(Sh,"safeExtend");function oT(e,t){let n=_t(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return Dt(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:[]});return ke(e,n)}s(oT,"merge");function Ah(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=_t(t._zod.def,{get shape(){let u=t._zod.def.shape,c={...u};if(n)for(let l in n){if(!(l in u))throw new Error(`Unrecognized key: "${l}"`);n[l]&&(c[l]=e?new e({type:"optional",innerType:u[l]}):u[l])}else for(let l in u)c[l]=e?new e({type:"optional",innerType:u[l]}):u[l];return Dt(this,"shape",c),c},checks:[]});return ke(t,a)}s(Ah,"partial");function wh(e,t,n){let o=_t(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let a in n){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(i[a]=new e({type:"nonoptional",innerType:r[a]}))}else for(let a in r)i[a]=new e({type:"nonoptional",innerType:r[a]});return Dt(this,"shape",i),i}});return ke(t,o)}s(wh,"required");function Nt(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}s(Nt,"aborted");function rt(e,t){return t.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}s(rt,"prefixIssues");function Rn(e){return typeof e=="string"?e:e?.message}s(Rn,"unwrapMessage");function Je(e,t,n){let o={...e,path:e.path??[]};if(!e.message){let r=Rn(e.inst?._zod.def?.error?.(e))??Rn(t?.error?.(e))??Rn(n.customError?.(e))??Rn(n.localeError?.(e))??"Invalid input";o.message=r}return delete o.inst,delete o.continue,t?.reportInput||delete o.input,o}s(Je,"finalizeIssue");function Cn(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}s(Cn,"getSizableOrigin");function Nn(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}s(Nn,"getLengthableOrigin");function $(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}s($,"parsedType");function $r(...e){let[t,n,o]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:o}:{...t}}s($r,"issue");function iT(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}s(iT,"cleanEnum");function $h(e){let t=atob(e),n=new Uint8Array(t.length);for(let o=0;o<t.length;o++)n[o]=t.charCodeAt(o);return n}s($h,"base64ToUint8Array");function Oh(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}s(Oh,"uint8ArrayToBase64");function aT(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return $h(t+n)}s(aT,"base64urlToUint8Array");function sT(e){return Oh(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}s(sT,"uint8ArrayToBase64url");function uT(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let o=0;o<t.length;o+=2)n[o/2]=Number.parseInt(t.slice(o,o+2),16);return n}s(uT,"hexToUint8Array");function cT(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}s(cT,"uint8ArrayToHex");var Wc=class{static{s(this,"Class")}constructor(...t){}};var Rh=s((e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Ar,2),Object.defineProperty(e,"toString",{value:s(()=>e.message,"value"),enumerable:!1})},"initializer"),Un=y("$ZodError",Rh),Xe=y("$ZodError",Rh,{Parent:Error});function Or(e,t=n=>n.message){let n={},o=[];for(let r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):o.push(t(r));return{formErrors:o,fieldErrors:n}}s(Or,"flattenError");function Rr(e,t=n=>n.message){let n={_errors:[]},o=s(r=>{for(let i of r.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>o({issues:a}));else if(i.code==="invalid_key")o({issues:i.issues});else if(i.code==="invalid_element")o({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let a=n,u=0;for(;u<i.path.length;){let c=i.path[u];u===i.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(t(i))):a[c]=a[c]||{_errors:[]},a=a[c],u++}}},"processError");return o(e),n}s(Rr,"formatError");function ea(e,t=n=>n.message){let n={errors:[]},o=s((r,i=[])=>{var a,u;for(let c of r.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(l=>o({issues:l},c.path));else if(c.code==="invalid_key")o({issues:c.issues},c.path);else if(c.code==="invalid_element")o({issues:c.issues},c.path);else{let l=[...i,...c.path];if(l.length===0){n.errors.push(t(c));continue}let d=n,g=0;for(;g<l.length;){let h=l[g],p=g===l.length-1;typeof h=="string"?(d.properties??(d.properties={}),(a=d.properties)[h]??(a[h]={errors:[]}),d=d.properties[h]):(d.items??(d.items=[]),(u=d.items)[h]??(u[h]={errors:[]}),d=d.items[h]),p&&d.errors.push(t(c)),g++}}},"processError");return o(e),n}s(ea,"treeifyError");function zh(e){let t=[],n=e.map(o=>typeof o=="object"?o.key:o);for(let o of n)typeof o=="number"?t.push(`[${o}]`):typeof o=="symbol"?t.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?t.push(`[${JSON.stringify(o)}]`):(t.length&&t.push("."),t.push(o));return t.join("")}s(zh,"toDotPath");function ta(e){let t=[],n=[...e.issues].sort((o,r)=>(o.path??[]).length-(r.path??[]).length);for(let o of n)t.push(`\u2716 ${o.message}`),o.path?.length&&t.push(` \u2192 at ${zh(o.path)}`);return t.join(`
|
|
6
|
-
`)}s(ta,"prettifyError");var zr=s(e=>(t,n,o,r)=>{let i=o?Object.assign(o,{async:!1}):{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new dt;if(a.issues.length){let u=new(r?.Err??e)(a.issues.map(c=>Je(c,i,xe())));throw Yi(u,r?.callee),u}return a.value},"_parse"),tr=zr(Xe),kr=s(e=>async(t,n,o,r)=>{let i=o?Object.assign(o,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let u=new(r?.Err??e)(a.issues.map(c=>Je(c,i,xe())));throw Yi(u,r?.callee),u}return a.value},"_parseAsync"),rr=kr(Xe),Dr=s(e=>(t,n,o)=>{let r=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},r);if(i instanceof Promise)throw new dt;return i.issues.length?{success:!1,error:new(e??Un)(i.issues.map(a=>Je(a,r,xe())))}:{success:!0,data:i.value}},"_safeParse"),Cr=Dr(Xe),Nr=s(e=>async(t,n,o)=>{let r=o?Object.assign(o,{async:!0}):{async:!0},i=t._zod.run({value:n,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>Je(a,r,xe())))}:{success:!0,data:i.value}},"_safeParseAsync"),Ur=Nr(Xe),ra=s(e=>(t,n,o)=>{let r=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return zr(e)(t,n,r)},"_encode"),kh=ra(Xe),na=s(e=>(t,n,o)=>zr(e)(t,n,o),"_decode"),Dh=na(Xe),oa=s(e=>async(t,n,o)=>{let r=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return kr(e)(t,n,r)},"_encodeAsync"),Ch=oa(Xe),ia=s(e=>async(t,n,o)=>kr(e)(t,n,o),"_decodeAsync"),Nh=ia(Xe),aa=s(e=>(t,n,o)=>{let r=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Dr(e)(t,n,r)},"_safeEncode"),Uh=aa(Xe),sa=s(e=>(t,n,o)=>Dr(e)(t,n,o),"_safeDecode"),Mh=sa(Xe),ua=s(e=>async(t,n,o)=>{let r=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Nr(e)(t,n,r)},"_safeEncodeAsync"),Lh=ua(Xe),ca=s(e=>async(t,n,o)=>Nr(e)(t,n,o),"_safeDecodeAsync"),jh=ca(Xe);var Ke={};tt(Ke,{base64:()=>yl,base64url:()=>la,bigint:()=>El,boolean:()=>Il,browserEmail:()=>vT,cidrv4:()=>hl,cidrv6:()=>gl,cuid:()=>rl,cuid2:()=>nl,date:()=>_l,datetime:()=>xl,domain:()=>xT,duration:()=>ul,e164:()=>vl,email:()=>ll,emoji:()=>pl,extendedDuration:()=>pT,guid:()=>cl,hex:()=>bT,hostname:()=>PT,html5Email:()=>hT,idnEmail:()=>yT,integer:()=>Tl,ipv4:()=>dl,ipv6:()=>fl,ksuid:()=>al,lowercase:()=>wl,mac:()=>ml,md5_base64:()=>TT,md5_base64url:()=>IT,md5_hex:()=>ET,nanoid:()=>sl,null:()=>Sl,number:()=>pa,rfc5322Email:()=>gT,sha1_base64:()=>AT,sha1_base64url:()=>wT,sha1_hex:()=>ST,sha256_base64:()=>OT,sha256_base64url:()=>RT,sha256_hex:()=>$T,sha384_base64:()=>kT,sha384_base64url:()=>DT,sha384_hex:()=>zT,sha512_base64:()=>NT,sha512_base64url:()=>UT,sha512_hex:()=>CT,string:()=>bl,time:()=>Pl,ulid:()=>ol,undefined:()=>Al,unicodeEmail:()=>Fh,uppercase:()=>$l,uuid:()=>nr,uuid4:()=>dT,uuid6:()=>fT,uuid7:()=>mT,xid:()=>il});var rl=/^[cC][^\s-]{8,}$/,nl=/^[0-9a-z]+$/,ol=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,il=/^[0-9a-vA-V]{20}$/,al=/^[A-Za-z0-9]{27}$/,sl=/^[a-zA-Z0-9_-]{21}$/,ul=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,pT=/^[-+]?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)?)??$/,cl=/^([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})$/,nr=s(e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,"uuid"),dT=nr(4),fT=nr(6),mT=nr(7),ll=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,hT=/^[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])?)*$/,gT=/^(([^<>()\[\]\\.,;:\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,}))$/,Fh=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,yT=Fh,vT=/^[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])?)*$/,_T="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function pl(){return new RegExp(_T,"u")}s(pl,"emoji");var dl=/^(?:(?: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])$/,fl=/^(([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}|:))$/,ml=s(e=>{let t=st(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},"mac"),hl=/^((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])$/,gl=/^(([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])$/,yl=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,la=/^[A-Za-z0-9_-]*$/,PT=/^(?=.{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])?)*\.?$/,xT=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,vl=/^\+[1-9]\d{6,14}$/,Bh="(?:(?:\\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])))",_l=new RegExp(`^${Bh}$`);function Vh(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}s(Vh,"timeSource");function Pl(e){return new RegExp(`^${Vh(e)}$`)}s(Pl,"time");function xl(e){let t=Vh({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${t}(?:${n.join("|")})`;return new RegExp(`^${Bh}T(?:${o})$`)}s(xl,"datetime");var bl=s(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},"string"),El=/^-?\d+n?$/,Tl=/^-?\d+$/,pa=/^-?\d+(?:\.\d+)?$/,Il=/^(?:true|false)$/i,Sl=/^null$/i;var Al=/^undefined$/i;var wl=/^[^A-Z]*$/,$l=/^[^a-z]*$/,bT=/^[0-9a-fA-F]*$/;function Mn(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}s(Mn,"fixedBase64");function Ln(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}s(Ln,"fixedBase64url");var ET=/^[0-9a-fA-F]{32}$/,TT=Mn(22,"=="),IT=Ln(22),ST=/^[0-9a-fA-F]{40}$/,AT=Mn(27,"="),wT=Ln(27),$T=/^[0-9a-fA-F]{64}$/,OT=Mn(43,"="),RT=Ln(43),zT=/^[0-9a-fA-F]{96}$/,kT=Mn(64,""),DT=Ln(64),CT=/^[0-9a-fA-F]{128}$/,NT=Mn(86,"=="),UT=Ln(86);var de=y("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Hh={number:"number",bigint:"bigint",object:"date"},da=y("$ZodCheckLessThan",(e,t)=>{de.init(e,t);let n=Hh[typeof t.value];e._zod.onattach.push(o=>{let r=o._zod.bag,i=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),fa=y("$ZodCheckGreaterThan",(e,t)=>{de.init(e,t);let n=Hh[typeof t.value];e._zod.onattach.push(o=>{let r=o._zod.bag,i=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ol=y("$ZodCheckMultipleOf",(e,t)=>{de.init(e,t),e._zod.onattach.push(n=>{var o;(o=n._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Jc(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Rl=y("$ZodCheckNumberFormat",(e,t)=>{de.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),o=n?"int":"number",[r,i]=el[t.format];e._zod.onattach.push(a=>{let u=a._zod.bag;u.format=t.format,u.minimum=r,u.maximum=i,n&&(u.pattern=Tl)}),e._zod.check=a=>{let u=a.value;if(n){if(!Number.isInteger(u)){a.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:u,inst:e});return}if(!Number.isSafeInteger(u)){u>0?a.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):a.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}u<r&&a.issues.push({origin:"number",input:u,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),u>i&&a.issues.push({origin:"number",input:u,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),zl=y("$ZodCheckBigIntFormat",(e,t)=>{de.init(e,t);let[n,o]=tl[t.format];e._zod.onattach.push(r=>{let i=r._zod.bag;i.format=t.format,i.minimum=n,i.maximum=o}),e._zod.check=r=>{let i=r.value;i<n&&r.issues.push({origin:"bigint",input:i,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),i>o&&r.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),kl=y("$ZodCheckMaxSize",(e,t)=>{var n;de.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!kt(r)&&r.size!==void 0}),e._zod.onattach.push(o=>{let r=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let r=o.value;r.size<=t.maximum||o.issues.push({origin:Cn(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Dl=y("$ZodCheckMinSize",(e,t)=>{var n;de.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!kt(r)&&r.size!==void 0}),e._zod.onattach.push(o=>{let r=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let r=o.value;r.size>=t.minimum||o.issues.push({origin:Cn(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Cl=y("$ZodCheckSizeEquals",(e,t)=>{var n;de.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!kt(r)&&r.size!==void 0}),e._zod.onattach.push(o=>{let r=o._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=o=>{let r=o.value,i=r.size;if(i===t.size)return;let a=i>t.size;o.issues.push({origin:Cn(r),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Nl=y("$ZodCheckMaxLength",(e,t)=>{var n;de.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!kt(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{let r=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let r=o.value;if(r.length<=t.maximum)return;let a=Nn(r);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ul=y("$ZodCheckMinLength",(e,t)=>{var n;de.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!kt(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{let r=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let r=o.value;if(r.length>=t.minimum)return;let a=Nn(r);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ml=y("$ZodCheckLengthEquals",(e,t)=>{var n;de.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!kt(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{let r=o._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=o=>{let r=o.value,i=r.length;if(i===t.length)return;let a=Nn(r),u=i>t.length;o.issues.push({origin:a,...u?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Mr=y("$ZodCheckStringFormat",(e,t)=>{var n,o;de.init(e,t),e._zod.onattach.push(r=>{let i=r._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),Ll=y("$ZodCheckRegex",(e,t)=>{Mr.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),jl=y("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=wl),Mr.init(e,t)}),Fl=y("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=$l),Mr.init(e,t)}),Bl=y("$ZodCheckIncludes",(e,t)=>{de.init(e,t);let n=st(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=o,e._zod.onattach.push(r=>{let i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Vl=y("$ZodCheckStartsWith",(e,t)=>{de.init(e,t);let n=new RegExp(`^${st(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{let r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),Zl=y("$ZodCheckEndsWith",(e,t)=>{de.init(e,t);let n=new RegExp(`.*${st(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{let r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function Zh(e,t,n){e.issues.length&&t.issues.push(...rt(n,e.issues))}s(Zh,"handleCheckPropertyResult");var Hl=y("$ZodCheckProperty",(e,t)=>{de.init(e,t),e._zod.check=n=>{let o=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then(r=>Zh(r,n,t.property));Zh(o,n,t.property)}}),ql=y("$ZodCheckMimeType",(e,t)=>{de.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=t.mime}),e._zod.check=o=>{n.has(o.value.type)||o.issues.push({code:"invalid_value",values:t.mime,input:o.value.type,inst:e,continue:!t.abort})}}),Gl=y("$ZodCheckOverwrite",(e,t)=>{de.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var jn=class{static{s(this,"Doc")}constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let o=t.split(`
|
|
5
|
+
3. Same - all individual requests that state a dependency in the dependsOn property, state the same dependency.`),u.name="Invalid Dependency",u;c.label=1;case 1:return r.done?[3,3]:(i=r.value[1],[4,e.getRequestData(i.request)]);case 2:if(a=c.sent(),a.body!==void 0&&(a.headers===void 0||a.headers["content-type"]===void 0))throw u=new Error("Content-type header is not mentioned for request #".concat(i.id,", For request having body, Content-type header should be mentioned")),u.name="Invalid Content-type header",u;return a.id=i.id,i.dependsOn!==void 0&&i.dependsOn.length>0&&(a.dependsOn=i.dependsOn),t.push(a),r=o.next(),[3,1];case 3:return n.requests=t,[2,n]}})})},e.prototype.addDependency=function(t,n){if(!this.requests.has(t)){var o=new Error("Dependent ".concat(t," does not exists, Please check the id"));throw o.name="Invalid Dependent",o}if(typeof n<"u"&&!this.requests.has(n)){var o=new Error("Dependency ".concat(n," does not exists, Please check the id"));throw o.name="Invalid Dependency",o}if(typeof n<"u"){var r=this.requests.get(t);if(r.dependsOn===void 0&&(r.dependsOn=[]),r.dependsOn.indexOf(n)!==-1){var o=new Error("Dependency ".concat(n," is already added for the request ").concat(t));throw o.name="Duplicate Dependency",o}r.dependsOn.push(n)}else{for(var i=this.requests.entries(),a=void 0,u=i.next();!u.done&&u.value[1].id!==t;)a=u,u=i.next();if(typeof a<"u"){var c=a.value[0];if(u.value[1].dependsOn===void 0&&(u.value[1].dependsOn=[]),u.value[1].dependsOn.indexOf(c)!==-1){var o=new Error("Dependency ".concat(c," is already added for the request ").concat(t));throw o.name="Duplicate Dependency",o}u.value[1].dependsOn.push(c)}else{var o=new Error("Can't add dependency ".concat(n,", There is only a dependent request in the batch"));throw o.name="Invalid Dependency Addition",o}}},e.prototype.removeDependency=function(t,n){var o=this.requests.get(t);if(typeof o>"u"||o.dependsOn===void 0||o.dependsOn.length===0)return!1;if(typeof n<"u"){var r=o.dependsOn.indexOf(n);return r===-1?!1:(o.dependsOn.splice(r,1),!0)}else return delete o.dependsOn,!0},e.requestLimit=20,e})();Zu.BatchRequestContent=eR});var gb=S(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.BatchResponseContent=void 0;var tR=(Ie(),Pe(Te)),rR=(function(){function e(t){this.responses=new Map,this.update(t)}return s(e,"BatchResponseContent"),e.prototype.createResponseObject=function(t){var n=t.body,o={};if(o.status=t.status,t.statusText!==void 0&&(o.statusText=t.statusText),o.headers=t.headers,o.headers!==void 0&&o.headers["Content-Type"]!==void 0&&o.headers["Content-Type"].split(";")[0]==="application/json"){var r=JSON.stringify(n);return new Response(r,o)}return new Response(n,o)},e.prototype.update=function(t){this.nextLink=t["@odata.nextLink"];for(var n=t.responses,o=0,r=n.length;o<r;o++)this.responses.set(n[o].id,this.createResponseObject(n[o]))},e.prototype.getResponseById=function(t){return this.responses.get(t)},e.prototype.getResponses=function(){return this.responses},e.prototype.getResponsesIterator=function(){var t,n;return tR.__generator(this,function(o){switch(o.label){case 0:t=this.responses.entries(),n=t.next(),o.label=1;case 1:return n.done?[3,3]:[4,n.value];case 2:return o.sent(),n=t.next(),[3,1];case 3:return[2]}})},e})();Hu.BatchResponseContent=rR});var Qm=S(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.GRAPH_URLS=Kt.GRAPH_BASE_URL=Kt.GRAPH_API_VERSION=void 0;Kt.GRAPH_API_VERSION="v1.0";Kt.GRAPH_BASE_URL="https://graph.microsoft.com/";Kt.GRAPH_URLS=new Set(["graph.microsoft.com","graph.microsoft.us","dod-graph.microsoft.us","graph.microsoft.de","microsoftgraph.chinacloudapi.cn","canary.graph.microsoft.com"])});var wt=S(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.GraphClientError=void 0;var nR=(Ie(),Pe(Te)),oR=(function(e){nR.__extends(t,e);function t(n){var o=e.call(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return s(t,"GraphClientError"),t.setGraphClientError=function(n){var o;return n instanceof Error?o=n:(o=new t,o.customError=n),o},t})(Error);qu.GraphClientError=oR});var Gu=S(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.isCustomHost=lt.isGraphURL=lt.serializeContent=lt.urlJoin=lt.oDataQueryNames=void 0;var iR=Qm(),aR=wt();lt.oDataQueryNames=["$select","$expand","$orderby","$filter","$top","$skip","$skipToken","$count"];var sR=s(function(e){var t=s(function(i){return i.replace(/\/+$/,"")},"removePostSlash"),n=s(function(i){return i.replace(/^\/+/,"")},"removePreSlash"),o=s(function(i,a){return[t(i),n(a)].join("/")},"joiner"),r=Array.prototype.slice.call(e);return r.reduce(o)},"urlJoin");lt.urlJoin=sR;var uR=s(function(e){var t=e&&e.constructor&&e.constructor.name;if(t==="Buffer"||t==="Blob"||t==="File"||t==="FormData"||typeof e=="string")return e;if(t==="ArrayBuffer")e=Buffer.from(e);else if(t==="Int8Array"||t==="Int16Array"||t==="Int32Array"||t==="Uint8Array"||t==="Uint16Array"||t==="Uint32Array"||t==="Uint8ClampedArray"||t==="Float32Array"||t==="Float64Array"||t==="DataView")e=Buffer.from(e.buffer);else try{e=JSON.stringify(e)}catch{throw new Error("Unable to stringify the content")}return e},"serializeContent");lt.serializeContent=uR;var cR=s(function(e){return hb(e)},"isGraphURL");lt.isGraphURL=cR;var lR=s(function(e,t){return t.forEach(function(n){return pR(n)}),hb(e,t)},"isCustomHost");lt.isCustomHost=lR;var hb=s(function(e,t){if(t===void 0&&(t=iR.GRAPH_URLS),e=e.toLowerCase(),e.indexOf("https://")!==-1){e=e.replace("https://","");var n=e.indexOf(":"),o=e.indexOf("/"),r="";if(o!==-1)return n!==-1&&n<o?(r=e.substring(0,n),t.has(r)):(r=e.substring(0,o),t.has(r))}return!1},"isValidEndpoint"),pR=s(function(e){if(e.indexOf("/")!==-1)throw new aR.GraphClientError("Please add only hosts or hostnames to the CustomHosts config. If the url is `http://example.com:3000/`, host is `example:3000`")},"isCustomHostValid")});var Xt=S(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.MiddlewareControl=void 0;var dR=(function(){function e(t){t===void 0&&(t=[]),this.middlewareOptions=new Map;for(var n=0,o=t;n<o.length;n++){var r=o[n],i=r.constructor;this.middlewareOptions.set(i,r)}}return s(e,"MiddlewareControl"),e.prototype.getMiddlewareOptions=function(t){return this.middlewareOptions.get(t)},e.prototype.setMiddlewareOptions=function(t,n){this.middlewareOptions.set(t,n)},e})();Wu.MiddlewareControl=dR});var yn=S(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.cloneRequestWithNewUrl=pt.appendRequestHeader=pt.setRequestHeader=pt.getRequestHeader=pt.generateUUID=void 0;var yb=(Ie(),Pe(Te)),fR=s(function(){for(var e="",t=0;t<32;t++)(t===8||t===12||t===16||t===20)&&(e+="-"),e+=Math.floor(Math.random()*16).toString(16);return e},"generateUUID");pt.generateUUID=fR;var mR=s(function(e,t,n){var o=null;if(typeof Request<"u"&&e instanceof Request)o=e.headers.get(n);else if(typeof t<"u"&&t.headers!==void 0)if(typeof Headers<"u"&&t.headers instanceof Headers)o=t.headers.get(n);else if(t.headers instanceof Array){for(var r=t.headers,i=0,a=r.length;i<a;i++)if(r[i][0]===n){o=r[i][1];break}}else t.headers[n]!==void 0&&(o=t.headers[n]);return o},"getRequestHeader");pt.getRequestHeader=mR;var gR=s(function(e,t,n,o){var r,i;if(typeof Request<"u"&&e instanceof Request)e.headers.set(n,o);else if(typeof t<"u")if(t.headers===void 0)t.headers=new Headers((r={},r[n]=o,r));else if(typeof Headers<"u"&&t.headers instanceof Headers)t.headers.set(n,o);else if(t.headers instanceof Array){for(var a=0,u=t.headers.length;a<u;a++){var c=t.headers[a];if(c[0]===n){c[1]=o;break}}a===u&&t.headers.push([n,o])}else Object.assign(t.headers,(i={},i[n]=o,i))},"setRequestHeader");pt.setRequestHeader=gR;var hR=s(function(e,t,n,o){var r,i;typeof Request<"u"&&e instanceof Request?e.headers.append(n,o):typeof t<"u"&&(t.headers===void 0?t.headers=new Headers((r={},r[n]=o,r)):typeof Headers<"u"&&t.headers instanceof Headers?t.headers.append(n,o):t.headers instanceof Array?t.headers.push([n,o]):t.headers===void 0?t.headers=(i={},i[n]=o,i):t.headers[n]===void 0?t.headers[n]=o:t.headers[n]+=", ".concat(o))},"appendRequestHeader");pt.appendRequestHeader=hR;var yR=s(function(e,t){return yb.__awaiter(void 0,void 0,void 0,function(){var n,o,r,i,a,u,c,l,d,h,m,p,g;return yb.__generator(this,function(_){switch(_.label){case 0:return t.headers.get("Content-Type")?[4,t.blob()]:[3,2];case 1:return o=_.sent(),[3,4];case 2:return[4,Promise.resolve(void 0)];case 3:o=_.sent(),_.label=4;case 4:return n=o,r=t.method,i=t.headers,a=t.referrer,u=t.referrerPolicy,c=t.mode,l=t.credentials,d=t.cache,h=t.redirect,m=t.integrity,p=t.keepalive,g=t.signal,[2,new Request(e,{method:r,headers:i,body:n,referrer:a,referrerPolicy:u,mode:c,credentials:l,cache:d,redirect:h,integrity:m,keepalive:p,signal:g})]}})})},"cloneRequestWithNewUrl");pt.cloneRequestWithNewUrl=yR});var eg=S(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.AuthenticationHandlerOptions=void 0;var vR=(function(){function e(t,n){this.authenticationProvider=t,this.authenticationProviderOptions=n}return s(e,"AuthenticationHandlerOptions"),e})();Ju.AuthenticationHandlerOptions=vR});var _n=S(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.TelemetryHandlerOptions=vn.FeatureUsageFlag=void 0;var vb=Xt(),tg;(function(e){e[e.NONE=0]="NONE",e[e.REDIRECT_HANDLER_ENABLED=1]="REDIRECT_HANDLER_ENABLED",e[e.RETRY_HANDLER_ENABLED=2]="RETRY_HANDLER_ENABLED",e[e.AUTHENTICATION_HANDLER_ENABLED=4]="AUTHENTICATION_HANDLER_ENABLED"})(tg||(vn.FeatureUsageFlag=tg={}));var _R=(function(){function e(){this.featureUsage=tg.NONE}return s(e,"TelemetryHandlerOptions"),e.updateFeatureUsageFlag=function(t,n){var o;t.middlewareControl instanceof vb.MiddlewareControl?o=t.middlewareControl.getMiddlewareOptions(e):t.middlewareControl=new vb.MiddlewareControl,typeof o>"u"&&(o=new e,t.middlewareControl.setMiddlewareOptions(e,o)),o.setFeatureUsage(n)},e.prototype.setFeatureUsage=function(t){this.featureUsage=this.featureUsage|t},e.prototype.getFeatureUsage=function(){return this.featureUsage.toString(16)},e})();vn.TelemetryHandlerOptions=_R});var Xu=S(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.AuthenticationHandler=void 0;var _b=(Ie(),Pe(Te)),Pb=Gu(),PR=Xt(),xR=yn(),bR=eg(),xb=_n(),ER=(function(){function e(t){this.authenticationProvider=t}return s(e,"AuthenticationHandler"),e.prototype.execute=function(t){return _b.__awaiter(this,void 0,void 0,function(){var n,o,r,i,a,u;return _b.__generator(this,function(c){switch(c.label){case 0:return n=typeof t.request=="string"?t.request:t.request.url,(0,Pb.isGraphURL)(n)||t.customHosts&&(0,Pb.isCustomHost)(n,t.customHosts)?(o=void 0,t.middlewareControl instanceof PR.MiddlewareControl&&(o=t.middlewareControl.getMiddlewareOptions(bR.AuthenticationHandlerOptions)),r=void 0,i=void 0,o&&(r=o.authenticationProvider,i=o.authenticationProviderOptions),r||(r=this.authenticationProvider),[4,r.getAccessToken(i)]):[3,2];case 1:return a=c.sent(),u="Bearer ".concat(a),(0,xR.appendRequestHeader)(t.request,t.options,e.AUTHORIZATION_HEADER,u),xb.TelemetryHandlerOptions.updateFeatureUsageFlag(t,xb.FeatureUsageFlag.AUTHENTICATION_HANDLER_ENABLED),[3,3];case 2:t.options.headers&&delete t.options.headers[e.AUTHORIZATION_HEADER],c.label=3;case 3:return[4,this.nextMiddleware.execute(t)];case 4:return[2,c.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e.AUTHORIZATION_HEADER="Authorization",e})();Ku.AuthenticationHandler=ER});var Qu=S(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.HTTPMessageHandler=void 0;var bb=(Ie(),Pe(Te)),TR=(function(){function e(){}return s(e,"HTTPMessageHandler"),e.prototype.execute=function(t){return bb.__awaiter(this,void 0,void 0,function(){var n;return bb.__generator(this,function(o){switch(o.label){case 0:return n=t,[4,fetch(t.request,t.options)];case 1:return n.response=o.sent(),[2]}})})},e})();Yu.HTTPMessageHandler=TR});var Ni=S(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});ec.RetryHandlerOptions=void 0;var IR=(function(){function e(t,n,o){if(t===void 0&&(t=e.DEFAULT_DELAY),n===void 0&&(n=e.DEFAULT_MAX_RETRIES),o===void 0&&(o=e.defaultShouldRetry),t>e.MAX_DELAY&&n>e.MAX_MAX_RETRIES){var r=new Error("Delay and MaxRetries should not be more than ".concat(e.MAX_DELAY," and ").concat(e.MAX_MAX_RETRIES));throw r.name="MaxLimitExceeded",r}else if(t>e.MAX_DELAY){var r=new Error("Delay should not be more than ".concat(e.MAX_DELAY));throw r.name="MaxLimitExceeded",r}else if(n>e.MAX_MAX_RETRIES){var r=new Error("MaxRetries should not be more than ".concat(e.MAX_MAX_RETRIES));throw r.name="MaxLimitExceeded",r}else if(t<0&&n<0){var r=new Error("Delay and MaxRetries should not be negative");throw r.name="MinExpectationNotMet",r}else if(t<0){var r=new Error("Delay should not be negative");throw r.name="MinExpectationNotMet",r}else if(n<0){var r=new Error("MaxRetries should not be negative");throw r.name="MinExpectationNotMet",r}this.delay=Math.min(t,e.MAX_DELAY),this.maxRetries=Math.min(n,e.MAX_MAX_RETRIES),this.shouldRetry=o}return s(e,"RetryHandlerOptions"),e.prototype.getMaxDelay=function(){return e.MAX_DELAY},e.DEFAULT_DELAY=3,e.DEFAULT_MAX_RETRIES=3,e.MAX_DELAY=180,e.MAX_MAX_RETRIES=10,e.defaultShouldRetry=function(){return!0},e})();ec.RetryHandlerOptions=IR});var rc=S(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.RetryHandler=void 0;var Pn=(Ie(),Pe(Te)),rg=Ci(),SR=Xt(),Eb=yn(),Tb=Ni(),Ib=_n(),AR=(function(){function e(t){t===void 0&&(t=new Tb.RetryHandlerOptions),this.options=t}return s(e,"RetryHandler"),e.prototype.isRetry=function(t){return e.RETRY_STATUS_CODES.indexOf(t.status)!==-1},e.prototype.isBuffered=function(t,n){var o=typeof t=="string"?n.method:t.method,r=o===rg.RequestMethod.PUT||o===rg.RequestMethod.PATCH||o===rg.RequestMethod.POST;if(r){var i=(0,Eb.getRequestHeader)(t,n,"Content-Type")==="application/octet-stream";if(i)return!1}return!0},e.prototype.getDelay=function(t,n,o){var r=s(function(){return Number(Math.random().toFixed(3))},"getRandomness"),i=t.headers!==void 0?t.headers.get(e.RETRY_AFTER_HEADER):null,a;return i!==null?Number.isNaN(Number(i))?a=Math.round((new Date(i).getTime()-Date.now())/1e3):a=Number(i):a=n>=2?this.getExponentialBackOffTime(n)+o+r():o+r(),Math.min(a,this.options.getMaxDelay()+r())},e.prototype.getExponentialBackOffTime=function(t){return Math.round(1/2*(Math.pow(2,t)-1))},e.prototype.sleep=function(t){return Pn.__awaiter(this,void 0,void 0,function(){var n;return Pn.__generator(this,function(o){return n=t*1e3,[2,new Promise(function(r){return setTimeout(r,n)})]})})},e.prototype.getOptions=function(t){var n;return t.middlewareControl instanceof SR.MiddlewareControl&&(n=t.middlewareControl.getMiddlewareOptions(this.options.constructor)),typeof n>"u"&&(n=Object.assign(new Tb.RetryHandlerOptions,this.options)),n},e.prototype.executeWithRetry=function(t,n,o){return Pn.__awaiter(this,void 0,void 0,function(){var r;return Pn.__generator(this,function(i){switch(i.label){case 0:return[4,this.nextMiddleware.execute(t)];case 1:return i.sent(),n<o.maxRetries&&this.isRetry(t.response)&&this.isBuffered(t.request,t.options)&&o.shouldRetry(o.delay,n,t.request,t.options,t.response)?(++n,(0,Eb.setRequestHeader)(t.request,t.options,e.RETRY_ATTEMPT_HEADER,n.toString()),r=this.getDelay(t.response,n,o.delay),[4,this.sleep(r)]):[3,4];case 2:return i.sent(),[4,this.executeWithRetry(t,n,o)];case 3:return[2,i.sent()];case 4:return[2]}})})},e.prototype.execute=function(t){return Pn.__awaiter(this,void 0,void 0,function(){var n,o;return Pn.__generator(this,function(r){switch(r.label){case 0:return n=0,o=this.getOptions(t),Ib.TelemetryHandlerOptions.updateFeatureUsageFlag(t,Ib.FeatureUsageFlag.RETRY_HANDLER_ENABLED),[4,this.executeWithRetry(t,n,o)];case 1:return[2,r.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e.RETRY_STATUS_CODES=[429,503,504],e.RETRY_ATTEMPT_HEADER="Retry-Attempt",e.RETRY_AFTER_HEADER="Retry-After",e})();tc.RetryHandler=AR});var Ui=S(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.RedirectHandlerOptions=void 0;var wR=(function(){function e(t,n){if(t===void 0&&(t=e.DEFAULT_MAX_REDIRECTS),n===void 0&&(n=e.defaultShouldRedirect),t>e.MAX_MAX_REDIRECTS){var o=new Error("MaxRedirects should not be more than ".concat(e.MAX_MAX_REDIRECTS));throw o.name="MaxLimitExceeded",o}if(t<0){var o=new Error("MaxRedirects should not be negative");throw o.name="MinExpectationNotMet",o}this.maxRedirects=t,this.shouldRedirect=n}return s(e,"RedirectHandlerOptions"),e.DEFAULT_MAX_REDIRECTS=5,e.MAX_MAX_REDIRECTS=20,e.defaultShouldRedirect=function(){return!0},e})();nc.RedirectHandlerOptions=wR});var ic=S(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.RedirectHandler=void 0;var xn=(Ie(),Pe(Te)),$R=Ci(),OR=Xt(),RR=yn(),ng=Ui(),Sb=_n(),zR=(function(){function e(t){t===void 0&&(t=new ng.RedirectHandlerOptions),this.options=t}return s(e,"RedirectHandler"),e.prototype.isRedirect=function(t){return e.REDIRECT_STATUS_CODES.indexOf(t.status)!==-1},e.prototype.hasLocationHeader=function(t){return t.headers.has(e.LOCATION_HEADER)},e.prototype.getLocationHeader=function(t){return t.headers.get(e.LOCATION_HEADER)},e.prototype.isRelativeURL=function(t){return t.indexOf("://")===-1},e.prototype.shouldDropAuthorizationHeader=function(t,n){var o=/^[A-Za-z].+?:\/\/.+?(?=\/|$)/,r=o.exec(t),i,a;r!==null&&(i=r[0]);var u=o.exec(n);return u!==null&&(a=u[0]),typeof i<"u"&&typeof a<"u"&&i!==a},e.prototype.updateRequestUrl=function(t,n){return xn.__awaiter(this,void 0,void 0,function(){var o,r;return xn.__generator(this,function(i){switch(i.label){case 0:return o=n,typeof n.request!="string"?[3,1]:(r=t,[3,3]);case 1:return[4,(0,RR.cloneRequestWithNewUrl)(t,n.request)];case 2:r=i.sent(),i.label=3;case 3:return o.request=r,[2]}})})},e.prototype.getOptions=function(t){var n;return t.middlewareControl instanceof OR.MiddlewareControl&&(n=t.middlewareControl.getMiddlewareOptions(ng.RedirectHandlerOptions)),typeof n>"u"&&(n=Object.assign(new ng.RedirectHandlerOptions,this.options)),n},e.prototype.executeWithRedirect=function(t,n,o){return xn.__awaiter(this,void 0,void 0,function(){var r,i;return xn.__generator(this,function(a){switch(a.label){case 0:return[4,this.nextMiddleware.execute(t)];case 1:return a.sent(),r=t.response,n<o.maxRedirects&&this.isRedirect(r)&&this.hasLocationHeader(r)&&o.shouldRedirect(r)?(++n,r.status!==e.STATUS_CODE_SEE_OTHER?[3,2]:(t.options.method=$R.RequestMethod.GET,delete t.options.body,[3,4])):[3,6];case 2:return i=this.getLocationHeader(r),!this.isRelativeURL(i)&&this.shouldDropAuthorizationHeader(r.url,i)&&delete t.options.headers[e.AUTHORIZATION_HEADER],[4,this.updateRequestUrl(i,t)];case 3:a.sent(),a.label=4;case 4:return[4,this.executeWithRedirect(t,n,o)];case 5:return a.sent(),[3,7];case 6:return[2];case 7:return[2]}})})},e.prototype.execute=function(t){return xn.__awaiter(this,void 0,void 0,function(){var n,o;return xn.__generator(this,function(r){switch(r.label){case 0:return n=0,o=this.getOptions(t),t.options.redirect=e.MANUAL_REDIRECT,Sb.TelemetryHandlerOptions.updateFeatureUsageFlag(t,Sb.FeatureUsageFlag.REDIRECT_HANDLER_ENABLED),[4,this.executeWithRedirect(t,n,o)];case 1:return[2,r.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e.REDIRECT_STATUS_CODES=[301,302,303,307,308],e.STATUS_CODE_SEE_OTHER=303,e.LOCATION_HEADER="Location",e.AUTHORIZATION_HEADER="Authorization",e.MANUAL_REDIRECT="manual",e})();oc.RedirectHandler=zR});var Ab=S(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.PACKAGE_VERSION=void 0;ac.PACKAGE_VERSION="3.0.7"});var cc=S(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.TelemetryHandler=void 0;var wb=(Ie(),Pe(Te)),$b=Gu(),kR=Ab(),DR=Xt(),sc=yn(),CR=_n(),NR=(function(){function e(){}return s(e,"TelemetryHandler"),e.prototype.execute=function(t){return wb.__awaiter(this,void 0,void 0,function(){var n,o,r,i,a;return wb.__generator(this,function(u){switch(u.label){case 0:return n=typeof t.request=="string"?t.request:t.request.url,(0,$b.isGraphURL)(n)||t.customHosts&&(0,$b.isCustomHost)(n,t.customHosts)?(o=(0,sc.getRequestHeader)(t.request,t.options,e.CLIENT_REQUEST_ID_HEADER),o||(o=(0,sc.generateUUID)(),(0,sc.setRequestHeader)(t.request,t.options,e.CLIENT_REQUEST_ID_HEADER,o)),r="".concat(e.PRODUCT_NAME,"/").concat(kR.PACKAGE_VERSION),i=void 0,t.middlewareControl instanceof DR.MiddlewareControl&&(i=t.middlewareControl.getMiddlewareOptions(CR.TelemetryHandlerOptions)),i&&(a=i.getFeatureUsage(),r+=" (".concat(e.FEATURE_USAGE_STRING,"=").concat(a,")")),(0,sc.appendRequestHeader)(t.request,t.options,e.SDK_VERSION_HEADER,r)):(delete t.options.headers[e.CLIENT_REQUEST_ID_HEADER],delete t.options.headers[e.SDK_VERSION_HEADER]),[4,this.nextMiddleware.execute(t)];case 1:return[2,u.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e.CLIENT_REQUEST_ID_HEADER="client-request-id",e.SDK_VERSION_HEADER="SdkVersion",e.PRODUCT_NAME="graph-js",e.FEATURE_USAGE_STRING="featureUsage",e})();uc.TelemetryHandler=NR});var Ob=S(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.MiddlewareFactory=void 0;var UR=Xu(),MR=Qu(),LR=Ui(),jR=Ni(),FR=ic(),BR=rc(),VR=cc(),ZR=s(function(){return typeof process=="object"&&typeof require=="function"},"isNodeEnvironment"),HR=(function(){function e(){}return s(e,"MiddlewareFactory"),e.getDefaultMiddlewareChain=function(t){var n=[],o=new UR.AuthenticationHandler(t),r=new BR.RetryHandler(new jR.RetryHandlerOptions),i=new VR.TelemetryHandler,a=new MR.HTTPMessageHandler;if(n.push(o),n.push(r),ZR()){var u=new FR.RedirectHandler(new LR.RedirectHandlerOptions);n.push(u)}return n.push(i),n.push(a),n},e})();lc.MiddlewareFactory=HR});var dc=S(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.ChaosStrategy=void 0;var Rb;(function(e){e[e.MANUAL=0]="MANUAL",e[e.RANDOM=1]="RANDOM"})(Rb||(pc.ChaosStrategy=Rb={}))});var og=S(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.ChaosHandlerOptions=void 0;var qR=dc(),GR=(function(){function e(t,n,o,r,i,a){if(t===void 0&&(t=qR.ChaosStrategy.RANDOM),n===void 0&&(n="Some error Happened"),this.chaosStrategy=t,this.statusCode=o,this.statusMessage=n,this.chaosPercentage=r!==void 0?r:10,this.responseBody=i,this.headers=a,this.chaosPercentage>100)throw new Error("Error Pecentage can not be more than 100")}return s(e,"ChaosHandlerOptions"),e})();fc.ChaosHandlerOptions=GR});var zb=S(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.httpStatusCode=bn.methodStatusCode=void 0;bn.methodStatusCode={GET:[429,500,502,503,504],POST:[429,500,502,503,504,507],PUT:[429,500,502,503,504,507],PATCH:[429,500,502,503,504],DELETE:[429,500,502,503,504,507]};bn.httpStatusCode={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"}});var Cb=S(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.ChaosHandler=void 0;var mc=(Ie(),Pe(Te)),WR=Xt(),JR=yn(),kb=zb(),ig=og(),Db=dc(),KR=(function(){function e(t,n){t===void 0&&(t=new ig.ChaosHandlerOptions),this.options=t,this.manualMap=n}return s(e,"ChaosHandler"),e.prototype.createResponseHeaders=function(t,n,o){var r=t.headers?new Headers(t.headers):new Headers;return r.append("Cache-Control","no-store"),r.append("request-id",n),r.append("client-request-id",n),r.append("x-ms-ags-diagnostic",""),r.append("Date",o),r.append("Strict-Transport-Security",""),t.statusCode===429&&r.append("retry-after","3"),r},e.prototype.createResponseBody=function(t,n,o){if(t.responseBody)return t.responseBody;var r;if(t.statusCode>=400){var i=kb.httpStatusCode[t.statusCode],a=t.statusMessage;r={error:{code:i,message:a,innerError:{"request-id":n,date:o}}}}else r={};return r},e.prototype.createResponse=function(t,n){var o=n.request,r=(0,JR.generateUUID)(),i=new Date,a=this.createResponseHeaders(t,r,i.toString()),u=this.createResponseBody(t,r,i.toString()),c={url:o,status:t.statusCode,statusText:t.statusMessage,headers:a};n.response=new Response(typeof u=="string"?u:JSON.stringify(u),c)},e.prototype.sendRequest=function(t,n){return mc.__awaiter(this,void 0,void 0,function(){return mc.__generator(this,function(o){switch(o.label){case 0:return this.setStatusCode(t,n.request,n.options.method),t.chaosStrategy===Db.ChaosStrategy.MANUAL&&!this.nextMiddleware||Math.floor(Math.random()*100)<t.chaosPercentage?(this.createResponse(t,n),[3,3]):[3,1];case 1:return this.nextMiddleware?[4,this.nextMiddleware.execute(n)]:[3,3];case 2:o.sent(),o.label=3;case 3:return[2]}})})},e.prototype.getRandomStatusCode=function(t){var n=kb.methodStatusCode[t];return n[Math.floor(Math.random()*n.length)]},e.prototype.getRelativeURL=function(t){var n=/https?:\/\/graph\.microsoft\.com\/[^/]+(.+?)(\?|$)/,o;return n.exec(t)!==null&&(o=n.exec(t)[1]),o},e.prototype.setStatusCode=function(t,n,o){var r=this;if(t.chaosStrategy===Db.ChaosStrategy.MANUAL){if(t.statusCode===void 0){var i=this.getRelativeURL(n);this.manualMap.get(i)!==void 0?this.manualMap.get(i).get(o)!==void 0&&(t.statusCode=this.manualMap.get(i).get(o)):this.manualMap.forEach(function(a,u){var c=new RegExp(u+"$");c.test(i)&&r.manualMap.get(u).get(o)!==void 0&&(t.statusCode=r.manualMap.get(u).get(o))})}}else t.statusCode=this.getRandomStatusCode(o)},e.prototype.getOptions=function(t){var n;return t.middlewareControl instanceof WR.MiddlewareControl&&(n=t.middlewareControl.getMiddlewareOptions(ig.ChaosHandlerOptions)),typeof n>"u"&&(n=Object.assign(new ig.ChaosHandlerOptions,this.options)),n},e.prototype.execute=function(t){return mc.__awaiter(this,void 0,void 0,function(){var n;return mc.__generator(this,function(o){switch(o.label){case 0:return n=this.getOptions(t),[4,this.sendRequest(n,t)];case 1:return[2,o.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e})();gc.ChaosHandler=KR});var Mi=S(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.ResponseType=void 0;var Nb;(function(e){e.ARRAYBUFFER="arraybuffer",e.BLOB="blob",e.DOCUMENT="document",e.JSON="json",e.RAW="raw",e.STREAM="stream",e.TEXT="text"})(Nb||(hc.ResponseType=Nb={}))});var sg=S(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.GraphResponseHandler=En.DocumentType=void 0;var yc=(Ie(),Pe(Te)),Ir=Mi(),ag;(function(e){e.TEXT_HTML="text/html",e.TEXT_XML="text/xml",e.APPLICATION_XML="application/xml",e.APPLICATION_XHTML="application/xhtml+xml"})(ag||(En.DocumentType=ag={}));var vc;(function(e){e.TEXT_PLAIN="text/plain",e.APPLICATION_JSON="application/json"})(vc||(vc={}));var _c;(function(e){e.DOCUMENT="^(text\\/(html|xml))|(application\\/(xml|xhtml\\+xml))$",e.IMAGE="^image\\/.+"})(_c||(_c={}));var XR=(function(){function e(){}return s(e,"GraphResponseHandler"),e.parseDocumentResponse=function(t,n){return typeof DOMParser<"u"?new Promise(function(o,r){t.text().then(function(i){try{var a=new DOMParser,u=a.parseFromString(i,n);o(u)}catch(c){r(c)}})}):Promise.resolve(t.body)},e.convertResponse=function(t,n){return yc.__awaiter(this,void 0,void 0,function(){var o,r,i,a;return yc.__generator(this,function(u){switch(u.label){case 0:if(t.status===204)return[2,Promise.resolve()];switch(r=t.headers.get("Content-type"),i=n,i){case Ir.ResponseType.ARRAYBUFFER:return[3,1];case Ir.ResponseType.BLOB:return[3,3];case Ir.ResponseType.DOCUMENT:return[3,5];case Ir.ResponseType.JSON:return[3,7];case Ir.ResponseType.STREAM:return[3,9];case Ir.ResponseType.TEXT:return[3,11]}return[3,13];case 1:return[4,t.arrayBuffer()];case 2:return o=u.sent(),[3,24];case 3:return[4,t.blob()];case 4:return o=u.sent(),[3,24];case 5:return[4,e.parseDocumentResponse(t,ag.TEXT_XML)];case 6:return o=u.sent(),[3,24];case 7:return[4,t.json()];case 8:return o=u.sent(),[3,24];case 9:return[4,Promise.resolve(t.body)];case 10:return o=u.sent(),[3,24];case 11:return[4,t.text()];case 12:return o=u.sent(),[3,24];case 13:return r===null?[3,22]:(a=r.split(";")[0],new RegExp(_c.DOCUMENT).test(a)?[4,e.parseDocumentResponse(t,a)]:[3,15]);case 14:return o=u.sent(),[3,21];case 15:return new RegExp(_c.IMAGE).test(a)?(o=t.blob(),[3,21]):[3,16];case 16:return a!==vc.TEXT_PLAIN?[3,18]:[4,t.text()];case 17:return o=u.sent(),[3,21];case 18:return a!==vc.APPLICATION_JSON?[3,20]:[4,t.json()];case 19:return o=u.sent(),[3,21];case 20:o=Promise.resolve(t.body),u.label=21;case 21:return[3,23];case 22:o=Promise.resolve(t.body),u.label=23;case 23:return[3,24];case 24:return[2,o]}})})},e.getResponse=function(t,n,o){return yc.__awaiter(this,void 0,void 0,function(){var r;return yc.__generator(this,function(i){switch(i.label){case 0:return n!==Ir.ResponseType.RAW?[3,1]:[2,Promise.resolve(t)];case 1:return[4,e.convertResponse(t,n)];case 2:if(r=i.sent(),t.ok)if(typeof o=="function")o(null,r);else return[2,r];else throw r;i.label=3;case 3:return[2]}})})},e})();En.GraphResponseHandler=XR});var ug=S(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});Pc.Range=void 0;var YR=(function(){function e(t,n){t===void 0&&(t=-1),n===void 0&&(n=-1),this.minValue=t,this.maxValue=n}return s(e,"Range"),e})();Pc.Range=YR});var cg=S(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});xc.UploadResult=void 0;var QR=(function(){function e(t,n){this._location=n,this._responseBody=t}return s(e,"UploadResult"),Object.defineProperty(e.prototype,"location",{get:s(function(){return this._location},"get"),set:s(function(t){this._location=t},"set"),enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responseBody",{get:s(function(){return this._responseBody},"get"),set:s(function(t){this._responseBody=t},"set"),enumerable:!1,configurable:!0}),e.CreateUploadResult=function(t,n){return new e(t,n.get("location"))},e})();xc.UploadResult=QR});var pg=S(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.LargeFileUploadTask=void 0;var et=(Ie(),Pe(Te)),lg=wt(),ez=sg(),Ub=Mi(),bc=ug(),tz=cg(),rz=(function(){function e(t,n,o,r){if(r===void 0&&(r={}),this.DEFAULT_FILE_SIZE=5*1024*1024,this.client=t,n.sliceFile)this.file=n;else throw new lg.GraphClientError("Please pass the FileUpload object, StreamUpload object or any custom implementation of the FileObject interface");this.file=n,r.rangeSize||(r.rangeSize=this.DEFAULT_FILE_SIZE),this.options=r,this.uploadSession=o,this.nextRange=new bc.Range(0,this.options.rangeSize-1)}return s(e,"LargeFileUploadTask"),e.createUploadSession=function(t,n,o,r){return r===void 0&&(r={}),et.__awaiter(this,void 0,void 0,function(){var i,a;return et.__generator(this,function(u){switch(u.label){case 0:return[4,t.api(n).headers(r).post(o)];case 1:return i=u.sent(),a={url:i.uploadUrl,expiry:new Date(i.expirationDateTime),isCancelled:!1},[2,a]}})})},e.prototype.parseRange=function(t){var n=t[0];if(typeof n>"u"||n==="")return new bc.Range;var o=n.split("-"),r=parseInt(o[0],10),i=parseInt(o[1],10);return Number.isNaN(i)&&(i=this.file.size-1),new bc.Range(r,i)},e.prototype.updateTaskStatus=function(t){this.uploadSession.expiry=new Date(t.expirationDateTime),this.nextRange=this.parseRange(t.nextExpectedRanges)},e.prototype.getNextRange=function(){if(this.nextRange.minValue===-1)return this.nextRange;var t=this.nextRange.minValue,n=t+this.options.rangeSize-1;return n>=this.file.size&&(n=this.file.size-1),new bc.Range(t,n)},e.prototype.sliceFile=function(t){if(console.warn("The LargeFileUploadTask.sliceFile() function has been deprecated and moved into the FileObject interface."),this.file.content instanceof ArrayBuffer||this.file.content instanceof Blob||this.file.content instanceof Uint8Array)return this.file.content.slice(t.minValue,t.maxValue+1);throw new lg.GraphClientError("The LargeFileUploadTask.sliceFile() function expects only Blob, ArrayBuffer or Uint8Array file content. Please note that the sliceFile() function is deprecated.")},e.prototype.upload=function(){return et.__awaiter(this,void 0,void 0,function(){var t,n,o,r,i,a,u;return et.__generator(this,function(c){switch(c.label){case 0:t=this.options&&this.options.uploadEventHandlers,c.label=1;case 1:if(this.uploadSession.isCancelled)return[3,5];if(n=this.getNextRange(),n.maxValue===-1)throw o=new Error("Task with which you are trying to upload is already completed, Please check for your uploaded file"),o.name="Invalid Session",o;return[4,this.file.sliceFile(n)];case 2:return r=c.sent(),[4,this.uploadSliceGetRawResponse(r,n,this.file.size)];case 3:if(i=c.sent(),!i)throw new lg.GraphClientError("Something went wrong! Large file upload slice response is null.");return[4,ez.GraphResponseHandler.getResponse(i)];case 4:return a=c.sent(),i.status===201||i.status===200&&a.id?(this.reportProgress(t,n),[2,tz.UploadResult.CreateUploadResult(a,i.headers)]):(u={expirationDateTime:a.expirationDateTime||a.ExpirationDateTime,nextExpectedRanges:a.NextExpectedRanges||a.nextExpectedRanges},this.updateTaskStatus(u),this.reportProgress(t,n),[3,1]);case 5:return[2]}})})},e.prototype.reportProgress=function(t,n){t&&t.progress&&t.progress(n,t.extraCallbackParam)},e.prototype.uploadSlice=function(t,n,o){return et.__awaiter(this,void 0,void 0,function(){return et.__generator(this,function(r){switch(r.label){case 0:return[4,this.client.api(this.uploadSession.url).headers({"Content-Length":"".concat(n.maxValue-n.minValue+1),"Content-Range":"bytes ".concat(n.minValue,"-").concat(n.maxValue,"/").concat(o),"Content-Type":"application/octet-stream"}).put(t)];case 1:return[2,r.sent()]}})})},e.prototype.uploadSliceGetRawResponse=function(t,n,o){return et.__awaiter(this,void 0,void 0,function(){return et.__generator(this,function(r){switch(r.label){case 0:return[4,this.client.api(this.uploadSession.url).headers({"Content-Length":"".concat(n.maxValue-n.minValue+1),"Content-Range":"bytes ".concat(n.minValue,"-").concat(n.maxValue,"/").concat(o),"Content-Type":"application/octet-stream"}).responseType(Ub.ResponseType.RAW).put(t)];case 1:return[2,r.sent()]}})})},e.prototype.cancel=function(){return et.__awaiter(this,void 0,void 0,function(){var t;return et.__generator(this,function(n){switch(n.label){case 0:return[4,this.client.api(this.uploadSession.url).responseType(Ub.ResponseType.RAW).delete()];case 1:return t=n.sent(),t.status===204&&(this.uploadSession.isCancelled=!0),[2,t]}})})},e.prototype.getStatus=function(){return et.__awaiter(this,void 0,void 0,function(){var t;return et.__generator(this,function(n){switch(n.label){case 0:return[4,this.client.api(this.uploadSession.url).get()];case 1:return t=n.sent(),this.updateTaskStatus(t),[2,t]}})})},e.prototype.resume=function(){return et.__awaiter(this,void 0,void 0,function(){return et.__generator(this,function(t){switch(t.label){case 0:return[4,this.getStatus()];case 1:return t.sent(),[4,this.upload()];case 2:return[2,t.sent()]}})})},e.prototype.getUploadSession=function(){return this.uploadSession},e})();Ec.LargeFileUploadTask=rz});var dg=S(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.FileUpload=void 0;var nz=wt(),oz=(function(){function e(t,n,o){if(this.content=t,this.name=n,this.size=o,!t||!n||!o)throw new nz.GraphClientError("Please provide the upload content, name of the file and size of the file")}return s(e,"FileUpload"),e.prototype.sliceFile=function(t){return this.content.slice(t.minValue,t.maxValue+1)},e})();Tc.FileUpload=oz});var fg=S(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});Ic.getValidRangeSize=void 0;var iz=5*1024*1024,az=s(function(e){return e>320*1024&&(e=Math.floor(e/(320*1024))*320*1024),e},"roundTo320KB"),sz=s(function(e){e===void 0&&(e=iz);var t=60*1024*1024;return e>t&&(e=t),az(e)},"getValidRangeSize");Ic.getValidRangeSize=sz});var Lb=S(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.OneDriveLargeFileUploadTask=void 0;var $t=(Ie(),Pe(Te)),Mb=wt(),uz=dg(),cz=pg(),lz=fg(),pz=(function(e){$t.__extends(t,e);function t(n,o,r,i){return e.call(this,n,o,r,i)||this}return s(t,"OneDriveLargeFileUploadTask"),t.constructCreateSessionUrl=function(n,o){return o===void 0&&(o=t.DEFAULT_UPLOAD_PATH),n=n.trim(),o=o.trim(),o===""&&(o="/"),o[0]!=="/"&&(o="/".concat(o)),o[o.length-1]!=="/"&&(o="".concat(o,"/")),"/me/drive/root:".concat(o.split("/").map(function(r){return encodeURIComponent(r)}).join("/")).concat(encodeURIComponent(n),":/createUploadSession")},t.getFileInfo=function(n,o){var r,i;if(typeof Blob<"u"&&n instanceof Blob)r=new File([n],o),i=r.size;else if(typeof File<"u"&&n instanceof File)r=n,i=r.size;else if(typeof Uint8Array<"u"&&n instanceof Uint8Array){var a=n;i=a.byteLength,r=a.buffer.slice(a.byteOffset,a.byteOffset+a.byteLength)}return{content:r,size:i}},t.create=function(n,o,r){return $t.__awaiter(this,void 0,void 0,function(){var i,a,u;return $t.__generator(this,function(c){if(!n||!o||!r)throw new Mb.GraphClientError("Please provide the Graph client instance, file object and OneDriveLargeFileUploadOptions value");return i=r.fileName,a=t.getFileInfo(o,i),u=new uz.FileUpload(a.content,i,a.size),[2,this.createTaskWithFileObject(n,u,r)]})})},t.createTaskWithFileObject=function(n,o,r){return $t.__awaiter(this,void 0,void 0,function(){var i,a,u,c;return $t.__generator(this,function(l){switch(l.label){case 0:if(!n||!o||!r)throw new Mb.GraphClientError("Please provide the Graph client instance, FileObject interface implementation and OneDriveLargeFileUploadOptions value");return i=r.uploadSessionURL?r.uploadSessionURL:t.constructCreateSessionUrl(r.fileName,r.path),a={fileName:r.fileName,fileDescription:r.fileDescription,conflictBehavior:r.conflictBehavior},[4,t.createUploadSession(n,i,a)];case 1:return u=l.sent(),c=(0,lz.getValidRangeSize)(r.rangeSize),[2,new t(n,o,u,{rangeSize:c,uploadEventHandlers:r.uploadEventHandlers})]}})})},t.createUploadSession=function(n,o,r){return $t.__awaiter(this,void 0,void 0,function(){var i;return $t.__generator(this,function(a){return i={item:{"@microsoft.graph.conflictBehavior":r?.conflictBehavior||"rename",name:r?.fileName,description:r?.fileDescription}},[2,e.createUploadSession.call(this,n,o,i)]})})},t.prototype.commit=function(n,o){return o===void 0&&(o="rename"),$t.__awaiter(this,void 0,void 0,function(){var r;return $t.__generator(this,function(i){switch(i.label){case 0:return r={name:this.file.name,"@microsoft.graph.conflictBehavior":o,"@microsoft.graph.sourceUrl":this.uploadSession.url},[4,this.client.api(n).put(r)];case 1:return[2,i.sent()]}})})},t.DEFAULT_UPLOAD_PATH="/",t})(cz.LargeFileUploadTask);Sc.OneDriveLargeFileUploadTask=pz});var Fb=S(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});Ac.StreamUpload=void 0;var jb=(Ie(),Pe(Te)),Li=wt(),dz=(function(){function e(t,n,o){if(this.content=t,this.name=n,this.size=o,!t||!n||!o)throw new Li.GraphClientError("Please provide the Readable Stream content, name of the file and size of the file")}return s(e,"StreamUpload"),e.prototype.sliceFile=function(t){return jb.__awaiter(this,void 0,void 0,function(){var n,o,r,i,a,u,c;return jb.__generator(this,function(l){switch(l.label){case 0:if(n=t.maxValue-t.minValue+1,o=[],this.previousSlice){if(t.minValue<this.previousSlice.range.minValue)throw new Li.GraphClientError("An error occurred while uploading the stream. Please restart the stream upload from the first byte of the file.");if(t.minValue<this.previousSlice.range.maxValue){if(r=this.previousSlice.range.minValue,i=this.previousSlice.range.maxValue,t.minValue===r&&t.maxValue===i)return[2,this.previousSlice.fileSlice];if(t.maxValue===i)return[2,this.previousSlice.fileSlice.slice(t.minValue,t.maxValue+1)];o.push(this.previousSlice.fileSlice.slice(t.minValue,i+1)),n=t.maxValue-i}}return this.content&&this.content.readable?this.content.readableLength>=n?(o.push(this.content.read(n)),[3,3]):[3,1]:[3,4];case 1:return u=(a=o).push,[4,this.readNBytesFromStream(n)];case 2:u.apply(a,[l.sent()]),l.label=3;case 3:return[3,5];case 4:throw new Li.GraphClientError("Stream is not readable.");case 5:return c=Buffer.concat(o),this.previousSlice={fileSlice:c,range:t},[2,c]}})})},e.prototype.readNBytesFromStream=function(t){var n=this;return new Promise(function(o,r){var i=[],a=t,u=0;n.content.on("end",function(){if(a>0)return r(new Li.GraphClientError("Stream ended before reading required range size"))}),n.content.on("readable",function(){for(var c;u<t&&(c=n.content.read(a))!==null;)u+=c.length,i.push(c),a>0&&(a=t-u);if(u===t)return o(Buffer.concat(i));if(!n.content||!n.content.readable)return r(new Li.GraphClientError("Error encountered while reading the stream during the upload"))})})},e})();Ac.StreamUpload=dz});var Bb=S(wc=>{"use strict";Object.defineProperty(wc,"__esModule",{value:!0});wc.PageIterator=void 0;var Tn=(Ie(),Pe(Te)),fz=(function(){function e(t,n,o,r){this.client=t,this.collection=n.value,this.nextLink=n["@odata.nextLink"],this.deltaLink=n["@odata.deltaLink"],this.callback=o,this.cursor=0,this.complete=!1,this.requestOptions=r}return s(e,"PageIterator"),e.prototype.iterationHelper=function(){if(this.collection===void 0)return!1;for(var t=!0;t&&this.cursor<this.collection.length;){var n=this.collection[this.cursor];t=this.callback(n),this.cursor++}return t},e.prototype.fetchAndUpdateNextPageData=function(){return Tn.__awaiter(this,void 0,void 0,function(){var t,n;return Tn.__generator(this,function(o){switch(o.label){case 0:return t=this.client.api(this.nextLink),this.requestOptions&&(this.requestOptions.headers&&(t=t.headers(this.requestOptions.headers)),this.requestOptions.middlewareOptions&&(t=t.middlewareOptions(this.requestOptions.middlewareOptions)),this.requestOptions.options&&(t=t.options(this.requestOptions.options))),[4,t.get()];case 1:return n=o.sent(),this.collection=n.value,this.cursor=0,this.nextLink=n["@odata.nextLink"],this.deltaLink=n["@odata.deltaLink"],[2]}})})},e.prototype.getDeltaLink=function(){return this.deltaLink},e.prototype.iterate=function(){return Tn.__awaiter(this,void 0,void 0,function(){var t;return Tn.__generator(this,function(n){switch(n.label){case 0:t=this.iterationHelper(),n.label=1;case 1:return t?this.nextLink===void 0?[3,3]:[4,this.fetchAndUpdateNextPageData()]:[3,5];case 2:return n.sent(),t=this.iterationHelper(),[3,4];case 3:t=!1,n.label=4;case 4:return[3,1];case 5:return this.nextLink===void 0&&this.cursor>=this.collection.length&&(this.complete=!0),[2]}})})},e.prototype.resume=function(){return Tn.__awaiter(this,void 0,void 0,function(){return Tn.__generator(this,function(t){return[2,this.iterate()]})})},e.prototype.isComplete=function(){return this.complete},e})();wc.PageIterator=fz});var mg=S(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.CustomAuthenticationProvider=void 0;var $c=(Ie(),Pe(Te)),Vb=wt(),mz=(function(){function e(t){this.provider=t}return s(e,"CustomAuthenticationProvider"),e.prototype.getAccessToken=function(){return $c.__awaiter(this,void 0,void 0,function(){var t=this;return $c.__generator(this,function(n){return[2,new Promise(function(o,r){t.provider(function(i,a){return $c.__awaiter(t,void 0,void 0,function(){var u,c;return $c.__generator(this,function(l){switch(l.label){case 0:return a?(o(a),[3,3]):[3,1];case 1:return i||(u="Access token is undefined or empty. Please provide a valid token. For more help - https://github.com/microsoftgraph/msgraph-sdk-javascript/blob/dev/docs/CustomAuthenticationProvider.md",i=new Vb.GraphClientError(u)),[4,Vb.GraphClientError.setGraphClientError(i)];case 2:c=l.sent(),r(c),l.label=3;case 3:return[2]}})})})})]})})},e})();Oc.CustomAuthenticationProvider=mz});var gg=S(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});Rc.GraphError=void 0;var gz=(Ie(),Pe(Te)),hz=(function(e){gz.__extends(t,e);function t(n,o,r){n===void 0&&(n=-1);var i=e.call(this,o||r&&r.message)||this;return Object.setPrototypeOf(i,t.prototype),i.statusCode=n,i.code=null,i.requestId=null,i.date=new Date,i.body=null,i.stack=r?r.stack:i.stack,i}return s(t,"GraphError"),t})(Error);Rc.GraphError=hz});var Hb=S(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.GraphErrorHandler=void 0;var Zb=(Ie(),Pe(Te)),hg=gg(),yz=(function(){function e(){}return s(e,"GraphErrorHandler"),e.constructError=function(t,n,o){var r=new hg.GraphError(n,"",t);return t.name!==void 0&&(r.code=t.name),r.body=t.toString(),r.date=new Date,r.headers=o?.headers,r},e.constructErrorFromResponse=function(t,n,o){var r=t.error,i=new hg.GraphError(n,r.message);return i.code=r.code,r.innerError!==void 0&&(i.requestId=r.innerError["request-id"],i.date=new Date(r.innerError.date)),i.body=JSON.stringify(r),i.headers=o?.headers,i},e.getError=function(t,n,o,r){return t===void 0&&(t=null),n===void 0&&(n=-1),Zb.__awaiter(this,void 0,void 0,function(){var i;return Zb.__generator(this,function(a){if(t&&t.error?i=e.constructErrorFromResponse(t,n,r):t instanceof Error?i=e.constructError(t,n,r):(i=new hg.GraphError(n),i.body=t),typeof o=="function")o(i,null);else return[2,i];return[2]})})},e})();zc.GraphErrorHandler=yz});var yg=S(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.GraphRequest=void 0;var ye=(Ie(),Pe(Te)),vz=wt(),_z=Hb(),ji=Gu(),Pz=sg(),xz=Xt(),Sr=Ci(),bz=Mi(),Ez=(function(){function e(t,n,o){var r=this;this.parsePath=function(i){if(i.indexOf("https://")!==-1){i=i.replace("https://","");var a=i.indexOf("/");a!==-1&&(r.urlComponents.host="https://"+i.substring(0,a),i=i.substring(a+1,i.length));var u=i.indexOf("/");u!==-1&&(r.urlComponents.version=i.substring(0,u),i=i.substring(u+1,i.length))}i.charAt(0)==="/"&&(i=i.substr(1));var c=i.indexOf("?");if(c===-1)r.urlComponents.path=i;else{r.urlComponents.path=i.substr(0,c);for(var l=i.substring(c+1,i.length).split("&"),d=0,h=l;d<h.length;d++){var m=h[d];r.parseQueryParameter(m)}}},this.httpClient=t,this.config=n,this.urlComponents={host:this.config.baseUrl,version:this.config.defaultVersion,oDataQueryParams:{},otherURLQueryParams:{},otherURLQueryOptions:[]},this._headers={},this._options={},this._middlewareOptions=[],this.parsePath(o)}return s(e,"GraphRequest"),e.prototype.addCsvQueryParameter=function(t,n,o){this.urlComponents.oDataQueryParams[t]=this.urlComponents.oDataQueryParams[t]?this.urlComponents.oDataQueryParams[t]+",":"";var r=[];o.length>1&&typeof n=="string"?r=Array.prototype.slice.call(o):typeof n=="string"?r.push(n):r=r.concat(n),this.urlComponents.oDataQueryParams[t]+=r.join(",")},e.prototype.buildFullUrl=function(){var t=(0,ji.urlJoin)([this.urlComponents.host,this.urlComponents.version,this.urlComponents.path])+this.createQueryString();return this.config.debugLogging&&console.log(t),t},e.prototype.createQueryString=function(){var t=this.urlComponents,n=[];if(Object.keys(t.oDataQueryParams).length!==0)for(var o in t.oDataQueryParams)Object.prototype.hasOwnProperty.call(t.oDataQueryParams,o)&&n.push(o+"="+t.oDataQueryParams[o]);if(Object.keys(t.otherURLQueryParams).length!==0)for(var o in t.otherURLQueryParams)Object.prototype.hasOwnProperty.call(t.otherURLQueryParams,o)&&n.push(o+"="+t.otherURLQueryParams[o]);if(t.otherURLQueryOptions.length!==0)for(var r=0,i=t.otherURLQueryOptions;r<i.length;r++){var a=i[r];n.push(a)}return n.length>0?"?"+n.join("&"):""},e.prototype.parseQueryParameter=function(t){if(typeof t=="string")if(t.charAt(0)==="?"&&(t=t.substring(1)),t.indexOf("&")!==-1)for(var n=t.split("&"),o=0,r=n;o<r.length;o++){var i=r[o];this.parseQueryParamenterString(i)}else this.parseQueryParamenterString(t);else if(t.constructor===Object)for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&this.setURLComponentsQueryParamater(a,t[a]);return this},e.prototype.parseQueryParamenterString=function(t){if(this.isValidQueryKeyValuePair(t)){var n=t.indexOf("="),o=t.substring(0,n),r=t.substring(n+1);this.setURLComponentsQueryParamater(o,r)}else this.urlComponents.otherURLQueryOptions.push(t)},e.prototype.setURLComponentsQueryParamater=function(t,n){if(ji.oDataQueryNames.indexOf(t)!==-1){var o=this.urlComponents.oDataQueryParams[t],r=o&&(t==="$expand"||t==="$select"||t==="$orderby");this.urlComponents.oDataQueryParams[t]=r?o+","+n:n}else this.urlComponents.otherURLQueryParams[t]=n},e.prototype.isValidQueryKeyValuePair=function(t){var n=t.indexOf("=");if(n===-1)return!1;var o=t.indexOf("(");return!(o!==-1&&t.indexOf("(")<n)},e.prototype.updateRequestOptions=function(t){var n=ye.__assign({},t.headers);if(this.config.fetchOptions!==void 0){var o=ye.__assign({},this.config.fetchOptions);Object.assign(t,o),typeof this.config.fetchOptions.headers!==void 0&&(t.headers=ye.__assign({},this.config.fetchOptions.headers))}Object.assign(t,this._options),t.headers!==void 0&&Object.assign(n,t.headers),Object.assign(n,this._headers),t.headers=n},e.prototype.send=function(t,n,o){var r;return ye.__awaiter(this,void 0,void 0,function(){var i,a,u,c,l,d,h,m;return ye.__generator(this,function(p){switch(p.label){case 0:a=new xz.MiddlewareControl(this._middlewareOptions),this.updateRequestOptions(n),u=(r=this.config)===null||r===void 0?void 0:r.customHosts,p.label=1;case 1:return p.trys.push([1,4,,6]),[4,this.httpClient.sendRequest({request:t,options:n,middlewareControl:a,customHosts:u})];case 2:return c=p.sent(),i=c.response,[4,Pz.GraphResponseHandler.getResponse(i,this._responseType,o)];case 3:return l=p.sent(),[2,l];case 4:if(d=p.sent(),d instanceof vz.GraphClientError)throw d;return h=void 0,i&&(h=i.status),[4,_z.GraphErrorHandler.getError(d,h,o,i)];case 5:throw m=p.sent(),m;case 6:return[2]}})})},e.prototype.setHeaderContentType=function(){if(!this._headers){this.header("Content-Type","application/json");return}for(var t=Object.keys(this._headers),n=0,o=t;n<o.length;n++){var r=o[n];if(r.toLowerCase()==="content-type")return}this.header("Content-Type","application/json")},e.prototype.header=function(t,n){return this._headers[t]=n,this},e.prototype.headers=function(t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(this._headers[n]=t[n]);return this},e.prototype.option=function(t,n){return this._options[t]=n,this},e.prototype.options=function(t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(this._options[n]=t[n]);return this},e.prototype.middlewareOptions=function(t){return this._middlewareOptions=t,this},e.prototype.version=function(t){return this.urlComponents.version=t,this},e.prototype.responseType=function(t){return this._responseType=t,this},e.prototype.select=function(t){return this.addCsvQueryParameter("$select",t,arguments),this},e.prototype.expand=function(t){return this.addCsvQueryParameter("$expand",t,arguments),this},e.prototype.orderby=function(t){return this.addCsvQueryParameter("$orderby",t,arguments),this},e.prototype.filter=function(t){return this.urlComponents.oDataQueryParams.$filter=t,this},e.prototype.search=function(t){return this.urlComponents.oDataQueryParams.$search=t,this},e.prototype.top=function(t){return this.urlComponents.oDataQueryParams.$top=t,this},e.prototype.skip=function(t){return this.urlComponents.oDataQueryParams.$skip=t,this},e.prototype.skipToken=function(t){return this.urlComponents.oDataQueryParams.$skipToken=t,this},e.prototype.count=function(t){return t===void 0&&(t=!0),this.urlComponents.oDataQueryParams.$count=t.toString(),this},e.prototype.query=function(t){return this.parseQueryParameter(t)},e.prototype.get=function(t){return ye.__awaiter(this,void 0,void 0,function(){var n,o,r;return ye.__generator(this,function(i){switch(i.label){case 0:return n=this.buildFullUrl(),o={method:Sr.RequestMethod.GET},[4,this.send(n,o,t)];case 1:return r=i.sent(),[2,r]}})})},e.prototype.post=function(t,n){return ye.__awaiter(this,void 0,void 0,function(){var o,r,i;return ye.__generator(this,function(a){switch(a.label){case 0:return o=this.buildFullUrl(),r={method:Sr.RequestMethod.POST,body:(0,ji.serializeContent)(t)},i=t&&t.constructor&&t.constructor.name,i==="FormData"?r.headers={}:(this.setHeaderContentType(),r.headers=this._headers),[4,this.send(o,r,n)];case 1:return[2,a.sent()]}})})},e.prototype.create=function(t,n){return ye.__awaiter(this,void 0,void 0,function(){return ye.__generator(this,function(o){switch(o.label){case 0:return[4,this.post(t,n)];case 1:return[2,o.sent()]}})})},e.prototype.put=function(t,n){return ye.__awaiter(this,void 0,void 0,function(){var o,r;return ye.__generator(this,function(i){switch(i.label){case 0:return o=this.buildFullUrl(),this.setHeaderContentType(),r={method:Sr.RequestMethod.PUT,body:(0,ji.serializeContent)(t)},[4,this.send(o,r,n)];case 1:return[2,i.sent()]}})})},e.prototype.patch=function(t,n){return ye.__awaiter(this,void 0,void 0,function(){var o,r;return ye.__generator(this,function(i){switch(i.label){case 0:return o=this.buildFullUrl(),this.setHeaderContentType(),r={method:Sr.RequestMethod.PATCH,body:(0,ji.serializeContent)(t)},[4,this.send(o,r,n)];case 1:return[2,i.sent()]}})})},e.prototype.update=function(t,n){return ye.__awaiter(this,void 0,void 0,function(){return ye.__generator(this,function(o){switch(o.label){case 0:return[4,this.patch(t,n)];case 1:return[2,o.sent()]}})})},e.prototype.delete=function(t){return ye.__awaiter(this,void 0,void 0,function(){var n,o;return ye.__generator(this,function(r){switch(r.label){case 0:return n=this.buildFullUrl(),o={method:Sr.RequestMethod.DELETE},[4,this.send(n,o,t)];case 1:return[2,r.sent()]}})})},e.prototype.del=function(t){return ye.__awaiter(this,void 0,void 0,function(){return ye.__generator(this,function(n){switch(n.label){case 0:return[4,this.delete(t)];case 1:return[2,n.sent()]}})})},e.prototype.getStream=function(t){return ye.__awaiter(this,void 0,void 0,function(){var n,o;return ye.__generator(this,function(r){switch(r.label){case 0:return n=this.buildFullUrl(),o={method:Sr.RequestMethod.GET},this.responseType(bz.ResponseType.STREAM),[4,this.send(n,o,t)];case 1:return[2,r.sent()]}})})},e.prototype.putStream=function(t,n){return ye.__awaiter(this,void 0,void 0,function(){var o,r;return ye.__generator(this,function(i){switch(i.label){case 0:return o=this.buildFullUrl(),r={method:Sr.RequestMethod.PUT,headers:{"Content-Type":"application/octet-stream"},body:t},[4,this.send(o,r,n)];case 1:return[2,i.sent()]}})})},e})();kc.GraphRequest=Ez});var vg=S(Dc=>{"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});Dc.HTTPClient=void 0;var qb=(Ie(),Pe(Te)),Tz=(function(){function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!t||!t.length){var o=new Error;throw o.name="InvalidMiddlewareChain",o.message="Please provide a default middleware chain or custom middleware chain",o}this.setMiddleware.apply(this,t)}return s(e,"HTTPClient"),e.prototype.setMiddleware=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];t.length>1?this.parseMiddleWareArray(t):this.middleware=t[0]},e.prototype.parseMiddleWareArray=function(t){t.forEach(function(n,o){o<t.length-1&&n.setNext(t[o+1])}),this.middleware=t[0]},e.prototype.sendRequest=function(t){return qb.__awaiter(this,void 0,void 0,function(){var n;return qb.__generator(this,function(o){switch(o.label){case 0:if(typeof t.request=="string"&&t.options===void 0)throw n=new Error,n.name="InvalidRequestOptions",n.message="Unable to execute the middleware, Please provide valid options for a request",n;return[4,this.middleware.execute(t)];case 1:return o.sent(),[2,t]}})})},e})();Dc.HTTPClient=Tz});var Wb=S(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});Cc.HTTPClientFactory=void 0;var Iz=(Ie(),Pe(Te)),Gb=vg(),Sz=Xu(),Az=Qu(),wz=Ui(),$z=Ni(),Oz=ic(),Rz=rc(),zz=cc(),kz=s(function(){return typeof process=="object"&&typeof require=="function"},"isNodeEnvironment"),Dz=(function(){function e(){}return s(e,"HTTPClientFactory"),e.createWithAuthenticationProvider=function(t){var n=new Sz.AuthenticationHandler(t),o=new Rz.RetryHandler(new $z.RetryHandlerOptions),r=new zz.TelemetryHandler,i=new Az.HTTPMessageHandler;if(n.setNext(o),kz()){var a=new Oz.RedirectHandler(new wz.RedirectHandlerOptions);o.setNext(a),a.setNext(r)}else o.setNext(r);return r.setNext(i),e.createWithMiddleware(n)},e.createWithMiddleware=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new(Gb.HTTPClient.bind.apply(Gb.HTTPClient,Iz.__spreadArray([void 0],t,!1)))},e})();Cc.HTTPClientFactory=Dz});var Jb=S(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.validatePolyFilling=void 0;var Cz=s(function(){if(typeof Promise>"u"&&typeof fetch>"u"){var e=new Error("Library cannot function without Promise and fetch. So, please provide polyfill for them.");throw e.name="PolyFillNotAvailable",e}else if(typeof Promise>"u"){var e=new Error("Library cannot function without Promise. So, please provide polyfill for it.");throw e.name="PolyFillNotAvailable",e}else if(typeof fetch>"u"){var e=new Error("Library cannot function without fetch. So, please provide polyfill for it.");throw e.name="PolyFillNotAvailable",e}return!0},"validatePolyFilling");Nc.validatePolyFilling=Cz});var Yb=S(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.Client=void 0;var Nz=(Ie(),Pe(Te)),Kb=Qm(),Uz=mg(),Mz=yg(),Xb=vg(),Lz=Wb(),jz=Jb(),Fz=(function(){function e(t){this.config={baseUrl:Kb.GRAPH_BASE_URL,debugLogging:!1,defaultVersion:Kb.GRAPH_API_VERSION},(0,jz.validatePolyFilling)();for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(this.config[n]=t[n]);var o;if(t.authProvider!==void 0&&t.middleware!==void 0){var r=new Error;throw r.name="AmbiguityInInitialization",r.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain not both",r}else if(t.authProvider!==void 0)o=Lz.HTTPClientFactory.createWithAuthenticationProvider(t.authProvider);else if(t.middleware!==void 0)o=new(Xb.HTTPClient.bind.apply(Xb.HTTPClient,Nz.__spreadArray([void 0],[].concat(t.middleware),!1)));else{var r=new Error;throw r.name="InvalidMiddlewareChain",r.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain",r}this.httpClient=o}return s(e,"Client"),e.init=function(t){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=o==="authProvider"?new Uz.CustomAuthenticationProvider(t[o]):t[o]);return e.initWithMiddleware(n)},e.initWithMiddleware=function(t){return new e(t)},e.prototype.api=function(t){return new Mz.GraphRequest(this.httpClient,this.config,t)},e})();Uc.Client=Fz});var ve=S(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.ResponseType=L.GraphRequest=L.GraphClientError=L.GraphError=L.CustomAuthenticationProvider=L.Client=L.PageIterator=L.Range=L.UploadResult=L.FileUpload=L.StreamUpload=L.getValidRangeSize=L.OneDriveLargeFileUploadTask=L.LargeFileUploadTask=L.ChaosHandler=L.ChaosStrategy=L.ChaosHandlerOptions=L.TelemetryHandlerOptions=L.FeatureUsageFlag=L.RedirectHandlerOptions=L.RetryHandlerOptions=L.AuthenticationHandlerOptions=L.MiddlewareFactory=L.TelemetryHandler=L.RedirectHandler=L.RetryHandler=L.HTTPMessageHandler=L.AuthenticationHandler=L.BatchResponseContent=L.BatchRequestContent=void 0;var Bz=mb();Object.defineProperty(L,"BatchRequestContent",{enumerable:!0,get:s(function(){return Bz.BatchRequestContent},"get")});var Vz=gb();Object.defineProperty(L,"BatchResponseContent",{enumerable:!0,get:s(function(){return Vz.BatchResponseContent},"get")});var Zz=Xu();Object.defineProperty(L,"AuthenticationHandler",{enumerable:!0,get:s(function(){return Zz.AuthenticationHandler},"get")});var Hz=Qu();Object.defineProperty(L,"HTTPMessageHandler",{enumerable:!0,get:s(function(){return Hz.HTTPMessageHandler},"get")});var qz=rc();Object.defineProperty(L,"RetryHandler",{enumerable:!0,get:s(function(){return qz.RetryHandler},"get")});var Gz=ic();Object.defineProperty(L,"RedirectHandler",{enumerable:!0,get:s(function(){return Gz.RedirectHandler},"get")});var Wz=cc();Object.defineProperty(L,"TelemetryHandler",{enumerable:!0,get:s(function(){return Wz.TelemetryHandler},"get")});var Jz=Ob();Object.defineProperty(L,"MiddlewareFactory",{enumerable:!0,get:s(function(){return Jz.MiddlewareFactory},"get")});var Kz=eg();Object.defineProperty(L,"AuthenticationHandlerOptions",{enumerable:!0,get:s(function(){return Kz.AuthenticationHandlerOptions},"get")});var Xz=Ni();Object.defineProperty(L,"RetryHandlerOptions",{enumerable:!0,get:s(function(){return Xz.RetryHandlerOptions},"get")});var Yz=Ui();Object.defineProperty(L,"RedirectHandlerOptions",{enumerable:!0,get:s(function(){return Yz.RedirectHandlerOptions},"get")});var Qb=_n();Object.defineProperty(L,"FeatureUsageFlag",{enumerable:!0,get:s(function(){return Qb.FeatureUsageFlag},"get")});Object.defineProperty(L,"TelemetryHandlerOptions",{enumerable:!0,get:s(function(){return Qb.TelemetryHandlerOptions},"get")});var Qz=og();Object.defineProperty(L,"ChaosHandlerOptions",{enumerable:!0,get:s(function(){return Qz.ChaosHandlerOptions},"get")});var ek=dc();Object.defineProperty(L,"ChaosStrategy",{enumerable:!0,get:s(function(){return ek.ChaosStrategy},"get")});var tk=Cb();Object.defineProperty(L,"ChaosHandler",{enumerable:!0,get:s(function(){return tk.ChaosHandler},"get")});var rk=pg();Object.defineProperty(L,"LargeFileUploadTask",{enumerable:!0,get:s(function(){return rk.LargeFileUploadTask},"get")});var nk=Lb();Object.defineProperty(L,"OneDriveLargeFileUploadTask",{enumerable:!0,get:s(function(){return nk.OneDriveLargeFileUploadTask},"get")});var ok=fg();Object.defineProperty(L,"getValidRangeSize",{enumerable:!0,get:s(function(){return ok.getValidRangeSize},"get")});var ik=Fb();Object.defineProperty(L,"StreamUpload",{enumerable:!0,get:s(function(){return ik.StreamUpload},"get")});var ak=dg();Object.defineProperty(L,"FileUpload",{enumerable:!0,get:s(function(){return ak.FileUpload},"get")});var sk=cg();Object.defineProperty(L,"UploadResult",{enumerable:!0,get:s(function(){return sk.UploadResult},"get")});var uk=ug();Object.defineProperty(L,"Range",{enumerable:!0,get:s(function(){return uk.Range},"get")});var ck=Bb();Object.defineProperty(L,"PageIterator",{enumerable:!0,get:s(function(){return ck.PageIterator},"get")});var lk=Yb();Object.defineProperty(L,"Client",{enumerable:!0,get:s(function(){return lk.Client},"get")});var pk=mg();Object.defineProperty(L,"CustomAuthenticationProvider",{enumerable:!0,get:s(function(){return pk.CustomAuthenticationProvider},"get")});var dk=gg();Object.defineProperty(L,"GraphError",{enumerable:!0,get:s(function(){return dk.GraphError},"get")});var fk=wt();Object.defineProperty(L,"GraphClientError",{enumerable:!0,get:s(function(){return fk.GraphClientError},"get")});var mk=yg();Object.defineProperty(L,"GraphRequest",{enumerable:!0,get:s(function(){return mk.GraphRequest},"get")});var gk=Mi();Object.defineProperty(L,"ResponseType",{enumerable:!0,get:s(function(){return gk.ResponseType},"get")})});var In=S((xg,bg)=>{(function(e,t){typeof xg=="object"&&typeof bg<"u"?bg.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(xg,(function(){"use strict";var e=1e3,t=6e4,n=36e5,o="millisecond",r="second",i="minute",a="hour",u="day",c="week",l="month",d="quarter",h="year",m="date",p="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:s(function(X){var N=["th","st","nd","rd"],k=X%100;return"["+X+(N[(k-20)%10]||N[k]||N[0])+"]"},"ordinal")},E=s(function(X,N,k){var j=String(X);return!j||j.length>=N?X:""+Array(N+1-j.length).join(k)+X},"m"),T={s:E,z:s(function(X){var N=-X.utcOffset(),k=Math.abs(N),j=Math.floor(k/60),U=k%60;return(N<=0?"+":"-")+E(j,2,"0")+":"+E(U,2,"0")},"z"),m:s(function X(N,k){if(N.date()<k.date())return-X(k,N);var j=12*(k.year()-N.year())+(k.month()-N.month()),U=N.clone().add(j,l),J=k-U<0,te=N.clone().add(j+(J?-1:1),l);return+(-(j+(k-U)/(J?U-te:te-U))||0)},"t"),a:s(function(X){return X<0?Math.ceil(X)||0:Math.floor(X)},"a"),p:s(function(X){return{M:l,y:h,w:c,d:u,D:m,h:a,m:i,s:r,ms:o,Q:d}[X]||String(X||"").toLowerCase().replace(/s$/,"")},"p"),u:s(function(X){return X===void 0},"u")},Z="en",ie={};ie[Z]=b;var le=s(function(X){return X instanceof Ge},"p"),ze=s(function X(N,k,j){var U;if(!N)return Z;if(typeof N=="string"){var J=N.toLowerCase();ie[J]&&(U=J),k&&(ie[J]=k,U=J);var te=N.split("-");if(!U&&te.length>1)return X(te[0])}else{var ge=N.name;ie[ge]=N,U=ge}return!j&&U&&(Z=U),U||!j&&Z},"t"),Se=s(function(X,N){if(le(X))return X.clone();var k=typeof N=="object"?N:{};return k.date=X,k.args=arguments,new Ge(k)},"w"),re=T;re.l=ze,re.i=le,re.w=function(X,N){return Se(X,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var Ge=(function(){function X(k){this.$L=ze(k.locale,null,!0),this.parse(k)}s(X,"M");var N=X.prototype;return N.parse=function(k){this.$d=(function(j){var U=j.date,J=j.utc;if(U===null)return new Date(NaN);if(re.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var te=U.match(g);if(te){var ge=te[2]-1||0,we=(te[7]||"0").substring(0,3);return J?new Date(Date.UTC(te[1],ge,te[3]||1,te[4]||0,te[5]||0,te[6]||0,we)):new Date(te[1],ge,te[3]||1,te[4]||0,te[5]||0,te[6]||0,we)}}return new Date(U)})(k),this.$x=k.x||{},this.init()},N.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},N.$utils=function(){return re},N.isValid=function(){return this.$d.toString()!==p},N.isSame=function(k,j){var U=Se(k);return this.startOf(j)<=U&&U<=this.endOf(j)},N.isAfter=function(k,j){return Se(k)<this.startOf(j)},N.isBefore=function(k,j){return this.endOf(j)<Se(k)},N.$g=function(k,j,U){return re.u(k)?this[j]:this.set(U,k)},N.unix=function(){return Math.floor(this.valueOf()/1e3)},N.valueOf=function(){return this.$d.getTime()},N.startOf=function(k,j){var U=this,J=!!re.u(j)||j,te=re.p(k),ge=s(function(Qt,We){var Rt=re.w(U.$u?Date.UTC(U.$y,We,Qt):new Date(U.$y,We,Qt),U);return J?Rt:Rt.endOf(u)},"l"),we=s(function(Qt,We){return re.w(U.toDate()[Qt].apply(U.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(We)),U)},"$"),ke=this.$W,je=this.$M,at=this.$D,Ar="set"+(this.$u?"UTC":"");switch(te){case h:return J?ge(1,0):ge(31,11);case l:return J?ge(1,je):ge(0,je+1);case c:var Yt=this.$locale().weekStart||0,Sn=(ke<Yt?ke+7:ke)-Yt;return ge(J?at-Sn:at+(6-Sn),je);case u:case m:return we(Ar+"Hours",0);case a:return we(Ar+"Minutes",1);case i:return we(Ar+"Seconds",2);case r:return we(Ar+"Milliseconds",3);default:return this.clone()}},N.endOf=function(k){return this.startOf(k,!1)},N.$set=function(k,j){var U,J=re.p(k),te="set"+(this.$u?"UTC":""),ge=(U={},U[u]=te+"Date",U[m]=te+"Date",U[l]=te+"Month",U[h]=te+"FullYear",U[a]=te+"Hours",U[i]=te+"Minutes",U[r]=te+"Seconds",U[o]=te+"Milliseconds",U)[J],we=J===u?this.$D+(j-this.$W):j;if(J===l||J===h){var ke=this.clone().set(m,1);ke.$d[ge](we),ke.init(),this.$d=ke.set(m,Math.min(this.$D,ke.daysInMonth())).$d}else ge&&this.$d[ge](we);return this.init(),this},N.set=function(k,j){return this.clone().$set(k,j)},N.get=function(k){return this[re.p(k)]()},N.add=function(k,j){var U,J=this;k=Number(k);var te=re.p(j),ge=s(function(je){var at=Se(J);return re.w(at.date(at.date()+Math.round(je*k)),J)},"y");if(te===l)return this.set(l,this.$M+k);if(te===h)return this.set(h,this.$y+k);if(te===u)return ge(1);if(te===c)return ge(7);var we=(U={},U[i]=t,U[a]=n,U[r]=e,U)[te]||1,ke=this.$d.getTime()+k*we;return re.w(ke,this)},N.subtract=function(k,j){return this.add(-1*k,j)},N.format=function(k){var j=this,U=this.$locale();if(!this.isValid())return U.invalidDate||p;var J=k||"YYYY-MM-DDTHH:mm:ssZ",te=re.z(this),ge=this.$H,we=this.$m,ke=this.$M,je=U.weekdays,at=U.months,Ar=U.meridiem,Yt=s(function(We,Rt,An,Ji){return We&&(We[Rt]||We(j,J))||An[Rt].slice(0,Ji)},"h"),Sn=s(function(We){return re.s(ge%12||12,We,"0")},"d"),Qt=Ar||function(We,Rt,An){var Ji=We<12?"AM":"PM";return An?Ji.toLowerCase():Ji};return J.replace(_,(function(We,Rt){return Rt||(function(An){switch(An){case"YY":return String(j.$y).slice(-2);case"YYYY":return re.s(j.$y,4,"0");case"M":return ke+1;case"MM":return re.s(ke+1,2,"0");case"MMM":return Yt(U.monthsShort,ke,at,3);case"MMMM":return Yt(at,ke);case"D":return j.$D;case"DD":return re.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return Yt(U.weekdaysMin,j.$W,je,2);case"ddd":return Yt(U.weekdaysShort,j.$W,je,3);case"dddd":return je[j.$W];case"H":return String(ge);case"HH":return re.s(ge,2,"0");case"h":return Sn(1);case"hh":return Sn(2);case"a":return Qt(ge,we,!0);case"A":return Qt(ge,we,!1);case"m":return String(we);case"mm":return re.s(we,2,"0");case"s":return String(j.$s);case"ss":return re.s(j.$s,2,"0");case"SSS":return re.s(j.$ms,3,"0");case"Z":return te}return null})(We)||te.replace(":","")}))},N.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},N.diff=function(k,j,U){var J,te=this,ge=re.p(j),we=Se(k),ke=(we.utcOffset()-this.utcOffset())*t,je=this-we,at=s(function(){return re.m(te,we)},"D");switch(ge){case h:J=at()/12;break;case l:J=at();break;case d:J=at()/3;break;case c:J=(je-ke)/6048e5;break;case u:J=(je-ke)/864e5;break;case a:J=je/n;break;case i:J=je/t;break;case r:J=je/e;break;default:J=je}return U?J:re.a(J)},N.daysInMonth=function(){return this.endOf(l).$D},N.$locale=function(){return ie[this.$L]},N.locale=function(k,j){if(!k)return this.$L;var U=this.clone(),J=ze(k,j,!0);return J&&(U.$L=J),U},N.clone=function(){return re.w(this.$d,this)},N.toDate=function(){return new Date(this.valueOf())},N.toJSON=function(){return this.isValid()?this.toISOString():null},N.toISOString=function(){return this.$d.toISOString()},N.toString=function(){return this.$d.toUTCString()},X})(),Wi=Ge.prototype;return Se.prototype=Wi,[["$ms",o],["$s",r],["$m",i],["$H",a],["$W",u],["$M",l],["$y",h],["$D",m]].forEach((function(X){Wi[X[1]]=function(N){return this.$g(N,X[0],X[1])}})),Se.extend=function(X,N){return X.$i||(X(N,Ge,Se),X.$i=!0),Se},Se.locale=ze,Se.isDayjs=le,Se.unix=function(X){return Se(1e3*X)},Se.en=ie[Z],Se.Ls=ie,Se.p={},Se}))});var Tk={};tt(Tk,{microsoftSharePoint:()=>Ek});module.exports=Pe(Tk);var nt={};tt(nt,{$ZodAny:()=>Gn,$ZodArray:()=>Xn,$ZodAsyncError:()=>dt,$ZodBase64:()=>Da,$ZodBase64URL:()=>Ca,$ZodBigInt:()=>Fr,$ZodBigIntFormat:()=>La,$ZodBoolean:()=>or,$ZodCIDRv4:()=>za,$ZodCIDRv6:()=>ka,$ZodCUID:()=>Ta,$ZodCUID2:()=>Ia,$ZodCatch:()=>ts,$ZodCheck:()=>fe,$ZodCheckBigIntFormat:()=>kl,$ZodCheckEndsWith:()=>Hl,$ZodCheckGreaterThan:()=>fa,$ZodCheckIncludes:()=>Vl,$ZodCheckLengthEquals:()=>Ll,$ZodCheckLessThan:()=>da,$ZodCheckLowerCase:()=>Fl,$ZodCheckMaxLength:()=>Ul,$ZodCheckMaxSize:()=>Dl,$ZodCheckMimeType:()=>Gl,$ZodCheckMinLength:()=>Ml,$ZodCheckMinSize:()=>Cl,$ZodCheckMultipleOf:()=>Rl,$ZodCheckNumberFormat:()=>zl,$ZodCheckOverwrite:()=>Wl,$ZodCheckProperty:()=>ql,$ZodCheckRegex:()=>jl,$ZodCheckSizeEquals:()=>Nl,$ZodCheckStartsWith:()=>Zl,$ZodCheckStringFormat:()=>Lr,$ZodCheckUpperCase:()=>Bl,$ZodCodec:()=>Vr,$ZodCustom:()=>ao,$ZodCustomStringFormat:()=>Ma,$ZodDate:()=>Kn,$ZodDefault:()=>Xa,$ZodDiscriminatedUnion:()=>Yn,$ZodE164:()=>Na,$ZodEmail:()=>xa,$ZodEmoji:()=>ba,$ZodEncodeError:()=>zt,$ZodEnum:()=>to,$ZodError:()=>Un,$ZodExactOptional:()=>Ka,$ZodFile:()=>Ja,$ZodFunction:()=>is,$ZodGUID:()=>_a,$ZodIPv4:()=>$a,$ZodIPv6:()=>Oa,$ZodISODate:()=>Vn,$ZodISODateTime:()=>Bn,$ZodISODuration:()=>Hn,$ZodISOTime:()=>Zn,$ZodIntersection:()=>qa,$ZodJWT:()=>Ua,$ZodKSUID:()=>wa,$ZodLazy:()=>ss,$ZodLiteral:()=>ro,$ZodMAC:()=>Ra,$ZodMap:()=>Ga,$ZodNaN:()=>rs,$ZodNanoID:()=>Ea,$ZodNever:()=>Va,$ZodNonOptional:()=>Qa,$ZodNull:()=>Ba,$ZodNullable:()=>oo,$ZodNumber:()=>jr,$ZodNumberFormat:()=>qn,$ZodObject:()=>Za,$ZodObjectJIT:()=>Yl,$ZodOptional:()=>Br,$ZodPipe:()=>io,$ZodPrefault:()=>Ya,$ZodPromise:()=>as,$ZodReadonly:()=>ns,$ZodRealError:()=>Ke,$ZodRecord:()=>eo,$ZodRegistry:()=>us,$ZodSet:()=>Wa,$ZodString:()=>Pt,$ZodStringFormat:()=>pe,$ZodSuccess:()=>es,$ZodSymbol:()=>ja,$ZodTemplateLiteral:()=>os,$ZodTransform:()=>no,$ZodTuple:()=>Qn,$ZodType:()=>H,$ZodULID:()=>Sa,$ZodURL:()=>Fn,$ZodUUID:()=>Pa,$ZodUndefined:()=>Fa,$ZodUnion:()=>ir,$ZodUnknown:()=>Wn,$ZodVoid:()=>Jn,$ZodXID:()=>Aa,$ZodXor:()=>Ha,$brand:()=>On,$constructor:()=>y,$input:()=>ls,$output:()=>cs,Doc:()=>jn,JSONSchema:()=>vh,JSONSchemaGenerator:()=>Ds,NEVER:()=>Ki,TimePrecision:()=>ds,_any:()=>Ho,_array:()=>Hp,_base64:()=>Ro,_base64url:()=>zo,_bigint:()=>ys,_boolean:()=>Bo,_catch:()=>tS,_check:()=>yh,_cidrv4:()=>$o,_cidrv6:()=>Oo,_coercedBigint:()=>Zo,_coercedBoolean:()=>Vo,_coercedDate:()=>Wo,_coercedNumber:()=>jo,_coercedString:()=>mo,_cuid:()=>bo,_cuid2:()=>Eo,_custom:()=>ei,_date:()=>Ts,_decode:()=>na,_decodeAsync:()=>ia,_default:()=>YI,_discriminatedUnion:()=>jI,_e164:()=>ko,_email:()=>go,_emoji:()=>Po,_encode:()=>ra,_encodeAsync:()=>oa,_endsWith:()=>pr,_enum:()=>qI,_file:()=>Ss,_float32:()=>fs,_float64:()=>ms,_gt:()=>mt,_gte:()=>Re,_guid:()=>qr,_includes:()=>cr,_int:()=>Fo,_int32:()=>gs,_int64:()=>vs,_intersection:()=>FI,_ipv4:()=>Ao,_ipv6:()=>wo,_isoDate:()=>No,_isoDateTime:()=>Co,_isoDuration:()=>Mo,_isoTime:()=>Uo,_jwt:()=>Do,_ksuid:()=>So,_lazy:()=>iS,_length:()=>Lt,_literal:()=>WI,_lowercase:()=>sr,_lt:()=>ft,_lte:()=>Ve,_mac:()=>ps,_map:()=>ZI,_max:()=>Ve,_maxLength:()=>Mt,_maxSize:()=>bt,_mime:()=>dr,_min:()=>Re,_minLength:()=>$e,_minSize:()=>gt,_multipleOf:()=>xt,_nan:()=>Is,_nanoid:()=>xo,_nativeEnum:()=>GI,_negative:()=>Ko,_never:()=>Es,_nonnegative:()=>Yo,_nonoptional:()=>QI,_nonpositive:()=>Xo,_normalize:()=>fr,_null:()=>bs,_nullable:()=>XI,_number:()=>Lo,_optional:()=>KI,_overwrite:()=>ut,_parse:()=>kr,_parseAsync:()=>Dr,_pipe:()=>rS,_positive:()=>Jo,_promise:()=>aS,_property:()=>Qo,_readonly:()=>nS,_record:()=>VI,_refine:()=>ti,_regex:()=>Me,_safeDecode:()=>sa,_safeDecodeAsync:()=>ca,_safeEncode:()=>aa,_safeEncodeAsync:()=>ua,_safeParse:()=>Cr,_safeParseAsync:()=>Ur,_set:()=>HI,_size:()=>Ut,_slugify:()=>Gr,_startsWith:()=>lr,_string:()=>fo,_stringFormat:()=>yr,_stringbool:()=>Os,_success:()=>eS,_superRefine:()=>As,_symbol:()=>Ps,_templateLiteral:()=>oS,_toLowerCase:()=>gr,_toUpperCase:()=>hr,_transform:()=>JI,_trim:()=>mr,_tuple:()=>BI,_uint32:()=>hs,_uint64:()=>_s,_ulid:()=>To,_undefined:()=>xs,_union:()=>MI,_unknown:()=>qo,_uppercase:()=>ur,_url:()=>ar,_uuid:()=>ho,_uuidv4:()=>yo,_uuidv6:()=>vo,_uuidv7:()=>_o,_void:()=>Go,_xid:()=>Io,_xor:()=>LI,clone:()=>De,config:()=>xe,createStandardJSONSchemaMethod:()=>Wr,createToJSONSchemaMethod:()=>qp,decode:()=>Mg,decodeAsync:()=>jg,describe:()=>ws,encode:()=>Ug,encodeAsync:()=>Lg,extractDefs:()=>Ft,finalize:()=>Bt,flattenError:()=>Rr,formatError:()=>zr,globalConfig:()=>$n,globalRegistry:()=>Ce,initializeContext:()=>jt,isValidBase64:()=>Xl,isValidBase64URL:()=>uh,isValidJWT:()=>ch,locales:()=>Hr,meta:()=>$s,parse:()=>tr,parseAsync:()=>rr,prettifyError:()=>ta,process:()=>de,regexes:()=>Xe,registry:()=>po,safeDecode:()=>Bg,safeDecodeAsync:()=>Zg,safeEncode:()=>Fg,safeEncodeAsync:()=>Vg,safeParse:()=>Nr,safeParseAsync:()=>Mr,toDotPath:()=>Ng,toJSONSchema:()=>ri,treeifyError:()=>ea,util:()=>w,version:()=>Jl});var Ki=Object.freeze({status:"aborted"});function y(e,t,n){function o(u,c){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:c,constr:a,traits:new Set},enumerable:!1}),u._zod.traits.has(e))return;u._zod.traits.add(e),t(u,c);let l=a.prototype,d=Object.keys(l);for(let h=0;h<d.length;h++){let m=d[h];m in u||(u[m]=l[m].bind(u))}}s(o,"init");let r=n?.Parent??Object;class i extends r{static{s(this,"Definition")}}Object.defineProperty(i,"name",{value:e});function a(u){var c;let l=n?.Parent?new i:this;o(l,u),(c=l._zod).deferred??(c.deferred=[]);for(let d of l._zod.deferred)d();return l}return s(a,"_"),Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:s(u=>n?.Parent&&u instanceof n.Parent?!0:u?._zod?.traits?.has(e),"value")}),Object.defineProperty(a,"name",{value:e}),a}s(y,"$constructor");var On=Symbol("zod_brand"),dt=class extends Error{static{s(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},zt=class extends Error{static{s(this,"$ZodEncodeError")}constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},$n={};function xe(e){return e&&Object.assign($n,e),$n}s(xe,"config");var w={};tt(w,{BIGINT_FORMAT_RANGES:()=>rl,Class:()=>Jc,NUMBER_FORMAT_RANGES:()=>tl,aborted:()=>Nt,allowsEval:()=>Yc,assert:()=>eT,assertEqual:()=>KE,assertIs:()=>YE,assertNever:()=>QE,assertNotEqual:()=>XE,assignProp:()=>Dt,base64ToUint8Array:()=>kg,base64urlToUint8Array:()=>pT,cached:()=>$r,captureStackTrace:()=>Yi,cleanEnum:()=>lT,cleanRegex:()=>kn,clone:()=>De,cloneDef:()=>rT,createTransparentProxy:()=>uT,defineLazy:()=>Y,esc:()=>Xi,escapeRegex:()=>st,extend:()=>$g,finalizeIssue:()=>Je,floatSafeRemainder:()=>Kc,getElementAtPath:()=>nT,getEnumValues:()=>zn,getLengthableOrigin:()=>Nn,getParsedType:()=>sT,getSizableOrigin:()=>Cn,hexToUint8Array:()=>fT,isObject:()=>er,isPlainObject:()=>Ct,issue:()=>Or,joinValues:()=>x,jsonStringifyReplacer:()=>wr,merge:()=>cT,mergeDefs:()=>_t,normalizeParams:()=>I,nullish:()=>kt,numKeys:()=>aT,objectClone:()=>tT,omit:()=>wg,optionalKeys:()=>el,parsedType:()=>$,partial:()=>Rg,pick:()=>Ag,prefixIssues:()=>rt,primitiveTypes:()=>Qc,promiseAllObject:()=>oT,propertyKeyTypes:()=>Dn,randomString:()=>iT,required:()=>zg,safeExtend:()=>Og,shallowClone:()=>Qi,slugify:()=>Xc,stringifyPrimitive:()=>A,uint8ArrayToBase64:()=>Dg,uint8ArrayToBase64url:()=>dT,uint8ArrayToHex:()=>mT,unwrapMessage:()=>Rn});function KE(e){return e}s(KE,"assertEqual");function XE(e){return e}s(XE,"assertNotEqual");function YE(e){}s(YE,"assertIs");function QE(e){throw new Error("Unexpected value in exhaustive check")}s(QE,"assertNever");function eT(e){}s(eT,"assert");function zn(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,r])=>t.indexOf(+o)===-1).map(([o,r])=>r)}s(zn,"getEnumValues");function x(e,t="|"){return e.map(n=>A(n)).join(t)}s(x,"joinValues");function wr(e,t){return typeof t=="bigint"?t.toString():t}s(wr,"jsonStringifyReplacer");function $r(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}s($r,"cached");function kt(e){return e==null}s(kt,"nullish");function kn(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}s(kn,"cleanRegex");function Kc(e,t){let n=(e.toString().split(".")[1]||"").length,o=t.toString(),r=(o.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(o)){let c=o.match(/\d?e-(\d?)/);c?.[1]&&(r=Number.parseInt(c[1]))}let i=n>r?n:r,a=Number.parseInt(e.toFixed(i).replace(".","")),u=Number.parseInt(t.toFixed(i).replace(".",""));return a%u/10**i}s(Kc,"floatSafeRemainder");var Sg=Symbol("evaluating");function Y(e,t,n){let o;Object.defineProperty(e,t,{get(){if(o!==Sg)return o===void 0&&(o=Sg,o=n()),o},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}s(Y,"defineLazy");function tT(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}s(tT,"objectClone");function Dt(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}s(Dt,"assignProp");function _t(...e){let t={};for(let n of e){let o=Object.getOwnPropertyDescriptors(n);Object.assign(t,o)}return Object.defineProperties({},t)}s(_t,"mergeDefs");function rT(e){return _t(e._zod.def)}s(rT,"cloneDef");function nT(e,t){return t?t.reduce((n,o)=>n?.[o],e):e}s(nT,"getElementAtPath");function oT(e){let t=Object.keys(e),n=t.map(o=>e[o]);return Promise.all(n).then(o=>{let r={};for(let i=0;i<t.length;i++)r[t[i]]=o[i];return r})}s(oT,"promiseAllObject");function iT(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let o=0;o<e;o++)n+=t[Math.floor(Math.random()*t.length)];return n}s(iT,"randomString");function Xi(e){return JSON.stringify(e)}s(Xi,"esc");function Xc(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}s(Xc,"slugify");var Yi="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function er(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}s(er,"isObject");var Yc=$r(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Ct(e){if(er(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(er(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}s(Ct,"isPlainObject");function Qi(e){return Ct(e)?{...e}:Array.isArray(e)?[...e]:e}s(Qi,"shallowClone");function aT(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}s(aT,"numKeys");var sT=s(e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},"getParsedType"),Dn=new Set(["string","number","symbol"]),Qc=new Set(["string","number","bigint","boolean","symbol","undefined"]);function st(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}s(st,"escapeRegex");function De(e,t,n){let o=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(o._zod.parent=e),o}s(De,"clone");function I(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:s(()=>t,"error")};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:s(()=>t.error,"error")}:t}s(I,"normalizeParams");function uT(e){let t;return new Proxy({},{get(n,o,r){return t??(t=e()),Reflect.get(t,o,r)},set(n,o,r,i){return t??(t=e()),Reflect.set(t,o,r,i)},has(n,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(n,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(n,o,r){return t??(t=e()),Reflect.defineProperty(t,o,r)}})}s(uT,"createTransparentProxy");function A(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}s(A,"stringifyPrimitive");function el(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}s(el,"optionalKeys");var tl={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]},rl={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Ag(e,t){let n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=_t(e._zod.def,{get shape(){let a={};for(let u in t){if(!(u in n.shape))throw new Error(`Unrecognized key: "${u}"`);t[u]&&(a[u]=n.shape[u])}return Dt(this,"shape",a),a},checks:[]});return De(e,i)}s(Ag,"pick");function wg(e,t){let n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=_t(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let u in t){if(!(u in n.shape))throw new Error(`Unrecognized key: "${u}"`);t[u]&&delete a[u]}return Dt(this,"shape",a),a},checks:[]});return De(e,i)}s(wg,"omit");function $g(e,t){if(!Ct(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let i=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let r=_t(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return Dt(this,"shape",i),i}});return De(e,r)}s($g,"extend");function Og(e,t){if(!Ct(t))throw new Error("Invalid input to safeExtend: expected a plain object");let n=_t(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return Dt(this,"shape",o),o}});return De(e,n)}s(Og,"safeExtend");function cT(e,t){let n=_t(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return Dt(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:[]});return De(e,n)}s(cT,"merge");function Rg(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=_t(t._zod.def,{get shape(){let u=t._zod.def.shape,c={...u};if(n)for(let l in n){if(!(l in u))throw new Error(`Unrecognized key: "${l}"`);n[l]&&(c[l]=e?new e({type:"optional",innerType:u[l]}):u[l])}else for(let l in u)c[l]=e?new e({type:"optional",innerType:u[l]}):u[l];return Dt(this,"shape",c),c},checks:[]});return De(t,a)}s(Rg,"partial");function zg(e,t,n){let o=_t(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let a in n){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(i[a]=new e({type:"nonoptional",innerType:r[a]}))}else for(let a in r)i[a]=new e({type:"nonoptional",innerType:r[a]});return Dt(this,"shape",i),i}});return De(t,o)}s(zg,"required");function Nt(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}s(Nt,"aborted");function rt(e,t){return t.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}s(rt,"prefixIssues");function Rn(e){return typeof e=="string"?e:e?.message}s(Rn,"unwrapMessage");function Je(e,t,n){let o={...e,path:e.path??[]};if(!e.message){let r=Rn(e.inst?._zod.def?.error?.(e))??Rn(t?.error?.(e))??Rn(n.customError?.(e))??Rn(n.localeError?.(e))??"Invalid input";o.message=r}return delete o.inst,delete o.continue,t?.reportInput||delete o.input,o}s(Je,"finalizeIssue");function Cn(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}s(Cn,"getSizableOrigin");function Nn(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}s(Nn,"getLengthableOrigin");function $(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}s($,"parsedType");function Or(...e){let[t,n,o]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:o}:{...t}}s(Or,"issue");function lT(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}s(lT,"cleanEnum");function kg(e){let t=atob(e),n=new Uint8Array(t.length);for(let o=0;o<t.length;o++)n[o]=t.charCodeAt(o);return n}s(kg,"base64ToUint8Array");function Dg(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}s(Dg,"uint8ArrayToBase64");function pT(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return kg(t+n)}s(pT,"base64urlToUint8Array");function dT(e){return Dg(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}s(dT,"uint8ArrayToBase64url");function fT(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let o=0;o<t.length;o+=2)n[o/2]=Number.parseInt(t.slice(o,o+2),16);return n}s(fT,"hexToUint8Array");function mT(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}s(mT,"uint8ArrayToHex");var Jc=class{static{s(this,"Class")}constructor(...t){}};var Cg=s((e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,wr,2),Object.defineProperty(e,"toString",{value:s(()=>e.message,"value"),enumerable:!1})},"initializer"),Un=y("$ZodError",Cg),Ke=y("$ZodError",Cg,{Parent:Error});function Rr(e,t=n=>n.message){let n={},o=[];for(let r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):o.push(t(r));return{formErrors:o,fieldErrors:n}}s(Rr,"flattenError");function zr(e,t=n=>n.message){let n={_errors:[]},o=s(r=>{for(let i of r.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>o({issues:a}));else if(i.code==="invalid_key")o({issues:i.issues});else if(i.code==="invalid_element")o({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let a=n,u=0;for(;u<i.path.length;){let c=i.path[u];u===i.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(t(i))):a[c]=a[c]||{_errors:[]},a=a[c],u++}}},"processError");return o(e),n}s(zr,"formatError");function ea(e,t=n=>n.message){let n={errors:[]},o=s((r,i=[])=>{var a,u;for(let c of r.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(l=>o({issues:l},c.path));else if(c.code==="invalid_key")o({issues:c.issues},c.path);else if(c.code==="invalid_element")o({issues:c.issues},c.path);else{let l=[...i,...c.path];if(l.length===0){n.errors.push(t(c));continue}let d=n,h=0;for(;h<l.length;){let m=l[h],p=h===l.length-1;typeof m=="string"?(d.properties??(d.properties={}),(a=d.properties)[m]??(a[m]={errors:[]}),d=d.properties[m]):(d.items??(d.items=[]),(u=d.items)[m]??(u[m]={errors:[]}),d=d.items[m]),p&&d.errors.push(t(c)),h++}}},"processError");return o(e),n}s(ea,"treeifyError");function Ng(e){let t=[],n=e.map(o=>typeof o=="object"?o.key:o);for(let o of n)typeof o=="number"?t.push(`[${o}]`):typeof o=="symbol"?t.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?t.push(`[${JSON.stringify(o)}]`):(t.length&&t.push("."),t.push(o));return t.join("")}s(Ng,"toDotPath");function ta(e){let t=[],n=[...e.issues].sort((o,r)=>(o.path??[]).length-(r.path??[]).length);for(let o of n)t.push(`\u2716 ${o.message}`),o.path?.length&&t.push(` \u2192 at ${Ng(o.path)}`);return t.join(`
|
|
6
|
+
`)}s(ta,"prettifyError");var kr=s(e=>(t,n,o,r)=>{let i=o?Object.assign(o,{async:!1}):{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new dt;if(a.issues.length){let u=new(r?.Err??e)(a.issues.map(c=>Je(c,i,xe())));throw Yi(u,r?.callee),u}return a.value},"_parse"),tr=kr(Ke),Dr=s(e=>async(t,n,o,r)=>{let i=o?Object.assign(o,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let u=new(r?.Err??e)(a.issues.map(c=>Je(c,i,xe())));throw Yi(u,r?.callee),u}return a.value},"_parseAsync"),rr=Dr(Ke),Cr=s(e=>(t,n,o)=>{let r=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},r);if(i instanceof Promise)throw new dt;return i.issues.length?{success:!1,error:new(e??Un)(i.issues.map(a=>Je(a,r,xe())))}:{success:!0,data:i.value}},"_safeParse"),Nr=Cr(Ke),Ur=s(e=>async(t,n,o)=>{let r=o?Object.assign(o,{async:!0}):{async:!0},i=t._zod.run({value:n,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>Je(a,r,xe())))}:{success:!0,data:i.value}},"_safeParseAsync"),Mr=Ur(Ke),ra=s(e=>(t,n,o)=>{let r=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return kr(e)(t,n,r)},"_encode"),Ug=ra(Ke),na=s(e=>(t,n,o)=>kr(e)(t,n,o),"_decode"),Mg=na(Ke),oa=s(e=>async(t,n,o)=>{let r=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Dr(e)(t,n,r)},"_encodeAsync"),Lg=oa(Ke),ia=s(e=>async(t,n,o)=>Dr(e)(t,n,o),"_decodeAsync"),jg=ia(Ke),aa=s(e=>(t,n,o)=>{let r=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Cr(e)(t,n,r)},"_safeEncode"),Fg=aa(Ke),sa=s(e=>(t,n,o)=>Cr(e)(t,n,o),"_safeDecode"),Bg=sa(Ke),ua=s(e=>async(t,n,o)=>{let r=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Ur(e)(t,n,r)},"_safeEncodeAsync"),Vg=ua(Ke),ca=s(e=>async(t,n,o)=>Ur(e)(t,n,o),"_safeDecodeAsync"),Zg=ca(Ke);var Xe={};tt(Xe,{base64:()=>vl,base64url:()=>la,bigint:()=>Tl,boolean:()=>Sl,browserEmail:()=>ET,cidrv4:()=>hl,cidrv6:()=>yl,cuid:()=>nl,cuid2:()=>ol,date:()=>Pl,datetime:()=>bl,domain:()=>ST,duration:()=>cl,e164:()=>_l,email:()=>pl,emoji:()=>dl,extendedDuration:()=>hT,guid:()=>ll,hex:()=>AT,hostname:()=>IT,html5Email:()=>PT,idnEmail:()=>bT,integer:()=>Il,ipv4:()=>fl,ipv6:()=>ml,ksuid:()=>sl,lowercase:()=>$l,mac:()=>gl,md5_base64:()=>$T,md5_base64url:()=>OT,md5_hex:()=>wT,nanoid:()=>ul,null:()=>Al,number:()=>pa,rfc5322Email:()=>xT,sha1_base64:()=>zT,sha1_base64url:()=>kT,sha1_hex:()=>RT,sha256_base64:()=>CT,sha256_base64url:()=>NT,sha256_hex:()=>DT,sha384_base64:()=>MT,sha384_base64url:()=>LT,sha384_hex:()=>UT,sha512_base64:()=>FT,sha512_base64url:()=>BT,sha512_hex:()=>jT,string:()=>El,time:()=>xl,ulid:()=>il,undefined:()=>wl,unicodeEmail:()=>Hg,uppercase:()=>Ol,uuid:()=>nr,uuid4:()=>yT,uuid6:()=>vT,uuid7:()=>_T,xid:()=>al});var nl=/^[cC][^\s-]{8,}$/,ol=/^[0-9a-z]+$/,il=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,al=/^[0-9a-vA-V]{20}$/,sl=/^[A-Za-z0-9]{27}$/,ul=/^[a-zA-Z0-9_-]{21}$/,cl=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,hT=/^[-+]?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)?)??$/,ll=/^([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})$/,nr=s(e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,"uuid"),yT=nr(4),vT=nr(6),_T=nr(7),pl=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,PT=/^[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])?)*$/,xT=/^(([^<>()\[\]\\.,;:\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,}))$/,Hg=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,bT=Hg,ET=/^[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])?)*$/,TT="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function dl(){return new RegExp(TT,"u")}s(dl,"emoji");var fl=/^(?:(?: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])$/,ml=/^(([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}|:))$/,gl=s(e=>{let t=st(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},"mac"),hl=/^((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])$/,yl=/^(([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])$/,vl=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,la=/^[A-Za-z0-9_-]*$/,IT=/^(?=.{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])?)*\.?$/,ST=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,_l=/^\+[1-9]\d{6,14}$/,qg="(?:(?:\\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])))",Pl=new RegExp(`^${qg}$`);function Gg(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}s(Gg,"timeSource");function xl(e){return new RegExp(`^${Gg(e)}$`)}s(xl,"time");function bl(e){let t=Gg({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${t}(?:${n.join("|")})`;return new RegExp(`^${qg}T(?:${o})$`)}s(bl,"datetime");var El=s(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},"string"),Tl=/^-?\d+n?$/,Il=/^-?\d+$/,pa=/^-?\d+(?:\.\d+)?$/,Sl=/^(?:true|false)$/i,Al=/^null$/i;var wl=/^undefined$/i;var $l=/^[^A-Z]*$/,Ol=/^[^a-z]*$/,AT=/^[0-9a-fA-F]*$/;function Mn(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}s(Mn,"fixedBase64");function Ln(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}s(Ln,"fixedBase64url");var wT=/^[0-9a-fA-F]{32}$/,$T=Mn(22,"=="),OT=Ln(22),RT=/^[0-9a-fA-F]{40}$/,zT=Mn(27,"="),kT=Ln(27),DT=/^[0-9a-fA-F]{64}$/,CT=Mn(43,"="),NT=Ln(43),UT=/^[0-9a-fA-F]{96}$/,MT=Mn(64,""),LT=Ln(64),jT=/^[0-9a-fA-F]{128}$/,FT=Mn(86,"=="),BT=Ln(86);var fe=y("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Jg={number:"number",bigint:"bigint",object:"date"},da=y("$ZodCheckLessThan",(e,t)=>{fe.init(e,t);let n=Jg[typeof t.value];e._zod.onattach.push(o=>{let r=o._zod.bag,i=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),fa=y("$ZodCheckGreaterThan",(e,t)=>{fe.init(e,t);let n=Jg[typeof t.value];e._zod.onattach.push(o=>{let r=o._zod.bag,i=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Rl=y("$ZodCheckMultipleOf",(e,t)=>{fe.init(e,t),e._zod.onattach.push(n=>{var o;(o=n._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Kc(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),zl=y("$ZodCheckNumberFormat",(e,t)=>{fe.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),o=n?"int":"number",[r,i]=tl[t.format];e._zod.onattach.push(a=>{let u=a._zod.bag;u.format=t.format,u.minimum=r,u.maximum=i,n&&(u.pattern=Il)}),e._zod.check=a=>{let u=a.value;if(n){if(!Number.isInteger(u)){a.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:u,inst:e});return}if(!Number.isSafeInteger(u)){u>0?a.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):a.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}u<r&&a.issues.push({origin:"number",input:u,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),u>i&&a.issues.push({origin:"number",input:u,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),kl=y("$ZodCheckBigIntFormat",(e,t)=>{fe.init(e,t);let[n,o]=rl[t.format];e._zod.onattach.push(r=>{let i=r._zod.bag;i.format=t.format,i.minimum=n,i.maximum=o}),e._zod.check=r=>{let i=r.value;i<n&&r.issues.push({origin:"bigint",input:i,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),i>o&&r.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),Dl=y("$ZodCheckMaxSize",(e,t)=>{var n;fe.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!kt(r)&&r.size!==void 0}),e._zod.onattach.push(o=>{let r=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let r=o.value;r.size<=t.maximum||o.issues.push({origin:Cn(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Cl=y("$ZodCheckMinSize",(e,t)=>{var n;fe.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!kt(r)&&r.size!==void 0}),e._zod.onattach.push(o=>{let r=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let r=o.value;r.size>=t.minimum||o.issues.push({origin:Cn(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Nl=y("$ZodCheckSizeEquals",(e,t)=>{var n;fe.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!kt(r)&&r.size!==void 0}),e._zod.onattach.push(o=>{let r=o._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=o=>{let r=o.value,i=r.size;if(i===t.size)return;let a=i>t.size;o.issues.push({origin:Cn(r),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Ul=y("$ZodCheckMaxLength",(e,t)=>{var n;fe.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!kt(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{let r=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let r=o.value;if(r.length<=t.maximum)return;let a=Nn(r);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ml=y("$ZodCheckMinLength",(e,t)=>{var n;fe.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!kt(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{let r=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let r=o.value;if(r.length>=t.minimum)return;let a=Nn(r);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ll=y("$ZodCheckLengthEquals",(e,t)=>{var n;fe.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!kt(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{let r=o._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=o=>{let r=o.value,i=r.length;if(i===t.length)return;let a=Nn(r),u=i>t.length;o.issues.push({origin:a,...u?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Lr=y("$ZodCheckStringFormat",(e,t)=>{var n,o;fe.init(e,t),e._zod.onattach.push(r=>{let i=r._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),jl=y("$ZodCheckRegex",(e,t)=>{Lr.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Fl=y("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=$l),Lr.init(e,t)}),Bl=y("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Ol),Lr.init(e,t)}),Vl=y("$ZodCheckIncludes",(e,t)=>{fe.init(e,t);let n=st(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=o,e._zod.onattach.push(r=>{let i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Zl=y("$ZodCheckStartsWith",(e,t)=>{fe.init(e,t);let n=new RegExp(`^${st(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{let r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),Hl=y("$ZodCheckEndsWith",(e,t)=>{fe.init(e,t);let n=new RegExp(`.*${st(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{let r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function Wg(e,t,n){e.issues.length&&t.issues.push(...rt(n,e.issues))}s(Wg,"handleCheckPropertyResult");var ql=y("$ZodCheckProperty",(e,t)=>{fe.init(e,t),e._zod.check=n=>{let o=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then(r=>Wg(r,n,t.property));Wg(o,n,t.property)}}),Gl=y("$ZodCheckMimeType",(e,t)=>{fe.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=t.mime}),e._zod.check=o=>{n.has(o.value.type)||o.issues.push({code:"invalid_value",values:t.mime,input:o.value.type,inst:e,continue:!t.abort})}}),Wl=y("$ZodCheckOverwrite",(e,t)=>{fe.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var jn=class{static{s(this,"Doc")}constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let o=t.split(`
|
|
7
7
|
`).filter(a=>a),r=Math.min(...o.map(a=>a.length-a.trimStart().length)),i=o.map(a=>a.slice(r)).map(a=>" ".repeat(this.indent*2)+a);for(let a of i)this.content.push(a)}compile(){let t=Function,n=this?.args,r=[...(this?.content??[""]).map(i=>` ${i}`)];return new t(...n,r.join(`
|
|
8
|
-
`))}};var Wl={major:4,minor:3,patch:6};var H=y("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Wl;let o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(let r of o)for(let i of r._zod.onattach)i(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let r=s((a,u,c)=>{let l=Nt(a),d;for(let g of u){if(g._zod.def.when){if(!g._zod.def.when(a))continue}else if(l)continue;let h=a.issues.length,p=g._zod.check(a);if(p instanceof Promise&&c?.async===!1)throw new dt;if(d||p instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await p,a.issues.length!==h&&(l||(l=Nt(a,h)))});else{if(a.issues.length===h)continue;l||(l=Nt(a,h))}}return d?d.then(()=>a):a},"runChecks"),i=s((a,u,c)=>{if(Nt(a))return a.aborted=!0,a;let l=r(u,o,c);if(l instanceof Promise){if(c.async===!1)throw new dt;return l.then(d=>e._zod.parse(d,c))}return e._zod.parse(l,c)},"handleCanaryResult");e._zod.run=(a,u)=>{if(u.skipChecks)return e._zod.parse(a,u);if(u.direction==="backward"){let l=e._zod.parse({value:a.value,issues:[]},{...u,skipChecks:!0});return l instanceof Promise?l.then(d=>i(d,a,u)):i(l,a,u)}let c=e._zod.parse(a,u);if(c instanceof Promise){if(u.async===!1)throw new dt;return c.then(l=>r(l,o,u))}return r(c,o,u)}}K(e,"~standard",()=>({validate:s(r=>{try{let i=Cr(e,r);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return Ur(e,r).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},"validate"),vendor:"zod",version:1}))}),Pt=y("$ZodString",(e,t)=>{H.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??bl(e._zod.bag),e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),le=y("$ZodStringFormat",(e,t)=>{Mr.init(e,t),Pt.init(e,t)}),_a=y("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=cl),le.init(e,t)}),Pa=y("$ZodUUID",(e,t)=>{if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=nr(o))}else t.pattern??(t.pattern=nr());le.init(e,t)}),xa=y("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=ll),le.init(e,t)}),Fn=y("$ZodURL",(e,t)=>{le.init(e,t),e._zod.check=n=>{try{let o=n.value.trim(),r=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=r.href:n.value=o;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),ba=y("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=pl()),le.init(e,t)}),Ea=y("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=sl),le.init(e,t)}),Ta=y("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=rl),le.init(e,t)}),Ia=y("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=nl),le.init(e,t)}),Sa=y("$ZodULID",(e,t)=>{t.pattern??(t.pattern=ol),le.init(e,t)}),Aa=y("$ZodXID",(e,t)=>{t.pattern??(t.pattern=il),le.init(e,t)}),wa=y("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=al),le.init(e,t)}),Bn=y("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=xl(t)),le.init(e,t)}),Vn=y("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=_l),le.init(e,t)}),Zn=y("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Pl(t)),le.init(e,t)}),Hn=y("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=ul),le.init(e,t)}),$a=y("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=dl),le.init(e,t),e._zod.bag.format="ipv4"}),Oa=y("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=fl),le.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),Ra=y("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=ml(t.delimiter)),le.init(e,t),e._zod.bag.format="mac"}),za=y("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=hl),le.init(e,t)}),ka=y("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=gl),le.init(e,t),e._zod.check=n=>{let o=n.value.split("/");try{if(o.length!==2)throw new Error;let[r,i]=o;if(!i)throw new Error;let a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Xl(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}s(Xl,"isValidBase64");var Da=y("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=yl),le.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Xl(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function og(e){if(!la.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Xl(n)}s(og,"isValidBase64URL");var Ca=y("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=la),le.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{og(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Na=y("$ZodE164",(e,t)=>{t.pattern??(t.pattern=vl),le.init(e,t)});function ig(e,t=null){try{let n=e.split(".");if(n.length!==3)return!1;let[o]=n;if(!o)return!1;let r=JSON.parse(atob(o));return!("typ"in r&&r?.typ!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}s(ig,"isValidJWT");var Ua=y("$ZodJWT",(e,t)=>{le.init(e,t),e._zod.check=n=>{ig(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Ma=y("$ZodCustomStringFormat",(e,t)=>{le.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),Lr=y("$ZodNumber",(e,t)=>{H.init(e,t),e._zod.pattern=e._zod.bag.pattern??pa,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;let i=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...i?{received:i}:{}}),n}}),qn=y("$ZodNumberFormat",(e,t)=>{Rl.init(e,t),Lr.init(e,t)}),or=y("$ZodBoolean",(e,t)=>{H.init(e,t),e._zod.pattern=Il,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=!!n.value}catch{}let r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),jr=y("$ZodBigInt",(e,t)=>{H.init(e,t),e._zod.pattern=El,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),La=y("$ZodBigIntFormat",(e,t)=>{zl.init(e,t),jr.init(e,t)}),ja=y("$ZodSymbol",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;return typeof r=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),n}}),Fa=y("$ZodUndefined",(e,t)=>{H.init(e,t),e._zod.pattern=Al,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,o)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),n}}),Ba=y("$ZodNull",(e,t)=>{H.init(e,t),e._zod.pattern=Sl,e._zod.values=new Set([null]),e._zod.parse=(n,o)=>{let r=n.value;return r===null||n.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),n}}),Gn=y("$ZodAny",(e,t)=>{H.init(e,t),e._zod.parse=n=>n}),Wn=y("$ZodUnknown",(e,t)=>{H.init(e,t),e._zod.parse=n=>n}),Va=y("$ZodNever",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),Jn=y("$ZodVoid",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),n}}),Xn=y("$ZodDate",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let r=n.value,i=r instanceof Date;return i&&!Number.isNaN(r.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:r,...i?{received:"Invalid Date"}:{},inst:e}),n}});function Gh(e,t,n){e.issues.length&&t.issues.push(...rt(n,e.issues)),t.value[n]=e.value}s(Gh,"handleArrayResult");var Kn=y("$ZodArray",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),n;n.value=Array(r.length);let i=[];for(let a=0;a<r.length;a++){let u=r[a],c=t.element._zod.run({value:u,issues:[]},o);c instanceof Promise?i.push(c.then(l=>Gh(l,n,a))):Gh(c,n,a)}return i.length?Promise.all(i).then(()=>n):n}});function va(e,t,n,o,r){if(e.issues.length){if(r&&!(n in o))return;t.issues.push(...rt(n,e.issues))}e.value===void 0?n in o&&(t.value[n]=void 0):t.value[n]=e.value}s(va,"handlePropertyResult");function ag(e){let t=Object.keys(e.shape);for(let o of t)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let n=Qc(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}s(ag,"normalizeDef");function sg(e,t,n,o,r,i){let a=[],u=r.keySet,c=r.catchall._zod,l=c.def.type,d=c.optout==="optional";for(let g in t){if(u.has(g))continue;if(l==="never"){a.push(g);continue}let h=c.run({value:t[g],issues:[]},o);h instanceof Promise?e.push(h.then(p=>va(p,n,g,t,d))):va(h,n,g,t,d)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}s(sg,"handleCatchall");var Za=y("$ZodObject",(e,t)=>{if(H.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let u=t.shape;Object.defineProperty(t,"shape",{get:s(()=>{let c={...u};return Object.defineProperty(t,"shape",{value:c}),c},"get")})}let o=wr(()=>ag(t));K(e._zod,"propValues",()=>{let u=t.shape,c={};for(let l in u){let d=u[l]._zod;if(d.values){c[l]??(c[l]=new Set);for(let g of d.values)c[l].add(g)}}return c});let r=er,i=t.catchall,a;e._zod.parse=(u,c)=>{a??(a=o.value);let l=u.value;if(!r(l))return u.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),u;u.value={};let d=[],g=a.shape;for(let h of a.keys){let p=g[h],m=p._zod.optout==="optional",_=p._zod.run({value:l[h],issues:[]},c);_ instanceof Promise?d.push(_.then(P=>va(P,u,h,l,m))):va(_,u,h,l,m)}return i?sg(d,l,u,c,o.value,e):d.length?Promise.all(d).then(()=>u):u}}),Kl=y("$ZodObjectJIT",(e,t)=>{Za.init(e,t);let n=e._zod.parse,o=wr(()=>ag(t)),r=s(h=>{let p=new jn(["shape","payload","ctx"]),m=o.value,_=s(F=>{let oe=Ki(F);return`shape[${oe}]._zod.run({ value: input[${oe}], issues: [] }, ctx)`},"parseStr");p.write("const input = payload.value;");let P=Object.create(null),E=0;for(let F of m.keys)P[F]=`key_${E++}`;p.write("const newResult = {};");for(let F of m.keys){let oe=P[F],me=Ki(F),Se=h[F]?._zod?.optout==="optional";p.write(`const ${oe} = ${_(F)};`),Se?p.write(`
|
|
9
|
-
if (${
|
|
10
|
-
if (${
|
|
11
|
-
payload.issues = payload.issues.concat(${
|
|
8
|
+
`))}};var Jl={major:4,minor:3,patch:6};var H=y("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Jl;let o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(let r of o)for(let i of r._zod.onattach)i(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let r=s((a,u,c)=>{let l=Nt(a),d;for(let h of u){if(h._zod.def.when){if(!h._zod.def.when(a))continue}else if(l)continue;let m=a.issues.length,p=h._zod.check(a);if(p instanceof Promise&&c?.async===!1)throw new dt;if(d||p instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await p,a.issues.length!==m&&(l||(l=Nt(a,m)))});else{if(a.issues.length===m)continue;l||(l=Nt(a,m))}}return d?d.then(()=>a):a},"runChecks"),i=s((a,u,c)=>{if(Nt(a))return a.aborted=!0,a;let l=r(u,o,c);if(l instanceof Promise){if(c.async===!1)throw new dt;return l.then(d=>e._zod.parse(d,c))}return e._zod.parse(l,c)},"handleCanaryResult");e._zod.run=(a,u)=>{if(u.skipChecks)return e._zod.parse(a,u);if(u.direction==="backward"){let l=e._zod.parse({value:a.value,issues:[]},{...u,skipChecks:!0});return l instanceof Promise?l.then(d=>i(d,a,u)):i(l,a,u)}let c=e._zod.parse(a,u);if(c instanceof Promise){if(u.async===!1)throw new dt;return c.then(l=>r(l,o,u))}return r(c,o,u)}}Y(e,"~standard",()=>({validate:s(r=>{try{let i=Nr(e,r);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return Mr(e,r).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},"validate"),vendor:"zod",version:1}))}),Pt=y("$ZodString",(e,t)=>{H.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??El(e._zod.bag),e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),pe=y("$ZodStringFormat",(e,t)=>{Lr.init(e,t),Pt.init(e,t)}),_a=y("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=ll),pe.init(e,t)}),Pa=y("$ZodUUID",(e,t)=>{if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=nr(o))}else t.pattern??(t.pattern=nr());pe.init(e,t)}),xa=y("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=pl),pe.init(e,t)}),Fn=y("$ZodURL",(e,t)=>{pe.init(e,t),e._zod.check=n=>{try{let o=n.value.trim(),r=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=r.href:n.value=o;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),ba=y("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=dl()),pe.init(e,t)}),Ea=y("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=ul),pe.init(e,t)}),Ta=y("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=nl),pe.init(e,t)}),Ia=y("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=ol),pe.init(e,t)}),Sa=y("$ZodULID",(e,t)=>{t.pattern??(t.pattern=il),pe.init(e,t)}),Aa=y("$ZodXID",(e,t)=>{t.pattern??(t.pattern=al),pe.init(e,t)}),wa=y("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=sl),pe.init(e,t)}),Bn=y("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=bl(t)),pe.init(e,t)}),Vn=y("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Pl),pe.init(e,t)}),Zn=y("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=xl(t)),pe.init(e,t)}),Hn=y("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=cl),pe.init(e,t)}),$a=y("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=fl),pe.init(e,t),e._zod.bag.format="ipv4"}),Oa=y("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=ml),pe.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),Ra=y("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=gl(t.delimiter)),pe.init(e,t),e._zod.bag.format="mac"}),za=y("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=hl),pe.init(e,t)}),ka=y("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=yl),pe.init(e,t),e._zod.check=n=>{let o=n.value.split("/");try{if(o.length!==2)throw new Error;let[r,i]=o;if(!i)throw new Error;let a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Xl(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}s(Xl,"isValidBase64");var Da=y("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=vl),pe.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Xl(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function uh(e){if(!la.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Xl(n)}s(uh,"isValidBase64URL");var Ca=y("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=la),pe.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{uh(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Na=y("$ZodE164",(e,t)=>{t.pattern??(t.pattern=_l),pe.init(e,t)});function ch(e,t=null){try{let n=e.split(".");if(n.length!==3)return!1;let[o]=n;if(!o)return!1;let r=JSON.parse(atob(o));return!("typ"in r&&r?.typ!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}s(ch,"isValidJWT");var Ua=y("$ZodJWT",(e,t)=>{pe.init(e,t),e._zod.check=n=>{ch(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Ma=y("$ZodCustomStringFormat",(e,t)=>{pe.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),jr=y("$ZodNumber",(e,t)=>{H.init(e,t),e._zod.pattern=e._zod.bag.pattern??pa,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;let i=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...i?{received:i}:{}}),n}}),qn=y("$ZodNumberFormat",(e,t)=>{zl.init(e,t),jr.init(e,t)}),or=y("$ZodBoolean",(e,t)=>{H.init(e,t),e._zod.pattern=Sl,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=!!n.value}catch{}let r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),Fr=y("$ZodBigInt",(e,t)=>{H.init(e,t),e._zod.pattern=Tl,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),La=y("$ZodBigIntFormat",(e,t)=>{kl.init(e,t),Fr.init(e,t)}),ja=y("$ZodSymbol",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;return typeof r=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),n}}),Fa=y("$ZodUndefined",(e,t)=>{H.init(e,t),e._zod.pattern=wl,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,o)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),n}}),Ba=y("$ZodNull",(e,t)=>{H.init(e,t),e._zod.pattern=Al,e._zod.values=new Set([null]),e._zod.parse=(n,o)=>{let r=n.value;return r===null||n.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),n}}),Gn=y("$ZodAny",(e,t)=>{H.init(e,t),e._zod.parse=n=>n}),Wn=y("$ZodUnknown",(e,t)=>{H.init(e,t),e._zod.parse=n=>n}),Va=y("$ZodNever",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),Jn=y("$ZodVoid",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),n}}),Kn=y("$ZodDate",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let r=n.value,i=r instanceof Date;return i&&!Number.isNaN(r.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:r,...i?{received:"Invalid Date"}:{},inst:e}),n}});function Xg(e,t,n){e.issues.length&&t.issues.push(...rt(n,e.issues)),t.value[n]=e.value}s(Xg,"handleArrayResult");var Xn=y("$ZodArray",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),n;n.value=Array(r.length);let i=[];for(let a=0;a<r.length;a++){let u=r[a],c=t.element._zod.run({value:u,issues:[]},o);c instanceof Promise?i.push(c.then(l=>Xg(l,n,a))):Xg(c,n,a)}return i.length?Promise.all(i).then(()=>n):n}});function va(e,t,n,o,r){if(e.issues.length){if(r&&!(n in o))return;t.issues.push(...rt(n,e.issues))}e.value===void 0?n in o&&(t.value[n]=void 0):t.value[n]=e.value}s(va,"handlePropertyResult");function lh(e){let t=Object.keys(e.shape);for(let o of t)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let n=el(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}s(lh,"normalizeDef");function ph(e,t,n,o,r,i){let a=[],u=r.keySet,c=r.catchall._zod,l=c.def.type,d=c.optout==="optional";for(let h in t){if(u.has(h))continue;if(l==="never"){a.push(h);continue}let m=c.run({value:t[h],issues:[]},o);m instanceof Promise?e.push(m.then(p=>va(p,n,h,t,d))):va(m,n,h,t,d)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}s(ph,"handleCatchall");var Za=y("$ZodObject",(e,t)=>{if(H.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let u=t.shape;Object.defineProperty(t,"shape",{get:s(()=>{let c={...u};return Object.defineProperty(t,"shape",{value:c}),c},"get")})}let o=$r(()=>lh(t));Y(e._zod,"propValues",()=>{let u=t.shape,c={};for(let l in u){let d=u[l]._zod;if(d.values){c[l]??(c[l]=new Set);for(let h of d.values)c[l].add(h)}}return c});let r=er,i=t.catchall,a;e._zod.parse=(u,c)=>{a??(a=o.value);let l=u.value;if(!r(l))return u.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),u;u.value={};let d=[],h=a.shape;for(let m of a.keys){let p=h[m],g=p._zod.optout==="optional",_=p._zod.run({value:l[m],issues:[]},c);_ instanceof Promise?d.push(_.then(b=>va(b,u,m,l,g))):va(_,u,m,l,g)}return i?ph(d,l,u,c,o.value,e):d.length?Promise.all(d).then(()=>u):u}}),Yl=y("$ZodObjectJIT",(e,t)=>{Za.init(e,t);let n=e._zod.parse,o=$r(()=>lh(t)),r=s(m=>{let p=new jn(["shape","payload","ctx"]),g=o.value,_=s(Z=>{let ie=Xi(Z);return`shape[${ie}]._zod.run({ value: input[${ie}], issues: [] }, ctx)`},"parseStr");p.write("const input = payload.value;");let b=Object.create(null),E=0;for(let Z of g.keys)b[Z]=`key_${E++}`;p.write("const newResult = {};");for(let Z of g.keys){let ie=b[Z],le=Xi(Z),Se=m[Z]?._zod?.optout==="optional";p.write(`const ${ie} = ${_(Z)};`),Se?p.write(`
|
|
9
|
+
if (${ie}.issues.length) {
|
|
10
|
+
if (${le} in input) {
|
|
11
|
+
payload.issues = payload.issues.concat(${ie}.issues.map(iss => ({
|
|
12
12
|
...iss,
|
|
13
|
-
path: iss.path ? [${
|
|
13
|
+
path: iss.path ? [${le}, ...iss.path] : [${le}]
|
|
14
14
|
})));
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
if (${
|
|
19
|
-
if (${
|
|
20
|
-
newResult[${
|
|
18
|
+
if (${ie}.value === undefined) {
|
|
19
|
+
if (${le} in input) {
|
|
20
|
+
newResult[${le}] = undefined;
|
|
21
21
|
}
|
|
22
22
|
} else {
|
|
23
|
-
newResult[${
|
|
23
|
+
newResult[${le}] = ${ie}.value;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
`):p.write(`
|
|
27
|
-
if (${
|
|
28
|
-
payload.issues = payload.issues.concat(${
|
|
27
|
+
if (${ie}.issues.length) {
|
|
28
|
+
payload.issues = payload.issues.concat(${ie}.issues.map(iss => ({
|
|
29
29
|
...iss,
|
|
30
|
-
path: iss.path ? [${
|
|
30
|
+
path: iss.path ? [${le}, ...iss.path] : [${le}]
|
|
31
31
|
})));
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
if (${
|
|
35
|
-
if (${
|
|
36
|
-
newResult[${
|
|
34
|
+
if (${ie}.value === undefined) {
|
|
35
|
+
if (${le} in input) {
|
|
36
|
+
newResult[${le}] = undefined;
|
|
37
37
|
}
|
|
38
38
|
} else {
|
|
39
|
-
newResult[${
|
|
39
|
+
newResult[${le}] = ${ie}.value;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
`)}p.write("payload.value = newResult;"),p.write("return payload;");let T=p.compile();return(F,oe)=>T(h,F,oe)},"generateFastpass"),i,a=er,u=!$n.jitless,l=u&&Kc.value,d=t.catchall,g;e._zod.parse=(h,p)=>{g??(g=o.value);let m=h.value;return a(m)?u&&l&&p?.async===!1&&p.jitless!==!0?(i||(i=r(t.shape)),h=i(h,p),d?sg([],m,h,p,g,e):h):n(h,p):(h.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),h)}});function Wh(e,t,n,o){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let r=e.filter(i=>!Nt(i));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(a=>Je(a,o,xe())))}),t)}s(Wh,"handleUnionResults");var ir=y("$ZodUnion",(e,t)=>{H.init(e,t),K(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),K(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),K(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),K(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){let r=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${r.map(i=>kn(i.source)).join("|")})$`)}});let n=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(r,i)=>{if(n)return o(r,i);let a=!1,u=[];for(let c of t.options){let l=c._zod.run({value:r.value,issues:[]},i);if(l instanceof Promise)u.push(l),a=!0;else{if(l.issues.length===0)return l;u.push(l)}}return a?Promise.all(u).then(c=>Wh(c,r,e,i)):Wh(u,r,e,i)}});function Jh(e,t,n,o){let r=e.filter(i=>i.issues.length===0);return r.length===1?(t.value=r[0].value,t):(r.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(a=>Je(a,o,xe())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t)}s(Jh,"handleExclusiveUnionResults");var Ha=y("$ZodXor",(e,t)=>{ir.init(e,t),t.inclusive=!1;let n=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(r,i)=>{if(n)return o(r,i);let a=!1,u=[];for(let c of t.options){let l=c._zod.run({value:r.value,issues:[]},i);l instanceof Promise?(u.push(l),a=!0):u.push(l)}return a?Promise.all(u).then(c=>Jh(c,r,e,i)):Jh(u,r,e,i)}}),Yn=y("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,ir.init(e,t);let n=e._zod.parse;K(e._zod,"propValues",()=>{let r={};for(let i of t.options){let a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let[u,c]of Object.entries(a)){r[u]||(r[u]=new Set);for(let l of c)r[u].add(l)}}return r});let o=wr(()=>{let r=t.options,i=new Map;for(let a of r){let u=a._zod.propValues?.[t.discriminator];if(!u||u.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let c of u){if(i.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);i.set(c,a)}}return i});e._zod.parse=(r,i)=>{let a=r.value;if(!er(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;let u=o.value.get(a?.[t.discriminator]);return u?u._zod.run(r,i):t.unionFallback?n(r,i):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),r)}}),qa=y("$ZodIntersection",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>{let r=n.value,i=t.left._zod.run({value:r,issues:[]},o),a=t.right._zod.run({value:r,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([c,l])=>Xh(n,c,l)):Xh(n,i,a)}});function Jl(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ct(e)&&Ct(t)){let n=Object.keys(t),o=Object.keys(e).filter(i=>n.indexOf(i)!==-1),r={...e,...t};for(let i of o){let a=Jl(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r[i]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let o=0;o<e.length;o++){let r=e[o],i=t[o],a=Jl(r,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}s(Jl,"mergeValues");function Xh(e,t,n){let o=new Map,r;for(let u of t.issues)if(u.code==="unrecognized_keys"){r??(r=u);for(let c of u.keys)o.has(c)||o.set(c,{}),o.get(c).l=!0}else e.issues.push(u);for(let u of n.issues)if(u.code==="unrecognized_keys")for(let c of u.keys)o.has(c)||o.set(c,{}),o.get(c).r=!0;else e.issues.push(u);let i=[...o].filter(([,u])=>u.l&&u.r).map(([u])=>u);if(i.length&&r&&e.issues.push({...r,keys:i}),Nt(e))return e;let a=Jl(t.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}s(Xh,"handleIntersectionResults");var Qn=y("$ZodTuple",(e,t)=>{H.init(e,t);let n=t.items;e._zod.parse=(o,r)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let a=[],u=[...n].reverse().findIndex(d=>d._zod.optin!=="optional"),c=u===-1?0:n.length-u;if(!t.rest){let d=i.length>n.length,g=i.length<c-1;if(d||g)return o.issues.push({...d?{code:"too_big",maximum:n.length,inclusive:!0}:{code:"too_small",minimum:n.length},input:i,inst:e,origin:"array"}),o}let l=-1;for(let d of n){if(l++,l>=i.length&&l>=c)continue;let g=d._zod.run({value:i[l],issues:[]},r);g instanceof Promise?a.push(g.then(h=>ma(h,o,l))):ma(g,o,l)}if(t.rest){let d=i.slice(n.length);for(let g of d){l++;let h=t.rest._zod.run({value:g,issues:[]},r);h instanceof Promise?a.push(h.then(p=>ma(p,o,l))):ma(h,o,l)}}return a.length?Promise.all(a).then(()=>o):o}});function ma(e,t,n){e.issues.length&&t.issues.push(...rt(n,e.issues)),t.value[n]=e.value}s(ma,"handleTupleResult");var eo=y("$ZodRecord",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;if(!Ct(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;let i=[],a=t.keyType._zod.values;if(a){n.value={};let u=new Set;for(let l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){u.add(typeof l=="number"?l.toString():l);let d=t.valueType._zod.run({value:r[l],issues:[]},o);d instanceof Promise?i.push(d.then(g=>{g.issues.length&&n.issues.push(...rt(l,g.issues)),n.value[l]=g.value})):(d.issues.length&&n.issues.push(...rt(l,d.issues)),n.value[l]=d.value)}let c;for(let l in r)u.has(l)||(c=c??[],c.push(l));c&&c.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:c})}else{n.value={};for(let u of Reflect.ownKeys(r)){if(u==="__proto__")continue;let c=t.keyType._zod.run({value:u,issues:[]},o);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&pa.test(u)&&c.issues.length){let g=t.keyType._zod.run({value:Number(u),issues:[]},o);if(g instanceof Promise)throw new Error("Async schemas not supported in object keys currently");g.issues.length===0&&(c=g)}if(c.issues.length){t.mode==="loose"?n.value[u]=r[u]:n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(g=>Je(g,o,xe())),input:u,path:[u],inst:e});continue}let d=t.valueType._zod.run({value:r[u],issues:[]},o);d instanceof Promise?i.push(d.then(g=>{g.issues.length&&n.issues.push(...rt(u,g.issues)),n.value[c.value]=g.value})):(d.issues.length&&n.issues.push(...rt(u,d.issues)),n.value[c.value]=d.value)}}return i.length?Promise.all(i).then(()=>n):n}}),Ga=y("$ZodMap",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;if(!(r instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),n;let i=[];n.value=new Map;for(let[a,u]of r){let c=t.keyType._zod.run({value:a,issues:[]},o),l=t.valueType._zod.run({value:u,issues:[]},o);c instanceof Promise||l instanceof Promise?i.push(Promise.all([c,l]).then(([d,g])=>{Kh(d,g,n,a,r,e,o)})):Kh(c,l,n,a,r,e,o)}return i.length?Promise.all(i).then(()=>n):n}});function Kh(e,t,n,o,r,i,a){e.issues.length&&(Dn.has(typeof o)?n.issues.push(...rt(o,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:r,inst:i,issues:e.issues.map(u=>Je(u,a,xe()))})),t.issues.length&&(Dn.has(typeof o)?n.issues.push(...rt(o,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:i,key:o,issues:t.issues.map(u=>Je(u,a,xe()))})),n.value.set(e.value,t.value)}s(Kh,"handleMapResult");var Wa=y("$ZodSet",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;if(!(r instanceof Set))return n.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),n;let i=[];n.value=new Set;for(let a of r){let u=t.valueType._zod.run({value:a,issues:[]},o);u instanceof Promise?i.push(u.then(c=>Yh(c,n))):Yh(u,n)}return i.length?Promise.all(i).then(()=>n):n}});function Yh(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}s(Yh,"handleSetResult");var to=y("$ZodEnum",(e,t)=>{H.init(e,t);let n=zn(t.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(r=>Dn.has(typeof r)).map(r=>typeof r=="string"?st(r):r.toString()).join("|")})$`),e._zod.parse=(r,i)=>{let a=r.value;return o.has(a)||r.issues.push({code:"invalid_value",values:n,input:a,inst:e}),r}}),ro=y("$ZodLiteral",(e,t)=>{if(H.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?st(o):o?st(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,r)=>{let i=o.value;return n.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),Ja=y("$ZodFile",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;return r instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),n}}),no=y("$ZodTransform",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new zt(e.constructor.name);let r=t.transform(n.value,n);if(o.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=>(n.value=a,n));if(r instanceof Promise)throw new dt;return n.value=r,n}});function Qh(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}s(Qh,"handleOptionalResult");var Fr=y("$ZodOptional",(e,t)=>{H.init(e,t),e._zod.optin="optional",e._zod.optout="optional",K(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),K(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${kn(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(t.innerType._zod.optin==="optional"){let r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>Qh(i,n.value)):Qh(r,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,o)}}),Xa=y("$ZodExactOptional",(e,t)=>{Fr.init(e,t),K(e._zod,"values",()=>t.innerType._zod.values),K(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,o)=>t.innerType._zod.run(n,o)}),oo=y("$ZodNullable",(e,t)=>{H.init(e,t),K(e._zod,"optin",()=>t.innerType._zod.optin),K(e._zod,"optout",()=>t.innerType._zod.optout),K(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${kn(n.source)}|null)$`):void 0}),K(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,o)=>n.value===null?n:t.innerType._zod.run(n,o)}),Ka=y("$ZodDefault",(e,t)=>{H.init(e,t),e._zod.optin="optional",K(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);if(n.value===void 0)return n.value=t.defaultValue,n;let r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>eg(i,t)):eg(r,t)}});function eg(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}s(eg,"handleDefaultResult");var Ya=y("$ZodPrefault",(e,t)=>{H.init(e,t),e._zod.optin="optional",K(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>(o.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,o))}),Qa=y("$ZodNonOptional",(e,t)=>{H.init(e,t),K(e._zod,"values",()=>{let n=t.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,o)=>{let r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>tg(i,e)):tg(r,e)}});function tg(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}s(tg,"handleNonOptionalResult");var es=y("$ZodSuccess",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new zt("ZodSuccess");let r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>(n.value=i.issues.length===0,n)):(n.value=r.issues.length===0,n)}}),ts=y("$ZodCatch",(e,t)=>{H.init(e,t),K(e._zod,"optin",()=>t.innerType._zod.optin),K(e._zod,"optout",()=>t.innerType._zod.optout),K(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);let r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(a=>Je(a,o,xe()))},input:n.value}),n.issues=[]),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(i=>Je(i,o,xe()))},input:n.value}),n.issues=[]),n)}}),rs=y("$ZodNaN",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),io=y("$ZodPipe",(e,t)=>{H.init(e,t),K(e._zod,"values",()=>t.in._zod.values),K(e._zod,"optin",()=>t.in._zod.optin),K(e._zod,"optout",()=>t.out._zod.optout),K(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,o)=>{if(o.direction==="backward"){let i=t.out._zod.run(n,o);return i instanceof Promise?i.then(a=>ha(a,t.in,o)):ha(i,t.in,o)}let r=t.in._zod.run(n,o);return r instanceof Promise?r.then(i=>ha(i,t.out,o)):ha(r,t.out,o)}});function ha(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}s(ha,"handlePipeResult");var Br=y("$ZodCodec",(e,t)=>{H.init(e,t),K(e._zod,"values",()=>t.in._zod.values),K(e._zod,"optin",()=>t.in._zod.optin),K(e._zod,"optout",()=>t.out._zod.optout),K(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,o)=>{if((o.direction||"forward")==="forward"){let i=t.in._zod.run(n,o);return i instanceof Promise?i.then(a=>ga(a,t,o)):ga(i,t,o)}else{let i=t.out._zod.run(n,o);return i instanceof Promise?i.then(a=>ga(a,t,o)):ga(i,t,o)}}});function ga(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let r=t.transform(e.value,e);return r instanceof Promise?r.then(i=>ya(e,i,t.out,n)):ya(e,r,t.out,n)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(i=>ya(e,i,t.in,n)):ya(e,r,t.in,n)}}s(ga,"handleCodecAResult");function ya(e,t,n,o){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},o)}s(ya,"handleCodecTxResult");var ns=y("$ZodReadonly",(e,t)=>{H.init(e,t),K(e._zod,"propValues",()=>t.innerType._zod.propValues),K(e._zod,"values",()=>t.innerType._zod.values),K(e._zod,"optin",()=>t.innerType?._zod?.optin),K(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);let r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(rg):rg(r)}});function rg(e){return e.value=Object.freeze(e.value),e}s(rg,"handleReadonlyResult");var os=y("$ZodTemplateLiteral",(e,t)=>{H.init(e,t);let n=[];for(let o of t.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let r=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=r.startsWith("^")?1:0,a=r.endsWith("$")?r.length-1:r.length;n.push(r.slice(i,a))}else if(o===null||Yc.has(typeof o))n.push(st(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(o,r)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),is=y("$ZodFunction",(e,t)=>(H.init(e,t),e._def=t,e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...o){let r=e._def.input?tr(e._def.input,o):o,i=Reflect.apply(n,this,r);return e._def.output?tr(e._def.output,i):i}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let r=e._def.input?await rr(e._def.input,o):o,i=await Reflect.apply(n,this,r);return e._def.output?await rr(e._def.output,i):i}},e._zod.parse=(n,o)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let o=e.constructor;return Array.isArray(n[0])?new o({type:"function",input:new Qn({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new o({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:n})},e)),as=y("$ZodPromise",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>Promise.resolve(n.value).then(r=>t.innerType._zod.run({value:r,issues:[]},o))}),ss=y("$ZodLazy",(e,t)=>{H.init(e,t),K(e._zod,"innerType",()=>t.getter()),K(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),K(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),K(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),K(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,o)=>e._zod.innerType._zod.run(n,o)}),ao=y("$ZodCustom",(e,t)=>{de.init(e,t),H.init(e,t),e._zod.parse=(n,o)=>n,e._zod.check=n=>{let o=n.value,r=t.fn(o);if(r instanceof Promise)return r.then(i=>ng(i,n,o,e));ng(r,n,o,e)}});function ng(e,t,n,o){if(!e){let r={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(r.params=o._zod.def.params),t.issues.push($r(r))}}s(ng,"handleRefineResult");var Zr={};tt(Zr,{ar:()=>Yl,az:()=>Ql,be:()=>ep,bg:()=>tp,ca:()=>rp,cs:()=>np,da:()=>op,de:()=>ip,en:()=>so,eo:()=>ap,es:()=>sp,fa:()=>up,fi:()=>cp,fr:()=>lp,frCA:()=>pp,he:()=>dp,hu:()=>fp,hy:()=>mp,id:()=>hp,is:()=>gp,it:()=>yp,ja:()=>vp,ka:()=>_p,kh:()=>Pp,km:()=>uo,ko:()=>xp,lt:()=>bp,mk:()=>Ep,ms:()=>Tp,nl:()=>Ip,no:()=>Sp,ota:()=>Ap,pl:()=>$p,ps:()=>wp,pt:()=>Op,ru:()=>Rp,sl:()=>zp,sv:()=>kp,ta:()=>Dp,th:()=>Cp,tr:()=>Np,ua:()=>Up,uk:()=>lo,ur:()=>Mp,uz:()=>Lp,vi:()=>jp,yo:()=>Vp,zhCN:()=>Fp,zhTW:()=>Bp});var LT=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.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 ${r.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${u}`:`\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 ${i}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${u}`}case"invalid_value":return r.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 ${A(r.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: ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${r.maximum.toString()} ${a.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 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${r.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.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 "${r.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${r.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${r.keys.length>1?"\u0629":""}: ${b(r.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.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 ${r.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}},"error");function Yl(){return{localeError:LT()}}s(Yl,"default");var jT=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",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"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${r.expected}, daxil olan ${u}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${u}`}case"invalid_value":return r.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${A(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${i}${r.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${i}${r.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${i.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:i.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${i.suffix}" il\u0259 bitm\u0259lidir`:i.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${i.includes}" daxil olmal\u0131d\u0131r`:i.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${i.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${n[i.format]??r.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${r.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${r.keys.length>1?"lar":""}: ${b(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${r.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}},"error");function Ql(){return{localeError:jT()}}s(Ql,"default");function ug(e,t,n,o){let r=Math.abs(e),i=r%10,a=r%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?n:o}s(ug,"getBelarusianPlural");var FT=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${r.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${u}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${i}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${u}`}case"invalid_value":return r.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 ${A(r.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 ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);if(a){let u=Number(r.maximum),c=ug(u,a.unit.one,a.unit.few,a.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 ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${r.maximum.toString()} ${c}`}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 ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);if(a){let u=Number(r.minimum),c=ug(u,a.unit.one,a.unit.few,a.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 ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${r.minimum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${r.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${b(r.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${r.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 ${r.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}},"error");function ep(){return{localeError:FT()}}s(ep,"default");var BT=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${u}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${u}`}case"invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${A(r.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 ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${r.maximum.toString()} ${a.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 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${r.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;if(i.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 "${i.prefix}"`;if(i.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 "${i.suffix}"`;if(i.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 "${i.includes}"`;if(i.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 ${i.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${r.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u043E\u0432\u0435":""}: ${b(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${r.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 ${r.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}},"error");function tp(){return{localeError:BT()}}s(tp,"default");var VT=s(()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${r.expected}, s'ha rebut ${u}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${u}`}case"invalid_value":return r.values.length===1?`Valor inv\xE0lid: s'esperava ${A(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${b(r.values," o ")}`;case"too_big":{let i=r.inclusive?"com a m\xE0xim":"menys de",a=t(r.origin);return a?`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xE9s ${i} ${r.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(r.origin);return a?`Massa petit: s'esperava que ${r.origin} contingu\xE9s ${i} ${r.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${r.origin} fos ${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\xE0lid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${i.pattern}`:`Format inv\xE0lid per a ${n[i.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${r.divisor}`;case"unrecognized_keys":return`Clau${r.keys.length>1?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${b(r.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${r.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${r.origin}`;default:return"Entrada inv\xE0lida"}}},"error");function rp(){return{localeError:VT()}}s(rp,"default");var ZT=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${r.expected}, obdr\u017Eeno ${u}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${u}`}case"invalid_value":return r.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${A(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${i}${r.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${i}${r.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${i.pattern}`:`Neplatn\xFD form\xE1t ${n[i.format]??r.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${r.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${b(r.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${r.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${r.origin}`;default:return"Neplatn\xFD vstup"}}},"error");function np(){return{localeError:ZT()}}s(np,"default");var HT=s(()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldigt input: forventede instanceof ${r.expected}, fik ${u}`:`Ugyldigt input: forventede ${i}, fik ${u}`}case"invalid_value":return r.values.length===1?`Ugyldig v\xE6rdi: forventede ${A(r.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin),u=o[r.origin]??r.origin;return a?`For stor: forventede ${u??"value"} ${a.verb} ${i} ${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${u??"value"} havde ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin),u=o[r.origin]??r.origin;return a?`For lille: forventede ${u} ${a.verb} ${i} ${r.minimum.toString()} ${a.unit}`:`For lille: forventede ${u} havde ${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.format]??r.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${b(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${r.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${r.origin}`;default:return"Ugyldigt input"}}},"error");function op(){return{localeError:HT()}}s(op,"default");var qT=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"Zahl",array:"Array"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${r.expected}, erhalten ${u}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${u}`}case"invalid_value":return r.values.length===1?`Ung\xFCltige Eingabe: erwartet ${A(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${i}${r.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${i}${r.maximum.toString()} ist`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Zu klein: erwartet, dass ${r.origin} ${i}${r.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${i}${r.minimum.toString()} ist`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ung\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\xFCltig: ${n[i.format]??r.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case"unrecognized_keys":return`${r.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${b(r.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${r.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${r.origin}`;default:return"Ung\xFCltige Eingabe"}}},"error");function ip(){return{localeError:qT()}}s(ip,"default");var GT=s(()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(r){return e[r]??null}s(t,"getSizing");let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return`Invalid input: expected ${i}, received ${u}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${A(r.values[0])}`:`Invalid option: expected one of ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Too big: expected ${r.origin??"value"} to have ${i}${r.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Too small: expected ${r.origin} to have ${i}${r.minimum.toString()} ${a.unit}`:`Too small: expected ${r.origin} to be ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${n[i.format]??r.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${r.divisor}`;case"unrecognized_keys":return`Unrecognized key${r.keys.length>1?"s":""}: ${b(r.keys,", ")}`;case"invalid_key":return`Invalid key in ${r.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${r.origin}`;default:return"Invalid input"}}},"error");function so(){return{localeError:GT()}}s(so,"default");var WT=s(()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${r.expected}, ricevi\u011Dis ${u}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${u}`}case"invalid_value":return r.values.length===1?`Nevalida enigo: atendi\u011Dis ${A(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Tro malgranda: atendi\u011Dis ke ${r.origin} havu ${i}${r.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${r.origin} estu ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${n[i.format]??r.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${r.divisor}`;case"unrecognized_keys":return`Nekonata${r.keys.length>1?"j":""} \u015Dlosilo${r.keys.length>1?"j":""}: ${b(r.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${r.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${r.origin}`;default:return"Nevalida enigo"}}},"error");function ap(){return{localeError:WT()}}s(ap,"default");var JT=s(()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${r.expected}, recibido ${u}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${u}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: se esperaba ${A(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin),u=o[r.origin]??r.origin;return a?`Demasiado grande: se esperaba que ${u??"valor"} tuviera ${i}${r.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${u??"valor"} fuera ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin),u=o[r.origin]??r.origin;return a?`Demasiado peque\xF1o: se esperaba que ${u} tuviera ${i}${r.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${u} fuera ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${i.pattern}`:`Inv\xE1lido ${n[i.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Llave${r.keys.length>1?"s":""} desconocida${r.keys.length>1?"s":""}: ${b(r.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[r.origin]??r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[r.origin]??r.origin}`;default:return"Entrada inv\xE1lida"}}},"error");function sp(){return{localeError:JT()}}s(sp,"default");var XT=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${r.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${u} \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 ${i} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${u} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return r.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${A(r.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 ${b(r.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:i.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:i.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${i.includes}" \u0628\u0627\u0634\u062F`:i.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${i.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${n[i.format]??r.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 ${r.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${r.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${b(r.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${r.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 ${r.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}},"error");function up(){return{localeError:XT()}}s(up,"default");var KT=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Virheellinen tyyppi: odotettiin instanceof ${r.expected}, oli ${u}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${u}`}case"invalid_value":return r.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${A(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${i}${r.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${i}${r.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${i.pattern}`:`Virheellinen ${n[i.format]??r.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${r.divisor} monikerta`;case"unrecognized_keys":return`${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${b(r.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"}}},"error");function cp(){return{localeError:KT()}}s(cp,"default");var YT=s(()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"nombre",array:"tableau"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : instanceof ${r.expected} attendu, ${u} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${u} re\xE7u`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : ${A(r.values[0])} attendu`:`Option invalide : une valeur parmi ${b(r.values,"|")} attendue`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Trop grand : ${r.origin??"valeur"} doit ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${r.origin??"valeur"} doit \xEAtre ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Trop petit : ${r.origin} doit ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`Trop petit : ${r.origin} doit \xEAtre ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${i.pattern}`:`${n[i.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${b(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}},"error");function lp(){return{localeError:YT()}}s(lp,"default");var QT=s(()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : attendu instanceof ${r.expected}, re\xE7u ${u}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${u}`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : attendu ${A(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"\u2264":"<",a=t(r.origin);return a?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${i}${r.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?"\u2265":">",a=t(r.origin);return a?`Trop petit : attendu que ${r.origin} ait ${i}${r.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${r.origin} soit ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${n[i.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${b(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}},"error");function pp(){return{localeError:QT()}}s(pp,"default");var eI=s(()=>{let e={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"}},t={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"}},n=s(l=>l?e[l]:void 0,"typeEntry"),o=s(l=>{let d=n(l);return d?d.label:l??e.unknown.label},"typeLabel"),r=s(l=>`\u05D4${o(l)}`,"withDefinite"),i=s(l=>(n(l)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA","verbFor"),a=s(l=>l?t[l]??null:null,"getSizing"),u={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"}},c={nan:"NaN"};return l=>{switch(l.code){case"invalid_type":{let d=l.expected,g=c[d??""]??o(d),h=$(l.input),p=c[h]??e[h]?.label??h;return/^[A-Z]/.test(l.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${l.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${g}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`}case"invalid_value":{if(l.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 ${A(l.values[0])}`;let d=l.values.map(p=>A(p));if(l.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 ${d[0]} \u05D0\u05D5 ${d[1]}`;let g=d[d.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 ${d.slice(0,-1).join(", ")} \u05D0\u05D5 ${g}`}case"too_big":{let d=a(l.origin),g=r(l.origin??"value");if(l.origin==="string")return`${d?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${g} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.maximum.toString()} ${d?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(l.origin==="number"){let m=l.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${l.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${g} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}`}if(l.origin==="array"||l.origin==="set"){let m=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",_=l.inclusive?`${l.maximum} ${d?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${l.maximum} ${d?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${g} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${_}`.trim()}let h=l.inclusive?"<=":"<",p=i(l.origin??"value");return d?.unit?`${d.longLabel} \u05DE\u05D3\u05D9: ${g} ${p} ${h}${l.maximum.toString()} ${d.unit}`:`${d?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${g} ${p} ${h}${l.maximum.toString()}`}case"too_small":{let d=a(l.origin),g=r(l.origin??"value");if(l.origin==="string")return`${d?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${g} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.minimum.toString()} ${d?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(l.origin==="number"){let m=l.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${l.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${g} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}`}if(l.origin==="array"||l.origin==="set"){let m=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(l.minimum===1&&l.inclusive){let P=(l.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${g} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${P}`}let _=l.inclusive?`${l.minimum} ${d?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${l.minimum} ${d?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${g} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${_}`.trim()}let h=l.inclusive?">=":">",p=i(l.origin??"value");return d?.unit?`${d.shortLabel} \u05DE\u05D3\u05D9: ${g} ${p} ${h}${l.minimum.toString()} ${d.unit}`:`${d?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${g} ${p} ${h}${l.minimum.toString()}`}case"invalid_format":{let d=l;if(d.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${d.prefix}"`;if(d.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${d.suffix}"`;if(d.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${d.includes}"`;if(d.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 ${d.pattern}`;let g=u[d.format],h=g?.label??d.format,m=(g?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${h} \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 ${l.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${l.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${l.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${b(l.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${r(l.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}},"error");function dp(){return{localeError:eI()}}s(dp,"default");var tI=s(()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${r.expected}, a kapott \xE9rt\xE9k ${u}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${u}`}case"invalid_value":return r.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${A(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xFAl nagy: ${r.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${r.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${r.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} m\xE9rete t\xFAl kicsi ${i}${r.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} t\xFAl kicsi ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\xC9rv\xE9nytelen string: "${i.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:i.format==="ends_with"?`\xC9rv\xE9nytelen string: "${i.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:i.format==="includes"?`\xC9rv\xE9nytelen string: "${i.includes}" \xE9rt\xE9ket kell tartalmaznia`:i.format==="regex"?`\xC9rv\xE9nytelen string: ${i.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${n[i.format]??r.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${r.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${r.keys.length>1?"s":""}: ${b(r.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${r.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${r.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}},"error");function fp(){return{localeError:tI()}}s(fp,"default");function cg(e,t,n){return Math.abs(e)===1?t:n}s(cg,"getArmenianPlural");function Vr(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],n=e[e.length-1];return e+(t.includes(n)?"\u0576":"\u0568")}s(Vr,"withDefiniteArticle");var rI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.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 ${r.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${u}`:`\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 ${i}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${u}`}case"invalid_value":return r.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 ${A(r.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 ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);if(a){let u=Number(r.maximum),c=cg(u,a.unit.one,a.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 ${Vr(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${r.maximum.toString()} ${c}`}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 ${Vr(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);if(a){let u=Number(r.minimum),c=cg(u,a.unit.one,a.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 ${Vr(r.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${r.minimum.toString()} ${c}`}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 ${Vr(r.origin)} \u056C\u056B\u0576\u056B ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${i.prefix}"-\u0578\u057E`:i.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${i.suffix}"-\u0578\u057E`:i.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${i.includes}"`:i.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 ${i.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${n[i.format]??r.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 ${r.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${r.keys.length>1?"\u0576\u0565\u0580":""}. ${b(r.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Vr(r.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 ${Vr(r.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}},"error");function mp(){return{localeError:rI()}}s(mp,"default");var nI=s(()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak valid: diharapkan instanceof ${r.expected}, diterima ${u}`:`Input tidak valid: diharapkan ${i}, diterima ${u}`}case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${A(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${i}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: diharapkan ${r.origin} memiliki ${i}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${n[i.format]??r.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${r.keys.length>1?"s":""}: ${b(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`;default:return"Input tidak valid"}}},"error");function hp(){return{localeError:nI()}}s(hp,"default");var oI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${u} \xFEar sem \xE1 a\xF0 vera instanceof ${r.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${u} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return r.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${A(r.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} hafi ${i}${r.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} s\xE9 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} hafi ${i}${r.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} s\xE9 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${i.prefix}"`:i.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${i.suffix}"`:i.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${n[i.format]??r.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${r.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${r.keys.length>1?"ir lyklar":"ur lykill"}: ${b(r.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${r.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${r.origin}`;default:return"Rangt gildi"}}},"error");function gp(){return{localeError:oI()}}s(gp,"default");var iI=s(()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"numero",array:"vettore"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Input non valido: atteso instanceof ${r.expected}, ricevuto ${u}`:`Input non valido: atteso ${i}, ricevuto ${u}`}case"invalid_value":return r.values.length===1?`Input non valido: atteso ${A(r.values[0])}`:`Opzione non valida: atteso uno tra ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Troppo grande: ${r.origin??"valore"} deve avere ${i}${r.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Troppo piccolo: ${r.origin} deve avere ${i}${r.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${r.origin} deve essere ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Invalid ${n[i.format]??r.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case"unrecognized_keys":return`Chiav${r.keys.length>1?"i":"e"} non riconosciut${r.keys.length>1?"e":"a"}: ${b(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`;default:return"Input non valido"}}},"error");function yp(){return{localeError:iI()}}s(yp,"default");var aI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${r.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${u}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${u}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return r.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${A(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${b(r.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=r.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(r.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${a.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=r.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(r.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${a.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${i.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${n[i.format]??r.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${r.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${r.keys.length>1?"\u7FA4":""}: ${b(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}},"error");function vp(){return{localeError:aI()}}s(vp,"default");var sI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},o={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.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 ${r.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${u}`:`\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 ${i}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${u}`}case"invalid_value":return r.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 ${A(r.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 ${b(r.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\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 ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.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 ${r.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.prefix}"-\u10D8\u10D7`:i.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.suffix}"-\u10D8\u10D7`:i.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${i.includes}"-\u10E1`:i.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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 ${i.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${n[i.format]??r.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 ${r.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${r.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${b(r.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${r.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 ${r.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}},"error");function _p(){return{localeError:sI()}}s(_p,"default");var uI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.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 ${r.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${u}`:`\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 ${i} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${u}`}case"invalid_value":return r.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 ${A(r.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 ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${r.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${i} ${r.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${b(r.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 ${r.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 ${r.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}},"error");function uo(){return{localeError:uI()}}s(uo,"default");function Pp(){return uo()}s(Pp,"default");var cI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${r.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${u}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${u}\uC785\uB2C8\uB2E4`}case"invalid_value":return r.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${A(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${b(r.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",u=t(r.origin),c=u?.unit??"\uC694\uC18C";return u?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${c} ${i}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()} ${i}${a}`}case"too_small":{let i=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",u=t(r.origin),c=u?.unit??"\uC694\uC18C";return u?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${c} ${i}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()} ${i}${a}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:i.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${i.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${n[i.format]??r.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${r.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${b(r.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${r.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${r.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}},"error");function xp(){return{localeError:cI()}}s(xp,"default");var co=s(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalizeFirstCharacter");function lg(e){let t=Math.abs(e),n=t%10,o=t%100;return o>=11&&o<=19||n===0?"many":n===1?"one":"few"}s(lg,"getUnitTypeFromNumber");var lI=s(()=>{let e={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 t(r,i,a,u){let c=e[r]??null;return c===null?c:{unit:c.unit[i],verb:c.verb[u][a?"inclusive":"notInclusive"]}}s(t,"getSizing");let n={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"},o={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Gautas tipas ${u}, o tik\u0117tasi - instanceof ${r.expected}`:`Gautas tipas ${u}, o tik\u0117tasi - ${i}`}case"invalid_value":return r.values.length===1?`Privalo b\u016Bti ${A(r.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${b(r.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[r.origin]??r.origin,a=t(r.origin,lg(Number(r.maximum)),r.inclusive??!1,"smaller");if(a?.verb)return`${co(i??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.maximum.toString()} ${a.unit??"element\u0173"}`;let u=r.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${co(i??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${u} ${r.maximum.toString()} ${a?.unit}`}case"too_small":{let i=o[r.origin]??r.origin,a=t(r.origin,lg(Number(r.minimum)),r.inclusive??!1,"bigger");if(a?.verb)return`${co(i??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.minimum.toString()} ${a.unit??"element\u0173"}`;let u=r.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${co(i??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${u} ${r.minimum.toString()} ${a?.unit}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${n[i.format]??r.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${r.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${r.keys.length>1?"i":"as"} rakt${r.keys.length>1?"ai":"as"}: ${b(r.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=o[r.origin]??r.origin;return`${co(i??r.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}},"error");function bp(){return{localeError:lI()}}s(bp,"default");var pI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${r.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${u}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${u}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${A(r.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 ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${r.maximum.toString()} ${a.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 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${r.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`Invalid ${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`${r.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"}: ${b(r.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${r.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 ${r.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}},"error");function Ep(){return{localeError:pI()}}s(Ep,"default");var dI=s(()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"nombor"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak sah: dijangka instanceof ${r.expected}, diterima ${u}`:`Input tidak sah: dijangka ${i}, diterima ${u}`}case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${A(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: dijangka ${r.origin??"nilai"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: dijangka ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${n[i.format]??r.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${b(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`;default:return"Input tidak sah"}}},"error");function Tp(){return{localeError:dI()}}s(Tp,"default");var fI=s(()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"getal"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ongeldige invoer: verwacht instanceof ${r.expected}, ontving ${u}`:`Ongeldige invoer: verwacht ${i}, ontving ${u}`}case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${A(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin),u=r.origin==="date"?"laat":r.origin==="string"?"lang":"groot";return a?`Te ${u}: verwacht dat ${r.origin??"waarde"} ${i}${r.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${u}: verwacht dat ${r.origin??"waarde"} ${i}${r.maximum.toString()} is`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin),u=r.origin==="date"?"vroeg":r.origin==="string"?"kort":"klein";return a?`Te ${u}: verwacht dat ${r.origin} ${i}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${u}: verwacht dat ${r.origin} ${i}${r.minimum.toString()} is`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${n[i.format]??r.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${r.keys.length>1?"s":""}: ${b(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`;default:return"Ongeldige invoer"}}},"error");function Ip(){return{localeError:fI()}}s(Ip,"default");var mI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"tall",array:"liste"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldig input: forventet instanceof ${r.expected}, fikk ${u}`:`Ugyldig input: forventet ${i}, fikk ${u}`}case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${A(r.values[0])}`:`Ugyldig valg: forventet en av ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${i}${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`For lite(n): forventet ${r.origin} til \xE5 ha ${i}${r.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${r.origin} til \xE5 ha ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.format]??r.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${b(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}},"error");function Sp(){return{localeError:mI()}}s(Sp,"default");var hI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`F\xE2sit giren: umulan instanceof ${r.expected}, al\u0131nan ${u}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${u}`}case"invalid_value":return r.values.length===1?`F\xE2sit giren: umulan ${A(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${i}${r.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${i}${r.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${i}${r.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${i}${r.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=r;return i.format==="starts_with"?`F\xE2sit metin: "${i.prefix}" ile ba\u015Flamal\u0131.`:i.format==="ends_with"?`F\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\xE2sit metin: "${i.includes}" ihtiv\xE2 etmeli.`:i.format==="regex"?`F\xE2sit metin: ${i.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${n[i.format]??r.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${r.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${r.keys.length>1?"s":""}: ${b(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${r.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}},"error");function Ap(){return{localeError:hI()}}s(Ap,"default");var gI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${r.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${u} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${i} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${u} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return r.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${A(r.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${b(r.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} \u0648\u064A`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:i.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:i.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${i.includes}" \u0648\u0644\u0631\u064A`:i.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${i.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${n[i.format]??r.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${r.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${r.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${b(r.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${r.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 ${r.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}},"error");function wp(){return{localeError:gI()}}s(wp,"default");var yI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"liczba",array:"tablica"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${r.expected}, otrzymano ${u}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${u}`}case"invalid_value":return r.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${A(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${r.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${r.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${i.pattern}`:`Nieprawid\u0142ow(y/a/e) ${n[i.format]??r.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${b(r.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${r.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${r.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}},"error");function $p(){return{localeError:yI()}}s($p,"default");var vI=s(()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Tipo inv\xE1lido: esperado instanceof ${r.expected}, recebido ${u}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${u}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: esperado ${A(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${i}${r.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Muito pequeno: esperado que ${r.origin} tivesse ${i}${r.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${i.prefix}"`:i.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inv\xE1lido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${i.pattern}`:`${n[i.format]??r.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Chave${r.keys.length>1?"s":""} desconhecida${r.keys.length>1?"s":""}: ${b(r.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${r.origin}`;default:return"Campo inv\xE1lido"}}},"error");function Op(){return{localeError:vI()}}s(Op,"default");function pg(e,t,n,o){let r=Math.abs(e),i=r%10,a=r%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?n:o}s(pg,"getRussianPlural");var _I=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${u}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${u}`}case"invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${A(r.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 ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);if(a){let u=Number(r.maximum),c=pg(u,a.unit.one,a.unit.few,a.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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${r.maximum.toString()} ${c}`}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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);if(a){let u=Number(r.minimum),c=pg(u,a.unit.one,a.unit.few,a.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 ${r.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${r.minimum.toString()} ${c}`}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 ${r.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${r.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0438":""}: ${b(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${r.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 ${r.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}},"error");function Rp(){return{localeError:_I()}}s(Rp,"default");var PI=s(()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${r.expected}, prejeto ${u}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${u}`}case"invalid_value":return r.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${A(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${i}${r.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${r.origin} imelo ${i}${r.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${n[i.format]??r.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${b(r.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${r.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`;default:return"Neveljaven vnos"}}},"error");function zp(){return{localeError:PI()}}s(zp,"default");var xI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"antal",array:"lista"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${r.expected}, fick ${u}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${u}`}case"invalid_value":return r.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${A(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${i}${r.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${r.origin??"v\xE4rdet"} att ha ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${i}${r.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${n[i.format]??r.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${b(r.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${r.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${r.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}},"error");function kp(){return{localeError:xI()}}s(kp,"default");var bI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.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 ${r.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${u}`:`\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 ${i}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${u}`}case"invalid_value":return r.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 ${A(r.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 ${b(r.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${r.maximum.toString()} ${a.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 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${r.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\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 ${r.origin} ${i}${r.minimum.toString()} ${a.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 ${r.origin} ${i}${r.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${i.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 ${n[i.format]??r.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${r.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${r.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${b(r.keys,", ")}`;case"invalid_key":return`${r.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`${r.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"}}},"error");function Dp(){return{localeError:bI()}}s(Dp,"default");var EI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.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 ${r.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${u}`:`\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 ${i} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${u}`}case"invalid_value":return r.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${A(r.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 ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:i.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 ${i.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${n[i.format]??r.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 ${r.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: ${b(r.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.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 ${r.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}},"error");function Cp(){return{localeError:EI()}}s(Cp,"default");var TI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${r.expected}, al\u0131nan ${u}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${u}`}case"invalid_value":return r.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${A(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${i}${r.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${i}${r.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[i.format]??r.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${r.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${r.keys.length>1?"lar":""}: ${b(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${r.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}},"error");function Np(){return{localeError:TI()}}s(Np,"default");var II=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.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 ${r.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${u}`:`\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 ${i}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${u}`}case"invalid_value":return r.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 ${A(r.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 ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${i}${r.maximum.toString()} ${a.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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} \u0431\u0443\u0434\u0435 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0456":""}: ${b(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${r.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 ${r.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}},"error");function lo(){return{localeError:II()}}s(lo,"default");function Up(){return lo()}s(Up,"default");var SI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${r.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${u} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${i} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${u} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return r.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${A(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${b(r.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${r.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u06D2 ${i}${r.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u0627 ${i}${r.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${i.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${n[i.format]??r.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${r.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${r.keys.length>1?"\u0632":""}: ${b(r.keys,"\u060C ")}`;case"invalid_key":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}},"error");function Mp(){return{localeError:SI()}}s(Mp,"default");var AI=s(()=>{let e={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"}};function t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"raqam",array:"massiv"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${r.expected}, qabul qilingan ${u}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${u}`}case"invalid_value":return r.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${A(r.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Juda katta: kutilgan ${r.origin??"qiymat"} ${i}${r.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${r.origin??"qiymat"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Juda kichik: kutilgan ${r.origin} ${i}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto\u2018g\u2018ri satr: "${i.includes}" ni o\u2018z ichiga olishi kerak`:i.format==="regex"?`Noto\u2018g\u2018ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${n[i.format]??r.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${r.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${r.keys.length>1?"lar":""}: ${b(r.keys,", ")}`;case"invalid_key":return`${r.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${r.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}},"error");function Lp(){return{localeError:AI()}}s(Lp,"default");var wI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${r.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${u}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${u}`}case"invalid_value":return r.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${A(r.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${i.pattern}`:`${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${b(r.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.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 ${r.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}},"error");function jp(){return{localeError:wI()}}s(jp,"default");var $I=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${r.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${u}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${u}`}case"invalid_value":return r.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${A(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${i}${r.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${i}${r.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.prefix}" \u5F00\u5934`:i.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.suffix}" \u7ED3\u5C3E`:i.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${i.pattern}`:`\u65E0\u6548${n[i.format]??r.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${r.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${b(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${r.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}},"error");function Fp(){return{localeError:$I()}}s(Fp,"default");var OI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${r.expected}\uFF0C\u4F46\u6536\u5230 ${u}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${u}`}case"invalid_value":return r.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${A(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${i}${r.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${i}${r.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.prefix}" \u958B\u982D`:i.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.suffix}" \u7D50\u5C3E`:i.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${i.pattern}`:`\u7121\u6548\u7684 ${n[i.format]??r.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${r.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${r.keys.length>1?"\u5011":""}\uFF1A${b(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}},"error");function Bp(){return{localeError:OI()}}s(Bp,"default");var RI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${r.expected}, \xE0m\u1ECD\u0300 a r\xED ${u}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${u}`}case"invalid_value":return r.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${A(r.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin??"iye"} ${a.verb} ${i}${r.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${r.maximum}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin} ${a.verb} ${i}${r.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${r.minimum}`}case"invalid_format":{let i=r;return i.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 "${i.prefix}"`:i.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${i.suffix}"`:i.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${i.includes}"`:i.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${i.pattern}`:`A\u1E63\xEC\u1E63e: ${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${b(r.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${r.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 ${r.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}},"error");function Vp(){return{localeError:RI()}}s(Vp,"default");var dg,cs=Symbol("ZodOutput"),ls=Symbol("ZodInput"),us=class{static{s(this,"$ZodRegistry")}constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let o=n[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){let n=t._zod.parent;if(n){let o={...this.get(n)??{}};delete o.id;let r={...o,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function po(){return new us}s(po,"registry");(dg=globalThis).__zod_globalRegistry??(dg.__zod_globalRegistry=po());var De=globalThis.__zod_globalRegistry;function fo(e,t){return new e({type:"string",...I(t)})}s(fo,"_string");function mo(e,t){return new e({type:"string",coerce:!0,...I(t)})}s(mo,"_coercedString");function ho(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...I(t)})}s(ho,"_email");function Hr(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...I(t)})}s(Hr,"_guid");function go(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...I(t)})}s(go,"_uuid");function yo(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...I(t)})}s(yo,"_uuidv4");function vo(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...I(t)})}s(vo,"_uuidv6");function _o(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...I(t)})}s(_o,"_uuidv7");function ar(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...I(t)})}s(ar,"_url");function Po(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...I(t)})}s(Po,"_emoji");function xo(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...I(t)})}s(xo,"_nanoid");function bo(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...I(t)})}s(bo,"_cuid");function Eo(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...I(t)})}s(Eo,"_cuid2");function To(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...I(t)})}s(To,"_ulid");function Io(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...I(t)})}s(Io,"_xid");function So(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...I(t)})}s(So,"_ksuid");function Ao(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...I(t)})}s(Ao,"_ipv4");function wo(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...I(t)})}s(wo,"_ipv6");function ps(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...I(t)})}s(ps,"_mac");function $o(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...I(t)})}s($o,"_cidrv4");function Oo(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...I(t)})}s(Oo,"_cidrv6");function Ro(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...I(t)})}s(Ro,"_base64");function zo(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...I(t)})}s(zo,"_base64url");function ko(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...I(t)})}s(ko,"_e164");function Do(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...I(t)})}s(Do,"_jwt");var ds={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Co(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...I(t)})}s(Co,"_isoDateTime");function No(e,t){return new e({type:"string",format:"date",check:"string_format",...I(t)})}s(No,"_isoDate");function Uo(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...I(t)})}s(Uo,"_isoTime");function Mo(e,t){return new e({type:"string",format:"duration",check:"string_format",...I(t)})}s(Mo,"_isoDuration");function Lo(e,t){return new e({type:"number",checks:[],...I(t)})}s(Lo,"_number");function jo(e,t){return new e({type:"number",coerce:!0,checks:[],...I(t)})}s(jo,"_coercedNumber");function Fo(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...I(t)})}s(Fo,"_int");function fs(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...I(t)})}s(fs,"_float32");function ms(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...I(t)})}s(ms,"_float64");function hs(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...I(t)})}s(hs,"_int32");function gs(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...I(t)})}s(gs,"_uint32");function Bo(e,t){return new e({type:"boolean",...I(t)})}s(Bo,"_boolean");function Vo(e,t){return new e({type:"boolean",coerce:!0,...I(t)})}s(Vo,"_coercedBoolean");function ys(e,t){return new e({type:"bigint",...I(t)})}s(ys,"_bigint");function Zo(e,t){return new e({type:"bigint",coerce:!0,...I(t)})}s(Zo,"_coercedBigint");function vs(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...I(t)})}s(vs,"_int64");function _s(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...I(t)})}s(_s,"_uint64");function Ps(e,t){return new e({type:"symbol",...I(t)})}s(Ps,"_symbol");function xs(e,t){return new e({type:"undefined",...I(t)})}s(xs,"_undefined");function bs(e,t){return new e({type:"null",...I(t)})}s(bs,"_null");function Ho(e){return new e({type:"any"})}s(Ho,"_any");function qo(e){return new e({type:"unknown"})}s(qo,"_unknown");function Es(e,t){return new e({type:"never",...I(t)})}s(Es,"_never");function Go(e,t){return new e({type:"void",...I(t)})}s(Go,"_void");function Ts(e,t){return new e({type:"date",...I(t)})}s(Ts,"_date");function Wo(e,t){return new e({type:"date",coerce:!0,...I(t)})}s(Wo,"_coercedDate");function Is(e,t){return new e({type:"nan",...I(t)})}s(Is,"_nan");function ft(e,t){return new da({check:"less_than",...I(t),value:e,inclusive:!1})}s(ft,"_lt");function Be(e,t){return new da({check:"less_than",...I(t),value:e,inclusive:!0})}s(Be,"_lte");function mt(e,t){return new fa({check:"greater_than",...I(t),value:e,inclusive:!1})}s(mt,"_gt");function Re(e,t){return new fa({check:"greater_than",...I(t),value:e,inclusive:!0})}s(Re,"_gte");function Jo(e){return mt(0,e)}s(Jo,"_positive");function Xo(e){return ft(0,e)}s(Xo,"_negative");function Ko(e){return Be(0,e)}s(Ko,"_nonpositive");function Yo(e){return Re(0,e)}s(Yo,"_nonnegative");function xt(e,t){return new Ol({check:"multiple_of",...I(t),value:e})}s(xt,"_multipleOf");function bt(e,t){return new kl({check:"max_size",...I(t),maximum:e})}s(bt,"_maxSize");function ht(e,t){return new Dl({check:"min_size",...I(t),minimum:e})}s(ht,"_minSize");function Ut(e,t){return new Cl({check:"size_equals",...I(t),size:e})}s(Ut,"_size");function Mt(e,t){return new Nl({check:"max_length",...I(t),maximum:e})}s(Mt,"_maxLength");function $e(e,t){return new Ul({check:"min_length",...I(t),minimum:e})}s($e,"_minLength");function Lt(e,t){return new Ml({check:"length_equals",...I(t),length:e})}s(Lt,"_length");function Ue(e,t){return new Ll({check:"string_format",format:"regex",...I(t),pattern:e})}s(Ue,"_regex");function sr(e){return new jl({check:"string_format",format:"lowercase",...I(e)})}s(sr,"_lowercase");function ur(e){return new Fl({check:"string_format",format:"uppercase",...I(e)})}s(ur,"_uppercase");function cr(e,t){return new Bl({check:"string_format",format:"includes",...I(t),includes:e})}s(cr,"_includes");function lr(e,t){return new Vl({check:"string_format",format:"starts_with",...I(t),prefix:e})}s(lr,"_startsWith");function pr(e,t){return new Zl({check:"string_format",format:"ends_with",...I(t),suffix:e})}s(pr,"_endsWith");function Qo(e,t,n){return new Hl({check:"property",property:e,schema:t,...I(n)})}s(Qo,"_property");function dr(e,t){return new ql({check:"mime_type",mime:e,...I(t)})}s(dr,"_mime");function ut(e){return new Gl({check:"overwrite",tx:e})}s(ut,"_overwrite");function fr(e){return ut(t=>t.normalize(e))}s(fr,"_normalize");function mr(){return ut(e=>e.trim())}s(mr,"_trim");function hr(){return ut(e=>e.toLowerCase())}s(hr,"_toLowerCase");function gr(){return ut(e=>e.toUpperCase())}s(gr,"_toUpperCase");function qr(){return ut(e=>Xc(e))}s(qr,"_slugify");function Zp(e,t,n){return new e({type:"array",element:t,...I(n)})}s(Zp,"_array");function kI(e,t,n){return new e({type:"union",options:t,...I(n)})}s(kI,"_union");function DI(e,t,n){return new e({type:"union",options:t,inclusive:!1,...I(n)})}s(DI,"_xor");function CI(e,t,n,o){return new e({type:"union",options:n,discriminator:t,...I(o)})}s(CI,"_discriminatedUnion");function NI(e,t,n){return new e({type:"intersection",left:t,right:n})}s(NI,"_intersection");function UI(e,t,n,o){let r=n instanceof H,i=r?o:n,a=r?n:null;return new e({type:"tuple",items:t,rest:a,...I(i)})}s(UI,"_tuple");function MI(e,t,n,o){return new e({type:"record",keyType:t,valueType:n,...I(o)})}s(MI,"_record");function LI(e,t,n,o){return new e({type:"map",keyType:t,valueType:n,...I(o)})}s(LI,"_map");function jI(e,t,n){return new e({type:"set",valueType:t,...I(n)})}s(jI,"_set");function FI(e,t,n){let o=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:o,...I(n)})}s(FI,"_enum");function BI(e,t,n){return new e({type:"enum",entries:t,...I(n)})}s(BI,"_nativeEnum");function VI(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...I(n)})}s(VI,"_literal");function Ss(e,t){return new e({type:"file",...I(t)})}s(Ss,"_file");function ZI(e,t){return new e({type:"transform",transform:t})}s(ZI,"_transform");function HI(e,t){return new e({type:"optional",innerType:t})}s(HI,"_optional");function qI(e,t){return new e({type:"nullable",innerType:t})}s(qI,"_nullable");function GI(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():Qi(n)}})}s(GI,"_default");function WI(e,t,n){return new e({type:"nonoptional",innerType:t,...I(n)})}s(WI,"_nonoptional");function JI(e,t){return new e({type:"success",innerType:t})}s(JI,"_success");function XI(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}s(XI,"_catch");function KI(e,t,n){return new e({type:"pipe",in:t,out:n})}s(KI,"_pipe");function YI(e,t){return new e({type:"readonly",innerType:t})}s(YI,"_readonly");function QI(e,t,n){return new e({type:"template_literal",parts:t,...I(n)})}s(QI,"_templateLiteral");function eS(e,t){return new e({type:"lazy",getter:t})}s(eS,"_lazy");function tS(e,t){return new e({type:"promise",innerType:t})}s(tS,"_promise");function ei(e,t,n){let o=I(n);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}s(ei,"_custom");function ti(e,t,n){return new e({type:"custom",check:"custom",fn:t,...I(n)})}s(ti,"_refine");function As(e){let t=fg(n=>(n.addIssue=o=>{if(typeof o=="string")n.issues.push($r(o,n.value,t._zod.def));else{let r=o;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=t),r.continue??(r.continue=!t._zod.def.abort),n.issues.push($r(r))}},e(n.value,n)));return t}s(As,"_superRefine");function fg(e,t){let n=new de({check:"custom",...I(t)});return n._zod.check=e,n}s(fg,"_check");function ws(e){let t=new de({check:"describe"});return t._zod.onattach=[n=>{let o=De.get(n)??{};De.add(n,{...o,description:e})}],t._zod.check=()=>{},t}s(ws,"describe");function $s(e){let t=new de({check:"meta"});return t._zod.onattach=[n=>{let o=De.get(n)??{};De.add(n,{...o,...e})}],t._zod.check=()=>{},t}s($s,"meta");function Os(e,t){let n=I(t),o=n.truthy??["true","1","yes","on","y","enabled"],r=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(o=o.map(p=>typeof p=="string"?p.toLowerCase():p),r=r.map(p=>typeof p=="string"?p.toLowerCase():p));let i=new Set(o),a=new Set(r),u=e.Codec??Br,c=e.Boolean??or,l=e.String??Pt,d=new l({type:"string",error:n.error}),g=new c({type:"boolean",error:n.error}),h=new u({type:"pipe",in:d,out:g,transform:s(((p,m)=>{let _=p;return n.case!=="sensitive"&&(_=_.toLowerCase()),i.has(_)?!0:a.has(_)?!1:(m.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:m.value,inst:h,continue:!1}),{})}),"transform"),reverseTransform:s(((p,m)=>p===!0?o[0]||"true":r[0]||"false"),"reverseTransform"),error:n.error});return h}s(Os,"_stringbool");function yr(e,t,n,o={}){let r=I(o),i={...I(o),check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:u=>n.test(u),...r};return n instanceof RegExp&&(i.pattern=n),new e(i)}s(yr,"_stringFormat");function jt(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??De,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}s(jt,"initializeContext");function pe(e,t,n={path:[],schemaPath:[]}){var o;let r=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);let u=e._zod.toJSONSchema?.();if(u)a.schema=u;else{let d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,d);else{let h=a.schema,p=t.processors[r.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);p(e,t,h,d)}let g=e._zod.parent;g&&(a.ref||(a.ref=g),pe(g,t,d),t.seen.get(g).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(a.schema,c),t.io==="input"&&Ve(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}s(pe,"process");function Ft(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let a of e.seen.entries()){let u=e.metadataRegistry.get(a[0])?.id;if(u){let c=o.get(u);if(c&&c!==a[0])throw new Error(`Duplicate schema id "${u}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(u,a[0])}}let r=s(a=>{let u=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let g=e.external.registry.get(a[0])?.id,h=e.external.uri??(m=>m);if(g)return{ref:h(g)};let p=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=p,{defId:p,ref:`${h("__shared")}#/${u}/${p}`}}if(a[1]===n)return{ref:"#"};let l=`#/${u}/`,d=a[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:l+d}},"makeURI"),i=s(a=>{if(a[1].schema.$ref)return;let u=a[1],{ref:c,defId:l}=r(a);u.def={...u.schema},l&&(u.defId=l);let d=u.schema;for(let g in d)delete d[g];d.$ref=c},"extractToDef");if(e.cycles==="throw")for(let a of e.seen.entries()){let u=a[1];if(u.cycle)throw new Error(`Cycle detected: #/${u.cycle?.join("/")}/<root>
|
|
42
|
+
`)}p.write("payload.value = newResult;"),p.write("return payload;");let T=p.compile();return(Z,ie)=>T(m,Z,ie)},"generateFastpass"),i,a=er,u=!$n.jitless,l=u&&Yc.value,d=t.catchall,h;e._zod.parse=(m,p)=>{h??(h=o.value);let g=m.value;return a(g)?u&&l&&p?.async===!1&&p.jitless!==!0?(i||(i=r(t.shape)),m=i(m,p),d?ph([],g,m,p,h,e):m):n(m,p):(m.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),m)}});function Yg(e,t,n,o){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let r=e.filter(i=>!Nt(i));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(a=>Je(a,o,xe())))}),t)}s(Yg,"handleUnionResults");var ir=y("$ZodUnion",(e,t)=>{H.init(e,t),Y(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),Y(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),Y(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),Y(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){let r=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${r.map(i=>kn(i.source)).join("|")})$`)}});let n=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(r,i)=>{if(n)return o(r,i);let a=!1,u=[];for(let c of t.options){let l=c._zod.run({value:r.value,issues:[]},i);if(l instanceof Promise)u.push(l),a=!0;else{if(l.issues.length===0)return l;u.push(l)}}return a?Promise.all(u).then(c=>Yg(c,r,e,i)):Yg(u,r,e,i)}});function Qg(e,t,n,o){let r=e.filter(i=>i.issues.length===0);return r.length===1?(t.value=r[0].value,t):(r.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(a=>Je(a,o,xe())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t)}s(Qg,"handleExclusiveUnionResults");var Ha=y("$ZodXor",(e,t)=>{ir.init(e,t),t.inclusive=!1;let n=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(r,i)=>{if(n)return o(r,i);let a=!1,u=[];for(let c of t.options){let l=c._zod.run({value:r.value,issues:[]},i);l instanceof Promise?(u.push(l),a=!0):u.push(l)}return a?Promise.all(u).then(c=>Qg(c,r,e,i)):Qg(u,r,e,i)}}),Yn=y("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,ir.init(e,t);let n=e._zod.parse;Y(e._zod,"propValues",()=>{let r={};for(let i of t.options){let a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let[u,c]of Object.entries(a)){r[u]||(r[u]=new Set);for(let l of c)r[u].add(l)}}return r});let o=$r(()=>{let r=t.options,i=new Map;for(let a of r){let u=a._zod.propValues?.[t.discriminator];if(!u||u.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let c of u){if(i.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);i.set(c,a)}}return i});e._zod.parse=(r,i)=>{let a=r.value;if(!er(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;let u=o.value.get(a?.[t.discriminator]);return u?u._zod.run(r,i):t.unionFallback?n(r,i):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),r)}}),qa=y("$ZodIntersection",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>{let r=n.value,i=t.left._zod.run({value:r,issues:[]},o),a=t.right._zod.run({value:r,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([c,l])=>eh(n,c,l)):eh(n,i,a)}});function Kl(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ct(e)&&Ct(t)){let n=Object.keys(t),o=Object.keys(e).filter(i=>n.indexOf(i)!==-1),r={...e,...t};for(let i of o){let a=Kl(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r[i]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let o=0;o<e.length;o++){let r=e[o],i=t[o],a=Kl(r,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}s(Kl,"mergeValues");function eh(e,t,n){let o=new Map,r;for(let u of t.issues)if(u.code==="unrecognized_keys"){r??(r=u);for(let c of u.keys)o.has(c)||o.set(c,{}),o.get(c).l=!0}else e.issues.push(u);for(let u of n.issues)if(u.code==="unrecognized_keys")for(let c of u.keys)o.has(c)||o.set(c,{}),o.get(c).r=!0;else e.issues.push(u);let i=[...o].filter(([,u])=>u.l&&u.r).map(([u])=>u);if(i.length&&r&&e.issues.push({...r,keys:i}),Nt(e))return e;let a=Kl(t.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}s(eh,"handleIntersectionResults");var Qn=y("$ZodTuple",(e,t)=>{H.init(e,t);let n=t.items;e._zod.parse=(o,r)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let a=[],u=[...n].reverse().findIndex(d=>d._zod.optin!=="optional"),c=u===-1?0:n.length-u;if(!t.rest){let d=i.length>n.length,h=i.length<c-1;if(d||h)return o.issues.push({...d?{code:"too_big",maximum:n.length,inclusive:!0}:{code:"too_small",minimum:n.length},input:i,inst:e,origin:"array"}),o}let l=-1;for(let d of n){if(l++,l>=i.length&&l>=c)continue;let h=d._zod.run({value:i[l],issues:[]},r);h instanceof Promise?a.push(h.then(m=>ma(m,o,l))):ma(h,o,l)}if(t.rest){let d=i.slice(n.length);for(let h of d){l++;let m=t.rest._zod.run({value:h,issues:[]},r);m instanceof Promise?a.push(m.then(p=>ma(p,o,l))):ma(m,o,l)}}return a.length?Promise.all(a).then(()=>o):o}});function ma(e,t,n){e.issues.length&&t.issues.push(...rt(n,e.issues)),t.value[n]=e.value}s(ma,"handleTupleResult");var eo=y("$ZodRecord",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;if(!Ct(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;let i=[],a=t.keyType._zod.values;if(a){n.value={};let u=new Set;for(let l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){u.add(typeof l=="number"?l.toString():l);let d=t.valueType._zod.run({value:r[l],issues:[]},o);d instanceof Promise?i.push(d.then(h=>{h.issues.length&&n.issues.push(...rt(l,h.issues)),n.value[l]=h.value})):(d.issues.length&&n.issues.push(...rt(l,d.issues)),n.value[l]=d.value)}let c;for(let l in r)u.has(l)||(c=c??[],c.push(l));c&&c.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:c})}else{n.value={};for(let u of Reflect.ownKeys(r)){if(u==="__proto__")continue;let c=t.keyType._zod.run({value:u,issues:[]},o);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&pa.test(u)&&c.issues.length){let h=t.keyType._zod.run({value:Number(u),issues:[]},o);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(c=h)}if(c.issues.length){t.mode==="loose"?n.value[u]=r[u]:n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(h=>Je(h,o,xe())),input:u,path:[u],inst:e});continue}let d=t.valueType._zod.run({value:r[u],issues:[]},o);d instanceof Promise?i.push(d.then(h=>{h.issues.length&&n.issues.push(...rt(u,h.issues)),n.value[c.value]=h.value})):(d.issues.length&&n.issues.push(...rt(u,d.issues)),n.value[c.value]=d.value)}}return i.length?Promise.all(i).then(()=>n):n}}),Ga=y("$ZodMap",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;if(!(r instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),n;let i=[];n.value=new Map;for(let[a,u]of r){let c=t.keyType._zod.run({value:a,issues:[]},o),l=t.valueType._zod.run({value:u,issues:[]},o);c instanceof Promise||l instanceof Promise?i.push(Promise.all([c,l]).then(([d,h])=>{th(d,h,n,a,r,e,o)})):th(c,l,n,a,r,e,o)}return i.length?Promise.all(i).then(()=>n):n}});function th(e,t,n,o,r,i,a){e.issues.length&&(Dn.has(typeof o)?n.issues.push(...rt(o,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:r,inst:i,issues:e.issues.map(u=>Je(u,a,xe()))})),t.issues.length&&(Dn.has(typeof o)?n.issues.push(...rt(o,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:i,key:o,issues:t.issues.map(u=>Je(u,a,xe()))})),n.value.set(e.value,t.value)}s(th,"handleMapResult");var Wa=y("$ZodSet",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;if(!(r instanceof Set))return n.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),n;let i=[];n.value=new Set;for(let a of r){let u=t.valueType._zod.run({value:a,issues:[]},o);u instanceof Promise?i.push(u.then(c=>rh(c,n))):rh(u,n)}return i.length?Promise.all(i).then(()=>n):n}});function rh(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}s(rh,"handleSetResult");var to=y("$ZodEnum",(e,t)=>{H.init(e,t);let n=zn(t.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(r=>Dn.has(typeof r)).map(r=>typeof r=="string"?st(r):r.toString()).join("|")})$`),e._zod.parse=(r,i)=>{let a=r.value;return o.has(a)||r.issues.push({code:"invalid_value",values:n,input:a,inst:e}),r}}),ro=y("$ZodLiteral",(e,t)=>{if(H.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?st(o):o?st(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,r)=>{let i=o.value;return n.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),Ja=y("$ZodFile",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;return r instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),n}}),no=y("$ZodTransform",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new zt(e.constructor.name);let r=t.transform(n.value,n);if(o.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=>(n.value=a,n));if(r instanceof Promise)throw new dt;return n.value=r,n}});function nh(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}s(nh,"handleOptionalResult");var Br=y("$ZodOptional",(e,t)=>{H.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Y(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Y(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${kn(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(t.innerType._zod.optin==="optional"){let r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>nh(i,n.value)):nh(r,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,o)}}),Ka=y("$ZodExactOptional",(e,t)=>{Br.init(e,t),Y(e._zod,"values",()=>t.innerType._zod.values),Y(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,o)=>t.innerType._zod.run(n,o)}),oo=y("$ZodNullable",(e,t)=>{H.init(e,t),Y(e._zod,"optin",()=>t.innerType._zod.optin),Y(e._zod,"optout",()=>t.innerType._zod.optout),Y(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${kn(n.source)}|null)$`):void 0}),Y(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,o)=>n.value===null?n:t.innerType._zod.run(n,o)}),Xa=y("$ZodDefault",(e,t)=>{H.init(e,t),e._zod.optin="optional",Y(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);if(n.value===void 0)return n.value=t.defaultValue,n;let r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>oh(i,t)):oh(r,t)}});function oh(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}s(oh,"handleDefaultResult");var Ya=y("$ZodPrefault",(e,t)=>{H.init(e,t),e._zod.optin="optional",Y(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>(o.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,o))}),Qa=y("$ZodNonOptional",(e,t)=>{H.init(e,t),Y(e._zod,"values",()=>{let n=t.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,o)=>{let r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>ih(i,e)):ih(r,e)}});function ih(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}s(ih,"handleNonOptionalResult");var es=y("$ZodSuccess",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new zt("ZodSuccess");let r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>(n.value=i.issues.length===0,n)):(n.value=r.issues.length===0,n)}}),ts=y("$ZodCatch",(e,t)=>{H.init(e,t),Y(e._zod,"optin",()=>t.innerType._zod.optin),Y(e._zod,"optout",()=>t.innerType._zod.optout),Y(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);let r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(a=>Je(a,o,xe()))},input:n.value}),n.issues=[]),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(i=>Je(i,o,xe()))},input:n.value}),n.issues=[]),n)}}),rs=y("$ZodNaN",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),io=y("$ZodPipe",(e,t)=>{H.init(e,t),Y(e._zod,"values",()=>t.in._zod.values),Y(e._zod,"optin",()=>t.in._zod.optin),Y(e._zod,"optout",()=>t.out._zod.optout),Y(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,o)=>{if(o.direction==="backward"){let i=t.out._zod.run(n,o);return i instanceof Promise?i.then(a=>ga(a,t.in,o)):ga(i,t.in,o)}let r=t.in._zod.run(n,o);return r instanceof Promise?r.then(i=>ga(i,t.out,o)):ga(r,t.out,o)}});function ga(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}s(ga,"handlePipeResult");var Vr=y("$ZodCodec",(e,t)=>{H.init(e,t),Y(e._zod,"values",()=>t.in._zod.values),Y(e._zod,"optin",()=>t.in._zod.optin),Y(e._zod,"optout",()=>t.out._zod.optout),Y(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,o)=>{if((o.direction||"forward")==="forward"){let i=t.in._zod.run(n,o);return i instanceof Promise?i.then(a=>ha(a,t,o)):ha(i,t,o)}else{let i=t.out._zod.run(n,o);return i instanceof Promise?i.then(a=>ha(a,t,o)):ha(i,t,o)}}});function ha(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let r=t.transform(e.value,e);return r instanceof Promise?r.then(i=>ya(e,i,t.out,n)):ya(e,r,t.out,n)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(i=>ya(e,i,t.in,n)):ya(e,r,t.in,n)}}s(ha,"handleCodecAResult");function ya(e,t,n,o){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},o)}s(ya,"handleCodecTxResult");var ns=y("$ZodReadonly",(e,t)=>{H.init(e,t),Y(e._zod,"propValues",()=>t.innerType._zod.propValues),Y(e._zod,"values",()=>t.innerType._zod.values),Y(e._zod,"optin",()=>t.innerType?._zod?.optin),Y(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);let r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(ah):ah(r)}});function ah(e){return e.value=Object.freeze(e.value),e}s(ah,"handleReadonlyResult");var os=y("$ZodTemplateLiteral",(e,t)=>{H.init(e,t);let n=[];for(let o of t.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let r=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=r.startsWith("^")?1:0,a=r.endsWith("$")?r.length-1:r.length;n.push(r.slice(i,a))}else if(o===null||Qc.has(typeof o))n.push(st(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(o,r)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),is=y("$ZodFunction",(e,t)=>(H.init(e,t),e._def=t,e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...o){let r=e._def.input?tr(e._def.input,o):o,i=Reflect.apply(n,this,r);return e._def.output?tr(e._def.output,i):i}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let r=e._def.input?await rr(e._def.input,o):o,i=await Reflect.apply(n,this,r);return e._def.output?await rr(e._def.output,i):i}},e._zod.parse=(n,o)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let o=e.constructor;return Array.isArray(n[0])?new o({type:"function",input:new Qn({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new o({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:n})},e)),as=y("$ZodPromise",(e,t)=>{H.init(e,t),e._zod.parse=(n,o)=>Promise.resolve(n.value).then(r=>t.innerType._zod.run({value:r,issues:[]},o))}),ss=y("$ZodLazy",(e,t)=>{H.init(e,t),Y(e._zod,"innerType",()=>t.getter()),Y(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Y(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Y(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Y(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,o)=>e._zod.innerType._zod.run(n,o)}),ao=y("$ZodCustom",(e,t)=>{fe.init(e,t),H.init(e,t),e._zod.parse=(n,o)=>n,e._zod.check=n=>{let o=n.value,r=t.fn(o);if(r instanceof Promise)return r.then(i=>sh(i,n,o,e));sh(r,n,o,e)}});function sh(e,t,n,o){if(!e){let r={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(r.params=o._zod.def.params),t.issues.push(Or(r))}}s(sh,"handleRefineResult");var Hr={};tt(Hr,{ar:()=>Ql,az:()=>ep,be:()=>tp,bg:()=>rp,ca:()=>np,cs:()=>op,da:()=>ip,de:()=>ap,en:()=>so,eo:()=>sp,es:()=>up,fa:()=>cp,fi:()=>lp,fr:()=>pp,frCA:()=>dp,he:()=>fp,hu:()=>mp,hy:()=>gp,id:()=>hp,is:()=>yp,it:()=>vp,ja:()=>_p,ka:()=>Pp,kh:()=>xp,km:()=>uo,ko:()=>bp,lt:()=>Ep,mk:()=>Tp,ms:()=>Ip,nl:()=>Sp,no:()=>Ap,ota:()=>wp,pl:()=>Op,ps:()=>$p,pt:()=>Rp,ru:()=>zp,sl:()=>kp,sv:()=>Dp,ta:()=>Cp,th:()=>Np,tr:()=>Up,ua:()=>Mp,uk:()=>lo,ur:()=>Lp,uz:()=>jp,vi:()=>Fp,yo:()=>Zp,zhCN:()=>Bp,zhTW:()=>Vp});var ZT=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.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 ${r.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${u}`:`\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 ${i}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${u}`}case"invalid_value":return r.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 ${A(r.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: ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${r.maximum.toString()} ${a.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 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${r.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.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 "${r.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${r.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${r.keys.length>1?"\u0629":""}: ${x(r.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.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 ${r.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}},"error");function Ql(){return{localeError:ZT()}}s(Ql,"default");var HT=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",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"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${r.expected}, daxil olan ${u}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${u}`}case"invalid_value":return r.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${A(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${i}${r.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${i}${r.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${i.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:i.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${i.suffix}" il\u0259 bitm\u0259lidir`:i.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${i.includes}" daxil olmal\u0131d\u0131r`:i.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${i.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${n[i.format]??r.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${r.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${r.keys.length>1?"lar":""}: ${x(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${r.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}},"error");function ep(){return{localeError:HT()}}s(ep,"default");function dh(e,t,n,o){let r=Math.abs(e),i=r%10,a=r%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?n:o}s(dh,"getBelarusianPlural");var qT=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${r.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${u}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${i}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${u}`}case"invalid_value":return r.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 ${A(r.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 ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);if(a){let u=Number(r.maximum),c=dh(u,a.unit.one,a.unit.few,a.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 ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${r.maximum.toString()} ${c}`}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 ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);if(a){let u=Number(r.minimum),c=dh(u,a.unit.one,a.unit.few,a.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 ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${r.minimum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${r.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${x(r.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${r.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 ${r.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}},"error");function tp(){return{localeError:qT()}}s(tp,"default");var GT=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${u}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${u}`}case"invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${A(r.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 ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${r.maximum.toString()} ${a.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 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${r.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;if(i.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 "${i.prefix}"`;if(i.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 "${i.suffix}"`;if(i.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 "${i.includes}"`;if(i.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 ${i.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${r.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u043E\u0432\u0435":""}: ${x(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${r.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 ${r.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}},"error");function rp(){return{localeError:GT()}}s(rp,"default");var WT=s(()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${r.expected}, s'ha rebut ${u}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${u}`}case"invalid_value":return r.values.length===1?`Valor inv\xE0lid: s'esperava ${A(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${x(r.values," o ")}`;case"too_big":{let i=r.inclusive?"com a m\xE0xim":"menys de",a=t(r.origin);return a?`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xE9s ${i} ${r.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(r.origin);return a?`Massa petit: s'esperava que ${r.origin} contingu\xE9s ${i} ${r.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${r.origin} fos ${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\xE0lid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${i.pattern}`:`Format inv\xE0lid per a ${n[i.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${r.divisor}`;case"unrecognized_keys":return`Clau${r.keys.length>1?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${x(r.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${r.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${r.origin}`;default:return"Entrada inv\xE0lida"}}},"error");function np(){return{localeError:WT()}}s(np,"default");var JT=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${r.expected}, obdr\u017Eeno ${u}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${u}`}case"invalid_value":return r.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${A(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${i}${r.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${i}${r.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${i.pattern}`:`Neplatn\xFD form\xE1t ${n[i.format]??r.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${r.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${x(r.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${r.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${r.origin}`;default:return"Neplatn\xFD vstup"}}},"error");function op(){return{localeError:JT()}}s(op,"default");var KT=s(()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldigt input: forventede instanceof ${r.expected}, fik ${u}`:`Ugyldigt input: forventede ${i}, fik ${u}`}case"invalid_value":return r.values.length===1?`Ugyldig v\xE6rdi: forventede ${A(r.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin),u=o[r.origin]??r.origin;return a?`For stor: forventede ${u??"value"} ${a.verb} ${i} ${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${u??"value"} havde ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin),u=o[r.origin]??r.origin;return a?`For lille: forventede ${u} ${a.verb} ${i} ${r.minimum.toString()} ${a.unit}`:`For lille: forventede ${u} havde ${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.format]??r.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${x(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${r.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${r.origin}`;default:return"Ugyldigt input"}}},"error");function ip(){return{localeError:KT()}}s(ip,"default");var XT=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"Zahl",array:"Array"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${r.expected}, erhalten ${u}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${u}`}case"invalid_value":return r.values.length===1?`Ung\xFCltige Eingabe: erwartet ${A(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${i}${r.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${i}${r.maximum.toString()} ist`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Zu klein: erwartet, dass ${r.origin} ${i}${r.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${i}${r.minimum.toString()} ist`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ung\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\xFCltig: ${n[i.format]??r.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case"unrecognized_keys":return`${r.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${x(r.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${r.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${r.origin}`;default:return"Ung\xFCltige Eingabe"}}},"error");function ap(){return{localeError:XT()}}s(ap,"default");var YT=s(()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(r){return e[r]??null}s(t,"getSizing");let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return`Invalid input: expected ${i}, received ${u}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${A(r.values[0])}`:`Invalid option: expected one of ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Too big: expected ${r.origin??"value"} to have ${i}${r.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Too small: expected ${r.origin} to have ${i}${r.minimum.toString()} ${a.unit}`:`Too small: expected ${r.origin} to be ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${n[i.format]??r.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${r.divisor}`;case"unrecognized_keys":return`Unrecognized key${r.keys.length>1?"s":""}: ${x(r.keys,", ")}`;case"invalid_key":return`Invalid key in ${r.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${r.origin}`;default:return"Invalid input"}}},"error");function so(){return{localeError:YT()}}s(so,"default");var QT=s(()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${r.expected}, ricevi\u011Dis ${u}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${u}`}case"invalid_value":return r.values.length===1?`Nevalida enigo: atendi\u011Dis ${A(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Tro malgranda: atendi\u011Dis ke ${r.origin} havu ${i}${r.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${r.origin} estu ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${n[i.format]??r.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${r.divisor}`;case"unrecognized_keys":return`Nekonata${r.keys.length>1?"j":""} \u015Dlosilo${r.keys.length>1?"j":""}: ${x(r.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${r.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${r.origin}`;default:return"Nevalida enigo"}}},"error");function sp(){return{localeError:QT()}}s(sp,"default");var eI=s(()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${r.expected}, recibido ${u}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${u}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: se esperaba ${A(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin),u=o[r.origin]??r.origin;return a?`Demasiado grande: se esperaba que ${u??"valor"} tuviera ${i}${r.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${u??"valor"} fuera ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin),u=o[r.origin]??r.origin;return a?`Demasiado peque\xF1o: se esperaba que ${u} tuviera ${i}${r.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${u} fuera ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${i.pattern}`:`Inv\xE1lido ${n[i.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Llave${r.keys.length>1?"s":""} desconocida${r.keys.length>1?"s":""}: ${x(r.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[r.origin]??r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[r.origin]??r.origin}`;default:return"Entrada inv\xE1lida"}}},"error");function up(){return{localeError:eI()}}s(up,"default");var tI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${r.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${u} \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 ${i} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${u} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return r.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${A(r.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 ${x(r.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:i.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:i.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${i.includes}" \u0628\u0627\u0634\u062F`:i.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${i.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${n[i.format]??r.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 ${r.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${r.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${x(r.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${r.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 ${r.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}},"error");function cp(){return{localeError:tI()}}s(cp,"default");var rI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Virheellinen tyyppi: odotettiin instanceof ${r.expected}, oli ${u}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${u}`}case"invalid_value":return r.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${A(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${i}${r.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${i}${r.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${i.pattern}`:`Virheellinen ${n[i.format]??r.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${r.divisor} monikerta`;case"unrecognized_keys":return`${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${x(r.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"}}},"error");function lp(){return{localeError:rI()}}s(lp,"default");var nI=s(()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"nombre",array:"tableau"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : instanceof ${r.expected} attendu, ${u} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${u} re\xE7u`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : ${A(r.values[0])} attendu`:`Option invalide : une valeur parmi ${x(r.values,"|")} attendue`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Trop grand : ${r.origin??"valeur"} doit ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${r.origin??"valeur"} doit \xEAtre ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Trop petit : ${r.origin} doit ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`Trop petit : ${r.origin} doit \xEAtre ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${i.pattern}`:`${n[i.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${x(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}},"error");function pp(){return{localeError:nI()}}s(pp,"default");var oI=s(()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : attendu instanceof ${r.expected}, re\xE7u ${u}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${u}`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : attendu ${A(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"\u2264":"<",a=t(r.origin);return a?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${i}${r.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?"\u2265":">",a=t(r.origin);return a?`Trop petit : attendu que ${r.origin} ait ${i}${r.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${r.origin} soit ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${n[i.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${x(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}},"error");function dp(){return{localeError:oI()}}s(dp,"default");var iI=s(()=>{let e={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"}},t={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"}},n=s(l=>l?e[l]:void 0,"typeEntry"),o=s(l=>{let d=n(l);return d?d.label:l??e.unknown.label},"typeLabel"),r=s(l=>`\u05D4${o(l)}`,"withDefinite"),i=s(l=>(n(l)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA","verbFor"),a=s(l=>l?t[l]??null:null,"getSizing"),u={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"}},c={nan:"NaN"};return l=>{switch(l.code){case"invalid_type":{let d=l.expected,h=c[d??""]??o(d),m=$(l.input),p=c[m]??e[m]?.label??m;return/^[A-Z]/.test(l.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${l.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${h}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`}case"invalid_value":{if(l.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 ${A(l.values[0])}`;let d=l.values.map(p=>A(p));if(l.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 ${d[0]} \u05D0\u05D5 ${d[1]}`;let h=d[d.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 ${d.slice(0,-1).join(", ")} \u05D0\u05D5 ${h}`}case"too_big":{let d=a(l.origin),h=r(l.origin??"value");if(l.origin==="string")return`${d?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${h} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.maximum.toString()} ${d?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(l.origin==="number"){let g=l.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${l.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${h} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${g}`}if(l.origin==="array"||l.origin==="set"){let g=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",_=l.inclusive?`${l.maximum} ${d?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${l.maximum} ${d?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${h} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${_}`.trim()}let m=l.inclusive?"<=":"<",p=i(l.origin??"value");return d?.unit?`${d.longLabel} \u05DE\u05D3\u05D9: ${h} ${p} ${m}${l.maximum.toString()} ${d.unit}`:`${d?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${h} ${p} ${m}${l.maximum.toString()}`}case"too_small":{let d=a(l.origin),h=r(l.origin??"value");if(l.origin==="string")return`${d?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${h} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.minimum.toString()} ${d?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(l.origin==="number"){let g=l.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${l.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${h} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${g}`}if(l.origin==="array"||l.origin==="set"){let g=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(l.minimum===1&&l.inclusive){let b=(l.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${h} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${b}`}let _=l.inclusive?`${l.minimum} ${d?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${l.minimum} ${d?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${h} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${_}`.trim()}let m=l.inclusive?">=":">",p=i(l.origin??"value");return d?.unit?`${d.shortLabel} \u05DE\u05D3\u05D9: ${h} ${p} ${m}${l.minimum.toString()} ${d.unit}`:`${d?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${h} ${p} ${m}${l.minimum.toString()}`}case"invalid_format":{let d=l;if(d.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${d.prefix}"`;if(d.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${d.suffix}"`;if(d.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${d.includes}"`;if(d.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 ${d.pattern}`;let h=u[d.format],m=h?.label??d.format,g=(h?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${m} \u05DC\u05D0 ${g}`}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 ${l.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${l.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${l.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${x(l.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${r(l.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}},"error");function fp(){return{localeError:iI()}}s(fp,"default");var aI=s(()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${r.expected}, a kapott \xE9rt\xE9k ${u}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${u}`}case"invalid_value":return r.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${A(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xFAl nagy: ${r.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${r.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${r.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} m\xE9rete t\xFAl kicsi ${i}${r.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} t\xFAl kicsi ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\xC9rv\xE9nytelen string: "${i.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:i.format==="ends_with"?`\xC9rv\xE9nytelen string: "${i.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:i.format==="includes"?`\xC9rv\xE9nytelen string: "${i.includes}" \xE9rt\xE9ket kell tartalmaznia`:i.format==="regex"?`\xC9rv\xE9nytelen string: ${i.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${n[i.format]??r.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${r.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${r.keys.length>1?"s":""}: ${x(r.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${r.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${r.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}},"error");function mp(){return{localeError:aI()}}s(mp,"default");function fh(e,t,n){return Math.abs(e)===1?t:n}s(fh,"getArmenianPlural");function Zr(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],n=e[e.length-1];return e+(t.includes(n)?"\u0576":"\u0568")}s(Zr,"withDefiniteArticle");var sI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.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 ${r.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${u}`:`\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 ${i}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${u}`}case"invalid_value":return r.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 ${A(r.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 ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);if(a){let u=Number(r.maximum),c=fh(u,a.unit.one,a.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 ${Zr(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${r.maximum.toString()} ${c}`}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 ${Zr(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);if(a){let u=Number(r.minimum),c=fh(u,a.unit.one,a.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 ${Zr(r.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${r.minimum.toString()} ${c}`}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 ${Zr(r.origin)} \u056C\u056B\u0576\u056B ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${i.prefix}"-\u0578\u057E`:i.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${i.suffix}"-\u0578\u057E`:i.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${i.includes}"`:i.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 ${i.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${n[i.format]??r.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 ${r.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${r.keys.length>1?"\u0576\u0565\u0580":""}. ${x(r.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Zr(r.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 ${Zr(r.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}},"error");function gp(){return{localeError:sI()}}s(gp,"default");var uI=s(()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak valid: diharapkan instanceof ${r.expected}, diterima ${u}`:`Input tidak valid: diharapkan ${i}, diterima ${u}`}case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${A(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${i}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: diharapkan ${r.origin} memiliki ${i}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${n[i.format]??r.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${r.keys.length>1?"s":""}: ${x(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`;default:return"Input tidak valid"}}},"error");function hp(){return{localeError:uI()}}s(hp,"default");var cI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${u} \xFEar sem \xE1 a\xF0 vera instanceof ${r.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${u} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return r.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${A(r.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} hafi ${i}${r.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} s\xE9 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} hafi ${i}${r.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} s\xE9 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${i.prefix}"`:i.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${i.suffix}"`:i.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${n[i.format]??r.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${r.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${r.keys.length>1?"ir lyklar":"ur lykill"}: ${x(r.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${r.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${r.origin}`;default:return"Rangt gildi"}}},"error");function yp(){return{localeError:cI()}}s(yp,"default");var lI=s(()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"numero",array:"vettore"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Input non valido: atteso instanceof ${r.expected}, ricevuto ${u}`:`Input non valido: atteso ${i}, ricevuto ${u}`}case"invalid_value":return r.values.length===1?`Input non valido: atteso ${A(r.values[0])}`:`Opzione non valida: atteso uno tra ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Troppo grande: ${r.origin??"valore"} deve avere ${i}${r.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Troppo piccolo: ${r.origin} deve avere ${i}${r.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${r.origin} deve essere ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Invalid ${n[i.format]??r.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case"unrecognized_keys":return`Chiav${r.keys.length>1?"i":"e"} non riconosciut${r.keys.length>1?"e":"a"}: ${x(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`;default:return"Input non valido"}}},"error");function vp(){return{localeError:lI()}}s(vp,"default");var pI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${r.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${u}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${u}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return r.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${A(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${x(r.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=r.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(r.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${a.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=r.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(r.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${a.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${i.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${n[i.format]??r.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${r.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${r.keys.length>1?"\u7FA4":""}: ${x(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}},"error");function _p(){return{localeError:pI()}}s(_p,"default");var dI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},o={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.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 ${r.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${u}`:`\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 ${i}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${u}`}case"invalid_value":return r.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 ${A(r.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 ${x(r.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\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 ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.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 ${r.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.prefix}"-\u10D8\u10D7`:i.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.suffix}"-\u10D8\u10D7`:i.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${i.includes}"-\u10E1`:i.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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 ${i.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${n[i.format]??r.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 ${r.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${r.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${x(r.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${r.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 ${r.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}},"error");function Pp(){return{localeError:dI()}}s(Pp,"default");var fI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.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 ${r.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${u}`:`\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 ${i} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${u}`}case"invalid_value":return r.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 ${A(r.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 ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${r.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${i} ${r.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${x(r.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 ${r.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 ${r.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}},"error");function uo(){return{localeError:fI()}}s(uo,"default");function xp(){return uo()}s(xp,"default");var mI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${r.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${u}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${u}\uC785\uB2C8\uB2E4`}case"invalid_value":return r.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${A(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${x(r.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",u=t(r.origin),c=u?.unit??"\uC694\uC18C";return u?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${c} ${i}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()} ${i}${a}`}case"too_small":{let i=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",u=t(r.origin),c=u?.unit??"\uC694\uC18C";return u?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${c} ${i}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()} ${i}${a}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:i.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${i.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${n[i.format]??r.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${r.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${x(r.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${r.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${r.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}},"error");function bp(){return{localeError:mI()}}s(bp,"default");var co=s(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalizeFirstCharacter");function mh(e){let t=Math.abs(e),n=t%10,o=t%100;return o>=11&&o<=19||n===0?"many":n===1?"one":"few"}s(mh,"getUnitTypeFromNumber");var gI=s(()=>{let e={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 t(r,i,a,u){let c=e[r]??null;return c===null?c:{unit:c.unit[i],verb:c.verb[u][a?"inclusive":"notInclusive"]}}s(t,"getSizing");let n={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"},o={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Gautas tipas ${u}, o tik\u0117tasi - instanceof ${r.expected}`:`Gautas tipas ${u}, o tik\u0117tasi - ${i}`}case"invalid_value":return r.values.length===1?`Privalo b\u016Bti ${A(r.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${x(r.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[r.origin]??r.origin,a=t(r.origin,mh(Number(r.maximum)),r.inclusive??!1,"smaller");if(a?.verb)return`${co(i??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.maximum.toString()} ${a.unit??"element\u0173"}`;let u=r.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${co(i??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${u} ${r.maximum.toString()} ${a?.unit}`}case"too_small":{let i=o[r.origin]??r.origin,a=t(r.origin,mh(Number(r.minimum)),r.inclusive??!1,"bigger");if(a?.verb)return`${co(i??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.minimum.toString()} ${a.unit??"element\u0173"}`;let u=r.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${co(i??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${u} ${r.minimum.toString()} ${a?.unit}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${n[i.format]??r.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${r.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${r.keys.length>1?"i":"as"} rakt${r.keys.length>1?"ai":"as"}: ${x(r.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=o[r.origin]??r.origin;return`${co(i??r.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}},"error");function Ep(){return{localeError:gI()}}s(Ep,"default");var hI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${r.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${u}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${u}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${A(r.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 ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${r.maximum.toString()} ${a.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 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${r.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`Invalid ${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`${r.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"}: ${x(r.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${r.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 ${r.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}},"error");function Tp(){return{localeError:hI()}}s(Tp,"default");var yI=s(()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"nombor"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak sah: dijangka instanceof ${r.expected}, diterima ${u}`:`Input tidak sah: dijangka ${i}, diterima ${u}`}case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${A(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: dijangka ${r.origin??"nilai"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: dijangka ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${n[i.format]??r.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${x(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`;default:return"Input tidak sah"}}},"error");function Ip(){return{localeError:yI()}}s(Ip,"default");var vI=s(()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"getal"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ongeldige invoer: verwacht instanceof ${r.expected}, ontving ${u}`:`Ongeldige invoer: verwacht ${i}, ontving ${u}`}case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${A(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin),u=r.origin==="date"?"laat":r.origin==="string"?"lang":"groot";return a?`Te ${u}: verwacht dat ${r.origin??"waarde"} ${i}${r.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${u}: verwacht dat ${r.origin??"waarde"} ${i}${r.maximum.toString()} is`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin),u=r.origin==="date"?"vroeg":r.origin==="string"?"kort":"klein";return a?`Te ${u}: verwacht dat ${r.origin} ${i}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${u}: verwacht dat ${r.origin} ${i}${r.minimum.toString()} is`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${n[i.format]??r.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${r.keys.length>1?"s":""}: ${x(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`;default:return"Ongeldige invoer"}}},"error");function Sp(){return{localeError:vI()}}s(Sp,"default");var _I=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"tall",array:"liste"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldig input: forventet instanceof ${r.expected}, fikk ${u}`:`Ugyldig input: forventet ${i}, fikk ${u}`}case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${A(r.values[0])}`:`Ugyldig valg: forventet en av ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${i}${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`For lite(n): forventet ${r.origin} til \xE5 ha ${i}${r.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${r.origin} til \xE5 ha ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.format]??r.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${x(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}},"error");function Ap(){return{localeError:_I()}}s(Ap,"default");var PI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`F\xE2sit giren: umulan instanceof ${r.expected}, al\u0131nan ${u}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${u}`}case"invalid_value":return r.values.length===1?`F\xE2sit giren: umulan ${A(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${i}${r.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${i}${r.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${i}${r.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${i}${r.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=r;return i.format==="starts_with"?`F\xE2sit metin: "${i.prefix}" ile ba\u015Flamal\u0131.`:i.format==="ends_with"?`F\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\xE2sit metin: "${i.includes}" ihtiv\xE2 etmeli.`:i.format==="regex"?`F\xE2sit metin: ${i.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${n[i.format]??r.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${r.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${r.keys.length>1?"s":""}: ${x(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${r.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}},"error");function wp(){return{localeError:PI()}}s(wp,"default");var xI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${r.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${u} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${i} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${u} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return r.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${A(r.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${x(r.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} \u0648\u064A`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:i.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:i.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${i.includes}" \u0648\u0644\u0631\u064A`:i.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${i.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${n[i.format]??r.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${r.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${r.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${x(r.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${r.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 ${r.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}},"error");function $p(){return{localeError:xI()}}s($p,"default");var bI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"liczba",array:"tablica"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${r.expected}, otrzymano ${u}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${u}`}case"invalid_value":return r.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${A(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${r.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${r.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${i.pattern}`:`Nieprawid\u0142ow(y/a/e) ${n[i.format]??r.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${x(r.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${r.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${r.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}},"error");function Op(){return{localeError:bI()}}s(Op,"default");var EI=s(()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Tipo inv\xE1lido: esperado instanceof ${r.expected}, recebido ${u}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${u}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: esperado ${A(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${i}${r.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Muito pequeno: esperado que ${r.origin} tivesse ${i}${r.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${i.prefix}"`:i.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inv\xE1lido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${i.pattern}`:`${n[i.format]??r.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Chave${r.keys.length>1?"s":""} desconhecida${r.keys.length>1?"s":""}: ${x(r.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${r.origin}`;default:return"Campo inv\xE1lido"}}},"error");function Rp(){return{localeError:EI()}}s(Rp,"default");function gh(e,t,n,o){let r=Math.abs(e),i=r%10,a=r%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?n:o}s(gh,"getRussianPlural");var TI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${u}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${u}`}case"invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${A(r.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 ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);if(a){let u=Number(r.maximum),c=gh(u,a.unit.one,a.unit.few,a.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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${r.maximum.toString()} ${c}`}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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);if(a){let u=Number(r.minimum),c=gh(u,a.unit.one,a.unit.few,a.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 ${r.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${r.minimum.toString()} ${c}`}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 ${r.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${r.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0438":""}: ${x(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${r.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 ${r.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}},"error");function zp(){return{localeError:TI()}}s(zp,"default");var II=s(()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${r.expected}, prejeto ${u}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${u}`}case"invalid_value":return r.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${A(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${i}${r.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${r.origin} imelo ${i}${r.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${n[i.format]??r.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${x(r.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${r.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`;default:return"Neveljaven vnos"}}},"error");function kp(){return{localeError:II()}}s(kp,"default");var SI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"antal",array:"lista"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${r.expected}, fick ${u}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${u}`}case"invalid_value":return r.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${A(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${i}${r.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${r.origin??"v\xE4rdet"} att ha ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${i}${r.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${n[i.format]??r.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${x(r.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${r.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${r.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}},"error");function Dp(){return{localeError:SI()}}s(Dp,"default");var AI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.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 ${r.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${u}`:`\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 ${i}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${u}`}case"invalid_value":return r.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 ${A(r.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 ${x(r.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${r.maximum.toString()} ${a.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 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${r.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\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 ${r.origin} ${i}${r.minimum.toString()} ${a.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 ${r.origin} ${i}${r.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${i.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 ${n[i.format]??r.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${r.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${r.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${x(r.keys,", ")}`;case"invalid_key":return`${r.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`${r.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"}}},"error");function Cp(){return{localeError:AI()}}s(Cp,"default");var wI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.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 ${r.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${u}`:`\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 ${i} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${u}`}case"invalid_value":return r.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${A(r.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 ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:i.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 ${i.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${n[i.format]??r.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 ${r.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: ${x(r.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.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 ${r.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}},"error");function Np(){return{localeError:wI()}}s(Np,"default");var $I=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${r.expected}, al\u0131nan ${u}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${u}`}case"invalid_value":return r.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${A(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${i}${r.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${i}${r.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[i.format]??r.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${r.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${r.keys.length>1?"lar":""}: ${x(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${r.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}},"error");function Up(){return{localeError:$I()}}s(Up,"default");var OI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.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 ${r.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${u}`:`\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 ${i}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${u}`}case"invalid_value":return r.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 ${A(r.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 ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${i}${r.maximum.toString()} ${a.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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} \u0431\u0443\u0434\u0435 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0456":""}: ${x(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${r.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 ${r.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}},"error");function lo(){return{localeError:OI()}}s(lo,"default");function Mp(){return lo()}s(Mp,"default");var RI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${r.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${u} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${i} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${u} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return r.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${A(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${x(r.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${r.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u06D2 ${i}${r.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u0627 ${i}${r.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${i.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${n[i.format]??r.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${r.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${r.keys.length>1?"\u0632":""}: ${x(r.keys,"\u060C ")}`;case"invalid_key":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}},"error");function Lp(){return{localeError:RI()}}s(Lp,"default");var zI=s(()=>{let e={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"}};function t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"raqam",array:"massiv"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${r.expected}, qabul qilingan ${u}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${u}`}case"invalid_value":return r.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${A(r.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Juda katta: kutilgan ${r.origin??"qiymat"} ${i}${r.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${r.origin??"qiymat"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Juda kichik: kutilgan ${r.origin} ${i}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto\u2018g\u2018ri satr: "${i.includes}" ni o\u2018z ichiga olishi kerak`:i.format==="regex"?`Noto\u2018g\u2018ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${n[i.format]??r.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${r.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${r.keys.length>1?"lar":""}: ${x(r.keys,", ")}`;case"invalid_key":return`${r.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${r.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}},"error");function jp(){return{localeError:zI()}}s(jp,"default");var kI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${r.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${u}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${u}`}case"invalid_value":return r.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${A(r.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${i.pattern}`:`${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${x(r.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.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 ${r.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}},"error");function Fp(){return{localeError:kI()}}s(Fp,"default");var DI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${r.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${u}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${u}`}case"invalid_value":return r.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${A(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${i}${r.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${i}${r.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.prefix}" \u5F00\u5934`:i.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.suffix}" \u7ED3\u5C3E`:i.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${i.pattern}`:`\u65E0\u6548${n[i.format]??r.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${r.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${x(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${r.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}},"error");function Bp(){return{localeError:DI()}}s(Bp,"default");var CI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${r.expected}\uFF0C\u4F46\u6536\u5230 ${u}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${u}`}case"invalid_value":return r.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${A(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${i}${r.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${i}${r.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.prefix}" \u958B\u982D`:i.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.suffix}" \u7D50\u5C3E`:i.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${i.pattern}`:`\u7121\u6548\u7684 ${n[i.format]??r.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${r.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${r.keys.length>1?"\u5011":""}\uFF1A${x(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}},"error");function Vp(){return{localeError:CI()}}s(Vp,"default");var NI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let n={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"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=$(r.input),u=o[a]??a;return/^[A-Z]/.test(r.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${r.expected}, \xE0m\u1ECD\u0300 a r\xED ${u}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${u}`}case"invalid_value":return r.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${A(r.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin??"iye"} ${a.verb} ${i}${r.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${r.maximum}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin} ${a.verb} ${i}${r.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${r.minimum}`}case"invalid_format":{let i=r;return i.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 "${i.prefix}"`:i.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${i.suffix}"`:i.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${i.includes}"`:i.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${i.pattern}`:`A\u1E63\xEC\u1E63e: ${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${x(r.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${r.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 ${r.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}},"error");function Zp(){return{localeError:NI()}}s(Zp,"default");var hh,cs=Symbol("ZodOutput"),ls=Symbol("ZodInput"),us=class{static{s(this,"$ZodRegistry")}constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let o=n[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){let n=t._zod.parent;if(n){let o={...this.get(n)??{}};delete o.id;let r={...o,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function po(){return new us}s(po,"registry");(hh=globalThis).__zod_globalRegistry??(hh.__zod_globalRegistry=po());var Ce=globalThis.__zod_globalRegistry;function fo(e,t){return new e({type:"string",...I(t)})}s(fo,"_string");function mo(e,t){return new e({type:"string",coerce:!0,...I(t)})}s(mo,"_coercedString");function go(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...I(t)})}s(go,"_email");function qr(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...I(t)})}s(qr,"_guid");function ho(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...I(t)})}s(ho,"_uuid");function yo(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...I(t)})}s(yo,"_uuidv4");function vo(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...I(t)})}s(vo,"_uuidv6");function _o(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...I(t)})}s(_o,"_uuidv7");function ar(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...I(t)})}s(ar,"_url");function Po(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...I(t)})}s(Po,"_emoji");function xo(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...I(t)})}s(xo,"_nanoid");function bo(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...I(t)})}s(bo,"_cuid");function Eo(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...I(t)})}s(Eo,"_cuid2");function To(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...I(t)})}s(To,"_ulid");function Io(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...I(t)})}s(Io,"_xid");function So(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...I(t)})}s(So,"_ksuid");function Ao(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...I(t)})}s(Ao,"_ipv4");function wo(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...I(t)})}s(wo,"_ipv6");function ps(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...I(t)})}s(ps,"_mac");function $o(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...I(t)})}s($o,"_cidrv4");function Oo(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...I(t)})}s(Oo,"_cidrv6");function Ro(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...I(t)})}s(Ro,"_base64");function zo(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...I(t)})}s(zo,"_base64url");function ko(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...I(t)})}s(ko,"_e164");function Do(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...I(t)})}s(Do,"_jwt");var ds={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Co(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...I(t)})}s(Co,"_isoDateTime");function No(e,t){return new e({type:"string",format:"date",check:"string_format",...I(t)})}s(No,"_isoDate");function Uo(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...I(t)})}s(Uo,"_isoTime");function Mo(e,t){return new e({type:"string",format:"duration",check:"string_format",...I(t)})}s(Mo,"_isoDuration");function Lo(e,t){return new e({type:"number",checks:[],...I(t)})}s(Lo,"_number");function jo(e,t){return new e({type:"number",coerce:!0,checks:[],...I(t)})}s(jo,"_coercedNumber");function Fo(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...I(t)})}s(Fo,"_int");function fs(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...I(t)})}s(fs,"_float32");function ms(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...I(t)})}s(ms,"_float64");function gs(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...I(t)})}s(gs,"_int32");function hs(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...I(t)})}s(hs,"_uint32");function Bo(e,t){return new e({type:"boolean",...I(t)})}s(Bo,"_boolean");function Vo(e,t){return new e({type:"boolean",coerce:!0,...I(t)})}s(Vo,"_coercedBoolean");function ys(e,t){return new e({type:"bigint",...I(t)})}s(ys,"_bigint");function Zo(e,t){return new e({type:"bigint",coerce:!0,...I(t)})}s(Zo,"_coercedBigint");function vs(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...I(t)})}s(vs,"_int64");function _s(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...I(t)})}s(_s,"_uint64");function Ps(e,t){return new e({type:"symbol",...I(t)})}s(Ps,"_symbol");function xs(e,t){return new e({type:"undefined",...I(t)})}s(xs,"_undefined");function bs(e,t){return new e({type:"null",...I(t)})}s(bs,"_null");function Ho(e){return new e({type:"any"})}s(Ho,"_any");function qo(e){return new e({type:"unknown"})}s(qo,"_unknown");function Es(e,t){return new e({type:"never",...I(t)})}s(Es,"_never");function Go(e,t){return new e({type:"void",...I(t)})}s(Go,"_void");function Ts(e,t){return new e({type:"date",...I(t)})}s(Ts,"_date");function Wo(e,t){return new e({type:"date",coerce:!0,...I(t)})}s(Wo,"_coercedDate");function Is(e,t){return new e({type:"nan",...I(t)})}s(Is,"_nan");function ft(e,t){return new da({check:"less_than",...I(t),value:e,inclusive:!1})}s(ft,"_lt");function Ve(e,t){return new da({check:"less_than",...I(t),value:e,inclusive:!0})}s(Ve,"_lte");function mt(e,t){return new fa({check:"greater_than",...I(t),value:e,inclusive:!1})}s(mt,"_gt");function Re(e,t){return new fa({check:"greater_than",...I(t),value:e,inclusive:!0})}s(Re,"_gte");function Jo(e){return mt(0,e)}s(Jo,"_positive");function Ko(e){return ft(0,e)}s(Ko,"_negative");function Xo(e){return Ve(0,e)}s(Xo,"_nonpositive");function Yo(e){return Re(0,e)}s(Yo,"_nonnegative");function xt(e,t){return new Rl({check:"multiple_of",...I(t),value:e})}s(xt,"_multipleOf");function bt(e,t){return new Dl({check:"max_size",...I(t),maximum:e})}s(bt,"_maxSize");function gt(e,t){return new Cl({check:"min_size",...I(t),minimum:e})}s(gt,"_minSize");function Ut(e,t){return new Nl({check:"size_equals",...I(t),size:e})}s(Ut,"_size");function Mt(e,t){return new Ul({check:"max_length",...I(t),maximum:e})}s(Mt,"_maxLength");function $e(e,t){return new Ml({check:"min_length",...I(t),minimum:e})}s($e,"_minLength");function Lt(e,t){return new Ll({check:"length_equals",...I(t),length:e})}s(Lt,"_length");function Me(e,t){return new jl({check:"string_format",format:"regex",...I(t),pattern:e})}s(Me,"_regex");function sr(e){return new Fl({check:"string_format",format:"lowercase",...I(e)})}s(sr,"_lowercase");function ur(e){return new Bl({check:"string_format",format:"uppercase",...I(e)})}s(ur,"_uppercase");function cr(e,t){return new Vl({check:"string_format",format:"includes",...I(t),includes:e})}s(cr,"_includes");function lr(e,t){return new Zl({check:"string_format",format:"starts_with",...I(t),prefix:e})}s(lr,"_startsWith");function pr(e,t){return new Hl({check:"string_format",format:"ends_with",...I(t),suffix:e})}s(pr,"_endsWith");function Qo(e,t,n){return new ql({check:"property",property:e,schema:t,...I(n)})}s(Qo,"_property");function dr(e,t){return new Gl({check:"mime_type",mime:e,...I(t)})}s(dr,"_mime");function ut(e){return new Wl({check:"overwrite",tx:e})}s(ut,"_overwrite");function fr(e){return ut(t=>t.normalize(e))}s(fr,"_normalize");function mr(){return ut(e=>e.trim())}s(mr,"_trim");function gr(){return ut(e=>e.toLowerCase())}s(gr,"_toLowerCase");function hr(){return ut(e=>e.toUpperCase())}s(hr,"_toUpperCase");function Gr(){return ut(e=>Xc(e))}s(Gr,"_slugify");function Hp(e,t,n){return new e({type:"array",element:t,...I(n)})}s(Hp,"_array");function MI(e,t,n){return new e({type:"union",options:t,...I(n)})}s(MI,"_union");function LI(e,t,n){return new e({type:"union",options:t,inclusive:!1,...I(n)})}s(LI,"_xor");function jI(e,t,n,o){return new e({type:"union",options:n,discriminator:t,...I(o)})}s(jI,"_discriminatedUnion");function FI(e,t,n){return new e({type:"intersection",left:t,right:n})}s(FI,"_intersection");function BI(e,t,n,o){let r=n instanceof H,i=r?o:n,a=r?n:null;return new e({type:"tuple",items:t,rest:a,...I(i)})}s(BI,"_tuple");function VI(e,t,n,o){return new e({type:"record",keyType:t,valueType:n,...I(o)})}s(VI,"_record");function ZI(e,t,n,o){return new e({type:"map",keyType:t,valueType:n,...I(o)})}s(ZI,"_map");function HI(e,t,n){return new e({type:"set",valueType:t,...I(n)})}s(HI,"_set");function qI(e,t,n){let o=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:o,...I(n)})}s(qI,"_enum");function GI(e,t,n){return new e({type:"enum",entries:t,...I(n)})}s(GI,"_nativeEnum");function WI(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...I(n)})}s(WI,"_literal");function Ss(e,t){return new e({type:"file",...I(t)})}s(Ss,"_file");function JI(e,t){return new e({type:"transform",transform:t})}s(JI,"_transform");function KI(e,t){return new e({type:"optional",innerType:t})}s(KI,"_optional");function XI(e,t){return new e({type:"nullable",innerType:t})}s(XI,"_nullable");function YI(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():Qi(n)}})}s(YI,"_default");function QI(e,t,n){return new e({type:"nonoptional",innerType:t,...I(n)})}s(QI,"_nonoptional");function eS(e,t){return new e({type:"success",innerType:t})}s(eS,"_success");function tS(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}s(tS,"_catch");function rS(e,t,n){return new e({type:"pipe",in:t,out:n})}s(rS,"_pipe");function nS(e,t){return new e({type:"readonly",innerType:t})}s(nS,"_readonly");function oS(e,t,n){return new e({type:"template_literal",parts:t,...I(n)})}s(oS,"_templateLiteral");function iS(e,t){return new e({type:"lazy",getter:t})}s(iS,"_lazy");function aS(e,t){return new e({type:"promise",innerType:t})}s(aS,"_promise");function ei(e,t,n){let o=I(n);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}s(ei,"_custom");function ti(e,t,n){return new e({type:"custom",check:"custom",fn:t,...I(n)})}s(ti,"_refine");function As(e){let t=yh(n=>(n.addIssue=o=>{if(typeof o=="string")n.issues.push(Or(o,n.value,t._zod.def));else{let r=o;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=t),r.continue??(r.continue=!t._zod.def.abort),n.issues.push(Or(r))}},e(n.value,n)));return t}s(As,"_superRefine");function yh(e,t){let n=new fe({check:"custom",...I(t)});return n._zod.check=e,n}s(yh,"_check");function ws(e){let t=new fe({check:"describe"});return t._zod.onattach=[n=>{let o=Ce.get(n)??{};Ce.add(n,{...o,description:e})}],t._zod.check=()=>{},t}s(ws,"describe");function $s(e){let t=new fe({check:"meta"});return t._zod.onattach=[n=>{let o=Ce.get(n)??{};Ce.add(n,{...o,...e})}],t._zod.check=()=>{},t}s($s,"meta");function Os(e,t){let n=I(t),o=n.truthy??["true","1","yes","on","y","enabled"],r=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(o=o.map(p=>typeof p=="string"?p.toLowerCase():p),r=r.map(p=>typeof p=="string"?p.toLowerCase():p));let i=new Set(o),a=new Set(r),u=e.Codec??Vr,c=e.Boolean??or,l=e.String??Pt,d=new l({type:"string",error:n.error}),h=new c({type:"boolean",error:n.error}),m=new u({type:"pipe",in:d,out:h,transform:s(((p,g)=>{let _=p;return n.case!=="sensitive"&&(_=_.toLowerCase()),i.has(_)?!0:a.has(_)?!1:(g.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:g.value,inst:m,continue:!1}),{})}),"transform"),reverseTransform:s(((p,g)=>p===!0?o[0]||"true":r[0]||"false"),"reverseTransform"),error:n.error});return m}s(Os,"_stringbool");function yr(e,t,n,o={}){let r=I(o),i={...I(o),check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:u=>n.test(u),...r};return n instanceof RegExp&&(i.pattern=n),new e(i)}s(yr,"_stringFormat");function jt(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Ce,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}s(jt,"initializeContext");function de(e,t,n={path:[],schemaPath:[]}){var o;let r=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);let u=e._zod.toJSONSchema?.();if(u)a.schema=u;else{let d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,d);else{let m=a.schema,p=t.processors[r.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);p(e,t,m,d)}let h=e._zod.parent;h&&(a.ref||(a.ref=h),de(h,t,d),t.seen.get(h).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(a.schema,c),t.io==="input"&&Ze(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}s(de,"process");function Ft(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let a of e.seen.entries()){let u=e.metadataRegistry.get(a[0])?.id;if(u){let c=o.get(u);if(c&&c!==a[0])throw new Error(`Duplicate schema id "${u}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(u,a[0])}}let r=s(a=>{let u=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let h=e.external.registry.get(a[0])?.id,m=e.external.uri??(g=>g);if(h)return{ref:m(h)};let p=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=p,{defId:p,ref:`${m("__shared")}#/${u}/${p}`}}if(a[1]===n)return{ref:"#"};let l=`#/${u}/`,d=a[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:l+d}},"makeURI"),i=s(a=>{if(a[1].schema.$ref)return;let u=a[1],{ref:c,defId:l}=r(a);u.def={...u.schema},l&&(u.defId=l);let d=u.schema;for(let h in d)delete d[h];d.$ref=c},"extractToDef");if(e.cycles==="throw")for(let a of e.seen.entries()){let u=a[1];if(u.cycle)throw new Error(`Cycle detected: #/${u.cycle?.join("/")}/<root>
|
|
43
43
|
|
|
44
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let u=a[1];if(t===a[0]){i(a);continue}if(e.external){let l=e.external.registry.get(a[0])?.id;if(t!==a[0]&&l){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(u.cycle){i(a);continue}if(u.count>1&&e.reused==="ref"){i(a);continue}}}s(Ft,"extractDefs");function Bt(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=s(a=>{let u=e.seen.get(a);if(u.ref===null)return;let c=u.def??u.schema,l={...c},d=u.ref;if(u.ref=null,d){o(d);let h=e.seen.get(d),p=h.schema;if(p.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(p)):Object.assign(c,p),Object.assign(c,l),a._zod.parent===d)for(let _ in c)_==="$ref"||_==="allOf"||_ in l||delete c[_];if(p.$ref&&h.def)for(let _ in c)_==="$ref"||_==="allOf"||_ in h.def&&JSON.stringify(c[_])===JSON.stringify(h.def[_])&&delete c[_]}let g=a._zod.parent;if(g&&g!==d){o(g);let h=e.seen.get(g);if(h?.schema.$ref&&(c.$ref=h.schema.$ref,h.def))for(let p in c)p==="$ref"||p==="allOf"||p in h.def&&JSON.stringify(c[p])===JSON.stringify(h.def[p])&&delete c[p]}e.override({zodSchema:a,jsonSchema:c,path:u.path??[]})},"flattenRef");for(let a of[...e.seen.entries()].reverse())o(a[0]);let r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(a)}Object.assign(r,n.def??n.schema);let i=e.external?.defs??{};for(let a of e.seen.entries()){let u=a[1];u.def&&u.defId&&(i[u.defId]=u.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?r.$defs=i:r.definitions=i);try{let a=JSON.parse(JSON.stringify(r));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:Gr(t,"input",e.processors),output:Gr(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}s(Bt,"finalize");function Ve(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Ve(o.element,n);if(o.type==="set")return Ve(o.valueType,n);if(o.type==="lazy")return Ve(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return Ve(o.innerType,n);if(o.type==="intersection")return Ve(o.left,n)||Ve(o.right,n);if(o.type==="record"||o.type==="map")return Ve(o.keyType,n)||Ve(o.valueType,n);if(o.type==="pipe")return Ve(o.in,n)||Ve(o.out,n);if(o.type==="object"){for(let r in o.shape)if(Ve(o.shape[r],n))return!0;return!1}if(o.type==="union"){for(let r of o.options)if(Ve(r,n))return!0;return!1}if(o.type==="tuple"){for(let r of o.items)if(Ve(r,n))return!0;return!!(o.rest&&Ve(o.rest,n))}return!1}s(Ve,"isTransforming");var Hp=s((e,t={})=>n=>{let o=jt({...n,processors:t});return pe(e,o),Ft(o,e),Bt(o,e)},"createToJSONSchemaMethod"),Gr=s((e,t,n={})=>o=>{let{libraryOptions:r,target:i}=o??{},a=jt({...r??{},target:i,io:t,processors:n});return pe(e,a),Ft(a,e),Bt(a,e)},"createStandardJSONSchemaMethod");var rS={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},qp=s((e,t,n,o)=>{let r=n;r.type="string";let{minimum:i,maximum:a,format:u,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof i=="number"&&(r.minLength=i),typeof a=="number"&&(r.maxLength=a),u&&(r.format=rS[u]??u,r.format===""&&delete r.format,u==="time"&&delete r.format),l&&(r.contentEncoding=l),c&&c.size>0){let d=[...c];d.length===1?r.pattern=d[0].source:d.length>1&&(r.allOf=[...d.map(g=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:g.source}))])}},"stringProcessor"),Gp=s((e,t,n,o)=>{let r=n,{minimum:i,maximum:a,format:u,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:d}=e._zod.bag;typeof u=="string"&&u.includes("int")?r.type="integer":r.type="number",typeof d=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.minimum=d,r.exclusiveMinimum=!0):r.exclusiveMinimum=d),typeof i=="number"&&(r.minimum=i,typeof d=="number"&&t.target!=="draft-04"&&(d>=i?delete r.minimum:delete r.exclusiveMinimum)),typeof l=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.maximum=l,r.exclusiveMaximum=!0):r.exclusiveMaximum=l),typeof a=="number"&&(r.maximum=a,typeof l=="number"&&t.target!=="draft-04"&&(l<=a?delete r.maximum:delete r.exclusiveMaximum)),typeof c=="number"&&(r.multipleOf=c)},"numberProcessor"),Wp=s((e,t,n,o)=>{n.type="boolean"},"booleanProcessor"),Jp=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},"bigintProcessor"),Xp=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},"symbolProcessor"),Kp=s((e,t,n,o)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},"nullProcessor"),Yp=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},"undefinedProcessor"),Qp=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},"voidProcessor"),ed=s((e,t,n,o)=>{n.not={}},"neverProcessor"),td=s((e,t,n,o)=>{},"anyProcessor"),rd=s((e,t,n,o)=>{},"unknownProcessor"),nd=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},"dateProcessor"),od=s((e,t,n,o)=>{let r=e._zod.def,i=zn(r.entries);i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),n.enum=i},"enumProcessor"),id=s((e,t,n,o)=>{let r=e._zod.def,i=[];for(let a of r.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){let a=i[0];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a}else i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),i.every(a=>typeof a=="boolean")&&(n.type="boolean"),i.every(a=>a===null)&&(n.type="null"),n.enum=i},"literalProcessor"),ad=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},"nanProcessor"),sd=s((e,t,n,o)=>{let r=n,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=i.source},"templateLiteralProcessor"),ud=s((e,t,n,o)=>{let r=n,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:u,mime:c}=e._zod.bag;a!==void 0&&(i.minLength=a),u!==void 0&&(i.maxLength=u),c?c.length===1?(i.contentMediaType=c[0],Object.assign(r,i)):(Object.assign(r,i),r.anyOf=c.map(l=>({contentMediaType:l}))):Object.assign(r,i)},"fileProcessor"),cd=s((e,t,n,o)=>{n.type="boolean"},"successProcessor"),ld=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},"customProcessor"),pd=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},"functionProcessor"),dd=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},"transformProcessor"),fd=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},"mapProcessor"),md=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},"setProcessor"),hd=s((e,t,n,o)=>{let r=n,i=e._zod.def,{minimum:a,maximum:u}=e._zod.bag;typeof a=="number"&&(r.minItems=a),typeof u=="number"&&(r.maxItems=u),r.type="array",r.items=pe(i.element,t,{...o,path:[...o.path,"items"]})},"arrayProcessor"),gd=s((e,t,n,o)=>{let r=n,i=e._zod.def;r.type="object",r.properties={};let a=i.shape;for(let l in a)r.properties[l]=pe(a[l],t,{...o,path:[...o.path,"properties",l]});let u=new Set(Object.keys(a)),c=new Set([...u].filter(l=>{let d=i.shape[l]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));c.size>0&&(r.required=Array.from(c)),i.catchall?._zod.def.type==="never"?r.additionalProperties=!1:i.catchall?i.catchall&&(r.additionalProperties=pe(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},"objectProcessor"),zs=s((e,t,n,o)=>{let r=e._zod.def,i=r.inclusive===!1,a=r.options.map((u,c)=>pe(u,t,{...o,path:[...o.path,i?"oneOf":"anyOf",c]}));i?n.oneOf=a:n.anyOf=a},"unionProcessor"),yd=s((e,t,n,o)=>{let r=e._zod.def,i=pe(r.left,t,{...o,path:[...o.path,"allOf",0]}),a=pe(r.right,t,{...o,path:[...o.path,"allOf",1]}),u=s(l=>"allOf"in l&&Object.keys(l).length===1,"isSimpleIntersection"),c=[...u(i)?i.allOf:[i],...u(a)?a.allOf:[a]];n.allOf=c},"intersectionProcessor"),vd=s((e,t,n,o)=>{let r=n,i=e._zod.def;r.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",u=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=i.items.map((h,p)=>pe(h,t,{...o,path:[...o.path,a,p]})),l=i.rest?pe(i.rest,t,{...o,path:[...o.path,u,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=c,l&&(r.items=l)):t.target==="openapi-3.0"?(r.items={anyOf:c},l&&r.items.anyOf.push(l),r.minItems=c.length,l||(r.maxItems=c.length)):(r.items=c,l&&(r.additionalItems=l));let{minimum:d,maximum:g}=e._zod.bag;typeof d=="number"&&(r.minItems=d),typeof g=="number"&&(r.maxItems=g)},"tupleProcessor"),_d=s((e,t,n,o)=>{let r=n,i=e._zod.def;r.type="object";let a=i.keyType,c=a._zod.bag?.patterns;if(i.mode==="loose"&&c&&c.size>0){let d=pe(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});r.patternProperties={};for(let g of c)r.patternProperties[g.source]=d}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=pe(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),r.additionalProperties=pe(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let l=a._zod.values;if(l){let d=[...l].filter(g=>typeof g=="string"||typeof g=="number");d.length>0&&(r.required=d)}},"recordProcessor"),Pd=s((e,t,n,o)=>{let r=e._zod.def,i=pe(r.innerType,t,o),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},"nullableProcessor"),xd=s((e,t,n,o)=>{let r=e._zod.def;pe(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType},"nonoptionalProcessor"),bd=s((e,t,n,o)=>{let r=e._zod.def;pe(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},"defaultProcessor"),Ed=s((e,t,n,o)=>{let r=e._zod.def;pe(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},"prefaultProcessor"),Td=s((e,t,n,o)=>{let r=e._zod.def;pe(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType;let a;try{a=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},"catchProcessor"),Id=s((e,t,n,o)=>{let r=e._zod.def,i=t.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;pe(i,t,o);let a=t.seen.get(e);a.ref=i},"pipeProcessor"),Sd=s((e,t,n,o)=>{let r=e._zod.def;pe(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType,n.readOnly=!0},"readonlyProcessor"),Ad=s((e,t,n,o)=>{let r=e._zod.def;pe(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType},"promiseProcessor"),ks=s((e,t,n,o)=>{let r=e._zod.def;pe(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType},"optionalProcessor"),wd=s((e,t,n,o)=>{let r=e._zod.innerType;pe(r,t,o);let i=t.seen.get(e);i.ref=r},"lazyProcessor"),Rs={string:qp,number:Gp,boolean:Wp,bigint:Jp,symbol:Xp,null:Kp,undefined:Yp,void:Qp,never:ed,any:td,unknown:rd,date:nd,enum:od,literal:id,nan:ad,template_literal:sd,file:ud,success:cd,custom:ld,function:pd,transform:dd,map:fd,set:md,array:hd,object:gd,union:zs,intersection:yd,tuple:vd,record:_d,nullable:Pd,nonoptional:xd,default:bd,prefault:Ed,catch:Td,pipe:Id,readonly:Sd,promise:Ad,optional:ks,lazy:wd};function ri(e,t){if("_idmap"in e){let o=e,r=jt({...t,processors:Rs}),i={};for(let c of o._idmap.entries()){let[l,d]=c;pe(d,r)}let a={},u={registry:o,uri:t?.uri,defs:i};r.external=u;for(let c of o._idmap.entries()){let[l,d]=c;Ft(r,d),a[l]=Bt(r,d)}if(Object.keys(i).length>0){let c=r.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[c]:i}}return{schemas:a}}let n=jt({...t,processors:Rs});return pe(e,n),Ft(n,e),Bt(n,e)}s(ri,"toJSONSchema");var Ds=class{static{s(this,"JSONSchemaGenerator")}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(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=jt({processors:Rs,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return pe(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),Ft(this.ctx,t);let o=Bt(this.ctx,t),{"~standard":r,...i}=o;return i}};var mg={};var Oe=y("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");H.init(e,t),e.def=t,e.type=t.type,e.parse=(n,o)=>tr(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>Cr(e,n,o),e.parseAsync=async(n,o)=>rr(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>Ur(e,n,o),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]},{parent:!0}),e.with=e.check,e.clone=(n,o)=>ke(e,n,o),e.brand=()=>e,e.register=((n,o)=>(n.add(e,o),e)),e.apply=n=>n(e)}),Cs=y("ZodMiniString",(e,t)=>{Pt.init(e,t),Oe.init(e,t)});function f(e){return fo(Cs,e)}s(f,"string");var Wr=y("ZodMiniStringFormat",(e,t)=>{le.init(e,t),Cs.init(e,t)});var iS=y("ZodMiniURL",(e,t)=>{Fn.init(e,t),Wr.init(e,t)});function hg(e){return ar(iS,e)}s(hg,"url");var Ns=y("ZodMiniNumber",(e,t)=>{Lr.init(e,t),Oe.init(e,t)});function Ce(e){return Lo(Ns,e)}s(Ce,"number");var aS=y("ZodMiniNumberFormat",(e,t)=>{qn.init(e,t),Ns.init(e,t)});function gg(e){return Fo(aS,e)}s(gg,"int");var $d=y("ZodMiniBoolean",(e,t)=>{or.init(e,t),Oe.init(e,t)});function se(e){return Bo($d,e)}s(se,"boolean");var yg=y("ZodMiniBigInt",(e,t)=>{jr.init(e,t),Oe.init(e,t)});var sS=y("ZodMiniAny",(e,t)=>{Gn.init(e,t),Oe.init(e,t)});function ni(){return Ho(sS)}s(ni,"any");var uS=y("ZodMiniUnknown",(e,t)=>{Wn.init(e,t),Oe.init(e,t)});function W(){return qo(uS)}s(W,"unknown");var cS=y("ZodMiniVoid",(e,t)=>{Jn.init(e,t),Oe.init(e,t)});function vg(e){return Go(cS,e)}s(vg,"_void");var _g=y("ZodMiniDate",(e,t)=>{Xn.init(e,t),Oe.init(e,t)});var lS=y("ZodMiniArray",(e,t)=>{Kn.init(e,t),Oe.init(e,t)});function Z(e,t){return new lS({type:"array",element:e,...I(t)})}s(Z,"array");var pS=y("ZodMiniObject",(e,t)=>{Za.init(e,t),Oe.init(e,t),K(e,"shape",()=>t.shape)});function v(e,t){let n={type:"object",shape:e??{},...I(t)};return new pS(n)}s(v,"object");var dS=y("ZodMiniUnion",(e,t)=>{ir.init(e,t),Oe.init(e,t)});function Y(e,t){return new dS({type:"union",options:e,...I(t)})}s(Y,"union");var fS=y("ZodMiniDiscriminatedUnion",(e,t)=>{Yn.init(e,t),Oe.init(e,t)});function Vt(e,t,n){return new fS({type:"union",options:t,discriminator:e,...I(n)})}s(Vt,"discriminatedUnion");var mS=y("ZodMiniRecord",(e,t)=>{eo.init(e,t),Oe.init(e,t)});function J(e,t,n){return new mS({type:"record",keyType:e,valueType:t,...I(n)})}s(J,"record");var hS=y("ZodMiniEnum",(e,t)=>{to.init(e,t),Oe.init(e,t),e.options=Object.values(t.entries)});function V(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new hS({type:"enum",entries:n,...I(t)})}s(V,"_enum");var gS=y("ZodMiniLiteral",(e,t)=>{ro.init(e,t),Oe.init(e,t)});function B(e,t){return new gS({type:"literal",values:Array.isArray(e)?e:[e],...I(t)})}s(B,"literal");var yS=y("ZodMiniTransform",(e,t)=>{no.init(e,t),Oe.init(e,t)});function Zt(e){return new yS({type:"transform",transform:e})}s(Zt,"transform");var vS=y("ZodMiniOptional",(e,t)=>{Fr.init(e,t),Oe.init(e,t)});function x(e){return new vS({type:"optional",innerType:e})}s(x,"optional");var _S=y("ZodMiniNullable",(e,t)=>{oo.init(e,t),Oe.init(e,t)});function oi(e){return new _S({type:"nullable",innerType:e})}s(oi,"nullable");var PS=y("ZodMiniPipe",(e,t)=>{io.init(e,t),Oe.init(e,t)});function Ht(e,t){return new PS({type:"pipe",in:e,out:t})}s(Ht,"pipe");var Pg=y("ZodMiniCustom",(e,t)=>{ao.init(e,t),Oe.init(e,t)});function Us(e,t){return ei(Pg,e??(()=>!0),t)}s(Us,"custom");function Od(e,t={}){return ti(Pg,e,t)}s(Od,"refine");var Ms={};tt(Ms,{ZodMiniISODate:()=>zd,ZodMiniISODateTime:()=>Rd,ZodMiniISODuration:()=>Dd,ZodMiniISOTime:()=>kd,date:()=>bS,datetime:()=>xS,duration:()=>TS,time:()=>ES});var Rd=y("ZodMiniISODateTime",(e,t)=>{Bn.init(e,t),Wr.init(e,t)});function xS(e){return Co(Rd,e)}s(xS,"datetime");var zd=y("ZodMiniISODate",(e,t)=>{Vn.init(e,t),Wr.init(e,t)});function bS(e){return No(zd,e)}s(bS,"date");var kd=y("ZodMiniISOTime",(e,t)=>{Zn.init(e,t),Wr.init(e,t)});function ES(e){return Uo(kd,e)}s(ES,"time");var Dd=y("ZodMiniISODuration",(e,t)=>{Hn.init(e,t),Wr.init(e,t)});function TS(e){return Mo(Dd,e)}s(TS,"duration");var ii={};tt(ii,{bigint:()=>wS,boolean:()=>AS,date:()=>$S,number:()=>SS,string:()=>IS});function IS(e){return mo(Cs,e)}s(IS,"string");function SS(e){return jo(Ns,e)}s(SS,"number");function AS(e){return Vo($d,e)}s(AS,"boolean");function wS(e){return Zo(yg,e)}s(wS,"bigint");function $S(e){return Wo(_g,e)}s($S,"date");var Nd=v({retryOnFailure:v({defaultValue:x(se()),hide:x(se())}),continueOnFailure:v({defaultValue:x(se()),hide:x(se())})}),Cd=class{constructor(t,n,o,r,i,a,u,c,l,d,g,h,p){this.name=t;this.displayName=n;this.description=o;this.props=r;this.propertyGroups=i;this.run=a;this.test=u;this.requireAuth=c;this.errorHandlingOptions=l;this.outputSchema=d;this.audience=g;this.aiMetadata=h;this.classification=p}static{s(this,"IAction")}},ce=s(e=>new Cd(e.name,e.displayName,e.description,e.props,e.propertyGroups,e.run,e.test??e.run,e.requireAuth??!0,e.errorHandlingOptions??{continueOnFailure:{defaultValue:!1},retryOnFailure:{defaultValue:!1}},e.outputSchema,e.audience,e.aiMetadata,e.classification),"createAction");var ie=v({displayName:f(),description:x(f()),advanced:x(se()),width:x(V(["half","full"])),icon:x(f()),placeholder:x(f())}),X=s((e,t)=>v({type:B(t),required:se(),defaultValue:x(ni())}),"TPropertyValue");var ot=v({...ie.shape,...X(f(),"SHORT_TEXT").shape}),Et=v({...ie.shape,...X(f(),"LONG_TEXT").shape});var bg=v({label:f(),value:W(),description:x(f()),icon:x(f())}),Ls=v({disabled:x(se()),placeholder:x(f()),options:Z(bg)});var RS=V(["cards"]),it=v({...ie.shape,options:Ls,display:x(RS),...X(W(),"STATIC_DROPDOWN").shape}),Tt=v({...ie.shape,options:Ls,...X(Z(W()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var Ud=v({...ie.shape,...X(W(),"DROPDOWN").shape,refreshers:Z(f())}),ai=v({...ie.shape,...X(Z(W()),"MULTI_SELECT_DROPDOWN").shape,refreshers:Z(f())});var It=v({...ie.shape,reveals:x(Z(f())),...X(se(),"CHECKBOX").shape});var St=v({...ie.shape,display:x(V(["stepper"])),min:x(Ce()),max:x(Ce()),step:x(Ce()),...X(Ce(),"NUMBER").shape});var si=v({...ie.shape,streaming:x(se()),...X(W(),"FILE").shape});var ui=v({...ie.shape,...X(f(),"DATE_TIME").shape});var Eg=J(f(),Y([ot,Et,it,ai,Tt,It,St,si,ui])),ci=v({...ie.shape,properties:Eg,...X(Z(W()),"ARRAY").shape});var Tg=V(["any_time","last_24_hours","last_7_days","last_30_days","last_90_days","this_month","custom"]),Ig=v({preset:x(Tg),after:x(f()),before:x(f())}),Md=v({...ie.shape,display:x(V(["dropdown"])),...X(Ig,"DATE_RANGE").shape});var li=v({...ie.shape,...X(Y([J(f(),W())]),"JSON").shape});var Sg=Y([ot,it,li,ci,Tt]),zS=J(f(),Sg),Ld=v({refreshers:Z(f()),...ie.shape,...X(W(),"DYNAMIC").shape});var js=v({...ie.shape,...X(vg(),"MARKDOWN").shape});var pi=(n=>(n.ARCHIVE="ARCHIVE",n.REGISTRY="REGISTRY",n))(pi||{}),Jr=(n=>(n.CUSTOM="CUSTOM",n.OFFICIAL="OFFICIAL",n))(Jr||{}),Xr=(E=>(E.ARTIFICIAL_INTELLIGENCE="ARTIFICIAL_INTELLIGENCE",E.COMMUNICATION="COMMUNICATION",E.COMMERCE="COMMERCE",E.CORE="CORE",E.UNIVERSAL_AI="UNIVERSAL_AI",E.FLOW_CONTROL="FLOW_CONTROL",E.BUSINESS_INTELLIGENCE="BUSINESS_INTELLIGENCE",E.ACCOUNTING="ACCOUNTING",E.PRODUCTIVITY="PRODUCTIVITY",E.CONTENT_AND_FILES="CONTENT_AND_FILES",E.DEVELOPER_TOOLS="DEVELOPER_TOOLS",E.CUSTOMER_SUPPORT="CUSTOMER_SUPPORT",E.FORMS_AND_SURVEYS="FORMS_AND_SURVEYS",E.HUMAN_RESOURCES="HUMAN_RESOURCES",E.PAYMENT_PROCESSING="PAYMENT_PROCESSING",E.MARKETING="MARKETING",E.SALES_AND_CRM="SALES_AND_CRM",E))(Xr||{});var di=(n=>(n.AUTHORIZATION_CODE="authorization_code",n.CLIENT_CREDENTIALS="client_credentials",n))(di||{}),jd="both_client_credentials_and_authorization_code";var Ze=(r=>(r.POLLING="POLLING",r.WEBHOOK="WEBHOOK",r.APP_WEBHOOK="APP_WEBHOOK",r.MANUAL="MANUAL",r))(Ze||{}),fi=(i=>(i.NONE="NONE",i.HEADER_PRESENT="HEADER_PRESENT",i.QUERY_PRESENT="QUERY_PRESENT",i.BODY_PARAM_PRESENT="BODY_PARAM_PRESENT",i.HEAD_REQUEST="HEAD_REQUEST",i))(fi||{}),kS=v({strategy:V(fi),paramName:x(f())}),mi=(n=>(n.SIMULATION="SIMULATION",n.TEST_FUNCTION="TEST_FUNCTION",n))(mi||{});var Fs=(n=>(n.WEBSOCKET="WEBSOCKET",n.NONE="NONE",n))(Fs||{}),Ag=v({status:x(Ce()),body:x(W()),headers:x(J(f(),f()))}),wg=v({type:B("DELAY"),resumeDateTime:f(),requestIdToReply:x(f()),handlerId:x(f()),streamStepProgress:x(V(Fs))}),$g=v({type:B("WEBHOOK"),requestId:f(),requestIdToReply:x(f()),response:Ag,handlerId:x(f()),streamStepProgress:x(V(Fs))}),DS=Y([wg,$g]);var CS=v({body:W(),rawBody:x(W()),headers:J(f(),f()),queryParams:J(f(),f())});function be(e){return e==null}s(be,"isNil");function hi(e){return e==null?!0:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}s(hi,"isEmpty");function Bs(e,t){if(e==null)throw new Error(`${t} is null or undefined`)}s(Bs,"assertNotNullOrUndefined");function Bd(e){try{return{data:e(),error:null}}catch(t){return{data:null,error:t}}}s(Bd,"tryCatchSync");var Vd=ae(require("crypto"),1);var NS=128,qt,Kr,US=s(e=>{if(e<0)throw new RangeError("Wrong ID size");try{!qt||qt.length<e?(qt=Buffer.allocUnsafe(e*NS),Vd.default.randomFillSync(qt),Kr=0):Kr+e>qt.length&&(Vd.default.randomFillSync(qt),Kr=0)}catch(t){throw qt=void 0,t}Kr+=e},"fillPool"),MS=s(e=>(US(e|=0),qt.subarray(Kr-e,Kr)),"random"),LS=s((e,t,n)=>{let o=(2<<31-Math.clz32(e.length-1|1))-1,r=Math.ceil(1.6*o*t/e.length);return(i=t)=>{if(i<=0)return"";let a="";for(;;){let u=n(r),c=r;for(;c--;)if(a+=e[u[c]&o]||"",a.length===i)return a}}},"customRandom"),Og=s((e,t=21)=>LS(e,t,MS),"customAlphabet");var jS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Rg=21,EU=f().check(Ue(new RegExp(`^[0-9a-zA-Z]{${Rg}}$`))),FS=Og(jS,Rg);var Gt=Ht(Zt(e=>e instanceof Date?e.toISOString():e),f()),ct={id:f(),created:Gt,updated:Gt},Ee=s(e=>x(oi(e)),"Nullable");function Zd(e){return x(oi(V(e)))}s(Zd,"NullableEnum");var SU=Ht(Zt(e=>e==="true"||e===!0?!0:e==="false"||e===!1?!1:void 0),x(se())),AU=x(Ms.datetime({offset:!0}).check(Od(e=>e.slice(0,4)!=="0000"))),Vs=s(e=>Ht(Zt(t=>Array.isArray(t)?t:t!==void 0?[t]:void 0),x(Z(e))),"OptionalArrayFromQuery");var OU=J(f(),W());var Wt=(E=>(E.OPENAI="openai",E.OPENROUTER="openrouter",E.ANTHROPIC="anthropic",E.AZURE="azure",E.GOOGLE="google",E.ACTIVEPIECES="activepieces",E.CLOUDFLARE_GATEWAY="cloudflare-gateway",E.CUSTOM="custom",E.BEDROCK="bedrock",E.VERTEX="vertex",E.MISTRAL="mistral",E.XAI="xai",E.DEEPSEEK="deepseek",E.ZAI="zai",E.QWEN="qwen",E.MINIMAX="minimax",E.MOONSHOT="moonshot",E))(Wt||{});var O={};tt(O,{$brand:()=>On,$input:()=>ls,$output:()=>cs,NEVER:()=>Xi,TimePrecision:()=>ds,ZodAny:()=>hf,ZodArray:()=>_f,ZodBase64:()=>lu,ZodBase64URL:()=>pu,ZodBigInt:()=>on,ZodBigIntFormat:()=>mu,ZodBoolean:()=>nn,ZodCIDRv4:()=>uu,ZodCIDRv6:()=>cu,ZodCUID:()=>tu,ZodCUID2:()=>ru,ZodCatch:()=>Ff,ZodCodec:()=>bu,ZodCustom:()=>Ai,ZodCustomStringFormat:()=>tn,ZodDate:()=>bi,ZodDefault:()=>Cf,ZodDiscriminatedUnion:()=>xf,ZodE164:()=>du,ZodEmail:()=>Ys,ZodEmoji:()=>Qs,ZodEnum:()=>Qr,ZodError:()=>BS,ZodExactOptional:()=>zf,ZodFile:()=>Of,ZodFirstPartyTypeKind:()=>Qf,ZodFunction:()=>Xf,ZodGUID:()=>yi,ZodIPv4:()=>au,ZodIPv6:()=>su,ZodISODate:()=>qs,ZodISODateTime:()=>Hs,ZodISODuration:()=>Ws,ZodISOTime:()=>Gs,ZodIntersection:()=>bf,ZodIssueCode:()=>ZS,ZodJWT:()=>fu,ZodKSUID:()=>iu,ZodLazy:()=>Gf,ZodLiteral:()=>$f,ZodMAC:()=>uf,ZodMap:()=>Af,ZodNaN:()=>Vf,ZodNanoID:()=>eu,ZodNever:()=>yf,ZodNonOptional:()=>Pu,ZodNull:()=>ff,ZodNullable:()=>Df,ZodNumber:()=>rn,ZodNumberFormat:()=>_r,ZodObject:()=>Ti,ZodOptional:()=>_u,ZodPipe:()=>xu,ZodPrefault:()=>Uf,ZodPromise:()=>Jf,ZodReadonly:()=>Zf,ZodRealError:()=>Ye,ZodRecord:()=>Si,ZodSet:()=>wf,ZodString:()=>en,ZodStringFormat:()=>fe,ZodSuccess:()=>jf,ZodSymbol:()=>pf,ZodTemplateLiteral:()=>qf,ZodTransform:()=>Rf,ZodTuple:()=>Tf,ZodType:()=>Q,ZodULID:()=>nu,ZodURL:()=>xi,ZodUUID:()=>yt,ZodUndefined:()=>df,ZodUnion:()=>Ii,ZodUnknown:()=>gf,ZodVoid:()=>vf,ZodXID:()=>ou,ZodXor:()=>Pf,_ZodString:()=>Ks,_default:()=>Nf,_function:()=>My,any:()=>gy,array:()=>Ei,base64:()=>Qg,base64url:()=>ey,bigint:()=>py,boolean:()=>lf,catch:()=>Bf,check:()=>Ly,cidrv4:()=>Kg,cidrv6:()=>Yg,clone:()=>ke,codec:()=>Cy,coerce:()=>em,config:()=>xe,core:()=>nt,cuid:()=>Vg,cuid2:()=>Zg,custom:()=>jy,date:()=>vy,decode:()=>ef,decodeAsync:()=>rf,describe:()=>Fy,discriminatedUnion:()=>Ty,e164:()=>ty,email:()=>kg,emoji:()=>Fg,encode:()=>Qd,encodeAsync:()=>tf,endsWith:()=>pr,enum:()=>yu,exactOptional:()=>kf,file:()=>Ry,flattenError:()=>Or,float32:()=>sy,float64:()=>uy,formatError:()=>Rr,fromJSONSchema:()=>Wy,function:()=>My,getErrorMap:()=>qS,globalRegistry:()=>De,gt:()=>mt,gte:()=>Re,guid:()=>Dg,hash:()=>ay,hex:()=>iy,hostname:()=>oy,httpUrl:()=>jg,includes:()=>cr,instanceof:()=>Vy,int:()=>Xs,int32:()=>cy,int64:()=>dy,intersection:()=>Ef,ipv4:()=>Wg,ipv6:()=>Xg,iso:()=>Yr,json:()=>Hy,jwt:()=>ry,keyof:()=>_y,ksuid:()=>Gg,lazy:()=>Wf,length:()=>Lt,literal:()=>Oy,locales:()=>Zr,looseObject:()=>by,looseRecord:()=>Sy,lowercase:()=>sr,lt:()=>ft,lte:()=>Be,mac:()=>Jg,map:()=>Ay,maxLength:()=>Mt,maxSize:()=>bt,meta:()=>By,mime:()=>dr,minLength:()=>$e,minSize:()=>ht,multipleOf:()=>xt,nan:()=>Dy,nanoid:()=>Bg,nativeEnum:()=>$y,negative:()=>Xo,never:()=>hu,nonnegative:()=>Yo,nonoptional:()=>Lf,nonpositive:()=>Ko,normalize:()=>fr,null:()=>mf,nullable:()=>_i,nullish:()=>zy,number:()=>cf,object:()=>Py,optional:()=>vi,overwrite:()=>ut,parse:()=>Jd,parseAsync:()=>Xd,partialRecord:()=>Iy,pipe:()=>Pi,positive:()=>Jo,prefault:()=>Mf,preprocess:()=>qy,prettifyError:()=>ta,promise:()=>Uy,property:()=>Qo,readonly:()=>Hf,record:()=>Sf,refine:()=>Kf,regex:()=>Ue,regexes:()=>Ke,registry:()=>po,safeDecode:()=>of,safeDecodeAsync:()=>sf,safeEncode:()=>nf,safeEncodeAsync:()=>af,safeParse:()=>Kd,safeParseAsync:()=>Yd,set:()=>wy,setErrorMap:()=>HS,size:()=>Ut,slugify:()=>qr,startsWith:()=>lr,strictObject:()=>xy,string:()=>Js,stringFormat:()=>ny,stringbool:()=>Zy,success:()=>ky,superRefine:()=>Yf,symbol:()=>my,templateLiteral:()=>Ny,toJSONSchema:()=>ri,toLowerCase:()=>hr,toUpperCase:()=>gr,transform:()=>vu,treeifyError:()=>ea,trim:()=>mr,tuple:()=>If,uint32:()=>ly,uint64:()=>fy,ulid:()=>Hg,undefined:()=>hy,union:()=>gu,unknown:()=>vr,uppercase:()=>ur,url:()=>Lg,util:()=>w,uuid:()=>Cg,uuidv4:()=>Ng,uuidv6:()=>Ug,uuidv7:()=>Mg,void:()=>yy,xid:()=>qg,xor:()=>Ey});var gi={};tt(gi,{ZodAny:()=>hf,ZodArray:()=>_f,ZodBase64:()=>lu,ZodBase64URL:()=>pu,ZodBigInt:()=>on,ZodBigIntFormat:()=>mu,ZodBoolean:()=>nn,ZodCIDRv4:()=>uu,ZodCIDRv6:()=>cu,ZodCUID:()=>tu,ZodCUID2:()=>ru,ZodCatch:()=>Ff,ZodCodec:()=>bu,ZodCustom:()=>Ai,ZodCustomStringFormat:()=>tn,ZodDate:()=>bi,ZodDefault:()=>Cf,ZodDiscriminatedUnion:()=>xf,ZodE164:()=>du,ZodEmail:()=>Ys,ZodEmoji:()=>Qs,ZodEnum:()=>Qr,ZodExactOptional:()=>zf,ZodFile:()=>Of,ZodFunction:()=>Xf,ZodGUID:()=>yi,ZodIPv4:()=>au,ZodIPv6:()=>su,ZodIntersection:()=>bf,ZodJWT:()=>fu,ZodKSUID:()=>iu,ZodLazy:()=>Gf,ZodLiteral:()=>$f,ZodMAC:()=>uf,ZodMap:()=>Af,ZodNaN:()=>Vf,ZodNanoID:()=>eu,ZodNever:()=>yf,ZodNonOptional:()=>Pu,ZodNull:()=>ff,ZodNullable:()=>Df,ZodNumber:()=>rn,ZodNumberFormat:()=>_r,ZodObject:()=>Ti,ZodOptional:()=>_u,ZodPipe:()=>xu,ZodPrefault:()=>Uf,ZodPromise:()=>Jf,ZodReadonly:()=>Zf,ZodRecord:()=>Si,ZodSet:()=>wf,ZodString:()=>en,ZodStringFormat:()=>fe,ZodSuccess:()=>jf,ZodSymbol:()=>pf,ZodTemplateLiteral:()=>qf,ZodTransform:()=>Rf,ZodTuple:()=>Tf,ZodType:()=>Q,ZodULID:()=>nu,ZodURL:()=>xi,ZodUUID:()=>yt,ZodUndefined:()=>df,ZodUnion:()=>Ii,ZodUnknown:()=>gf,ZodVoid:()=>vf,ZodXID:()=>ou,ZodXor:()=>Pf,_ZodString:()=>Ks,_default:()=>Nf,_function:()=>My,any:()=>gy,array:()=>Ei,base64:()=>Qg,base64url:()=>ey,bigint:()=>py,boolean:()=>lf,catch:()=>Bf,check:()=>Ly,cidrv4:()=>Kg,cidrv6:()=>Yg,codec:()=>Cy,cuid:()=>Vg,cuid2:()=>Zg,custom:()=>jy,date:()=>vy,describe:()=>Fy,discriminatedUnion:()=>Ty,e164:()=>ty,email:()=>kg,emoji:()=>Fg,enum:()=>yu,exactOptional:()=>kf,file:()=>Ry,float32:()=>sy,float64:()=>uy,function:()=>My,guid:()=>Dg,hash:()=>ay,hex:()=>iy,hostname:()=>oy,httpUrl:()=>jg,instanceof:()=>Vy,int:()=>Xs,int32:()=>cy,int64:()=>dy,intersection:()=>Ef,ipv4:()=>Wg,ipv6:()=>Xg,json:()=>Hy,jwt:()=>ry,keyof:()=>_y,ksuid:()=>Gg,lazy:()=>Wf,literal:()=>Oy,looseObject:()=>by,looseRecord:()=>Sy,mac:()=>Jg,map:()=>Ay,meta:()=>By,nan:()=>Dy,nanoid:()=>Bg,nativeEnum:()=>$y,never:()=>hu,nonoptional:()=>Lf,null:()=>mf,nullable:()=>_i,nullish:()=>zy,number:()=>cf,object:()=>Py,optional:()=>vi,partialRecord:()=>Iy,pipe:()=>Pi,prefault:()=>Mf,preprocess:()=>qy,promise:()=>Uy,readonly:()=>Hf,record:()=>Sf,refine:()=>Kf,set:()=>wy,strictObject:()=>xy,string:()=>Js,stringFormat:()=>ny,stringbool:()=>Zy,success:()=>ky,superRefine:()=>Yf,symbol:()=>my,templateLiteral:()=>Ny,transform:()=>vu,tuple:()=>If,uint32:()=>ly,uint64:()=>fy,ulid:()=>Hg,undefined:()=>hy,union:()=>gu,unknown:()=>vr,url:()=>Lg,uuid:()=>Cg,uuidv4:()=>Ng,uuidv6:()=>Ug,uuidv7:()=>Mg,void:()=>yy,xid:()=>qg,xor:()=>Ey});var Zs={};tt(Zs,{endsWith:()=>pr,gt:()=>mt,gte:()=>Re,includes:()=>cr,length:()=>Lt,lowercase:()=>sr,lt:()=>ft,lte:()=>Be,maxLength:()=>Mt,maxSize:()=>bt,mime:()=>dr,minLength:()=>$e,minSize:()=>ht,multipleOf:()=>xt,negative:()=>Xo,nonnegative:()=>Yo,nonpositive:()=>Ko,normalize:()=>fr,overwrite:()=>ut,positive:()=>Jo,property:()=>Qo,regex:()=>Ue,size:()=>Ut,slugify:()=>qr,startsWith:()=>lr,toLowerCase:()=>hr,toUpperCase:()=>gr,trim:()=>mr,uppercase:()=>ur});var Yr={};tt(Yr,{ZodISODate:()=>qs,ZodISODateTime:()=>Hs,ZodISODuration:()=>Ws,ZodISOTime:()=>Gs,date:()=>qd,datetime:()=>Hd,duration:()=>Wd,time:()=>Gd});var Hs=y("ZodISODateTime",(e,t)=>{Bn.init(e,t),fe.init(e,t)});function Hd(e){return Co(Hs,e)}s(Hd,"datetime");var qs=y("ZodISODate",(e,t)=>{Vn.init(e,t),fe.init(e,t)});function qd(e){return No(qs,e)}s(qd,"date");var Gs=y("ZodISOTime",(e,t)=>{Zn.init(e,t),fe.init(e,t)});function Gd(e){return Uo(Gs,e)}s(Gd,"time");var Ws=y("ZodISODuration",(e,t)=>{Hn.init(e,t),fe.init(e,t)});function Wd(e){return Mo(Ws,e)}s(Wd,"duration");var zg=s((e,t)=>{Un.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:s(n=>Rr(e,n),"value")},flatten:{value:s(n=>Or(e,n),"value")},addIssue:{value:s(n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Ar,2)},"value")},addIssues:{value:s(n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Ar,2)},"value")},isEmpty:{get(){return e.issues.length===0}}})},"initializer"),BS=y("ZodError",zg),Ye=y("ZodError",zg,{Parent:Error});var Jd=zr(Ye),Xd=kr(Ye),Kd=Dr(Ye),Yd=Nr(Ye),Qd=ra(Ye),ef=na(Ye),tf=oa(Ye),rf=ia(Ye),nf=aa(Ye),of=sa(Ye),af=ua(Ye),sf=ca(Ye);var Q=y("ZodType",(e,t)=>(H.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Gr(e,"input"),output:Gr(e,"output")}}),e.toJSONSchema=Hp(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(w.mergeDefs(t,{checks:[...t.checks??[],...n.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0}),e.with=e.check,e.clone=(n,o)=>ke(e,n,o),e.brand=()=>e,e.register=((n,o)=>(n.add(e,o),e)),e.parse=(n,o)=>Jd(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>Kd(e,n,o),e.parseAsync=async(n,o)=>Xd(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>Yd(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>Qd(e,n,o),e.decode=(n,o)=>ef(e,n,o),e.encodeAsync=async(n,o)=>tf(e,n,o),e.decodeAsync=async(n,o)=>rf(e,n,o),e.safeEncode=(n,o)=>nf(e,n,o),e.safeDecode=(n,o)=>of(e,n,o),e.safeEncodeAsync=async(n,o)=>af(e,n,o),e.safeDecodeAsync=async(n,o)=>sf(e,n,o),e.refine=(n,o)=>e.check(Kf(n,o)),e.superRefine=n=>e.check(Yf(n)),e.overwrite=n=>e.check(ut(n)),e.optional=()=>vi(e),e.exactOptional=()=>kf(e),e.nullable=()=>_i(e),e.nullish=()=>vi(_i(e)),e.nonoptional=n=>Lf(e,n),e.array=()=>Ei(e),e.or=n=>gu([e,n]),e.and=n=>Ef(e,n),e.transform=n=>Pi(e,vu(n)),e.default=n=>Nf(e,n),e.prefault=n=>Mf(e,n),e.catch=n=>Bf(e,n),e.pipe=n=>Pi(e,n),e.readonly=()=>Hf(e),e.describe=n=>{let o=e.clone();return De.add(o,{description:n}),o},Object.defineProperty(e,"description",{get(){return De.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return De.get(e);let o=e.clone();return De.add(o,n[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),Ks=y("_ZodString",(e,t)=>{Pt.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(o,r,i)=>qp(e,o,r,i);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...o)=>e.check(Ue(...o)),e.includes=(...o)=>e.check(cr(...o)),e.startsWith=(...o)=>e.check(lr(...o)),e.endsWith=(...o)=>e.check(pr(...o)),e.min=(...o)=>e.check($e(...o)),e.max=(...o)=>e.check(Mt(...o)),e.length=(...o)=>e.check(Lt(...o)),e.nonempty=(...o)=>e.check($e(1,...o)),e.lowercase=o=>e.check(sr(o)),e.uppercase=o=>e.check(ur(o)),e.trim=()=>e.check(mr()),e.normalize=(...o)=>e.check(fr(...o)),e.toLowerCase=()=>e.check(hr()),e.toUpperCase=()=>e.check(gr()),e.slugify=()=>e.check(qr())}),en=y("ZodString",(e,t)=>{Pt.init(e,t),Ks.init(e,t),e.email=n=>e.check(ho(Ys,n)),e.url=n=>e.check(ar(xi,n)),e.jwt=n=>e.check(Do(fu,n)),e.emoji=n=>e.check(Po(Qs,n)),e.guid=n=>e.check(Hr(yi,n)),e.uuid=n=>e.check(go(yt,n)),e.uuidv4=n=>e.check(yo(yt,n)),e.uuidv6=n=>e.check(vo(yt,n)),e.uuidv7=n=>e.check(_o(yt,n)),e.nanoid=n=>e.check(xo(eu,n)),e.guid=n=>e.check(Hr(yi,n)),e.cuid=n=>e.check(bo(tu,n)),e.cuid2=n=>e.check(Eo(ru,n)),e.ulid=n=>e.check(To(nu,n)),e.base64=n=>e.check(Ro(lu,n)),e.base64url=n=>e.check(zo(pu,n)),e.xid=n=>e.check(Io(ou,n)),e.ksuid=n=>e.check(So(iu,n)),e.ipv4=n=>e.check(Ao(au,n)),e.ipv6=n=>e.check(wo(su,n)),e.cidrv4=n=>e.check($o(uu,n)),e.cidrv6=n=>e.check(Oo(cu,n)),e.e164=n=>e.check(ko(du,n)),e.datetime=n=>e.check(Hd(n)),e.date=n=>e.check(qd(n)),e.time=n=>e.check(Gd(n)),e.duration=n=>e.check(Wd(n))});function Js(e){return fo(en,e)}s(Js,"string");var fe=y("ZodStringFormat",(e,t)=>{le.init(e,t),Ks.init(e,t)}),Ys=y("ZodEmail",(e,t)=>{xa.init(e,t),fe.init(e,t)});function kg(e){return ho(Ys,e)}s(kg,"email");var yi=y("ZodGUID",(e,t)=>{_a.init(e,t),fe.init(e,t)});function Dg(e){return Hr(yi,e)}s(Dg,"guid");var yt=y("ZodUUID",(e,t)=>{Pa.init(e,t),fe.init(e,t)});function Cg(e){return go(yt,e)}s(Cg,"uuid");function Ng(e){return yo(yt,e)}s(Ng,"uuidv4");function Ug(e){return vo(yt,e)}s(Ug,"uuidv6");function Mg(e){return _o(yt,e)}s(Mg,"uuidv7");var xi=y("ZodURL",(e,t)=>{Fn.init(e,t),fe.init(e,t)});function Lg(e){return ar(xi,e)}s(Lg,"url");function jg(e){return ar(xi,{protocol:/^https?$/,hostname:Ke.domain,...w.normalizeParams(e)})}s(jg,"httpUrl");var Qs=y("ZodEmoji",(e,t)=>{ba.init(e,t),fe.init(e,t)});function Fg(e){return Po(Qs,e)}s(Fg,"emoji");var eu=y("ZodNanoID",(e,t)=>{Ea.init(e,t),fe.init(e,t)});function Bg(e){return xo(eu,e)}s(Bg,"nanoid");var tu=y("ZodCUID",(e,t)=>{Ta.init(e,t),fe.init(e,t)});function Vg(e){return bo(tu,e)}s(Vg,"cuid");var ru=y("ZodCUID2",(e,t)=>{Ia.init(e,t),fe.init(e,t)});function Zg(e){return Eo(ru,e)}s(Zg,"cuid2");var nu=y("ZodULID",(e,t)=>{Sa.init(e,t),fe.init(e,t)});function Hg(e){return To(nu,e)}s(Hg,"ulid");var ou=y("ZodXID",(e,t)=>{Aa.init(e,t),fe.init(e,t)});function qg(e){return Io(ou,e)}s(qg,"xid");var iu=y("ZodKSUID",(e,t)=>{wa.init(e,t),fe.init(e,t)});function Gg(e){return So(iu,e)}s(Gg,"ksuid");var au=y("ZodIPv4",(e,t)=>{$a.init(e,t),fe.init(e,t)});function Wg(e){return Ao(au,e)}s(Wg,"ipv4");var uf=y("ZodMAC",(e,t)=>{Ra.init(e,t),fe.init(e,t)});function Jg(e){return ps(uf,e)}s(Jg,"mac");var su=y("ZodIPv6",(e,t)=>{Oa.init(e,t),fe.init(e,t)});function Xg(e){return wo(su,e)}s(Xg,"ipv6");var uu=y("ZodCIDRv4",(e,t)=>{za.init(e,t),fe.init(e,t)});function Kg(e){return $o(uu,e)}s(Kg,"cidrv4");var cu=y("ZodCIDRv6",(e,t)=>{ka.init(e,t),fe.init(e,t)});function Yg(e){return Oo(cu,e)}s(Yg,"cidrv6");var lu=y("ZodBase64",(e,t)=>{Da.init(e,t),fe.init(e,t)});function Qg(e){return Ro(lu,e)}s(Qg,"base64");var pu=y("ZodBase64URL",(e,t)=>{Ca.init(e,t),fe.init(e,t)});function ey(e){return zo(pu,e)}s(ey,"base64url");var du=y("ZodE164",(e,t)=>{Na.init(e,t),fe.init(e,t)});function ty(e){return ko(du,e)}s(ty,"e164");var fu=y("ZodJWT",(e,t)=>{Ua.init(e,t),fe.init(e,t)});function ry(e){return Do(fu,e)}s(ry,"jwt");var tn=y("ZodCustomStringFormat",(e,t)=>{Ma.init(e,t),fe.init(e,t)});function ny(e,t,n={}){return yr(tn,e,t,n)}s(ny,"stringFormat");function oy(e){return yr(tn,"hostname",Ke.hostname,e)}s(oy,"hostname");function iy(e){return yr(tn,"hex",Ke.hex,e)}s(iy,"hex");function ay(e,t){let n=t?.enc??"hex",o=`${e}_${n}`,r=Ke[o];if(!r)throw new Error(`Unrecognized hash format: ${o}`);return yr(tn,o,r,t)}s(ay,"hash");var rn=y("ZodNumber",(e,t)=>{Lr.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Gp(e,o,r,i),e.gt=(o,r)=>e.check(mt(o,r)),e.gte=(o,r)=>e.check(Re(o,r)),e.min=(o,r)=>e.check(Re(o,r)),e.lt=(o,r)=>e.check(ft(o,r)),e.lte=(o,r)=>e.check(Be(o,r)),e.max=(o,r)=>e.check(Be(o,r)),e.int=o=>e.check(Xs(o)),e.safe=o=>e.check(Xs(o)),e.positive=o=>e.check(mt(0,o)),e.nonnegative=o=>e.check(Re(0,o)),e.negative=o=>e.check(ft(0,o)),e.nonpositive=o=>e.check(Be(0,o)),e.multipleOf=(o,r)=>e.check(xt(o,r)),e.step=(o,r)=>e.check(xt(o,r)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function cf(e){return Lo(rn,e)}s(cf,"number");var _r=y("ZodNumberFormat",(e,t)=>{qn.init(e,t),rn.init(e,t)});function Xs(e){return Fo(_r,e)}s(Xs,"int");function sy(e){return fs(_r,e)}s(sy,"float32");function uy(e){return ms(_r,e)}s(uy,"float64");function cy(e){return hs(_r,e)}s(cy,"int32");function ly(e){return gs(_r,e)}s(ly,"uint32");var nn=y("ZodBoolean",(e,t)=>{or.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Wp(e,n,o,r)});function lf(e){return Bo(nn,e)}s(lf,"boolean");var on=y("ZodBigInt",(e,t)=>{jr.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Jp(e,o,r,i),e.gte=(o,r)=>e.check(Re(o,r)),e.min=(o,r)=>e.check(Re(o,r)),e.gt=(o,r)=>e.check(mt(o,r)),e.gte=(o,r)=>e.check(Re(o,r)),e.min=(o,r)=>e.check(Re(o,r)),e.lt=(o,r)=>e.check(ft(o,r)),e.lte=(o,r)=>e.check(Be(o,r)),e.max=(o,r)=>e.check(Be(o,r)),e.positive=o=>e.check(mt(BigInt(0),o)),e.negative=o=>e.check(ft(BigInt(0),o)),e.nonpositive=o=>e.check(Be(BigInt(0),o)),e.nonnegative=o=>e.check(Re(BigInt(0),o)),e.multipleOf=(o,r)=>e.check(xt(o,r));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function py(e){return ys(on,e)}s(py,"bigint");var mu=y("ZodBigIntFormat",(e,t)=>{La.init(e,t),on.init(e,t)});function dy(e){return vs(mu,e)}s(dy,"int64");function fy(e){return _s(mu,e)}s(fy,"uint64");var pf=y("ZodSymbol",(e,t)=>{ja.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Xp(e,n,o,r)});function my(e){return Ps(pf,e)}s(my,"symbol");var df=y("ZodUndefined",(e,t)=>{Fa.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Yp(e,n,o,r)});function hy(e){return xs(df,e)}s(hy,"_undefined");var ff=y("ZodNull",(e,t)=>{Ba.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Kp(e,n,o,r)});function mf(e){return bs(ff,e)}s(mf,"_null");var hf=y("ZodAny",(e,t)=>{Gn.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>td(e,n,o,r)});function gy(){return Ho(hf)}s(gy,"any");var gf=y("ZodUnknown",(e,t)=>{Wn.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>rd(e,n,o,r)});function vr(){return qo(gf)}s(vr,"unknown");var yf=y("ZodNever",(e,t)=>{Va.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ed(e,n,o,r)});function hu(e){return Es(yf,e)}s(hu,"never");var vf=y("ZodVoid",(e,t)=>{Jn.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Qp(e,n,o,r)});function yy(e){return Go(vf,e)}s(yy,"_void");var bi=y("ZodDate",(e,t)=>{Xn.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(o,r,i)=>nd(e,o,r,i),e.min=(o,r)=>e.check(Re(o,r)),e.max=(o,r)=>e.check(Be(o,r));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function vy(e){return Ts(bi,e)}s(vy,"date");var _f=y("ZodArray",(e,t)=>{Kn.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>hd(e,n,o,r),e.element=t.element,e.min=(n,o)=>e.check($e(n,o)),e.nonempty=n=>e.check($e(1,n)),e.max=(n,o)=>e.check(Mt(n,o)),e.length=(n,o)=>e.check(Lt(n,o)),e.unwrap=()=>e.element});function Ei(e,t){return Zp(_f,e,t)}s(Ei,"array");function _y(e){let t=e._zod.def.shape;return yu(Object.keys(t))}s(_y,"keyof");var Ti=y("ZodObject",(e,t)=>{Kl.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>gd(e,n,o,r),w.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>yu(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:vr()}),e.loose=()=>e.clone({...e._zod.def,catchall:vr()}),e.strict=()=>e.clone({...e._zod.def,catchall:hu()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>w.extend(e,n),e.safeExtend=n=>w.safeExtend(e,n),e.merge=n=>w.merge(e,n),e.pick=n=>w.pick(e,n),e.omit=n=>w.omit(e,n),e.partial=(...n)=>w.partial(_u,e,n[0]),e.required=(...n)=>w.required(Pu,e,n[0])});function Py(e,t){let n={type:"object",shape:e??{},...w.normalizeParams(t)};return new Ti(n)}s(Py,"object");function xy(e,t){return new Ti({type:"object",shape:e,catchall:hu(),...w.normalizeParams(t)})}s(xy,"strictObject");function by(e,t){return new Ti({type:"object",shape:e,catchall:vr(),...w.normalizeParams(t)})}s(by,"looseObject");var Ii=y("ZodUnion",(e,t)=>{ir.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>zs(e,n,o,r),e.options=t.options});function gu(e,t){return new Ii({type:"union",options:e,...w.normalizeParams(t)})}s(gu,"union");var Pf=y("ZodXor",(e,t)=>{Ii.init(e,t),Ha.init(e,t),e._zod.processJSONSchema=(n,o,r)=>zs(e,n,o,r),e.options=t.options});function Ey(e,t){return new Pf({type:"union",options:e,inclusive:!1,...w.normalizeParams(t)})}s(Ey,"xor");var xf=y("ZodDiscriminatedUnion",(e,t)=>{Ii.init(e,t),Yn.init(e,t)});function Ty(e,t,n){return new xf({type:"union",options:t,discriminator:e,...w.normalizeParams(n)})}s(Ty,"discriminatedUnion");var bf=y("ZodIntersection",(e,t)=>{qa.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>yd(e,n,o,r)});function Ef(e,t){return new bf({type:"intersection",left:e,right:t})}s(Ef,"intersection");var Tf=y("ZodTuple",(e,t)=>{Qn.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>vd(e,n,o,r),e.rest=n=>e.clone({...e._zod.def,rest:n})});function If(e,t,n){let o=t instanceof H,r=o?n:t,i=o?t:null;return new Tf({type:"tuple",items:e,rest:i,...w.normalizeParams(r)})}s(If,"tuple");var Si=y("ZodRecord",(e,t)=>{eo.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>_d(e,n,o,r),e.keyType=t.keyType,e.valueType=t.valueType});function Sf(e,t,n){return new Si({type:"record",keyType:e,valueType:t,...w.normalizeParams(n)})}s(Sf,"record");function Iy(e,t,n){let o=ke(e);return o._zod.values=void 0,new Si({type:"record",keyType:o,valueType:t,...w.normalizeParams(n)})}s(Iy,"partialRecord");function Sy(e,t,n){return new Si({type:"record",keyType:e,valueType:t,mode:"loose",...w.normalizeParams(n)})}s(Sy,"looseRecord");var Af=y("ZodMap",(e,t)=>{Ga.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>fd(e,n,o,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(ht(...n)),e.nonempty=n=>e.check(ht(1,n)),e.max=(...n)=>e.check(bt(...n)),e.size=(...n)=>e.check(Ut(...n))});function Ay(e,t,n){return new Af({type:"map",keyType:e,valueType:t,...w.normalizeParams(n)})}s(Ay,"map");var wf=y("ZodSet",(e,t)=>{Wa.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>md(e,n,o,r),e.min=(...n)=>e.check(ht(...n)),e.nonempty=n=>e.check(ht(1,n)),e.max=(...n)=>e.check(bt(...n)),e.size=(...n)=>e.check(Ut(...n))});function wy(e,t){return new wf({type:"set",valueType:e,...w.normalizeParams(t)})}s(wy,"set");var Qr=y("ZodEnum",(e,t)=>{to.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(o,r,i)=>od(e,o,r,i),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(o,r)=>{let i={};for(let a of o)if(n.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Qr({...t,checks:[],...w.normalizeParams(r),entries:i})},e.exclude=(o,r)=>{let i={...t.entries};for(let a of o)if(n.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new Qr({...t,checks:[],...w.normalizeParams(r),entries:i})}});function yu(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Qr({type:"enum",entries:n,...w.normalizeParams(t)})}s(yu,"_enum");function $y(e,t){return new Qr({type:"enum",entries:e,...w.normalizeParams(t)})}s($y,"nativeEnum");var $f=y("ZodLiteral",(e,t)=>{ro.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>id(e,n,o,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Oy(e,t){return new $f({type:"literal",values:Array.isArray(e)?e:[e],...w.normalizeParams(t)})}s(Oy,"literal");var Of=y("ZodFile",(e,t)=>{Ja.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ud(e,n,o,r),e.min=(n,o)=>e.check(ht(n,o)),e.max=(n,o)=>e.check(bt(n,o)),e.mime=(n,o)=>e.check(dr(Array.isArray(n)?n:[n],o))});function Ry(e){return Ss(Of,e)}s(Ry,"file");var Rf=y("ZodTransform",(e,t)=>{no.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>dd(e,n,o,r),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new zt(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(w.issue(i,n.value,t));else{let a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(w.issue(a))}};let r=t.transform(n.value,n);return r instanceof Promise?r.then(i=>(n.value=i,n)):(n.value=r,n)}});function vu(e){return new Rf({type:"transform",transform:e})}s(vu,"transform");var _u=y("ZodOptional",(e,t)=>{Fr.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ks(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function vi(e){return new _u({type:"optional",innerType:e})}s(vi,"optional");var zf=y("ZodExactOptional",(e,t)=>{Xa.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ks(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function kf(e){return new zf({type:"optional",innerType:e})}s(kf,"exactOptional");var Df=y("ZodNullable",(e,t)=>{oo.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Pd(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function _i(e){return new Df({type:"nullable",innerType:e})}s(_i,"nullable");function zy(e){return vi(_i(e))}s(zy,"nullish");var Cf=y("ZodDefault",(e,t)=>{Ka.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>bd(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Nf(e,t){return new Cf({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():w.shallowClone(t)}})}s(Nf,"_default");var Uf=y("ZodPrefault",(e,t)=>{Ya.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ed(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Mf(e,t){return new Uf({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():w.shallowClone(t)}})}s(Mf,"prefault");var Pu=y("ZodNonOptional",(e,t)=>{Qa.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>xd(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Lf(e,t){return new Pu({type:"nonoptional",innerType:e,...w.normalizeParams(t)})}s(Lf,"nonoptional");var jf=y("ZodSuccess",(e,t)=>{es.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>cd(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function ky(e){return new jf({type:"success",innerType:e})}s(ky,"success");var Ff=y("ZodCatch",(e,t)=>{ts.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Td(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Bf(e,t){return new Ff({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}s(Bf,"_catch");var Vf=y("ZodNaN",(e,t)=>{rs.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ad(e,n,o,r)});function Dy(e){return Is(Vf,e)}s(Dy,"nan");var xu=y("ZodPipe",(e,t)=>{io.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Id(e,n,o,r),e.in=t.in,e.out=t.out});function Pi(e,t){return new xu({type:"pipe",in:e,out:t})}s(Pi,"pipe");var bu=y("ZodCodec",(e,t)=>{xu.init(e,t),Br.init(e,t)});function Cy(e,t,n){return new bu({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}s(Cy,"codec");var Zf=y("ZodReadonly",(e,t)=>{ns.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Sd(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Hf(e){return new Zf({type:"readonly",innerType:e})}s(Hf,"readonly");var qf=y("ZodTemplateLiteral",(e,t)=>{os.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>sd(e,n,o,r)});function Ny(e,t){return new qf({type:"template_literal",parts:e,...w.normalizeParams(t)})}s(Ny,"templateLiteral");var Gf=y("ZodLazy",(e,t)=>{ss.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>wd(e,n,o,r),e.unwrap=()=>e._zod.def.getter()});function Wf(e){return new Gf({type:"lazy",getter:e})}s(Wf,"lazy");var Jf=y("ZodPromise",(e,t)=>{as.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ad(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Uy(e){return new Jf({type:"promise",innerType:e})}s(Uy,"promise");var Xf=y("ZodFunction",(e,t)=>{is.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>pd(e,n,o,r)});function My(e){return new Xf({type:"function",input:Array.isArray(e?.input)?If(e?.input):e?.input??Ei(vr()),output:e?.output??vr()})}s(My,"_function");var Ai=y("ZodCustom",(e,t)=>{ao.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ld(e,n,o,r)});function Ly(e){let t=new de({check:"custom"});return t._zod.check=e,t}s(Ly,"check");function jy(e,t){return ei(Ai,e??(()=>!0),t)}s(jy,"custom");function Kf(e,t={}){return ti(Ai,e,t)}s(Kf,"refine");function Yf(e){return As(e)}s(Yf,"superRefine");var Fy=ws,By=$s;function Vy(e,t={}){let n=new Ai({type:"custom",check:"custom",fn:s(o=>o instanceof e,"fn"),abort:!0,...w.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:n,path:[...n._zod.def.path??[]]})},n}s(Vy,"_instanceof");var Zy=s((...e)=>Os({Codec:bu,Boolean:nn,String:en},...e),"stringbool");function Hy(e){let t=Wf(()=>gu([Js(e),cf(),lf(),mf(),Ei(t),Sf(Js(),t)]));return t}s(Hy,"json");function qy(e,t){return Pi(vu(e),t)}s(qy,"preprocess");var ZS={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 HS(e){xe({customError:e})}s(HS,"setErrorMap");function qS(){return xe().customError}s(qS,"getErrorMap");var Qf;Qf||(Qf={});var z={...gi,...Zs,iso:Yr},GS=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 WS(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}s(WS,"detectVersion");function JS(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let o=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===o){let r=n[1];if(!r||!t.defs[r])throw new Error(`Reference not found: ${e}`);return t.defs[r]}throw new Error(`Reference not found: ${e}`)}s(JS,"resolveRef");function Gy(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return z.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let r=e.$ref;if(t.refs.has(r))return t.refs.get(r);if(t.processing.has(r))return z.lazy(()=>{if(!t.refs.has(r))throw new Error(`Circular reference not resolved: ${r}`);return t.refs.get(r)});t.processing.add(r);let i=JS(r,t),a=je(i,t);return t.refs.set(r,a),t.processing.delete(r),a}if(e.enum!==void 0){let r=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&r.length===1&&r[0]===null)return z.null();if(r.length===0)return z.never();if(r.length===1)return z.literal(r[0]);if(r.every(a=>typeof a=="string"))return z.enum(r);let i=r.map(a=>z.literal(a));return i.length<2?i[0]:z.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return z.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(i=>{let a={...e,type:i};return Gy(a,t)});return r.length===0?z.never():r.length===1?r[0]:z.union(r)}if(!n)return z.any();let o;switch(n){case"string":{let r=z.string();if(e.format){let i=e.format;i==="email"?r=r.check(z.email()):i==="uri"||i==="uri-reference"?r=r.check(z.url()):i==="uuid"||i==="guid"?r=r.check(z.uuid()):i==="date-time"?r=r.check(z.iso.datetime()):i==="date"?r=r.check(z.iso.date()):i==="time"?r=r.check(z.iso.time()):i==="duration"?r=r.check(z.iso.duration()):i==="ipv4"?r=r.check(z.ipv4()):i==="ipv6"?r=r.check(z.ipv6()):i==="mac"?r=r.check(z.mac()):i==="cidr"?r=r.check(z.cidrv4()):i==="cidr-v6"?r=r.check(z.cidrv6()):i==="base64"?r=r.check(z.base64()):i==="base64url"?r=r.check(z.base64url()):i==="e164"?r=r.check(z.e164()):i==="jwt"?r=r.check(z.jwt()):i==="emoji"?r=r.check(z.emoji()):i==="nanoid"?r=r.check(z.nanoid()):i==="cuid"?r=r.check(z.cuid()):i==="cuid2"?r=r.check(z.cuid2()):i==="ulid"?r=r.check(z.ulid()):i==="xid"?r=r.check(z.xid()):i==="ksuid"&&(r=r.check(z.ksuid()))}typeof e.minLength=="number"&&(r=r.min(e.minLength)),typeof e.maxLength=="number"&&(r=r.max(e.maxLength)),e.pattern&&(r=r.regex(new RegExp(e.pattern))),o=r;break}case"number":case"integer":{let r=n==="integer"?z.number().int():z.number();typeof e.minimum=="number"&&(r=r.min(e.minimum)),typeof e.maximum=="number"&&(r=r.max(e.maximum)),typeof e.exclusiveMinimum=="number"?r=r.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(r=r.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?r=r.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(r=r.lt(e.maximum)),typeof e.multipleOf=="number"&&(r=r.multipleOf(e.multipleOf)),o=r;break}case"boolean":{o=z.boolean();break}case"null":{o=z.null();break}case"object":{let r={},i=e.properties||{},a=new Set(e.required||[]);for(let[c,l]of Object.entries(i)){let d=je(l,t);r[c]=a.has(c)?d:d.optional()}if(e.propertyNames){let c=je(e.propertyNames,t),l=e.additionalProperties&&typeof e.additionalProperties=="object"?je(e.additionalProperties,t):z.any();if(Object.keys(r).length===0){o=z.record(c,l);break}let d=z.object(r).passthrough(),g=z.looseRecord(c,l);o=z.intersection(d,g);break}if(e.patternProperties){let c=e.patternProperties,l=Object.keys(c),d=[];for(let h of l){let p=je(c[h],t),m=z.string().regex(new RegExp(h));d.push(z.looseRecord(m,p))}let g=[];if(Object.keys(r).length>0&&g.push(z.object(r).passthrough()),g.push(...d),g.length===0)o=z.object({}).passthrough();else if(g.length===1)o=g[0];else{let h=z.intersection(g[0],g[1]);for(let p=2;p<g.length;p++)h=z.intersection(h,g[p]);o=h}break}let u=z.object(r);e.additionalProperties===!1?o=u.strict():typeof e.additionalProperties=="object"?o=u.catchall(je(e.additionalProperties,t)):o=u.passthrough();break}case"array":{let r=e.prefixItems,i=e.items;if(r&&Array.isArray(r)){let a=r.map(c=>je(c,t)),u=i&&typeof i=="object"&&!Array.isArray(i)?je(i,t):void 0;u?o=z.tuple(a).rest(u):o=z.tuple(a),typeof e.minItems=="number"&&(o=o.check(z.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(z.maxLength(e.maxItems)))}else if(Array.isArray(i)){let a=i.map(c=>je(c,t)),u=e.additionalItems&&typeof e.additionalItems=="object"?je(e.additionalItems,t):void 0;u?o=z.tuple(a).rest(u):o=z.tuple(a),typeof e.minItems=="number"&&(o=o.check(z.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(z.maxLength(e.maxItems)))}else if(i!==void 0){let a=je(i,t),u=z.array(a);typeof e.minItems=="number"&&(u=u.min(e.minItems)),typeof e.maxItems=="number"&&(u=u.max(e.maxItems)),o=u}else o=z.array(z.any());break}default:throw new Error(`Unsupported type: ${n}`)}return e.description&&(o=o.describe(e.description)),e.default!==void 0&&(o=o.default(e.default)),o}s(Gy,"convertBaseSchema");function je(e,t){if(typeof e=="boolean")return e?z.any():z.never();let n=Gy(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let u=e.anyOf.map(l=>je(l,t)),c=z.union(u);n=o?z.intersection(n,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let u=e.oneOf.map(l=>je(l,t)),c=z.xor(u);n=o?z.intersection(n,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=o?n:z.any();else{let u=o?n:je(e.allOf[0],t),c=o?0:1;for(let l=c;l<e.allOf.length;l++)u=z.intersection(u,je(e.allOf[l],t));n=u}e.nullable===!0&&t.version==="openapi-3.0"&&(n=z.nullable(n)),e.readOnly===!0&&(n=z.readonly(n));let r={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let u of i)u in e&&(r[u]=e[u]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let u of a)u in e&&(r[u]=e[u]);for(let u of Object.keys(e))GS.has(u)||(r[u]=e[u]);return Object.keys(r).length>0&&t.registry.add(n,r),n}s(je,"convertSchema");function Wy(e,t){if(typeof e=="boolean")return e?z.any():z.never();let n=WS(e,t?.defaultTarget),o=e.$defs||e.definitions||{},r={version:n,defs:o,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??De};return je(e,r)}s(Wy,"fromJSONSchema");var em={};tt(em,{bigint:()=>QS,boolean:()=>YS,date:()=>eA,number:()=>KS,string:()=>XS});function XS(e){return mo(en,e)}s(XS,"string");function KS(e){return jo(rn,e)}s(KS,"number");function YS(e){return Vo(nn,e)}s(YS,"boolean");function QS(e){return Zo(on,e)}s(QS,"bigint");function eA(e){return Wo(bi,e)}s(eA,"date");xe(so());var tm={required:"required",invalidGitRepoSlug:"invalidGitRepoSlug",invalidGitRepoBranch:"invalidGitRepoBranch",invalidGitRepoRemoteUrl:"invalidGitRepoRemoteUrl",invalidExternalId:"invalidExternalId",invalidFileName:"invalidFileName",messageRequiresContentOrFiles:"messageRequiresContentOrFiles",agentConfigTooLarge:"agentConfigTooLarge",invalidGcpResourceId:"invalidGcpResourceId",duplicateRouteName:"duplicateRouteName",atLeastOne:"atLeastOne",wholeNumber:"wholeNumber",atMostTenThousand:"atMostTenThousand"};var Jy=(n=>(n.IMAGE="image",n.TEXT="text",n))(Jy||{}),He=O.object({apiKey:O.string()}),Xy=O.object({serviceAccountJson:O.string().min(1)}),Ky=He,Yy=He.extend({apiKeyHash:O.string()}),Qy=He,ev=He,tv=He,rv=He,nv=He,ov=He,iv=O.object({accessKeyId:O.string().min(1),secretAccessKey:O.string().min(1),sessionToken:O.string().optional()}),av=He,sv=O.object({}),uv=O.object({}),rm=O.object({modelId:O.string(),modelName:O.string(),modelType:O.enum(Jy)}),cv=O.object({apiKeyHeader:O.string(),baseUrl:O.string(),models:O.array(rm),defaultHeaders:O.record(O.string(),O.string()).optional(),apiStyle:O.enum(["chat","responses"]).optional()}),lv=O.object({accountId:O.string(),gatewayId:O.string(),models:O.array(rm),vertexProject:O.string().optional(),vertexRegion:O.string().optional()}),pv=O.object({resourceName:O.string(),apiVersion:O.preprocess(e=>typeof e=="string"&&e.trim().length===0?void 0:e,O.string().optional())}),dv=O.object({}),fv=O.object({}),mv=O.object({}),hv=O.object({region:O.string().min(1)}),gv=O.object({project:O.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/,tm.invalidGcpResourceId),region:O.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/,tm.invalidGcpResourceId),models:O.array(rm)}),yv=O.object({}),Pr=O.object({}),PM=O.union([Ky,tv,rv,nv,ov,ev,Qy,Yy,iv,Xy,av]),xM=O.union([cv,lv,pv,gv,hv,sv,dv,fv,mv,uv,yv,Pr]),bM=O.discriminatedUnion("provider",[O.object({provider:O.literal("openai"),config:fv.partial(),auth:nv.partial()}),O.object({provider:O.literal("openrouter"),config:mv.partial(),auth:ov.partial()}),O.object({provider:O.literal("anthropic"),config:sv.partial(),auth:Ky.partial()}),O.object({provider:O.literal("azure"),config:pv.partial(),auth:tv.partial()}),O.object({provider:O.literal("google"),config:dv.partial(),auth:rv.partial()}),O.object({provider:O.literal("cloudflare-gateway"),config:lv.partial(),auth:ev.partial()}),O.object({provider:O.literal("custom"),config:cv.partial(),auth:Qy.partial()}),O.object({provider:O.literal("activepieces"),config:uv.partial(),auth:Yy.partial()}),O.object({provider:O.literal("bedrock"),config:hv.partial(),auth:iv.partial()}),O.object({provider:O.literal("vertex"),config:gv.partial(),auth:Xy.partial()}),O.object({provider:O.literal("mistral"),config:yv.partial(),auth:av.partial()}),O.object({provider:O.literal("xai"),config:Pr.partial(),auth:He.partial()}),O.object({provider:O.literal("deepseek"),config:Pr.partial(),auth:He.partial()}),O.object({provider:O.literal("zai"),config:Pr.partial(),auth:He.partial()}),O.object({provider:O.literal("qwen"),config:Pr.partial(),auth:He.partial()}),O.object({provider:O.literal("minimax"),config:Pr.partial(),auth:He.partial()}),O.object({provider:O.literal("moonshot"),config:Pr.partial(),auth:He.partial()})]);var zM=f().check(Ue(/^#[0-9A-Fa-f]{6}$/));var DM=v({filename:f(),data:W(),type:B("file"),mimetype:x(f())});var tA=ae(_v());var FM=v({...ct,name:f(),permissions:Z(f()),platformId:Ee(f()),type:f(),userCount:x(Ce())});var KM=O.enum(["active","out_of_credits","rejected","unreachable"]);var Pv=(o=>(o.AGENT_DECIDE="agent-decide",o.CHOOSE_YOURSELF="choose-yourself",o.LEAVE_EMPTY="leave-empty",o))(Pv||{}),nm=(n=>(n.FILE="FILE",n.TABLE="TABLE",n))(nm||{}),om=(o=>(o.SSE="sse",o.STREAMABLE_HTTP="streamable-http",o.SIMPLE_HTTP="http",o))(om||{});var im=(o=>(o.TEXT="text",o.NUMBER="number",o.BOOLEAN="boolean",o))(im||{});var am=(n=>(n.IN_PROGRESS="in-progress",n.COMPLETED="completed",n))(am||{});var rA=v({mode:V(Pv),value:W()}),nA=v({auth:x(f()),fields:J(f(),rA)}),oA=v({pieceName:f(),pieceVersion:f(),actionName:f(),predefinedInput:x(nA)}),iA=v({type:B("PIECE"),toolName:f().check($e(1)),pieceMetadata:oA}),aA=v({type:B("none")}),sA=v({type:B("access_token"),accessToken:f()}),uA=v({type:B("api_key"),apiKey:f(),apiKeyHeader:f()}),cA=v({type:B("headers"),headers:J(f(),f())}),lA=Vt("type",[aA,sA,uA,cA]),xv=v({type:B("FLOW"),toolName:f().check($e(1)),externalFlowId:f(),flowDisplayName:x(f())}),bv=v({type:B("MCP"),toolName:f().check($e(1)),serverUrl:hg(),protocol:V(om),auth:lA}),Ev=v({type:B("KNOWLEDGE_BASE"),toolName:f().check($e(1)),sourceType:V(nm),sourceId:f(),sourceName:f()}),pA=Vt("type",[iA,xv,bv,Ev]),dA=v({displayName:f(),description:x(f()),type:V(im)}),Tv=v({type:B("MARKDOWN"),markdown:f()}),an={type:B("TOOL_CALL"),input:Ee(J(f(),W())),output:x(W()),toolName:f(),status:V(am),toolCallId:f(),startTime:f(),endTime:x(f())},ML=v(an),Iv=Vt("toolCallType",[v({...an,toolCallType:B("PIECE"),pieceName:f(),pieceVersion:f(),actionName:f()}),v({...an,toolCallType:B("FLOW"),displayName:f(),externalFlowId:f()}),v({...an,toolCallType:B("MCP"),displayName:f(),serverUrl:f()}),v({...an,toolCallType:B("KNOWLEDGE_BASE"),displayName:f(),sourceType:f()}),v({...an,toolCallType:B("UNKNOWN"),displayName:f()})]),fA=Y([Tv,Iv]);var mA=10800*1e3,hA=900*1e3;var um=(n=>(n.IMAGE="image",n.TEXT="text",n))(um||{}),At=v({apiKey:f()}),yA=At,vA=v({apiKey:f(),apiKeyHash:f()}),_A=At,PA=At,xA=At,bA=At,EA=At,TA=At,IA=At,$v=v({serviceAccountJson:f().check($e(1))}),Ov=v({accessKeyId:f().check($e(1)),secretAccessKey:f().check($e(1)),sessionToken:x(f())}),SA=v({}),AA=v({}),wA=v({}),$A=v({}),OA=v({}),RA=v({}),cm=v({modelId:f(),modelName:f(),modelType:V(um)}),Rv=v({apiKeyHeader:f(),baseUrl:f(),models:Z(cm),defaultHeaders:x(J(f(),f())),apiStyle:x(V(["chat","responses"]))}),zv=v({accountId:f(),gatewayId:f(),models:Z(cm),vertexProject:x(f()),vertexRegion:x(f())}),kv=v({resourceName:f(),apiVersion:Ht(Zt(e=>typeof e=="string"&&e.trim().length===0?void 0:e),x(f()))}),Dv=v({region:f().check($e(1))}),Cv=v({project:f().check(Ue(/^[a-z0-9][a-z0-9-]{0,62}$/)),region:f().check(Ue(/^[a-z0-9][a-z0-9-]{0,62}$/)),models:Z(cm)}),Nv=v({}),zA=Y([yA,xA,bA,EA,TA,PA,_A,vA,Ov,$v,IA]),Uv=Y([Rv,zv,kv,Cv,Dv,SA,wA,$A,OA,AA,RA,Nv]),kA=v({id:f(),name:f(),type:V(um)}),DA=v({id:f(),name:f(),provider:V(Wt),config:Uv,enabledForChat:se()}),CA=v({provider:V(Wt),name:f(),enabledForChat:se(),keys:Z(v({id:f(),name:f()}))}),NA=v({provider:V(Wt),configId:f(),config:Uv,auth:zA,platformId:f()});var BL={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"},Sv=["gpt-5.5","gpt-5.4-mini","gpt-5.4-nano","gpt-4.1","gpt-4.1-mini"],UA=["claude-sonnet-4-6","claude-opus-4-7","claude-haiku-4-5"],Mv=["claude-sonnet-4.6","claude-opus-4.7","claude-opus-4.8","claude-haiku-4.5"],sm=["gemini-2.5-pro","gemini-2.5-flash","gemini-3.7-flash","gemini-3.1-pro-preview","gemini-3-flash-preview"],MA=["grok-4.20"],VL=Mv.map(e=>`anthropic/${e}`),LA={openai:Sv,anthropic:UA,google:sm,vertex:sm,activepieces:[...Mv.map(e=>`anthropic/${e}`),...Sv.map(e=>`openai/${e}`),...sm.map(e=>`google/${e}`),...MA.map(e=>`x-ai/${e}`)]};var Av=128e3,jA={openai:128e3,anthropic:2e5,google:1048576,bedrock:2e5,vertex:1048576,azure:128e3,openrouter:128e3,activepieces:2e5,mistral:128e3};function FA({provider:e}){return e?jA[e]??Av:Av}s(FA,"getMaxContextTokens");var wv={openai:"text-embedding-3-small",google:"text-embedding-004",azure:"text-embedding-3-small",activepieces:"text-embedding-3-small",openrouter:"openai/text-embedding-3-small"},BA={anthropic:"native",google:"native",openrouter:"plugin",activepieces:"plugin"},VA=new Set(["anthropic","mistral","xai","deepseek","zai","qwen","minimax","moonshot"]),ZA={xai:"https://api.x.ai/v1",deepseek:"https://api.deepseek.com/v1",zai:"https://api.z.ai/api/paas/v4",qwen:"https://dashscope-intl.aliyuncs.com/compatible-mode/v1",minimax:"https://api.minimax.io/v1",moonshot:"https://api.moonshot.ai/v1"};function Me(e){return{chatModels:LA[e],maxContextTokens:FA({provider:e}),defaultEmbeddingModel:wv[e],supportsEmbedding:wv[e]!==void 0,supportsImageGeneration:!VA.has(e),defaultImageModel:HA[e],webSearch:BA[e]}}s(Me,"buildProviderCapabilities");var Lv=[{id:"fast",label:"Fast",modelId:"google/gemini-3.1-flash-lite-image"},{id:"smart",label:"Expert",modelId:"google/gemini-3.1-flash-image"},{id:"premium",label:"Heavy",modelId:"google/gemini-3-pro-image"}],HA={activepieces:Lv[0].modelId,openrouter:"google/gemini-3.1-flash-lite-image",openai:"gpt-image-1.5",google:"gemini-2.5-flash-image"},qA={openai:Me("openai"),anthropic:Me("anthropic"),openrouter:Me("openrouter"),azure:Me("azure"),google:Me("google"),"cloudflare-gateway":Me("cloudflare-gateway"),custom:Me("custom"),bedrock:Me("bedrock"),vertex:Me("vertex"),mistral:Me("mistral"),activepieces:Me("activepieces"),xai:Me("xai"),deepseek:Me("deepseek"),zai:Me("zai"),qwen:Me("qwen"),minimax:Me("minimax"),moonshot:Me("moonshot")};var GA=v({base64Url:f(),fileName:f(),extension:x(f())}),WA=v({mimeType:f(),url:f(),fileName:x(f())}),lm=Y([GA,WA]);var JA=Y([v({type:B("file"),value:lm}),v({type:B("markdown"),value:f(),files:x(Z(lm))})]),XA=v({sessionId:f(),message:f(),files:x(Z(f()))});var Fv=(n=>(n.ON_NEW_RECORD="ON_NEW_RECORD",n.ON_UPDATE_RECORD="ON_UPDATE_RECORD",n))(Fv||{}),Bv=(n=>(n.ENABLED="ENABLED",n.DISABLED="DISABLED",n))(Bv||{}),pm=(o=>(o.RECORD_CREATED="RECORD_CREATED",o.RECORD_UPDATED="RECORD_UPDATED",o.RECORD_DELETED="RECORD_DELETED",o))(pm||{});var KA=Y([v({...ct,name:f(),externalId:f(),type:B("STATIC_DROPDOWN"),tableId:f(),projectId:f(),data:v({options:Z(v({value:f()}))})}),v({...ct,name:f(),externalId:f(),type:Y([B("TEXT"),B("NUMBER"),B("DATE"),B("DATETIME")]),tableId:f(),projectId:f()})]),YA=v({...ct,name:f(),folderId:Ee(f()),projectId:f(),externalId:f(),status:Zd(Bv),trigger:Zd(Fv)}),QA=v({...ct,tableId:f(),projectId:f(),cells:J(f(),v({updated:f(),created:f(),value:W(),fieldName:f()}))}),ew=v({events:Z(V(pm)),webhookUrl:f(),flowId:f()}),tw=v({fields:Z(v({id:f(),name:f()})),rows:Z(J(f(),f())),name:f()}),rw=v({projectId:f(),limit:x(ii.number()),cursor:x(f()),name:x(f()),externalIds:Vs(f()),folderId:x(f()),folderIds:Vs(f())}),nw=v({records:Z(Z(v({fieldId:f(),value:Zv()}))),tableId:f()}),ow=v({cells:x(Z(v({fieldId:f(),value:Zv()}))),tableId:f(),agentUpdate:x(se())}),Vv=Vt("operator",[xr("eq"),xr("neq"),xr("gt"),xr("gte"),xr("lt"),xr("lte"),xr("co"),jv("exists"),jv("not_exists")]),iw=v({tableId:f(),limit:x(ii.number()),cursor:x(f()),filters:Vs(Vv)});function Zv(){return Ht(Zt(e=>e==null?e:String(e)),oi(f()))}s(Zv,"coerceToString");function xr(e){return v({fieldId:f(),operator:B(e),value:f()})}s(xr,"valueFilter");function jv(e){return v({fieldId:f(),operator:B(e)})}s(jv,"existenceFilter");var aw=v({status:x(Ce()),body:x(W()),headers:x(J(f(),f()))}),sw=v({...ct,deleted:Ee(Gt),ownerId:f(),displayName:f(),platformId:f(),externalId:Ee(f())});var Hv=v({name:f(),description:x(f()),type:f(),required:se()}),uw=v({pieceName:f(),triggerName:f(),input:v({toolName:f(),toolDescription:f(),inputSchema:Z(Hv),returnsResponse:se()})});var qv="^[0-9]+\\.[0-9]+\\.[0-9]+$",uj=new RegExp(qv),lw="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",cj=f().check(Ue(new RegExp(qv))),lj=f().check(Ue(new RegExp(lw))),pw=v({packageType:B("ARCHIVE"),pieceType:V(Jr),pieceName:f(),pieceVersion:f(),archiveId:f(),platformId:f()}),Gv=v({packageType:B("REGISTRY"),pieceType:B("OFFICIAL"),pieceName:f(),pieceVersion:f()}),Wv=v({packageType:B("REGISTRY"),pieceType:B("CUSTOM"),pieceName:f(),pieceVersion:f(),platformId:f()}),pj=Y([Gv,Wv]),dj=Y([pw,Gv,Wv]);var dw=Vt("type",[v({type:B("CRON_EXPRESSION"),cronExpression:f(),timezone:f()}),v({type:B("INTERVAL"),intervalMs:gg().check(Re(6e4))})]),fj=v({...ct,type:V(Ze),projectId:f(),flowId:f(),triggerName:f(),schedule:Ee(dw),flowVersionId:f(),pieceName:f(),pieceVersion:f(),deleted:Ee(f()),simulate:se()}),Jv=(T=>(T.UNKNOWN="UNKNOWN",T.FLOW_RUN_LOG="FLOW_RUN_LOG",T.FLOW_RUN_LOG_SLICE="FLOW_RUN_LOG_SLICE",T.PACKAGE_ARCHIVE="PACKAGE_ARCHIVE",T.FLOW_STEP_FILE="FLOW_STEP_FILE",T.SAMPLE_DATA="SAMPLE_DATA",T.TRIGGER_PAYLOAD="TRIGGER_PAYLOAD",T.SAMPLE_DATA_INPUT="SAMPLE_DATA_INPUT",T.TRIGGER_EVENT_FILE="TRIGGER_EVENT_FILE",T.PROJECT_RELEASE="PROJECT_RELEASE",T.FLOW_VERSION_BACKUP="FLOW_VERSION_BACKUP",T.PLATFORM_ASSET="PLATFORM_ASSET",T.USER_PROFILE_PICTURE="USER_PROFILE_PICTURE",T.WEBHOOK_PAYLOAD="WEBHOOK_PAYLOAD",T.MCP_CALL_PAYLOAD="MCP_CALL_PAYLOAD",T.KNOWLEDGE_BASE="KNOWLEDGE_BASE",T.FLOW_BUNDLE="FLOW_BUNDLE",T.PREWARM_SCOPE="PREWARM_SCOPE",T))(Jv||{}),Xv=(n=>(n.NONE="NONE",n.ZSTD="ZSTD",n))(Xv||{}),Kv=(n=>(n.S3="S3",n.DB="DB",n))(Kv||{}),mj=v({...ct,projectId:Ee(f()),platformId:Ee(f()),type:V(Jv),compression:V(Xv),data:x(W()),location:V(Kv),size:Ee(Ce()),fileName:Ee(f()),s3Key:Ee(f()),metadata:Ee(J(f(),f()))}),Yv=(o=>(o.ADMIN="ADMIN",o.MEMBER="MEMBER",o.OPERATOR="OPERATOR",o))(Yv||{}),Qv=(n=>(n.ACTIVE="ACTIVE",n.INACTIVE="INACTIVE",n))(Qv||{}),hj=v({id:f(),email:f(),firstName:f(),status:V(Qv),externalId:Ee(f()),platformId:Ee(f()),platformRole:V(Yv),lastName:f(),created:Gt,updated:Gt,lastActiveDate:Ee(Gt),imageUrl:Ee(f())});var dm=v({...ie.shape,...X(J(f(),W()),"OBJECT").shape});var fm=v({...ie.shape,formatProperty:x(f()),...X(f(),"RICH_TEXT").shape});var n_=v({...ie.shape,...X(f(),"COLOR").shape});var mm=Y([ot,Et,fm,js,It,it,Tt,Ud,ai,Ld,St,ci,dm,li,ui,Md,si,n_]),R={ShortText(e){return{...e,valueSchema:void 0,type:"SHORT_TEXT"}},Checkbox(e){return{...e,valueSchema:void 0,type:"CHECKBOX"}},LongText(e){return{...e,valueSchema:void 0,type:"LONG_TEXT"}},RichText(e){return{...e,valueSchema:void 0,type:"RICH_TEXT"}},MarkDown(e){return{displayName:"Markdown",required:!1,description:e.value,type:"MARKDOWN",valueSchema:void 0,variant:e.variant??"INFO"}},Number(e){return{...e,valueSchema:void 0,type:"NUMBER"}},Json(e){return{...e,valueSchema:void 0,type:"JSON"}},Array(e){return{...e,valueSchema:void 0,type:"ARRAY"}},Object(e){return{...e,valueSchema:void 0,type:"OBJECT"}},Dropdown(e){return{...e,valueSchema:void 0,type:"DROPDOWN"}},StaticDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_DROPDOWN"}},MultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"MULTI_SELECT_DROPDOWN"}},DynamicProperties(e){return{...e,valueSchema:void 0,type:"DYNAMIC"}},StaticMultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_MULTI_SELECT_DROPDOWN"}},DateTime(e){return{...e,valueSchema:void 0,type:"DATE_TIME"}},DateRange(e){return{...e,valueSchema:void 0,type:"DATE_RANGE"}},File(e){return{...e,valueSchema:void 0,type:"FILE"}},Custom(e){let t=e.code.toString();return{...e,code:t,valueSchema:void 0,type:"CUSTOM"}},Color(e){return{...e,valueSchema:void 0,type:"COLOR"}}};var vt=v({displayName:f(),description:x(f()),hasConnectionIdentifier:x(se())});var o_=v({username:f(),password:f()}),hm=v({...vt.shape,username:v({displayName:f(),description:x(f())}),password:v({displayName:f(),description:x(f())}),...X(o_,"BASIC_AUTH").shape});var gw=J(f(),Y([ot,Et,St,It,it])),gm=v({...vt.shape,props:gw,...X(W(),"CUSTOM_AUTH").shape});var br=v({...vt.shape,...X(v({auth:f()}),"SECRET_TEXT").shape});var yw=J(f(),Y([ot,Et,br,St,It,it,Tt,js])),i_=v({...vt.shape,props:yw,...X(W(),"OIDC").shape});var ym=(n=>(n.HEADER="HEADER",n.BODY="BODY",n))(ym||{}),a_=Y([ot,br,it]),s_=J(f(),a_),vw=v({props:x(J(f(),a_)),authUrl:f(),tokenUrl:f(),scope:Z(f()),prompt:x(Y([B("none"),B("consent"),B("login"),B("omit")])),pkce:x(se()),pkceMethod:x(Y([B("plain"),B("S256")])),authorizationMethod:x(V(ym)),grantType:x(Y([V(di),B(jd)])),extra:x(J(f(),f()))}),u_=v({access_token:f(),props:x(s_),data:J(f(),ni())}),vm=v({...vt.shape,...vw.shape,...X(u_,"OAUTH2").shape});var sn=Y([hm,gm,i_,vm,br]),wi="Connection",_m={SecretText(e){return{...e,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(e){return{...e,valueSchema:void 0,type:"OAUTH2",displayName:e.displayName||wi}},BasicAuth(e){return{...e,valueSchema:void 0,type:"BASIC_AUTH",displayName:e.displayName||wi,required:!0}},CustomAuth(e){return{...e,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:e.displayName||wi}},OIDC(e){return{...e,valueSchema:void 0,type:"OIDC",displayName:e.displayName||wi}},None(){}};var Y1={OAUTH2:"OAUTH2",CLOUD_OAUTH2:"OAUTH2",PLATFORM_OAUTH2:"OAUTH2",BASIC_AUTH:"BASIC_AUTH",CUSTOM_AUTH:"CUSTOM_AUTH",OIDC:"OIDC",SECRET_TEXT:"SECRET_TEXT",NO_AUTH:void 0};var _w=v({...ie.shape,...X(W(),"CUSTOM").shape,code:f()});var Pw=Y([mm,sn]),Pm=J(f(),Pw),v4=J(f(),mm);var c_=Y([v({strategy:B("CRON"),cronExpression:f()}),v({strategy:B("NONE")})]),un=class{constructor(t,n,o,r,i,a,u,c,l,d,g,h,p,m,_,P,E,T,F,oe,me){this.name=t;this.displayName=n;this.description=o;this.requireAuth=r;this.props=i;this.type=a;this.handshakeConfiguration=u;this.onHandshake=c;this.renewConfiguration=l;this.onRenew=d;this.onEnable=g;this.onDisable=h;this.onStart=p;this.run=m;this.test=_;this.sampleData=P;this.testStrategy=E;this.outputSchema=T;this.aiMetadata=F;this.classification=oe;this.propertyGroups=me}static{s(this,"ITrigger")}},Fe=s(e=>{switch(e.type){case"WEBHOOK":return new un(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,e.handshakeConfiguration??{strategy:"NONE"},e.onHandshake??(async()=>({status:200})),e.renewConfiguration??{strategy:"NONE"},e.onRenew??(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,e.test?"TEST_FUNCTION":"SIMULATION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups);case"POLLING":return new un(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,"TEST_FUNCTION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups);case"MANUAL":return new un(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,"TEST_FUNCTION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups);case"APP_WEBHOOK":return new un(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,be(e.sampleData)&&be(e.test)?"SIMULATION":"TEST_FUNCTION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups)}},"createTrigger");var l_="2",Tu="0.82.0";var xm=class{constructor(t,n,o,r,i,a,u,c,l=Tu,d,g="",h){this.displayName=t;this.logoUrl=n;this.authors=o;this.events=r;this.categories=u;this.auth=c;this.minimumSupportedRelease=l;this.maximumSupportedRelease=d;this.description=g;this.deprecated=h;this._actions={};this._triggers={};this.getContextInfo=s(()=>({version:l_}),"getContextInfo");(!bw(l)||Ew(l,Tu))&&(this.minimumSupportedRelease=Tu),i.forEach(p=>this._actions[p.name]=p),a.forEach(p=>this._triggers[p.name]=p)}static{s(this,"Piece")}metadata(){return{displayName:this.displayName,logoUrl:this.logoUrl,actions:this._actions,triggers:this._triggers,categories:this.categories,description:this.description,authors:this.authors,auth:xw(this.auth),minimumSupportedRelease:this.minimumSupportedRelease,maximumSupportedRelease:this.maximumSupportedRelease,deprecated:this.deprecated,contextInfo:this.getContextInfo?.()}}getAction(t){return this._actions[t]}getTrigger(t){return this._triggers[t]}actions(){return this._actions}triggers(){return this._triggers}},d_=s(e=>{if(e.auth&&Array.isArray(e.auth)&&!e.auth.every((n,o,r)=>o===r.findIndex(i=>i.type===n.type)))throw new Error("Auth properties must be unique by type");return new xm(e.displayName,e.logoUrl,e.authors??[],e.events,e.actions,e.triggers,e.categories??[],e.auth,e.minimumSupportedRelease,e.maximumSupportedRelease,e.description,e.deprecated)},"createPiece");function xw(e){if(e!==void 0)return Array.isArray(e)?e.map(p_):p_(e)}s(xw,"withConnectionIdentifierFlag");function p_(e){return{...e,hasConnectionIdentifier:e.getConnectionIdentifier!==void 0}}s(p_,"flagConnectionIdentifier");function bw(e){return/^\d+\.\d+\.\d+$/.test(e)}s(bw,"isValidSimpleSemver");function Ew(e,t){let[n,o,r]=e.split(".").map(Number),[i,a,u]=t.split(".").map(Number);return n!==i?n<i:o!==a?o<a:r<u}s(Ew,"isSemverLessThan");var Tw=x(J(f(),J(f(),f()))),f_=v({id:x(f()),name:f(),displayName:f(),logoUrl:f(),description:f(),authors:Z(f()),platformId:x(f()),directoryPath:x(f()),auth:x(Y([sn,Z(sn)])),version:f(),categories:x(Z(V(Xr))),minimumSupportedRelease:x(f()),maximumSupportedRelease:x(f()),deprecated:x(se()),i18n:Tw}),Iw=V(["human","ai","both"]),m_=v({description:x(f()),idempotent:x(se())}),h_=V(["READ","SEARCH","WRITE","DESTRUCTIVE"]);var Sw=V(["tabs","section","summary","builder","footer"]),g_=v({key:f(),display:Sw,label:x(f()),description:x(f()),icon:x(f()),props:Z(f())}),y_=v({name:f(),displayName:f(),description:f(),props:Pm,propertyGroups:x(Z(g_)),requireAuth:se(),errorHandlingOptions:x(Nd),outputSchema:x(Us()),audience:x(Iw),aiMetadata:x(m_),classification:x(h_)}),v_=v({name:f(),displayName:f(),description:f(),props:Pm,propertyGroups:x(Z(g_)),errorHandlingOptions:x(Nd),type:V(Ze),sampleData:W(),handshakeConfiguration:x(Us()),renewConfiguration:x(c_),testStrategy:V(mi),outputSchema:x(Us()),aiMetadata:x(m_),classification:x(h_)}),Aw=v({...f_.shape,actions:J(f(),y_),triggers:J(f(),v_)}),ww=v({...f_.shape,actions:Ce(),triggers:Ce(),suggestedActions:x(Z(y_)),suggestedTriggers:x(Z(v_))}),__=v({projectUsage:Ce(),pieceType:V(Jr),packageType:V(pi),platformId:x(f()),archiveId:x(f())}),xF=v({...Aw.shape,...__.shape}),bF=v({...ww.shape,...__.shape}),EF=v({name:f(),version:f()});var $w=ae(require("path")),Ow=ae(require("fs/promises"));var cn=require("node:stream");var Iu=class{constructor(t,n){this.baseUrl=t;this.authenticationConverter=n}static{s(this,"BaseHttpClient")}getUrl(t){let n=new URL(`${this.baseUrl}${t.url}`),o=`${n.origin}${n.pathname}`,r=new URLSearchParams;return n.searchParams.forEach((i,a)=>{r.append(a,i)}),{urlWithoutQueryParams:o,queryParams:r}}getHeaders(t){let n={Accept:"application/json"};return t.authentication&&this.populateAuthentication(t.authentication,n),t.body&&(t.headers?.["Content-Type"]==="text/csv"?n["Content-Type"]="text/csv":n["Content-Type"]="application/json"),t.headers&&(n={...n,...t.headers}),n}populateAuthentication(t,n){this.authenticationConverter.convert(t,n)}};var Su=class{static{s(this,"DelegatingAuthenticationConverter")}constructor(t=new bm,n=new Em){this.converters={BEARER_TOKEN:t,BASIC:n}}convert(t,n){return this.converters[t.type].convert(t,n)}},bm=class{static{s(this,"BearerTokenAuthenticationConverter")}convert(t,n){return n.Authorization=`Bearer ${t.token}`,n}},Em=class{static{s(this,"BasicTokenAuthenticationConverter")}convert(t,n){let o=`${t.username}:${t.password}`,r=Buffer.from(o).toString("base64");return n.Authorization=`Basic ${r}`,n}};var $i=class extends Error{constructor(n,o){let r=o.status||500,i=Buffer.isBuffer(o.responseBody)?o.responseBody.toString():o.responseBody;super(JSON.stringify({response:{status:r,body:i},request:{body:n}}));this.requestBody=n;this.status=r,this.responseBody=i}static{s(this,"HttpError")}errorMessage(){return{response:{status:this.status,body:this.responseBody},request:{body:this.requestBody}}}get response(){return{status:this.status,body:this.responseBody}}get request(){return{body:this.requestBody}}};function P_({error:e,requestBody:t}){return e instanceof $i?e.errorMessage():{response:{status:0,body:e instanceof Error?e.message:String(e)},request:{body:t}}}s(P_,"toFailsafeOutput");var Au=(a=>(a.GET="GET",a.POST="POST",a.PATCH="PATCH",a.PUT="PUT",a.DELETE="DELETE",a.HEAD="HEAD",a))(Au||{});var wu=class extends Iu{static{s(this,"FetchHttpClient")}constructor(t="",n=new Su){super(t,n)}async sendRequest(t,n){process.env.NODE_TLS_REJECT_UNAUTHORIZED="0";let{urlWithoutQueryParams:o,queryParams:r}=this.getUrl(t),i=this.getHeaders(t),a=t.queryParams??{};for(let[F,oe]of Object.entries(a))r.append(F,oe);let u=r.toString(),c=u?`${o}?${u}`:o,l=t.responseType??"json",d=t.followRedirects??!0,g=t.retries??0,{body:h,extraHeaders:p,isStream:m}=$u(t.method)?Rw(t.body,i):{body:void 0,extraHeaders:{},isStream:!1},_=kw({...i,...p}),P=await zw(async()=>{let F=new AbortController,oe=t.timeout&&t.timeout>0?setTimeout(()=>F.abort(),t.timeout):void 0;try{let me={method:t.method.toString(),headers:_,body:h,redirect:d?"follow":"manual",signal:F.signal};return m&&(me.duplex="half"),n?.dispatcher!==void 0&&(me.dispatcher=n.dispatcher),await fetch(c,me)}finally{oe!==void 0&&clearTimeout(oe)}},m?0:g),E=d?300:400;if(P.status<200||P.status>=E){let F=await x_(P,l==="stream"?"text":l),oe=new $i(t.body,{status:P.status,responseBody:F});throw console.error("[HttpClient#(sanitized error message)] Request failed:",oe),oe}let T=await x_(P,l);return{status:P.status,headers:Dw(P.headers),body:T}}};function $u(e){return e!=="GET"&&e!=="HEAD"}s($u,"acceptsRequestBody");function Rw(e,t){if(E_(e))return{body:void 0,extraHeaders:{},isStream:!1};if(Nw(e)){let o=Cw(e);if(o!==null)return{body:o,extraHeaders:e.getHeaders(),isStream:!1};let r=new cn.PassThrough;return e.on("error",i=>r.destroy(i)),e.pipe(r),{body:r,extraHeaders:e.getHeaders(),isStream:!0}}return e instanceof cn.Readable?{body:e,extraHeaders:{},isStream:!0}:typeof e=="string"||Buffer.isBuffer(e)||e instanceof URLSearchParams||e instanceof ArrayBuffer||typeof FormData<"u"&&e instanceof FormData||typeof Blob<"u"&&e instanceof Blob?{body:e,extraHeaders:{},isStream:!1}:(t["Content-Type"]??t["content-type"]??"").includes("application/x-www-form-urlencoded")?{body:new URLSearchParams(e).toString(),extraHeaders:{},isStream:!1}:{body:JSON.stringify(e),extraHeaders:{},isStream:!1}}s(Rw,"serializeBody");async function x_(e,t){switch(t){case"arraybuffer":return Buffer.from(await e.arrayBuffer());case"stream":return E_(e.body)?cn.Readable.from([]):cn.Readable.fromWeb(e.body);case"blob":return await e.blob();case"text":return await e.text();default:{let n=await e.text();if(n.length===0)return;try{return JSON.parse(n)}catch{return n}}}}s(x_,"parseResponseBody");async function zw(e,t){let n;for(let o=0;o<=t;o++)try{let r=await e();if(r.status>=500&&o<t){await b_(o);continue}return r}catch(r){if(n=r,o<t){await b_(o);continue}throw r}throw n}s(zw,"sendWithRetries");function b_(e){let t=Math.min(1e3*2**e,3e4);return new Promise(n=>setTimeout(n,t))}s(b_,"backoff");function kw(e){let t=new Map;for(let[n,o]of Object.entries(e))o!==void 0&&t.set(n.toLowerCase(),[n,Array.isArray(o)?o.join(", "):o]);return Object.fromEntries(t.values())}s(kw,"normalizeHeaders");function Dw(e){let t={};return e.forEach((n,o)=>{t[o]=n}),t}s(Dw,"toHttpHeaders");function Cw(e){if(!e.hasKnownLength()||e.getLengthSync()>Uw)return null;let{data:t}=Bd(()=>e.getBuffer());return t}s(Cw,"bufferFormDataIfSafe");function Nw(e){return typeof e=="object"&&e!==null&&typeof e.getHeaders=="function"&&typeof e.pipe=="function"&&typeof e.on=="function"}s(Nw,"isNodeFormData");function E_(e){return e==null}s(E_,"isNil");var Uw=100*1024*1024;var Oi=new wu;var TO=ae(require("fs")),$x=ae(wx());var IO={"application/json":"json","application/pdf":"pdf","application/xml":"xml","text/xml":"xml","application/zip":"zip","application/gzip":"gz","application/x-tar":"tar","application/octet-stream":"bin","application/msword":"doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","application/vnd.ms-excel":"xls","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","application/vnd.ms-powerpoint":"ppt","application/vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","application/rtf":"rtf","application/javascript":"js","application/x-www-form-urlencoded":"bin","text/plain":"txt","text/html":"html","text/css":"css","text/csv":"csv","text/calendar":"ics","text/markdown":"md","image/png":"png","image/jpeg":"jpeg","image/jpg":"jpg","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/bmp":"bmp","image/tiff":"tiff","image/x-icon":"ico","image/vnd.microsoft.icon":"ico","image/heic":"heic","audio/mpeg":"mp3","audio/mp4":"m4a","audio/wav":"wav","audio/x-wav":"wav","audio/ogg":"ogg","audio/webm":"weba","video/mp4":"mp4","video/mpeg":"mpeg","video/webm":"webm","video/quicktime":"mov","video/x-msvideo":"avi","font/woff":"woff","font/woff2":"woff2","font/ttf":"ttf","font/otf":"otf"};function SO(e){let t=e.split(";")[0].trim().toLowerCase();return IO[t]??""}s(SO,"contentTypeToExtension");var AO=s(({baseUrl:e,relativePath:t})=>{let n=e.endsWith("/")?e:`${e}/`,o=t.startsWith("/")?t.slice(1):t;return`${n}${o}`},"joinBaseUrlWithRelativePath"),wO=s((e,t)=>{let n="https://api.example.com";try{let o=t?e(t):void 0;return(o?.endsWith("/")?o.slice(0,-1):o)??n}catch{return n}},"getBaseUrlForDescription");function Ox({auth:e,baseUrl:t,authMapping:n,description:o,displayName:r,name:i,props:a,extraProps:u,authLocation:c="headers",classification:l="WRITE"}){return ce({audience:"human",name:i||"custom_api_call",classification:l,displayName:r||"Custom API Call",description:o||"Make a custom API call to a specific endpoint",auth:e,requireAuth:!!e,props:{url:R.DynamicProperties({auth:e,displayName:"",required:!0,refreshers:[],props:s(async({auth:d})=>({url:R.ShortText({displayName:"URL",description:`Full URL, or a path relative to ${wO(t,d)}`,required:!0,placeholder:"/resource",defaultValue:d?t(d):"",...a?.url??{}})}),"props")}),method:R.StaticDropdown({displayName:"Method",required:!0,defaultValue:"GET",options:{options:Object.values(Au).map(d=>({label:d,value:d}))},...a?.method??{}}),headers:R.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!1,...a?.headers??{}}),queryParams:R.Object({displayName:"Query Parameters",description:"Appended to the URL as ?key=value.",required:!1,...a?.queryParams??{}}),body_type:R.Dropdown({auth:e,displayName:"Body Type",required:!1,defaultValue:"none",refreshers:["method"],options:s(async({method:d})=>$u(d)?{disabled:!1,options:[{label:"None",value:"none"},{label:"JSON",value:"json"},{label:"Form Data",value:"form_data"},{label:"Raw",value:"raw"}]}:{disabled:!0,placeholder:"Not available for GET or HEAD requests",options:[]},"options")}),body:R.DynamicProperties({auth:e,displayName:"Body",refreshers:["body_type","method"],required:!1,props:s(async({body_type:d,method:g})=>{if(!d||!$u(g))return{};let h=d,p={};switch(h){case"none":break;case"json":p.data=R.Json({displayName:"JSON Body",required:!0,...a?.body??{}});break;case"raw":p.data=R.LongText({displayName:"Raw Body",required:!0});break;case"form_data":p.data=R.Array({displayName:"Form Data",required:!0,properties:{fieldName:R.ShortText({displayName:"Field Name",required:!0}),fieldType:R.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:R.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:R.File({displayName:"File Field Value",required:!1})}});break}return p},"props")}),response_is_binary:R.Checkbox({displayName:"Response is Binary",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1,advanced:!0,...a?.response_is_binary??{}}),failsafe:R.Checkbox({displayName:"Return Error as Output",description:"On a failed request, output the error instead of failing the step.",required:!1,advanced:!0,...a?.failsafe??{}}),timeout:R.Number({displayName:"Timeout",description:"Seconds to wait for a response. Empty: up to the flow limit (10 min).",required:!1,advanced:!0,...a?.timeout??{}}),followRedirects:R.Checkbox({displayName:"Follow redirects",description:"Follow 3xx redirects instead of returning them as the response.",required:!1,defaultValue:!1,advanced:!0,...a?.followRedirects??{}}),...u},run:s(async d=>{let{method:g,url:h,headers:p,queryParams:m,body:_,body_type:P,failsafe:E,timeout:T,response_is_binary:F,followRedirects:oe}=d.propsValue;Bs(g,"Method"),Bs(h,"URL");let me=be(n)?{}:await n(d.auth,d.propsValue),qe=h.url,Se=qe.startsWith("http://")||qe.startsWith("https://")?qe:AO({baseUrl:t(d.auth),relativePath:qe}),re={method:g,url:Se,headers:{...p??{},...c==="headers"||!be(c)?me:{}},queryParams:{...c==="queryParams"?me:{},...m??{}},timeout:T?T*1e3:0,followRedirects:oe};if(F&&(re.responseType="arraybuffer"),_)if(P&&P!=="none"){let Ge=_.data;if(P==="form_data"){let Wi=Ge,G=new $x.default;for(let{fieldName:U,fieldType:k,textFieldValue:j,fileFieldValue:N}of Wi)k==="text"&&!hi(j)?G.append(U,j):k==="file"&&!hi(N)&&G.append(U,N.data,{filename:N?.filename});re.body=G,re.headers={...re.headers,...G.getHeaders()}}else re.body=Ge}else P||(re.body=_);try{let Ge=await Oi.sendRequest(re);return await $O(d.files,Ge.body,Ge.status,Ge.headers,F)}catch(Ge){if(E)return P_({error:Ge,requestBody:re.body});throw Ge}},"run")})}s(Ox,"createCustomApiCallAction");var $O=s(async(e,t,n,o,r)=>{let i;if(r&&OO(t)){let a=Array.isArray(o?.["content-type"])?o["content-type"][0]:o?.["content-type"],u=SO(a??"")||"txt",c;t instanceof ArrayBuffer?c=Buffer.from(new Uint8Array(t)):Buffer.isBuffer(t)?c=t:c=Buffer.from(t),i=await e.write({fileName:`output.${u}`,data:c})}else i=t;return{status:n,headers:o,body:i}},"handleBinaryResponse"),OO=s(e=>e instanceof ArrayBuffer||Buffer.isBuffer(e),"isBinaryBody");var ge={async poll(e,{store:t,auth:n,propsValue:o,maxItemsToPoll:r,files:i,server:a}){switch(e.strategy){case 0:{let u=await t.get("lastPoll");if(be(u))throw new Error("lastPoll doesn't exist in the store.");let c=await e.items({store:t,auth:n,propsValue:o,lastFetchEpochMS:u,server:a}),l=c.reduce((d,g)=>Math.max(d,g.epochMilliSeconds),u);return await t.put("lastPoll",l),c.filter(d=>d.epochMilliSeconds>u).map(d=>d.data)}case 1:{let u=await t.get("lastItem"),c=await e.items({store:t,auth:n,propsValue:o,lastItemId:u,files:i,server:a}),l=c.findIndex(h=>h.id===u),d=[];be(u)||l==-1?d=c??[]:d=c?.slice(0,l)??[],be(r)||(d=d.slice(-r));let g=d?.[0]?.id;return be(g)||await t.put("lastItem",g),d.map(h=>h.data)}}},async onEnable(e,{store:t,auth:n,propsValue:o,server:r,isRepublish:i}){switch(e.strategy){case 0:{if(i&&!be(await t.get("lastPoll")))break;await t.put("lastPoll",Date.now());break}case 1:{if(i&&!be(await t.get("lastItem")))break;let u=(await e.items({store:t,auth:n,propsValue:o,lastItemId:null,server:r}))?.[0]?.id;be(u)?await t.delete("lastItem"):await t.put("lastItem",u);break}}},async onDisable(e,t){switch(e.strategy){case 0:case 1:return}},async test(e,{auth:t,propsValue:n,store:o,files:r,server:i}){let a=[];switch(e.strategy){case 0:{a=await e.items({store:o,auth:t,propsValue:n,lastFetchEpochMS:0,server:i});break}case 1:{a=await e.items({store:o,auth:t,propsValue:n,lastItemId:null,files:r,server:i});break}}return RO(a.map(u=>u.data))}};function RO(e){return e.length<=5?e:e.slice(0,5)}s(RO,"getFirstFiveOrAll");var Rx=require("node:stream");function zO(e){return"body"in e?{body:e.body,size:e.size}:{body:Rx.Readable.from(e.data),size:e.data.length}}s(zO,"toStreamingBody");async function*kO({readable:e,chunkSize:t}){let n=[],o=0;for await(let r of e)for(n.push(Buffer.isBuffer(r)?r:Buffer.from(r)),o+=n[n.length-1].length;o>=t;){let i=n.length===1?n[0]:Buffer.concat(n);yield i.subarray(0,t);let a=i.subarray(t);n=a.length>0?[a]:[],o=a.length}o>0&&(yield n.length===1?n[0]:Buffer.concat(n))}s(kO,"readChunks");var Zm={readChunks:kO,toStreamingBody:zO};var Di="login.microsoftonline.com",kx="login.microsoftonline.us",zx={[Di]:"https://graph.microsoft.com",[kx]:"https://graph.microsoft.us"},Dx=R.StaticDropdown({displayName:"Cloud Environment",description:"Select your Microsoft cloud environment.",required:!0,defaultValue:Di,options:{disabled:!1,options:[{label:"Commercial (Global)",value:Di},{label:"US Government (GCC High)",value:kx}]}});function DO(e){return e??Di}s(DO,"resolveCloudHost");function D(e){let t=DO(e);return zx[t]??zx[Di]}s(D,"getGraphBaseUrl");var CO=`
|
|
44
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let u=a[1];if(t===a[0]){i(a);continue}if(e.external){let l=e.external.registry.get(a[0])?.id;if(t!==a[0]&&l){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(u.cycle){i(a);continue}if(u.count>1&&e.reused==="ref"){i(a);continue}}}s(Ft,"extractDefs");function Bt(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=s(a=>{let u=e.seen.get(a);if(u.ref===null)return;let c=u.def??u.schema,l={...c},d=u.ref;if(u.ref=null,d){o(d);let m=e.seen.get(d),p=m.schema;if(p.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(p)):Object.assign(c,p),Object.assign(c,l),a._zod.parent===d)for(let _ in c)_==="$ref"||_==="allOf"||_ in l||delete c[_];if(p.$ref&&m.def)for(let _ in c)_==="$ref"||_==="allOf"||_ in m.def&&JSON.stringify(c[_])===JSON.stringify(m.def[_])&&delete c[_]}let h=a._zod.parent;if(h&&h!==d){o(h);let m=e.seen.get(h);if(m?.schema.$ref&&(c.$ref=m.schema.$ref,m.def))for(let p in c)p==="$ref"||p==="allOf"||p in m.def&&JSON.stringify(c[p])===JSON.stringify(m.def[p])&&delete c[p]}e.override({zodSchema:a,jsonSchema:c,path:u.path??[]})},"flattenRef");for(let a of[...e.seen.entries()].reverse())o(a[0]);let r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(a)}Object.assign(r,n.def??n.schema);let i=e.external?.defs??{};for(let a of e.seen.entries()){let u=a[1];u.def&&u.defId&&(i[u.defId]=u.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?r.$defs=i:r.definitions=i);try{let a=JSON.parse(JSON.stringify(r));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:Wr(t,"input",e.processors),output:Wr(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}s(Bt,"finalize");function Ze(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Ze(o.element,n);if(o.type==="set")return Ze(o.valueType,n);if(o.type==="lazy")return Ze(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return Ze(o.innerType,n);if(o.type==="intersection")return Ze(o.left,n)||Ze(o.right,n);if(o.type==="record"||o.type==="map")return Ze(o.keyType,n)||Ze(o.valueType,n);if(o.type==="pipe")return Ze(o.in,n)||Ze(o.out,n);if(o.type==="object"){for(let r in o.shape)if(Ze(o.shape[r],n))return!0;return!1}if(o.type==="union"){for(let r of o.options)if(Ze(r,n))return!0;return!1}if(o.type==="tuple"){for(let r of o.items)if(Ze(r,n))return!0;return!!(o.rest&&Ze(o.rest,n))}return!1}s(Ze,"isTransforming");var qp=s((e,t={})=>n=>{let o=jt({...n,processors:t});return de(e,o),Ft(o,e),Bt(o,e)},"createToJSONSchemaMethod"),Wr=s((e,t,n={})=>o=>{let{libraryOptions:r,target:i}=o??{},a=jt({...r??{},target:i,io:t,processors:n});return de(e,a),Ft(a,e),Bt(a,e)},"createStandardJSONSchemaMethod");var sS={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Gp=s((e,t,n,o)=>{let r=n;r.type="string";let{minimum:i,maximum:a,format:u,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof i=="number"&&(r.minLength=i),typeof a=="number"&&(r.maxLength=a),u&&(r.format=sS[u]??u,r.format===""&&delete r.format,u==="time"&&delete r.format),l&&(r.contentEncoding=l),c&&c.size>0){let d=[...c];d.length===1?r.pattern=d[0].source:d.length>1&&(r.allOf=[...d.map(h=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},"stringProcessor"),Wp=s((e,t,n,o)=>{let r=n,{minimum:i,maximum:a,format:u,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:d}=e._zod.bag;typeof u=="string"&&u.includes("int")?r.type="integer":r.type="number",typeof d=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.minimum=d,r.exclusiveMinimum=!0):r.exclusiveMinimum=d),typeof i=="number"&&(r.minimum=i,typeof d=="number"&&t.target!=="draft-04"&&(d>=i?delete r.minimum:delete r.exclusiveMinimum)),typeof l=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.maximum=l,r.exclusiveMaximum=!0):r.exclusiveMaximum=l),typeof a=="number"&&(r.maximum=a,typeof l=="number"&&t.target!=="draft-04"&&(l<=a?delete r.maximum:delete r.exclusiveMaximum)),typeof c=="number"&&(r.multipleOf=c)},"numberProcessor"),Jp=s((e,t,n,o)=>{n.type="boolean"},"booleanProcessor"),Kp=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},"bigintProcessor"),Xp=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},"symbolProcessor"),Yp=s((e,t,n,o)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},"nullProcessor"),Qp=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},"undefinedProcessor"),ed=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},"voidProcessor"),td=s((e,t,n,o)=>{n.not={}},"neverProcessor"),rd=s((e,t,n,o)=>{},"anyProcessor"),nd=s((e,t,n,o)=>{},"unknownProcessor"),od=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},"dateProcessor"),id=s((e,t,n,o)=>{let r=e._zod.def,i=zn(r.entries);i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),n.enum=i},"enumProcessor"),ad=s((e,t,n,o)=>{let r=e._zod.def,i=[];for(let a of r.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){let a=i[0];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a}else i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),i.every(a=>typeof a=="boolean")&&(n.type="boolean"),i.every(a=>a===null)&&(n.type="null"),n.enum=i},"literalProcessor"),sd=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},"nanProcessor"),ud=s((e,t,n,o)=>{let r=n,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=i.source},"templateLiteralProcessor"),cd=s((e,t,n,o)=>{let r=n,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:u,mime:c}=e._zod.bag;a!==void 0&&(i.minLength=a),u!==void 0&&(i.maxLength=u),c?c.length===1?(i.contentMediaType=c[0],Object.assign(r,i)):(Object.assign(r,i),r.anyOf=c.map(l=>({contentMediaType:l}))):Object.assign(r,i)},"fileProcessor"),ld=s((e,t,n,o)=>{n.type="boolean"},"successProcessor"),pd=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},"customProcessor"),dd=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},"functionProcessor"),fd=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},"transformProcessor"),md=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},"mapProcessor"),gd=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},"setProcessor"),hd=s((e,t,n,o)=>{let r=n,i=e._zod.def,{minimum:a,maximum:u}=e._zod.bag;typeof a=="number"&&(r.minItems=a),typeof u=="number"&&(r.maxItems=u),r.type="array",r.items=de(i.element,t,{...o,path:[...o.path,"items"]})},"arrayProcessor"),yd=s((e,t,n,o)=>{let r=n,i=e._zod.def;r.type="object",r.properties={};let a=i.shape;for(let l in a)r.properties[l]=de(a[l],t,{...o,path:[...o.path,"properties",l]});let u=new Set(Object.keys(a)),c=new Set([...u].filter(l=>{let d=i.shape[l]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));c.size>0&&(r.required=Array.from(c)),i.catchall?._zod.def.type==="never"?r.additionalProperties=!1:i.catchall?i.catchall&&(r.additionalProperties=de(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},"objectProcessor"),zs=s((e,t,n,o)=>{let r=e._zod.def,i=r.inclusive===!1,a=r.options.map((u,c)=>de(u,t,{...o,path:[...o.path,i?"oneOf":"anyOf",c]}));i?n.oneOf=a:n.anyOf=a},"unionProcessor"),vd=s((e,t,n,o)=>{let r=e._zod.def,i=de(r.left,t,{...o,path:[...o.path,"allOf",0]}),a=de(r.right,t,{...o,path:[...o.path,"allOf",1]}),u=s(l=>"allOf"in l&&Object.keys(l).length===1,"isSimpleIntersection"),c=[...u(i)?i.allOf:[i],...u(a)?a.allOf:[a]];n.allOf=c},"intersectionProcessor"),_d=s((e,t,n,o)=>{let r=n,i=e._zod.def;r.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",u=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=i.items.map((m,p)=>de(m,t,{...o,path:[...o.path,a,p]})),l=i.rest?de(i.rest,t,{...o,path:[...o.path,u,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=c,l&&(r.items=l)):t.target==="openapi-3.0"?(r.items={anyOf:c},l&&r.items.anyOf.push(l),r.minItems=c.length,l||(r.maxItems=c.length)):(r.items=c,l&&(r.additionalItems=l));let{minimum:d,maximum:h}=e._zod.bag;typeof d=="number"&&(r.minItems=d),typeof h=="number"&&(r.maxItems=h)},"tupleProcessor"),Pd=s((e,t,n,o)=>{let r=n,i=e._zod.def;r.type="object";let a=i.keyType,c=a._zod.bag?.patterns;if(i.mode==="loose"&&c&&c.size>0){let d=de(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});r.patternProperties={};for(let h of c)r.patternProperties[h.source]=d}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=de(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),r.additionalProperties=de(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let l=a._zod.values;if(l){let d=[...l].filter(h=>typeof h=="string"||typeof h=="number");d.length>0&&(r.required=d)}},"recordProcessor"),xd=s((e,t,n,o)=>{let r=e._zod.def,i=de(r.innerType,t,o),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},"nullableProcessor"),bd=s((e,t,n,o)=>{let r=e._zod.def;de(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType},"nonoptionalProcessor"),Ed=s((e,t,n,o)=>{let r=e._zod.def;de(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},"defaultProcessor"),Td=s((e,t,n,o)=>{let r=e._zod.def;de(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},"prefaultProcessor"),Id=s((e,t,n,o)=>{let r=e._zod.def;de(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType;let a;try{a=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},"catchProcessor"),Sd=s((e,t,n,o)=>{let r=e._zod.def,i=t.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;de(i,t,o);let a=t.seen.get(e);a.ref=i},"pipeProcessor"),Ad=s((e,t,n,o)=>{let r=e._zod.def;de(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType,n.readOnly=!0},"readonlyProcessor"),wd=s((e,t,n,o)=>{let r=e._zod.def;de(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType},"promiseProcessor"),ks=s((e,t,n,o)=>{let r=e._zod.def;de(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType},"optionalProcessor"),$d=s((e,t,n,o)=>{let r=e._zod.innerType;de(r,t,o);let i=t.seen.get(e);i.ref=r},"lazyProcessor"),Rs={string:Gp,number:Wp,boolean:Jp,bigint:Kp,symbol:Xp,null:Yp,undefined:Qp,void:ed,never:td,any:rd,unknown:nd,date:od,enum:id,literal:ad,nan:sd,template_literal:ud,file:cd,success:ld,custom:pd,function:dd,transform:fd,map:md,set:gd,array:hd,object:yd,union:zs,intersection:vd,tuple:_d,record:Pd,nullable:xd,nonoptional:bd,default:Ed,prefault:Td,catch:Id,pipe:Sd,readonly:Ad,promise:wd,optional:ks,lazy:$d};function ri(e,t){if("_idmap"in e){let o=e,r=jt({...t,processors:Rs}),i={};for(let c of o._idmap.entries()){let[l,d]=c;de(d,r)}let a={},u={registry:o,uri:t?.uri,defs:i};r.external=u;for(let c of o._idmap.entries()){let[l,d]=c;Ft(r,d),a[l]=Bt(r,d)}if(Object.keys(i).length>0){let c=r.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[c]:i}}return{schemas:a}}let n=jt({...t,processors:Rs});return de(e,n),Ft(n,e),Bt(n,e)}s(ri,"toJSONSchema");var Ds=class{static{s(this,"JSONSchemaGenerator")}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(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=jt({processors:Rs,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return de(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),Ft(this.ctx,t);let o=Bt(this.ctx,t),{"~standard":r,...i}=o;return i}};var vh={};var Oe=y("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");H.init(e,t),e.def=t,e.type=t.type,e.parse=(n,o)=>tr(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>Nr(e,n,o),e.parseAsync=async(n,o)=>rr(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>Mr(e,n,o),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]},{parent:!0}),e.with=e.check,e.clone=(n,o)=>De(e,n,o),e.brand=()=>e,e.register=((n,o)=>(n.add(e,o),e)),e.apply=n=>n(e)}),Cs=y("ZodMiniString",(e,t)=>{Pt.init(e,t),Oe.init(e,t)});function f(e){return fo(Cs,e)}s(f,"string");var Jr=y("ZodMiniStringFormat",(e,t)=>{pe.init(e,t),Cs.init(e,t)});var lS=y("ZodMiniURL",(e,t)=>{Fn.init(e,t),Jr.init(e,t)});function _h(e){return ar(lS,e)}s(_h,"url");var Ns=y("ZodMiniNumber",(e,t)=>{jr.init(e,t),Oe.init(e,t)});function Ne(e){return Lo(Ns,e)}s(Ne,"number");var pS=y("ZodMiniNumberFormat",(e,t)=>{qn.init(e,t),Ns.init(e,t)});function Ph(e){return Fo(pS,e)}s(Ph,"int");var Od=y("ZodMiniBoolean",(e,t)=>{or.init(e,t),Oe.init(e,t)});function se(e){return Bo(Od,e)}s(se,"boolean");var xh=y("ZodMiniBigInt",(e,t)=>{Fr.init(e,t),Oe.init(e,t)});var dS=y("ZodMiniAny",(e,t)=>{Gn.init(e,t),Oe.init(e,t)});function ni(){return Ho(dS)}s(ni,"any");var fS=y("ZodMiniUnknown",(e,t)=>{Wn.init(e,t),Oe.init(e,t)});function G(){return qo(fS)}s(G,"unknown");var mS=y("ZodMiniVoid",(e,t)=>{Jn.init(e,t),Oe.init(e,t)});function bh(e){return Go(mS,e)}s(bh,"_void");var Eh=y("ZodMiniDate",(e,t)=>{Kn.init(e,t),Oe.init(e,t)});var gS=y("ZodMiniArray",(e,t)=>{Xn.init(e,t),Oe.init(e,t)});function V(e,t){return new gS({type:"array",element:e,...I(t)})}s(V,"array");var hS=y("ZodMiniObject",(e,t)=>{Za.init(e,t),Oe.init(e,t),Y(e,"shape",()=>t.shape)});function v(e,t){let n={type:"object",shape:e??{},...I(t)};return new hS(n)}s(v,"object");var yS=y("ZodMiniUnion",(e,t)=>{ir.init(e,t),Oe.init(e,t)});function Q(e,t){return new yS({type:"union",options:e,...I(t)})}s(Q,"union");var vS=y("ZodMiniDiscriminatedUnion",(e,t)=>{Yn.init(e,t),Oe.init(e,t)});function Vt(e,t,n){return new vS({type:"union",options:t,discriminator:e,...I(n)})}s(Vt,"discriminatedUnion");var _S=y("ZodMiniRecord",(e,t)=>{eo.init(e,t),Oe.init(e,t)});function W(e,t,n){return new _S({type:"record",keyType:e,valueType:t,...I(n)})}s(W,"record");var PS=y("ZodMiniEnum",(e,t)=>{to.init(e,t),Oe.init(e,t),e.options=Object.values(t.entries)});function B(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new PS({type:"enum",entries:n,...I(t)})}s(B,"_enum");var xS=y("ZodMiniLiteral",(e,t)=>{ro.init(e,t),Oe.init(e,t)});function F(e,t){return new xS({type:"literal",values:Array.isArray(e)?e:[e],...I(t)})}s(F,"literal");var bS=y("ZodMiniTransform",(e,t)=>{no.init(e,t),Oe.init(e,t)});function Zt(e){return new bS({type:"transform",transform:e})}s(Zt,"transform");var ES=y("ZodMiniOptional",(e,t)=>{Br.init(e,t),Oe.init(e,t)});function P(e){return new ES({type:"optional",innerType:e})}s(P,"optional");var TS=y("ZodMiniNullable",(e,t)=>{oo.init(e,t),Oe.init(e,t)});function oi(e){return new TS({type:"nullable",innerType:e})}s(oi,"nullable");var IS=y("ZodMiniPipe",(e,t)=>{io.init(e,t),Oe.init(e,t)});function Ht(e,t){return new IS({type:"pipe",in:e,out:t})}s(Ht,"pipe");var Th=y("ZodMiniCustom",(e,t)=>{ao.init(e,t),Oe.init(e,t)});function Us(e,t){return ei(Th,e??(()=>!0),t)}s(Us,"custom");function Rd(e,t={}){return ti(Th,e,t)}s(Rd,"refine");var Ms={};tt(Ms,{ZodMiniISODate:()=>kd,ZodMiniISODateTime:()=>zd,ZodMiniISODuration:()=>Cd,ZodMiniISOTime:()=>Dd,date:()=>AS,datetime:()=>SS,duration:()=>$S,time:()=>wS});var zd=y("ZodMiniISODateTime",(e,t)=>{Bn.init(e,t),Jr.init(e,t)});function SS(e){return Co(zd,e)}s(SS,"datetime");var kd=y("ZodMiniISODate",(e,t)=>{Vn.init(e,t),Jr.init(e,t)});function AS(e){return No(kd,e)}s(AS,"date");var Dd=y("ZodMiniISOTime",(e,t)=>{Zn.init(e,t),Jr.init(e,t)});function wS(e){return Uo(Dd,e)}s(wS,"time");var Cd=y("ZodMiniISODuration",(e,t)=>{Hn.init(e,t),Jr.init(e,t)});function $S(e){return Mo(Cd,e)}s($S,"duration");var ii={};tt(ii,{bigint:()=>kS,boolean:()=>zS,date:()=>DS,number:()=>RS,string:()=>OS});function OS(e){return mo(Cs,e)}s(OS,"string");function RS(e){return jo(Ns,e)}s(RS,"number");function zS(e){return Vo(Od,e)}s(zS,"boolean");function kS(e){return Zo(xh,e)}s(kS,"bigint");function DS(e){return Wo(Eh,e)}s(DS,"date");var Ud=v({retryOnFailure:v({defaultValue:P(se()),hide:P(se())}),continueOnFailure:v({defaultValue:P(se()),hide:P(se())})}),Nd=class{constructor(t,n,o,r,i,a,u,c,l,d,h,m,p){this.name=t;this.displayName=n;this.description=o;this.props=r;this.propertyGroups=i;this.run=a;this.test=u;this.requireAuth=c;this.errorHandlingOptions=l;this.outputSchema=d;this.audience=h;this.aiMetadata=m;this.classification=p}static{s(this,"IAction")}},ce=s(e=>new Nd(e.name,e.displayName,e.description,e.props,e.propertyGroups,e.run,e.test??e.run,e.requireAuth??!0,e.errorHandlingOptions??{continueOnFailure:{defaultValue:!1},retryOnFailure:{defaultValue:!1}},e.outputSchema,e.audience,e.aiMetadata,e.classification),"createAction");var oe=v({displayName:f(),description:P(f()),advanced:P(se()),width:P(B(["half","full"])),icon:P(f()),placeholder:P(f())}),K=s((e,t)=>v({type:F(t),required:se(),defaultValue:P(ni())}),"TPropertyValue");var ot=v({...oe.shape,...K(f(),"SHORT_TEXT").shape}),Et=v({...oe.shape,...K(f(),"LONG_TEXT").shape});var Sh=v({label:f(),value:G(),description:P(f()),icon:P(f())}),Ls=v({disabled:P(se()),placeholder:P(f()),options:V(Sh)});var NS=B(["cards"]),it=v({...oe.shape,options:Ls,display:P(NS),...K(G(),"STATIC_DROPDOWN").shape}),Tt=v({...oe.shape,options:Ls,...K(V(G()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var Md=v({...oe.shape,...K(G(),"DROPDOWN").shape,refreshers:V(f())}),ai=v({...oe.shape,...K(V(G()),"MULTI_SELECT_DROPDOWN").shape,refreshers:V(f())});var It=v({...oe.shape,reveals:P(V(f())),...K(se(),"CHECKBOX").shape});var St=v({...oe.shape,display:P(B(["stepper"])),min:P(Ne()),max:P(Ne()),step:P(Ne()),...K(Ne(),"NUMBER").shape});var si=v({...oe.shape,streaming:P(se()),...K(G(),"FILE").shape});var ui=v({...oe.shape,...K(f(),"DATE_TIME").shape});var Ah=W(f(),Q([ot,Et,it,ai,Tt,It,St,si,ui])),ci=v({...oe.shape,properties:Ah,...K(V(G()),"ARRAY").shape});var wh=B(["any_time","last_24_hours","last_7_days","last_30_days","last_90_days","this_month","custom"]),$h=v({preset:P(wh),after:P(f()),before:P(f())}),Ld=v({...oe.shape,display:P(B(["dropdown"])),...K($h,"DATE_RANGE").shape});var li=v({...oe.shape,...K(Q([W(f(),G())]),"JSON").shape});var Oh=Q([ot,it,li,ci,Tt]),US=W(f(),Oh),jd=v({refreshers:V(f()),...oe.shape,...K(G(),"DYNAMIC").shape});var js=v({...oe.shape,...K(bh(),"MARKDOWN").shape});var pi=(n=>(n.ARCHIVE="ARCHIVE",n.REGISTRY="REGISTRY",n))(pi||{}),Kr=(n=>(n.CUSTOM="CUSTOM",n.OFFICIAL="OFFICIAL",n))(Kr||{}),vr=(E=>(E.ARTIFICIAL_INTELLIGENCE="ARTIFICIAL_INTELLIGENCE",E.COMMUNICATION="COMMUNICATION",E.COMMERCE="COMMERCE",E.CORE="CORE",E.UNIVERSAL_AI="UNIVERSAL_AI",E.FLOW_CONTROL="FLOW_CONTROL",E.BUSINESS_INTELLIGENCE="BUSINESS_INTELLIGENCE",E.ACCOUNTING="ACCOUNTING",E.PRODUCTIVITY="PRODUCTIVITY",E.CONTENT_AND_FILES="CONTENT_AND_FILES",E.DEVELOPER_TOOLS="DEVELOPER_TOOLS",E.CUSTOMER_SUPPORT="CUSTOMER_SUPPORT",E.FORMS_AND_SURVEYS="FORMS_AND_SURVEYS",E.HUMAN_RESOURCES="HUMAN_RESOURCES",E.PAYMENT_PROCESSING="PAYMENT_PROCESSING",E.MARKETING="MARKETING",E.SALES_AND_CRM="SALES_AND_CRM",E))(vr||{});var di=(n=>(n.AUTHORIZATION_CODE="authorization_code",n.CLIENT_CREDENTIALS="client_credentials",n))(di||{}),Fd="both_client_credentials_and_authorization_code";var He=(r=>(r.POLLING="POLLING",r.WEBHOOK="WEBHOOK",r.APP_WEBHOOK="APP_WEBHOOK",r.MANUAL="MANUAL",r))(He||{}),fi=(i=>(i.NONE="NONE",i.HEADER_PRESENT="HEADER_PRESENT",i.QUERY_PRESENT="QUERY_PRESENT",i.BODY_PARAM_PRESENT="BODY_PARAM_PRESENT",i.HEAD_REQUEST="HEAD_REQUEST",i))(fi||{}),MS=v({strategy:B(fi),paramName:P(f())}),mi=(n=>(n.SIMULATION="SIMULATION",n.TEST_FUNCTION="TEST_FUNCTION",n))(mi||{});var Fs=(n=>(n.WEBSOCKET="WEBSOCKET",n.NONE="NONE",n))(Fs||{}),Rh=v({status:P(Ne()),body:P(G()),headers:P(W(f(),f()))}),zh=v({type:F("DELAY"),resumeDateTime:f(),requestIdToReply:P(f()),handlerId:P(f()),streamStepProgress:P(B(Fs))}),kh=v({type:F("WEBHOOK"),requestId:f(),requestIdToReply:P(f()),response:Rh,handlerId:P(f()),streamStepProgress:P(B(Fs))}),LS=Q([zh,kh]);var jS=v({body:G(),rawBody:P(G()),headers:W(f(),f()),queryParams:W(f(),f())});function be(e){return e==null}s(be,"isNil");function gi(e){return e==null?!0:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}s(gi,"isEmpty");function Bs(e,t){if(e==null)throw new Error(`${t} is null or undefined`)}s(Bs,"assertNotNullOrUndefined");function Vd(e){try{return{data:e(),error:null}}catch(t){return{data:null,error:t}}}s(Vd,"tryCatchSync");var Zd=ae(require("crypto"),1);var FS=128,qt,Xr,BS=s(e=>{if(e<0)throw new RangeError("Wrong ID size");try{!qt||qt.length<e?(qt=Buffer.allocUnsafe(e*FS),Zd.default.randomFillSync(qt),Xr=0):Xr+e>qt.length&&(Zd.default.randomFillSync(qt),Xr=0)}catch(t){throw qt=void 0,t}Xr+=e},"fillPool"),VS=s(e=>(BS(e|=0),qt.subarray(Xr-e,Xr)),"random"),ZS=s((e,t,n)=>{let o=(2<<31-Math.clz32(e.length-1|1))-1,r=Math.ceil(1.6*o*t/e.length);return(i=t)=>{if(i<=0)return"";let a="";for(;;){let u=n(r),c=r;for(;c--;)if(a+=e[u[c]&o]||"",a.length===i)return a}}},"customRandom"),Dh=s((e,t=21)=>ZS(e,t,VS),"customAlphabet");var HS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Ch=21,MU=f().check(Me(new RegExp(`^[0-9a-zA-Z]{${Ch}}$`))),qS=Dh(HS,Ch);var Gt=Ht(Zt(e=>e instanceof Date?e.toISOString():e),f()),ct={id:f(),created:Gt,updated:Gt},Ee=s(e=>P(oi(e)),"Nullable");function Hd(e){return P(oi(B(e)))}s(Hd,"NullableEnum");var FU=Ht(Zt(e=>e==="true"||e===!0?!0:e==="false"||e===!1?!1:void 0),P(se())),BU=P(Ms.datetime({offset:!0}).check(Rd(e=>e.slice(0,4)!=="0000"))),Vs=s(e=>Ht(Zt(t=>Array.isArray(t)?t:t!==void 0?[t]:void 0),P(V(e))),"OptionalArrayFromQuery");var HU=W(f(),G());var qd=(d=>(d.DUTCH="nl",d.ENGLISH="en",d.GERMAN="de",d.FRENCH="fr",d.SPANISH="es",d.JAPANESE="ja",d.CHINESE_SIMPLIFIED="zh",d.PORTUGUESE="pt",d.ARABIC="ar",d.CHINESE_TRADITIONAL="zh-TW",d))(qd||{});var Wt=(E=>(E.OPENAI="openai",E.OPENROUTER="openrouter",E.ANTHROPIC="anthropic",E.AZURE="azure",E.GOOGLE="google",E.ACTIVEPIECES="activepieces",E.CLOUDFLARE_GATEWAY="cloudflare-gateway",E.CUSTOM="custom",E.BEDROCK="bedrock",E.VERTEX="vertex",E.MISTRAL="mistral",E.XAI="xai",E.DEEPSEEK="deepseek",E.ZAI="zai",E.QWEN="qwen",E.MINIMAX="minimax",E.MOONSHOT="moonshot",E))(Wt||{});var O={};tt(O,{$brand:()=>On,$input:()=>ls,$output:()=>cs,NEVER:()=>Ki,TimePrecision:()=>ds,ZodAny:()=>yf,ZodArray:()=>xf,ZodBase64:()=>lu,ZodBase64URL:()=>pu,ZodBigInt:()=>on,ZodBigIntFormat:()=>mu,ZodBoolean:()=>nn,ZodCIDRv4:()=>uu,ZodCIDRv6:()=>cu,ZodCUID:()=>tu,ZodCUID2:()=>ru,ZodCatch:()=>Vf,ZodCodec:()=>bu,ZodCustom:()=>Ai,ZodCustomStringFormat:()=>tn,ZodDate:()=>bi,ZodDefault:()=>Uf,ZodDiscriminatedUnion:()=>Ef,ZodE164:()=>du,ZodEmail:()=>Ys,ZodEmoji:()=>Qs,ZodEnum:()=>Qr,ZodError:()=>GS,ZodExactOptional:()=>Df,ZodFile:()=>zf,ZodFirstPartyTypeKind:()=>tm,ZodFunction:()=>Yf,ZodGUID:()=>yi,ZodIPv4:()=>au,ZodIPv6:()=>su,ZodISODate:()=>qs,ZodISODateTime:()=>Hs,ZodISODuration:()=>Ws,ZodISOTime:()=>Gs,ZodIntersection:()=>Tf,ZodIssueCode:()=>JS,ZodJWT:()=>fu,ZodKSUID:()=>iu,ZodLazy:()=>Jf,ZodLiteral:()=>Rf,ZodMAC:()=>lf,ZodMap:()=>$f,ZodNaN:()=>Hf,ZodNanoID:()=>eu,ZodNever:()=>_f,ZodNonOptional:()=>Pu,ZodNull:()=>gf,ZodNullable:()=>Nf,ZodNumber:()=>rn,ZodNumberFormat:()=>Pr,ZodObject:()=>Ti,ZodOptional:()=>_u,ZodPipe:()=>xu,ZodPrefault:()=>Lf,ZodPromise:()=>Xf,ZodReadonly:()=>qf,ZodRealError:()=>Ye,ZodRecord:()=>Si,ZodSet:()=>Of,ZodString:()=>en,ZodStringFormat:()=>me,ZodSuccess:()=>Bf,ZodSymbol:()=>ff,ZodTemplateLiteral:()=>Wf,ZodTransform:()=>kf,ZodTuple:()=>Sf,ZodType:()=>ee,ZodULID:()=>nu,ZodURL:()=>xi,ZodUUID:()=>yt,ZodUndefined:()=>mf,ZodUnion:()=>Ii,ZodUnknown:()=>vf,ZodVoid:()=>Pf,ZodXID:()=>ou,ZodXor:()=>bf,_ZodString:()=>Xs,_default:()=>Mf,_function:()=>By,any:()=>Py,array:()=>Ei,base64:()=>ny,base64url:()=>oy,bigint:()=>gy,boolean:()=>df,catch:()=>Zf,check:()=>Vy,cidrv4:()=>ty,cidrv6:()=>ry,clone:()=>De,codec:()=>Ly,coerce:()=>rm,config:()=>xe,core:()=>nt,cuid:()=>Gh,cuid2:()=>Wh,custom:()=>Zy,date:()=>by,decode:()=>rf,decodeAsync:()=>of,describe:()=>Hy,discriminatedUnion:()=>wy,e164:()=>iy,email:()=>Uh,emoji:()=>Hh,encode:()=>tf,encodeAsync:()=>nf,endsWith:()=>pr,enum:()=>yu,exactOptional:()=>Cf,file:()=>Cy,flattenError:()=>Rr,float32:()=>py,float64:()=>dy,formatError:()=>zr,fromJSONSchema:()=>Yy,function:()=>By,getErrorMap:()=>XS,globalRegistry:()=>Ce,gt:()=>mt,gte:()=>Re,guid:()=>Mh,hash:()=>ly,hex:()=>cy,hostname:()=>uy,httpUrl:()=>Zh,includes:()=>cr,instanceof:()=>Gy,int:()=>Ks,int32:()=>fy,int64:()=>hy,intersection:()=>If,ipv4:()=>Yh,ipv6:()=>ey,iso:()=>Yr,json:()=>Jy,jwt:()=>ay,keyof:()=>Ey,ksuid:()=>Xh,lazy:()=>Kf,length:()=>Lt,literal:()=>Dy,locales:()=>Hr,looseObject:()=>Sy,looseRecord:()=>Oy,lowercase:()=>sr,lt:()=>ft,lte:()=>Ve,mac:()=>Qh,map:()=>Ry,maxLength:()=>Mt,maxSize:()=>bt,meta:()=>qy,mime:()=>dr,minLength:()=>$e,minSize:()=>gt,multipleOf:()=>xt,nan:()=>My,nanoid:()=>qh,nativeEnum:()=>ky,negative:()=>Ko,never:()=>gu,nonnegative:()=>Yo,nonoptional:()=>Ff,nonpositive:()=>Xo,normalize:()=>fr,null:()=>hf,nullable:()=>_i,nullish:()=>Ny,number:()=>pf,object:()=>Ty,optional:()=>vi,overwrite:()=>ut,parse:()=>Xd,parseAsync:()=>Yd,partialRecord:()=>$y,pipe:()=>Pi,positive:()=>Jo,prefault:()=>jf,preprocess:()=>Ky,prettifyError:()=>ta,promise:()=>Fy,property:()=>Qo,readonly:()=>Gf,record:()=>wf,refine:()=>Qf,regex:()=>Me,regexes:()=>Xe,registry:()=>po,safeDecode:()=>sf,safeDecodeAsync:()=>cf,safeEncode:()=>af,safeEncodeAsync:()=>uf,safeParse:()=>Qd,safeParseAsync:()=>ef,set:()=>zy,setErrorMap:()=>KS,size:()=>Ut,slugify:()=>Gr,startsWith:()=>lr,strictObject:()=>Iy,string:()=>Js,stringFormat:()=>sy,stringbool:()=>Wy,success:()=>Uy,superRefine:()=>em,symbol:()=>vy,templateLiteral:()=>jy,toJSONSchema:()=>ri,toLowerCase:()=>gr,toUpperCase:()=>hr,transform:()=>vu,treeifyError:()=>ea,trim:()=>mr,tuple:()=>Af,uint32:()=>my,uint64:()=>yy,ulid:()=>Jh,undefined:()=>_y,union:()=>hu,unknown:()=>_r,uppercase:()=>ur,url:()=>Vh,util:()=>w,uuid:()=>Lh,uuidv4:()=>jh,uuidv6:()=>Fh,uuidv7:()=>Bh,void:()=>xy,xid:()=>Kh,xor:()=>Ay});var hi={};tt(hi,{ZodAny:()=>yf,ZodArray:()=>xf,ZodBase64:()=>lu,ZodBase64URL:()=>pu,ZodBigInt:()=>on,ZodBigIntFormat:()=>mu,ZodBoolean:()=>nn,ZodCIDRv4:()=>uu,ZodCIDRv6:()=>cu,ZodCUID:()=>tu,ZodCUID2:()=>ru,ZodCatch:()=>Vf,ZodCodec:()=>bu,ZodCustom:()=>Ai,ZodCustomStringFormat:()=>tn,ZodDate:()=>bi,ZodDefault:()=>Uf,ZodDiscriminatedUnion:()=>Ef,ZodE164:()=>du,ZodEmail:()=>Ys,ZodEmoji:()=>Qs,ZodEnum:()=>Qr,ZodExactOptional:()=>Df,ZodFile:()=>zf,ZodFunction:()=>Yf,ZodGUID:()=>yi,ZodIPv4:()=>au,ZodIPv6:()=>su,ZodIntersection:()=>Tf,ZodJWT:()=>fu,ZodKSUID:()=>iu,ZodLazy:()=>Jf,ZodLiteral:()=>Rf,ZodMAC:()=>lf,ZodMap:()=>$f,ZodNaN:()=>Hf,ZodNanoID:()=>eu,ZodNever:()=>_f,ZodNonOptional:()=>Pu,ZodNull:()=>gf,ZodNullable:()=>Nf,ZodNumber:()=>rn,ZodNumberFormat:()=>Pr,ZodObject:()=>Ti,ZodOptional:()=>_u,ZodPipe:()=>xu,ZodPrefault:()=>Lf,ZodPromise:()=>Xf,ZodReadonly:()=>qf,ZodRecord:()=>Si,ZodSet:()=>Of,ZodString:()=>en,ZodStringFormat:()=>me,ZodSuccess:()=>Bf,ZodSymbol:()=>ff,ZodTemplateLiteral:()=>Wf,ZodTransform:()=>kf,ZodTuple:()=>Sf,ZodType:()=>ee,ZodULID:()=>nu,ZodURL:()=>xi,ZodUUID:()=>yt,ZodUndefined:()=>mf,ZodUnion:()=>Ii,ZodUnknown:()=>vf,ZodVoid:()=>Pf,ZodXID:()=>ou,ZodXor:()=>bf,_ZodString:()=>Xs,_default:()=>Mf,_function:()=>By,any:()=>Py,array:()=>Ei,base64:()=>ny,base64url:()=>oy,bigint:()=>gy,boolean:()=>df,catch:()=>Zf,check:()=>Vy,cidrv4:()=>ty,cidrv6:()=>ry,codec:()=>Ly,cuid:()=>Gh,cuid2:()=>Wh,custom:()=>Zy,date:()=>by,describe:()=>Hy,discriminatedUnion:()=>wy,e164:()=>iy,email:()=>Uh,emoji:()=>Hh,enum:()=>yu,exactOptional:()=>Cf,file:()=>Cy,float32:()=>py,float64:()=>dy,function:()=>By,guid:()=>Mh,hash:()=>ly,hex:()=>cy,hostname:()=>uy,httpUrl:()=>Zh,instanceof:()=>Gy,int:()=>Ks,int32:()=>fy,int64:()=>hy,intersection:()=>If,ipv4:()=>Yh,ipv6:()=>ey,json:()=>Jy,jwt:()=>ay,keyof:()=>Ey,ksuid:()=>Xh,lazy:()=>Kf,literal:()=>Dy,looseObject:()=>Sy,looseRecord:()=>Oy,mac:()=>Qh,map:()=>Ry,meta:()=>qy,nan:()=>My,nanoid:()=>qh,nativeEnum:()=>ky,never:()=>gu,nonoptional:()=>Ff,null:()=>hf,nullable:()=>_i,nullish:()=>Ny,number:()=>pf,object:()=>Ty,optional:()=>vi,partialRecord:()=>$y,pipe:()=>Pi,prefault:()=>jf,preprocess:()=>Ky,promise:()=>Fy,readonly:()=>Gf,record:()=>wf,refine:()=>Qf,set:()=>zy,strictObject:()=>Iy,string:()=>Js,stringFormat:()=>sy,stringbool:()=>Wy,success:()=>Uy,superRefine:()=>em,symbol:()=>vy,templateLiteral:()=>jy,transform:()=>vu,tuple:()=>Af,uint32:()=>my,uint64:()=>yy,ulid:()=>Jh,undefined:()=>_y,union:()=>hu,unknown:()=>_r,url:()=>Vh,uuid:()=>Lh,uuidv4:()=>jh,uuidv6:()=>Fh,uuidv7:()=>Bh,void:()=>xy,xid:()=>Kh,xor:()=>Ay});var Zs={};tt(Zs,{endsWith:()=>pr,gt:()=>mt,gte:()=>Re,includes:()=>cr,length:()=>Lt,lowercase:()=>sr,lt:()=>ft,lte:()=>Ve,maxLength:()=>Mt,maxSize:()=>bt,mime:()=>dr,minLength:()=>$e,minSize:()=>gt,multipleOf:()=>xt,negative:()=>Ko,nonnegative:()=>Yo,nonpositive:()=>Xo,normalize:()=>fr,overwrite:()=>ut,positive:()=>Jo,property:()=>Qo,regex:()=>Me,size:()=>Ut,slugify:()=>Gr,startsWith:()=>lr,toLowerCase:()=>gr,toUpperCase:()=>hr,trim:()=>mr,uppercase:()=>ur});var Yr={};tt(Yr,{ZodISODate:()=>qs,ZodISODateTime:()=>Hs,ZodISODuration:()=>Ws,ZodISOTime:()=>Gs,date:()=>Wd,datetime:()=>Gd,duration:()=>Kd,time:()=>Jd});var Hs=y("ZodISODateTime",(e,t)=>{Bn.init(e,t),me.init(e,t)});function Gd(e){return Co(Hs,e)}s(Gd,"datetime");var qs=y("ZodISODate",(e,t)=>{Vn.init(e,t),me.init(e,t)});function Wd(e){return No(qs,e)}s(Wd,"date");var Gs=y("ZodISOTime",(e,t)=>{Zn.init(e,t),me.init(e,t)});function Jd(e){return Uo(Gs,e)}s(Jd,"time");var Ws=y("ZodISODuration",(e,t)=>{Hn.init(e,t),me.init(e,t)});function Kd(e){return Mo(Ws,e)}s(Kd,"duration");var Nh=s((e,t)=>{Un.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:s(n=>zr(e,n),"value")},flatten:{value:s(n=>Rr(e,n),"value")},addIssue:{value:s(n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,wr,2)},"value")},addIssues:{value:s(n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,wr,2)},"value")},isEmpty:{get(){return e.issues.length===0}}})},"initializer"),GS=y("ZodError",Nh),Ye=y("ZodError",Nh,{Parent:Error});var Xd=kr(Ye),Yd=Dr(Ye),Qd=Cr(Ye),ef=Ur(Ye),tf=ra(Ye),rf=na(Ye),nf=oa(Ye),of=ia(Ye),af=aa(Ye),sf=sa(Ye),uf=ua(Ye),cf=ca(Ye);var ee=y("ZodType",(e,t)=>(H.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Wr(e,"input"),output:Wr(e,"output")}}),e.toJSONSchema=qp(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(w.mergeDefs(t,{checks:[...t.checks??[],...n.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0}),e.with=e.check,e.clone=(n,o)=>De(e,n,o),e.brand=()=>e,e.register=((n,o)=>(n.add(e,o),e)),e.parse=(n,o)=>Xd(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>Qd(e,n,o),e.parseAsync=async(n,o)=>Yd(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>ef(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>tf(e,n,o),e.decode=(n,o)=>rf(e,n,o),e.encodeAsync=async(n,o)=>nf(e,n,o),e.decodeAsync=async(n,o)=>of(e,n,o),e.safeEncode=(n,o)=>af(e,n,o),e.safeDecode=(n,o)=>sf(e,n,o),e.safeEncodeAsync=async(n,o)=>uf(e,n,o),e.safeDecodeAsync=async(n,o)=>cf(e,n,o),e.refine=(n,o)=>e.check(Qf(n,o)),e.superRefine=n=>e.check(em(n)),e.overwrite=n=>e.check(ut(n)),e.optional=()=>vi(e),e.exactOptional=()=>Cf(e),e.nullable=()=>_i(e),e.nullish=()=>vi(_i(e)),e.nonoptional=n=>Ff(e,n),e.array=()=>Ei(e),e.or=n=>hu([e,n]),e.and=n=>If(e,n),e.transform=n=>Pi(e,vu(n)),e.default=n=>Mf(e,n),e.prefault=n=>jf(e,n),e.catch=n=>Zf(e,n),e.pipe=n=>Pi(e,n),e.readonly=()=>Gf(e),e.describe=n=>{let o=e.clone();return Ce.add(o,{description:n}),o},Object.defineProperty(e,"description",{get(){return Ce.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Ce.get(e);let o=e.clone();return Ce.add(o,n[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),Xs=y("_ZodString",(e,t)=>{Pt.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Gp(e,o,r,i);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...o)=>e.check(Me(...o)),e.includes=(...o)=>e.check(cr(...o)),e.startsWith=(...o)=>e.check(lr(...o)),e.endsWith=(...o)=>e.check(pr(...o)),e.min=(...o)=>e.check($e(...o)),e.max=(...o)=>e.check(Mt(...o)),e.length=(...o)=>e.check(Lt(...o)),e.nonempty=(...o)=>e.check($e(1,...o)),e.lowercase=o=>e.check(sr(o)),e.uppercase=o=>e.check(ur(o)),e.trim=()=>e.check(mr()),e.normalize=(...o)=>e.check(fr(...o)),e.toLowerCase=()=>e.check(gr()),e.toUpperCase=()=>e.check(hr()),e.slugify=()=>e.check(Gr())}),en=y("ZodString",(e,t)=>{Pt.init(e,t),Xs.init(e,t),e.email=n=>e.check(go(Ys,n)),e.url=n=>e.check(ar(xi,n)),e.jwt=n=>e.check(Do(fu,n)),e.emoji=n=>e.check(Po(Qs,n)),e.guid=n=>e.check(qr(yi,n)),e.uuid=n=>e.check(ho(yt,n)),e.uuidv4=n=>e.check(yo(yt,n)),e.uuidv6=n=>e.check(vo(yt,n)),e.uuidv7=n=>e.check(_o(yt,n)),e.nanoid=n=>e.check(xo(eu,n)),e.guid=n=>e.check(qr(yi,n)),e.cuid=n=>e.check(bo(tu,n)),e.cuid2=n=>e.check(Eo(ru,n)),e.ulid=n=>e.check(To(nu,n)),e.base64=n=>e.check(Ro(lu,n)),e.base64url=n=>e.check(zo(pu,n)),e.xid=n=>e.check(Io(ou,n)),e.ksuid=n=>e.check(So(iu,n)),e.ipv4=n=>e.check(Ao(au,n)),e.ipv6=n=>e.check(wo(su,n)),e.cidrv4=n=>e.check($o(uu,n)),e.cidrv6=n=>e.check(Oo(cu,n)),e.e164=n=>e.check(ko(du,n)),e.datetime=n=>e.check(Gd(n)),e.date=n=>e.check(Wd(n)),e.time=n=>e.check(Jd(n)),e.duration=n=>e.check(Kd(n))});function Js(e){return fo(en,e)}s(Js,"string");var me=y("ZodStringFormat",(e,t)=>{pe.init(e,t),Xs.init(e,t)}),Ys=y("ZodEmail",(e,t)=>{xa.init(e,t),me.init(e,t)});function Uh(e){return go(Ys,e)}s(Uh,"email");var yi=y("ZodGUID",(e,t)=>{_a.init(e,t),me.init(e,t)});function Mh(e){return qr(yi,e)}s(Mh,"guid");var yt=y("ZodUUID",(e,t)=>{Pa.init(e,t),me.init(e,t)});function Lh(e){return ho(yt,e)}s(Lh,"uuid");function jh(e){return yo(yt,e)}s(jh,"uuidv4");function Fh(e){return vo(yt,e)}s(Fh,"uuidv6");function Bh(e){return _o(yt,e)}s(Bh,"uuidv7");var xi=y("ZodURL",(e,t)=>{Fn.init(e,t),me.init(e,t)});function Vh(e){return ar(xi,e)}s(Vh,"url");function Zh(e){return ar(xi,{protocol:/^https?$/,hostname:Xe.domain,...w.normalizeParams(e)})}s(Zh,"httpUrl");var Qs=y("ZodEmoji",(e,t)=>{ba.init(e,t),me.init(e,t)});function Hh(e){return Po(Qs,e)}s(Hh,"emoji");var eu=y("ZodNanoID",(e,t)=>{Ea.init(e,t),me.init(e,t)});function qh(e){return xo(eu,e)}s(qh,"nanoid");var tu=y("ZodCUID",(e,t)=>{Ta.init(e,t),me.init(e,t)});function Gh(e){return bo(tu,e)}s(Gh,"cuid");var ru=y("ZodCUID2",(e,t)=>{Ia.init(e,t),me.init(e,t)});function Wh(e){return Eo(ru,e)}s(Wh,"cuid2");var nu=y("ZodULID",(e,t)=>{Sa.init(e,t),me.init(e,t)});function Jh(e){return To(nu,e)}s(Jh,"ulid");var ou=y("ZodXID",(e,t)=>{Aa.init(e,t),me.init(e,t)});function Kh(e){return Io(ou,e)}s(Kh,"xid");var iu=y("ZodKSUID",(e,t)=>{wa.init(e,t),me.init(e,t)});function Xh(e){return So(iu,e)}s(Xh,"ksuid");var au=y("ZodIPv4",(e,t)=>{$a.init(e,t),me.init(e,t)});function Yh(e){return Ao(au,e)}s(Yh,"ipv4");var lf=y("ZodMAC",(e,t)=>{Ra.init(e,t),me.init(e,t)});function Qh(e){return ps(lf,e)}s(Qh,"mac");var su=y("ZodIPv6",(e,t)=>{Oa.init(e,t),me.init(e,t)});function ey(e){return wo(su,e)}s(ey,"ipv6");var uu=y("ZodCIDRv4",(e,t)=>{za.init(e,t),me.init(e,t)});function ty(e){return $o(uu,e)}s(ty,"cidrv4");var cu=y("ZodCIDRv6",(e,t)=>{ka.init(e,t),me.init(e,t)});function ry(e){return Oo(cu,e)}s(ry,"cidrv6");var lu=y("ZodBase64",(e,t)=>{Da.init(e,t),me.init(e,t)});function ny(e){return Ro(lu,e)}s(ny,"base64");var pu=y("ZodBase64URL",(e,t)=>{Ca.init(e,t),me.init(e,t)});function oy(e){return zo(pu,e)}s(oy,"base64url");var du=y("ZodE164",(e,t)=>{Na.init(e,t),me.init(e,t)});function iy(e){return ko(du,e)}s(iy,"e164");var fu=y("ZodJWT",(e,t)=>{Ua.init(e,t),me.init(e,t)});function ay(e){return Do(fu,e)}s(ay,"jwt");var tn=y("ZodCustomStringFormat",(e,t)=>{Ma.init(e,t),me.init(e,t)});function sy(e,t,n={}){return yr(tn,e,t,n)}s(sy,"stringFormat");function uy(e){return yr(tn,"hostname",Xe.hostname,e)}s(uy,"hostname");function cy(e){return yr(tn,"hex",Xe.hex,e)}s(cy,"hex");function ly(e,t){let n=t?.enc??"hex",o=`${e}_${n}`,r=Xe[o];if(!r)throw new Error(`Unrecognized hash format: ${o}`);return yr(tn,o,r,t)}s(ly,"hash");var rn=y("ZodNumber",(e,t)=>{jr.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Wp(e,o,r,i),e.gt=(o,r)=>e.check(mt(o,r)),e.gte=(o,r)=>e.check(Re(o,r)),e.min=(o,r)=>e.check(Re(o,r)),e.lt=(o,r)=>e.check(ft(o,r)),e.lte=(o,r)=>e.check(Ve(o,r)),e.max=(o,r)=>e.check(Ve(o,r)),e.int=o=>e.check(Ks(o)),e.safe=o=>e.check(Ks(o)),e.positive=o=>e.check(mt(0,o)),e.nonnegative=o=>e.check(Re(0,o)),e.negative=o=>e.check(ft(0,o)),e.nonpositive=o=>e.check(Ve(0,o)),e.multipleOf=(o,r)=>e.check(xt(o,r)),e.step=(o,r)=>e.check(xt(o,r)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function pf(e){return Lo(rn,e)}s(pf,"number");var Pr=y("ZodNumberFormat",(e,t)=>{qn.init(e,t),rn.init(e,t)});function Ks(e){return Fo(Pr,e)}s(Ks,"int");function py(e){return fs(Pr,e)}s(py,"float32");function dy(e){return ms(Pr,e)}s(dy,"float64");function fy(e){return gs(Pr,e)}s(fy,"int32");function my(e){return hs(Pr,e)}s(my,"uint32");var nn=y("ZodBoolean",(e,t)=>{or.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Jp(e,n,o,r)});function df(e){return Bo(nn,e)}s(df,"boolean");var on=y("ZodBigInt",(e,t)=>{Fr.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Kp(e,o,r,i),e.gte=(o,r)=>e.check(Re(o,r)),e.min=(o,r)=>e.check(Re(o,r)),e.gt=(o,r)=>e.check(mt(o,r)),e.gte=(o,r)=>e.check(Re(o,r)),e.min=(o,r)=>e.check(Re(o,r)),e.lt=(o,r)=>e.check(ft(o,r)),e.lte=(o,r)=>e.check(Ve(o,r)),e.max=(o,r)=>e.check(Ve(o,r)),e.positive=o=>e.check(mt(BigInt(0),o)),e.negative=o=>e.check(ft(BigInt(0),o)),e.nonpositive=o=>e.check(Ve(BigInt(0),o)),e.nonnegative=o=>e.check(Re(BigInt(0),o)),e.multipleOf=(o,r)=>e.check(xt(o,r));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function gy(e){return ys(on,e)}s(gy,"bigint");var mu=y("ZodBigIntFormat",(e,t)=>{La.init(e,t),on.init(e,t)});function hy(e){return vs(mu,e)}s(hy,"int64");function yy(e){return _s(mu,e)}s(yy,"uint64");var ff=y("ZodSymbol",(e,t)=>{ja.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Xp(e,n,o,r)});function vy(e){return Ps(ff,e)}s(vy,"symbol");var mf=y("ZodUndefined",(e,t)=>{Fa.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Qp(e,n,o,r)});function _y(e){return xs(mf,e)}s(_y,"_undefined");var gf=y("ZodNull",(e,t)=>{Ba.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Yp(e,n,o,r)});function hf(e){return bs(gf,e)}s(hf,"_null");var yf=y("ZodAny",(e,t)=>{Gn.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>rd(e,n,o,r)});function Py(){return Ho(yf)}s(Py,"any");var vf=y("ZodUnknown",(e,t)=>{Wn.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>nd(e,n,o,r)});function _r(){return qo(vf)}s(_r,"unknown");var _f=y("ZodNever",(e,t)=>{Va.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>td(e,n,o,r)});function gu(e){return Es(_f,e)}s(gu,"never");var Pf=y("ZodVoid",(e,t)=>{Jn.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ed(e,n,o,r)});function xy(e){return Go(Pf,e)}s(xy,"_void");var bi=y("ZodDate",(e,t)=>{Kn.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,r,i)=>od(e,o,r,i),e.min=(o,r)=>e.check(Re(o,r)),e.max=(o,r)=>e.check(Ve(o,r));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function by(e){return Ts(bi,e)}s(by,"date");var xf=y("ZodArray",(e,t)=>{Xn.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>hd(e,n,o,r),e.element=t.element,e.min=(n,o)=>e.check($e(n,o)),e.nonempty=n=>e.check($e(1,n)),e.max=(n,o)=>e.check(Mt(n,o)),e.length=(n,o)=>e.check(Lt(n,o)),e.unwrap=()=>e.element});function Ei(e,t){return Hp(xf,e,t)}s(Ei,"array");function Ey(e){let t=e._zod.def.shape;return yu(Object.keys(t))}s(Ey,"keyof");var Ti=y("ZodObject",(e,t)=>{Yl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>yd(e,n,o,r),w.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>yu(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:_r()}),e.loose=()=>e.clone({...e._zod.def,catchall:_r()}),e.strict=()=>e.clone({...e._zod.def,catchall:gu()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>w.extend(e,n),e.safeExtend=n=>w.safeExtend(e,n),e.merge=n=>w.merge(e,n),e.pick=n=>w.pick(e,n),e.omit=n=>w.omit(e,n),e.partial=(...n)=>w.partial(_u,e,n[0]),e.required=(...n)=>w.required(Pu,e,n[0])});function Ty(e,t){let n={type:"object",shape:e??{},...w.normalizeParams(t)};return new Ti(n)}s(Ty,"object");function Iy(e,t){return new Ti({type:"object",shape:e,catchall:gu(),...w.normalizeParams(t)})}s(Iy,"strictObject");function Sy(e,t){return new Ti({type:"object",shape:e,catchall:_r(),...w.normalizeParams(t)})}s(Sy,"looseObject");var Ii=y("ZodUnion",(e,t)=>{ir.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>zs(e,n,o,r),e.options=t.options});function hu(e,t){return new Ii({type:"union",options:e,...w.normalizeParams(t)})}s(hu,"union");var bf=y("ZodXor",(e,t)=>{Ii.init(e,t),Ha.init(e,t),e._zod.processJSONSchema=(n,o,r)=>zs(e,n,o,r),e.options=t.options});function Ay(e,t){return new bf({type:"union",options:e,inclusive:!1,...w.normalizeParams(t)})}s(Ay,"xor");var Ef=y("ZodDiscriminatedUnion",(e,t)=>{Ii.init(e,t),Yn.init(e,t)});function wy(e,t,n){return new Ef({type:"union",options:t,discriminator:e,...w.normalizeParams(n)})}s(wy,"discriminatedUnion");var Tf=y("ZodIntersection",(e,t)=>{qa.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>vd(e,n,o,r)});function If(e,t){return new Tf({type:"intersection",left:e,right:t})}s(If,"intersection");var Sf=y("ZodTuple",(e,t)=>{Qn.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>_d(e,n,o,r),e.rest=n=>e.clone({...e._zod.def,rest:n})});function Af(e,t,n){let o=t instanceof H,r=o?n:t,i=o?t:null;return new Sf({type:"tuple",items:e,rest:i,...w.normalizeParams(r)})}s(Af,"tuple");var Si=y("ZodRecord",(e,t)=>{eo.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Pd(e,n,o,r),e.keyType=t.keyType,e.valueType=t.valueType});function wf(e,t,n){return new Si({type:"record",keyType:e,valueType:t,...w.normalizeParams(n)})}s(wf,"record");function $y(e,t,n){let o=De(e);return o._zod.values=void 0,new Si({type:"record",keyType:o,valueType:t,...w.normalizeParams(n)})}s($y,"partialRecord");function Oy(e,t,n){return new Si({type:"record",keyType:e,valueType:t,mode:"loose",...w.normalizeParams(n)})}s(Oy,"looseRecord");var $f=y("ZodMap",(e,t)=>{Ga.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>md(e,n,o,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(gt(...n)),e.nonempty=n=>e.check(gt(1,n)),e.max=(...n)=>e.check(bt(...n)),e.size=(...n)=>e.check(Ut(...n))});function Ry(e,t,n){return new $f({type:"map",keyType:e,valueType:t,...w.normalizeParams(n)})}s(Ry,"map");var Of=y("ZodSet",(e,t)=>{Wa.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>gd(e,n,o,r),e.min=(...n)=>e.check(gt(...n)),e.nonempty=n=>e.check(gt(1,n)),e.max=(...n)=>e.check(bt(...n)),e.size=(...n)=>e.check(Ut(...n))});function zy(e,t){return new Of({type:"set",valueType:e,...w.normalizeParams(t)})}s(zy,"set");var Qr=y("ZodEnum",(e,t)=>{to.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,r,i)=>id(e,o,r,i),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(o,r)=>{let i={};for(let a of o)if(n.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Qr({...t,checks:[],...w.normalizeParams(r),entries:i})},e.exclude=(o,r)=>{let i={...t.entries};for(let a of o)if(n.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new Qr({...t,checks:[],...w.normalizeParams(r),entries:i})}});function yu(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Qr({type:"enum",entries:n,...w.normalizeParams(t)})}s(yu,"_enum");function ky(e,t){return new Qr({type:"enum",entries:e,...w.normalizeParams(t)})}s(ky,"nativeEnum");var Rf=y("ZodLiteral",(e,t)=>{ro.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ad(e,n,o,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Dy(e,t){return new Rf({type:"literal",values:Array.isArray(e)?e:[e],...w.normalizeParams(t)})}s(Dy,"literal");var zf=y("ZodFile",(e,t)=>{Ja.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>cd(e,n,o,r),e.min=(n,o)=>e.check(gt(n,o)),e.max=(n,o)=>e.check(bt(n,o)),e.mime=(n,o)=>e.check(dr(Array.isArray(n)?n:[n],o))});function Cy(e){return Ss(zf,e)}s(Cy,"file");var kf=y("ZodTransform",(e,t)=>{no.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>fd(e,n,o,r),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new zt(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(w.issue(i,n.value,t));else{let a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(w.issue(a))}};let r=t.transform(n.value,n);return r instanceof Promise?r.then(i=>(n.value=i,n)):(n.value=r,n)}});function vu(e){return new kf({type:"transform",transform:e})}s(vu,"transform");var _u=y("ZodOptional",(e,t)=>{Br.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ks(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function vi(e){return new _u({type:"optional",innerType:e})}s(vi,"optional");var Df=y("ZodExactOptional",(e,t)=>{Ka.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ks(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Cf(e){return new Df({type:"optional",innerType:e})}s(Cf,"exactOptional");var Nf=y("ZodNullable",(e,t)=>{oo.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>xd(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function _i(e){return new Nf({type:"nullable",innerType:e})}s(_i,"nullable");function Ny(e){return vi(_i(e))}s(Ny,"nullish");var Uf=y("ZodDefault",(e,t)=>{Xa.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ed(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Mf(e,t){return new Uf({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():w.shallowClone(t)}})}s(Mf,"_default");var Lf=y("ZodPrefault",(e,t)=>{Ya.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Td(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function jf(e,t){return new Lf({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():w.shallowClone(t)}})}s(jf,"prefault");var Pu=y("ZodNonOptional",(e,t)=>{Qa.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>bd(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Ff(e,t){return new Pu({type:"nonoptional",innerType:e,...w.normalizeParams(t)})}s(Ff,"nonoptional");var Bf=y("ZodSuccess",(e,t)=>{es.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ld(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Uy(e){return new Bf({type:"success",innerType:e})}s(Uy,"success");var Vf=y("ZodCatch",(e,t)=>{ts.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Id(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Zf(e,t){return new Vf({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}s(Zf,"_catch");var Hf=y("ZodNaN",(e,t)=>{rs.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>sd(e,n,o,r)});function My(e){return Is(Hf,e)}s(My,"nan");var xu=y("ZodPipe",(e,t)=>{io.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Sd(e,n,o,r),e.in=t.in,e.out=t.out});function Pi(e,t){return new xu({type:"pipe",in:e,out:t})}s(Pi,"pipe");var bu=y("ZodCodec",(e,t)=>{xu.init(e,t),Vr.init(e,t)});function Ly(e,t,n){return new bu({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}s(Ly,"codec");var qf=y("ZodReadonly",(e,t)=>{ns.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ad(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Gf(e){return new qf({type:"readonly",innerType:e})}s(Gf,"readonly");var Wf=y("ZodTemplateLiteral",(e,t)=>{os.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ud(e,n,o,r)});function jy(e,t){return new Wf({type:"template_literal",parts:e,...w.normalizeParams(t)})}s(jy,"templateLiteral");var Jf=y("ZodLazy",(e,t)=>{ss.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>$d(e,n,o,r),e.unwrap=()=>e._zod.def.getter()});function Kf(e){return new Jf({type:"lazy",getter:e})}s(Kf,"lazy");var Xf=y("ZodPromise",(e,t)=>{as.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>wd(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Fy(e){return new Xf({type:"promise",innerType:e})}s(Fy,"promise");var Yf=y("ZodFunction",(e,t)=>{is.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>dd(e,n,o,r)});function By(e){return new Yf({type:"function",input:Array.isArray(e?.input)?Af(e?.input):e?.input??Ei(_r()),output:e?.output??_r()})}s(By,"_function");var Ai=y("ZodCustom",(e,t)=>{ao.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,o,r)=>pd(e,n,o,r)});function Vy(e){let t=new fe({check:"custom"});return t._zod.check=e,t}s(Vy,"check");function Zy(e,t){return ei(Ai,e??(()=>!0),t)}s(Zy,"custom");function Qf(e,t={}){return ti(Ai,e,t)}s(Qf,"refine");function em(e){return As(e)}s(em,"superRefine");var Hy=ws,qy=$s;function Gy(e,t={}){let n=new Ai({type:"custom",check:"custom",fn:s(o=>o instanceof e,"fn"),abort:!0,...w.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:n,path:[...n._zod.def.path??[]]})},n}s(Gy,"_instanceof");var Wy=s((...e)=>Os({Codec:bu,Boolean:nn,String:en},...e),"stringbool");function Jy(e){let t=Kf(()=>hu([Js(e),pf(),df(),hf(),Ei(t),wf(Js(),t)]));return t}s(Jy,"json");function Ky(e,t){return Pi(vu(e),t)}s(Ky,"preprocess");var JS={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 KS(e){xe({customError:e})}s(KS,"setErrorMap");function XS(){return xe().customError}s(XS,"getErrorMap");var tm;tm||(tm={});var z={...hi,...Zs,iso:Yr},YS=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 QS(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}s(QS,"detectVersion");function eA(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let o=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===o){let r=n[1];if(!r||!t.defs[r])throw new Error(`Reference not found: ${e}`);return t.defs[r]}throw new Error(`Reference not found: ${e}`)}s(eA,"resolveRef");function Xy(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return z.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let r=e.$ref;if(t.refs.has(r))return t.refs.get(r);if(t.processing.has(r))return z.lazy(()=>{if(!t.refs.has(r))throw new Error(`Circular reference not resolved: ${r}`);return t.refs.get(r)});t.processing.add(r);let i=eA(r,t),a=Fe(i,t);return t.refs.set(r,a),t.processing.delete(r),a}if(e.enum!==void 0){let r=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&r.length===1&&r[0]===null)return z.null();if(r.length===0)return z.never();if(r.length===1)return z.literal(r[0]);if(r.every(a=>typeof a=="string"))return z.enum(r);let i=r.map(a=>z.literal(a));return i.length<2?i[0]:z.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return z.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(i=>{let a={...e,type:i};return Xy(a,t)});return r.length===0?z.never():r.length===1?r[0]:z.union(r)}if(!n)return z.any();let o;switch(n){case"string":{let r=z.string();if(e.format){let i=e.format;i==="email"?r=r.check(z.email()):i==="uri"||i==="uri-reference"?r=r.check(z.url()):i==="uuid"||i==="guid"?r=r.check(z.uuid()):i==="date-time"?r=r.check(z.iso.datetime()):i==="date"?r=r.check(z.iso.date()):i==="time"?r=r.check(z.iso.time()):i==="duration"?r=r.check(z.iso.duration()):i==="ipv4"?r=r.check(z.ipv4()):i==="ipv6"?r=r.check(z.ipv6()):i==="mac"?r=r.check(z.mac()):i==="cidr"?r=r.check(z.cidrv4()):i==="cidr-v6"?r=r.check(z.cidrv6()):i==="base64"?r=r.check(z.base64()):i==="base64url"?r=r.check(z.base64url()):i==="e164"?r=r.check(z.e164()):i==="jwt"?r=r.check(z.jwt()):i==="emoji"?r=r.check(z.emoji()):i==="nanoid"?r=r.check(z.nanoid()):i==="cuid"?r=r.check(z.cuid()):i==="cuid2"?r=r.check(z.cuid2()):i==="ulid"?r=r.check(z.ulid()):i==="xid"?r=r.check(z.xid()):i==="ksuid"&&(r=r.check(z.ksuid()))}typeof e.minLength=="number"&&(r=r.min(e.minLength)),typeof e.maxLength=="number"&&(r=r.max(e.maxLength)),e.pattern&&(r=r.regex(new RegExp(e.pattern))),o=r;break}case"number":case"integer":{let r=n==="integer"?z.number().int():z.number();typeof e.minimum=="number"&&(r=r.min(e.minimum)),typeof e.maximum=="number"&&(r=r.max(e.maximum)),typeof e.exclusiveMinimum=="number"?r=r.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(r=r.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?r=r.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(r=r.lt(e.maximum)),typeof e.multipleOf=="number"&&(r=r.multipleOf(e.multipleOf)),o=r;break}case"boolean":{o=z.boolean();break}case"null":{o=z.null();break}case"object":{let r={},i=e.properties||{},a=new Set(e.required||[]);for(let[c,l]of Object.entries(i)){let d=Fe(l,t);r[c]=a.has(c)?d:d.optional()}if(e.propertyNames){let c=Fe(e.propertyNames,t),l=e.additionalProperties&&typeof e.additionalProperties=="object"?Fe(e.additionalProperties,t):z.any();if(Object.keys(r).length===0){o=z.record(c,l);break}let d=z.object(r).passthrough(),h=z.looseRecord(c,l);o=z.intersection(d,h);break}if(e.patternProperties){let c=e.patternProperties,l=Object.keys(c),d=[];for(let m of l){let p=Fe(c[m],t),g=z.string().regex(new RegExp(m));d.push(z.looseRecord(g,p))}let h=[];if(Object.keys(r).length>0&&h.push(z.object(r).passthrough()),h.push(...d),h.length===0)o=z.object({}).passthrough();else if(h.length===1)o=h[0];else{let m=z.intersection(h[0],h[1]);for(let p=2;p<h.length;p++)m=z.intersection(m,h[p]);o=m}break}let u=z.object(r);e.additionalProperties===!1?o=u.strict():typeof e.additionalProperties=="object"?o=u.catchall(Fe(e.additionalProperties,t)):o=u.passthrough();break}case"array":{let r=e.prefixItems,i=e.items;if(r&&Array.isArray(r)){let a=r.map(c=>Fe(c,t)),u=i&&typeof i=="object"&&!Array.isArray(i)?Fe(i,t):void 0;u?o=z.tuple(a).rest(u):o=z.tuple(a),typeof e.minItems=="number"&&(o=o.check(z.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(z.maxLength(e.maxItems)))}else if(Array.isArray(i)){let a=i.map(c=>Fe(c,t)),u=e.additionalItems&&typeof e.additionalItems=="object"?Fe(e.additionalItems,t):void 0;u?o=z.tuple(a).rest(u):o=z.tuple(a),typeof e.minItems=="number"&&(o=o.check(z.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(z.maxLength(e.maxItems)))}else if(i!==void 0){let a=Fe(i,t),u=z.array(a);typeof e.minItems=="number"&&(u=u.min(e.minItems)),typeof e.maxItems=="number"&&(u=u.max(e.maxItems)),o=u}else o=z.array(z.any());break}default:throw new Error(`Unsupported type: ${n}`)}return e.description&&(o=o.describe(e.description)),e.default!==void 0&&(o=o.default(e.default)),o}s(Xy,"convertBaseSchema");function Fe(e,t){if(typeof e=="boolean")return e?z.any():z.never();let n=Xy(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let u=e.anyOf.map(l=>Fe(l,t)),c=z.union(u);n=o?z.intersection(n,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let u=e.oneOf.map(l=>Fe(l,t)),c=z.xor(u);n=o?z.intersection(n,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=o?n:z.any();else{let u=o?n:Fe(e.allOf[0],t),c=o?0:1;for(let l=c;l<e.allOf.length;l++)u=z.intersection(u,Fe(e.allOf[l],t));n=u}e.nullable===!0&&t.version==="openapi-3.0"&&(n=z.nullable(n)),e.readOnly===!0&&(n=z.readonly(n));let r={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let u of i)u in e&&(r[u]=e[u]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let u of a)u in e&&(r[u]=e[u]);for(let u of Object.keys(e))YS.has(u)||(r[u]=e[u]);return Object.keys(r).length>0&&t.registry.add(n,r),n}s(Fe,"convertSchema");function Yy(e,t){if(typeof e=="boolean")return e?z.any():z.never();let n=QS(e,t?.defaultTarget),o=e.$defs||e.definitions||{},r={version:n,defs:o,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??Ce};return Fe(e,r)}s(Yy,"fromJSONSchema");var rm={};tt(rm,{bigint:()=>oA,boolean:()=>nA,date:()=>iA,number:()=>rA,string:()=>tA});function tA(e){return mo(en,e)}s(tA,"string");function rA(e){return jo(rn,e)}s(rA,"number");function nA(e){return Vo(nn,e)}s(nA,"boolean");function oA(e){return Zo(on,e)}s(oA,"bigint");function iA(e){return Wo(bi,e)}s(iA,"date");xe(so());var nm={required:"required",invalidGitRepoSlug:"invalidGitRepoSlug",invalidGitRepoBranch:"invalidGitRepoBranch",invalidGitRepoRemoteUrl:"invalidGitRepoRemoteUrl",invalidExternalId:"invalidExternalId",invalidFileName:"invalidFileName",messageRequiresContentOrFiles:"messageRequiresContentOrFiles",agentConfigTooLarge:"agentConfigTooLarge",invalidGcpResourceId:"invalidGcpResourceId",duplicateRouteName:"duplicateRouteName",atLeastOne:"atLeastOne",wholeNumber:"wholeNumber",atMostTenThousand:"atMostTenThousand",tierNameTooLong:"tierNameTooLong",tierDescriptionTooLong:"tierDescriptionTooLong",invalidEmoji:"invalidEmoji",tierTooManyModels:"tierTooManyModels",tierDuplicateModel:"tierDuplicateModel",tierThinkingBudgetInvalid:"tierThinkingBudgetInvalid",invalidHeaderName:"invalidHeaderName",reservedHeaderName:"reservedHeaderName",duplicateHeaderName:"duplicateHeaderName",invalidHeaderValue:"invalidHeaderValue",invalidDomain:"invalidDomain",duplicateDomain:"duplicateDomain"};var Qy=(n=>(n.IMAGE="image",n.TEXT="text",n))(Qy||{}),qe=O.object({apiKey:O.string()}),ev=O.object({serviceAccountJson:O.string().min(1)}),tv=qe,rv=qe.extend({apiKeyHash:O.string()}),nv=qe,ov=qe,iv=qe,av=qe,sv=qe,uv=qe,cv=O.object({accessKeyId:O.string().min(1),secretAccessKey:O.string().min(1),sessionToken:O.string().optional()}),lv=qe,pv=O.object({}),dv=O.object({}),om=O.object({modelId:O.string(),modelName:O.string(),modelType:O.enum(Qy)}),fv=O.object({apiKeyHeader:O.string(),baseUrl:O.string(),models:O.array(om),defaultHeaders:O.record(O.string(),O.string()).optional(),apiStyle:O.enum(["chat","responses"]).optional()}),mv=O.object({accountId:O.string(),gatewayId:O.string(),models:O.array(om),vertexProject:O.string().optional(),vertexRegion:O.string().optional()}),gv=O.object({resourceName:O.string(),apiVersion:O.preprocess(e=>typeof e=="string"&&e.trim().length===0?void 0:e,O.string().optional())}),hv=O.object({}),yv=O.object({}),vv=O.object({}),_v=O.object({region:O.string().min(1)}),Pv=O.object({project:O.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/,nm.invalidGcpResourceId),region:O.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/,nm.invalidGcpResourceId),models:O.array(om)}),xv=O.object({}),xr=O.object({}),NM=O.union([tv,iv,av,sv,uv,ov,nv,rv,cv,ev,lv]),UM=O.union([fv,mv,gv,Pv,_v,pv,hv,yv,vv,dv,xv,xr]),MM=O.discriminatedUnion("provider",[O.object({provider:O.literal("openai"),config:yv.partial(),auth:sv.partial()}),O.object({provider:O.literal("openrouter"),config:vv.partial(),auth:uv.partial()}),O.object({provider:O.literal("anthropic"),config:pv.partial(),auth:tv.partial()}),O.object({provider:O.literal("azure"),config:gv.partial(),auth:iv.partial()}),O.object({provider:O.literal("google"),config:hv.partial(),auth:av.partial()}),O.object({provider:O.literal("cloudflare-gateway"),config:mv.partial(),auth:ov.partial()}),O.object({provider:O.literal("custom"),config:fv.partial(),auth:nv.partial()}),O.object({provider:O.literal("activepieces"),config:dv.partial(),auth:rv.partial()}),O.object({provider:O.literal("bedrock"),config:_v.partial(),auth:cv.partial()}),O.object({provider:O.literal("vertex"),config:Pv.partial(),auth:ev.partial()}),O.object({provider:O.literal("mistral"),config:xv.partial(),auth:lv.partial()}),O.object({provider:O.literal("xai"),config:xr.partial(),auth:qe.partial()}),O.object({provider:O.literal("deepseek"),config:xr.partial(),auth:qe.partial()}),O.object({provider:O.literal("zai"),config:xr.partial(),auth:qe.partial()}),O.object({provider:O.literal("qwen"),config:xr.partial(),auth:qe.partial()}),O.object({provider:O.literal("minimax"),config:xr.partial(),auth:qe.partial()}),O.object({provider:O.literal("moonshot"),config:xr.partial(),auth:qe.partial()})]);var WM=f().check(Me(/^#[0-9A-Fa-f]{6}$/));var KM=v({filename:f(),data:G(),type:F("file"),mimetype:P(f())});var aA=ae(Ev());var nL=v({...ct,name:f(),permissions:V(f()),platformId:Ee(f()),type:f(),userCount:P(Ne())});var fL=O.enum(["active","out_of_credits","rejected","unreachable"]);var Tv=(o=>(o.AGENT_DECIDE="agent-decide",o.CHOOSE_YOURSELF="choose-yourself",o.LEAVE_EMPTY="leave-empty",o))(Tv||{}),im=(n=>(n.FILE="FILE",n.TABLE="TABLE",n))(im||{}),am=(o=>(o.SSE="sse",o.STREAMABLE_HTTP="streamable-http",o.SIMPLE_HTTP="http",o))(am||{});var sm=(o=>(o.TEXT="text",o.NUMBER="number",o.BOOLEAN="boolean",o))(sm||{});var um=(n=>(n.IN_PROGRESS="in-progress",n.COMPLETED="completed",n))(um||{});var sA=v({mode:B(Tv),value:G()}),uA=v({auth:P(f()),fields:W(f(),sA)}),cA=v({pieceName:f(),pieceVersion:f(),actionName:f(),predefinedInput:P(uA)}),lA=v({type:F("PIECE"),toolName:f().check($e(1)),pieceMetadata:cA}),pA=v({type:F("none")}),dA=v({type:F("access_token"),accessToken:f()}),fA=v({type:F("api_key"),apiKey:f(),apiKeyHeader:f()}),mA=v({type:F("headers"),headers:W(f(),f())}),gA=Vt("type",[pA,dA,fA,mA]),Iv=v({type:F("FLOW"),toolName:f().check($e(1)),externalFlowId:f(),flowDisplayName:P(f())}),Sv=v({type:F("MCP"),toolName:f().check($e(1)),serverUrl:_h(),protocol:B(am),auth:gA}),Av=v({type:F("KNOWLEDGE_BASE"),toolName:f().check($e(1)),sourceType:B(im),sourceId:f(),sourceName:f()}),hA=Vt("type",[lA,Iv,Sv,Av]),yA=v({displayName:f(),description:P(f()),type:B(sm)}),wv=v({type:F("MARKDOWN"),markdown:f()}),an={type:F("TOOL_CALL"),input:Ee(W(f(),G())),output:P(G()),toolName:f(),status:B(um),toolCallId:f(),startTime:f(),endTime:P(f())},ej=v(an),$v=Vt("toolCallType",[v({...an,toolCallType:F("PIECE"),pieceName:f(),pieceVersion:f(),actionName:f()}),v({...an,toolCallType:F("FLOW"),displayName:f(),externalFlowId:f()}),v({...an,toolCallType:F("MCP"),displayName:f(),serverUrl:f()}),v({...an,toolCallType:F("KNOWLEDGE_BASE"),displayName:f(),sourceType:f()}),v({...an,toolCallType:F("UNKNOWN"),displayName:f()})]),vA=Q([wv,$v]);var _A=10800*1e3,PA=900*1e3;var dm=(n=>(n.IMAGE="image",n.TEXT="text",n))(dm||{}),At=v({apiKey:f()}),bA=At,EA=v({apiKey:f(),apiKeyHash:f()}),TA=At,IA=At,SA=At,AA=At,wA=At,$A=At,OA=At,zv=v({serviceAccountJson:f().check($e(1))}),kv=v({accessKeyId:f().check($e(1)),secretAccessKey:f().check($e(1)),sessionToken:P(f())}),RA=v({}),zA=v({}),kA=v({}),DA=v({}),CA=v({}),NA=v({}),fm=v({modelId:f(),modelName:f(),modelType:B(dm)}),Dv=v({apiKeyHeader:f(),baseUrl:f(),models:V(fm),defaultHeaders:P(W(f(),f())),apiStyle:P(B(["chat","responses"]))}),Cv=v({accountId:f(),gatewayId:f(),models:V(fm),vertexProject:P(f()),vertexRegion:P(f())}),Nv=v({resourceName:f(),apiVersion:Ht(Zt(e=>typeof e=="string"&&e.trim().length===0?void 0:e),P(f()))}),Uv=v({region:f().check($e(1))}),Mv=v({project:f().check(Me(/^[a-z0-9][a-z0-9-]{0,62}$/)),region:f().check(Me(/^[a-z0-9][a-z0-9-]{0,62}$/)),models:V(fm)}),Lv=v({}),UA=Q([bA,SA,AA,wA,$A,IA,TA,EA,kv,zv,OA]),jv=Q([Dv,Cv,Nv,Mv,Uv,RA,kA,DA,CA,zA,NA,Lv]),MA=v({id:f(),name:f(),type:B(dm)}),LA=v({id:f(),name:f(),provider:B(Wt),config:jv,enabledForChat:se()}),jA=v({provider:B(Wt),name:f(),enabledForChat:se(),keys:V(v({id:f(),name:f()}))}),FA=v({provider:B(Wt),configId:f(),config:jv,auth:UA,platformId:f()});var oj={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"},Ov=["gpt-5.5","gpt-5.6-sol","gpt-5.6-terra","gpt-5.6-luna","gpt-5.4-mini","gpt-5.4-nano","gpt-4.1","gpt-4.1-mini"],BA=["claude-sonnet-5-5","claude-opus-5-5","claude-haiku-5-5"],VA=["claude-sonnet-4-6","claude-opus-4-7","claude-haiku-4-5"],Fv=["claude-sonnet-4.6","claude-opus-4.7","claude-opus-4.8","claude-haiku-4.5"],cm=["gemini-3.7-flash","gemini-3.1-pro-preview","gemini-3-flash-preview"],pm=["gemini-2.5-pro","gemini-2.5-flash"],ZA=["grok-4.20"],ij={anthropic:VA,google:pm,vertex:pm},aj=[...Fv.map(e=>`anthropic/${e}`),"deepseek/deepseek-v4.1-flash"],HA={openai:Ov,anthropic:BA,google:cm,vertex:cm,activepieces:[...Fv.map(e=>`anthropic/${e}`),...Ov.map(e=>`openai/${e}`),...[...cm,...pm].map(e=>`google/${e}`),...ZA.map(e=>`x-ai/${e}`)]};var Rv=128e3,qA={openai:128e3,anthropic:2e5,google:1048576,bedrock:2e5,vertex:1048576,azure:128e3,openrouter:128e3,activepieces:2e5,mistral:128e3};function GA({provider:e}){return e?qA[e]??Rv:Rv}s(GA,"getMaxContextTokens");var lm={openai:["text-embedding-3-small","text-embedding-3-large"],google:["text-embedding-004","gemini-embedding-001"],azure:["text-embedding-3-small","text-embedding-3-large"],activepieces:["text-embedding-3-small"],openrouter:["openai/text-embedding-3-small","openai/text-embedding-3-large"]},WA={anthropic:"native",google:"native",openrouter:"plugin",activepieces:"plugin"},JA=new Set(["anthropic","mistral","xai","deepseek","zai","qwen","minimax","moonshot"]),KA={xai:"https://api.x.ai/v1",deepseek:"https://api.deepseek.com/v1",zai:"https://api.z.ai/api/paas/v4",qwen:"https://dashscope-intl.aliyuncs.com/compatible-mode/v1",minimax:"https://api.minimax.io/v1",moonshot:"https://api.moonshot.ai/v1"};function Le(e){return{chatModels:HA[e],maxContextTokens:GA({provider:e}),embeddingModels:lm[e]??[],defaultEmbeddingModel:lm[e]?.[0],supportsEmbedding:(lm[e]??[]).length>0,supportsImageGeneration:!JA.has(e),defaultImageModel:XA[e],webSearch:WA[e]}}s(Le,"buildProviderCapabilities");var Bv=[{id:"fast",label:"Fast",modelId:"google/gemini-3.1-flash-lite-image"},{id:"smart",label:"Expert",modelId:"google/gemini-3.1-flash-image"},{id:"premium",label:"Heavy",modelId:"google/gemini-3-pro-image"}],XA={activepieces:Bv[0].modelId,openrouter:"google/gemini-3.1-flash-lite-image",openai:"gpt-image-1.5",google:"gemini-3.1-flash-image"},YA={openai:Le("openai"),anthropic:Le("anthropic"),openrouter:Le("openrouter"),azure:Le("azure"),google:Le("google"),"cloudflare-gateway":Le("cloudflare-gateway"),custom:Le("custom"),bedrock:Le("bedrock"),vertex:Le("vertex"),mistral:Le("mistral"),activepieces:Le("activepieces"),xai:Le("xai"),deepseek:Le("deepseek"),zai:Le("zai"),qwen:Le("qwen"),minimax:Le("minimax"),moonshot:Le("moonshot")};var QA=v({base64Url:f(),fileName:f(),extension:P(f())}),ew=v({mimeType:f(),url:f(),fileName:P(f())}),mm=Q([QA,ew]);var tw=Q([v({type:F("file"),value:mm}),v({type:F("markdown"),value:f(),files:P(V(mm))})]),rw=v({sessionId:f(),message:f(),files:P(V(f()))});var Zv=(n=>(n.ON_NEW_RECORD="ON_NEW_RECORD",n.ON_UPDATE_RECORD="ON_UPDATE_RECORD",n))(Zv||{}),Hv=(n=>(n.ENABLED="ENABLED",n.DISABLED="DISABLED",n))(Hv||{}),gm=(o=>(o.RECORD_CREATED="RECORD_CREATED",o.RECORD_UPDATED="RECORD_UPDATED",o.RECORD_DELETED="RECORD_DELETED",o))(gm||{});var nw=Q([v({...ct,name:f(),externalId:f(),type:F("STATIC_DROPDOWN"),tableId:f(),projectId:f(),data:v({options:V(v({value:f()}))})}),v({...ct,name:f(),externalId:f(),type:Q([F("TEXT"),F("NUMBER"),F("DATE"),F("DATETIME")]),tableId:f(),projectId:f()})]),ow=v({...ct,name:f(),folderId:Ee(f()),projectId:f(),externalId:f(),status:Hd(Hv),trigger:Hd(Zv)}),iw=v({...ct,tableId:f(),projectId:f(),cells:W(f(),v({updated:f(),created:f(),value:G(),fieldName:f()}))}),aw=v({events:V(B(gm)),webhookUrl:f(),flowId:f()}),sw=v({fields:V(v({id:f(),name:f()})),rows:V(W(f(),f())),name:f()}),uw=v({projectId:f(),limit:P(ii.number()),cursor:P(f()),name:P(f()),externalIds:Vs(f()),folderId:P(f()),folderIds:Vs(f())}),cw=v({records:V(V(v({fieldId:f(),value:Gv()}))),tableId:f()}),lw=v({cells:P(V(v({fieldId:f(),value:Gv()}))),tableId:f(),agentUpdate:P(se())}),qv=Vt("operator",[br("eq"),br("neq"),br("gt"),br("gte"),br("lt"),br("lte"),br("co"),Vv("exists"),Vv("not_exists")]),pw=v({tableId:f(),limit:P(ii.number()),cursor:P(f()),filters:Vs(qv)});function Gv(){return Ht(Zt(e=>e==null?e:String(e)),oi(f()))}s(Gv,"coerceToString");function br(e){return v({fieldId:f(),operator:F(e),value:f()})}s(br,"valueFilter");function Vv(e){return v({fieldId:f(),operator:F(e)})}s(Vv,"existenceFilter");var dw=v({status:P(Ne()),body:P(G()),headers:P(W(f(),f()))}),fw=v({...ct,deleted:Ee(Gt),ownerId:f(),displayName:f(),platformId:f(),externalId:Ee(f())});var Wv=v({name:f(),description:P(f()),type:f(),required:se()}),mw=v({pieceName:f(),triggerName:f(),input:v({toolName:f(),toolDescription:f(),inputSchema:V(Wv),returnsResponse:se()})});var Jv="^[0-9]+\\.[0-9]+\\.[0-9]+$",Ij=new RegExp(Jv),hw="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",Sj=f().check(Me(new RegExp(Jv))),Aj=f().check(Me(new RegExp(hw))),yw=v({packageType:F("ARCHIVE"),pieceType:B(Kr),pieceName:f(),pieceVersion:f(),archiveId:f(),platformId:f()}),Kv=v({packageType:F("REGISTRY"),pieceType:F("OFFICIAL"),pieceName:f(),pieceVersion:f()}),Xv=v({packageType:F("REGISTRY"),pieceType:F("CUSTOM"),pieceName:f(),pieceVersion:f(),platformId:f()}),wj=Q([Kv,Xv]),$j=Q([yw,Kv,Xv]);var vw=Vt("type",[v({type:F("CRON_EXPRESSION"),cronExpression:f(),timezone:f()}),v({type:F("INTERVAL"),intervalMs:Ph().check(Re(6e4))})]),Oj=v({...ct,type:B(He),projectId:f(),flowId:f(),triggerName:f(),schedule:Ee(vw),flowVersionId:f(),pieceName:f(),pieceVersion:f(),deleted:Ee(f()),simulate:se()}),Yv=(T=>(T.UNKNOWN="UNKNOWN",T.FLOW_RUN_LOG="FLOW_RUN_LOG",T.FLOW_RUN_LOG_SLICE="FLOW_RUN_LOG_SLICE",T.PACKAGE_ARCHIVE="PACKAGE_ARCHIVE",T.FLOW_STEP_FILE="FLOW_STEP_FILE",T.SAMPLE_DATA="SAMPLE_DATA",T.TRIGGER_PAYLOAD="TRIGGER_PAYLOAD",T.SAMPLE_DATA_INPUT="SAMPLE_DATA_INPUT",T.TRIGGER_EVENT_FILE="TRIGGER_EVENT_FILE",T.PROJECT_RELEASE="PROJECT_RELEASE",T.FLOW_VERSION_BACKUP="FLOW_VERSION_BACKUP",T.PLATFORM_ASSET="PLATFORM_ASSET",T.USER_PROFILE_PICTURE="USER_PROFILE_PICTURE",T.WEBHOOK_PAYLOAD="WEBHOOK_PAYLOAD",T.MCP_CALL_PAYLOAD="MCP_CALL_PAYLOAD",T.KNOWLEDGE_BASE="KNOWLEDGE_BASE",T.FLOW_BUNDLE="FLOW_BUNDLE",T.PREWARM_SCOPE="PREWARM_SCOPE",T))(Yv||{}),Qv=(n=>(n.NONE="NONE",n.ZSTD="ZSTD",n))(Qv||{}),e_=(n=>(n.S3="S3",n.DB="DB",n))(e_||{}),Rj=v({...ct,projectId:Ee(f()),platformId:Ee(f()),type:B(Yv),compression:B(Qv),data:P(G()),location:B(e_),size:Ee(Ne()),fileName:Ee(f()),s3Key:Ee(f()),metadata:Ee(W(f(),f()))}),t_=(o=>(o.ADMIN="ADMIN",o.MEMBER="MEMBER",o.OPERATOR="OPERATOR",o))(t_||{}),r_=(n=>(n.ACTIVE="ACTIVE",n.INACTIVE="INACTIVE",n))(r_||{}),zj=v({id:f(),email:f(),firstName:f(),status:B(r_),externalId:Ee(f()),platformId:Ee(f()),platformRole:B(t_),lastName:f(),created:Gt,updated:Gt,lastActiveDate:Ee(Gt),imageUrl:Ee(f())});var hm=v({...oe.shape,...K(W(f(),G()),"OBJECT").shape});var ym=v({...oe.shape,formatProperty:P(f()),...K(f(),"RICH_TEXT").shape});var s_=v({...oe.shape,...K(f(),"COLOR").shape});var vm=Q([ot,Et,ym,js,It,it,Tt,Md,ai,jd,St,ci,hm,li,ui,Ld,si,s_]),R={ShortText(e){return{...e,valueSchema:void 0,type:"SHORT_TEXT"}},Checkbox(e){return{...e,valueSchema:void 0,type:"CHECKBOX"}},LongText(e){return{...e,valueSchema:void 0,type:"LONG_TEXT"}},RichText(e){return{...e,valueSchema:void 0,type:"RICH_TEXT"}},MarkDown(e){return{displayName:"Markdown",required:!1,description:e.value,type:"MARKDOWN",valueSchema:void 0,variant:e.variant??"INFO"}},Number(e){return{...e,valueSchema:void 0,type:"NUMBER"}},Json(e){return{...e,valueSchema:void 0,type:"JSON"}},Array(e){return{...e,valueSchema:void 0,type:"ARRAY"}},Object(e){return{...e,valueSchema:void 0,type:"OBJECT"}},Dropdown(e){return{...e,valueSchema:void 0,type:"DROPDOWN"}},StaticDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_DROPDOWN"}},MultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"MULTI_SELECT_DROPDOWN"}},DynamicProperties(e){return{...e,valueSchema:void 0,type:"DYNAMIC"}},StaticMultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_MULTI_SELECT_DROPDOWN"}},DateTime(e){return{...e,valueSchema:void 0,type:"DATE_TIME"}},DateRange(e){return{...e,valueSchema:void 0,type:"DATE_RANGE"}},File(e){return{...e,valueSchema:void 0,type:"FILE"}},Custom(e){let t=e.code.toString();return{...e,code:t,valueSchema:void 0,type:"CUSTOM"}},Color(e){return{...e,valueSchema:void 0,type:"COLOR"}}};var vt=v({displayName:f(),description:P(f()),hasConnectionIdentifier:P(se())});var u_=v({username:f(),password:f()}),_m=v({...vt.shape,username:v({displayName:f(),description:P(f())}),password:v({displayName:f(),description:P(f())}),...K(u_,"BASIC_AUTH").shape});var xw=W(f(),Q([ot,Et,St,It,it])),Pm=v({...vt.shape,props:xw,...K(G(),"CUSTOM_AUTH").shape});var Er=v({...vt.shape,...K(v({auth:f()}),"SECRET_TEXT").shape});var bw=W(f(),Q([ot,Et,Er,St,It,it,Tt,js])),c_=v({...vt.shape,props:bw,...K(G(),"OIDC").shape});var xm=(n=>(n.HEADER="HEADER",n.BODY="BODY",n))(xm||{}),l_=Q([ot,Er,it]),p_=W(f(),l_),d_=v({serverUrlProp:f(),authUrlProp:f(),tokenUrlProp:f(),scopesProp:P(f())}),Ew=v({props:P(W(f(),l_)),authUrl:f(),tokenUrl:f(),scope:V(f()),prompt:P(Q([F("none"),F("consent"),F("login"),F("omit")])),pkce:P(se()),pkceMethod:P(Q([F("plain"),F("S256")])),authorizationMethod:P(B(xm)),grantType:P(Q([B(di),F(Fd)])),extra:P(W(f(),f())),discovery:P(d_)}),f_=v({access_token:f(),props:P(p_),data:W(f(),ni())}),bm=v({...vt.shape,...Ew.shape,...K(f_,"OAUTH2").shape});var sn=Q([_m,Pm,c_,bm,Er]),wi="Connection",Em={SecretText(e){return{...e,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(e){return{...e,valueSchema:void 0,type:"OAUTH2",displayName:e.displayName||wi}},BasicAuth(e){return{...e,valueSchema:void 0,type:"BASIC_AUTH",displayName:e.displayName||wi,required:!0}},CustomAuth(e){return{...e,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:e.displayName||wi}},OIDC(e){return{...e,valueSchema:void 0,type:"OIDC",displayName:e.displayName||wi}},None(){}};var g1={OAUTH2:"OAUTH2",CLOUD_OAUTH2:"OAUTH2",PLATFORM_OAUTH2:"OAUTH2",BASIC_AUTH:"BASIC_AUTH",CUSTOM_AUTH:"CUSTOM_AUTH",OIDC:"OIDC",SECRET_TEXT:"SECRET_TEXT",NO_AUTH:void 0};var Tw=v({...oe.shape,...K(G(),"CUSTOM").shape,code:f()});var Iw=Q([vm,sn]),Tm=W(f(),Iw),C1=W(f(),vm);var m_=Q([v({strategy:F("CRON"),cronExpression:f()}),v({strategy:F("NONE")})]),un=class{constructor(t,n,o,r,i,a,u,c,l,d,h,m,p,g,_,b,E,T,Z,ie,le){this.name=t;this.displayName=n;this.description=o;this.requireAuth=r;this.props=i;this.type=a;this.handshakeConfiguration=u;this.onHandshake=c;this.renewConfiguration=l;this.onRenew=d;this.onEnable=h;this.onDisable=m;this.onStart=p;this.run=g;this.test=_;this.sampleData=b;this.testStrategy=E;this.outputSchema=T;this.aiMetadata=Z;this.classification=ie;this.propertyGroups=le}static{s(this,"ITrigger")}},Be=s(e=>{switch(e.type){case"WEBHOOK":return new un(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,e.handshakeConfiguration??{strategy:"NONE"},e.onHandshake??(async()=>({status:200})),e.renewConfiguration??{strategy:"NONE"},e.onRenew??(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,e.test?"TEST_FUNCTION":"SIMULATION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups);case"POLLING":return new un(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,"TEST_FUNCTION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups);case"MANUAL":return new un(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,"TEST_FUNCTION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups);case"APP_WEBHOOK":return new un(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,be(e.sampleData)&&be(e.test)?"SIMULATION":"TEST_FUNCTION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups)}},"createTrigger");var g_="2",Tu="0.82.0";var Im=class{constructor(t,n,o,r,i,a,u,c,l=Tu,d,h="",m){this.displayName=t;this.logoUrl=n;this.authors=o;this.events=r;this.categories=u;this.auth=c;this.minimumSupportedRelease=l;this.maximumSupportedRelease=d;this.description=h;this.deprecated=m;this._actions={};this._triggers={};this.getContextInfo=s(()=>({version:g_}),"getContextInfo");(!Aw(l)||ww(l,Tu))&&(this.minimumSupportedRelease=Tu),i.forEach(p=>this._actions[p.name]=p),a.forEach(p=>this._triggers[p.name]=p)}static{s(this,"Piece")}metadata(){return{displayName:this.displayName,logoUrl:this.logoUrl,actions:this._actions,triggers:this._triggers,categories:this.categories,description:this.description,authors:this.authors,auth:Sw(this.auth),minimumSupportedRelease:this.minimumSupportedRelease,maximumSupportedRelease:this.maximumSupportedRelease,deprecated:this.deprecated,contextInfo:this.getContextInfo?.()}}getAction(t){return this._actions[t]}getTrigger(t){return this._triggers[t]}actions(){return this._actions}triggers(){return this._triggers}},y_=s(e=>{if(e.auth&&Array.isArray(e.auth)&&!e.auth.every((n,o,r)=>o===r.findIndex(i=>i.type===n.type)))throw new Error("Auth properties must be unique by type");return new Im(e.displayName,e.logoUrl,e.authors??[],e.events,e.actions,e.triggers,e.categories??[],e.auth,e.minimumSupportedRelease,e.maximumSupportedRelease,e.description,e.deprecated)},"createPiece");function Sw(e){if(e!==void 0)return Array.isArray(e)?e.map(h_):h_(e)}s(Sw,"withConnectionIdentifierFlag");function h_(e){return{...e,hasConnectionIdentifier:e.getConnectionIdentifier!==void 0}}s(h_,"flagConnectionIdentifier");function Aw(e){return/^\d+\.\d+\.\d+$/.test(e)}s(Aw,"isValidSimpleSemver");function ww(e,t){let[n,o,r]=e.split(".").map(Number),[i,a,u]=t.split(".").map(Number);return n!==i?n<i:o!==a?o<a:r<u}s(ww,"isSemverLessThan");var $w=P(W(f(),W(f(),f()))),v_=v({id:P(f()),name:f(),displayName:f(),logoUrl:f(),description:f(),authors:V(f()),platformId:P(f()),directoryPath:P(f()),auth:P(Q([sn,V(sn)])),version:f(),categories:P(V(B(vr))),minimumSupportedRelease:P(f()),maximumSupportedRelease:P(f()),deprecated:P(se()),i18n:$w}),Ow=B(["human","ai","both"]),__=v({description:P(f()),idempotent:P(se())}),P_=B(["READ","SEARCH","WRITE","DESTRUCTIVE"]);var Rw=B(["tabs","section","summary","builder","footer"]),x_=v({key:f(),display:Rw,label:P(f()),description:P(f()),icon:P(f()),props:V(f())}),b_=v({name:f(),displayName:f(),description:f(),props:Tm,propertyGroups:P(V(x_)),requireAuth:se(),errorHandlingOptions:P(Ud),outputSchema:P(Us()),audience:P(Ow),aiMetadata:P(__),classification:P(P_)}),E_=v({name:f(),displayName:f(),description:f(),props:Tm,propertyGroups:P(V(x_)),errorHandlingOptions:P(Ud),type:B(He),sampleData:G(),handshakeConfiguration:P(Us()),renewConfiguration:P(m_),testStrategy:B(mi),outputSchema:P(Us()),aiMetadata:P(__),classification:P(P_)}),zw=v({...v_.shape,actions:W(f(),b_),triggers:W(f(),E_)}),kw=v({...v_.shape,actions:Ne(),triggers:Ne(),suggestedActions:P(V(b_)),suggestedTriggers:P(V(E_))}),T_=v({projectUsage:Ne(),pieceType:B(Kr),packageType:B(pi),platformId:P(f()),archiveId:P(f())}),LF=v({...zw.shape,...T_.shape}),jF=v({...kw.shape,...T_.shape}),FF=v({name:f(),version:f()});var S_=ae(require("path")),Sm=ae(require("fs/promises"));var Iu={translatePiece:s(({piece:e,locale:t})=>{let n=t?e.i18n?.[t]:void 0;if(!n)return e;let o=I_(e.categories)?Cw:Dw;return $_({node:e,tree:o,translations:n})},"translatePiece"),pathsToTranslate:s(e=>I_(e)?[...Iu.pathsToValuesToTranslate,"displayName"]:Iu.pathsToValuesToTranslate,"pathsToTranslate"),initializeI18n:s(async e=>{try{let t=Object.values(qd),n={};for(let o of t){let r=await Lw(o,e);r&&(n[o]=r)}return Object.keys(n).length>0?n:void 0}catch(t){console.log(`Error initializing i18n for ${e}:`,t);return}},"initializeI18n"),pathsToValuesToTranslate:["description","auth.username.displayName","auth.username.description","auth.password.displayName","auth.password.description","auth.props.*.displayName","auth.props.*.description","auth.props.*.options.options.*.label","auth.description","actions.*.displayName","actions.*.description","actions.*.props.*.displayName","actions.*.props.*.description","actions.*.props.*.options.options.*.label","actions.*.propertyGroups.*.label","actions.*.propertyGroups.*.description","triggers.*.displayName","triggers.*.description","triggers.*.props.*.displayName","triggers.*.props.*.description","triggers.*.props.*.options.options.*.label","triggers.*.propertyGroups.*.label","triggers.*.propertyGroups.*.description"]},Dw=A_(Iu.pathsToTranslate()),Cw=A_(Iu.pathsToTranslate(["CORE"]));function A_(e){return e.reduce((t,n)=>w_({tree:t,keys:n.split(".")}),{})}s(A_,"buildTree");function I_(e){return e?.includes("CORE")??!1}s(I_,"isCorePiece");function w_({tree:e,keys:[t,...n]}){return{...e,[t]:n.length===0?null:w_({tree:e[t]??{},keys:n})}}s(w_,"addPath");function $_({node:e,tree:t,translations:n}){if(!Uw(e))return e;let o={},r=!1;for(let[i,a]of Object.entries(t))for(let u of i==="*"?Object.keys(e):[i]){let c=e[u],l=a===null?Nw({value:c,translations:n}):$_({node:c,tree:a,translations:n});l!==c&&(o[u]=l,r=!0)}return r?Object.assign(Array.isArray(e)?[]:{},e,o):e}s($_,"translateNode");function Nw({value:e,translations:t}){return typeof e!="string"?e:t[e.slice(0,512)]||e}s(Nw,"translateValue");function Uw(e){return typeof e=="object"&&e!==null}s(Uw,"isRecord");async function Mw(e){try{return await Sm.default.access(e),!0}catch{return!1}}s(Mw,"fileExists");var Lw=s(async(e,t)=>{let n=S_.default.join(t,"src","i18n",`${e}.json`);if(!await Mw(n))return null;try{let o=await Sm.default.readFile(n,"utf8"),r=JSON.parse(o);if(typeof r=="object"&&r!==null)return r;throw new Error(`Invalid i18n file format for ${e} in piece ${t}`)}catch(o){return console.error(`Error reading i18n file for ${e} in piece ${t}:`,o),null}},"readLocaleFile");var cn=require("node:stream");var Su=class{constructor(t,n){this.baseUrl=t;this.authenticationConverter=n}static{s(this,"BaseHttpClient")}getUrl(t){let n=new URL(`${this.baseUrl}${t.url}`),o=`${n.origin}${n.pathname}`,r=new URLSearchParams;return n.searchParams.forEach((i,a)=>{r.append(a,i)}),{urlWithoutQueryParams:o,queryParams:r}}getHeaders(t){let n={Accept:"application/json"};return t.authentication&&this.populateAuthentication(t.authentication,n),t.body&&(t.headers?.["Content-Type"]==="text/csv"?n["Content-Type"]="text/csv":n["Content-Type"]="application/json"),t.headers&&(n={...n,...t.headers}),n}populateAuthentication(t,n){this.authenticationConverter.convert(t,n)}};var Au=class{static{s(this,"DelegatingAuthenticationConverter")}constructor(t=new Am,n=new wm){this.converters={BEARER_TOKEN:t,BASIC:n}}convert(t,n){return this.converters[t.type].convert(t,n)}},Am=class{static{s(this,"BearerTokenAuthenticationConverter")}convert(t,n){return n.Authorization=`Bearer ${t.token}`,n}},wm=class{static{s(this,"BasicTokenAuthenticationConverter")}convert(t,n){let o=`${t.username}:${t.password}`,r=Buffer.from(o).toString("base64");return n.Authorization=`Basic ${r}`,n}};var $i=class extends Error{constructor(n,o){let r=o.status||500,i=Buffer.isBuffer(o.responseBody)?o.responseBody.toString():o.responseBody;super(JSON.stringify({response:{status:r,body:i},request:{body:n}}));this.requestBody=n;this.status=r,this.responseBody=i}static{s(this,"HttpError")}errorMessage(){return{response:{status:this.status,body:this.responseBody},request:{body:this.requestBody}}}get response(){return{status:this.status,body:this.responseBody}}get request(){return{body:this.requestBody}}};function O_({error:e,requestBody:t}){return e instanceof $i?e.errorMessage():{response:{status:0,body:e instanceof Error?e.message:String(e)},request:{body:t}}}s(O_,"toFailsafeOutput");var wu=(a=>(a.GET="GET",a.POST="POST",a.PATCH="PATCH",a.PUT="PUT",a.DELETE="DELETE",a.HEAD="HEAD",a))(wu||{});var $u=class extends Su{static{s(this,"FetchHttpClient")}constructor(t="",n=new Au){super(t,n)}async sendRequest(t,n){process.env.NODE_TLS_REJECT_UNAUTHORIZED="0";let{urlWithoutQueryParams:o,queryParams:r}=this.getUrl(t),i=this.getHeaders(t),a=k_(t.body)?Gw(i):i,u=t.queryParams??{};for(let[ie,le]of Object.entries(u))r.append(ie,le);let c=r.toString(),l=c?`${o}?${c}`:o,d=t.responseType??"json",h=t.followRedirects??!0,m=t.retries??0,{body:p,extraHeaders:g,isStream:_}=Ou(t.method)?Fw(t.body,a):{body:void 0,extraHeaders:{},isStream:!1},b=Vw({...a,...g}),E=await Bw(async()=>{let ie=new AbortController,le=t.timeout&&t.timeout>0?setTimeout(()=>ie.abort(),t.timeout):void 0;try{let ze={method:t.method.toString(),headers:b,body:p,redirect:h?"follow":"manual",signal:ie.signal};return _&&(ze.duplex="half"),n?.dispatcher!==void 0&&(ze.dispatcher=n.dispatcher),await fetch(l,ze)}finally{le!==void 0&&clearTimeout(le)}},_?0:m),T=h?300:400;if(E.status<200||E.status>=T){let ie=await R_(E,d==="stream"?"text":d),le=new $i(t.redactBodyInErrors===!0?jw:t.body,{status:E.status,responseBody:ie});throw console.error("[HttpClient#(sanitized error message)] Request failed:",le),le}let Z=await R_(E,d);return{status:E.status,headers:Zw(E.headers),body:Z}}},jw="[redacted]";function Ou(e){return e!=="GET"&&e!=="HEAD"}s(Ou,"acceptsRequestBody");function Fw(e,t){if(D_(e))return{body:void 0,extraHeaders:{},isStream:!1};if(qw(e)){let o=Hw(e);if(o!==null)return{body:o,extraHeaders:e.getHeaders(),isStream:!1};let r=new cn.PassThrough;return e.on("error",i=>r.destroy(i)),e.pipe(r),{body:r,extraHeaders:e.getHeaders(),isStream:!0}}return e instanceof cn.Readable?{body:e,extraHeaders:{},isStream:!0}:typeof e=="string"||Buffer.isBuffer(e)||e instanceof URLSearchParams||e instanceof ArrayBuffer||k_(e)||typeof Blob<"u"&&e instanceof Blob?{body:e,extraHeaders:{},isStream:!1}:(t["Content-Type"]??t["content-type"]??"").includes("application/x-www-form-urlencoded")?{body:new URLSearchParams(e).toString(),extraHeaders:{},isStream:!1}:{body:JSON.stringify(e),extraHeaders:{},isStream:!1}}s(Fw,"serializeBody");async function R_(e,t){switch(t){case"arraybuffer":return Buffer.from(await e.arrayBuffer());case"stream":return D_(e.body)?cn.Readable.from([]):cn.Readable.fromWeb(e.body);case"blob":return await e.blob();case"text":return await e.text();default:{let n=await e.text();if(n.length===0)return;try{return JSON.parse(n)}catch{return n}}}}s(R_,"parseResponseBody");async function Bw(e,t){let n;for(let o=0;o<=t;o++)try{let r=await e();if(r.status>=500&&o<t){await z_(o);continue}return r}catch(r){if(n=r,o<t){await z_(o);continue}throw r}throw n}s(Bw,"sendWithRetries");function z_(e){let t=Math.min(1e3*2**e,3e4);return new Promise(n=>setTimeout(n,t))}s(z_,"backoff");function Vw(e){let t=new Map;for(let[n,o]of Object.entries(e))o!==void 0&&t.set(n.toLowerCase(),[n,Array.isArray(o)?o.join(", "):o]);return Object.fromEntries(t.values())}s(Vw,"normalizeHeaders");function Zw(e){let t={};return e.forEach((n,o)=>{t[o]=n}),t}s(Zw,"toHttpHeaders");function Hw(e){if(!e.hasKnownLength()||e.getLengthSync()>Ww)return null;let{data:t}=Vd(()=>e.getBuffer());return t}s(Hw,"bufferFormDataIfSafe");function qw(e){return typeof e=="object"&&e!==null&&typeof e.getHeaders=="function"&&typeof e.pipe=="function"&&typeof e.on=="function"}s(qw,"isNodeFormData");function k_(e){return typeof FormData<"u"&&e instanceof FormData}s(k_,"isNativeFormData");function Gw(e){return Object.fromEntries(Object.entries(e).filter(([t])=>t.toLowerCase()!=="content-type"))}s(Gw,"withoutContentType");function D_(e){return e==null}s(D_,"isNil");var Ww=100*1024*1024;var Oi=new $u;var CO=ae(require("fs"));var NO={"application/json":"json","application/pdf":"pdf","application/xml":"xml","text/xml":"xml","application/zip":"zip","application/gzip":"gz","application/x-tar":"tar","application/octet-stream":"bin","application/msword":"doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","application/vnd.ms-excel":"xls","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","application/vnd.ms-powerpoint":"ppt","application/vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","application/rtf":"rtf","application/javascript":"js","application/x-www-form-urlencoded":"bin","text/plain":"txt","text/html":"html","text/css":"css","text/csv":"csv","text/calendar":"ics","text/markdown":"md","image/png":"png","image/jpeg":"jpeg","image/jpg":"jpg","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/bmp":"bmp","image/tiff":"tiff","image/x-icon":"ico","image/vnd.microsoft.icon":"ico","image/heic":"heic","audio/mpeg":"mp3","audio/mp4":"m4a","audio/wav":"wav","audio/x-wav":"wav","audio/ogg":"ogg","audio/webm":"weba","video/mp4":"mp4","video/mpeg":"mpeg","video/webm":"webm","video/quicktime":"mov","video/x-msvideo":"avi","font/woff":"woff","font/woff2":"woff2","font/ttf":"ttf","font/otf":"otf"};function UO(e){let t=e.split(";")[0].trim().toLowerCase();return NO[t]??""}s(UO,"contentTypeToExtension");var MO=s(({baseUrl:e,relativePath:t})=>{let n=e.endsWith("/")?e:`${e}/`,o=t.startsWith("/")?t.slice(1):t;return`${n}${o}`},"joinBaseUrlWithRelativePath"),LO=s((e,t)=>{let n="https://api.example.com";try{let o=t?e(t):void 0;return(o?.endsWith("/")?o.slice(0,-1):o)??n}catch{return n}},"getBaseUrlForDescription");function jx({auth:e,baseUrl:t,authMapping:n,description:o,displayName:r,name:i,props:a,extraProps:u,authLocation:c="headers",classification:l="WRITE"}){return ce({audience:"human",name:i||"custom_api_call",classification:l,displayName:r||"Custom API Call",description:o||"Make a custom API call to a specific endpoint",auth:e,requireAuth:!!e,props:{url:R.DynamicProperties({auth:e,displayName:"",required:!0,refreshers:[],props:s(async({auth:d})=>({url:R.ShortText({displayName:"URL",description:`Full URL, or a path relative to ${LO(t,d)}`,required:!0,placeholder:"/resource",defaultValue:d?t(d):"",...a?.url??{}})}),"props")}),method:R.StaticDropdown({displayName:"Method",required:!0,defaultValue:"GET",options:{options:Object.values(wu).map(d=>({label:d,value:d}))},...a?.method??{}}),headers:R.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!1,...a?.headers??{}}),queryParams:R.Object({displayName:"Query Parameters",description:"Appended to the URL as ?key=value.",required:!1,...a?.queryParams??{}}),body_type:R.Dropdown({auth:e,displayName:"Body Type",required:!1,defaultValue:"none",refreshers:["method"],options:s(async({method:d})=>Ou(d)?{disabled:!1,options:[{label:"None",value:"none"},{label:"JSON",value:"json"},{label:"Form Data",value:"form_data"},{label:"Raw",value:"raw"}]}:{disabled:!0,placeholder:"Not available for GET or HEAD requests",options:[]},"options")}),body:R.DynamicProperties({auth:e,displayName:"Body",refreshers:["body_type","method"],required:!1,props:s(async({body_type:d,method:h})=>{if(!d||!Ou(h))return{};let m=d,p={};switch(m){case"none":break;case"json":p.data=R.Json({displayName:"JSON Body",required:!0,...a?.body??{}});break;case"raw":p.data=R.LongText({displayName:"Raw Body",required:!0});break;case"form_data":p.data=R.Array({displayName:"Form Data",required:!0,properties:{fieldName:R.ShortText({displayName:"Field Name",required:!0}),fieldType:R.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:R.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:R.File({displayName:"File Field Value",required:!1})}});break}return p},"props")}),response_is_binary:R.Checkbox({displayName:"Response is Binary",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1,advanced:!0,...a?.response_is_binary??{}}),failsafe:R.Checkbox({displayName:"Return Error as Output",description:"On a failed request, output the error instead of failing the step.",required:!1,advanced:!0,...a?.failsafe??{}}),timeout:R.Number({displayName:"Timeout",description:"Seconds to wait for a response. Empty: up to the flow limit (10 min).",required:!1,advanced:!0,...a?.timeout??{}}),followRedirects:R.Checkbox({displayName:"Follow redirects",description:"Follow 3xx redirects instead of returning them as the response.",required:!1,defaultValue:!1,advanced:!0,...a?.followRedirects??{}}),...u},propertyGroups:[{key:"request",display:"section",label:"Request",icon:"send",props:["method","url","headers","queryParams"]},{key:"payload",display:"section",label:"Data to send",icon:"code",props:["body_type","body"]}],run:s(async d=>{let{method:h,url:m,headers:p,queryParams:g,body:_,body_type:b,failsafe:E,timeout:T,response_is_binary:Z,followRedirects:ie}=d.propsValue;Bs(h,"Method"),Bs(m,"URL");let le=be(n)?{}:await n(d.auth,d.propsValue),ze=m.url,Se=ze.startsWith("http://")||ze.startsWith("https://")?ze:MO({baseUrl:t(d.auth),relativePath:ze}),re={method:h,url:Se,headers:{...p??{},...c==="headers"||!be(c)?le:{}},queryParams:{...c==="queryParams"?le:{},...g??{}},timeout:T?T*1e3:0,followRedirects:ie};if(Z&&(re.responseType="arraybuffer"),_)if(b&&b!=="none"){let Ge=_.data;if(b==="form_data"){let Wi=Ge,{default:X}=await Promise.resolve().then(()=>ae(Lx())),N=new X;for(let{fieldName:k,fieldType:j,textFieldValue:U,fileFieldValue:J}of Wi)j==="text"&&!gi(U)?N.append(k,U):j==="file"&&!gi(J)&&N.append(k,J.data,{filename:J?.filename});re.body=N,re.headers={...re.headers,...N.getHeaders()}}else re.body=Ge}else b||(re.body=_);try{let Ge=await Oi.sendRequest(re);return await jO(d.files,Ge.body,Ge.status,Ge.headers,Z)}catch(Ge){if(E)return O_({error:Ge,requestBody:re.body});throw Ge}},"run")})}s(jx,"createCustomApiCallAction");var jO=s(async(e,t,n,o,r)=>{let i;if(r&&FO(t)){let a=Array.isArray(o?.["content-type"])?o["content-type"][0]:o?.["content-type"],u=UO(a??"")||"txt",c;t instanceof ArrayBuffer?c=Buffer.from(new Uint8Array(t)):Buffer.isBuffer(t)?c=t:c=Buffer.from(t),i=await e.write({fileName:`output.${u}`,data:c})}else i=t;return{status:n,headers:o,body:i}},"handleBinaryResponse"),FO=s(e=>e instanceof ArrayBuffer||Buffer.isBuffer(e),"isBinaryBody");var he={async poll(e,{store:t,auth:n,propsValue:o,maxItemsToPoll:r,files:i,server:a}){switch(e.strategy){case 0:{let u=await t.get("lastPoll");if(be(u))throw new Error("lastPoll doesn't exist in the store.");let c=await e.items({store:t,auth:n,propsValue:o,lastFetchEpochMS:u,server:a}),l=c.reduce((d,h)=>Math.max(d,h.epochMilliSeconds),u);return await t.put("lastPoll",l),c.filter(d=>d.epochMilliSeconds>u).map(d=>d.data)}case 1:{let u=await t.get("lastItem"),c=await e.items({store:t,auth:n,propsValue:o,lastItemId:u,files:i,server:a}),l=c.findIndex(m=>m.id===u),d=[];be(u)||l==-1?d=c??[]:d=c?.slice(0,l)??[],be(r)||(d=d.slice(-r));let h=d?.[0]?.id;return be(h)||await t.put("lastItem",h),d.map(m=>m.data)}}},async onEnable(e,{store:t,auth:n,propsValue:o,server:r,isRepublish:i}){switch(e.strategy){case 0:{if(i&&!be(await t.get("lastPoll")))break;await t.put("lastPoll",Date.now());break}case 1:{if(i&&!be(await t.get("lastItem")))break;let u=(await e.items({store:t,auth:n,propsValue:o,lastItemId:null,server:r}))?.[0]?.id;be(u)?await t.delete("lastItem"):await t.put("lastItem",u);break}}},async onDisable(e,t){switch(e.strategy){case 0:case 1:return}},async test(e,{auth:t,propsValue:n,store:o,files:r,server:i}){let a=[];switch(e.strategy){case 0:{a=await e.items({store:o,auth:t,propsValue:n,lastFetchEpochMS:0,server:i});break}case 1:{a=await e.items({store:o,auth:t,propsValue:n,lastItemId:null,files:r,server:i});break}}return BO(a.map(u=>u.data))}};function BO(e){return e.length<=5?e:e.slice(0,5)}s(BO,"getFirstFiveOrAll");var Fx=require("node:stream");function VO(e){return"body"in e?{body:e.body,size:e.size}:{body:Fx.Readable.from(e.data),size:e.data.length}}s(VO,"toStreamingBody");async function*ZO({readable:e,chunkSize:t}){let n=[],o=0;for await(let r of e)for(n.push(Buffer.isBuffer(r)?r:Buffer.from(r)),o+=n[n.length-1].length;o>=t;){let i=n.length===1?n[0]:Buffer.concat(n);yield i.subarray(0,t);let a=i.subarray(t);n=a.length>0?[a]:[],o=a.length}o>0&&(yield n.length===1?n[0]:Buffer.concat(n))}s(ZO,"readChunks");var Jm={readChunks:ZO,toStreamingBody:VO};var Di="login.microsoftonline.com",Vx="login.microsoftonline.us",Bx={[Di]:"https://graph.microsoft.com",[Vx]:"https://graph.microsoft.us"},Zx=R.StaticDropdown({displayName:"Cloud Environment",description:"Select your Microsoft cloud environment.",required:!0,defaultValue:Di,options:{disabled:!1,options:[{label:"Commercial (Global)",value:Di},{label:"US Government (GCC High)",value:Vx}]}});function HO(e){return e??Di}s(HO,"resolveCloudHost");function D(e){let t=HO(e);return Bx[t]??Bx[Di]}s(D,"getGraphBaseUrl");var qO=`
|
|
45
45
|
If you'd like to use your own custom Azure app instead of the default app, follow the [Azure app creation guide](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app#register-an-application),
|
|
46
46
|
set the **Redirect URI** to {{redirectUrl}} and add the following **Microsoft Graph (Delegated) permissions** under **API permissions**:
|
|
47
47
|
- Sites.Read.All
|
|
@@ -51,7 +51,7 @@ If you'd like to use your own custom Azure app instead of the default app, follo
|
|
|
51
51
|
- openid
|
|
52
52
|
- email
|
|
53
53
|
- profile
|
|
54
|
-
- offline_access`,M=_m.OAuth2({description:CO,props:{cloud:Dx},authUrl:"https://{cloud}/common/oauth2/v2.0/authorize",tokenUrl:"https://{cloud}/common/oauth2/v2.0/token",required:!0,scope:["openid","email","profile","offline_access","Sites.Read.All","Sites.ReadWrite.All","Sites.Manage.All","Files.ReadWrite.All"],prompt:"omit"});var Ot=ae(ve());var Jb=s(e=>R.Dropdown({auth:M,displayName:e.displayName,required:!0,refreshers:e.refreshers,options:s(async({auth:t,...n})=>{let o=n[e.refreshers[0]];if(!t||!o)return{disabled:!0,placeholder:"Please select a site first.",options:[]};let r=t,i=r.props?.cloud,a=Ot.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(r.access_token),"getAccessToken")},baseUrl:D(i)}),u=[],c=await a.api(`/sites/${o}/drives`).select("id,name").get();for(;c.value.length>0;){for(let l of c.value)u.push({label:l.name,value:l.id});if(c["@odata.nextLink"])c=await a.api(c["@odata.nextLink"]).get();else break}return{disabled:!1,options:u}},"options")}),"createDriveDropdown"),C={siteId:R.Dropdown({auth:M,displayName:"Site",required:!0,refreshers:[],options:s(async({auth:e})=>{if(!e)return{disabled:!0,placeholder:"Please connect your account first.",options:[]};let t=e,n=t.props?.cloud,o=Ot.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(t.access_token),"getAccessToken")},baseUrl:D(n)}),r=[],i=await o.api("/sites?search=*&$select=displayName,id,name").get();for(;i.value.length>0;){for(let a of i.value)r.push({label:a.displayName,value:a.id});if(i["@odata.nextLink"])i=await o.api(i["@odata.nextLink"]).get();else break}return{disabled:!1,options:r}},"options")}),driveId:Jb({displayName:"Drive",refreshers:["siteId"]}),createDriveDropdown:Jb,itemId:R.Dropdown({auth:M,displayName:"Source File or Folder",required:!0,refreshers:["siteId","driveId"],options:s(async({auth:e,siteId:t,driveId:n})=>{if(!e||!t||!n)return{disabled:!0,placeholder:"Please select a site and drive first.",options:[]};let o=e,r=o.props?.cloud,i=Ot.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:D(r)}),a=[],u=await i.api(`/sites/${t}/drives/${n}/root/children?$select=id,name,folder,file`).get();for(;u.value.length>0;){for(let c of u.value){let l=c.folder?"[Folder] ":"[File] ";a.push({label:l+c.name,value:c.id})}if(u["@odata.nextLink"])u=await i.api(u["@odata.nextLink"]).get();else break}return{disabled:!1,options:a}},"options")}),destinationFolderId:R.Dropdown({auth:M,displayName:"Destination Folder",description:"The folder to copy the item into. Defaults to the root of the drive.",required:!1,refreshers:["destination_site_id","destination_drive_id"],options:s(async({auth:e,...t})=>{let n=t.destination_site_id,o=t.destination_drive_id;if(!e||!n||!o)return{disabled:!0,placeholder:"Select a destination site and drive first.",options:[]};let r=e,i=r.props?.cloud,a=Ot.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(r.access_token),"getAccessToken")},baseUrl:D(i)}),u=[],c=await a.api(`/sites/${n}/drives/${o}/root/children?$filter=folder ne null&$select=id,name`).get();for(;c.value.length>0;){for(let l of c.value)u.push({label:l.name,value:l.id});if(c["@odata.nextLink"])c=await a.api(c["@odata.nextLink"]).get();else break}return{disabled:!1,options:u}},"options")}),listId:R.Dropdown({auth:M,displayName:"List",required:!0,refreshers:["siteId"],options:s(async({auth:e,siteId:t})=>{if(!e||!t)return{disabled:!0,placeholder:"Please select a site first.",options:[]};let n=e,o=n.props?.cloud,r=Ot.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(n.access_token),"getAccessToken")},baseUrl:D(o)}),i=[],a=await r.api(`/sites/${t}/lists`).select("displayName,id").get();for(;a.value.length>0;){for(let u of a.value)i.push({label:u.displayName,value:u.id});if(a["@odata.nextLink"])a=await r.api(a["@odata.nextLink"]).get();else break}return{disabled:!1,options:i}},"options")}),listColumns:R.DynamicProperties({auth:M,displayName:"List Columns",refreshers:["siteId","listId"],required:!0,props:s(async({auth:e,siteId:t,listId:n})=>{if(!e||!t||!n)return{};let o={},r=e,i=r.props?.cloud,a=Ot.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(r.access_token),"getAccessToken")},baseUrl:D(i)}),u=[],c=await a.api(`/sites/${t}/lists/${n}/columns`).get();for(;c.value.length>0;){for(let l of c.value)l.readOnly||u.push(l);if(c["@odata.nextLink"])c=await a.api(c["@odata.nextLink"]).get();else break}for(let l of u){let d={displayName:l.displayName,description:l.description??"",required:!1};l.boolean?o[l.name]=R.Checkbox(d):l.text?o[l.name]=R.LongText(d):l.dateTime?o[l.name]=R.DateTime(d):l.choice?l.choice.displayAs==="checkBoxes"?o[l.name]=R.StaticMultiSelectDropdown({...d,options:{disabled:!1,options:l.choice?.choices?l.choice.choices.map(g=>({label:g,value:g})):[]}}):o[l.name]=R.StaticDropdown({...d,options:{disabled:!1,options:l.choice?.choices?l.choice.choices.map(g=>({label:g,value:g})):[]}}):l.number?o[l.name]=R.Number(d):l.currency&&(o[l.name]=R.Number(d))}return o},"props")}),listItemId:R.Dropdown({auth:M,displayName:"List Item",required:!0,refreshers:["siteId","listId"],options:s(async({auth:e,siteId:t,listId:n})=>{if(!e||!t||!n)return{disabled:!0,placeholder:"Please select a site and list first.",options:[]};let o=e,r=o.props?.cloud,i=Ot.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:D(r)}),a=[],u=await i.api(`/sites/${t}/lists/${n}/items?$select=id&$expand=fields($select=Title)`).get();for(;u.value.length>0;){for(let c of u.value)a.push({label:c.fields.Title??`Item ${c.id}`,value:c.id});if(u["@odata.nextLink"])u=await i.api(u["@odata.nextLink"]).get();else break}return{disabled:!1,options:a}},"options")}),pageId:R.Dropdown({auth:M,displayName:"Page",required:!0,refreshers:["siteId"],options:s(async({auth:e,siteId:t})=>{if(!e||!t)return{disabled:!0,placeholder:"Please select a site first.",options:[]};let n=e,o=n.props?.cloud,r=Ot.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(n.access_token),"getAccessToken")},baseUrl:D(o)}),i=[],a=await r.api(`/sites/${t}/pages?$select=id,title`).get();for(;a.value.length>0;){for(let u of a.value)i.push({label:u.title??`Page ${u.id}`,value:u.id});if(a["@odata.nextLink"])a=await r.api(a["@odata.nextLink"]).get();else break}return{disabled:!1,options:i}},"options")})};var Xb=ae(ve());var Kb=ce({auth:M,name:"microsoft_sharepoint_create_folder",classification:"WRITE",displayName:"Create Folder",description:"Creates a new folder at path you specify.",audience:"both",aiMetadata:{description:"Creates a folder at a given path inside a SharePoint document library (drive), creating it relative to a parent folder path or the drive root. Use to provision a destination folder before uploading or moving files. Requires the target site and drive; the folder is keyed on its path, so re-running with the same path leaves the existing folder in place rather than producing a duplicate.",idempotent:!0},props:{siteId:C.siteId,driveId:C.driveId,parentFolder:R.ShortText({displayName:"Parent Folder",description:'Parent folder,like "/demo/" or "/docs/assignment/".Leave it default if you want to create folder at the root (**/**) level.',required:!0,defaultValue:"/"}),folderName:R.ShortText({displayName:"Folder Name",required:!0})},async run(e){let{driveId:t,parentFolder:n,folderName:o}=e.propsValue,r=e.auth.props?.cloud,i=Xb.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(r)}),a=n+o;return await i.api(`/drives/${t}/root:${a}`).patch({folder:{}})}});var Yb=ae(ve());var Qb=ce({auth:M,name:"microsoft_sharepoint_create_list",classification:"WRITE",displayName:"Create List",description:"Creates a new list.",audience:"both",aiMetadata:{description:"Creates a new SharePoint list (with a display name and description) on a given site. Use when an agent needs a fresh list to hold structured items. Not idempotent: each call creates another list even if one with the same name already exists.",idempotent:!1},props:{siteId:C.siteId,displayName:R.ShortText({displayName:"List Name",required:!0}),description:R.ShortText({displayName:"List Description",required:!0})},async run(e){let{siteId:t,displayName:n,description:o}=e.propsValue,r=e.auth.props?.cloud,i=Yb.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(r)}),a={displayName:n,description:o};return await i.api(`/sites/${t}/lists`).post(a)}});var eE=ae(ve());var tE=ce({auth:M,name:"microsoft_sharepoint_create_list_item",classification:"WRITE",displayName:"Create List Item",description:"Creates a new item in a list.",audience:"both",aiMetadata:{description:"Adds a new item (row) to a SharePoint list on a given site, setting the list column field values you provide. Use to record a new entry in an existing list. Not idempotent: each call appends another item, so repeating it creates duplicates.",idempotent:!1},props:{siteId:C.siteId,listId:C.listId,listColumns:C.listColumns},async run(e){let{siteId:t,listId:n,listColumns:o}=e.propsValue,r=e.auth.props?.cloud,i=eE.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(r)}),a={};Object.entries(o).forEach(([c,l])=>{Array.isArray(l)&&(a[`${c}@odata.type`]="Collection(Edm.String)")});let u={fields:{...o,...a}};return await i.api(`/sites/${t}/lists/${n}/items`).post(u)}});var rE=ae(ve());var nE=ce({auth:M,name:"microsoft_sharepoint_delete_list_item",classification:"DESTRUCTIVE",displayName:"Delete List Item",description:"Deletes an existing item from a list.",audience:"both",aiMetadata:{description:"Permanently removes an item from a SharePoint list, identified by its list item ID on a given site. Use to clean up or retract a specific row. Destructive but idempotent: once the item is gone, repeating the call with the same ID leaves the list unchanged.",idempotent:!0},props:{siteId:C.siteId,listId:C.listId,listItemId:C.listItemId},async run(e){let{siteId:t,listId:n,listItemId:o}=e.propsValue,r=e.auth.props?.cloud;return await rE.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(r)}).api(`/sites/${t}/lists/${n}/items/${o}`).delete()}});var oE=ae(ve());var iE=ce({auth:M,name:"microsoft_sharepoint_search_list_item",classification:"SEARCH",displayName:"Find List Item",description:"Finds a item in a list based on name.",audience:"both",aiMetadata:{description:"Looks up items in a SharePoint list by exact Title match on a given site, returning the matching items with their fields. Use to resolve a list item ID (or confirm existence) before updating or deleting it. Read-only and idempotent; matches only the Title column, not arbitrary fields.",idempotent:!0},props:{siteId:C.siteId,listId:C.listId,searchValue:R.ShortText({displayName:"Title",description:"Item title to search",required:!0})},async run(e){let{siteId:t,listId:n,searchValue:o}=e.propsValue,r=e.auth.props?.cloud,i=oE.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(r)}),a=o.replaceAll("'","''");return await i.api(`/sites/${t}/lists/${n}/items?$expand=fields&filter=fields/Title eq '${a}'`).headers({Prefer:"HonorNonIndexedQueriesWarningMayFailRandomly"}).get()}});var aE=ae(ve());var sE=ce({auth:M,name:"microsoft_sharepoint_update_list_item",classification:"WRITE",displayName:"Update List Item",description:"Updates an existing item in a list.",audience:"both",aiMetadata:{description:"Updates the column field values of an existing item in a SharePoint list, identified by its list item ID on a given site. Use to edit a known row rather than create one. Requires a valid item ID; idempotent, since re-applying the same field values leaves the item in the same final state.",idempotent:!0},props:{siteId:C.siteId,listId:C.listId,listItemId:C.listItemId,listColumns:C.listColumns},async run(e){let{siteId:t,listId:n,listItemId:o,listColumns:r}=e.propsValue,i=e.auth.props?.cloud,a=aE.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(i)}),u={};Object.entries(r).forEach(([l,d])=>{Array.isArray(d)&&(u[`${l}@odata.type`]="Collection(Edm.String)")});let c={...r,...u};return await a.api(`/sites/${t}/lists/${n}/items/${o}/fields`).patch(c)}});var uE=require("node:stream"),cE=require("node:stream/consumers");var lE=ae(ve());var tk=250*1024*1024,rk=10*1024*1024,pE=ce({auth:M,name:"microsoft_sharepoint_upload_file",classification:"WRITE",displayName:"Upload File",description:"Uploads a new file at path you specify.",audience:"both",aiMetadata:{description:"Uploads file content to a SharePoint document library (drive), placing it under a parent folder path with the file name you specify. Files over 250 MB are uploaded in chunks automatically. Use to push a file (from a prior step or URL) into a site. Idempotent on the target path: uploading the same name to the same folder replaces the existing file rather than creating a duplicate.",idempotent:!0},props:{siteId:C.siteId,driveId:C.driveId,file:R.File({displayName:"File",description:"The file or url you want to upload",required:!0,streaming:!0}),parentFolder:R.ShortText({displayName:"Parent Folder",description:'Parent folder, like "/demo/" or "/docs/assignment/".Leave it default if you want to create folder at the root (**CHANGE THIS BACK//**) level.',required:!0,defaultValue:"/"}),fileName:R.ShortText({displayName:"File Name",required:!0})},async run(e){let{siteId:t,driveId:n,file:o,parentFolder:r,fileName:i}=e.propsValue,a=e.auth.props?.cloud,u=D(a),c=lE.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:u}),d=(await c.api(`/sites/${t}/drives/${n}/root:${r}`).get()).id??"test",g=`/sites/${t}/drives/${n}/items/${d}:/${i}`,{body:h,size:p}=Zm.toStreamingBody(o);if(p==null){let _=await(0,cE.buffer)(h);p=_.length,h=uE.Readable.from(_)}if(p>tk){let _=await c.api(`${g}:/createUploadSession`).post({item:{"@microsoft.graph.conflictBehavior":"replace",name:i}});return await nk({uploadUrl:_.uploadUrl,body:h,fileSize:p})}return(await Oi.sendRequest({method:"PUT",url:`${u}/v1.0${g}:/content`,body:h,headers:{"Content-Type":"application/octet-stream","Content-Length":String(p)},authentication:{type:"BEARER_TOKEN",token:e.auth.access_token}})).body}});async function nk({uploadUrl:e,body:t,fileSize:n}){let o=0,r;for await(let i of Zm.readChunks({readable:t,chunkSize:rk}))r=await Oi.sendRequest({method:"PUT",url:e,body:i,headers:{"Content-Length":String(i.length),"Content-Range":`bytes ${o}-${o+i.length-1}/${n}`}}),o+=i.length;return r?.body}s(nk,"uploadInSession");var Uc=ae(ve());var dE=2e3,ok=120;async function ik(e){return new Promise(t=>setTimeout(t,e))}s(ik,"delay");var fE=ce({auth:M,name:"microsoft_sharepoint_copy_item",classification:"WRITE",displayName:"Copy File or Folder (Across Sites)",description:"Copy a file or folder from one site to another within the same tenant, with overwrite option.",audience:"both",aiMetadata:{description:"Copies a file or folder from one SharePoint site/drive to a destination site, drive, and folder within the same tenant, optionally renaming the copy. Use to duplicate content across sites; for same-site copies use the within-site variant. The conflict behavior (fail, replace, or rename) controls what happens on a name clash. Not idempotent: each run produces another copy (rename mode) or overwrites the target (replace mode).",idempotent:!1},props:{siteId:C.siteId,driveId:C.driveId,itemId:C.itemId,destination_site_id:C.siteId,destination_drive_id:C.createDriveDropdown({displayName:"Destination Drive",refreshers:["destination_site_id"]}),destination_folder_id:C.destinationFolderId,new_name:R.ShortText({displayName:"New Name (Optional)",description:"A new name for the copied item. If not provided, the original name is used.",required:!1}),conflict_behavior:R.StaticDropdown({displayName:"Conflict Behavior",description:"Action to take if a file with the same name already exists.",required:!0,options:{options:[{label:"Fail on conflict",value:"fail"},{label:"Overwrite existing file",value:"replace"},{label:"Rename with a number",value:"rename"}]},defaultValue:"fail"})},async run(e){let{siteId:t,driveId:n,itemId:o,destination_drive_id:r,destination_folder_id:i,new_name:a,conflict_behavior:u}=e.propsValue,c=e.auth.props?.cloud,l=Uc.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(c)}),d={parentReference:{driveId:r}};i&&(d.parentReference.id=i),a&&(d.name=a);let g;try{g=await l.api(`/drives/${n}/items/${o}/copy`).responseType(Uc.ResponseType.RAW).query({"@microsoft.graph.conflictBehavior":u}).post(d)}catch(m){throw m.statusCode===400?new Error(`Invalid request: ${m.message||"Check your input parameters"}`):m.statusCode===403?new Error("Insufficient permissions to copy this item. Requires Files.ReadWrite or higher."):m.statusCode===404?new Error("Source item not found. Please verify the site, drive, and item IDs."):new Error(`Failed to initiate copy operation: ${m.message||"Unknown error"}`)}let h=g.headers.get("Location");if(!h)throw new Error("Could not get monitor URL from copy operation response.");let p=ok*1e3/dE;for(;p>0;){let m=await l.api(h).get();if(m.status==="completed")return{success:!0,status:"completed",resourceId:m.resourceId,resourceLocation:m.resourceLocation};if(m.status==="failed"){let _=m.error?.details?m.error.details.map(P=>P.message||P.code).join(", "):m.error?.message||"Unknown error";throw new Error(`Copy operation failed: ${_}`)}await ik(dE),p--}throw new Error("Copy operation timed out after 120 seconds.")}});var Fi=ae(ve());var mE=2e3,ak=120;async function sk(e){return new Promise(t=>setTimeout(t,e))}s(sk,"delay");var hE=ce({auth:M,name:"microsoft_sharepoint_copy_item_within_site",classification:"WRITE",displayName:"Copy File or Folder (Within Site)",description:"Copy a file or folder to another folder within the same site.",audience:"both",aiMetadata:{description:"Copies a file or folder to another folder within the same SharePoint site and drive, optionally renaming the copy; select the root to copy to the drive top level. Use for same-site duplication; for cross-site copies use the across-sites variant. The conflict behavior (fail, replace, or rename) controls name clashes. Not idempotent: each run produces another copy (rename mode) or overwrites the target (replace mode).",idempotent:!1},props:{siteId:C.siteId,driveId:C.driveId,itemId:C.itemId,destinationFolderId:R.Dropdown({auth:M,displayName:"Destination Folder",description:'The folder to copy the item into. Select "Root" to copy to the top level of the drive.',required:!0,refreshers:["siteId","driveId"],options:s(async({auth:e,siteId:t,driveId:n})=>{if(!e||!t||!n)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let o=e,r=o.props?.cloud,i=Fi.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:D(r)}),a=[{label:"Root",value:"root"}],u=await i.api(`/sites/${t}/drives/${n}/root/children?$filter=folder ne null&$select=id,name`).get();for(;u.value.length>0;){for(let c of u.value)a.push({label:c.name,value:c.id});if(u["@odata.nextLink"])u=await i.api(u["@odata.nextLink"]).get();else break}return{disabled:!1,options:a}},"options")}),newName:R.ShortText({displayName:"New Name (Optional)",description:"A new name for the copied item. If not provided, the original name is used.",required:!1}),conflictBehavior:R.StaticDropdown({displayName:"Conflict Behavior",description:"Action to take if a file with the same name already exists in the destination.",required:!0,options:{options:[{label:"Fail on conflict",value:"fail"},{label:"Overwrite existing file",value:"replace"},{label:"Rename with a number",value:"rename"}]},defaultValue:"fail"})},async run(e){let{siteId:t,driveId:n,itemId:o,destinationFolderId:r,newName:i,conflictBehavior:a}=e.propsValue,u=e.auth.props?.cloud,c=Fi.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(u)}),d={parentReference:{id:r==="root"?(await c.api(`/drives/${n}/root`).get()).id:r}};i&&(d.name=i);let g;try{g=await c.api(`/drives/${n}/items/${o}/copy`).responseType(Fi.ResponseType.RAW).query({"@microsoft.graph.conflictBehavior":a}).post(d)}catch(m){throw m.statusCode===400?new Error(`Invalid request: ${m.message||"Check your input parameters"}`):m.statusCode===403?new Error("Insufficient permissions to copy this item. Requires Files.ReadWrite or higher."):m.statusCode===404?new Error("Source item not found. Please verify the site, drive, and item IDs."):new Error(`Failed to initiate copy operation: ${m.message||"Unknown error"}`)}let h=g.headers.get("Location");if(!h)throw new Error("Could not get monitor URL from copy operation response.");let p=ak*1e3/mE;for(;p>0;){let m=await c.api(h).get();if(m.status==="completed")return{success:!0,status:"completed",resourceId:m.resourceId,resourceLocation:m.resourceLocation};if(m.status==="failed"){let _=m.error?.details?m.error.details.map(P=>P.message||P.code).join(", "):m.error?.message||"Unknown error";throw new Error(`Copy operation failed: ${_}`)}await sk(mE),p--}throw new Error("Copy operation timed out after 120 seconds.")}});var hh=ae(ve());var gE=ce({auth:M,name:"microsoft_sharepoint_find_file",classification:"SEARCH",displayName:"Find File",description:"Look up a file by its name or path.",audience:"both",aiMetadata:{description:"Locates files in a SharePoint document library (drive) on a given site, either by exact path from the drive root or by keyword search on the file name (optionally scoped to a folder). Use to resolve a file ID/metadata before downloading, moving, or copying. Read-only and idempotent; path mode returns an empty result rather than erroring when the file is missing.",idempotent:!0},props:{siteId:C.siteId,driveId:C.driveId,findMethod:R.StaticDropdown({displayName:"Find Method",description:"Choose how to find the file.",required:!0,options:{options:[{label:"Find by Exact Path",value:"path"},{label:"Search by Name",value:"search"}]},defaultValue:"search"}),filePath:R.ShortText({displayName:"File Path",description:"The exact path to the file from the drive's root. **Required if finding by path.** Example: `Documents/Reports/Q1-Report.docx`",required:!1}),searchQuery:R.ShortText({displayName:"Search Query",description:"The file name or keyword to search for. **Required if searching by name.** Example: `Q1-Report.docx`",required:!1}),searchFolderId:R.Dropdown({auth:M,displayName:"Folder to Search In (Optional)",description:"The folder to search within. If not specified, the entire drive will be searched. **Only applies when searching by name.**",required:!1,refreshers:["siteId","driveId"],options:s(async({auth:e,siteId:t,driveId:n})=>{if(!e||!t||!n)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let o=e,r=o.props?.cloud,i=hh.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:D(r)}),a=[],u=await i.api(`/sites/${t}/drives/${n}/root/children?$filter=folder ne null&$select=id,name`).get();for(;u.value.length>0;){for(let c of u.value)a.push({label:c.name,value:c.id});if(u["@odata.nextLink"])u=await i.api(u["@odata.nextLink"]).get();else break}return{disabled:!1,options:a}},"options")})},async run(e){let{driveId:t,findMethod:n,filePath:o,searchQuery:r,searchFolderId:i}=e.propsValue,a=e.auth.props?.cloud,u=hh.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(a)});if(n==="path"){if(!o)throw new Error("File Path is required when finding by path.");let c=o.startsWith("/")?o.substring(1):o;try{return{success:!0,files:[await u.api(`/drives/${t}/root:/${encodeURI(c)}`).get()]}}catch(l){let d=l;if(d.statusCode===404)return{success:!0,files:[]};throw new Error(`Failed to find file by path: ${d.message||"Unknown error"}`)}}else{if(!r)throw new Error("Search Query is required when searching by name.");let c=`/drives/${t}/`;i?c+=`items/${i}/`:c+="root/",c+=`search(q='${encodeURIComponent(r)}')`;try{return{success:!0,files:(await u.api(c).get()).value||[]}}catch(l){throw new Error(`Failed to search for file: ${l.message||"Unknown error"}`)}}}});var gh=ae(ve());var yE=ce({auth:M,name:"microsoft_sharepoint_get_folder_contents",classification:"SEARCH",displayName:"Get Folder Contents",description:"List all files and subfolders in a specified folder, optionally with detailed metadata.",audience:"both",aiMetadata:{description:"Lists the immediate files and subfolders of a folder in a SharePoint document library (drive) on a given site, with optional paging, field selection, sorting, and inclusion of custom SharePoint column metadata. Use to enumerate or browse a folder one level deep. Read-only and idempotent; returns one page (default 200 items) with an @odata.nextLink for further pages.",idempotent:!0},props:{siteId:C.siteId,driveId:C.driveId,folderId:R.Dropdown({auth:M,displayName:"Folder",description:'The folder whose contents you want to list. Select "Root Folder" for the top-level folder.',required:!0,refreshers:["siteId","driveId"],options:s(async({auth:e,siteId:t,driveId:n})=>{if(!e||!t||!n)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let o=e,r=o.props?.cloud,i=gh.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:D(r)}),a=[{label:"Root Folder",value:"root"}],u=await i.api(`/sites/${t}/drives/${n}/root/children?$filter=folder ne null&$select=id,name`).get();for(;u.value.length>0;){for(let c of u.value)a.push({label:c.name,value:c.id});if(u["@odata.nextLink"])u=await i.api(u["@odata.nextLink"]).get();else break}return{disabled:!1,options:a}},"options")}),includeCustomFields:R.Checkbox({displayName:"Include Custom Metadata",description:"Check this to include SharePoint-specific metadata (custom columns). This may slow down the request.",required:!1,defaultValue:!1}),top:R.Number({displayName:"Page Size",description:"The maximum number of items to return. The API default is 200. If more items exist, the output will contain a field `@odata.nextLink` that you can use in a custom API call to get the next page.",required:!1}),select:R.ShortText({displayName:"Select Fields (Optional)",description:"A comma-separated list of properties to return. Example: `id,name,size,webUrl`",required:!1}),orderby:R.ShortText({displayName:"Order By (Optional)",description:"Specifies how to sort the returned items. Example: `name asc` or `lastModifiedDateTime desc`",required:!1})},async run(e){let{siteId:t,driveId:n,folderId:o,includeCustomFields:r,top:i,select:a,orderby:u}=e.propsValue,c=e.auth.props?.cloud,l=gh.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(c)}),d=o==="root"?`/sites/${t}/drive/root/children`:`/sites/${t}/drive/items/${o}/children`,g={};return r&&(g.$expand="listItem(expand=fields)"),i&&(g.$top=i),a&&(g.$select=a),u&&(g.$orderby=u),(await l.api(d).query(g).get()).value||[]}});var vE=ae(ve());var _E=ce({auth:M,name:"microsoft_sharepoint_get_site_information",classification:"READ",displayName:"Get Site Information",description:"Fetch metadata of a SharePoint site (site ID, title, URL, description, etc.).",audience:"both",aiMetadata:{description:"Fetches metadata for a single SharePoint site by its site ID (title, URL, description, and similar properties), with optional field selection. Use to inspect or confirm site details once you have its ID. Read-only and idempotent.",idempotent:!0},props:{siteId:C.siteId,select:R.ShortText({displayName:"Select Fields (Optional)",description:"A comma-separated list of properties to return. If left blank, all default properties are returned. Example: `id,displayName,webUrl,description`",required:!1})},async run(e){let{siteId:t,select:n}=e.propsValue,o=e.auth.props?.cloud,i=vE.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(o)}).api(`/sites/${t}`);return n&&i.select(n.split(",").map(a=>a.trim())),await i.get()}});var PE=ae(ve());var xE=ce({auth:M,name:"microsoft_sharepoint_find_site",classification:"SEARCH",displayName:"Find Site",description:"Search for SharePoint sites by name and return matching results.",audience:"both",aiMetadata:{description:"Searches SharePoint sites across the tenant by a name keyword and returns matching sites with their IDs, names, and URLs. Use as the entry point to resolve a site ID needed by other SharePoint actions. Read-only and idempotent.",idempotent:!0},props:{searchTerm:R.ShortText({displayName:"Site Name",description:"The name or keyword to search for.",required:!0})},async run(e){let{searchTerm:t}=e.propsValue,n=e.auth.props?.cloud,o=PE.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(n)}),r=[],i=await o.api(`/sites?search=${encodeURIComponent(t)}&$select=displayName,id,name,webUrl`).get();for(;i.value.length>0;){for(let a of i.value)r.push({id:a.id,displayName:a.displayName,name:a.name,webUrl:a.webUrl});if(i["@odata.nextLink"])i=await o.api(i["@odata.nextLink"]).get();else break}return{sites:r}}});var Mc=ae(ve());var bE=ce({auth:M,name:"microsoft_sharepoint_move_file",classification:"WRITE",displayName:"Move File",description:"Move a file from one folder to another within the same drive.",audience:"both",aiMetadata:{description:"Moves a file to a different folder within the same SharePoint drive, optionally renaming it in the process; select the root to move to the drive top level. Use to relocate an existing file rather than copy it. Idempotent: moving a file already at the destination (with the same name) leaves it where it is.",idempotent:!0},props:{siteId:C.siteId,driveId:C.driveId,fileId:R.Dropdown({auth:M,displayName:"File to Move",description:"The file you want to move.",required:!0,refreshers:["siteId","driveId"],options:s(async({auth:e,siteId:t,driveId:n})=>{if(!e||!t||!n)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let o=e,r=o.props?.cloud,i=Mc.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:D(r)}),a=[],u=await i.api(`/drives/${n}/root/children?$select=id,name,file`).get();for(;u.value.length>0;){for(let c of u.value)c.file&&a.push({label:c.name,value:c.id});if(u["@odata.nextLink"])u=await i.api(u["@odata.nextLink"]).get();else break}return{disabled:!1,options:a}},"options")}),destinationFolderId:R.Dropdown({auth:M,displayName:"Destination Folder",description:'The folder to move the file into. Select "Root" to move to the top level of the drive.',required:!0,refreshers:["siteId","driveId"],options:s(async({auth:e,siteId:t,driveId:n})=>{if(!e||!t||!n)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let o=e,r=o.props?.cloud,i=Mc.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:D(r)}),a=[{label:"Root",value:"root"}],u=await i.api(`/sites/${t}/drives/${n}/root/children?$filter=folder ne null&$select=id,name`).get();for(;u.value.length>0;){for(let c of u.value)a.push({label:c.name,value:c.id});if(u["@odata.nextLink"])u=await i.api(u["@odata.nextLink"]).get();else break}return{disabled:!1,options:a}},"options")}),newName:R.ShortText({displayName:"New Name (Optional)",description:"Provide a new name to rename the file during the move.",required:!1})},async run(e){let{driveId:t,fileId:n,destinationFolderId:o,newName:r}=e.propsValue,i=e.auth.props?.cloud,a=Mc.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(i)});try{let c={parentReference:{id:o==="root"?(await a.api(`/drives/${t}/root`).get()).id:o}};return r&&(c.name=r),{success:!0,message:"File moved successfully",item:await a.api(`/drives/${t}/items/${n}`).patch(c)}}catch(u){throw u.statusCode===400?new Error(`Invalid request: ${u.message||"Check your input parameters"}`):u.statusCode===403?new Error("Insufficient permissions to move this file. Requires Files.ReadWrite or higher."):u.statusCode===404?new Error("File or destination not found. Please verify the IDs."):new Error(`Failed to move file: ${u.message||"Unknown error"}`)}}});var EE=ae(ve());var TE=ce({auth:M,name:"microsoft_sharepoint_publish_page",classification:"WRITE",displayName:"Publish Page",description:"Publishes a SharePoint page, making it available to all users. If the page is checked out, it will be automatically checked in. Note: Pages with active approval flows will not publish until approval is complete.",audience:"both",aiMetadata:{description:"Publishes a SharePoint site page by its page ID on a given site, making the latest version visible to all users (auto-checking it in if needed). Use to make page edits live. Idempotent: re-publishing an already-published page leaves it published. A page awaiting an approval flow will not publish until approval completes.",idempotent:!0},props:{siteId:C.siteId,pageId:C.pageId},async run(e){let{siteId:t,pageId:n}=e.propsValue,o=e.auth.props?.cloud,r=EE.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(o)});try{return await r.api(`/sites/${t}/pages/${n}/microsoft.graph.sitePage/publish`).post({}),{success:!0,message:"Page published successfully",pageId:n,siteId:t}}catch(i){throw i.statusCode===404?new Error(`Page not found. Please verify the page ID: ${n}`):i.statusCode===403?new Error("Insufficient permissions to publish this page. Requires Files.ReadWrite or higher."):i.statusCode===409?new Error("Page cannot be published. It may be awaiting approval or already published."):new Error(`Failed to publish page: ${i.message||"Unknown error"}`)}}});var Bi=ae(ve());var IE="activepieces_sharepoint_trigger",SE=Fe({auth:M,name:"new_file_in_folder",classification:"READ",displayName:"New File in Folder",description:"Fires when a new file is created or added in a specific folder.",aiMetadata:{description:"Fires when a new file appears directly inside one specific monitored folder of a SharePoint drive (the folder itself, not its subfolders). Each event represents a single newly created or added file with its metadata."},props:{siteId:C.siteId,driveId:C.driveId,folderId:R.Dropdown({auth:M,displayName:"Folder to Monitor",description:'The folder to watch for new files. Select "Root Folder" for the top-level folder of the drive.',required:!0,refreshers:["siteId","driveId"],options:s(async({auth:e,siteId:t,driveId:n})=>{if(!e||!t||!n)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let o=e,r=o.props?.cloud,i=Bi.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:D(r)}),a=[{label:"Root Folder",value:"root"}],u=await i.api(`/drives/${n}/root/children?$filter=folder ne null&$select=id,name`).get();for(;u.value.length>0;){for(let c of u.value)a.push({label:c.name,value:c.id});if(u["@odata.nextLink"])u=await i.api(u["@odata.nextLink"]).get();else break}return{disabled:!1,options:a}},"options")})},type:"WEBHOOK",sampleData:{id:"01DRYVE_ID_GOES_HERE",name:"Example-Report.docx",webUrl:"https://contoso.sharepoint.com/Shared%20Documents/Example-Report.docx",size:12345,createdDateTime:"2025-09-26T14:26:12Z",lastModifiedDateTime:"2025-09-26T14:26:12Z",file:{mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"},parentReference:{driveId:"DRIVE_ID_HERE",id:"PARENT_FOLDER_ID_HERE",path:"/drives/DRIVE_ID_HERE/root:/Shared Documents"}},async onEnable(e){let{siteId:t,driveId:n,folderId:o}=e.propsValue,r=e.auth.props?.cloud,i=Bi.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(r)});try{let a=o==="root"?(await i.api(`/drives/${n}/root`).get()).id:o,u=new Date;u.setDate(u.getDate()+2);let c=await i.api("/subscriptions").post({changeType:"created",notificationUrl:e.webhookUrl,resource:`/sites/${t}/drive/items/${a}/children`,expirationDateTime:u.toISOString(),clientState:IE});await e.store.put("subscriptionId",c.id)}catch(a){throw new Error(`Failed to create subscription: ${a.message||"Unknown error"}`)}},async onDisable(e){let t=await e.store.get("subscriptionId");if(t){let n=e.auth.props?.cloud,o=Bi.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(n)});try{await o.api(`/subscriptions/${t}`).delete()}catch(r){console.warn(`Error deleting subscription ${t}:`,r)}}await e.store.delete("subscriptionId")},async run(e){let t=e.payload.body?.value;if(!t||!Array.isArray(t))return[];let n=t.filter(a=>a.clientState===IE);if(n.length===0)return[];let o=e.auth.props?.cloud,r=Bi.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(o)}),i=[];for(let a of n)try{let u=await r.api(a.resource).get();u.file&&i.push(u)}catch(u){console.error("Error fetching file from notification:",u)}return i}});var Vi=ae(ve());var AE="activepieces_sharepoint_subfolder_trigger",wE=Fe({auth:M,name:"new_file_in_subfolders",classification:"READ",displayName:"New File in Subfolders",description:"Fires when a new file is added anywhere in the first-level subfolders of a folder. Note: This trigger will not monitor subfolders created after the flow is activated.",aiMetadata:{description:"Fires when a new file is added to any of the immediate (first-level) subfolders of a chosen parent folder in a SharePoint drive. Each event represents one newly added file. Only subfolders that existed when the flow was activated are monitored; subfolders created later are not watched."},props:{siteId:C.siteId,driveId:C.driveId,parentFolderId:R.Dropdown({auth:M,displayName:"Parent Folder",description:"The parent folder whose subfolders you want to monitor.",required:!0,refreshers:["siteId","driveId"],options:s(async({auth:e,siteId:t,driveId:n})=>{if(!e||!t||!n)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let o=e,r=o.props?.cloud,i=Vi.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:D(r)}),a=[{label:"Root Folder",value:"root"}],u=await i.api(`/drives/${n}/root/children?$filter=folder ne null&$select=id,name`).get();for(;u.value.length>0;){for(let c of u.value)a.push({label:c.name,value:c.id});if(u["@odata.nextLink"])u=await i.api(u["@odata.nextLink"]).get();else break}return{disabled:!1,options:a}},"options")})},type:"WEBHOOK",sampleData:{id:"01DRYVE_ID_GOES_HERE",name:"New-File-In-Subfolder.pdf",webUrl:"https://contoso.sharepoint.com/Shared%20Documents/SubfolderA/New-File-In-Subfolder.pdf",size:54321,createdDateTime:"2025-09-26T14:30:00Z",lastModifiedDateTime:"2025-09-26T14:30:00Z",file:{mimeType:"application/pdf"},parentReference:{id:"SUBFOLDER_ID_HERE"}},async onEnable(e){let{siteId:t,driveId:n,parentFolderId:o}=e.propsValue,r=e.auth.props?.cloud,i=Vi.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(r)});try{let a=o==="root"?(await i.api(`/drives/${n}/root`).get()).id:o,c=(await i.api(`/drives/${n}/items/${a}/children?$filter=folder ne null&$select=id`).get()).value,l=new Date;l.setDate(l.getDate()+2);let d=c.map(p=>i.api("/subscriptions").post({changeType:"created",notificationUrl:e.webhookUrl,resource:`/sites/${t}/drive/items/${p.id}/children`,expirationDateTime:l.toISOString(),clientState:AE})),h=(await Promise.allSettled(d)).filter(p=>p.status==="fulfilled").map(p=>p.value.id);await e.store.put("subscriptionIds",h)}catch(a){throw new Error(`Failed to create subscriptions: ${a.message||"Unknown error"}`)}},async onDisable(e){let t=await e.store.get("subscriptionIds");if(t&&t.length>0){let n=e.auth.props?.cloud,o=Vi.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(n)}),r=t.map(i=>o.api(`/subscriptions/${i}`).delete().catch(a=>console.error(`Failed to delete subscription ${i}:`,a)));await Promise.allSettled(r)}await e.store.delete("subscriptionIds")},async run(e){let t=e.payload.body?.value;if(!t||!Array.isArray(t))return[];let n=t.filter(a=>a.clientState===AE);if(n.length===0)return[];let o=e.auth.props?.cloud,r=Vi.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(o)}),i=[];for(let a of n)try{let u=await r.api(a.resource).get();u.file&&i.push(u)}catch(u){console.error("Error fetching file from notification:",u)}return i}});var $E=ae(ve()),jc=ae(In());var Lc={strategy:0,items:s(async({auth:e,propsValue:t,lastFetchEpochMS:n})=>{let{siteId:o}=t,r=n===0,i=e.props?.cloud,a=$E.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.access_token),"getAccessToken")},baseUrl:D(i)}),u=[],c=await a.api(`/sites/${o}/lists`).get(),l=!1;for(;!l&&c.value.length>0;){for(let d of c.value){if(r){u.push(d),u.length>=10&&(l=!0);continue}u.push(d)}if(l||!c["@odata.nextLink"])break;c=await a.api(c["@odata.nextLink"]).get()}return u.sort((d,g)=>{let h=(0,jc.default)(d.createdDateTime);return(0,jc.default)(g.createdDateTime).diff(h)}),u.map(d=>({epochMilliSeconds:(0,jc.default)(d.createdDateTime).valueOf(),data:d}))},"items")},OE=Fe({auth:M,name:"new_list",classification:"READ",displayName:"New List",description:"Triggers when a new list is created in a site.",aiMetadata:{description:"Fires when a new list is created on one specific SharePoint site, based on list creation time (polling). Each event represents one newly created list; changes to existing lists do not trigger it (use New or Updated List for that)."},props:{siteId:C.siteId},type:"POLLING",sampleData:void 0,async onEnable(e){await ge.onEnable(Lc,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async onDisable(e){await ge.onDisable(Lc,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async test(e){return await ge.test(Lc,e)},async run(e){return await ge.poll(Lc,e)}});var RE=ae(ve()),Zi=ae(In());var Bc={strategy:0,items:s(async({auth:e,propsValue:t,lastFetchEpochMS:n})=>{let{siteId:o,listId:r}=t,i=e.props?.cloud,a=RE.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.access_token),"getAccessToken")},baseUrl:D(i)}),u=[],c=n===0?`$filter=createdDateTime gt ${(0,Zi.default)().toISOString()}`:"$top=10",l=await a.api(`/sites/${o}/lists/${r}/items?${c}`).expand("fields").get();if(n===0)for(let d of l.value)u.push(d);else for(;l.value.length>0;){for(let d of l.value)u.push(d);if(l["@odata.nextLink"])l=await a.api(l["@odata.nextLink"]).get();else break}return u.sort((d,g)=>{let h=(0,Zi.default)(d.createdDateTime);return(0,Zi.default)(g.createdDateTime).diff(h)}),u.map(d=>({epochMilliSeconds:(0,Zi.default)(d.createdDateTime).valueOf(),data:d}))},"items")},zE=Fe({auth:M,name:"new_list_item",classification:"READ",displayName:"New List Item",description:"Triggers when a new item is created in a SharePoint list.",aiMetadata:{description:"Fires when a new item (row) is added to one specific SharePoint list on a given site, based on item creation time (polling). Each event represents one newly created list item with its fields; updates to existing items do not trigger it."},props:{siteId:C.siteId,listId:C.listId},type:"POLLING",sampleData:void 0,async onEnable(e){await ge.onEnable(Bc,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async onDisable(e){await ge.onDisable(Bc,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async test(e){return await ge.test(Bc,e)},async run(e){return await ge.poll(Bc,e)}});var _h=ae(ve()),Hi=ae(In());var Vc={strategy:0,items:s(async({auth:e,propsValue:t,lastFetchEpochMS:n})=>{let{siteId:o,driveId:r,folderId:i}=t,a=n===0,u=e.props?.cloud,c=_h.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.access_token),"getAccessToken")},baseUrl:D(u)}),l=[],d=i!=="root"?`/sites/${o}/drive/items/${i}/children`:`/sites/${o}/drives/${r}/items/root/children`,g=await c.api(d).orderby("lastModifiedDateTime desc").get(),h=!1;for(;!h&&g.value.length>0;){for(let p of g.value){if(!p.file)continue;let m=(0,Hi.default)(p.lastModifiedDateTime).valueOf();if(a){l.push(p),l.length>=10&&(h=!0);continue}if(m<n){h=!0;break}l.push(p)}if(h||!g["@odata.nextLink"])break;g=await c.api(g["@odata.nextLink"]).get()}return l.sort((p,m)=>{let _=(0,Hi.default)(p.lastModifiedDateTime);return(0,Hi.default)(m.lastModifiedDateTime).diff(_)}),l.map(p=>({epochMilliSeconds:(0,Hi.default)(p.lastModifiedDateTime).valueOf(),data:p}))},"items")},kE=Fe({auth:M,name:"new_or_updated_file",classification:"READ",displayName:"New or Updated File",description:"Triggers when a file is created or updated in a given folder.",aiMetadata:{description:"Fires when a file is created or modified directly inside one monitored folder of a SharePoint drive, based on its last-modified time (polling). Each event represents a file that is new or whose contents/metadata changed; choose this over New File in Folder when edits to existing files should also trigger."},props:{siteId:C.siteId,driveId:C.driveId,folderId:R.Dropdown({auth:M,displayName:"Folder to Monitor",description:'The folder to watch for new or updated files. Select "Root Folder" for the top-level folder of the drive.',required:!0,refreshers:["siteId","driveId"],options:s(async({auth:e,siteId:t,driveId:n})=>{if(!e||!t||!n)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let o=e,r=o.props?.cloud,i=_h.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:D(r)}),a=[{label:"Root Folder",value:"root"}],u=await i.api(`/sites/${t}/drives/${n}/items/root/children?$filter=folder ne null&$select=id,name`).get();for(;u.value.length>0;){for(let c of u.value)a.push({label:c.name,value:c.id});if(u["@odata.nextLink"])u=await i.api(u["@odata.nextLink"]).get();else break}return{disabled:!1,options:a}},"options")})},type:"POLLING",sampleData:{id:"01DRYVE_ID_GOES_HERE",name:"Updated-Financials.xlsx",webUrl:"https://contoso.sharepoint.com/Shared%20Documents/Updated-Financials.xlsx",size:65432,createdDateTime:"2025-09-26T10:00:00Z",lastModifiedDateTime:"2025-09-26T14:34:00Z",file:{mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},parentReference:{id:"PARENT_FOLDER_ID_HERE"}},async onEnable(e){await ge.onEnable(Vc,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async onDisable(e){await ge.onDisable(Vc,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async test(e){return await ge.test(Vc,e)},async run(e){return await ge.poll(Vc,e)}});var Ph=ae(ve()),qi=ae(In());var Zc={strategy:0,items:s(async({auth:e,propsValue:t,lastFetchEpochMS:n})=>{let{siteId:o,driveId:r,parentFolderId:i}=t,a=n===0,u=e.props?.cloud,c=Ph.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.access_token),"getAccessToken")},baseUrl:D(u)}),l=[],d=i!=="root"?`/sites/${o}/drive/items/${i}/children`:`/sites/${o}/drives/${r}/items/root/children`,g=await c.api(d).orderby("lastModifiedDateTime desc").get(),h=!1;for(;!h&&g.value.length>0;){for(let p of g.value){if(!p.folder)continue;let m=(0,qi.default)(p.lastModifiedDateTime).valueOf();if(a){l.push(p),l.length>=10&&(h=!0);continue}if(m<n){h=!0;break}l.push(p)}if(h||!g["@odata.nextLink"])break;g=await c.api(g["@odata.nextLink"]).get()}return l.sort((p,m)=>{let _=(0,qi.default)(p.lastModifiedDateTime);return(0,qi.default)(m.lastModifiedDateTime).diff(_)}),l.map(p=>({epochMilliSeconds:(0,qi.default)(p.lastModifiedDateTime).valueOf(),data:p}))},"items")},DE=Fe({auth:M,name:"new_or_updated_folder",classification:"READ",displayName:"New or Updated Folder",description:"Triggers when a folder is created or updated (e.g., name change).",aiMetadata:{description:"Fires when a subfolder is created or modified (such as a rename) directly inside one monitored parent folder of a SharePoint drive, based on its last-modified time (polling). Each event represents one new or changed folder."},props:{siteId:C.siteId,driveId:C.driveId,parentFolderId:R.Dropdown({auth:M,displayName:"Parent Folder to Monitor",description:'The folder to watch for new or updated subfolders. Select "Root Folder" to monitor the top-level of the drive.',required:!0,refreshers:["siteId","driveId"],options:s(async({auth:e,siteId:t,driveId:n})=>{if(!e||!t||!n)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let o=e,r=o.props?.cloud,i=Ph.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:D(r)}),a=[{label:"Root Folder",value:"root"}],u=await i.api(`/sites/${t}/drives/${n}/items/root/children?$filter=folder ne null&$select=id,name`).get();for(;u.value.length>0;){for(let c of u.value)a.push({label:c.name,value:c.id});if(u["@odata.nextLink"])u=await i.api(u["@odata.nextLink"]).get();else break}return{disabled:!1,options:a}},"options")})},type:"POLLING",sampleData:{id:"01DRYVE_FOLDER_ID_GOES_HERE",name:"Project Alpha",webUrl:"https://contoso.sharepoint.com/Shared%20Documents/Project%20Alpha",size:0,createdDateTime:"2025-09-26T14:50:00Z",lastModifiedDateTime:"2025-09-26T14:50:00Z",folder:{childCount:0},parentReference:{id:"PARENT_FOLDER_ID_HERE"}},async onEnable(e){await ge.onEnable(Zc,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async onDisable(e){await ge.onDisable(Zc,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async test(e){return await ge.test(Zc,e)},async run(e){return await ge.poll(Zc,e)}});var CE=ae(ve()),Gi=ae(In());var Hc={strategy:0,items:s(async({auth:e,propsValue:t,lastFetchEpochMS:n})=>{let{siteId:o}=t,r=n===0,i=e.props?.cloud,a=CE.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.access_token),"getAccessToken")},baseUrl:D(i)}),u=[],c=await a.api(`/sites/${o}/lists`).get(),l=!1;for(;!l&&c.value.length>0;){for(let d of c.value){let g=(0,Gi.default)(d.lastModifiedDateTime).valueOf();if(r){u.push(d),u.length>=10&&(l=!0);continue}if(g<n){l=!0;break}u.push(d)}if(l||!c["@odata.nextLink"])break;c=await a.api(c["@odata.nextLink"]).get()}return u.sort((d,g)=>{let h=(0,Gi.default)(d.lastModifiedDateTime);return(0,Gi.default)(g.lastModifiedDateTime).diff(h)}),u.map(d=>({epochMilliSeconds:(0,Gi.default)(d.lastModifiedDateTime).valueOf(),data:d}))},"items")},NE=Fe({auth:M,name:"new_or_updated_list",classification:"READ",displayName:"New or Updated List",description:"Triggers when a list is created or updated in a site.",aiMetadata:{description:"Fires when a list on one specific SharePoint site is created or modified, based on its last-modified time (polling). Each event represents one new or changed list; choose this over New List when edits to existing lists should also trigger."},props:{siteId:C.siteId},type:"POLLING",sampleData:{id:"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",displayName:"Projects Tracker",description:"Updated list for tracking all ongoing projects.",createdDateTime:"2025-09-26T11:00:00Z",lastModifiedDateTime:"2025-09-26T14:55:00Z",webUrl:"https://contoso.sharepoint.com/sites/MySite/Lists/Projects%20Tracker"},async onEnable(e){await ge.onEnable(Hc,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async onDisable(e){await ge.onDisable(Hc,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async test(e){return await ge.test(Hc,e)},async run(e){return await ge.poll(Hc,e)}});var qc=ae(ve());var UE="activepieces_sharepoint_updated_list_item_trigger",ME=Fe({auth:M,name:"updated_list_item",classification:"READ",displayName:"Updated List Item",description:"Fires when an existing item in a SharePoint list is updated.",aiMetadata:{description:"Fires when an existing item in one specific SharePoint list on a given site is modified. Each event represents the updated list item with its current fields; newly created items are not the focus (use New List Item for creations)."},props:{siteId:C.siteId,listId:C.listId},type:"WEBHOOK",sampleData:{id:"2",createdDateTime:"2025-09-26T14:10:00Z",lastModifiedDateTime:"2025-09-26T14:38:00Z",webUrl:"https://contoso.sharepoint.com/sites/MySite/Lists/MyTasks/2_.000",fields:{"@odata.etag":'"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx,2"',id:"2",Title:"Complete Project Proposal",Status:"In Progress",Priority:"High",DueDate:"2025-10-05T00:00:00Z"}},async onEnable(e){let{siteId:t,listId:n}=e.propsValue,o=e.auth.props?.cloud,r=qc.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(o)});try{let i=new Date;i.setDate(i.getDate()+2);let a=await r.api("/subscriptions").post({changeType:"updated",notificationUrl:e.webhookUrl,resource:`/sites/${t}/lists/${n}/items`,expirationDateTime:i.toISOString(),clientState:UE});await e.store.put("subscriptionId",a.id)}catch(i){throw new Error(`Failed to create subscription: ${i.message||"Unknown error"}`)}},async onDisable(e){let t=await e.store.get("subscriptionId");if(t){let n=e.auth.props?.cloud,o=qc.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(n)});try{await o.api(`/subscriptions/${t}`).delete()}catch(r){console.warn(`Error deleting subscription ${t}:`,r)}}await e.store.delete("subscriptionId")},async run(e){let t=e.payload.body?.value;if(!t||!Array.isArray(t))return[];let n=t.filter(a=>a.clientState===UE);if(n.length===0)return[];let o=e.auth.props?.cloud,r=qc.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(o)}),i=[];for(let a of n)try{let u=await r.api(a.resource).expand("fields").get();i.push(u)}catch(u){console.error("Error fetching list item from notification:",u)}return i}});var uk=d_({displayName:"Microsoft SharePoint",auth:M,minimumSupportedRelease:"0.78.0",logoUrl:"https://cdn.activepieces.com/pieces/microsoft-sharepoint.png",categories:["CONTENT_AND_FILES"],authors:["kishanprmr","pranith124","onyedikachi-david"],actions:[Kb,Qb,tE,sE,nE,iE,pE,TE,fE,hE,bE,gE,yE,_E,xE,Ox({auth:M,baseUrl:s(e=>{let t=e.props?.cloud;return D(t)+"/v1.0"},"baseUrl"),authMapping:s(async e=>({Authorization:`Bearer ${e.access_token}`}),"authMapping")})],triggers:[SE,wE,kE,DE,zE,ME,OE,NE]});0&&(module.exports={microsoftSharePoint});
|
|
54
|
+
- offline_access`,M=Em.OAuth2({description:qO,props:{cloud:Zx},authUrl:"https://{cloud}/common/oauth2/v2.0/authorize",tokenUrl:"https://{cloud}/common/oauth2/v2.0/token",required:!0,scope:["openid","email","profile","offline_access","Sites.Read.All","Sites.ReadWrite.All","Sites.Manage.All","Files.ReadWrite.All"],prompt:"omit"});var Ot=ae(ve());var eE=s(e=>R.Dropdown({auth:M,displayName:e.displayName,required:!0,refreshers:e.refreshers,options:s(async({auth:t,...n})=>{let o=n[e.refreshers[0]];if(!t||!o)return{disabled:!0,placeholder:"Please select a site first.",options:[]};let r=t,i=r.props?.cloud,a=Ot.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(r.access_token),"getAccessToken")},baseUrl:D(i)}),u=[],c=await a.api(`/sites/${o}/drives`).select("id,name").get();for(;c.value.length>0;){for(let l of c.value)u.push({label:l.name,value:l.id});if(c["@odata.nextLink"])c=await a.api(c["@odata.nextLink"]).get();else break}return{disabled:!1,options:u}},"options")}),"createDriveDropdown"),C={siteId:R.Dropdown({auth:M,displayName:"Site",required:!0,refreshers:[],options:s(async({auth:e})=>{if(!e)return{disabled:!0,placeholder:"Please connect your account first.",options:[]};let t=e,n=t.props?.cloud,o=Ot.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(t.access_token),"getAccessToken")},baseUrl:D(n)}),r=[],i=await o.api("/sites?search=*&$select=displayName,id,name").get();for(;i.value.length>0;){for(let a of i.value)r.push({label:a.displayName,value:a.id});if(i["@odata.nextLink"])i=await o.api(i["@odata.nextLink"]).get();else break}return{disabled:!1,options:r}},"options")}),driveId:eE({displayName:"Drive",refreshers:["siteId"]}),createDriveDropdown:eE,itemId:R.Dropdown({auth:M,displayName:"Source File or Folder",required:!0,refreshers:["siteId","driveId"],options:s(async({auth:e,siteId:t,driveId:n})=>{if(!e||!t||!n)return{disabled:!0,placeholder:"Please select a site and drive first.",options:[]};let o=e,r=o.props?.cloud,i=Ot.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:D(r)}),a=[],u=await i.api(`/sites/${t}/drives/${n}/root/children?$select=id,name,folder,file`).get();for(;u.value.length>0;){for(let c of u.value){let l=c.folder?"[Folder] ":"[File] ";a.push({label:l+c.name,value:c.id})}if(u["@odata.nextLink"])u=await i.api(u["@odata.nextLink"]).get();else break}return{disabled:!1,options:a}},"options")}),destinationFolderId:R.Dropdown({auth:M,displayName:"Destination Folder",description:"The folder to copy the item into. Defaults to the root of the drive.",required:!1,refreshers:["destination_site_id","destination_drive_id"],options:s(async({auth:e,...t})=>{let n=t.destination_site_id,o=t.destination_drive_id;if(!e||!n||!o)return{disabled:!0,placeholder:"Select a destination site and drive first.",options:[]};let r=e,i=r.props?.cloud,a=Ot.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(r.access_token),"getAccessToken")},baseUrl:D(i)}),u=[],c=await a.api(`/sites/${n}/drives/${o}/root/children?$filter=folder ne null&$select=id,name`).get();for(;c.value.length>0;){for(let l of c.value)u.push({label:l.name,value:l.id});if(c["@odata.nextLink"])c=await a.api(c["@odata.nextLink"]).get();else break}return{disabled:!1,options:u}},"options")}),listId:R.Dropdown({auth:M,displayName:"List",required:!0,refreshers:["siteId"],options:s(async({auth:e,siteId:t})=>{if(!e||!t)return{disabled:!0,placeholder:"Please select a site first.",options:[]};let n=e,o=n.props?.cloud,r=Ot.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(n.access_token),"getAccessToken")},baseUrl:D(o)}),i=[],a=await r.api(`/sites/${t}/lists`).select("displayName,id").get();for(;a.value.length>0;){for(let u of a.value)i.push({label:u.displayName,value:u.id});if(a["@odata.nextLink"])a=await r.api(a["@odata.nextLink"]).get();else break}return{disabled:!1,options:i}},"options")}),listColumns:R.DynamicProperties({auth:M,displayName:"List Columns",refreshers:["siteId","listId"],required:!0,props:s(async({auth:e,siteId:t,listId:n})=>{if(!e||!t||!n)return{};let o={},r=e,i=r.props?.cloud,a=Ot.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(r.access_token),"getAccessToken")},baseUrl:D(i)}),u=[],c=await a.api(`/sites/${t}/lists/${n}/columns`).get();for(;c.value.length>0;){for(let l of c.value)l.readOnly||u.push(l);if(c["@odata.nextLink"])c=await a.api(c["@odata.nextLink"]).get();else break}for(let l of u){let d={displayName:l.displayName,description:l.description??"",required:!1};l.boolean?o[l.name]=R.Checkbox(d):l.text?o[l.name]=R.LongText(d):l.dateTime?o[l.name]=R.DateTime(d):l.choice?l.choice.displayAs==="checkBoxes"?o[l.name]=R.StaticMultiSelectDropdown({...d,options:{disabled:!1,options:l.choice?.choices?l.choice.choices.map(h=>({label:h,value:h})):[]}}):o[l.name]=R.StaticDropdown({...d,options:{disabled:!1,options:l.choice?.choices?l.choice.choices.map(h=>({label:h,value:h})):[]}}):l.number?o[l.name]=R.Number(d):l.currency&&(o[l.name]=R.Number(d))}return o},"props")}),listItemId:R.Dropdown({auth:M,displayName:"List Item",required:!0,refreshers:["siteId","listId"],options:s(async({auth:e,siteId:t,listId:n})=>{if(!e||!t||!n)return{disabled:!0,placeholder:"Please select a site and list first.",options:[]};let o=e,r=o.props?.cloud,i=Ot.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:D(r)}),a=[],u=await i.api(`/sites/${t}/lists/${n}/items?$select=id&$expand=fields($select=Title)`).get();for(;u.value.length>0;){for(let c of u.value)a.push({label:c.fields.Title??`Item ${c.id}`,value:c.id});if(u["@odata.nextLink"])u=await i.api(u["@odata.nextLink"]).get();else break}return{disabled:!1,options:a}},"options")}),pageId:R.Dropdown({auth:M,displayName:"Page",required:!0,refreshers:["siteId"],options:s(async({auth:e,siteId:t})=>{if(!e||!t)return{disabled:!0,placeholder:"Please select a site first.",options:[]};let n=e,o=n.props?.cloud,r=Ot.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(n.access_token),"getAccessToken")},baseUrl:D(o)}),i=[],a=await r.api(`/sites/${t}/pages?$select=id,title`).get();for(;a.value.length>0;){for(let u of a.value)i.push({label:u.title??`Page ${u.id}`,value:u.id});if(a["@odata.nextLink"])a=await r.api(a["@odata.nextLink"]).get();else break}return{disabled:!1,options:i}},"options")})};var tE=ae(ve());var rE=ce({auth:M,name:"microsoft_sharepoint_create_folder",classification:"WRITE",displayName:"Create Folder",description:"Creates a new folder at path you specify.",audience:"both",aiMetadata:{description:"Creates a folder at a given path inside a SharePoint document library (drive), creating it relative to a parent folder path or the drive root. Use to provision a destination folder before uploading or moving files. Requires the target site and drive; the folder is keyed on its path, so re-running with the same path leaves the existing folder in place rather than producing a duplicate.",idempotent:!0},props:{siteId:C.siteId,driveId:C.driveId,parentFolder:R.ShortText({displayName:"Parent Folder",description:'Parent folder,like "/demo/" or "/docs/assignment/".Leave it default if you want to create folder at the root (**/**) level.',required:!0,defaultValue:"/"}),folderName:R.ShortText({displayName:"Folder Name",required:!0})},async run(e){let{driveId:t,parentFolder:n,folderName:o}=e.propsValue,r=e.auth.props?.cloud,i=tE.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(r)}),a=n+o;return await i.api(`/drives/${t}/root:${a}`).patch({folder:{}})}});var nE=ae(ve());var oE=ce({auth:M,name:"microsoft_sharepoint_create_list",classification:"WRITE",displayName:"Create List",description:"Creates a new list.",audience:"both",aiMetadata:{description:"Creates a new SharePoint list (with a display name and description) on a given site. Use when an agent needs a fresh list to hold structured items. Not idempotent: each call creates another list even if one with the same name already exists.",idempotent:!1},props:{siteId:C.siteId,displayName:R.ShortText({displayName:"List Name",required:!0}),description:R.ShortText({displayName:"List Description",required:!0})},async run(e){let{siteId:t,displayName:n,description:o}=e.propsValue,r=e.auth.props?.cloud,i=nE.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(r)}),a={displayName:n,description:o};return await i.api(`/sites/${t}/lists`).post(a)}});var iE=ae(ve());var aE=ce({auth:M,name:"microsoft_sharepoint_create_list_item",classification:"WRITE",displayName:"Create List Item",description:"Creates a new item in a list.",audience:"both",aiMetadata:{description:"Adds a new item (row) to a SharePoint list on a given site, setting the list column field values you provide. Use to record a new entry in an existing list. Not idempotent: each call appends another item, so repeating it creates duplicates.",idempotent:!1},props:{siteId:C.siteId,listId:C.listId,listColumns:C.listColumns},async run(e){let{siteId:t,listId:n,listColumns:o}=e.propsValue,r=e.auth.props?.cloud,i=iE.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(r)}),a={};Object.entries(o).forEach(([c,l])=>{Array.isArray(l)&&(a[`${c}@odata.type`]="Collection(Edm.String)")});let u={fields:{...o,...a}};return await i.api(`/sites/${t}/lists/${n}/items`).post(u)}});var sE=ae(ve());var uE=ce({auth:M,name:"microsoft_sharepoint_delete_list_item",classification:"DESTRUCTIVE",displayName:"Delete List Item",description:"Deletes an existing item from a list.",audience:"both",aiMetadata:{description:"Permanently removes an item from a SharePoint list, identified by its list item ID on a given site. Use to clean up or retract a specific row. Destructive but idempotent: once the item is gone, repeating the call with the same ID leaves the list unchanged.",idempotent:!0},props:{siteId:C.siteId,listId:C.listId,listItemId:C.listItemId},async run(e){let{siteId:t,listId:n,listItemId:o}=e.propsValue,r=e.auth.props?.cloud;return await sE.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(r)}).api(`/sites/${t}/lists/${n}/items/${o}`).delete()}});var cE=ae(ve());var lE=ce({auth:M,name:"microsoft_sharepoint_search_list_item",classification:"SEARCH",displayName:"Find List Item",description:"Finds a item in a list based on name.",audience:"both",aiMetadata:{description:"Looks up items in a SharePoint list by exact Title match on a given site, returning the matching items with their fields. Use to resolve a list item ID (or confirm existence) before updating or deleting it. Read-only and idempotent; matches only the Title column, not arbitrary fields.",idempotent:!0},props:{siteId:C.siteId,listId:C.listId,searchValue:R.ShortText({displayName:"Title",description:"Item title to search",required:!0})},async run(e){let{siteId:t,listId:n,searchValue:o}=e.propsValue,r=e.auth.props?.cloud,i=cE.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(r)}),a=o.replaceAll("'","''");return await i.api(`/sites/${t}/lists/${n}/items?$expand=fields&filter=fields/Title eq '${a}'`).headers({Prefer:"HonorNonIndexedQueriesWarningMayFailRandomly"}).get()}});var pE=ae(ve());var dE=ce({auth:M,name:"microsoft_sharepoint_update_list_item",classification:"WRITE",displayName:"Update List Item",description:"Updates an existing item in a list.",audience:"both",aiMetadata:{description:"Updates the column field values of an existing item in a SharePoint list, identified by its list item ID on a given site. Use to edit a known row rather than create one. Requires a valid item ID; idempotent, since re-applying the same field values leaves the item in the same final state.",idempotent:!0},props:{siteId:C.siteId,listId:C.listId,listItemId:C.listItemId,listColumns:C.listColumns},async run(e){let{siteId:t,listId:n,listItemId:o,listColumns:r}=e.propsValue,i=e.auth.props?.cloud,a=pE.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(i)}),u={};Object.entries(r).forEach(([l,d])=>{Array.isArray(d)&&(u[`${l}@odata.type`]="Collection(Edm.String)")});let c={...r,...u};return await a.api(`/sites/${t}/lists/${n}/items/${o}/fields`).patch(c)}});var fE=require("node:stream"),mE=require("node:stream/consumers");var gE=ae(ve());var hk=250*1024*1024,yk=10*1024*1024,hE=ce({auth:M,name:"microsoft_sharepoint_upload_file",classification:"WRITE",displayName:"Upload File",description:"Uploads a new file at path you specify.",audience:"both",aiMetadata:{description:"Uploads file content to a SharePoint document library (drive), placing it under a parent folder path with the file name you specify. Files over 250 MB are uploaded in chunks automatically. Use to push a file (from a prior step or URL) into a site. Idempotent on the target path: uploading the same name to the same folder replaces the existing file rather than creating a duplicate.",idempotent:!0},props:{siteId:C.siteId,driveId:C.driveId,file:R.File({displayName:"File",description:"The file or url you want to upload",required:!0,streaming:!0}),parentFolder:R.ShortText({displayName:"Parent Folder",description:'Parent folder, like "/demo/" or "/docs/assignment/".Leave it default if you want to create folder at the root (**CHANGE THIS BACK//**) level.',required:!0,defaultValue:"/"}),fileName:R.ShortText({displayName:"File Name",required:!0})},async run(e){let{siteId:t,driveId:n,file:o,parentFolder:r,fileName:i}=e.propsValue,a=e.auth.props?.cloud,u=D(a),c=gE.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:u}),d=(await c.api(`/sites/${t}/drives/${n}/root:${r}`).get()).id??"test",h=`/sites/${t}/drives/${n}/items/${d}:/${i}`,{body:m,size:p}=Jm.toStreamingBody(o);if(p==null){let _=await(0,mE.buffer)(m);p=_.length,m=fE.Readable.from(_)}if(p>hk){let _=await c.api(`${h}:/createUploadSession`).post({item:{"@microsoft.graph.conflictBehavior":"replace",name:i}});return await vk({uploadUrl:_.uploadUrl,body:m,fileSize:p})}return(await Oi.sendRequest({method:"PUT",url:`${u}/v1.0${h}:/content`,body:m,headers:{"Content-Type":"application/octet-stream","Content-Length":String(p)},authentication:{type:"BEARER_TOKEN",token:e.auth.access_token}})).body}});async function vk({uploadUrl:e,body:t,fileSize:n}){let o=0,r;for await(let i of Jm.readChunks({readable:t,chunkSize:yk}))r=await Oi.sendRequest({method:"PUT",url:e,body:i,headers:{"Content-Length":String(i.length),"Content-Range":`bytes ${o}-${o+i.length-1}/${n}`}}),o+=i.length;return r?.body}s(vk,"uploadInSession");var Mc=ae(ve());var yE=2e3,_k=120;async function Pk(e){return new Promise(t=>setTimeout(t,e))}s(Pk,"delay");var vE=ce({auth:M,name:"microsoft_sharepoint_copy_item",classification:"WRITE",displayName:"Copy File or Folder (Across Sites)",description:"Copy a file or folder from one site to another within the same tenant, with overwrite option.",audience:"both",aiMetadata:{description:"Copies a file or folder from one SharePoint site/drive to a destination site, drive, and folder within the same tenant, optionally renaming the copy. Use to duplicate content across sites; for same-site copies use the within-site variant. The conflict behavior (fail, replace, or rename) controls what happens on a name clash. Not idempotent: each run produces another copy (rename mode) or overwrites the target (replace mode).",idempotent:!1},props:{siteId:C.siteId,driveId:C.driveId,itemId:C.itemId,destination_site_id:C.siteId,destination_drive_id:C.createDriveDropdown({displayName:"Destination Drive",refreshers:["destination_site_id"]}),destination_folder_id:C.destinationFolderId,new_name:R.ShortText({displayName:"New Name (Optional)",description:"A new name for the copied item. If not provided, the original name is used.",required:!1}),conflict_behavior:R.StaticDropdown({displayName:"Conflict Behavior",description:"Action to take if a file with the same name already exists.",required:!0,options:{options:[{label:"Fail on conflict",value:"fail"},{label:"Overwrite existing file",value:"replace"},{label:"Rename with a number",value:"rename"}]},defaultValue:"fail"})},async run(e){let{siteId:t,driveId:n,itemId:o,destination_drive_id:r,destination_folder_id:i,new_name:a,conflict_behavior:u}=e.propsValue,c=e.auth.props?.cloud,l=Mc.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(c)}),d={parentReference:{driveId:r}};i&&(d.parentReference.id=i),a&&(d.name=a);let h;try{h=await l.api(`/drives/${n}/items/${o}/copy`).responseType(Mc.ResponseType.RAW).query({"@microsoft.graph.conflictBehavior":u}).post(d)}catch(g){throw g.statusCode===400?new Error(`Invalid request: ${g.message||"Check your input parameters"}`):g.statusCode===403?new Error("Insufficient permissions to copy this item. Requires Files.ReadWrite or higher."):g.statusCode===404?new Error("Source item not found. Please verify the site, drive, and item IDs."):new Error(`Failed to initiate copy operation: ${g.message||"Unknown error"}`)}let m=h.headers.get("Location");if(!m)throw new Error("Could not get monitor URL from copy operation response.");let p=_k*1e3/yE;for(;p>0;){let g=await l.api(m).get();if(g.status==="completed")return{success:!0,status:"completed",resourceId:g.resourceId,resourceLocation:g.resourceLocation};if(g.status==="failed"){let _=g.error?.details?g.error.details.map(b=>b.message||b.code).join(", "):g.error?.message||"Unknown error";throw new Error(`Copy operation failed: ${_}`)}await Pk(yE),p--}throw new Error("Copy operation timed out after 120 seconds.")}});var Fi=ae(ve());var _E=2e3,xk=120;async function bk(e){return new Promise(t=>setTimeout(t,e))}s(bk,"delay");var PE=ce({auth:M,name:"microsoft_sharepoint_copy_item_within_site",classification:"WRITE",displayName:"Copy File or Folder (Within Site)",description:"Copy a file or folder to another folder within the same site.",audience:"both",aiMetadata:{description:"Copies a file or folder to another folder within the same SharePoint site and drive, optionally renaming the copy; select the root to copy to the drive top level. Use for same-site duplication; for cross-site copies use the across-sites variant. The conflict behavior (fail, replace, or rename) controls name clashes. Not idempotent: each run produces another copy (rename mode) or overwrites the target (replace mode).",idempotent:!1},props:{siteId:C.siteId,driveId:C.driveId,itemId:C.itemId,destinationFolderId:R.Dropdown({auth:M,displayName:"Destination Folder",description:'The folder to copy the item into. Select "Root" to copy to the top level of the drive.',required:!0,refreshers:["siteId","driveId"],options:s(async({auth:e,siteId:t,driveId:n})=>{if(!e||!t||!n)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let o=e,r=o.props?.cloud,i=Fi.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:D(r)}),a=[{label:"Root",value:"root"}],u=await i.api(`/sites/${t}/drives/${n}/root/children?$filter=folder ne null&$select=id,name`).get();for(;u.value.length>0;){for(let c of u.value)a.push({label:c.name,value:c.id});if(u["@odata.nextLink"])u=await i.api(u["@odata.nextLink"]).get();else break}return{disabled:!1,options:a}},"options")}),newName:R.ShortText({displayName:"New Name (Optional)",description:"A new name for the copied item. If not provided, the original name is used.",required:!1}),conflictBehavior:R.StaticDropdown({displayName:"Conflict Behavior",description:"Action to take if a file with the same name already exists in the destination.",required:!0,options:{options:[{label:"Fail on conflict",value:"fail"},{label:"Overwrite existing file",value:"replace"},{label:"Rename with a number",value:"rename"}]},defaultValue:"fail"})},async run(e){let{siteId:t,driveId:n,itemId:o,destinationFolderId:r,newName:i,conflictBehavior:a}=e.propsValue,u=e.auth.props?.cloud,c=Fi.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(u)}),d={parentReference:{id:r==="root"?(await c.api(`/drives/${n}/root`).get()).id:r}};i&&(d.name=i);let h;try{h=await c.api(`/drives/${n}/items/${o}/copy`).responseType(Fi.ResponseType.RAW).query({"@microsoft.graph.conflictBehavior":a}).post(d)}catch(g){throw g.statusCode===400?new Error(`Invalid request: ${g.message||"Check your input parameters"}`):g.statusCode===403?new Error("Insufficient permissions to copy this item. Requires Files.ReadWrite or higher."):g.statusCode===404?new Error("Source item not found. Please verify the site, drive, and item IDs."):new Error(`Failed to initiate copy operation: ${g.message||"Unknown error"}`)}let m=h.headers.get("Location");if(!m)throw new Error("Could not get monitor URL from copy operation response.");let p=xk*1e3/_E;for(;p>0;){let g=await c.api(m).get();if(g.status==="completed")return{success:!0,status:"completed",resourceId:g.resourceId,resourceLocation:g.resourceLocation};if(g.status==="failed"){let _=g.error?.details?g.error.details.map(b=>b.message||b.code).join(", "):g.error?.message||"Unknown error";throw new Error(`Copy operation failed: ${_}`)}await bk(_E),p--}throw new Error("Copy operation timed out after 120 seconds.")}});var _g=ae(ve());var xE=ce({auth:M,name:"microsoft_sharepoint_find_file",classification:"SEARCH",displayName:"Find File",description:"Look up a file by its name or path.",audience:"both",aiMetadata:{description:"Locates files in a SharePoint document library (drive) on a given site, either by exact path from the drive root or by keyword search on the file name (optionally scoped to a folder). Use to resolve a file ID/metadata before downloading, moving, or copying. Read-only and idempotent; path mode returns an empty result rather than erroring when the file is missing.",idempotent:!0},props:{siteId:C.siteId,driveId:C.driveId,findMethod:R.StaticDropdown({displayName:"Find Method",description:"Choose how to find the file.",required:!0,options:{options:[{label:"Find by Exact Path",value:"path"},{label:"Search by Name",value:"search"}]},defaultValue:"search"}),filePath:R.ShortText({displayName:"File Path",description:"The exact path to the file from the drive's root. **Required if finding by path.** Example: `Documents/Reports/Q1-Report.docx`",required:!1}),searchQuery:R.ShortText({displayName:"Search Query",description:"The file name or keyword to search for. **Required if searching by name.** Example: `Q1-Report.docx`",required:!1}),searchFolderId:R.Dropdown({auth:M,displayName:"Folder to Search In (Optional)",description:"The folder to search within. If not specified, the entire drive will be searched. **Only applies when searching by name.**",required:!1,refreshers:["siteId","driveId"],options:s(async({auth:e,siteId:t,driveId:n})=>{if(!e||!t||!n)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let o=e,r=o.props?.cloud,i=_g.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:D(r)}),a=[],u=await i.api(`/sites/${t}/drives/${n}/root/children?$filter=folder ne null&$select=id,name`).get();for(;u.value.length>0;){for(let c of u.value)a.push({label:c.name,value:c.id});if(u["@odata.nextLink"])u=await i.api(u["@odata.nextLink"]).get();else break}return{disabled:!1,options:a}},"options")})},async run(e){let{driveId:t,findMethod:n,filePath:o,searchQuery:r,searchFolderId:i}=e.propsValue,a=e.auth.props?.cloud,u=_g.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(a)});if(n==="path"){if(!o)throw new Error("File Path is required when finding by path.");let c=o.startsWith("/")?o.substring(1):o;try{return{success:!0,files:[await u.api(`/drives/${t}/root:/${encodeURI(c)}`).get()]}}catch(l){let d=l;if(d.statusCode===404)return{success:!0,files:[]};throw new Error(`Failed to find file by path: ${d.message||"Unknown error"}`)}}else{if(!r)throw new Error("Search Query is required when searching by name.");let c=`/drives/${t}/`;i?c+=`items/${i}/`:c+="root/",c+=`search(q='${encodeURIComponent(r)}')`;try{return{success:!0,files:(await u.api(c).get()).value||[]}}catch(l){throw new Error(`Failed to search for file: ${l.message||"Unknown error"}`)}}}});var Pg=ae(ve());var bE=ce({auth:M,name:"microsoft_sharepoint_get_folder_contents",classification:"SEARCH",displayName:"Get Folder Contents",description:"List all files and subfolders in a specified folder, optionally with detailed metadata.",audience:"both",aiMetadata:{description:"Lists the immediate files and subfolders of a folder in a SharePoint document library (drive) on a given site, with optional paging, field selection, sorting, and inclusion of custom SharePoint column metadata. Use to enumerate or browse a folder one level deep. Read-only and idempotent; returns one page (default 200 items) with an @odata.nextLink for further pages.",idempotent:!0},props:{siteId:C.siteId,driveId:C.driveId,folderId:R.Dropdown({auth:M,displayName:"Folder",description:'The folder whose contents you want to list. Select "Root Folder" for the top-level folder.',required:!0,refreshers:["siteId","driveId"],options:s(async({auth:e,siteId:t,driveId:n})=>{if(!e||!t||!n)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let o=e,r=o.props?.cloud,i=Pg.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:D(r)}),a=[{label:"Root Folder",value:"root"}],u=await i.api(`/sites/${t}/drives/${n}/root/children?$filter=folder ne null&$select=id,name`).get();for(;u.value.length>0;){for(let c of u.value)a.push({label:c.name,value:c.id});if(u["@odata.nextLink"])u=await i.api(u["@odata.nextLink"]).get();else break}return{disabled:!1,options:a}},"options")}),includeCustomFields:R.Checkbox({displayName:"Include Custom Metadata",description:"Check this to include SharePoint-specific metadata (custom columns). This may slow down the request.",required:!1,defaultValue:!1}),top:R.Number({displayName:"Page Size",description:"The maximum number of items to return. The API default is 200. If more items exist, the output will contain a field `@odata.nextLink` that you can use in a custom API call to get the next page.",required:!1}),select:R.ShortText({displayName:"Select Fields (Optional)",description:"A comma-separated list of properties to return. Example: `id,name,size,webUrl`",required:!1}),orderby:R.ShortText({displayName:"Order By (Optional)",description:"Specifies how to sort the returned items. Example: `name asc` or `lastModifiedDateTime desc`",required:!1})},async run(e){let{siteId:t,driveId:n,folderId:o,includeCustomFields:r,top:i,select:a,orderby:u}=e.propsValue,c=e.auth.props?.cloud,l=Pg.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(c)}),d=o==="root"?`/sites/${t}/drive/root/children`:`/sites/${t}/drive/items/${o}/children`,h={};return r&&(h.$expand="listItem(expand=fields)"),i&&(h.$top=i),a&&(h.$select=a),u&&(h.$orderby=u),(await l.api(d).query(h).get()).value||[]}});var EE=ae(ve());var TE=ce({auth:M,name:"microsoft_sharepoint_get_site_information",classification:"READ",displayName:"Get Site Information",description:"Fetch metadata of a SharePoint site (site ID, title, URL, description, etc.).",audience:"both",aiMetadata:{description:"Fetches metadata for a single SharePoint site by its site ID (title, URL, description, and similar properties), with optional field selection. Use to inspect or confirm site details once you have its ID. Read-only and idempotent.",idempotent:!0},props:{siteId:C.siteId,select:R.ShortText({displayName:"Select Fields (Optional)",description:"A comma-separated list of properties to return. If left blank, all default properties are returned. Example: `id,displayName,webUrl,description`",required:!1})},async run(e){let{siteId:t,select:n}=e.propsValue,o=e.auth.props?.cloud,i=EE.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(o)}).api(`/sites/${t}`);return n&&i.select(n.split(",").map(a=>a.trim())),await i.get()}});var IE=ae(ve());var SE=ce({auth:M,name:"microsoft_sharepoint_find_site",classification:"SEARCH",displayName:"Find Site",description:"Search for SharePoint sites by name and return matching results.",audience:"both",aiMetadata:{description:"Searches SharePoint sites across the tenant by a name keyword and returns matching sites with their IDs, names, and URLs. Use as the entry point to resolve a site ID needed by other SharePoint actions. Read-only and idempotent.",idempotent:!0},props:{searchTerm:R.ShortText({displayName:"Site Name",description:"The name or keyword to search for.",required:!0})},async run(e){let{searchTerm:t}=e.propsValue,n=e.auth.props?.cloud,o=IE.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(n)}),r=[],i=await o.api(`/sites?search=${encodeURIComponent(t)}&$select=displayName,id,name,webUrl`).get();for(;i.value.length>0;){for(let a of i.value)r.push({id:a.id,displayName:a.displayName,name:a.name,webUrl:a.webUrl});if(i["@odata.nextLink"])i=await o.api(i["@odata.nextLink"]).get();else break}return{sites:r}}});var Lc=ae(ve());var AE=ce({auth:M,name:"microsoft_sharepoint_move_file",classification:"WRITE",displayName:"Move File",description:"Move a file from one folder to another within the same drive.",audience:"both",aiMetadata:{description:"Moves a file to a different folder within the same SharePoint drive, optionally renaming it in the process; select the root to move to the drive top level. Use to relocate an existing file rather than copy it. Idempotent: moving a file already at the destination (with the same name) leaves it where it is.",idempotent:!0},props:{siteId:C.siteId,driveId:C.driveId,fileId:R.Dropdown({auth:M,displayName:"File to Move",description:"The file you want to move.",required:!0,refreshers:["siteId","driveId"],options:s(async({auth:e,siteId:t,driveId:n})=>{if(!e||!t||!n)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let o=e,r=o.props?.cloud,i=Lc.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:D(r)}),a=[],u=await i.api(`/drives/${n}/root/children?$select=id,name,file`).get();for(;u.value.length>0;){for(let c of u.value)c.file&&a.push({label:c.name,value:c.id});if(u["@odata.nextLink"])u=await i.api(u["@odata.nextLink"]).get();else break}return{disabled:!1,options:a}},"options")}),destinationFolderId:R.Dropdown({auth:M,displayName:"Destination Folder",description:'The folder to move the file into. Select "Root" to move to the top level of the drive.',required:!0,refreshers:["siteId","driveId"],options:s(async({auth:e,siteId:t,driveId:n})=>{if(!e||!t||!n)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let o=e,r=o.props?.cloud,i=Lc.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:D(r)}),a=[{label:"Root",value:"root"}],u=await i.api(`/sites/${t}/drives/${n}/root/children?$filter=folder ne null&$select=id,name`).get();for(;u.value.length>0;){for(let c of u.value)a.push({label:c.name,value:c.id});if(u["@odata.nextLink"])u=await i.api(u["@odata.nextLink"]).get();else break}return{disabled:!1,options:a}},"options")}),newName:R.ShortText({displayName:"New Name (Optional)",description:"Provide a new name to rename the file during the move.",required:!1})},async run(e){let{driveId:t,fileId:n,destinationFolderId:o,newName:r}=e.propsValue,i=e.auth.props?.cloud,a=Lc.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(i)});try{let c={parentReference:{id:o==="root"?(await a.api(`/drives/${t}/root`).get()).id:o}};return r&&(c.name=r),{success:!0,message:"File moved successfully",item:await a.api(`/drives/${t}/items/${n}`).patch(c)}}catch(u){throw u.statusCode===400?new Error(`Invalid request: ${u.message||"Check your input parameters"}`):u.statusCode===403?new Error("Insufficient permissions to move this file. Requires Files.ReadWrite or higher."):u.statusCode===404?new Error("File or destination not found. Please verify the IDs."):new Error(`Failed to move file: ${u.message||"Unknown error"}`)}}});var wE=ae(ve());var $E=ce({auth:M,name:"microsoft_sharepoint_publish_page",classification:"WRITE",displayName:"Publish Page",description:"Publishes a SharePoint page, making it available to all users. If the page is checked out, it will be automatically checked in. Note: Pages with active approval flows will not publish until approval is complete.",audience:"both",aiMetadata:{description:"Publishes a SharePoint site page by its page ID on a given site, making the latest version visible to all users (auto-checking it in if needed). Use to make page edits live. Idempotent: re-publishing an already-published page leaves it published. A page awaiting an approval flow will not publish until approval completes.",idempotent:!0},props:{siteId:C.siteId,pageId:C.pageId},async run(e){let{siteId:t,pageId:n}=e.propsValue,o=e.auth.props?.cloud,r=wE.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(o)});try{return await r.api(`/sites/${t}/pages/${n}/microsoft.graph.sitePage/publish`).post({}),{success:!0,message:"Page published successfully",pageId:n,siteId:t}}catch(i){throw i.statusCode===404?new Error(`Page not found. Please verify the page ID: ${n}`):i.statusCode===403?new Error("Insufficient permissions to publish this page. Requires Files.ReadWrite or higher."):i.statusCode===409?new Error("Page cannot be published. It may be awaiting approval or already published."):new Error(`Failed to publish page: ${i.message||"Unknown error"}`)}}});var Bi=ae(ve());var OE="activepieces_sharepoint_trigger",RE=Be({auth:M,name:"new_file_in_folder",classification:"READ",displayName:"New File in Folder",description:"Fires when a new file is created or added in a specific folder.",aiMetadata:{description:"Fires when a new file appears directly inside one specific monitored folder of a SharePoint drive (the folder itself, not its subfolders). Each event represents a single newly created or added file with its metadata."},props:{siteId:C.siteId,driveId:C.driveId,folderId:R.Dropdown({auth:M,displayName:"Folder to Monitor",description:'The folder to watch for new files. Select "Root Folder" for the top-level folder of the drive.',required:!0,refreshers:["siteId","driveId"],options:s(async({auth:e,siteId:t,driveId:n})=>{if(!e||!t||!n)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let o=e,r=o.props?.cloud,i=Bi.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:D(r)}),a=[{label:"Root Folder",value:"root"}],u=await i.api(`/drives/${n}/root/children?$filter=folder ne null&$select=id,name`).get();for(;u.value.length>0;){for(let c of u.value)a.push({label:c.name,value:c.id});if(u["@odata.nextLink"])u=await i.api(u["@odata.nextLink"]).get();else break}return{disabled:!1,options:a}},"options")})},type:"WEBHOOK",sampleData:{id:"01DRYVE_ID_GOES_HERE",name:"Example-Report.docx",webUrl:"https://contoso.sharepoint.com/Shared%20Documents/Example-Report.docx",size:12345,createdDateTime:"2025-09-26T14:26:12Z",lastModifiedDateTime:"2025-09-26T14:26:12Z",file:{mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"},parentReference:{driveId:"DRIVE_ID_HERE",id:"PARENT_FOLDER_ID_HERE",path:"/drives/DRIVE_ID_HERE/root:/Shared Documents"}},async onEnable(e){let{siteId:t,driveId:n,folderId:o}=e.propsValue,r=e.auth.props?.cloud,i=Bi.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(r)});try{let a=o==="root"?(await i.api(`/drives/${n}/root`).get()).id:o,u=new Date;u.setDate(u.getDate()+2);let c=await i.api("/subscriptions").post({changeType:"created",notificationUrl:e.webhookUrl,resource:`/sites/${t}/drive/items/${a}/children`,expirationDateTime:u.toISOString(),clientState:OE});await e.store.put("subscriptionId",c.id)}catch(a){throw new Error(`Failed to create subscription: ${a.message||"Unknown error"}`)}},async onDisable(e){let t=await e.store.get("subscriptionId");if(t){let n=e.auth.props?.cloud,o=Bi.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(n)});try{await o.api(`/subscriptions/${t}`).delete()}catch(r){console.warn(`Error deleting subscription ${t}:`,r)}}await e.store.delete("subscriptionId")},async run(e){let t=e.payload.body?.value;if(!t||!Array.isArray(t))return[];let n=t.filter(a=>a.clientState===OE);if(n.length===0)return[];let o=e.auth.props?.cloud,r=Bi.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(o)}),i=[];for(let a of n)try{let u=await r.api(a.resource).get();u.file&&i.push(u)}catch(u){console.error("Error fetching file from notification:",u)}return i}});var Vi=ae(ve());var zE="activepieces_sharepoint_subfolder_trigger",kE=Be({auth:M,name:"new_file_in_subfolders",classification:"READ",displayName:"New File in Subfolders",description:"Fires when a new file is added anywhere in the first-level subfolders of a folder. Note: This trigger will not monitor subfolders created after the flow is activated.",aiMetadata:{description:"Fires when a new file is added to any of the immediate (first-level) subfolders of a chosen parent folder in a SharePoint drive. Each event represents one newly added file. Only subfolders that existed when the flow was activated are monitored; subfolders created later are not watched."},props:{siteId:C.siteId,driveId:C.driveId,parentFolderId:R.Dropdown({auth:M,displayName:"Parent Folder",description:"The parent folder whose subfolders you want to monitor.",required:!0,refreshers:["siteId","driveId"],options:s(async({auth:e,siteId:t,driveId:n})=>{if(!e||!t||!n)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let o=e,r=o.props?.cloud,i=Vi.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:D(r)}),a=[{label:"Root Folder",value:"root"}],u=await i.api(`/drives/${n}/root/children?$filter=folder ne null&$select=id,name`).get();for(;u.value.length>0;){for(let c of u.value)a.push({label:c.name,value:c.id});if(u["@odata.nextLink"])u=await i.api(u["@odata.nextLink"]).get();else break}return{disabled:!1,options:a}},"options")})},type:"WEBHOOK",sampleData:{id:"01DRYVE_ID_GOES_HERE",name:"New-File-In-Subfolder.pdf",webUrl:"https://contoso.sharepoint.com/Shared%20Documents/SubfolderA/New-File-In-Subfolder.pdf",size:54321,createdDateTime:"2025-09-26T14:30:00Z",lastModifiedDateTime:"2025-09-26T14:30:00Z",file:{mimeType:"application/pdf"},parentReference:{id:"SUBFOLDER_ID_HERE"}},async onEnable(e){let{siteId:t,driveId:n,parentFolderId:o}=e.propsValue,r=e.auth.props?.cloud,i=Vi.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(r)});try{let a=o==="root"?(await i.api(`/drives/${n}/root`).get()).id:o,c=(await i.api(`/drives/${n}/items/${a}/children?$filter=folder ne null&$select=id`).get()).value,l=new Date;l.setDate(l.getDate()+2);let d=c.map(p=>i.api("/subscriptions").post({changeType:"created",notificationUrl:e.webhookUrl,resource:`/sites/${t}/drive/items/${p.id}/children`,expirationDateTime:l.toISOString(),clientState:zE})),m=(await Promise.allSettled(d)).filter(p=>p.status==="fulfilled").map(p=>p.value.id);await e.store.put("subscriptionIds",m)}catch(a){throw new Error(`Failed to create subscriptions: ${a.message||"Unknown error"}`)}},async onDisable(e){let t=await e.store.get("subscriptionIds");if(t&&t.length>0){let n=e.auth.props?.cloud,o=Vi.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(n)}),r=t.map(i=>o.api(`/subscriptions/${i}`).delete().catch(a=>console.error(`Failed to delete subscription ${i}:`,a)));await Promise.allSettled(r)}await e.store.delete("subscriptionIds")},async run(e){let t=e.payload.body?.value;if(!t||!Array.isArray(t))return[];let n=t.filter(a=>a.clientState===zE);if(n.length===0)return[];let o=e.auth.props?.cloud,r=Vi.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(o)}),i=[];for(let a of n)try{let u=await r.api(a.resource).get();u.file&&i.push(u)}catch(u){console.error("Error fetching file from notification:",u)}return i}});var DE=ae(ve()),Fc=ae(In());var jc={strategy:0,items:s(async({auth:e,propsValue:t,lastFetchEpochMS:n})=>{let{siteId:o}=t,r=n===0,i=e.props?.cloud,a=DE.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.access_token),"getAccessToken")},baseUrl:D(i)}),u=[],c=await a.api(`/sites/${o}/lists`).get(),l=!1;for(;!l&&c.value.length>0;){for(let d of c.value){if(r){u.push(d),u.length>=10&&(l=!0);continue}u.push(d)}if(l||!c["@odata.nextLink"])break;c=await a.api(c["@odata.nextLink"]).get()}return u.sort((d,h)=>{let m=(0,Fc.default)(d.createdDateTime);return(0,Fc.default)(h.createdDateTime).diff(m)}),u.map(d=>({epochMilliSeconds:(0,Fc.default)(d.createdDateTime).valueOf(),data:d}))},"items")},CE=Be({auth:M,name:"new_list",classification:"READ",displayName:"New List",description:"Triggers when a new list is created in a site.",aiMetadata:{description:"Fires when a new list is created on one specific SharePoint site, based on list creation time (polling). Each event represents one newly created list; changes to existing lists do not trigger it (use New or Updated List for that)."},props:{siteId:C.siteId},type:"POLLING",sampleData:void 0,async onEnable(e){await he.onEnable(jc,e)},async onDisable(e){await he.onDisable(jc,e)},async test(e){return await he.test(jc,e)},async run(e){return await he.poll(jc,e)}});var NE=ae(ve()),Zi=ae(In());var Vc={strategy:0,items:s(async({auth:e,propsValue:t,lastFetchEpochMS:n})=>{let{siteId:o,listId:r}=t,i=e.props?.cloud,a=NE.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.access_token),"getAccessToken")},baseUrl:D(i)}),u=[],c=n===0?`$filter=createdDateTime gt ${(0,Zi.default)().toISOString()}`:"$top=10",l=await a.api(`/sites/${o}/lists/${r}/items?${c}`).expand("fields").get();if(n===0)for(let d of l.value)u.push(d);else for(;l.value.length>0;){for(let d of l.value)u.push(d);if(l["@odata.nextLink"])l=await a.api(l["@odata.nextLink"]).get();else break}return u.sort((d,h)=>{let m=(0,Zi.default)(d.createdDateTime);return(0,Zi.default)(h.createdDateTime).diff(m)}),u.map(d=>({epochMilliSeconds:(0,Zi.default)(d.createdDateTime).valueOf(),data:d}))},"items")},UE=Be({auth:M,name:"new_list_item",classification:"READ",displayName:"New List Item",description:"Triggers when a new item is created in a SharePoint list.",aiMetadata:{description:"Fires when a new item (row) is added to one specific SharePoint list on a given site, based on item creation time (polling). Each event represents one newly created list item with its fields; updates to existing items do not trigger it."},props:{siteId:C.siteId,listId:C.listId},type:"POLLING",sampleData:void 0,async onEnable(e){await he.onEnable(Vc,e)},async onDisable(e){await he.onDisable(Vc,e)},async test(e){return await he.test(Vc,e)},async run(e){return await he.poll(Vc,e)}});var Eg=ae(ve()),Hi=ae(In());var Zc={strategy:0,items:s(async({auth:e,propsValue:t,lastFetchEpochMS:n})=>{let{siteId:o,driveId:r,folderId:i}=t,a=n===0,u=e.props?.cloud,c=Eg.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.access_token),"getAccessToken")},baseUrl:D(u)}),l=[],d=i!=="root"?`/sites/${o}/drive/items/${i}/children`:`/sites/${o}/drives/${r}/items/root/children`,h=await c.api(d).orderby("lastModifiedDateTime desc").get(),m=!1;for(;!m&&h.value.length>0;){for(let p of h.value){if(!p.file)continue;let g=(0,Hi.default)(p.lastModifiedDateTime).valueOf();if(a){l.push(p),l.length>=10&&(m=!0);continue}if(g<n){m=!0;break}l.push(p)}if(m||!h["@odata.nextLink"])break;h=await c.api(h["@odata.nextLink"]).get()}return l.sort((p,g)=>{let _=(0,Hi.default)(p.lastModifiedDateTime);return(0,Hi.default)(g.lastModifiedDateTime).diff(_)}),l.map(p=>({epochMilliSeconds:(0,Hi.default)(p.lastModifiedDateTime).valueOf(),data:p}))},"items")},ME=Be({auth:M,name:"new_or_updated_file",classification:"READ",displayName:"New or Updated File",description:"Triggers when a file is created or updated in a given folder.",aiMetadata:{description:"Fires when a file is created or modified directly inside one monitored folder of a SharePoint drive, based on its last-modified time (polling). Each event represents a file that is new or whose contents/metadata changed; choose this over New File in Folder when edits to existing files should also trigger."},props:{siteId:C.siteId,driveId:C.driveId,folderId:R.Dropdown({auth:M,displayName:"Folder to Monitor",description:'The folder to watch for new or updated files. Select "Root Folder" for the top-level folder of the drive.',required:!0,refreshers:["siteId","driveId"],options:s(async({auth:e,siteId:t,driveId:n})=>{if(!e||!t||!n)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let o=e,r=o.props?.cloud,i=Eg.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:D(r)}),a=[{label:"Root Folder",value:"root"}],u=await i.api(`/sites/${t}/drives/${n}/items/root/children?$filter=folder ne null&$select=id,name`).get();for(;u.value.length>0;){for(let c of u.value)a.push({label:c.name,value:c.id});if(u["@odata.nextLink"])u=await i.api(u["@odata.nextLink"]).get();else break}return{disabled:!1,options:a}},"options")})},type:"POLLING",sampleData:{id:"01DRYVE_ID_GOES_HERE",name:"Updated-Financials.xlsx",webUrl:"https://contoso.sharepoint.com/Shared%20Documents/Updated-Financials.xlsx",size:65432,createdDateTime:"2025-09-26T10:00:00Z",lastModifiedDateTime:"2025-09-26T14:34:00Z",file:{mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},parentReference:{id:"PARENT_FOLDER_ID_HERE"}},async onEnable(e){await he.onEnable(Zc,e)},async onDisable(e){await he.onDisable(Zc,e)},async test(e){return await he.test(Zc,e)},async run(e){return await he.poll(Zc,e)}});var Tg=ae(ve()),qi=ae(In());var Hc={strategy:0,items:s(async({auth:e,propsValue:t,lastFetchEpochMS:n})=>{let{siteId:o,driveId:r,parentFolderId:i}=t,a=n===0,u=e.props?.cloud,c=Tg.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.access_token),"getAccessToken")},baseUrl:D(u)}),l=[],d=i!=="root"?`/sites/${o}/drive/items/${i}/children`:`/sites/${o}/drives/${r}/items/root/children`,h=await c.api(d).orderby("lastModifiedDateTime desc").get(),m=!1;for(;!m&&h.value.length>0;){for(let p of h.value){if(!p.folder)continue;let g=(0,qi.default)(p.lastModifiedDateTime).valueOf();if(a){l.push(p),l.length>=10&&(m=!0);continue}if(g<n){m=!0;break}l.push(p)}if(m||!h["@odata.nextLink"])break;h=await c.api(h["@odata.nextLink"]).get()}return l.sort((p,g)=>{let _=(0,qi.default)(p.lastModifiedDateTime);return(0,qi.default)(g.lastModifiedDateTime).diff(_)}),l.map(p=>({epochMilliSeconds:(0,qi.default)(p.lastModifiedDateTime).valueOf(),data:p}))},"items")},LE=Be({auth:M,name:"new_or_updated_folder",classification:"READ",displayName:"New or Updated Folder",description:"Triggers when a folder is created or updated (e.g., name change).",aiMetadata:{description:"Fires when a subfolder is created or modified (such as a rename) directly inside one monitored parent folder of a SharePoint drive, based on its last-modified time (polling). Each event represents one new or changed folder."},props:{siteId:C.siteId,driveId:C.driveId,parentFolderId:R.Dropdown({auth:M,displayName:"Parent Folder to Monitor",description:'The folder to watch for new or updated subfolders. Select "Root Folder" to monitor the top-level of the drive.',required:!0,refreshers:["siteId","driveId"],options:s(async({auth:e,siteId:t,driveId:n})=>{if(!e||!t||!n)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let o=e,r=o.props?.cloud,i=Tg.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:D(r)}),a=[{label:"Root Folder",value:"root"}],u=await i.api(`/sites/${t}/drives/${n}/items/root/children?$filter=folder ne null&$select=id,name`).get();for(;u.value.length>0;){for(let c of u.value)a.push({label:c.name,value:c.id});if(u["@odata.nextLink"])u=await i.api(u["@odata.nextLink"]).get();else break}return{disabled:!1,options:a}},"options")})},type:"POLLING",sampleData:{id:"01DRYVE_FOLDER_ID_GOES_HERE",name:"Project Alpha",webUrl:"https://contoso.sharepoint.com/Shared%20Documents/Project%20Alpha",size:0,createdDateTime:"2025-09-26T14:50:00Z",lastModifiedDateTime:"2025-09-26T14:50:00Z",folder:{childCount:0},parentReference:{id:"PARENT_FOLDER_ID_HERE"}},async onEnable(e){await he.onEnable(Hc,e)},async onDisable(e){await he.onDisable(Hc,e)},async test(e){return await he.test(Hc,e)},async run(e){return await he.poll(Hc,e)}});var jE=ae(ve()),Gi=ae(In());var qc={strategy:0,items:s(async({auth:e,propsValue:t,lastFetchEpochMS:n})=>{let{siteId:o}=t,r=n===0,i=e.props?.cloud,a=jE.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.access_token),"getAccessToken")},baseUrl:D(i)}),u=[],c=await a.api(`/sites/${o}/lists`).get(),l=!1;for(;!l&&c.value.length>0;){for(let d of c.value){let h=(0,Gi.default)(d.lastModifiedDateTime).valueOf();if(r){u.push(d),u.length>=10&&(l=!0);continue}if(h<n){l=!0;break}u.push(d)}if(l||!c["@odata.nextLink"])break;c=await a.api(c["@odata.nextLink"]).get()}return u.sort((d,h)=>{let m=(0,Gi.default)(d.lastModifiedDateTime);return(0,Gi.default)(h.lastModifiedDateTime).diff(m)}),u.map(d=>({epochMilliSeconds:(0,Gi.default)(d.lastModifiedDateTime).valueOf(),data:d}))},"items")},FE=Be({auth:M,name:"new_or_updated_list",classification:"READ",displayName:"New or Updated List",description:"Triggers when a list is created or updated in a site.",aiMetadata:{description:"Fires when a list on one specific SharePoint site is created or modified, based on its last-modified time (polling). Each event represents one new or changed list; choose this over New List when edits to existing lists should also trigger."},props:{siteId:C.siteId},type:"POLLING",sampleData:{id:"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",displayName:"Projects Tracker",description:"Updated list for tracking all ongoing projects.",createdDateTime:"2025-09-26T11:00:00Z",lastModifiedDateTime:"2025-09-26T14:55:00Z",webUrl:"https://contoso.sharepoint.com/sites/MySite/Lists/Projects%20Tracker"},async onEnable(e){await he.onEnable(qc,e)},async onDisable(e){await he.onDisable(qc,e)},async test(e){return await he.test(qc,e)},async run(e){return await he.poll(qc,e)}});var Gc=ae(ve());var BE="activepieces_sharepoint_updated_list_item_trigger",VE=Be({auth:M,name:"updated_list_item",classification:"READ",displayName:"Updated List Item",description:"Fires when an existing item in a SharePoint list is updated.",aiMetadata:{description:"Fires when an existing item in one specific SharePoint list on a given site is modified. Each event represents the updated list item with its current fields; newly created items are not the focus (use New List Item for creations)."},props:{siteId:C.siteId,listId:C.listId},type:"WEBHOOK",sampleData:{id:"2",createdDateTime:"2025-09-26T14:10:00Z",lastModifiedDateTime:"2025-09-26T14:38:00Z",webUrl:"https://contoso.sharepoint.com/sites/MySite/Lists/MyTasks/2_.000",fields:{"@odata.etag":'"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx,2"',id:"2",Title:"Complete Project Proposal",Status:"In Progress",Priority:"High",DueDate:"2025-10-05T00:00:00Z"}},async onEnable(e){let{siteId:t,listId:n}=e.propsValue,o=e.auth.props?.cloud,r=Gc.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(o)});try{let i=new Date;i.setDate(i.getDate()+2);let a=await r.api("/subscriptions").post({changeType:"updated",notificationUrl:e.webhookUrl,resource:`/sites/${t}/lists/${n}/items`,expirationDateTime:i.toISOString(),clientState:BE});await e.store.put("subscriptionId",a.id)}catch(i){throw new Error(`Failed to create subscription: ${i.message||"Unknown error"}`)}},async onDisable(e){let t=await e.store.get("subscriptionId");if(t){let n=e.auth.props?.cloud,o=Gc.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(n)});try{await o.api(`/subscriptions/${t}`).delete()}catch(r){console.warn(`Error deleting subscription ${t}:`,r)}}await e.store.delete("subscriptionId")},async run(e){let t=e.payload.body?.value;if(!t||!Array.isArray(t))return[];let n=t.filter(a=>a.clientState===BE);if(n.length===0)return[];let o=e.auth.props?.cloud,r=Gc.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:D(o)}),i=[];for(let a of n)try{let u=await r.api(a.resource).expand("fields").get();i.push(u)}catch(u){console.error("Error fetching list item from notification:",u)}return i}});var Ek=y_({displayName:"Microsoft SharePoint",auth:M,minimumSupportedRelease:"0.78.0",logoUrl:"https://cdn.activepieces.com/pieces/microsoft-sharepoint.png",categories:["CONTENT_AND_FILES"],authors:["kishanprmr","pranith124","onyedikachi-david"],actions:[rE,oE,aE,dE,uE,lE,hE,$E,vE,PE,AE,xE,bE,TE,SE,jx({auth:M,baseUrl:s(e=>{let t=e.props?.cloud;return D(t)+"/v1.0"},"baseUrl"),authMapping:s(async e=>({Authorization:`Bearer ${e.access_token}`}),"authMapping")})],triggers:[RE,kE,ME,LE,UE,VE,CE,FE]});0&&(module.exports={microsoftSharePoint});
|
|
55
55
|
/*! Bundled license information:
|
|
56
56
|
|
|
57
57
|
mime-types/index.js:
|