@activepieces/piece-microsoft-sharepoint 0.4.3 → 0.5.1
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/fr.json +9 -7
- package/src/index.js +25 -25
package/src/index.js
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
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:
|
|
1
|
+
"use strict";var oC=Object.create;var Qo=Object.defineProperty;var iC=Object.getOwnPropertyDescriptor;var nC=Object.getOwnPropertyNames;var aC=Object.getPrototypeOf,sC=Object.prototype.hasOwnProperty;var s=(e,t)=>Qo(e,"name",{value:t,configurable:!0});var cC=(e,t,o)=>()=>{if(o)throw o[0];try{return e&&(t=e(e=0)),t}catch(i){throw o=[i],i}};var R=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(o){throw t=0,o}},lt=(e,t)=>{for(var o in t)Qo(e,o,{get:t[o],enumerable:!0})},jy=(e,t,o,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of nC(t))!sC.call(e,r)&&r!==o&&Qo(e,r,{get:()=>t[r],enumerable:!(i=iC(t,r))||i.enumerable});return e};var ue=(e,t,o)=>(o=e!=null?oC(aC(e)):{},jy(t||!e||!e.__esModule?Qo(o,"default",{value:e,enumerable:!0}):o,e)),Ae=e=>jy(Qo({},"__esModule",{value:!0}),e);var jP=R((FP,Qc)=>{(function(e){"use strict";let t="(0?\\d+|0x[a-f0-9]+)",o={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")},i=new RegExp("^0[0-7]+$","i"),r=new RegExp("^0x[a-f0-9]+$","i"),n="%[0-9a-z]{1,}",a="(?:[0-9a-f]+::?)+",c={zoneIndex:new RegExp(n,"i"),native:new RegExp(`^(::)?(${a})?([0-9a-f]+)?(::)?(${n})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${t}\\.${t}\\.${t}\\.${t}(${n})?)$`,"i"),transitional:new RegExp(`^((?:${a})|(?:::)(?:${a})?)${t}\\.${t}\\.${t}\\.${t}(${n})?$`,"i")};function l(m,I){if(m.indexOf("::")!==m.lastIndexOf("::"))return null;let x=0,T=-1,k=(m.match(c.zoneIndex)||[])[0],C,H;for(k&&(k=k.substring(1),m=m.replace(/%.+$/,""));(T=m.indexOf(":",T+1))>=0;)x++;if(m.substr(0,2)==="::"&&x--,m.substr(-2,2)==="::"&&x--,x>I)return null;for(H=I-x,C=":";H--;)C+="0:";return m=m.replace("::",C),m[0]===":"&&(m=m.slice(1)),m[m.length-1]===":"&&(m=m.slice(0,-1)),I=(function(){let pe=m.split(":"),he=[];for(let Ue=0;Ue<pe.length;Ue++)he.push(parseInt(pe[Ue],16));return he})(),{parts:I,zoneId:k}}s(l,"expandIPv6");function d(m,I,x,T){if(m.length!==I.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let k=0,C;for(;T>0;){if(C=x-T,C<0&&(C=0),m[k]>>C!==I[k]>>C)return!1;T-=x,k+=1}return!0}s(d,"matchCIDR");function f(m){if(r.test(m))return parseInt(m,16);if(m[0]==="0"&&!isNaN(parseInt(m[1],10))){if(i.test(m))return parseInt(m,8);throw new Error(`ipaddr: cannot parse ${m} as octal`)}return parseInt(m,10)}s(f,"parseIntAuto");function b(m,I){for(;m.length<I;)m=`0${m}`;return m}s(b,"padPart");let P={};P.IPv4=(function(){function m(I){if(I.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let x,T;for(x=0;x<I.length;x++)if(T=I[x],!(0<=T&&T<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=I}return s(m,"IPv4"),m.prototype.SpecialRanges={unspecified:[[new m([0,0,0,0]),8]],broadcast:[[new m([255,255,255,255]),32]],multicast:[[new m([224,0,0,0]),4]],linkLocal:[[new m([169,254,0,0]),16]],loopback:[[new m([127,0,0,0]),8]],carrierGradeNat:[[new m([100,64,0,0]),10]],private:[[new m([10,0,0,0]),8],[new m([172,16,0,0]),12],[new m([192,168,0,0]),16]],reserved:[[new m([192,0,0,0]),24],[new m([192,0,2,0]),24],[new m([192,88,99,0]),24],[new m([198,18,0,0]),15],[new m([198,51,100,0]),24],[new m([203,0,113,0]),24],[new m([240,0,0,0]),4]],as112:[[new m([192,175,48,0]),24],[new m([192,31,196,0]),24]],amt:[[new m([192,52,193,0]),24]]},m.prototype.kind=function(){return"ipv4"},m.prototype.match=function(I,x){let T;if(x===void 0&&(T=I,I=T[0],x=T[1]),I.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return d(this.octets,I.octets,8,x)},m.prototype.prefixLengthFromSubnetMask=function(){let I=0,x=!1,T={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},k,C,H;for(k=3;k>=0;k-=1)if(C=this.octets[k],C in T){if(H=T[C],x&&H!==0)return null;H!==8&&(x=!0),I+=H}else return null;return 32-I},m.prototype.range=function(){return P.subnetMatch(this,this.SpecialRanges)},m.prototype.toByteArray=function(){return this.octets.slice(0)},m.prototype.toIPv4MappedAddress=function(){return P.IPv6.parse(`::ffff:${this.toString()}`)},m.prototype.toNormalizedString=function(){return this.toString()},m.prototype.toString=function(){return this.octets.join(".")},m})(),P.IPv4.broadcastAddressFromCIDR=function(m){try{let I=this.parseCIDR(m),x=I[0].toByteArray(),T=this.subnetMaskFromPrefixLength(I[1]).toByteArray(),k=[],C=0;for(;C<4;)k.push(parseInt(x[C],10)|parseInt(T[C],10)^255),C++;return new this(k)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},P.IPv4.isIPv4=function(m){return this.parser(m)!==null},P.IPv4.isValid=function(m){try{return new this(this.parser(m)),!0}catch{return!1}},P.IPv4.isValidCIDR=function(m){try{return this.parseCIDR(m),!0}catch{return!1}},P.IPv4.isValidFourPartDecimal=function(m){return!!(P.IPv4.isValid(m)&&m.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},P.IPv4.isValidCIDRFourPartDecimal=function(m){let I=m.match(/^(.+)\/(\d+)$/);return!P.IPv4.isValidCIDR(m)||!I?!1:P.IPv4.isValidFourPartDecimal(I[1])},P.IPv4.networkAddressFromCIDR=function(m){let I,x,T,k,C;try{for(I=this.parseCIDR(m),T=I[0].toByteArray(),C=this.subnetMaskFromPrefixLength(I[1]).toByteArray(),k=[],x=0;x<4;)k.push(parseInt(T[x],10)&parseInt(C[x],10)),x++;return new this(k)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},P.IPv4.parse=function(m){let I=this.parser(m);if(I===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(I)},P.IPv4.parseCIDR=function(m){let I;if(I=m.match(/^(.+)\/(\d+)$/)){let x=parseInt(I[2]);if(x>=0&&x<=32){let T=[this.parse(I[1]),x];return Object.defineProperty(T,"toString",{value:s(function(){return this.join("/")},"value")}),T}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},P.IPv4.parser=function(m){let I,x,T;if(I=m.match(o.fourOctet))return(function(){let k=I.slice(1,6),C=[];for(let H=0;H<k.length;H++)x=k[H],C.push(f(x));return C})();if(I=m.match(o.longValue)){if(T=f(I[1]),T>4294967295||T<0)throw new Error("ipaddr: address outside defined range");return(function(){let k=[],C;for(C=0;C<=24;C+=8)k.push(T>>C&255);return k})().reverse()}else return(I=m.match(o.twoOctet))?(function(){let k=I.slice(1,4),C=[];if(T=f(k[1]),T>16777215||T<0)throw new Error("ipaddr: address outside defined range");return C.push(f(k[0])),C.push(T>>16&255),C.push(T>>8&255),C.push(T&255),C})():(I=m.match(o.threeOctet))?(function(){let k=I.slice(1,5),C=[];if(T=f(k[2]),T>65535||T<0)throw new Error("ipaddr: address outside defined range");return C.push(f(k[0])),C.push(f(k[1])),C.push(T>>8&255),C.push(T&255),C})():null},P.IPv4.subnetMaskFromPrefixLength=function(m){if(m=parseInt(m),m<0||m>32)throw new Error("ipaddr: invalid IPv4 prefix length");let I=[0,0,0,0],x=0,T=Math.floor(m/8);for(;x<T;)I[x]=255,x++;return T<4&&(I[T]=Math.pow(2,m%8)-1<<8-m%8),new this(I)},P.IPv6=(function(){function m(I,x){let T,k;if(I.length===16)for(this.parts=[],T=0;T<=14;T+=2)this.parts.push(I[T]<<8|I[T+1]);else if(I.length===8)this.parts=I;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(T=0;T<this.parts.length;T++)if(k=this.parts[T],!(0<=k&&k<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");x&&(this.zoneId=x)}return s(m,"IPv6"),m.prototype.SpecialRanges={unspecified:[new m([0,0,0,0,0,0,0,0]),128],linkLocal:[new m([65152,0,0,0,0,0,0,0]),10],multicast:[new m([65280,0,0,0,0,0,0,0]),8],loopback:[new m([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new m([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new m([0,0,0,0,0,65535,0,0]),96],discard:[new m([256,0,0,0,0,0,0,0]),64],rfc6145:[new m([0,0,0,0,65535,0,0,0]),96],rfc6052:[new m([100,65435,0,0,0,0,0,0]),96],"6to4":[new m([8194,0,0,0,0,0,0,0]),16],teredo:[new m([8193,0,0,0,0,0,0,0]),32],benchmarking:[new m([8193,2,0,0,0,0,0,0]),48],amt:[new m([8193,3,0,0,0,0,0,0]),32],as112v6:[[new m([8193,4,274,0,0,0,0,0]),48],[new m([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new m([8193,16,0,0,0,0,0,0]),28],orchid2:[new m([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new m([8193,48,0,0,0,0,0,0]),28],reserved:[[new m([8193,0,0,0,0,0,0,0]),23],[new m([8193,3512,0,0,0,0,0,0]),32]]},m.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},m.prototype.kind=function(){return"ipv6"},m.prototype.match=function(I,x){let T;if(x===void 0&&(T=I,I=T[0],x=T[1]),I.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return d(this.parts,I.parts,16,x)},m.prototype.prefixLengthFromSubnetMask=function(){let I=0,x=!1,T={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},k,C;for(let H=7;H>=0;H-=1)if(k=this.parts[H],k in T){if(C=T[k],x&&C!==0)return null;C!==16&&(x=!0),I+=C}else return null;return 128-I},m.prototype.range=function(){return P.subnetMatch(this,this.SpecialRanges)},m.prototype.toByteArray=function(){let I,x=[],T=this.parts;for(let k=0;k<T.length;k++)I=T[k],x.push(I>>8),x.push(I&255);return x},m.prototype.toFixedLengthString=function(){let I=(function(){let T=[];for(let k=0;k<this.parts.length;k++)T.push(b(this.parts[k].toString(16),4));return T}).call(this).join(":"),x="";return this.zoneId&&(x=`%${this.zoneId}`),I+x},m.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let I=this.parts.slice(-2),x=I[0],T=I[1];return new P.IPv4([x>>8,x&255,T>>8,T&255])},m.prototype.toNormalizedString=function(){let I=(function(){let T=[];for(let k=0;k<this.parts.length;k++)T.push(this.parts[k].toString(16));return T}).call(this).join(":"),x="";return this.zoneId&&(x=`%${this.zoneId}`),I+x},m.prototype.toRFC5952String=function(){let I=/((^|:)(0(:|$)){2,})/g,x=this.toNormalizedString(),T=0,k=-1,C;for(;C=I.exec(x);)C[0].length>k&&(T=C.index,k=C[0].length);return k<0?x:`${x.substring(0,T)}::${x.substring(T+k)}`},m.prototype.toString=function(){return this.toRFC5952String()},m})(),P.IPv6.broadcastAddressFromCIDR=function(m){try{let I=this.parseCIDR(m),x=I[0].toByteArray(),T=this.subnetMaskFromPrefixLength(I[1]).toByteArray(),k=[],C=0;for(;C<16;)k.push(parseInt(x[C],10)|parseInt(T[C],10)^255),C++;return new this(k)}catch(I){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${I})`)}},P.IPv6.isIPv6=function(m){return this.parser(m)!==null},P.IPv6.isValid=function(m){if(typeof m=="string"&&m.indexOf(":")===-1)return!1;try{let I=this.parser(m);return new this(I.parts,I.zoneId),!0}catch{return!1}},P.IPv6.isValidCIDR=function(m){if(typeof m=="string"&&m.indexOf(":")===-1)return!1;try{return this.parseCIDR(m),!0}catch{return!1}},P.IPv6.networkAddressFromCIDR=function(m){let I,x,T,k,C;try{for(I=this.parseCIDR(m),T=I[0].toByteArray(),C=this.subnetMaskFromPrefixLength(I[1]).toByteArray(),k=[],x=0;x<16;)k.push(parseInt(T[x],10)&parseInt(C[x],10)),x++;return new this(k)}catch(H){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${H})`)}},P.IPv6.parse=function(m){let I=this.parser(m);if(I.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(I.parts,I.zoneId)},P.IPv6.parseCIDR=function(m){let I,x,T;if((x=m.match(/^(.+)\/(\d+)$/))&&(I=parseInt(x[2]),I>=0&&I<=128))return T=[this.parse(x[1]),I],Object.defineProperty(T,"toString",{value:s(function(){return this.join("/")},"value")}),T;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},P.IPv6.parser=function(m){let I,x,T,k,C,H;if(T=m.match(c.deprecatedTransitional))return this.parser(`::ffff:${T[1]}`);if(c.native.test(m))return l(m,8);if((T=m.match(c.transitional))&&(H=T[6]||"",I=T[1],T[1].endsWith("::")||(I=I.slice(0,-1)),I=l(I+H,6),I.parts)){for(C=[parseInt(T[2]),parseInt(T[3]),parseInt(T[4]),parseInt(T[5])],x=0;x<C.length;x++)if(k=C[x],!(0<=k&&k<=255))return null;return I.parts.push(C[0]<<8|C[1]),I.parts.push(C[2]<<8|C[3]),{parts:I.parts,zoneId:I.zoneId}}return null},P.IPv6.subnetMaskFromPrefixLength=function(m){if(m=parseInt(m),m<0||m>128)throw new Error("ipaddr: invalid IPv6 prefix length");let I=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],x=0,T=Math.floor(m/8);for(;x<T;)I[x]=255,x++;return T<16&&(I[T]=Math.pow(2,m%8)-1<<8-m%8),new this(I)},P.fromByteArray=function(m){let I=m.length;if(I===4)return new P.IPv4(m);if(I===16)return new P.IPv6(m);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},P.isValid=function(m){return P.IPv6.isValid(m)||P.IPv4.isValid(m)},P.isValidCIDR=function(m){return P.IPv6.isValidCIDR(m)||P.IPv4.isValidCIDR(m)},P.parse=function(m){if(P.IPv6.isValid(m))return P.IPv6.parse(m);if(P.IPv4.isValid(m))return P.IPv4.parse(m);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},P.parseCIDR=function(m){try{return P.IPv6.parseCIDR(m)}catch{try{return P.IPv4.parseCIDR(m)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},P.process=function(m){let I=this.parse(m);return I.kind()==="ipv6"&&I.isIPv4MappedAddress()?I.toIPv4Address():I},P.subnetMatch=function(m,I,x){let T,k,C,H;x==null&&(x="unicast");for(k in I)if(Object.prototype.hasOwnProperty.call(I,k)){for(C=I[k],C[0]&&!(C[0]instanceof Array)&&(C=[C]),T=0;T<C.length;T++)if(H=C[T],m.kind()===H[0].kind()&&m.match.apply(m,H))return k}return x},typeof Qc<"u"&&Qc.exports?Qc.exports=P:e.ipaddr=P})(FP)});var tb=R((DW,eb)=>{var QI=require("stream").Stream,cN=require("util");eb.exports=At;function At(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}s(At,"DelayedStream");cN.inherits(At,QI);At.create=function(e,t){var o=new this;t=t||{};for(var i in t)o[i]=t[i];o.source=e;var r=e.emit;return e.emit=function(){return o._handleEmit(arguments),r.apply(e,arguments)},e.on("error",function(){}),o.pauseStream&&e.pause(),o};Object.defineProperty(At.prototype,"readable",{configurable:!0,enumerable:!0,get:s(function(){return this.source.readable},"get")});At.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};At.prototype.resume=function(){this._released||this.release(),this.source.resume()};At.prototype.pause=function(){this.source.pause()};At.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};At.prototype.pipe=function(){var e=QI.prototype.pipe.apply(this,arguments);return this.resume(),e};At.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)};At.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 nb=R((OW,ib)=>{var lN=require("util"),ob=require("stream").Stream,rb=tb();ib.exports=Re;function Re(){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(Re,"CombinedStream");lN.inherits(Re,ob);Re.create=function(e){var t=new this;e=e||{};for(var o in e)t[o]=e[o];return t};Re.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};Re.prototype.append=function(e){var t=Re.isStreamLike(e);if(t){if(!(e instanceof rb)){var o=rb.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=o}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this};Re.prototype.pipe=function(e,t){return ob.prototype.pipe.call(this,e,t),this.resume(),e};Re.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}};Re.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(o){var i=Re.isStreamLike(o);i&&(o.on("data",this._checkDataSize.bind(this)),this._handleErrors(o)),this._pipeNext(o)}.bind(this))};Re.prototype._pipeNext=function(e){this._currentStream=e;var t=Re.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var o=e;this.write(o),this._getNext()};Re.prototype._handleErrors=function(e){var t=this;e.on("error",function(o){t._emitError(o)})};Re.prototype.write=function(e){this.emit("data",e)};Re.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};Re.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")};Re.prototype.end=function(){this._reset(),this.emit("end")};Re.prototype.destroy=function(){this._reset(),this.emit("close")};Re.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};Re.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};Re.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)};Re.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var sb=R((NW,ab)=>{"use strict";ab.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 ub=R(at=>{"use strict";var sl=sb(),uN=require("path").extname,cb=/^\s*([^;\s]*)(?:;|\s|$)/,dN=/^text\//i;at.charset=lb;at.charsets={lookup:lb};at.contentType=pN;at.extension=mN;at.extensions=Object.create(null);at.lookup=fN;at.types=Object.create(null);hN(at.extensions,at.types);function lb(e){if(!e||typeof e!="string")return!1;var t=cb.exec(e),o=t&&sl[t[1].toLowerCase()];return o&&o.charset?o.charset:t&&dN.test(t[1])?"UTF-8":!1}s(lb,"charset");function pN(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?at.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var o=at.charset(t);o&&(t+="; charset="+o.toLowerCase())}return t}s(pN,"contentType");function mN(e){if(!e||typeof e!="string")return!1;var t=cb.exec(e),o=t&&at.extensions[t[1].toLowerCase()];return!o||!o.length?!1:o[0]}s(mN,"extension");function fN(e){if(!e||typeof e!="string")return!1;var t=uN("x."+e).toLowerCase().substr(1);return t&&at.types[t]||!1}s(fN,"lookup");function hN(e,t){var o=["nginx","apache",void 0,"iana"];Object.keys(sl).forEach(s(function(r){var n=sl[r],a=n.extensions;if(!(!a||!a.length)){e[r]=a;for(var c=0;c<a.length;c++){var l=a[c];if(t[l]){var d=o.indexOf(sl[t[l]].source),f=o.indexOf(n.source);if(t[l]!=="application/octet-stream"&&(d>f||d===f&&t[l].substr(0,12)==="application/"))continue}t[l]=r}}},"forEachMimeType"))}s(hN,"populateMaps")});var pb=R((UW,db)=>{db.exports=yN;function yN(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}s(yN,"defer")});var Eh=R((FW,fb)=>{var mb=pb();fb.exports=gN;function gN(e){var t=!1;return mb(function(){t=!0}),s(function(i,r){t?e(i,r):mb(s(function(){e(i,r)},"nextTick_callback"))},"async_callback")}s(gN,"async")});var kh=R((qW,hb)=>{hb.exports=vN;function vN(e){Object.keys(e.jobs).forEach(PN.bind(e)),e.jobs={}}s(vN,"abort");function PN(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}s(PN,"clean")});var Ch=R((HW,gb)=>{var yb=Eh(),IN=kh();gb.exports=bN;function bN(e,t,o,i){var r=o.keyedList?o.keyedList[o.index]:o.index;o.jobs[r]=SN(t,r,e[r],function(n,a){r in o.jobs&&(delete o.jobs[r],n?IN(o):o.results[r]=a,i(n,o.results))})}s(bN,"iterate");function SN(e,t,o,i){var r;return e.length==2?r=e(o,yb(i)):r=e(o,t,yb(i)),r}s(SN,"runJob")});var Dh=R((ZW,vb)=>{vb.exports=_N;function _N(e,t){var o=!Array.isArray(e),i={index:0,keyedList:o||t?Object.keys(e):null,jobs:{},results:o?{}:[],size:o?Object.keys(e).length:e.length};return t&&i.keyedList.sort(o?t:function(r,n){return t(e[r],e[n])}),i}s(_N,"state")});var Rh=R((WW,Pb)=>{var xN=kh(),TN=Eh();Pb.exports=AN;function AN(e){Object.keys(this.jobs).length&&(this.index=this.size,xN(this),TN(e)(null,this.results))}s(AN,"terminator")});var bb=R((JW,Ib)=>{var wN=Ch(),EN=Dh(),kN=Rh();Ib.exports=CN;function CN(e,t,o){for(var i=EN(e);i.index<(i.keyedList||e).length;)wN(e,t,i,function(r,n){if(r){o(r,n);return}if(Object.keys(i.jobs).length===0){o(null,i.results);return}}),i.index++;return kN.bind(i,o)}s(CN,"parallel")});var Oh=R((YW,cl)=>{var Sb=Ch(),DN=Dh(),RN=Rh();cl.exports=ON;cl.exports.ascending=_b;cl.exports.descending=$N;function ON(e,t,o,i){var r=DN(e,o);return Sb(e,t,r,s(function n(a,c){if(a){i(a,c);return}if(r.index++,r.index<(r.keyedList||e).length){Sb(e,t,r,n);return}i(null,r.results)},"iteratorHandler")),RN.bind(r,i)}s(ON,"serialOrdered");function _b(e,t){return e<t?-1:e>t?1:0}s(_b,"ascending");function $N(e,t){return-1*_b(e,t)}s($N,"descending")});var Tb=R((e3,xb)=>{var NN=Oh();xb.exports=LN;function LN(e,t,o){return NN(e,t,null,o)}s(LN,"serial")});var wb=R((r3,Ab)=>{Ab.exports={parallel:bb(),serial:Tb(),serialOrdered:Oh()}});var $h=R((o3,Eb)=>{"use strict";Eb.exports=Object});var Cb=R((i3,kb)=>{"use strict";kb.exports=Error});var Rb=R((n3,Db)=>{"use strict";Db.exports=EvalError});var $b=R((a3,Ob)=>{"use strict";Ob.exports=RangeError});var Lb=R((s3,Nb)=>{"use strict";Nb.exports=ReferenceError});var Ub=R((c3,zb)=>{"use strict";zb.exports=SyntaxError});var ll=R((l3,Mb)=>{"use strict";Mb.exports=TypeError});var jb=R((u3,Fb)=>{"use strict";Fb.exports=URIError});var Bb=R((d3,qb)=>{"use strict";qb.exports=Math.abs});var Gb=R((p3,Hb)=>{"use strict";Hb.exports=Math.floor});var Vb=R((m3,Zb)=>{"use strict";Zb.exports=Math.max});var Kb=R((f3,Wb)=>{"use strict";Wb.exports=Math.min});var Xb=R((h3,Jb)=>{"use strict";Jb.exports=Math.pow});var Qb=R((y3,Yb)=>{"use strict";Yb.exports=Math.round});var tS=R((g3,eS)=>{"use strict";eS.exports=Number.isNaN||s(function(t){return t!==t},"isNaN")});var oS=R((P3,rS)=>{"use strict";var zN=tS();rS.exports=s(function(t){return zN(t)||t===0?t:t<0?-1:1},"sign")});var nS=R((b3,iS)=>{"use strict";iS.exports=Object.getOwnPropertyDescriptor});var Nh=R((S3,aS)=>{"use strict";var ul=nS();if(ul)try{ul([],"length")}catch{ul=null}aS.exports=ul});var cS=R((_3,sS)=>{"use strict";var dl=Object.defineProperty||!1;if(dl)try{dl({},"a",{value:1})}catch{dl=!1}sS.exports=dl});var Lh=R((x3,lS)=>{"use strict";lS.exports=s(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},o=Symbol("test"),i=Object(o);if(typeof o=="string"||Object.prototype.toString.call(o)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var r=42;t[o]=r;for(var n 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]!==o||!Object.prototype.propertyIsEnumerable.call(t,o))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(t,o);if(c.value!==r||c.enumerable!==!0)return!1}return!0},"hasSymbols")});var pS=R((A3,dS)=>{"use strict";var uS=typeof Symbol<"u"&&Symbol,UN=Lh();dS.exports=s(function(){return typeof uS!="function"||typeof Symbol!="function"||typeof uS("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:UN()},"hasNativeSymbols")});var zh=R((E3,mS)=>{"use strict";mS.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Uh=R((k3,fS)=>{"use strict";var MN=$h();fS.exports=MN.getPrototypeOf||null});var gS=R((C3,yS)=>{"use strict";var FN="Function.prototype.bind called on incompatible ",jN=Object.prototype.toString,qN=Math.max,BN="[object Function]",hS=s(function(t,o){for(var i=[],r=0;r<t.length;r+=1)i[r]=t[r];for(var n=0;n<o.length;n+=1)i[n+t.length]=o[n];return i},"concatty"),HN=s(function(t,o){for(var i=[],r=o||0,n=0;r<t.length;r+=1,n+=1)i[n]=t[r];return i},"slicy"),GN=s(function(e,t){for(var o="",i=0;i<e.length;i+=1)o+=e[i],i+1<e.length&&(o+=t);return o},"joiny");yS.exports=s(function(t){var o=this;if(typeof o!="function"||jN.apply(o)!==BN)throw new TypeError(FN+o);for(var i=HN(arguments,1),r,n=s(function(){if(this instanceof r){var f=o.apply(this,hS(i,arguments));return Object(f)===f?f:this}return o.apply(t,hS(i,arguments))},"binder"),a=qN(0,o.length-i.length),c=[],l=0;l<a;l++)c[l]="$"+l;if(r=Function("binder","return function ("+GN(c,",")+"){ return binder.apply(this,arguments); }")(n),o.prototype){var d=s(function(){},"Empty");d.prototype=o.prototype,r.prototype=new d,d.prototype=null}return r},"bind")});var wo=R((R3,vS)=>{"use strict";var ZN=gS();vS.exports=Function.prototype.bind||ZN});var pl=R((O3,PS)=>{"use strict";PS.exports=Function.prototype.call});var Mh=R(($3,IS)=>{"use strict";IS.exports=Function.prototype.apply});var SS=R((N3,bS)=>{"use strict";bS.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var xS=R((L3,_S)=>{"use strict";var VN=wo(),WN=Mh(),KN=pl(),JN=SS();_S.exports=JN||VN.call(KN,WN)});var AS=R((z3,TS)=>{"use strict";var XN=wo(),YN=ll(),QN=pl(),eL=xS();TS.exports=s(function(t){if(t.length<1||typeof t[0]!="function")throw new YN("a function is required");return eL(XN,QN,t)},"callBindBasic")});var RS=R((M3,DS)=>{"use strict";var tL=AS(),wS=Nh(),kS;try{kS=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Fh=!!kS&&wS&&wS(Object.prototype,"__proto__"),CS=Object,ES=CS.getPrototypeOf;DS.exports=Fh&&typeof Fh.get=="function"?tL([Fh.get]):typeof ES=="function"?s(function(t){return ES(t==null?t:CS(t))},"getDunder"):!1});var zS=R((j3,LS)=>{"use strict";var OS=zh(),$S=Uh(),NS=RS();LS.exports=OS?s(function(t){return OS(t)},"getProto"):$S?s(function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return $S(t)},"getProto"):NS?s(function(t){return NS(t)},"getProto"):null});var jh=R((B3,US)=>{"use strict";var rL=Function.prototype.call,oL=Object.prototype.hasOwnProperty,iL=wo();US.exports=iL.call(rL,oL)});var GS=R((H3,HS)=>{"use strict";var le,nL=$h(),aL=Cb(),sL=Rb(),cL=$b(),lL=Lb(),Do=Ub(),Co=ll(),uL=jb(),dL=Bb(),pL=Gb(),mL=Vb(),fL=Kb(),hL=Xb(),yL=Qb(),gL=oS(),qS=Function,qh=s(function(e){try{return qS('"use strict"; return ('+e+").constructor;")()}catch{}},"getEvalledConstructor"),ra=Nh(),vL=cS(),Bh=s(function(){throw new Co},"throwTypeError"),PL=ra?(function(){try{return arguments.callee,Bh}catch{try{return ra(arguments,"callee").get}catch{return Bh}}})():Bh,Eo=pS()(),Be=zS(),IL=Uh(),bL=zh(),BS=Mh(),oa=pl(),ko={},SL=typeof Uint8Array>"u"||!Be?le:Be(Uint8Array),Fr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?le:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?le:ArrayBuffer,"%ArrayIteratorPrototype%":Eo&&Be?Be([][Symbol.iterator]()):le,"%AsyncFromSyncIteratorPrototype%":le,"%AsyncFunction%":ko,"%AsyncGenerator%":ko,"%AsyncGeneratorFunction%":ko,"%AsyncIteratorPrototype%":ko,"%Atomics%":typeof Atomics>"u"?le:Atomics,"%BigInt%":typeof BigInt>"u"?le:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?le:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?le:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?le:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":aL,"%eval%":eval,"%EvalError%":sL,"%Float16Array%":typeof Float16Array>"u"?le:Float16Array,"%Float32Array%":typeof Float32Array>"u"?le:Float32Array,"%Float64Array%":typeof Float64Array>"u"?le:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?le:FinalizationRegistry,"%Function%":qS,"%GeneratorFunction%":ko,"%Int8Array%":typeof Int8Array>"u"?le:Int8Array,"%Int16Array%":typeof Int16Array>"u"?le:Int16Array,"%Int32Array%":typeof Int32Array>"u"?le:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Eo&&Be?Be(Be([][Symbol.iterator]())):le,"%JSON%":typeof JSON=="object"?JSON:le,"%Map%":typeof Map>"u"?le:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Eo||!Be?le:Be(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":nL,"%Object.getOwnPropertyDescriptor%":ra,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?le:Promise,"%Proxy%":typeof Proxy>"u"?le:Proxy,"%RangeError%":cL,"%ReferenceError%":lL,"%Reflect%":typeof Reflect>"u"?le:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?le:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Eo||!Be?le:Be(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?le:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Eo&&Be?Be(""[Symbol.iterator]()):le,"%Symbol%":Eo?Symbol:le,"%SyntaxError%":Do,"%ThrowTypeError%":PL,"%TypedArray%":SL,"%TypeError%":Co,"%Uint8Array%":typeof Uint8Array>"u"?le:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?le:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?le:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?le:Uint32Array,"%URIError%":uL,"%WeakMap%":typeof WeakMap>"u"?le:WeakMap,"%WeakRef%":typeof WeakRef>"u"?le:WeakRef,"%WeakSet%":typeof WeakSet>"u"?le:WeakSet,"%Function.prototype.call%":oa,"%Function.prototype.apply%":BS,"%Object.defineProperty%":vL,"%Object.getPrototypeOf%":IL,"%Math.abs%":dL,"%Math.floor%":pL,"%Math.max%":mL,"%Math.min%":fL,"%Math.pow%":hL,"%Math.round%":yL,"%Math.sign%":gL,"%Reflect.getPrototypeOf%":bL};if(Be)try{null.error}catch(e){MS=Be(Be(e)),Fr["%Error.prototype%"]=MS}var MS,_L=s(function e(t){var o;if(t==="%AsyncFunction%")o=qh("async function () {}");else if(t==="%GeneratorFunction%")o=qh("function* () {}");else if(t==="%AsyncGeneratorFunction%")o=qh("async function* () {}");else if(t==="%AsyncGenerator%"){var i=e("%AsyncGeneratorFunction%");i&&(o=i.prototype)}else if(t==="%AsyncIteratorPrototype%"){var r=e("%AsyncGenerator%");r&&Be&&(o=Be(r.prototype))}return Fr[t]=o,o},"doEval"),FS={__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"]},ia=wo(),ml=jh(),xL=ia.call(oa,Array.prototype.concat),TL=ia.call(BS,Array.prototype.splice),jS=ia.call(oa,String.prototype.replace),fl=ia.call(oa,String.prototype.slice),AL=ia.call(oa,RegExp.prototype.exec),wL=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,EL=/\\(\\)?/g,kL=s(function(t){var o=fl(t,0,1),i=fl(t,-1);if(o==="%"&&i!=="%")throw new Do("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&o!=="%")throw new Do("invalid intrinsic syntax, expected opening `%`");var r=[];return jS(t,wL,function(n,a,c,l){r[r.length]=c?jS(l,EL,"$1"):a||n}),r},"stringToPath"),CL=s(function(t,o){var i=t,r;if(ml(FS,i)&&(r=FS[i],i="%"+r[0]+"%"),ml(Fr,i)){var n=Fr[i];if(n===ko&&(n=_L(i)),typeof n>"u"&&!o)throw new Co("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:i,value:n}}throw new Do("intrinsic "+t+" does not exist!")},"getBaseIntrinsic");HS.exports=s(function(t,o){if(typeof t!="string"||t.length===0)throw new Co("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof o!="boolean")throw new Co('"allowMissing" argument must be a boolean');if(AL(/^%?[^%]*%?$/,t)===null)throw new Do("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=kL(t),r=i.length>0?i[0]:"",n=CL("%"+r+"%",o),a=n.name,c=n.value,l=!1,d=n.alias;d&&(r=d[0],TL(i,xL([0,1],d)));for(var f=1,b=!0;f<i.length;f+=1){var P=i[f],m=fl(P,0,1),I=fl(P,-1);if((m==='"'||m==="'"||m==="`"||I==='"'||I==="'"||I==="`")&&m!==I)throw new Do("property names with quotes must have matching quotes");if((P==="constructor"||!b)&&(l=!0),r+="."+P,a="%"+r+"%",ml(Fr,a))c=Fr[a];else if(c!=null){if(!(P in c)){if(!o)throw new Co("base intrinsic for "+t+" exists, but the property is not available.");return}if(ra&&f+1>=i.length){var x=ra(c,P);b=!!x,b&&"get"in x&&!("originalValue"in x.get)?c=x.get:c=c[P]}else b=ml(c,P),c=c[P];b&&!l&&(Fr[a]=c)}}return c},"GetIntrinsic")});var VS=R((Z3,ZS)=>{"use strict";var DL=Lh();ZS.exports=s(function(){return DL()&&!!Symbol.toStringTag},"hasToStringTagShams")});var JS=R((W3,KS)=>{"use strict";var RL=GS(),WS=RL("%Object.defineProperty%",!0),OL=VS()(),$L=jh(),NL=ll(),hl=OL?Symbol.toStringTag:null;KS.exports=s(function(t,o){var i=arguments.length>2&&!!arguments[2]&&arguments[2].force,r=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof i<"u"&&typeof i!="boolean"||typeof r<"u"&&typeof r!="boolean")throw new NL("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");hl&&(i||!$L(t,hl))&&(WS?WS(t,hl,{configurable:!r,enumerable:!1,value:o,writable:!1}):t[hl]=o)},"setToStringTag")});var YS=R((J3,XS)=>{"use strict";var LL=Function.prototype.call,zL=Object.prototype.hasOwnProperty,UL=wo();XS.exports=UL.call(LL,zL)});var e_=R((X3,QS)=>{"use strict";QS.exports=function(e,t){return Object.keys(t).forEach(function(o){e[o]=e[o]||t[o]}),e}});var o_=R((Y3,r_)=>{"use strict";var Vh=nb(),ML=require("util"),Hh=require("path"),FL=require("http"),jL=require("https"),qL=require("url").parse,BL=require("fs"),HL=require("stream").Stream,GL=require("crypto"),Gh=ub(),ZL=wb(),VL=JS(),dr=YS(),Zh=e_();function t_(e){return String(e).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}s(t_,"escapeHeaderParam");function fe(e){if(!(this instanceof fe))return new fe(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Vh.call(this),e=e||{};for(var t in e)this[t]=e[t]}s(fe,"FormData");ML.inherits(fe,Vh);fe.LINE_BREAK=`\r
|
|
2
|
+
`;fe.DEFAULT_CONTENT_TYPE="application/octet-stream";fe.prototype.append=function(e,t,o){o=o||{},typeof o=="string"&&(o={filename:o});var i=Vh.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,o),n=this._multiPartFooter();i(r),i(t),i(n),this._trackLength(r,t,o)};fe.prototype._trackLength=function(e,t,o){var i=0;o.knownLength!=null?i+=Number(o.knownLength):Buffer.isBuffer(t)?i=t.length:typeof t=="string"&&(i=Buffer.byteLength(t)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(e)+fe.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&dr(t,"httpVersion"))&&!(t instanceof HL))&&(o.knownLength||this._valuesToMeasure.push(t))};fe.prototype._lengthRetriever=function(e,t){dr(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):BL.stat(e.path,function(o,i){if(o){t(o);return}var r=i.size-(e.start?e.start:0);t(null,r)}):dr(e,"httpVersion")?t(null,Number(e.headers["content-length"])):dr(e,"httpModule")?(e.on("response",function(o){e.pause(),t(null,Number(o.headers["content-length"]))}),e.resume()):t("Unknown stream")};fe.prototype._multiPartHeader=function(e,t,o){if(typeof o.header=="string")return o.header;var i=this._getContentDisposition(t,o),r=this._getContentType(t,o),n="",a={"Content-Disposition":["form-data",'name="'+t_(e)+'"'].concat(i||[]),"Content-Type":[].concat(r||[])};typeof o.header=="object"&&Zh(a,o.header);var c;for(var l in a)if(dr(a,l)){if(c=a[l],c==null)continue;Array.isArray(c)||(c=[c]),c.length&&(n+=l+": "+c.join("; ")+fe.LINE_BREAK)}return"--"+this.getBoundary()+fe.LINE_BREAK+n+fe.LINE_BREAK};fe.prototype._getContentDisposition=function(e,t){var o;if(typeof t.filepath=="string"?o=Hh.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?o=Hh.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&dr(e,"httpVersion")&&(o=Hh.basename(e.client._httpMessage.path||"")),o)return'filename="'+t_(o)+'"'};fe.prototype._getContentType=function(e,t){var o=t.contentType;return!o&&e&&e.name&&(o=Gh.lookup(e.name)),!o&&e&&e.path&&(o=Gh.lookup(e.path)),!o&&e&&e.readable&&dr(e,"httpVersion")&&(o=e.headers["content-type"]),!o&&(t.filepath||t.filename)&&(o=Gh.lookup(t.filepath||t.filename)),!o&&e&&typeof e=="object"&&(o=fe.DEFAULT_CONTENT_TYPE),o};fe.prototype._multiPartFooter=function(){return function(e){var t=fe.LINE_BREAK,o=this._streams.length===0;o&&(t+=this._lastBoundary()),e(t)}.bind(this)};fe.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+fe.LINE_BREAK};fe.prototype.getHeaders=function(e){var t,o={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)dr(e,t)&&(o[t.toLowerCase()]=e[t]);return o};fe.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};fe.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};fe.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),o=0,i=this._streams.length;o<i;o++)typeof this._streams[o]!="function"&&(Buffer.isBuffer(this._streams[o])?e=Buffer.concat([e,this._streams[o]]):e=Buffer.concat([e,Buffer.from(this._streams[o])]),(typeof this._streams[o]!="string"||this._streams[o].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(fe.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};fe.prototype._generateBoundary=function(){this._boundary="--------------------------"+GL.randomBytes(12).toString("hex")};fe.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};fe.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};fe.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}ZL.parallel(this._valuesToMeasure,this._lengthRetriever,function(o,i){if(o){e(o);return}i.forEach(function(r){t+=r}),e(null,t)})};fe.prototype.submit=function(e,t){var o,i,r={method:"post"};return typeof e=="string"?(e=qL(e),i=Zh({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},r)):(i=Zh(e,r),i.port||(i.port=i.protocol==="https:"?443:80)),i.headers=this.getHeaders(e.headers),i.protocol==="https:"?o=jL.request(i):o=FL.request(i),this.getLength(function(n,a){if(n&&n!=="Unknown stream"){this._error(n);return}if(a&&o.setHeader("Content-Length",a),this.pipe(o),t){var c,l=s(function(d,f){return o.removeListener("error",l),o.removeListener("response",c),t.call(this,d,f)},"callback");c=l.bind(this,null),o.on("error",l),o.on("response",c)}}.bind(this)),o};fe.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};fe.prototype.toString=function(){return"[object FormData]"};VL(fe.prototype,"FormData");r_.exports=fe});var ke={};lt(ke,{__addDisposableResource:()=>k_,__assign:()=>yl,__asyncDelegator:()=>b_,__asyncGenerator:()=>I_,__asyncValues:()=>S_,__await:()=>Ro,__awaiter:()=>f_,__classPrivateFieldGet:()=>A_,__classPrivateFieldIn:()=>E_,__classPrivateFieldSet:()=>w_,__createBinding:()=>vl,__decorate:()=>d_,__disposeResources:()=>C_,__esDecorate:()=>az,__exportStar:()=>y_,__extends:()=>l_,__generator:()=>h_,__importDefault:()=>T_,__importStar:()=>x_,__makeTemplateObject:()=>__,__metadata:()=>m_,__param:()=>p_,__propKey:()=>cz,__read:()=>Jh,__rest:()=>u_,__runInitializers:()=>sz,__setFunctionName:()=>lz,__spread:()=>g_,__spreadArray:()=>P_,__spreadArrays:()=>v_,__values:()=>gl,default:()=>pz});function l_(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Kh(e,t);function o(){this.constructor=e}s(o,"__"),e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}function u_(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(o[i[r]]=e[i[r]]);return o}function d_(e,t,o,i){var r=arguments.length,n=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n}function p_(e,t){return function(o,i){t(o,i,e)}}function az(e,t,o,i,r,n){function a(k){if(k!==void 0&&typeof k!="function")throw new TypeError("Function expected");return k}s(a,"accept");for(var c=i.kind,l=c==="getter"?"get":c==="setter"?"set":"value",d=!t&&e?i.static?e:e.prototype:null,f=t||(d?Object.getOwnPropertyDescriptor(d,i.name):{}),b,P=!1,m=o.length-1;m>=0;m--){var I={};for(var x in i)I[x]=x==="access"?{}:i[x];for(var x in i.access)I.access[x]=i.access[x];I.addInitializer=function(k){if(P)throw new TypeError("Cannot add initializers after decoration has completed");n.push(a(k||null))};var T=(0,o[m])(c==="accessor"?{get:f.get,set:f.set}:f[l],I);if(c==="accessor"){if(T===void 0)continue;if(T===null||typeof T!="object")throw new TypeError("Object expected");(b=a(T.get))&&(f.get=b),(b=a(T.set))&&(f.set=b),(b=a(T.init))&&r.unshift(b)}else(b=a(T))&&(c==="field"?r.unshift(b):f[l]=b)}d&&Object.defineProperty(d,i.name,f),P=!0}function sz(e,t,o){for(var i=arguments.length>2,r=0;r<t.length;r++)o=i?t[r].call(e,o):t[r].call(e);return i?o:void 0}function cz(e){return typeof e=="symbol"?e:"".concat(e)}function lz(e,t,o){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:o?"".concat(o," ",t):t})}function m_(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function f_(e,t,o,i){function r(n){return n instanceof o?n:new o(function(a){a(n)})}return s(r,"adopt"),new(o||(o=Promise))(function(n,a){function c(f){try{d(i.next(f))}catch(b){a(b)}}s(c,"fulfilled");function l(f){try{d(i.throw(f))}catch(b){a(b)}}s(l,"rejected");function d(f){f.done?n(f.value):r(f.value).then(c,l)}s(d,"step"),d((i=i.apply(e,t||[])).next())})}function h_(e,t){var o={label:0,sent:s(function(){if(n[0]&1)throw n[1];return n[1]},"sent"),trys:[],ops:[]},i,r,n,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(d){return function(f){return l([d,f])}}function l(d){if(i)throw new TypeError("Generator is already executing.");for(;a&&(a=0,d[0]&&(o=0)),o;)try{if(i=1,r&&(n=d[0]&2?r.return:d[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,d[1])).done)return n;switch(r=0,n&&(d=[d[0]&2,n.value]),d[0]){case 0:case 1:n=d;break;case 4:return o.label++,{value:d[1],done:!1};case 5:o.label++,r=d[1],d=[0];continue;case 7:d=o.ops.pop(),o.trys.pop();continue;default:if(n=o.trys,!(n=n.length>0&&n[n.length-1])&&(d[0]===6||d[0]===2)){o=0;continue}if(d[0]===3&&(!n||d[1]>n[0]&&d[1]<n[3])){o.label=d[1];break}if(d[0]===6&&o.label<n[1]){o.label=n[1],n=d;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(d);break}n[2]&&o.ops.pop(),o.trys.pop();continue}d=t.call(e,o)}catch(f){d=[6,f],r=0}finally{i=n=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function y_(e,t){for(var o in e)o!=="default"&&!Object.prototype.hasOwnProperty.call(t,o)&&vl(t,e,o)}function gl(e){var t=typeof Symbol=="function"&&Symbol.iterator,o=t&&e[t],i=0;if(o)return o.call(e);if(e&&typeof e.length=="number")return{next:s(function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}},"next")};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Jh(e,t){var o=typeof Symbol=="function"&&e[Symbol.iterator];if(!o)return e;var i=o.call(e),r,n=[],a;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(c){a={error:c}}finally{try{r&&!r.done&&(o=i.return)&&o.call(i)}finally{if(a)throw a.error}}return n}function g_(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Jh(arguments[t]));return e}function v_(){for(var e=0,t=0,o=arguments.length;t<o;t++)e+=arguments[t].length;for(var i=Array(e),r=0,t=0;t<o;t++)for(var n=arguments[t],a=0,c=n.length;a<c;a++,r++)i[r]=n[a];return i}function P_(e,t,o){if(o||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function Ro(e){return this instanceof Ro?(this.v=e,this):new Ro(e)}function I_(e,t,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=o.apply(e,t||[]),r,n=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(P){i[P]&&(r[P]=function(m){return new Promise(function(I,x){n.push([P,m,I,x])>1||c(P,m)})})}function c(P,m){try{l(i[P](m))}catch(I){b(n[0][3],I)}}function l(P){P.value instanceof Ro?Promise.resolve(P.value.v).then(d,f):b(n[0][2],P)}function d(P){c("next",P)}function f(P){c("throw",P)}function b(P,m){P(m),n.shift(),n.length&&c(n[0][0],n[0][1])}}function b_(e){var t,o;return t={},i("next"),i("throw",function(r){throw r}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(r,n){t[r]=e[r]?function(a){return(o=!o)?{value:Ro(e[r](a)),done:!1}:n?n(a):a}:n}}function S_(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],o;return t?t.call(e):(e=typeof gl=="function"?gl(e):e[Symbol.iterator](),o={},i("next"),i("throw"),i("return"),o[Symbol.asyncIterator]=function(){return this},o);function i(n){o[n]=e[n]&&function(a){return new Promise(function(c,l){a=e[n](a),r(c,l,a.done,a.value)})}}function r(n,a,c,l){Promise.resolve(l).then(function(d){n({value:d,done:c})},a)}}function __(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function x_(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)&&vl(t,e,o);return uz(t,e),t}function T_(e){return e&&e.__esModule?e:{default:e}}function A_(e,t,o,i){if(o==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?i:o==="a"?i.call(e):i?i.value:t.get(e)}function w_(e,t,o,i,r){if(i==="m")throw new TypeError("Private method is not writable");if(i==="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 i==="a"?r.call(e,o):r?r.value=o:t.set(e,o),o}function E_(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 k_(e,t,o){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var i;if(o){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");i=t[Symbol.asyncDispose]}if(i===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");i=t[Symbol.dispose]}if(typeof i!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:i,async:o})}else o&&e.stack.push({async:!0});return t}function C_(e){function t(i){e.error=e.hasError?new dz(i,e.error,"An error was suppressed during disposal."):i,e.hasError=!0}s(t,"fail");function o(){for(;e.stack.length;){var i=e.stack.pop();try{var r=i.dispose&&i.dispose.call(i.value);if(i.async)return Promise.resolve(r).then(o,function(n){return t(n),o()})}catch(n){t(n)}}if(e.hasError)throw e.error}return s(o,"next"),o()}var Kh,yl,vl,uz,dz,pz,Ce=cC(()=>{Kh=s(function(e,t){return Kh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(o[r]=i[r])},Kh(e,t)},"extendStatics");s(l_,"__extends");yl=s(function(){return yl=Object.assign||s(function(t){for(var o,i=1,r=arguments.length;i<r;i++){o=arguments[i];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},"__assign"),yl.apply(this,arguments)},"__assign");s(u_,"__rest");s(d_,"__decorate");s(p_,"__param");s(az,"__esDecorate");s(sz,"__runInitializers");s(cz,"__propKey");s(lz,"__setFunctionName");s(m_,"__metadata");s(f_,"__awaiter");s(h_,"__generator");vl=Object.create?(function(e,t,o,i){i===void 0&&(i=o);var r=Object.getOwnPropertyDescriptor(t,o);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:s(function(){return t[o]},"get")}),Object.defineProperty(e,i,r)}):(function(e,t,o,i){i===void 0&&(i=o),e[i]=t[o]});s(y_,"__exportStar");s(gl,"__values");s(Jh,"__read");s(g_,"__spread");s(v_,"__spreadArrays");s(P_,"__spreadArray");s(Ro,"__await");s(I_,"__asyncGenerator");s(b_,"__asyncDelegator");s(S_,"__asyncValues");s(__,"__makeTemplateObject");uz=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t};s(x_,"__importStar");s(T_,"__importDefault");s(A_,"__classPrivateFieldGet");s(w_,"__classPrivateFieldSet");s(E_,"__classPrivateFieldIn");s(k_,"__addDisposableResource");dz=typeof SuppressedError=="function"?SuppressedError:function(e,t,o){var i=new Error(o);return i.name="SuppressedError",i.error=e,i.suppressed=t,i};s(C_,"__disposeResources");pz={__extends:l_,__assign:yl,__rest:u_,__decorate:d_,__param:p_,__metadata:m_,__awaiter:f_,__generator:h_,__createBinding:vl,__exportStar:y_,__values:gl,__read:Jh,__spread:g_,__spreadArrays:v_,__spreadArray:P_,__await:Ro,__asyncGenerator:I_,__asyncDelegator:b_,__asyncValues:S_,__makeTemplateObject:__,__importStar:x_,__importDefault:T_,__classPrivateFieldGet:A_,__classPrivateFieldSet:w_,__classPrivateFieldIn:E_,__addDisposableResource:k_,__disposeResources:C_}});var aa=R(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.RequestMethod=void 0;var D_;(function(e){e.GET="GET",e.PATCH="PATCH",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"})(D_||(Pl.RequestMethod=D_={}))});var R_=R(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});Il.BatchRequestContent=void 0;var Oo=(Ce(),Ae(ke)),Xh=aa(),mz=(function(){function e(t){if(this.requests=new Map,typeof t<"u"){var o=e.requestLimit;if(t.length>o){var i=new Error("Maximum requests limit exceeded, Max allowed number of requests are ".concat(o));throw i.name="Limit Exceeded Error",i}for(var r=0,n=t;r<n.length;r++){var a=n[r];this.addRequest(a)}}}return s(e,"BatchRequestContent"),e.validateDependencies=function(t){var o=s(function(a){for(var c=a.entries(),l=c.next();!l.done;){var d=l.value[1];if(d.dependsOn!==void 0&&d.dependsOn.length>0)return!1;l=c.next()}return!0},"isParallel"),i=s(function(a){var c=a.entries(),l=c.next(),d=l.value[1];if(d.dependsOn!==void 0&&d.dependsOn.length>0)return!1;var f=l;for(l=c.next();!l.done;){var b=l.value[1];if(b.dependsOn===void 0||b.dependsOn.length!==1||b.dependsOn[0]!==f.value[1].id)return!1;f=l,l=c.next()}return!0},"isSerial"),r=s(function(a){var c=a.entries(),l=c.next(),d=l.value[1],f;if(d.dependsOn===void 0||d.dependsOn.length===0)f=d.id;else if(d.dependsOn.length===1){var b=d.dependsOn[0];if(b!==d.id&&a.has(b))f=b;else return!1}else return!1;for(l=c.next();!l.done;){var P=l.value[1];if((P.dependsOn===void 0||P.dependsOn.length===0)&&f!==P.id||P.dependsOn!==void 0&&P.dependsOn.length!==0&&(P.dependsOn.length===1&&(P.id===f||P.dependsOn[0]!==f)||P.dependsOn.length>1))return!1;l=c.next()}return!0},"isSame");if(t.size===0){var n=new Error("Empty requests map, Please provide at least one request.");throw n.name="Empty Requests Error",n}return o(t)||i(t)||r(t)},e.getRequestData=function(t){return Oo.__awaiter(this,void 0,void 0,function(){var o,i,r,n;return Oo.__generator(this,function(a){switch(a.label){case 0:return o={url:""},i=new RegExp("^https?://"),o.url=i.test(t.url)?"/"+t.url.split(/.*?\/\/.*?\//)[1]:t.url,o.method=t.method,r={},t.headers.forEach(function(c,l){r[l]=c}),Object.keys(r).length&&(o.headers=r),t.method===Xh.RequestMethod.PATCH||t.method===Xh.RequestMethod.POST||t.method===Xh.RequestMethod.PUT?(n=o,[4,e.getRequestBody(t)]):[3,2];case 1:n.body=a.sent(),a.label=2;case 2:return[2,o]}})})},e.getRequestBody=function(t){return Oo.__awaiter(this,void 0,void 0,function(){var o,i,r,n,a,c,l,d;return Oo.__generator(this,function(f){switch(f.label){case 0:o=!1,f.label=1;case 1:return f.trys.push([1,3,,4]),r=t.clone(),[4,r.json()];case 2:return i=f.sent(),o=!0,[3,4];case 3:return n=f.sent(),[3,4];case 4:if(o)return[3,12];f.label=5;case 5:return f.trys.push([5,11,,12]),typeof Blob<"u"?[4,t.blob()]:[3,8];case 6:return a=f.sent(),c=new FileReader,[4,new Promise(function(b){c.addEventListener("load",function(){var P=c.result,m=new RegExp("^s*data:(.+?/.+?(;.+?=.+?)*)?(;base64)?,(.*)s*$"),I=m.exec(P);b(I[4])},!1),c.readAsDataURL(a)})];case 7:return i=f.sent(),[3,10];case 8:return typeof Buffer<"u"?[4,t.buffer()]:[3,10];case 9:l=f.sent(),i=l.toString("base64"),f.label=10;case 10:return o=!0,[3,12];case 11:return d=f.sent(),[3,12];case 12:return[2,i]}})})},e.prototype.addRequest=function(t){var o=e.requestLimit;if(t.id===""){var i=new Error("Id for a request is empty, Please provide an unique id");throw i.name="Empty Id For Request",i}if(this.requests.size===o){var i=new Error("Maximum requests limit exceeded, Max allowed number of requests are ".concat(o));throw i.name="Limit Exceeded Error",i}if(this.requests.has(t.id)){var i=new Error("Adding request with duplicate id ".concat(t.id,", Make the id of the requests unique"));throw i.name="Duplicate RequestId Error",i}return this.requests.set(t.id,t),t.id},e.prototype.removeRequest=function(t){for(var o=this.requests.delete(t),i=this.requests.entries(),r=i.next();!r.done;){var n=r.value[1].dependsOn;if(typeof n<"u"){var a=n.indexOf(t);a!==-1&&n.splice(a,1),n.length===0&&delete r.value[1].dependsOn}r=i.next()}return o},e.prototype.getContent=function(){return Oo.__awaiter(this,void 0,void 0,function(){var t,o,i,r,c,c,n,a,c;return Oo.__generator(this,function(l){switch(l.label){case 0:if(t=[],o={requests:t},i=this.requests.entries(),r=i.next(),r.done)throw c=new Error("No requests added yet, Please add at least one request."),c.name="Empty Payload",c;if(!e.validateDependencies(this.requests))throw c=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})();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
|
-
`).filter(a=>a),r=Math.min(...
|
|
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 (${
|
|
10
|
-
if (${
|
|
11
|
-
payload.issues = payload.issues.concat(${
|
|
5
|
+
3. Same - all individual requests that state a dependency in the dependsOn property, state the same dependency.`),c.name="Invalid Dependency",c;l.label=1;case 1:return r.done?[3,3]:(n=r.value[1],[4,e.getRequestData(n.request)]);case 2:if(a=l.sent(),a.body!==void 0&&(a.headers===void 0||a.headers["content-type"]===void 0))throw c=new Error("Content-type header is not mentioned for request #".concat(n.id,", For request having body, Content-type header should be mentioned")),c.name="Invalid Content-type header",c;return a.id=n.id,n.dependsOn!==void 0&&n.dependsOn.length>0&&(a.dependsOn=n.dependsOn),t.push(a),r=i.next(),[3,1];case 3:return o.requests=t,[2,o]}})})},e.prototype.addDependency=function(t,o){if(!this.requests.has(t)){var i=new Error("Dependent ".concat(t," does not exists, Please check the id"));throw i.name="Invalid Dependent",i}if(typeof o<"u"&&!this.requests.has(o)){var i=new Error("Dependency ".concat(o," does not exists, Please check the id"));throw i.name="Invalid Dependency",i}if(typeof o<"u"){var r=this.requests.get(t);if(r.dependsOn===void 0&&(r.dependsOn=[]),r.dependsOn.indexOf(o)!==-1){var i=new Error("Dependency ".concat(o," is already added for the request ").concat(t));throw i.name="Duplicate Dependency",i}r.dependsOn.push(o)}else{for(var n=this.requests.entries(),a=void 0,c=n.next();!c.done&&c.value[1].id!==t;)a=c,c=n.next();if(typeof a<"u"){var l=a.value[0];if(c.value[1].dependsOn===void 0&&(c.value[1].dependsOn=[]),c.value[1].dependsOn.indexOf(l)!==-1){var i=new Error("Dependency ".concat(l," is already added for the request ").concat(t));throw i.name="Duplicate Dependency",i}c.value[1].dependsOn.push(l)}else{var i=new Error("Can't add dependency ".concat(o,", There is only a dependent request in the batch"));throw i.name="Invalid Dependency Addition",i}}},e.prototype.removeDependency=function(t,o){var i=this.requests.get(t);if(typeof i>"u"||i.dependsOn===void 0||i.dependsOn.length===0)return!1;if(typeof o<"u"){var r=i.dependsOn.indexOf(o);return r===-1?!1:(i.dependsOn.splice(r,1),!0)}else return delete i.dependsOn,!0},e.requestLimit=20,e})();Il.BatchRequestContent=mz});var O_=R(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.BatchResponseContent=void 0;var fz=(Ce(),Ae(ke)),hz=(function(){function e(t){this.responses=new Map,this.update(t)}return s(e,"BatchResponseContent"),e.prototype.createResponseObject=function(t){var o=t.body,i={};if(i.status=t.status,t.statusText!==void 0&&(i.statusText=t.statusText),i.headers=t.headers,i.headers!==void 0&&i.headers["Content-Type"]!==void 0&&i.headers["Content-Type"].split(";")[0]==="application/json"){var r=JSON.stringify(o);return new Response(r,i)}return new Response(o,i)},e.prototype.update=function(t){this.nextLink=t["@odata.nextLink"];for(var o=t.responses,i=0,r=o.length;i<r;i++)this.responses.set(o[i].id,this.createResponseObject(o[i]))},e.prototype.getResponseById=function(t){return this.responses.get(t)},e.prototype.getResponses=function(){return this.responses},e.prototype.getResponsesIterator=function(){var t,o;return fz.__generator(this,function(i){switch(i.label){case 0:t=this.responses.entries(),o=t.next(),i.label=1;case 1:return o.done?[3,3]:[4,o.value];case 2:return i.sent(),o=t.next(),[3,1];case 3:return[2]}})},e})();bl.BatchResponseContent=hz});var Yh=R(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.GRAPH_URLS=pr.GRAPH_BASE_URL=pr.GRAPH_API_VERSION=void 0;pr.GRAPH_API_VERSION="v1.0";pr.GRAPH_BASE_URL="https://graph.microsoft.com/";pr.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 jt=R(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.GraphClientError=void 0;var yz=(Ce(),Ae(ke)),gz=(function(e){yz.__extends(t,e);function t(o){var i=e.call(this,o)||this;return Object.setPrototypeOf(i,t.prototype),i}return s(t,"GraphClientError"),t.setGraphClientError=function(o){var i;return o instanceof Error?i=o:(i=new t,i.customError=o),i},t})(Error);Sl.GraphClientError=gz});var _l=R(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.isCustomHost=vt.isGraphURL=vt.serializeContent=vt.urlJoin=vt.oDataQueryNames=void 0;var vz=Yh(),Pz=jt();vt.oDataQueryNames=["$select","$expand","$orderby","$filter","$top","$skip","$skipToken","$count"];var Iz=s(function(e){var t=s(function(n){return n.replace(/\/+$/,"")},"removePostSlash"),o=s(function(n){return n.replace(/^\/+/,"")},"removePreSlash"),i=s(function(n,a){return[t(n),o(a)].join("/")},"joiner"),r=Array.prototype.slice.call(e);return r.reduce(i)},"urlJoin");vt.urlJoin=Iz;var bz=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");vt.serializeContent=bz;var Sz=s(function(e){return $_(e)},"isGraphURL");vt.isGraphURL=Sz;var _z=s(function(e,t){return t.forEach(function(o){return xz(o)}),$_(e,t)},"isCustomHost");vt.isCustomHost=_z;var $_=s(function(e,t){if(t===void 0&&(t=vz.GRAPH_URLS),e=e.toLowerCase(),e.indexOf("https://")!==-1){e=e.replace("https://","");var o=e.indexOf(":"),i=e.indexOf("/"),r="";if(i!==-1)return o!==-1&&o<i?(r=e.substring(0,o),t.has(r)):(r=e.substring(0,i),t.has(r))}return!1},"isValidEndpoint"),xz=s(function(e){if(e.indexOf("/")!==-1)throw new Pz.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 mr=R(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.MiddlewareControl=void 0;var Tz=(function(){function e(t){t===void 0&&(t=[]),this.middlewareOptions=new Map;for(var o=0,i=t;o<i.length;o++){var r=i[o],n=r.constructor;this.middlewareOptions.set(n,r)}}return s(e,"MiddlewareControl"),e.prototype.getMiddlewareOptions=function(t){return this.middlewareOptions.get(t)},e.prototype.setMiddlewareOptions=function(t,o){this.middlewareOptions.set(t,o)},e})();xl.MiddlewareControl=Tz});var $o=R(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.cloneRequestWithNewUrl=Pt.appendRequestHeader=Pt.setRequestHeader=Pt.getRequestHeader=Pt.generateUUID=void 0;var N_=(Ce(),Ae(ke)),Az=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=Az;var wz=s(function(e,t,o){var i=null;if(typeof Request<"u"&&e instanceof Request)i=e.headers.get(o);else if(typeof t<"u"&&t.headers!==void 0)if(typeof Headers<"u"&&t.headers instanceof Headers)i=t.headers.get(o);else if(t.headers instanceof Array){for(var r=t.headers,n=0,a=r.length;n<a;n++)if(r[n][0]===o){i=r[n][1];break}}else t.headers[o]!==void 0&&(i=t.headers[o]);return i},"getRequestHeader");Pt.getRequestHeader=wz;var Ez=s(function(e,t,o,i){var r,n;if(typeof Request<"u"&&e instanceof Request)e.headers.set(o,i);else if(typeof t<"u")if(t.headers===void 0)t.headers=new Headers((r={},r[o]=i,r));else if(typeof Headers<"u"&&t.headers instanceof Headers)t.headers.set(o,i);else if(t.headers instanceof Array){for(var a=0,c=t.headers.length;a<c;a++){var l=t.headers[a];if(l[0]===o){l[1]=i;break}}a===c&&t.headers.push([o,i])}else Object.assign(t.headers,(n={},n[o]=i,n))},"setRequestHeader");Pt.setRequestHeader=Ez;var kz=s(function(e,t,o,i){var r,n;typeof Request<"u"&&e instanceof Request?e.headers.append(o,i):typeof t<"u"&&(t.headers===void 0?t.headers=new Headers((r={},r[o]=i,r)):typeof Headers<"u"&&t.headers instanceof Headers?t.headers.append(o,i):t.headers instanceof Array?t.headers.push([o,i]):t.headers===void 0?t.headers=(n={},n[o]=i,n):t.headers[o]===void 0?t.headers[o]=i:t.headers[o]+=", ".concat(i))},"appendRequestHeader");Pt.appendRequestHeader=kz;var Cz=s(function(e,t){return N_.__awaiter(void 0,void 0,void 0,function(){var o,i,r,n,a,c,l,d,f,b,P,m,I;return N_.__generator(this,function(x){switch(x.label){case 0:return t.headers.get("Content-Type")?[4,t.blob()]:[3,2];case 1:return i=x.sent(),[3,4];case 2:return[4,Promise.resolve(void 0)];case 3:i=x.sent(),x.label=4;case 4:return o=i,r=t.method,n=t.headers,a=t.referrer,c=t.referrerPolicy,l=t.mode,d=t.credentials,f=t.cache,b=t.redirect,P=t.integrity,m=t.keepalive,I=t.signal,[2,new Request(e,{method:r,headers:n,body:o,referrer:a,referrerPolicy:c,mode:l,credentials:d,cache:f,redirect:b,integrity:P,keepalive:m,signal:I})]}})})},"cloneRequestWithNewUrl");Pt.cloneRequestWithNewUrl=Cz});var Qh=R(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});Tl.AuthenticationHandlerOptions=void 0;var Dz=(function(){function e(t,o){this.authenticationProvider=t,this.authenticationProviderOptions=o}return s(e,"AuthenticationHandlerOptions"),e})();Tl.AuthenticationHandlerOptions=Dz});var Lo=R(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.TelemetryHandlerOptions=No.FeatureUsageFlag=void 0;var L_=mr(),ey;(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"})(ey||(No.FeatureUsageFlag=ey={}));var Rz=(function(){function e(){this.featureUsage=ey.NONE}return s(e,"TelemetryHandlerOptions"),e.updateFeatureUsageFlag=function(t,o){var i;t.middlewareControl instanceof L_.MiddlewareControl?i=t.middlewareControl.getMiddlewareOptions(e):t.middlewareControl=new L_.MiddlewareControl,typeof i>"u"&&(i=new e,t.middlewareControl.setMiddlewareOptions(e,i)),i.setFeatureUsage(o)},e.prototype.setFeatureUsage=function(t){this.featureUsage=this.featureUsage|t},e.prototype.getFeatureUsage=function(){return this.featureUsage.toString(16)},e})();No.TelemetryHandlerOptions=Rz});var wl=R(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.AuthenticationHandler=void 0;var z_=(Ce(),Ae(ke)),U_=_l(),Oz=mr(),$z=$o(),Nz=Qh(),M_=Lo(),Lz=(function(){function e(t){this.authenticationProvider=t}return s(e,"AuthenticationHandler"),e.prototype.execute=function(t){return z_.__awaiter(this,void 0,void 0,function(){var o,i,r,n,a,c;return z_.__generator(this,function(l){switch(l.label){case 0:return o=typeof t.request=="string"?t.request:t.request.url,(0,U_.isGraphURL)(o)||t.customHosts&&(0,U_.isCustomHost)(o,t.customHosts)?(i=void 0,t.middlewareControl instanceof Oz.MiddlewareControl&&(i=t.middlewareControl.getMiddlewareOptions(Nz.AuthenticationHandlerOptions)),r=void 0,n=void 0,i&&(r=i.authenticationProvider,n=i.authenticationProviderOptions),r||(r=this.authenticationProvider),[4,r.getAccessToken(n)]):[3,2];case 1:return a=l.sent(),c="Bearer ".concat(a),(0,$z.appendRequestHeader)(t.request,t.options,e.AUTHORIZATION_HEADER,c),M_.TelemetryHandlerOptions.updateFeatureUsageFlag(t,M_.FeatureUsageFlag.AUTHENTICATION_HANDLER_ENABLED),[3,3];case 2:t.options.headers&&delete t.options.headers[e.AUTHORIZATION_HEADER],l.label=3;case 3:return[4,this.nextMiddleware.execute(t)];case 4:return[2,l.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e.AUTHORIZATION_HEADER="Authorization",e})();Al.AuthenticationHandler=Lz});var kl=R(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});El.HTTPMessageHandler=void 0;var F_=(Ce(),Ae(ke)),zz=(function(){function e(){}return s(e,"HTTPMessageHandler"),e.prototype.execute=function(t){return F_.__awaiter(this,void 0,void 0,function(){var o;return F_.__generator(this,function(i){switch(i.label){case 0:return o=t,[4,fetch(t.request,t.options)];case 1:return o.response=i.sent(),[2]}})})},e})();El.HTTPMessageHandler=zz});var sa=R(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.RetryHandlerOptions=void 0;var Uz=(function(){function e(t,o,i){if(t===void 0&&(t=e.DEFAULT_DELAY),o===void 0&&(o=e.DEFAULT_MAX_RETRIES),i===void 0&&(i=e.defaultShouldRetry),t>e.MAX_DELAY&&o>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(o>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&&o<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(o<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(o,e.MAX_MAX_RETRIES),this.shouldRetry=i}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})();Cl.RetryHandlerOptions=Uz});var Rl=R(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});Dl.RetryHandler=void 0;var zo=(Ce(),Ae(ke)),ty=aa(),Mz=mr(),j_=$o(),q_=sa(),B_=Lo(),Fz=(function(){function e(t){t===void 0&&(t=new q_.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,o){var i=typeof t=="string"?o.method:t.method,r=i===ty.RequestMethod.PUT||i===ty.RequestMethod.PATCH||i===ty.RequestMethod.POST;if(r){var n=(0,j_.getRequestHeader)(t,o,"Content-Type")==="application/octet-stream";if(n)return!1}return!0},e.prototype.getDelay=function(t,o,i){var r=s(function(){return Number(Math.random().toFixed(3))},"getRandomness"),n=t.headers!==void 0?t.headers.get(e.RETRY_AFTER_HEADER):null,a;return n!==null?Number.isNaN(Number(n))?a=Math.round((new Date(n).getTime()-Date.now())/1e3):a=Number(n):a=o>=2?this.getExponentialBackOffTime(o)+i+r():i+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 zo.__awaiter(this,void 0,void 0,function(){var o;return zo.__generator(this,function(i){return o=t*1e3,[2,new Promise(function(r){return setTimeout(r,o)})]})})},e.prototype.getOptions=function(t){var o;return t.middlewareControl instanceof Mz.MiddlewareControl&&(o=t.middlewareControl.getMiddlewareOptions(this.options.constructor)),typeof o>"u"&&(o=Object.assign(new q_.RetryHandlerOptions,this.options)),o},e.prototype.executeWithRetry=function(t,o,i){return zo.__awaiter(this,void 0,void 0,function(){var r;return zo.__generator(this,function(n){switch(n.label){case 0:return[4,this.nextMiddleware.execute(t)];case 1:return n.sent(),o<i.maxRetries&&this.isRetry(t.response)&&this.isBuffered(t.request,t.options)&&i.shouldRetry(i.delay,o,t.request,t.options,t.response)?(++o,(0,j_.setRequestHeader)(t.request,t.options,e.RETRY_ATTEMPT_HEADER,o.toString()),r=this.getDelay(t.response,o,i.delay),[4,this.sleep(r)]):[3,4];case 2:return n.sent(),[4,this.executeWithRetry(t,o,i)];case 3:return[2,n.sent()];case 4:return[2]}})})},e.prototype.execute=function(t){return zo.__awaiter(this,void 0,void 0,function(){var o,i;return zo.__generator(this,function(r){switch(r.label){case 0:return o=0,i=this.getOptions(t),B_.TelemetryHandlerOptions.updateFeatureUsageFlag(t,B_.FeatureUsageFlag.RETRY_HANDLER_ENABLED),[4,this.executeWithRetry(t,o,i)];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})();Dl.RetryHandler=Fz});var ca=R(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.RedirectHandlerOptions=void 0;var jz=(function(){function e(t,o){if(t===void 0&&(t=e.DEFAULT_MAX_REDIRECTS),o===void 0&&(o=e.defaultShouldRedirect),t>e.MAX_MAX_REDIRECTS){var i=new Error("MaxRedirects should not be more than ".concat(e.MAX_MAX_REDIRECTS));throw i.name="MaxLimitExceeded",i}if(t<0){var i=new Error("MaxRedirects should not be negative");throw i.name="MinExpectationNotMet",i}this.maxRedirects=t,this.shouldRedirect=o}return s(e,"RedirectHandlerOptions"),e.DEFAULT_MAX_REDIRECTS=5,e.MAX_MAX_REDIRECTS=20,e.defaultShouldRedirect=function(){return!0},e})();Ol.RedirectHandlerOptions=jz});var Nl=R($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});$l.RedirectHandler=void 0;var Uo=(Ce(),Ae(ke)),qz=aa(),Bz=mr(),Hz=$o(),ry=ca(),H_=Lo(),Gz=(function(){function e(t){t===void 0&&(t=new ry.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,o){var i=/^[A-Za-z].+?:\/\/.+?(?=\/|$)/,r=i.exec(t),n,a;r!==null&&(n=r[0]);var c=i.exec(o);return c!==null&&(a=c[0]),typeof n<"u"&&typeof a<"u"&&n!==a},e.prototype.updateRequestUrl=function(t,o){return Uo.__awaiter(this,void 0,void 0,function(){var i,r;return Uo.__generator(this,function(n){switch(n.label){case 0:return i=o,typeof o.request!="string"?[3,1]:(r=t,[3,3]);case 1:return[4,(0,Hz.cloneRequestWithNewUrl)(t,o.request)];case 2:r=n.sent(),n.label=3;case 3:return i.request=r,[2]}})})},e.prototype.getOptions=function(t){var o;return t.middlewareControl instanceof Bz.MiddlewareControl&&(o=t.middlewareControl.getMiddlewareOptions(ry.RedirectHandlerOptions)),typeof o>"u"&&(o=Object.assign(new ry.RedirectHandlerOptions,this.options)),o},e.prototype.executeWithRedirect=function(t,o,i){return Uo.__awaiter(this,void 0,void 0,function(){var r,n;return Uo.__generator(this,function(a){switch(a.label){case 0:return[4,this.nextMiddleware.execute(t)];case 1:return a.sent(),r=t.response,o<i.maxRedirects&&this.isRedirect(r)&&this.hasLocationHeader(r)&&i.shouldRedirect(r)?(++o,r.status!==e.STATUS_CODE_SEE_OTHER?[3,2]:(t.options.method=qz.RequestMethod.GET,delete t.options.body,[3,4])):[3,6];case 2:return n=this.getLocationHeader(r),!this.isRelativeURL(n)&&this.shouldDropAuthorizationHeader(r.url,n)&&delete t.options.headers[e.AUTHORIZATION_HEADER],[4,this.updateRequestUrl(n,t)];case 3:a.sent(),a.label=4;case 4:return[4,this.executeWithRedirect(t,o,i)];case 5:return a.sent(),[3,7];case 6:return[2];case 7:return[2]}})})},e.prototype.execute=function(t){return Uo.__awaiter(this,void 0,void 0,function(){var o,i;return Uo.__generator(this,function(r){switch(r.label){case 0:return o=0,i=this.getOptions(t),t.options.redirect=e.MANUAL_REDIRECT,H_.TelemetryHandlerOptions.updateFeatureUsageFlag(t,H_.FeatureUsageFlag.REDIRECT_HANDLER_ENABLED),[4,this.executeWithRedirect(t,o,i)];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})();$l.RedirectHandler=Gz});var G_=R(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});Ll.PACKAGE_VERSION=void 0;Ll.PACKAGE_VERSION="3.0.7"});var Ml=R(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});Ul.TelemetryHandler=void 0;var Z_=(Ce(),Ae(ke)),V_=_l(),Zz=G_(),Vz=mr(),zl=$o(),Wz=Lo(),Kz=(function(){function e(){}return s(e,"TelemetryHandler"),e.prototype.execute=function(t){return Z_.__awaiter(this,void 0,void 0,function(){var o,i,r,n,a;return Z_.__generator(this,function(c){switch(c.label){case 0:return o=typeof t.request=="string"?t.request:t.request.url,(0,V_.isGraphURL)(o)||t.customHosts&&(0,V_.isCustomHost)(o,t.customHosts)?(i=(0,zl.getRequestHeader)(t.request,t.options,e.CLIENT_REQUEST_ID_HEADER),i||(i=(0,zl.generateUUID)(),(0,zl.setRequestHeader)(t.request,t.options,e.CLIENT_REQUEST_ID_HEADER,i)),r="".concat(e.PRODUCT_NAME,"/").concat(Zz.PACKAGE_VERSION),n=void 0,t.middlewareControl instanceof Vz.MiddlewareControl&&(n=t.middlewareControl.getMiddlewareOptions(Wz.TelemetryHandlerOptions)),n&&(a=n.getFeatureUsage(),r+=" (".concat(e.FEATURE_USAGE_STRING,"=").concat(a,")")),(0,zl.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,c.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})();Ul.TelemetryHandler=Kz});var W_=R(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});Fl.MiddlewareFactory=void 0;var Jz=wl(),Xz=kl(),Yz=ca(),Qz=sa(),eU=Nl(),tU=Rl(),rU=Ml(),oU=s(function(){return typeof process=="object"&&typeof require=="function"},"isNodeEnvironment"),iU=(function(){function e(){}return s(e,"MiddlewareFactory"),e.getDefaultMiddlewareChain=function(t){var o=[],i=new Jz.AuthenticationHandler(t),r=new tU.RetryHandler(new Qz.RetryHandlerOptions),n=new rU.TelemetryHandler,a=new Xz.HTTPMessageHandler;if(o.push(i),o.push(r),oU()){var c=new eU.RedirectHandler(new Yz.RedirectHandlerOptions);o.push(c)}return o.push(n),o.push(a),o},e})();Fl.MiddlewareFactory=iU});var ql=R(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});jl.ChaosStrategy=void 0;var K_;(function(e){e[e.MANUAL=0]="MANUAL",e[e.RANDOM=1]="RANDOM"})(K_||(jl.ChaosStrategy=K_={}))});var oy=R(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});Bl.ChaosHandlerOptions=void 0;var nU=ql(),aU=(function(){function e(t,o,i,r,n,a){if(t===void 0&&(t=nU.ChaosStrategy.RANDOM),o===void 0&&(o="Some error Happened"),this.chaosStrategy=t,this.statusCode=i,this.statusMessage=o,this.chaosPercentage=r!==void 0?r:10,this.responseBody=n,this.headers=a,this.chaosPercentage>100)throw new Error("Error Pecentage can not be more than 100")}return s(e,"ChaosHandlerOptions"),e})();Bl.ChaosHandlerOptions=aU});var J_=R(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.httpStatusCode=Mo.methodStatusCode=void 0;Mo.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]};Mo.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 Q_=R(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});Gl.ChaosHandler=void 0;var Hl=(Ce(),Ae(ke)),sU=mr(),cU=$o(),X_=J_(),iy=oy(),Y_=ql(),lU=(function(){function e(t,o){t===void 0&&(t=new iy.ChaosHandlerOptions),this.options=t,this.manualMap=o}return s(e,"ChaosHandler"),e.prototype.createResponseHeaders=function(t,o,i){var r=t.headers?new Headers(t.headers):new Headers;return r.append("Cache-Control","no-store"),r.append("request-id",o),r.append("client-request-id",o),r.append("x-ms-ags-diagnostic",""),r.append("Date",i),r.append("Strict-Transport-Security",""),t.statusCode===429&&r.append("retry-after","3"),r},e.prototype.createResponseBody=function(t,o,i){if(t.responseBody)return t.responseBody;var r;if(t.statusCode>=400){var n=X_.httpStatusCode[t.statusCode],a=t.statusMessage;r={error:{code:n,message:a,innerError:{"request-id":o,date:i}}}}else r={};return r},e.prototype.createResponse=function(t,o){var i=o.request,r=(0,cU.generateUUID)(),n=new Date,a=this.createResponseHeaders(t,r,n.toString()),c=this.createResponseBody(t,r,n.toString()),l={url:i,status:t.statusCode,statusText:t.statusMessage,headers:a};o.response=new Response(typeof c=="string"?c:JSON.stringify(c),l)},e.prototype.sendRequest=function(t,o){return Hl.__awaiter(this,void 0,void 0,function(){return Hl.__generator(this,function(i){switch(i.label){case 0:return this.setStatusCode(t,o.request,o.options.method),t.chaosStrategy===Y_.ChaosStrategy.MANUAL&&!this.nextMiddleware||Math.floor(Math.random()*100)<t.chaosPercentage?(this.createResponse(t,o),[3,3]):[3,1];case 1:return this.nextMiddleware?[4,this.nextMiddleware.execute(o)]:[3,3];case 2:i.sent(),i.label=3;case 3:return[2]}})})},e.prototype.getRandomStatusCode=function(t){var o=X_.methodStatusCode[t];return o[Math.floor(Math.random()*o.length)]},e.prototype.getRelativeURL=function(t){var o=/https?:\/\/graph\.microsoft\.com\/[^/]+(.+?)(\?|$)/,i;return o.exec(t)!==null&&(i=o.exec(t)[1]),i},e.prototype.setStatusCode=function(t,o,i){var r=this;if(t.chaosStrategy===Y_.ChaosStrategy.MANUAL){if(t.statusCode===void 0){var n=this.getRelativeURL(o);this.manualMap.get(n)!==void 0?this.manualMap.get(n).get(i)!==void 0&&(t.statusCode=this.manualMap.get(n).get(i)):this.manualMap.forEach(function(a,c){var l=new RegExp(c+"$");l.test(n)&&r.manualMap.get(c).get(i)!==void 0&&(t.statusCode=r.manualMap.get(c).get(i))})}}else t.statusCode=this.getRandomStatusCode(i)},e.prototype.getOptions=function(t){var o;return t.middlewareControl instanceof sU.MiddlewareControl&&(o=t.middlewareControl.getMiddlewareOptions(iy.ChaosHandlerOptions)),typeof o>"u"&&(o=Object.assign(new iy.ChaosHandlerOptions,this.options)),o},e.prototype.execute=function(t){return Hl.__awaiter(this,void 0,void 0,function(){var o;return Hl.__generator(this,function(i){switch(i.label){case 0:return o=this.getOptions(t),[4,this.sendRequest(o,t)];case 1:return[2,i.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e})();Gl.ChaosHandler=lU});var la=R(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});Zl.ResponseType=void 0;var ex;(function(e){e.ARRAYBUFFER="arraybuffer",e.BLOB="blob",e.DOCUMENT="document",e.JSON="json",e.RAW="raw",e.STREAM="stream",e.TEXT="text"})(ex||(Zl.ResponseType=ex={}))});var ay=R(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.GraphResponseHandler=Fo.DocumentType=void 0;var Vl=(Ce(),Ae(ke)),jr=la(),ny;(function(e){e.TEXT_HTML="text/html",e.TEXT_XML="text/xml",e.APPLICATION_XML="application/xml",e.APPLICATION_XHTML="application/xhtml+xml"})(ny||(Fo.DocumentType=ny={}));var Wl;(function(e){e.TEXT_PLAIN="text/plain",e.APPLICATION_JSON="application/json"})(Wl||(Wl={}));var Kl;(function(e){e.DOCUMENT="^(text\\/(html|xml))|(application\\/(xml|xhtml\\+xml))$",e.IMAGE="^image\\/.+"})(Kl||(Kl={}));var uU=(function(){function e(){}return s(e,"GraphResponseHandler"),e.parseDocumentResponse=function(t,o){return typeof DOMParser<"u"?new Promise(function(i,r){t.text().then(function(n){try{var a=new DOMParser,c=a.parseFromString(n,o);i(c)}catch(l){r(l)}})}):Promise.resolve(t.body)},e.convertResponse=function(t,o){return Vl.__awaiter(this,void 0,void 0,function(){var i,r,n,a;return Vl.__generator(this,function(c){switch(c.label){case 0:if(t.status===204)return[2,Promise.resolve()];switch(r=t.headers.get("Content-type"),n=o,n){case jr.ResponseType.ARRAYBUFFER:return[3,1];case jr.ResponseType.BLOB:return[3,3];case jr.ResponseType.DOCUMENT:return[3,5];case jr.ResponseType.JSON:return[3,7];case jr.ResponseType.STREAM:return[3,9];case jr.ResponseType.TEXT:return[3,11]}return[3,13];case 1:return[4,t.arrayBuffer()];case 2:return i=c.sent(),[3,24];case 3:return[4,t.blob()];case 4:return i=c.sent(),[3,24];case 5:return[4,e.parseDocumentResponse(t,ny.TEXT_XML)];case 6:return i=c.sent(),[3,24];case 7:return[4,t.json()];case 8:return i=c.sent(),[3,24];case 9:return[4,Promise.resolve(t.body)];case 10:return i=c.sent(),[3,24];case 11:return[4,t.text()];case 12:return i=c.sent(),[3,24];case 13:return r===null?[3,22]:(a=r.split(";")[0],new RegExp(Kl.DOCUMENT).test(a)?[4,e.parseDocumentResponse(t,a)]:[3,15]);case 14:return i=c.sent(),[3,21];case 15:return new RegExp(Kl.IMAGE).test(a)?(i=t.blob(),[3,21]):[3,16];case 16:return a!==Wl.TEXT_PLAIN?[3,18]:[4,t.text()];case 17:return i=c.sent(),[3,21];case 18:return a!==Wl.APPLICATION_JSON?[3,20]:[4,t.json()];case 19:return i=c.sent(),[3,21];case 20:i=Promise.resolve(t.body),c.label=21;case 21:return[3,23];case 22:i=Promise.resolve(t.body),c.label=23;case 23:return[3,24];case 24:return[2,i]}})})},e.getResponse=function(t,o,i){return Vl.__awaiter(this,void 0,void 0,function(){var r;return Vl.__generator(this,function(n){switch(n.label){case 0:return o!==jr.ResponseType.RAW?[3,1]:[2,Promise.resolve(t)];case 1:return[4,e.convertResponse(t,o)];case 2:if(r=n.sent(),t.ok)if(typeof i=="function")i(null,r);else return[2,r];else throw r;n.label=3;case 3:return[2]}})})},e})();Fo.GraphResponseHandler=uU});var sy=R(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.Range=void 0;var dU=(function(){function e(t,o){t===void 0&&(t=-1),o===void 0&&(o=-1),this.minValue=t,this.maxValue=o}return s(e,"Range"),e})();Jl.Range=dU});var cy=R(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});Xl.UploadResult=void 0;var pU=(function(){function e(t,o){this._location=o,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,o){return new e(t,o.get("location"))},e})();Xl.UploadResult=pU});var uy=R(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});Ql.LargeFileUploadTask=void 0;var st=(Ce(),Ae(ke)),ly=jt(),mU=ay(),tx=la(),Yl=sy(),fU=cy(),hU=(function(){function e(t,o,i,r){if(r===void 0&&(r={}),this.DEFAULT_FILE_SIZE=5*1024*1024,this.client=t,o.sliceFile)this.file=o;else throw new ly.GraphClientError("Please pass the FileUpload object, StreamUpload object or any custom implementation of the FileObject interface");this.file=o,r.rangeSize||(r.rangeSize=this.DEFAULT_FILE_SIZE),this.options=r,this.uploadSession=i,this.nextRange=new Yl.Range(0,this.options.rangeSize-1)}return s(e,"LargeFileUploadTask"),e.createUploadSession=function(t,o,i,r){return r===void 0&&(r={}),st.__awaiter(this,void 0,void 0,function(){var n,a;return st.__generator(this,function(c){switch(c.label){case 0:return[4,t.api(o).headers(r).post(i)];case 1:return n=c.sent(),a={url:n.uploadUrl,expiry:new Date(n.expirationDateTime),isCancelled:!1},[2,a]}})})},e.prototype.parseRange=function(t){var o=t[0];if(typeof o>"u"||o==="")return new Yl.Range;var i=o.split("-"),r=parseInt(i[0],10),n=parseInt(i[1],10);return Number.isNaN(n)&&(n=this.file.size-1),new Yl.Range(r,n)},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,o=t+this.options.rangeSize-1;return o>=this.file.size&&(o=this.file.size-1),new Yl.Range(t,o)},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 ly.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 st.__awaiter(this,void 0,void 0,function(){var t,o,i,r,n,a,c;return st.__generator(this,function(l){switch(l.label){case 0:t=this.options&&this.options.uploadEventHandlers,l.label=1;case 1:if(this.uploadSession.isCancelled)return[3,5];if(o=this.getNextRange(),o.maxValue===-1)throw i=new Error("Task with which you are trying to upload is already completed, Please check for your uploaded file"),i.name="Invalid Session",i;return[4,this.file.sliceFile(o)];case 2:return r=l.sent(),[4,this.uploadSliceGetRawResponse(r,o,this.file.size)];case 3:if(n=l.sent(),!n)throw new ly.GraphClientError("Something went wrong! Large file upload slice response is null.");return[4,mU.GraphResponseHandler.getResponse(n)];case 4:return a=l.sent(),n.status===201||n.status===200&&a.id?(this.reportProgress(t,o),[2,fU.UploadResult.CreateUploadResult(a,n.headers)]):(c={expirationDateTime:a.expirationDateTime||a.ExpirationDateTime,nextExpectedRanges:a.NextExpectedRanges||a.nextExpectedRanges},this.updateTaskStatus(c),this.reportProgress(t,o),[3,1]);case 5:return[2]}})})},e.prototype.reportProgress=function(t,o){t&&t.progress&&t.progress(o,t.extraCallbackParam)},e.prototype.uploadSlice=function(t,o,i){return st.__awaiter(this,void 0,void 0,function(){return st.__generator(this,function(r){switch(r.label){case 0:return[4,this.client.api(this.uploadSession.url).headers({"Content-Length":"".concat(o.maxValue-o.minValue+1),"Content-Range":"bytes ".concat(o.minValue,"-").concat(o.maxValue,"/").concat(i),"Content-Type":"application/octet-stream"}).put(t)];case 1:return[2,r.sent()]}})})},e.prototype.uploadSliceGetRawResponse=function(t,o,i){return st.__awaiter(this,void 0,void 0,function(){return st.__generator(this,function(r){switch(r.label){case 0:return[4,this.client.api(this.uploadSession.url).headers({"Content-Length":"".concat(o.maxValue-o.minValue+1),"Content-Range":"bytes ".concat(o.minValue,"-").concat(o.maxValue,"/").concat(i),"Content-Type":"application/octet-stream"}).responseType(tx.ResponseType.RAW).put(t)];case 1:return[2,r.sent()]}})})},e.prototype.cancel=function(){return st.__awaiter(this,void 0,void 0,function(){var t;return st.__generator(this,function(o){switch(o.label){case 0:return[4,this.client.api(this.uploadSession.url).responseType(tx.ResponseType.RAW).delete()];case 1:return t=o.sent(),t.status===204&&(this.uploadSession.isCancelled=!0),[2,t]}})})},e.prototype.getStatus=function(){return st.__awaiter(this,void 0,void 0,function(){var t;return st.__generator(this,function(o){switch(o.label){case 0:return[4,this.client.api(this.uploadSession.url).get()];case 1:return t=o.sent(),this.updateTaskStatus(t),[2,t]}})})},e.prototype.resume=function(){return st.__awaiter(this,void 0,void 0,function(){return st.__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})();Ql.LargeFileUploadTask=hU});var dy=R(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.FileUpload=void 0;var yU=jt(),gU=(function(){function e(t,o,i){if(this.content=t,this.name=o,this.size=i,!t||!o||!i)throw new yU.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})();eu.FileUpload=gU});var py=R(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.getValidRangeSize=void 0;var vU=5*1024*1024,PU=s(function(e){return e>320*1024&&(e=Math.floor(e/(320*1024))*320*1024),e},"roundTo320KB"),IU=s(function(e){e===void 0&&(e=vU);var t=60*1024*1024;return e>t&&(e=t),PU(e)},"getValidRangeSize");tu.getValidRangeSize=IU});var ox=R(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.OneDriveLargeFileUploadTask=void 0;var qt=(Ce(),Ae(ke)),rx=jt(),bU=dy(),SU=uy(),_U=py(),xU=(function(e){qt.__extends(t,e);function t(o,i,r,n){return e.call(this,o,i,r,n)||this}return s(t,"OneDriveLargeFileUploadTask"),t.constructCreateSessionUrl=function(o,i){return i===void 0&&(i=t.DEFAULT_UPLOAD_PATH),o=o.trim(),i=i.trim(),i===""&&(i="/"),i[0]!=="/"&&(i="/".concat(i)),i[i.length-1]!=="/"&&(i="".concat(i,"/")),"/me/drive/root:".concat(i.split("/").map(function(r){return encodeURIComponent(r)}).join("/")).concat(encodeURIComponent(o),":/createUploadSession")},t.getFileInfo=function(o,i){var r,n;if(typeof Blob<"u"&&o instanceof Blob)r=new File([o],i),n=r.size;else if(typeof File<"u"&&o instanceof File)r=o,n=r.size;else if(typeof Uint8Array<"u"&&o instanceof Uint8Array){var a=o;n=a.byteLength,r=a.buffer.slice(a.byteOffset,a.byteOffset+a.byteLength)}return{content:r,size:n}},t.create=function(o,i,r){return qt.__awaiter(this,void 0,void 0,function(){var n,a,c;return qt.__generator(this,function(l){if(!o||!i||!r)throw new rx.GraphClientError("Please provide the Graph client instance, file object and OneDriveLargeFileUploadOptions value");return n=r.fileName,a=t.getFileInfo(i,n),c=new bU.FileUpload(a.content,n,a.size),[2,this.createTaskWithFileObject(o,c,r)]})})},t.createTaskWithFileObject=function(o,i,r){return qt.__awaiter(this,void 0,void 0,function(){var n,a,c,l;return qt.__generator(this,function(d){switch(d.label){case 0:if(!o||!i||!r)throw new rx.GraphClientError("Please provide the Graph client instance, FileObject interface implementation and OneDriveLargeFileUploadOptions value");return n=r.uploadSessionURL?r.uploadSessionURL:t.constructCreateSessionUrl(r.fileName,r.path),a={fileName:r.fileName,fileDescription:r.fileDescription,conflictBehavior:r.conflictBehavior},[4,t.createUploadSession(o,n,a)];case 1:return c=d.sent(),l=(0,_U.getValidRangeSize)(r.rangeSize),[2,new t(o,i,c,{rangeSize:l,uploadEventHandlers:r.uploadEventHandlers})]}})})},t.createUploadSession=function(o,i,r){return qt.__awaiter(this,void 0,void 0,function(){var n;return qt.__generator(this,function(a){return n={item:{"@microsoft.graph.conflictBehavior":r?.conflictBehavior||"rename",name:r?.fileName,description:r?.fileDescription}},[2,e.createUploadSession.call(this,o,i,n)]})})},t.prototype.commit=function(o,i){return i===void 0&&(i="rename"),qt.__awaiter(this,void 0,void 0,function(){var r;return qt.__generator(this,function(n){switch(n.label){case 0:return r={name:this.file.name,"@microsoft.graph.conflictBehavior":i,"@microsoft.graph.sourceUrl":this.uploadSession.url},[4,this.client.api(o).put(r)];case 1:return[2,n.sent()]}})})},t.DEFAULT_UPLOAD_PATH="/",t})(SU.LargeFileUploadTask);ru.OneDriveLargeFileUploadTask=xU});var nx=R(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});ou.StreamUpload=void 0;var ix=(Ce(),Ae(ke)),ua=jt(),TU=(function(){function e(t,o,i){if(this.content=t,this.name=o,this.size=i,!t||!o||!i)throw new ua.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 ix.__awaiter(this,void 0,void 0,function(){var o,i,r,n,a,c,l;return ix.__generator(this,function(d){switch(d.label){case 0:if(o=t.maxValue-t.minValue+1,i=[],this.previousSlice){if(t.minValue<this.previousSlice.range.minValue)throw new ua.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,n=this.previousSlice.range.maxValue,t.minValue===r&&t.maxValue===n)return[2,this.previousSlice.fileSlice];if(t.maxValue===n)return[2,this.previousSlice.fileSlice.slice(t.minValue,t.maxValue+1)];i.push(this.previousSlice.fileSlice.slice(t.minValue,n+1)),o=t.maxValue-n}}return this.content&&this.content.readable?this.content.readableLength>=o?(i.push(this.content.read(o)),[3,3]):[3,1]:[3,4];case 1:return c=(a=i).push,[4,this.readNBytesFromStream(o)];case 2:c.apply(a,[d.sent()]),d.label=3;case 3:return[3,5];case 4:throw new ua.GraphClientError("Stream is not readable.");case 5:return l=Buffer.concat(i),this.previousSlice={fileSlice:l,range:t},[2,l]}})})},e.prototype.readNBytesFromStream=function(t){var o=this;return new Promise(function(i,r){var n=[],a=t,c=0;o.content.on("end",function(){if(a>0)return r(new ua.GraphClientError("Stream ended before reading required range size"))}),o.content.on("readable",function(){for(var l;c<t&&(l=o.content.read(a))!==null;)c+=l.length,n.push(l),a>0&&(a=t-c);if(c===t)return i(Buffer.concat(n));if(!o.content||!o.content.readable)return r(new ua.GraphClientError("Error encountered while reading the stream during the upload"))})})},e})();ou.StreamUpload=TU});var ax=R(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});iu.PageIterator=void 0;var jo=(Ce(),Ae(ke)),AU=(function(){function e(t,o,i,r){this.client=t,this.collection=o.value,this.nextLink=o["@odata.nextLink"],this.deltaLink=o["@odata.deltaLink"],this.callback=i,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 o=this.collection[this.cursor];t=this.callback(o),this.cursor++}return t},e.prototype.fetchAndUpdateNextPageData=function(){return jo.__awaiter(this,void 0,void 0,function(){var t,o;return jo.__generator(this,function(i){switch(i.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 o=i.sent(),this.collection=o.value,this.cursor=0,this.nextLink=o["@odata.nextLink"],this.deltaLink=o["@odata.deltaLink"],[2]}})})},e.prototype.getDeltaLink=function(){return this.deltaLink},e.prototype.iterate=function(){return jo.__awaiter(this,void 0,void 0,function(){var t;return jo.__generator(this,function(o){switch(o.label){case 0:t=this.iterationHelper(),o.label=1;case 1:return t?this.nextLink===void 0?[3,3]:[4,this.fetchAndUpdateNextPageData()]:[3,5];case 2:return o.sent(),t=this.iterationHelper(),[3,4];case 3:t=!1,o.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 jo.__awaiter(this,void 0,void 0,function(){return jo.__generator(this,function(t){return[2,this.iterate()]})})},e.prototype.isComplete=function(){return this.complete},e})();iu.PageIterator=AU});var my=R(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});au.CustomAuthenticationProvider=void 0;var nu=(Ce(),Ae(ke)),sx=jt(),wU=(function(){function e(t){this.provider=t}return s(e,"CustomAuthenticationProvider"),e.prototype.getAccessToken=function(){return nu.__awaiter(this,void 0,void 0,function(){var t=this;return nu.__generator(this,function(o){return[2,new Promise(function(i,r){t.provider(function(n,a){return nu.__awaiter(t,void 0,void 0,function(){var c,l;return nu.__generator(this,function(d){switch(d.label){case 0:return a?(i(a),[3,3]):[3,1];case 1:return n||(c="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",n=new sx.GraphClientError(c)),[4,sx.GraphClientError.setGraphClientError(n)];case 2:l=d.sent(),r(l),d.label=3;case 3:return[2]}})})})})]})})},e})();au.CustomAuthenticationProvider=wU});var fy=R(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});su.GraphError=void 0;var EU=(Ce(),Ae(ke)),kU=(function(e){EU.__extends(t,e);function t(o,i,r){o===void 0&&(o=-1);var n=e.call(this,i||r&&r.message)||this;return Object.setPrototypeOf(n,t.prototype),n.statusCode=o,n.code=null,n.requestId=null,n.date=new Date,n.body=null,n.stack=r?r.stack:n.stack,n}return s(t,"GraphError"),t})(Error);su.GraphError=kU});var lx=R(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.GraphErrorHandler=void 0;var cx=(Ce(),Ae(ke)),hy=fy(),CU=(function(){function e(){}return s(e,"GraphErrorHandler"),e.constructError=function(t,o,i){var r=new hy.GraphError(o,"",t);return t.name!==void 0&&(r.code=t.name),r.body=t.toString(),r.date=new Date,r.headers=i?.headers,r},e.constructErrorFromResponse=function(t,o,i){var r=t.error,n=new hy.GraphError(o,r.message);return n.code=r.code,r.innerError!==void 0&&(n.requestId=r.innerError["request-id"],n.date=new Date(r.innerError.date)),n.body=JSON.stringify(r),n.headers=i?.headers,n},e.getError=function(t,o,i,r){return t===void 0&&(t=null),o===void 0&&(o=-1),cx.__awaiter(this,void 0,void 0,function(){var n;return cx.__generator(this,function(a){if(t&&t.error?n=e.constructErrorFromResponse(t,o,r):t instanceof Error?n=e.constructError(t,o,r):(n=new hy.GraphError(o),n.body=t),typeof i=="function")i(n,null);else return[2,n];return[2]})})},e})();cu.GraphErrorHandler=CU});var yy=R(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.GraphRequest=void 0;var _e=(Ce(),Ae(ke)),DU=jt(),RU=lx(),da=_l(),OU=ay(),$U=mr(),qr=aa(),NU=la(),LU=(function(){function e(t,o,i){var r=this;this.parsePath=function(n){if(n.indexOf("https://")!==-1){n=n.replace("https://","");var a=n.indexOf("/");a!==-1&&(r.urlComponents.host="https://"+n.substring(0,a),n=n.substring(a+1,n.length));var c=n.indexOf("/");c!==-1&&(r.urlComponents.version=n.substring(0,c),n=n.substring(c+1,n.length))}n.charAt(0)==="/"&&(n=n.substr(1));var l=n.indexOf("?");if(l===-1)r.urlComponents.path=n;else{r.urlComponents.path=n.substr(0,l);for(var d=n.substring(l+1,n.length).split("&"),f=0,b=d;f<b.length;f++){var P=b[f];r.parseQueryParameter(P)}}},this.httpClient=t,this.config=o,this.urlComponents={host:this.config.baseUrl,version:this.config.defaultVersion,oDataQueryParams:{},otherURLQueryParams:{},otherURLQueryOptions:[]},this._headers={},this._options={},this._middlewareOptions=[],this.parsePath(i)}return s(e,"GraphRequest"),e.prototype.addCsvQueryParameter=function(t,o,i){this.urlComponents.oDataQueryParams[t]=this.urlComponents.oDataQueryParams[t]?this.urlComponents.oDataQueryParams[t]+",":"";var r=[];i.length>1&&typeof o=="string"?r=Array.prototype.slice.call(i):typeof o=="string"?r.push(o):r=r.concat(o),this.urlComponents.oDataQueryParams[t]+=r.join(",")},e.prototype.buildFullUrl=function(){var t=(0,da.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,o=[];if(Object.keys(t.oDataQueryParams).length!==0)for(var i in t.oDataQueryParams)Object.prototype.hasOwnProperty.call(t.oDataQueryParams,i)&&o.push(i+"="+t.oDataQueryParams[i]);if(Object.keys(t.otherURLQueryParams).length!==0)for(var i in t.otherURLQueryParams)Object.prototype.hasOwnProperty.call(t.otherURLQueryParams,i)&&o.push(i+"="+t.otherURLQueryParams[i]);if(t.otherURLQueryOptions.length!==0)for(var r=0,n=t.otherURLQueryOptions;r<n.length;r++){var a=n[r];o.push(a)}return o.length>0?"?"+o.join("&"):""},e.prototype.parseQueryParameter=function(t){if(typeof t=="string")if(t.charAt(0)==="?"&&(t=t.substring(1)),t.indexOf("&")!==-1)for(var o=t.split("&"),i=0,r=o;i<r.length;i++){var n=r[i];this.parseQueryParamenterString(n)}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 o=t.indexOf("="),i=t.substring(0,o),r=t.substring(o+1);this.setURLComponentsQueryParamater(i,r)}else this.urlComponents.otherURLQueryOptions.push(t)},e.prototype.setURLComponentsQueryParamater=function(t,o){if(da.oDataQueryNames.indexOf(t)!==-1){var i=this.urlComponents.oDataQueryParams[t],r=i&&(t==="$expand"||t==="$select"||t==="$orderby");this.urlComponents.oDataQueryParams[t]=r?i+","+o:o}else this.urlComponents.otherURLQueryParams[t]=o},e.prototype.isValidQueryKeyValuePair=function(t){var o=t.indexOf("=");if(o===-1)return!1;var i=t.indexOf("(");return!(i!==-1&&t.indexOf("(")<o)},e.prototype.updateRequestOptions=function(t){var o=_e.__assign({},t.headers);if(this.config.fetchOptions!==void 0){var i=_e.__assign({},this.config.fetchOptions);Object.assign(t,i),typeof this.config.fetchOptions.headers!==void 0&&(t.headers=_e.__assign({},this.config.fetchOptions.headers))}Object.assign(t,this._options),t.headers!==void 0&&Object.assign(o,t.headers),Object.assign(o,this._headers),t.headers=o},e.prototype.send=function(t,o,i){var r;return _e.__awaiter(this,void 0,void 0,function(){var n,a,c,l,d,f,b,P;return _e.__generator(this,function(m){switch(m.label){case 0:a=new $U.MiddlewareControl(this._middlewareOptions),this.updateRequestOptions(o),c=(r=this.config)===null||r===void 0?void 0:r.customHosts,m.label=1;case 1:return m.trys.push([1,4,,6]),[4,this.httpClient.sendRequest({request:t,options:o,middlewareControl:a,customHosts:c})];case 2:return l=m.sent(),n=l.response,[4,OU.GraphResponseHandler.getResponse(n,this._responseType,i)];case 3:return d=m.sent(),[2,d];case 4:if(f=m.sent(),f instanceof DU.GraphClientError)throw f;return b=void 0,n&&(b=n.status),[4,RU.GraphErrorHandler.getError(f,b,i,n)];case 5:throw P=m.sent(),P;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),o=0,i=t;o<i.length;o++){var r=i[o];if(r.toLowerCase()==="content-type")return}this.header("Content-Type","application/json")},e.prototype.header=function(t,o){return this._headers[t]=o,this},e.prototype.headers=function(t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(this._headers[o]=t[o]);return this},e.prototype.option=function(t,o){return this._options[t]=o,this},e.prototype.options=function(t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(this._options[o]=t[o]);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 _e.__awaiter(this,void 0,void 0,function(){var o,i,r;return _e.__generator(this,function(n){switch(n.label){case 0:return o=this.buildFullUrl(),i={method:qr.RequestMethod.GET},[4,this.send(o,i,t)];case 1:return r=n.sent(),[2,r]}})})},e.prototype.post=function(t,o){return _e.__awaiter(this,void 0,void 0,function(){var i,r,n;return _e.__generator(this,function(a){switch(a.label){case 0:return i=this.buildFullUrl(),r={method:qr.RequestMethod.POST,body:(0,da.serializeContent)(t)},n=t&&t.constructor&&t.constructor.name,n==="FormData"?r.headers={}:(this.setHeaderContentType(),r.headers=this._headers),[4,this.send(i,r,o)];case 1:return[2,a.sent()]}})})},e.prototype.create=function(t,o){return _e.__awaiter(this,void 0,void 0,function(){return _e.__generator(this,function(i){switch(i.label){case 0:return[4,this.post(t,o)];case 1:return[2,i.sent()]}})})},e.prototype.put=function(t,o){return _e.__awaiter(this,void 0,void 0,function(){var i,r;return _e.__generator(this,function(n){switch(n.label){case 0:return i=this.buildFullUrl(),this.setHeaderContentType(),r={method:qr.RequestMethod.PUT,body:(0,da.serializeContent)(t)},[4,this.send(i,r,o)];case 1:return[2,n.sent()]}})})},e.prototype.patch=function(t,o){return _e.__awaiter(this,void 0,void 0,function(){var i,r;return _e.__generator(this,function(n){switch(n.label){case 0:return i=this.buildFullUrl(),this.setHeaderContentType(),r={method:qr.RequestMethod.PATCH,body:(0,da.serializeContent)(t)},[4,this.send(i,r,o)];case 1:return[2,n.sent()]}})})},e.prototype.update=function(t,o){return _e.__awaiter(this,void 0,void 0,function(){return _e.__generator(this,function(i){switch(i.label){case 0:return[4,this.patch(t,o)];case 1:return[2,i.sent()]}})})},e.prototype.delete=function(t){return _e.__awaiter(this,void 0,void 0,function(){var o,i;return _e.__generator(this,function(r){switch(r.label){case 0:return o=this.buildFullUrl(),i={method:qr.RequestMethod.DELETE},[4,this.send(o,i,t)];case 1:return[2,r.sent()]}})})},e.prototype.del=function(t){return _e.__awaiter(this,void 0,void 0,function(){return _e.__generator(this,function(o){switch(o.label){case 0:return[4,this.delete(t)];case 1:return[2,o.sent()]}})})},e.prototype.getStream=function(t){return _e.__awaiter(this,void 0,void 0,function(){var o,i;return _e.__generator(this,function(r){switch(r.label){case 0:return o=this.buildFullUrl(),i={method:qr.RequestMethod.GET},this.responseType(NU.ResponseType.STREAM),[4,this.send(o,i,t)];case 1:return[2,r.sent()]}})})},e.prototype.putStream=function(t,o){return _e.__awaiter(this,void 0,void 0,function(){var i,r;return _e.__generator(this,function(n){switch(n.label){case 0:return i=this.buildFullUrl(),r={method:qr.RequestMethod.PUT,headers:{"Content-Type":"application/octet-stream"},body:t},[4,this.send(i,r,o)];case 1:return[2,n.sent()]}})})},e})();lu.GraphRequest=LU});var gy=R(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.HTTPClient=void 0;var ux=(Ce(),Ae(ke)),zU=(function(){function e(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];if(!t||!t.length){var i=new Error;throw i.name="InvalidMiddlewareChain",i.message="Please provide a default middleware chain or custom middleware chain",i}this.setMiddleware.apply(this,t)}return s(e,"HTTPClient"),e.prototype.setMiddleware=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];t.length>1?this.parseMiddleWareArray(t):this.middleware=t[0]},e.prototype.parseMiddleWareArray=function(t){t.forEach(function(o,i){i<t.length-1&&o.setNext(t[i+1])}),this.middleware=t[0]},e.prototype.sendRequest=function(t){return ux.__awaiter(this,void 0,void 0,function(){var o;return ux.__generator(this,function(i){switch(i.label){case 0:if(typeof t.request=="string"&&t.options===void 0)throw o=new Error,o.name="InvalidRequestOptions",o.message="Unable to execute the middleware, Please provide valid options for a request",o;return[4,this.middleware.execute(t)];case 1:return i.sent(),[2,t]}})})},e})();uu.HTTPClient=zU});var px=R(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.HTTPClientFactory=void 0;var UU=(Ce(),Ae(ke)),dx=gy(),MU=wl(),FU=kl(),jU=ca(),qU=sa(),BU=Nl(),HU=Rl(),GU=Ml(),ZU=s(function(){return typeof process=="object"&&typeof require=="function"},"isNodeEnvironment"),VU=(function(){function e(){}return s(e,"HTTPClientFactory"),e.createWithAuthenticationProvider=function(t){var o=new MU.AuthenticationHandler(t),i=new HU.RetryHandler(new qU.RetryHandlerOptions),r=new GU.TelemetryHandler,n=new FU.HTTPMessageHandler;if(o.setNext(i),ZU()){var a=new BU.RedirectHandler(new jU.RedirectHandlerOptions);i.setNext(a),a.setNext(r)}else i.setNext(r);return r.setNext(n),e.createWithMiddleware(o)},e.createWithMiddleware=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return new(dx.HTTPClient.bind.apply(dx.HTTPClient,UU.__spreadArray([void 0],t,!1)))},e})();du.HTTPClientFactory=VU});var mx=R(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});pu.validatePolyFilling=void 0;var WU=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");pu.validatePolyFilling=WU});var yx=R(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.Client=void 0;var KU=(Ce(),Ae(ke)),fx=Yh(),JU=my(),XU=yy(),hx=gy(),YU=px(),QU=mx(),e0=(function(){function e(t){this.config={baseUrl:fx.GRAPH_BASE_URL,debugLogging:!1,defaultVersion:fx.GRAPH_API_VERSION},(0,QU.validatePolyFilling)();for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(this.config[o]=t[o]);var i;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)i=YU.HTTPClientFactory.createWithAuthenticationProvider(t.authProvider);else if(t.middleware!==void 0)i=new(hx.HTTPClient.bind.apply(hx.HTTPClient,KU.__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=i}return s(e,"Client"),e.init=function(t){var o={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(o[i]=i==="authProvider"?new JU.CustomAuthenticationProvider(t[i]):t[i]);return e.initWithMiddleware(o)},e.initWithMiddleware=function(t){return new e(t)},e.prototype.api=function(t){return new XU.GraphRequest(this.httpClient,this.config,t)},e})();mu.Client=e0});var be=R(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.ResponseType=G.GraphRequest=G.GraphClientError=G.GraphError=G.CustomAuthenticationProvider=G.Client=G.PageIterator=G.Range=G.UploadResult=G.FileUpload=G.StreamUpload=G.getValidRangeSize=G.OneDriveLargeFileUploadTask=G.LargeFileUploadTask=G.ChaosHandler=G.ChaosStrategy=G.ChaosHandlerOptions=G.TelemetryHandlerOptions=G.FeatureUsageFlag=G.RedirectHandlerOptions=G.RetryHandlerOptions=G.AuthenticationHandlerOptions=G.MiddlewareFactory=G.TelemetryHandler=G.RedirectHandler=G.RetryHandler=G.HTTPMessageHandler=G.AuthenticationHandler=G.BatchResponseContent=G.BatchRequestContent=void 0;var t0=R_();Object.defineProperty(G,"BatchRequestContent",{enumerable:!0,get:s(function(){return t0.BatchRequestContent},"get")});var r0=O_();Object.defineProperty(G,"BatchResponseContent",{enumerable:!0,get:s(function(){return r0.BatchResponseContent},"get")});var o0=wl();Object.defineProperty(G,"AuthenticationHandler",{enumerable:!0,get:s(function(){return o0.AuthenticationHandler},"get")});var i0=kl();Object.defineProperty(G,"HTTPMessageHandler",{enumerable:!0,get:s(function(){return i0.HTTPMessageHandler},"get")});var n0=Rl();Object.defineProperty(G,"RetryHandler",{enumerable:!0,get:s(function(){return n0.RetryHandler},"get")});var a0=Nl();Object.defineProperty(G,"RedirectHandler",{enumerable:!0,get:s(function(){return a0.RedirectHandler},"get")});var s0=Ml();Object.defineProperty(G,"TelemetryHandler",{enumerable:!0,get:s(function(){return s0.TelemetryHandler},"get")});var c0=W_();Object.defineProperty(G,"MiddlewareFactory",{enumerable:!0,get:s(function(){return c0.MiddlewareFactory},"get")});var l0=Qh();Object.defineProperty(G,"AuthenticationHandlerOptions",{enumerable:!0,get:s(function(){return l0.AuthenticationHandlerOptions},"get")});var u0=sa();Object.defineProperty(G,"RetryHandlerOptions",{enumerable:!0,get:s(function(){return u0.RetryHandlerOptions},"get")});var d0=ca();Object.defineProperty(G,"RedirectHandlerOptions",{enumerable:!0,get:s(function(){return d0.RedirectHandlerOptions},"get")});var gx=Lo();Object.defineProperty(G,"FeatureUsageFlag",{enumerable:!0,get:s(function(){return gx.FeatureUsageFlag},"get")});Object.defineProperty(G,"TelemetryHandlerOptions",{enumerable:!0,get:s(function(){return gx.TelemetryHandlerOptions},"get")});var p0=oy();Object.defineProperty(G,"ChaosHandlerOptions",{enumerable:!0,get:s(function(){return p0.ChaosHandlerOptions},"get")});var m0=ql();Object.defineProperty(G,"ChaosStrategy",{enumerable:!0,get:s(function(){return m0.ChaosStrategy},"get")});var f0=Q_();Object.defineProperty(G,"ChaosHandler",{enumerable:!0,get:s(function(){return f0.ChaosHandler},"get")});var h0=uy();Object.defineProperty(G,"LargeFileUploadTask",{enumerable:!0,get:s(function(){return h0.LargeFileUploadTask},"get")});var y0=ox();Object.defineProperty(G,"OneDriveLargeFileUploadTask",{enumerable:!0,get:s(function(){return y0.OneDriveLargeFileUploadTask},"get")});var g0=py();Object.defineProperty(G,"getValidRangeSize",{enumerable:!0,get:s(function(){return g0.getValidRangeSize},"get")});var v0=nx();Object.defineProperty(G,"StreamUpload",{enumerable:!0,get:s(function(){return v0.StreamUpload},"get")});var P0=dy();Object.defineProperty(G,"FileUpload",{enumerable:!0,get:s(function(){return P0.FileUpload},"get")});var I0=cy();Object.defineProperty(G,"UploadResult",{enumerable:!0,get:s(function(){return I0.UploadResult},"get")});var b0=sy();Object.defineProperty(G,"Range",{enumerable:!0,get:s(function(){return b0.Range},"get")});var S0=ax();Object.defineProperty(G,"PageIterator",{enumerable:!0,get:s(function(){return S0.PageIterator},"get")});var _0=yx();Object.defineProperty(G,"Client",{enumerable:!0,get:s(function(){return _0.Client},"get")});var x0=my();Object.defineProperty(G,"CustomAuthenticationProvider",{enumerable:!0,get:s(function(){return x0.CustomAuthenticationProvider},"get")});var T0=fy();Object.defineProperty(G,"GraphError",{enumerable:!0,get:s(function(){return T0.GraphError},"get")});var A0=jt();Object.defineProperty(G,"GraphClientError",{enumerable:!0,get:s(function(){return A0.GraphClientError},"get")});var w0=yy();Object.defineProperty(G,"GraphRequest",{enumerable:!0,get:s(function(){return w0.GraphRequest},"get")});var E0=la();Object.defineProperty(G,"ResponseType",{enumerable:!0,get:s(function(){return E0.ResponseType},"get")})});var Jo=R((zy,Uy)=>{(function(e,t){typeof zy=="object"&&typeof Uy<"u"?Uy.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(zy,(function(){"use strict";var e=1e3,t=6e4,o=36e5,i="millisecond",r="second",n="minute",a="hour",c="day",l="week",d="month",f="quarter",b="year",P="date",m="Invalid Date",I=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|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,T={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(oe){var q=["th","st","nd","rd"],U=oe%100;return"["+oe+(q[(U-20)%10]||q[U]||q[0])+"]"},"ordinal")},k=s(function(oe,q,U){var Z=String(oe);return!Z||Z.length>=q?oe:""+Array(q+1-Z.length).join(U)+oe},"m"),C={s:k,z:s(function(oe){var q=-oe.utcOffset(),U=Math.abs(q),Z=Math.floor(U/60),B=U%60;return(q<=0?"+":"-")+k(Z,2,"0")+":"+k(B,2,"0")},"z"),m:s(function oe(q,U){if(q.date()<U.date())return-oe(U,q);var Z=12*(U.year()-q.year())+(U.month()-q.month()),B=q.clone().add(Z,d),te=U-B<0,se=q.clone().add(Z+(te?-1:1),d);return+(-(Z+(U-B)/(te?B-se:se-B))||0)},"t"),a:s(function(oe){return oe<0?Math.ceil(oe)||0:Math.floor(oe)},"a"),p:s(function(oe){return{M:d,y:b,w:l,d:c,D:P,h:a,m:n,s:r,ms:i,Q:f}[oe]||String(oe||"").toLowerCase().replace(/s$/,"")},"p"),u:s(function(oe){return oe===void 0},"u")},H="en",pe={};pe[H]=T;var he=s(function(oe){return oe instanceof et},"p"),Ue=s(function oe(q,U,Z){var B;if(!q)return H;if(typeof q=="string"){var te=q.toLowerCase();pe[te]&&(B=te),U&&(pe[te]=U,B=te);var se=q.split("-");if(!B&&se.length>1)return oe(se[0])}else{var Ie=q.name;pe[Ie]=q,B=Ie}return!Z&&B&&(H=B),B||!Z&&H},"t"),De=s(function(oe,q){if(he(oe))return oe.clone();var U=typeof q=="object"?q:{};return U.date=oe,U.args=arguments,new et(U)},"w"),ce=C;ce.l=Ue,ce.i=he,ce.w=function(oe,q){return De(oe,{locale:q.$L,utc:q.$u,x:q.$x,$offset:q.$offset})};var et=(function(){function oe(U){this.$L=Ue(U.locale,null,!0),this.parse(U)}s(oe,"M");var q=oe.prototype;return q.parse=function(U){this.$d=(function(Z){var B=Z.date,te=Z.utc;if(B===null)return new Date(NaN);if(ce.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var se=B.match(I);if(se){var Ie=se[2]-1||0,Oe=(se[7]||"0").substring(0,3);return te?new Date(Date.UTC(se[1],Ie,se[3]||1,se[4]||0,se[5]||0,se[6]||0,Oe)):new Date(se[1],Ie,se[3]||1,se[4]||0,se[5]||0,se[6]||0,Oe)}}return new Date(B)})(U),this.$x=U.x||{},this.init()},q.init=function(){var U=this.$d;this.$y=U.getFullYear(),this.$M=U.getMonth(),this.$D=U.getDate(),this.$W=U.getDay(),this.$H=U.getHours(),this.$m=U.getMinutes(),this.$s=U.getSeconds(),this.$ms=U.getMilliseconds()},q.$utils=function(){return ce},q.isValid=function(){return this.$d.toString()!==m},q.isSame=function(U,Z){var B=De(U);return this.startOf(Z)<=B&&B<=this.endOf(Z)},q.isAfter=function(U,Z){return De(U)<this.startOf(Z)},q.isBefore=function(U,Z){return this.endOf(Z)<De(U)},q.$g=function(U,Z,B){return ce.u(U)?this[Z]:this.set(B,U)},q.unix=function(){return Math.floor(this.valueOf()/1e3)},q.valueOf=function(){return this.$d.getTime()},q.startOf=function(U,Z){var B=this,te=!!ce.u(Z)||Z,se=ce.p(U),Ie=s(function(yr,tt){var Vt=ce.w(B.$u?Date.UTC(B.$y,tt,yr):new Date(B.$y,tt,yr),B);return te?Vt:Vt.endOf(c)},"l"),Oe=s(function(yr,tt){return ce.w(B.toDate()[yr].apply(B.toDate("s"),(te?[0,0,0,0]:[23,59,59,999]).slice(tt)),B)},"$"),Me=this.$W,Ve=this.$M,ft=this.$D,Hr="set"+(this.$u?"UTC":"");switch(se){case b:return te?Ie(1,0):Ie(31,11);case d:return te?Ie(1,Ve):Ie(0,Ve+1);case l:var hr=this.$locale().weekStart||0,Xo=(Me<hr?Me+7:Me)-hr;return Ie(te?ft-Xo:ft+(6-Xo),Ve);case c:case P:return Oe(Hr+"Hours",0);case a:return Oe(Hr+"Minutes",1);case n:return Oe(Hr+"Seconds",2);case r:return Oe(Hr+"Milliseconds",3);default:return this.clone()}},q.endOf=function(U){return this.startOf(U,!1)},q.$set=function(U,Z){var B,te=ce.p(U),se="set"+(this.$u?"UTC":""),Ie=(B={},B[c]=se+"Date",B[P]=se+"Date",B[d]=se+"Month",B[b]=se+"FullYear",B[a]=se+"Hours",B[n]=se+"Minutes",B[r]=se+"Seconds",B[i]=se+"Milliseconds",B)[te],Oe=te===c?this.$D+(Z-this.$W):Z;if(te===d||te===b){var Me=this.clone().set(P,1);Me.$d[Ie](Oe),Me.init(),this.$d=Me.set(P,Math.min(this.$D,Me.daysInMonth())).$d}else Ie&&this.$d[Ie](Oe);return this.init(),this},q.set=function(U,Z){return this.clone().$set(U,Z)},q.get=function(U){return this[ce.p(U)]()},q.add=function(U,Z){var B,te=this;U=Number(U);var se=ce.p(Z),Ie=s(function(Ve){var ft=De(te);return ce.w(ft.date(ft.date()+Math.round(Ve*U)),te)},"y");if(se===d)return this.set(d,this.$M+U);if(se===b)return this.set(b,this.$y+U);if(se===c)return Ie(1);if(se===l)return Ie(7);var Oe=(B={},B[n]=t,B[a]=o,B[r]=e,B)[se]||1,Me=this.$d.getTime()+U*Oe;return ce.w(Me,this)},q.subtract=function(U,Z){return this.add(-1*U,Z)},q.format=function(U){var Z=this,B=this.$locale();if(!this.isValid())return B.invalidDate||m;var te=U||"YYYY-MM-DDTHH:mm:ssZ",se=ce.z(this),Ie=this.$H,Oe=this.$m,Me=this.$M,Ve=B.weekdays,ft=B.months,Hr=B.meridiem,hr=s(function(tt,Vt,Yo,xa){return tt&&(tt[Vt]||tt(Z,te))||Yo[Vt].slice(0,xa)},"h"),Xo=s(function(tt){return ce.s(Ie%12||12,tt,"0")},"d"),yr=Hr||function(tt,Vt,Yo){var xa=tt<12?"AM":"PM";return Yo?xa.toLowerCase():xa};return te.replace(x,(function(tt,Vt){return Vt||(function(Yo){switch(Yo){case"YY":return String(Z.$y).slice(-2);case"YYYY":return ce.s(Z.$y,4,"0");case"M":return Me+1;case"MM":return ce.s(Me+1,2,"0");case"MMM":return hr(B.monthsShort,Me,ft,3);case"MMMM":return hr(ft,Me);case"D":return Z.$D;case"DD":return ce.s(Z.$D,2,"0");case"d":return String(Z.$W);case"dd":return hr(B.weekdaysMin,Z.$W,Ve,2);case"ddd":return hr(B.weekdaysShort,Z.$W,Ve,3);case"dddd":return Ve[Z.$W];case"H":return String(Ie);case"HH":return ce.s(Ie,2,"0");case"h":return Xo(1);case"hh":return Xo(2);case"a":return yr(Ie,Oe,!0);case"A":return yr(Ie,Oe,!1);case"m":return String(Oe);case"mm":return ce.s(Oe,2,"0");case"s":return String(Z.$s);case"ss":return ce.s(Z.$s,2,"0");case"SSS":return ce.s(Z.$ms,3,"0");case"Z":return se}return null})(tt)||se.replace(":","")}))},q.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},q.diff=function(U,Z,B){var te,se=this,Ie=ce.p(Z),Oe=De(U),Me=(Oe.utcOffset()-this.utcOffset())*t,Ve=this-Oe,ft=s(function(){return ce.m(se,Oe)},"D");switch(Ie){case b:te=ft()/12;break;case d:te=ft();break;case f:te=ft()/3;break;case l:te=(Ve-Me)/6048e5;break;case c:te=(Ve-Me)/864e5;break;case a:te=Ve/o;break;case n:te=Ve/t;break;case r:te=Ve/e;break;default:te=Ve}return B?te:ce.a(te)},q.daysInMonth=function(){return this.endOf(d).$D},q.$locale=function(){return pe[this.$L]},q.locale=function(U,Z){if(!U)return this.$L;var B=this.clone(),te=Ue(U,Z,!0);return te&&(B.$L=te),B},q.clone=function(){return ce.w(this.$d,this)},q.toDate=function(){return new Date(this.valueOf())},q.toJSON=function(){return this.isValid()?this.toISOString():null},q.toISOString=function(){return this.$d.toISOString()},q.toString=function(){return this.$d.toUTCString()},oe})(),_a=et.prototype;return De.prototype=_a,[["$ms",i],["$s",r],["$m",n],["$H",a],["$W",c],["$M",d],["$y",b],["$D",P]].forEach((function(oe){_a[oe[1]]=function(q){return this.$g(q,oe[0],oe[1])}})),De.extend=function(oe,q){return oe.$i||(oe(q,et,De),oe.$i=!0),De},De.locale=Ue,De.isDayjs=he,De.unix=function(oe){return De(1e3*oe)},De.en=pe[H],De.Ls=pe,De.p={},De}))});var NM={};lt(NM,{microsoftSharePoint:()=>$M});module.exports=Ae(NM);var dt={};lt(dt,{$ZodAny:()=>vi,$ZodArray:()=>Si,$ZodAsyncError:()=>St,$ZodBase64:()=>ls,$ZodBase64URL:()=>us,$ZodBigInt:()=>io,$ZodBigIntFormat:()=>fs,$ZodBoolean:()=>br,$ZodCIDRv4:()=>ss,$ZodCIDRv6:()=>cs,$ZodCUID:()=>Qa,$ZodCUID2:()=>es,$ZodCatch:()=>Cs,$ZodCheck:()=>ve,$ZodCheckBigIntFormat:()=>Od,$ZodCheckEndsWith:()=>Gd,$ZodCheckGreaterThan:()=>qa,$ZodCheckIncludes:()=>Bd,$ZodCheckLengthEquals:()=>Md,$ZodCheckLessThan:()=>ja,$ZodCheckLowerCase:()=>jd,$ZodCheckMaxLength:()=>zd,$ZodCheckMaxSize:()=>$d,$ZodCheckMimeType:()=>Vd,$ZodCheckMinLength:()=>Ud,$ZodCheckMinSize:()=>Nd,$ZodCheckMultipleOf:()=>Dd,$ZodCheckNumberFormat:()=>Rd,$ZodCheckOverwrite:()=>Wd,$ZodCheckProperty:()=>Zd,$ZodCheckRegex:()=>Fd,$ZodCheckSizeEquals:()=>Ld,$ZodCheckStartsWith:()=>Hd,$ZodCheckStringFormat:()=>ro,$ZodCheckUpperCase:()=>qd,$ZodCodec:()=>ao,$ZodCustom:()=>Di,$ZodCustomStringFormat:()=>ms,$ZodDate:()=>bi,$ZodDefault:()=>As,$ZodDiscriminatedUnion:()=>_i,$ZodE164:()=>ds,$ZodEmail:()=>Ja,$ZodEmoji:()=>Xa,$ZodEncodeError:()=>Wt,$ZodEnum:()=>Ai,$ZodError:()=>ci,$ZodExactOptional:()=>Ts,$ZodFile:()=>xs,$ZodFunction:()=>$s,$ZodGUID:()=>Wa,$ZodIPv4:()=>is,$ZodIPv6:()=>ns,$ZodISODate:()=>fi,$ZodISODateTime:()=>mi,$ZodISODuration:()=>yi,$ZodISOTime:()=>hi,$ZodIntersection:()=>bs,$ZodJWT:()=>ps,$ZodKSUID:()=>os,$ZodLazy:()=>Ls,$ZodLiteral:()=>wi,$ZodMAC:()=>as,$ZodMap:()=>Ss,$ZodNaN:()=>Ds,$ZodNanoID:()=>Ya,$ZodNever:()=>vs,$ZodNonOptional:()=>Es,$ZodNull:()=>gs,$ZodNullable:()=>ki,$ZodNumber:()=>oo,$ZodNumberFormat:()=>gi,$ZodObject:()=>Ps,$ZodObjectJIT:()=>Yd,$ZodOptional:()=>no,$ZodPipe:()=>Ci,$ZodPrefault:()=>ws,$ZodPromise:()=>Ns,$ZodReadonly:()=>Rs,$ZodRealError:()=>ot,$ZodRecord:()=>Ti,$ZodRegistry:()=>zs,$ZodSet:()=>_s,$ZodString:()=>Rt,$ZodStringFormat:()=>ye,$ZodSuccess:()=>ks,$ZodSymbol:()=>hs,$ZodTemplateLiteral:()=>Os,$ZodTransform:()=>Ei,$ZodTuple:()=>xi,$ZodType:()=>J,$ZodULID:()=>ts,$ZodURL:()=>pi,$ZodUUID:()=>Ka,$ZodUndefined:()=>ys,$ZodUnion:()=>Sr,$ZodUnknown:()=>Pi,$ZodVoid:()=>Ii,$ZodXID:()=>rs,$ZodXor:()=>Is,$brand:()=>ti,$constructor:()=>S,$input:()=>Ms,$output:()=>Us,Doc:()=>di,JSONSchema:()=>$g,JSONSchemaGenerator:()=>lc,NEVER:()=>Ta,TimePrecision:()=>js,_any:()=>yn,_array:()=>Gp,_base64:()=>tn,_base64url:()=>rn,_bigint:()=>Zs,_boolean:()=>mn,_catch:()=>fR,_check:()=>Og,_cidrv4:()=>Qi,_cidrv6:()=>en,_coercedBigint:()=>hn,_coercedBoolean:()=>fn,_coercedDate:()=>Pn,_coercedNumber:()=>dn,_coercedString:()=>Ui,_cuid:()=>Zi,_cuid2:()=>Vi,_custom:()=>Tn,_date:()=>Qs,_decode:()=>Ra,_decodeAsync:()=>$a,_default:()=>dR,_discriminatedUnion:()=>QD,_e164:()=>on,_email:()=>Mi,_emoji:()=>Hi,_encode:()=>Da,_encodeAsync:()=>Oa,_endsWith:()=>Er,_enum:()=>nR,_file:()=>tc,_float32:()=>qs,_float64:()=>Bs,_gt:()=>xt,_gte:()=>Le,_guid:()=>lo,_includes:()=>Ar,_int:()=>pn,_int32:()=>Hs,_int64:()=>Vs,_intersection:()=>eR,_ipv4:()=>Xi,_ipv6:()=>Yi,_isoDate:()=>sn,_isoDateTime:()=>an,_isoDuration:()=>ln,_isoTime:()=>cn,_jwt:()=>nn,_ksuid:()=>Ji,_lazy:()=>vR,_length:()=>tr,_literal:()=>sR,_lowercase:()=>xr,_lt:()=>_t,_lte:()=>Xe,_mac:()=>Fs,_map:()=>oR,_max:()=>Xe,_maxLength:()=>er,_maxSize:()=>$t,_mime:()=>kr,_min:()=>Le,_minLength:()=>$e,_minSize:()=>Tt,_multipleOf:()=>Ot,_nan:()=>ec,_nanoid:()=>Gi,_nativeEnum:()=>aR,_negative:()=>bn,_never:()=>Ys,_nonnegative:()=>_n,_nonoptional:()=>pR,_nonpositive:()=>Sn,_normalize:()=>Cr,_null:()=>Xs,_nullable:()=>uR,_number:()=>un,_optional:()=>lR,_overwrite:()=>yt,_parse:()=>Jr,_parseAsync:()=>Xr,_pipe:()=>hR,_positive:()=>In,_promise:()=>PR,_property:()=>xn,_readonly:()=>yR,_record:()=>rR,_refine:()=>An,_regex:()=>Ge,_safeDecode:()=>La,_safeDecodeAsync:()=>Ua,_safeEncode:()=>Na,_safeEncodeAsync:()=>za,_safeParse:()=>Yr,_safeParseAsync:()=>eo,_set:()=>iR,_size:()=>Qt,_slugify:()=>uo,_startsWith:()=>wr,_string:()=>zi,_stringFormat:()=>$r,_stringbool:()=>nc,_success:()=>mR,_superRefine:()=>rc,_symbol:()=>Ks,_templateLiteral:()=>gR,_toLowerCase:()=>Rr,_toUpperCase:()=>Or,_transform:()=>cR,_trim:()=>Dr,_tuple:()=>tR,_uint32:()=>Gs,_uint64:()=>Ws,_ulid:()=>Wi,_undefined:()=>Js,_union:()=>XD,_unknown:()=>gn,_uppercase:()=>Tr,_url:()=>_r,_uuid:()=>Fi,_uuidv4:()=>ji,_uuidv6:()=>qi,_uuidv7:()=>Bi,_void:()=>vn,_xid:()=>Ki,_xor:()=>YD,clone:()=>Fe,config:()=>we,createStandardJSONSchemaMethod:()=>po,createToJSONSchemaMethod:()=>Zp,decode:()=>eg,decodeAsync:()=>rg,describe:()=>oc,encode:()=>Qy,encodeAsync:()=>tg,extractDefs:()=>or,finalize:()=>ir,flattenError:()=>Wr,formatError:()=>Kr,globalConfig:()=>ei,globalRegistry:()=>je,initializeContext:()=>rr,isValidBase64:()=>Xd,isValidBase64URL:()=>xg,isValidJWT:()=>Tg,locales:()=>co,meta:()=>ic,parse:()=>vr,parseAsync:()=>Pr,prettifyError:()=>Ca,process:()=>ge,regexes:()=>it,registry:()=>Li,safeDecode:()=>ig,safeDecodeAsync:()=>ag,safeEncode:()=>og,safeEncodeAsync:()=>ng,safeParse:()=>Qr,safeParseAsync:()=>to,toDotPath:()=>Yy,toJSONSchema:()=>wn,treeifyError:()=>ka,util:()=>N,version:()=>Kd});var Ta=Object.freeze({status:"aborted"});function S(e,t,o){function i(c,l){if(c._zod||Object.defineProperty(c,"_zod",{value:{def:l,constr:a,traits:new Set},enumerable:!1}),c._zod.traits.has(e))return;c._zod.traits.add(e),t(c,l);let d=a.prototype,f=Object.keys(d);for(let b=0;b<f.length;b++){let P=f[b];P in c||(c[P]=d[P].bind(c))}}s(i,"init");let r=o?.Parent??Object;class n extends r{static{s(this,"Definition")}}Object.defineProperty(n,"name",{value:e});function a(c){var l;let d=o?.Parent?new n:this;i(d,c),(l=d._zod).deferred??(l.deferred=[]);for(let f of d._zod.deferred)f();return d}return s(a,"_"),Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:s(c=>o?.Parent&&c instanceof o.Parent?!0:c?._zod?.traits?.has(e),"value")}),Object.defineProperty(a,"name",{value:e}),a}s(S,"$constructor");var ti=Symbol("zod_brand"),St=class extends Error{static{s(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Wt=class extends Error{static{s(this,"$ZodEncodeError")}constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},ei={};function we(e){return e&&Object.assign(ei,e),ei}s(we,"config");var N={};lt(N,{BIGINT_FORMAT_RANGES:()=>rd,Class:()=>Ku,NUMBER_FORMAT_RANGES:()=>td,aborted:()=>Yt,allowsEval:()=>Yu,assert:()=>mC,assertEqual:()=>lC,assertIs:()=>dC,assertNever:()=>pC,assertNotEqual:()=>uC,assignProp:()=>Jt,base64ToUint8Array:()=>Ky,base64urlToUint8Array:()=>xC,cached:()=>Zr,captureStackTrace:()=>wa,cleanEnum:()=>_C,cleanRegex:()=>ii,clone:()=>Fe,cloneDef:()=>hC,createTransparentProxy:()=>bC,defineLazy:()=>ie,esc:()=>Aa,escapeRegex:()=>ht,extend:()=>Gy,finalizeIssue:()=>rt,floatSafeRemainder:()=>Ju,getElementAtPath:()=>yC,getEnumValues:()=>oi,getLengthableOrigin:()=>si,getParsedType:()=>IC,getSizableOrigin:()=>ai,hexToUint8Array:()=>AC,isObject:()=>gr,isPlainObject:()=>Xt,issue:()=>Vr,joinValues:()=>E,jsonStringifyReplacer:()=>Gr,merge:()=>SC,mergeDefs:()=>Dt,normalizeParams:()=>D,nullish:()=>Kt,numKeys:()=>PC,objectClone:()=>fC,omit:()=>Hy,optionalKeys:()=>ed,parsedType:()=>L,partial:()=>Vy,pick:()=>By,prefixIssues:()=>ut,primitiveTypes:()=>Qu,promiseAllObject:()=>gC,propertyKeyTypes:()=>ni,randomString:()=>vC,required:()=>Wy,safeExtend:()=>Zy,shallowClone:()=>Ea,slugify:()=>Xu,stringifyPrimitive:()=>O,uint8ArrayToBase64:()=>Jy,uint8ArrayToBase64url:()=>TC,uint8ArrayToHex:()=>wC,unwrapMessage:()=>ri});function lC(e){return e}s(lC,"assertEqual");function uC(e){return e}s(uC,"assertNotEqual");function dC(e){}s(dC,"assertIs");function pC(e){throw new Error("Unexpected value in exhaustive check")}s(pC,"assertNever");function mC(e){}s(mC,"assert");function oi(e){let t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,r])=>t.indexOf(+i)===-1).map(([i,r])=>r)}s(oi,"getEnumValues");function E(e,t="|"){return e.map(o=>O(o)).join(t)}s(E,"joinValues");function Gr(e,t){return typeof t=="bigint"?t.toString():t}s(Gr,"jsonStringifyReplacer");function Zr(e){return{get value(){{let o=e();return Object.defineProperty(this,"value",{value:o}),o}throw new Error("cached value already set")}}}s(Zr,"cached");function Kt(e){return e==null}s(Kt,"nullish");function ii(e){let t=e.startsWith("^")?1:0,o=e.endsWith("$")?e.length-1:e.length;return e.slice(t,o)}s(ii,"cleanRegex");function Ju(e,t){let o=(e.toString().split(".")[1]||"").length,i=t.toString(),r=(i.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(i)){let l=i.match(/\d?e-(\d?)/);l?.[1]&&(r=Number.parseInt(l[1]))}let n=o>r?o:r,a=Number.parseInt(e.toFixed(n).replace(".","")),c=Number.parseInt(t.toFixed(n).replace(".",""));return a%c/10**n}s(Ju,"floatSafeRemainder");var qy=Symbol("evaluating");function ie(e,t,o){let i;Object.defineProperty(e,t,{get(){if(i!==qy)return i===void 0&&(i=qy,i=o()),i},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}s(ie,"defineLazy");function fC(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}s(fC,"objectClone");function Jt(e,t,o){Object.defineProperty(e,t,{value:o,writable:!0,enumerable:!0,configurable:!0})}s(Jt,"assignProp");function Dt(...e){let t={};for(let o of e){let i=Object.getOwnPropertyDescriptors(o);Object.assign(t,i)}return Object.defineProperties({},t)}s(Dt,"mergeDefs");function hC(e){return Dt(e._zod.def)}s(hC,"cloneDef");function yC(e,t){return t?t.reduce((o,i)=>o?.[i],e):e}s(yC,"getElementAtPath");function gC(e){let t=Object.keys(e),o=t.map(i=>e[i]);return Promise.all(o).then(i=>{let r={};for(let n=0;n<t.length;n++)r[t[n]]=i[n];return r})}s(gC,"promiseAllObject");function vC(e=10){let t="abcdefghijklmnopqrstuvwxyz",o="";for(let i=0;i<e;i++)o+=t[Math.floor(Math.random()*t.length)];return o}s(vC,"randomString");function Aa(e){return JSON.stringify(e)}s(Aa,"esc");function Xu(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}s(Xu,"slugify");var wa="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function gr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}s(gr,"isObject");var Yu=Zr(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Xt(e){if(gr(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let o=t.prototype;return!(gr(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}s(Xt,"isPlainObject");function Ea(e){return Xt(e)?{...e}:Array.isArray(e)?[...e]:e}s(Ea,"shallowClone");function PC(e){let t=0;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&t++;return t}s(PC,"numKeys");var IC=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"),ni=new Set(["string","number","symbol"]),Qu=new Set(["string","number","bigint","boolean","symbol","undefined"]);function ht(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}s(ht,"escapeRegex");function Fe(e,t,o){let i=new e._zod.constr(t??e._zod.def);return(!t||o?.parent)&&(i._zod.parent=e),i}s(Fe,"clone");function D(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(D,"normalizeParams");function bC(e){let t;return new Proxy({},{get(o,i,r){return t??(t=e()),Reflect.get(t,i,r)},set(o,i,r,n){return t??(t=e()),Reflect.set(t,i,r,n)},has(o,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(o,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(o){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(o,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(o,i,r){return t??(t=e()),Reflect.defineProperty(t,i,r)}})}s(bC,"createTransparentProxy");function O(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}s(O,"stringifyPrimitive");function ed(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}s(ed,"optionalKeys");var td={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]},rd={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function By(e,t){let o=e._zod.def,i=o.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let n=Dt(e._zod.def,{get shape(){let a={};for(let c in t){if(!(c in o.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&(a[c]=o.shape[c])}return Jt(this,"shape",a),a},checks:[]});return Fe(e,n)}s(By,"pick");function Hy(e,t){let o=e._zod.def,i=o.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let n=Dt(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let c in t){if(!(c in o.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&delete a[c]}return Jt(this,"shape",a),a},checks:[]});return Fe(e,n)}s(Hy,"omit");function Gy(e,t){if(!Xt(t))throw new Error("Invalid input to extend: expected a plain object");let o=e._zod.def.checks;if(o&&o.length>0){let n=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(n,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let r=Dt(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Jt(this,"shape",n),n}});return Fe(e,r)}s(Gy,"extend");function Zy(e,t){if(!Xt(t))throw new Error("Invalid input to safeExtend: expected a plain object");let o=Dt(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return Jt(this,"shape",i),i}});return Fe(e,o)}s(Zy,"safeExtend");function SC(e,t){let o=Dt(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t._zod.def.shape};return Jt(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return Fe(e,o)}s(SC,"merge");function Vy(e,t,o){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=Dt(t._zod.def,{get shape(){let c=t._zod.def.shape,l={...c};if(o)for(let d in o){if(!(d in c))throw new Error(`Unrecognized key: "${d}"`);o[d]&&(l[d]=e?new e({type:"optional",innerType:c[d]}):c[d])}else for(let d in c)l[d]=e?new e({type:"optional",innerType:c[d]}):c[d];return Jt(this,"shape",l),l},checks:[]});return Fe(t,a)}s(Vy,"partial");function Wy(e,t,o){let i=Dt(t._zod.def,{get shape(){let r=t._zod.def.shape,n={...r};if(o)for(let a in o){if(!(a in n))throw new Error(`Unrecognized key: "${a}"`);o[a]&&(n[a]=new e({type:"nonoptional",innerType:r[a]}))}else for(let a in r)n[a]=new e({type:"nonoptional",innerType:r[a]});return Jt(this,"shape",n),n}});return Fe(t,i)}s(Wy,"required");function Yt(e,t=0){if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(e.issues[o]?.continue!==!0)return!0;return!1}s(Yt,"aborted");function ut(e,t){return t.map(o=>{var i;return(i=o).path??(i.path=[]),o.path.unshift(e),o})}s(ut,"prefixIssues");function ri(e){return typeof e=="string"?e:e?.message}s(ri,"unwrapMessage");function rt(e,t,o){let i={...e,path:e.path??[]};if(!e.message){let r=ri(e.inst?._zod.def?.error?.(e))??ri(t?.error?.(e))??ri(o.customError?.(e))??ri(o.localeError?.(e))??"Invalid input";i.message=r}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}s(rt,"finalizeIssue");function ai(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}s(ai,"getSizableOrigin");function si(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}s(si,"getLengthableOrigin");function L(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 o=e;if(o&&Object.getPrototypeOf(o)!==Object.prototype&&"constructor"in o&&o.constructor)return o.constructor.name}}return t}s(L,"parsedType");function Vr(...e){let[t,o,i]=e;return typeof t=="string"?{message:t,code:"custom",input:o,inst:i}:{...t}}s(Vr,"issue");function _C(e){return Object.entries(e).filter(([t,o])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}s(_C,"cleanEnum");function Ky(e){let t=atob(e),o=new Uint8Array(t.length);for(let i=0;i<t.length;i++)o[i]=t.charCodeAt(i);return o}s(Ky,"base64ToUint8Array");function Jy(e){let t="";for(let o=0;o<e.length;o++)t+=String.fromCharCode(e[o]);return btoa(t)}s(Jy,"uint8ArrayToBase64");function xC(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),o="=".repeat((4-t.length%4)%4);return Ky(t+o)}s(xC,"base64urlToUint8Array");function TC(e){return Jy(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}s(TC,"uint8ArrayToBase64url");function AC(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let o=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)o[i/2]=Number.parseInt(t.slice(i,i+2),16);return o}s(AC,"hexToUint8Array");function wC(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}s(wC,"uint8ArrayToHex");var Ku=class{static{s(this,"Class")}constructor(...t){}};var Xy=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,Gr,2),Object.defineProperty(e,"toString",{value:s(()=>e.message,"value"),enumerable:!1})},"initializer"),ci=S("$ZodError",Xy),ot=S("$ZodError",Xy,{Parent:Error});function Wr(e,t=o=>o.message){let o={},i=[];for(let r of e.issues)r.path.length>0?(o[r.path[0]]=o[r.path[0]]||[],o[r.path[0]].push(t(r))):i.push(t(r));return{formErrors:i,fieldErrors:o}}s(Wr,"flattenError");function Kr(e,t=o=>o.message){let o={_errors:[]},i=s(r=>{for(let n of r.issues)if(n.code==="invalid_union"&&n.errors.length)n.errors.map(a=>i({issues:a}));else if(n.code==="invalid_key")i({issues:n.issues});else if(n.code==="invalid_element")i({issues:n.issues});else if(n.path.length===0)o._errors.push(t(n));else{let a=o,c=0;for(;c<n.path.length;){let l=n.path[c];c===n.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(t(n))):a[l]=a[l]||{_errors:[]},a=a[l],c++}}},"processError");return i(e),o}s(Kr,"formatError");function ka(e,t=o=>o.message){let o={errors:[]},i=s((r,n=[])=>{var a,c;for(let l of r.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(d=>i({issues:d},l.path));else if(l.code==="invalid_key")i({issues:l.issues},l.path);else if(l.code==="invalid_element")i({issues:l.issues},l.path);else{let d=[...n,...l.path];if(d.length===0){o.errors.push(t(l));continue}let f=o,b=0;for(;b<d.length;){let P=d[b],m=b===d.length-1;typeof P=="string"?(f.properties??(f.properties={}),(a=f.properties)[P]??(a[P]={errors:[]}),f=f.properties[P]):(f.items??(f.items=[]),(c=f.items)[P]??(c[P]={errors:[]}),f=f.items[P]),m&&f.errors.push(t(l)),b++}}},"processError");return i(e),o}s(ka,"treeifyError");function Yy(e){let t=[],o=e.map(i=>typeof i=="object"?i.key:i);for(let i of o)typeof i=="number"?t.push(`[${i}]`):typeof i=="symbol"?t.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?t.push(`[${JSON.stringify(i)}]`):(t.length&&t.push("."),t.push(i));return t.join("")}s(Yy,"toDotPath");function Ca(e){let t=[],o=[...e.issues].sort((i,r)=>(i.path??[]).length-(r.path??[]).length);for(let i of o)t.push(`\u2716 ${i.message}`),i.path?.length&&t.push(` \u2192 at ${Yy(i.path)}`);return t.join(`
|
|
6
|
+
`)}s(Ca,"prettifyError");var Jr=s(e=>(t,o,i,r)=>{let n=i?Object.assign(i,{async:!1}):{async:!1},a=t._zod.run({value:o,issues:[]},n);if(a instanceof Promise)throw new St;if(a.issues.length){let c=new(r?.Err??e)(a.issues.map(l=>rt(l,n,we())));throw wa(c,r?.callee),c}return a.value},"_parse"),vr=Jr(ot),Xr=s(e=>async(t,o,i,r)=>{let n=i?Object.assign(i,{async:!0}):{async:!0},a=t._zod.run({value:o,issues:[]},n);if(a instanceof Promise&&(a=await a),a.issues.length){let c=new(r?.Err??e)(a.issues.map(l=>rt(l,n,we())));throw wa(c,r?.callee),c}return a.value},"_parseAsync"),Pr=Xr(ot),Yr=s(e=>(t,o,i)=>{let r=i?{...i,async:!1}:{async:!1},n=t._zod.run({value:o,issues:[]},r);if(n instanceof Promise)throw new St;return n.issues.length?{success:!1,error:new(e??ci)(n.issues.map(a=>rt(a,r,we())))}:{success:!0,data:n.value}},"_safeParse"),Qr=Yr(ot),eo=s(e=>async(t,o,i)=>{let r=i?Object.assign(i,{async:!0}):{async:!0},n=t._zod.run({value:o,issues:[]},r);return n instanceof Promise&&(n=await n),n.issues.length?{success:!1,error:new e(n.issues.map(a=>rt(a,r,we())))}:{success:!0,data:n.value}},"_safeParseAsync"),to=eo(ot),Da=s(e=>(t,o,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Jr(e)(t,o,r)},"_encode"),Qy=Da(ot),Ra=s(e=>(t,o,i)=>Jr(e)(t,o,i),"_decode"),eg=Ra(ot),Oa=s(e=>async(t,o,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Xr(e)(t,o,r)},"_encodeAsync"),tg=Oa(ot),$a=s(e=>async(t,o,i)=>Xr(e)(t,o,i),"_decodeAsync"),rg=$a(ot),Na=s(e=>(t,o,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Yr(e)(t,o,r)},"_safeEncode"),og=Na(ot),La=s(e=>(t,o,i)=>Yr(e)(t,o,i),"_safeDecode"),ig=La(ot),za=s(e=>async(t,o,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return eo(e)(t,o,r)},"_safeEncodeAsync"),ng=za(ot),Ua=s(e=>async(t,o,i)=>eo(e)(t,o,i),"_safeDecodeAsync"),ag=Ua(ot);var it={};lt(it,{base64:()=>vd,base64url:()=>Ma,bigint:()=>xd,boolean:()=>Ad,browserEmail:()=>LC,cidrv4:()=>yd,cidrv6:()=>gd,cuid:()=>od,cuid2:()=>id,date:()=>Id,datetime:()=>Sd,domain:()=>MC,duration:()=>ld,e164:()=>Pd,email:()=>dd,emoji:()=>pd,extendedDuration:()=>kC,guid:()=>ud,hex:()=>FC,hostname:()=>UC,html5Email:()=>OC,idnEmail:()=>NC,integer:()=>Td,ipv4:()=>md,ipv6:()=>fd,ksuid:()=>sd,lowercase:()=>kd,mac:()=>hd,md5_base64:()=>qC,md5_base64url:()=>BC,md5_hex:()=>jC,nanoid:()=>cd,null:()=>wd,number:()=>Fa,rfc5322Email:()=>$C,sha1_base64:()=>GC,sha1_base64url:()=>ZC,sha1_hex:()=>HC,sha256_base64:()=>WC,sha256_base64url:()=>KC,sha256_hex:()=>VC,sha384_base64:()=>XC,sha384_base64url:()=>YC,sha384_hex:()=>JC,sha512_base64:()=>eD,sha512_base64url:()=>tD,sha512_hex:()=>QC,string:()=>_d,time:()=>bd,ulid:()=>nd,undefined:()=>Ed,unicodeEmail:()=>sg,uppercase:()=>Cd,uuid:()=>Ir,uuid4:()=>CC,uuid6:()=>DC,uuid7:()=>RC,xid:()=>ad});var od=/^[cC][^\s-]{8,}$/,id=/^[0-9a-z]+$/,nd=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,ad=/^[0-9a-vA-V]{20}$/,sd=/^[A-Za-z0-9]{27}$/,cd=/^[a-zA-Z0-9_-]{21}$/,ld=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,kC=/^[-+]?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)?)??$/,ud=/^([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})$/,Ir=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"),CC=Ir(4),DC=Ir(6),RC=Ir(7),dd=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,OC=/^[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])?)*$/,$C=/^(([^<>()\[\]\\.,;:\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,}))$/,sg=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,NC=sg,LC=/^[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])?)*$/,zC="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function pd(){return new RegExp(zC,"u")}s(pd,"emoji");var md=/^(?:(?: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])$/,fd=/^(([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}|:))$/,hd=s(e=>{let t=ht(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"),yd=/^((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])$/,gd=/^(([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])$/,vd=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ma=/^[A-Za-z0-9_-]*$/,UC=/^(?=.{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])?)*\.?$/,MC=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Pd=/^\+[1-9]\d{6,14}$/,cg="(?:(?:\\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])))",Id=new RegExp(`^${cg}$`);function lg(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(lg,"timeSource");function bd(e){return new RegExp(`^${lg(e)}$`)}s(bd,"time");function Sd(e){let t=lg({precision:e.precision}),o=["Z"];e.local&&o.push(""),e.offset&&o.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i=`${t}(?:${o.join("|")})`;return new RegExp(`^${cg}T(?:${i})$`)}s(Sd,"datetime");var _d=s(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},"string"),xd=/^-?\d+n?$/,Td=/^-?\d+$/,Fa=/^-?\d+(?:\.\d+)?$/,Ad=/^(?:true|false)$/i,wd=/^null$/i;var Ed=/^undefined$/i;var kd=/^[^A-Z]*$/,Cd=/^[^a-z]*$/,FC=/^[0-9a-fA-F]*$/;function li(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}s(li,"fixedBase64");function ui(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}s(ui,"fixedBase64url");var jC=/^[0-9a-fA-F]{32}$/,qC=li(22,"=="),BC=ui(22),HC=/^[0-9a-fA-F]{40}$/,GC=li(27,"="),ZC=ui(27),VC=/^[0-9a-fA-F]{64}$/,WC=li(43,"="),KC=ui(43),JC=/^[0-9a-fA-F]{96}$/,XC=li(64,""),YC=ui(64),QC=/^[0-9a-fA-F]{128}$/,eD=li(86,"=="),tD=ui(86);var ve=S("$ZodCheck",(e,t)=>{var o;e._zod??(e._zod={}),e._zod.def=t,(o=e._zod).onattach??(o.onattach=[])}),dg={number:"number",bigint:"bigint",object:"date"},ja=S("$ZodCheckLessThan",(e,t)=>{ve.init(e,t);let o=dg[typeof t.value];e._zod.onattach.push(i=>{let r=i._zod.bag,n=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<n&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:o,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),qa=S("$ZodCheckGreaterThan",(e,t)=>{ve.init(e,t);let o=dg[typeof t.value];e._zod.onattach.push(i=>{let r=i._zod.bag,n=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>n&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:o,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Dd=S("$ZodCheckMultipleOf",(e,t)=>{ve.init(e,t),e._zod.onattach.push(o=>{var i;(i=o._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=o=>{if(typeof o.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof o.value=="bigint"?o.value%t.value===BigInt(0):Ju(o.value,t.value)===0)||o.issues.push({origin:typeof o.value,code:"not_multiple_of",divisor:t.value,input:o.value,inst:e,continue:!t.abort})}}),Rd=S("$ZodCheckNumberFormat",(e,t)=>{ve.init(e,t),t.format=t.format||"float64";let o=t.format?.includes("int"),i=o?"int":"number",[r,n]=td[t.format];e._zod.onattach.push(a=>{let c=a._zod.bag;c.format=t.format,c.minimum=r,c.maximum=n,o&&(c.pattern=Td)}),e._zod.check=a=>{let c=a.value;if(o){if(!Number.isInteger(c)){a.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){c>0?a.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}):a.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort});return}}c<r&&a.issues.push({origin:"number",input:c,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),c>n&&a.issues.push({origin:"number",input:c,code:"too_big",maximum:n,inclusive:!0,inst:e,continue:!t.abort})}}),Od=S("$ZodCheckBigIntFormat",(e,t)=>{ve.init(e,t);let[o,i]=rd[t.format];e._zod.onattach.push(r=>{let n=r._zod.bag;n.format=t.format,n.minimum=o,n.maximum=i}),e._zod.check=r=>{let n=r.value;n<o&&r.issues.push({origin:"bigint",input:n,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),n>i&&r.issues.push({origin:"bigint",input:n,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),$d=S("$ZodCheckMaxSize",(e,t)=>{var o;ve.init(e,t),(o=e._zod.def).when??(o.when=i=>{let r=i.value;return!Kt(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{let r=i.value;r.size<=t.maximum||i.issues.push({origin:ai(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Nd=S("$ZodCheckMinSize",(e,t)=>{var o;ve.init(e,t),(o=e._zod.def).when??(o.when=i=>{let r=i.value;return!Kt(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{let r=i.value;r.size>=t.minimum||i.issues.push({origin:ai(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ld=S("$ZodCheckSizeEquals",(e,t)=>{var o;ve.init(e,t),(o=e._zod.def).when??(o.when=i=>{let r=i.value;return!Kt(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=i=>{let r=i.value,n=r.size;if(n===t.size)return;let a=n>t.size;i.issues.push({origin:ai(r),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),zd=S("$ZodCheckMaxLength",(e,t)=>{var o;ve.init(e,t),(o=e._zod.def).when??(o.when=i=>{let r=i.value;return!Kt(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{let r=i.value;if(r.length<=t.maximum)return;let a=si(r);i.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ud=S("$ZodCheckMinLength",(e,t)=>{var o;ve.init(e,t),(o=e._zod.def).when??(o.when=i=>{let r=i.value;return!Kt(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{let r=i.value;if(r.length>=t.minimum)return;let a=si(r);i.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Md=S("$ZodCheckLengthEquals",(e,t)=>{var o;ve.init(e,t),(o=e._zod.def).when??(o.when=i=>{let r=i.value;return!Kt(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=i=>{let r=i.value,n=r.length;if(n===t.length)return;let a=si(r),c=n>t.length;i.issues.push({origin:a,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),ro=S("$ZodCheckStringFormat",(e,t)=>{var o,i;ve.init(e,t),e._zod.onattach.push(r=>{let n=r._zod.bag;n.format=t.format,t.pattern&&(n.patterns??(n.patterns=new Set),n.patterns.add(t.pattern))}),t.pattern?(o=e._zod).check??(o.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})}):(i=e._zod).check??(i.check=()=>{})}),Fd=S("$ZodCheckRegex",(e,t)=>{ro.init(e,t),e._zod.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:"regex",input:o.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),jd=S("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=kd),ro.init(e,t)}),qd=S("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Cd),ro.init(e,t)}),Bd=S("$ZodCheckIncludes",(e,t)=>{ve.init(e,t);let o=ht(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${o}`:o);t.pattern=i,e._zod.onattach.push(r=>{let n=r._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(i)}),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})}}),Hd=S("$ZodCheckStartsWith",(e,t)=>{ve.init(e,t);let o=new RegExp(`^${ht(t.prefix)}.*`);t.pattern??(t.pattern=o),e._zod.onattach.push(i=>{let r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(o)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),Gd=S("$ZodCheckEndsWith",(e,t)=>{ve.init(e,t);let o=new RegExp(`.*${ht(t.suffix)}$`);t.pattern??(t.pattern=o),e._zod.onattach.push(i=>{let r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(o)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function ug(e,t,o){e.issues.length&&t.issues.push(...ut(o,e.issues))}s(ug,"handleCheckPropertyResult");var Zd=S("$ZodCheckProperty",(e,t)=>{ve.init(e,t),e._zod.check=o=>{let i=t.schema._zod.run({value:o.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(r=>ug(r,o,t.property));ug(i,o,t.property)}}),Vd=S("$ZodCheckMimeType",(e,t)=>{ve.init(e,t);let o=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime}),e._zod.check=i=>{o.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),Wd=S("$ZodCheckOverwrite",(e,t)=>{ve.init(e,t),e._zod.check=o=>{o.value=t.tx(o.value)}});var di=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 i=t.split(`
|
|
7
|
+
`).filter(a=>a),r=Math.min(...i.map(a=>a.length-a.trimStart().length)),n=i.map(a=>a.slice(r)).map(a=>" ".repeat(this.indent*2)+a);for(let a of n)this.content.push(a)}compile(){let t=Function,o=this?.args,r=[...(this?.content??[""]).map(n=>` ${n}`)];return new t(...o,r.join(`
|
|
8
|
+
`))}};var Kd={major:4,minor:3,patch:6};var J=S("$ZodType",(e,t)=>{var o;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Kd;let i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(let r of i)for(let n of r._zod.onattach)n(e);if(i.length===0)(o=e._zod).deferred??(o.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let r=s((a,c,l)=>{let d=Yt(a),f;for(let b of c){if(b._zod.def.when){if(!b._zod.def.when(a))continue}else if(d)continue;let P=a.issues.length,m=b._zod.check(a);if(m instanceof Promise&&l?.async===!1)throw new St;if(f||m instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await m,a.issues.length!==P&&(d||(d=Yt(a,P)))});else{if(a.issues.length===P)continue;d||(d=Yt(a,P))}}return f?f.then(()=>a):a},"runChecks"),n=s((a,c,l)=>{if(Yt(a))return a.aborted=!0,a;let d=r(c,i,l);if(d instanceof Promise){if(l.async===!1)throw new St;return d.then(f=>e._zod.parse(f,l))}return e._zod.parse(d,l)},"handleCanaryResult");e._zod.run=(a,c)=>{if(c.skipChecks)return e._zod.parse(a,c);if(c.direction==="backward"){let d=e._zod.parse({value:a.value,issues:[]},{...c,skipChecks:!0});return d instanceof Promise?d.then(f=>n(f,a,c)):n(d,a,c)}let l=e._zod.parse(a,c);if(l instanceof Promise){if(c.async===!1)throw new St;return l.then(d=>r(d,i,c))}return r(l,i,c)}}ie(e,"~standard",()=>({validate:s(r=>{try{let n=Qr(e,r);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return to(e,r).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},"validate"),vendor:"zod",version:1}))}),Rt=S("$ZodString",(e,t)=>{J.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??_d(e._zod.bag),e._zod.parse=(o,i)=>{if(t.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),ye=S("$ZodStringFormat",(e,t)=>{ro.init(e,t),Rt.init(e,t)}),Wa=S("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=ud),ye.init(e,t)}),Ka=S("$ZodUUID",(e,t)=>{if(t.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Ir(i))}else t.pattern??(t.pattern=Ir());ye.init(e,t)}),Ja=S("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=dd),ye.init(e,t)}),pi=S("$ZodURL",(e,t)=>{ye.init(e,t),e._zod.check=o=>{try{let i=o.value.trim(),r=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:o.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)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:o.value,inst:e,continue:!t.abort})),t.normalize?o.value=r.href:o.value=i;return}catch{o.issues.push({code:"invalid_format",format:"url",input:o.value,inst:e,continue:!t.abort})}}}),Xa=S("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=pd()),ye.init(e,t)}),Ya=S("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=cd),ye.init(e,t)}),Qa=S("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=od),ye.init(e,t)}),es=S("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=id),ye.init(e,t)}),ts=S("$ZodULID",(e,t)=>{t.pattern??(t.pattern=nd),ye.init(e,t)}),rs=S("$ZodXID",(e,t)=>{t.pattern??(t.pattern=ad),ye.init(e,t)}),os=S("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=sd),ye.init(e,t)}),mi=S("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Sd(t)),ye.init(e,t)}),fi=S("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Id),ye.init(e,t)}),hi=S("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=bd(t)),ye.init(e,t)}),yi=S("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=ld),ye.init(e,t)}),is=S("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=md),ye.init(e,t),e._zod.bag.format="ipv4"}),ns=S("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=fd),ye.init(e,t),e._zod.bag.format="ipv6",e._zod.check=o=>{try{new URL(`http://[${o.value}]`)}catch{o.issues.push({code:"invalid_format",format:"ipv6",input:o.value,inst:e,continue:!t.abort})}}}),as=S("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=hd(t.delimiter)),ye.init(e,t),e._zod.bag.format="mac"}),ss=S("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=yd),ye.init(e,t)}),cs=S("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=gd),ye.init(e,t),e._zod.check=o=>{let i=o.value.split("/");try{if(i.length!==2)throw new Error;let[r,n]=i;if(!n)throw new Error;let a=Number(n);if(`${a}`!==n)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${r}]`)}catch{o.issues.push({code:"invalid_format",format:"cidrv6",input:o.value,inst:e,continue:!t.abort})}}});function Xd(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}s(Xd,"isValidBase64");var ls=S("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=vd),ye.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=o=>{Xd(o.value)||o.issues.push({code:"invalid_format",format:"base64",input:o.value,inst:e,continue:!t.abort})}});function xg(e){if(!Ma.test(e))return!1;let t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),o=t.padEnd(Math.ceil(t.length/4)*4,"=");return Xd(o)}s(xg,"isValidBase64URL");var us=S("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Ma),ye.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=o=>{xg(o.value)||o.issues.push({code:"invalid_format",format:"base64url",input:o.value,inst:e,continue:!t.abort})}}),ds=S("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Pd),ye.init(e,t)});function Tg(e,t=null){try{let o=e.split(".");if(o.length!==3)return!1;let[i]=o;if(!i)return!1;let r=JSON.parse(atob(i));return!("typ"in r&&r?.typ!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}s(Tg,"isValidJWT");var ps=S("$ZodJWT",(e,t)=>{ye.init(e,t),e._zod.check=o=>{Tg(o.value,t.alg)||o.issues.push({code:"invalid_format",format:"jwt",input:o.value,inst:e,continue:!t.abort})}}),ms=S("$ZodCustomStringFormat",(e,t)=>{ye.init(e,t),e._zod.check=o=>{t.fn(o.value)||o.issues.push({code:"invalid_format",format:t.format,input:o.value,inst:e,continue:!t.abort})}}),oo=S("$ZodNumber",(e,t)=>{J.init(e,t),e._zod.pattern=e._zod.bag.pattern??Fa,e._zod.parse=(o,i)=>{if(t.coerce)try{o.value=Number(o.value)}catch{}let r=o.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return o;let n=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return o.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...n?{received:n}:{}}),o}}),gi=S("$ZodNumberFormat",(e,t)=>{Rd.init(e,t),oo.init(e,t)}),br=S("$ZodBoolean",(e,t)=>{J.init(e,t),e._zod.pattern=Ad,e._zod.parse=(o,i)=>{if(t.coerce)try{o.value=!!o.value}catch{}let r=o.value;return typeof r=="boolean"||o.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),o}}),io=S("$ZodBigInt",(e,t)=>{J.init(e,t),e._zod.pattern=xd,e._zod.parse=(o,i)=>{if(t.coerce)try{o.value=BigInt(o.value)}catch{}return typeof o.value=="bigint"||o.issues.push({expected:"bigint",code:"invalid_type",input:o.value,inst:e}),o}}),fs=S("$ZodBigIntFormat",(e,t)=>{Od.init(e,t),io.init(e,t)}),hs=S("$ZodSymbol",(e,t)=>{J.init(e,t),e._zod.parse=(o,i)=>{let r=o.value;return typeof r=="symbol"||o.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),o}}),ys=S("$ZodUndefined",(e,t)=>{J.init(e,t),e._zod.pattern=Ed,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(o,i)=>{let r=o.value;return typeof r>"u"||o.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),o}}),gs=S("$ZodNull",(e,t)=>{J.init(e,t),e._zod.pattern=wd,e._zod.values=new Set([null]),e._zod.parse=(o,i)=>{let r=o.value;return r===null||o.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),o}}),vi=S("$ZodAny",(e,t)=>{J.init(e,t),e._zod.parse=o=>o}),Pi=S("$ZodUnknown",(e,t)=>{J.init(e,t),e._zod.parse=o=>o}),vs=S("$ZodNever",(e,t)=>{J.init(e,t),e._zod.parse=(o,i)=>(o.issues.push({expected:"never",code:"invalid_type",input:o.value,inst:e}),o)}),Ii=S("$ZodVoid",(e,t)=>{J.init(e,t),e._zod.parse=(o,i)=>{let r=o.value;return typeof r>"u"||o.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),o}}),bi=S("$ZodDate",(e,t)=>{J.init(e,t),e._zod.parse=(o,i)=>{if(t.coerce)try{o.value=new Date(o.value)}catch{}let r=o.value,n=r instanceof Date;return n&&!Number.isNaN(r.getTime())||o.issues.push({expected:"date",code:"invalid_type",input:r,...n?{received:"Invalid Date"}:{},inst:e}),o}});function mg(e,t,o){e.issues.length&&t.issues.push(...ut(o,e.issues)),t.value[o]=e.value}s(mg,"handleArrayResult");var Si=S("$ZodArray",(e,t)=>{J.init(e,t),e._zod.parse=(o,i)=>{let r=o.value;if(!Array.isArray(r))return o.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),o;o.value=Array(r.length);let n=[];for(let a=0;a<r.length;a++){let c=r[a],l=t.element._zod.run({value:c,issues:[]},i);l instanceof Promise?n.push(l.then(d=>mg(d,o,a))):mg(l,o,a)}return n.length?Promise.all(n).then(()=>o):o}});function Va(e,t,o,i,r){if(e.issues.length){if(r&&!(o in i))return;t.issues.push(...ut(o,e.issues))}e.value===void 0?o in i&&(t.value[o]=void 0):t.value[o]=e.value}s(Va,"handlePropertyResult");function Ag(e){let t=Object.keys(e.shape);for(let i of t)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);let o=ed(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(o)}}s(Ag,"normalizeDef");function wg(e,t,o,i,r,n){let a=[],c=r.keySet,l=r.catchall._zod,d=l.def.type,f=l.optout==="optional";for(let b in t){if(c.has(b))continue;if(d==="never"){a.push(b);continue}let P=l.run({value:t[b],issues:[]},i);P instanceof Promise?e.push(P.then(m=>Va(m,o,b,t,f))):Va(P,o,b,t,f)}return a.length&&o.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:n}),e.length?Promise.all(e).then(()=>o):o}s(wg,"handleCatchall");var Ps=S("$ZodObject",(e,t)=>{if(J.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let c=t.shape;Object.defineProperty(t,"shape",{get:s(()=>{let l={...c};return Object.defineProperty(t,"shape",{value:l}),l},"get")})}let i=Zr(()=>Ag(t));ie(e._zod,"propValues",()=>{let c=t.shape,l={};for(let d in c){let f=c[d]._zod;if(f.values){l[d]??(l[d]=new Set);for(let b of f.values)l[d].add(b)}}return l});let r=gr,n=t.catchall,a;e._zod.parse=(c,l)=>{a??(a=i.value);let d=c.value;if(!r(d))return c.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),c;c.value={};let f=[],b=a.shape;for(let P of a.keys){let m=b[P],I=m._zod.optout==="optional",x=m._zod.run({value:d[P],issues:[]},l);x instanceof Promise?f.push(x.then(T=>Va(T,c,P,d,I))):Va(x,c,P,d,I)}return n?wg(f,d,c,l,i.value,e):f.length?Promise.all(f).then(()=>c):c}}),Yd=S("$ZodObjectJIT",(e,t)=>{Ps.init(e,t);let o=e._zod.parse,i=Zr(()=>Ag(t)),r=s(P=>{let m=new di(["shape","payload","ctx"]),I=i.value,x=s(H=>{let pe=Aa(H);return`shape[${pe}]._zod.run({ value: input[${pe}], issues: [] }, ctx)`},"parseStr");m.write("const input = payload.value;");let T=Object.create(null),k=0;for(let H of I.keys)T[H]=`key_${k++}`;m.write("const newResult = {};");for(let H of I.keys){let pe=T[H],he=Aa(H),De=P[H]?._zod?.optout==="optional";m.write(`const ${pe} = ${x(H)};`),De?m.write(`
|
|
9
|
+
if (${pe}.issues.length) {
|
|
10
|
+
if (${he} in input) {
|
|
11
|
+
payload.issues = payload.issues.concat(${pe}.issues.map(iss => ({
|
|
12
12
|
...iss,
|
|
13
|
-
path: iss.path ? [${
|
|
13
|
+
path: iss.path ? [${he}, ...iss.path] : [${he}]
|
|
14
14
|
})));
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
if (${
|
|
19
|
-
if (${
|
|
20
|
-
newResult[${
|
|
18
|
+
if (${pe}.value === undefined) {
|
|
19
|
+
if (${he} in input) {
|
|
20
|
+
newResult[${he}] = undefined;
|
|
21
21
|
}
|
|
22
22
|
} else {
|
|
23
|
-
newResult[${
|
|
23
|
+
newResult[${he}] = ${pe}.value;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
`):
|
|
27
|
-
if (${
|
|
28
|
-
payload.issues = payload.issues.concat(${
|
|
26
|
+
`):m.write(`
|
|
27
|
+
if (${pe}.issues.length) {
|
|
28
|
+
payload.issues = payload.issues.concat(${pe}.issues.map(iss => ({
|
|
29
29
|
...iss,
|
|
30
|
-
path: iss.path ? [${
|
|
30
|
+
path: iss.path ? [${he}, ...iss.path] : [${he}]
|
|
31
31
|
})));
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
if (${
|
|
35
|
-
if (${
|
|
36
|
-
newResult[${
|
|
34
|
+
if (${pe}.value === undefined) {
|
|
35
|
+
if (${he} in input) {
|
|
36
|
+
newResult[${he}] = undefined;
|
|
37
37
|
}
|
|
38
38
|
} else {
|
|
39
|
-
newResult[${
|
|
39
|
+
newResult[${he}] = ${pe}.value;
|
|
40
40
|
}
|
|
41
41
|
|
|
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>
|
|
42
|
+
`)}m.write("payload.value = newResult;"),m.write("return payload;");let C=m.compile();return(H,pe)=>C(P,H,pe)},"generateFastpass"),n,a=gr,c=!ei.jitless,d=c&&Yu.value,f=t.catchall,b;e._zod.parse=(P,m)=>{b??(b=i.value);let I=P.value;return a(I)?c&&d&&m?.async===!1&&m.jitless!==!0?(n||(n=r(t.shape)),P=n(P,m),f?wg([],I,P,m,b,e):P):o(P,m):(P.issues.push({expected:"object",code:"invalid_type",input:I,inst:e}),P)}});function fg(e,t,o,i){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let r=e.filter(n=>!Yt(n));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:o,errors:e.map(n=>n.issues.map(a=>rt(a,i,we())))}),t)}s(fg,"handleUnionResults");var Sr=S("$ZodUnion",(e,t)=>{J.init(e,t),ie(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),ie(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),ie(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),ie(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){let r=t.options.map(n=>n._zod.pattern);return new RegExp(`^(${r.map(n=>ii(n.source)).join("|")})$`)}});let o=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(r,n)=>{if(o)return i(r,n);let a=!1,c=[];for(let l of t.options){let d=l._zod.run({value:r.value,issues:[]},n);if(d instanceof Promise)c.push(d),a=!0;else{if(d.issues.length===0)return d;c.push(d)}}return a?Promise.all(c).then(l=>fg(l,r,e,n)):fg(c,r,e,n)}});function hg(e,t,o,i){let r=e.filter(n=>n.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:o,errors:e.map(n=>n.issues.map(a=>rt(a,i,we())))}):t.issues.push({code:"invalid_union",input:t.value,inst:o,errors:[],inclusive:!1}),t)}s(hg,"handleExclusiveUnionResults");var Is=S("$ZodXor",(e,t)=>{Sr.init(e,t),t.inclusive=!1;let o=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(r,n)=>{if(o)return i(r,n);let a=!1,c=[];for(let l of t.options){let d=l._zod.run({value:r.value,issues:[]},n);d instanceof Promise?(c.push(d),a=!0):c.push(d)}return a?Promise.all(c).then(l=>hg(l,r,e,n)):hg(c,r,e,n)}}),_i=S("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Sr.init(e,t);let o=e._zod.parse;ie(e._zod,"propValues",()=>{let r={};for(let n of t.options){let a=n._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[c,l]of Object.entries(a)){r[c]||(r[c]=new Set);for(let d of l)r[c].add(d)}}return r});let i=Zr(()=>{let r=t.options,n=new Map;for(let a of r){let c=a._zod.propValues?.[t.discriminator];if(!c||c.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let l of c){if(n.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);n.set(l,a)}}return n});e._zod.parse=(r,n)=>{let a=r.value;if(!gr(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;let c=i.value.get(a?.[t.discriminator]);return c?c._zod.run(r,n):t.unionFallback?o(r,n):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),r)}}),bs=S("$ZodIntersection",(e,t)=>{J.init(e,t),e._zod.parse=(o,i)=>{let r=o.value,n=t.left._zod.run({value:r,issues:[]},i),a=t.right._zod.run({value:r,issues:[]},i);return n instanceof Promise||a instanceof Promise?Promise.all([n,a]).then(([l,d])=>yg(o,l,d)):yg(o,n,a)}});function Jd(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(Xt(e)&&Xt(t)){let o=Object.keys(t),i=Object.keys(e).filter(n=>o.indexOf(n)!==-1),r={...e,...t};for(let n of i){let a=Jd(e[n],t[n]);if(!a.valid)return{valid:!1,mergeErrorPath:[n,...a.mergeErrorPath]};r[n]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let o=[];for(let i=0;i<e.length;i++){let r=e[i],n=t[i],a=Jd(r,n);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};o.push(a.data)}return{valid:!0,data:o}}return{valid:!1,mergeErrorPath:[]}}s(Jd,"mergeValues");function yg(e,t,o){let i=new Map,r;for(let c of t.issues)if(c.code==="unrecognized_keys"){r??(r=c);for(let l of c.keys)i.has(l)||i.set(l,{}),i.get(l).l=!0}else e.issues.push(c);for(let c of o.issues)if(c.code==="unrecognized_keys")for(let l of c.keys)i.has(l)||i.set(l,{}),i.get(l).r=!0;else e.issues.push(c);let n=[...i].filter(([,c])=>c.l&&c.r).map(([c])=>c);if(n.length&&r&&e.issues.push({...r,keys:n}),Yt(e))return e;let a=Jd(t.value,o.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}s(yg,"handleIntersectionResults");var xi=S("$ZodTuple",(e,t)=>{J.init(e,t);let o=t.items;e._zod.parse=(i,r)=>{let n=i.value;if(!Array.isArray(n))return i.issues.push({input:n,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];let a=[],c=[...o].reverse().findIndex(f=>f._zod.optin!=="optional"),l=c===-1?0:o.length-c;if(!t.rest){let f=n.length>o.length,b=n.length<l-1;if(f||b)return i.issues.push({...f?{code:"too_big",maximum:o.length,inclusive:!0}:{code:"too_small",minimum:o.length},input:n,inst:e,origin:"array"}),i}let d=-1;for(let f of o){if(d++,d>=n.length&&d>=l)continue;let b=f._zod.run({value:n[d],issues:[]},r);b instanceof Promise?a.push(b.then(P=>Ba(P,i,d))):Ba(b,i,d)}if(t.rest){let f=n.slice(o.length);for(let b of f){d++;let P=t.rest._zod.run({value:b,issues:[]},r);P instanceof Promise?a.push(P.then(m=>Ba(m,i,d))):Ba(P,i,d)}}return a.length?Promise.all(a).then(()=>i):i}});function Ba(e,t,o){e.issues.length&&t.issues.push(...ut(o,e.issues)),t.value[o]=e.value}s(Ba,"handleTupleResult");var Ti=S("$ZodRecord",(e,t)=>{J.init(e,t),e._zod.parse=(o,i)=>{let r=o.value;if(!Xt(r))return o.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),o;let n=[],a=t.keyType._zod.values;if(a){o.value={};let c=new Set;for(let d of a)if(typeof d=="string"||typeof d=="number"||typeof d=="symbol"){c.add(typeof d=="number"?d.toString():d);let f=t.valueType._zod.run({value:r[d],issues:[]},i);f instanceof Promise?n.push(f.then(b=>{b.issues.length&&o.issues.push(...ut(d,b.issues)),o.value[d]=b.value})):(f.issues.length&&o.issues.push(...ut(d,f.issues)),o.value[d]=f.value)}let l;for(let d in r)c.has(d)||(l=l??[],l.push(d));l&&l.length>0&&o.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:l})}else{o.value={};for(let c of Reflect.ownKeys(r)){if(c==="__proto__")continue;let l=t.keyType._zod.run({value:c,issues:[]},i);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof c=="string"&&Fa.test(c)&&l.issues.length){let b=t.keyType._zod.run({value:Number(c),issues:[]},i);if(b instanceof Promise)throw new Error("Async schemas not supported in object keys currently");b.issues.length===0&&(l=b)}if(l.issues.length){t.mode==="loose"?o.value[c]=r[c]:o.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(b=>rt(b,i,we())),input:c,path:[c],inst:e});continue}let f=t.valueType._zod.run({value:r[c],issues:[]},i);f instanceof Promise?n.push(f.then(b=>{b.issues.length&&o.issues.push(...ut(c,b.issues)),o.value[l.value]=b.value})):(f.issues.length&&o.issues.push(...ut(c,f.issues)),o.value[l.value]=f.value)}}return n.length?Promise.all(n).then(()=>o):o}}),Ss=S("$ZodMap",(e,t)=>{J.init(e,t),e._zod.parse=(o,i)=>{let r=o.value;if(!(r instanceof Map))return o.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),o;let n=[];o.value=new Map;for(let[a,c]of r){let l=t.keyType._zod.run({value:a,issues:[]},i),d=t.valueType._zod.run({value:c,issues:[]},i);l instanceof Promise||d instanceof Promise?n.push(Promise.all([l,d]).then(([f,b])=>{gg(f,b,o,a,r,e,i)})):gg(l,d,o,a,r,e,i)}return n.length?Promise.all(n).then(()=>o):o}});function gg(e,t,o,i,r,n,a){e.issues.length&&(ni.has(typeof i)?o.issues.push(...ut(i,e.issues)):o.issues.push({code:"invalid_key",origin:"map",input:r,inst:n,issues:e.issues.map(c=>rt(c,a,we()))})),t.issues.length&&(ni.has(typeof i)?o.issues.push(...ut(i,t.issues)):o.issues.push({origin:"map",code:"invalid_element",input:r,inst:n,key:i,issues:t.issues.map(c=>rt(c,a,we()))})),o.value.set(e.value,t.value)}s(gg,"handleMapResult");var _s=S("$ZodSet",(e,t)=>{J.init(e,t),e._zod.parse=(o,i)=>{let r=o.value;if(!(r instanceof Set))return o.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),o;let n=[];o.value=new Set;for(let a of r){let c=t.valueType._zod.run({value:a,issues:[]},i);c instanceof Promise?n.push(c.then(l=>vg(l,o))):vg(c,o)}return n.length?Promise.all(n).then(()=>o):o}});function vg(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}s(vg,"handleSetResult");var Ai=S("$ZodEnum",(e,t)=>{J.init(e,t);let o=oi(t.entries),i=new Set(o);e._zod.values=i,e._zod.pattern=new RegExp(`^(${o.filter(r=>ni.has(typeof r)).map(r=>typeof r=="string"?ht(r):r.toString()).join("|")})$`),e._zod.parse=(r,n)=>{let a=r.value;return i.has(a)||r.issues.push({code:"invalid_value",values:o,input:a,inst:e}),r}}),wi=S("$ZodLiteral",(e,t)=>{if(J.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let o=new Set(t.values);e._zod.values=o,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?ht(i):i?ht(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,r)=>{let n=i.value;return o.has(n)||i.issues.push({code:"invalid_value",values:t.values,input:n,inst:e}),i}}),xs=S("$ZodFile",(e,t)=>{J.init(e,t),e._zod.parse=(o,i)=>{let r=o.value;return r instanceof File||o.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),o}}),Ei=S("$ZodTransform",(e,t)=>{J.init(e,t),e._zod.parse=(o,i)=>{if(i.direction==="backward")throw new Wt(e.constructor.name);let r=t.transform(o.value,o);if(i.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=>(o.value=a,o));if(r instanceof Promise)throw new St;return o.value=r,o}});function Pg(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}s(Pg,"handleOptionalResult");var no=S("$ZodOptional",(e,t)=>{J.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ie(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ie(e._zod,"pattern",()=>{let o=t.innerType._zod.pattern;return o?new RegExp(`^(${ii(o.source)})?$`):void 0}),e._zod.parse=(o,i)=>{if(t.innerType._zod.optin==="optional"){let r=t.innerType._zod.run(o,i);return r instanceof Promise?r.then(n=>Pg(n,o.value)):Pg(r,o.value)}return o.value===void 0?o:t.innerType._zod.run(o,i)}}),Ts=S("$ZodExactOptional",(e,t)=>{no.init(e,t),ie(e._zod,"values",()=>t.innerType._zod.values),ie(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(o,i)=>t.innerType._zod.run(o,i)}),ki=S("$ZodNullable",(e,t)=>{J.init(e,t),ie(e._zod,"optin",()=>t.innerType._zod.optin),ie(e._zod,"optout",()=>t.innerType._zod.optout),ie(e._zod,"pattern",()=>{let o=t.innerType._zod.pattern;return o?new RegExp(`^(${ii(o.source)}|null)$`):void 0}),ie(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(o,i)=>o.value===null?o:t.innerType._zod.run(o,i)}),As=S("$ZodDefault",(e,t)=>{J.init(e,t),e._zod.optin="optional",ie(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(o,i)=>{if(i.direction==="backward")return t.innerType._zod.run(o,i);if(o.value===void 0)return o.value=t.defaultValue,o;let r=t.innerType._zod.run(o,i);return r instanceof Promise?r.then(n=>Ig(n,t)):Ig(r,t)}});function Ig(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}s(Ig,"handleDefaultResult");var ws=S("$ZodPrefault",(e,t)=>{J.init(e,t),e._zod.optin="optional",ie(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(o,i)=>(i.direction==="backward"||o.value===void 0&&(o.value=t.defaultValue),t.innerType._zod.run(o,i))}),Es=S("$ZodNonOptional",(e,t)=>{J.init(e,t),ie(e._zod,"values",()=>{let o=t.innerType._zod.values;return o?new Set([...o].filter(i=>i!==void 0)):void 0}),e._zod.parse=(o,i)=>{let r=t.innerType._zod.run(o,i);return r instanceof Promise?r.then(n=>bg(n,e)):bg(r,e)}});function bg(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(bg,"handleNonOptionalResult");var ks=S("$ZodSuccess",(e,t)=>{J.init(e,t),e._zod.parse=(o,i)=>{if(i.direction==="backward")throw new Wt("ZodSuccess");let r=t.innerType._zod.run(o,i);return r instanceof Promise?r.then(n=>(o.value=n.issues.length===0,o)):(o.value=r.issues.length===0,o)}}),Cs=S("$ZodCatch",(e,t)=>{J.init(e,t),ie(e._zod,"optin",()=>t.innerType._zod.optin),ie(e._zod,"optout",()=>t.innerType._zod.optout),ie(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(o,i)=>{if(i.direction==="backward")return t.innerType._zod.run(o,i);let r=t.innerType._zod.run(o,i);return r instanceof Promise?r.then(n=>(o.value=n.value,n.issues.length&&(o.value=t.catchValue({...o,error:{issues:n.issues.map(a=>rt(a,i,we()))},input:o.value}),o.issues=[]),o)):(o.value=r.value,r.issues.length&&(o.value=t.catchValue({...o,error:{issues:r.issues.map(n=>rt(n,i,we()))},input:o.value}),o.issues=[]),o)}}),Ds=S("$ZodNaN",(e,t)=>{J.init(e,t),e._zod.parse=(o,i)=>((typeof o.value!="number"||!Number.isNaN(o.value))&&o.issues.push({input:o.value,inst:e,expected:"nan",code:"invalid_type"}),o)}),Ci=S("$ZodPipe",(e,t)=>{J.init(e,t),ie(e._zod,"values",()=>t.in._zod.values),ie(e._zod,"optin",()=>t.in._zod.optin),ie(e._zod,"optout",()=>t.out._zod.optout),ie(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(o,i)=>{if(i.direction==="backward"){let n=t.out._zod.run(o,i);return n instanceof Promise?n.then(a=>Ha(a,t.in,i)):Ha(n,t.in,i)}let r=t.in._zod.run(o,i);return r instanceof Promise?r.then(n=>Ha(n,t.out,i)):Ha(r,t.out,i)}});function Ha(e,t,o){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},o)}s(Ha,"handlePipeResult");var ao=S("$ZodCodec",(e,t)=>{J.init(e,t),ie(e._zod,"values",()=>t.in._zod.values),ie(e._zod,"optin",()=>t.in._zod.optin),ie(e._zod,"optout",()=>t.out._zod.optout),ie(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(o,i)=>{if((i.direction||"forward")==="forward"){let n=t.in._zod.run(o,i);return n instanceof Promise?n.then(a=>Ga(a,t,i)):Ga(n,t,i)}else{let n=t.out._zod.run(o,i);return n instanceof Promise?n.then(a=>Ga(a,t,i)):Ga(n,t,i)}}});function Ga(e,t,o){if(e.issues.length)return e.aborted=!0,e;if((o.direction||"forward")==="forward"){let r=t.transform(e.value,e);return r instanceof Promise?r.then(n=>Za(e,n,t.out,o)):Za(e,r,t.out,o)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(n=>Za(e,n,t.in,o)):Za(e,r,t.in,o)}}s(Ga,"handleCodecAResult");function Za(e,t,o,i){return e.issues.length?(e.aborted=!0,e):o._zod.run({value:t,issues:e.issues},i)}s(Za,"handleCodecTxResult");var Rs=S("$ZodReadonly",(e,t)=>{J.init(e,t),ie(e._zod,"propValues",()=>t.innerType._zod.propValues),ie(e._zod,"values",()=>t.innerType._zod.values),ie(e._zod,"optin",()=>t.innerType?._zod?.optin),ie(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(o,i)=>{if(i.direction==="backward")return t.innerType._zod.run(o,i);let r=t.innerType._zod.run(o,i);return r instanceof Promise?r.then(Sg):Sg(r)}});function Sg(e){return e.value=Object.freeze(e.value),e}s(Sg,"handleReadonlyResult");var Os=S("$ZodTemplateLiteral",(e,t)=>{J.init(e,t);let o=[];for(let i of t.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);let r=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${i._zod.traits}`);let n=r.startsWith("^")?1:0,a=r.endsWith("$")?r.length-1:r.length;o.push(r.slice(n,a))}else if(i===null||Qu.has(typeof i))o.push(ht(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${o.join("")}$`),e._zod.parse=(i,r)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"string",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),i)}),$s=S("$ZodFunction",(e,t)=>(J.init(e,t),e._def=t,e._zod.def=t,e.implement=o=>{if(typeof o!="function")throw new Error("implement() must be called with a function");return function(...i){let r=e._def.input?vr(e._def.input,i):i,n=Reflect.apply(o,this,r);return e._def.output?vr(e._def.output,n):n}},e.implementAsync=o=>{if(typeof o!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){let r=e._def.input?await Pr(e._def.input,i):i,n=await Reflect.apply(o,this,r);return e._def.output?await Pr(e._def.output,n):n}},e._zod.parse=(o,i)=>typeof o.value!="function"?(o.issues.push({code:"invalid_type",expected:"function",input:o.value,inst:e}),o):(e._def.output&&e._def.output._zod.def.type==="promise"?o.value=e.implementAsync(o.value):o.value=e.implement(o.value),o),e.input=(...o)=>{let i=e.constructor;return Array.isArray(o[0])?new i({type:"function",input:new xi({type:"tuple",items:o[0],rest:o[1]}),output:e._def.output}):new i({type:"function",input:o[0],output:e._def.output})},e.output=o=>{let i=e.constructor;return new i({type:"function",input:e._def.input,output:o})},e)),Ns=S("$ZodPromise",(e,t)=>{J.init(e,t),e._zod.parse=(o,i)=>Promise.resolve(o.value).then(r=>t.innerType._zod.run({value:r,issues:[]},i))}),Ls=S("$ZodLazy",(e,t)=>{J.init(e,t),ie(e._zod,"innerType",()=>t.getter()),ie(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),ie(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),ie(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),ie(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(o,i)=>e._zod.innerType._zod.run(o,i)}),Di=S("$ZodCustom",(e,t)=>{ve.init(e,t),J.init(e,t),e._zod.parse=(o,i)=>o,e._zod.check=o=>{let i=o.value,r=t.fn(i);if(r instanceof Promise)return r.then(n=>_g(n,o,i,e));_g(r,o,i,e)}});function _g(e,t,o,i){if(!e){let r={code:"custom",input:o,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(r.params=i._zod.def.params),t.issues.push(Vr(r))}}s(_g,"handleRefineResult");var co={};lt(co,{ar:()=>Qd,az:()=>ep,be:()=>tp,bg:()=>rp,ca:()=>op,cs:()=>ip,da:()=>np,de:()=>ap,en:()=>Ri,eo:()=>sp,es:()=>cp,fa:()=>lp,fi:()=>up,fr:()=>dp,frCA:()=>pp,he:()=>mp,hu:()=>fp,hy:()=>hp,id:()=>yp,is:()=>gp,it:()=>vp,ja:()=>Pp,ka:()=>Ip,kh:()=>bp,km:()=>Oi,ko:()=>Sp,lt:()=>_p,mk:()=>xp,ms:()=>Tp,nl:()=>Ap,no:()=>wp,ota:()=>Ep,pl:()=>Cp,ps:()=>kp,pt:()=>Dp,ru:()=>Rp,sl:()=>Op,sv:()=>$p,ta:()=>Np,th:()=>Lp,tr:()=>zp,ua:()=>Up,uk:()=>Ni,ur:()=>Mp,uz:()=>Fp,vi:()=>jp,yo:()=>Hp,zhCN:()=>qp,zhTW:()=>Bp});var oD=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 o={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[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 ${c}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${n}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${c}`}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 ${O(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: ${E(r.values,"|")}`;case"too_big":{let n=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"} ${n} ${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"} ${n} ${r.maximum.toString()}`}case"too_small":{let n=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 ${n} ${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 ${n} ${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.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}"`:n.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 "${n.suffix}"`:n.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 "${n.includes}"`:n.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 ${n.pattern}`:`${o[n.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":""}: ${E(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 Qd(){return{localeError:oD()}}s(Qd,"default");var iD=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 o={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[a]??a;return/^[A-Z]/.test(r.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${r.expected}, daxil olan ${c}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${n}, daxil olan ${c}`}case"invalid_value":return r.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${O(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${E(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${n}${r.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${n}${r.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${n.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:n.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${n.suffix}" il\u0259 bitm\u0259lidir`:n.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${n.includes}" daxil olmal\u0131d\u0131r`:n.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${n.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${o[n.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":""}: ${E(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:iD()}}s(ep,"default");function Eg(e,t,o,i){let r=Math.abs(e),n=r%10,a=r%100;return a>=11&&a<=19?i:n===1?t:n>=2&&n<=4?o:i}s(Eg,"getBelarusianPlural");var nD=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 o={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},i={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[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 ${c}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${n}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${c}`}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 ${O(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 ${E(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);if(a){let c=Number(r.maximum),l=Eg(c,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} ${n}${r.maximum.toString()} ${l}`}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 ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);if(a){let c=Number(r.minimum),l=Eg(c,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} ${n}${r.minimum.toString()} ${l}`}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 ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.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 "${n.prefix}"`:n.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 "${n.suffix}"`:n.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 "${n.includes}"`:n.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 ${n.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${o[n.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"}: ${E(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:nD()}}s(tp,"default");var aD=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 o={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[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 ${c}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${n}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${c}`}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 ${O(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 ${E(r.values,"|")}`;case"too_big":{let n=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 ${n}${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 ${n}${r.maximum.toString()}`}case"too_small":{let n=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 ${n}${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 ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;if(n.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 "${n.prefix}"`;if(n.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 "${n.suffix}"`;if(n.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 "${n.includes}"`;if(n.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 ${n.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return n.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),n.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),n.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),n.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),n.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${o[n.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":""}: ${E(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:aD()}}s(rp,"default");var sD=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 o={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[a]??a;return/^[A-Z]/.test(r.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${r.expected}, s'ha rebut ${c}`:`Tipus inv\xE0lid: s'esperava ${n}, s'ha rebut ${c}`}case"invalid_value":return r.values.length===1?`Valor inv\xE0lid: s'esperava ${O(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${E(r.values," o ")}`;case"too_big":{let n=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 ${n} ${r.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${n} ${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(r.origin);return a?`Massa petit: s'esperava que ${r.origin} contingu\xE9s ${n} ${r.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${r.origin} fos ${n} ${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${n.prefix}"`:n.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${n.suffix}"`:n.format==="includes"?`Format inv\xE0lid: ha d'incloure "${n.includes}"`:n.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${n.pattern}`:`Format inv\xE0lid per a ${o[n.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":""}: ${E(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 op(){return{localeError:sD()}}s(op,"default");var cD=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 o={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[a]??a;return/^[A-Z]/.test(r.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${r.expected}, obdr\u017Eeno ${c}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${n}, obdr\u017Eeno ${c}`}case"invalid_value":return r.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${O(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${E(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${n}${r.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${n}${r.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${n.prefix}"`:n.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${n.suffix}"`:n.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${n.includes}"`:n.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${n.pattern}`:`Neplatn\xFD form\xE1t ${o[n.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: ${E(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 ip(){return{localeError:cD()}}s(ip,"default");var lD=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 o={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldigt input: forventede instanceof ${r.expected}, fik ${c}`:`Ugyldigt input: forventede ${n}, fik ${c}`}case"invalid_value":return r.values.length===1?`Ugyldig v\xE6rdi: forventede ${O(r.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${E(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin),c=i[r.origin]??r.origin;return a?`For stor: forventede ${c??"value"} ${a.verb} ${n} ${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${c??"value"} havde ${n} ${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin),c=i[r.origin]??r.origin;return a?`For lille: forventede ${c} ${a.verb} ${n} ${r.minimum.toString()} ${a.unit}`:`For lille: forventede ${c} havde ${n} ${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Ugyldig streng: skal starte med "${n.prefix}"`:n.format==="ends_with"?`Ugyldig streng: skal ende med "${n.suffix}"`:n.format==="includes"?`Ugyldig streng: skal indeholde "${n.includes}"`:n.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${n.pattern}`:`Ugyldig ${o[n.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"}: ${E(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 np(){return{localeError:lD()}}s(np,"default");var uD=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 o={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},i={nan:"NaN",number:"Zahl",array:"Array"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${r.expected}, erhalten ${c}`:`Ung\xFCltige Eingabe: erwartet ${n}, erhalten ${c}`}case"invalid_value":return r.values.length===1?`Ung\xFCltige Eingabe: erwartet ${O(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${E(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${n}${r.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${n}${r.maximum.toString()} ist`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Zu klein: erwartet, dass ${r.origin} ${n}${r.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${n}${r.minimum.toString()} ist`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Ung\xFCltiger String: muss mit "${n.prefix}" beginnen`:n.format==="ends_with"?`Ung\xFCltiger String: muss mit "${n.suffix}" enden`:n.format==="includes"?`Ung\xFCltiger String: muss "${n.includes}" enthalten`:n.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${n.pattern} entsprechen`:`Ung\xFCltig: ${o[n.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"}: ${E(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:uD()}}s(ap,"default");var dD=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 o={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[a]??a;return`Invalid input: expected ${n}, received ${c}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${O(r.values[0])}`:`Invalid option: expected one of ${E(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Too big: expected ${r.origin??"value"} to have ${n}${r.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Too small: expected ${r.origin} to have ${n}${r.minimum.toString()} ${a.unit}`:`Too small: expected ${r.origin} to be ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Invalid string: must start with "${n.prefix}"`:n.format==="ends_with"?`Invalid string: must end with "${n.suffix}"`:n.format==="includes"?`Invalid string: must include "${n.includes}"`:n.format==="regex"?`Invalid string: must match pattern ${n.pattern}`:`Invalid ${o[n.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":""}: ${E(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 Ri(){return{localeError:dD()}}s(Ri,"default");var pD=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 o={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[a]??a;return/^[A-Z]/.test(r.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${r.expected}, ricevi\u011Dis ${c}`:`Nevalida enigo: atendi\u011Dis ${n}, ricevi\u011Dis ${c}`}case"invalid_value":return r.values.length===1?`Nevalida enigo: atendi\u011Dis ${O(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${E(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${n}${r.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Tro malgranda: atendi\u011Dis ke ${r.origin} havu ${n}${r.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${r.origin} estu ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${n.prefix}"`:n.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${n.suffix}"`:n.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${n.includes}"`:n.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${n.pattern}`:`Nevalida ${o[n.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":""}: ${E(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:pD()}}s(sp,"default");var mD=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 o={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[a]??a;return/^[A-Z]/.test(r.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${r.expected}, recibido ${c}`:`Entrada inv\xE1lida: se esperaba ${n}, recibido ${c}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: se esperaba ${O(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${E(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin),c=i[r.origin]??r.origin;return a?`Demasiado grande: se esperaba que ${c??"valor"} tuviera ${n}${r.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${c??"valor"} fuera ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin),c=i[r.origin]??r.origin;return a?`Demasiado peque\xF1o: se esperaba que ${c} tuviera ${n}${r.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${c} fuera ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${n.prefix}"`:n.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${n.suffix}"`:n.format==="includes"?`Cadena inv\xE1lida: debe incluir "${n.includes}"`:n.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${n.pattern}`:`Inv\xE1lido ${o[n.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":""}: ${E(r.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${i[r.origin]??r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${i[r.origin]??r.origin}`;default:return"Entrada inv\xE1lida"}}},"error");function cp(){return{localeError:mD()}}s(cp,"default");var fD=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 o={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[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 ${c} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${n} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${c} \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 ${O(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 ${E(r.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let n=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 ${n}${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 ${n}${r.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${n}${r.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${n}${r.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${n.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:n.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${n.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:n.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${n.includes}" \u0628\u0627\u0634\u062F`:n.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${n.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${o[n.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: ${E(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 lp(){return{localeError:fD()}}s(lp,"default");var hD=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 o={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[a]??a;return/^[A-Z]/.test(r.expected)?`Virheellinen tyyppi: odotettiin instanceof ${r.expected}, oli ${c}`:`Virheellinen tyyppi: odotettiin ${n}, oli ${c}`}case"invalid_value":return r.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${O(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${E(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${n}${r.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${n}${r.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${n.prefix}"`:n.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${n.suffix}"`:n.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${n.includes}"`:n.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${n.pattern}`:`Virheellinen ${o[n.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"}: ${E(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 up(){return{localeError:hD()}}s(up,"default");var yD=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 o={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={nan:"NaN",number:"nombre",array:"tableau"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : instanceof ${r.expected} attendu, ${c} re\xE7u`:`Entr\xE9e invalide : ${n} attendu, ${c} re\xE7u`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : ${O(r.values[0])} attendu`:`Option invalide : une valeur parmi ${E(r.values,"|")} attendue`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Trop grand : ${r.origin??"valeur"} doit ${a.verb} ${n}${r.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${r.origin??"valeur"} doit \xEAtre ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Trop petit : ${r.origin} doit ${a.verb} ${n}${r.minimum.toString()} ${a.unit}`:`Trop petit : ${r.origin} doit \xEAtre ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${n.prefix}"`:n.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${n.suffix}"`:n.format==="includes"?`Cha\xEEne invalide : doit inclure "${n.includes}"`:n.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${n.pattern}`:`${o[n.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":""} : ${E(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:yD()}}s(dp,"default");var gD=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 o={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : attendu instanceof ${r.expected}, re\xE7u ${c}`:`Entr\xE9e invalide : attendu ${n}, re\xE7u ${c}`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : attendu ${O(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${E(r.values,"|")}`;case"too_big":{let n=r.inclusive?"\u2264":"<",a=t(r.origin);return a?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${n}${r.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?"\u2265":">",a=t(r.origin);return a?`Trop petit : attendu que ${r.origin} ait ${n}${r.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${r.origin} soit ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${n.prefix}"`:n.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${n.suffix}"`:n.format==="includes"?`Cha\xEEne invalide : doit inclure "${n.includes}"`:n.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${n.pattern}`:`${o[n.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":""} : ${E(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:gD()}}s(pp,"default");var vD=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"}},o=s(d=>d?e[d]:void 0,"typeEntry"),i=s(d=>{let f=o(d);return f?f.label:d??e.unknown.label},"typeLabel"),r=s(d=>`\u05D4${i(d)}`,"withDefinite"),n=s(d=>(o(d)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA","verbFor"),a=s(d=>d?t[d]??null:null,"getSizing"),c={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},l={nan:"NaN"};return d=>{switch(d.code){case"invalid_type":{let f=d.expected,b=l[f??""]??i(f),P=L(d.input),m=l[P]??e[P]?.label??P;return/^[A-Z]/.test(d.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${d.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${m}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${b}, \u05D4\u05EA\u05E7\u05D1\u05DC ${m}`}case"invalid_value":{if(d.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${O(d.values[0])}`;let f=d.values.map(m=>O(m));if(d.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${f[0]} \u05D0\u05D5 ${f[1]}`;let b=f[f.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 ${f.slice(0,-1).join(", ")} \u05D0\u05D5 ${b}`}case"too_big":{let f=a(d.origin),b=r(d.origin??"value");if(d.origin==="string")return`${f?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${b} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${d.maximum.toString()} ${f?.unit??""} ${d.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(d.origin==="number"){let I=d.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${d.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${d.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${b} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${I}`}if(d.origin==="array"||d.origin==="set"){let I=d.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",x=d.inclusive?`${d.maximum} ${f?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${d.maximum} ${f?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${b} ${I} \u05DC\u05D4\u05DB\u05D9\u05DC ${x}`.trim()}let P=d.inclusive?"<=":"<",m=n(d.origin??"value");return f?.unit?`${f.longLabel} \u05DE\u05D3\u05D9: ${b} ${m} ${P}${d.maximum.toString()} ${f.unit}`:`${f?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${b} ${m} ${P}${d.maximum.toString()}`}case"too_small":{let f=a(d.origin),b=r(d.origin??"value");if(d.origin==="string")return`${f?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${b} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${d.minimum.toString()} ${f?.unit??""} ${d.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(d.origin==="number"){let I=d.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${d.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${d.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${b} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${I}`}if(d.origin==="array"||d.origin==="set"){let I=d.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(d.minimum===1&&d.inclusive){let T=(d.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${b} ${I} \u05DC\u05D4\u05DB\u05D9\u05DC ${T}`}let x=d.inclusive?`${d.minimum} ${f?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${d.minimum} ${f?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${b} ${I} \u05DC\u05D4\u05DB\u05D9\u05DC ${x}`.trim()}let P=d.inclusive?">=":">",m=n(d.origin??"value");return f?.unit?`${f.shortLabel} \u05DE\u05D3\u05D9: ${b} ${m} ${P}${d.minimum.toString()} ${f.unit}`:`${f?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${b} ${m} ${P}${d.minimum.toString()}`}case"invalid_format":{let f=d;if(f.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${f.prefix}"`;if(f.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${f.suffix}"`;if(f.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${f.includes}"`;if(f.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 ${f.pattern}`;let b=c[f.format],P=b?.label??f.format,I=(b?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${P} \u05DC\u05D0 ${I}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${d.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${d.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${d.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${E(d.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${r(d.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}},"error");function mp(){return{localeError:vD()}}s(mp,"default");var PD=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 o={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},i={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[a]??a;return/^[A-Z]/.test(r.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${r.expected}, a kapott \xE9rt\xE9k ${c}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${n}, a kapott \xE9rt\xE9k ${c}`}case"invalid_value":return r.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${O(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${E(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xFAl nagy: ${r.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${n}${r.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${r.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} m\xE9rete t\xFAl kicsi ${n}${r.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} t\xFAl kicsi ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\xC9rv\xE9nytelen string: "${n.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:n.format==="ends_with"?`\xC9rv\xE9nytelen string: "${n.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:n.format==="includes"?`\xC9rv\xE9nytelen string: "${n.includes}" \xE9rt\xE9ket kell tartalmaznia`:n.format==="regex"?`\xC9rv\xE9nytelen string: ${n.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${o[n.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":""}: ${E(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:PD()}}s(fp,"default");function kg(e,t,o){return Math.abs(e)===1?t:o}s(kg,"getArmenianPlural");function so(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],o=e[e.length-1];return e+(t.includes(o)?"\u0576":"\u0568")}s(so,"withDefiniteArticle");var ID=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 o={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},i={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[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 ${c}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${n}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${c}`}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 ${O(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 ${E(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);if(a){let c=Number(r.maximum),l=kg(c,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 ${so(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${n}${r.maximum.toString()} ${l}`}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 ${so(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);if(a){let c=Number(r.minimum),l=kg(c,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 ${so(r.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${n}${r.minimum.toString()} ${l}`}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 ${so(r.origin)} \u056C\u056B\u0576\u056B ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${n.prefix}"-\u0578\u057E`:n.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${n.suffix}"-\u0578\u057E`:n.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${n.includes}"`:n.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 ${n.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${o[n.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":""}. ${E(r.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${so(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 ${so(r.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}},"error");function hp(){return{localeError:ID()}}s(hp,"default");var bD=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 o={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak valid: diharapkan instanceof ${r.expected}, diterima ${c}`:`Input tidak valid: diharapkan ${n}, diterima ${c}`}case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${O(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${E(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${n}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: diharapkan ${r.origin} memiliki ${n}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`String tidak valid: harus dimulai dengan "${n.prefix}"`:n.format==="ends_with"?`String tidak valid: harus berakhir dengan "${n.suffix}"`:n.format==="includes"?`String tidak valid: harus menyertakan "${n.includes}"`:n.format==="regex"?`String tidak valid: harus sesuai pola ${n.pattern}`:`${o[n.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":""}: ${E(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 yp(){return{localeError:bD()}}s(yp,"default");var SD=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 o={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},i={nan:"NaN",number:"n\xFAmer",array:"fylki"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[a]??a;return/^[A-Z]/.test(r.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${c} \xFEar sem \xE1 a\xF0 vera instanceof ${r.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${c} \xFEar sem \xE1 a\xF0 vera ${n}`}case"invalid_value":return r.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${O(r.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${E(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} hafi ${n}${r.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} s\xE9 ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} hafi ${n}${r.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} s\xE9 ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${n.prefix}"`:n.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${n.suffix}"`:n.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${n.includes}"`:n.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${n.pattern}`:`Rangt ${o[n.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"}: ${E(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:SD()}}s(gp,"default");var _D=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 o={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"numero",array:"vettore"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[a]??a;return/^[A-Z]/.test(r.expected)?`Input non valido: atteso instanceof ${r.expected}, ricevuto ${c}`:`Input non valido: atteso ${n}, ricevuto ${c}`}case"invalid_value":return r.values.length===1?`Input non valido: atteso ${O(r.values[0])}`:`Opzione non valida: atteso uno tra ${E(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Troppo grande: ${r.origin??"valore"} deve avere ${n}${r.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Troppo piccolo: ${r.origin} deve avere ${n}${r.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${r.origin} deve essere ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Stringa non valida: deve iniziare con "${n.prefix}"`:n.format==="ends_with"?`Stringa non valida: deve terminare con "${n.suffix}"`:n.format==="includes"?`Stringa non valida: deve includere "${n.includes}"`:n.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${n.pattern}`:`Invalid ${o[n.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"}: ${E(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:_D()}}s(vp,"default");var xD=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 o={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},i={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[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${c}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${n}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${c}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return r.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${O(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${E(r.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let n=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"}${n}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${n}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let n=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}${n}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${n}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${n.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:n.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${n.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:n.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${n.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:n.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${n.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${o[n.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":""}: ${E(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 Pp(){return{localeError:xD()}}s(Pp,"default");var TD=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 o={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \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"},i={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 n=i[r.expected]??r.expected,a=L(r.input),c=i[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 ${c}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${c}`}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 ${O(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 ${E(r.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let n=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} ${n}${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 ${n}${r.maximum.toString()}`}case"too_small":{let n=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} ${n}${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 ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.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 "${n.prefix}"-\u10D8\u10D7`:n.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 "${n.suffix}"-\u10D8\u10D7`:n.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 "${n.includes}"-\u10E1`:n.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 ${n.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${o[n.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"}: ${E(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 Ip(){return{localeError:TD()}}s(Ip,"default");var AD=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 o={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},i={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[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 ${c}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${c}`}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 ${O(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 ${E(r.values,"|")}`;case"too_big":{let n=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"} ${n} ${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"} ${n} ${r.maximum.toString()}`}case"too_small":{let n=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} ${n} ${r.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${n} ${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.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 "${n.prefix}"`:n.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 "${n.suffix}"`:n.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 "${n.includes}"`:n.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 ${n.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${o[n.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 ${E(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 Oi(){return{localeError:AD()}}s(Oi,"default");function bp(){return Oi()}s(bp,"default");var wD=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 o={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[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 ${c}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${n}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${c}\uC785\uB2C8\uB2E4`}case"invalid_value":return r.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${O(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${E(r.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let n=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=n==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",c=t(r.origin),l=c?.unit??"\uC694\uC18C";return c?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${l} ${n}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()} ${n}${a}`}case"too_small":{let n=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=n==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",c=t(r.origin),l=c?.unit??"\uC694\uC18C";return c?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${l} ${n}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()} ${n}${a}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${n.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:n.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${n.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:n.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${n.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:n.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${n.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${o[n.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: ${E(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 Sp(){return{localeError:wD()}}s(Sp,"default");var $i=s(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalizeFirstCharacter");function Cg(e){let t=Math.abs(e),o=t%10,i=t%100;return i>=11&&i<=19||o===0?"many":o===1?"one":"few"}s(Cg,"getUnitTypeFromNumber");var ED=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,n,a,c){let l=e[r]??null;return l===null?l:{unit:l.unit[n],verb:l.verb[c][a?"inclusive":"notInclusive"]}}s(t,"getSizing");let o={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},i={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[a]??a;return/^[A-Z]/.test(r.expected)?`Gautas tipas ${c}, o tik\u0117tasi - instanceof ${r.expected}`:`Gautas tipas ${c}, o tik\u0117tasi - ${n}`}case"invalid_value":return r.values.length===1?`Privalo b\u016Bti ${O(r.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${E(r.values,"|")} pasirinkim\u0173`;case"too_big":{let n=i[r.origin]??r.origin,a=t(r.origin,Cg(Number(r.maximum)),r.inclusive??!1,"smaller");if(a?.verb)return`${$i(n??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.maximum.toString()} ${a.unit??"element\u0173"}`;let c=r.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${$i(n??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${c} ${r.maximum.toString()} ${a?.unit}`}case"too_small":{let n=i[r.origin]??r.origin,a=t(r.origin,Cg(Number(r.minimum)),r.inclusive??!1,"bigger");if(a?.verb)return`${$i(n??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.minimum.toString()} ${a.unit??"element\u0173"}`;let c=r.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${$i(n??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${c} ${r.minimum.toString()} ${a?.unit}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${n.prefix}"`:n.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${n.suffix}"`:n.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${n.includes}"`:n.format==="regex"?`Eilut\u0117 privalo atitikti ${n.pattern}`:`Neteisingas ${o[n.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"}: ${E(r.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let n=i[r.origin]??r.origin;return`${$i(n??r.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}},"error");function _p(){return{localeError:ED()}}s(_p,"default");var kD=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 o={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},i={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[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 ${c}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${c}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${O(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 ${E(r.values,"|")}`;case"too_big":{let n=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 ${n}${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 ${n}${r.maximum.toString()}`}case"too_small":{let n=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 ${n}${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 ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.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 "${n.prefix}"`:n.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 "${n.suffix}"`:n.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 "${n.includes}"`:n.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 ${n.pattern}`:`Invalid ${o[n.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"}: ${E(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 xp(){return{localeError:kD()}}s(xp,"default");var CD=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 o={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"nombor"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak sah: dijangka instanceof ${r.expected}, diterima ${c}`:`Input tidak sah: dijangka ${n}, diterima ${c}`}case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${O(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${E(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: dijangka ${r.origin??"nilai"} ${a.verb} ${n}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: dijangka ${r.origin} ${a.verb} ${n}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`String tidak sah: mesti bermula dengan "${n.prefix}"`:n.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${n.suffix}"`:n.format==="includes"?`String tidak sah: mesti mengandungi "${n.includes}"`:n.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${n.pattern}`:`${o[n.format]??r.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${E(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:CD()}}s(Tp,"default");var DD=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 o={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},i={nan:"NaN",number:"getal"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ongeldige invoer: verwacht instanceof ${r.expected}, ontving ${c}`:`Ongeldige invoer: verwacht ${n}, ontving ${c}`}case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${O(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${E(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin),c=r.origin==="date"?"laat":r.origin==="string"?"lang":"groot";return a?`Te ${c}: verwacht dat ${r.origin??"waarde"} ${n}${r.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${c}: verwacht dat ${r.origin??"waarde"} ${n}${r.maximum.toString()} is`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin),c=r.origin==="date"?"vroeg":r.origin==="string"?"kort":"klein";return a?`Te ${c}: verwacht dat ${r.origin} ${n}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${c}: verwacht dat ${r.origin} ${n}${r.minimum.toString()} is`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Ongeldige tekst: moet met "${n.prefix}" beginnen`:n.format==="ends_with"?`Ongeldige tekst: moet op "${n.suffix}" eindigen`:n.format==="includes"?`Ongeldige tekst: moet "${n.includes}" bevatten`:n.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${n.pattern}`:`Ongeldig: ${o[n.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":""}: ${E(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 Ap(){return{localeError:DD()}}s(Ap,"default");var RD=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 o={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tall",array:"liste"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldig input: forventet instanceof ${r.expected}, fikk ${c}`:`Ugyldig input: forventet ${n}, fikk ${c}`}case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${O(r.values[0])}`:`Ugyldig valg: forventet en av ${E(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${n}${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`For lite(n): forventet ${r.origin} til \xE5 ha ${n}${r.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${r.origin} til \xE5 ha ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${n.prefix}"`:n.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${n.suffix}"`:n.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${n.includes}"`:n.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${n.pattern}`:`Ugyldig ${o[n.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"}: ${E(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 wp(){return{localeError:RD()}}s(wp,"default");var OD=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 o={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[a]??a;return/^[A-Z]/.test(r.expected)?`F\xE2sit giren: umulan instanceof ${r.expected}, al\u0131nan ${c}`:`F\xE2sit giren: umulan ${n}, al\u0131nan ${c}`}case"invalid_value":return r.values.length===1?`F\xE2sit giren: umulan ${O(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${E(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${n}${r.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${n}${r.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${n}${r.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${n}${r.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let n=r;return n.format==="starts_with"?`F\xE2sit metin: "${n.prefix}" ile ba\u015Flamal\u0131.`:n.format==="ends_with"?`F\xE2sit metin: "${n.suffix}" ile bitmeli.`:n.format==="includes"?`F\xE2sit metin: "${n.includes}" ihtiv\xE2 etmeli.`:n.format==="regex"?`F\xE2sit metin: ${n.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${o[n.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":""}: ${E(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 Ep(){return{localeError:OD()}}s(Ep,"default");var $D=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 o={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[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 ${c} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${n} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${c} \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 ${O(r.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${E(r.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let n=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 ${n}${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 ${n}${r.maximum.toString()} \u0648\u064A`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${n}${r.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${n}${r.minimum.toString()} \u0648\u064A`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${n.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:n.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${n.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:n.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${n.includes}" \u0648\u0644\u0631\u064A`:n.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${n.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${o[n.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"}: ${E(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 kp(){return{localeError:$D()}}s(kp,"default");var ND=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 o={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},i={nan:"NaN",number:"liczba",array:"tablica"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[a]??a;return/^[A-Z]/.test(r.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${r.expected}, otrzymano ${c}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${n}, otrzymano ${c}`}case"invalid_value":return r.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${O(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${E(r.values,"|")}`;case"too_big":{let n=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 ${n}${r.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${n}${r.maximum.toString()}`}case"too_small":{let n=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 ${n}${r.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${n.prefix}"`:n.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${n.suffix}"`:n.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${n.includes}"`:n.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${n.pattern}`:`Nieprawid\u0142ow(y/a/e) ${o[n.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":""}: ${E(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 Cp(){return{localeError:ND()}}s(Cp,"default");var LD=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 o={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",number:"n\xFAmero",null:"nulo"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[a]??a;return/^[A-Z]/.test(r.expected)?`Tipo inv\xE1lido: esperado instanceof ${r.expected}, recebido ${c}`:`Tipo inv\xE1lido: esperado ${n}, recebido ${c}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: esperado ${O(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${E(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${n}${r.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Muito pequeno: esperado que ${r.origin} tivesse ${n}${r.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${n.prefix}"`:n.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${n.suffix}"`:n.format==="includes"?`Texto inv\xE1lido: deve incluir "${n.includes}"`:n.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${n.pattern}`:`${o[n.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":""}: ${E(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 Dp(){return{localeError:LD()}}s(Dp,"default");function Dg(e,t,o,i){let r=Math.abs(e),n=r%10,a=r%100;return a>=11&&a<=19?i:n===1?t:n>=2&&n<=4?o:i}s(Dg,"getRussianPlural");var zD=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 o={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[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 ${c}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${n}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${c}`}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 ${O(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 ${E(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);if(a){let c=Number(r.maximum),l=Dg(c,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 ${n}${r.maximum.toString()} ${l}`}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 ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);if(a){let c=Number(r.minimum),l=Dg(c,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 ${n}${r.minimum.toString()} ${l}`}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 ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.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 "${n.prefix}"`:n.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 "${n.suffix}"`:n.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 "${n.includes}"`:n.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 ${n.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${o[n.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":""}: ${E(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:zD()}}s(Rp,"default");var UD=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 o={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},i={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[a]??a;return/^[A-Z]/.test(r.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${r.expected}, prejeto ${c}`:`Neveljaven vnos: pri\u010Dakovano ${n}, prejeto ${c}`}case"invalid_value":return r.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${O(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${E(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${n}${r.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${r.origin} imelo ${n}${r.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${r.origin} ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${n.prefix}"`:n.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${n.suffix}"`:n.format==="includes"?`Neveljaven niz: mora vsebovati "${n.includes}"`:n.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${n.pattern}`:`Neveljaven ${o[n.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"}: ${E(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 Op(){return{localeError:UD()}}s(Op,"default");var MD=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 o={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},i={nan:"NaN",number:"antal",array:"lista"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${r.expected}, fick ${c}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${n}, fick ${c}`}case"invalid_value":return r.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${O(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${E(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${n}${r.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${r.origin??"v\xE4rdet"} att ha ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${n}${r.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${n.prefix}"`:n.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${n.suffix}"`:n.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${n.includes}"`:n.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${n.pattern}"`:`Ogiltig(t) ${o[n.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"}: ${E(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 $p(){return{localeError:MD()}}s($p,"default");var FD=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 o={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[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 ${c}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${c}`}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 ${O(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 ${E(r.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let n=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"} ${n}${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"} ${n}${r.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let n=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} ${n}${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} ${n}${r.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${n.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:n.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${n.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:n.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${n.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:n.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${n.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${o[n.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":""}: ${E(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 Np(){return{localeError:FD()}}s(Np,"default");var jD=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 o={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},i={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[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 ${c}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${n} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${c}`}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 ${O(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 ${E(r.values,"|")}`;case"too_big":{let n=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${n} ${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${n} ${r.maximum.toString()}`}case"too_small":{let n=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${n} ${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${n} ${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.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 "${n.prefix}"`:n.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 "${n.suffix}"`:n.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 "${n.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:n.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 ${n.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${o[n.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: ${E(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 Lp(){return{localeError:jD()}}s(Lp,"default");var qD=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 o={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${r.expected}, al\u0131nan ${c}`:`Ge\xE7ersiz de\u011Fer: beklenen ${n}, al\u0131nan ${c}`}case"invalid_value":return r.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${O(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${E(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${n}${r.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${n}${r.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Ge\xE7ersiz metin: "${n.prefix}" ile ba\u015Flamal\u0131`:n.format==="ends_with"?`Ge\xE7ersiz metin: "${n.suffix}" ile bitmeli`:n.format==="includes"?`Ge\xE7ersiz metin: "${n.includes}" i\xE7ermeli`:n.format==="regex"?`Ge\xE7ersiz metin: ${n.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${o[n.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":""}: ${E(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 zp(){return{localeError:qD()}}s(zp,"default");var BD=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 o={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[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 ${c}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${n}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${c}`}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 ${O(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 ${E(r.values,"|")}`;case"too_big":{let n=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} ${n}${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 ${n}${r.maximum.toString()}`}case"too_small":{let n=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} ${n}${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 ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.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 "${n.prefix}"`:n.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 "${n.suffix}"`:n.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 "${n.includes}"`:n.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 ${n.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${o[n.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":""}: ${E(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 Ni(){return{localeError:BD()}}s(Ni,"default");function Up(){return Ni()}s(Up,"default");var HD=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 o={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},i={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[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 ${c} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${n} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${c} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return r.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${O(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${E(r.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${n}${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 ${n}${r.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u06D2 ${n}${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 ${n}${r.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${n.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:n.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${n.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:n.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${n.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:n.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${n.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${o[n.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":""}: ${E(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:HD()}}s(Mp,"default");var GD=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 o={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[a]??a;return/^[A-Z]/.test(r.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${r.expected}, qabul qilingan ${c}`:`Noto\u2018g\u2018ri kirish: kutilgan ${n}, qabul qilingan ${c}`}case"invalid_value":return r.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${O(r.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${E(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Juda katta: kutilgan ${r.origin??"qiymat"} ${n}${r.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${r.origin??"qiymat"} ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Juda kichik: kutilgan ${r.origin} ${n}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${r.origin} ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${n.prefix}" bilan boshlanishi kerak`:n.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${n.suffix}" bilan tugashi kerak`:n.format==="includes"?`Noto\u2018g\u2018ri satr: "${n.includes}" ni o\u2018z ichiga olishi kerak`:n.format==="regex"?`Noto\u2018g\u2018ri satr: ${n.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${o[n.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":""}: ${E(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 Fp(){return{localeError:GD()}}s(Fp,"default");var ZD=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 o={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},i={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[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 ${c}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${n}, nh\u1EADn \u0111\u01B0\u1EE3c ${c}`}case"invalid_value":return r.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${O(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 ${E(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${n}${r.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${a.verb} ${n}${r.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${n.prefix}"`:n.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${n.suffix}"`:n.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${n.includes}"`:n.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${n.pattern}`:`${o[n.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: ${E(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:ZD()}}s(jp,"default");var VD=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 o={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},i={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${r.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${c}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${n}\uFF0C\u5B9E\u9645\u63A5\u6536 ${c}`}case"invalid_value":return r.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${O(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${E(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${n}${r.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${n}${r.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${n.prefix}" \u5F00\u5934`:n.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${n.suffix}" \u7ED3\u5C3E`:n.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${n.includes}"`:n.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${n.pattern}`:`\u65E0\u6548${o[n.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): ${E(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 qp(){return{localeError:VD()}}s(qp,"default");var WD=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 o={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[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 ${c}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${n}\uFF0C\u4F46\u6536\u5230 ${c}`}case"invalid_value":return r.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${O(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${E(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${n}${r.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${n}${r.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${n.prefix}" \u958B\u982D`:n.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${n.suffix}" \u7D50\u5C3E`:n.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${n.includes}"`:n.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${n.pattern}`:`\u7121\u6548\u7684 ${o[n.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${E(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:WD()}}s(Bp,"default");var KD=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 o={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},i={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return r=>{switch(r.code){case"invalid_type":{let n=i[r.expected]??r.expected,a=L(r.input),c=i[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 ${c}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${n}, \xE0m\u1ECD\u0300 a r\xED ${c}`}case"invalid_value":return r.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${O(r.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${E(r.values,"|")}`;case"too_big":{let n=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} ${n}${r.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${n}${r.maximum}`}case"too_small":{let n=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} ${n}${r.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${n}${r.minimum}`}case"invalid_format":{let n=r;return n.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 "${n.prefix}"`:n.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${n.suffix}"`:n.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${n.includes}"`:n.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${n.pattern}`:`A\u1E63\xEC\u1E63e: ${o[n.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: ${E(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 Hp(){return{localeError:KD()}}s(Hp,"default");var Rg,Us=Symbol("ZodOutput"),Ms=Symbol("ZodInput"),zs=class{static{s(this,"$ZodRegistry")}constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...o){let i=o[0];return this._map.set(t,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let o=this._map.get(t);return o&&typeof o=="object"&&"id"in o&&this._idmap.delete(o.id),this._map.delete(t),this}get(t){let o=t._zod.parent;if(o){let i={...this.get(o)??{}};delete i.id;let r={...i,...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 Li(){return new zs}s(Li,"registry");(Rg=globalThis).__zod_globalRegistry??(Rg.__zod_globalRegistry=Li());var je=globalThis.__zod_globalRegistry;function zi(e,t){return new e({type:"string",...D(t)})}s(zi,"_string");function Ui(e,t){return new e({type:"string",coerce:!0,...D(t)})}s(Ui,"_coercedString");function Mi(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...D(t)})}s(Mi,"_email");function lo(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...D(t)})}s(lo,"_guid");function Fi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...D(t)})}s(Fi,"_uuid");function ji(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...D(t)})}s(ji,"_uuidv4");function qi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...D(t)})}s(qi,"_uuidv6");function Bi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...D(t)})}s(Bi,"_uuidv7");function _r(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...D(t)})}s(_r,"_url");function Hi(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...D(t)})}s(Hi,"_emoji");function Gi(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...D(t)})}s(Gi,"_nanoid");function Zi(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...D(t)})}s(Zi,"_cuid");function Vi(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...D(t)})}s(Vi,"_cuid2");function Wi(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...D(t)})}s(Wi,"_ulid");function Ki(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...D(t)})}s(Ki,"_xid");function Ji(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...D(t)})}s(Ji,"_ksuid");function Xi(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...D(t)})}s(Xi,"_ipv4");function Yi(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...D(t)})}s(Yi,"_ipv6");function Fs(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...D(t)})}s(Fs,"_mac");function Qi(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...D(t)})}s(Qi,"_cidrv4");function en(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...D(t)})}s(en,"_cidrv6");function tn(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...D(t)})}s(tn,"_base64");function rn(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...D(t)})}s(rn,"_base64url");function on(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...D(t)})}s(on,"_e164");function nn(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...D(t)})}s(nn,"_jwt");var js={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function an(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...D(t)})}s(an,"_isoDateTime");function sn(e,t){return new e({type:"string",format:"date",check:"string_format",...D(t)})}s(sn,"_isoDate");function cn(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...D(t)})}s(cn,"_isoTime");function ln(e,t){return new e({type:"string",format:"duration",check:"string_format",...D(t)})}s(ln,"_isoDuration");function un(e,t){return new e({type:"number",checks:[],...D(t)})}s(un,"_number");function dn(e,t){return new e({type:"number",coerce:!0,checks:[],...D(t)})}s(dn,"_coercedNumber");function pn(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...D(t)})}s(pn,"_int");function qs(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...D(t)})}s(qs,"_float32");function Bs(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...D(t)})}s(Bs,"_float64");function Hs(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...D(t)})}s(Hs,"_int32");function Gs(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...D(t)})}s(Gs,"_uint32");function mn(e,t){return new e({type:"boolean",...D(t)})}s(mn,"_boolean");function fn(e,t){return new e({type:"boolean",coerce:!0,...D(t)})}s(fn,"_coercedBoolean");function Zs(e,t){return new e({type:"bigint",...D(t)})}s(Zs,"_bigint");function hn(e,t){return new e({type:"bigint",coerce:!0,...D(t)})}s(hn,"_coercedBigint");function Vs(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...D(t)})}s(Vs,"_int64");function Ws(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...D(t)})}s(Ws,"_uint64");function Ks(e,t){return new e({type:"symbol",...D(t)})}s(Ks,"_symbol");function Js(e,t){return new e({type:"undefined",...D(t)})}s(Js,"_undefined");function Xs(e,t){return new e({type:"null",...D(t)})}s(Xs,"_null");function yn(e){return new e({type:"any"})}s(yn,"_any");function gn(e){return new e({type:"unknown"})}s(gn,"_unknown");function Ys(e,t){return new e({type:"never",...D(t)})}s(Ys,"_never");function vn(e,t){return new e({type:"void",...D(t)})}s(vn,"_void");function Qs(e,t){return new e({type:"date",...D(t)})}s(Qs,"_date");function Pn(e,t){return new e({type:"date",coerce:!0,...D(t)})}s(Pn,"_coercedDate");function ec(e,t){return new e({type:"nan",...D(t)})}s(ec,"_nan");function _t(e,t){return new ja({check:"less_than",...D(t),value:e,inclusive:!1})}s(_t,"_lt");function Xe(e,t){return new ja({check:"less_than",...D(t),value:e,inclusive:!0})}s(Xe,"_lte");function xt(e,t){return new qa({check:"greater_than",...D(t),value:e,inclusive:!1})}s(xt,"_gt");function Le(e,t){return new qa({check:"greater_than",...D(t),value:e,inclusive:!0})}s(Le,"_gte");function In(e){return xt(0,e)}s(In,"_positive");function bn(e){return _t(0,e)}s(bn,"_negative");function Sn(e){return Xe(0,e)}s(Sn,"_nonpositive");function _n(e){return Le(0,e)}s(_n,"_nonnegative");function Ot(e,t){return new Dd({check:"multiple_of",...D(t),value:e})}s(Ot,"_multipleOf");function $t(e,t){return new $d({check:"max_size",...D(t),maximum:e})}s($t,"_maxSize");function Tt(e,t){return new Nd({check:"min_size",...D(t),minimum:e})}s(Tt,"_minSize");function Qt(e,t){return new Ld({check:"size_equals",...D(t),size:e})}s(Qt,"_size");function er(e,t){return new zd({check:"max_length",...D(t),maximum:e})}s(er,"_maxLength");function $e(e,t){return new Ud({check:"min_length",...D(t),minimum:e})}s($e,"_minLength");function tr(e,t){return new Md({check:"length_equals",...D(t),length:e})}s(tr,"_length");function Ge(e,t){return new Fd({check:"string_format",format:"regex",...D(t),pattern:e})}s(Ge,"_regex");function xr(e){return new jd({check:"string_format",format:"lowercase",...D(e)})}s(xr,"_lowercase");function Tr(e){return new qd({check:"string_format",format:"uppercase",...D(e)})}s(Tr,"_uppercase");function Ar(e,t){return new Bd({check:"string_format",format:"includes",...D(t),includes:e})}s(Ar,"_includes");function wr(e,t){return new Hd({check:"string_format",format:"starts_with",...D(t),prefix:e})}s(wr,"_startsWith");function Er(e,t){return new Gd({check:"string_format",format:"ends_with",...D(t),suffix:e})}s(Er,"_endsWith");function xn(e,t,o){return new Zd({check:"property",property:e,schema:t,...D(o)})}s(xn,"_property");function kr(e,t){return new Vd({check:"mime_type",mime:e,...D(t)})}s(kr,"_mime");function yt(e){return new Wd({check:"overwrite",tx:e})}s(yt,"_overwrite");function Cr(e){return yt(t=>t.normalize(e))}s(Cr,"_normalize");function Dr(){return yt(e=>e.trim())}s(Dr,"_trim");function Rr(){return yt(e=>e.toLowerCase())}s(Rr,"_toLowerCase");function Or(){return yt(e=>e.toUpperCase())}s(Or,"_toUpperCase");function uo(){return yt(e=>Xu(e))}s(uo,"_slugify");function Gp(e,t,o){return new e({type:"array",element:t,...D(o)})}s(Gp,"_array");function XD(e,t,o){return new e({type:"union",options:t,...D(o)})}s(XD,"_union");function YD(e,t,o){return new e({type:"union",options:t,inclusive:!1,...D(o)})}s(YD,"_xor");function QD(e,t,o,i){return new e({type:"union",options:o,discriminator:t,...D(i)})}s(QD,"_discriminatedUnion");function eR(e,t,o){return new e({type:"intersection",left:t,right:o})}s(eR,"_intersection");function tR(e,t,o,i){let r=o instanceof J,n=r?i:o,a=r?o:null;return new e({type:"tuple",items:t,rest:a,...D(n)})}s(tR,"_tuple");function rR(e,t,o,i){return new e({type:"record",keyType:t,valueType:o,...D(i)})}s(rR,"_record");function oR(e,t,o,i){return new e({type:"map",keyType:t,valueType:o,...D(i)})}s(oR,"_map");function iR(e,t,o){return new e({type:"set",valueType:t,...D(o)})}s(iR,"_set");function nR(e,t,o){let i=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:i,...D(o)})}s(nR,"_enum");function aR(e,t,o){return new e({type:"enum",entries:t,...D(o)})}s(aR,"_nativeEnum");function sR(e,t,o){return new e({type:"literal",values:Array.isArray(t)?t:[t],...D(o)})}s(sR,"_literal");function tc(e,t){return new e({type:"file",...D(t)})}s(tc,"_file");function cR(e,t){return new e({type:"transform",transform:t})}s(cR,"_transform");function lR(e,t){return new e({type:"optional",innerType:t})}s(lR,"_optional");function uR(e,t){return new e({type:"nullable",innerType:t})}s(uR,"_nullable");function dR(e,t,o){return new e({type:"default",innerType:t,get defaultValue(){return typeof o=="function"?o():Ea(o)}})}s(dR,"_default");function pR(e,t,o){return new e({type:"nonoptional",innerType:t,...D(o)})}s(pR,"_nonoptional");function mR(e,t){return new e({type:"success",innerType:t})}s(mR,"_success");function fR(e,t,o){return new e({type:"catch",innerType:t,catchValue:typeof o=="function"?o:()=>o})}s(fR,"_catch");function hR(e,t,o){return new e({type:"pipe",in:t,out:o})}s(hR,"_pipe");function yR(e,t){return new e({type:"readonly",innerType:t})}s(yR,"_readonly");function gR(e,t,o){return new e({type:"template_literal",parts:t,...D(o)})}s(gR,"_templateLiteral");function vR(e,t){return new e({type:"lazy",getter:t})}s(vR,"_lazy");function PR(e,t){return new e({type:"promise",innerType:t})}s(PR,"_promise");function Tn(e,t,o){let i=D(o);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}s(Tn,"_custom");function An(e,t,o){return new e({type:"custom",check:"custom",fn:t,...D(o)})}s(An,"_refine");function rc(e){let t=Og(o=>(o.addIssue=i=>{if(typeof i=="string")o.issues.push(Vr(i,o.value,t._zod.def));else{let r=i;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=o.value),r.inst??(r.inst=t),r.continue??(r.continue=!t._zod.def.abort),o.issues.push(Vr(r))}},e(o.value,o)));return t}s(rc,"_superRefine");function Og(e,t){let o=new ve({check:"custom",...D(t)});return o._zod.check=e,o}s(Og,"_check");function oc(e){let t=new ve({check:"describe"});return t._zod.onattach=[o=>{let i=je.get(o)??{};je.add(o,{...i,description:e})}],t._zod.check=()=>{},t}s(oc,"describe");function ic(e){let t=new ve({check:"meta"});return t._zod.onattach=[o=>{let i=je.get(o)??{};je.add(o,{...i,...e})}],t._zod.check=()=>{},t}s(ic,"meta");function nc(e,t){let o=D(t),i=o.truthy??["true","1","yes","on","y","enabled"],r=o.falsy??["false","0","no","off","n","disabled"];o.case!=="sensitive"&&(i=i.map(m=>typeof m=="string"?m.toLowerCase():m),r=r.map(m=>typeof m=="string"?m.toLowerCase():m));let n=new Set(i),a=new Set(r),c=e.Codec??ao,l=e.Boolean??br,d=e.String??Rt,f=new d({type:"string",error:o.error}),b=new l({type:"boolean",error:o.error}),P=new c({type:"pipe",in:f,out:b,transform:s(((m,I)=>{let x=m;return o.case!=="sensitive"&&(x=x.toLowerCase()),n.has(x)?!0:a.has(x)?!1:(I.issues.push({code:"invalid_value",expected:"stringbool",values:[...n,...a],input:I.value,inst:P,continue:!1}),{})}),"transform"),reverseTransform:s(((m,I)=>m===!0?i[0]||"true":r[0]||"false"),"reverseTransform"),error:o.error});return P}s(nc,"_stringbool");function $r(e,t,o,i={}){let r=D(i),n={...D(i),check:"string_format",type:"string",format:t,fn:typeof o=="function"?o:c=>o.test(c),...r};return o instanceof RegExp&&(n.pattern=o),new e(n)}s($r,"_stringFormat");function rr(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??je,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(rr,"initializeContext");function ge(e,t,o={path:[],schemaPath:[]}){var i;let r=e._zod.def,n=t.seen.get(e);if(n)return n.count++,o.schemaPath.includes(e)&&(n.cycle=o.path),n.schema;let a={schema:{},count:1,cycle:void 0,path:o.path};t.seen.set(e,a);let c=e._zod.toJSONSchema?.();if(c)a.schema=c;else{let f={...o,schemaPath:[...o.schemaPath,e],path:o.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,f);else{let P=a.schema,m=t.processors[r.type];if(!m)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);m(e,t,P,f)}let b=e._zod.parent;b&&(a.ref||(a.ref=b),ge(b,t,f),t.seen.get(b).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&Object.assign(a.schema,l),t.io==="input"&&Ye(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}s(ge,"process");function or(e,t){let o=e.seen.get(t);if(!o)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=new Map;for(let a of e.seen.entries()){let c=e.metadataRegistry.get(a[0])?.id;if(c){let l=i.get(c);if(l&&l!==a[0])throw new Error(`Duplicate schema id "${c}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(c,a[0])}}let r=s(a=>{let c=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let b=e.external.registry.get(a[0])?.id,P=e.external.uri??(I=>I);if(b)return{ref:P(b)};let m=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=m,{defId:m,ref:`${P("__shared")}#/${c}/${m}`}}if(a[1]===o)return{ref:"#"};let d=`#/${c}/`,f=a[1].schema.id??`__schema${e.counter++}`;return{defId:f,ref:d+f}},"makeURI"),n=s(a=>{if(a[1].schema.$ref)return;let c=a[1],{ref:l,defId:d}=r(a);c.def={...c.schema},d&&(c.defId=d);let f=c.schema;for(let b in f)delete f[b];f.$ref=l},"extractToDef");if(e.cycles==="throw")for(let a of e.seen.entries()){let c=a[1];if(c.cycle)throw new Error(`Cycle detected: #/${c.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 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=`
|
|
44
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let c=a[1];if(t===a[0]){n(a);continue}if(e.external){let d=e.external.registry.get(a[0])?.id;if(t!==a[0]&&d){n(a);continue}}if(e.metadataRegistry.get(a[0])?.id){n(a);continue}if(c.cycle){n(a);continue}if(c.count>1&&e.reused==="ref"){n(a);continue}}}s(or,"extractDefs");function ir(e,t){let o=e.seen.get(t);if(!o)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=s(a=>{let c=e.seen.get(a);if(c.ref===null)return;let l=c.def??c.schema,d={...l},f=c.ref;if(c.ref=null,f){i(f);let P=e.seen.get(f),m=P.schema;if(m.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(m)):Object.assign(l,m),Object.assign(l,d),a._zod.parent===f)for(let x in l)x==="$ref"||x==="allOf"||x in d||delete l[x];if(m.$ref&&P.def)for(let x in l)x==="$ref"||x==="allOf"||x in P.def&&JSON.stringify(l[x])===JSON.stringify(P.def[x])&&delete l[x]}let b=a._zod.parent;if(b&&b!==f){i(b);let P=e.seen.get(b);if(P?.schema.$ref&&(l.$ref=P.schema.$ref,P.def))for(let m in l)m==="$ref"||m==="allOf"||m in P.def&&JSON.stringify(l[m])===JSON.stringify(P.def[m])&&delete l[m]}e.override({zodSchema:a,jsonSchema:l,path:c.path??[]})},"flattenRef");for(let a of[...e.seen.entries()].reverse())i(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,o.def??o.schema);let n=e.external?.defs??{};for(let a of e.seen.entries()){let c=a[1];c.def&&c.defId&&(n[c.defId]=c.def)}e.external||Object.keys(n).length>0&&(e.target==="draft-2020-12"?r.$defs=n:r.definitions=n);try{let a=JSON.parse(JSON.stringify(r));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:po(t,"input",e.processors),output:po(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}s(ir,"finalize");function Ye(e,t){let o=t??{seen:new Set};if(o.seen.has(e))return!1;o.seen.add(e);let i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return Ye(i.element,o);if(i.type==="set")return Ye(i.valueType,o);if(i.type==="lazy")return Ye(i.getter(),o);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return Ye(i.innerType,o);if(i.type==="intersection")return Ye(i.left,o)||Ye(i.right,o);if(i.type==="record"||i.type==="map")return Ye(i.keyType,o)||Ye(i.valueType,o);if(i.type==="pipe")return Ye(i.in,o)||Ye(i.out,o);if(i.type==="object"){for(let r in i.shape)if(Ye(i.shape[r],o))return!0;return!1}if(i.type==="union"){for(let r of i.options)if(Ye(r,o))return!0;return!1}if(i.type==="tuple"){for(let r of i.items)if(Ye(r,o))return!0;return!!(i.rest&&Ye(i.rest,o))}return!1}s(Ye,"isTransforming");var Zp=s((e,t={})=>o=>{let i=rr({...o,processors:t});return ge(e,i),or(i,e),ir(i,e)},"createToJSONSchemaMethod"),po=s((e,t,o={})=>i=>{let{libraryOptions:r,target:n}=i??{},a=rr({...r??{},target:n,io:t,processors:o});return ge(e,a),or(a,e),ir(a,e)},"createStandardJSONSchemaMethod");var IR={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Vp=s((e,t,o,i)=>{let r=o;r.type="string";let{minimum:n,maximum:a,format:c,patterns:l,contentEncoding:d}=e._zod.bag;if(typeof n=="number"&&(r.minLength=n),typeof a=="number"&&(r.maxLength=a),c&&(r.format=IR[c]??c,r.format===""&&delete r.format,c==="time"&&delete r.format),d&&(r.contentEncoding=d),l&&l.size>0){let f=[...l];f.length===1?r.pattern=f[0].source:f.length>1&&(r.allOf=[...f.map(b=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:b.source}))])}},"stringProcessor"),Wp=s((e,t,o,i)=>{let r=o,{minimum:n,maximum:a,format:c,multipleOf:l,exclusiveMaximum:d,exclusiveMinimum:f}=e._zod.bag;typeof c=="string"&&c.includes("int")?r.type="integer":r.type="number",typeof f=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.minimum=f,r.exclusiveMinimum=!0):r.exclusiveMinimum=f),typeof n=="number"&&(r.minimum=n,typeof f=="number"&&t.target!=="draft-04"&&(f>=n?delete r.minimum:delete r.exclusiveMinimum)),typeof d=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.maximum=d,r.exclusiveMaximum=!0):r.exclusiveMaximum=d),typeof a=="number"&&(r.maximum=a,typeof d=="number"&&t.target!=="draft-04"&&(d<=a?delete r.maximum:delete r.exclusiveMaximum)),typeof l=="number"&&(r.multipleOf=l)},"numberProcessor"),Kp=s((e,t,o,i)=>{o.type="boolean"},"booleanProcessor"),Jp=s((e,t,o,i)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},"bigintProcessor"),Xp=s((e,t,o,i)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},"symbolProcessor"),Yp=s((e,t,o,i)=>{t.target==="openapi-3.0"?(o.type="string",o.nullable=!0,o.enum=[null]):o.type="null"},"nullProcessor"),Qp=s((e,t,o,i)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},"undefinedProcessor"),em=s((e,t,o,i)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},"voidProcessor"),tm=s((e,t,o,i)=>{o.not={}},"neverProcessor"),rm=s((e,t,o,i)=>{},"anyProcessor"),om=s((e,t,o,i)=>{},"unknownProcessor"),im=s((e,t,o,i)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},"dateProcessor"),nm=s((e,t,o,i)=>{let r=e._zod.def,n=oi(r.entries);n.every(a=>typeof a=="number")&&(o.type="number"),n.every(a=>typeof a=="string")&&(o.type="string"),o.enum=n},"enumProcessor"),am=s((e,t,o,i)=>{let r=e._zod.def,n=[];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");n.push(Number(a))}else n.push(a);if(n.length!==0)if(n.length===1){let a=n[0];o.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?o.enum=[a]:o.const=a}else n.every(a=>typeof a=="number")&&(o.type="number"),n.every(a=>typeof a=="string")&&(o.type="string"),n.every(a=>typeof a=="boolean")&&(o.type="boolean"),n.every(a=>a===null)&&(o.type="null"),o.enum=n},"literalProcessor"),sm=s((e,t,o,i)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},"nanProcessor"),cm=s((e,t,o,i)=>{let r=o,n=e._zod.pattern;if(!n)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=n.source},"templateLiteralProcessor"),lm=s((e,t,o,i)=>{let r=o,n={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:c,mime:l}=e._zod.bag;a!==void 0&&(n.minLength=a),c!==void 0&&(n.maxLength=c),l?l.length===1?(n.contentMediaType=l[0],Object.assign(r,n)):(Object.assign(r,n),r.anyOf=l.map(d=>({contentMediaType:d}))):Object.assign(r,n)},"fileProcessor"),um=s((e,t,o,i)=>{o.type="boolean"},"successProcessor"),dm=s((e,t,o,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},"customProcessor"),pm=s((e,t,o,i)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},"functionProcessor"),mm=s((e,t,o,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},"transformProcessor"),fm=s((e,t,o,i)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},"mapProcessor"),hm=s((e,t,o,i)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},"setProcessor"),ym=s((e,t,o,i)=>{let r=o,n=e._zod.def,{minimum:a,maximum:c}=e._zod.bag;typeof a=="number"&&(r.minItems=a),typeof c=="number"&&(r.maxItems=c),r.type="array",r.items=ge(n.element,t,{...i,path:[...i.path,"items"]})},"arrayProcessor"),gm=s((e,t,o,i)=>{let r=o,n=e._zod.def;r.type="object",r.properties={};let a=n.shape;for(let d in a)r.properties[d]=ge(a[d],t,{...i,path:[...i.path,"properties",d]});let c=new Set(Object.keys(a)),l=new Set([...c].filter(d=>{let f=n.shape[d]._zod;return t.io==="input"?f.optin===void 0:f.optout===void 0}));l.size>0&&(r.required=Array.from(l)),n.catchall?._zod.def.type==="never"?r.additionalProperties=!1:n.catchall?n.catchall&&(r.additionalProperties=ge(n.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},"objectProcessor"),sc=s((e,t,o,i)=>{let r=e._zod.def,n=r.inclusive===!1,a=r.options.map((c,l)=>ge(c,t,{...i,path:[...i.path,n?"oneOf":"anyOf",l]}));n?o.oneOf=a:o.anyOf=a},"unionProcessor"),vm=s((e,t,o,i)=>{let r=e._zod.def,n=ge(r.left,t,{...i,path:[...i.path,"allOf",0]}),a=ge(r.right,t,{...i,path:[...i.path,"allOf",1]}),c=s(d=>"allOf"in d&&Object.keys(d).length===1,"isSimpleIntersection"),l=[...c(n)?n.allOf:[n],...c(a)?a.allOf:[a]];o.allOf=l},"intersectionProcessor"),Pm=s((e,t,o,i)=>{let r=o,n=e._zod.def;r.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",c=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",l=n.items.map((P,m)=>ge(P,t,{...i,path:[...i.path,a,m]})),d=n.rest?ge(n.rest,t,{...i,path:[...i.path,c,...t.target==="openapi-3.0"?[n.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=l,d&&(r.items=d)):t.target==="openapi-3.0"?(r.items={anyOf:l},d&&r.items.anyOf.push(d),r.minItems=l.length,d||(r.maxItems=l.length)):(r.items=l,d&&(r.additionalItems=d));let{minimum:f,maximum:b}=e._zod.bag;typeof f=="number"&&(r.minItems=f),typeof b=="number"&&(r.maxItems=b)},"tupleProcessor"),Im=s((e,t,o,i)=>{let r=o,n=e._zod.def;r.type="object";let a=n.keyType,l=a._zod.bag?.patterns;if(n.mode==="loose"&&l&&l.size>0){let f=ge(n.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});r.patternProperties={};for(let b of l)r.patternProperties[b.source]=f}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=ge(n.keyType,t,{...i,path:[...i.path,"propertyNames"]})),r.additionalProperties=ge(n.valueType,t,{...i,path:[...i.path,"additionalProperties"]});let d=a._zod.values;if(d){let f=[...d].filter(b=>typeof b=="string"||typeof b=="number");f.length>0&&(r.required=f)}},"recordProcessor"),bm=s((e,t,o,i)=>{let r=e._zod.def,n=ge(r.innerType,t,i),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,o.nullable=!0):o.anyOf=[n,{type:"null"}]},"nullableProcessor"),Sm=s((e,t,o,i)=>{let r=e._zod.def;ge(r.innerType,t,i);let n=t.seen.get(e);n.ref=r.innerType},"nonoptionalProcessor"),_m=s((e,t,o,i)=>{let r=e._zod.def;ge(r.innerType,t,i);let n=t.seen.get(e);n.ref=r.innerType,o.default=JSON.parse(JSON.stringify(r.defaultValue))},"defaultProcessor"),xm=s((e,t,o,i)=>{let r=e._zod.def;ge(r.innerType,t,i);let n=t.seen.get(e);n.ref=r.innerType,t.io==="input"&&(o._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},"prefaultProcessor"),Tm=s((e,t,o,i)=>{let r=e._zod.def;ge(r.innerType,t,i);let n=t.seen.get(e);n.ref=r.innerType;let a;try{a=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}o.default=a},"catchProcessor"),Am=s((e,t,o,i)=>{let r=e._zod.def,n=t.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;ge(n,t,i);let a=t.seen.get(e);a.ref=n},"pipeProcessor"),wm=s((e,t,o,i)=>{let r=e._zod.def;ge(r.innerType,t,i);let n=t.seen.get(e);n.ref=r.innerType,o.readOnly=!0},"readonlyProcessor"),Em=s((e,t,o,i)=>{let r=e._zod.def;ge(r.innerType,t,i);let n=t.seen.get(e);n.ref=r.innerType},"promiseProcessor"),cc=s((e,t,o,i)=>{let r=e._zod.def;ge(r.innerType,t,i);let n=t.seen.get(e);n.ref=r.innerType},"optionalProcessor"),km=s((e,t,o,i)=>{let r=e._zod.innerType;ge(r,t,i);let n=t.seen.get(e);n.ref=r},"lazyProcessor"),ac={string:Vp,number:Wp,boolean:Kp,bigint:Jp,symbol:Xp,null:Yp,undefined:Qp,void:em,never:tm,any:rm,unknown:om,date:im,enum:nm,literal:am,nan:sm,template_literal:cm,file:lm,success:um,custom:dm,function:pm,transform:mm,map:fm,set:hm,array:ym,object:gm,union:sc,intersection:vm,tuple:Pm,record:Im,nullable:bm,nonoptional:Sm,default:_m,prefault:xm,catch:Tm,pipe:Am,readonly:wm,promise:Em,optional:cc,lazy:km};function wn(e,t){if("_idmap"in e){let i=e,r=rr({...t,processors:ac}),n={};for(let l of i._idmap.entries()){let[d,f]=l;ge(f,r)}let a={},c={registry:i,uri:t?.uri,defs:n};r.external=c;for(let l of i._idmap.entries()){let[d,f]=l;or(r,f),a[d]=ir(r,f)}if(Object.keys(n).length>0){let l=r.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[l]:n}}return{schemas:a}}let o=rr({...t,processors:ac});return ge(e,o),or(o,e),ir(o,e)}s(wn,"toJSONSchema");var lc=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 o=t?.target??"draft-2020-12";o==="draft-4"&&(o="draft-04"),o==="draft-7"&&(o="draft-07"),this.ctx=rr({processors:ac,target:o,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,o={path:[],schemaPath:[]}){return ge(t,this.ctx,o)}emit(t,o){o&&(o.cycles&&(this.ctx.cycles=o.cycles),o.reused&&(this.ctx.reused=o.reused),o.external&&(this.ctx.external=o.external)),or(this.ctx,t);let i=ir(this.ctx,t),{"~standard":r,...n}=i;return n}};var $g={};var Ne=S("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");J.init(e,t),e.def=t,e.type=t.type,e.parse=(o,i)=>vr(e,o,i,{callee:e.parse}),e.safeParse=(o,i)=>Qr(e,o,i),e.parseAsync=async(o,i)=>Pr(e,o,i,{callee:e.parseAsync}),e.safeParseAsync=async(o,i)=>to(e,o,i),e.check=(...o)=>e.clone({...t,checks:[...t.checks??[],...o.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]},{parent:!0}),e.with=e.check,e.clone=(o,i)=>Fe(e,o,i),e.brand=()=>e,e.register=((o,i)=>(o.add(e,i),e)),e.apply=o=>o(e)}),uc=S("ZodMiniString",(e,t)=>{Rt.init(e,t),Ne.init(e,t)});function y(e){return zi(uc,e)}s(y,"string");var mo=S("ZodMiniStringFormat",(e,t)=>{ye.init(e,t),uc.init(e,t)});var _R=S("ZodMiniURL",(e,t)=>{pi.init(e,t),mo.init(e,t)});function Ng(e){return _r(_R,e)}s(Ng,"url");var dc=S("ZodMiniNumber",(e,t)=>{oo.init(e,t),Ne.init(e,t)});function qe(e){return un(dc,e)}s(qe,"number");var xR=S("ZodMiniNumberFormat",(e,t)=>{gi.init(e,t),dc.init(e,t)});function Lg(e){return pn(xR,e)}s(Lg,"int");var Cm=S("ZodMiniBoolean",(e,t)=>{br.init(e,t),Ne.init(e,t)});function me(e){return mn(Cm,e)}s(me,"boolean");var zg=S("ZodMiniBigInt",(e,t)=>{io.init(e,t),Ne.init(e,t)});var TR=S("ZodMiniAny",(e,t)=>{vi.init(e,t),Ne.init(e,t)});function En(){return yn(TR)}s(En,"any");var AR=S("ZodMiniUnknown",(e,t)=>{Pi.init(e,t),Ne.init(e,t)});function Q(){return gn(AR)}s(Q,"unknown");var wR=S("ZodMiniVoid",(e,t)=>{Ii.init(e,t),Ne.init(e,t)});function Ug(e){return vn(wR,e)}s(Ug,"_void");var Mg=S("ZodMiniDate",(e,t)=>{bi.init(e,t),Ne.init(e,t)});var ER=S("ZodMiniArray",(e,t)=>{Si.init(e,t),Ne.init(e,t)});function K(e,t){return new ER({type:"array",element:e,...D(t)})}s(K,"array");var kR=S("ZodMiniObject",(e,t)=>{Ps.init(e,t),Ne.init(e,t),ie(e,"shape",()=>t.shape)});function _(e,t){let o={type:"object",shape:e??{},...D(t)};return new kR(o)}s(_,"object");var CR=S("ZodMiniUnion",(e,t)=>{Sr.init(e,t),Ne.init(e,t)});function ne(e,t){return new CR({type:"union",options:e,...D(t)})}s(ne,"union");var DR=S("ZodMiniDiscriminatedUnion",(e,t)=>{_i.init(e,t),Ne.init(e,t)});function nr(e,t,o){return new DR({type:"union",options:t,discriminator:e,...D(o)})}s(nr,"discriminatedUnion");var RR=S("ZodMiniRecord",(e,t)=>{Ti.init(e,t),Ne.init(e,t)});function ee(e,t,o){return new RR({type:"record",keyType:e,valueType:t,...D(o)})}s(ee,"record");var OR=S("ZodMiniEnum",(e,t)=>{Ai.init(e,t),Ne.init(e,t),e.options=Object.values(t.entries)});function W(e,t){let o=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new OR({type:"enum",entries:o,...D(t)})}s(W,"_enum");var $R=S("ZodMiniLiteral",(e,t)=>{wi.init(e,t),Ne.init(e,t)});function V(e,t){return new $R({type:"literal",values:Array.isArray(e)?e:[e],...D(t)})}s(V,"literal");var NR=S("ZodMiniTransform",(e,t)=>{Ei.init(e,t),Ne.init(e,t)});function ar(e){return new NR({type:"transform",transform:e})}s(ar,"transform");var LR=S("ZodMiniOptional",(e,t)=>{no.init(e,t),Ne.init(e,t)});function A(e){return new LR({type:"optional",innerType:e})}s(A,"optional");var zR=S("ZodMiniNullable",(e,t)=>{ki.init(e,t),Ne.init(e,t)});function kn(e){return new zR({type:"nullable",innerType:e})}s(kn,"nullable");var UR=S("ZodMiniPipe",(e,t)=>{Ci.init(e,t),Ne.init(e,t)});function sr(e,t){return new UR({type:"pipe",in:e,out:t})}s(sr,"pipe");var Fg=S("ZodMiniCustom",(e,t)=>{Di.init(e,t),Ne.init(e,t)});function pc(e,t){return Tn(Fg,e??(()=>!0),t)}s(pc,"custom");function Dm(e,t={}){return An(Fg,e,t)}s(Dm,"refine");var mc={};lt(mc,{ZodMiniISODate:()=>Om,ZodMiniISODateTime:()=>Rm,ZodMiniISODuration:()=>Nm,ZodMiniISOTime:()=>$m,date:()=>FR,datetime:()=>MR,duration:()=>qR,time:()=>jR});var Rm=S("ZodMiniISODateTime",(e,t)=>{mi.init(e,t),mo.init(e,t)});function MR(e){return an(Rm,e)}s(MR,"datetime");var Om=S("ZodMiniISODate",(e,t)=>{fi.init(e,t),mo.init(e,t)});function FR(e){return sn(Om,e)}s(FR,"date");var $m=S("ZodMiniISOTime",(e,t)=>{hi.init(e,t),mo.init(e,t)});function jR(e){return cn($m,e)}s(jR,"time");var Nm=S("ZodMiniISODuration",(e,t)=>{yi.init(e,t),mo.init(e,t)});function qR(e){return ln(Nm,e)}s(qR,"duration");var Cn={};lt(Cn,{bigint:()=>ZR,boolean:()=>GR,date:()=>VR,number:()=>HR,string:()=>BR});function BR(e){return Ui(uc,e)}s(BR,"string");function HR(e){return dn(dc,e)}s(HR,"number");function GR(e){return fn(Cm,e)}s(GR,"boolean");function ZR(e){return hn(zg,e)}s(ZR,"bigint");function VR(e){return Pn(Mg,e)}s(VR,"date");var zm=_({retryOnFailure:_({defaultValue:A(me()),hide:A(me())}),continueOnFailure:_({defaultValue:A(me()),hide:A(me())})}),Lm=class{constructor(t,o,i,r,n,a,c,l,d,f,b,P,m){this.name=t;this.displayName=o;this.description=i;this.props=r;this.propertyGroups=n;this.run=a;this.test=c;this.requireAuth=l;this.errorHandlingOptions=d;this.outputSchema=f;this.audience=b;this.aiMetadata=P;this.classification=m}static{s(this,"IAction")}},h=s(e=>new Lm(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 de=_({displayName:y(),description:A(y()),advanced:A(me()),width:A(W(["half","full"])),icon:A(y()),placeholder:A(y())}),re=s((e,t)=>_({type:V(t),required:me(),defaultValue:A(En())}),"TPropertyValue");var pt=_({...de.shape,...re(y(),"SHORT_TEXT").shape}),Nt=_({...de.shape,...re(y(),"LONG_TEXT").shape});var qg=_({label:y(),value:Q(),description:A(y()),icon:A(y())}),fc=_({disabled:A(me()),placeholder:A(y()),options:K(qg)});var KR=W(["cards"]),mt=_({...de.shape,options:fc,display:A(KR),...re(Q(),"STATIC_DROPDOWN").shape}),Lt=_({...de.shape,options:fc,...re(K(Q()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var Um=_({...de.shape,...re(Q(),"DROPDOWN").shape,refreshers:K(y())}),Dn=_({...de.shape,...re(K(Q()),"MULTI_SELECT_DROPDOWN").shape,refreshers:K(y())});var zt=_({...de.shape,reveals:A(K(y())),...re(me(),"CHECKBOX").shape});var Ut=_({...de.shape,display:A(W(["stepper"])),min:A(qe()),max:A(qe()),step:A(qe()),...re(qe(),"NUMBER").shape});var Rn=_({...de.shape,streaming:A(me()),...re(Q(),"FILE").shape});var On=_({...de.shape,...re(y(),"DATE_TIME").shape});var Bg=ee(y(),ne([pt,Nt,mt,Dn,Lt,zt,Ut,Rn,On])),$n=_({...de.shape,properties:Bg,...re(K(Q()),"ARRAY").shape});var Hg=W(["any_time","last_24_hours","last_7_days","last_30_days","last_90_days","this_month","custom"]),Gg=_({preset:A(Hg),after:A(y()),before:A(y())}),Mm=_({...de.shape,display:A(W(["dropdown"])),...re(Gg,"DATE_RANGE").shape});var Nn=_({...de.shape,...re(ne([ee(y(),Q())]),"JSON").shape});var Zg=ne([pt,mt,Nn,$n,Lt]),JR=ee(y(),Zg),Fm=_({refreshers:K(y()),...de.shape,...re(Q(),"DYNAMIC").shape});var hc=_({...de.shape,...re(Ug(),"MARKDOWN").shape});var Ln=(o=>(o.ARCHIVE="ARCHIVE",o.REGISTRY="REGISTRY",o))(Ln||{}),fo=(o=>(o.CUSTOM="CUSTOM",o.OFFICIAL="OFFICIAL",o))(fo||{}),Nr=(k=>(k.ARTIFICIAL_INTELLIGENCE="ARTIFICIAL_INTELLIGENCE",k.COMMUNICATION="COMMUNICATION",k.COMMERCE="COMMERCE",k.CORE="CORE",k.UNIVERSAL_AI="UNIVERSAL_AI",k.FLOW_CONTROL="FLOW_CONTROL",k.BUSINESS_INTELLIGENCE="BUSINESS_INTELLIGENCE",k.ACCOUNTING="ACCOUNTING",k.PRODUCTIVITY="PRODUCTIVITY",k.CONTENT_AND_FILES="CONTENT_AND_FILES",k.DEVELOPER_TOOLS="DEVELOPER_TOOLS",k.CUSTOMER_SUPPORT="CUSTOMER_SUPPORT",k.FORMS_AND_SURVEYS="FORMS_AND_SURVEYS",k.HUMAN_RESOURCES="HUMAN_RESOURCES",k.PAYMENT_PROCESSING="PAYMENT_PROCESSING",k.MARKETING="MARKETING",k.SALES_AND_CRM="SALES_AND_CRM",k))(Nr||{});var zn=(o=>(o.AUTHORIZATION_CODE="authorization_code",o.CLIENT_CREDENTIALS="client_credentials",o))(zn||{}),jm="both_client_credentials_and_authorization_code";var Qe=(r=>(r.POLLING="POLLING",r.WEBHOOK="WEBHOOK",r.APP_WEBHOOK="APP_WEBHOOK",r.MANUAL="MANUAL",r))(Qe||{}),Un=(n=>(n.NONE="NONE",n.HEADER_PRESENT="HEADER_PRESENT",n.QUERY_PRESENT="QUERY_PRESENT",n.BODY_PARAM_PRESENT="BODY_PARAM_PRESENT",n.HEAD_REQUEST="HEAD_REQUEST",n))(Un||{}),XR=_({strategy:W(Un),paramName:A(y())}),Mn=(o=>(o.SIMULATION="SIMULATION",o.TEST_FUNCTION="TEST_FUNCTION",o))(Mn||{});var yc=(o=>(o.WEBSOCKET="WEBSOCKET",o.NONE="NONE",o))(yc||{}),Vg=_({status:A(qe()),body:A(Q()),headers:A(ee(y(),y()))}),Wg=_({type:V("DELAY"),resumeDateTime:y(),requestIdToReply:A(y()),handlerId:A(y()),streamStepProgress:A(W(yc))}),Kg=_({type:V("WEBHOOK"),requestId:y(),requestIdToReply:A(y()),response:Vg,handlerId:A(y()),streamStepProgress:A(W(yc))}),YR=ne([Wg,Kg]);var QR=_({body:Q(),rawBody:A(Q()),headers:ee(y(),y()),queryParams:ee(y(),y())});function Te(e){return e==null}s(Te,"isNil");function Fn(e){return e==null?!0:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}s(Fn,"isEmpty");function gc(e,t){if(e==null)throw new Error(`${t} is null or undefined`)}s(gc,"assertNotNullOrUndefined");function vc(e){try{return{data:e(),error:null}}catch(t){return{data:null,error:t}}}s(vc,"tryCatchSync");var Bm=ue(require("crypto"),1);var eO=128,cr,ho,tO=s(e=>{if(e<0)throw new RangeError("Wrong ID size");try{!cr||cr.length<e?(cr=Buffer.allocUnsafe(e*eO),Bm.default.randomFillSync(cr),ho=0):ho+e>cr.length&&(Bm.default.randomFillSync(cr),ho=0)}catch(t){throw cr=void 0,t}ho+=e},"fillPool"),rO=s(e=>(tO(e|=0),cr.subarray(ho-e,ho)),"random"),oO=s((e,t,o)=>{let i=(2<<31-Math.clz32(e.length-1|1))-1,r=Math.ceil(1.6*i*t/e.length);return(n=t)=>{if(n<=0)return"";let a="";for(;;){let c=o(r),l=r;for(;l--;)if(a+=e[c[l]&i]||"",a.length===n)return a}}},"customRandom"),Jg=s((e,t=21)=>oO(e,t,rO),"customAlphabet");var iO="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Xg=21,Kq=y().check(Ge(new RegExp(`^[0-9a-zA-Z]{${Xg}}$`))),nO=Jg(iO,Xg);var lr=sr(ar(e=>e instanceof Date?e.toISOString():e),y()),gt={id:y(),created:lr,updated:lr},Ee=s(e=>A(kn(e)),"Nullable");function Hm(e){return A(kn(W(e)))}s(Hm,"NullableEnum");var Yq=sr(ar(e=>e==="true"||e===!0?!0:e==="false"||e===!1?!1:void 0),A(me())),Qq=A(mc.datetime({offset:!0}).check(Dm(e=>e.slice(0,4)!=="0000"))),Pc=s(e=>sr(ar(t=>Array.isArray(t)?t:t!==void 0?[t]:void 0),A(K(e))),"OptionalArrayFromQuery");var rB=ee(y(),Q());var Gm=(f=>(f.DUTCH="nl",f.ENGLISH="en",f.GERMAN="de",f.FRENCH="fr",f.SPANISH="es",f.JAPANESE="ja",f.CHINESE_SIMPLIFIED="zh",f.PORTUGUESE="pt",f.ARABIC="ar",f.CHINESE_TRADITIONAL="zh-TW",f))(Gm||{});var ur=(H=>(H.OPENAI="openai",H.OPENROUTER="openrouter",H.ANTHROPIC="anthropic",H.AZURE="azure",H.GOOGLE="google",H.ACTIVEPIECES="activepieces",H.CLOUDFLARE_GATEWAY="cloudflare-gateway",H.CUSTOM="custom",H.BEDROCK="bedrock",H.VERTEX="vertex",H.MISTRAL="mistral",H.XAI="xai",H.DEEPSEEK="deepseek",H.ZAI="zai",H.QWEN="qwen",H.MINIMAX="minimax",H.MOONSHOT="moonshot",H.META="meta",H.NVIDIA="nvidia",H))(ur||{});var $={};lt($,{$brand:()=>ti,$input:()=>Ms,$output:()=>Us,NEVER:()=>Ta,TimePrecision:()=>js,ZodAny:()=>yf,ZodArray:()=>If,ZodBase64:()=>Fc,ZodBase64URL:()=>jc,ZodBigInt:()=>So,ZodBigIntFormat:()=>Hc,ZodBoolean:()=>bo,ZodCIDRv4:()=>Uc,ZodCIDRv6:()=>Mc,ZodCUID:()=>Dc,ZodCUID2:()=>Rc,ZodCatch:()=>qf,ZodCodec:()=>Yc,ZodCustom:()=>Yn,ZodCustomStringFormat:()=>Po,ZodDate:()=>Vn,ZodDefault:()=>Lf,ZodDiscriminatedUnion:()=>Sf,ZodE164:()=>qc,ZodEmail:()=>Ec,ZodEmoji:()=>kc,ZodEnum:()=>go,ZodError:()=>aO,ZodExactOptional:()=>Of,ZodFile:()=>Df,ZodFirstPartyTypeKind:()=>eh,ZodFunction:()=>Xf,ZodGUID:()=>qn,ZodIPv4:()=>Lc,ZodIPv6:()=>zc,ZodISODate:()=>Sc,ZodISODateTime:()=>bc,ZodISODuration:()=>xc,ZodISOTime:()=>_c,ZodIntersection:()=>_f,ZodIssueCode:()=>cO,ZodJWT:()=>Bc,ZodKSUID:()=>Nc,ZodLazy:()=>Wf,ZodLiteral:()=>Cf,ZodMAC:()=>lf,ZodMap:()=>Ef,ZodNaN:()=>Hf,ZodNanoID:()=>Cc,ZodNever:()=>vf,ZodNonOptional:()=>Jc,ZodNull:()=>ff,ZodNullable:()=>Nf,ZodNumber:()=>Io,ZodNumberFormat:()=>zr,ZodObject:()=>Kn,ZodOptional:()=>Kc,ZodPipe:()=>Xc,ZodPrefault:()=>Uf,ZodPromise:()=>Jf,ZodReadonly:()=>Gf,ZodRealError:()=>nt,ZodRecord:()=>Xn,ZodSet:()=>kf,ZodString:()=>vo,ZodStringFormat:()=>Pe,ZodSuccess:()=>jf,ZodSymbol:()=>pf,ZodTemplateLiteral:()=>Vf,ZodTransform:()=>Rf,ZodTuple:()=>Tf,ZodType:()=>ae,ZodULID:()=>Oc,ZodURL:()=>Zn,ZodUUID:()=>Et,ZodUndefined:()=>mf,ZodUnion:()=>Jn,ZodUnknown:()=>gf,ZodVoid:()=>Pf,ZodXID:()=>$c,ZodXor:()=>bf,_ZodString:()=>wc,_default:()=>zf,_function:()=>iP,any:()=>Lv,array:()=>Wn,base64:()=>Pv,base64url:()=>Iv,bigint:()=>Dv,boolean:()=>df,catch:()=>Bf,check:()=>nP,cidrv4:()=>gv,cidrv6:()=>vv,clone:()=>Fe,codec:()=>tP,coerce:()=>th,config:()=>we,core:()=>dt,cuid:()=>lv,cuid2:()=>uv,custom:()=>aP,date:()=>Uv,decode:()=>tf,decodeAsync:()=>of,describe:()=>sP,discriminatedUnion:()=>Hv,e164:()=>bv,email:()=>Qg,emoji:()=>sv,encode:()=>ef,encodeAsync:()=>rf,endsWith:()=>Er,enum:()=>Vc,exactOptional:()=>$f,file:()=>Xv,flattenError:()=>Wr,float32:()=>wv,float64:()=>Ev,formatError:()=>Kr,fromJSONSchema:()=>fP,function:()=>iP,getErrorMap:()=>uO,globalRegistry:()=>je,gt:()=>xt,gte:()=>Le,guid:()=>ev,hash:()=>Av,hex:()=>Tv,hostname:()=>xv,httpUrl:()=>av,includes:()=>Ar,instanceof:()=>lP,int:()=>Ac,int32:()=>kv,int64:()=>Rv,intersection:()=>xf,ipv4:()=>fv,ipv6:()=>yv,iso:()=>yo,json:()=>dP,jwt:()=>Sv,keyof:()=>Mv,ksuid:()=>mv,lazy:()=>Kf,length:()=>tr,literal:()=>Jv,locales:()=>co,looseObject:()=>qv,looseRecord:()=>Zv,lowercase:()=>xr,lt:()=>_t,lte:()=>Xe,mac:()=>hv,map:()=>Vv,maxLength:()=>er,maxSize:()=>$t,meta:()=>cP,mime:()=>kr,minLength:()=>$e,minSize:()=>Tt,multipleOf:()=>Ot,nan:()=>eP,nanoid:()=>cv,nativeEnum:()=>Kv,negative:()=>bn,never:()=>Gc,nonnegative:()=>_n,nonoptional:()=>Ff,nonpositive:()=>Sn,normalize:()=>Cr,null:()=>hf,nullable:()=>Hn,nullish:()=>Yv,number:()=>uf,object:()=>Fv,optional:()=>Bn,overwrite:()=>yt,parse:()=>Jm,parseAsync:()=>Xm,partialRecord:()=>Gv,pipe:()=>Gn,positive:()=>In,prefault:()=>Mf,preprocess:()=>pP,prettifyError:()=>Ca,promise:()=>oP,property:()=>xn,readonly:()=>Zf,record:()=>wf,refine:()=>Yf,regex:()=>Ge,regexes:()=>it,registry:()=>Li,safeDecode:()=>af,safeDecodeAsync:()=>cf,safeEncode:()=>nf,safeEncodeAsync:()=>sf,safeParse:()=>Ym,safeParseAsync:()=>Qm,set:()=>Wv,setErrorMap:()=>lO,size:()=>Qt,slugify:()=>uo,startsWith:()=>wr,strictObject:()=>jv,string:()=>Tc,stringFormat:()=>_v,stringbool:()=>uP,success:()=>Qv,superRefine:()=>Qf,symbol:()=>$v,templateLiteral:()=>rP,toJSONSchema:()=>wn,toLowerCase:()=>Rr,toUpperCase:()=>Or,transform:()=>Wc,treeifyError:()=>ka,trim:()=>Dr,tuple:()=>Af,uint32:()=>Cv,uint64:()=>Ov,ulid:()=>dv,undefined:()=>Nv,union:()=>Zc,unknown:()=>Lr,uppercase:()=>Tr,url:()=>nv,util:()=>N,uuid:()=>tv,uuidv4:()=>rv,uuidv6:()=>ov,uuidv7:()=>iv,void:()=>zv,xid:()=>pv,xor:()=>Bv});var jn={};lt(jn,{ZodAny:()=>yf,ZodArray:()=>If,ZodBase64:()=>Fc,ZodBase64URL:()=>jc,ZodBigInt:()=>So,ZodBigIntFormat:()=>Hc,ZodBoolean:()=>bo,ZodCIDRv4:()=>Uc,ZodCIDRv6:()=>Mc,ZodCUID:()=>Dc,ZodCUID2:()=>Rc,ZodCatch:()=>qf,ZodCodec:()=>Yc,ZodCustom:()=>Yn,ZodCustomStringFormat:()=>Po,ZodDate:()=>Vn,ZodDefault:()=>Lf,ZodDiscriminatedUnion:()=>Sf,ZodE164:()=>qc,ZodEmail:()=>Ec,ZodEmoji:()=>kc,ZodEnum:()=>go,ZodExactOptional:()=>Of,ZodFile:()=>Df,ZodFunction:()=>Xf,ZodGUID:()=>qn,ZodIPv4:()=>Lc,ZodIPv6:()=>zc,ZodIntersection:()=>_f,ZodJWT:()=>Bc,ZodKSUID:()=>Nc,ZodLazy:()=>Wf,ZodLiteral:()=>Cf,ZodMAC:()=>lf,ZodMap:()=>Ef,ZodNaN:()=>Hf,ZodNanoID:()=>Cc,ZodNever:()=>vf,ZodNonOptional:()=>Jc,ZodNull:()=>ff,ZodNullable:()=>Nf,ZodNumber:()=>Io,ZodNumberFormat:()=>zr,ZodObject:()=>Kn,ZodOptional:()=>Kc,ZodPipe:()=>Xc,ZodPrefault:()=>Uf,ZodPromise:()=>Jf,ZodReadonly:()=>Gf,ZodRecord:()=>Xn,ZodSet:()=>kf,ZodString:()=>vo,ZodStringFormat:()=>Pe,ZodSuccess:()=>jf,ZodSymbol:()=>pf,ZodTemplateLiteral:()=>Vf,ZodTransform:()=>Rf,ZodTuple:()=>Tf,ZodType:()=>ae,ZodULID:()=>Oc,ZodURL:()=>Zn,ZodUUID:()=>Et,ZodUndefined:()=>mf,ZodUnion:()=>Jn,ZodUnknown:()=>gf,ZodVoid:()=>Pf,ZodXID:()=>$c,ZodXor:()=>bf,_ZodString:()=>wc,_default:()=>zf,_function:()=>iP,any:()=>Lv,array:()=>Wn,base64:()=>Pv,base64url:()=>Iv,bigint:()=>Dv,boolean:()=>df,catch:()=>Bf,check:()=>nP,cidrv4:()=>gv,cidrv6:()=>vv,codec:()=>tP,cuid:()=>lv,cuid2:()=>uv,custom:()=>aP,date:()=>Uv,describe:()=>sP,discriminatedUnion:()=>Hv,e164:()=>bv,email:()=>Qg,emoji:()=>sv,enum:()=>Vc,exactOptional:()=>$f,file:()=>Xv,float32:()=>wv,float64:()=>Ev,function:()=>iP,guid:()=>ev,hash:()=>Av,hex:()=>Tv,hostname:()=>xv,httpUrl:()=>av,instanceof:()=>lP,int:()=>Ac,int32:()=>kv,int64:()=>Rv,intersection:()=>xf,ipv4:()=>fv,ipv6:()=>yv,json:()=>dP,jwt:()=>Sv,keyof:()=>Mv,ksuid:()=>mv,lazy:()=>Kf,literal:()=>Jv,looseObject:()=>qv,looseRecord:()=>Zv,mac:()=>hv,map:()=>Vv,meta:()=>cP,nan:()=>eP,nanoid:()=>cv,nativeEnum:()=>Kv,never:()=>Gc,nonoptional:()=>Ff,null:()=>hf,nullable:()=>Hn,nullish:()=>Yv,number:()=>uf,object:()=>Fv,optional:()=>Bn,partialRecord:()=>Gv,pipe:()=>Gn,prefault:()=>Mf,preprocess:()=>pP,promise:()=>oP,readonly:()=>Zf,record:()=>wf,refine:()=>Yf,set:()=>Wv,strictObject:()=>jv,string:()=>Tc,stringFormat:()=>_v,stringbool:()=>uP,success:()=>Qv,superRefine:()=>Qf,symbol:()=>$v,templateLiteral:()=>rP,transform:()=>Wc,tuple:()=>Af,uint32:()=>Cv,uint64:()=>Ov,ulid:()=>dv,undefined:()=>Nv,union:()=>Zc,unknown:()=>Lr,url:()=>nv,uuid:()=>tv,uuidv4:()=>rv,uuidv6:()=>ov,uuidv7:()=>iv,void:()=>zv,xid:()=>pv,xor:()=>Bv});var Ic={};lt(Ic,{endsWith:()=>Er,gt:()=>xt,gte:()=>Le,includes:()=>Ar,length:()=>tr,lowercase:()=>xr,lt:()=>_t,lte:()=>Xe,maxLength:()=>er,maxSize:()=>$t,mime:()=>kr,minLength:()=>$e,minSize:()=>Tt,multipleOf:()=>Ot,negative:()=>bn,nonnegative:()=>_n,nonpositive:()=>Sn,normalize:()=>Cr,overwrite:()=>yt,positive:()=>In,property:()=>xn,regex:()=>Ge,size:()=>Qt,slugify:()=>uo,startsWith:()=>wr,toLowerCase:()=>Rr,toUpperCase:()=>Or,trim:()=>Dr,uppercase:()=>Tr});var yo={};lt(yo,{ZodISODate:()=>Sc,ZodISODateTime:()=>bc,ZodISODuration:()=>xc,ZodISOTime:()=>_c,date:()=>Vm,datetime:()=>Zm,duration:()=>Km,time:()=>Wm});var bc=S("ZodISODateTime",(e,t)=>{mi.init(e,t),Pe.init(e,t)});function Zm(e){return an(bc,e)}s(Zm,"datetime");var Sc=S("ZodISODate",(e,t)=>{fi.init(e,t),Pe.init(e,t)});function Vm(e){return sn(Sc,e)}s(Vm,"date");var _c=S("ZodISOTime",(e,t)=>{hi.init(e,t),Pe.init(e,t)});function Wm(e){return cn(_c,e)}s(Wm,"time");var xc=S("ZodISODuration",(e,t)=>{yi.init(e,t),Pe.init(e,t)});function Km(e){return ln(xc,e)}s(Km,"duration");var Yg=s((e,t)=>{ci.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:s(o=>Kr(e,o),"value")},flatten:{value:s(o=>Wr(e,o),"value")},addIssue:{value:s(o=>{e.issues.push(o),e.message=JSON.stringify(e.issues,Gr,2)},"value")},addIssues:{value:s(o=>{e.issues.push(...o),e.message=JSON.stringify(e.issues,Gr,2)},"value")},isEmpty:{get(){return e.issues.length===0}}})},"initializer"),aO=S("ZodError",Yg),nt=S("ZodError",Yg,{Parent:Error});var Jm=Jr(nt),Xm=Xr(nt),Ym=Yr(nt),Qm=eo(nt),ef=Da(nt),tf=Ra(nt),rf=Oa(nt),of=$a(nt),nf=Na(nt),af=La(nt),sf=za(nt),cf=Ua(nt);var ae=S("ZodType",(e,t)=>(J.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:po(e,"input"),output:po(e,"output")}}),e.toJSONSchema=Zp(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...o)=>e.clone(N.mergeDefs(t,{checks:[...t.checks??[],...o.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0}),e.with=e.check,e.clone=(o,i)=>Fe(e,o,i),e.brand=()=>e,e.register=((o,i)=>(o.add(e,i),e)),e.parse=(o,i)=>Jm(e,o,i,{callee:e.parse}),e.safeParse=(o,i)=>Ym(e,o,i),e.parseAsync=async(o,i)=>Xm(e,o,i,{callee:e.parseAsync}),e.safeParseAsync=async(o,i)=>Qm(e,o,i),e.spa=e.safeParseAsync,e.encode=(o,i)=>ef(e,o,i),e.decode=(o,i)=>tf(e,o,i),e.encodeAsync=async(o,i)=>rf(e,o,i),e.decodeAsync=async(o,i)=>of(e,o,i),e.safeEncode=(o,i)=>nf(e,o,i),e.safeDecode=(o,i)=>af(e,o,i),e.safeEncodeAsync=async(o,i)=>sf(e,o,i),e.safeDecodeAsync=async(o,i)=>cf(e,o,i),e.refine=(o,i)=>e.check(Yf(o,i)),e.superRefine=o=>e.check(Qf(o)),e.overwrite=o=>e.check(yt(o)),e.optional=()=>Bn(e),e.exactOptional=()=>$f(e),e.nullable=()=>Hn(e),e.nullish=()=>Bn(Hn(e)),e.nonoptional=o=>Ff(e,o),e.array=()=>Wn(e),e.or=o=>Zc([e,o]),e.and=o=>xf(e,o),e.transform=o=>Gn(e,Wc(o)),e.default=o=>zf(e,o),e.prefault=o=>Mf(e,o),e.catch=o=>Bf(e,o),e.pipe=o=>Gn(e,o),e.readonly=()=>Zf(e),e.describe=o=>{let i=e.clone();return je.add(i,{description:o}),i},Object.defineProperty(e,"description",{get(){return je.get(e)?.description},configurable:!0}),e.meta=(...o)=>{if(o.length===0)return je.get(e);let i=e.clone();return je.add(i,o[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=o=>o(e),e)),wc=S("_ZodString",(e,t)=>{Rt.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(i,r,n)=>Vp(e,i,r,n);let o=e._zod.bag;e.format=o.format??null,e.minLength=o.minimum??null,e.maxLength=o.maximum??null,e.regex=(...i)=>e.check(Ge(...i)),e.includes=(...i)=>e.check(Ar(...i)),e.startsWith=(...i)=>e.check(wr(...i)),e.endsWith=(...i)=>e.check(Er(...i)),e.min=(...i)=>e.check($e(...i)),e.max=(...i)=>e.check(er(...i)),e.length=(...i)=>e.check(tr(...i)),e.nonempty=(...i)=>e.check($e(1,...i)),e.lowercase=i=>e.check(xr(i)),e.uppercase=i=>e.check(Tr(i)),e.trim=()=>e.check(Dr()),e.normalize=(...i)=>e.check(Cr(...i)),e.toLowerCase=()=>e.check(Rr()),e.toUpperCase=()=>e.check(Or()),e.slugify=()=>e.check(uo())}),vo=S("ZodString",(e,t)=>{Rt.init(e,t),wc.init(e,t),e.email=o=>e.check(Mi(Ec,o)),e.url=o=>e.check(_r(Zn,o)),e.jwt=o=>e.check(nn(Bc,o)),e.emoji=o=>e.check(Hi(kc,o)),e.guid=o=>e.check(lo(qn,o)),e.uuid=o=>e.check(Fi(Et,o)),e.uuidv4=o=>e.check(ji(Et,o)),e.uuidv6=o=>e.check(qi(Et,o)),e.uuidv7=o=>e.check(Bi(Et,o)),e.nanoid=o=>e.check(Gi(Cc,o)),e.guid=o=>e.check(lo(qn,o)),e.cuid=o=>e.check(Zi(Dc,o)),e.cuid2=o=>e.check(Vi(Rc,o)),e.ulid=o=>e.check(Wi(Oc,o)),e.base64=o=>e.check(tn(Fc,o)),e.base64url=o=>e.check(rn(jc,o)),e.xid=o=>e.check(Ki($c,o)),e.ksuid=o=>e.check(Ji(Nc,o)),e.ipv4=o=>e.check(Xi(Lc,o)),e.ipv6=o=>e.check(Yi(zc,o)),e.cidrv4=o=>e.check(Qi(Uc,o)),e.cidrv6=o=>e.check(en(Mc,o)),e.e164=o=>e.check(on(qc,o)),e.datetime=o=>e.check(Zm(o)),e.date=o=>e.check(Vm(o)),e.time=o=>e.check(Wm(o)),e.duration=o=>e.check(Km(o))});function Tc(e){return zi(vo,e)}s(Tc,"string");var Pe=S("ZodStringFormat",(e,t)=>{ye.init(e,t),wc.init(e,t)}),Ec=S("ZodEmail",(e,t)=>{Ja.init(e,t),Pe.init(e,t)});function Qg(e){return Mi(Ec,e)}s(Qg,"email");var qn=S("ZodGUID",(e,t)=>{Wa.init(e,t),Pe.init(e,t)});function ev(e){return lo(qn,e)}s(ev,"guid");var Et=S("ZodUUID",(e,t)=>{Ka.init(e,t),Pe.init(e,t)});function tv(e){return Fi(Et,e)}s(tv,"uuid");function rv(e){return ji(Et,e)}s(rv,"uuidv4");function ov(e){return qi(Et,e)}s(ov,"uuidv6");function iv(e){return Bi(Et,e)}s(iv,"uuidv7");var Zn=S("ZodURL",(e,t)=>{pi.init(e,t),Pe.init(e,t)});function nv(e){return _r(Zn,e)}s(nv,"url");function av(e){return _r(Zn,{protocol:/^https?$/,hostname:it.domain,...N.normalizeParams(e)})}s(av,"httpUrl");var kc=S("ZodEmoji",(e,t)=>{Xa.init(e,t),Pe.init(e,t)});function sv(e){return Hi(kc,e)}s(sv,"emoji");var Cc=S("ZodNanoID",(e,t)=>{Ya.init(e,t),Pe.init(e,t)});function cv(e){return Gi(Cc,e)}s(cv,"nanoid");var Dc=S("ZodCUID",(e,t)=>{Qa.init(e,t),Pe.init(e,t)});function lv(e){return Zi(Dc,e)}s(lv,"cuid");var Rc=S("ZodCUID2",(e,t)=>{es.init(e,t),Pe.init(e,t)});function uv(e){return Vi(Rc,e)}s(uv,"cuid2");var Oc=S("ZodULID",(e,t)=>{ts.init(e,t),Pe.init(e,t)});function dv(e){return Wi(Oc,e)}s(dv,"ulid");var $c=S("ZodXID",(e,t)=>{rs.init(e,t),Pe.init(e,t)});function pv(e){return Ki($c,e)}s(pv,"xid");var Nc=S("ZodKSUID",(e,t)=>{os.init(e,t),Pe.init(e,t)});function mv(e){return Ji(Nc,e)}s(mv,"ksuid");var Lc=S("ZodIPv4",(e,t)=>{is.init(e,t),Pe.init(e,t)});function fv(e){return Xi(Lc,e)}s(fv,"ipv4");var lf=S("ZodMAC",(e,t)=>{as.init(e,t),Pe.init(e,t)});function hv(e){return Fs(lf,e)}s(hv,"mac");var zc=S("ZodIPv6",(e,t)=>{ns.init(e,t),Pe.init(e,t)});function yv(e){return Yi(zc,e)}s(yv,"ipv6");var Uc=S("ZodCIDRv4",(e,t)=>{ss.init(e,t),Pe.init(e,t)});function gv(e){return Qi(Uc,e)}s(gv,"cidrv4");var Mc=S("ZodCIDRv6",(e,t)=>{cs.init(e,t),Pe.init(e,t)});function vv(e){return en(Mc,e)}s(vv,"cidrv6");var Fc=S("ZodBase64",(e,t)=>{ls.init(e,t),Pe.init(e,t)});function Pv(e){return tn(Fc,e)}s(Pv,"base64");var jc=S("ZodBase64URL",(e,t)=>{us.init(e,t),Pe.init(e,t)});function Iv(e){return rn(jc,e)}s(Iv,"base64url");var qc=S("ZodE164",(e,t)=>{ds.init(e,t),Pe.init(e,t)});function bv(e){return on(qc,e)}s(bv,"e164");var Bc=S("ZodJWT",(e,t)=>{ps.init(e,t),Pe.init(e,t)});function Sv(e){return nn(Bc,e)}s(Sv,"jwt");var Po=S("ZodCustomStringFormat",(e,t)=>{ms.init(e,t),Pe.init(e,t)});function _v(e,t,o={}){return $r(Po,e,t,o)}s(_v,"stringFormat");function xv(e){return $r(Po,"hostname",it.hostname,e)}s(xv,"hostname");function Tv(e){return $r(Po,"hex",it.hex,e)}s(Tv,"hex");function Av(e,t){let o=t?.enc??"hex",i=`${e}_${o}`,r=it[i];if(!r)throw new Error(`Unrecognized hash format: ${i}`);return $r(Po,i,r,t)}s(Av,"hash");var Io=S("ZodNumber",(e,t)=>{oo.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(i,r,n)=>Wp(e,i,r,n),e.gt=(i,r)=>e.check(xt(i,r)),e.gte=(i,r)=>e.check(Le(i,r)),e.min=(i,r)=>e.check(Le(i,r)),e.lt=(i,r)=>e.check(_t(i,r)),e.lte=(i,r)=>e.check(Xe(i,r)),e.max=(i,r)=>e.check(Xe(i,r)),e.int=i=>e.check(Ac(i)),e.safe=i=>e.check(Ac(i)),e.positive=i=>e.check(xt(0,i)),e.nonnegative=i=>e.check(Le(0,i)),e.negative=i=>e.check(_t(0,i)),e.nonpositive=i=>e.check(Xe(0,i)),e.multipleOf=(i,r)=>e.check(Ot(i,r)),e.step=(i,r)=>e.check(Ot(i,r)),e.finite=()=>e;let o=e._zod.bag;e.minValue=Math.max(o.minimum??Number.NEGATIVE_INFINITY,o.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(o.maximum??Number.POSITIVE_INFINITY,o.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(o.format??"").includes("int")||Number.isSafeInteger(o.multipleOf??.5),e.isFinite=!0,e.format=o.format??null});function uf(e){return un(Io,e)}s(uf,"number");var zr=S("ZodNumberFormat",(e,t)=>{gi.init(e,t),Io.init(e,t)});function Ac(e){return pn(zr,e)}s(Ac,"int");function wv(e){return qs(zr,e)}s(wv,"float32");function Ev(e){return Bs(zr,e)}s(Ev,"float64");function kv(e){return Hs(zr,e)}s(kv,"int32");function Cv(e){return Gs(zr,e)}s(Cv,"uint32");var bo=S("ZodBoolean",(e,t)=>{br.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>Kp(e,o,i,r)});function df(e){return mn(bo,e)}s(df,"boolean");var So=S("ZodBigInt",(e,t)=>{io.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(i,r,n)=>Jp(e,i,r,n),e.gte=(i,r)=>e.check(Le(i,r)),e.min=(i,r)=>e.check(Le(i,r)),e.gt=(i,r)=>e.check(xt(i,r)),e.gte=(i,r)=>e.check(Le(i,r)),e.min=(i,r)=>e.check(Le(i,r)),e.lt=(i,r)=>e.check(_t(i,r)),e.lte=(i,r)=>e.check(Xe(i,r)),e.max=(i,r)=>e.check(Xe(i,r)),e.positive=i=>e.check(xt(BigInt(0),i)),e.negative=i=>e.check(_t(BigInt(0),i)),e.nonpositive=i=>e.check(Xe(BigInt(0),i)),e.nonnegative=i=>e.check(Le(BigInt(0),i)),e.multipleOf=(i,r)=>e.check(Ot(i,r));let o=e._zod.bag;e.minValue=o.minimum??null,e.maxValue=o.maximum??null,e.format=o.format??null});function Dv(e){return Zs(So,e)}s(Dv,"bigint");var Hc=S("ZodBigIntFormat",(e,t)=>{fs.init(e,t),So.init(e,t)});function Rv(e){return Vs(Hc,e)}s(Rv,"int64");function Ov(e){return Ws(Hc,e)}s(Ov,"uint64");var pf=S("ZodSymbol",(e,t)=>{hs.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>Xp(e,o,i,r)});function $v(e){return Ks(pf,e)}s($v,"symbol");var mf=S("ZodUndefined",(e,t)=>{ys.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>Qp(e,o,i,r)});function Nv(e){return Js(mf,e)}s(Nv,"_undefined");var ff=S("ZodNull",(e,t)=>{gs.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>Yp(e,o,i,r)});function hf(e){return Xs(ff,e)}s(hf,"_null");var yf=S("ZodAny",(e,t)=>{vi.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>rm(e,o,i,r)});function Lv(){return yn(yf)}s(Lv,"any");var gf=S("ZodUnknown",(e,t)=>{Pi.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>om(e,o,i,r)});function Lr(){return gn(gf)}s(Lr,"unknown");var vf=S("ZodNever",(e,t)=>{vs.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>tm(e,o,i,r)});function Gc(e){return Ys(vf,e)}s(Gc,"never");var Pf=S("ZodVoid",(e,t)=>{Ii.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>em(e,o,i,r)});function zv(e){return vn(Pf,e)}s(zv,"_void");var Vn=S("ZodDate",(e,t)=>{bi.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(i,r,n)=>im(e,i,r,n),e.min=(i,r)=>e.check(Le(i,r)),e.max=(i,r)=>e.check(Xe(i,r));let o=e._zod.bag;e.minDate=o.minimum?new Date(o.minimum):null,e.maxDate=o.maximum?new Date(o.maximum):null});function Uv(e){return Qs(Vn,e)}s(Uv,"date");var If=S("ZodArray",(e,t)=>{Si.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>ym(e,o,i,r),e.element=t.element,e.min=(o,i)=>e.check($e(o,i)),e.nonempty=o=>e.check($e(1,o)),e.max=(o,i)=>e.check(er(o,i)),e.length=(o,i)=>e.check(tr(o,i)),e.unwrap=()=>e.element});function Wn(e,t){return Gp(If,e,t)}s(Wn,"array");function Mv(e){let t=e._zod.def.shape;return Vc(Object.keys(t))}s(Mv,"keyof");var Kn=S("ZodObject",(e,t)=>{Yd.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>gm(e,o,i,r),N.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>Vc(Object.keys(e._zod.def.shape)),e.catchall=o=>e.clone({...e._zod.def,catchall:o}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Lr()}),e.loose=()=>e.clone({...e._zod.def,catchall:Lr()}),e.strict=()=>e.clone({...e._zod.def,catchall:Gc()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=o=>N.extend(e,o),e.safeExtend=o=>N.safeExtend(e,o),e.merge=o=>N.merge(e,o),e.pick=o=>N.pick(e,o),e.omit=o=>N.omit(e,o),e.partial=(...o)=>N.partial(Kc,e,o[0]),e.required=(...o)=>N.required(Jc,e,o[0])});function Fv(e,t){let o={type:"object",shape:e??{},...N.normalizeParams(t)};return new Kn(o)}s(Fv,"object");function jv(e,t){return new Kn({type:"object",shape:e,catchall:Gc(),...N.normalizeParams(t)})}s(jv,"strictObject");function qv(e,t){return new Kn({type:"object",shape:e,catchall:Lr(),...N.normalizeParams(t)})}s(qv,"looseObject");var Jn=S("ZodUnion",(e,t)=>{Sr.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>sc(e,o,i,r),e.options=t.options});function Zc(e,t){return new Jn({type:"union",options:e,...N.normalizeParams(t)})}s(Zc,"union");var bf=S("ZodXor",(e,t)=>{Jn.init(e,t),Is.init(e,t),e._zod.processJSONSchema=(o,i,r)=>sc(e,o,i,r),e.options=t.options});function Bv(e,t){return new bf({type:"union",options:e,inclusive:!1,...N.normalizeParams(t)})}s(Bv,"xor");var Sf=S("ZodDiscriminatedUnion",(e,t)=>{Jn.init(e,t),_i.init(e,t)});function Hv(e,t,o){return new Sf({type:"union",options:t,discriminator:e,...N.normalizeParams(o)})}s(Hv,"discriminatedUnion");var _f=S("ZodIntersection",(e,t)=>{bs.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>vm(e,o,i,r)});function xf(e,t){return new _f({type:"intersection",left:e,right:t})}s(xf,"intersection");var Tf=S("ZodTuple",(e,t)=>{xi.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>Pm(e,o,i,r),e.rest=o=>e.clone({...e._zod.def,rest:o})});function Af(e,t,o){let i=t instanceof J,r=i?o:t,n=i?t:null;return new Tf({type:"tuple",items:e,rest:n,...N.normalizeParams(r)})}s(Af,"tuple");var Xn=S("ZodRecord",(e,t)=>{Ti.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>Im(e,o,i,r),e.keyType=t.keyType,e.valueType=t.valueType});function wf(e,t,o){return new Xn({type:"record",keyType:e,valueType:t,...N.normalizeParams(o)})}s(wf,"record");function Gv(e,t,o){let i=Fe(e);return i._zod.values=void 0,new Xn({type:"record",keyType:i,valueType:t,...N.normalizeParams(o)})}s(Gv,"partialRecord");function Zv(e,t,o){return new Xn({type:"record",keyType:e,valueType:t,mode:"loose",...N.normalizeParams(o)})}s(Zv,"looseRecord");var Ef=S("ZodMap",(e,t)=>{Ss.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>fm(e,o,i,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...o)=>e.check(Tt(...o)),e.nonempty=o=>e.check(Tt(1,o)),e.max=(...o)=>e.check($t(...o)),e.size=(...o)=>e.check(Qt(...o))});function Vv(e,t,o){return new Ef({type:"map",keyType:e,valueType:t,...N.normalizeParams(o)})}s(Vv,"map");var kf=S("ZodSet",(e,t)=>{_s.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>hm(e,o,i,r),e.min=(...o)=>e.check(Tt(...o)),e.nonempty=o=>e.check(Tt(1,o)),e.max=(...o)=>e.check($t(...o)),e.size=(...o)=>e.check(Qt(...o))});function Wv(e,t){return new kf({type:"set",valueType:e,...N.normalizeParams(t)})}s(Wv,"set");var go=S("ZodEnum",(e,t)=>{Ai.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(i,r,n)=>nm(e,i,r,n),e.enum=t.entries,e.options=Object.values(t.entries);let o=new Set(Object.keys(t.entries));e.extract=(i,r)=>{let n={};for(let a of i)if(o.has(a))n[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new go({...t,checks:[],...N.normalizeParams(r),entries:n})},e.exclude=(i,r)=>{let n={...t.entries};for(let a of i)if(o.has(a))delete n[a];else throw new Error(`Key ${a} not found in enum`);return new go({...t,checks:[],...N.normalizeParams(r),entries:n})}});function Vc(e,t){let o=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new go({type:"enum",entries:o,...N.normalizeParams(t)})}s(Vc,"_enum");function Kv(e,t){return new go({type:"enum",entries:e,...N.normalizeParams(t)})}s(Kv,"nativeEnum");var Cf=S("ZodLiteral",(e,t)=>{wi.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>am(e,o,i,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 Jv(e,t){return new Cf({type:"literal",values:Array.isArray(e)?e:[e],...N.normalizeParams(t)})}s(Jv,"literal");var Df=S("ZodFile",(e,t)=>{xs.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>lm(e,o,i,r),e.min=(o,i)=>e.check(Tt(o,i)),e.max=(o,i)=>e.check($t(o,i)),e.mime=(o,i)=>e.check(kr(Array.isArray(o)?o:[o],i))});function Xv(e){return tc(Df,e)}s(Xv,"file");var Rf=S("ZodTransform",(e,t)=>{Ei.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>mm(e,o,i,r),e._zod.parse=(o,i)=>{if(i.direction==="backward")throw new Wt(e.constructor.name);o.addIssue=n=>{if(typeof n=="string")o.issues.push(N.issue(n,o.value,t));else{let a=n;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=o.value),a.inst??(a.inst=e),o.issues.push(N.issue(a))}};let r=t.transform(o.value,o);return r instanceof Promise?r.then(n=>(o.value=n,o)):(o.value=r,o)}});function Wc(e){return new Rf({type:"transform",transform:e})}s(Wc,"transform");var Kc=S("ZodOptional",(e,t)=>{no.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>cc(e,o,i,r),e.unwrap=()=>e._zod.def.innerType});function Bn(e){return new Kc({type:"optional",innerType:e})}s(Bn,"optional");var Of=S("ZodExactOptional",(e,t)=>{Ts.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>cc(e,o,i,r),e.unwrap=()=>e._zod.def.innerType});function $f(e){return new Of({type:"optional",innerType:e})}s($f,"exactOptional");var Nf=S("ZodNullable",(e,t)=>{ki.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>bm(e,o,i,r),e.unwrap=()=>e._zod.def.innerType});function Hn(e){return new Nf({type:"nullable",innerType:e})}s(Hn,"nullable");function Yv(e){return Bn(Hn(e))}s(Yv,"nullish");var Lf=S("ZodDefault",(e,t)=>{As.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>_m(e,o,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function zf(e,t){return new Lf({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():N.shallowClone(t)}})}s(zf,"_default");var Uf=S("ZodPrefault",(e,t)=>{ws.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>xm(e,o,i,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():N.shallowClone(t)}})}s(Mf,"prefault");var Jc=S("ZodNonOptional",(e,t)=>{Es.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>Sm(e,o,i,r),e.unwrap=()=>e._zod.def.innerType});function Ff(e,t){return new Jc({type:"nonoptional",innerType:e,...N.normalizeParams(t)})}s(Ff,"nonoptional");var jf=S("ZodSuccess",(e,t)=>{ks.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>um(e,o,i,r),e.unwrap=()=>e._zod.def.innerType});function Qv(e){return new jf({type:"success",innerType:e})}s(Qv,"success");var qf=S("ZodCatch",(e,t)=>{Cs.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>Tm(e,o,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Bf(e,t){return new qf({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}s(Bf,"_catch");var Hf=S("ZodNaN",(e,t)=>{Ds.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>sm(e,o,i,r)});function eP(e){return ec(Hf,e)}s(eP,"nan");var Xc=S("ZodPipe",(e,t)=>{Ci.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>Am(e,o,i,r),e.in=t.in,e.out=t.out});function Gn(e,t){return new Xc({type:"pipe",in:e,out:t})}s(Gn,"pipe");var Yc=S("ZodCodec",(e,t)=>{Xc.init(e,t),ao.init(e,t)});function tP(e,t,o){return new Yc({type:"pipe",in:e,out:t,transform:o.decode,reverseTransform:o.encode})}s(tP,"codec");var Gf=S("ZodReadonly",(e,t)=>{Rs.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>wm(e,o,i,r),e.unwrap=()=>e._zod.def.innerType});function Zf(e){return new Gf({type:"readonly",innerType:e})}s(Zf,"readonly");var Vf=S("ZodTemplateLiteral",(e,t)=>{Os.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>cm(e,o,i,r)});function rP(e,t){return new Vf({type:"template_literal",parts:e,...N.normalizeParams(t)})}s(rP,"templateLiteral");var Wf=S("ZodLazy",(e,t)=>{Ls.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>km(e,o,i,r),e.unwrap=()=>e._zod.def.getter()});function Kf(e){return new Wf({type:"lazy",getter:e})}s(Kf,"lazy");var Jf=S("ZodPromise",(e,t)=>{Ns.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>Em(e,o,i,r),e.unwrap=()=>e._zod.def.innerType});function oP(e){return new Jf({type:"promise",innerType:e})}s(oP,"promise");var Xf=S("ZodFunction",(e,t)=>{$s.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>pm(e,o,i,r)});function iP(e){return new Xf({type:"function",input:Array.isArray(e?.input)?Af(e?.input):e?.input??Wn(Lr()),output:e?.output??Lr()})}s(iP,"_function");var Yn=S("ZodCustom",(e,t)=>{Di.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(o,i,r)=>dm(e,o,i,r)});function nP(e){let t=new ve({check:"custom"});return t._zod.check=e,t}s(nP,"check");function aP(e,t){return Tn(Yn,e??(()=>!0),t)}s(aP,"custom");function Yf(e,t={}){return An(Yn,e,t)}s(Yf,"refine");function Qf(e){return rc(e)}s(Qf,"superRefine");var sP=oc,cP=ic;function lP(e,t={}){let o=new Yn({type:"custom",check:"custom",fn:s(i=>i instanceof e,"fn"),abort:!0,...N.normalizeParams(t)});return o._zod.bag.Class=e,o._zod.check=i=>{i.value instanceof e||i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:o,path:[...o._zod.def.path??[]]})},o}s(lP,"_instanceof");var uP=s((...e)=>nc({Codec:Yc,Boolean:bo,String:vo},...e),"stringbool");function dP(e){let t=Kf(()=>Zc([Tc(e),uf(),df(),hf(),Wn(t),wf(Tc(),t)]));return t}s(dP,"json");function pP(e,t){return Gn(Wc(e),t)}s(pP,"preprocess");var cO={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 lO(e){we({customError:e})}s(lO,"setErrorMap");function uO(){return we().customError}s(uO,"getErrorMap");var eh;eh||(eh={});var z={...jn,...Ic,iso:yo},dO=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 pO(e,t){let o=e.$schema;return o==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":o==="http://json-schema.org/draft-07/schema#"?"draft-7":o==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}s(pO,"detectVersion");function mO(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let o=e.slice(1).split("/").filter(Boolean);if(o.length===0)return t.rootSchema;let i=t.version==="draft-2020-12"?"$defs":"definitions";if(o[0]===i){let r=o[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(mO,"resolveRef");function mP(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 n=mO(r,t),a=We(n,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 n=r.map(a=>z.literal(a));return n.length<2?n[0]:z.union([n[0],n[1],...n.slice(2)])}if(e.const!==void 0)return z.literal(e.const);let o=e.type;if(Array.isArray(o)){let r=o.map(n=>{let a={...e,type:n};return mP(a,t)});return r.length===0?z.never():r.length===1?r[0]:z.union(r)}if(!o)return z.any();let i;switch(o){case"string":{let r=z.string();if(e.format){let n=e.format;n==="email"?r=r.check(z.email()):n==="uri"||n==="uri-reference"?r=r.check(z.url()):n==="uuid"||n==="guid"?r=r.check(z.uuid()):n==="date-time"?r=r.check(z.iso.datetime()):n==="date"?r=r.check(z.iso.date()):n==="time"?r=r.check(z.iso.time()):n==="duration"?r=r.check(z.iso.duration()):n==="ipv4"?r=r.check(z.ipv4()):n==="ipv6"?r=r.check(z.ipv6()):n==="mac"?r=r.check(z.mac()):n==="cidr"?r=r.check(z.cidrv4()):n==="cidr-v6"?r=r.check(z.cidrv6()):n==="base64"?r=r.check(z.base64()):n==="base64url"?r=r.check(z.base64url()):n==="e164"?r=r.check(z.e164()):n==="jwt"?r=r.check(z.jwt()):n==="emoji"?r=r.check(z.emoji()):n==="nanoid"?r=r.check(z.nanoid()):n==="cuid"?r=r.check(z.cuid()):n==="cuid2"?r=r.check(z.cuid2()):n==="ulid"?r=r.check(z.ulid()):n==="xid"?r=r.check(z.xid()):n==="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))),i=r;break}case"number":case"integer":{let r=o==="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)),i=r;break}case"boolean":{i=z.boolean();break}case"null":{i=z.null();break}case"object":{let r={},n=e.properties||{},a=new Set(e.required||[]);for(let[l,d]of Object.entries(n)){let f=We(d,t);r[l]=a.has(l)?f:f.optional()}if(e.propertyNames){let l=We(e.propertyNames,t),d=e.additionalProperties&&typeof e.additionalProperties=="object"?We(e.additionalProperties,t):z.any();if(Object.keys(r).length===0){i=z.record(l,d);break}let f=z.object(r).passthrough(),b=z.looseRecord(l,d);i=z.intersection(f,b);break}if(e.patternProperties){let l=e.patternProperties,d=Object.keys(l),f=[];for(let P of d){let m=We(l[P],t),I=z.string().regex(new RegExp(P));f.push(z.looseRecord(I,m))}let b=[];if(Object.keys(r).length>0&&b.push(z.object(r).passthrough()),b.push(...f),b.length===0)i=z.object({}).passthrough();else if(b.length===1)i=b[0];else{let P=z.intersection(b[0],b[1]);for(let m=2;m<b.length;m++)P=z.intersection(P,b[m]);i=P}break}let c=z.object(r);e.additionalProperties===!1?i=c.strict():typeof e.additionalProperties=="object"?i=c.catchall(We(e.additionalProperties,t)):i=c.passthrough();break}case"array":{let r=e.prefixItems,n=e.items;if(r&&Array.isArray(r)){let a=r.map(l=>We(l,t)),c=n&&typeof n=="object"&&!Array.isArray(n)?We(n,t):void 0;c?i=z.tuple(a).rest(c):i=z.tuple(a),typeof e.minItems=="number"&&(i=i.check(z.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(z.maxLength(e.maxItems)))}else if(Array.isArray(n)){let a=n.map(l=>We(l,t)),c=e.additionalItems&&typeof e.additionalItems=="object"?We(e.additionalItems,t):void 0;c?i=z.tuple(a).rest(c):i=z.tuple(a),typeof e.minItems=="number"&&(i=i.check(z.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(z.maxLength(e.maxItems)))}else if(n!==void 0){let a=We(n,t),c=z.array(a);typeof e.minItems=="number"&&(c=c.min(e.minItems)),typeof e.maxItems=="number"&&(c=c.max(e.maxItems)),i=c}else i=z.array(z.any());break}default:throw new Error(`Unsupported type: ${o}`)}return e.description&&(i=i.describe(e.description)),e.default!==void 0&&(i=i.default(e.default)),i}s(mP,"convertBaseSchema");function We(e,t){if(typeof e=="boolean")return e?z.any():z.never();let o=mP(e,t),i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let c=e.anyOf.map(d=>We(d,t)),l=z.union(c);o=i?z.intersection(o,l):l}if(e.oneOf&&Array.isArray(e.oneOf)){let c=e.oneOf.map(d=>We(d,t)),l=z.xor(c);o=i?z.intersection(o,l):l}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)o=i?o:z.any();else{let c=i?o:We(e.allOf[0],t),l=i?0:1;for(let d=l;d<e.allOf.length;d++)c=z.intersection(c,We(e.allOf[d],t));o=c}e.nullable===!0&&t.version==="openapi-3.0"&&(o=z.nullable(o)),e.readOnly===!0&&(o=z.readonly(o));let r={},n=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let c of n)c in e&&(r[c]=e[c]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let c of a)c in e&&(r[c]=e[c]);for(let c of Object.keys(e))dO.has(c)||(r[c]=e[c]);return Object.keys(r).length>0&&t.registry.add(o,r),o}s(We,"convertSchema");function fP(e,t){if(typeof e=="boolean")return e?z.any():z.never();let o=pO(e,t?.defaultTarget),i=e.$defs||e.definitions||{},r={version:o,defs:i,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??je};return We(e,r)}s(fP,"fromJSONSchema");var th={};lt(th,{bigint:()=>gO,boolean:()=>yO,date:()=>vO,number:()=>hO,string:()=>fO});function fO(e){return Ui(vo,e)}s(fO,"string");function hO(e){return dn(Io,e)}s(hO,"number");function yO(e){return fn(bo,e)}s(yO,"boolean");function gO(e){return hn(So,e)}s(gO,"bigint");function vO(e){return Pn(Vn,e)}s(vO,"date");we(Ri());var hP=(c=>(c.FLOW_STEP="FLOW_STEP",c.FLOW_AGENT_STEP="FLOW_AGENT_STEP",c.AGENT="AGENT",c.AGENT_BUILDER="AGENT_BUILDER",c.CHAT="CHAT",c.ACTION_RUN="ACTION_RUN",c.KNOWLEDGE_BASE="KNOWLEDGE_BASE",c))(hP||{}),yP=(o=>(o.PRODUCTION="PRODUCTION",o.TESTING="TESTING",o))(yP||{}),jB=$.object({origin:$.enum(hP),environment:$.enum(yP),agentId:$.string().optional(),flowId:$.string().optional(),flowRunId:$.string().optional(),userId:$.string().optional()});var rh={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 gP=(o=>(o.IMAGE="image",o.TEXT="text",o))(gP||{}),Ze=$.object({apiKey:$.string()}),vP=$.object({serviceAccountJson:$.string().min(1)}),PP=Ze,IP=Ze.extend({apiKeyHash:$.string()}),bP=Ze,SP=Ze,_P=Ze,xP=Ze,TP=Ze,AP=Ze,wP=$.object({accessKeyId:$.string().min(1),secretAccessKey:$.string().min(1),sessionToken:$.string().optional()}),EP=Ze,kP=$.object({}),CP=$.object({}),oh=$.object({modelId:$.string(),modelName:$.string(),modelType:$.enum(gP)}),DP=$.object({apiKeyHeader:$.string(),baseUrl:$.string(),models:$.array(oh),defaultHeaders:$.record($.string(),$.string()).optional(),apiStyle:$.enum(["chat","responses"]).optional()}),RP=$.object({accountId:$.string(),gatewayId:$.string(),models:$.array(oh),vertexProject:$.string().optional(),vertexRegion:$.string().optional()}),OP=$.object({resourceName:$.string(),apiVersion:$.string().optional().transform(e=>e?.trim().length===0?void 0:e)}),$P=$.object({}),NP=$.object({}),LP=$.object({}),zP=$.object({region:$.string().min(1)}),UP=$.object({project:$.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/,rh.invalidGcpResourceId),region:$.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/,rh.invalidGcpResourceId),models:$.array(oh)}),MP=$.object({}),Mt=$.object({}),KB=$.union([PP,_P,xP,TP,AP,SP,bP,IP,wP,vP,EP]),JB=$.union([DP,RP,OP,UP,zP,kP,$P,NP,LP,CP,MP,Mt]),XB=$.discriminatedUnion("provider",[$.object({provider:$.literal("openai"),config:NP.partial(),auth:TP.partial()}),$.object({provider:$.literal("openrouter"),config:LP.partial(),auth:AP.partial()}),$.object({provider:$.literal("anthropic"),config:kP.partial(),auth:PP.partial()}),$.object({provider:$.literal("azure"),config:OP.partial(),auth:_P.partial()}),$.object({provider:$.literal("google"),config:$P.partial(),auth:xP.partial()}),$.object({provider:$.literal("cloudflare-gateway"),config:RP.partial(),auth:SP.partial()}),$.object({provider:$.literal("custom"),config:DP.partial(),auth:bP.partial()}),$.object({provider:$.literal("activepieces"),config:CP.partial(),auth:IP.partial()}),$.object({provider:$.literal("bedrock"),config:zP.partial(),auth:wP.partial()}),$.object({provider:$.literal("vertex"),config:UP.partial(),auth:vP.partial()}),$.object({provider:$.literal("mistral"),config:MP.partial(),auth:EP.partial()}),$.object({provider:$.literal("xai"),config:Mt.partial(),auth:Ze.partial()}),$.object({provider:$.literal("deepseek"),config:Mt.partial(),auth:Ze.partial()}),$.object({provider:$.literal("zai"),config:Mt.partial(),auth:Ze.partial()}),$.object({provider:$.literal("qwen"),config:Mt.partial(),auth:Ze.partial()}),$.object({provider:$.literal("minimax"),config:Mt.partial(),auth:Ze.partial()}),$.object({provider:$.literal("moonshot"),config:Mt.partial(),auth:Ze.partial()}),$.object({provider:$.literal("meta"),config:Mt.partial(),auth:Ze.partial()}),$.object({provider:$.literal("nvidia"),config:Mt.partial(),auth:Ze.partial()})]);var sH=y().check(Ge(/^#[0-9A-Fa-f]{6}$/));var lH=_({filename:y(),data:Q(),type:V("file"),mimetype:A(y())});var PO=ue(jP());var yH=_({...gt,name:y(),permissions:K(y()),platformId:Ee(y()),type:y(),userCount:A(qe())});var AH=$.enum(["active","out_of_credits","rejected","unreachable"]);var qP=(i=>(i.AGENT_DECIDE="agent-decide",i.CHOOSE_YOURSELF="choose-yourself",i.LEAVE_EMPTY="leave-empty",i))(qP||{}),ih=(o=>(o.FILE="FILE",o.TABLE="TABLE",o))(ih||{}),nh=(i=>(i.SSE="sse",i.STREAMABLE_HTTP="streamable-http",i.SIMPLE_HTTP="http",i))(nh||{});var ah=(i=>(i.TEXT="text",i.NUMBER="number",i.BOOLEAN="boolean",i))(ah||{});var sh=(o=>(o.IN_PROGRESS="in-progress",o.COMPLETED="completed",o))(sh||{});var IO=_({mode:W(qP),value:Q()}),bO=_({auth:A(y()),fields:ee(y(),IO)}),SO=_({pieceName:y(),pieceVersion:y(),actionName:y(),predefinedInput:A(bO)}),_O=_({type:V("PIECE"),toolName:y().check($e(1)),pieceMetadata:SO}),xO=_({type:V("none")}),TO=_({type:V("access_token"),accessToken:y()}),AO=_({type:V("api_key"),apiKey:y(),apiKeyHeader:y()}),wO=_({type:V("headers"),headers:ee(y(),y())}),EO=nr("type",[xO,TO,AO,wO]),BP=_({type:V("FLOW"),toolName:y().check($e(1)),externalFlowId:y(),flowDisplayName:A(y())}),HP=_({type:V("MCP"),toolName:y().check($e(1)),serverUrl:Ng(),protocol:W(nh),auth:EO}),GP=_({type:V("KNOWLEDGE_BASE"),toolName:y().check($e(1)),sourceType:W(ih),sourceId:y(),sourceName:y()}),kO=nr("type",[_O,BP,HP,GP]),CO=_({displayName:y(),description:A(y()),type:W(ah)}),ZP=_({type:V("MARKDOWN"),markdown:y()}),_o={type:V("TOOL_CALL"),input:Ee(ee(y(),Q())),output:A(Q()),toolName:y(),status:W(sh),toolCallId:y(),startTime:y(),endTime:A(y())},v6=_(_o),VP=nr("toolCallType",[_({..._o,toolCallType:V("PIECE"),pieceName:y(),pieceVersion:y(),actionName:y()}),_({..._o,toolCallType:V("FLOW"),displayName:y(),externalFlowId:y()}),_({..._o,toolCallType:V("MCP"),displayName:y(),serverUrl:y()}),_({..._o,toolCallType:V("KNOWLEDGE_BASE"),displayName:y(),sourceType:y()}),_({..._o,toolCallType:V("UNKNOWN"),displayName:y()})]),DO=ne([ZP,VP]);var RO=10800*1e3,OO=900*1e3;var dh=(o=>(o.IMAGE="image",o.TEXT="text",o))(dh||{}),Ft=_({apiKey:y()}),NO=Ft,LO=_({apiKey:y(),apiKeyHash:y()}),zO=Ft,UO=Ft,MO=Ft,FO=Ft,jO=Ft,qO=Ft,BO=Ft,JP=_({serviceAccountJson:y().check($e(1))}),XP=_({accessKeyId:y().check($e(1)),secretAccessKey:y().check($e(1)),sessionToken:A(y())}),HO=_({}),GO=_({}),ZO=_({}),VO=_({}),WO=_({}),KO=_({}),ph=_({modelId:y(),modelName:y(),modelType:W(dh)}),YP=_({apiKeyHeader:y(),baseUrl:y(),models:K(ph),defaultHeaders:A(ee(y(),y())),apiStyle:A(W(["chat","responses"]))}),QP=_({accountId:y(),gatewayId:y(),models:K(ph),vertexProject:A(y()),vertexRegion:A(y())}),eI=_({resourceName:y(),apiVersion:sr(ar(e=>typeof e=="string"&&e.trim().length===0?void 0:e),A(y()))}),tI=_({region:y().check($e(1))}),rI=_({project:y().check(Ge(/^[a-z0-9][a-z0-9-]{0,62}$/)),region:y().check(Ge(/^[a-z0-9][a-z0-9-]{0,62}$/)),models:K(ph)}),oI=_({}),JO=ne([NO,MO,FO,jO,qO,UO,zO,LO,XP,JP,BO]),iI=ne([YP,QP,eI,rI,tI,HO,ZO,VO,WO,GO,KO,oI]),XO=_({id:y(),name:y(),type:W(dh)}),YO=_({id:y(),name:y(),provider:W(ur),config:iI,enabledForChat:me()}),QO=_({provider:W(ur),name:y(),enabledForChat:me(),keys:K(_({id:y(),name:y()}))}),e$=_({provider:W(ur),configId:y(),config:iI,auth:JO,platformId:y()});var S6={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"},WP=["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"],t$=["claude-sonnet-5-5","claude-opus-5-5","claude-haiku-5-5"],r$=["claude-sonnet-4-6","claude-opus-4-7","claude-haiku-4-5"],nI=["claude-sonnet-4.6","claude-opus-4.7","claude-opus-4.8","claude-haiku-4.5"],ch=["gemini-3.7-flash","gemini-3.1-pro-preview","gemini-3-flash-preview"],uh=["gemini-2.5-pro","gemini-2.5-flash"],o$=["grok-4.20"],_6={anthropic:r$,google:uh,vertex:uh},x6=[...nI.map(e=>`anthropic/${e}`),"deepseek/deepseek-v4.1-flash"],i$={openai:WP,anthropic:t$,google:ch,vertex:ch,activepieces:[...nI.map(e=>`anthropic/${e}`),...WP.map(e=>`openai/${e}`),...[...ch,...uh].map(e=>`google/${e}`),...o$.map(e=>`x-ai/${e}`)]};var KP=128e3,n$={openai:128e3,anthropic:2e5,google:1048576,bedrock:2e5,vertex:1048576,azure:128e3,openrouter:128e3,activepieces:2e5,mistral:128e3,meta:1048576};function a$({provider:e}){return e?n$[e]??KP:KP}s(a$,"getMaxContextTokens");var lh={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"]},s$={anthropic:"native",google:"native",openrouter:"plugin",activepieces:"plugin"},c$=new Set(["anthropic","mistral","xai","deepseek","zai","qwen","minimax","moonshot","meta","nvidia"]),l$={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",meta:"https://api.meta.ai/v1",nvidia:"https://integrate.api.nvidia.com/v1"};function ze(e){return{chatModels:i$[e],maxContextTokens:a$({provider:e}),embeddingModels:lh[e]??[],defaultEmbeddingModel:lh[e]?.[0],supportsEmbedding:(lh[e]??[]).length>0,supportsImageGeneration:!c$.has(e),defaultImageModel:u$[e],webSearch:s$[e]}}s(ze,"buildProviderCapabilities");var aI=[{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"}],u$={activepieces:aI[0].modelId,openrouter:"google/gemini-3.1-flash-lite-image",openai:"gpt-image-1.5",google:"gemini-3.1-flash-image"},d$={openai:ze("openai"),anthropic:ze("anthropic"),openrouter:ze("openrouter"),azure:ze("azure"),google:ze("google"),"cloudflare-gateway":ze("cloudflare-gateway"),custom:ze("custom"),bedrock:ze("bedrock"),vertex:ze("vertex"),mistral:ze("mistral"),activepieces:ze("activepieces"),xai:ze("xai"),deepseek:ze("deepseek"),zai:ze("zai"),qwen:ze("qwen"),minimax:ze("minimax"),moonshot:ze("moonshot"),meta:ze("meta"),nvidia:ze("nvidia")};var p$=_({base64Url:y(),fileName:y(),extension:A(y())}),m$=_({mimeType:y(),url:y(),fileName:A(y())}),mh=ne([p$,m$]);var f$=ne([_({type:V("file"),value:mh}),_({type:V("markdown"),value:y(),files:A(K(mh))})]),h$=_({sessionId:y(),message:y(),files:A(K(y()))});var cI=(o=>(o.ON_NEW_RECORD="ON_NEW_RECORD",o.ON_UPDATE_RECORD="ON_UPDATE_RECORD",o))(cI||{}),lI=(o=>(o.ENABLED="ENABLED",o.DISABLED="DISABLED",o))(lI||{}),fh=(i=>(i.RECORD_CREATED="RECORD_CREATED",i.RECORD_UPDATED="RECORD_UPDATED",i.RECORD_DELETED="RECORD_DELETED",i))(fh||{});var y$=ne([_({...gt,name:y(),externalId:y(),type:V("STATIC_DROPDOWN"),tableId:y(),projectId:y(),data:_({options:K(_({value:y()}))})}),_({...gt,name:y(),externalId:y(),type:ne([V("TEXT"),V("NUMBER"),V("DATE"),V("DATETIME")]),tableId:y(),projectId:y()})]),g$=_({...gt,name:y(),folderId:Ee(y()),projectId:y(),externalId:y(),status:Hm(lI),trigger:Hm(cI)}),v$=_({...gt,tableId:y(),projectId:y(),cells:ee(y(),_({updated:y(),created:y(),value:Q(),fieldName:y()}))}),P$=_({events:K(W(fh)),webhookUrl:y(),flowId:y()}),I$=_({fields:K(_({id:y(),name:y()})),rows:K(ee(y(),y())),name:y()}),b$=_({projectId:y(),limit:A(Cn.number()),cursor:A(y()),name:A(y()),externalIds:Pc(y()),folderId:A(y()),folderIds:Pc(y())}),S$=_({records:K(K(_({fieldId:y(),value:dI()}))),tableId:y()}),_$=_({cells:A(K(_({fieldId:y(),value:dI()}))),tableId:y(),agentUpdate:A(me())}),uI=nr("operator",[Ur("eq"),Ur("neq"),Ur("gt"),Ur("gte"),Ur("lt"),Ur("lte"),Ur("co"),sI("exists"),sI("not_exists")]),x$=_({tableId:y(),limit:A(Cn.number()),cursor:A(y()),filters:Pc(uI)});function dI(){return sr(ar(e=>e==null?e:String(e)),kn(y()))}s(dI,"coerceToString");function Ur(e){return _({fieldId:y(),operator:V(e),value:y()})}s(Ur,"valueFilter");function sI(e){return _({fieldId:y(),operator:V(e)})}s(sI,"existenceFilter");var T$=_({status:A(qe()),body:A(Q()),headers:A(ee(y(),y()))}),A$=_({...gt,deleted:Ee(lr),ownerId:y(),displayName:y(),platformId:y(),externalId:Ee(y())});var pI=_({name:y(),description:A(y()),type:y(),required:me()}),w$=_({pieceName:y(),triggerName:y(),input:_({toolName:y(),toolDescription:y(),inputSchema:K(pI),returnsResponse:me()})});var mI="^[0-9]+\\.[0-9]+\\.[0-9]+$",B6=new RegExp(mI),k$="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",H6=y().check(Ge(new RegExp(mI))),G6=y().check(Ge(new RegExp(k$))),C$=_({packageType:V("ARCHIVE"),pieceType:W(fo),pieceName:y(),pieceVersion:y(),archiveId:y(),platformId:y()}),fI=_({packageType:V("REGISTRY"),pieceType:V("OFFICIAL"),pieceName:y(),pieceVersion:y()}),hI=_({packageType:V("REGISTRY"),pieceType:V("CUSTOM"),pieceName:y(),pieceVersion:y(),platformId:y()}),Z6=ne([fI,hI]),V6=ne([C$,fI,hI]);var D$=nr("type",[_({type:V("CRON_EXPRESSION"),cronExpression:y(),timezone:y()}),_({type:V("INTERVAL"),intervalMs:Lg().check(Le(6e4))})]),W6=_({...gt,type:W(Qe),projectId:y(),flowId:y(),triggerName:y(),schedule:Ee(D$),flowVersionId:y(),pieceName:y(),pieceVersion:y(),deleted:Ee(y()),simulate:me()}),yI=(C=>(C.UNKNOWN="UNKNOWN",C.FLOW_RUN_LOG="FLOW_RUN_LOG",C.FLOW_RUN_LOG_SLICE="FLOW_RUN_LOG_SLICE",C.PACKAGE_ARCHIVE="PACKAGE_ARCHIVE",C.FLOW_STEP_FILE="FLOW_STEP_FILE",C.SAMPLE_DATA="SAMPLE_DATA",C.TRIGGER_PAYLOAD="TRIGGER_PAYLOAD",C.SAMPLE_DATA_INPUT="SAMPLE_DATA_INPUT",C.TRIGGER_EVENT_FILE="TRIGGER_EVENT_FILE",C.PROJECT_RELEASE="PROJECT_RELEASE",C.FLOW_VERSION_BACKUP="FLOW_VERSION_BACKUP",C.PLATFORM_ASSET="PLATFORM_ASSET",C.USER_PROFILE_PICTURE="USER_PROFILE_PICTURE",C.WEBHOOK_PAYLOAD="WEBHOOK_PAYLOAD",C.MCP_CALL_PAYLOAD="MCP_CALL_PAYLOAD",C.KNOWLEDGE_BASE="KNOWLEDGE_BASE",C.FLOW_BUNDLE="FLOW_BUNDLE",C.PREWARM_SCOPE="PREWARM_SCOPE",C))(yI||{}),gI=(o=>(o.NONE="NONE",o.ZSTD="ZSTD",o))(gI||{}),vI=(o=>(o.S3="S3",o.DB="DB",o))(vI||{}),K6=_({...gt,projectId:Ee(y()),platformId:Ee(y()),type:W(yI),compression:W(gI),data:A(Q()),location:W(vI),size:Ee(qe()),fileName:Ee(y()),s3Key:Ee(y()),metadata:Ee(ee(y(),y()))}),PI=(i=>(i.ADMIN="ADMIN",i.MEMBER="MEMBER",i.OPERATOR="OPERATOR",i))(PI||{}),II=(o=>(o.ACTIVE="ACTIVE",o.INACTIVE="INACTIVE",o))(II||{}),J6=_({id:y(),email:y(),firstName:y(),status:W(II),externalId:Ee(y()),platformId:Ee(y()),platformRole:W(PI),lastName:y(),created:lr,updated:lr,lastActiveDate:Ee(lr),imageUrl:Ee(y())});var hh=_({...de.shape,...re(ee(y(),Q()),"OBJECT").shape});var yh=_({...de.shape,formatProperty:A(y()),...re(y(),"RICH_TEXT").shape});var TI=_({...de.shape,...re(y(),"COLOR").shape});var gh=ne([pt,Nt,yh,hc,zt,mt,Lt,Um,Dn,Fm,Ut,$n,hh,Nn,On,Mm,Rn,TI]),v={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 kt=_({displayName:y(),description:A(y()),hasConnectionIdentifier:A(me())});var AI=_({username:y(),password:y()}),vh=_({...kt.shape,username:_({displayName:y(),description:A(y())}),password:_({displayName:y(),description:A(y())}),...re(AI,"BASIC_AUTH").shape});var $$=ee(y(),ne([pt,Nt,Ut,zt,mt])),Ph=_({...kt.shape,props:$$,...re(Q(),"CUSTOM_AUTH").shape});var Mr=_({...kt.shape,...re(_({auth:y()}),"SECRET_TEXT").shape});var N$=ee(y(),ne([pt,Nt,Mr,Ut,zt,mt,Lt,hc])),wI=_({...kt.shape,props:N$,...re(Q(),"OIDC").shape});var Ih=(o=>(o.HEADER="HEADER",o.BODY="BODY",o))(Ih||{}),EI=ne([pt,Mr,mt]),kI=ee(y(),EI),CI=_({serverUrlProp:y(),authUrlProp:y(),tokenUrlProp:y(),scopesProp:A(y())}),L$=_({props:A(ee(y(),EI)),authUrl:y(),tokenUrl:y(),scope:K(y()),prompt:A(ne([V("none"),V("consent"),V("login"),V("omit")])),pkce:A(me()),pkceMethod:A(ne([V("plain"),V("S256")])),authorizationMethod:A(W(Ih)),grantType:A(ne([W(zn),V(jm)])),extra:A(ee(y(),y())),discovery:A(CI)}),DI=_({access_token:y(),props:A(kI),data:ee(y(),En())}),bh=_({...kt.shape,...L$.shape,...re(DI,"OAUTH2").shape});var xo=ne([vh,Ph,wI,bh,Mr]),Qn="Connection",Sh={SecretText(e){return{...e,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(e){return{...e,valueSchema:void 0,type:"OAUTH2",displayName:e.displayName||Qn}},BasicAuth(e){return{...e,valueSchema:void 0,type:"BASIC_AUTH",displayName:e.displayName||Qn,required:!0}},CustomAuth(e){return{...e,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:e.displayName||Qn}},OIDC(e){return{...e,valueSchema:void 0,type:"OIDC",displayName:e.displayName||Qn}},None(){}};var OG={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 z$=_({...de.shape,...re(Q(),"CUSTOM").shape,code:y()});var U$=ne([gh,xo]),_h=ee(y(),U$),QG=ee(y(),gh);var RI=ne([_({strategy:V("CRON"),cronExpression:y()}),_({strategy:V("NONE")})]),To=class{constructor(t,o,i,r,n,a,c,l,d,f,b,P,m,I,x,T,k,C,H,pe,he){this.name=t;this.displayName=o;this.description=i;this.requireAuth=r;this.props=n;this.type=a;this.handshakeConfiguration=c;this.onHandshake=l;this.renewConfiguration=d;this.onRenew=f;this.onEnable=b;this.onDisable=P;this.onStart=m;this.run=I;this.test=x;this.sampleData=T;this.testStrategy=k;this.outputSchema=C;this.aiMetadata=H;this.classification=pe;this.propertyGroups=he}static{s(this,"ITrigger")}},Ke=s(e=>{switch(e.type){case"WEBHOOK":return new To(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 To(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 To(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 To(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,Te(e.sampleData)&&Te(e.test)?"SIMULATION":"TEST_FUNCTION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups)}},"createTrigger");var OI="2",el="0.82.0";var xh=class{constructor(t,o,i,r,n,a,c,l,d=el,f,b="",P){this.displayName=t;this.logoUrl=o;this.authors=i;this.events=r;this.categories=c;this.auth=l;this.minimumSupportedRelease=d;this.maximumSupportedRelease=f;this.description=b;this.deprecated=P;this._actions={};this._triggers={};this.getContextInfo=s(()=>({version:OI}),"getContextInfo");(!F$(d)||j$(d,el))&&(this.minimumSupportedRelease=el),n.forEach(m=>this._actions[m.name]=m),a.forEach(m=>this._triggers[m.name]=m)}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:M$(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}},NI=s(e=>{if(e.auth&&Array.isArray(e.auth)&&!e.auth.every((o,i,r)=>i===r.findIndex(n=>n.type===o.type)))throw new Error("Auth properties must be unique by type");return new xh(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 M$(e){if(e!==void 0)return Array.isArray(e)?e.map($I):$I(e)}s(M$,"withConnectionIdentifierFlag");function $I(e){return{...e,hasConnectionIdentifier:e.getConnectionIdentifier!==void 0}}s($I,"flagConnectionIdentifier");function F$(e){return/^\d+\.\d+\.\d+$/.test(e)}s(F$,"isValidSimpleSemver");function j$(e,t){let[o,i,r]=e.split(".").map(Number),[n,a,c]=t.split(".").map(Number);return o!==n?o<n:i!==a?i<a:r<c}s(j$,"isSemverLessThan");var q$=A(ee(y(),ee(y(),y()))),LI=_({id:A(y()),name:y(),displayName:y(),logoUrl:y(),description:y(),authors:K(y()),platformId:A(y()),directoryPath:A(y()),auth:A(ne([xo,K(xo)])),version:y(),categories:A(K(W(Nr))),minimumSupportedRelease:A(y()),maximumSupportedRelease:A(y()),deprecated:A(me()),i18n:q$}),B$=W(["human","ai","both"]),zI=_({description:A(y()),idempotent:A(me())}),UI=W(["READ","SEARCH","WRITE","DESTRUCTIVE"]);var H$=W(["tabs","section","summary","builder","footer"]),MI=_({key:y(),display:H$,label:A(y()),description:A(y()),icon:A(y()),props:K(y())}),FI=_({name:y(),displayName:y(),description:y(),props:_h,propertyGroups:A(K(MI)),requireAuth:me(),errorHandlingOptions:A(zm),outputSchema:A(pc()),audience:A(B$),aiMetadata:A(zI),classification:A(UI)}),jI=_({name:y(),displayName:y(),description:y(),props:_h,propertyGroups:A(K(MI)),errorHandlingOptions:A(zm),type:W(Qe),sampleData:Q(),handshakeConfiguration:A(pc()),renewConfiguration:A(RI),testStrategy:W(Mn),outputSchema:A(pc()),aiMetadata:A(zI),classification:A(UI)}),G$=_({...LI.shape,actions:ee(y(),FI),triggers:ee(y(),jI)}),Z$=_({...LI.shape,actions:qe(),triggers:qe(),suggestedActions:A(K(FI)),suggestedTriggers:A(K(jI))}),qI=_({projectUsage:qe(),pieceType:W(fo),packageType:W(Ln),platformId:A(y()),archiveId:A(y())}),oV=_({...G$.shape,...qI.shape}),iV=_({...Z$.shape,...qI.shape}),nV=_({name:y(),version:y()});var HI=ue(require("path")),Th=ue(require("fs/promises"));var tl={translatePiece:s(({piece:e,locale:t})=>{let o=t?e.i18n?.[t]:void 0;if(!o)return e;let i=BI(e.categories)?W$:V$;return VI({node:e,tree:i,translations:o})},"translatePiece"),pathsToTranslate:s(e=>BI(e)?[...tl.pathsToValuesToTranslate,"displayName"]:tl.pathsToValuesToTranslate,"pathsToTranslate"),initializeI18n:s(async e=>{try{let t=Object.values(Gm),o={};for(let i of t){let r=await Y$(i,e);r&&(o[i]=r)}return Object.keys(o).length>0?o: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"]},V$=GI(tl.pathsToTranslate()),W$=GI(tl.pathsToTranslate(["CORE"]));function GI(e){return e.reduce((t,o)=>ZI({tree:t,keys:o.split(".")}),{})}s(GI,"buildTree");function BI(e){return e?.includes("CORE")??!1}s(BI,"isCorePiece");function ZI({tree:e,keys:[t,...o]}){return{...e,[t]:o.length===0?null:ZI({tree:e[t]??{},keys:o})}}s(ZI,"addPath");function VI({node:e,tree:t,translations:o}){if(!J$(e))return e;let i={},r=!1;for(let[n,a]of Object.entries(t))for(let c of n==="*"?Object.keys(e):[n]){let l=e[c],d=a===null?K$({value:l,translations:o}):VI({node:l,tree:a,translations:o});d!==l&&(i[c]=d,r=!0)}return r?Object.assign(Array.isArray(e)?[]:{},e,i):e}s(VI,"translateNode");function K$({value:e,translations:t}){return typeof e!="string"?e:t[e.slice(0,512)]||e}s(K$,"translateValue");function J$(e){return typeof e=="object"&&e!==null}s(J$,"isRecord");async function X$(e){try{return await Th.default.access(e),!0}catch{return!1}}s(X$,"fileExists");var Y$=s(async(e,t)=>{let o=HI.default.join(t,"src","i18n",`${e}.json`);if(!await X$(o))return null;try{let i=await Th.default.readFile(o,"utf8"),r=JSON.parse(i);if(typeof r=="object"&&r!==null)return r;throw new Error(`Invalid i18n file format for ${e} in piece ${t}`)}catch(i){return console.error(`Error reading i18n file for ${e} in piece ${t}:`,i),null}},"readLocaleFile");var Ao=require("node:stream");var rl=class{constructor(t,o){this.baseUrl=t;this.authenticationConverter=o}static{s(this,"BaseHttpClient")}getUrl(t){let o=new URL(`${this.baseUrl}${t.url}`),i=`${o.origin}${o.pathname}`,r=new URLSearchParams;return o.searchParams.forEach((n,a)=>{r.append(a,n)}),{urlWithoutQueryParams:i,queryParams:r}}getHeaders(t){let o={Accept:"application/json"};return t.authentication&&this.populateAuthentication(t.authentication,o),t.body&&(t.headers?.["Content-Type"]==="text/csv"?o["Content-Type"]="text/csv":o["Content-Type"]="application/json"),t.headers&&(o={...o,...t.headers}),o}populateAuthentication(t,o){this.authenticationConverter.convert(t,o)}};var ol=class{static{s(this,"DelegatingAuthenticationConverter")}constructor(t=new Ah,o=new wh){this.converters={BEARER_TOKEN:t,BASIC:o}}convert(t,o){return this.converters[t.type].convert(t,o)}},Ah=class{static{s(this,"BearerTokenAuthenticationConverter")}convert(t,o){return o.Authorization=`Bearer ${t.token}`,o}},wh=class{static{s(this,"BasicTokenAuthenticationConverter")}convert(t,o){let i=`${t.username}:${t.password}`,r=Buffer.from(i).toString("base64");return o.Authorization=`Basic ${r}`,o}};var ea=class extends Error{constructor(o,i){let r=i.status||500,n=Buffer.isBuffer(i.responseBody)?i.responseBody.toString():i.responseBody;super(JSON.stringify({response:{status:r,body:n},request:{body:o}}));this.requestBody=o;this.status=r,this.responseBody=n}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 WI({error:e,requestBody:t}){return e instanceof ea?e.errorMessage():{response:{status:0,body:e instanceof Error?e.message:String(e)},request:{body:t}}}s(WI,"toFailsafeOutput");var il=(a=>(a.GET="GET",a.POST="POST",a.PATCH="PATCH",a.PUT="PUT",a.DELETE="DELETE",a.HEAD="HEAD",a))(il||{});var nl=class extends rl{static{s(this,"FetchHttpClient")}constructor(t="",o=new ol){super(t,o)}async sendRequest(t,o){process.env.NODE_TLS_REJECT_UNAUTHORIZED="0";let{urlWithoutQueryParams:i,queryParams:r}=this.getUrl(t),n=this.getHeaders(t),a=XI(t.body)?aN(n):n,c=t.queryParams??{};for(let[pe,he]of Object.entries(c))r.append(pe,he);let l=r.toString(),d=l?`${i}?${l}`:i,f=t.responseType??"json",b=t.followRedirects??!0,P=t.retries??0,{body:m,extraHeaders:I,isStream:x}=al(t.method)?eN(t.body,a):{body:void 0,extraHeaders:{},isStream:!1},T=rN({...a,...I}),k=await tN(async()=>{let pe=new AbortController,he=t.timeout&&t.timeout>0?setTimeout(()=>pe.abort(),t.timeout):void 0;try{let Ue={method:t.method.toString(),headers:T,body:m,redirect:b?"follow":"manual",signal:pe.signal};return x&&(Ue.duplex="half"),o?.dispatcher!==void 0&&(Ue.dispatcher=o.dispatcher),await fetch(d,Ue)}finally{he!==void 0&&clearTimeout(he)}},x?0:P),C=b?300:400;if(k.status<200||k.status>=C){let pe=await KI(k,f==="stream"?"text":f),he=new ea(t.redactBodyInErrors===!0?Q$:t.body,{status:k.status,responseBody:pe});throw console.error("[HttpClient#(sanitized error message)] Request failed:",he),he}let H=await KI(k,f);return{status:k.status,headers:oN(k.headers),body:H}}},Q$="[redacted]";function al(e){return e!=="GET"&&e!=="HEAD"}s(al,"acceptsRequestBody");function eN(e,t){if(YI(e))return{body:void 0,extraHeaders:{},isStream:!1};if(nN(e)){let i=iN(e);if(i!==null)return{body:i,extraHeaders:e.getHeaders(),isStream:!1};let r=new Ao.PassThrough;return e.on("error",n=>r.destroy(n)),e.pipe(r),{body:r,extraHeaders:e.getHeaders(),isStream:!0}}return e instanceof Ao.Readable?{body:e,extraHeaders:{},isStream:!0}:typeof e=="string"||Buffer.isBuffer(e)||e instanceof URLSearchParams||e instanceof ArrayBuffer||XI(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(eN,"serializeBody");async function KI(e,t){switch(t){case"arraybuffer":return Buffer.from(await e.arrayBuffer());case"stream":return YI(e.body)?Ao.Readable.from([]):Ao.Readable.fromWeb(e.body);case"blob":return await e.blob();case"text":return await e.text();default:{let o=await e.text();if(o.length===0)return;try{return JSON.parse(o)}catch{return o}}}}s(KI,"parseResponseBody");async function tN(e,t){let o;for(let i=0;i<=t;i++)try{let r=await e();if(r.status>=500&&i<t){await JI(i);continue}return r}catch(r){if(o=r,i<t){await JI(i);continue}throw r}throw o}s(tN,"sendWithRetries");function JI(e){let t=Math.min(1e3*2**e,3e4);return new Promise(o=>setTimeout(o,t))}s(JI,"backoff");function rN(e){let t=new Map;for(let[o,i]of Object.entries(e))i!==void 0&&t.set(o.toLowerCase(),[o,Array.isArray(i)?i.join(", "):i]);return Object.fromEntries(t.values())}s(rN,"normalizeHeaders");function oN(e){let t={};return e.forEach((o,i)=>{t[i]=o}),t}s(oN,"toHttpHeaders");function iN(e){if(!e.hasKnownLength()||e.getLengthSync()>sN)return null;let{data:t}=vc(()=>e.getBuffer());return t}s(iN,"bufferFormDataIfSafe");function nN(e){return typeof e=="object"&&e!==null&&typeof e.getHeaders=="function"&&typeof e.pipe=="function"&&typeof e.on=="function"}s(nN,"isNodeFormData");function XI(e){return typeof FormData<"u"&&e instanceof FormData}s(XI,"isNativeFormData");function aN(e){return Object.fromEntries(Object.entries(e).filter(([t])=>t.toLowerCase()!=="content-type"))}s(aN,"withoutContentType");function YI(e){return e==null}s(YI,"isNil");var sN=100*1024*1024;var ta=new nl;var WL=ue(require("fs"));var KL={"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 JL(e){let t=e.split(";")[0].trim().toLowerCase();return KL[t]??""}s(JL,"contentTypeToExtension");var XL=s(({baseUrl:e,relativePath:t})=>{let o=e.endsWith("/")?e:`${e}/`,i=t.startsWith("/")?t.slice(1):t;return`${o}${i}`},"joinBaseUrlWithRelativePath"),YL=s((e,t)=>{let o="https://api.example.com";try{let i=t?e(t):void 0;return(i?.endsWith("/")?i.slice(0,-1):i)??o}catch{return o}},"getBaseUrlForDescription");function i_({auth:e,baseUrl:t,authMapping:o,description:i,displayName:r,name:n,props:a,extraProps:c,authLocation:l="headers",classification:d="WRITE"}){return h({audience:"human",name:n||"custom_api_call",classification:d,displayName:r||"Custom API Call",description:i||"Make a custom API call to a specific endpoint",auth:e,requireAuth:!!e,props:{url:v.DynamicProperties({auth:e,displayName:"",required:!0,refreshers:[],props:s(async({auth:f})=>({url:v.ShortText({displayName:"URL",description:`Full URL, or a path relative to ${YL(t,f)}`,required:!0,placeholder:"/resource",defaultValue:f?t(f):"",...a?.url??{}})}),"props")}),method:v.StaticDropdown({displayName:"Method",required:!0,defaultValue:"GET",options:{options:Object.values(il).map(f=>({label:f,value:f}))},...a?.method??{}}),headers:v.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!1,...a?.headers??{}}),queryParams:v.Object({displayName:"Query Parameters",description:"Appended to the URL as ?key=value.",required:!1,...a?.queryParams??{}}),body_type:v.Dropdown({auth:e,displayName:"Body Type",required:!1,defaultValue:"none",refreshers:["method"],options:s(async({method:f})=>al(f)?{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:v.DynamicProperties({auth:e,displayName:"Body",refreshers:["body_type","method"],required:!1,props:s(async({body_type:f,method:b})=>{if(!f||!al(b))return{};let P=f,m={};switch(P){case"none":break;case"json":m.data=v.Json({displayName:"JSON Body",required:!0,...a?.body??{}});break;case"raw":m.data=v.LongText({displayName:"Raw Body",required:!0});break;case"form_data":m.data=v.Array({displayName:"Form Data",required:!0,properties:{fieldName:v.ShortText({displayName:"Field Name",required:!0}),fieldType:v.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:v.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:v.File({displayName:"File Field Value",required:!1})}});break}return m},"props")}),response_is_binary:v.Checkbox({displayName:"Response is Binary",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1,advanced:!0,...a?.response_is_binary??{}}),failsafe:v.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:v.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:v.Checkbox({displayName:"Follow redirects",description:"Follow 3xx redirects instead of returning them as the response.",required:!1,defaultValue:!1,advanced:!0,...a?.followRedirects??{}}),...c},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 f=>{let{method:b,url:P,headers:m,queryParams:I,body:x,body_type:T,failsafe:k,timeout:C,response_is_binary:H,followRedirects:pe}=f.propsValue;gc(b,"Method"),gc(P,"URL");let he=Te(o)?{}:await o(f.auth,f.propsValue),Ue=P.url,De=Ue.startsWith("http://")||Ue.startsWith("https://")?Ue:XL({baseUrl:t(f.auth),relativePath:Ue}),ce={method:b,url:De,headers:{...m??{},...l==="headers"||!Te(l)?he:{}},queryParams:{...l==="queryParams"?he:{},...I??{}},timeout:C?C*1e3:0,followRedirects:pe};if(H&&(ce.responseType="arraybuffer"),x)if(T&&T!=="none"){let et=x.data;if(T==="form_data"){let _a=et,{default:oe}=await Promise.resolve().then(()=>ue(o_())),q=new oe;for(let{fieldName:U,fieldType:Z,textFieldValue:B,fileFieldValue:te}of _a)Z==="text"&&!Fn(B)?q.append(U,B):Z==="file"&&!Fn(te)&&q.append(U,te.data,{filename:te?.filename});ce.body=q,ce.headers={...ce.headers,...q.getHeaders()}}else ce.body=et}else T||(ce.body=x);try{let et=await ta.sendRequest(ce);return await QL(f.files,et.body,et.status,et.headers,H)}catch(et){if(k)return WI({error:et,requestBody:ce.body});throw et}},"run")})}s(i_,"createCustomApiCallAction");var QL=s(async(e,t,o,i,r)=>{let n;if(r&&ez(t)){let a=Array.isArray(i?.["content-type"])?i["content-type"][0]:i?.["content-type"],c=JL(a??"")||"txt",l;t instanceof ArrayBuffer?l=Buffer.from(new Uint8Array(t)):Buffer.isBuffer(t)?l=t:l=Buffer.from(t),n=await e.write({fileName:`output.${c}`,data:l})}else n=t;return{status:o,headers:i,body:n}},"handleBinaryResponse"),ez=s(e=>e instanceof ArrayBuffer||Buffer.isBuffer(e),"isBinaryBody");var Se={async poll(e,{store:t,auth:o,propsValue:i,maxItemsToPoll:r,files:n,server:a}){switch(e.strategy){case 0:{let c=await t.get("lastPoll");if(Te(c))throw new Error("lastPoll doesn't exist in the store.");let l=await e.items({store:t,auth:o,propsValue:i,lastFetchEpochMS:c,server:a}),d=l.reduce((f,b)=>Math.max(f,b.epochMilliSeconds),c);return await t.put("lastPoll",d),l.filter(f=>f.epochMilliSeconds>c).map(f=>f.data)}case 1:{let c=await t.get("lastItem"),l=await e.items({store:t,auth:o,propsValue:i,lastItemId:c,files:n,server:a}),d=l.findIndex(P=>P.id===c),f=[];Te(c)||d==-1?f=l??[]:f=l?.slice(0,d)??[],Te(r)||(f=f.slice(-r));let b=f?.[0]?.id;return Te(b)||await t.put("lastItem",b),f.map(P=>P.data)}}},async onEnable(e,{store:t,auth:o,propsValue:i,server:r,isRepublish:n}){switch(e.strategy){case 0:{if(n&&!Te(await t.get("lastPoll")))break;await t.put("lastPoll",Date.now());break}case 1:{if(n&&!Te(await t.get("lastItem")))break;let c=(await e.items({store:t,auth:o,propsValue:i,lastItemId:null,server:r}))?.[0]?.id;Te(c)?await t.delete("lastItem"):await t.put("lastItem",c);break}}},async onDisable(e,t){switch(e.strategy){case 0:case 1:return}},async test(e,{auth:t,propsValue:o,store:i,files:r,server:n}){let a=[];switch(e.strategy){case 0:{a=await e.items({store:i,auth:t,propsValue:o,lastFetchEpochMS:0,server:n});break}case 1:{a=await e.items({store:i,auth:t,propsValue:o,lastItemId:null,files:r,server:n});break}}return tz(a.map(c=>c.data))}};function tz(e){return e.length<=5?e:e.slice(0,5)}s(tz,"getFirstFiveOrAll");var n_=require("node:stream");function rz(e){return"body"in e?{body:e.body,size:e.size}:{body:n_.Readable.from(e.data),size:e.data.length}}s(rz,"toStreamingBody");async function*oz({readable:e,chunkSize:t}){let o=[],i=0;for await(let r of e)for(o.push(Buffer.isBuffer(r)?r:Buffer.from(r)),i+=o[o.length-1].length;i>=t;){let n=o.length===1?o[0]:Buffer.concat(o);yield n.subarray(0,t);let a=n.subarray(t);o=a.length>0?[a]:[],i=a.length}i>0&&(yield o.length===1?o[0]:Buffer.concat(o))}s(oz,"readChunks");var Wh={readChunks:oz,toStreamingBody:rz};var na="login.microsoftonline.com",s_="login.microsoftonline.us",a_={[na]:"https://graph.microsoft.com",[s_]:"https://graph.microsoft.us"},c_=v.StaticDropdown({displayName:"Cloud Environment",description:"Select your Microsoft cloud environment.",required:!0,defaultValue:na,options:{disabled:!1,options:[{label:"Commercial (Global)",value:na},{label:"US Government (GCC High)",value:s_}]}});function iz(e){return e??na}s(iz,"resolveCloudHost");function M(e){let t=iz(e);return a_[t]??a_[na]}s(M,"getGraphBaseUrl");var nz=`
|
|
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=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});
|
|
54
|
+
- offline_access`,p=Sh.OAuth2({description:nz,props:{cloud:c_},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 Bt=ue(be());var vx=s(e=>v.Dropdown({auth:p,displayName:e.displayName,required:!0,refreshers:e.refreshers,options:s(async({auth:t,...o})=>{let i=o[e.refreshers[0]];if(!t||!i)return{disabled:!0,placeholder:"Please select a site first.",options:[]};let r=t,n=r.props?.cloud,a=Bt.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(r.access_token),"getAccessToken")},baseUrl:M(n)}),c=[],l=await a.api(`/sites/${i}/drives`).select("id,name").get();for(;l.value.length>0;){for(let d of l.value)c.push({label:d.name,value:d.id});if(l["@odata.nextLink"])l=await a.api(l["@odata.nextLink"]).get();else break}return{disabled:!1,options:c}},"options")}),"createDriveDropdown"),j={siteId:v.Dropdown({auth:p,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,o=t.props?.cloud,i=Bt.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(t.access_token),"getAccessToken")},baseUrl:M(o)}),r=[],n=await i.api("/sites?search=*&$select=displayName,id,name").get();for(;n.value.length>0;){for(let a of n.value)r.push({label:a.displayName,value:a.id});if(n["@odata.nextLink"])n=await i.api(n["@odata.nextLink"]).get();else break}return{disabled:!1,options:r}},"options")}),driveId:vx({displayName:"Drive",refreshers:["siteId"]}),createDriveDropdown:vx,itemId:v.Dropdown({auth:p,displayName:"Source File or Folder",required:!0,refreshers:["siteId","driveId"],options:s(async({auth:e,siteId:t,driveId:o})=>{if(!e||!t||!o)return{disabled:!0,placeholder:"Please select a site and drive first.",options:[]};let i=e,r=i.props?.cloud,n=Bt.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(i.access_token),"getAccessToken")},baseUrl:M(r)}),a=[],c=await n.api(`/sites/${t}/drives/${o}/root/children?$select=id,name,folder,file`).get();for(;c.value.length>0;){for(let l of c.value){let d=l.folder?"[Folder] ":"[File] ";a.push({label:d+l.name,value:l.id})}if(c["@odata.nextLink"])c=await n.api(c["@odata.nextLink"]).get();else break}return{disabled:!1,options:a}},"options")}),destinationFolderId:v.Dropdown({auth:p,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 o=t.destination_site_id,i=t.destination_drive_id;if(!e||!o||!i)return{disabled:!0,placeholder:"Select a destination site and drive first.",options:[]};let r=e,n=r.props?.cloud,a=Bt.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(r.access_token),"getAccessToken")},baseUrl:M(n)}),c=[],l=await a.api(`/sites/${o}/drives/${i}/root/children?$filter=folder ne null&$select=id,name`).get();for(;l.value.length>0;){for(let d of l.value)c.push({label:d.name,value:d.id});if(l["@odata.nextLink"])l=await a.api(l["@odata.nextLink"]).get();else break}return{disabled:!1,options:c}},"options")}),listId:v.Dropdown({auth:p,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 o=e,i=o.props?.cloud,r=Bt.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:M(i)}),n=[],a=await r.api(`/sites/${t}/lists`).select("displayName,id").get();for(;a.value.length>0;){for(let c of a.value)n.push({label:c.displayName,value:c.id});if(a["@odata.nextLink"])a=await r.api(a["@odata.nextLink"]).get();else break}return{disabled:!1,options:n}},"options")}),listColumns:v.DynamicProperties({auth:p,displayName:"List Columns",refreshers:["siteId","listId"],required:!0,props:s(async({auth:e,siteId:t,listId:o})=>{if(!e||!t||!o)return{};let i={},r=e,n=r.props?.cloud,a=Bt.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(r.access_token),"getAccessToken")},baseUrl:M(n)}),c=[],l=await a.api(`/sites/${t}/lists/${o}/columns`).get();for(;l.value.length>0;){for(let d of l.value)d.readOnly||c.push(d);if(l["@odata.nextLink"])l=await a.api(l["@odata.nextLink"]).get();else break}for(let d of c){let f={displayName:d.displayName,description:d.description??"",required:!1};d.boolean?i[d.name]=v.Checkbox(f):d.text?i[d.name]=v.LongText(f):d.dateTime?i[d.name]=v.DateTime(f):d.choice?d.choice.displayAs==="checkBoxes"?i[d.name]=v.StaticMultiSelectDropdown({...f,options:{disabled:!1,options:d.choice?.choices?d.choice.choices.map(b=>({label:b,value:b})):[]}}):i[d.name]=v.StaticDropdown({...f,options:{disabled:!1,options:d.choice?.choices?d.choice.choices.map(b=>({label:b,value:b})):[]}}):d.number?i[d.name]=v.Number(f):d.currency&&(i[d.name]=v.Number(f))}return i},"props")}),listItemId:v.Dropdown({auth:p,displayName:"List Item",required:!0,refreshers:["siteId","listId"],options:s(async({auth:e,siteId:t,listId:o})=>{if(!e||!t||!o)return{disabled:!0,placeholder:"Please select a site and list first.",options:[]};let i=e,r=i.props?.cloud,n=Bt.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(i.access_token),"getAccessToken")},baseUrl:M(r)}),a=[],c=await n.api(`/sites/${t}/lists/${o}/items?$select=id&$expand=fields($select=Title)`).get();for(;c.value.length>0;){for(let l of c.value)a.push({label:l.fields.Title??`Item ${l.id}`,value:l.id});if(c["@odata.nextLink"])c=await n.api(c["@odata.nextLink"]).get();else break}return{disabled:!1,options:a}},"options")}),pageId:v.Dropdown({auth:p,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 o=e,i=o.props?.cloud,r=Bt.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:M(i)}),n=[],a=await r.api(`/sites/${t}/pages?$select=id,title`).get();for(;a.value.length>0;){for(let c of a.value)n.push({label:c.title??`Page ${c.id}`,value:c.id});if(a["@odata.nextLink"])a=await r.api(a["@odata.nextLink"]).get();else break}return{disabled:!1,options:n}},"options")})};var pA=ue(be());var Ht=[{key:"id",label:"ID"},{key:"name",label:"Name"},{key:"displayName",label:"Display Name"},{key:"description",label:"Description"},{key:"columnGroup",label:"Column Group"},{key:"enforceUniqueValues",label:"Enforce Unique Values",format:"boolean"},{key:"hidden",label:"Hidden",format:"boolean"},{key:"indexed",label:"Indexed",format:"boolean"},{key:"readOnly",label:"Read Only",format:"boolean"},{key:"required",label:"Required",format:"boolean"}],wt=[{key:"id",label:"ID"},{key:"name",label:"Name"},{key:"createdDateTime",label:"Created",format:"datetime"},{key:"lastModifiedDateTime",label:"Last Modified",format:"datetime"},{key:"size",label:"Size",format:"filesize"},{key:"webUrl",label:"Web URL",format:"url"}],Gt=[{key:"id",label:"ID"},{key:"createdDateTime",label:"Created",format:"datetime"},{key:"eTag",label:"ETag"},{key:"lastModifiedDateTime",label:"Last Modified",format:"datetime"},{key:"@odata.etag",label:"ETag",value:"['@odata.etag']"},{key:"webUrl",label:"Web URL",format:"url"}],Py=[{key:"id",label:"ID"},{key:"AppAuthorLookupId",label:"App Author ID"},{key:"AppEditorLookupId",label:"App Editor ID"},{key:"Attachments",label:"Attachments",format:"boolean"},{key:"AuthorLookupId",label:"Author ID"},{key:"_ComplianceFlags",label:"Compliance Flags"},{key:"_ComplianceTag",label:"Compliance Tag"},{key:"_ComplianceTagUserId",label:"Compliance Tag User ID"},{key:"_ComplianceTagWrittenTime",label:"Compliance Tag Written Time"},{key:"Created",label:"Created",format:"datetime"},{key:"Edit",label:"Edit"},{key:"EditorLookupId",label:"Editor ID"},{key:"FolderChildCount",label:"Folder Child Count"},{key:"ItemChildCount",label:"Item Child Count"},{key:"Modified",label:"Modified",format:"datetime"},{key:"@odata.etag",label:"ETag",value:"['@odata.etag']"},{key:"Title",label:"Title"},{key:"_UIVersionString",label:"Version"}],qo=[{key:"id",label:"ID"},{key:"name",label:"Name"},{key:"description",label:"Description"},{key:"group",label:"Group"},{key:"hidden",label:"Hidden",format:"boolean"},{key:"parentId",label:"Parent ID"},{key:"readOnly",label:"Read Only",format:"boolean"},{key:"sealed",label:"Sealed",format:"boolean"},{key:"base",label:"Base",children:[{key:"id",label:"ID"},{key:"name",label:"Name"},{key:"description",label:"Description"},{key:"group",label:"Group"},{key:"hidden",label:"Hidden",format:"boolean"},{key:"readOnly",label:"Read Only",format:"boolean"},{key:"sealed",label:"Sealed",format:"boolean"}]}],Sx=[{key:"level",label:"Level"},{key:"versionId",label:"Version ID"},{key:"checkedOutBy",label:"Checked Out By",children:[{key:"user",label:"User",children:[{key:"displayName",label:"Display Name"},{key:"email",label:"Email",format:"email"}]}]}],Iy=[{key:"title",label:"Title"},{key:"authorByline",label:"Author Byline"},{key:"authors",label:"Authors"},{key:"enableGradientEffect",label:"Enable Gradient Effect",format:"boolean"},{key:"layout",label:"Layout"},{key:"showAuthor",label:"Show Author",format:"boolean"},{key:"showPublishedDate",label:"Show Published Date",format:"boolean"},{key:"showTextBlockAboveTitle",label:"Show Text Block Above Title",format:"boolean"},{key:"textAlignment",label:"Text Alignment"}],_x=[...Gt,{key:"name",label:"Name"},{key:"title",label:"Title"},{key:"pageLayout",label:"Page Layout"},{key:"promotionKind",label:"Promotion Kind"},{key:"reactions",label:"Reactions"},{key:"showComments",label:"Show Comments",format:"boolean"},{key:"showRecommendedPages",label:"Show Recommended Pages",format:"boolean"},{key:"thumbnailWebUrl",label:"Thumbnail Web URL",format:"image"},{key:"contentType",label:"Content Type",children:[{key:"id",label:"ID"},{key:"name",label:"Name"}]},{key:"createdBy",label:"Created By",children:[{key:"user",label:"User",children:[{key:"displayName",label:"Display Name"},{key:"email",label:"Email",format:"email"}]}]},{key:"lastModifiedBy",label:"Last Modified By",children:[{key:"user",label:"User",children:[{key:"displayName",label:"Display Name"},{key:"email",label:"Email",format:"email"}]}]},{key:"parentReference",label:"Parent Reference",children:[{key:"siteId",label:"Site ID"}]},{key:"publishingState",label:"Publishing State",children:Sx},{key:"titleArea",label:"Title Area",children:Iy}],It=[{key:"id",label:"ID"},{key:"displayName",label:"Display Name"},{key:"email",label:"Email",format:"email"}],ct=[{key:"application",label:"Application",children:[{key:"id",label:"ID"},{key:"displayName",label:"Display Name"}]},{key:"user",label:"User",children:It}],pa=[{key:"fileExtension",label:"File Extension"},{key:"mimeType",label:"MIME Type"},{key:"hashes",label:"Hashes",children:[{key:"quickXorHash",label:"Quick XOR Hash"}]}],Zt=[{key:"createdDateTime",label:"Created",format:"datetime"},{key:"lastModifiedDateTime",label:"Last Modified",format:"datetime"}],Br=[{key:"id",label:"ID"},{key:"name",label:"Name"},{key:"driveId",label:"Drive ID"},{key:"driveType",label:"Drive Type"},{key:"path",label:"Path"},{key:"siteId",label:"Site ID"}],xx=[...wt,{key:"cTag",label:"CTag"},{key:"eTag",label:"ETag"},{key:"isAuthoritative",label:"Is Authoritative",format:"boolean"},{key:"@microsoft.graph.downloadUrl",label:"Download URL",value:"['@microsoft.graph.downloadUrl']",format:"url"},{key:"@microsoft.graph.downloadUrlNoAuth",label:"Download URL (No Auth)",value:"['@microsoft.graph.downloadUrlNoAuth']",format:"url"},{key:"createdBy",label:"Created By",children:ct},{key:"file",label:"File",children:pa},{key:"fileSystemInfo",label:"File System Info",children:Zt},{key:"lastModifiedBy",label:"Last Modified By",children:ct},{key:"parentReference",label:"Parent Reference",children:Br},{key:"shared",label:"Shared",children:[{key:"scope",label:"Scope"}]}],Tx=[...wt,{key:"cTag",label:"CTag"},{key:"eTag",label:"ETag"},{key:"isAuthoritative",label:"Is Authoritative",format:"boolean"},{key:"@microsoft.graph.downloadUrl",label:"Download URL",value:"['@microsoft.graph.downloadUrl']",format:"url"},{key:"createdBy",label:"Created By",children:ct},{key:"file",label:"File",children:[{key:"mimeType",label:"MIME Type"},{key:"hashes",label:"Hashes",children:[{key:"quickXorHash",label:"Quick XOR Hash"}]}]},{key:"fileSystemInfo",label:"File System Info",children:Zt},{key:"lastModifiedBy",label:"Last Modified By",children:ct},{key:"parentReference",label:"Parent Reference",children:Br},{key:"shared",label:"Shared",children:[{key:"scope",label:"Scope"}]}],by=[...wt,{key:"cTag",label:"CTag"},{key:"eTag",label:"ETag"},{key:"isAuthoritative",label:"Is Authoritative",format:"boolean"},{key:"@microsoft.graph.downloadUrl",label:"Download URL",value:"['@microsoft.graph.downloadUrl']",format:"url"},{key:"@microsoft.graph.downloadUrlNoAuth",label:"Download URL (No Auth)",value:"['@microsoft.graph.downloadUrlNoAuth']",format:"url"},{key:"createdBy",label:"Created By",children:[{key:"user",label:"User",children:It}]},{key:"file",label:"File",children:pa},{key:"fileSystemInfo",label:"File System Info",children:Zt},{key:"lastModifiedBy",label:"Last Modified By",children:[{key:"user",label:"User",children:It}]},{key:"parentReference",label:"Parent Reference",children:Br},{key:"shared",label:"Shared",children:[{key:"scope",label:"Scope"}]}],Ax=[...wt,{key:"eTag",label:"ETag"},{key:"isAuthoritative",label:"Is Authoritative",format:"boolean"},{key:"createdBy",label:"Created By",children:ct},{key:"fileSystemInfo",label:"File System Info",children:Zt},{key:"folder",label:"Folder",children:[{key:"childCount",label:"Child Count",format:"number"}]},{key:"lastModifiedBy",label:"Last Modified By",children:ct},{key:"parentReference",label:"Parent Reference",children:Br},{key:"shared",label:"Shared",children:[{key:"scope",label:"Scope"}]}],ma=[{key:"allowMultipleLines",label:"Allow Multiple Lines",format:"boolean"},{key:"appendChangesToExistingText",label:"Append Changes To Existing Text",format:"boolean"},{key:"linesForEditing",label:"Lines For Editing",format:"number"},{key:"maxLength",label:"Max Length",format:"number"}],fa=[{key:"defaultLanguage",label:"Default Language"},{key:"descriptions",label:"Descriptions",listItems:[{key:"languageTag",label:"Language Tag"}]}],wx=[...Ht,{key:"isDeletable",label:"Is Deletable",format:"boolean"},{key:"isReorderable",label:"Is Reorderable",format:"boolean"},{key:"isSealed",label:"Is Sealed",format:"boolean"},{key:"@odata.etag",label:"ETag",value:"['@odata.etag']"},{key:"propagateChanges",label:"Propagate Changes",format:"boolean"},{key:"type",label:"Type"},{key:"sourceContentType",label:"Source Content Type",children:[{key:"id",label:"ID"},{key:"name",label:"Name"}]},{key:"text",label:"Text",children:ma},{key:"validation",label:"Validation",children:fa}],Sy=[...Py,{key:"ContentType",label:"Content Type"},{key:"LinkTitle",label:"Link Title"},{key:"LinkTitleNoMenu",label:"Link Title (No Menu)"}],_y=[...Gt,{key:"contentType",label:"Content Type",children:[{key:"id",label:"ID"},{key:"name",label:"Name"}]},{key:"createdBy",label:"Created By",children:[{key:"user",label:"User",children:It}]},{key:"fields",label:"Fields",children:Sy},{key:"lastModifiedBy",label:"Last Modified By",children:ct},{key:"parentReference",label:"Parent Reference",children:[{key:"id",label:"ID"},{key:"siteId",label:"Site ID"}]}],Ex=[{key:"id",label:"ID"},{key:"name",label:"Name"},{key:"description",label:"Description"},{key:"createdDateTime",label:"Created",format:"datetime"},{key:"driveType",label:"Drive Type"},{key:"lastModifiedDateTime",label:"Last Modified",format:"datetime"},{key:"webUrl",label:"Web URL",format:"url"},{key:"createdBy",label:"Created By",children:[{key:"user",label:"User",children:[{key:"displayName",label:"Display Name"}]}]},{key:"owner",label:"Owner",children:[{key:"group",label:"Group",children:[{key:"id",label:"ID"},{key:"displayName",label:"Display Name"}]}]},{key:"quota",label:"Quota",children:[{key:"deleted",label:"Deleted",format:"number"},{key:"remaining",label:"Remaining",format:"filesize"},{key:"state",label:"State"},{key:"total",label:"Total",format:"filesize"},{key:"used",label:"Used",format:"filesize"}]}],kx=[{key:"id",label:"ID"},{key:"comment",label:"Comment"},{key:"createdDateTime",label:"Created",format:"datetime"},{key:"items",label:"Items"},{key:"lastModifiedDateTime",label:"Last Modified",format:"datetime"},{key:"shouldCaptureMinorVersion",label:"Capture Minor Version",format:"boolean"},{key:"createdBy",label:"Created By",children:[{key:"user",label:"User",children:[{key:"displayName",label:"Display Name"},{key:"email",label:"Email",format:"email"}]}]},{key:"lastModifiedBy",label:"Last Modified By",children:[{key:"user",label:"User",children:[{key:"displayName",label:"Display Name"},{key:"email",label:"Email",format:"email"}]}]}],xy=[{key:"id",label:"ID"},{key:"lastModifiedDateTime",label:"Last Modified",format:"datetime"},{key:"@microsoft.graph.downloadUrl",label:"Download URL",value:"['@microsoft.graph.downloadUrl']",format:"url"},{key:"size",label:"Size",format:"filesize"},{key:"lastModifiedBy",label:"Last Modified By",children:ct}],Px=[{key:"id",label:"ID"},{key:"displayName",label:"Display Name"},{key:"loginName",label:"Login Name"}],Cx=[{key:"group",label:"Group",children:[{key:"id",label:"ID"},{key:"displayName",label:"Display Name"}]},{key:"sharePointGroup",label:"SharePoint Group",children:[{key:"id",label:"ID"},{key:"title",label:"Title"},{key:"principalId",label:"Principal ID"}]},{key:"siteGroup",label:"Site Group",children:Px},{key:"siteUser",label:"Site User",children:Px}],Ty=[{key:"contentTypesEnabled",label:"Content Types Enabled",format:"boolean"},{key:"hidden",label:"Hidden",format:"boolean"},{key:"template",label:"Template"}],Dx=[...Gt,{key:"name",label:"Name"},{key:"displayName",label:"Display Name"},{key:"description",label:"Description"},{key:"createdBy",label:"Created By",children:[{key:"user",label:"User",children:[{key:"displayName",label:"Display Name"}]}]},{key:"list",label:"List",children:Ty},{key:"parentReference",label:"Parent Reference",children:[{key:"siteId",label:"Site ID"}]}],Ay=[{key:"notSupported",label:"Not Supported",format:"boolean"},{key:"resultsPending",label:"Results Pending",format:"boolean"},{key:"wasThrottled",label:"Was Throttled",format:"boolean"}],Rx=[{key:"aggregationInterval",label:"Aggregation Interval"},{key:"endDateTime",label:"End",format:"datetime"},{key:"startDateTime",label:"Start",format:"datetime"},{key:"incompleteData",label:"Incomplete Data",children:Ay}],Ox=[{key:"id",label:"ID"},{key:"lastModifiedDateTime",label:"Last Modified",format:"datetime"},{key:"fields",label:"Fields",children:[...Py]},{key:"lastModifiedBy",label:"Last Modified By",children:[{key:"user",label:"User",children:It}]}],$x=[{key:"allowMultipleValues",label:"Allow Multiple Values",format:"boolean"},{key:"allowUnlimitedLength",label:"Allow Unlimited Length",format:"boolean"},{key:"columnName",label:"Column Name"},{key:"listId",label:"List ID"},{key:"primaryLookupColumnId",label:"Primary Lookup Column ID"}],Ix=[{key:"application",label:"Application",children:[{key:"id",label:"ID"},{key:"displayName",label:"Display Name"}]},{key:"user",label:"User",children:[{key:"displayName",label:"Display Name"},{key:"email",label:"Email",format:"email"}]}],bx=[{key:"application",label:"Application",children:[{key:"displayName",label:"Display Name"}]},{key:"user",label:"User",children:It}],wy=[{key:"displayName",label:"Display Name"},{key:"email",label:"Email",format:"email"},{key:"self",label:"Self"},{key:"userPrincipalName",label:"User Principal Name",format:"email"}],Bo=[{key:"decimalPlaces",label:"Decimal Places"},{key:"displayAs",label:"Display As"},{key:"maximum",label:"Maximum",format:"number"},{key:"minimum",label:"Minimum",format:"number"}],Ey=[{key:"actionCount",label:"Action Count",format:"number"},{key:"actorCount",label:"Actor Count",format:"number"},{key:"timeSpentInSeconds",label:"Time Spent",format:"duration"}],fu=[{key:"preventsDownload",label:"Prevents Download",format:"boolean"},{key:"scope",label:"Scope"},{key:"type",label:"Type"},{key:"webUrl",label:"Web URL",format:"url"}],Nx=[{key:"allowMultipleSelection",label:"Allow Multiple Selection",format:"boolean"},{key:"chooseFromType",label:"Choose From Type"},{key:"displayAs",label:"Display As"}],vy=[{key:"height",label:"Height",format:"number"},{key:"url",label:"URL",format:"url"},{key:"width",label:"Width",format:"number"}],Lx=[...qo,{key:"isBuiltIn",label:"Built-In",format:"boolean"},{key:"@odata.etag",label:"ETag",value:"['@odata.etag']"}],zx=[{key:"siteId",label:"Site ID"},{key:"siteUrl",label:"Site URL",format:"url"},{key:"webId",label:"Web ID"}],Ux=[{key:"id",label:"ID"},{key:"emphasis",label:"Emphasis"},{key:"layout",label:"Layout"}],hu={fields:[...Ht,{key:"isDeletable",label:"Is Deletable",format:"boolean"},{key:"isReorderable",label:"Is Reorderable",format:"boolean"},{key:"isSealed",label:"Is Sealed",format:"boolean"},{key:"@odata.etag",label:"ETag",value:"['@odata.etag']"},{key:"propagateChanges",label:"Propagate Changes",format:"boolean"},{key:"type",label:"Type"},{key:"text",label:"Text",children:ma},{key:"validation",label:"Validation",children:fa}]},Mx={fields:[...qo,{key:"@odata.etag",label:"ETag",value:"['@odata.etag']"}]},yu={fields:[...Ht,{key:"isDeletable",label:"Is Deletable",format:"boolean"},{key:"isReorderable",label:"Is Reorderable",format:"boolean"},{key:"isSealed",label:"Is Sealed",format:"boolean"},{key:"@odata.etag",label:"ETag",value:"['@odata.etag']"},{key:"propagateChanges",label:"Propagate Changes",format:"boolean"},{key:"type",label:"Type"},{key:"number",label:"Number",children:Bo},{key:"validation",label:"Validation",children:fa}]},Je={fields:[{key:"id",label:"ID"},{key:"innerHtml",label:"Inner HTML",format:"html"}]},He={fields:[{key:"success",label:"Success",format:"boolean"}]},Ho={fields:[{key:"contentTypeId",label:"Content Type ID"},{key:"success",label:"Success",format:"boolean"}]},gu={fields:[{key:"resourceId",label:"Resource ID"},{key:"status",label:"Status"},{key:"success",label:"Success",format:"boolean"}]},Go={fields:Lx},vu={fields:kx},Pu={fields:Ax},Zo={fields:Ux},Fx={fields:[...Gt,{key:"name",label:"Name"},{key:"displayName",label:"Display Name"},{key:"description",label:"Description"},{key:"createdBy",label:"Created By",children:[{key:"user",label:"User",children:[{key:"displayName",label:"Display Name"},{key:"email",label:"Email",format:"email"}]}]},{key:"list",label:"List",children:Ty},{key:"parentReference",label:"Parent Reference",children:[{key:"siteId",label:"Site ID"}]}]},Vo={fields:[...Ht,{key:"number",label:"Number",children:Bo}]},Iu={fields:_y},jx={fields:_x},qx={fields:[{key:"id",label:"ID"},{key:"hasPassword",label:"Has Password",format:"boolean"},{key:"roles",label:"Roles"},{key:"shareId",label:"Share ID"},{key:"link",label:"Link",children:fu}]},Wo={fields:[...Ht,{key:"text",label:"Text",children:ma}]},Bx={fields:[{key:"id",label:"ID"},{key:"emphasis",label:"Emphasis"}]},bu={fields:[{key:"documentSetVersionId",label:"Document Set Version ID"},{key:"listId",label:"List ID"},{key:"listItemId",label:"List Item ID"},{key:"siteId",label:"Site ID"},{key:"success",label:"Success",format:"boolean"}]},Hx={fields:[{key:"deleted",label:"Deleted",format:"boolean"},{key:"permissionId",label:"Permission ID"}]},Gx={fields:[{key:"deleted",label:"Deleted",format:"boolean"},{key:"horizontalSectionId",label:"Horizontal Section ID"},{key:"pageId",label:"Page ID"}]},Su={fields:[{key:"deleted",label:"Deleted",format:"boolean"},{key:"pageId",label:"Page ID"}]},Zx={fields:[{key:"deleted",label:"Deleted",format:"boolean"},{key:"pageId",label:"Page ID"},{key:"webPartId",label:"Web Part ID"}]},Vx={fields:[{key:"columnId",label:"Column ID"},{key:"deleted",label:"Deleted",format:"boolean"},{key:"horizontalSectionId",label:"Horizontal Section ID"},{key:"pageId",label:"Page ID"},{key:"webPartIndex",label:"Web Part Index"}]},Wx={fields:[{key:"deleted",label:"Deleted",format:"boolean"},{key:"pageId",label:"Page ID"},{key:"webPartIndex",label:"Web Part Index"}]},Kx={fields:[{key:"file",label:"File",format:"url"},{key:"fileName",label:"File Name"},{key:"item",label:"Item",children:xx}]},Jx={fields:[{key:"file",label:"File",format:"url"},{key:"fileName",label:"File Name"},{key:"version",label:"Version",children:xy}]},Xx={fields:[{key:"file",label:"File",format:"url"},{key:"fileName",label:"File Name"},{key:"item",label:"Item",children:[...wt,{key:"cTag",label:"CTag"},{key:"eTag",label:"ETag"},{key:"isAuthoritative",label:"Is Authoritative",format:"boolean"},{key:"@microsoft.graph.downloadUrl",label:"Download URL",value:"['@microsoft.graph.downloadUrl']",format:"url"},{key:"@microsoft.graph.downloadUrlNoAuth",label:"Download URL (No Auth)",value:"['@microsoft.graph.downloadUrlNoAuth']",format:"url"},{key:"createdBy",label:"Created By",children:Ix},{key:"file",label:"File",children:pa},{key:"fileSystemInfo",label:"File System Info",children:Zt},{key:"lastModifiedBy",label:"Last Modified By",children:Ix},{key:"parentReference",label:"Parent Reference",children:Br},{key:"shared",label:"Shared",children:[{key:"scope",label:"Scope"}]}]}]},Yx={fields:[{key:"labels",label:"Labels"}]},Qx={fields:[{key:"success",label:"Success",format:"boolean"},{key:"files",label:"Files",labelKey:"name",listItems:by}]},eT={fields:[{key:"sites",label:"Sites",labelKey:"name",listItems:[{key:"id",label:"ID"},{key:"name",label:"Name"},{key:"displayName",label:"Display Name"},{key:"webUrl",label:"Web URL",format:"url"}]}]},tT={fields:[{key:"id",label:"ID"},{key:"followed",label:"Followed",children:[{key:"followedDateTime",label:"Followed At",format:"datetime"}]},{key:"lastModifiedBy",label:"Last Modified By",children:[{key:"user",label:"User"}]},{key:"parentReference",label:"Parent Reference",children:[{key:"driveId",label:"Drive ID"}]}]},rT={fields:[{key:"value",label:"Value",labelKey:"displayName",listItems:[{key:"id",label:"ID"},{key:"displayName",label:"Display Name"},{key:"webUrl",label:"Web URL",format:"url"},{key:"sharepointIds",label:"SharePoint IDs",children:zx},{key:"siteCollection",label:"Site Collection",children:[{key:"hostname",label:"Hostname"}]}]}]},oT={fields:wx},_u={fields:Ex},iT={fields:[{key:"@microsoft.graph.hasMoreData",label:"Has More Data",value:"['@microsoft.graph.hasMoreData']",format:"boolean"},{key:"@microsoft.graph.syncStatus",label:"Sync Status",value:"['@microsoft.graph.syncStatus']"},{key:"@odata.deltaLink",label:"Delta Link",value:"['@odata.deltaLink']",format:"url"},{key:"value",label:"Value",labelKey:"name",listItems:[...wt,{key:"cTag",label:"CTag"},{key:"eTag",label:"ETag"},{key:"isAuthoritative",label:"Is Authoritative",format:"boolean"},{key:"root",label:"Root"},{key:"createdBy",label:"Created By",children:bx},{key:"file",label:"File",children:pa},{key:"fileSystemInfo",label:"File System Info",children:Zt},{key:"folder",label:"Folder",children:[{key:"childCount",label:"Child Count",format:"number"}]},{key:"lastModifiedBy",label:"Last Modified By",children:bx},{key:"parentReference",label:"Parent Reference",children:[{key:"id",label:"ID"},{key:"driveId",label:"Drive ID"},{key:"driveType",label:"Drive Type"},{key:"path",label:"Path"},{key:"siteId",label:"Site ID"}]},{key:"shared",label:"Shared",children:[{key:"scope",label:"Scope"}]}]}]},xu={fields:xx},Tu={fields:[{key:"value",label:"Value",listItems:Rx}]},nT={fields:[{key:"aggregationInterval",label:"Aggregation Interval"},{key:"endDateTime",label:"End",format:"datetime"},{key:"isTrending",label:"Is Trending",format:"boolean"},{key:"startDateTime",label:"Start",format:"datetime"},{key:"access",label:"Access",children:Ey},{key:"incompleteData",label:"Incomplete Data",children:[{key:"missingDataBeforeDateTime",label:"Missing Data Before",format:"datetime"},{key:"notSupported",label:"Not Supported",format:"boolean"},{key:"resultsPending",label:"Results Pending",format:"boolean"},{key:"wasThrottled",label:"Was Throttled",format:"boolean"}]}]},Au={fields:[{key:"id",label:"ID"},{key:"grantedToIdentities",label:"Granted To Identities"},{key:"grantedToIdentitiesV2",label:"Granted To Identities V2"},{key:"hasPassword",label:"Has Password",format:"boolean"},{key:"roles",label:"Roles"},{key:"shareId",label:"Share ID"},{key:"link",label:"Link",children:fu}]},aT={fields:[{key:"getUrl",label:"Download URL",format:"url"},{key:"postParameters",label:"Upload Parameters"},{key:"postUrl",label:"Upload URL",format:"url"}]},sT={fields:xy},cT={itemLabel:"{name}",fields:[{key:"contents",label:"Contents",value:"",listItems:by}]},lT={fields:[...Gt,{key:"name",label:"Name"},{key:"displayName",label:"Display Name"},{key:"description",label:"Description"},{key:"createdBy",label:"Created By",children:[{key:"user",label:"User",children:It}]},{key:"list",label:"List",children:Ty},{key:"parentReference",label:"Parent Reference",children:[{key:"siteId",label:"Site ID"}]}]},wu={fields:[...qo,{key:"@odata.etag",label:"ETag",value:"['@odata.etag']"},{key:"inheritedFrom",label:"Inherited From",children:[{key:"sharepointIds",label:"SharePoint IDs",children:[{key:"siteId",label:"Site ID"},{key:"siteUrl",label:"Site URL",format:"url"},{key:"tenantId",label:"Tenant ID"},{key:"webId",label:"Web ID"}]}]}]},uT={fields:[...Ht,{key:"isDeletable",label:"Is Deletable",format:"boolean"},{key:"isReorderable",label:"Is Reorderable",format:"boolean"},{key:"isSealed",label:"Is Sealed",format:"boolean"},{key:"@odata.etag",label:"ETag",value:"['@odata.etag']"},{key:"propagateChanges",label:"Propagate Changes",format:"boolean"},{key:"type",label:"Type"},{key:"number",label:"Number",children:Bo},{key:"sourceContentType",label:"Source Content Type",children:[{key:"id",label:"ID"},{key:"name",label:"Name"}]},{key:"validation",label:"Validation",children:fa}]},dT={fields:Rx},pT={fields:[{key:"@odata.deltaLink",label:"Delta Link",value:"['@odata.deltaLink']",format:"url"},{key:"value",label:"Value",labelKey:"id",listItems:[...Gt,{key:"contentType",label:"Content Type",children:[{key:"id",label:"ID"},{key:"name",label:"Name"}]},{key:"createdBy",label:"Created By",children:ct},{key:"fields",label:"Fields",children:Sy},{key:"parentReference",label:"Parent Reference",children:[{key:"siteId",label:"Site ID"}]}]}]},mT={fields:Ox},fT={fields:[...Gt,{key:"name",label:"Name"},{key:"title",label:"Title"},{key:"pageLayout",label:"Page Layout"},{key:"promotionKind",label:"Promotion Kind"},{key:"reactions",label:"Reactions"},{key:"showComments",label:"Show Comments",format:"boolean"},{key:"showRecommendedPages",label:"Show Recommended Pages",format:"boolean"},{key:"thumbnailWebUrl",label:"Thumbnail Web URL",format:"image"},{key:"canvasLayout",label:"Canvas Layout",children:[{key:"horizontalSections",label:"Horizontal Sections"}]},{key:"contentType",label:"Content Type",children:[{key:"id",label:"ID"},{key:"name",label:"Name"}]},{key:"createdBy",label:"Created By",children:[{key:"user",label:"User",children:[{key:"displayName",label:"Display Name"},{key:"email",label:"Email",format:"email"}]}]},{key:"lastModifiedBy",label:"Last Modified By",children:[{key:"user",label:"User",children:[{key:"displayName",label:"Display Name"},{key:"email",label:"Email",format:"email"}]}]},{key:"parentReference",label:"Parent Reference",children:[{key:"siteId",label:"Site ID"}]},{key:"publishingState",label:"Publishing State",children:Sx},{key:"titleArea",label:"Title Area",children:Iy}]},hT={fields:[]},Eu={fields:[{key:"name",label:"Label Name"},{key:"isLabelAppliedExplicitly",label:"Applied Explicitly",format:"boolean"},{key:"labelAppliedDateTime",label:"Applied At",format:"datetime"},{key:"labelAppliedBy",label:"Applied By",children:[{key:"user",label:"User",children:[{key:"id",label:"User ID"},{key:"displayName",label:"Display Name"},{key:"email",label:"Email",format:"email"}]}]},{key:"retentionSettings",label:"Retention Settings",children:[{key:"behaviorDuringRetentionPeriod",label:"Behavior During Retention Period"},{key:"isContentUpdateAllowed",label:"Content Update Allowed",format:"boolean"},{key:"isDeleteAllowed",label:"Delete Allowed",format:"boolean"},{key:"isLabelUpdateAllowed",label:"Label Update Allowed",format:"boolean"},{key:"isMetadataUpdateAllowed",label:"Metadata Update Allowed",format:"boolean"},{key:"isRecordLocked",label:"Record Locked",format:"boolean"}]}]},Ko={fields:[{key:"id",label:"ID"},{key:"name",label:"Name"},{key:"displayName",label:"Display Name"},{key:"description",label:"Description"},{key:"createdDateTime",label:"Created",format:"datetime"},{key:"lastModifiedDateTime",label:"Last Modified",format:"datetime"},{key:"root",label:"Root"},{key:"webUrl",label:"Web URL",format:"url"},{key:"siteCollection",label:"Site Collection",children:[{key:"hostname",label:"Hostname"}]}]},yT={fields:[{key:"id",label:"ID"},{key:"width",label:"Width",format:"number"}]},gT={fields:[{key:"id",label:"ID"},{key:"name",label:"Name"}]},vT={fields:[{key:"@odata.nextLink",label:"Next Page Link",value:"['@odata.nextLink']",format:"url"},{key:"value",label:"Value",listItems:[{key:"aggregationInterval",label:"Aggregation Interval"},{key:"endDateTime",label:"End",format:"datetime"},{key:"startDateTime",label:"Start",format:"datetime"},{key:"access",label:"Access",children:Ey},{key:"incompleteData",label:"Incomplete Data",children:Ay}]}]},PT={fields:[{key:"aggregationInterval",label:"Aggregation Interval"},{key:"endDateTime",label:"End",format:"datetime"},{key:"isTrending",label:"Is Trending",format:"boolean"},{key:"startDateTime",label:"Start",format:"datetime"},{key:"access",label:"Access",children:Ey},{key:"incompleteData",label:"Incomplete Data",children:Ay}]},IT={fields:[...wt,{key:"eTag",label:"ETag"},{key:"isAuthoritative",label:"Is Authoritative",format:"boolean"},{key:"createdBy",label:"Created By",children:ct},{key:"fileSystemInfo",label:"File System Info",children:Zt},{key:"folder",label:"Folder",children:[{key:"childCount",label:"Child Count",format:"number"}]},{key:"lastModifiedBy",label:"Last Modified By",children:ct},{key:"parentReference",label:"Parent Reference",children:Br},{key:"specialFolder",label:"Special Folder",children:[{key:"name",label:"Name"}]}]},ku={fields:[{key:"emphasis",label:"Emphasis"}]},bT={fields:[{key:"columnId",label:"Column ID",format:"number"},{key:"horizontalSectionId",label:"Horizontal Section ID",format:"number"},{key:"isInVerticalSection",label:"In Vertical Section",format:"boolean"},{key:"webPartIndex",label:"Web Part Index",format:"number"}]},fr={fields:[{key:"value",label:"Value",labelKey:"id",listItems:[{key:"id",label:"ID"},{key:"innerHtml",label:"Inner HTML",format:"html"}]}]},ST={fields:[{key:"value",label:"Value",labelKey:"id",listItems:[{key:"id",label:"ID"},{key:"grantedToIdentities",label:"Granted To Identities"},{key:"hasPassword",label:"Has Password",format:"boolean"},{key:"roles",label:"Roles"},{key:"link",label:"Link",children:fu}]}]},_T={fields:[{key:"value",label:"Value",labelKey:"id",listItems:[{key:"id",label:"ID"},{key:"roles",label:"Roles"},{key:"grantedTo",label:"Granted To",children:[{key:"user",label:"User",children:It}]},{key:"grantedToV2",label:"Granted To V2",children:[{key:"user",label:"User",children:It}]}]}]},xT={fields:[{key:"@odata.nextLink",label:"Next Page Link",value:"['@odata.nextLink']",format:"url"},{key:"value",label:"Value",labelKey:"name",listItems:[...qo,{key:"isBuiltIn",label:"Built-In",format:"boolean"},{key:"@odata.etag",label:"ETag",value:"['@odata.etag']"},{key:"@odata.id",label:"OData ID",value:"['@odata.id']",format:"url"}]}]},bt={fields:[{key:"value",label:"Value"}]},TT={fields:[{key:"value",label:"Value",labelKey:"name",listItems:wx}]},AT={fields:[{key:"@odata.nextLink",label:"Next Page Link",value:"['@odata.nextLink']",format:"url"},{key:"value",label:"Value",labelKey:"name",listItems:Lx}]},wT={fields:[{key:"value",label:"Value",labelKey:"id",listItems:kx}]},ET={fields:[{key:"@odata.nextLink",label:"Next Page Link",value:"['@odata.nextLink']",format:"url"},{key:"value",label:"Value",labelKey:"id",listItems:[{key:"id",label:"ID"},{key:"action",label:"Action",children:[{key:"edit",label:"Edit"},{key:"version",label:"Version",children:[{key:"newVersion",label:"New Version"}]}]},{key:"actor",label:"Actor",children:[{key:"user",label:"User",children:wy}]},{key:"times",label:"Times",children:[{key:"recordedDateTime",label:"Recorded At",format:"datetime"}]}]}]},kT={fields:[{key:"@odata.nextLink",label:"Next Page Link",value:"['@odata.nextLink']",format:"url"},{key:"value",label:"Value",labelKey:"id",listItems:[{key:"id",label:"ID"},{key:"action",label:"Action",children:[{key:"create",label:"Create"},{key:"edit",label:"Edit"},{key:"version",label:"Version",children:[{key:"newVersion",label:"New Version"}]}]},{key:"actor",label:"Actor",children:[{key:"user",label:"User",children:wy}]},{key:"times",label:"Times",children:[{key:"recordedDateTime",label:"Recorded At",format:"datetime"}]}]}]},CT={fields:[{key:"@odata.nextLink",label:"Next Page Link",value:"['@odata.nextLink']",format:"url"},{key:"value",label:"Value",labelKey:"id",listItems:[{key:"id",label:"ID"},{key:"grantedToIdentities",label:"Granted To Identities"},{key:"grantedToIdentitiesV2",label:"Granted To Identities V2"},{key:"hasPassword",label:"Has Password",format:"boolean"},{key:"roles",label:"Roles"},{key:"shareId",label:"Share ID"},{key:"grantedTo",label:"Granted To",children:[{key:"user",label:"User",children:[{key:"id",label:"ID"},{key:"displayName",label:"Display Name"}]}]},{key:"grantedToV2",label:"Granted To V2",children:Cx},{key:"link",label:"Link",children:fu}]}]},DT={fields:[{key:"@odata.nextLink",label:"Next Page Link",value:"['@odata.nextLink']",format:"url"},{key:"value",label:"Value",labelKey:"id",listItems:xy}]},RT={fields:[{key:"@odata.nextLink",label:"Next Page Link",value:"['@odata.nextLink']",format:"url"},{key:"value",label:"Value",labelKey:"name",listItems:[...wt,{key:"cTag",label:"CTag"},{key:"eTag",label:"ETag"},{key:"isAuthoritative",label:"Is Authoritative",format:"boolean"},{key:"@microsoft.graph.downloadUrl",label:"Download URL",value:"['@microsoft.graph.downloadUrl']",format:"url"},{key:"@microsoft.graph.downloadUrlNoAuth",label:"Download URL (No Auth)",value:"['@microsoft.graph.downloadUrlNoAuth']",format:"url"},{key:"createdBy",label:"Created By",children:ct},{key:"file",label:"File",children:pa},{key:"fileSystemInfo",label:"File System Info",children:Zt},{key:"folder",label:"Folder",children:[{key:"childCount",label:"Child Count",format:"number"}]},{key:"lastModifiedBy",label:"Last Modified By",children:ct},{key:"parentReference",label:"Parent Reference",children:Br},{key:"shared",label:"Shared",children:[{key:"scope",label:"Scope"}]}]}]},OT={fields:[{key:"value",label:"Value",labelKey:"displayName",listItems:[{key:"id",label:"ID"},{key:"displayName",label:"Display Name"},{key:"description",label:"Description"},{key:"lastModifiedDateTime",label:"Last Modified",format:"datetime"},{key:"webUrl",label:"Web URL",format:"url"},{key:"sharepointIds",label:"SharePoint IDs",children:zx},{key:"siteCollection",label:"Site Collection",children:[{key:"hostname",label:"Hostname"}]}]}]},$T={fields:[{key:"value",label:"Value",labelKey:"id",listItems:Ux}]},Cu={fields:[{key:"@odata.nextLink",label:"Next Page Link",value:"['@odata.nextLink']",format:"url"},{key:"value",label:"Value",labelKey:"id",listItems:[{key:"id",label:"ID"},{key:"action",label:"Action",children:[{key:"create",label:"Create"}]},{key:"actor",label:"Actor",children:[{key:"user",label:"User",children:wy}]},{key:"times",label:"Times",children:[{key:"recordedDateTime",label:"Recorded At",format:"datetime"}]}]}]},NT={fields:[{key:"value",label:"Value",labelKey:"name",listItems:[...Ht,{key:"dateTime",label:"Date Time",children:[{key:"displayAs",label:"Display As"},{key:"format",label:"Format"}]},{key:"lookup",label:"Lookup",children:$x},{key:"number",label:"Number",children:Bo},{key:"personOrGroup",label:"Person Or Group",children:Nx},{key:"text",label:"Text",children:ma}]}]},LT={fields:[{key:"@odata.nextLink",label:"Next Page Link",value:"['@odata.nextLink']",format:"url"},{key:"value",label:"Value",labelKey:"name",listItems:[...Ht,{key:"isDeletable",label:"Is Deletable",format:"boolean"},{key:"isReorderable",label:"Is Reorderable",format:"boolean"},{key:"isSealed",label:"Is Sealed",format:"boolean"},{key:"@odata.etag",label:"ETag",value:"['@odata.etag']"},{key:"propagateChanges",label:"Propagate Changes",format:"boolean"},{key:"type",label:"Type"},{key:"number",label:"Number",children:Bo},{key:"sourceContentType",label:"Source Content Type",children:[{key:"id",label:"ID"},{key:"name",label:"Name"}]},{key:"text",label:"Text",children:ma},{key:"validation",label:"Validation",children:fa}]}]},zT={fields:[{key:"@odata.nextLink",label:"Next Page Link",value:"['@odata.nextLink']",format:"url"},{key:"value",label:"Value",labelKey:"name",listItems:[...qo,{key:"@odata.etag",label:"ETag",value:"['@odata.etag']"}]}]},Du={fields:[{key:"@odata.nextLink",label:"Next Page Link",value:"['@odata.nextLink']",format:"url"},{key:"value",label:"Value",labelKey:"id",listItems:[{key:"id",label:"ID"},{key:"inheritedFrom",label:"Inherited From"},{key:"roles",label:"Roles"},{key:"shareId",label:"Share ID"},{key:"grantedTo",label:"Granted To",children:[{key:"user",label:"User",children:[{key:"id",label:"ID"},{key:"displayName",label:"Display Name"}]}]},{key:"grantedToV2",label:"Granted To V2",children:Cx}]}]},UT={fields:[{key:"@odata.nextLink",label:"Next Page Link",value:"['@odata.nextLink']",format:"url"},{key:"value",label:"Value",labelKey:"id",listItems:Ox}]},MT={fields:[{key:"@odata.nextLink",label:"Next Page Link",value:"['@odata.nextLink']",format:"url"},{key:"value",label:"Value",labelKey:"id",listItems:[...Gt,{key:"contentType",label:"Content Type",children:[{key:"id",label:"ID"},{key:"name",label:"Name"}]},{key:"createdBy",label:"Created By",children:[{key:"user",label:"User",children:It}]},{key:"fields",label:"Fields",children:[...Py,{key:"_CheckinComment",label:"Check-in Comment"},{key:"_CommentCount",label:"Comment Count"},{key:"ContentType",label:"Content Type"},{key:"_DisplayName",label:"Display Name"},{key:"DocIcon",label:"Document Icon"},{key:"FileLeafRef",label:"File Name"},{key:"FileSizeDisplay",label:"File Size Display"},{key:"_LikeCount",label:"Like Count"},{key:"LinkFilename",label:"Link Filename"},{key:"LinkFilenameNoMenu",label:"Link Filename (No Menu)"},{key:"LinkTitle",label:"Link Title"},{key:"LinkTitleNoMenu",label:"Link Title (No Menu)"},{key:"ParentLeafNameLookupId",label:"Parent Leaf Name ID"},{key:"ParentVersionStringLookupId",label:"Parent Version ID"}]},{key:"lastModifiedBy",label:"Last Modified By",children:ct},{key:"parentReference",label:"Parent Reference",children:[{key:"id",label:"ID"},{key:"siteId",label:"Site ID"}]}]}]},FT={fields:[{key:"@odata.nextLink",label:"Next Page Link",value:"['@odata.nextLink']",format:"url"},{key:"value",label:"Value",labelKey:"name",listItems:Dx}]},jT={fields:[{key:"@odata.nextLink",label:"Next Page Link",value:"['@odata.nextLink']",format:"url"},{key:"value",label:"Value",labelKey:"name",listItems:_x}]},qT={fields:[{key:"value",label:"Value",labelKey:"id",listItems:[{key:"id",label:"ID"},{key:"width",label:"Width",format:"number"}]}]},BT={fields:[{key:"value",label:"Value",labelKey:"name",listItems:[...Ht,{key:"boolean",label:"Boolean"},{key:"geolocation",label:"Geolocation"},{key:"calculated",label:"Calculated",children:[{key:"formula",label:"Formula"},{key:"outputType",label:"Output Type"}]},{key:"choice",label:"Choice",children:[{key:"allowTextEntry",label:"Allow Text Entry",format:"boolean"},{key:"choices",label:"Choices"},{key:"displayAs",label:"Display As"}]},{key:"dateTime",label:"Date Time",children:[{key:"displayAs",label:"Display As"},{key:"format",label:"Format"}]},{key:"defaultValue",label:"Default Value",children:[{key:"value",label:"Value"}]},{key:"lookup",label:"Lookup",children:$x},{key:"number",label:"Number",children:Bo},{key:"personOrGroup",label:"Person Or Group",children:Nx},{key:"text",label:"Text",children:[{key:"allowMultipleLines",label:"Allow Multiple Lines",format:"boolean"},{key:"appendChangesToExistingText",label:"Append Changes To Existing Text",format:"boolean"},{key:"linesForEditing",label:"Lines For Editing",format:"number"},{key:"maxLength",label:"Max Length",format:"number"},{key:"textType",label:"Text Type"}]}]}]},HT={fields:[{key:"@odata.nextLink",label:"Next Page Link",value:"['@odata.nextLink']",format:"url"},{key:"value",label:"Value",labelKey:"name",listItems:Ex}]},GT={fields:[{key:"value",label:"Value",labelKey:"id",listItems:[{key:"id",label:"ID"},{key:"large",label:"Large",children:vy},{key:"medium",label:"Medium",children:vy},{key:"small",label:"Small",children:vy}]}]},ZT={fields:[{key:"message",label:"Message"},{key:"success",label:"Success",format:"boolean"},{key:"item",label:"Item",children:Tx}]},VT={fields:[{key:"message",label:"Message"},{key:"pageId",label:"Page ID"},{key:"siteId",label:"Site ID"},{key:"success",label:"Success",format:"boolean"}]},Ru={fields:Tx},WT={fields:[{key:"driveId",label:"Drive ID"},{key:"itemId",label:"Item ID"},{key:"success",label:"Success",format:"boolean"},{key:"versionId",label:"Version ID"}]},KT={fields:[{key:"listId",label:"List ID"},{key:"listItemId",label:"List Item ID"},{key:"siteId",label:"Site ID"},{key:"success",label:"Success",format:"boolean"},{key:"versionId",label:"Version ID"}]},JT={fields:[{key:"value",label:"Value",listItems:[{key:"searchTerms",label:"Search Terms"},{key:"hitsContainers",label:"Hits Containers",listItems:[{key:"moreResultsAvailable",label:"More Results Available",format:"boolean"},{key:"total",label:"Total",format:"number"},{key:"hits",label:"Hits",listItems:[{key:"hitId",label:"Hit ID"},{key:"rank",label:"Rank",format:"number"},{key:"summary",label:"Summary"},{key:"resource",label:"Resource",children:[...wt,{key:"createdBy",label:"Created By",children:[{key:"user",label:"User"}]},{key:"file",label:"File",children:[{key:"mimeType",label:"MIME Type"}]},{key:"fileSystemInfo",label:"File System Info",children:Zt},{key:"lastModifiedBy",label:"Last Modified By",children:[{key:"user",label:"User"}]},{key:"listItem",label:"List Item",children:[{key:"id",label:"ID"},{key:"fields",label:"Fields"}]},{key:"parentReference",label:"Parent Reference",children:[{key:"id",label:"ID"},{key:"driveId",label:"Drive ID"},{key:"sharepointIds",label:"SharePoint IDs"},{key:"siteId",label:"Site ID"}]}]}]}]}]}]},XT={fields:[{key:"value",label:"Value",labelKey:"id",listItems:_y}]},YT={fields:[{key:"siteIds",label:"Site IDs"},{key:"success",label:"Success",format:"boolean"}]},QT={fields:[{key:"id",label:"ID"},{key:"roles",label:"Roles"},{key:"shareId",label:"Share ID"},{key:"grantedTo",label:"Granted To",children:[{key:"user",label:"User",children:It}]},{key:"grantedToV2",label:"Granted To V2",children:[{key:"siteUser",label:"Site User",children:[{key:"id",label:"ID"},{key:"displayName",label:"Display Name"},{key:"email",label:"Email",format:"email"},{key:"loginName",label:"Login Name"}]},{key:"user",label:"User",children:It}]}]},eA={fields:Sy},tA={fields:[...Gt,{key:"name",label:"Name"},{key:"title",label:"Title"},{key:"description",label:"Description"},{key:"pageLayout",label:"Page Layout"},{key:"promotionKind",label:"Promotion Kind"},{key:"reactions",label:"Reactions"},{key:"showComments",label:"Show Comments",format:"boolean"},{key:"showRecommendedPages",label:"Show Recommended Pages",format:"boolean"},{key:"thumbnailWebUrl",label:"Thumbnail Web URL",format:"image"},{key:"contentType",label:"Content Type",children:[{key:"id",label:"ID"},{key:"name",label:"Name"}]},{key:"createdBy",label:"Created By",children:[{key:"user",label:"User",children:[{key:"displayName",label:"Display Name"},{key:"email",label:"Email",format:"email"}]}]},{key:"lastModifiedBy",label:"Last Modified By",children:[{key:"user",label:"User",children:[{key:"displayName",label:"Display Name"},{key:"email",label:"Email",format:"email"}]}]},{key:"parentReference",label:"Parent Reference",children:[{key:"siteId",label:"Site ID"}]},{key:"publishingState",label:"Publishing State",children:[{key:"level",label:"Level"},{key:"versionId",label:"Version ID"}]},{key:"titleArea",label:"Title Area",children:Iy}]},rA={fields:[...wt,{key:"file",label:"File",children:[{key:"mimeType",label:"MIME Type"}]},{key:"parentReference",label:"Parent Reference",children:[{key:"id",label:"ID"},{key:"driveId",label:"Drive ID"},{key:"path",label:"Path"}]}]},oA={fields:[...wt,{key:"file",label:"File",children:[{key:"mimeType",label:"MIME Type"}]},{key:"parentReference",label:"Parent Reference",children:[{key:"id",label:"ID"}]}]},Ou={fields:Dx},iA={fields:_y},nA={fields:by},aA={fields:Ax},sA={fields:[{key:"id",label:"ID"},{key:"createdDateTime",label:"Created",format:"datetime"},{key:"lastModifiedDateTime",label:"Last Modified",format:"datetime"},{key:"webUrl",label:"Web URL",format:"url"},{key:"fields",label:"Fields",children:[{key:"id",label:"ID"},{key:"DueDate",label:"Due Date",format:"datetime"},{key:"@odata.etag",label:"ETag",value:"['@odata.etag']"},{key:"Priority",label:"Priority"},{key:"Status",label:"Status"},{key:"Title",label:"Title"}]}]},$u={fields:[{key:"id",label:"Operation ID"},{key:"createdDateTime",label:"Created",format:"datetime"},{key:"lastActionDateTime",label:"Last Action At",format:"datetime"},{key:"percentageComplete",label:"Percent Complete",format:"number"},{key:"resourceId",label:"Resource ID"},{key:"resourceLocation",label:"Resource Location",format:"url"},{key:"status",label:"Status"},{key:"statusDetail",label:"Status Detail"},{key:"type",label:"Type"},{key:"error",label:"Error",children:[{key:"code",label:"Code"},{key:"message",label:"Message"}]}]},cA={fields:[{key:"success",label:"Success",format:"boolean"}]},Nu={fields:[{key:"operationId",label:"Operation ID"},{key:"operationLocation",label:"Operation Location",format:"url"},{key:"status",label:"Status"},{key:"contentType",label:"Content Type",children:[...qo,{key:"isBuiltIn",label:"Built-In",format:"boolean"}]}]},lA={fields:[{key:"contentTypeId",label:"Content Type ID"},{key:"hubSiteUrls",label:"Hub Site URLs"},{key:"success",label:"Success",format:"boolean"}]},uA={fields:[{key:"removed",label:"Removed",format:"boolean"}]},dA={fields:[{key:"monitorUrl",label:"Monitor URL",format:"url"},{key:"status",label:"HTTP Status",format:"number"}]};var mA=h({auth:p,name:"microsoft_sharepoint_create_folder",outputSchema:Pu,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:j.siteId,driveId:j.driveId,parentFolder:v.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:v.ShortText({displayName:"Folder Name",required:!0})},async run(e){let{driveId:t,parentFolder:o,folderName:i}=e.propsValue,r=e.auth.props?.cloud,n=pA.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:M(r)}),a=o+i;return await n.api(`/drives/${t}/root:${a}`).patch({folder:{}})}});var fA=ue(be());var hA=h({auth:p,name:"microsoft_sharepoint_create_list",outputSchema:Fx,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:j.siteId,displayName:v.ShortText({displayName:"List Name",required:!0}),description:v.ShortText({displayName:"List Description",required:!0})},async run(e){let{siteId:t,displayName:o,description:i}=e.propsValue,r=e.auth.props?.cloud,n=fA.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:M(r)}),a={displayName:o,description:i};return await n.api(`/sites/${t}/lists`).post(a)}});var yA=ue(be());var gA=h({auth:p,name:"microsoft_sharepoint_create_list_item",outputSchema:Iu,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:j.siteId,listId:j.listId,listColumns:j.listColumns},async run(e){let{siteId:t,listId:o,listColumns:i}=e.propsValue,r=e.auth.props?.cloud,n=yA.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:M(r)}),a={};Object.entries(i).forEach(([l,d])=>{Array.isArray(d)&&(a[`${l}@odata.type`]="Collection(Edm.String)")});let c={fields:{...i,...a}};return await n.api(`/sites/${t}/lists/${o}/items`).post(c)}});var vA=ue(be());var PA=h({auth:p,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:j.siteId,listId:j.listId,listItemId:j.listItemId},async run(e){let{siteId:t,listId:o,listItemId:i}=e.propsValue,r=e.auth.props?.cloud;return await vA.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:M(r)}).api(`/sites/${t}/lists/${o}/items/${i}`).delete()}});var IA=ue(be());var bA=h({auth:p,name:"microsoft_sharepoint_search_list_item",outputSchema:XT,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:j.siteId,listId:j.listId,searchValue:v.ShortText({displayName:"Title",description:"Item title to search",required:!0})},async run(e){let{siteId:t,listId:o,searchValue:i}=e.propsValue,r=e.auth.props?.cloud,n=IA.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:M(r)}),a=i.replaceAll("'","''");return await n.api(`/sites/${t}/lists/${o}/items?$expand=fields&filter=fields/Title eq '${a}'`).headers({Prefer:"HonorNonIndexedQueriesWarningMayFailRandomly"}).get()}});var SA=ue(be());var _A=h({auth:p,name:"microsoft_sharepoint_update_list_item",outputSchema:eA,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:j.siteId,listId:j.listId,listItemId:j.listItemId,listColumns:j.listColumns},async run(e){let{siteId:t,listId:o,listItemId:i,listColumns:r}=e.propsValue,n=e.auth.props?.cloud,a=SA.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:M(n)}),c={};Object.entries(r).forEach(([d,f])=>{Array.isArray(f)&&(c[`${d}@odata.type`]="Collection(Edm.String)")});let l={...r,...c};return await a.api(`/sites/${t}/lists/${o}/items/${i}/fields`).patch(l)}});var xA=require("node:stream"),TA=require("node:stream/consumers");var AA=ue(be());var k0=250*1024*1024,C0=10*1024*1024,wA=h({auth:p,name:"microsoft_sharepoint_upload_file",outputSchema:Ru,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:j.siteId,driveId:j.driveId,file:v.File({displayName:"File",description:"The file or url you want to upload",required:!0,streaming:!0}),parentFolder:v.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:v.ShortText({displayName:"File Name",required:!0})},async run(e){let{siteId:t,driveId:o,file:i,parentFolder:r,fileName:n}=e.propsValue,a=e.auth.props?.cloud,c=M(a),l=AA.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:c}),d=r==="/"?"root":`root:${r}`,b=(await l.api(`/sites/${t}/drives/${o}/${d}`).get()).id??"test",P=`/sites/${t}/drives/${o}/items/${b}:/${n}`,{body:m,size:I}=Wh.toStreamingBody(i);if(I==null){let T=await(0,TA.buffer)(m);I=T.length,m=xA.Readable.from(T)}if(I>k0){let T=await l.api(`${P}:/createUploadSession`).post({item:{"@microsoft.graph.conflictBehavior":"replace",name:n}});return await D0({uploadUrl:T.uploadUrl,body:m,fileSize:I})}return(await ta.sendRequest({method:"PUT",url:`${c}/v1.0${P}:/content`,body:m,headers:{"Content-Type":"application/octet-stream","Content-Length":String(I)},authentication:{type:"BEARER_TOKEN",token:e.auth.access_token}})).body}});async function D0({uploadUrl:e,body:t,fileSize:o}){let i=0,r;for await(let n of Wh.readChunks({readable:t,chunkSize:C0}))r=await ta.sendRequest({method:"PUT",url:e,body:n,headers:{"Content-Length":String(n.length),"Content-Range":`bytes ${i}-${i+n.length-1}/${o}`}}),i+=n.length;return r?.body}s(D0,"uploadInSession");var Lu=ue(be());var EA=2e3,R0=120;async function O0(e){return new Promise(t=>setTimeout(t,e))}s(O0,"delay");var kA=h({auth:p,name:"microsoft_sharepoint_copy_item",outputSchema:gu,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:j.siteId,driveId:j.driveId,itemId:j.itemId,destination_site_id:j.siteId,destination_drive_id:j.createDriveDropdown({displayName:"Destination Drive",refreshers:["destination_site_id"]}),destination_folder_id:j.destinationFolderId,new_name:v.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:v.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:o,itemId:i,destination_drive_id:r,destination_folder_id:n,new_name:a,conflict_behavior:c}=e.propsValue,l=e.auth.props?.cloud,d=Lu.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:M(l)}),f={parentReference:{driveId:r}};n&&(f.parentReference.id=n),a&&(f.name=a);let b;try{b=await d.api(`/drives/${o}/items/${i}/copy`).responseType(Lu.ResponseType.RAW).query({"@microsoft.graph.conflictBehavior":c}).post(f)}catch(I){throw I.statusCode===400?new Error(`Invalid request: ${I.message||"Check your input parameters"}`):I.statusCode===403?new Error("Insufficient permissions to copy this item. Requires Files.ReadWrite or higher."):I.statusCode===404?new Error("Source item not found. Please verify the site, drive, and item IDs."):new Error(`Failed to initiate copy operation: ${I.message||"Unknown error"}`)}let P=b.headers.get("Location");if(!P)throw new Error("Could not get monitor URL from copy operation response.");let m=R0*1e3/EA;for(;m>0;){let I=await d.api(P).get();if(I.status==="completed")return{success:!0,status:"completed",resourceId:I.resourceId,resourceLocation:I.resourceLocation};if(I.status==="failed"){let x=I.error?.details?I.error.details.map(T=>T.message||T.code).join(", "):I.error?.message||"Unknown error";throw new Error(`Copy operation failed: ${x}`)}await O0(EA),m--}throw new Error("Copy operation timed out after 120 seconds.")}});var ha=ue(be());var CA=2e3,$0=120;async function N0(e){return new Promise(t=>setTimeout(t,e))}s(N0,"delay");var DA=h({auth:p,name:"microsoft_sharepoint_copy_item_within_site",outputSchema:gu,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:j.siteId,driveId:j.driveId,itemId:j.itemId,destinationFolderId:v.Dropdown({auth:p,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:o})=>{if(!e||!t||!o)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let i=e,r=i.props?.cloud,n=ha.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(i.access_token),"getAccessToken")},baseUrl:M(r)}),a=[{label:"Root",value:"root"}],c=await n.api(`/sites/${t}/drives/${o}/root/children?$filter=folder ne null&$select=id,name`).get();for(;c.value.length>0;){for(let l of c.value)a.push({label:l.name,value:l.id});if(c["@odata.nextLink"])c=await n.api(c["@odata.nextLink"]).get();else break}return{disabled:!1,options:a}},"options")}),newName:v.ShortText({displayName:"New Name (Optional)",description:"A new name for the copied item. If not provided, the original name is used.",required:!1}),conflictBehavior:v.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:o,itemId:i,destinationFolderId:r,newName:n,conflictBehavior:a}=e.propsValue,c=e.auth.props?.cloud,l=ha.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:M(c)}),f={parentReference:{id:r==="root"?(await l.api(`/drives/${o}/root`).get()).id:r}};n&&(f.name=n);let b;try{b=await l.api(`/drives/${o}/items/${i}/copy`).responseType(ha.ResponseType.RAW).query({"@microsoft.graph.conflictBehavior":a}).post(f)}catch(I){throw I.statusCode===400?new Error(`Invalid request: ${I.message||"Check your input parameters"}`):I.statusCode===403?new Error("Insufficient permissions to copy this item. Requires Files.ReadWrite or higher."):I.statusCode===404?new Error("Source item not found. Please verify the site, drive, and item IDs."):new Error(`Failed to initiate copy operation: ${I.message||"Unknown error"}`)}let P=b.headers.get("Location");if(!P)throw new Error("Could not get monitor URL from copy operation response.");let m=$0*1e3/CA;for(;m>0;){let I=await l.api(P).get();if(I.status==="completed")return{success:!0,status:"completed",resourceId:I.resourceId,resourceLocation:I.resourceLocation};if(I.status==="failed"){let x=I.error?.details?I.error.details.map(T=>T.message||T.code).join(", "):I.error?.message||"Unknown error";throw new Error(`Copy operation failed: ${x}`)}await N0(CA),m--}throw new Error("Copy operation timed out after 120 seconds.")}});var ky=ue(be());var RA=h({auth:p,name:"microsoft_sharepoint_find_file",outputSchema:Qx,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:j.siteId,driveId:j.driveId,findMethod:v.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:v.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:v.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:v.Dropdown({auth:p,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:o})=>{if(!e||!t||!o)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let i=e,r=i.props?.cloud,n=ky.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(i.access_token),"getAccessToken")},baseUrl:M(r)}),a=[],c=await n.api(`/sites/${t}/drives/${o}/root/children?$filter=folder ne null&$select=id,name`).get();for(;c.value.length>0;){for(let l of c.value)a.push({label:l.name,value:l.id});if(c["@odata.nextLink"])c=await n.api(c["@odata.nextLink"]).get();else break}return{disabled:!1,options:a}},"options")})},async run(e){let{driveId:t,findMethod:o,filePath:i,searchQuery:r,searchFolderId:n}=e.propsValue,a=e.auth.props?.cloud,c=ky.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:M(a)});if(o==="path"){if(!i)throw new Error("File Path is required when finding by path.");let l=i.startsWith("/")?i.substring(1):i;try{return{success:!0,files:[await c.api(`/drives/${t}/root:/${encodeURI(l)}`).get()]}}catch(d){let f=d;if(f.statusCode===404)return{success:!0,files:[]};throw new Error(`Failed to find file by path: ${f.message||"Unknown error"}`)}}else{if(!r)throw new Error("Search Query is required when searching by name.");let l=`/drives/${t}/`;n?l+=`items/${n}/`:l+="root/",l+=`search(q='${encodeURIComponent(r)}')`;try{return{success:!0,files:(await c.api(l).get()).value||[]}}catch(d){throw new Error(`Failed to search for file: ${d.message||"Unknown error"}`)}}}});var Cy=ue(be());var OA=h({auth:p,name:"microsoft_sharepoint_get_folder_contents",outputSchema:cT,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:j.siteId,driveId:j.driveId,folderId:v.Dropdown({auth:p,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:o})=>{if(!e||!t||!o)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let i=e,r=i.props?.cloud,n=Cy.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(i.access_token),"getAccessToken")},baseUrl:M(r)}),a=[{label:"Root Folder",value:"root"}],c=await n.api(`/sites/${t}/drives/${o}/root/children?$filter=folder ne null&$select=id,name`).get();for(;c.value.length>0;){for(let l of c.value)a.push({label:l.name,value:l.id});if(c["@odata.nextLink"])c=await n.api(c["@odata.nextLink"]).get();else break}return{disabled:!1,options:a}},"options")}),includeCustomFields:v.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:v.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:v.ShortText({displayName:"Select Fields (Optional)",description:"A comma-separated list of properties to return. Example: `id,name,size,webUrl`",required:!1}),orderby:v.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:o,folderId:i,includeCustomFields:r,top:n,select:a,orderby:c}=e.propsValue,l=e.auth.props?.cloud,d=Cy.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:M(l)}),f=i==="root"?`/sites/${t}/drive/root/children`:`/sites/${t}/drive/items/${i}/children`,b={};return r&&(b.$expand="listItem(expand=fields)"),n&&(b.$top=n),a&&(b.$select=a),c&&(b.$orderby=c),(await d.api(f).query(b).get()).value||[]}});var $A=ue(be());var NA=h({auth:p,name:"microsoft_sharepoint_get_site_information",outputSchema:Ko,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:j.siteId,select:v.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:o}=e.propsValue,i=e.auth.props?.cloud,n=$A.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:M(i)}).api(`/sites/${t}`);return o&&n.select(o.split(",").map(a=>a.trim())),await n.get()}});var LA=ue(be());var zA=h({auth:p,name:"microsoft_sharepoint_find_site",outputSchema:eT,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:v.ShortText({displayName:"Site Name",description:"The name or keyword to search for.",required:!0})},async run(e){let{searchTerm:t}=e.propsValue,o=e.auth.props?.cloud,i=LA.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:M(o)}),r=[],n=await i.api(`/sites?search=${encodeURIComponent(t)}&$select=displayName,id,name,webUrl`).get();for(;n.value.length>0;){for(let a of n.value)r.push({id:a.id,displayName:a.displayName,name:a.name,webUrl:a.webUrl});if(n["@odata.nextLink"])n=await i.api(n["@odata.nextLink"]).get();else break}return{sites:r}}});var zu=ue(be());var UA=h({auth:p,name:"microsoft_sharepoint_move_file",outputSchema:ZT,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:j.siteId,driveId:j.driveId,fileId:v.Dropdown({auth:p,displayName:"File to Move",description:"The file you want to move.",required:!0,refreshers:["siteId","driveId"],options:s(async({auth:e,siteId:t,driveId:o})=>{if(!e||!t||!o)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let i=e,r=i.props?.cloud,n=zu.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(i.access_token),"getAccessToken")},baseUrl:M(r)}),a=[],c=await n.api(`/drives/${o}/root/children?$select=id,name,file`).get();for(;c.value.length>0;){for(let l of c.value)l.file&&a.push({label:l.name,value:l.id});if(c["@odata.nextLink"])c=await n.api(c["@odata.nextLink"]).get();else break}return{disabled:!1,options:a}},"options")}),destinationFolderId:v.Dropdown({auth:p,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:o})=>{if(!e||!t||!o)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let i=e,r=i.props?.cloud,n=zu.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(i.access_token),"getAccessToken")},baseUrl:M(r)}),a=[{label:"Root",value:"root"}],c=await n.api(`/sites/${t}/drives/${o}/root/children?$filter=folder ne null&$select=id,name`).get();for(;c.value.length>0;){for(let l of c.value)a.push({label:l.name,value:l.id});if(c["@odata.nextLink"])c=await n.api(c["@odata.nextLink"]).get();else break}return{disabled:!1,options:a}},"options")}),newName:v.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:o,destinationFolderId:i,newName:r}=e.propsValue,n=e.auth.props?.cloud,a=zu.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:M(n)});try{let l={parentReference:{id:i==="root"?(await a.api(`/drives/${t}/root`).get()).id:i}};return r&&(l.name=r),{success:!0,message:"File moved successfully",item:await a.api(`/drives/${t}/items/${o}`).patch(l)}}catch(c){throw c.statusCode===400?new Error(`Invalid request: ${c.message||"Check your input parameters"}`):c.statusCode===403?new Error("Insufficient permissions to move this file. Requires Files.ReadWrite or higher."):c.statusCode===404?new Error("File or destination not found. Please verify the IDs."):new Error(`Failed to move file: ${c.message||"Unknown error"}`)}}});var MA=ue(be());var FA=h({auth:p,name:"microsoft_sharepoint_publish_page",outputSchema:VT,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:j.siteId,pageId:j.pageId},async run(e){let{siteId:t,pageId:o}=e.propsValue,i=e.auth.props?.cloud,r=MA.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:M(i)});try{return await r.api(`/sites/${t}/pages/${o}/microsoft.graph.sitePage/publish`).post({}),{success:!0,message:"Page published successfully",pageId:o,siteId:t}}catch(n){throw n.statusCode===404?new Error(`Page not found. Please verify the page ID: ${o}`):n.statusCode===403?new Error("Insufficient permissions to publish this page. Requires Files.ReadWrite or higher."):n.statusCode===409?new Error("Page cannot be published. It may be awaiting approval or already published."):new Error(`Failed to publish page: ${n.message||"Unknown error"}`)}}});function L0({required:e,displayName:t="Site ID",description:o='SharePoint site ID, like "contoso.sharepoint.com,<guid>,<guid>". Use Find Site, Get Root Site or Get Site by Path to find it.'}){return v.ShortText({displayName:t,description:o,required:e})}s(L0,"siteId");function z0({required:e,displayName:t="List ID",description:o="SharePoint list ID (a GUID). Use List Lists to find it."}){return v.ShortText({displayName:t,description:o,required:e})}s(z0,"listId");function U0({required:e,displayName:t="Drive ID",description:o="ID of a document library (drive). Use List Site Drives or Get Site Default Drive to find it."}){return v.ShortText({displayName:t,description:o,required:e})}s(U0,"driveId");function M0({required:e,displayName:t="Item ID",description:o="ID of a file or folder (drive item) in the drive. Use List Folder Children, Find File or Search to find it."}){return v.ShortText({displayName:t,description:o,required:e})}s(M0,"itemId");function F0({required:e,displayName:t="List Item ID",description:o='ID of the list item, a number like "12" sent as text. Use List List Items to find it.'}){return v.ShortText({displayName:t,description:o,required:e})}s(F0,"listItemId");function j0({required:e,displayName:t="Limit",description:o="Maximum number of items to return, from 1 to 100. Defaults to 20."}){return v.Number({displayName:t,description:o,required:e,defaultValue:20})}s(j0,"limit");function q0({required:e,displayName:t="Next Link",description:o="The @odata.nextLink value from the previous call, to get the next page. Leave empty for the first page."}){return v.ShortText({displayName:t,description:o,required:e})}s(q0,"nextLink");function B0({displayName:e,description:t}){return v.StaticDropdown({displayName:e,description:t,required:!1,options:{disabled:!1,options:[{label:"True",value:"true"},{label:"False",value:"false"}]}})}s(B0,"booleanProp");var u={siteId:L0,listId:z0,driveId:U0,itemId:M0,listItemId:F0,limit:j0,nextLink:q0,booleanProp:B0};var Ct=ue(be());function Dy({auth:e}){return M(e.props?.cloud)}s(Dy,"baseUrl");function ya({auth:e}){return Ct.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.access_token),"getAccessToken")},baseUrl:Dy({auth:e})})}s(ya,"create");async function H0({auth:e,path:t,limit:o,nextLink:i,query:r,headers:n}){let a=ya({auth:e});if(i){if(!i.startsWith(`${Dy({auth:e})}/`))throw new Error("Next Link must be the @odata.nextLink or @odata.deltaLink value returned by the previous call of this action.");return await a.api(i).headers(n??{}).get()}return await a.api(t).headers(n??{}).query(r??{}).top(W0({limit:o})).get()}s(H0,"list");async function G0({auth:e,path:t}){let o=await ya({auth:e}).api(t).responseType(Ct.ResponseType.ARRAYBUFFER).get();return Buffer.from(o)}s(G0,"download");async function jA({auth:e,path:t,body:o}){return await ya({auth:e}).api(t).responseType(Ct.ResponseType.RAW).post(o)}s(jA,"postRaw");async function Z0({auth:e,path:t,body:o}){let i=await jA({auth:e,path:t,body:o});if(!i.ok)throw new Error(`Microsoft Graph returned ${i.status}: ${await i.text()}`);return{status:i.status,location:i.headers.get("Location"),body:await i.text()}}s(Z0,"postForLocation");async function V0({auth:e,sessionPath:t,data:o,fileName:i,conflictBehavior:r}){let n=ya({auth:e}),a=await Ct.LargeFileUploadTask.createUploadSession(n,t,{item:{"@microsoft.graph.conflictBehavior":r}});return(await new Ct.LargeFileUploadTask(n,new Ct.FileUpload(o,i,o.length),a,{rangeSize:X0}).upload()).responseBody}s(V0,"uploadLargeFile");function W0({limit:e}){let t=e??K0;if(!Number.isInteger(t)||t<1)throw new Error("Limit must be a whole number of at least 1.");return Math.min(t,J0)}s(W0,"pageSize");var g={baseUrl:Dy,create:ya,list:H0,download:G0,postRaw:jA,postForLocation:Z0,uploadLargeFile:V0},K0=20,J0=100,X0=32*320*1024;function qA({value:e,propName:t}){if(!(e===void 0||e==="")){if(e!=="true"&&e!=="false")throw new Error(`${t} must be "true" or "false".`);return e==="true"}}s(qA,"booleanChoice");function Y0({key:e,value:t}){return t===void 0?{}:{[e]:t}}s(Y0,"optionalText");function Q0({key:e,value:t,propName:o}){let i=qA({value:t,propName:o});return i===void 0?{}:{[e]:i}}s(Q0,"optionalBoolean");function eM({emails:e,propName:t}){return e.map(o=>{if(typeof o!="string")throw new Error(`${t} must be a list of email addresses.`);return{email:o}})}s(eM,"toRecipients");function tM({share:e}){return/^https?:\/\//i.test(e)?`u!${Buffer.from(e,"utf8").toString("base64url")}`:e}s(tM,"shareToken");function Ry({value:e}){return`'${encodeURIComponent(e.replace(/'/g,"''"))}'`}s(Ry,"odataString");function rM({startDateTime:e,endDateTime:t,interval:o}){if(!aM.includes(o))throw new Error('Interval must be "day", "week" or "month".');return`getActivitiesByInterval(startDateTime=${Ry({value:e})},endDateTime=${Ry({value:t})},interval=${Ry({value:o})})`}s(rM,"activitiesByIntervalFunction");function oM({value:e}){let t=e||"allTime";if(t!=="allTime"&&t!=="lastSevenDays")throw new Error('Period must be "allTime" or "lastSevenDays".');return t}s(oM,"analyticsPeriod");function iM({values:e}){if(e.length===0)throw new Error("Site IDs must contain at least one site ID.");return e.map(t=>{if(typeof t!="string"||t==="")throw new Error("Every entry of Site IDs must be a non-empty site ID string.");return t})}s(iM,"toSiteIds");function nM({location:e}){if(e===null)return null;let t=new URL(e).pathname.split("/").pop();return t?decodeURIComponent(t):null}s(nM,"operationIdFromLocation");var F={booleanChoice:qA,optionalText:Y0,optionalBoolean:Q0,toRecipients:eM,shareToken:tM,activitiesByIntervalFunction:rM,analyticsPeriod:oM,toSiteIds:iM,operationIdFromLocation:nM},aM=["day","week","month"];var BA=h({auth:p,name:"microsoft_sharepoint_get_file_activity_stats",outputSchema:Tu,displayName:"Get File Activity Stats",description:"Gets activity counts for a file or folder per day, week or month.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets activity counts (views, edits, deletes and more, with action and actor counts) on a file or folder for each day, week or month in a date range, one page of intervals at a time. Daily counts cover at most 90 days. Use Get File Analytics for all-time or last-seven-days totals; List Folder Children, Find File or Search return the item ID.",idempotent:!0},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0}),startDateTime:v.ShortText({displayName:"Start Date Time",description:'Start of the range, as an ISO 8601 date or date-time like "2026-01-01" or "2026-01-01T00:00:00Z".',required:!0}),endDateTime:v.ShortText({displayName:"End Date Time",description:'End of the range, as an ISO 8601 date or date-time like "2026-01-31" or "2026-01-31T00:00:00Z".',required:!0}),interval:v.StaticDropdown({displayName:"Interval",description:'Length of each aggregation bucket: "day", "week" or "month".',required:!0,options:{disabled:!1,options:[{label:"Day",value:"day"},{label:"Week",value:"week"},{label:"Month",value:"month"}]}}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}/${F.activitiesByIntervalFunction({startDateTime:t.startDateTime,endDateTime:t.endDateTime,interval:t.interval})}`,limit:t.limit,nextLink:t.nextLink})}});var HA=h({auth:p,name:"microsoft_sharepoint_get_file_analytics",outputSchema:nT,displayName:"Get File Analytics",description:"Gets view counts for a file or folder in a SharePoint document library.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets how many times a file or folder was viewed and by how many people, for all time or the last seven days. Use Get File Activity Stats for a custom date range; List Folder Children, Find File or Search return the item ID.",idempotent:!0},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0}),period:v.StaticDropdown({displayName:"Period",description:'Time range of the stats: "allTime" or "lastSevenDays". Defaults to "allTime".',required:!1,defaultValue:"allTime",options:{disabled:!1,options:[{label:"All Time",value:"allTime"},{label:"Last Seven Days",value:"lastSevenDays"}]}})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}/analytics/${F.analyticsPeriod({value:t.period})}`).get()}});async function sM({auth:e,siteId:t,listId:o,listItemId:i}){if(!/^\d+$/.test(i))return i;let n=(await g.create({auth:e}).api(`/sites/${encodeURIComponent(t)}/lists/${encodeURIComponent(o)}/items/${encodeURIComponent(i)}`).select("sharepointIds").get()).sharepointIds?.listItemUniqueId;if(!n)throw new Error(`List item ${i} has no listItemUniqueId, so its analytics cannot be read.`);return n}s(sM,"listItemUniqueId");var Uu={listItemUniqueId:sM};var GA=h({auth:p,name:"microsoft_sharepoint_get_list_item_activity_stats",outputSchema:Tu,displayName:"Get List Item Activity Stats",description:"Gets activity counts for an item in a SharePoint list per day, week or month.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets activity counts (views, edits, deletes and more, with action and actor counts) on a SharePoint list item for each day, week or month in a date range, one page of intervals at a time. Daily counts cover at most 90 days. Use Get List Item Analytics for all-time or last-seven-days totals. Takes the numeric item ID from List List Items (or the listItemUniqueId GUID) and looks up the GUID that analytics needs.",idempotent:!0},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),listItemId:u.listItemId({required:!0}),startDateTime:v.ShortText({displayName:"Start Date Time",description:'Start of the range, as an ISO 8601 date or date-time like "2026-01-01" or "2026-01-01T00:00:00Z".',required:!0}),endDateTime:v.ShortText({displayName:"End Date Time",description:'End of the range, as an ISO 8601 date or date-time like "2026-01-31" or "2026-01-31T00:00:00Z".',required:!0}),interval:v.StaticDropdown({displayName:"Interval",description:'Length of each aggregation bucket: "day", "week" or "month".',required:!0,options:{disabled:!1,options:[{label:"Day",value:"day"},{label:"Week",value:"week"},{label:"Month",value:"month"}]}}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){let o=await Uu.listItemUniqueId({auth:e,siteId:t.siteId,listId:t.listId,listItemId:t.listItemId});return await g.list({auth:e,path:`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/items/${encodeURIComponent(o)}/${F.activitiesByIntervalFunction({startDateTime:t.startDateTime,endDateTime:t.endDateTime,interval:t.interval})}`,limit:t.limit,nextLink:t.nextLink})}});var ZA=h({auth:p,name:"microsoft_sharepoint_get_list_item_analytics",outputSchema:dT,displayName:"Get List Item Analytics",description:"Gets view counts for an item in a SharePoint list.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets how many times a SharePoint list item was viewed and by how many people, for all time or the last seven days. Takes the numeric item ID from List List Items (or the listItemUniqueId GUID) and looks up the GUID that analytics needs. Use Get List Item Activity Stats for a custom date range.",idempotent:!0},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),listItemId:u.listItemId({required:!0}),period:v.StaticDropdown({displayName:"Period",description:'Time range of the stats: "allTime" or "lastSevenDays". Defaults to "allTime".',required:!1,defaultValue:"allTime",options:{disabled:!1,options:[{label:"All Time",value:"allTime"},{label:"Last Seven Days",value:"lastSevenDays"}]}})},async run({auth:e,propsValue:t}){let o=await Uu.listItemUniqueId({auth:e,siteId:t.siteId,listId:t.listId,listItemId:t.listItemId});return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/items/${encodeURIComponent(o)}/analytics/${F.analyticsPeriod({value:t.period})}`).get()}});var VA=h({auth:p,name:"microsoft_sharepoint_get_site_activity_stats",outputSchema:vT,displayName:"Get Site Activity Stats",description:"Gets activity counts for a SharePoint site per day, week or month.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets activity counts (views, edits, deletes and more, with action and actor counts) on a SharePoint site for each day, week or month in a date range, one page of intervals at a time. Daily counts cover at most 90 days. Use Get Site Analytics for all-time or last-seven-days totals; Find Site, Get Root Site or Get Site by Path return the site ID.",idempotent:!0},props:{siteId:u.siteId({required:!0}),startDateTime:v.ShortText({displayName:"Start Date Time",description:'Start of the range, as an ISO 8601 date or date-time like "2026-01-01" or "2026-01-01T00:00:00Z".',required:!0}),endDateTime:v.ShortText({displayName:"End Date Time",description:'End of the range, as an ISO 8601 date or date-time like "2026-01-31" or "2026-01-31T00:00:00Z".',required:!0}),interval:v.StaticDropdown({displayName:"Interval",description:'Length of each aggregation bucket: "day", "week" or "month".',required:!0,options:{disabled:!1,options:[{label:"Day",value:"day"},{label:"Week",value:"week"},{label:"Month",value:"month"}]}}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`/sites/${encodeURIComponent(t.siteId)}/${F.activitiesByIntervalFunction({startDateTime:t.startDateTime,endDateTime:t.endDateTime,interval:t.interval})}`,limit:t.limit,nextLink:t.nextLink})}});var WA=h({auth:p,name:"microsoft_sharepoint_get_site_analytics",outputSchema:PT,displayName:"Get Site Analytics",description:"Gets view counts for a SharePoint site.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets how many times a SharePoint site was viewed and by how many people, for all time or the last seven days. Use Get Site Activity Stats for a custom date range; Find Site, Get Root Site or Get Site by Path return the site ID.",idempotent:!0},props:{siteId:u.siteId({required:!0}),period:v.StaticDropdown({displayName:"Period",description:'Time range of the stats: "allTime" or "lastSevenDays". Defaults to "allTime".',required:!1,defaultValue:"allTime",options:{disabled:!1,options:[{label:"All Time",value:"allTime"},{label:"Last Seven Days",value:"lastSevenDays"}]}})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/analytics/${F.analyticsPeriod({value:t.period})}`).get()}});var KA=h({auth:p,name:"microsoft_sharepoint_list_drive_activities",outputSchema:ET,displayName:"List Drive Activities",description:"Lists recent activities in a SharePoint document library.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the recent activities (views, edits, deletes and more, with who and when) across a whole document library, one page at a time. Use List File Activities for one file or folder; List Site Drives or Get Site Default Drive returns the drive ID.",idempotent:!0},props:{driveId:u.driveId({required:!0}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`/drives/${encodeURIComponent(t.driveId)}/activities`,limit:t.limit,nextLink:t.nextLink})}});var JA=h({auth:p,name:"microsoft_sharepoint_list_file_activities",outputSchema:kT,displayName:"List File Activities",description:"Lists recent activities on a file or folder in a SharePoint document library.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the recent activities (views, edits, deletes and more, with who and when) on one file or folder and the items under it, one page at a time. Use List Drive Activities for the whole library; List Folder Children, Find File or Search return the item ID.",idempotent:!0},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}/activities`,limit:t.limit,nextLink:t.nextLink})}});var XA=h({auth:p,name:"microsoft_sharepoint_list_list_activities",outputSchema:Cu,displayName:"List List Activities",description:"Lists recent activities in a SharePoint list.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the recent activities (views, edits, deletes and more, with who and when) across a whole SharePoint list, one page at a time. Use List List Item Activities for one item; List Lists returns the list ID.",idempotent:!0},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/activities`,limit:t.limit,nextLink:t.nextLink})}});var YA=h({auth:p,name:"microsoft_sharepoint_list_list_item_activities",outputSchema:Cu,displayName:"List List Item Activities",description:"Lists recent activities on an item in a SharePoint list.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the recent activities (views, edits, deletes and more, with who and when) on one SharePoint list item, one page at a time. Use List List Activities for the whole list; List List Items returns the item ID.",idempotent:!0},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),listItemId:u.listItemId({required:!0}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/items/${encodeURIComponent(t.listItemId)}/activities`,limit:t.limit,nextLink:t.nextLink})}});function cM({description:e}){return v.ShortText({displayName:"Column ID",description:e,required:!0})}s(cM,"columnId");function lM({description:e}){return v.ShortText({displayName:"Content Type ID",description:e,required:!0})}s(lM,"contentTypeId");function QA(){return{required:u.booleanProp({displayName:"Required",description:"Whether a value is required in this column. Leave empty to keep the current setting."}),hidden:u.booleanProp({displayName:"Hidden",description:"Whether the column is hidden from forms and views. Leave empty to keep the current setting."})}}s(QA,"flagProps");function uM({required:e}){return{name:v.ShortText({displayName:"Name",description:"Internal name of the column, used as its key in list item fields. Use no spaces or special characters.",required:e}),displayName:v.ShortText({displayName:"Display Name",description:"Name shown in the SharePoint interface.",required:!1}),description:v.LongText({displayName:"Description",description:"Description of the column.",required:!1}),columnType:v.StaticDropdown({displayName:"Column Type",description:"Type of data the column holds. Type Settings holds the options for this type.",required:e,options:{disabled:!1,options:Oy.map(t=>({label:t,value:t}))}}),typeSettings:v.Json({displayName:"Type Settings",description:'Options of the chosen Column Type as a JSON object, like {"maxLength": 255} for text, {"choices": ["Red", "Blue"], "displayAs": "dropDownMenu"} for choice, {"decimalPlaces": "two"} for number, {"format": "dateOnly"} for dateTime, or {"listId": "<list ID>", "columnName": "Title"} for lookup. Leave empty for the defaults. Needs Column Type.',required:!1}),...QA(),indexed:u.booleanProp({displayName:"Indexed",description:"Whether the column is indexed for faster filtering and sorting."}),enforceUniqueValues:u.booleanProp({displayName:"Enforce Unique Values",description:"Whether no two items may have the same value in this column. Needs Indexed set to true."})}}s(uM,"definitionProps");function ew({values:e}){return{...F.optionalBoolean({key:"required",value:e.required,propName:"Required"}),...F.optionalBoolean({key:"hidden",value:e.hidden,propName:"Hidden"})}}s(ew,"flagBody");function dM({values:e}){return{...F.optionalText({key:"name",value:e.name}),...F.optionalText({key:"displayName",value:e.displayName}),...F.optionalText({key:"description",value:e.description}),...ew({values:e}),...F.optionalBoolean({key:"indexed",value:e.indexed,propName:"Indexed"}),...F.optionalBoolean({key:"enforceUniqueValues",value:e.enforceUniqueValues,propName:"Enforce Unique Values"}),...mM({columnType:e.columnType,typeSettings:e.typeSettings})}}s(dM,"definitionBody");function pM({body:e}){if(Object.keys(e).length===0)throw new Error("Set at least one column field to update.");return e}s(pM,"requireChanges");function mM({columnType:e,typeSettings:t}){let o=t??{};if(e===void 0||e===""){if(Object.keys(o).length>0)throw new Error("Column Type is required when Type Settings is set.");return{}}if(!Oy.includes(e))throw new Error(`Column Type must be one of: ${Oy.join(", ")}.`);return{[e]:o}}s(mM,"typeFacet");var Y={columnId:cM,contentTypeId:lM,flagProps:QA,definitionProps:uM,flagBody:ew,definitionBody:dM,requireChanges:pM},Oy=["text","number","boolean","dateTime","choice","currency","personOrGroup","hyperlinkOrPicture","lookup","calculated","geolocation","term","thumbnail"];var tw=h({auth:p,name:"microsoft_sharepoint_create_list_column",outputSchema:Vo,displayName:"Create List Column",description:"Creates a column in a SharePoint list.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Creates a column of the given type in a SharePoint list, only for that list. Not idempotent: the name must be unique, so a repeat fails.",idempotent:!1},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),...Y.definitionProps({required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/columns`).post(Y.definitionBody({values:t}))}});var rw=h({auth:p,name:"microsoft_sharepoint_create_site_column",outputSchema:Wo,displayName:"Create Site Column",description:"Creates a column in a SharePoint site.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Creates a column of the given type in a SharePoint site, reusable by its lists and content types. Not idempotent: the name must be unique, so a repeat fails.",idempotent:!1},props:{siteId:u.siteId({required:!0}),...Y.definitionProps({required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/columns`).post(Y.definitionBody({values:t}))}});var ow=h({auth:p,name:"microsoft_sharepoint_delete_list_column",outputSchema:He,displayName:"Delete List Column",description:"Deletes a column from a SharePoint list.",audience:"ai",classification:"DESTRUCTIVE",aiMetadata:{description:"Permanently deletes a column from a SharePoint list, including the values stored in it. Cannot be undone, and repeating it fails because the column is gone. List List Columns returns the column IDs.",idempotent:!1},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),columnId:Y.columnId({description:"ID of the list column. Use List List Columns to find it."})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/columns/${encodeURIComponent(t.columnId)}`).delete(),{success:!0}}});var iw=h({auth:p,name:"microsoft_sharepoint_delete_site_column",outputSchema:He,displayName:"Delete Site Column",description:"Deletes a column from a SharePoint site.",audience:"ai",classification:"DESTRUCTIVE",aiMetadata:{description:"Permanently deletes a column from a SharePoint site; lists and content types using it lose it. Cannot be undone, and repeating it fails because the column is gone. List Site Columns returns the column IDs.",idempotent:!1},props:{siteId:u.siteId({required:!0}),columnId:Y.columnId({description:"ID of the site column. Use List Site Columns to find it."})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/columns/${encodeURIComponent(t.columnId)}`).delete(),{success:!0}}});var nw=h({auth:p,name:"microsoft_sharepoint_get_content_type_column",outputSchema:oT,displayName:"Get Content Type Column",description:"Gets one column of a site content type.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets the definition of one column of a site content type: its name, type and settings. List Content Type Columns returns the column IDs.",idempotent:!0},props:{siteId:u.siteId({required:!0}),contentTypeId:Y.contentTypeId({description:'ID of the site content type, like "0x0101". Use List Content Types to find it.'}),columnId:Y.columnId({description:"ID of the column in the content type. Use List Content Type Columns to find it."})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/contentTypes/${encodeURIComponent(t.contentTypeId)}/columns/${encodeURIComponent(t.columnId)}`).get()}});var aw=h({auth:p,name:"microsoft_sharepoint_get_list_column",outputSchema:Vo,displayName:"Get List Column",description:"Gets one column of a SharePoint list.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets the definition of one column of a SharePoint list: its name, type and settings. List List Columns returns the column IDs.",idempotent:!0},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),columnId:Y.columnId({description:"ID of the list column. Use List List Columns to find it."})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/columns/${encodeURIComponent(t.columnId)}`).get()}});var sw=h({auth:p,name:"microsoft_sharepoint_get_list_content_type_column",outputSchema:uT,displayName:"Get List Content Type Column",description:"Gets one column of a list content type.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets the definition of one column of a list content type: its name, type and settings. List List Content Type Columns returns the column IDs.",idempotent:!0},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),contentTypeId:Y.contentTypeId({description:'ID of the list content type, like "0x0100...". Use List List Content Types to find it.'}),columnId:Y.columnId({description:"ID of the column in the list content type. Use List List Content Type Columns to find it."})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/contentTypes/${encodeURIComponent(t.contentTypeId)}/columns/${encodeURIComponent(t.columnId)}`).get()}});var cw=h({auth:p,name:"microsoft_sharepoint_get_site_column",outputSchema:Wo,displayName:"Get Site Column",description:"Gets one column of a SharePoint site.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets the definition of one column of a SharePoint site: its name, type and settings. List Site Columns returns the column IDs.",idempotent:!0},props:{siteId:u.siteId({required:!0}),columnId:Y.columnId({description:"ID of the site column. Use List Site Columns to find it."})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/columns/${encodeURIComponent(t.columnId)}`).get()}});var lw=h({auth:p,name:"microsoft_sharepoint_list_list_columns",outputSchema:NT,displayName:"List List Columns",description:"Lists the columns of a SharePoint list.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the columns defined in a SharePoint list with their IDs, names and types, one page at a time. List Site Columns returns the site-wide columns.",idempotent:!0},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/columns`,limit:t.limit,nextLink:t.nextLink})}});var uw=h({auth:p,name:"microsoft_sharepoint_list_site_columns",outputSchema:BT,displayName:"List Site Columns",description:"Lists the columns of a SharePoint site.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the columns defined in a SharePoint site with their IDs, names and types, one page at a time. List List Columns returns the columns of one list.",idempotent:!0},props:{siteId:u.siteId({required:!0}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`/sites/${encodeURIComponent(t.siteId)}/columns`,limit:t.limit,nextLink:t.nextLink})}});var dw=h({auth:p,name:"microsoft_sharepoint_remove_content_type_column",outputSchema:He,displayName:"Remove Content Type Column",description:"Removes a column from a site content type.",audience:"ai",classification:"DESTRUCTIVE",aiMetadata:{description:"Removes a column from a site content type; the column itself stays in the site. Repeating it fails because the column is no longer in the content type. List Content Type Columns returns the column IDs.",idempotent:!1},props:{siteId:u.siteId({required:!0}),contentTypeId:Y.contentTypeId({description:'ID of the site content type, like "0x0101". Use List Content Types to find it.'}),columnId:Y.columnId({description:"ID of the column in the content type. Use List Content Type Columns to find it."})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/contentTypes/${encodeURIComponent(t.contentTypeId)}/columns/${encodeURIComponent(t.columnId)}`).delete(),{success:!0}}});var pw=h({auth:p,name:"microsoft_sharepoint_remove_list_content_type_column",outputSchema:He,displayName:"Remove List Content Type Column",description:"Removes a column from a list content type.",audience:"ai",classification:"DESTRUCTIVE",aiMetadata:{description:"Removes a column from a list content type; the column itself stays in the list. Repeating it fails because the column is no longer in the content type. List List Content Type Columns returns the column IDs.",idempotent:!1},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),contentTypeId:Y.contentTypeId({description:'ID of the list content type, like "0x0100...". Use List List Content Types to find it.'}),columnId:Y.columnId({description:"ID of the column in the list content type. Use List List Content Type Columns to find it."})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/contentTypes/${encodeURIComponent(t.contentTypeId)}/columns/${encodeURIComponent(t.columnId)}`).delete(),{success:!0}}});var mw=h({auth:p,name:"microsoft_sharepoint_update_content_type_column",outputSchema:hu,displayName:"Update Content Type Column",description:"Updates a column of a site content type.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Changes whether a column of a site content type is required or hidden, sending only the fields given; other column settings can only be changed on the site or list column. List Content Type Columns returns the column IDs.",idempotent:!0},props:{siteId:u.siteId({required:!0}),contentTypeId:Y.contentTypeId({description:'ID of the site content type, like "0x0101". Use List Content Types to find it.'}),columnId:Y.columnId({description:"ID of the column in the content type. Use List Content Type Columns to find it."}),...Y.flagProps()},async run({auth:e,propsValue:t}){let o=Y.requireChanges({body:Y.flagBody({values:t})});return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/contentTypes/${encodeURIComponent(t.contentTypeId)}/columns/${encodeURIComponent(t.columnId)}`).patch(o)}});var fw=h({auth:p,name:"microsoft_sharepoint_update_list_column",outputSchema:Vo,displayName:"Update List Column",description:"Updates a column of a SharePoint list.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Changes the name, description, flags or type settings of a column of a SharePoint list, sending only the fields given. Set Column Type to send Type Settings. List List Columns returns the column IDs.",idempotent:!0},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),columnId:Y.columnId({description:"ID of the list column. Use List List Columns to find it."}),...Y.definitionProps({required:!1})},async run({auth:e,propsValue:t}){let o=Y.requireChanges({body:Y.definitionBody({values:t})});return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/columns/${encodeURIComponent(t.columnId)}`).patch(o)}});var hw=h({auth:p,name:"microsoft_sharepoint_update_list_content_type_column",outputSchema:yu,displayName:"Update List Content Type Column",description:"Updates a column of a list content type.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Changes whether a column of a list content type is required or hidden, sending only the fields given; other column settings can only be changed on the site or list column. List List Content Type Columns returns the column IDs.",idempotent:!0},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),contentTypeId:Y.contentTypeId({description:'ID of the list content type, like "0x0100...". Use List List Content Types to find it.'}),columnId:Y.columnId({description:"ID of the column in the list content type. Use List List Content Type Columns to find it."}),...Y.flagProps()},async run({auth:e,propsValue:t}){let o=Y.requireChanges({body:Y.flagBody({values:t})});return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/contentTypes/${encodeURIComponent(t.contentTypeId)}/columns/${encodeURIComponent(t.columnId)}`).patch(o)}});var yw=h({auth:p,name:"microsoft_sharepoint_update_site_column",outputSchema:Wo,displayName:"Update Site Column",description:"Updates a column of a SharePoint site.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Changes the name, description, flags or type settings of a column of a SharePoint site, sending only the fields given. Set Column Type to send Type Settings. List Site Columns returns the column IDs.",idempotent:!0},props:{siteId:u.siteId({required:!0}),columnId:Y.columnId({description:"ID of the site column. Use List Site Columns to find it."}),...Y.definitionProps({required:!1})},async run({auth:e,propsValue:t}){let o=Y.requireChanges({body:Y.definitionBody({values:t})});return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/columns/${encodeURIComponent(t.columnId)}`).patch(o)}});var gw=h({auth:p,name:"microsoft_sharepoint_add_content_type_column",outputSchema:hu,displayName:"Add Content Type Column",description:"Adds an existing site column to a site content type.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Adds an existing site column to one site content type. List Content Types returns the content type IDs and List Site Columns the column IDs; use Add List Content Type Column for a content type attached to a list.",idempotent:!1},props:{siteId:u.siteId({required:!0}),contentTypeId:v.ShortText({displayName:"Content Type ID",description:'ID of the site content type, like "0x0101...". Use List Content Types to find it.',required:!0}),columnId:v.ShortText({displayName:"Column ID",description:"ID of the site column to add (a GUID). Use List Site Columns to find it.",required:!0}),columnSiteId:u.siteId({required:!1,displayName:"Column Site ID",description:"ID of the site that defines the column, when it is a parent or root site rather than Site ID. Leave empty to use Site ID."})},async run({auth:e,propsValue:t}){let o=t.columnSiteId??t.siteId;return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/contentTypes/${encodeURIComponent(t.contentTypeId)}/columns`).post({"sourceColumn@odata.bind":`${g.baseUrl({auth:e})}/v1.0/sites/${encodeURIComponent(o)}/columns/${encodeURIComponent(t.columnId)}`})}});var vw=h({auth:p,name:"microsoft_sharepoint_add_content_type_to_list",outputSchema:Mx,displayName:"Add Content Type to List",description:"Adds a copy of a site content type to a SharePoint list.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Attaches a copy of a site content type to one list or document library. List Applicable Content Types returns the content types that fit the list; use Add Hub Content Type to List for a Content Type Hub content type.",idempotent:!1},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),contentTypeId:v.ShortText({displayName:"Content Type ID",description:'ID of the site content type to add, like "0x0101...". Use List Applicable Content Types or List Content Types to find it.',required:!0})},async run({auth:e,propsValue:t}){let o=encodeURIComponent(t.siteId);return await g.create({auth:e}).api(`/sites/${o}/lists/${encodeURIComponent(t.listId)}/contentTypes/addCopy`).post({contentType:`${g.baseUrl({auth:e})}/v1.0/sites/${o}/contentTypes/${encodeURIComponent(t.contentTypeId)}`})}});var Pw=h({auth:p,name:"microsoft_sharepoint_add_hub_content_type_to_list",outputSchema:Nu,displayName:"Add Hub Content Type to List",description:"Adds or syncs a Content Type Hub content type to a SharePoint list.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Adds or syncs a content type published in the Content Type Hub to one list. It may finish at once (status completed, with the content type) or run in the background for up to 70 minutes (status inProgress): then poll Get List Operation with the returned operationId. List Compatible Hub Content Types for List returns the content type IDs.",idempotent:!1},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),contentTypeId:v.ShortText({displayName:"Hub Content Type ID",description:'ID of the content type in the Content Type Hub, like "0x0101...". Use List Compatible Hub Content Types for List to find it.',required:!0})},async run({auth:e,propsValue:t}){let o=await g.postForLocation({auth:e,path:`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/contentTypes/addCopyFromContentTypeHub`,body:{contentTypeId:t.contentTypeId}}),i=o.location,r=F.operationIdFromLocation({location:i});return o.status===202?{status:"inProgress",contentType:null,operationId:r,operationLocation:i}:{status:"completed",contentType:JSON.parse(o.body),operationId:r,operationLocation:i}}});var Iw=h({auth:p,name:"microsoft_sharepoint_add_hub_content_type_to_site",outputSchema:Nu,displayName:"Add Hub Content Type to Site",description:"Adds or syncs a Content Type Hub content type to a SharePoint site.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Adds or syncs a content type published in the Content Type Hub to a site. It may finish at once (status completed, with the content type) or run in the background for up to 70 minutes (status inProgress): then poll Get Site Operation with the returned operationId. List Compatible Hub Content Types returns the content type IDs.",idempotent:!1},props:{siteId:u.siteId({required:!0}),contentTypeId:v.ShortText({displayName:"Hub Content Type ID",description:'ID of the content type in the Content Type Hub, like "0x0101...". Use List Compatible Hub Content Types to find it.',required:!0})},async run({auth:e,propsValue:t}){let o=await g.postForLocation({auth:e,path:`/sites/${encodeURIComponent(t.siteId)}/contentTypes/addCopyFromContentTypeHub`,body:{contentTypeId:t.contentTypeId}}),i=o.location,r=F.operationIdFromLocation({location:i});return o.status===202?{status:"inProgress",contentType:null,operationId:r,operationLocation:i}:{status:"completed",contentType:JSON.parse(o.body),operationId:r,operationLocation:i}}});var bw=h({auth:p,name:"microsoft_sharepoint_add_list_content_type_column",outputSchema:yu,displayName:"Add List Content Type Column",description:"Adds an existing site column to a content type attached to a SharePoint list.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Adds an existing site column to one content type attached to a list. List List Content Types returns the content type IDs and List Site Columns the column IDs.",idempotent:!1},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),contentTypeId:v.ShortText({displayName:"Content Type ID",description:'ID of the content type in the list, like "0x0101...". Use List List Content Types to find it.',required:!0}),columnId:v.ShortText({displayName:"Column ID",description:"ID of the site column to add (a GUID). Use List Site Columns to find it.",required:!0}),columnSiteId:u.siteId({required:!1,displayName:"Column Site ID",description:"ID of the site that defines the column, when it is a parent or root site rather than Site ID. Leave empty to use Site ID."})},async run({auth:e,propsValue:t}){let o=t.columnSiteId??t.siteId;return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/contentTypes/${encodeURIComponent(t.contentTypeId)}/columns`).post({"sourceColumn@odata.bind":`${g.baseUrl({auth:e})}/v1.0/sites/${encodeURIComponent(o)}/columns/${encodeURIComponent(t.columnId)}`})}});var Sw=h({auth:p,name:"microsoft_sharepoint_associate_content_type_with_hub_sites",outputSchema:lA,displayName:"Associate Content Type with Hub Sites",description:"Enforces a Content Type Hub content type on hub sites.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Enforces one content type from the Content Type Hub site on the given hub sites, for new lists only or also for existing lists. Site ID must be the Content Type Hub site; List Content Types on it returns the content type IDs.",idempotent:!0},props:{siteId:u.siteId({required:!0,description:'ID of the Content Type Hub site that owns the content type. Use Get Site by Path with "/sites/contentTypeHub" to find it.'}),contentTypeId:v.ShortText({displayName:"Content Type ID",description:'ID of the content type in the Content Type Hub, like "0x0101...". Use List Content Types on the hub site to find it.',required:!0}),hubSiteUrls:v.Array({displayName:"Hub Site URLs",description:'Canonical Microsoft Graph URLs of the hub sites, like "https://graph.microsoft.com/v1.0/sites/{site-id}".',required:!0}),propagateToExistingLists:v.StaticDropdown({displayName:"Propagate to Existing Lists",description:"Whether the content type is also enforced on existing lists in the hub sites. Leave empty to apply it to new lists only.",required:!1,options:{options:[{label:"True",value:"true"},{label:"False",value:"false"}]}})},async run({auth:e,propsValue:t}){let o=t.hubSiteUrls.map(r=>String(r));if(o.length===0)throw new Error("Hub Site URLs must hold at least one URL.");let i=F.booleanChoice({value:t.propagateToExistingLists,propName:"Propagate to Existing Lists"});return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/contentTypes/${encodeURIComponent(t.contentTypeId)}/associateWithHubSites`).post({hubSiteUrls:o,...i!==void 0?{propagateToExistingLists:i}:{}}),{success:!0,contentTypeId:t.contentTypeId,hubSiteUrls:o}}});var _w=h({auth:p,name:"microsoft_sharepoint_copy_file_to_default_content_location",outputSchema:Ho,displayName:"Copy File to Default Content Location",description:"Copies a file into a content type's document template location.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Copies one file from a document library into the default content location of a site content type, where its document template lives, for example to set the template. List Content Types returns the content type IDs and List Folder Children or Find File the file's drive and item IDs.",idempotent:!1},props:{siteId:u.siteId({required:!0}),contentTypeId:v.ShortText({displayName:"Content Type ID",description:'ID of the site content type, like "0x0101...". Use List Content Types to find it.',required:!0}),driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0,displayName:"File ID",description:"ID of the file (drive item) to copy. Use List Folder Children or Find File to find it."}),destinationFileName:v.ShortText({displayName:"Destination File Name",description:'Name of the copy, like "template.docx". Leave empty to keep the source file name.',required:!1})},async run({auth:e,propsValue:t}){let o=g.create({auth:e}),i=await o.api(`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}`).select("sharepointIds").get(),r=i.sharepointIds?.listId,n=i.sharepointIds?.listItemId;if(!r||!n)throw new Error("File ID must be a file in a SharePoint document library; this item has no SharePoint list IDs.");return await o.api(`/sites/${encodeURIComponent(t.siteId)}/contentTypes/${encodeURIComponent(t.contentTypeId)}/copyToDefaultContentLocation`).post({sourceFile:{sharepointIds:{listId:r,listItemId:n}},...t.destinationFileName!==void 0?{destinationFileName:t.destinationFileName}:{}}),{success:!0,contentTypeId:t.contentTypeId}}});var xw=h({auth:p,name:"microsoft_sharepoint_create_content_type",outputSchema:Go,displayName:"Create Content Type",description:"Creates a content type in a SharePoint site.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Creates a site content type that inherits from a base content type, such as Item (0x01), Document (0x0101) or Document Set (0x0120D520). List Content Types returns base content type IDs; use Add Content Type to List to attach the new one to a list.",idempotent:!1},props:{siteId:u.siteId({required:!0}),name:v.ShortText({displayName:"Name",description:"Name of the new content type.",required:!0}),group:v.ShortText({displayName:"Group",description:'Group to list the content type under, like "Custom Content Types".',required:!0}),baseContentTypeId:v.ShortText({displayName:"Base Content Type ID",description:'ID of the content type to inherit from, like "0x0101" for Document. Use List Content Types to find it.',required:!0}),description:v.LongText({displayName:"Description",description:"Description of the content type.",required:!1})},async run({auth:e,propsValue:t}){let o={name:t.name,group:t.group,base:{id:t.baseContentTypeId},...t.description!==void 0?{description:t.description}:{}};return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/contentTypes`).post(o)}});var Tw=h({auth:p,name:"microsoft_sharepoint_delete_content_type",outputSchema:Ho,displayName:"Delete Content Type",description:"Permanently deletes a content type from a SharePoint site.",audience:"ai",classification:"DESTRUCTIVE",aiMetadata:{description:"Permanently deletes one site content type; it does not go to the recycle bin. List Content Types returns the content type IDs; use Delete List Content Type to remove one from a list.",idempotent:!1},props:{siteId:u.siteId({required:!0}),contentTypeId:v.ShortText({displayName:"Content Type ID",description:'ID of the site content type, like "0x0101...". Use List Content Types to find it.',required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/contentTypes/${encodeURIComponent(t.contentTypeId)}`).delete(),{success:!0,contentTypeId:t.contentTypeId}}});var Aw=h({auth:p,name:"microsoft_sharepoint_delete_list_content_type",outputSchema:Ho,displayName:"Delete List Content Type",description:"Removes a content type from a SharePoint list.",audience:"ai",classification:"DESTRUCTIVE",aiMetadata:{description:"Permanently removes one content type from a SharePoint list; the site content type it came from stays. List List Content Types returns the content type IDs.",idempotent:!1},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),contentTypeId:v.ShortText({displayName:"Content Type ID",description:'ID of the content type in the list, like "0x0101...". Use List List Content Types to find it.',required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/contentTypes/${encodeURIComponent(t.contentTypeId)}`).delete(),{success:!0,contentTypeId:t.contentTypeId}}});var ww=h({auth:p,name:"microsoft_sharepoint_get_content_type",outputSchema:Go,displayName:"Get Content Type",description:"Gets one content type of a SharePoint site.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets one site content type by ID, with its name, group, parent and base content type. List Content Types returns the content type IDs; use Get List Content Type for a content type attached to a list.",idempotent:!0},props:{siteId:u.siteId({required:!0}),contentTypeId:v.ShortText({displayName:"Content Type ID",description:'ID of the site content type, like "0x0101...". Use List Content Types to find it.',required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/contentTypes/${encodeURIComponent(t.contentTypeId)}`).get()}});var Ew=h({auth:p,name:"microsoft_sharepoint_get_list_content_type",outputSchema:wu,displayName:"Get List Content Type",description:"Gets one content type attached to a SharePoint list.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets one content type attached to a SharePoint list by ID, with its name, group, parent and base content type. List List Content Types returns the content type IDs.",idempotent:!0},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),contentTypeId:v.ShortText({displayName:"Content Type ID",description:'ID of the content type in the list, like "0x0101...". Use List List Content Types to find it.',required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/contentTypes/${encodeURIComponent(t.contentTypeId)}`).get()}});var kw=h({auth:p,name:"microsoft_sharepoint_list_applicable_content_types",outputSchema:xT,displayName:"List Applicable Content Types",description:"Lists the site content types that can be added to a SharePoint list.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the site content types that can be added to one list, one page at a time. Pass a returned ID to Add Content Type to List; List Lists returns the list IDs.",idempotent:!0},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`/sites/${encodeURIComponent(t.siteId)}/getApplicableContentTypesForList(listId='${encodeURIComponent(t.listId)}')`,limit:t.limit,nextLink:t.nextLink})}});var Cw=h({auth:p,name:"microsoft_sharepoint_list_compatible_hub_content_types_for_list",outputSchema:bt,displayName:"List Compatible Hub Content Types for List",description:"Lists the Content Type Hub content types that can be added to a SharePoint list.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the content types published in the Content Type Hub that can be added to one list, one page at a time. Pass a returned ID to Add Hub Content Type to List; use List Compatible Hub Content Types for a site.",idempotent:!0},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/contentTypes/getCompatibleHubContentTypes`,limit:t.limit,nextLink:t.nextLink})}});var Dw=h({auth:p,name:"microsoft_sharepoint_list_compatible_hub_content_types",outputSchema:bt,displayName:"List Compatible Hub Content Types",description:"Lists the Content Type Hub content types that can be added to a SharePoint site.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the content types published in the Content Type Hub that can be added to a site, one page at a time. Pass a returned ID to Add Hub Content Type to Site; use List Compatible Hub Content Types for List for a list.",idempotent:!0},props:{siteId:u.siteId({required:!0}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`/sites/${encodeURIComponent(t.siteId)}/contentTypes/getCompatibleHubContentTypes`,limit:t.limit,nextLink:t.nextLink})}});var Rw=h({auth:p,name:"microsoft_sharepoint_list_content_type_columns",outputSchema:TT,displayName:"List Content Type Columns",description:"Lists the columns of a site content type.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the columns of one site content type with their IDs, names and types, one page at a time. List Content Types returns the content type IDs; use List List Content Type Columns for a content type attached to a list.",idempotent:!0},props:{siteId:u.siteId({required:!0}),contentTypeId:v.ShortText({displayName:"Content Type ID",description:'ID of the site content type, like "0x0101...". Use List Content Types to find it.',required:!0}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`/sites/${encodeURIComponent(t.siteId)}/contentTypes/${encodeURIComponent(t.contentTypeId)}/columns`,limit:t.limit,nextLink:t.nextLink})}});var Ow=h({auth:p,name:"microsoft_sharepoint_list_content_types",outputSchema:AT,displayName:"List Content Types",description:"Lists the content types of a SharePoint site.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the content types of a SharePoint site, including those it inherits, with their IDs, names and groups, one page at a time. Use List List Content Types for the content types attached to one list.",idempotent:!0},props:{siteId:u.siteId({required:!0}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`/sites/${encodeURIComponent(t.siteId)}/contentTypes`,limit:t.limit,nextLink:t.nextLink})}});var $w=h({auth:p,name:"microsoft_sharepoint_list_list_content_type_columns",outputSchema:LT,displayName:"List List Content Type Columns",description:"Lists the columns of a content type attached to a SharePoint list.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the columns of one content type attached to a SharePoint list, with their IDs, names and types, one page at a time. List List Content Types returns the content type IDs.",idempotent:!0},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),contentTypeId:v.ShortText({displayName:"Content Type ID",description:'ID of the content type in the list, like "0x0101...". Use List List Content Types to find it.',required:!0}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/contentTypes/${encodeURIComponent(t.contentTypeId)}/columns`,limit:t.limit,nextLink:t.nextLink})}});var Nw=h({auth:p,name:"microsoft_sharepoint_list_list_content_types",outputSchema:zT,displayName:"List List Content Types",description:"Lists the content types attached to a SharePoint list.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the content types attached to one SharePoint list or document library, with their IDs, names and groups, one page at a time. Use List Content Types for the content types of the whole site.",idempotent:!0},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/contentTypes`,limit:t.limit,nextLink:t.nextLink})}});var Lw=h({auth:p,name:"microsoft_sharepoint_update_content_type",outputSchema:Go,displayName:"Update Content Type",description:"Updates the properties of a SharePoint site content type.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Changes the name, description, group or flags of one site content type; only the properties set are sent. List Content Types returns the content type IDs; use Update List Content Type for a content type attached to a list.",idempotent:!0},props:{siteId:u.siteId({required:!0}),contentTypeId:v.ShortText({displayName:"Content Type ID",description:'ID of the site content type, like "0x0101...". Use List Content Types to find it.',required:!0}),name:v.ShortText({displayName:"Name",description:"New name of the content type.",required:!1}),description:v.LongText({displayName:"Description",description:"New description of the content type.",required:!1}),group:v.ShortText({displayName:"Group",description:"Group to list the content type under.",required:!1}),hidden:u.booleanProp({displayName:"Hidden",description:"Whether the content type is hidden from the New menu of lists. Leave empty to keep it unchanged."}),readOnly:u.booleanProp({displayName:"Read Only",description:"Whether the content type can no longer be changed until this is set back to false. Leave empty to keep it unchanged."}),sealed:u.booleanProp({displayName:"Sealed",description:"Whether the content type can no longer be changed by users or through push-down. Leave empty to keep it unchanged."}),propagateChanges:u.booleanProp({displayName:"Propagate Changes",description:"Whether this change is pushed down to content types and lists that inherit from this content type. Leave empty to keep it unchanged."})},async run({auth:e,propsValue:t}){let o=Object.fromEntries(Object.entries({name:t.name,description:t.description,group:t.group,hidden:F.booleanChoice({value:t.hidden,propName:"Hidden"}),readOnly:F.booleanChoice({value:t.readOnly,propName:"Read Only"}),sealed:F.booleanChoice({value:t.sealed,propName:"Sealed"}),propagateChanges:F.booleanChoice({value:t.propagateChanges,propName:"Propagate Changes"})}).filter(([,r])=>r!==void 0));if(Object.keys(o).length===0)throw new Error("Set at least one of Name, Description, Group, Hidden, Read Only, Sealed or Propagate Changes.");return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/contentTypes/${encodeURIComponent(t.contentTypeId)}`).patch(o)}});var zw=h({auth:p,name:"microsoft_sharepoint_update_list_content_type",outputSchema:wu,displayName:"Update List Content Type",description:"Updates the properties of a content type attached to a SharePoint list.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Changes the name, description, group or flags of one content type attached to a list; only the properties set are sent. List List Content Types returns the content type IDs.",idempotent:!0},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),contentTypeId:v.ShortText({displayName:"Content Type ID",description:'ID of the content type in the list, like "0x0101...". Use List List Content Types to find it.',required:!0}),name:v.ShortText({displayName:"Name",description:"New name of the content type.",required:!1}),description:v.LongText({displayName:"Description",description:"New description of the content type.",required:!1}),group:v.ShortText({displayName:"Group",description:"Group to list the content type under.",required:!1}),hidden:u.booleanProp({displayName:"Hidden",description:"Whether the content type is hidden from the New menu of the list. Leave empty to keep it unchanged."}),readOnly:u.booleanProp({displayName:"Read Only",description:"Whether the content type can no longer be changed until this is set back to false. Leave empty to keep it unchanged."}),sealed:u.booleanProp({displayName:"Sealed",description:"Whether the content type can no longer be changed by users or through push-down. Leave empty to keep it unchanged."})},async run({auth:e,propsValue:t}){let o=Object.fromEntries(Object.entries({name:t.name,description:t.description,group:t.group,hidden:F.booleanChoice({value:t.hidden,propName:"Hidden"}),readOnly:F.booleanChoice({value:t.readOnly,propName:"Read Only"}),sealed:F.booleanChoice({value:t.sealed,propName:"Sealed"})}).filter(([,r])=>r!==void 0));if(Object.keys(o).length===0)throw new Error("Set at least one of Name, Description, Group, Hidden, Read Only or Sealed.");return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/contentTypes/${encodeURIComponent(t.contentTypeId)}`).patch(o)}});var Uw=h({auth:p,name:"microsoft_sharepoint_check_in_file",outputSchema:He,displayName:"Check In File",description:"Checks in a checked-out file so its changes become visible to others.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Checks in a file previously checked out with Check Out File, saving the changes as a new version with your comment and releasing the lock. Use Discard Checkout to drop the changes instead; checking in a file that is not checked out fails.",idempotent:!1},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0}),comment:v.LongText({displayName:"Comment",description:"Check-in comment saved with the new version.",required:!0}),publish:v.StaticDropdown({displayName:"Publish",description:'Set to "true" to publish the file as a major version after check-in. Leave empty for the library default.',required:!1,options:{disabled:!1,options:[{label:"Yes",value:"true"},{label:"No",value:"false"}]}})},async run({auth:e,propsValue:t}){let o=F.booleanChoice({value:t.publish,propName:"Publish"});return await g.create({auth:e}).api(`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}/checkin`).post({comment:t.comment,...o?{checkInAs:"published"}:{}}),{success:!0}}});var Mw=h({auth:p,name:"microsoft_sharepoint_check_out_file",outputSchema:He,displayName:"Check Out File",description:"Checks out a file so only you can edit it until it is checked in.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Checks out a file in a document library so other users cannot change it until it is checked in. Finish with Check In File to publish the changes or Discard Checkout to drop them. List Folder Children, Find File and Search return item IDs.",idempotent:!1},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}/checkout`).post(void 0),{success:!0}}});var Fw=h({auth:p,name:"microsoft_sharepoint_delete_drive_item",outputSchema:He,displayName:"Delete Drive Item",description:"Moves a file or folder to the site recycle bin.",audience:"ai",classification:"DESTRUCTIVE",aiMetadata:{description:"Deletes a file or folder by moving it to the site recycle bin, where it can still be restored; deleting a folder also deletes everything inside it. Use Permanently Delete Drive Item to skip the recycle bin. List Folder Children, Find File and Search return item IDs.",idempotent:!1},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}`).delete(),{success:!0}}});var jw=h({auth:p,name:"microsoft_sharepoint_discard_checkout",outputSchema:He,displayName:"Discard Checkout",description:"Discards the checkout of a file, dropping changes made while it was checked out.",audience:"ai",classification:"DESTRUCTIVE",aiMetadata:{description:"Releases the checkout of a file and throws away every change made since Check Out File, restoring the last checked-in version. Use Check In File to keep the changes instead. Fails if the file is not checked out or another user checked it out.",idempotent:!1},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}/discardCheckout`).post(void 0),{success:!0}}});var qw=h({auth:p,name:"microsoft_sharepoint_download_file",outputSchema:Kx,displayName:"Download File",description:"Downloads the current content of a file in a document library.",audience:"ai",classification:"READ",aiMetadata:{description:"Downloads the current content of one file in a document library and returns it as a file with the item metadata. Folders are rejected; use Download Shared File for a sharing link and Get Drive Item for metadata only. List Folder Children, Find File and Search return item IDs.",idempotent:!0},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0})},async run({auth:e,propsValue:t,files:o}){let i=g.create({auth:e}),r=`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}`,n=await i.api(r).get();if(!n.file)throw new Error(`"${n.name??t.itemId}" is a folder, not a file, so it cannot be downloaded. Use List Folder Children to see what it contains.`);let a=await g.download({auth:e,path:`${r}/content`}),c=n.name??t.itemId;return{file:await o.write({fileName:c,data:a}),fileName:c,item:n}}});var Bw=h({auth:p,name:"microsoft_sharepoint_download_shared_file",outputSchema:Xx,displayName:"Download Shared File",description:"Downloads a file from a SharePoint or OneDrive sharing link.",audience:"ai",classification:"READ",aiMetadata:{description:"Downloads the file behind a SharePoint or OneDrive sharing URL (or a share ID) and returns it as a file with the item metadata. Use Download File when you have the drive and item IDs; links to folders are rejected.",idempotent:!0},props:{share:v.ShortText({displayName:"Sharing URL or Share ID",description:'A sharing link like "https://contoso.sharepoint.com/:w:/s/team/Eabc...", or a share ID returned by Microsoft Graph.',required:!0})},async run({auth:e,propsValue:t,files:o}){let i=g.create({auth:e}),r=`/shares/${encodeURIComponent(F.shareToken({share:t.share}))}/driveItem`,n=await i.api(r).get();if(!n.file)throw new Error(`"${n.name??t.share}" is a folder, not a file, so it cannot be downloaded.`);let a=await g.download({auth:e,path:`${r}/content`}),c=n.name??"shared-file";return{file:await o.write({fileName:c,data:a}),fileName:c,item:n}}});var Hw=h({auth:p,name:"microsoft_sharepoint_follow_drive_item",outputSchema:tT,displayName:"Follow Drive Item",description:"Follows a file or folder for the signed-in user.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Adds a file or folder to the signed-in user's followed items, shown by List Followed Files. Needs the user's OneDrive to be provisioned; Unfollow Drive Item reverses it.",idempotent:!0},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}/follow`).post(void 0)}});var Gw=h({auth:p,name:"microsoft_sharepoint_follow_sites",outputSchema:rT,displayName:"Follow Sites",description:"Follows one or more SharePoint sites for the signed-in user.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Adds one or more SharePoint sites to the sites the signed-in user follows, shown by List Followed Sites. If some sites fail, the error names the ones that failed and the rest stay followed. Find Site returns site IDs; Unfollow Sites reverses it.",idempotent:!0},props:{siteIds:v.Array({displayName:"Site IDs",description:'IDs of the sites to follow, like "contoso.sharepoint.com,<guid>,<guid>". Use Find Site or Get Site by Path to find them.',required:!0})},async run({auth:e,propsValue:t}){let o=F.toSiteIds({values:t.siteIds}),i=await g.create({auth:e}).api("/me/followedSites/add").post({value:o.map(n=>({id:n}))}),r=(i.value??[]).filter(n=>n.error);if(r.length>0)throw new Error(`Could not follow ${r.length} of ${o.length} sites: ${r.map(n=>`${n.id} (${n.error?.message??n.error?.code})`).join("; ")}. The other sites are now followed.`);return i}});var Zw=h({auth:p,name:"microsoft_sharepoint_get_drive_changes",outputSchema:iT,displayName:"Get Drive Changes",description:"Lists files and folders that changed in a document library.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the files and folders created, changed or deleted in a document library, one page at a time. The first call returns every item; follow @odata.nextLink, then keep the final @odata.deltaLink and pass it as Next Link later to get only newer changes. Start From Latest skips the existing items and returns just a delta link.",idempotent:!0},props:{driveId:u.driveId({required:!0}),startFromLatest:v.StaticDropdown({displayName:"Start From Latest",description:'Set to "true" to skip the current items and return only a @odata.deltaLink for future changes. Ignored when Next Link is set.',required:!1,options:{disabled:!1,options:[{label:"Yes",value:"true"},{label:"No",value:"false"}]}}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1,description:"The @odata.nextLink or @odata.deltaLink value from a previous call, to get the next page or the changes since then. Leave empty to start."})},async run({auth:e,propsValue:t}){let o=F.booleanChoice({value:t.startFromLatest,propName:"Start From Latest"});return await g.list({auth:e,path:`/drives/${encodeURIComponent(t.driveId)}/root/delta`,limit:t.limit,nextLink:t.nextLink,query:o?{token:"latest"}:void 0})}});var Vw=h({auth:p,name:"microsoft_sharepoint_get_drive_item",outputSchema:xu,displayName:"Get Drive Item",description:"Gets the metadata of a file or folder in a document library.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets the metadata of one file or folder in a document library: name, size, URL, parent folder, timestamps and file or folder details. Use Download File to get the content; List Folder Children, Find File and Search return item IDs.",idempotent:!0},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}`).get()}});var Ww=h({auth:p,name:"microsoft_sharepoint_get_drive",outputSchema:_u,displayName:"Get Drive",description:"Gets a document library (drive) by its ID.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets one document library (drive) by its ID, with its name, type, owner, quota and URL. List Site Drives and Get Site Default Drive return drive IDs.",idempotent:!0},props:{driveId:u.driveId({required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/drives/${encodeURIComponent(t.driveId)}`).get()}});var Kw=h({auth:p,name:"microsoft_sharepoint_get_file_preview",outputSchema:aT,displayName:"Get File Preview",description:"Gets a short-lived URL to embed a preview of a file.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets short-lived URLs that embed a read-only preview of a file in a web page or iframe, optionally starting at a page and zoom level. Use Download File for the content itself; List Folder Children, Find File and Search return item IDs.",idempotent:!0},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0}),page:v.ShortText({displayName:"Page",description:'Page number of the document to start at, like "2", if the file has pages.',required:!1}),zoom:v.Number({displayName:"Zoom",description:"Zoom level to start at, if the preview app supports it.",required:!1})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}/preview`).post({...t.page!==void 0?{page:t.page}:{},...t.zoom!==void 0?{zoom:t.zoom}:{}})}});var Jw=h({auth:p,name:"microsoft_sharepoint_get_list_item_file",outputSchema:xu,displayName:"Get List Item File",description:"Gets the file or folder behind an item of a document library list.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets the file or folder (drive item) behind one item of a document library list, including its drive ID and item ID for the file actions. Only works on lists that are document libraries; List List Items returns the list item IDs.",idempotent:!0},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),listItemId:u.listItemId({required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/items/${encodeURIComponent(t.listItemId)}/driveItem`).get()}});var Xw=h({auth:p,name:"microsoft_sharepoint_get_site_default_drive",outputSchema:_u,displayName:"Get Site Default Drive",description:"Gets the default document library (drive) of a SharePoint site.",audience:"ai",classification:"READ",aiMetadata:{description:'Gets the default document library (usually "Documents") of a SharePoint site, with its drive ID, owner and quota. Use List Site Drives to see every library on the site.',idempotent:!0},props:{siteId:u.siteId({required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/drive`).get()}});var $y=[{label:"Documents",value:"documents"},{label:"Photos",value:"photos"},{label:"Camera Roll",value:"cameraroll"},{label:"App Root",value:"approot"},{label:"Music",value:"music"},{label:"Recordings",value:"recordings"}],Yw=h({auth:p,name:"microsoft_sharepoint_get_special_folder",outputSchema:IT,displayName:"Get Special Folder",description:"Gets a well-known folder of the signed-in user's OneDrive by name.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets a well-known folder (Documents, Photos, Camera Roll, App Root, Music or Recordings) of the signed-in user's OneDrive, with its item ID and drive ID for the file actions. Needs the user's OneDrive to be provisioned.",idempotent:!0},props:{name:v.StaticDropdown({displayName:"Folder",description:"The special folder to get.",required:!0,options:{disabled:!1,options:$y.map(e=>({...e}))}})},async run({auth:e,propsValue:t}){if(!$y.some(i=>i.value===t.name))throw new Error(`Folder must be one of: ${$y.map(i=>i.value).join(", ")}.`);return await g.create({auth:e}).api(`/me/drive/special/${encodeURIComponent(t.name)}`).get()}});var Qw=h({auth:p,name:"microsoft_sharepoint_list_folder_children",outputSchema:RT,displayName:"List Folder Children",description:"Lists the files and folders inside a folder of a document library.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the files and folders directly inside one folder of a document library, or its root folder when Folder ID is empty, one page at a time. Use Find File or Search to look across folders; List Site Drives returns drive IDs.",idempotent:!0},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!1,displayName:"Folder ID",description:"ID of the folder to list. Leave empty for the root folder of the drive. Use List Folder Children or Find File to find it."}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){let o=t.itemId?`items/${encodeURIComponent(t.itemId)}`:"root";return await g.list({auth:e,path:`/drives/${encodeURIComponent(t.driveId)}/${o}/children`,limit:t.limit,nextLink:t.nextLink})}});var eE=h({auth:p,name:"microsoft_sharepoint_list_followed_files",outputSchema:bt,displayName:"List Followed Files",description:"Lists the files and folders the signed-in user follows.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the files and folders the signed-in user follows, one page at a time; each item's remoteItem holds its real drive and item IDs. Needs the user's OneDrive to be provisioned; Follow Drive Item adds to this list.",idempotent:!0},props:{limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:"/me/drive/following",limit:t.limit,nextLink:t.nextLink})}});var tE=h({auth:p,name:"microsoft_sharepoint_list_followed_sites",outputSchema:OT,displayName:"List Followed Sites",description:"Lists the SharePoint sites the signed-in user follows.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the SharePoint sites the signed-in user follows with their IDs, names and URLs, one page at a time. Use Find Site to search all sites; Follow Sites and Unfollow Sites change this list.",idempotent:!0},props:{limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:"/me/followedSites",limit:t.limit,nextLink:t.nextLink})}});var rE=h({auth:p,name:"microsoft_sharepoint_list_site_drives",outputSchema:HT,displayName:"List Site Drives",description:"Lists the document libraries (drives) of a SharePoint site.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the document libraries (drives) of a SharePoint site with their IDs, names and URLs, one page at a time. Use Get Site Default Drive when you only need the main Documents library.",idempotent:!0},props:{siteId:u.siteId({required:!0}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`/sites/${encodeURIComponent(t.siteId)}/drives`,limit:t.limit,nextLink:t.nextLink})}});var oE=h({auth:p,name:"microsoft_sharepoint_list_thumbnails",outputSchema:GT,displayName:"List Thumbnails",description:"Lists the thumbnail images of a file or folder.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the thumbnail sets of one file or folder, each with small, medium and large image URLs and sizes. Files without a preview return an empty list; List Folder Children, Find File and Search return item IDs.",idempotent:!0},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}/thumbnails`).get()}});var iE=h({auth:p,name:"microsoft_sharepoint_permanently_delete_drive_item",outputSchema:He,displayName:"Permanently Delete Drive Item",description:"Permanently deletes a file or folder, skipping the recycle bin.",audience:"ai",classification:"DESTRUCTIVE",aiMetadata:{description:"Permanently deletes a file or folder and everything inside it without moving it to the recycle bin, so it cannot be restored. Prefer Delete Drive Item, which keeps the item restorable. List Folder Children, Find File and Search return item IDs.",idempotent:!1},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}/permanentDelete`).post(void 0),{success:!0}}});var nE=h({auth:p,name:"microsoft_sharepoint_replace_file_content",outputSchema:Ru,displayName:"Replace File Content",description:"Overwrites the content of an existing file in a document library.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Overwrites the content of an existing file, keeping its ID, name and sharing links; files over 4 MB are sent through an upload session. Use Upload File to add a new file by folder and name. List Folder Children, Find File and Search return item IDs.",idempotent:!1},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0,displayName:"File ID",description:"ID of the existing file to overwrite. Use List Folder Children, Find File or Search to find it."}),file:v.File({displayName:"File",description:"The new content, as a file URL or base64.",required:!0})},async run({auth:e,propsValue:t}){let o=g.create({auth:e}),i=`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}`,r=t.file.data;return r.length<=fM?await o.api(`${i}/content`).header("Content-Type","text/plain").put(r):await g.uploadLargeFile({auth:e,sessionPath:`${i}/createUploadSession`,data:r,fileName:t.file.filename,conflictBehavior:"replace"})}}),fM=4*1024*1024;var aE=h({auth:p,name:"microsoft_sharepoint_unfollow_drive_item",outputSchema:cA,displayName:"Unfollow Drive Item",description:"Stops following a file or folder for the signed-in user.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Removes a file or folder from the signed-in user's followed items. Needs the user's OneDrive to be provisioned; List Followed Files returns the IDs to pass.",idempotent:!0},props:{itemId:v.ShortText({displayName:"Item ID",description:"ID of the followed file or folder. Use List Followed Files to find it.",required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/me/drive/items/${encodeURIComponent(t.itemId)}/unfollow`).post(void 0),{success:!0}}});var sE=h({auth:p,name:"microsoft_sharepoint_unfollow_sites",outputSchema:YT,displayName:"Unfollow Sites",description:"Stops following one or more SharePoint sites for the signed-in user.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Removes one or more SharePoint sites from the sites the signed-in user follows. If some sites fail, the error names the ones that failed and the rest are unfollowed. List Followed Sites returns the site IDs.",idempotent:!0},props:{siteIds:v.Array({displayName:"Site IDs",description:'IDs of the sites to unfollow, like "contoso.sharepoint.com,<guid>,<guid>". Use List Followed Sites to find them.',required:!0})},async run({auth:e,propsValue:t}){let o=F.toSiteIds({values:t.siteIds}),r=((await g.create({auth:e}).api("/me/followedSites/remove").post({value:o.map(n=>({id:n}))}))?.value??[]).filter(n=>n.error);if(r.length>0)throw new Error(`Could not unfollow ${r.length} of ${o.length} sites: ${r.map(n=>`${n.id} (${n.error?.message??n.error?.code})`).join("; ")}. The other sites are no longer followed.`);return{success:!0,siteIds:o}}});var cE=h({auth:p,name:"microsoft_sharepoint_update_drive_item",outputSchema:Pu,displayName:"Update Drive Item",description:"Renames, moves or describes a file or folder in a document library.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Renames a file or folder, moves it to another folder of the same drive, or sets its description, changing only the fields you provide; the item keeps its ID. Moving between drives is not supported; use Copy Item for that. List Folder Children, Find File and Search return item and folder IDs.",idempotent:!0},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0}),name:v.ShortText({displayName:"New Name",description:"New name, with the extension for files. Leave empty to keep the name.",required:!1}),parentFolderId:v.ShortText({displayName:"Destination Folder ID",description:'ID of the folder in the same drive to move the item into. For the drive root, use the ID returned by List Folder Children or Get Drive Item, not "root". Leave empty to keep it in place.',required:!1}),description:v.LongText({displayName:"Description",description:"New description of the item. Microsoft Graph supports it on OneDrive personal only. Leave empty to keep it.",required:!1})},async run({auth:e,propsValue:t}){let o={...t.name!==void 0?{name:t.name}:{},...t.description!==void 0?{description:t.description}:{},...t.parentFolderId!==void 0?{parentReference:{id:t.parentFolderId}}:{}};if(Object.keys(o).length===0)throw new Error("Provide at least one of New Name, Destination Folder ID or Description.");return await g.create({auth:e}).api(`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}`).patch(o)}});var lE=h({auth:p,name:"microsoft_sharepoint_assign_sensitivity_label",outputSchema:dA,displayName:"Assign Sensitivity Label",description:"Starts assigning a sensitivity label to a file.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Starts assigning a Purview sensitivity label to a file; Microsoft applies it in the background and this returns the monitor URL without waiting. Use Extract Sensitivity Labels afterwards to check the label on the file. A protected, metered Microsoft API: the app registration needs Microsoft approval and billing set up. Downgrading a label needs a justification.",idempotent:!1},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0}),sensitivityLabelId:v.ShortText({displayName:"Sensitivity Label ID",description:"ID (a GUID) of the sensitivity label to assign, from Microsoft Purview or Extract Sensitivity Labels.",required:!0}),assignmentMethod:v.StaticDropdown({displayName:"Assignment Method",description:'How the label is assigned: "standard", "privileged" (as an administrator) or "auto". Microsoft uses "standard" when unset.',required:!1,options:{disabled:!1,options:[{label:"Standard",value:"standard"},{label:"Privileged",value:"privileged"},{label:"Auto",value:"auto"}]}}),justificationText:v.LongText({displayName:"Justification",description:"Reason recorded for audit. Required when replacing a label with a lower one.",required:!1})},async run({auth:e,propsValue:t}){let{assignmentMethod:o,justificationText:i}=t;if(o&&!hM.includes(o))throw new Error('Assignment Method must be "standard", "privileged" or "auto".');let r=await g.postRaw({auth:e,path:`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}/assignSensitivityLabel`,body:{sensitivityLabelId:t.sensitivityLabelId,...o?{assignmentMethod:o}:{},...i?{justificationText:i}:{}}});if(!r.ok)throw new Error(`Assign Sensitivity Label failed with status ${r.status}: ${await r.text()}`);return{status:r.status,monitorUrl:r.headers.get("Location")}}}),hM=["standard","privileged","auto"];var uE=h({auth:p,name:"microsoft_sharepoint_extract_sensitivity_labels",outputSchema:Yx,displayName:"Extract Sensitivity Labels",description:"Gets the sensitivity labels assigned to a file.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets the Purview sensitivity labels on a file, re-reading them from the file content when the stored ones are stale, with each label ID and how it was assigned. Use it to check the result of Assign Sensitivity Label. Supported file types only; List Folder Children, Find File or Search return the item ID.",idempotent:!0},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}/extractSensitivityLabels`).post(void 0)}});var dE=h({auth:p,name:"microsoft_sharepoint_get_retention_label",outputSchema:hT,displayName:"Get Retention Label",description:"Gets the retention label applied to a file or folder.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets the Purview retention label on a file or folder, with its retention settings, whether the record is locked, and who applied it when. List Folder Children, Find File or Search return the item ID.",idempotent:!0},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}/retentionLabel`).get()}});var pE=h({auth:p,name:"microsoft_sharepoint_lock_or_unlock_record",outputSchema:Eu,displayName:"Lock or Unlock Record",description:"Locks or unlocks a file or folder whose retention label marks it as a record.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Locks or unlocks a file or folder whose Purview retention label classifies it as a record; unlocking allows edits under record versioning. Fails on items without a record label. Get Retention Label shows the label and whether it is locked.",idempotent:!0},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0}),isRecordLocked:v.StaticDropdown({displayName:"Locked",description:'"true" to lock the record, "false" to unlock it.',required:!0,options:{disabled:!1,options:[{label:"Lock",value:"true"},{label:"Unlock",value:"false"}]}})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}/retentionLabel`).patch({retentionSettings:{isRecordLocked:F.booleanChoice({value:t.isRecordLocked,propName:"Locked"})}})}});var mE=h({auth:p,name:"microsoft_sharepoint_remove_retention_label",outputSchema:uA,displayName:"Remove Retention Label",description:"Removes the retention label from a file or folder.",audience:"ai",classification:"DESTRUCTIVE",aiMetadata:{description:"Removes the Purview retention label from a file or folder and clears every retention setting it enforced. Works on non-record labels only: removing a label that marks content as a record needs Sites.FullControl.All, which this connection does not request. Set Retention Label applies a label again.",idempotent:!1},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}/retentionLabel`).delete(),{removed:!0}}});var fE=h({auth:p,name:"microsoft_sharepoint_set_retention_label",outputSchema:Eu,displayName:"Set Retention Label",description:"Applies a retention label to a file or folder.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Applies a Purview retention label, by name, to a file or folder; on a folder every item inside gets the same label. Replaces any label already applied. Changing a label that marks content as a record needs Sites.FullControl.All, which this connection does not request. Get Retention Label shows the current label.",idempotent:!0},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0}),name:v.ShortText({displayName:"Label Name",description:"Exact name of the retention label, as shown in Microsoft Purview.",required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}/retentionLabel`).patch({name:t.name})}});var hE=h({auth:p,name:"microsoft_sharepoint_get_list_item_changes",outputSchema:pT,displayName:"Get List Item Changes",description:"Gets the items of a SharePoint list that were added, changed or deleted.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Tracks changes to the items of a SharePoint list, one page at a time. The first call returns every item; pass @odata.nextLink back while it is present, then keep @odata.deltaLink and pass it later to get only the items added, changed or deleted since. List Lists returns the list IDs.",idempotent:!0},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),includeFields:v.StaticDropdown({displayName:"Include Column Values",description:"Whether to return the column values (fields) of each item. Defaults to true.",required:!1,options:{options:[{label:"Yes",value:"true"},{label:"No",value:"false"}]}}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1,displayName:"Next or Delta Link",description:"The @odata.nextLink or @odata.deltaLink value from the previous call. Leave empty to start tracking from the full list."})},async run({auth:e,propsValue:t}){let o=F.booleanChoice({value:t.includeFields,propName:"Include Column Values"});return await g.list({auth:e,path:`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/items/delta`,limit:t.limit,nextLink:t.nextLink,query:o===!1?{}:{$expand:"fields"}})}});var yE=h({auth:p,name:"microsoft_sharepoint_get_list_item",outputSchema:Iu,displayName:"Get List Item",description:"Gets a SharePoint list item with its column values.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets one SharePoint list item with its column values (fields), content type and dates. List List Items or Search returns the item IDs; use Get List Item File for the file behind a document library item.",idempotent:!0},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),listItemId:u.listItemId({required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/items/${encodeURIComponent(t.listItemId)}`).expand("fields").get()}});var gE=h({auth:p,name:"microsoft_sharepoint_list_list_items",outputSchema:MT,displayName:"List List Items",description:"Lists the items of a SharePoint list.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the items of a SharePoint list with their IDs, optionally with column values and narrowed by an OData filter, one page at a time. List Lists returns the list IDs; use Get List Item to read one item again.",idempotent:!0},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),includeFields:v.StaticDropdown({displayName:"Include Column Values",description:"Whether to return the column values (fields) of each item. Defaults to true.",required:!1,options:{options:[{label:"Yes",value:"true"},{label:"No",value:"false"}]}}),filter:v.ShortText({displayName:"Filter",description:`OData filter on item properties or columns, like "fields/Status eq 'Done'". Supports eq, ne, lt, gt, le, ge and startswith; indexed columns are safest, as filtering a non-indexed column may fail on large lists.`,required:!1}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){let o=F.booleanChoice({value:t.includeFields,propName:"Include Column Values"});return await g.list({auth:e,path:`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/items`,limit:t.limit,nextLink:t.nextLink,query:{...o===!1?{}:{$expand:"fields"},...t.filter?{$filter:t.filter}:{}},headers:t.filter||t.nextLink?{Prefer:"HonorNonIndexedQueriesWarningMayFailRandomly"}:{}})}});var vE=h({auth:p,name:"microsoft_sharepoint_get_list",outputSchema:lT,displayName:"Get List",description:"Gets a SharePoint list by its ID.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets one SharePoint list with its name, display name, template, URL and dates. List Lists returns the list IDs; use List List Items to read its items.",idempotent:!0},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}`).get()}});var PE=h({auth:p,name:"microsoft_sharepoint_list_list_operations",outputSchema:bt,displayName:"List List Operations",description:"Lists the long-running operations on a SharePoint list.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the long-running operations on a SharePoint list, such as column indexing, with their IDs and status, one page at a time. Use Get List Operation to check one operation again.",idempotent:!0},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/operations`,limit:t.limit,nextLink:t.nextLink})}});var IE=h({auth:p,name:"microsoft_sharepoint_list_lists",outputSchema:FT,displayName:"List Lists",description:"Lists the lists and document libraries of a SharePoint site.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the lists and document libraries of a SharePoint site with their IDs, names, templates and URLs, one page at a time. Use Get List to read one list again.",idempotent:!0},props:{siteId:u.siteId({required:!0}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`/sites/${encodeURIComponent(t.siteId)}/lists`,limit:t.limit,nextLink:t.nextLink})}});function yM(){return v.ShortText({displayName:"Page ID",description:"ID of the site page (a GUID). Use List Pages to find it.",required:!0})}s(yM,"pageId");function gM(){return v.ShortText({displayName:"Horizontal Section ID",description:'ID of the horizontal section, a number like "1" sent as text. Use List Horizontal Sections to find it.',required:!0})}s(gM,"horizontalSectionId");function vM(){return v.ShortText({displayName:"Column ID",description:'ID of the column in the horizontal section, a number like "1" sent as text. Use List Section Columns to find it.',required:!0})}s(vM,"columnId");function PM({listAction:e}){return v.ShortText({displayName:"Web Part Index",description:`Position of the web part in its column or section, a number like "1" sent as text; the first web part is 1. Use ${e} to find it.`,required:!0})}s(PM,"webPartIndex");function IM(){return v.ShortText({displayName:"Web Part ID",description:"ID of the web part (a GUID). Use List Page Web Parts to find it.",required:!0})}s(IM,"webPartId");function bM({required:e}){return v.StaticDropdown({displayName:"Emphasis",description:"Background emphasis of the section.",required:e,options:{disabled:!1,options:_E.map(t=>({label:t,value:t}))}})}s(bM,"emphasis");function SM({required:e}){return v.StaticDropdown({displayName:"Layout",description:"Column layout of the horizontal section.",required:e,options:{disabled:!1,options:xE.map(t=>({label:t,value:t}))}})}s(SM,"layout");function _M(){return v.Json({displayName:"Web Part",description:`The web part as a JSON object with its "@odata.type". Text: {"@odata.type": "#microsoft.graph.textWebPart", "innerHtml": "<p>Hello</p>"}. Standard: {"@odata.type": "#microsoft.graph.standardWebPart", "webPartType": "<type ID>", "data": {...}}. Supported standard type IDs: ${DM}.`,required:!0})}s(_M,"webPart");function bE({siteId:e,pageId:t}){return`/sites/${encodeURIComponent(e)}/pages/${encodeURIComponent(t)}/microsoft.graph.sitePage`}s(bE,"pagePath");function SE({siteId:e,pageId:t,horizontalSectionId:o}){return`${bE({siteId:e,pageId:t})}/canvasLayout/horizontalSections/${encodeURIComponent(o)}`}s(SE,"horizontalSectionPath");function xM({siteId:e,pageId:t,horizontalSectionId:o,columnId:i}){return`${SE({siteId:e,pageId:t,horizontalSectionId:o})}/columns/${encodeURIComponent(i)}`}s(xM,"columnPath");function TM({value:e}){return Ny({key:"emphasis",value:e,allowed:_E,propName:"Emphasis"})}s(TM,"emphasisValue");function AM({value:e}){return Ny({key:"layout",value:e,allowed:xE,propName:"Layout"})}s(AM,"layoutValue");function wM({value:e}){let t=Array.isArray(e)?void 0:e["@odata.type"];if(typeof t!="string"||!CM.includes(t.toLowerCase()))throw new Error('Web Part must be a JSON object with "@odata.type" set to "#microsoft.graph.textWebPart" or "#microsoft.graph.standardWebPart".');return e}s(wM,"webPartBody");function EM({key:e,value:t,propName:o}){if(t==null||Object.keys(t).length===0)return{};if(Array.isArray(t))throw new Error(`${o} must be a JSON object, not a list.`);return{[e]:t}}s(EM,"jsonObject");function kM({key:e,value:t,propName:o}){if(t==null)return{};if(!Array.isArray(t)){if(Object.keys(t).length===0)return{};throw new Error(`${o} must be a JSON list of objects.`)}return{[e]:t}}s(kM,"jsonList");function Ny({key:e,value:t,allowed:o,propName:i}){if(t===void 0||t==="")return{};if(!o.includes(t))throw new Error(`${i} must be one of: ${o.join(", ")}.`);return{[e]:t}}s(Ny,"choice");var w={pageId:yM,horizontalSectionId:gM,columnId:vM,webPartIndex:PM,webPartId:IM,emphasis:bM,layout:SM,webPart:_M,pagePath:bE,horizontalSectionPath:SE,columnPath:xM,emphasisValue:TM,layoutValue:AM,webPartBody:wM,jsonObject:EM,jsonList:kM,choice:Ny},_E=["none","neutral","soft","strong"],xE=["none","oneColumn","twoColumns","threeColumns","oneThirdLeftColumn","oneThirdRightColumn","fullWidth"],CM=["#microsoft.graph.textwebpart","#microsoft.graph.standardwebpart"],DM="Bing Maps e377ea37-9047-43b9-8cdb-a761be2f8e09, Button 0f087d7f-520e-42b7-89c0-496aaf979d58, Call To Action df8e44e7-edd5-46d5-90da-aca1539313b8, Divider 2161a1c6-db61-4731-b97c-3cdb303f7cbb, Document Embed b7dd04e1-19ce-4b24-9132-b60a1c2b910d, Image d1d91016-032f-456d-98a4-721247c305e8, Image Gallery af8be689-990e-492a-81f7-ba3e4cd3ed9c, Link Preview 6410b3b6-d440-4663-8744-378976dc041e, Org Chart e84a8ca2-f63c-4fb9-bc0b-d8eef5ccb22b, People 7f718435-ee4d-431c-bdbf-9c4ff326f46e, Quick Links c70391ea-0b10-4ee9-b2b4-006d3fcad0cd, Spacer 8654b779-4886-46d4-8ffb-b5ed960ee986, YouTube Embed 544dd15b-cf3c-441b-96da-004d5a8cea1d, Title Area cbe7b0a9-3504-44dd-a3a3-0e5cacd07788";var TE=h({auth:p,name:"microsoft_sharepoint_add_section_web_part",outputSchema:Je,displayName:"Add Section Web Part",description:"Adds a web part to a horizontal section column on a SharePoint site page.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Adds a text or standard web part to one column of a horizontal section on a SharePoint site page, at the end or at a given index. List Section Columns returns the column IDs; changes stay in draft until Publish Page.",idempotent:!1},props:{siteId:u.siteId({required:!0}),pageId:w.pageId(),horizontalSectionId:w.horizontalSectionId(),columnId:w.columnId(),webPart:w.webPart(),index:v.Number({displayName:"Index",description:"Position to insert the web part at, starting at 1. Leave empty to add it at the end.",required:!1})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`${w.columnPath({siteId:t.siteId,pageId:t.pageId,horizontalSectionId:t.horizontalSectionId,columnId:t.columnId})}/webparts`).query(t.index===void 0||t.index===null?{}:{index:t.index}).post(w.webPartBody({value:t.webPart}))}});var AE=h({auth:p,name:"microsoft_sharepoint_add_vertical_section_web_part",outputSchema:Je,displayName:"Add Vertical Section Web Part",description:"Adds a web part to the vertical section of a SharePoint site page.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Adds a text or standard web part to the vertical section of a SharePoint site page, at the end or at a given index. The page needs a vertical section; use Create Vertical Section first. Changes stay in draft until Publish Page.",idempotent:!1},props:{siteId:u.siteId({required:!0}),pageId:w.pageId(),webPart:w.webPart(),index:v.Number({displayName:"Index",description:"Position to insert the web part at, starting at 1. Leave empty to add it at the end.",required:!1})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`${w.pagePath({siteId:t.siteId,pageId:t.pageId})}/canvasLayout/verticalSection/webparts`).query(t.index===void 0||t.index===null?{}:{index:t.index}).post(w.webPartBody({value:t.webPart}))}});var wE=h({auth:p,name:"microsoft_sharepoint_create_horizontal_section",outputSchema:Zo,displayName:"Create Horizontal Section",description:"Creates a horizontal section on a SharePoint site page.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Creates a horizontal section on a SharePoint site page with a column layout, optionally with its columns and web parts. Microsoft Graph requires a new section ID that the page does not use yet (List Horizontal Sections shows the ones in use). Use Add Section Web Part to add content to an existing column later; changes stay in draft until Publish Page.",idempotent:!1},props:{siteId:u.siteId({required:!0}),pageId:w.pageId(),layout:w.layout({required:!0}),emphasis:w.emphasis({required:!1}),sectionId:v.ShortText({displayName:"Section ID",description:'ID for the new section, a number like "2" sent as text that the page does not use yet. Use List Horizontal Sections to see the IDs in use.',required:!0}),columns:v.Json({displayName:"Columns",description:'Columns of the section as a JSON list, like [{"id": "1", "width": 12, "webparts": [{"id": "<new GUID>", "innerHtml": "<p>Hello</p>"}]}]. Leave empty for empty columns.',required:!1})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`${w.pagePath({siteId:t.siteId,pageId:t.pageId})}/canvasLayout/horizontalSections`).post({id:t.sectionId,...w.layoutValue({value:t.layout}),...w.emphasisValue({value:t.emphasis}),...w.jsonList({key:"columns",value:t.columns,propName:"Columns"})})}});var EE=["article","home"],kE=h({auth:p,name:"microsoft_sharepoint_create_page",outputSchema:jx,displayName:"Create Page",description:"Creates a page in a SharePoint site.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Creates a modern page in the Site Pages library of a SharePoint site, optionally with its full canvas layout. The page is created as an unpublished draft; use Publish Page to make it visible, and Create Horizontal Section or Add Section Web Part to add content later.",idempotent:!1},props:{siteId:u.siteId({required:!0}),name:v.ShortText({displayName:"File Name",description:'File name of the page, ending in .aspx, like "team-news.aspx".',required:!0}),title:v.ShortText({displayName:"Title",description:"Title of the page.",required:!0}),pageLayout:v.StaticDropdown({displayName:"Page Layout",description:"Layout of the page.",required:!0,options:{disabled:!1,options:EE.map(e=>({label:e,value:e}))}}),canvasLayout:v.Json({displayName:"Canvas Layout",description:'Content of the page as a JSON object, like {"horizontalSections": [{"id": "1", "layout": "oneColumn", "emphasis": "none", "columns": [{"id": "1", "width": 12, "webparts": [{"id": "<new GUID>", "innerHtml": "<p>Hello</p>"}]}]}]}. Leave empty for a blank page.',required:!1})},async run({auth:e,propsValue:t}){if(!t.name.toLowerCase().endsWith(".aspx"))throw new Error("File Name must end in .aspx.");let o={"@odata.type":"#microsoft.graph.sitePage",name:t.name,title:t.title,...w.choice({key:"pageLayout",value:t.pageLayout,allowed:EE,propName:"Page Layout"}),...w.jsonObject({key:"canvasLayout",value:t.canvasLayout,propName:"Canvas Layout"})};return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/pages`).post(o)}});var CE=h({auth:p,name:"microsoft_sharepoint_create_vertical_section",outputSchema:Bx,displayName:"Create Vertical Section",description:"Creates the vertical section of a SharePoint site page.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Creates the vertical section (the side column) of a SharePoint site page, with at least one web part, each given a new GUID as its id (Microsoft Graph rejects an empty section). A page has at most one vertical section; use Update Vertical Section to change its emphasis and Add Vertical Section Web Part to add content later. Changes stay in draft until Publish Page.",idempotent:!1},props:{siteId:u.siteId({required:!0}),pageId:w.pageId(),emphasis:w.emphasis({required:!1}),webParts:v.Json({displayName:"Web Parts",description:'Web parts of the section as a JSON list with at least one item, each with a new GUID as its id, like [{"id": "<new GUID>", "innerHtml": "<p>Hello</p>"}].',required:!0})},async run({auth:e,propsValue:t}){let o=w.jsonList({key:"webparts",value:t.webParts,propName:"Web Parts"});if(!o.webparts?.length)throw new Error("Web Parts must hold at least one web part; Microsoft Graph cannot create an empty vertical section.");return await g.create({auth:e}).api(`${w.pagePath({siteId:t.siteId,pageId:t.pageId})}/canvasLayout/verticalSection`).put({...w.emphasisValue({value:t.emphasis}),...o})}});var DE=h({auth:p,name:"microsoft_sharepoint_delete_horizontal_section",outputSchema:Gx,displayName:"Delete Horizontal Section",description:"Deletes a horizontal section from a SharePoint site page.",audience:"ai",classification:"DESTRUCTIVE",aiMetadata:{description:"Deletes one horizontal section from a SharePoint site page together with its columns and web parts. List Horizontal Sections returns the section IDs.",idempotent:!1},props:{siteId:u.siteId({required:!0}),pageId:w.pageId(),horizontalSectionId:w.horizontalSectionId()},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(w.horizontalSectionPath({siteId:t.siteId,pageId:t.pageId,horizontalSectionId:t.horizontalSectionId})).delete(),{deleted:!0,pageId:t.pageId,horizontalSectionId:t.horizontalSectionId}}});var RE=h({auth:p,name:"microsoft_sharepoint_delete_page_web_part",outputSchema:Zx,displayName:"Delete Page Web Part",description:"Deletes a web part from a SharePoint site page by its ID.",audience:"ai",classification:"DESTRUCTIVE",aiMetadata:{description:"Deletes one web part from a SharePoint site page, found by its ID. List Page Web Parts returns the web part IDs.",idempotent:!1},props:{siteId:u.siteId({required:!0}),pageId:w.pageId(),webPartId:w.webPartId()},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`${w.pagePath({siteId:t.siteId,pageId:t.pageId})}/webParts/${encodeURIComponent(t.webPartId)}`).delete(),{deleted:!0,pageId:t.pageId,webPartId:t.webPartId}}});var OE=h({auth:p,name:"microsoft_sharepoint_delete_page",outputSchema:Su,displayName:"Delete Page",description:"Deletes a page from a SharePoint site.",audience:"ai",classification:"DESTRUCTIVE",aiMetadata:{description:"Deletes one page from the Site Pages library of a SharePoint site. List Pages returns the page IDs.",idempotent:!1},props:{siteId:u.siteId({required:!0}),pageId:w.pageId()},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/pages/${encodeURIComponent(t.pageId)}`).delete(),{deleted:!0,pageId:t.pageId}}});var $E=h({auth:p,name:"microsoft_sharepoint_delete_section_web_part",outputSchema:Vx,displayName:"Delete Section Web Part",description:"Deletes a web part from a horizontal section column on a SharePoint site page by its index.",audience:"ai",classification:"DESTRUCTIVE",aiMetadata:{description:"Deletes one web part from a column of a horizontal section on a SharePoint site page, found by its index; later web parts move up one index. List Section Web Parts returns the web parts in index order.",idempotent:!1},props:{siteId:u.siteId({required:!0}),pageId:w.pageId(),horizontalSectionId:w.horizontalSectionId(),columnId:w.columnId(),webPartIndex:w.webPartIndex({listAction:"List Section Web Parts"})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`${w.columnPath({siteId:t.siteId,pageId:t.pageId,horizontalSectionId:t.horizontalSectionId,columnId:t.columnId})}/webparts/${encodeURIComponent(t.webPartIndex)}`).delete(),{deleted:!0,pageId:t.pageId,horizontalSectionId:t.horizontalSectionId,columnId:t.columnId,webPartIndex:t.webPartIndex}}});var NE=h({auth:p,name:"microsoft_sharepoint_delete_vertical_section_web_part",outputSchema:Wx,displayName:"Delete Vertical Section Web Part",description:"Deletes a web part from the vertical section of a SharePoint site page by its index.",audience:"ai",classification:"DESTRUCTIVE",aiMetadata:{description:"Deletes one web part from the vertical section of a SharePoint site page, found by its index; later web parts move up one index. List Vertical Section Web Parts returns the web parts in index order.",idempotent:!1},props:{siteId:u.siteId({required:!0}),pageId:w.pageId(),webPartIndex:w.webPartIndex({listAction:"List Vertical Section Web Parts"})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`${w.pagePath({siteId:t.siteId,pageId:t.pageId})}/canvasLayout/verticalSection/webparts/${encodeURIComponent(t.webPartIndex)}`).delete(),{deleted:!0,pageId:t.pageId,webPartIndex:t.webPartIndex}}});var LE=h({auth:p,name:"microsoft_sharepoint_delete_vertical_section",outputSchema:Su,displayName:"Delete Vertical Section",description:"Deletes the vertical section of a SharePoint site page.",audience:"ai",classification:"DESTRUCTIVE",aiMetadata:{description:"Deletes the vertical section (the side column) of a SharePoint site page together with its web parts.",idempotent:!1},props:{siteId:u.siteId({required:!0}),pageId:w.pageId()},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`${w.pagePath({siteId:t.siteId,pageId:t.pageId})}/canvasLayout/verticalSection`).delete(),{deleted:!0,pageId:t.pageId}}});var zE=h({auth:p,name:"microsoft_sharepoint_get_horizontal_section",outputSchema:Zo,displayName:"Get Horizontal Section",description:"Gets a horizontal section of a SharePoint site page.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets one horizontal section of a SharePoint site page with its layout, emphasis, columns and web parts. List Horizontal Sections returns the section IDs.",idempotent:!0},props:{siteId:u.siteId({required:!0}),pageId:w.pageId(),horizontalSectionId:w.horizontalSectionId()},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(w.horizontalSectionPath({siteId:t.siteId,pageId:t.pageId,horizontalSectionId:t.horizontalSectionId})).get()}});var UE=h({auth:p,name:"microsoft_sharepoint_get_page_web_part",outputSchema:Je,displayName:"Get Page Web Part",description:"Gets a web part on a SharePoint site page by its ID.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets one web part on a SharePoint site page by its ID, with its type and content. List Page Web Parts returns the web part IDs.",idempotent:!0},props:{siteId:u.siteId({required:!0}),pageId:w.pageId(),webPartId:w.webPartId()},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`${w.pagePath({siteId:t.siteId,pageId:t.pageId})}/webParts/${encodeURIComponent(t.webPartId)}`).get()}});var ME=h({auth:p,name:"microsoft_sharepoint_get_page",outputSchema:fT,displayName:"Get Page",description:"Gets a SharePoint site page with its sections and web parts.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets one SharePoint site page with its metadata, title area and full canvas layout (horizontal sections, columns, vertical section and web parts). List Pages returns the page IDs.",idempotent:!0},props:{siteId:u.siteId({required:!0}),pageId:w.pageId()},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(w.pagePath({siteId:t.siteId,pageId:t.pageId})).expand("canvasLayout").get()}});var FE=h({auth:p,name:"microsoft_sharepoint_get_section_column",outputSchema:yT,displayName:"Get Section Column",description:"Gets a column of a horizontal section on a SharePoint site page.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets one column of a horizontal section on a SharePoint site page with its width and web parts. List Section Columns returns the column IDs.",idempotent:!0},props:{siteId:u.siteId({required:!0}),pageId:w.pageId(),horizontalSectionId:w.horizontalSectionId(),columnId:w.columnId()},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(w.columnPath({siteId:t.siteId,pageId:t.pageId,horizontalSectionId:t.horizontalSectionId,columnId:t.columnId})).get()}});var jE=h({auth:p,name:"microsoft_sharepoint_get_section_web_part",outputSchema:Je,displayName:"Get Section Web Part",description:"Gets a web part in a horizontal section column on a SharePoint site page by its index.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets one web part in a column of a horizontal section on a SharePoint site page by its index. List Section Web Parts returns the web parts in index order.",idempotent:!0},props:{siteId:u.siteId({required:!0}),pageId:w.pageId(),horizontalSectionId:w.horizontalSectionId(),columnId:w.columnId(),webPartIndex:w.webPartIndex({listAction:"List Section Web Parts"})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`${w.columnPath({siteId:t.siteId,pageId:t.pageId,horizontalSectionId:t.horizontalSectionId,columnId:t.columnId})}/webparts/${encodeURIComponent(t.webPartIndex)}`).get()}});var qE=h({auth:p,name:"microsoft_sharepoint_get_vertical_section_web_part",outputSchema:Je,displayName:"Get Vertical Section Web Part",description:"Gets a web part in the vertical section of a SharePoint site page by its index.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets one web part in the vertical section of a SharePoint site page by its index. List Vertical Section Web Parts returns the web parts in index order.",idempotent:!0},props:{siteId:u.siteId({required:!0}),pageId:w.pageId(),webPartIndex:w.webPartIndex({listAction:"List Vertical Section Web Parts"})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`${w.pagePath({siteId:t.siteId,pageId:t.pageId})}/canvasLayout/verticalSection/webparts/${encodeURIComponent(t.webPartIndex)}`).get()}});var BE=h({auth:p,name:"microsoft_sharepoint_get_vertical_section",outputSchema:ku,displayName:"Get Vertical Section",description:"Gets the vertical section of a SharePoint site page.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets the vertical section (the side column) of a SharePoint site page with its emphasis and web parts. Fails with 404 when the page has no vertical section.",idempotent:!0},props:{siteId:u.siteId({required:!0}),pageId:w.pageId()},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`${w.pagePath({siteId:t.siteId,pageId:t.pageId})}/canvasLayout/verticalSection`).get()}});var HE=h({auth:p,name:"microsoft_sharepoint_get_web_part_position",outputSchema:bT,displayName:"Get Web Part Position",description:"Gets where a web part sits on a SharePoint site page.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets the section, column and index of one web part on a SharePoint site page, found by its ID. List Page Web Parts returns the web part IDs; Get Web Parts by Position does the reverse lookup.",idempotent:!0},props:{siteId:u.siteId({required:!0}),pageId:w.pageId(),webPartId:w.webPartId()},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`${w.pagePath({siteId:t.siteId,pageId:t.pageId})}/webParts/${encodeURIComponent(t.webPartId)}/getPositionOfWebPart`).get()}});var GE=h({auth:p,name:"microsoft_sharepoint_get_web_parts_by_position",outputSchema:fr,displayName:"Get Web Parts by Position",description:"Gets the web parts at a position on a SharePoint site page.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets the web parts at a position on a SharePoint site page: a horizontal section, a column in it, the vertical section, or one index within a column or the vertical section. Get Page or List Horizontal Sections returns the section and column IDs; Get Web Part Position does the reverse lookup.",idempotent:!0},props:{siteId:u.siteId({required:!0}),pageId:w.pageId(),horizontalSectionId:v.ShortText({displayName:"Horizontal Section ID",description:'ID of the horizontal section, a number like "1" sent as text. Use List Horizontal Sections to find it.',required:!1}),columnId:v.ShortText({displayName:"Column ID",description:'ID of the column in the horizontal section, a number like "1" sent as text. Needs Horizontal Section ID.',required:!1}),isInVerticalSection:v.StaticDropdown({displayName:"In Vertical Section",description:"Set to true to get the web parts in the vertical section.",required:!1,options:{disabled:!1,options:[{label:"True",value:"true"},{label:"False",value:"false"}]}}),webPartIndex:v.ShortText({displayName:"Web Part Index",description:'Position of the web part, a number like "1" sent as text; the first web part is 1. Needs Column ID or In Vertical Section set to true.',required:!1})},async run({auth:e,propsValue:t}){let o=F.booleanChoice({value:t.isInVerticalSection,propName:"In Vertical Section"}),i={...Ly({key:"horizontalSectionId",value:t.horizontalSectionId}),...Ly({key:"columnId",value:t.columnId}),...o===void 0?{}:{isInVerticalSection:String(o)},...Ly({key:"webPartIndex",value:t.webPartIndex})};if(Object.keys(i).length===0)throw new Error("Set at least one of Horizontal Section ID, Column ID, In Vertical Section or Web Part Index.");if(Mu({value:t.columnId})&&!Mu({value:t.horizontalSectionId}))throw new Error("Column ID needs Horizontal Section ID.");if(Mu({value:t.webPartIndex})&&!Mu({value:t.columnId})&&o!==!0)throw new Error("Web Part Index needs Column ID or In Vertical Section set to true.");return await g.create({auth:e}).api(`${w.pagePath({siteId:t.siteId,pageId:t.pageId})}/getWebPartsByPosition`).query(i).get()}});function Ly({key:e,value:t}){return t===void 0||t===""?{}:{[e]:t}}s(Ly,"optionalText");function Mu({value:e}){return e!==void 0&&e!==""}s(Mu,"hasText");var ZE=h({auth:p,name:"microsoft_sharepoint_list_horizontal_sections",outputSchema:$T,displayName:"List Horizontal Sections",description:"Lists the horizontal sections of a SharePoint site page.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the horizontal sections of a SharePoint site page with their IDs, layouts, emphasis and columns.",idempotent:!0},props:{siteId:u.siteId({required:!0}),pageId:w.pageId(),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`${w.pagePath({siteId:t.siteId,pageId:t.pageId})}/canvasLayout/horizontalSections`,limit:t.limit,nextLink:t.nextLink})}});var VE=h({auth:p,name:"microsoft_sharepoint_list_page_web_parts",outputSchema:fr,displayName:"List Page Web Parts",description:"Lists all web parts on a SharePoint site page.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists every web part on a SharePoint site page, across all sections, with its ID, type and content. Use List Section Web Parts or List Vertical Section Web Parts for one section only.",idempotent:!0},props:{siteId:u.siteId({required:!0}),pageId:w.pageId(),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`${w.pagePath({siteId:t.siteId,pageId:t.pageId})}/webparts`,limit:t.limit,nextLink:t.nextLink})}});var WE=h({auth:p,name:"microsoft_sharepoint_list_pages",outputSchema:jT,displayName:"List Pages",description:"Lists the pages of a SharePoint site.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the pages in the Site Pages library of a SharePoint site with their IDs, names, titles and publishing state, one page at a time. Use Get Page for one page with its sections and web parts.",idempotent:!0},props:{siteId:u.siteId({required:!0}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`/sites/${encodeURIComponent(t.siteId)}/pages`,limit:t.limit,nextLink:t.nextLink})}});var KE=h({auth:p,name:"microsoft_sharepoint_list_section_columns",outputSchema:qT,displayName:"List Section Columns",description:"Lists the columns of a horizontal section on a SharePoint site page.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the columns of one horizontal section on a SharePoint site page with their IDs, widths and web parts. List Horizontal Sections returns the section IDs.",idempotent:!0},props:{siteId:u.siteId({required:!0}),pageId:w.pageId(),horizontalSectionId:w.horizontalSectionId(),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`${w.horizontalSectionPath({siteId:t.siteId,pageId:t.pageId,horizontalSectionId:t.horizontalSectionId})}/columns`,limit:t.limit,nextLink:t.nextLink})}});var JE=h({auth:p,name:"microsoft_sharepoint_list_section_web_parts",outputSchema:fr,displayName:"List Section Web Parts",description:"Lists the web parts in a column of a horizontal section on a SharePoint site page.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the web parts in one column of a horizontal section on a SharePoint site page in order; a web part position in this list is its Web Part Index. List Section Columns returns the column IDs.",idempotent:!0},props:{siteId:u.siteId({required:!0}),pageId:w.pageId(),horizontalSectionId:w.horizontalSectionId(),columnId:w.columnId(),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`${w.columnPath({siteId:t.siteId,pageId:t.pageId,horizontalSectionId:t.horizontalSectionId,columnId:t.columnId})}/webparts`,limit:t.limit,nextLink:t.nextLink})}});var XE=h({auth:p,name:"microsoft_sharepoint_list_vertical_section_web_parts",outputSchema:fr,displayName:"List Vertical Section Web Parts",description:"Lists the web parts in the vertical section of a SharePoint site page.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the web parts in the vertical section of a SharePoint site page in order; a web part position in this list is its Web Part Index. Use List Page Web Parts for the whole page.",idempotent:!0},props:{siteId:u.siteId({required:!0}),pageId:w.pageId(),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`${w.pagePath({siteId:t.siteId,pageId:t.pageId})}/canvasLayout/verticalSection/webparts`,limit:t.limit,nextLink:t.nextLink})}});var YE=h({auth:p,name:"microsoft_sharepoint_update_horizontal_section",outputSchema:Zo,displayName:"Update Horizontal Section",description:"Updates the layout or emphasis of a horizontal section on a SharePoint site page.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Changes only the given layout and emphasis of one horizontal section on a SharePoint site page. List Horizontal Sections returns the section IDs; changes stay in draft until Publish Page.",idempotent:!0},props:{siteId:u.siteId({required:!0}),pageId:w.pageId(),horizontalSectionId:w.horizontalSectionId(),layout:w.layout({required:!1}),emphasis:w.emphasis({required:!1})},async run({auth:e,propsValue:t}){let o={...w.layoutValue({value:t.layout}),...w.emphasisValue({value:t.emphasis})};if(Object.keys(o).length===0)throw new Error("Set Layout or Emphasis to update.");return await g.create({auth:e}).api(w.horizontalSectionPath({siteId:t.siteId,pageId:t.pageId,horizontalSectionId:t.horizontalSectionId})).patch(o)}});var QE=h({auth:p,name:"microsoft_sharepoint_update_page_web_part",outputSchema:Je,displayName:"Update Page Web Part",description:"Updates a web part on a SharePoint site page by its ID.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Replaces the content of one web part on a SharePoint site page, found by its ID. List Page Web Parts returns the web part IDs; changes stay in draft until Publish Page.",idempotent:!0},props:{siteId:u.siteId({required:!0}),pageId:w.pageId(),webPartId:w.webPartId(),webPart:w.webPart()},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`${w.pagePath({siteId:t.siteId,pageId:t.pageId})}/webParts/${encodeURIComponent(t.webPartId)}`).patch(w.webPartBody({value:t.webPart}))}});var ek=["newsPost"],tk=h({auth:p,name:"microsoft_sharepoint_update_page",outputSchema:tA,displayName:"Update Page",description:"Updates the properties or content of a SharePoint site page.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Updates only the given fields of a SharePoint site page: title, description, thumbnail, comments, recommended pages, news promotion, title area or the whole canvas layout. Canvas Layout replaces the entire page content, so read it first with Get Page; to change one section or web part use the section and web part actions instead. Changes stay in draft until Publish Page.",idempotent:!0},props:{siteId:u.siteId({required:!0}),pageId:w.pageId(),title:v.ShortText({displayName:"Title",description:"New title of the page.",required:!1}),description:v.LongText({displayName:"Description",description:"New description of the page.",required:!1}),thumbnailWebUrl:v.ShortText({displayName:"Thumbnail URL",description:"URL of the page thumbnail image.",required:!1}),showComments:u.booleanProp({displayName:"Show Comments",description:"Whether comments show at the bottom of the page. Leave empty to keep the current setting."}),showRecommendedPages:u.booleanProp({displayName:"Show Recommended Pages",description:"Whether recommended pages show at the bottom of the page. Leave empty to keep the current setting."}),promotionKind:v.StaticDropdown({displayName:"Promotion Kind",description:"Set to newsPost to promote the page to a news post. Demoting a news post is not supported.",required:!1,options:{disabled:!1,options:ek.map(e=>({label:e,value:e}))}}),titleArea:v.Json({displayName:"Title Area",description:'Title area settings as a JSON object, like {"layout": "colorBlock", "textAlignment": "left", "showAuthor": true}.',required:!1}),canvasLayout:v.Json({displayName:"Canvas Layout",description:'The whole page content as a JSON object with "horizontalSections" and optionally "verticalSection". Replaces all existing content.',required:!1})},async run({auth:e,propsValue:t}){let o={...F.optionalText({key:"title",value:t.title}),...F.optionalText({key:"description",value:t.description}),...F.optionalText({key:"thumbnailWebUrl",value:t.thumbnailWebUrl}),...F.optionalBoolean({key:"showComments",value:t.showComments,propName:"Show Comments"}),...F.optionalBoolean({key:"showRecommendedPages",value:t.showRecommendedPages,propName:"Show Recommended Pages"}),...w.choice({key:"promotionKind",value:t.promotionKind,allowed:ek,propName:"Promotion Kind"}),...w.jsonObject({key:"titleArea",value:t.titleArea,propName:"Title Area"}),...w.jsonObject({key:"canvasLayout",value:t.canvasLayout,propName:"Canvas Layout"})};if(Object.keys(o).length===0)throw new Error("Set at least one page field to update.");return await g.create({auth:e}).api(w.pagePath({siteId:t.siteId,pageId:t.pageId})).patch({"@odata.type":"#microsoft.graph.sitePage",...o})}});var rk=h({auth:p,name:"microsoft_sharepoint_update_section_web_part",outputSchema:Je,displayName:"Update Section Web Part",description:"Updates a web part in a horizontal section column on a SharePoint site page by its index.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Replaces the content of one web part in a column of a horizontal section on a SharePoint site page, found by its index. List Section Web Parts returns the web parts in index order; changes stay in draft until Publish Page.",idempotent:!0},props:{siteId:u.siteId({required:!0}),pageId:w.pageId(),horizontalSectionId:w.horizontalSectionId(),columnId:w.columnId(),webPartIndex:w.webPartIndex({listAction:"List Section Web Parts"}),webPart:w.webPart()},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`${w.columnPath({siteId:t.siteId,pageId:t.pageId,horizontalSectionId:t.horizontalSectionId,columnId:t.columnId})}/webparts/${encodeURIComponent(t.webPartIndex)}`).patch(w.webPartBody({value:t.webPart}))}});var ok=h({auth:p,name:"microsoft_sharepoint_update_vertical_section_web_part",outputSchema:Je,displayName:"Update Vertical Section Web Part",description:"Updates a web part in the vertical section of a SharePoint site page by its index.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Replaces the content of one web part in the vertical section of a SharePoint site page, found by its index. List Vertical Section Web Parts returns the web parts in index order; changes stay in draft until Publish Page.",idempotent:!0},props:{siteId:u.siteId({required:!0}),pageId:w.pageId(),webPartIndex:w.webPartIndex({listAction:"List Vertical Section Web Parts"}),webPart:w.webPart()},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`${w.pagePath({siteId:t.siteId,pageId:t.pageId})}/canvasLayout/verticalSection/webparts/${encodeURIComponent(t.webPartIndex)}`).patch(w.webPartBody({value:t.webPart}))}});var ik=h({auth:p,name:"microsoft_sharepoint_update_vertical_section",outputSchema:ku,displayName:"Update Vertical Section",description:"Updates the emphasis of the vertical section of a SharePoint site page.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Sets the background emphasis of the vertical section (the side column) of a SharePoint site page. Use the vertical section web part actions to change its content; changes stay in draft until Publish Page.",idempotent:!0},props:{siteId:u.siteId({required:!0}),pageId:w.pageId(),emphasis:w.emphasis({required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`${w.pagePath({siteId:t.siteId,pageId:t.pageId})}/canvasLayout/verticalSection`).patch(w.emphasisValue({value:t.emphasis}))}});var nk=[{label:"View",value:"view"},{label:"Edit",value:"edit"},{label:"Embed",value:"embed"}],ak=[{label:"Anyone with the link",value:"anonymous"},{label:"People in the organization",value:"organization"},{label:"Specific people",value:"users"}],sk=h({auth:p,name:"microsoft_sharepoint_create_sharing_link",outputSchema:qx,displayName:"Create Sharing Link",description:"Creates a sharing link for a file or folder.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Creates a view, edit or embed sharing link for a file or folder, or returns the existing link of that type. Use Invite to File to share with named people by email instead; Grant Sharing Link Access adds people to the link.",idempotent:!0},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0}),type:v.StaticDropdown({displayName:"Link Type",description:'"view" for read-only, "edit" for read-write, "embed" for an embeddable link (OneDrive personal only).',required:!0,options:{disabled:!1,options:nk}}),scope:v.StaticDropdown({displayName:"Scope",description:'Who can use the link: "anonymous", "organization" or "users". Leave empty for the organization default.',required:!1,options:{disabled:!1,options:ak}}),expirationDateTime:v.DateTime({displayName:"Expiration Date",description:'When the link expires, in ISO 8601 format like "2026-12-31T23:59:59Z".',required:!1})},async run({auth:e,propsValue:t}){if(!nk.some(i=>i.value===t.type))throw new Error('Link Type must be "view", "edit" or "embed".');if(t.scope!==void 0&&!ak.some(i=>i.value===t.scope))throw new Error('Scope must be "anonymous", "organization" or "users".');return await g.create({auth:e}).api(`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}/createLink`).post({type:t.type,...t.scope!==void 0?{scope:t.scope}:{},...t.expirationDateTime!==void 0?{expirationDateTime:t.expirationDateTime}:{}})}});var ck=h({auth:p,name:"microsoft_sharepoint_delete_file_permission",outputSchema:Hx,displayName:"Delete File Permission",description:"Removes a sharing permission from a file or folder.",audience:"ai",classification:"DESTRUCTIVE",aiMetadata:{description:"Permanently removes one direct sharing permission or sharing link from a file or folder; inherited permissions cannot be removed here. List File Permissions returns the permission IDs; use Revoke File Permission Grants to remove only some people from a sharing link.",idempotent:!1},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0}),permissionId:v.ShortText({displayName:"Permission ID",description:"ID of the permission to remove. Use List File Permissions to find it.",required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}/permissions/${encodeURIComponent(t.permissionId)}`).delete(),{deleted:!0,permissionId:t.permissionId}}});var lk=h({auth:p,name:"microsoft_sharepoint_get_file_permission",outputSchema:Au,displayName:"Get File Permission",description:"Gets one sharing permission on a file or folder.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets one sharing permission on a file or folder, with its roles, grantees, sharing link and where it is inherited from. List File Permissions returns the permission IDs.",idempotent:!0},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0}),permissionId:v.ShortText({displayName:"Permission ID",description:"ID of the permission. Use List File Permissions to find it.",required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}/permissions/${encodeURIComponent(t.permissionId)}`).get()}});var uk=h({auth:p,name:"microsoft_sharepoint_get_shared_item",outputSchema:gT,displayName:"Get Shared Item",description:"Gets the item behind a sharing link.",audience:"ai",classification:"READ",aiMetadata:{description:"Resolves a SharePoint or OneDrive sharing URL to the shared item's ID, name and owner. Takes the full sharing URL, like one returned by Create Sharing Link.",idempotent:!0},props:{sharingUrl:v.ShortText({displayName:"Sharing URL",description:"The full sharing link URL. Create Sharing Link returns it as link.webUrl.",required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/shares/${encodeURIComponent(F.shareToken({share:t.sharingUrl}))}`).get()}});var dk=[{label:"Read",value:"read"},{label:"Write",value:"write"}],pk=h({auth:p,name:"microsoft_sharepoint_grant_sharing_link_access",outputSchema:ST,displayName:"Grant Sharing Link Access",description:"Gives people access to an existing sharing link.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Adds people by email address to an existing sharing link, given the link URL from Create Sharing Link or List File Permissions. The role must match the link's role unless it is an existing-access link. The returned link may have a new URL.",idempotent:!1},props:{sharingUrl:v.ShortText({displayName:"Sharing URL",description:"The sharing link URL (link.webUrl). Use Create Sharing Link or List File Permissions to find it.",required:!0}),recipients:v.Array({displayName:"Recipients",description:"Email addresses of the people to give access to.",required:!0}),role:v.StaticDropdown({displayName:"Role",description:'Access to grant: "read" or "write".',required:!0,options:{disabled:!1,options:dk}})},async run({auth:e,propsValue:t}){if(!dk.some(i=>i.value===t.role))throw new Error('Role must be "read" or "write".');return await g.create({auth:e}).api(`/shares/${encodeURIComponent(F.shareToken({share:t.sharingUrl}))}/permission/grant`).post({recipients:F.toRecipients({emails:t.recipients,propName:"Recipients"}),roles:[t.role]})}});var mk=[{label:"Read",value:"read"},{label:"Write",value:"write"}],fk=[{label:"Yes",value:"true"},{label:"No",value:"false"}],hk=h({auth:p,name:"microsoft_sharepoint_invite_to_file",outputSchema:_T,displayName:"Invite to File",description:"Shares a file or folder with people by email address.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Grants people read or write access to a file or folder by email address, optionally emailing them an invitation. Use Create Sharing Link for a link anyone in scope can open instead.",idempotent:!1},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0}),recipients:v.Array({displayName:"Recipients",description:"Email addresses of the people to share with.",required:!0}),role:v.StaticDropdown({displayName:"Role",description:'Access to grant: "read" or "write".',required:!0,options:{disabled:!1,options:mk}}),message:v.LongText({displayName:"Message",description:"Plain text message included in the invitation, up to 2,000 characters.",required:!1}),sendInvitation:v.StaticDropdown({displayName:"Send Invitation",description:'"true" to email the recipients a sharing link, "false" to grant access without notifying them.',required:!1,options:{disabled:!1,options:fk}}),requireSignIn:v.StaticDropdown({displayName:"Require Sign-In",description:'"true" if recipients must sign in to view the item.',required:!1,options:{disabled:!1,options:fk}})},async run({auth:e,propsValue:t}){if(!mk.some(n=>n.value===t.role))throw new Error('Role must be "read" or "write".');let o=F.booleanChoice({value:t.sendInvitation,propName:"Send Invitation"}),i=F.booleanChoice({value:t.requireSignIn,propName:"Require Sign-In"});return await g.create({auth:e}).api(`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}/invite`).post({recipients:F.toRecipients({emails:t.recipients,propName:"Recipients"}),roles:[t.role],...t.message!==void 0?{message:t.message}:{},...o!==void 0?{sendInvitation:o}:{},...i!==void 0?{requireSignIn:i}:{}})}});var yk=h({auth:p,name:"microsoft_sharepoint_list_file_permissions",outputSchema:CT,displayName:"List File Permissions",description:"Lists who has access to a file or folder in a document library.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the sharing permissions on a file or folder, both direct and inherited, with their IDs, roles, grantees and sharing links, one page at a time. Use the permission IDs with Get, Update or Delete File Permission.",idempotent:!0},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}/permissions`,limit:t.limit,nextLink:t.nextLink})}});var gk=h({auth:p,name:"microsoft_sharepoint_list_list_item_permissions",outputSchema:Du,displayName:"List List Item Permissions",description:"Lists who has access to an item in a SharePoint list.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the permissions on one SharePoint list item with their IDs, roles and grantees, one page at a time. Requires the signed-in user to be able to manage permissions on the site; use List List Permissions for the whole list.",idempotent:!0},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),listItemId:u.listItemId({required:!0}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/items/${encodeURIComponent(t.listItemId)}/permissions`,limit:t.limit,nextLink:t.nextLink})}});var vk=h({auth:p,name:"microsoft_sharepoint_list_list_permissions",outputSchema:Du,displayName:"List List Permissions",description:"Lists who has access to a SharePoint list.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the permissions on a SharePoint list with their IDs, roles and grantees, one page at a time. Requires the signed-in user to be able to manage permissions on the site; use List List Item Permissions for a single item.",idempotent:!0},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/permissions`,limit:t.limit,nextLink:t.nextLink})}});var Pk=h({auth:p,name:"microsoft_sharepoint_revoke_file_permission_grants",outputSchema:Au,displayName:"Revoke File Permission Grants",description:"Removes people from a sharing link on a file or folder.",audience:"ai",classification:"DESTRUCTIVE",aiMetadata:{description:"Removes some people from a sharing link that is scoped to specific users, keeping the link for everyone else. Only works on such sharing links, not direct grants or anonymous and organization links; use Delete File Permission for those. List File Permissions returns the permission IDs.",idempotent:!1},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0}),permissionId:v.ShortText({displayName:"Permission ID",description:"ID of the sharing link permission. Use List File Permissions to find it.",required:!0}),grantees:v.Array({displayName:"Grantees",description:"Email addresses of the people whose access to the link is revoked.",required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}/permissions/${encodeURIComponent(t.permissionId)}/revokeGrants`).post({grantees:F.toRecipients({emails:t.grantees,propName:"Grantees"})})}});var Ik=[{label:"Read",value:"read"},{label:"Write",value:"write"},{label:"Owner",value:"owner"}],bk=h({auth:p,name:"microsoft_sharepoint_update_file_permission",outputSchema:QT,displayName:"Update File Permission",description:"Changes the role of a sharing permission on a file or folder.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Sets the role (read, write or owner) of one direct sharing permission on a file or folder. List File Permissions returns the permission IDs; organization and people sharing links cannot be changed this way.",idempotent:!0},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0}),permissionId:v.ShortText({displayName:"Permission ID",description:"ID of the permission to change. Use List File Permissions to find it.",required:!0}),role:v.StaticDropdown({displayName:"Role",description:'The new role: "read", "write" or "owner".',required:!0,options:{disabled:!1,options:Ik}})},async run({auth:e,propsValue:t}){if(!Ik.some(i=>i.value===t.role))throw new Error('Role must be "read", "write" or "owner".');return await g.create({auth:e}).api(`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}/permissions/${encodeURIComponent(t.permissionId)}`).patch({roles:[t.role]})}});var _k=h({auth:p,name:"microsoft_sharepoint_search",outputSchema:JT,displayName:"Search",description:"Searches SharePoint and OneDrive for files, list items, lists, sites and libraries.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Runs a KQL search across the SharePoint sites and OneDrive the user can access and returns ranked hits for the chosen entity types, each with the resource and its IDs. Use From and Size to page; use Find File or Find Site for a simple name lookup.",idempotent:!0},props:{entityTypes:v.StaticMultiSelectDropdown({displayName:"Entity Types",description:"Kinds of results to return: driveItem (files and folders), listItem, list, site or drive (document libraries).",required:!0,options:{options:[{label:"Files and Folders (driveItem)",value:"driveItem"},{label:"List Items (listItem)",value:"listItem"},{label:"Lists (list)",value:"list"},{label:"Sites (site)",value:"site"},{label:"Document Libraries (drive)",value:"drive"}]}}),queryString:v.LongText({displayName:"Query",description:'KQL search query, like "budget filetype:xlsx" or "contoso AND path:\\"https://contoso.sharepoint.com/sites/hr\\"".',required:!0}),from:v.Number({displayName:"From",description:"Offset of the first result, starting at 0. Defaults to 0.",required:!1,defaultValue:0}),size:v.Number({displayName:"Size",description:"Number of results to return, from 1 to 500. Defaults to 25.",required:!1,defaultValue:25})},async run({auth:e,propsValue:t}){let o=t.entityTypes.filter(c=>Sk.some(l=>l===c));if(o.length===0||o.length!==t.entityTypes.length)throw new Error(`Entity Types must be one or more of: ${Sk.join(", ")}.`);let i=t.from??0;if(!Number.isInteger(i)||i<0)throw new Error("From must be a whole number of at least 0.");let r=t.size??RM;if(!Number.isInteger(r)||r<1)throw new Error("Size must be a whole number of at least 1.");let n={entityTypes:o,query:{queryString:t.queryString},from:i,size:Math.min(r,OM)};return await g.create({auth:e}).api("/search/query").post({requests:[n]})}}),Sk=["driveItem","listItem","list","site","drive"],RM=25,OM=500;var xk=h({auth:p,name:"microsoft_sharepoint_get_list_operation",outputSchema:$u,displayName:"Get List Operation",description:"Gets the status of a long-running operation on a SharePoint list.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets the current status, progress and error of one long-running operation on a SharePoint list. Reads it once and does not wait; List List Operations returns the operation IDs.",idempotent:!0},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),operationId:v.ShortText({displayName:"Operation ID",description:"ID of the operation. Use List List Operations to find it.",required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/operations/${encodeURIComponent(t.operationId)}`).get()}});var Tk=h({auth:p,name:"microsoft_sharepoint_get_root_site",outputSchema:Ko,displayName:"Get Root Site",description:"Gets the organization's root SharePoint site.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets the tenant's root SharePoint site with its ID, name, URL and hostname. Use it to learn the SharePoint hostname for Get Site by Path, or as a starting site for List Subsites.",idempotent:!0},props:{},async run({auth:e}){return await g.create({auth:e}).api("/sites/root").get()}});var Ak=h({auth:p,name:"microsoft_sharepoint_get_site_by_path",outputSchema:Ko,displayName:"Get Site by Path",description:"Gets a SharePoint site from its hostname and server-relative path.",audience:"ai",classification:"READ",aiMetadata:{description:'Gets a SharePoint site from its URL parts, such as hostname "contoso.sharepoint.com" and path "/sites/marketing", and returns its site ID. Leave the path empty for the root site of that hostname. Use Find Site instead when you only know the site name.',idempotent:!0},props:{hostname:v.ShortText({displayName:"Hostname",description:'SharePoint hostname, like "contoso.sharepoint.com". Get Root Site returns it.',required:!0}),relativePath:v.ShortText({displayName:"Server-Relative Path",description:'Path of the site under the hostname, like "/sites/marketing". Leave empty for the root site.',required:!1})},async run({auth:e,propsValue:t}){let{hostname:o,relativePath:i}=t,r=encodeURIComponent(o),n=i?`/sites/${r}:${i.startsWith("/")?"":"/"}${encodeURI(i)}`:`/sites/${r}`;return await g.create({auth:e}).api(n).get()}});var wk=h({auth:p,name:"microsoft_sharepoint_get_site_operation",outputSchema:$u,displayName:"Get Site Operation",description:"Gets the status of a long-running operation on a SharePoint site.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets the current status, progress and error of one long-running operation on a SharePoint site. Reads it once and does not wait; List Site Operations returns the operation IDs.",idempotent:!0},props:{siteId:u.siteId({required:!0}),operationId:v.ShortText({displayName:"Operation ID",description:"ID of the operation. Use List Site Operations to find it.",required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/operations/${encodeURIComponent(t.operationId)}`).get()}});var Ek=h({auth:p,name:"microsoft_sharepoint_list_site_operations",outputSchema:bt,displayName:"List Site Operations",description:"Lists the long-running operations on a SharePoint site.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the long-running operations on a SharePoint site, such as column indexing, with their IDs and status, one page at a time. Use Get Site Operation to check one operation again.",idempotent:!0},props:{siteId:u.siteId({required:!0}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`/sites/${encodeURIComponent(t.siteId)}/operations`,limit:t.limit,nextLink:t.nextLink})}});var kk=h({auth:p,name:"microsoft_sharepoint_list_subsites",outputSchema:bt,displayName:"List Subsites",description:"Lists the subsites of a SharePoint site.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the direct subsites of a SharePoint site with their IDs, names and URLs, one page at a time. Use Find Site to search all sites by name instead.",idempotent:!0},props:{siteId:u.siteId({required:!0}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`/sites/${encodeURIComponent(t.siteId)}/sites`,limit:t.limit,nextLink:t.nextLink})}});var Ck=h({auth:p,name:"microsoft_sharepoint_create_document_set_version",outputSchema:vu,displayName:"Create Document Set Version",description:"Captures a new version of a document set.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Captures the current state of a document set and its items as a new version that Restore Document Set Version can return to. Each call adds another version. Works only on a document set item in a library with the Document Sets feature enabled; List List Items returns the item ID.",idempotent:!1},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),listItemId:u.listItemId({required:!0,displayName:"Document Set Item ID",description:'List item ID of the document set, a number like "12" sent as text. Use List List Items to find it.'}),comment:v.ShortText({displayName:"Comment",description:"Comment about the captured version.",required:!1}),shouldCaptureMinorVersion:v.StaticDropdown({displayName:"Capture Minor Versions",description:'"true" also captures minor versions of the items; "false" captures only major versions. Microsoft Graph defaults to "false".',required:!1,options:{options:[{label:"Yes",value:"true"},{label:"No",value:"false"}]}})},async run({auth:e,propsValue:t}){let o=F.booleanChoice({value:t.shouldCaptureMinorVersion,propName:"Capture Minor Versions"});return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/items/${encodeURIComponent(t.listItemId)}/documentSetVersions`).post({...t.comment!==void 0?{comment:t.comment}:{},...o!==void 0?{shouldCaptureMinorVersion:o}:{}})}});var Dk=h({auth:p,name:"microsoft_sharepoint_delete_document_set_version",outputSchema:bu,displayName:"Delete Document Set Version",description:"Deletes a captured version of a document set.",audience:"ai",classification:"DESTRUCTIVE",aiMetadata:{description:"Permanently deletes one captured version of a document set; the document set and its current items are not changed. List Document Set Versions returns the version IDs.",idempotent:!1},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),listItemId:u.listItemId({required:!0,displayName:"Document Set Item ID",description:'List item ID of the document set, a number like "12" sent as text. Use List List Items to find it.'}),documentSetVersionId:v.ShortText({displayName:"Document Set Version ID",description:'ID of the document set version to delete, like "1". Use List Document Set Versions to find it.',required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/items/${encodeURIComponent(t.listItemId)}/documentSetVersions/${encodeURIComponent(t.documentSetVersionId)}`).delete(),{success:!0,siteId:t.siteId,listId:t.listId,listItemId:t.listItemId,documentSetVersionId:t.documentSetVersionId}}});var Rk=h({auth:p,name:"microsoft_sharepoint_download_file_version",outputSchema:Jx,displayName:"Download File Version",description:"Downloads the content of a previous version of a file in a document library.",audience:"ai",classification:"READ",aiMetadata:{description:"Downloads the content of a previous version of a file in a document library and returns it as a file with the version details. Microsoft Graph rejects the current version; use Download File for that. List File Versions returns the version IDs.",idempotent:!0},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0}),versionId:v.ShortText({displayName:"Version ID",description:'ID of a previous file version, like "1.0". Use List File Versions to find it.',required:!0})},async run({auth:e,propsValue:t,files:o}){let i=g.create({auth:e}),r=`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}`,n=`${r}/versions/${encodeURIComponent(t.versionId)}`,a=await i.api(r).select("id,name").get(),c=await i.api(n).get(),l=await g.download({auth:e,path:`${n}/content`}),d=a.name??`${t.itemId}-${t.versionId}`;return{file:await o.write({fileName:d,data:l}),fileName:d,version:c}}});var Ok=h({auth:p,name:"microsoft_sharepoint_get_document_set_version",outputSchema:vu,displayName:"Get Document Set Version",description:"Gets one captured version of a document set.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets one captured version of a document set with its comment, creator and the item versions it holds. List Document Set Versions returns the version IDs.",idempotent:!0},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),listItemId:u.listItemId({required:!0,displayName:"Document Set Item ID",description:'List item ID of the document set, a number like "12" sent as text. Use List List Items to find it.'}),documentSetVersionId:v.ShortText({displayName:"Document Set Version ID",description:'ID of the document set version, like "1". Use List Document Set Versions to find it.',required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/items/${encodeURIComponent(t.listItemId)}/documentSetVersions/${encodeURIComponent(t.documentSetVersionId)}`).get()}});var $k=h({auth:p,name:"microsoft_sharepoint_get_file_version",outputSchema:sT,displayName:"Get File Version",description:"Gets the details of one version of a file in a document library.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets the size and modification details of one version of a file in a document library, without its content. Use Download File Version for the content; List File Versions returns the version IDs.",idempotent:!0},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0}),versionId:v.ShortText({displayName:"Version ID",description:'ID of the file version, like "2.0". Use List File Versions to find it.',required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}/versions/${encodeURIComponent(t.versionId)}`).get()}});var Nk=h({auth:p,name:"microsoft_sharepoint_get_list_item_version",outputSchema:mT,displayName:"Get List Item Version",description:"Gets one version of a SharePoint list item with its field values.",audience:"ai",classification:"READ",aiMetadata:{description:"Gets one version of a SharePoint list item with the field values it had in that version. List List Item Versions returns the version IDs.",idempotent:!0},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),listItemId:u.listItemId({required:!0}),versionId:v.ShortText({displayName:"Version ID",description:'ID of the list item version, like "1.0". Use List List Item Versions to find it.',required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/items/${encodeURIComponent(t.listItemId)}/versions/${encodeURIComponent(t.versionId)}`).expand("fields").get()}});var Lk=h({auth:p,name:"microsoft_sharepoint_list_document_set_versions",outputSchema:wT,displayName:"List Document Set Versions",description:"Lists the captured versions of a document set in a document library.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the captured versions of a document set, with their IDs, comments and the item versions each one holds, one page at a time. Works only on a document set item in a library with the Document Sets feature enabled; List List Items returns the item ID.",idempotent:!0},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),listItemId:u.listItemId({required:!0,displayName:"Document Set Item ID",description:'List item ID of the document set, a number like "12" sent as text. Use List List Items to find it.'}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/items/${encodeURIComponent(t.listItemId)}/documentSetVersions`,limit:t.limit,nextLink:t.nextLink})}});var zk=h({auth:p,name:"microsoft_sharepoint_list_file_versions",outputSchema:DT,displayName:"List File Versions",description:"Lists the versions of a file in a document library.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the versions of a file in a document library, newest first, with their version IDs, sizes and modification details, one page at a time. The first version is the current one. Use List Folder Children or Find File to get the file ID.",idempotent:!0},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}/versions`,limit:t.limit,nextLink:t.nextLink})}});var Uk=h({auth:p,name:"microsoft_sharepoint_list_list_item_versions",outputSchema:UT,displayName:"List List Item Versions",description:"Lists the versions of a SharePoint list item.",audience:"ai",classification:"SEARCH",aiMetadata:{description:"Lists the versions of a SharePoint list item with their version IDs and modification details, one page at a time. Use Get List Item Version for the field values of one version.",idempotent:!0},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),listItemId:u.listItemId({required:!0}),limit:u.limit({required:!1}),nextLink:u.nextLink({required:!1})},async run({auth:e,propsValue:t}){return await g.list({auth:e,path:`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/items/${encodeURIComponent(t.listItemId)}/versions`,limit:t.limit,nextLink:t.nextLink})}});var Mk=h({auth:p,name:"microsoft_sharepoint_restore_document_set_version",outputSchema:bu,displayName:"Restore Document Set Version",description:"Restores a document set to one of its captured versions.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Restores a document set and the items it holds to one of its captured versions. List Document Set Versions returns the version IDs; capture the current state first with Create Document Set Version to be able to return to it.",idempotent:!1},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),listItemId:u.listItemId({required:!0,displayName:"Document Set Item ID",description:'List item ID of the document set, a number like "12" sent as text. Use List List Items to find it.'}),documentSetVersionId:v.ShortText({displayName:"Document Set Version ID",description:'ID of the document set version to restore, like "1". Use List Document Set Versions to find it.',required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/items/${encodeURIComponent(t.listItemId)}/documentSetVersions/${encodeURIComponent(t.documentSetVersionId)}/restore`).post(void 0),{success:!0,siteId:t.siteId,listId:t.listId,listItemId:t.listItemId,documentSetVersionId:t.documentSetVersionId}}});var Fk=h({auth:p,name:"microsoft_sharepoint_restore_file_version",outputSchema:WT,displayName:"Restore File Version",description:"Restores a previous version of a file in a document library.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Makes a previous version of a file the current one by saving its content as a new version; all existing versions are kept. Each call adds another version. List File Versions returns the version IDs.",idempotent:!1},props:{driveId:u.driveId({required:!0}),itemId:u.itemId({required:!0}),versionId:v.ShortText({displayName:"Version ID",description:'ID of the file version to restore, like "1.0". Use List File Versions to find it.',required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/drives/${encodeURIComponent(t.driveId)}/items/${encodeURIComponent(t.itemId)}/versions/${encodeURIComponent(t.versionId)}/restoreVersion`).post({}),{success:!0,driveId:t.driveId,itemId:t.itemId,versionId:t.versionId}}});var jk=h({auth:p,name:"microsoft_sharepoint_restore_list_item_version",outputSchema:KT,displayName:"Restore List Item Version",description:"Restores a previous version of a SharePoint list item.",audience:"ai",classification:"WRITE",aiMetadata:{description:"Makes a previous version of a SharePoint list item the current one by saving its field values as a new version; all existing versions are kept. Each call adds another version. List List Item Versions returns the version IDs.",idempotent:!1},props:{siteId:u.siteId({required:!0}),listId:u.listId({required:!0}),listItemId:u.listItemId({required:!0}),versionId:v.ShortText({displayName:"Version ID",description:'ID of the list item version to restore, like "1.0". Use List List Item Versions to find it.',required:!0})},async run({auth:e,propsValue:t}){return await g.create({auth:e}).api(`/sites/${encodeURIComponent(t.siteId)}/lists/${encodeURIComponent(t.listId)}/items/${encodeURIComponent(t.listItemId)}/versions/${encodeURIComponent(t.versionId)}/restoreVersion`).post(void 0),{success:!0,siteId:t.siteId,listId:t.listId,listItemId:t.listItemId,versionId:t.versionId}}});var qk=[BA,HA,GA,ZA,VA,WA,KA,JA,XA,YA,tw,rw,ow,iw,nw,aw,sw,cw,lw,uw,dw,pw,mw,fw,hw,yw,gw,vw,Pw,Iw,bw,Sw,_w,xw,Tw,Aw,ww,Ew,kw,Cw,Dw,Rw,Ow,$w,Nw,Lw,zw,Uw,Mw,Fw,jw,qw,Bw,Hw,Gw,Zw,Vw,Ww,Kw,Jw,Xw,Yw,Qw,eE,tE,rE,oE,iE,nE,aE,sE,cE,lE,uE,dE,pE,mE,fE,hE,yE,gE,vE,PE,IE,TE,AE,wE,kE,CE,DE,RE,OE,$E,NE,LE,zE,UE,ME,FE,jE,qE,BE,HE,GE,ZE,VE,WE,KE,JE,XE,YE,QE,tk,rk,ok,ik,sk,ck,lk,uk,pk,hk,yk,gk,vk,Pk,bk,_k,xk,Tk,Ak,wk,Ek,kk,Ck,Dk,Rk,Ok,$k,Nk,Lk,zk,Uk,Mk,Fk,jk];var ga=ue(be());var Bk="activepieces_sharepoint_trigger",Hk=Ke({auth:p,name:"new_file_in_folder",outputSchema:rA,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:j.siteId,driveId:j.driveId,folderId:v.Dropdown({auth:p,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:o})=>{if(!e||!t||!o)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let i=e,r=i.props?.cloud,n=ga.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(i.access_token),"getAccessToken")},baseUrl:M(r)}),a=[{label:"Root Folder",value:"root"}],c=await n.api(`/drives/${o}/root/children?$filter=folder ne null&$select=id,name`).get();for(;c.value.length>0;){for(let l of c.value)a.push({label:l.name,value:l.id});if(c["@odata.nextLink"])c=await n.api(c["@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:o,folderId:i}=e.propsValue,r=e.auth.props?.cloud,n=ga.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:M(r)});try{let a=i==="root"?(await n.api(`/drives/${o}/root`).get()).id:i,c=new Date;c.setDate(c.getDate()+2);let l=await n.api("/subscriptions").post({changeType:"created",notificationUrl:e.webhookUrl,resource:`/sites/${t}/drive/items/${a}/children`,expirationDateTime:c.toISOString(),clientState:Bk});await e.store.put("subscriptionId",l.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 o=e.auth.props?.cloud,i=ga.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:M(o)});try{await i.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 o=t.filter(a=>a.clientState===Bk);if(o.length===0)return[];let i=e.auth.props?.cloud,r=ga.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:M(i)}),n=[];for(let a of o)try{let c=await r.api(a.resource).get();c.file&&n.push(c)}catch(c){console.error("Error fetching file from notification:",c)}return n}});var va=ue(be());var Gk="activepieces_sharepoint_subfolder_trigger",Zk=Ke({auth:p,name:"new_file_in_subfolders",outputSchema:oA,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:j.siteId,driveId:j.driveId,parentFolderId:v.Dropdown({auth:p,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:o})=>{if(!e||!t||!o)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let i=e,r=i.props?.cloud,n=va.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(i.access_token),"getAccessToken")},baseUrl:M(r)}),a=[{label:"Root Folder",value:"root"}],c=await n.api(`/drives/${o}/root/children?$filter=folder ne null&$select=id,name`).get();for(;c.value.length>0;){for(let l of c.value)a.push({label:l.name,value:l.id});if(c["@odata.nextLink"])c=await n.api(c["@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:o,parentFolderId:i}=e.propsValue,r=e.auth.props?.cloud,n=va.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:M(r)});try{let a=i==="root"?(await n.api(`/drives/${o}/root`).get()).id:i,l=(await n.api(`/drives/${o}/items/${a}/children?$filter=folder ne null&$select=id`).get()).value,d=new Date;d.setDate(d.getDate()+2);let f=l.map(m=>n.api("/subscriptions").post({changeType:"created",notificationUrl:e.webhookUrl,resource:`/sites/${t}/drive/items/${m.id}/children`,expirationDateTime:d.toISOString(),clientState:Gk})),P=(await Promise.allSettled(f)).filter(m=>m.status==="fulfilled").map(m=>m.value.id);await e.store.put("subscriptionIds",P)}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 o=e.auth.props?.cloud,i=va.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:M(o)}),r=t.map(n=>i.api(`/subscriptions/${n}`).delete().catch(a=>console.error(`Failed to delete subscription ${n}:`,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 o=t.filter(a=>a.clientState===Gk);if(o.length===0)return[];let i=e.auth.props?.cloud,r=va.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:M(i)}),n=[];for(let a of o)try{let c=await r.api(a.resource).get();c.file&&n.push(c)}catch(c){console.error("Error fetching file from notification:",c)}return n}});var Vk=ue(be()),ju=ue(Jo());var Fu={strategy:0,items:s(async({auth:e,propsValue:t,lastFetchEpochMS:o})=>{let{siteId:i}=t,r=o===0,n=e.props?.cloud,a=Vk.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.access_token),"getAccessToken")},baseUrl:M(n)}),c=[],l=await a.api(`/sites/${i}/lists`).get(),d=!1;for(;!d&&l.value.length>0;){for(let f of l.value){if(r){c.push(f),c.length>=10&&(d=!0);continue}c.push(f)}if(d||!l["@odata.nextLink"])break;l=await a.api(l["@odata.nextLink"]).get()}return c.sort((f,b)=>{let P=(0,ju.default)(f.createdDateTime);return(0,ju.default)(b.createdDateTime).diff(P)}),c.map(f=>({epochMilliSeconds:(0,ju.default)(f.createdDateTime).valueOf(),data:f}))},"items")},Wk=Ke({auth:p,name:"new_list",outputSchema:Ou,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:j.siteId},type:"POLLING",sampleData:void 0,async onEnable(e){await Se.onEnable(Fu,e)},async onDisable(e){await Se.onDisable(Fu,e)},async test(e){return await Se.test(Fu,e)},async run(e){return await Se.poll(Fu,e)}});var Kk=ue(be()),Pa=ue(Jo());var Bu={strategy:0,items:s(async({auth:e,propsValue:t,lastFetchEpochMS:o})=>{let{siteId:i,listId:r}=t,n=e.props?.cloud,a=Kk.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.access_token),"getAccessToken")},baseUrl:M(n)}),c=[],l=o===0?"$top=10":`$filter=fields/Created gt '${(0,Pa.default)(o).toISOString()}'`,d=await a.api(`/sites/${i}/lists/${r}/items?${l}`).header("Prefer","HonorNonIndexedQueriesWarningMayFailRandomly").expand("fields").get();if(o===0)for(let f of d.value)c.push(f);else for(;d.value.length>0;){for(let f of d.value)c.push(f);if(d["@odata.nextLink"])d=await a.api(d["@odata.nextLink"]).header("Prefer","HonorNonIndexedQueriesWarningMayFailRandomly").get();else break}return c.sort((f,b)=>{let P=(0,Pa.default)(f.createdDateTime);return(0,Pa.default)(b.createdDateTime).diff(P)}),c.map(f=>({epochMilliSeconds:(0,Pa.default)(f.createdDateTime).valueOf(),data:f}))},"items")},Jk=Ke({auth:p,name:"new_list_item",outputSchema:iA,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:j.siteId,listId:j.listId},type:"POLLING",sampleData:void 0,async onEnable(e){await Se.onEnable(Bu,e)},async onDisable(e){await Se.onDisable(Bu,e)},async test(e){return await Se.test(Bu,e)},async run(e){return await Se.poll(Bu,e)}});var My=ue(be()),Ia=ue(Jo());var Hu={strategy:0,items:s(async({auth:e,propsValue:t,lastFetchEpochMS:o})=>{let{siteId:i,driveId:r,folderId:n}=t,a=o===0,c=e.props?.cloud,l=My.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.access_token),"getAccessToken")},baseUrl:M(c)}),d=[],f=n!=="root"?`/sites/${i}/drive/items/${n}/children`:`/sites/${i}/drives/${r}/items/root/children`,b=await l.api(f).orderby("lastModifiedDateTime desc").get(),P=!1;for(;!P&&b.value.length>0;){for(let m of b.value){if(!m.file)continue;let I=(0,Ia.default)(m.lastModifiedDateTime).valueOf();if(a){d.push(m),d.length>=10&&(P=!0);continue}if(I<o){P=!0;break}d.push(m)}if(P||!b["@odata.nextLink"])break;b=await l.api(b["@odata.nextLink"]).get()}return d.sort((m,I)=>{let x=(0,Ia.default)(m.lastModifiedDateTime);return(0,Ia.default)(I.lastModifiedDateTime).diff(x)}),d.map(m=>({epochMilliSeconds:(0,Ia.default)(m.lastModifiedDateTime).valueOf(),data:m}))},"items")},Xk=Ke({auth:p,name:"new_or_updated_file",outputSchema:nA,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:j.siteId,driveId:j.driveId,folderId:v.Dropdown({auth:p,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:o})=>{if(!e||!t||!o)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let i=e,r=i.props?.cloud,n=My.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(i.access_token),"getAccessToken")},baseUrl:M(r)}),a=[{label:"Root Folder",value:"root"}],c=await n.api(`/sites/${t}/drives/${o}/items/root/children?$filter=folder ne null&$select=id,name`).get();for(;c.value.length>0;){for(let l of c.value)a.push({label:l.name,value:l.id});if(c["@odata.nextLink"])c=await n.api(c["@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 Se.onEnable(Hu,e)},async onDisable(e){await Se.onDisable(Hu,e)},async test(e){return await Se.test(Hu,e)},async run(e){return await Se.poll(Hu,e)}});var Fy=ue(be()),ba=ue(Jo());var Gu={strategy:0,items:s(async({auth:e,propsValue:t,lastFetchEpochMS:o})=>{let{siteId:i,driveId:r,parentFolderId:n}=t,a=o===0,c=e.props?.cloud,l=Fy.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.access_token),"getAccessToken")},baseUrl:M(c)}),d=[],f=n!=="root"?`/sites/${i}/drive/items/${n}/children`:`/sites/${i}/drives/${r}/items/root/children`,b=await l.api(f).orderby("lastModifiedDateTime desc").get(),P=!1;for(;!P&&b.value.length>0;){for(let m of b.value){if(!m.folder)continue;let I=(0,ba.default)(m.lastModifiedDateTime).valueOf();if(a){d.push(m),d.length>=10&&(P=!0);continue}if(I<o){P=!0;break}d.push(m)}if(P||!b["@odata.nextLink"])break;b=await l.api(b["@odata.nextLink"]).get()}return d.sort((m,I)=>{let x=(0,ba.default)(m.lastModifiedDateTime);return(0,ba.default)(I.lastModifiedDateTime).diff(x)}),d.map(m=>({epochMilliSeconds:(0,ba.default)(m.lastModifiedDateTime).valueOf(),data:m}))},"items")},Yk=Ke({auth:p,name:"new_or_updated_folder",outputSchema:aA,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:j.siteId,driveId:j.driveId,parentFolderId:v.Dropdown({auth:p,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:o})=>{if(!e||!t||!o)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let i=e,r=i.props?.cloud,n=Fy.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(i.access_token),"getAccessToken")},baseUrl:M(r)}),a=[{label:"Root Folder",value:"root"}],c=await n.api(`/sites/${t}/drives/${o}/items/root/children?$filter=folder ne null&$select=id,name`).get();for(;c.value.length>0;){for(let l of c.value)a.push({label:l.name,value:l.id});if(c["@odata.nextLink"])c=await n.api(c["@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 Se.onEnable(Gu,e)},async onDisable(e){await Se.onDisable(Gu,e)},async test(e){return await Se.test(Gu,e)},async run(e){return await Se.poll(Gu,e)}});var Qk=ue(be()),Sa=ue(Jo());var Zu={strategy:0,items:s(async({auth:e,propsValue:t,lastFetchEpochMS:o})=>{let{siteId:i}=t,r=o===0,n=e.props?.cloud,a=Qk.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.access_token),"getAccessToken")},baseUrl:M(n)}),c=[],l=await a.api(`/sites/${i}/lists`).get(),d=!1;for(;!d&&l.value.length>0;){for(let f of l.value){let b=(0,Sa.default)(f.lastModifiedDateTime).valueOf();if(r){c.push(f),c.length>=10&&(d=!0);continue}if(b<o){d=!0;break}c.push(f)}if(d||!l["@odata.nextLink"])break;l=await a.api(l["@odata.nextLink"]).get()}return c.sort((f,b)=>{let P=(0,Sa.default)(f.lastModifiedDateTime);return(0,Sa.default)(b.lastModifiedDateTime).diff(P)}),c.map(f=>({epochMilliSeconds:(0,Sa.default)(f.lastModifiedDateTime).valueOf(),data:f}))},"items")},eC=Ke({auth:p,name:"new_or_updated_list",outputSchema:Ou,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:j.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 Se.onEnable(Zu,e)},async onDisable(e){await Se.onDisable(Zu,e)},async test(e){return await Se.test(Zu,e)},async run(e){return await Se.poll(Zu,e)}});var Vu=ue(be());var tC="activepieces_sharepoint_updated_list_item_trigger",rC=Ke({auth:p,name:"updated_list_item",outputSchema:sA,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:j.siteId,listId:j.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:o}=e.propsValue,i=e.auth.props?.cloud,r=Vu.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:M(i)});try{let n=new Date;n.setDate(n.getDate()+2);let a=await r.api("/subscriptions").post({changeType:"updated",notificationUrl:e.webhookUrl,resource:`/sites/${t}/lists/${o}/items`,expirationDateTime:n.toISOString(),clientState:tC});await e.store.put("subscriptionId",a.id)}catch(n){throw new Error(`Failed to create subscription: ${n.message||"Unknown error"}`)}},async onDisable(e){let t=await e.store.get("subscriptionId");if(t){let o=e.auth.props?.cloud,i=Vu.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:M(o)});try{await i.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 o=t.filter(a=>a.clientState===tC);if(o.length===0)return[];let i=e.auth.props?.cloud,r=Vu.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:M(i)}),n=[];for(let a of o)try{let c=await r.api(a.resource).expand("fields").get();n.push(c)}catch(c){console.error("Error fetching list item from notification:",c)}return n}});var $M=NI({displayName:"Microsoft SharePoint",auth:p,minimumSupportedRelease:"0.88.2",logoUrl:"https://cdn.activepieces.com/pieces/microsoft-sharepoint.png",categories:["CONTENT_AND_FILES"],authors:["kishanprmr","pranith124","onyedikachi-david"],actions:[mA,hA,gA,_A,PA,bA,wA,FA,kA,DA,UA,RA,OA,NA,zA,...qk,i_({auth:p,baseUrl:s(e=>{let t=e.props?.cloud;return M(t)+"/v1.0"},"baseUrl"),authMapping:s(async e=>({Authorization:`Bearer ${e.access_token}`}),"authMapping")})],triggers:[Hk,Zk,Xk,Yk,Jk,rC,Wk,eC]});0&&(module.exports={microsoftSharePoint});
|
|
55
55
|
/*! Bundled license information:
|
|
56
56
|
|
|
57
57
|
mime-types/index.js:
|