@activepieces/piece-microsoft-sharepoint 0.3.8 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +43 -5
package/src/index.js CHANGED
@@ -1,9 +1,47 @@
1
- "use strict";var ef=Object.create;var Wt=Object.defineProperty;var tf=Object.getOwnPropertyDescriptor;var rf=Object.getOwnPropertyNames;var nf=Object.getPrototypeOf,of=Object.prototype.hasOwnProperty;var a=(e,t)=>Wt(e,"name",{value:t,configurable:!0});var af=(e,t,r)=>()=>{if(r)throw r[0];try{return e&&(t=e(e=0)),t}catch(n){throw r=[n],n}};var b=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},So=(e,t)=>{for(var r in t)Wt(e,r,{get:t[r],enumerable:!0})},pa=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of rf(t))!of.call(e,o)&&o!==r&&Wt(e,o,{get:()=>t[o],enumerable:!(n=tf(t,o))||n.enumerable});return e};var Q=(e,t,r)=>(r=e!=null?ef(nf(e)):{},pa(t||!e||!e.__esModule?Wt(r,"default",{value:e,enumerable:!0}):r,e)),ce=e=>pa(Wt({},"__esModule",{value:!0}),e);var Ns=b((Cs,tn)=>{(function(e){"use strict";let t="(0?\\d+|0x[a-f0-9]+)",r={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")},n=new RegExp("^0[0-7]+$","i"),o=new RegExp("^0x[a-f0-9]+$","i"),i="%[0-9a-z]{1,}",s="(?:[0-9a-f]+::?)+",u={zoneIndex:new RegExp(i,"i"),native:new RegExp(`^(::)?(${s})?([0-9a-f]+)?(::)?(${i})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${t}\\.${t}\\.${t}\\.${t}(${i})?)$`,"i"),transitional:new RegExp(`^((?:${s})|(?:::)(?:${s})?)${t}\\.${t}\\.${t}\\.${t}(${i})?$`,"i")};function c(p,m){if(p.indexOf("::")!==p.lastIndexOf("::"))return null;let P=0,h=-1,x=(p.match(u.zoneIndex)||[])[0],E,q;for(x&&(x=x.substring(1),p=p.replace(/%.+$/,""));(h=p.indexOf(":",h+1))>=0;)P++;if(p.substr(0,2)==="::"&&P--,p.substr(-2,2)==="::"&&P--,P>m)return null;for(q=m-P,E=":";q--;)E+="0:";return p=p.replace("::",E),p[0]===":"&&(p=p.slice(1)),p[p.length-1]===":"&&(p=p.slice(0,-1)),m=(function(){let he=p.split(":"),we=[];for(let De=0;De<he.length;De++)we.push(parseInt(he[De],16));return we})(),{parts:m,zoneId:x}}a(c,"expandIPv6");function d(p,m,P,h){if(p.length!==m.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let x=0,E;for(;h>0;){if(E=P-h,E<0&&(E=0),p[x]>>E!==m[x]>>E)return!1;h-=P,x+=1}return!0}a(d,"matchCIDR");function f(p){if(o.test(p))return parseInt(p,16);if(p[0]==="0"&&!isNaN(parseInt(p[1],10))){if(n.test(p))return parseInt(p,8);throw new Error(`ipaddr: cannot parse ${p} as octal`)}return parseInt(p,10)}a(f,"parseIntAuto");function v(p,m){for(;p.length<m;)p=`0${p}`;return p}a(v,"padPart");let y={};y.IPv4=(function(){function p(m){if(m.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let P,h;for(P=0;P<m.length;P++)if(h=m[P],!(0<=h&&h<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=m}return a(p,"IPv4"),p.prototype.SpecialRanges={unspecified:[[new p([0,0,0,0]),8]],broadcast:[[new p([255,255,255,255]),32]],multicast:[[new p([224,0,0,0]),4]],linkLocal:[[new p([169,254,0,0]),16]],loopback:[[new p([127,0,0,0]),8]],carrierGradeNat:[[new p([100,64,0,0]),10]],private:[[new p([10,0,0,0]),8],[new p([172,16,0,0]),12],[new p([192,168,0,0]),16]],reserved:[[new p([192,0,0,0]),24],[new p([192,0,2,0]),24],[new p([192,88,99,0]),24],[new p([198,18,0,0]),15],[new p([198,51,100,0]),24],[new p([203,0,113,0]),24],[new p([240,0,0,0]),4]],as112:[[new p([192,175,48,0]),24],[new p([192,31,196,0]),24]],amt:[[new p([192,52,193,0]),24]]},p.prototype.kind=function(){return"ipv4"},p.prototype.match=function(m,P){let h;if(P===void 0&&(h=m,m=h[0],P=h[1]),m.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return d(this.octets,m.octets,8,P)},p.prototype.prefixLengthFromSubnetMask=function(){let m=0,P=!1,h={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},x,E,q;for(x=3;x>=0;x-=1)if(E=this.octets[x],E in h){if(q=h[E],P&&q!==0)return null;q!==8&&(P=!0),m+=q}else return null;return 32-m},p.prototype.range=function(){return y.subnetMatch(this,this.SpecialRanges)},p.prototype.toByteArray=function(){return this.octets.slice(0)},p.prototype.toIPv4MappedAddress=function(){return y.IPv6.parse(`::ffff:${this.toString()}`)},p.prototype.toNormalizedString=function(){return this.toString()},p.prototype.toString=function(){return this.octets.join(".")},p})(),y.IPv4.broadcastAddressFromCIDR=function(p){try{let m=this.parseCIDR(p),P=m[0].toByteArray(),h=this.subnetMaskFromPrefixLength(m[1]).toByteArray(),x=[],E=0;for(;E<4;)x.push(parseInt(P[E],10)|parseInt(h[E],10)^255),E++;return new this(x)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},y.IPv4.isIPv4=function(p){return this.parser(p)!==null},y.IPv4.isValid=function(p){try{return new this(this.parser(p)),!0}catch{return!1}},y.IPv4.isValidCIDR=function(p){try{return this.parseCIDR(p),!0}catch{return!1}},y.IPv4.isValidFourPartDecimal=function(p){return!!(y.IPv4.isValid(p)&&p.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},y.IPv4.isValidCIDRFourPartDecimal=function(p){let m=p.match(/^(.+)\/(\d+)$/);return!y.IPv4.isValidCIDR(p)||!m?!1:y.IPv4.isValidFourPartDecimal(m[1])},y.IPv4.networkAddressFromCIDR=function(p){let m,P,h,x,E;try{for(m=this.parseCIDR(p),h=m[0].toByteArray(),E=this.subnetMaskFromPrefixLength(m[1]).toByteArray(),x=[],P=0;P<4;)x.push(parseInt(h[P],10)&parseInt(E[P],10)),P++;return new this(x)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},y.IPv4.parse=function(p){let m=this.parser(p);if(m===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(m)},y.IPv4.parseCIDR=function(p){let m;if(m=p.match(/^(.+)\/(\d+)$/)){let P=parseInt(m[2]);if(P>=0&&P<=32){let h=[this.parse(m[1]),P];return Object.defineProperty(h,"toString",{value:a(function(){return this.join("/")},"value")}),h}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},y.IPv4.parser=function(p){let m,P,h;if(m=p.match(r.fourOctet))return(function(){let x=m.slice(1,6),E=[];for(let q=0;q<x.length;q++)P=x[q],E.push(f(P));return E})();if(m=p.match(r.longValue)){if(h=f(m[1]),h>4294967295||h<0)throw new Error("ipaddr: address outside defined range");return(function(){let x=[],E;for(E=0;E<=24;E+=8)x.push(h>>E&255);return x})().reverse()}else return(m=p.match(r.twoOctet))?(function(){let x=m.slice(1,4),E=[];if(h=f(x[1]),h>16777215||h<0)throw new Error("ipaddr: address outside defined range");return E.push(f(x[0])),E.push(h>>16&255),E.push(h>>8&255),E.push(h&255),E})():(m=p.match(r.threeOctet))?(function(){let x=m.slice(1,5),E=[];if(h=f(x[2]),h>65535||h<0)throw new Error("ipaddr: address outside defined range");return E.push(f(x[0])),E.push(f(x[1])),E.push(h>>8&255),E.push(h&255),E})():null},y.IPv4.subnetMaskFromPrefixLength=function(p){if(p=parseInt(p),p<0||p>32)throw new Error("ipaddr: invalid IPv4 prefix length");let m=[0,0,0,0],P=0,h=Math.floor(p/8);for(;P<h;)m[P]=255,P++;return h<4&&(m[h]=Math.pow(2,p%8)-1<<8-p%8),new this(m)},y.IPv6=(function(){function p(m,P){let h,x;if(m.length===16)for(this.parts=[],h=0;h<=14;h+=2)this.parts.push(m[h]<<8|m[h+1]);else if(m.length===8)this.parts=m;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(h=0;h<this.parts.length;h++)if(x=this.parts[h],!(0<=x&&x<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");P&&(this.zoneId=P)}return a(p,"IPv6"),p.prototype.SpecialRanges={unspecified:[new p([0,0,0,0,0,0,0,0]),128],linkLocal:[new p([65152,0,0,0,0,0,0,0]),10],multicast:[new p([65280,0,0,0,0,0,0,0]),8],loopback:[new p([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new p([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new p([0,0,0,0,0,65535,0,0]),96],discard:[new p([256,0,0,0,0,0,0,0]),64],rfc6145:[new p([0,0,0,0,65535,0,0,0]),96],rfc6052:[new p([100,65435,0,0,0,0,0,0]),96],"6to4":[new p([8194,0,0,0,0,0,0,0]),16],teredo:[new p([8193,0,0,0,0,0,0,0]),32],benchmarking:[new p([8193,2,0,0,0,0,0,0]),48],amt:[new p([8193,3,0,0,0,0,0,0]),32],as112v6:[[new p([8193,4,274,0,0,0,0,0]),48],[new p([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new p([8193,16,0,0,0,0,0,0]),28],orchid2:[new p([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new p([8193,48,0,0,0,0,0,0]),28],reserved:[[new p([8193,0,0,0,0,0,0,0]),23],[new p([8193,3512,0,0,0,0,0,0]),32]]},p.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},p.prototype.kind=function(){return"ipv6"},p.prototype.match=function(m,P){let h;if(P===void 0&&(h=m,m=h[0],P=h[1]),m.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return d(this.parts,m.parts,16,P)},p.prototype.prefixLengthFromSubnetMask=function(){let m=0,P=!1,h={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},x,E;for(let q=7;q>=0;q-=1)if(x=this.parts[q],x in h){if(E=h[x],P&&E!==0)return null;E!==16&&(P=!0),m+=E}else return null;return 128-m},p.prototype.range=function(){return y.subnetMatch(this,this.SpecialRanges)},p.prototype.toByteArray=function(){let m,P=[],h=this.parts;for(let x=0;x<h.length;x++)m=h[x],P.push(m>>8),P.push(m&255);return P},p.prototype.toFixedLengthString=function(){let m=(function(){let h=[];for(let x=0;x<this.parts.length;x++)h.push(v(this.parts[x].toString(16),4));return h}).call(this).join(":"),P="";return this.zoneId&&(P=`%${this.zoneId}`),m+P},p.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let m=this.parts.slice(-2),P=m[0],h=m[1];return new y.IPv4([P>>8,P&255,h>>8,h&255])},p.prototype.toNormalizedString=function(){let m=(function(){let h=[];for(let x=0;x<this.parts.length;x++)h.push(this.parts[x].toString(16));return h}).call(this).join(":"),P="";return this.zoneId&&(P=`%${this.zoneId}`),m+P},p.prototype.toRFC5952String=function(){let m=/((^|:)(0(:|$)){2,})/g,P=this.toNormalizedString(),h=0,x=-1,E;for(;E=m.exec(P);)E[0].length>x&&(h=E.index,x=E[0].length);return x<0?P:`${P.substring(0,h)}::${P.substring(h+x)}`},p.prototype.toString=function(){return this.toRFC5952String()},p})(),y.IPv6.broadcastAddressFromCIDR=function(p){try{let m=this.parseCIDR(p),P=m[0].toByteArray(),h=this.subnetMaskFromPrefixLength(m[1]).toByteArray(),x=[],E=0;for(;E<16;)x.push(parseInt(P[E],10)|parseInt(h[E],10)^255),E++;return new this(x)}catch(m){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${m})`)}},y.IPv6.isIPv6=function(p){return this.parser(p)!==null},y.IPv6.isValid=function(p){if(typeof p=="string"&&p.indexOf(":")===-1)return!1;try{let m=this.parser(p);return new this(m.parts,m.zoneId),!0}catch{return!1}},y.IPv6.isValidCIDR=function(p){if(typeof p=="string"&&p.indexOf(":")===-1)return!1;try{return this.parseCIDR(p),!0}catch{return!1}},y.IPv6.networkAddressFromCIDR=function(p){let m,P,h,x,E;try{for(m=this.parseCIDR(p),h=m[0].toByteArray(),E=this.subnetMaskFromPrefixLength(m[1]).toByteArray(),x=[],P=0;P<16;)x.push(parseInt(h[P],10)&parseInt(E[P],10)),P++;return new this(x)}catch(q){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${q})`)}},y.IPv6.parse=function(p){let m=this.parser(p);if(m.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(m.parts,m.zoneId)},y.IPv6.parseCIDR=function(p){let m,P,h;if((P=p.match(/^(.+)\/(\d+)$/))&&(m=parseInt(P[2]),m>=0&&m<=128))return h=[this.parse(P[1]),m],Object.defineProperty(h,"toString",{value:a(function(){return this.join("/")},"value")}),h;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},y.IPv6.parser=function(p){let m,P,h,x,E,q;if(h=p.match(u.deprecatedTransitional))return this.parser(`::ffff:${h[1]}`);if(u.native.test(p))return c(p,8);if((h=p.match(u.transitional))&&(q=h[6]||"",m=h[1],h[1].endsWith("::")||(m=m.slice(0,-1)),m=c(m+q,6),m.parts)){for(E=[parseInt(h[2]),parseInt(h[3]),parseInt(h[4]),parseInt(h[5])],P=0;P<E.length;P++)if(x=E[P],!(0<=x&&x<=255))return null;return m.parts.push(E[0]<<8|E[1]),m.parts.push(E[2]<<8|E[3]),{parts:m.parts,zoneId:m.zoneId}}return null},y.IPv6.subnetMaskFromPrefixLength=function(p){if(p=parseInt(p),p<0||p>128)throw new Error("ipaddr: invalid IPv6 prefix length");let m=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],P=0,h=Math.floor(p/8);for(;P<h;)m[P]=255,P++;return h<16&&(m[h]=Math.pow(2,p%8)-1<<8-p%8),new this(m)},y.fromByteArray=function(p){let m=p.length;if(m===4)return new y.IPv4(p);if(m===16)return new y.IPv6(p);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},y.isValid=function(p){return y.IPv6.isValid(p)||y.IPv4.isValid(p)},y.isValidCIDR=function(p){return y.IPv6.isValidCIDR(p)||y.IPv4.isValidCIDR(p)},y.parse=function(p){if(y.IPv6.isValid(p))return y.IPv6.parse(p);if(y.IPv4.isValid(p))return y.IPv4.parse(p);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},y.parseCIDR=function(p){try{return y.IPv6.parseCIDR(p)}catch{try{return y.IPv4.parseCIDR(p)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},y.process=function(p){let m=this.parse(p);return m.kind()==="ipv6"&&m.isIPv4MappedAddress()?m.toIPv4Address():m},y.subnetMatch=function(p,m,P){let h,x,E,q;P==null&&(P="unicast");for(x in m)if(Object.prototype.hasOwnProperty.call(m,x)){for(E=m[x],E[0]&&!(E[0]instanceof Array)&&(E=[E]),h=0;h<E.length;h++)if(q=E[h],p.kind()===q[0].kind()&&p.match.apply(p,q))return x}return P},typeof tn<"u"&&tn.exports?tn.exports=y:e.ipaddr=y})(Cs)});var Fu=b((dN,ju)=>{var Lu=require("stream").Stream,qh=require("util");ju.exports=Fe;function Fe(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}a(Fe,"DelayedStream");qh.inherits(Fe,Lu);Fe.create=function(e,t){var r=new this;t=t||{};for(var n in t)r[n]=t[n];r.source=e;var o=e.emit;return e.emit=function(){return r._handleEmit(arguments),o.apply(e,arguments)},e.on("error",function(){}),r.pauseStream&&e.pause(),r};Object.defineProperty(Fe.prototype,"readable",{configurable:!0,enumerable:!0,get:a(function(){return this.source.readable},"get")});Fe.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};Fe.prototype.resume=function(){this._released||this.release(),this.source.resume()};Fe.prototype.pause=function(){this.source.pause()};Fe.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};Fe.prototype.pipe=function(){var e=Lu.prototype.pipe.apply(this,arguments);return this.resume(),e};Fe.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)};Fe.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 Zu=b((mN,Hu)=>{var Gh=require("util"),Bu=require("stream").Stream,Vu=Fu();Hu.exports=me;function me(){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}a(me,"CombinedStream");Gh.inherits(me,Bu);me.create=function(e){var t=new this;e=e||{};for(var r in e)t[r]=e[r];return t};me.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};me.prototype.append=function(e){var t=me.isStreamLike(e);if(t){if(!(e instanceof Vu)){var r=Vu.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=r}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this};me.prototype.pipe=function(e,t){return Bu.prototype.pipe.call(this,e,t),this.resume(),e};me.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}};me.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(r){var n=me.isStreamLike(r);n&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))};me.prototype._pipeNext=function(e){this._currentStream=e;var t=me.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var r=e;this.write(r),this._getNext()};me.prototype._handleErrors=function(e){var t=this;e.on("error",function(r){t._emitError(r)})};me.prototype.write=function(e){this.emit("data",e)};me.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};me.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")};me.prototype.end=function(){this._reset(),this.emit("end")};me.prototype.destroy=function(){this._reset(),this.emit("close")};me.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};me.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};me.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)};me.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var Gu=b((gN,qu)=>{"use strict";qu.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 Xu=b(Re=>{"use strict";var un=Gu(),Wh=require("path").extname,Wu=/^\s*([^;\s]*)(?:;|\s|$)/,Kh=/^text\//i;Re.charset=Ku;Re.charsets={lookup:Ku};Re.contentType=Xh;Re.extension=Jh;Re.extensions=Object.create(null);Re.lookup=Yh;Re.types=Object.create(null);Qh(Re.extensions,Re.types);function Ku(e){if(!e||typeof e!="string")return!1;var t=Wu.exec(e),r=t&&un[t[1].toLowerCase()];return r&&r.charset?r.charset:t&&Kh.test(t[1])?"UTF-8":!1}a(Ku,"charset");function Xh(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?Re.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var r=Re.charset(t);r&&(t+="; charset="+r.toLowerCase())}return t}a(Xh,"contentType");function Jh(e){if(!e||typeof e!="string")return!1;var t=Wu.exec(e),r=t&&Re.extensions[t[1].toLowerCase()];return!r||!r.length?!1:r[0]}a(Jh,"extension");function Yh(e){if(!e||typeof e!="string")return!1;var t=Wh("x."+e).toLowerCase().substr(1);return t&&Re.types[t]||!1}a(Yh,"lookup");function Qh(e,t){var r=["nginx","apache",void 0,"iana"];Object.keys(un).forEach(a(function(o){var i=un[o],s=i.extensions;if(!(!s||!s.length)){e[o]=s;for(var u=0;u<s.length;u++){var c=s[u];if(t[c]){var d=r.indexOf(un[t[c]].source),f=r.indexOf(i.source);if(t[c]!=="application/octet-stream"&&(d>f||d===f&&t[c].substr(0,12)==="application/"))continue}t[c]=o}}},"forEachMimeType"))}a(Qh,"populateMaps")});var Yu=b((PN,Ju)=>{Ju.exports=eg;function eg(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}a(eg,"defer")});var mi=b((xN,ec)=>{var Qu=Yu();ec.exports=tg;function tg(e){var t=!1;return Qu(function(){t=!0}),a(function(n,o){t?e(n,o):Qu(a(function(){e(n,o)},"nextTick_callback"))},"async_callback")}a(tg,"async")});var hi=b((TN,tc)=>{tc.exports=rg;function rg(e){Object.keys(e.jobs).forEach(ng.bind(e)),e.jobs={}}a(rg,"abort");function ng(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}a(ng,"clean")});var gi=b((IN,nc)=>{var rc=mi(),og=hi();nc.exports=ig;function ig(e,t,r,n){var o=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[o]=ag(t,o,e[o],function(i,s){o in r.jobs&&(delete r.jobs[o],i?og(r):r.results[o]=s,n(i,r.results))})}a(ig,"iterate");function ag(e,t,r,n){var o;return e.length==2?o=e(r,rc(n)):o=e(r,t,rc(n)),o}a(ag,"runJob")});var yi=b((AN,oc)=>{oc.exports=sg;function sg(e,t){var r=!Array.isArray(e),n={index:0,keyedList:r||t?Object.keys(e):null,jobs:{},results:r?{}:[],size:r?Object.keys(e).length:e.length};return t&&n.keyedList.sort(r?t:function(o,i){return t(e[o],e[i])}),n}a(sg,"state")});var vi=b(($N,ic)=>{var ug=hi(),cg=mi();ic.exports=lg;function lg(e){Object.keys(this.jobs).length&&(this.index=this.size,ug(this),cg(e)(null,this.results))}a(lg,"terminator")});var sc=b((RN,ac)=>{var pg=gi(),dg=yi(),fg=vi();ac.exports=mg;function mg(e,t,r){for(var n=dg(e);n.index<(n.keyedList||e).length;)pg(e,t,n,function(o,i){if(o){r(o,i);return}if(Object.keys(n.jobs).length===0){r(null,n.results);return}}),n.index++;return fg.bind(n,r)}a(mg,"parallel")});var Pi=b((DN,cn)=>{var uc=gi(),hg=yi(),gg=vi();cn.exports=yg;cn.exports.ascending=cc;cn.exports.descending=vg;function yg(e,t,r,n){var o=hg(e,r);return uc(e,t,o,a(function i(s,u){if(s){n(s,u);return}if(o.index++,o.index<(o.keyedList||e).length){uc(e,t,o,i);return}n(null,o.results)},"iteratorHandler")),gg.bind(o,n)}a(yg,"serialOrdered");function cc(e,t){return e<t?-1:e>t?1:0}a(cc,"ascending");function vg(e,t){return-1*cc(e,t)}a(vg,"descending")});var pc=b((CN,lc)=>{var Pg=Pi();lc.exports=_g;function _g(e,t,r){return Pg(e,t,null,r)}a(_g,"serial")});var fc=b((UN,dc)=>{dc.exports={parallel:sc(),serial:pc(),serialOrdered:Pi()}});var _i=b((MN,mc)=>{"use strict";mc.exports=Object});var gc=b((LN,hc)=>{"use strict";hc.exports=Error});var vc=b((jN,yc)=>{"use strict";yc.exports=EvalError});var _c=b((FN,Pc)=>{"use strict";Pc.exports=RangeError});var bc=b((VN,xc)=>{"use strict";xc.exports=ReferenceError});var Ec=b((BN,Tc)=>{"use strict";Tc.exports=SyntaxError});var ln=b((HN,Ic)=>{"use strict";Ic.exports=TypeError});var Ac=b((ZN,Sc)=>{"use strict";Sc.exports=URIError});var $c=b((qN,wc)=>{"use strict";wc.exports=Math.abs});var Rc=b((GN,Oc)=>{"use strict";Oc.exports=Math.floor});var Dc=b((WN,zc)=>{"use strict";zc.exports=Math.max});var Cc=b((KN,kc)=>{"use strict";kc.exports=Math.min});var Uc=b((XN,Nc)=>{"use strict";Nc.exports=Math.pow});var Lc=b((JN,Mc)=>{"use strict";Mc.exports=Math.round});var Fc=b((YN,jc)=>{"use strict";jc.exports=Number.isNaN||a(function(t){return t!==t},"isNaN")});var Bc=b((e0,Vc)=>{"use strict";var xg=Fc();Vc.exports=a(function(t){return xg(t)||t===0?t:t<0?-1:1},"sign")});var Zc=b((r0,Hc)=>{"use strict";Hc.exports=Object.getOwnPropertyDescriptor});var xi=b((n0,qc)=>{"use strict";var pn=Zc();if(pn)try{pn([],"length")}catch{pn=null}qc.exports=pn});var Wc=b((o0,Gc)=>{"use strict";var dn=Object.defineProperty||!1;if(dn)try{dn({},"a",{value:1})}catch{dn=!1}Gc.exports=dn});var bi=b((i0,Kc)=>{"use strict";Kc.exports=a(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;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 s=Object.getOwnPropertySymbols(t);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,r);if(u.value!==o||u.enumerable!==!0)return!1}return!0},"hasSymbols")});var Yc=b((s0,Jc)=>{"use strict";var Xc=typeof Symbol<"u"&&Symbol,bg=bi();Jc.exports=a(function(){return typeof Xc!="function"||typeof Symbol!="function"||typeof Xc("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:bg()},"hasNativeSymbols")});var Ti=b((c0,Qc)=>{"use strict";Qc.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Ei=b((l0,el)=>{"use strict";var Tg=_i();el.exports=Tg.getPrototypeOf||null});var nl=b((p0,rl)=>{"use strict";var Eg="Function.prototype.bind called on incompatible ",Ig=Object.prototype.toString,Sg=Math.max,Ag="[object Function]",tl=a(function(t,r){for(var n=[],o=0;o<t.length;o+=1)n[o]=t[o];for(var i=0;i<r.length;i+=1)n[i+t.length]=r[i];return n},"concatty"),wg=a(function(t,r){for(var n=[],o=r||0,i=0;o<t.length;o+=1,i+=1)n[i]=t[o];return n},"slicy"),$g=a(function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},"joiny");rl.exports=a(function(t){var r=this;if(typeof r!="function"||Ig.apply(r)!==Ag)throw new TypeError(Eg+r);for(var n=wg(arguments,1),o,i=a(function(){if(this instanceof o){var f=r.apply(this,tl(n,arguments));return Object(f)===f?f:this}return r.apply(t,tl(n,arguments))},"binder"),s=Sg(0,r.length-n.length),u=[],c=0;c<s;c++)u[c]="$"+c;if(o=Function("binder","return function ("+$g(u,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var d=a(function(){},"Empty");d.prototype=r.prototype,o.prototype=new d,d.prototype=null}return o},"bind")});var Ot=b((f0,ol)=>{"use strict";var Og=nl();ol.exports=Function.prototype.bind||Og});var fn=b((m0,il)=>{"use strict";il.exports=Function.prototype.call});var Ii=b((h0,al)=>{"use strict";al.exports=Function.prototype.apply});var ul=b((g0,sl)=>{"use strict";sl.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var ll=b((y0,cl)=>{"use strict";var Rg=Ot(),zg=Ii(),Dg=fn(),kg=ul();cl.exports=kg||Rg.call(Dg,zg)});var dl=b((v0,pl)=>{"use strict";var Cg=Ot(),Ng=ln(),Ug=fn(),Mg=ll();pl.exports=a(function(t){if(t.length<1||typeof t[0]!="function")throw new Ng("a function is required");return Mg(Cg,Ug,t)},"callBindBasic")});var vl=b((_0,yl)=>{"use strict";var Lg=dl(),fl=xi(),hl;try{hl=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Si=!!hl&&fl&&fl(Object.prototype,"__proto__"),gl=Object,ml=gl.getPrototypeOf;yl.exports=Si&&typeof Si.get=="function"?Lg([Si.get]):typeof ml=="function"?a(function(t){return ml(t==null?t:gl(t))},"getDunder"):!1});var Tl=b((b0,bl)=>{"use strict";var Pl=Ti(),_l=Ei(),xl=vl();bl.exports=Pl?a(function(t){return Pl(t)},"getProto"):_l?a(function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return _l(t)},"getProto"):xl?a(function(t){return xl(t)},"getProto"):null});var Ai=b((E0,El)=>{"use strict";var jg=Function.prototype.call,Fg=Object.prototype.hasOwnProperty,Vg=Ot();El.exports=Vg.call(jg,Fg)});var Rl=b((I0,Ol)=>{"use strict";var J,Bg=_i(),Hg=gc(),Zg=vc(),qg=_c(),Gg=bc(),kt=Ec(),Dt=ln(),Wg=Ac(),Kg=$c(),Xg=Rc(),Jg=Dc(),Yg=Cc(),Qg=Uc(),ey=Lc(),ty=Bc(),wl=Function,wi=a(function(e){try{return wl('"use strict"; return ('+e+").constructor;")()}catch{}},"getEvalledConstructor"),gr=xi(),ry=Wc(),$i=a(function(){throw new Dt},"throwTypeError"),ny=gr?(function(){try{return arguments.callee,$i}catch{try{return gr(arguments,"callee").get}catch{return $i}}})():$i,Rt=Yc()(),Te=Tl(),oy=Ei(),iy=Ti(),$l=Ii(),yr=fn(),zt={},ay=typeof Uint8Array>"u"||!Te?J:Te(Uint8Array),gt={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?J:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?J:ArrayBuffer,"%ArrayIteratorPrototype%":Rt&&Te?Te([][Symbol.iterator]()):J,"%AsyncFromSyncIteratorPrototype%":J,"%AsyncFunction%":zt,"%AsyncGenerator%":zt,"%AsyncGeneratorFunction%":zt,"%AsyncIteratorPrototype%":zt,"%Atomics%":typeof Atomics>"u"?J:Atomics,"%BigInt%":typeof BigInt>"u"?J:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?J:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?J:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?J:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Hg,"%eval%":eval,"%EvalError%":Zg,"%Float16Array%":typeof Float16Array>"u"?J:Float16Array,"%Float32Array%":typeof Float32Array>"u"?J:Float32Array,"%Float64Array%":typeof Float64Array>"u"?J:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?J:FinalizationRegistry,"%Function%":wl,"%GeneratorFunction%":zt,"%Int8Array%":typeof Int8Array>"u"?J:Int8Array,"%Int16Array%":typeof Int16Array>"u"?J:Int16Array,"%Int32Array%":typeof Int32Array>"u"?J:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Rt&&Te?Te(Te([][Symbol.iterator]())):J,"%JSON%":typeof JSON=="object"?JSON:J,"%Map%":typeof Map>"u"?J:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Rt||!Te?J:Te(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Bg,"%Object.getOwnPropertyDescriptor%":gr,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?J:Promise,"%Proxy%":typeof Proxy>"u"?J:Proxy,"%RangeError%":qg,"%ReferenceError%":Gg,"%Reflect%":typeof Reflect>"u"?J:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?J:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Rt||!Te?J:Te(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?J:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Rt&&Te?Te(""[Symbol.iterator]()):J,"%Symbol%":Rt?Symbol:J,"%SyntaxError%":kt,"%ThrowTypeError%":ny,"%TypedArray%":ay,"%TypeError%":Dt,"%Uint8Array%":typeof Uint8Array>"u"?J:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?J:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?J:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?J:Uint32Array,"%URIError%":Wg,"%WeakMap%":typeof WeakMap>"u"?J:WeakMap,"%WeakRef%":typeof WeakRef>"u"?J:WeakRef,"%WeakSet%":typeof WeakSet>"u"?J:WeakSet,"%Function.prototype.call%":yr,"%Function.prototype.apply%":$l,"%Object.defineProperty%":ry,"%Object.getPrototypeOf%":oy,"%Math.abs%":Kg,"%Math.floor%":Xg,"%Math.max%":Jg,"%Math.min%":Yg,"%Math.pow%":Qg,"%Math.round%":ey,"%Math.sign%":ty,"%Reflect.getPrototypeOf%":iy};if(Te)try{null.error}catch(e){Il=Te(Te(e)),gt["%Error.prototype%"]=Il}var Il,sy=a(function e(t){var r;if(t==="%AsyncFunction%")r=wi("async function () {}");else if(t==="%GeneratorFunction%")r=wi("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=wi("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Te&&(r=Te(o.prototype))}return gt[t]=r,r},"doEval"),Sl={__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"]},vr=Ot(),mn=Ai(),uy=vr.call(yr,Array.prototype.concat),cy=vr.call($l,Array.prototype.splice),Al=vr.call(yr,String.prototype.replace),hn=vr.call(yr,String.prototype.slice),ly=vr.call(yr,RegExp.prototype.exec),py=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,dy=/\\(\\)?/g,fy=a(function(t){var r=hn(t,0,1),n=hn(t,-1);if(r==="%"&&n!=="%")throw new kt("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new kt("invalid intrinsic syntax, expected opening `%`");var o=[];return Al(t,py,function(i,s,u,c){o[o.length]=u?Al(c,dy,"$1"):s||i}),o},"stringToPath"),my=a(function(t,r){var n=t,o;if(mn(Sl,n)&&(o=Sl[n],n="%"+o[0]+"%"),mn(gt,n)){var i=gt[n];if(i===zt&&(i=sy(n)),typeof i>"u"&&!r)throw new Dt("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new kt("intrinsic "+t+" does not exist!")},"getBaseIntrinsic");Ol.exports=a(function(t,r){if(typeof t!="string"||t.length===0)throw new Dt("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Dt('"allowMissing" argument must be a boolean');if(ly(/^%?[^%]*%?$/,t)===null)throw new kt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=fy(t),o=n.length>0?n[0]:"",i=my("%"+o+"%",r),s=i.name,u=i.value,c=!1,d=i.alias;d&&(o=d[0],cy(n,uy([0,1],d)));for(var f=1,v=!0;f<n.length;f+=1){var y=n[f],p=hn(y,0,1),m=hn(y,-1);if((p==='"'||p==="'"||p==="`"||m==='"'||m==="'"||m==="`")&&p!==m)throw new kt("property names with quotes must have matching quotes");if((y==="constructor"||!v)&&(c=!0),o+="."+y,s="%"+o+"%",mn(gt,s))u=gt[s];else if(u!=null){if(!(y in u)){if(!r)throw new Dt("base intrinsic for "+t+" exists, but the property is not available.");return}if(gr&&f+1>=n.length){var P=gr(u,y);v=!!P,v&&"get"in P&&!("originalValue"in P.get)?u=P.get:u=u[y]}else v=mn(u,y),u=u[y];v&&!c&&(gt[s]=u)}}return u},"GetIntrinsic")});var Dl=b((A0,zl)=>{"use strict";var hy=bi();zl.exports=a(function(){return hy()&&!!Symbol.toStringTag},"hasToStringTagShams")});var Nl=b(($0,Cl)=>{"use strict";var gy=Rl(),kl=gy("%Object.defineProperty%",!0),yy=Dl()(),vy=Ai(),Py=ln(),gn=yy?Symbol.toStringTag:null;Cl.exports=a(function(t,r){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,o=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof n<"u"&&typeof n!="boolean"||typeof o<"u"&&typeof o!="boolean")throw new Py("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");gn&&(n||!vy(t,gn))&&(kl?kl(t,gn,{configurable:!o,enumerable:!1,value:r,writable:!1}):t[gn]=r)},"setToStringTag")});var Ml=b((R0,Ul)=>{"use strict";var _y=Function.prototype.call,xy=Object.prototype.hasOwnProperty,by=Ot();Ul.exports=by.call(_y,xy)});var jl=b((z0,Ll)=>{"use strict";Ll.exports=function(e,t){return Object.keys(t).forEach(function(r){e[r]=e[r]||t[r]}),e}});var Bl=b((D0,Vl)=>{"use strict";var Di=Zu(),Ty=require("util"),Oi=require("path"),Ey=require("http"),Iy=require("https"),Sy=require("url").parse,Ay=require("fs"),wy=require("stream").Stream,$y=require("crypto"),Ri=Xu(),Oy=fc(),Ry=Nl(),ct=Ml(),zi=jl();function Fl(e){return String(e).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}a(Fl,"escapeHeaderParam");function te(e){if(!(this instanceof te))return new te(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Di.call(this),e=e||{};for(var t in e)this[t]=e[t]}a(te,"FormData");Ty.inherits(te,Di);te.LINE_BREAK=`\r
2
- `;te.DEFAULT_CONTENT_TYPE="application/octet-stream";te.prototype.append=function(e,t,r){r=r||{},typeof r=="string"&&(r={filename:r});var n=Di.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 o=this._multiPartHeader(e,t,r),i=this._multiPartFooter();n(o),n(t),n(i),this._trackLength(o,t,r)};te.prototype._trackLength=function(e,t,r){var n=0;r.knownLength!=null?n+=Number(r.knownLength):Buffer.isBuffer(t)?n=t.length:typeof t=="string"&&(n=Buffer.byteLength(t)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(e)+te.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&ct(t,"httpVersion"))&&!(t instanceof wy))&&(r.knownLength||this._valuesToMeasure.push(t))};te.prototype._lengthRetriever=function(e,t){ct(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):Ay.stat(e.path,function(r,n){if(r){t(r);return}var o=n.size-(e.start?e.start:0);t(null,o)}):ct(e,"httpVersion")?t(null,Number(e.headers["content-length"])):ct(e,"httpModule")?(e.on("response",function(r){e.pause(),t(null,Number(r.headers["content-length"]))}),e.resume()):t("Unknown stream")};te.prototype._multiPartHeader=function(e,t,r){if(typeof r.header=="string")return r.header;var n=this._getContentDisposition(t,r),o=this._getContentType(t,r),i="",s={"Content-Disposition":["form-data",'name="'+Fl(e)+'"'].concat(n||[]),"Content-Type":[].concat(o||[])};typeof r.header=="object"&&zi(s,r.header);var u;for(var c in s)if(ct(s,c)){if(u=s[c],u==null)continue;Array.isArray(u)||(u=[u]),u.length&&(i+=c+": "+u.join("; ")+te.LINE_BREAK)}return"--"+this.getBoundary()+te.LINE_BREAK+i+te.LINE_BREAK};te.prototype._getContentDisposition=function(e,t){var r;if(typeof t.filepath=="string"?r=Oi.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?r=Oi.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&ct(e,"httpVersion")&&(r=Oi.basename(e.client._httpMessage.path||"")),r)return'filename="'+Fl(r)+'"'};te.prototype._getContentType=function(e,t){var r=t.contentType;return!r&&e&&e.name&&(r=Ri.lookup(e.name)),!r&&e&&e.path&&(r=Ri.lookup(e.path)),!r&&e&&e.readable&&ct(e,"httpVersion")&&(r=e.headers["content-type"]),!r&&(t.filepath||t.filename)&&(r=Ri.lookup(t.filepath||t.filename)),!r&&e&&typeof e=="object"&&(r=te.DEFAULT_CONTENT_TYPE),r};te.prototype._multiPartFooter=function(){return function(e){var t=te.LINE_BREAK,r=this._streams.length===0;r&&(t+=this._lastBoundary()),e(t)}.bind(this)};te.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+te.LINE_BREAK};te.prototype.getHeaders=function(e){var t,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)ct(e,t)&&(r[t.toLowerCase()]=e[t]);return r};te.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};te.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};te.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),r=0,n=this._streams.length;r<n;r++)typeof this._streams[r]!="function"&&(Buffer.isBuffer(this._streams[r])?e=Buffer.concat([e,this._streams[r]]):e=Buffer.concat([e,Buffer.from(this._streams[r])]),(typeof this._streams[r]!="string"||this._streams[r].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(te.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};te.prototype._generateBoundary=function(){this._boundary="--------------------------"+$y.randomBytes(12).toString("hex")};te.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};te.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};te.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}Oy.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,n){if(r){e(r);return}n.forEach(function(o){t+=o}),e(null,t)})};te.prototype.submit=function(e,t){var r,n,o={method:"post"};return typeof e=="string"?(e=Sy(e),n=zi({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},o)):(n=zi(e,o),n.port||(n.port=n.protocol==="https:"?443:80)),n.headers=this.getHeaders(e.headers),n.protocol==="https:"?r=Iy.request(n):r=Ey.request(n),this.getLength(function(i,s){if(i&&i!=="Unknown stream"){this._error(i);return}if(s&&r.setHeader("Content-Length",s),this.pipe(r),t){var u,c=a(function(d,f){return r.removeListener("error",c),r.removeListener("response",u),t.call(this,d,f)},"callback");u=c.bind(this,null),r.on("error",c),r.on("response",u)}}.bind(this)),r};te.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};te.prototype.toString=function(){return"[object FormData]"};Ry(te.prototype,"FormData");Vl.exports=te});var pe={};So(pe,{__addDisposableResource:()=>_p,__assign:()=>yn,__asyncDelegator:()=>dp,__asyncGenerator:()=>pp,__asyncValues:()=>fp,__await:()=>Ct,__awaiter:()=>ip,__classPrivateFieldGet:()=>yp,__classPrivateFieldIn:()=>Pp,__classPrivateFieldSet:()=>vp,__createBinding:()=>Pn,__decorate:()=>Yl,__disposeResources:()=>xp,__esDecorate:()=>ep,__exportStar:()=>sp,__extends:()=>Xl,__generator:()=>ap,__importDefault:()=>gp,__importStar:()=>hp,__makeTemplateObject:()=>mp,__metadata:()=>op,__param:()=>Ql,__propKey:()=>rp,__read:()=>Ui,__rest:()=>Jl,__rewriteRelativeImportExtension:()=>bp,__runInitializers:()=>tp,__setFunctionName:()=>np,__spread:()=>up,__spreadArray:()=>lp,__spreadArrays:()=>cp,__values:()=>vn,default:()=>qy});function Xl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ci(e,t);function r(){this.constructor=e}a(r,"__"),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function Jl(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Yl(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(s=e[u])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function Ql(e,t){return function(r,n){t(r,n,e)}}function ep(e,t,r,n,o,i){function s(x){if(x!==void 0&&typeof x!="function")throw new TypeError("Function expected");return x}a(s,"accept");for(var u=n.kind,c=u==="getter"?"get":u==="setter"?"set":"value",d=!t&&e?n.static?e:e.prototype:null,f=t||(d?Object.getOwnPropertyDescriptor(d,n.name):{}),v,y=!1,p=r.length-1;p>=0;p--){var m={};for(var P in n)m[P]=P==="access"?{}:n[P];for(var P in n.access)m.access[P]=n.access[P];m.addInitializer=function(x){if(y)throw new TypeError("Cannot add initializers after decoration has completed");i.push(s(x||null))};var h=(0,r[p])(u==="accessor"?{get:f.get,set:f.set}:f[c],m);if(u==="accessor"){if(h===void 0)continue;if(h===null||typeof h!="object")throw new TypeError("Object expected");(v=s(h.get))&&(f.get=v),(v=s(h.set))&&(f.set=v),(v=s(h.init))&&o.unshift(v)}else(v=s(h))&&(u==="field"?o.unshift(v):f[c]=v)}d&&Object.defineProperty(d,n.name,f),y=!0}function tp(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function rp(e){return typeof e=="symbol"?e:"".concat(e)}function np(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function op(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function ip(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return a(o,"adopt"),new(r||(r=Promise))(function(i,s){function u(f){try{d(n.next(f))}catch(v){s(v)}}a(u,"fulfilled");function c(f){try{d(n.throw(f))}catch(v){s(v)}}a(c,"rejected");function d(f){f.done?i(f.value):o(f.value).then(u,c)}a(d,"step"),d((n=n.apply(e,t||[])).next())})}function ap(e,t){var r={label:0,sent:a(function(){if(i[0]&1)throw i[1];return i[1]},"sent"),trys:[],ops:[]},n,o,i,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=u(0),s.throw=u(1),s.return=u(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(d){return function(f){return c([d,f])}}function c(d){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,d[0]&&(r=0)),r;)try{if(n=1,o&&(i=d[0]&2?o.return:d[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,d[1])).done)return i;switch(o=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return r.label++,{value:d[1],done:!1};case 5:r.label++,o=d[1],d=[0];continue;case 7:d=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){r=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]<i[3])){r.label=d[1];break}if(d[0]===6&&r.label<i[1]){r.label=i[1],i=d;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(d);break}i[2]&&r.ops.pop(),r.trys.pop();continue}d=t.call(e,r)}catch(f){d=[6,f],o=0}finally{n=i=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function sp(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Pn(t,e,r)}function vn(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:a(function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}},"next")};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ui(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(u){s={error:u}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i}function up(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ui(arguments[t]));return e}function cp(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],s=0,u=i.length;s<u;s++,o++)n[o]=i[s];return n}function lp(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function Ct(e){return this instanceof Ct?(this.v=e,this):new Ct(e)}function pp(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(p){return function(m){return Promise.resolve(m).then(p,v)}}function u(p,m){n[p]&&(o[p]=function(P){return new Promise(function(h,x){i.push([p,P,h,x])>1||c(p,P)})},m&&(o[p]=m(o[p])))}function c(p,m){try{d(n[p](m))}catch(P){y(i[0][3],P)}}function d(p){p.value instanceof Ct?Promise.resolve(p.value.v).then(f,v):y(i[0][2],p)}function f(p){c("next",p)}function v(p){c("throw",p)}function y(p,m){p(m),i.shift(),i.length&&c(i[0][0],i[0][1])}}function dp(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,i){t[o]=e[o]?function(s){return(r=!r)?{value:Ct(e[o](s)),done:!1}:i?i(s):s}:i}}function fp(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof vn=="function"?vn(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(s){return new Promise(function(u,c){s=e[i](s),o(u,c,s.done,s.value)})}}function o(i,s,u,c){Promise.resolve(c).then(function(d){i({value:d,done:u})},s)}}function mp(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function hp(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=Ni(e),n=0;n<r.length;n++)r[n]!=="default"&&Pn(t,e,r[n]);return Hy(t,e),t}function gp(e){return e&&e.__esModule?e:{default:e}}function yp(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function vp(e,t,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(e,r):o?o.value=r:t.set(e,r),r}function Pp(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 _p(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");o&&(n=a(function(){try{o.call(this)}catch(i){return Promise.reject(i)}},"dispose")),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}function xp(e){function t(i){e.error=e.hasError?new Zy(i,e.error,"An error was suppressed during disposal."):i,e.hasError=!0}a(t,"fail");var r,n=0;function o(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(o,function(s){return t(s),o()})}else n|=1}catch(s){t(s)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return a(o,"next"),o()}function bp(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,o,i,s){return n?t?".jsx":".js":o&&(!i||!s)?r:o+i+"."+s.toLowerCase()+"js"}):e}var Ci,yn,Pn,Hy,Ni,Zy,qy,de=af(()=>{Ci=a(function(e,t){return Ci=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Ci(e,t)},"extendStatics");a(Xl,"__extends");yn=a(function(){return yn=Object.assign||a(function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},"__assign"),yn.apply(this,arguments)},"__assign");a(Jl,"__rest");a(Yl,"__decorate");a(Ql,"__param");a(ep,"__esDecorate");a(tp,"__runInitializers");a(rp,"__propKey");a(np,"__setFunctionName");a(op,"__metadata");a(ip,"__awaiter");a(ap,"__generator");Pn=Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:a(function(){return t[r]},"get")}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]});a(sp,"__exportStar");a(vn,"__values");a(Ui,"__read");a(up,"__spread");a(cp,"__spreadArrays");a(lp,"__spreadArray");a(Ct,"__await");a(pp,"__asyncGenerator");a(dp,"__asyncDelegator");a(fp,"__asyncValues");a(mp,"__makeTemplateObject");Hy=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t},Ni=a(function(e){return Ni=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},Ni(e)},"ownKeys");a(hp,"__importStar");a(gp,"__importDefault");a(yp,"__classPrivateFieldGet");a(vp,"__classPrivateFieldSet");a(Pp,"__classPrivateFieldIn");a(_p,"__addDisposableResource");Zy=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};a(xp,"__disposeResources");a(bp,"__rewriteRelativeImportExtension");qy={__extends:Xl,__assign:yn,__rest:Jl,__decorate:Yl,__param:Ql,__esDecorate:ep,__runInitializers:tp,__propKey:rp,__setFunctionName:np,__metadata:op,__awaiter:ip,__generator:ap,__createBinding:Pn,__exportStar:sp,__values:vn,__read:Ui,__spread:up,__spreadArrays:cp,__spreadArray:lp,__await:Ct,__asyncGenerator:pp,__asyncDelegator:dp,__asyncValues:fp,__makeTemplateObject:mp,__importStar:hp,__importDefault:gp,__classPrivateFieldGet:yp,__classPrivateFieldSet:vp,__classPrivateFieldIn:Pp,__addDisposableResource:_p,__disposeResources:xp,__rewriteRelativeImportExtension:bp}});var _r=b(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.RequestMethod=void 0;var Tp;(function(e){e.GET="GET",e.PATCH="PATCH",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"})(Tp||(_n.RequestMethod=Tp={}))});var Ep=b(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.BatchRequestContent=void 0;var Nt=(de(),ce(pe)),Mi=_r(),Gy=(function(){function e(t){if(this.requests=new Map,typeof t<"u"){var r=e.requestLimit;if(t.length>r){var n=new Error("Maximum requests limit exceeded, Max allowed number of requests are ".concat(r));throw n.name="Limit Exceeded Error",n}for(var o=0,i=t;o<i.length;o++){var s=i[o];this.addRequest(s)}}}return a(e,"BatchRequestContent"),e.validateDependencies=function(t){var r=a(function(s){for(var u=s.entries(),c=u.next();!c.done;){var d=c.value[1];if(d.dependsOn!==void 0&&d.dependsOn.length>0)return!1;c=u.next()}return!0},"isParallel"),n=a(function(s){var u=s.entries(),c=u.next(),d=c.value[1];if(d.dependsOn!==void 0&&d.dependsOn.length>0)return!1;var f=c;for(c=u.next();!c.done;){var v=c.value[1];if(v.dependsOn===void 0||v.dependsOn.length!==1||v.dependsOn[0]!==f.value[1].id)return!1;f=c,c=u.next()}return!0},"isSerial"),o=a(function(s){var u=s.entries(),c=u.next(),d=c.value[1],f;if(d.dependsOn===void 0||d.dependsOn.length===0)f=d.id;else if(d.dependsOn.length===1){var v=d.dependsOn[0];if(v!==d.id&&s.has(v))f=v;else return!1}else return!1;for(c=u.next();!c.done;){var y=c.value[1];if((y.dependsOn===void 0||y.dependsOn.length===0)&&f!==y.id||y.dependsOn!==void 0&&y.dependsOn.length!==0&&(y.dependsOn.length===1&&(y.id===f||y.dependsOn[0]!==f)||y.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 r(t)||n(t)||o(t)},e.getRequestData=function(t){return Nt.__awaiter(this,void 0,void 0,function(){var r,n,o,i;return Nt.__generator(this,function(s){switch(s.label){case 0:return r={url:""},n=new RegExp("^https?://"),r.url=n.test(t.url)?"/"+t.url.split(/.*?\/\/.*?\//)[1]:t.url,r.method=t.method,o={},t.headers.forEach(function(u,c){o[c]=u}),Object.keys(o).length&&(r.headers=o),t.method===Mi.RequestMethod.PATCH||t.method===Mi.RequestMethod.POST||t.method===Mi.RequestMethod.PUT?(i=r,[4,e.getRequestBody(t)]):[3,2];case 1:i.body=s.sent(),s.label=2;case 2:return[2,r]}})})},e.getRequestBody=function(t){return Nt.__awaiter(this,void 0,void 0,function(){var r,n,o,i,s,u,c,d;return Nt.__generator(this,function(f){switch(f.label){case 0:r=!1,f.label=1;case 1:return f.trys.push([1,3,,4]),o=t.clone(),[4,o.json()];case 2:return n=f.sent(),r=!0,[3,4];case 3:return i=f.sent(),[3,4];case 4:if(r)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 s=f.sent(),u=new FileReader,[4,new Promise(function(v){u.addEventListener("load",function(){var y=u.result,p=new RegExp("^s*data:(.+?/.+?(;.+?=.+?)*)?(;base64)?,(.*)s*$"),m=p.exec(y);v(m[4])},!1),u.readAsDataURL(s)})];case 7:return n=f.sent(),[3,10];case 8:return typeof Buffer<"u"?[4,t.buffer()]:[3,10];case 9:c=f.sent(),n=c.toString("base64"),f.label=10;case 10:return r=!0,[3,12];case 11:return d=f.sent(),[3,12];case 12:return[2,n]}})})},e.prototype.addRequest=function(t){var r=e.requestLimit;if(t.id===""){var n=new Error("Id for a request is empty, Please provide an unique id");throw n.name="Empty Id For Request",n}if(this.requests.size===r){var n=new Error("Maximum requests limit exceeded, Max allowed number of requests are ".concat(r));throw n.name="Limit Exceeded Error",n}if(this.requests.has(t.id)){var n=new Error("Adding request with duplicate id ".concat(t.id,", Make the id of the requests unique"));throw n.name="Duplicate RequestId Error",n}return this.requests.set(t.id,t),t.id},e.prototype.removeRequest=function(t){for(var r=this.requests.delete(t),n=this.requests.entries(),o=n.next();!o.done;){var i=o.value[1].dependsOn;if(typeof i<"u"){var s=i.indexOf(t);s!==-1&&i.splice(s,1),i.length===0&&delete o.value[1].dependsOn}o=n.next()}return r},e.prototype.getContent=function(){return Nt.__awaiter(this,void 0,void 0,function(){var t,r,n,o,u,u,i,s,u;return Nt.__generator(this,function(c){switch(c.label){case 0:if(t=[],r={requests:t},n=this.requests.entries(),o=n.next(),o.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 oE=Object.create;var Tn=Object.defineProperty;var iE=Object.getOwnPropertyDescriptor;var aE=Object.getOwnPropertyNames;var sE=Object.getPrototypeOf,uE=Object.prototype.hasOwnProperty;var s=(e,t)=>Tn(e,"name",{value:t,configurable:!0});var cE=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(o){throw n=[o],o}};var I=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(n){throw t=0,n}},ot=(e,t)=>{for(var n in t)Tn(e,n,{get:t[n],enumerable:!0})},ch=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of aE(t))!uE.call(e,r)&&r!==n&&Tn(e,r,{get:()=>t[r],enumerable:!(o=iE(t,r))||o.enumerable});return e};var ie=(e,t,n)=>(n=e!=null?oE(sE(e)):{},ch(t||!e||!e.__esModule?Tn(n,"default",{value:e,enumerable:!0}):n,e)),_e=e=>ch(Tn({},"__esModule",{value:!0}),e);var bg=I((xg,Ls)=>{(function(e){"use strict";let t="(0?\\d+|0x[a-f0-9]+)",n={fourOctet:new RegExp(`^${t}\\.${t}\\.${t}\\.${t}$`,"i"),threeOctet:new RegExp(`^${t}\\.${t}\\.${t}$`,"i"),twoOctet:new RegExp(`^${t}\\.${t}$`,"i"),longValue:new RegExp(`^${t}$`,"i")},o=new RegExp("^0[0-7]+$","i"),r=new RegExp("^0x[a-f0-9]+$","i"),i="%[0-9a-z]{1,}",a="(?:[0-9a-f]+::?)+",u={zoneIndex:new RegExp(i,"i"),native:new RegExp(`^(::)?(${a})?([0-9a-f]+)?(::)?(${i})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${t}\\.${t}\\.${t}\\.${t}(${i})?)$`,"i"),transitional:new RegExp(`^((?:${a})|(?:::)(?:${a})?)${t}\\.${t}\\.${t}\\.${t}(${i})?$`,"i")};function c(p,m){if(p.indexOf("::")!==p.lastIndexOf("::"))return null;let _=0,P=-1,x=(p.match(u.zoneIndex)||[])[0],$,j;for(x&&(x=x.substring(1),p=p.replace(/%.+$/,""));(P=p.indexOf(":",P+1))>=0;)_++;if(p.substr(0,2)==="::"&&_--,p.substr(-2,2)==="::"&&_--,_>m)return null;for(j=m-_,$=":";j--;)$+="0:";return p=p.replace("::",$),p[0]===":"&&(p=p.slice(1)),p[p.length-1]===":"&&(p=p.slice(0,-1)),m=(function(){let ne=p.split(":"),fe=[];for(let Ve=0;Ve<ne.length;Ve++)fe.push(parseInt(ne[Ve],16));return fe})(),{parts:m,zoneId:x}}s(c,"expandIPv6");function l(p,m,_,P){if(p.length!==m.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let x=0,$;for(;P>0;){if($=_-P,$<0&&($=0),p[x]>>$!==m[x]>>$)return!1;P-=_,x+=1}return!0}s(l,"matchCIDR");function d(p){if(r.test(p))return parseInt(p,16);if(p[0]==="0"&&!isNaN(parseInt(p[1],10))){if(o.test(p))return parseInt(p,8);throw new Error(`ipaddr: cannot parse ${p} as octal`)}return parseInt(p,10)}s(d,"parseIntAuto");function g(p,m){for(;p.length<m;)p=`0${p}`;return p}s(g,"padPart");let h={};h.IPv4=(function(){function p(m){if(m.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let _,P;for(_=0;_<m.length;_++)if(P=m[_],!(0<=P&&P<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=m}return s(p,"IPv4"),p.prototype.SpecialRanges={unspecified:[[new p([0,0,0,0]),8]],broadcast:[[new p([255,255,255,255]),32]],multicast:[[new p([224,0,0,0]),4]],linkLocal:[[new p([169,254,0,0]),16]],loopback:[[new p([127,0,0,0]),8]],carrierGradeNat:[[new p([100,64,0,0]),10]],private:[[new p([10,0,0,0]),8],[new p([172,16,0,0]),12],[new p([192,168,0,0]),16]],reserved:[[new p([192,0,0,0]),24],[new p([192,0,2,0]),24],[new p([192,88,99,0]),24],[new p([198,18,0,0]),15],[new p([198,51,100,0]),24],[new p([203,0,113,0]),24],[new p([240,0,0,0]),4]],as112:[[new p([192,175,48,0]),24],[new p([192,31,196,0]),24]],amt:[[new p([192,52,193,0]),24]]},p.prototype.kind=function(){return"ipv4"},p.prototype.match=function(m,_){let P;if(_===void 0&&(P=m,m=P[0],_=P[1]),m.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return l(this.octets,m.octets,8,_)},p.prototype.prefixLengthFromSubnetMask=function(){let m=0,_=!1,P={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},x,$,j;for(x=3;x>=0;x-=1)if($=this.octets[x],$ in P){if(j=P[$],_&&j!==0)return null;j!==8&&(_=!0),m+=j}else return null;return 32-m},p.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},p.prototype.toByteArray=function(){return this.octets.slice(0)},p.prototype.toIPv4MappedAddress=function(){return h.IPv6.parse(`::ffff:${this.toString()}`)},p.prototype.toNormalizedString=function(){return this.toString()},p.prototype.toString=function(){return this.octets.join(".")},p})(),h.IPv4.broadcastAddressFromCIDR=function(p){try{let m=this.parseCIDR(p),_=m[0].toByteArray(),P=this.subnetMaskFromPrefixLength(m[1]).toByteArray(),x=[],$=0;for(;$<4;)x.push(parseInt(_[$],10)|parseInt(P[$],10)^255),$++;return new this(x)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},h.IPv4.isIPv4=function(p){return this.parser(p)!==null},h.IPv4.isValid=function(p){try{return new this(this.parser(p)),!0}catch{return!1}},h.IPv4.isValidCIDR=function(p){try{return this.parseCIDR(p),!0}catch{return!1}},h.IPv4.isValidFourPartDecimal=function(p){return!!(h.IPv4.isValid(p)&&p.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},h.IPv4.isValidCIDRFourPartDecimal=function(p){let m=p.match(/^(.+)\/(\d+)$/);return!h.IPv4.isValidCIDR(p)||!m?!1:h.IPv4.isValidFourPartDecimal(m[1])},h.IPv4.networkAddressFromCIDR=function(p){let m,_,P,x,$;try{for(m=this.parseCIDR(p),P=m[0].toByteArray(),$=this.subnetMaskFromPrefixLength(m[1]).toByteArray(),x=[],_=0;_<4;)x.push(parseInt(P[_],10)&parseInt($[_],10)),_++;return new this(x)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},h.IPv4.parse=function(p){let m=this.parser(p);if(m===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(m)},h.IPv4.parseCIDR=function(p){let m;if(m=p.match(/^(.+)\/(\d+)$/)){let _=parseInt(m[2]);if(_>=0&&_<=32){let P=[this.parse(m[1]),_];return Object.defineProperty(P,"toString",{value:s(function(){return this.join("/")},"value")}),P}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},h.IPv4.parser=function(p){let m,_,P;if(m=p.match(n.fourOctet))return(function(){let x=m.slice(1,6),$=[];for(let j=0;j<x.length;j++)_=x[j],$.push(d(_));return $})();if(m=p.match(n.longValue)){if(P=d(m[1]),P>4294967295||P<0)throw new Error("ipaddr: address outside defined range");return(function(){let x=[],$;for($=0;$<=24;$+=8)x.push(P>>$&255);return x})().reverse()}else return(m=p.match(n.twoOctet))?(function(){let x=m.slice(1,4),$=[];if(P=d(x[1]),P>16777215||P<0)throw new Error("ipaddr: address outside defined range");return $.push(d(x[0])),$.push(P>>16&255),$.push(P>>8&255),$.push(P&255),$})():(m=p.match(n.threeOctet))?(function(){let x=m.slice(1,5),$=[];if(P=d(x[2]),P>65535||P<0)throw new Error("ipaddr: address outside defined range");return $.push(d(x[0])),$.push(d(x[1])),$.push(P>>8&255),$.push(P&255),$})():null},h.IPv4.subnetMaskFromPrefixLength=function(p){if(p=parseInt(p),p<0||p>32)throw new Error("ipaddr: invalid IPv4 prefix length");let m=[0,0,0,0],_=0,P=Math.floor(p/8);for(;_<P;)m[_]=255,_++;return P<4&&(m[P]=Math.pow(2,p%8)-1<<8-p%8),new this(m)},h.IPv6=(function(){function p(m,_){let P,x;if(m.length===16)for(this.parts=[],P=0;P<=14;P+=2)this.parts.push(m[P]<<8|m[P+1]);else if(m.length===8)this.parts=m;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(P=0;P<this.parts.length;P++)if(x=this.parts[P],!(0<=x&&x<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");_&&(this.zoneId=_)}return s(p,"IPv6"),p.prototype.SpecialRanges={unspecified:[new p([0,0,0,0,0,0,0,0]),128],linkLocal:[new p([65152,0,0,0,0,0,0,0]),10],multicast:[new p([65280,0,0,0,0,0,0,0]),8],loopback:[new p([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new p([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new p([0,0,0,0,0,65535,0,0]),96],discard:[new p([256,0,0,0,0,0,0,0]),64],rfc6145:[new p([0,0,0,0,65535,0,0,0]),96],rfc6052:[new p([100,65435,0,0,0,0,0,0]),96],"6to4":[new p([8194,0,0,0,0,0,0,0]),16],teredo:[new p([8193,0,0,0,0,0,0,0]),32],benchmarking:[new p([8193,2,0,0,0,0,0,0]),48],amt:[new p([8193,3,0,0,0,0,0,0]),32],as112v6:[[new p([8193,4,274,0,0,0,0,0]),48],[new p([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new p([8193,16,0,0,0,0,0,0]),28],orchid2:[new p([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new p([8193,48,0,0,0,0,0,0]),28],reserved:[[new p([8193,0,0,0,0,0,0,0]),23],[new p([8193,3512,0,0,0,0,0,0]),32]]},p.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},p.prototype.kind=function(){return"ipv6"},p.prototype.match=function(m,_){let P;if(_===void 0&&(P=m,m=P[0],_=P[1]),m.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return l(this.parts,m.parts,16,_)},p.prototype.prefixLengthFromSubnetMask=function(){let m=0,_=!1,P={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},x,$;for(let j=7;j>=0;j-=1)if(x=this.parts[j],x in P){if($=P[x],_&&$!==0)return null;$!==16&&(_=!0),m+=$}else return null;return 128-m},p.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},p.prototype.toByteArray=function(){let m,_=[],P=this.parts;for(let x=0;x<P.length;x++)m=P[x],_.push(m>>8),_.push(m&255);return _},p.prototype.toFixedLengthString=function(){let m=(function(){let P=[];for(let x=0;x<this.parts.length;x++)P.push(g(this.parts[x].toString(16),4));return P}).call(this).join(":"),_="";return this.zoneId&&(_=`%${this.zoneId}`),m+_},p.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let m=this.parts.slice(-2),_=m[0],P=m[1];return new h.IPv4([_>>8,_&255,P>>8,P&255])},p.prototype.toNormalizedString=function(){let m=(function(){let P=[];for(let x=0;x<this.parts.length;x++)P.push(this.parts[x].toString(16));return P}).call(this).join(":"),_="";return this.zoneId&&(_=`%${this.zoneId}`),m+_},p.prototype.toRFC5952String=function(){let m=/((^|:)(0(:|$)){2,})/g,_=this.toNormalizedString(),P=0,x=-1,$;for(;$=m.exec(_);)$[0].length>x&&(P=$.index,x=$[0].length);return x<0?_:`${_.substring(0,P)}::${_.substring(P+x)}`},p.prototype.toString=function(){return this.toRFC5952String()},p})(),h.IPv6.broadcastAddressFromCIDR=function(p){try{let m=this.parseCIDR(p),_=m[0].toByteArray(),P=this.subnetMaskFromPrefixLength(m[1]).toByteArray(),x=[],$=0;for(;$<16;)x.push(parseInt(_[$],10)|parseInt(P[$],10)^255),$++;return new this(x)}catch(m){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${m})`)}},h.IPv6.isIPv6=function(p){return this.parser(p)!==null},h.IPv6.isValid=function(p){if(typeof p=="string"&&p.indexOf(":")===-1)return!1;try{let m=this.parser(p);return new this(m.parts,m.zoneId),!0}catch{return!1}},h.IPv6.isValidCIDR=function(p){if(typeof p=="string"&&p.indexOf(":")===-1)return!1;try{return this.parseCIDR(p),!0}catch{return!1}},h.IPv6.networkAddressFromCIDR=function(p){let m,_,P,x,$;try{for(m=this.parseCIDR(p),P=m[0].toByteArray(),$=this.subnetMaskFromPrefixLength(m[1]).toByteArray(),x=[],_=0;_<16;)x.push(parseInt(P[_],10)&parseInt($[_],10)),_++;return new this(x)}catch(j){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${j})`)}},h.IPv6.parse=function(p){let m=this.parser(p);if(m.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(m.parts,m.zoneId)},h.IPv6.parseCIDR=function(p){let m,_,P;if((_=p.match(/^(.+)\/(\d+)$/))&&(m=parseInt(_[2]),m>=0&&m<=128))return P=[this.parse(_[1]),m],Object.defineProperty(P,"toString",{value:s(function(){return this.join("/")},"value")}),P;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},h.IPv6.parser=function(p){let m,_,P,x,$,j;if(P=p.match(u.deprecatedTransitional))return this.parser(`::ffff:${P[1]}`);if(u.native.test(p))return c(p,8);if((P=p.match(u.transitional))&&(j=P[6]||"",m=P[1],P[1].endsWith("::")||(m=m.slice(0,-1)),m=c(m+j,6),m.parts)){for($=[parseInt(P[2]),parseInt(P[3]),parseInt(P[4]),parseInt(P[5])],_=0;_<$.length;_++)if(x=$[_],!(0<=x&&x<=255))return null;return m.parts.push($[0]<<8|$[1]),m.parts.push($[2]<<8|$[3]),{parts:m.parts,zoneId:m.zoneId}}return null},h.IPv6.subnetMaskFromPrefixLength=function(p){if(p=parseInt(p),p<0||p>128)throw new Error("ipaddr: invalid IPv6 prefix length");let m=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],_=0,P=Math.floor(p/8);for(;_<P;)m[_]=255,_++;return P<16&&(m[P]=Math.pow(2,p%8)-1<<8-p%8),new this(m)},h.fromByteArray=function(p){let m=p.length;if(m===4)return new h.IPv4(p);if(m===16)return new h.IPv6(p);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},h.isValid=function(p){return h.IPv6.isValid(p)||h.IPv4.isValid(p)},h.isValidCIDR=function(p){return h.IPv6.isValidCIDR(p)||h.IPv4.isValidCIDR(p)},h.parse=function(p){if(h.IPv6.isValid(p))return h.IPv6.parse(p);if(h.IPv4.isValid(p))return h.IPv4.parse(p);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},h.parseCIDR=function(p){try{return h.IPv6.parseCIDR(p)}catch{try{return h.IPv4.parseCIDR(p)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},h.process=function(p){let m=this.parse(p);return m.kind()==="ipv6"&&m.isIPv4MappedAddress()?m.toIPv4Address():m},h.subnetMatch=function(p,m,_){let P,x,$,j;_==null&&(_="unicast");for(x in m)if(Object.prototype.hasOwnProperty.call(m,x)){for($=m[x],$[0]&&!($[0]instanceof Array)&&($=[$]),P=0;P<$.length;P++)if(j=$[P],p.kind()===j[0].kind()&&p.match.apply(p,j))return x}return _},typeof Ls<"u"&&Ls.exports?Ls.exports=h:e.ipaddr=h})(xg)});var Hv=I((jF,Vv)=>{var Zv=require("stream").Stream,ew=require("util");Vv.exports=mt;function mt(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}s(mt,"DelayedStream");ew.inherits(mt,Zv);mt.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(mt.prototype,"readable",{configurable:!0,enumerable:!0,get:s(function(){return this.source.readable},"get")});mt.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};mt.prototype.resume=function(){this._released||this.release(),this.source.resume()};mt.prototype.pause=function(){this.source.pause()};mt.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};mt.prototype.pipe=function(){var e=Zv.prototype.pipe.apply(this,arguments);return this.resume(),e};mt.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)};mt.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 Jv=I((BF,Wv)=>{var tw=require("util"),Gv=require("stream").Stream,qv=Hv();Wv.exports=Ie;function Ie(){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(Ie,"CombinedStream");tw.inherits(Ie,Gv);Ie.create=function(e){var t=new this;e=e||{};for(var n in e)t[n]=e[n];return t};Ie.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};Ie.prototype.append=function(e){var t=Ie.isStreamLike(e);if(t){if(!(e instanceof qv)){var n=qv.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};Ie.prototype.pipe=function(e,t){return Gv.prototype.pipe.call(this,e,t),this.resume(),e};Ie.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}};Ie.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=Ie.isStreamLike(n);o&&(n.on("data",this._checkDataSize.bind(this)),this._handleErrors(n)),this._pipeNext(n)}.bind(this))};Ie.prototype._pipeNext=function(e){this._currentStream=e;var t=Ie.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()};Ie.prototype._handleErrors=function(e){var t=this;e.on("error",function(n){t._emitError(n)})};Ie.prototype.write=function(e){this.emit("data",e)};Ie.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};Ie.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")};Ie.prototype.end=function(){this._reset(),this.emit("end")};Ie.prototype.destroy=function(){this._reset(),this.emit("close")};Ie.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};Ie.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};Ie.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)};Ie.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var Kv=I((VF,Xv)=>{"use strict";Xv.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 e_=I(Ke=>{"use strict";var Su=Kv(),rw=require("path").extname,Yv=/^\s*([^;\s]*)(?:;|\s|$)/,nw=/^text\//i;Ke.charset=Qv;Ke.charsets={lookup:Qv};Ke.contentType=ow;Ke.extension=iw;Ke.extensions=Object.create(null);Ke.lookup=aw;Ke.types=Object.create(null);sw(Ke.extensions,Ke.types);function Qv(e){if(!e||typeof e!="string")return!1;var t=Yv.exec(e),n=t&&Su[t[1].toLowerCase()];return n&&n.charset?n.charset:t&&nw.test(t[1])?"UTF-8":!1}s(Qv,"charset");function ow(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?Ke.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var n=Ke.charset(t);n&&(t+="; charset="+n.toLowerCase())}return t}s(ow,"contentType");function iw(e){if(!e||typeof e!="string")return!1;var t=Yv.exec(e),n=t&&Ke.extensions[t[1].toLowerCase()];return!n||!n.length?!1:n[0]}s(iw,"extension");function aw(e){if(!e||typeof e!="string")return!1;var t=rw("x."+e).toLowerCase().substr(1);return t&&Ke.types[t]||!1}s(aw,"lookup");function sw(e,t){var n=["nginx","apache",void 0,"iana"];Object.keys(Su).forEach(s(function(r){var i=Su[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(Su[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(sw,"populateMaps")});var r_=I((GF,t_)=>{t_.exports=uw;function uw(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}s(uw,"defer")});var dm=I((JF,o_)=>{var n_=r_();o_.exports=cw;function cw(e){var t=!1;return n_(function(){t=!0}),s(function(o,r){t?e(o,r):n_(s(function(){e(o,r)},"nextTick_callback"))},"async_callback")}s(cw,"async")});var fm=I((KF,i_)=>{i_.exports=lw;function lw(e){Object.keys(e.jobs).forEach(pw.bind(e)),e.jobs={}}s(lw,"abort");function pw(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}s(pw,"clean")});var mm=I((QF,s_)=>{var a_=dm(),dw=fm();s_.exports=fw;function fw(e,t,n,o){var r=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[r]=mw(t,r,e[r],function(i,a){r in n.jobs&&(delete n.jobs[r],i?dw(n):n.results[r]=a,o(i,n.results))})}s(fw,"iterate");function mw(e,t,n,o){var r;return e.length==2?r=e(n,a_(o)):r=e(n,t,a_(o)),r}s(mw,"runJob")});var hm=I((t6,u_)=>{u_.exports=hw;function hw(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(hw,"state")});var gm=I((n6,c_)=>{var gw=fm(),yw=dm();c_.exports=vw;function vw(e){Object.keys(this.jobs).length&&(this.index=this.size,gw(this),yw(e)(null,this.results))}s(vw,"terminator")});var p_=I((i6,l_)=>{var _w=mm(),Pw=hm(),xw=gm();l_.exports=bw;function bw(e,t,n){for(var o=Pw(e);o.index<(o.keyedList||e).length;)_w(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 xw.bind(o,n)}s(bw,"parallel")});var ym=I((s6,Au)=>{var d_=mm(),Ew=hm(),Tw=gm();Au.exports=Iw;Au.exports.ascending=f_;Au.exports.descending=Sw;function Iw(e,t,n,o){var r=Ew(e,n);return d_(e,t,r,s(function i(a,u){if(a){o(a,u);return}if(r.index++,r.index<(r.keyedList||e).length){d_(e,t,r,i);return}o(null,r.results)},"iteratorHandler")),Tw.bind(r,o)}s(Iw,"serialOrdered");function f_(e,t){return e<t?-1:e>t?1:0}s(f_,"ascending");function Sw(e,t){return-1*f_(e,t)}s(Sw,"descending")});var h_=I((c6,m_)=>{var Aw=ym();m_.exports=ww;function ww(e,t,n){return Aw(e,t,null,n)}s(ww,"serial")});var y_=I((p6,g_)=>{g_.exports={parallel:p_(),serial:h_(),serialOrdered:ym()}});var vm=I((d6,v_)=>{"use strict";v_.exports=Object});var P_=I((f6,__)=>{"use strict";__.exports=Error});var b_=I((m6,x_)=>{"use strict";x_.exports=EvalError});var T_=I((h6,E_)=>{"use strict";E_.exports=RangeError});var S_=I((g6,I_)=>{"use strict";I_.exports=ReferenceError});var w_=I((y6,A_)=>{"use strict";A_.exports=SyntaxError});var wu=I((v6,$_)=>{"use strict";$_.exports=TypeError});var R_=I((_6,O_)=>{"use strict";O_.exports=URIError});var k_=I((P6,z_)=>{"use strict";z_.exports=Math.abs});var C_=I((x6,D_)=>{"use strict";D_.exports=Math.floor});var U_=I((b6,N_)=>{"use strict";N_.exports=Math.max});var L_=I((E6,M_)=>{"use strict";M_.exports=Math.min});var F_=I((T6,j_)=>{"use strict";j_.exports=Math.pow});var Z_=I((I6,B_)=>{"use strict";B_.exports=Math.round});var H_=I((S6,V_)=>{"use strict";V_.exports=Number.isNaN||s(function(t){return t!==t},"isNaN")});var G_=I((w6,q_)=>{"use strict";var $w=H_();q_.exports=s(function(t){return $w(t)||t===0?t:t<0?-1:1},"sign")});var J_=I((O6,W_)=>{"use strict";W_.exports=Object.getOwnPropertyDescriptor});var _m=I((R6,X_)=>{"use strict";var $u=J_();if($u)try{$u([],"length")}catch{$u=null}X_.exports=$u});var Y_=I((z6,K_)=>{"use strict";var Ou=Object.defineProperty||!1;if(Ou)try{Ou({},"a",{value:1})}catch{Ou=!1}K_.exports=Ou});var Pm=I((k6,Q_)=>{"use strict";Q_.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 rP=I((C6,tP)=>{"use strict";var eP=typeof Symbol<"u"&&Symbol,Ow=Pm();tP.exports=s(function(){return typeof eP!="function"||typeof Symbol!="function"||typeof eP("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Ow()},"hasNativeSymbols")});var xm=I((U6,nP)=>{"use strict";nP.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var bm=I((M6,oP)=>{"use strict";var Rw=vm();oP.exports=Rw.getPrototypeOf||null});var sP=I((L6,aP)=>{"use strict";var zw="Function.prototype.bind called on incompatible ",kw=Object.prototype.toString,Dw=Math.max,Cw="[object Function]",iP=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"),Nw=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"),Uw=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");aP.exports=s(function(t){var n=this;if(typeof n!="function"||kw.apply(n)!==Cw)throw new TypeError(zw+n);for(var o=Nw(arguments,1),r,i=s(function(){if(this instanceof r){var d=n.apply(this,iP(o,arguments));return Object(d)===d?d:this}return n.apply(t,iP(o,arguments))},"binder"),a=Dw(0,n.length-o.length),u=[],c=0;c<a;c++)u[c]="$"+c;if(r=Function("binder","return function ("+Uw(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 an=I((F6,uP)=>{"use strict";var Mw=sP();uP.exports=Function.prototype.bind||Mw});var Ru=I((B6,cP)=>{"use strict";cP.exports=Function.prototype.call});var Em=I((Z6,lP)=>{"use strict";lP.exports=Function.prototype.apply});var dP=I((V6,pP)=>{"use strict";pP.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var mP=I((H6,fP)=>{"use strict";var Lw=an(),jw=Em(),Fw=Ru(),Bw=dP();fP.exports=Bw||Lw.call(Fw,jw)});var gP=I((q6,hP)=>{"use strict";var Zw=an(),Vw=wu(),Hw=Ru(),qw=mP();hP.exports=s(function(t){if(t.length<1||typeof t[0]!="function")throw new Vw("a function is required");return qw(Zw,Hw,t)},"callBindBasic")});var bP=I((W6,xP)=>{"use strict";var Gw=gP(),yP=_m(),_P;try{_P=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Tm=!!_P&&yP&&yP(Object.prototype,"__proto__"),PP=Object,vP=PP.getPrototypeOf;xP.exports=Tm&&typeof Tm.get=="function"?Gw([Tm.get]):typeof vP=="function"?s(function(t){return vP(t==null?t:PP(t))},"getDunder"):!1});var AP=I((X6,SP)=>{"use strict";var EP=xm(),TP=bm(),IP=bP();SP.exports=EP?s(function(t){return EP(t)},"getProto"):TP?s(function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return TP(t)},"getProto"):IP?s(function(t){return IP(t)},"getProto"):null});var Im=I((Y6,wP)=>{"use strict";var Ww=Function.prototype.call,Jw=Object.prototype.hasOwnProperty,Xw=an();wP.exports=Xw.call(Ww,Jw)});var CP=I((Q6,DP)=>{"use strict";var re,Kw=vm(),Yw=P_(),Qw=b_(),e$=T_(),t$=S_(),ln=w_(),cn=wu(),r$=R_(),n$=k_(),o$=C_(),i$=U_(),a$=L_(),s$=F_(),u$=Z_(),c$=G_(),zP=Function,Sm=s(function(e){try{return zP('"use strict"; return ('+e+").constructor;")()}catch{}},"getEvalledConstructor"),vi=_m(),l$=Y_(),Am=s(function(){throw new cn},"throwTypeError"),p$=vi?(function(){try{return arguments.callee,Am}catch{try{return vi(arguments,"callee").get}catch{return Am}}})():Am,sn=rP()(),Ce=AP(),d$=bm(),f$=xm(),kP=Em(),_i=Ru(),un={},m$=typeof Uint8Array>"u"||!Ce?re:Ce(Uint8Array),_r={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?re:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?re:ArrayBuffer,"%ArrayIteratorPrototype%":sn&&Ce?Ce([][Symbol.iterator]()):re,"%AsyncFromSyncIteratorPrototype%":re,"%AsyncFunction%":un,"%AsyncGenerator%":un,"%AsyncGeneratorFunction%":un,"%AsyncIteratorPrototype%":un,"%Atomics%":typeof Atomics>"u"?re:Atomics,"%BigInt%":typeof BigInt>"u"?re:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?re:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?re:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?re:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Yw,"%eval%":eval,"%EvalError%":Qw,"%Float16Array%":typeof Float16Array>"u"?re:Float16Array,"%Float32Array%":typeof Float32Array>"u"?re:Float32Array,"%Float64Array%":typeof Float64Array>"u"?re:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?re:FinalizationRegistry,"%Function%":zP,"%GeneratorFunction%":un,"%Int8Array%":typeof Int8Array>"u"?re:Int8Array,"%Int16Array%":typeof Int16Array>"u"?re:Int16Array,"%Int32Array%":typeof Int32Array>"u"?re:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":sn&&Ce?Ce(Ce([][Symbol.iterator]())):re,"%JSON%":typeof JSON=="object"?JSON:re,"%Map%":typeof Map>"u"?re:Map,"%MapIteratorPrototype%":typeof Map>"u"||!sn||!Ce?re:Ce(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Kw,"%Object.getOwnPropertyDescriptor%":vi,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?re:Promise,"%Proxy%":typeof Proxy>"u"?re:Proxy,"%RangeError%":e$,"%ReferenceError%":t$,"%Reflect%":typeof Reflect>"u"?re:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?re:Set,"%SetIteratorPrototype%":typeof Set>"u"||!sn||!Ce?re:Ce(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?re:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":sn&&Ce?Ce(""[Symbol.iterator]()):re,"%Symbol%":sn?Symbol:re,"%SyntaxError%":ln,"%ThrowTypeError%":p$,"%TypedArray%":m$,"%TypeError%":cn,"%Uint8Array%":typeof Uint8Array>"u"?re:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?re:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?re:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?re:Uint32Array,"%URIError%":r$,"%WeakMap%":typeof WeakMap>"u"?re:WeakMap,"%WeakRef%":typeof WeakRef>"u"?re:WeakRef,"%WeakSet%":typeof WeakSet>"u"?re:WeakSet,"%Function.prototype.call%":_i,"%Function.prototype.apply%":kP,"%Object.defineProperty%":l$,"%Object.getPrototypeOf%":d$,"%Math.abs%":n$,"%Math.floor%":o$,"%Math.max%":i$,"%Math.min%":a$,"%Math.pow%":s$,"%Math.round%":u$,"%Math.sign%":c$,"%Reflect.getPrototypeOf%":f$};if(Ce)try{null.error}catch(e){$P=Ce(Ce(e)),_r["%Error.prototype%"]=$P}var $P,h$=s(function e(t){var n;if(t==="%AsyncFunction%")n=Sm("async function () {}");else if(t==="%GeneratorFunction%")n=Sm("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=Sm("async function* () {}");else if(t==="%AsyncGenerator%"){var o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if(t==="%AsyncIteratorPrototype%"){var r=e("%AsyncGenerator%");r&&Ce&&(n=Ce(r.prototype))}return _r[t]=n,n},"doEval"),OP={__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"]},Pi=an(),zu=Im(),g$=Pi.call(_i,Array.prototype.concat),y$=Pi.call(kP,Array.prototype.splice),RP=Pi.call(_i,String.prototype.replace),ku=Pi.call(_i,String.prototype.slice),v$=Pi.call(_i,RegExp.prototype.exec),_$=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P$=/\\(\\)?/g,x$=s(function(t){var n=ku(t,0,1),o=ku(t,-1);if(n==="%"&&o!=="%")throw new ln("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&n!=="%")throw new ln("invalid intrinsic syntax, expected opening `%`");var r=[];return RP(t,_$,function(i,a,u,c){r[r.length]=u?RP(c,P$,"$1"):a||i}),r},"stringToPath"),b$=s(function(t,n){var o=t,r;if(zu(OP,o)&&(r=OP[o],o="%"+r[0]+"%"),zu(_r,o)){var i=_r[o];if(i===un&&(i=h$(o)),typeof i>"u"&&!n)throw new cn("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:i}}throw new ln("intrinsic "+t+" does not exist!")},"getBaseIntrinsic");DP.exports=s(function(t,n){if(typeof t!="string"||t.length===0)throw new cn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new cn('"allowMissing" argument must be a boolean');if(v$(/^%?[^%]*%?$/,t)===null)throw new ln("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=x$(t),r=o.length>0?o[0]:"",i=b$("%"+r+"%",n),a=i.name,u=i.value,c=!1,l=i.alias;l&&(r=l[0],y$(o,g$([0,1],l)));for(var d=1,g=!0;d<o.length;d+=1){var h=o[d],p=ku(h,0,1),m=ku(h,-1);if((p==='"'||p==="'"||p==="`"||m==='"'||m==="'"||m==="`")&&p!==m)throw new ln("property names with quotes must have matching quotes");if((h==="constructor"||!g)&&(c=!0),r+="."+h,a="%"+r+"%",zu(_r,a))u=_r[a];else if(u!=null){if(!(h in u)){if(!n)throw new cn("base intrinsic for "+t+" exists, but the property is not available.");return}if(vi&&d+1>=o.length){var _=vi(u,h);g=!!_,g&&"get"in _&&!("originalValue"in _.get)?u=_.get:u=u[h]}else g=zu(u,h),u=u[h];g&&!c&&(_r[a]=u)}}return u},"GetIntrinsic")});var UP=I((t2,NP)=>{"use strict";var E$=Pm();NP.exports=s(function(){return E$()&&!!Symbol.toStringTag},"hasToStringTagShams")});var jP=I((n2,LP)=>{"use strict";var T$=CP(),MP=T$("%Object.defineProperty%",!0),I$=UP()(),S$=Im(),A$=wu(),Du=I$?Symbol.toStringTag:null;LP.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 A$("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Du&&(o||!S$(t,Du))&&(MP?MP(t,Du,{configurable:!r,enumerable:!1,value:n,writable:!1}):t[Du]=n)},"setToStringTag")});var BP=I((i2,FP)=>{"use strict";var w$=Function.prototype.call,$$=Object.prototype.hasOwnProperty,O$=an();FP.exports=O$.call(w$,$$)});var VP=I((a2,ZP)=>{"use strict";ZP.exports=function(e,t){return Object.keys(t).forEach(function(n){e[n]=e[n]||t[n]}),e}});var GP=I((s2,qP)=>{"use strict";var Rm=Jv(),R$=require("util"),wm=require("path"),z$=require("http"),k$=require("https"),D$=require("url").parse,C$=require("fs"),N$=require("stream").Stream,U$=require("crypto"),$m=e_(),M$=y_(),L$=jP(),qt=BP(),Om=VP();function HP(e){return String(e).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}s(HP,"escapeHeaderParam");function se(e){if(!(this instanceof se))return new se(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Rm.call(this),e=e||{};for(var t in e)this[t]=e[t]}s(se,"FormData");R$.inherits(se,Rm);se.LINE_BREAK=`\r
2
+ `;se.DEFAULT_CONTENT_TYPE="application/octet-stream";se.prototype.append=function(e,t,n){n=n||{},typeof n=="string"&&(n={filename:n});var o=Rm.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)};se.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)+se.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&qt(t,"httpVersion"))&&!(t instanceof N$))&&(n.knownLength||this._valuesToMeasure.push(t))};se.prototype._lengthRetriever=function(e,t){qt(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):C$.stat(e.path,function(n,o){if(n){t(n);return}var r=o.size-(e.start?e.start:0);t(null,r)}):qt(e,"httpVersion")?t(null,Number(e.headers["content-length"])):qt(e,"httpModule")?(e.on("response",function(n){e.pause(),t(null,Number(n.headers["content-length"]))}),e.resume()):t("Unknown stream")};se.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="'+HP(e)+'"'].concat(o||[]),"Content-Type":[].concat(r||[])};typeof n.header=="object"&&Om(a,n.header);var u;for(var c in a)if(qt(a,c)){if(u=a[c],u==null)continue;Array.isArray(u)||(u=[u]),u.length&&(i+=c+": "+u.join("; ")+se.LINE_BREAK)}return"--"+this.getBoundary()+se.LINE_BREAK+i+se.LINE_BREAK};se.prototype._getContentDisposition=function(e,t){var n;if(typeof t.filepath=="string"?n=wm.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?n=wm.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&qt(e,"httpVersion")&&(n=wm.basename(e.client._httpMessage.path||"")),n)return'filename="'+HP(n)+'"'};se.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e&&e.name&&(n=$m.lookup(e.name)),!n&&e&&e.path&&(n=$m.lookup(e.path)),!n&&e&&e.readable&&qt(e,"httpVersion")&&(n=e.headers["content-type"]),!n&&(t.filepath||t.filename)&&(n=$m.lookup(t.filepath||t.filename)),!n&&e&&typeof e=="object"&&(n=se.DEFAULT_CONTENT_TYPE),n};se.prototype._multiPartFooter=function(){return function(e){var t=se.LINE_BREAK,n=this._streams.length===0;n&&(t+=this._lastBoundary()),e(t)}.bind(this)};se.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+se.LINE_BREAK};se.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)qt(e,t)&&(n[t.toLowerCase()]=e[t]);return n};se.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};se.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};se.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(se.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};se.prototype._generateBoundary=function(){this._boundary="--------------------------"+U$.randomBytes(12).toString("hex")};se.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};se.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};se.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}M$.parallel(this._valuesToMeasure,this._lengthRetriever,function(n,o){if(n){e(n);return}o.forEach(function(r){t+=r}),e(null,t)})};se.prototype.submit=function(e,t){var n,o,r={method:"post"};return typeof e=="string"?(e=D$(e),o=Om({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},r)):(o=Om(e,r),o.port||(o.port=o.protocol==="https:"?443:80)),o.headers=this.getHeaders(e.headers),o.protocol==="https:"?n=k$.request(o):n=z$.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};se.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};se.prototype.toString=function(){return"[object FormData]"};L$(se.prototype,"FormData");qP.exports=se});var be={};ot(be,{__addDisposableResource:()=>Tx,__assign:()=>Cu,__asyncDelegator:()=>gx,__asyncGenerator:()=>hx,__asyncValues:()=>yx,__await:()=>pn,__awaiter:()=>cx,__classPrivateFieldGet:()=>xx,__classPrivateFieldIn:()=>Ex,__classPrivateFieldSet:()=>bx,__createBinding:()=>Uu,__decorate:()=>rx,__disposeResources:()=>Ix,__esDecorate:()=>ox,__exportStar:()=>px,__extends:()=>ex,__generator:()=>lx,__importDefault:()=>Px,__importStar:()=>_x,__makeTemplateObject:()=>vx,__metadata:()=>ux,__param:()=>nx,__propKey:()=>ax,__read:()=>Cm,__rest:()=>tx,__rewriteRelativeImportExtension:()=>Sx,__runInitializers:()=>ix,__setFunctionName:()=>sx,__spread:()=>dx,__spreadArray:()=>mx,__spreadArrays:()=>fx,__values:()=>Nu,default:()=>eO});function ex(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 tx(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 rx(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 nx(e,t){return function(n,o){t(n,o,e)}}function ox(e,t,n,o,r,i){function a(x){if(x!==void 0&&typeof x!="function")throw new TypeError("Function expected");return x}s(a,"accept");for(var u=o.kind,c=u==="getter"?"get":u==="setter"?"set":"value",l=!t&&e?o.static?e:e.prototype:null,d=t||(l?Object.getOwnPropertyDescriptor(l,o.name):{}),g,h=!1,p=n.length-1;p>=0;p--){var m={};for(var _ in o)m[_]=_==="access"?{}:o[_];for(var _ in o.access)m.access[_]=o.access[_];m.addInitializer=function(x){if(h)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(x||null))};var P=(0,n[p])(u==="accessor"?{get:d.get,set:d.set}:d[c],m);if(u==="accessor"){if(P===void 0)continue;if(P===null||typeof P!="object")throw new TypeError("Object expected");(g=a(P.get))&&(d.get=g),(g=a(P.set))&&(d.set=g),(g=a(P.init))&&r.unshift(g)}else(g=a(P))&&(u==="field"?r.unshift(g):d[c]=g)}l&&Object.defineProperty(l,o.name,d),h=!0}function ix(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 ax(e){return typeof e=="symbol"?e:"".concat(e)}function sx(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 ux(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function cx(e,t,n,o){function r(i){return i instanceof n?i:new n(function(a){a(i)})}return s(r,"adopt"),new(n||(n=Promise))(function(i,a){function u(d){try{l(o.next(d))}catch(g){a(g)}}s(u,"fulfilled");function c(d){try{l(o.throw(d))}catch(g){a(g)}}s(c,"rejected");function l(d){d.done?i(d.value):r(d.value).then(u,c)}s(l,"step"),l((o=o.apply(e,t||[])).next())})}function lx(e,t){var n={label:0,sent:s(function(){if(i[0]&1)throw i[1];return i[1]},"sent"),trys:[],ops:[]},o,r,i,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(l){return function(d){return c([l,d])}}function c(l){if(o)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(n=0)),n;)try{if(o=1,r&&(i=l[0]&2?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,r=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){n.label=l[1];break}if(l[0]===6&&n.label<i[1]){n.label=i[1],i=l;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(l);break}i[2]&&n.ops.pop(),n.trys.pop();continue}l=t.call(e,n)}catch(d){l=[6,d],r=0}finally{o=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function px(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Uu(t,e,n)}function Nu(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 Cm(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 dx(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Cm(arguments[t]));return e}function fx(){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 mx(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 pn(e){return this instanceof pn?(this.v=e,this):new pn(e)}function hx(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=n.apply(e,t||[]),r,i=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",a),r[Symbol.asyncIterator]=function(){return this},r;function a(p){return function(m){return Promise.resolve(m).then(p,g)}}function u(p,m){o[p]&&(r[p]=function(_){return new Promise(function(P,x){i.push([p,_,P,x])>1||c(p,_)})},m&&(r[p]=m(r[p])))}function c(p,m){try{l(o[p](m))}catch(_){h(i[0][3],_)}}function l(p){p.value instanceof pn?Promise.resolve(p.value.v).then(d,g):h(i[0][2],p)}function d(p){c("next",p)}function g(p){c("throw",p)}function h(p,m){p(m),i.shift(),i.length&&c(i[0][0],i[0][1])}}function gx(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:pn(e[r](a)),done:!1}:i?i(a):a}:i}}function yx(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Nu=="function"?Nu(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 vx(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 n=Dm(e),o=0;o<n.length;o++)n[o]!=="default"&&Uu(t,e,n[o]);return Y$(t,e),t}function Px(e){return e&&e.__esModule?e:{default:e}}function xx(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 bx(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 Ex(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 Tx(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var o,r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");o=t[Symbol.asyncDispose]}if(o===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");o=t[Symbol.dispose],n&&(r=o)}if(typeof o!="function")throw new TypeError("Object not disposable.");r&&(o=s(function(){try{r.call(this)}catch(i){return Promise.reject(i)}},"dispose")),e.stack.push({value:t,dispose:o,async:n})}else n&&e.stack.push({async:!0});return t}function Ix(e){function t(i){e.error=e.hasError?new Q$(i,e.error,"An error was suppressed during disposal."):i,e.hasError=!0}s(t,"fail");var n,o=0;function r(){for(;n=e.stack.pop();)try{if(!n.async&&o===1)return o=0,e.stack.push(n),Promise.resolve().then(r);if(n.dispose){var i=n.dispose.call(n.value);if(n.async)return o|=2,Promise.resolve(i).then(r,function(a){return t(a),r()})}else o|=1}catch(a){t(a)}if(o===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return s(r,"next"),r()}function Sx(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(n,o,r,i,a){return o?t?".jsx":".js":r&&(!i||!a)?n:r+i+"."+a.toLowerCase()+"js"}):e}var km,Cu,Uu,Y$,Dm,Q$,eO,Ee=cE(()=>{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(ex,"__extends");Cu=s(function(){return Cu=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"),Cu.apply(this,arguments)},"__assign");s(tx,"__rest");s(rx,"__decorate");s(nx,"__param");s(ox,"__esDecorate");s(ix,"__runInitializers");s(ax,"__propKey");s(sx,"__setFunctionName");s(ux,"__metadata");s(cx,"__awaiter");s(lx,"__generator");Uu=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(px,"__exportStar");s(Nu,"__values");s(Cm,"__read");s(dx,"__spread");s(fx,"__spreadArrays");s(mx,"__spreadArray");s(pn,"__await");s(hx,"__asyncGenerator");s(gx,"__asyncDelegator");s(yx,"__asyncValues");s(vx,"__makeTemplateObject");Y$=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t},Dm=s(function(e){return Dm=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},Dm(e)},"ownKeys");s(_x,"__importStar");s(Px,"__importDefault");s(xx,"__classPrivateFieldGet");s(bx,"__classPrivateFieldSet");s(Ex,"__classPrivateFieldIn");s(Tx,"__addDisposableResource");Q$=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(Ix,"__disposeResources");s(Sx,"__rewriteRelativeImportExtension");eO={__extends:ex,__assign:Cu,__rest:tx,__decorate:rx,__param:nx,__esDecorate:ox,__runInitializers:ix,__propKey:ax,__setFunctionName:sx,__metadata:ux,__awaiter:cx,__generator:lx,__createBinding:Uu,__exportStar:px,__values:Nu,__read:Cm,__spread:dx,__spreadArrays:fx,__spreadArray:mx,__await:pn,__asyncGenerator:hx,__asyncDelegator:gx,__asyncValues:yx,__makeTemplateObject:vx,__importStar:_x,__importDefault:Px,__classPrivateFieldGet:xx,__classPrivateFieldSet:bx,__classPrivateFieldIn:Ex,__addDisposableResource:Tx,__disposeResources:Ix,__rewriteRelativeImportExtension:Sx}});var bi=I(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.RequestMethod=void 0;var Ax;(function(e){e.GET="GET",e.PATCH="PATCH",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"})(Ax||(Mu.RequestMethod=Ax={}))});var wx=I(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.BatchRequestContent=void 0;var dn=(Ee(),_e(be)),Nm=bi(),tO=(function(){function e(t){if(this.requests=new Map,typeof t<"u"){var n=e.requestLimit;if(t.length>n){var o=new Error("Maximum requests limit exceeded, Max allowed number of requests are ".concat(n));throw o.name="Limit Exceeded Error",o}for(var r=0,i=t;r<i.length;r++){var a=i[r];this.addRequest(a)}}}return s(e,"BatchRequestContent"),e.validateDependencies=function(t){var n=s(function(a){for(var u=a.entries(),c=u.next();!c.done;){var l=c.value[1];if(l.dependsOn!==void 0&&l.dependsOn.length>0)return!1;c=u.next()}return!0},"isParallel"),o=s(function(a){var u=a.entries(),c=u.next(),l=c.value[1];if(l.dependsOn!==void 0&&l.dependsOn.length>0)return!1;var d=c;for(c=u.next();!c.done;){var g=c.value[1];if(g.dependsOn===void 0||g.dependsOn.length!==1||g.dependsOn[0]!==d.value[1].id)return!1;d=c,c=u.next()}return!0},"isSerial"),r=s(function(a){var u=a.entries(),c=u.next(),l=c.value[1],d;if(l.dependsOn===void 0||l.dependsOn.length===0)d=l.id;else if(l.dependsOn.length===1){var g=l.dependsOn[0];if(g!==l.id&&a.has(g))d=g;else return!1}else return!1;for(c=u.next();!c.done;){var h=c.value[1];if((h.dependsOn===void 0||h.dependsOn.length===0)&&d!==h.id||h.dependsOn!==void 0&&h.dependsOn.length!==0&&(h.dependsOn.length===1&&(h.id===d||h.dependsOn[0]!==d)||h.dependsOn.length>1))return!1;c=u.next()}return!0},"isSame");if(t.size===0){var i=new Error("Empty requests map, Please provide at least one request.");throw i.name="Empty Requests Error",i}return n(t)||o(t)||r(t)},e.getRequestData=function(t){return dn.__awaiter(this,void 0,void 0,function(){var n,o,r,i;return dn.__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===Nm.RequestMethod.PATCH||t.method===Nm.RequestMethod.POST||t.method===Nm.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 dn.__awaiter(this,void 0,void 0,function(){var n,o,r,i,a,u,c,l;return dn.__generator(this,function(d){switch(d.label){case 0:n=!1,d.label=1;case 1:return d.trys.push([1,3,,4]),r=t.clone(),[4,r.json()];case 2:return o=d.sent(),n=!0,[3,4];case 3:return i=d.sent(),[3,4];case 4:if(n)return[3,12];d.label=5;case 5:return d.trys.push([5,11,,12]),typeof Blob<"u"?[4,t.blob()]:[3,8];case 6:return a=d.sent(),u=new FileReader,[4,new Promise(function(g){u.addEventListener("load",function(){var h=u.result,p=new RegExp("^s*data:(.+?/.+?(;.+?=.+?)*)?(;base64)?,(.*)s*$"),m=p.exec(h);g(m[4])},!1),u.readAsDataURL(a)})];case 7:return o=d.sent(),[3,10];case 8:return typeof Buffer<"u"?[4,t.buffer()]:[3,10];case 9:c=d.sent(),o=c.toString("base64"),d.label=10;case 10:return n=!0,[3,12];case 11:return l=d.sent(),[3,12];case 12:return[2,o]}})})},e.prototype.addRequest=function(t){var n=e.requestLimit;if(t.id===""){var o=new Error("Id for a request is empty, Please provide an unique id");throw o.name="Empty Id For Request",o}if(this.requests.size===n){var o=new Error("Maximum requests limit exceeded, Max allowed number of requests are ".concat(n));throw o.name="Limit Exceeded Error",o}if(this.requests.has(t.id)){var o=new Error("Adding request with duplicate id ".concat(t.id,", Make the id of the requests unique"));throw o.name="Duplicate RequestId Error",o}return this.requests.set(t.id,t),t.id},e.prototype.removeRequest=function(t){for(var n=this.requests.delete(t),o=this.requests.entries(),r=o.next();!r.done;){var i=r.value[1].dependsOn;if(typeof i<"u"){var a=i.indexOf(t);a!==-1&&i.splice(a,1),i.length===0&&delete r.value[1].dependsOn}r=o.next()}return n},e.prototype.getContent=function(){return dn.__awaiter(this,void 0,void 0,function(){var t,n,o,r,u,u,i,a,u;return dn.__generator(this,function(c){switch(c.label){case 0:if(t=[],n={requests:t},o=this.requests.entries(),r=o.next(),r.done)throw u=new Error("No requests added yet, Please add at least one request."),u.name="Empty Payload",u;if(!e.validateDependencies(this.requests))throw u=new Error(`Invalid dependency found, Dependency should be:
3
3
  1. Parallel - no individual request states a dependency in the dependsOn property.
4
4
  2. Serial - all individual requests depend on the previous individual request.
5
- 3. Same - all individual requests that state a dependency in the dependsOn property, state the same dependency.`),u.name="Invalid Dependency",u;c.label=1;case 1:return o.done?[3,3]:(i=o.value[1],[4,e.getRequestData(i.request)]);case 2:if(s=c.sent(),s.body!==void 0&&(s.headers===void 0||s.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 s.id=i.id,i.dependsOn!==void 0&&i.dependsOn.length>0&&(s.dependsOn=i.dependsOn),t.push(s),o=n.next(),[3,1];case 3:return r.requests=t,[2,r]}})})},e.prototype.addDependency=function(t,r){if(!this.requests.has(t)){var n=new Error("Dependent ".concat(t," does not exists, Please check the id"));throw n.name="Invalid Dependent",n}if(typeof r<"u"&&!this.requests.has(r)){var n=new Error("Dependency ".concat(r," does not exists, Please check the id"));throw n.name="Invalid Dependency",n}if(typeof r<"u"){var o=this.requests.get(t);if(o.dependsOn===void 0&&(o.dependsOn=[]),o.dependsOn.indexOf(r)!==-1){var n=new Error("Dependency ".concat(r," is already added for the request ").concat(t));throw n.name="Duplicate Dependency",n}o.dependsOn.push(r)}else{for(var i=this.requests.entries(),s=void 0,u=i.next();!u.done&&u.value[1].id!==t;)s=u,u=i.next();if(typeof s<"u"){var c=s.value[0];if(u.value[1].dependsOn===void 0&&(u.value[1].dependsOn=[]),u.value[1].dependsOn.indexOf(c)!==-1){var n=new Error("Dependency ".concat(c," is already added for the request ").concat(t));throw n.name="Duplicate Dependency",n}u.value[1].dependsOn.push(c)}else{var n=new Error("Can't add dependency ".concat(r,", There is only a dependent request in the batch"));throw n.name="Invalid Dependency Addition",n}}},e.prototype.removeDependency=function(t,r){var n=this.requests.get(t);if(typeof n>"u"||n.dependsOn===void 0||n.dependsOn.length===0)return!1;if(typeof r<"u"){var o=n.dependsOn.indexOf(r);return o===-1?!1:(n.dependsOn.splice(o,1),!0)}else return delete n.dependsOn,!0},e.requestLimit=20,e})();xn.BatchRequestContent=Gy});var Ip=b(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.BatchResponseContent=void 0;var Wy=(de(),ce(pe)),Ky=(function(){function e(t){this.responses=new Map,this.update(t)}return a(e,"BatchResponseContent"),e.prototype.createResponseObject=function(t){var r=t.body,n={};if(n.status=t.status,t.statusText!==void 0&&(n.statusText=t.statusText),n.headers=t.headers,n.headers!==void 0&&n.headers["Content-Type"]!==void 0&&n.headers["Content-Type"].split(";")[0]==="application/json"){var o=JSON.stringify(r);return new Response(o,n)}return new Response(r,n)},e.prototype.update=function(t){this.nextLink=t["@odata.nextLink"];for(var r=t.responses,n=0,o=r.length;n<o;n++)this.responses.set(r[n].id,this.createResponseObject(r[n]))},e.prototype.getResponseById=function(t){return this.responses.get(t)},e.prototype.getResponses=function(){return this.responses},e.prototype.getResponsesIterator=function(){var t,r;return Wy.__generator(this,function(n){switch(n.label){case 0:t=this.responses.entries(),r=t.next(),n.label=1;case 1:return r.done?[3,3]:[4,r.value];case 2:return n.sent(),r=t.next(),[3,1];case 3:return[2]}})},e})();bn.BatchResponseContent=Ky});var Li=b(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.GRAPH_URLS=lt.GRAPH_BASE_URL=lt.GRAPH_API_VERSION=void 0;lt.GRAPH_API_VERSION="v1.0";lt.GRAPH_BASE_URL="https://graph.microsoft.com/";lt.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 Xe=b(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.GraphClientError=void 0;var Xy=(de(),ce(pe)),Jy=(function(e){Xy.__extends(t,e);function t(r){var n=e.call(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return a(t,"GraphClientError"),t.setGraphClientError=function(r){var n;return r instanceof Error?n=r:(n=new t,n.customError=r),n},t})(Error);Tn.GraphClientError=Jy});var En=b(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.isCustomHost=Me.isGraphURL=Me.serializeContent=Me.urlJoin=Me.oDataQueryNames=void 0;var Yy=Li(),Qy=Xe();Me.oDataQueryNames=["$select","$expand","$orderby","$filter","$top","$skip","$skipToken","$count"];var ev=a(function(e){var t=a(function(i){return i.replace(/\/+$/,"")},"removePostSlash"),r=a(function(i){return i.replace(/^\/+/,"")},"removePreSlash"),n=a(function(i,s){return[t(i),r(s)].join("/")},"joiner"),o=Array.prototype.slice.call(e);return o.reduce(n)},"urlJoin");Me.urlJoin=ev;var tv=a(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");Me.serializeContent=tv;var rv=a(function(e){return Sp(e)},"isGraphURL");Me.isGraphURL=rv;var nv=a(function(e,t){return t.forEach(function(r){return ov(r)}),Sp(e,t)},"isCustomHost");Me.isCustomHost=nv;var Sp=a(function(e,t){if(t===void 0&&(t=Yy.GRAPH_URLS),e=e.toLowerCase(),e.indexOf("https://")!==-1){e=e.replace("https://","");var r=e.indexOf(":"),n=e.indexOf("/"),o="";if(n!==-1)return r!==-1&&r<n?(o=e.substring(0,r),t.has(o)):(o=e.substring(0,n),t.has(o))}return!1},"isValidEndpoint"),ov=a(function(e){if(e.indexOf("/")!==-1)throw new Qy.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 pt=b(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.MiddlewareControl=void 0;var iv=(function(){function e(t){t===void 0&&(t=[]),this.middlewareOptions=new Map;for(var r=0,n=t;r<n.length;r++){var o=n[r],i=o.constructor;this.middlewareOptions.set(i,o)}}return a(e,"MiddlewareControl"),e.prototype.getMiddlewareOptions=function(t){return this.middlewareOptions.get(t)},e.prototype.setMiddlewareOptions=function(t,r){this.middlewareOptions.set(t,r)},e})();In.MiddlewareControl=iv});var Ut=b(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.cloneRequestWithNewUrl=Le.appendRequestHeader=Le.setRequestHeader=Le.getRequestHeader=Le.generateUUID=void 0;var Ap=(de(),ce(pe)),av=a(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");Le.generateUUID=av;var sv=a(function(e,t,r){var n=null;if(typeof Request<"u"&&e instanceof Request)n=e.headers.get(r);else if(typeof t<"u"&&t.headers!==void 0)if(typeof Headers<"u"&&t.headers instanceof Headers)n=t.headers.get(r);else if(t.headers instanceof Array){for(var o=t.headers,i=0,s=o.length;i<s;i++)if(o[i][0]===r){n=o[i][1];break}}else t.headers[r]!==void 0&&(n=t.headers[r]);return n},"getRequestHeader");Le.getRequestHeader=sv;var uv=a(function(e,t,r,n){var o,i;if(typeof Request<"u"&&e instanceof Request)e.headers.set(r,n);else if(typeof t<"u")if(t.headers===void 0)t.headers=new Headers((o={},o[r]=n,o));else if(typeof Headers<"u"&&t.headers instanceof Headers)t.headers.set(r,n);else if(t.headers instanceof Array){for(var s=0,u=t.headers.length;s<u;s++){var c=t.headers[s];if(c[0]===r){c[1]=n;break}}s===u&&t.headers.push([r,n])}else Object.assign(t.headers,(i={},i[r]=n,i))},"setRequestHeader");Le.setRequestHeader=uv;var cv=a(function(e,t,r,n){var o,i;typeof Request<"u"&&e instanceof Request?e.headers.append(r,n):typeof t<"u"&&(t.headers===void 0?t.headers=new Headers((o={},o[r]=n,o)):typeof Headers<"u"&&t.headers instanceof Headers?t.headers.append(r,n):t.headers instanceof Array?t.headers.push([r,n]):t.headers===void 0?t.headers=(i={},i[r]=n,i):t.headers[r]===void 0?t.headers[r]=n:t.headers[r]+=", ".concat(n))},"appendRequestHeader");Le.appendRequestHeader=cv;var lv=a(function(e,t){return Ap.__awaiter(void 0,void 0,void 0,function(){var r,n,o,i,s,u,c,d,f,v,y,p,m;return Ap.__generator(this,function(P){switch(P.label){case 0:return t.headers.get("Content-Type")?[4,t.blob()]:[3,2];case 1:return n=P.sent(),[3,4];case 2:return[4,Promise.resolve(void 0)];case 3:n=P.sent(),P.label=4;case 4:return r=n,o=t.method,i=t.headers,s=t.referrer,u=t.referrerPolicy,c=t.mode,d=t.credentials,f=t.cache,v=t.redirect,y=t.integrity,p=t.keepalive,m=t.signal,[2,new Request(e,{method:o,headers:i,body:r,referrer:s,referrerPolicy:u,mode:c,credentials:d,cache:f,redirect:v,integrity:y,keepalive:p,signal:m})]}})})},"cloneRequestWithNewUrl");Le.cloneRequestWithNewUrl=lv});var ji=b(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.AuthenticationHandlerOptions=void 0;var pv=(function(){function e(t,r){this.authenticationProvider=t,this.authenticationProviderOptions=r}return a(e,"AuthenticationHandlerOptions"),e})();Sn.AuthenticationHandlerOptions=pv});var Lt=b(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.TelemetryHandlerOptions=Mt.FeatureUsageFlag=void 0;var wp=pt(),Fi;(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"})(Fi||(Mt.FeatureUsageFlag=Fi={}));var dv=(function(){function e(){this.featureUsage=Fi.NONE}return a(e,"TelemetryHandlerOptions"),e.updateFeatureUsageFlag=function(t,r){var n;t.middlewareControl instanceof wp.MiddlewareControl?n=t.middlewareControl.getMiddlewareOptions(e):t.middlewareControl=new wp.MiddlewareControl,typeof n>"u"&&(n=new e,t.middlewareControl.setMiddlewareOptions(e,n)),n.setFeatureUsage(r)},e.prototype.setFeatureUsage=function(t){this.featureUsage=this.featureUsage|t},e.prototype.getFeatureUsage=function(){return this.featureUsage.toString(16)},e})();Mt.TelemetryHandlerOptions=dv});var wn=b(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.AuthenticationHandler=void 0;var $p=(de(),ce(pe)),Op=En(),fv=pt(),mv=Ut(),hv=ji(),Rp=Lt(),gv=(function(){function e(t){this.authenticationProvider=t}return a(e,"AuthenticationHandler"),e.prototype.execute=function(t){return $p.__awaiter(this,void 0,void 0,function(){var r,n,o,i,s,u;return $p.__generator(this,function(c){switch(c.label){case 0:return r=typeof t.request=="string"?t.request:t.request.url,(0,Op.isGraphURL)(r)||t.customHosts&&(0,Op.isCustomHost)(r,t.customHosts)?(n=void 0,t.middlewareControl instanceof fv.MiddlewareControl&&(n=t.middlewareControl.getMiddlewareOptions(hv.AuthenticationHandlerOptions)),o=void 0,i=void 0,n&&(o=n.authenticationProvider,i=n.authenticationProviderOptions),o||(o=this.authenticationProvider),[4,o.getAccessToken(i)]):[3,2];case 1:return s=c.sent(),u="Bearer ".concat(s),(0,mv.appendRequestHeader)(t.request,t.options,e.AUTHORIZATION_HEADER,u),Rp.TelemetryHandlerOptions.updateFeatureUsageFlag(t,Rp.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})();An.AuthenticationHandler=gv});var On=b($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.HTTPMessageHandler=void 0;var zp=(de(),ce(pe)),yv=(function(){function e(){}return a(e,"HTTPMessageHandler"),e.prototype.execute=function(t){return zp.__awaiter(this,void 0,void 0,function(){var r;return zp.__generator(this,function(n){switch(n.label){case 0:return r=t,[4,fetch(t.request,t.options)];case 1:return r.response=n.sent(),[2]}})})},e})();$n.HTTPMessageHandler=yv});var xr=b(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.RetryHandlerOptions=void 0;var vv=(function(){function e(t,r,n){if(t===void 0&&(t=e.DEFAULT_DELAY),r===void 0&&(r=e.DEFAULT_MAX_RETRIES),n===void 0&&(n=e.defaultShouldRetry),t>e.MAX_DELAY&&r>e.MAX_MAX_RETRIES){var o=new Error("Delay and MaxRetries should not be more than ".concat(e.MAX_DELAY," and ").concat(e.MAX_MAX_RETRIES));throw o.name="MaxLimitExceeded",o}else if(t>e.MAX_DELAY){var o=new Error("Delay should not be more than ".concat(e.MAX_DELAY));throw o.name="MaxLimitExceeded",o}else if(r>e.MAX_MAX_RETRIES){var o=new Error("MaxRetries should not be more than ".concat(e.MAX_MAX_RETRIES));throw o.name="MaxLimitExceeded",o}else if(t<0&&r<0){var o=new Error("Delay and MaxRetries should not be negative");throw o.name="MinExpectationNotMet",o}else if(t<0){var o=new Error("Delay should not be negative");throw o.name="MinExpectationNotMet",o}else if(r<0){var o=new Error("MaxRetries should not be negative");throw o.name="MinExpectationNotMet",o}this.delay=Math.min(t,e.MAX_DELAY),this.maxRetries=Math.min(r,e.MAX_MAX_RETRIES),this.shouldRetry=n}return a(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})();Rn.RetryHandlerOptions=vv});var Dn=b(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.RetryHandler=void 0;var jt=(de(),ce(pe)),Vi=_r(),Pv=pt(),Dp=Ut(),kp=xr(),Cp=Lt(),_v=(function(){function e(t){t===void 0&&(t=new kp.RetryHandlerOptions),this.options=t}return a(e,"RetryHandler"),e.prototype.isRetry=function(t){return e.RETRY_STATUS_CODES.indexOf(t.status)!==-1},e.prototype.isBuffered=function(t,r){var n=typeof t=="string"?r.method:t.method,o=n===Vi.RequestMethod.PUT||n===Vi.RequestMethod.PATCH||n===Vi.RequestMethod.POST;if(o){var i=(0,Dp.getRequestHeader)(t,r,"Content-Type")==="application/octet-stream";if(i)return!1}return!0},e.prototype.getDelay=function(t,r,n){var o=a(function(){return Number(Math.random().toFixed(3))},"getRandomness"),i=t.headers!==void 0?t.headers.get(e.RETRY_AFTER_HEADER):null,s;return i!==null?Number.isNaN(Number(i))?s=Math.round((new Date(i).getTime()-Date.now())/1e3):s=Number(i):s=r>=2?this.getExponentialBackOffTime(r)+n+o():n+o(),Math.min(s,this.options.getMaxDelay()+o())},e.prototype.getExponentialBackOffTime=function(t){return Math.round(1/2*(Math.pow(2,t)-1))},e.prototype.sleep=function(t){return jt.__awaiter(this,void 0,void 0,function(){var r;return jt.__generator(this,function(n){return r=t*1e3,[2,new Promise(function(o){return setTimeout(o,r)})]})})},e.prototype.getOptions=function(t){var r;return t.middlewareControl instanceof Pv.MiddlewareControl&&(r=t.middlewareControl.getMiddlewareOptions(this.options.constructor)),typeof r>"u"&&(r=Object.assign(new kp.RetryHandlerOptions,this.options)),r},e.prototype.executeWithRetry=function(t,r,n){return jt.__awaiter(this,void 0,void 0,function(){var o;return jt.__generator(this,function(i){switch(i.label){case 0:return[4,this.nextMiddleware.execute(t)];case 1:return i.sent(),r<n.maxRetries&&this.isRetry(t.response)&&this.isBuffered(t.request,t.options)&&n.shouldRetry(n.delay,r,t.request,t.options,t.response)?(++r,(0,Dp.setRequestHeader)(t.request,t.options,e.RETRY_ATTEMPT_HEADER,r.toString()),o=this.getDelay(t.response,r,n.delay),[4,this.sleep(o)]):[3,4];case 2:return i.sent(),[4,this.executeWithRetry(t,r,n)];case 3:return[2,i.sent()];case 4:return[2]}})})},e.prototype.execute=function(t){return jt.__awaiter(this,void 0,void 0,function(){var r,n;return jt.__generator(this,function(o){switch(o.label){case 0:return r=0,n=this.getOptions(t),Cp.TelemetryHandlerOptions.updateFeatureUsageFlag(t,Cp.FeatureUsageFlag.RETRY_HANDLER_ENABLED),[4,this.executeWithRetry(t,r,n)];case 1:return[2,o.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})();zn.RetryHandler=_v});var br=b(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.RedirectHandlerOptions=void 0;var xv=(function(){function e(t,r){if(t===void 0&&(t=e.DEFAULT_MAX_REDIRECTS),r===void 0&&(r=e.defaultShouldRedirect),t>e.MAX_MAX_REDIRECTS){var n=new Error("MaxRedirects should not be more than ".concat(e.MAX_MAX_REDIRECTS));throw n.name="MaxLimitExceeded",n}if(t<0){var n=new Error("MaxRedirects should not be negative");throw n.name="MinExpectationNotMet",n}this.maxRedirects=t,this.shouldRedirect=r}return a(e,"RedirectHandlerOptions"),e.DEFAULT_MAX_REDIRECTS=5,e.MAX_MAX_REDIRECTS=20,e.defaultShouldRedirect=function(){return!0},e})();kn.RedirectHandlerOptions=xv});var Nn=b(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.RedirectHandler=void 0;var Ft=(de(),ce(pe)),bv=_r(),Tv=pt(),Ev=Ut(),Bi=br(),Np=Lt(),Iv=(function(){function e(t){t===void 0&&(t=new Bi.RedirectHandlerOptions),this.options=t}return a(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,r){var n=/^[A-Za-z].+?:\/\/.+?(?=\/|$)/,o=n.exec(t),i,s;o!==null&&(i=o[0]);var u=n.exec(r);return u!==null&&(s=u[0]),typeof i<"u"&&typeof s<"u"&&i!==s},e.prototype.updateRequestUrl=function(t,r){return Ft.__awaiter(this,void 0,void 0,function(){var n,o;return Ft.__generator(this,function(i){switch(i.label){case 0:return n=r,typeof r.request!="string"?[3,1]:(o=t,[3,3]);case 1:return[4,(0,Ev.cloneRequestWithNewUrl)(t,r.request)];case 2:o=i.sent(),i.label=3;case 3:return n.request=o,[2]}})})},e.prototype.getOptions=function(t){var r;return t.middlewareControl instanceof Tv.MiddlewareControl&&(r=t.middlewareControl.getMiddlewareOptions(Bi.RedirectHandlerOptions)),typeof r>"u"&&(r=Object.assign(new Bi.RedirectHandlerOptions,this.options)),r},e.prototype.executeWithRedirect=function(t,r,n){return Ft.__awaiter(this,void 0,void 0,function(){var o,i;return Ft.__generator(this,function(s){switch(s.label){case 0:return[4,this.nextMiddleware.execute(t)];case 1:return s.sent(),o=t.response,r<n.maxRedirects&&this.isRedirect(o)&&this.hasLocationHeader(o)&&n.shouldRedirect(o)?(++r,o.status!==e.STATUS_CODE_SEE_OTHER?[3,2]:(t.options.method=bv.RequestMethod.GET,delete t.options.body,[3,4])):[3,6];case 2:return i=this.getLocationHeader(o),!this.isRelativeURL(i)&&this.shouldDropAuthorizationHeader(o.url,i)&&delete t.options.headers[e.AUTHORIZATION_HEADER],[4,this.updateRequestUrl(i,t)];case 3:s.sent(),s.label=4;case 4:return[4,this.executeWithRedirect(t,r,n)];case 5:return s.sent(),[3,7];case 6:return[2];case 7:return[2]}})})},e.prototype.execute=function(t){return Ft.__awaiter(this,void 0,void 0,function(){var r,n;return Ft.__generator(this,function(o){switch(o.label){case 0:return r=0,n=this.getOptions(t),t.options.redirect=e.MANUAL_REDIRECT,Np.TelemetryHandlerOptions.updateFeatureUsageFlag(t,Np.FeatureUsageFlag.REDIRECT_HANDLER_ENABLED),[4,this.executeWithRedirect(t,r,n)];case 1:return[2,o.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})();Cn.RedirectHandler=Iv});var Up=b(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.PACKAGE_VERSION=void 0;Un.PACKAGE_VERSION="3.0.7"});var jn=b(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.TelemetryHandler=void 0;var Mp=(de(),ce(pe)),Lp=En(),Sv=Up(),Av=pt(),Mn=Ut(),wv=Lt(),$v=(function(){function e(){}return a(e,"TelemetryHandler"),e.prototype.execute=function(t){return Mp.__awaiter(this,void 0,void 0,function(){var r,n,o,i,s;return Mp.__generator(this,function(u){switch(u.label){case 0:return r=typeof t.request=="string"?t.request:t.request.url,(0,Lp.isGraphURL)(r)||t.customHosts&&(0,Lp.isCustomHost)(r,t.customHosts)?(n=(0,Mn.getRequestHeader)(t.request,t.options,e.CLIENT_REQUEST_ID_HEADER),n||(n=(0,Mn.generateUUID)(),(0,Mn.setRequestHeader)(t.request,t.options,e.CLIENT_REQUEST_ID_HEADER,n)),o="".concat(e.PRODUCT_NAME,"/").concat(Sv.PACKAGE_VERSION),i=void 0,t.middlewareControl instanceof Av.MiddlewareControl&&(i=t.middlewareControl.getMiddlewareOptions(wv.TelemetryHandlerOptions)),i&&(s=i.getFeatureUsage(),o+=" (".concat(e.FEATURE_USAGE_STRING,"=").concat(s,")")),(0,Mn.appendRequestHeader)(t.request,t.options,e.SDK_VERSION_HEADER,o)):(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})();Ln.TelemetryHandler=$v});var jp=b(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.MiddlewareFactory=void 0;var Ov=wn(),Rv=On(),zv=br(),Dv=xr(),kv=Nn(),Cv=Dn(),Nv=jn(),Uv=a(function(){return typeof process=="object"&&typeof require=="function"},"isNodeEnvironment"),Mv=(function(){function e(){}return a(e,"MiddlewareFactory"),e.getDefaultMiddlewareChain=function(t){var r=[],n=new Ov.AuthenticationHandler(t),o=new Cv.RetryHandler(new Dv.RetryHandlerOptions),i=new Nv.TelemetryHandler,s=new Rv.HTTPMessageHandler;if(r.push(n),r.push(o),Uv()){var u=new kv.RedirectHandler(new zv.RedirectHandlerOptions);r.push(u)}return r.push(i),r.push(s),r},e})();Fn.MiddlewareFactory=Mv});var Bn=b(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.ChaosStrategy=void 0;var Fp;(function(e){e[e.MANUAL=0]="MANUAL",e[e.RANDOM=1]="RANDOM"})(Fp||(Vn.ChaosStrategy=Fp={}))});var Hi=b(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.ChaosHandlerOptions=void 0;var Lv=Bn(),jv=(function(){function e(t,r,n,o,i,s){if(t===void 0&&(t=Lv.ChaosStrategy.RANDOM),r===void 0&&(r="Some error Happened"),this.chaosStrategy=t,this.statusCode=n,this.statusMessage=r,this.chaosPercentage=o!==void 0?o:10,this.responseBody=i,this.headers=s,this.chaosPercentage>100)throw new Error("Error Pecentage can not be more than 100")}return a(e,"ChaosHandlerOptions"),e})();Hn.ChaosHandlerOptions=jv});var Vp=b(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.httpStatusCode=Vt.methodStatusCode=void 0;Vt.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]};Vt.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 Zp=b(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.ChaosHandler=void 0;var Zn=(de(),ce(pe)),Fv=pt(),Vv=Ut(),Bp=Vp(),Zi=Hi(),Hp=Bn(),Bv=(function(){function e(t,r){t===void 0&&(t=new Zi.ChaosHandlerOptions),this.options=t,this.manualMap=r}return a(e,"ChaosHandler"),e.prototype.createResponseHeaders=function(t,r,n){var o=t.headers?new Headers(t.headers):new Headers;return o.append("Cache-Control","no-store"),o.append("request-id",r),o.append("client-request-id",r),o.append("x-ms-ags-diagnostic",""),o.append("Date",n),o.append("Strict-Transport-Security",""),t.statusCode===429&&o.append("retry-after","3"),o},e.prototype.createResponseBody=function(t,r,n){if(t.responseBody)return t.responseBody;var o;if(t.statusCode>=400){var i=Bp.httpStatusCode[t.statusCode],s=t.statusMessage;o={error:{code:i,message:s,innerError:{"request-id":r,date:n}}}}else o={};return o},e.prototype.createResponse=function(t,r){var n=r.request,o=(0,Vv.generateUUID)(),i=new Date,s=this.createResponseHeaders(t,o,i.toString()),u=this.createResponseBody(t,o,i.toString()),c={url:n,status:t.statusCode,statusText:t.statusMessage,headers:s};r.response=new Response(typeof u=="string"?u:JSON.stringify(u),c)},e.prototype.sendRequest=function(t,r){return Zn.__awaiter(this,void 0,void 0,function(){return Zn.__generator(this,function(n){switch(n.label){case 0:return this.setStatusCode(t,r.request,r.options.method),t.chaosStrategy===Hp.ChaosStrategy.MANUAL&&!this.nextMiddleware||Math.floor(Math.random()*100)<t.chaosPercentage?(this.createResponse(t,r),[3,3]):[3,1];case 1:return this.nextMiddleware?[4,this.nextMiddleware.execute(r)]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.getRandomStatusCode=function(t){var r=Bp.methodStatusCode[t];return r[Math.floor(Math.random()*r.length)]},e.prototype.getRelativeURL=function(t){var r=/https?:\/\/graph\.microsoft\.com\/[^/]+(.+?)(\?|$)/,n;return r.exec(t)!==null&&(n=r.exec(t)[1]),n},e.prototype.setStatusCode=function(t,r,n){var o=this;if(t.chaosStrategy===Hp.ChaosStrategy.MANUAL){if(t.statusCode===void 0){var i=this.getRelativeURL(r);this.manualMap.get(i)!==void 0?this.manualMap.get(i).get(n)!==void 0&&(t.statusCode=this.manualMap.get(i).get(n)):this.manualMap.forEach(function(s,u){var c=new RegExp(u+"$");c.test(i)&&o.manualMap.get(u).get(n)!==void 0&&(t.statusCode=o.manualMap.get(u).get(n))})}}else t.statusCode=this.getRandomStatusCode(n)},e.prototype.getOptions=function(t){var r;return t.middlewareControl instanceof Fv.MiddlewareControl&&(r=t.middlewareControl.getMiddlewareOptions(Zi.ChaosHandlerOptions)),typeof r>"u"&&(r=Object.assign(new Zi.ChaosHandlerOptions,this.options)),r},e.prototype.execute=function(t){return Zn.__awaiter(this,void 0,void 0,function(){var r;return Zn.__generator(this,function(n){switch(n.label){case 0:return r=this.getOptions(t),[4,this.sendRequest(r,t)];case 1:return[2,n.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e})();qn.ChaosHandler=Bv});var Tr=b(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.ResponseType=void 0;var qp;(function(e){e.ARRAYBUFFER="arraybuffer",e.BLOB="blob",e.DOCUMENT="document",e.JSON="json",e.RAW="raw",e.STREAM="stream",e.TEXT="text"})(qp||(Gn.ResponseType=qp={}))});var Gi=b(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.GraphResponseHandler=Bt.DocumentType=void 0;var Wn=(de(),ce(pe)),yt=Tr(),qi;(function(e){e.TEXT_HTML="text/html",e.TEXT_XML="text/xml",e.APPLICATION_XML="application/xml",e.APPLICATION_XHTML="application/xhtml+xml"})(qi||(Bt.DocumentType=qi={}));var Kn;(function(e){e.TEXT_PLAIN="text/plain",e.APPLICATION_JSON="application/json"})(Kn||(Kn={}));var Xn;(function(e){e.DOCUMENT="^(text\\/(html|xml))|(application\\/(xml|xhtml\\+xml))$",e.IMAGE="^image\\/.+"})(Xn||(Xn={}));var Hv=(function(){function e(){}return a(e,"GraphResponseHandler"),e.parseDocumentResponse=function(t,r){return typeof DOMParser<"u"?new Promise(function(n,o){t.text().then(function(i){try{var s=new DOMParser,u=s.parseFromString(i,r);n(u)}catch(c){o(c)}})}):Promise.resolve(t.body)},e.convertResponse=function(t,r){return Wn.__awaiter(this,void 0,void 0,function(){var n,o,i,s;return Wn.__generator(this,function(u){switch(u.label){case 0:if(t.status===204)return[2,Promise.resolve()];switch(o=t.headers.get("Content-type"),i=r,i){case yt.ResponseType.ARRAYBUFFER:return[3,1];case yt.ResponseType.BLOB:return[3,3];case yt.ResponseType.DOCUMENT:return[3,5];case yt.ResponseType.JSON:return[3,7];case yt.ResponseType.STREAM:return[3,9];case yt.ResponseType.TEXT:return[3,11]}return[3,13];case 1:return[4,t.arrayBuffer()];case 2:return n=u.sent(),[3,24];case 3:return[4,t.blob()];case 4:return n=u.sent(),[3,24];case 5:return[4,e.parseDocumentResponse(t,qi.TEXT_XML)];case 6:return n=u.sent(),[3,24];case 7:return[4,t.json()];case 8:return n=u.sent(),[3,24];case 9:return[4,Promise.resolve(t.body)];case 10:return n=u.sent(),[3,24];case 11:return[4,t.text()];case 12:return n=u.sent(),[3,24];case 13:return o===null?[3,22]:(s=o.split(";")[0],new RegExp(Xn.DOCUMENT).test(s)?[4,e.parseDocumentResponse(t,s)]:[3,15]);case 14:return n=u.sent(),[3,21];case 15:return new RegExp(Xn.IMAGE).test(s)?(n=t.blob(),[3,21]):[3,16];case 16:return s!==Kn.TEXT_PLAIN?[3,18]:[4,t.text()];case 17:return n=u.sent(),[3,21];case 18:return s!==Kn.APPLICATION_JSON?[3,20]:[4,t.json()];case 19:return n=u.sent(),[3,21];case 20:n=Promise.resolve(t.body),u.label=21;case 21:return[3,23];case 22:n=Promise.resolve(t.body),u.label=23;case 23:return[3,24];case 24:return[2,n]}})})},e.getResponse=function(t,r,n){return Wn.__awaiter(this,void 0,void 0,function(){var o;return Wn.__generator(this,function(i){switch(i.label){case 0:return r!==yt.ResponseType.RAW?[3,1]:[2,Promise.resolve(t)];case 1:return[4,e.convertResponse(t,r)];case 2:if(o=i.sent(),t.ok)if(typeof n=="function")n(null,o);else return[2,o];else throw o;i.label=3;case 3:return[2]}})})},e})();Bt.GraphResponseHandler=Hv});var Wi=b(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.Range=void 0;var Zv=(function(){function e(t,r){t===void 0&&(t=-1),r===void 0&&(r=-1),this.minValue=t,this.maxValue=r}return a(e,"Range"),e})();Jn.Range=Zv});var Ki=b(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.UploadResult=void 0;var qv=(function(){function e(t,r){this._location=r,this._responseBody=t}return a(e,"UploadResult"),Object.defineProperty(e.prototype,"location",{get:a(function(){return this._location},"get"),set:a(function(t){this._location=t},"set"),enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responseBody",{get:a(function(){return this._responseBody},"get"),set:a(function(t){this._responseBody=t},"set"),enumerable:!1,configurable:!0}),e.CreateUploadResult=function(t,r){return new e(t,r.get("location"))},e})();Yn.UploadResult=qv});var Ji=b(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.LargeFileUploadTask=void 0;var ze=(de(),ce(pe)),Xi=Xe(),Gv=Gi(),Gp=Tr(),Qn=Wi(),Wv=Ki(),Kv=(function(){function e(t,r,n,o){if(o===void 0&&(o={}),this.DEFAULT_FILE_SIZE=5*1024*1024,this.client=t,r.sliceFile)this.file=r;else throw new Xi.GraphClientError("Please pass the FileUpload object, StreamUpload object or any custom implementation of the FileObject interface");this.file=r,o.rangeSize||(o.rangeSize=this.DEFAULT_FILE_SIZE),this.options=o,this.uploadSession=n,this.nextRange=new Qn.Range(0,this.options.rangeSize-1)}return a(e,"LargeFileUploadTask"),e.createUploadSession=function(t,r,n,o){return o===void 0&&(o={}),ze.__awaiter(this,void 0,void 0,function(){var i,s;return ze.__generator(this,function(u){switch(u.label){case 0:return[4,t.api(r).headers(o).post(n)];case 1:return i=u.sent(),s={url:i.uploadUrl,expiry:new Date(i.expirationDateTime),isCancelled:!1},[2,s]}})})},e.prototype.parseRange=function(t){var r=t[0];if(typeof r>"u"||r==="")return new Qn.Range;var n=r.split("-"),o=parseInt(n[0],10),i=parseInt(n[1],10);return Number.isNaN(i)&&(i=this.file.size-1),new Qn.Range(o,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,r=t+this.options.rangeSize-1;return r>=this.file.size&&(r=this.file.size-1),new Qn.Range(t,r)},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 Xi.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 ze.__awaiter(this,void 0,void 0,function(){var t,r,n,o,i,s,u;return ze.__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(r=this.getNextRange(),r.maxValue===-1)throw n=new Error("Task with which you are trying to upload is already completed, Please check for your uploaded file"),n.name="Invalid Session",n;return[4,this.file.sliceFile(r)];case 2:return o=c.sent(),[4,this.uploadSliceGetRawResponse(o,r,this.file.size)];case 3:if(i=c.sent(),!i)throw new Xi.GraphClientError("Something went wrong! Large file upload slice response is null.");return[4,Gv.GraphResponseHandler.getResponse(i)];case 4:return s=c.sent(),i.status===201||i.status===200&&s.id?(this.reportProgress(t,r),[2,Wv.UploadResult.CreateUploadResult(s,i.headers)]):(u={expirationDateTime:s.expirationDateTime||s.ExpirationDateTime,nextExpectedRanges:s.NextExpectedRanges||s.nextExpectedRanges},this.updateTaskStatus(u),this.reportProgress(t,r),[3,1]);case 5:return[2]}})})},e.prototype.reportProgress=function(t,r){t&&t.progress&&t.progress(r,t.extraCallbackParam)},e.prototype.uploadSlice=function(t,r,n){return ze.__awaiter(this,void 0,void 0,function(){return ze.__generator(this,function(o){switch(o.label){case 0:return[4,this.client.api(this.uploadSession.url).headers({"Content-Length":"".concat(r.maxValue-r.minValue+1),"Content-Range":"bytes ".concat(r.minValue,"-").concat(r.maxValue,"/").concat(n),"Content-Type":"application/octet-stream"}).put(t)];case 1:return[2,o.sent()]}})})},e.prototype.uploadSliceGetRawResponse=function(t,r,n){return ze.__awaiter(this,void 0,void 0,function(){return ze.__generator(this,function(o){switch(o.label){case 0:return[4,this.client.api(this.uploadSession.url).headers({"Content-Length":"".concat(r.maxValue-r.minValue+1),"Content-Range":"bytes ".concat(r.minValue,"-").concat(r.maxValue,"/").concat(n),"Content-Type":"application/octet-stream"}).responseType(Gp.ResponseType.RAW).put(t)];case 1:return[2,o.sent()]}})})},e.prototype.cancel=function(){return ze.__awaiter(this,void 0,void 0,function(){var t;return ze.__generator(this,function(r){switch(r.label){case 0:return[4,this.client.api(this.uploadSession.url).responseType(Gp.ResponseType.RAW).delete()];case 1:return t=r.sent(),t.status===204&&(this.uploadSession.isCancelled=!0),[2,t]}})})},e.prototype.getStatus=function(){return ze.__awaiter(this,void 0,void 0,function(){var t;return ze.__generator(this,function(r){switch(r.label){case 0:return[4,this.client.api(this.uploadSession.url).get()];case 1:return t=r.sent(),this.updateTaskStatus(t),[2,t]}})})},e.prototype.resume=function(){return ze.__awaiter(this,void 0,void 0,function(){return ze.__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})();eo.LargeFileUploadTask=Kv});var Yi=b(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.FileUpload=void 0;var Xv=Xe(),Jv=(function(){function e(t,r,n){if(this.content=t,this.name=r,this.size=n,!t||!r||!n)throw new Xv.GraphClientError("Please provide the upload content, name of the file and size of the file")}return a(e,"FileUpload"),e.prototype.sliceFile=function(t){return this.content.slice(t.minValue,t.maxValue+1)},e})();to.FileUpload=Jv});var Qi=b(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.getValidRangeSize=void 0;var Yv=5*1024*1024,Qv=a(function(e){return e>320*1024&&(e=Math.floor(e/(320*1024))*320*1024),e},"roundTo320KB"),eP=a(function(e){e===void 0&&(e=Yv);var t=60*1024*1024;return e>t&&(e=t),Qv(e)},"getValidRangeSize");ro.getValidRangeSize=eP});var Kp=b(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.OneDriveLargeFileUploadTask=void 0;var Je=(de(),ce(pe)),Wp=Xe(),tP=Yi(),rP=Ji(),nP=Qi(),oP=(function(e){Je.__extends(t,e);function t(r,n,o,i){return e.call(this,r,n,o,i)||this}return a(t,"OneDriveLargeFileUploadTask"),t.constructCreateSessionUrl=function(r,n){return n===void 0&&(n=t.DEFAULT_UPLOAD_PATH),r=r.trim(),n=n.trim(),n===""&&(n="/"),n[0]!=="/"&&(n="/".concat(n)),n[n.length-1]!=="/"&&(n="".concat(n,"/")),"/me/drive/root:".concat(n.split("/").map(function(o){return encodeURIComponent(o)}).join("/")).concat(encodeURIComponent(r),":/createUploadSession")},t.getFileInfo=function(r,n){var o,i;if(typeof Blob<"u"&&r instanceof Blob)o=new File([r],n),i=o.size;else if(typeof File<"u"&&r instanceof File)o=r,i=o.size;else if(typeof Uint8Array<"u"&&r instanceof Uint8Array){var s=r;i=s.byteLength,o=s.buffer.slice(s.byteOffset,s.byteOffset+s.byteLength)}return{content:o,size:i}},t.create=function(r,n,o){return Je.__awaiter(this,void 0,void 0,function(){var i,s,u;return Je.__generator(this,function(c){if(!r||!n||!o)throw new Wp.GraphClientError("Please provide the Graph client instance, file object and OneDriveLargeFileUploadOptions value");return i=o.fileName,s=t.getFileInfo(n,i),u=new tP.FileUpload(s.content,i,s.size),[2,this.createTaskWithFileObject(r,u,o)]})})},t.createTaskWithFileObject=function(r,n,o){return Je.__awaiter(this,void 0,void 0,function(){var i,s,u,c;return Je.__generator(this,function(d){switch(d.label){case 0:if(!r||!n||!o)throw new Wp.GraphClientError("Please provide the Graph client instance, FileObject interface implementation and OneDriveLargeFileUploadOptions value");return i=o.uploadSessionURL?o.uploadSessionURL:t.constructCreateSessionUrl(o.fileName,o.path),s={fileName:o.fileName,fileDescription:o.fileDescription,conflictBehavior:o.conflictBehavior},[4,t.createUploadSession(r,i,s)];case 1:return u=d.sent(),c=(0,nP.getValidRangeSize)(o.rangeSize),[2,new t(r,n,u,{rangeSize:c,uploadEventHandlers:o.uploadEventHandlers})]}})})},t.createUploadSession=function(r,n,o){return Je.__awaiter(this,void 0,void 0,function(){var i;return Je.__generator(this,function(s){return i={item:{"@microsoft.graph.conflictBehavior":o?.conflictBehavior||"rename",name:o?.fileName,description:o?.fileDescription}},[2,e.createUploadSession.call(this,r,n,i)]})})},t.prototype.commit=function(r,n){return n===void 0&&(n="rename"),Je.__awaiter(this,void 0,void 0,function(){var o;return Je.__generator(this,function(i){switch(i.label){case 0:return o={name:this.file.name,"@microsoft.graph.conflictBehavior":n,"@microsoft.graph.sourceUrl":this.uploadSession.url},[4,this.client.api(r).put(o)];case 1:return[2,i.sent()]}})})},t.DEFAULT_UPLOAD_PATH="/",t})(rP.LargeFileUploadTask);no.OneDriveLargeFileUploadTask=oP});var Jp=b(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.StreamUpload=void 0;var Xp=(de(),ce(pe)),Er=Xe(),iP=(function(){function e(t,r,n){if(this.content=t,this.name=r,this.size=n,!t||!r||!n)throw new Er.GraphClientError("Please provide the Readable Stream content, name of the file and size of the file")}return a(e,"StreamUpload"),e.prototype.sliceFile=function(t){return Xp.__awaiter(this,void 0,void 0,function(){var r,n,o,i,s,u,c;return Xp.__generator(this,function(d){switch(d.label){case 0:if(r=t.maxValue-t.minValue+1,n=[],this.previousSlice){if(t.minValue<this.previousSlice.range.minValue)throw new Er.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(o=this.previousSlice.range.minValue,i=this.previousSlice.range.maxValue,t.minValue===o&&t.maxValue===i)return[2,this.previousSlice.fileSlice];if(t.maxValue===i)return[2,this.previousSlice.fileSlice.slice(t.minValue,t.maxValue+1)];n.push(this.previousSlice.fileSlice.slice(t.minValue,i+1)),r=t.maxValue-i}}return this.content&&this.content.readable?this.content.readableLength>=r?(n.push(this.content.read(r)),[3,3]):[3,1]:[3,4];case 1:return u=(s=n).push,[4,this.readNBytesFromStream(r)];case 2:u.apply(s,[d.sent()]),d.label=3;case 3:return[3,5];case 4:throw new Er.GraphClientError("Stream is not readable.");case 5:return c=Buffer.concat(n),this.previousSlice={fileSlice:c,range:t},[2,c]}})})},e.prototype.readNBytesFromStream=function(t){var r=this;return new Promise(function(n,o){var i=[],s=t,u=0;r.content.on("end",function(){if(s>0)return o(new Er.GraphClientError("Stream ended before reading required range size"))}),r.content.on("readable",function(){for(var c;u<t&&(c=r.content.read(s))!==null;)u+=c.length,i.push(c),s>0&&(s=t-u);if(u===t)return n(Buffer.concat(i));if(!r.content||!r.content.readable)return o(new Er.GraphClientError("Error encountered while reading the stream during the upload"))})})},e})();oo.StreamUpload=iP});var Yp=b(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.PageIterator=void 0;var Ht=(de(),ce(pe)),aP=(function(){function e(t,r,n,o){this.client=t,this.collection=r.value,this.nextLink=r["@odata.nextLink"],this.deltaLink=r["@odata.deltaLink"],this.callback=n,this.cursor=0,this.complete=!1,this.requestOptions=o}return a(e,"PageIterator"),e.prototype.iterationHelper=function(){if(this.collection===void 0)return!1;for(var t=!0;t&&this.cursor<this.collection.length;){var r=this.collection[this.cursor];t=this.callback(r),this.cursor++}return t},e.prototype.fetchAndUpdateNextPageData=function(){return Ht.__awaiter(this,void 0,void 0,function(){var t,r;return Ht.__generator(this,function(n){switch(n.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 r=n.sent(),this.collection=r.value,this.cursor=0,this.nextLink=r["@odata.nextLink"],this.deltaLink=r["@odata.deltaLink"],[2]}})})},e.prototype.getDeltaLink=function(){return this.deltaLink},e.prototype.iterate=function(){return Ht.__awaiter(this,void 0,void 0,function(){var t;return Ht.__generator(this,function(r){switch(r.label){case 0:t=this.iterationHelper(),r.label=1;case 1:return t?this.nextLink===void 0?[3,3]:[4,this.fetchAndUpdateNextPageData()]:[3,5];case 2:return r.sent(),t=this.iterationHelper(),[3,4];case 3:t=!1,r.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 Ht.__awaiter(this,void 0,void 0,function(){return Ht.__generator(this,function(t){return[2,this.iterate()]})})},e.prototype.isComplete=function(){return this.complete},e})();io.PageIterator=aP});var ea=b(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.CustomAuthenticationProvider=void 0;var ao=(de(),ce(pe)),Qp=Xe(),sP=(function(){function e(t){this.provider=t}return a(e,"CustomAuthenticationProvider"),e.prototype.getAccessToken=function(){return ao.__awaiter(this,void 0,void 0,function(){var t=this;return ao.__generator(this,function(r){return[2,new Promise(function(n,o){t.provider(function(i,s){return ao.__awaiter(t,void 0,void 0,function(){var u,c;return ao.__generator(this,function(d){switch(d.label){case 0:return s?(n(s),[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 Qp.GraphClientError(u)),[4,Qp.GraphClientError.setGraphClientError(i)];case 2:c=d.sent(),o(c),d.label=3;case 3:return[2]}})})})})]})})},e})();so.CustomAuthenticationProvider=sP});var ta=b(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.GraphError=void 0;var uP=(de(),ce(pe)),cP=(function(e){uP.__extends(t,e);function t(r,n,o){r===void 0&&(r=-1);var i=e.call(this,n||o&&o.message)||this;return Object.setPrototypeOf(i,t.prototype),i.statusCode=r,i.code=null,i.requestId=null,i.date=new Date,i.body=null,i.stack=o?o.stack:i.stack,i}return a(t,"GraphError"),t})(Error);uo.GraphError=cP});var td=b(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.GraphErrorHandler=void 0;var ed=(de(),ce(pe)),ra=ta(),lP=(function(){function e(){}return a(e,"GraphErrorHandler"),e.constructError=function(t,r,n){var o=new ra.GraphError(r,"",t);return t.name!==void 0&&(o.code=t.name),o.body=t.toString(),o.date=new Date,o.headers=n?.headers,o},e.constructErrorFromResponse=function(t,r,n){var o=t.error,i=new ra.GraphError(r,o.message);return i.code=o.code,o.innerError!==void 0&&(i.requestId=o.innerError["request-id"],i.date=new Date(o.innerError.date)),i.body=JSON.stringify(o),i.headers=n?.headers,i},e.getError=function(t,r,n,o){return t===void 0&&(t=null),r===void 0&&(r=-1),ed.__awaiter(this,void 0,void 0,function(){var i;return ed.__generator(this,function(s){if(t&&t.error?i=e.constructErrorFromResponse(t,r,o):t instanceof Error?i=e.constructError(t,r,o):(i=new ra.GraphError(r),i.body=t),typeof n=="function")n(i,null);else return[2,i];return[2]})})},e})();co.GraphErrorHandler=lP});var na=b(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.GraphRequest=void 0;var ie=(de(),ce(pe)),pP=Xe(),dP=td(),Ir=En(),fP=Gi(),mP=pt(),vt=_r(),hP=Tr(),gP=(function(){function e(t,r,n){var o=this;this.parsePath=function(i){if(i.indexOf("https://")!==-1){i=i.replace("https://","");var s=i.indexOf("/");s!==-1&&(o.urlComponents.host="https://"+i.substring(0,s),i=i.substring(s+1,i.length));var u=i.indexOf("/");u!==-1&&(o.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)o.urlComponents.path=i;else{o.urlComponents.path=i.substr(0,c);for(var d=i.substring(c+1,i.length).split("&"),f=0,v=d;f<v.length;f++){var y=v[f];o.parseQueryParameter(y)}}},this.httpClient=t,this.config=r,this.urlComponents={host:this.config.baseUrl,version:this.config.defaultVersion,oDataQueryParams:{},otherURLQueryParams:{},otherURLQueryOptions:[]},this._headers={},this._options={},this._middlewareOptions=[],this.parsePath(n)}return a(e,"GraphRequest"),e.prototype.addCsvQueryParameter=function(t,r,n){this.urlComponents.oDataQueryParams[t]=this.urlComponents.oDataQueryParams[t]?this.urlComponents.oDataQueryParams[t]+",":"";var o=[];n.length>1&&typeof r=="string"?o=Array.prototype.slice.call(n):typeof r=="string"?o.push(r):o=o.concat(r),this.urlComponents.oDataQueryParams[t]+=o.join(",")},e.prototype.buildFullUrl=function(){var t=(0,Ir.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,r=[];if(Object.keys(t.oDataQueryParams).length!==0)for(var n in t.oDataQueryParams)Object.prototype.hasOwnProperty.call(t.oDataQueryParams,n)&&r.push(n+"="+t.oDataQueryParams[n]);if(Object.keys(t.otherURLQueryParams).length!==0)for(var n in t.otherURLQueryParams)Object.prototype.hasOwnProperty.call(t.otherURLQueryParams,n)&&r.push(n+"="+t.otherURLQueryParams[n]);if(t.otherURLQueryOptions.length!==0)for(var o=0,i=t.otherURLQueryOptions;o<i.length;o++){var s=i[o];r.push(s)}return r.length>0?"?"+r.join("&"):""},e.prototype.parseQueryParameter=function(t){if(typeof t=="string")if(t.charAt(0)==="?"&&(t=t.substring(1)),t.indexOf("&")!==-1)for(var r=t.split("&"),n=0,o=r;n<o.length;n++){var i=o[n];this.parseQueryParamenterString(i)}else this.parseQueryParamenterString(t);else if(t.constructor===Object)for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&this.setURLComponentsQueryParamater(s,t[s]);return this},e.prototype.parseQueryParamenterString=function(t){if(this.isValidQueryKeyValuePair(t)){var r=t.indexOf("="),n=t.substring(0,r),o=t.substring(r+1);this.setURLComponentsQueryParamater(n,o)}else this.urlComponents.otherURLQueryOptions.push(t)},e.prototype.setURLComponentsQueryParamater=function(t,r){if(Ir.oDataQueryNames.indexOf(t)!==-1){var n=this.urlComponents.oDataQueryParams[t],o=n&&(t==="$expand"||t==="$select"||t==="$orderby");this.urlComponents.oDataQueryParams[t]=o?n+","+r:r}else this.urlComponents.otherURLQueryParams[t]=r},e.prototype.isValidQueryKeyValuePair=function(t){var r=t.indexOf("=");if(r===-1)return!1;var n=t.indexOf("(");return!(n!==-1&&t.indexOf("(")<r)},e.prototype.updateRequestOptions=function(t){var r=ie.__assign({},t.headers);if(this.config.fetchOptions!==void 0){var n=ie.__assign({},this.config.fetchOptions);Object.assign(t,n),typeof this.config.fetchOptions.headers!==void 0&&(t.headers=ie.__assign({},this.config.fetchOptions.headers))}Object.assign(t,this._options),t.headers!==void 0&&Object.assign(r,t.headers),Object.assign(r,this._headers),t.headers=r},e.prototype.send=function(t,r,n){var o;return ie.__awaiter(this,void 0,void 0,function(){var i,s,u,c,d,f,v,y;return ie.__generator(this,function(p){switch(p.label){case 0:s=new mP.MiddlewareControl(this._middlewareOptions),this.updateRequestOptions(r),u=(o=this.config)===null||o===void 0?void 0:o.customHosts,p.label=1;case 1:return p.trys.push([1,4,,6]),[4,this.httpClient.sendRequest({request:t,options:r,middlewareControl:s,customHosts:u})];case 2:return c=p.sent(),i=c.response,[4,fP.GraphResponseHandler.getResponse(i,this._responseType,n)];case 3:return d=p.sent(),[2,d];case 4:if(f=p.sent(),f instanceof pP.GraphClientError)throw f;return v=void 0,i&&(v=i.status),[4,dP.GraphErrorHandler.getError(f,v,n,i)];case 5:throw y=p.sent(),y;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),r=0,n=t;r<n.length;r++){var o=n[r];if(o.toLowerCase()==="content-type")return}this.header("Content-Type","application/json")},e.prototype.header=function(t,r){return this._headers[t]=r,this},e.prototype.headers=function(t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this._headers[r]=t[r]);return this},e.prototype.option=function(t,r){return this._options[t]=r,this},e.prototype.options=function(t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this._options[r]=t[r]);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 ie.__awaiter(this,void 0,void 0,function(){var r,n,o;return ie.__generator(this,function(i){switch(i.label){case 0:return r=this.buildFullUrl(),n={method:vt.RequestMethod.GET},[4,this.send(r,n,t)];case 1:return o=i.sent(),[2,o]}})})},e.prototype.post=function(t,r){return ie.__awaiter(this,void 0,void 0,function(){var n,o,i;return ie.__generator(this,function(s){switch(s.label){case 0:return n=this.buildFullUrl(),o={method:vt.RequestMethod.POST,body:(0,Ir.serializeContent)(t)},i=t&&t.constructor&&t.constructor.name,i==="FormData"?o.headers={}:(this.setHeaderContentType(),o.headers=this._headers),[4,this.send(n,o,r)];case 1:return[2,s.sent()]}})})},e.prototype.create=function(t,r){return ie.__awaiter(this,void 0,void 0,function(){return ie.__generator(this,function(n){switch(n.label){case 0:return[4,this.post(t,r)];case 1:return[2,n.sent()]}})})},e.prototype.put=function(t,r){return ie.__awaiter(this,void 0,void 0,function(){var n,o;return ie.__generator(this,function(i){switch(i.label){case 0:return n=this.buildFullUrl(),this.setHeaderContentType(),o={method:vt.RequestMethod.PUT,body:(0,Ir.serializeContent)(t)},[4,this.send(n,o,r)];case 1:return[2,i.sent()]}})})},e.prototype.patch=function(t,r){return ie.__awaiter(this,void 0,void 0,function(){var n,o;return ie.__generator(this,function(i){switch(i.label){case 0:return n=this.buildFullUrl(),this.setHeaderContentType(),o={method:vt.RequestMethod.PATCH,body:(0,Ir.serializeContent)(t)},[4,this.send(n,o,r)];case 1:return[2,i.sent()]}})})},e.prototype.update=function(t,r){return ie.__awaiter(this,void 0,void 0,function(){return ie.__generator(this,function(n){switch(n.label){case 0:return[4,this.patch(t,r)];case 1:return[2,n.sent()]}})})},e.prototype.delete=function(t){return ie.__awaiter(this,void 0,void 0,function(){var r,n;return ie.__generator(this,function(o){switch(o.label){case 0:return r=this.buildFullUrl(),n={method:vt.RequestMethod.DELETE},[4,this.send(r,n,t)];case 1:return[2,o.sent()]}})})},e.prototype.del=function(t){return ie.__awaiter(this,void 0,void 0,function(){return ie.__generator(this,function(r){switch(r.label){case 0:return[4,this.delete(t)];case 1:return[2,r.sent()]}})})},e.prototype.getStream=function(t){return ie.__awaiter(this,void 0,void 0,function(){var r,n;return ie.__generator(this,function(o){switch(o.label){case 0:return r=this.buildFullUrl(),n={method:vt.RequestMethod.GET},this.responseType(hP.ResponseType.STREAM),[4,this.send(r,n,t)];case 1:return[2,o.sent()]}})})},e.prototype.putStream=function(t,r){return ie.__awaiter(this,void 0,void 0,function(){var n,o;return ie.__generator(this,function(i){switch(i.label){case 0:return n=this.buildFullUrl(),o={method:vt.RequestMethod.PUT,headers:{"Content-Type":"application/octet-stream"},body:t},[4,this.send(n,o,r)];case 1:return[2,i.sent()]}})})},e})();lo.GraphRequest=gP});var oa=b(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.HTTPClient=void 0;var rd=(de(),ce(pe)),yP=(function(){function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(!t||!t.length){var n=new Error;throw n.name="InvalidMiddlewareChain",n.message="Please provide a default middleware chain or custom middleware chain",n}this.setMiddleware.apply(this,t)}return a(e,"HTTPClient"),e.prototype.setMiddleware=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];t.length>1?this.parseMiddleWareArray(t):this.middleware=t[0]},e.prototype.parseMiddleWareArray=function(t){t.forEach(function(r,n){n<t.length-1&&r.setNext(t[n+1])}),this.middleware=t[0]},e.prototype.sendRequest=function(t){return rd.__awaiter(this,void 0,void 0,function(){var r;return rd.__generator(this,function(n){switch(n.label){case 0:if(typeof t.request=="string"&&t.options===void 0)throw r=new Error,r.name="InvalidRequestOptions",r.message="Unable to execute the middleware, Please provide valid options for a request",r;return[4,this.middleware.execute(t)];case 1:return n.sent(),[2,t]}})})},e})();po.HTTPClient=yP});var od=b(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.HTTPClientFactory=void 0;var vP=(de(),ce(pe)),nd=oa(),PP=wn(),_P=On(),xP=br(),bP=xr(),TP=Nn(),EP=Dn(),IP=jn(),SP=a(function(){return typeof process=="object"&&typeof require=="function"},"isNodeEnvironment"),AP=(function(){function e(){}return a(e,"HTTPClientFactory"),e.createWithAuthenticationProvider=function(t){var r=new PP.AuthenticationHandler(t),n=new EP.RetryHandler(new bP.RetryHandlerOptions),o=new IP.TelemetryHandler,i=new _P.HTTPMessageHandler;if(r.setNext(n),SP()){var s=new TP.RedirectHandler(new xP.RedirectHandlerOptions);n.setNext(s),s.setNext(o)}else n.setNext(o);return o.setNext(i),e.createWithMiddleware(r)},e.createWithMiddleware=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new(nd.HTTPClient.bind.apply(nd.HTTPClient,vP.__spreadArray([void 0],t,!1)))},e})();fo.HTTPClientFactory=AP});var id=b(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.validatePolyFilling=void 0;var wP=a(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");mo.validatePolyFilling=wP});var ud=b(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.Client=void 0;var $P=(de(),ce(pe)),ad=Li(),OP=ea(),RP=na(),sd=oa(),zP=od(),DP=id(),kP=(function(){function e(t){this.config={baseUrl:ad.GRAPH_BASE_URL,debugLogging:!1,defaultVersion:ad.GRAPH_API_VERSION},(0,DP.validatePolyFilling)();for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this.config[r]=t[r]);var n;if(t.authProvider!==void 0&&t.middleware!==void 0){var o=new Error;throw o.name="AmbiguityInInitialization",o.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain not both",o}else if(t.authProvider!==void 0)n=zP.HTTPClientFactory.createWithAuthenticationProvider(t.authProvider);else if(t.middleware!==void 0)n=new(sd.HTTPClient.bind.apply(sd.HTTPClient,$P.__spreadArray([void 0],[].concat(t.middleware),!1)));else{var o=new Error;throw o.name="InvalidMiddlewareChain",o.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain",o}this.httpClient=n}return a(e,"Client"),e.init=function(t){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=n==="authProvider"?new OP.CustomAuthenticationProvider(t[n]):t[n]);return e.initWithMiddleware(r)},e.initWithMiddleware=function(t){return new e(t)},e.prototype.api=function(t){return new RP.GraphRequest(this.httpClient,this.config,t)},e})();ho.Client=kP});var ae=b(R=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0});R.ResponseType=R.GraphRequest=R.GraphClientError=R.GraphError=R.CustomAuthenticationProvider=R.Client=R.PageIterator=R.Range=R.UploadResult=R.FileUpload=R.StreamUpload=R.getValidRangeSize=R.OneDriveLargeFileUploadTask=R.LargeFileUploadTask=R.ChaosHandler=R.ChaosStrategy=R.ChaosHandlerOptions=R.TelemetryHandlerOptions=R.FeatureUsageFlag=R.RedirectHandlerOptions=R.RetryHandlerOptions=R.AuthenticationHandlerOptions=R.MiddlewareFactory=R.TelemetryHandler=R.RedirectHandler=R.RetryHandler=R.HTTPMessageHandler=R.AuthenticationHandler=R.BatchResponseContent=R.BatchRequestContent=void 0;var CP=Ep();Object.defineProperty(R,"BatchRequestContent",{enumerable:!0,get:a(function(){return CP.BatchRequestContent},"get")});var NP=Ip();Object.defineProperty(R,"BatchResponseContent",{enumerable:!0,get:a(function(){return NP.BatchResponseContent},"get")});var UP=wn();Object.defineProperty(R,"AuthenticationHandler",{enumerable:!0,get:a(function(){return UP.AuthenticationHandler},"get")});var MP=On();Object.defineProperty(R,"HTTPMessageHandler",{enumerable:!0,get:a(function(){return MP.HTTPMessageHandler},"get")});var LP=Dn();Object.defineProperty(R,"RetryHandler",{enumerable:!0,get:a(function(){return LP.RetryHandler},"get")});var jP=Nn();Object.defineProperty(R,"RedirectHandler",{enumerable:!0,get:a(function(){return jP.RedirectHandler},"get")});var FP=jn();Object.defineProperty(R,"TelemetryHandler",{enumerable:!0,get:a(function(){return FP.TelemetryHandler},"get")});var VP=jp();Object.defineProperty(R,"MiddlewareFactory",{enumerable:!0,get:a(function(){return VP.MiddlewareFactory},"get")});var BP=ji();Object.defineProperty(R,"AuthenticationHandlerOptions",{enumerable:!0,get:a(function(){return BP.AuthenticationHandlerOptions},"get")});var HP=xr();Object.defineProperty(R,"RetryHandlerOptions",{enumerable:!0,get:a(function(){return HP.RetryHandlerOptions},"get")});var ZP=br();Object.defineProperty(R,"RedirectHandlerOptions",{enumerable:!0,get:a(function(){return ZP.RedirectHandlerOptions},"get")});var cd=Lt();Object.defineProperty(R,"FeatureUsageFlag",{enumerable:!0,get:a(function(){return cd.FeatureUsageFlag},"get")});Object.defineProperty(R,"TelemetryHandlerOptions",{enumerable:!0,get:a(function(){return cd.TelemetryHandlerOptions},"get")});var qP=Hi();Object.defineProperty(R,"ChaosHandlerOptions",{enumerable:!0,get:a(function(){return qP.ChaosHandlerOptions},"get")});var GP=Bn();Object.defineProperty(R,"ChaosStrategy",{enumerable:!0,get:a(function(){return GP.ChaosStrategy},"get")});var WP=Zp();Object.defineProperty(R,"ChaosHandler",{enumerable:!0,get:a(function(){return WP.ChaosHandler},"get")});var KP=Ji();Object.defineProperty(R,"LargeFileUploadTask",{enumerable:!0,get:a(function(){return KP.LargeFileUploadTask},"get")});var XP=Kp();Object.defineProperty(R,"OneDriveLargeFileUploadTask",{enumerable:!0,get:a(function(){return XP.OneDriveLargeFileUploadTask},"get")});var JP=Qi();Object.defineProperty(R,"getValidRangeSize",{enumerable:!0,get:a(function(){return JP.getValidRangeSize},"get")});var YP=Jp();Object.defineProperty(R,"StreamUpload",{enumerable:!0,get:a(function(){return YP.StreamUpload},"get")});var QP=Yi();Object.defineProperty(R,"FileUpload",{enumerable:!0,get:a(function(){return QP.FileUpload},"get")});var e_=Ki();Object.defineProperty(R,"UploadResult",{enumerable:!0,get:a(function(){return e_.UploadResult},"get")});var t_=Wi();Object.defineProperty(R,"Range",{enumerable:!0,get:a(function(){return t_.Range},"get")});var r_=Yp();Object.defineProperty(R,"PageIterator",{enumerable:!0,get:a(function(){return r_.PageIterator},"get")});var n_=ud();Object.defineProperty(R,"Client",{enumerable:!0,get:a(function(){return n_.Client},"get")});var o_=ea();Object.defineProperty(R,"CustomAuthenticationProvider",{enumerable:!0,get:a(function(){return o_.CustomAuthenticationProvider},"get")});var i_=ta();Object.defineProperty(R,"GraphError",{enumerable:!0,get:a(function(){return i_.GraphError},"get")});var a_=Xe();Object.defineProperty(R,"GraphClientError",{enumerable:!0,get:a(function(){return a_.GraphClientError},"get")});var s_=na();Object.defineProperty(R,"GraphRequest",{enumerable:!0,get:a(function(){return s_.GraphRequest},"get")});var u_=Tr();Object.defineProperty(R,"ResponseType",{enumerable:!0,get:a(function(){return u_.ResponseType},"get")})});var Zt=b((sa,ua)=>{(function(e,t){typeof sa=="object"&&typeof ua<"u"?ua.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(sa,(function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",o="second",i="minute",s="hour",u="day",c="week",d="month",f="quarter",v="year",y="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,P=/\[([^\]]+)]|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,h={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:a(function(L){var $=["th","st","nd","rd"],I=L%100;return"["+L+($[(I-20)%10]||$[I]||$[0])+"]"},"ordinal")},x=a(function(L,$,I){var D=String(L);return!D||D.length>=$?L:""+Array($+1-D.length).join(I)+L},"m"),E={s:x,z:a(function(L){var $=-L.utcOffset(),I=Math.abs($),D=Math.floor(I/60),w=I%60;return($<=0?"+":"-")+x(D,2,"0")+":"+x(w,2,"0")},"z"),m:a(function L($,I){if($.date()<I.date())return-L(I,$);var D=12*(I.year()-$.year())+(I.month()-$.month()),w=$.clone().add(D,d),W=I-w<0,K=$.clone().add(D+(W?-1:1),d);return+(-(D+(I-w)/(W?w-K:K-w))||0)},"t"),a:a(function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},"a"),p:a(function(L){return{M:d,y:v,w:c,d:u,D:y,h:s,m:i,s:o,ms:n,Q:f}[L]||String(L||"").toLowerCase().replace(/s$/,"")},"p"),u:a(function(L){return L===void 0},"u")},q="en",he={};he[q]=h;var we=a(function(L){return L instanceof $e},"p"),De=a(function L($,I,D){var w;if(!$)return q;if(typeof $=="string"){var W=$.toLowerCase();he[W]&&(w=W),I&&(he[W]=I,w=W);var K=$.split("-");if(!w&&K.length>1)return L(K[0])}else{var ne=$.name;he[ne]=$,w=ne}return!D&&w&&(q=w),w||!D&&q},"t"),ve=a(function(L,$){if(we(L))return L.clone();var I=typeof $=="object"?$:{};return I.date=L,I.args=arguments,new $e(I)},"w"),X=E;X.l=De,X.i=we,X.w=function(L,$){return ve(L,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var $e=(function(){function L(I){this.$L=De(I.locale,null,!0),this.parse(I)}a(L,"M");var $=L.prototype;return $.parse=function(I){this.$d=(function(D){var w=D.date,W=D.utc;if(w===null)return new Date(NaN);if(X.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var K=w.match(m);if(K){var ne=K[2]-1||0,ge=(K[7]||"0").substring(0,3);return W?new Date(Date.UTC(K[1],ne,K[3]||1,K[4]||0,K[5]||0,K[6]||0,ge)):new Date(K[1],ne,K[3]||1,K[4]||0,K[5]||0,K[6]||0,ge)}}return new Date(w)})(I),this.$x=I.x||{},this.init()},$.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},$.$utils=function(){return X},$.isValid=function(){return this.$d.toString()!==p},$.isSame=function(I,D){var w=ve(I);return this.startOf(D)<=w&&w<=this.endOf(D)},$.isAfter=function(I,D){return ve(I)<this.startOf(D)},$.isBefore=function(I,D){return this.endOf(D)<ve(I)},$.$g=function(I,D,w){return X.u(I)?this[D]:this.set(w,I)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(I,D){var w=this,W=!!X.u(D)||D,K=X.p(I),ne=a(function(ft,Oe){var Qe=X.w(w.$u?Date.UTC(w.$y,Oe,ft):new Date(w.$y,Oe,ft),w);return W?Qe:Qe.endOf(u)},"l"),ge=a(function(ft,Oe){return X.w(w.toDate()[ft].apply(w.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(Oe)),w)},"$"),xe=this.$W,Ee=this.$M,Ne=this.$D,Pt="set"+(this.$u?"UTC":"");switch(K){case v:return W?ne(1,0):ne(31,11);case d:return W?ne(1,Ee):ne(0,Ee+1);case c:var dt=this.$locale().weekStart||0,qt=(xe<dt?xe+7:xe)-dt;return ne(W?Ne-qt:Ne+(6-qt),Ee);case u:case y:return ge(Pt+"Hours",0);case s:return ge(Pt+"Minutes",1);case i:return ge(Pt+"Seconds",2);case o:return ge(Pt+"Milliseconds",3);default:return this.clone()}},$.endOf=function(I){return this.startOf(I,!1)},$.$set=function(I,D){var w,W=X.p(I),K="set"+(this.$u?"UTC":""),ne=(w={},w[u]=K+"Date",w[y]=K+"Date",w[d]=K+"Month",w[v]=K+"FullYear",w[s]=K+"Hours",w[i]=K+"Minutes",w[o]=K+"Seconds",w[n]=K+"Milliseconds",w)[W],ge=W===u?this.$D+(D-this.$W):D;if(W===d||W===v){var xe=this.clone().set(y,1);xe.$d[ne](ge),xe.init(),this.$d=xe.set(y,Math.min(this.$D,xe.daysInMonth())).$d}else ne&&this.$d[ne](ge);return this.init(),this},$.set=function(I,D){return this.clone().$set(I,D)},$.get=function(I){return this[X.p(I)]()},$.add=function(I,D){var w,W=this;I=Number(I);var K=X.p(D),ne=a(function(Ee){var Ne=ve(W);return X.w(Ne.date(Ne.date()+Math.round(Ee*I)),W)},"y");if(K===d)return this.set(d,this.$M+I);if(K===v)return this.set(v,this.$y+I);if(K===u)return ne(1);if(K===c)return ne(7);var ge=(w={},w[i]=t,w[s]=r,w[o]=e,w)[K]||1,xe=this.$d.getTime()+I*ge;return X.w(xe,this)},$.subtract=function(I,D){return this.add(-1*I,D)},$.format=function(I){var D=this,w=this.$locale();if(!this.isValid())return w.invalidDate||p;var W=I||"YYYY-MM-DDTHH:mm:ssZ",K=X.z(this),ne=this.$H,ge=this.$m,xe=this.$M,Ee=w.weekdays,Ne=w.months,Pt=w.meridiem,dt=a(function(Oe,Qe,Gt,kr){return Oe&&(Oe[Qe]||Oe(D,W))||Gt[Qe].slice(0,kr)},"h"),qt=a(function(Oe){return X.s(ne%12||12,Oe,"0")},"d"),ft=Pt||function(Oe,Qe,Gt){var kr=Oe<12?"AM":"PM";return Gt?kr.toLowerCase():kr};return W.replace(P,(function(Oe,Qe){return Qe||(function(Gt){switch(Gt){case"YY":return String(D.$y).slice(-2);case"YYYY":return X.s(D.$y,4,"0");case"M":return xe+1;case"MM":return X.s(xe+1,2,"0");case"MMM":return dt(w.monthsShort,xe,Ne,3);case"MMMM":return dt(Ne,xe);case"D":return D.$D;case"DD":return X.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return dt(w.weekdaysMin,D.$W,Ee,2);case"ddd":return dt(w.weekdaysShort,D.$W,Ee,3);case"dddd":return Ee[D.$W];case"H":return String(ne);case"HH":return X.s(ne,2,"0");case"h":return qt(1);case"hh":return qt(2);case"a":return ft(ne,ge,!0);case"A":return ft(ne,ge,!1);case"m":return String(ge);case"mm":return X.s(ge,2,"0");case"s":return String(D.$s);case"ss":return X.s(D.$s,2,"0");case"SSS":return X.s(D.$ms,3,"0");case"Z":return K}return null})(Oe)||K.replace(":","")}))},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(I,D,w){var W,K=this,ne=X.p(D),ge=ve(I),xe=(ge.utcOffset()-this.utcOffset())*t,Ee=this-ge,Ne=a(function(){return X.m(K,ge)},"D");switch(ne){case v:W=Ne()/12;break;case d:W=Ne();break;case f:W=Ne()/3;break;case c:W=(Ee-xe)/6048e5;break;case u:W=(Ee-xe)/864e5;break;case s:W=Ee/r;break;case i:W=Ee/t;break;case o:W=Ee/e;break;default:W=Ee}return w?W:X.a(W)},$.daysInMonth=function(){return this.endOf(d).$D},$.$locale=function(){return he[this.$L]},$.locale=function(I,D){if(!I)return this.$L;var w=this.clone(),W=De(I,D,!0);return W&&(w.$L=W),w},$.clone=function(){return X.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},L})(),Dr=$e.prototype;return ve.prototype=Dr,[["$ms",n],["$s",o],["$m",i],["$H",s],["$W",u],["$M",d],["$y",v],["$D",y]].forEach((function(L){Dr[L[1]]=function($){return this.$g($,L[0],L[1])}})),ve.extend=function(L,$){return L.$i||(L($,$e,ve),L.$i=!0),ve},ve.locale=De,ve.isDayjs=we,ve.unix=function(L){return ve(1e3*L)},ve.en=he[q],ve.Ls=he,ve.p={},ve}))});var y_={};So(y_,{microsoftSharePoint:()=>g_});module.exports=ce(y_);var sf=Object.freeze({status:"aborted"});function z(e,t,r){function n(u,c){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:c,constr:s,traits:new Set},enumerable:!1}),u._zod.traits.has(e))return;u._zod.traits.add(e),t(u,c);let d=s.prototype,f=Object.keys(d);for(let v=0;v<f.length;v++){let y=f[v];y in u||(u[y]=d[y].bind(u))}}a(n,"init");let o=r?.Parent??Object;class i extends o{static{a(this,"Definition")}}Object.defineProperty(i,"name",{value:e});function s(u){var c;let d=r?.Parent?new i:this;n(d,u),(c=d._zod).deferred??(c.deferred=[]);for(let f of d._zod.deferred)f();return d}return a(s,"_"),Object.defineProperty(s,"init",{value:n}),Object.defineProperty(s,Symbol.hasInstance,{value:a(u=>r?.Parent&&u instanceof r.Parent?!0:u?._zod?.traits?.has(e),"value")}),Object.defineProperty(s,"name",{value:e}),s}a(z,"$constructor");var Ve=class extends Error{static{a(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Cr=class extends Error{static{a(this,"$ZodEncodeError")}constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Ao={};function He(e){return e&&Object.assign(Ao,e),Ao}a(He,"config");function $o(e){let t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,o])=>t.indexOf(+n)===-1).map(([n,o])=>o)}a($o,"getEnumValues");function fa(e,t){return typeof t=="bigint"?t.toString():t}a(fa,"jsonStringifyReplacer");function Ur(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}a(Ur,"cached");function ma(e){return e==null}a(ma,"nullish");function Mr(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}a(Mr,"cleanRegex");var da=Symbol("evaluating");function Pe(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==da)return n===void 0&&(n=da,n=r()),n},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}a(Pe,"defineLazy");var Oo="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Kt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}a(Kt,"isObject");var uf=Ur(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function ha(e){if(Kt(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Kt(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}a(ha,"isPlainObject");var ga=new Set(["string","number","symbol"]);function _t(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}a(_t,"escapeRegex");function Lr(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}a(Lr,"clone");function se(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:a(()=>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:a(()=>t.error,"error")}:t}a(se,"normalizeParams");function ya(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}a(ya,"optionalKeys");var va={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function xt(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}a(xt,"aborted");function et(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}a(et,"prefixIssues");function Nr(e){return typeof e=="string"?e:e?.message}a(Nr,"unwrapMessage");function tt(e,t,r){let n={...e,path:e.path??[]};if(!e.message){let o=Nr(e.inst?._zod.def?.error?.(e))??Nr(t?.error?.(e))??Nr(r.customError?.(e))??Nr(r.localeError?.(e))??"Invalid input";n.message=o}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}a(tt,"finalizeIssue");function Pa(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}a(Pa,"getLengthableOrigin");function Ro(...e){let[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}a(Ro,"issue");var _a=a((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,fa,2),Object.defineProperty(e,"toString",{value:a(()=>e.message,"value"),enumerable:!1})},"initializer"),xa=z("$ZodError",_a),Xt=z("$ZodError",_a,{Parent:Error});var lf=a(e=>(t,r,n,o)=>{let i=n?Object.assign(n,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise)throw new Ve;if(s.issues.length){let u=new(o?.Err??e)(s.issues.map(c=>tt(c,i,He())));throw Oo(u,o?.callee),u}return s.value},"_parse"),jr=lf(Xt),pf=a(e=>async(t,r,n,o)=>{let i=n?Object.assign(n,{async:!0}):{async:!0},s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){let u=new(o?.Err??e)(s.issues.map(c=>tt(c,i,He())));throw Oo(u,o?.callee),u}return s.value},"_parseAsync"),Fr=pf(Xt),df=a(e=>(t,r,n)=>{let o=n?{...n,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise)throw new Ve;return i.issues.length?{success:!1,error:new(e??xa)(i.issues.map(s=>tt(s,o,He())))}:{success:!0,data:i.value}},"_safeParse"),Jt=df(Xt),ff=a(e=>async(t,r,n)=>{let o=n?Object.assign(n,{async:!0}):{async:!0},i=t._zod.run({value:r,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(s=>tt(s,o,He())))}:{success:!0,data:i.value}},"_safeParseAsync"),Yt=ff(Xt);var mf="(?:(?:\\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])))",hf=new RegExp(`^${mf}$`);var ba=a(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},"string"),Ta=/^-?\d+n?$/,Ea=/^-?\d+$/,zo=/^-?\d+(?:\.\d+)?$/,Ia=/^(?:true|false)$/i;var rt=z("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),gf={number:"number",bigint:"bigint",object:"date"};var Sa=z("$ZodCheckGreaterThan",(e,t)=>{rt.init(e,t);let r=gf[typeof t.value];e._zod.onattach.push(n=>{let o=n._zod.bag,i=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}});var Aa=z("$ZodCheckNumberFormat",(e,t)=>{rt.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),n=r?"int":"number",[o,i]=va[t.format];e._zod.onattach.push(s=>{let u=s._zod.bag;u.format=t.format,u.minimum=o,u.maximum=i,r&&(u.pattern=Ea)}),e._zod.check=s=>{let u=s.value;if(r){if(!Number.isInteger(u)){s.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:u,inst:e});return}if(!Number.isSafeInteger(u)){u>0?s.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}):s.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort});return}}u<o&&s.issues.push({origin:"number",input:u,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),u>i&&s.issues.push({origin:"number",input:u,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}});var wa=z("$ZodCheckMinLength",(e,t)=>{var r;rt.init(e,t),(r=e._zod.def).when??(r.when=n=>{let o=n.value;return!ma(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let o=n.value;if(o.length>=t.minimum)return;let s=Pa(o);n.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}});var Do=z("$ZodCheckStringFormat",(e,t)=>{var r,n;rt.init(e,t),e._zod.onattach.push(o=>{let i=o._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),$a=z("$ZodCheckRegex",(e,t)=>{Do.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}});var Ra={major:4,minor:3,patch:6};var fe=z("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Ra;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let o of n)for(let i of o._zod.onattach)i(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let o=a((s,u,c)=>{let d=xt(s),f;for(let v of u){if(v._zod.def.when){if(!v._zod.def.when(s))continue}else if(d)continue;let y=s.issues.length,p=v._zod.check(s);if(p instanceof Promise&&c?.async===!1)throw new Ve;if(f||p instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await p,s.issues.length!==y&&(d||(d=xt(s,y)))});else{if(s.issues.length===y)continue;d||(d=xt(s,y))}}return f?f.then(()=>s):s},"runChecks"),i=a((s,u,c)=>{if(xt(s))return s.aborted=!0,s;let d=o(u,n,c);if(d instanceof Promise){if(c.async===!1)throw new Ve;return d.then(f=>e._zod.parse(f,c))}return e._zod.parse(d,c)},"handleCanaryResult");e._zod.run=(s,u)=>{if(u.skipChecks)return e._zod.parse(s,u);if(u.direction==="backward"){let d=e._zod.parse({value:s.value,issues:[]},{...u,skipChecks:!0});return d instanceof Promise?d.then(f=>i(f,s,u)):i(d,s,u)}let c=e._zod.parse(s,u);if(c instanceof Promise){if(u.async===!1)throw new Ve;return c.then(d=>o(d,n,u))}return o(c,n,u)}}Pe(e,"~standard",()=>({validate:a(o=>{try{let i=Jt(e,o);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return Yt(e,o).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},"validate"),vendor:"zod",version:1}))}),Hr=z("$ZodString",(e,t)=>{fe.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??ba(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),ko=z("$ZodStringFormat",(e,t)=>{Do.init(e,t),Hr.init(e,t)});var Na=z("$ZodURL",(e,t)=>{ko.init(e,t),e._zod.check=r=>{try{let n=r.value.trim(),o=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=o.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}});var Co=z("$ZodNumber",(e,t)=>{fe.init(e,t),e._zod.pattern=e._zod.bag.pattern??zo,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let o=r.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return r;let i=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...i?{received:i}:{}}),r}}),Ua=z("$ZodNumberFormat",(e,t)=>{Aa.init(e,t),Co.init(e,t)}),No=z("$ZodBoolean",(e,t)=>{fe.init(e,t),e._zod.pattern=Ia,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch{}let o=r.value;return typeof o=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),r}}),Ma=z("$ZodBigInt",(e,t)=>{fe.init(e,t),e._zod.pattern=Ta,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}});var La=z("$ZodAny",(e,t)=>{fe.init(e,t),e._zod.parse=r=>r}),ja=z("$ZodUnknown",(e,t)=>{fe.init(e,t),e._zod.parse=r=>r});var Fa=z("$ZodVoid",(e,t)=>{fe.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;return typeof o>"u"||r.issues.push({expected:"void",code:"invalid_type",input:o,inst:e}),r}}),Va=z("$ZodDate",(e,t)=>{fe.init(e,t),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let o=r.value,i=o instanceof Date;return i&&!Number.isNaN(o.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:o,...i?{received:"Invalid Date"}:{},inst:e}),r}});function za(e,t,r){e.issues.length&&t.issues.push(...et(r,e.issues)),t.value[r]=e.value}a(za,"handleArrayResult");var Ba=z("$ZodArray",(e,t)=>{fe.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),r;r.value=Array(o.length);let i=[];for(let s=0;s<o.length;s++){let u=o[s],c=t.element._zod.run({value:u,issues:[]},n);c instanceof Promise?i.push(c.then(d=>za(d,r,s))):za(c,r,s)}return i.length?Promise.all(i).then(()=>r):r}});function Br(e,t,r,n,o){if(e.issues.length){if(o&&!(r in n))return;t.issues.push(...et(r,e.issues))}e.value===void 0?r in n&&(t.value[r]=void 0):t.value[r]=e.value}a(Br,"handlePropertyResult");function yf(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let r=ya(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}a(yf,"normalizeDef");function vf(e,t,r,n,o,i){let s=[],u=o.keySet,c=o.catchall._zod,d=c.def.type,f=c.optout==="optional";for(let v in t){if(u.has(v))continue;if(d==="never"){s.push(v);continue}let y=c.run({value:t[v],issues:[]},n);y instanceof Promise?e.push(y.then(p=>Br(p,r,v,t,f))):Br(y,r,v,t,f)}return s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:i}),e.length?Promise.all(e).then(()=>r):r}a(vf,"handleCatchall");var Ha=z("$ZodObject",(e,t)=>{if(fe.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let u=t.shape;Object.defineProperty(t,"shape",{get:a(()=>{let c={...u};return Object.defineProperty(t,"shape",{value:c}),c},"get")})}let n=Ur(()=>yf(t));Pe(e._zod,"propValues",()=>{let u=t.shape,c={};for(let d in u){let f=u[d]._zod;if(f.values){c[d]??(c[d]=new Set);for(let v of f.values)c[d].add(v)}}return c});let o=Kt,i=t.catchall,s;e._zod.parse=(u,c)=>{s??(s=n.value);let d=u.value;if(!o(d))return u.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),u;u.value={};let f=[],v=s.shape;for(let y of s.keys){let p=v[y],m=p._zod.optout==="optional",P=p._zod.run({value:d[y],issues:[]},c);P instanceof Promise?f.push(P.then(h=>Br(h,u,y,d,m))):Br(P,u,y,d,m)}return i?vf(f,d,u,c,n.value,e):f.length?Promise.all(f).then(()=>u):u}});function Da(e,t,r,n){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let o=e.filter(i=>!xt(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(s=>tt(s,n,He())))}),t)}a(Da,"handleUnionResults");var Uo=z("$ZodUnion",(e,t)=>{fe.init(e,t),Pe(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),Pe(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Pe(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),Pe(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){let o=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>Mr(i.source)).join("|")})$`)}});let r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(o,i)=>{if(r)return n(o,i);let s=!1,u=[];for(let c of t.options){let d=c._zod.run({value:o.value,issues:[]},i);if(d instanceof Promise)u.push(d),s=!0;else{if(d.issues.length===0)return d;u.push(d)}}return s?Promise.all(u).then(c=>Da(c,o,e,i)):Da(u,o,e,i)}});var Za=z("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Uo.init(e,t);let r=e._zod.parse;Pe(e._zod,"propValues",()=>{let o={};for(let i of t.options){let s=i._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let[u,c]of Object.entries(s)){o[u]||(o[u]=new Set);for(let d of c)o[u].add(d)}}return o});let n=Ur(()=>{let o=t.options,i=new Map;for(let s of o){let u=s._zod.propValues?.[t.discriminator];if(!u||u.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(let c of u){if(i.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);i.set(c,s)}}return i});e._zod.parse=(o,i)=>{let s=o.value;if(!Kt(s))return o.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),o;let u=n.value.get(s?.[t.discriminator]);return u?u._zod.run(o,i):t.unionFallback?r(o,i):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:s,path:[t.discriminator],inst:e}),o)}});var qa=z("$ZodRecord",(e,t)=>{fe.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;if(!ha(o))return r.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),r;let i=[],s=t.keyType._zod.values;if(s){r.value={};let u=new Set;for(let d of s)if(typeof d=="string"||typeof d=="number"||typeof d=="symbol"){u.add(typeof d=="number"?d.toString():d);let f=t.valueType._zod.run({value:o[d],issues:[]},n);f instanceof Promise?i.push(f.then(v=>{v.issues.length&&r.issues.push(...et(d,v.issues)),r.value[d]=v.value})):(f.issues.length&&r.issues.push(...et(d,f.issues)),r.value[d]=f.value)}let c;for(let d in o)u.has(d)||(c=c??[],c.push(d));c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:c})}else{r.value={};for(let u of Reflect.ownKeys(o)){if(u==="__proto__")continue;let c=t.keyType._zod.run({value:u,issues:[]},n);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&zo.test(u)&&c.issues.length){let v=t.keyType._zod.run({value:Number(u),issues:[]},n);if(v instanceof Promise)throw new Error("Async schemas not supported in object keys currently");v.issues.length===0&&(c=v)}if(c.issues.length){t.mode==="loose"?r.value[u]=o[u]:r.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(v=>tt(v,n,He())),input:u,path:[u],inst:e});continue}let f=t.valueType._zod.run({value:o[u],issues:[]},n);f instanceof Promise?i.push(f.then(v=>{v.issues.length&&r.issues.push(...et(u,v.issues)),r.value[c.value]=v.value})):(f.issues.length&&r.issues.push(...et(u,f.issues)),r.value[c.value]=f.value)}}return i.length?Promise.all(i).then(()=>r):r}});var Ga=z("$ZodEnum",(e,t)=>{fe.init(e,t);let r=$o(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(o=>ga.has(typeof o)).map(o=>typeof o=="string"?_t(o):o.toString()).join("|")})$`),e._zod.parse=(o,i)=>{let s=o.value;return n.has(s)||o.issues.push({code:"invalid_value",values:r,input:s,inst:e}),o}}),Wa=z("$ZodLiteral",(e,t)=>{if(fe.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?_t(n):n?_t(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,o)=>{let i=n.value;return r.has(i)||n.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),n}});var Ka=z("$ZodTransform",(e,t)=>{fe.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Cr(e.constructor.name);let o=t.transform(r.value,r);if(n.async)return(o instanceof Promise?o:Promise.resolve(o)).then(s=>(r.value=s,r));if(o instanceof Promise)throw new Ve;return r.value=o,r}});function ka(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}a(ka,"handleOptionalResult");var Xa=z("$ZodOptional",(e,t)=>{fe.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Pe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Pe(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Mr(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){let o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>ka(i,r.value)):ka(o,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}});var Ja=z("$ZodNullable",(e,t)=>{fe.init(e,t),Pe(e._zod,"optin",()=>t.innerType._zod.optin),Pe(e._zod,"optout",()=>t.innerType._zod.optout),Pe(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Mr(r.source)}|null)$`):void 0}),Pe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)});var Ya=z("$ZodPipe",(e,t)=>{fe.init(e,t),Pe(e._zod,"values",()=>t.in._zod.values),Pe(e._zod,"optin",()=>t.in._zod.optin),Pe(e._zod,"optout",()=>t.out._zod.optout),Pe(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){let i=t.out._zod.run(r,n);return i instanceof Promise?i.then(s=>Vr(s,t.in,n)):Vr(i,t.in,n)}let o=t.in._zod.run(r,n);return o instanceof Promise?o.then(i=>Vr(i,t.out,n)):Vr(o,t.out,n)}});function Vr(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}a(Vr,"handlePipeResult");var Qa=z("$ZodCustom",(e,t)=>{rt.init(e,t),fe.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{let n=r.value,o=t.fn(n);if(o instanceof Promise)return o.then(i=>Ca(i,r,n,e));Ca(o,r,n,e)}});function Ca(e,t,r,n){if(!e){let o={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),t.issues.push(Ro(o))}}a(Ca,"handleRefineResult");var ts;var Mo=class{static{a(this,"$ZodRegistry")}constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let n=r[0];return this._map.set(t,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let n={...this.get(r)??{}};delete n.id;let o={...n,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function rs(){return new Mo}a(rs,"registry");(ts=globalThis).__zod_globalRegistry??(ts.__zod_globalRegistry=rs());var Lo=globalThis.__zod_globalRegistry;function ns(e,t){return new e({type:"string",...se(t)})}a(ns,"_string");function os(e,t){return new e({type:"string",coerce:!0,...se(t)})}a(os,"_coercedString");function is(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...se(t)})}a(is,"_url");function as(e,t){return new e({type:"number",checks:[],...se(t)})}a(as,"_number");function ss(e,t){return new e({type:"number",coerce:!0,checks:[],...se(t)})}a(ss,"_coercedNumber");function us(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...se(t)})}a(us,"_int");function cs(e,t){return new e({type:"boolean",...se(t)})}a(cs,"_boolean");function ls(e,t){return new e({type:"boolean",coerce:!0,...se(t)})}a(ls,"_coercedBoolean");function ps(e,t){return new e({type:"bigint",coerce:!0,...se(t)})}a(ps,"_coercedBigint");function ds(e){return new e({type:"any"})}a(ds,"_any");function fs(e){return new e({type:"unknown"})}a(fs,"_unknown");function ms(e,t){return new e({type:"void",...se(t)})}a(ms,"_void");function hs(e,t){return new e({type:"date",coerce:!0,...se(t)})}a(hs,"_coercedDate");function Zr(e,t){return new Sa({check:"greater_than",...se(t),value:e,inclusive:!0})}a(Zr,"_gte");function je(e,t){return new wa({check:"min_length",...se(t),minimum:e})}a(je,"_minLength");function nt(e,t){return new $a({check:"string_format",format:"regex",...se(t),pattern:e})}a(nt,"_regex");function gs(e,t,r){let n=se(r);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}a(gs,"_custom");var _e=z("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");fe.init(e,t),e.def=t,e.type=t.type,e.parse=(r,n)=>jr(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>Jt(e,r,n),e.parseAsync=async(r,n)=>Fr(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>Yt(e,r,n),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]},{parent:!0}),e.with=e.check,e.clone=(r,n)=>Lr(e,r,n),e.brand=()=>e,e.register=((r,n)=>(r.add(e,n),e)),e.apply=r=>r(e)}),Gr=z("ZodMiniString",(e,t)=>{Hr.init(e,t),_e.init(e,t)});function l(e){return ns(Gr,e)}a(l,"string");var ys=z("ZodMiniStringFormat",(e,t)=>{ko.init(e,t),Gr.init(e,t)});var Rf=z("ZodMiniURL",(e,t)=>{Na.init(e,t),ys.init(e,t)});function vs(e){return is(Rf,e)}a(vs,"url");var Wr=z("ZodMiniNumber",(e,t)=>{Co.init(e,t),_e.init(e,t)});function be(e){return as(Wr,e)}a(be,"number");var zf=z("ZodMiniNumberFormat",(e,t)=>{Ua.init(e,t),Wr.init(e,t)});function Ps(e){return us(zf,e)}a(Ps,"int");var jo=z("ZodMiniBoolean",(e,t)=>{No.init(e,t),_e.init(e,t)});function ee(e){return cs(jo,e)}a(ee,"boolean");var _s=z("ZodMiniBigInt",(e,t)=>{Ma.init(e,t),_e.init(e,t)});var Df=z("ZodMiniAny",(e,t)=>{La.init(e,t),_e.init(e,t)});function er(){return ds(Df)}a(er,"any");var kf=z("ZodMiniUnknown",(e,t)=>{ja.init(e,t),_e.init(e,t)});function B(){return fs(kf)}a(B,"unknown");var Cf=z("ZodMiniVoid",(e,t)=>{Fa.init(e,t),_e.init(e,t)});function xs(e){return ms(Cf,e)}a(xs,"_void");var bs=z("ZodMiniDate",(e,t)=>{Va.init(e,t),_e.init(e,t)});var Nf=z("ZodMiniArray",(e,t)=>{Ba.init(e,t),_e.init(e,t)});function U(e,t){return new Nf({type:"array",element:e,...se(t)})}a(U,"array");var Uf=z("ZodMiniObject",(e,t)=>{Ha.init(e,t),_e.init(e,t),Pe(e,"shape",()=>t.shape)});function g(e,t){let r={type:"object",shape:e??{},...se(t)};return new Uf(r)}a(g,"object");var Mf=z("ZodMiniUnion",(e,t)=>{Uo.init(e,t),_e.init(e,t)});function G(e,t){return new Mf({type:"union",options:e,...se(t)})}a(G,"union");var Lf=z("ZodMiniDiscriminatedUnion",(e,t)=>{Za.init(e,t),_e.init(e,t)});function ot(e,t,r){return new Lf({type:"union",options:t,discriminator:e,...se(r)})}a(ot,"discriminatedUnion");var jf=z("ZodMiniRecord",(e,t)=>{qa.init(e,t),_e.init(e,t)});function H(e,t,r){return new jf({type:"record",keyType:e,valueType:t,...se(r)})}a(H,"record");var Ff=z("ZodMiniEnum",(e,t)=>{Ga.init(e,t),_e.init(e,t),e.options=Object.values(t.entries)});function N(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new Ff({type:"enum",entries:r,...se(t)})}a(N,"_enum");var Vf=z("ZodMiniLiteral",(e,t)=>{Wa.init(e,t),_e.init(e,t)});function C(e,t){return new Vf({type:"literal",values:Array.isArray(e)?e:[e],...se(t)})}a(C,"literal");var Bf=z("ZodMiniTransform",(e,t)=>{Ka.init(e,t),_e.init(e,t)});function it(e){return new Bf({type:"transform",transform:e})}a(it,"transform");var Hf=z("ZodMiniOptional",(e,t)=>{Xa.init(e,t),_e.init(e,t)});function _(e){return new Hf({type:"optional",innerType:e})}a(_,"optional");var Zf=z("ZodMiniNullable",(e,t)=>{Ja.init(e,t),_e.init(e,t)});function tr(e){return new Zf({type:"nullable",innerType:e})}a(tr,"nullable");var qf=z("ZodMiniPipe",(e,t)=>{Ya.init(e,t),_e.init(e,t)});function at(e,t){return new qf({type:"pipe",in:e,out:t})}a(at,"pipe");var Gf=z("ZodMiniCustom",(e,t)=>{Qa.init(e,t),_e.init(e,t)});function Kr(e,t){return gs(Gf,e??(()=>!0),t)}a(Kr,"custom");var rr={};So(rr,{bigint:()=>Qf,boolean:()=>Yf,date:()=>em,number:()=>Jf,string:()=>Xf});function Xf(e){return os(Gr,e)}a(Xf,"string");function Jf(e){return ss(Wr,e)}a(Jf,"number");function Yf(e){return ls(jo,e)}a(Yf,"boolean");function Qf(e){return ps(_s,e)}a(Qf,"bigint");function em(e){return hs(bs,e)}a(em,"date");var Vo=g({retryOnFailure:g({defaultValue:_(ee()),hide:_(ee())}),continueOnFailure:g({defaultValue:_(ee()),hide:_(ee())})}),Fo=class{constructor(t,r,n,o,i,s,u,c,d,f,v,y,p){this.name=t;this.displayName=r;this.description=n;this.props=o;this.propertyGroups=i;this.run=s;this.test=u;this.requireAuth=c;this.errorHandlingOptions=d;this.outputSchema=f;this.audience=v;this.aiMetadata=y;this.classification=p}static{a(this,"IAction")}},re=a(e=>new Fo(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 Y=g({displayName:l(),description:_(l()),advanced:_(ee()),width:_(N(["half","full"])),icon:_(l()),placeholder:_(l())}),Z=a((e,t)=>g({type:C(t),required:ee(),defaultValue:_(er())}),"TPropertyValue");var ke=g({...Y.shape,...Z(l(),"SHORT_TEXT").shape}),Ze=g({...Y.shape,...Z(l(),"LONG_TEXT").shape});var Es=g({label:l(),value:B(),description:_(l()),icon:_(l())}),Xr=g({disabled:_(ee()),placeholder:_(l()),options:U(Es)});var rm=N(["cards"]),Ce=g({...Y.shape,options:Xr,display:_(rm),...Z(B(),"STATIC_DROPDOWN").shape}),qe=g({...Y.shape,options:Xr,...Z(U(B()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var Bo=g({...Y.shape,...Z(B(),"DROPDOWN").shape,refreshers:U(l())}),nr=g({...Y.shape,...Z(U(B()),"MULTI_SELECT_DROPDOWN").shape,refreshers:U(l())});var Ge=g({...Y.shape,reveals:_(U(l())),...Z(ee(),"CHECKBOX").shape});var We=g({...Y.shape,display:_(N(["stepper"])),min:_(be()),max:_(be()),step:_(be()),...Z(be(),"NUMBER").shape});var or=g({...Y.shape,streaming:_(ee()),...Z(B(),"FILE").shape});var ir=g({...Y.shape,...Z(l(),"DATE_TIME").shape});var Is=H(l(),G([ke,Ze,Ce,nr,qe,Ge,We,or,ir])),ar=g({...Y.shape,properties:Is,...Z(U(B()),"ARRAY").shape});var Ss=N(["any_time","last_24_hours","last_7_days","last_30_days","last_90_days","this_month","custom"]),As=g({preset:_(Ss),after:_(l()),before:_(l())}),Ho=g({...Y.shape,display:_(N(["dropdown"])),...Z(As,"DATE_RANGE").shape});var sr=g({...Y.shape,...Z(G([H(l(),B())]),"JSON").shape});var ws=G([ke,Ce,sr,ar,qe]),nm=H(l(),ws),Zo=g({refreshers:U(l()),...Y.shape,...Z(B(),"DYNAMIC").shape});var Jr=g({...Y.shape,...Z(xs(),"MARKDOWN").shape});var ur=(r=>(r.ARCHIVE="ARCHIVE",r.REGISTRY="REGISTRY",r))(ur||{}),bt=(r=>(r.CUSTOM="CUSTOM",r.OFFICIAL="OFFICIAL",r))(bt||{}),Tt=(x=>(x.ARTIFICIAL_INTELLIGENCE="ARTIFICIAL_INTELLIGENCE",x.COMMUNICATION="COMMUNICATION",x.COMMERCE="COMMERCE",x.CORE="CORE",x.UNIVERSAL_AI="UNIVERSAL_AI",x.FLOW_CONTROL="FLOW_CONTROL",x.BUSINESS_INTELLIGENCE="BUSINESS_INTELLIGENCE",x.ACCOUNTING="ACCOUNTING",x.PRODUCTIVITY="PRODUCTIVITY",x.CONTENT_AND_FILES="CONTENT_AND_FILES",x.DEVELOPER_TOOLS="DEVELOPER_TOOLS",x.CUSTOMER_SUPPORT="CUSTOMER_SUPPORT",x.FORMS_AND_SURVEYS="FORMS_AND_SURVEYS",x.HUMAN_RESOURCES="HUMAN_RESOURCES",x.PAYMENT_PROCESSING="PAYMENT_PROCESSING",x.MARKETING="MARKETING",x.SALES_AND_CRM="SALES_AND_CRM",x))(Tt||{});var cr=(r=>(r.AUTHORIZATION_CODE="authorization_code",r.CLIENT_CREDENTIALS="client_credentials",r))(cr||{}),qo="both_client_credentials_and_authorization_code";var Ae=(o=>(o.POLLING="POLLING",o.WEBHOOK="WEBHOOK",o.APP_WEBHOOK="APP_WEBHOOK",o.MANUAL="MANUAL",o))(Ae||{}),lr=(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))(lr||{}),om=g({strategy:N(lr),paramName:_(l())}),pr=(r=>(r.SIMULATION="SIMULATION",r.TEST_FUNCTION="TEST_FUNCTION",r))(pr||{});var Yr=(r=>(r.WEBSOCKET="WEBSOCKET",r.NONE="NONE",r))(Yr||{}),$s=g({status:_(be()),body:_(B()),headers:_(H(l(),l()))}),Os=g({type:C("DELAY"),resumeDateTime:l(),requestIdToReply:_(l()),handlerId:_(l()),streamStepProgress:_(N(Yr))}),Rs=g({type:C("WEBHOOK"),requestId:l(),requestIdToReply:_(l()),response:$s,handlerId:_(l()),streamStepProgress:_(N(Yr))}),im=G([Os,Rs]);var am=g({body:B(),rawBody:_(B()),headers:H(l(),l()),queryParams:H(l(),l())});function ye(e){return e==null}a(ye,"isNil");function dr(e){return e==null?!0:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}a(dr,"isEmpty");function Qr(e,t){if(e==null)throw new Error(`${t} is null or undefined`)}a(Qr,"assertNotNullOrUndefined");var Go=Q(require("crypto"),1);var sm=128,st,Et,um=a(e=>{if(e<0)throw new RangeError("Wrong ID size");try{!st||st.length<e?(st=Buffer.allocUnsafe(e*sm),Go.default.randomFillSync(st),Et=0):Et+e>st.length&&(Go.default.randomFillSync(st),Et=0)}catch(t){throw st=void 0,t}Et+=e},"fillPool"),cm=a(e=>(um(e|=0),st.subarray(Et-e,Et)),"random"),lm=a((e,t,r)=>{let n=(2<<31-Math.clz32(e.length-1|1))-1,o=Math.ceil(1.6*n*t/e.length);return(i=t)=>{if(i<=0)return"";let s="";for(;;){let u=r(o),c=o;for(;c--;)if(s+=e[u[c]&n]||"",s.length===i)return s}}},"customRandom"),Ds=a((e,t=21)=>lm(e,t,cm),"customAlphabet");var pm="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",ks=21,tO=l().check(nt(new RegExp(`^[0-9a-zA-Z]{${ks}}$`))),dm=Ds(pm,ks);var ut=at(it(e=>e instanceof Date?e.toISOString():e),l()),Ue={id:l(),created:ut,updated:ut},le=a(e=>_(tr(e)),"Nullable");function Wo(e){return _(tr(N(e)))}a(Wo,"NullableEnum");var oO=at(it(e=>e==="true"||e===!0?!0:e==="false"||e===!1?!1:void 0),_(ee())),en=a(e=>at(it(t=>Array.isArray(t)?t:t!==void 0?[t]:void 0),_(U(e))),"OptionalArrayFromQuery");var sO=H(l(),B());var It=(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.MISTRAL="mistral",h.XAI="xai",h.DEEPSEEK="deepseek",h.ZAI="zai",h.QWEN="qwen",h.MINIMAX="minimax",h.MOONSHOT="moonshot",h))(It||{});var PO=l().check(nt(/^#[0-9A-Fa-f]{6}$/));var xO=g({filename:l(),data:B(),type:C("file"),mimetype:_(l())});var fm=Q(Ns());var wO=g({...Ue,name:l(),permissions:U(l()),platformId:le(l()),type:l(),userCount:_(be())});var Us=(n=>(n.AGENT_DECIDE="agent-decide",n.CHOOSE_YOURSELF="choose-yourself",n.LEAVE_EMPTY="leave-empty",n))(Us||{}),Ko=(r=>(r.FILE="FILE",r.TABLE="TABLE",r))(Ko||{}),Xo=(n=>(n.SSE="sse",n.STREAMABLE_HTTP="streamable-http",n.SIMPLE_HTTP="http",n))(Xo||{});var Jo=(n=>(n.TEXT="text",n.NUMBER="number",n.BOOLEAN="boolean",n))(Jo||{});var Yo=(r=>(r.IN_PROGRESS="in-progress",r.COMPLETED="completed",r))(Yo||{});var mm=g({mode:N(Us),value:B()}),hm=g({auth:_(l()),fields:H(l(),mm)}),gm=g({pieceName:l(),pieceVersion:l(),actionName:l(),predefinedInput:_(hm)}),ym=g({type:C("PIECE"),toolName:l().check(je(1)),pieceMetadata:gm}),vm=g({type:C("none")}),Pm=g({type:C("access_token"),accessToken:l()}),_m=g({type:C("api_key"),apiKey:l(),apiKeyHeader:l()}),xm=g({type:C("headers"),headers:H(l(),l())}),bm=ot("type",[vm,Pm,_m,xm]),Ms=g({type:C("FLOW"),toolName:l().check(je(1)),externalFlowId:l(),flowDisplayName:_(l())}),Ls=g({type:C("MCP"),toolName:l().check(je(1)),serverUrl:vs(),protocol:N(Xo),auth:bm}),js=g({type:C("KNOWLEDGE_BASE"),toolName:l().check(je(1)),sourceType:N(Ko),sourceId:l(),sourceName:l()}),Tm=ot("type",[ym,Ms,Ls,js]),Em=g({displayName:l(),description:_(l()),type:N(Jo)}),Fs=g({type:C("MARKDOWN"),markdown:l()}),St={type:C("TOOL_CALL"),input:le(H(l(),B())),output:_(B()),toolName:l(),status:N(Yo),toolCallId:l(),startTime:l(),endTime:_(l())},iR=g(St),Vs=ot("toolCallType",[g({...St,toolCallType:C("PIECE"),pieceName:l(),pieceVersion:l(),actionName:l()}),g({...St,toolCallType:C("FLOW"),displayName:l(),externalFlowId:l()}),g({...St,toolCallType:C("MCP"),displayName:l(),serverUrl:l()}),g({...St,toolCallType:C("KNOWLEDGE_BASE"),displayName:l(),sourceType:l()}),g({...St,toolCallType:C("UNKNOWN"),displayName:l()})]),Im=G([Fs,Vs]);var Qo=(r=>(r.IMAGE="image",r.TEXT="text",r))(Qo||{}),Ke=g({apiKey:l()}),Sm=Ke,Am=g({apiKey:l(),apiKeyHash:l()}),wm=Ke,$m=Ke,Om=Ke,Rm=Ke,zm=Ke,Dm=Ke,km=Ke,Gs=g({accessKeyId:l().check(je(1)),secretAccessKey:l().check(je(1))}),Cm=g({}),Nm=g({}),Um=g({}),Mm=g({}),Lm=g({}),jm=g({}),Ws=g({modelId:l(),modelName:l(),modelType:N(Qo)}),Ks=g({apiKeyHeader:l(),baseUrl:l(),models:U(Ws),defaultHeaders:_(H(l(),l()))}),Xs=g({accountId:l(),gatewayId:l(),models:U(Ws),vertexProject:_(l()),vertexRegion:_(l())}),Js=g({resourceName:l(),apiVersion:at(it(e=>typeof e=="string"&&e.trim().length===0?void 0:e),_(l()))}),Ys=g({region:l().check(je(1))}),Qs=g({}),Fm=G([Sm,Om,Rm,zm,Dm,$m,wm,Am,Gs,km]),eu=G([Ks,Xs,Js,Ys,Cm,Um,Mm,Lm,Nm,jm,Qs]),Vm=g({id:l(),name:l(),type:N(Qo)}),Bm=g({id:l(),name:l(),provider:N(It),config:eu,enabledForChat:ee()}),Hm=g({provider:N(It),name:l(),enabledForChat:ee(),keys:U(g({id:l(),name:l()}))}),Zm=g({provider:N(It),configId:l(),config:eu,auth:Fm,platformId:l()});var cR={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"},Bs=["gpt-5.5","gpt-5.4-mini","gpt-5.4-nano","gpt-4.1","gpt-4.1-mini"],qm=["claude-sonnet-4-6","claude-opus-4-7","claude-haiku-4-5"],Gm=["claude-sonnet-4.6","claude-opus-4.7","claude-haiku-4.5"],Hs=["gemini-2.5-pro","gemini-2.5-flash","gemini-3.1-pro-preview","gemini-3-flash-preview"],Wm=["grok-4.20","grok-4.1-fast"],Km={openai:Bs,anthropic:qm,google:Hs,activepieces:[...Gm.map(e=>`anthropic/${e}`),...Bs.map(e=>`openai/${e}`),...Hs.map(e=>`google/${e}`),...Wm.map(e=>`x-ai/${e}`)]};var Zs=128e3,Xm={openai:128e3,anthropic:2e5,google:1048576,bedrock:2e5,azure:128e3,openrouter:128e3,activepieces:2e5,mistral:128e3};function Jm({provider:e}){return e?Xm[e]??Zs:Zs}a(Jm,"getMaxContextTokens");var qs={openai:"text-embedding-3-small",google:"text-embedding-004",azure:"text-embedding-3-small",activepieces:"text-embedding-3-small",openrouter:"openai/text-embedding-3-small"},Ym={anthropic:"native",google:"native",openrouter:"plugin",activepieces:"plugin"},Qm=new Set(["anthropic","mistral","xai","deepseek","zai","qwen","minimax","moonshot"]),eh={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 Ie(e){return{chatModels:Km[e],maxContextTokens:Jm({provider:e}),defaultEmbeddingModel:qs[e],supportsEmbedding:qs[e]!==void 0,supportsImageGeneration:!Qm.has(e),webSearch:Ym[e]}}a(Ie,"buildProviderCapabilities");var th={openai:Ie("openai"),anthropic:Ie("anthropic"),openrouter:Ie("openrouter"),azure:Ie("azure"),google:Ie("google"),"cloudflare-gateway":Ie("cloudflare-gateway"),custom:Ie("custom"),bedrock:Ie("bedrock"),mistral:Ie("mistral"),activepieces:Ie("activepieces"),xai:Ie("xai"),deepseek:Ie("deepseek"),zai:Ie("zai"),qwen:Ie("qwen"),minimax:Ie("minimax"),moonshot:Ie("moonshot")};var rh=g({base64Url:l(),fileName:l(),extension:_(l())}),nh=g({mimeType:l(),url:l(),fileName:_(l())}),ei=G([rh,nh]);var oh=G([g({type:C("file"),value:ei}),g({type:C("markdown"),value:l(),files:_(U(ei))})]),ih=g({sessionId:l(),message:l(),files:_(U(l()))});var ru=(r=>(r.ON_NEW_RECORD="ON_NEW_RECORD",r.ON_UPDATE_RECORD="ON_UPDATE_RECORD",r))(ru||{}),nu=(r=>(r.ENABLED="ENABLED",r.DISABLED="DISABLED",r))(nu||{}),ti=(n=>(n.RECORD_CREATED="RECORD_CREATED",n.RECORD_UPDATED="RECORD_UPDATED",n.RECORD_DELETED="RECORD_DELETED",n))(ti||{});var ah=G([g({...Ue,name:l(),externalId:l(),type:C("STATIC_DROPDOWN"),tableId:l(),projectId:l(),data:g({options:U(g({value:l()}))})}),g({...Ue,name:l(),externalId:l(),type:G([C("TEXT"),C("NUMBER"),C("DATE"),C("DATETIME")]),tableId:l(),projectId:l()})]),sh=g({...Ue,name:l(),folderId:le(l()),projectId:l(),externalId:l(),status:Wo(nu),trigger:Wo(ru)}),uh=g({...Ue,tableId:l(),projectId:l(),cells:H(l(),g({updated:l(),created:l(),value:B(),fieldName:l()}))}),ch=g({events:U(N(ti)),webhookUrl:l(),flowId:l()}),lh=g({fields:U(g({id:l(),name:l()})),rows:U(H(l(),l())),name:l()}),ph=g({projectId:l(),limit:_(rr.number()),cursor:_(l()),name:_(l()),externalIds:en(l()),folderId:_(l()),folderIds:en(l())}),dh=g({records:U(U(g({fieldId:l(),value:iu()}))),tableId:l()}),fh=g({cells:_(U(g({fieldId:l(),value:iu()}))),tableId:l(),agentUpdate:_(ee())}),ou=ot("operator",[mt("eq"),mt("neq"),mt("gt"),mt("gte"),mt("lt"),mt("lte"),mt("co"),tu("exists"),tu("not_exists")]),mh=g({tableId:l(),limit:_(rr.number()),cursor:_(l()),filters:en(ou)});function iu(){return at(it(e=>e==null?e:String(e)),tr(l()))}a(iu,"coerceToString");function mt(e){return g({fieldId:l(),operator:C(e),value:l()})}a(mt,"valueFilter");function tu(e){return g({fieldId:l(),operator:C(e)})}a(tu,"existenceFilter");var hh=g({status:_(be()),body:_(B()),headers:_(H(l(),l()))}),gh=g({...Ue,deleted:le(ut),ownerId:l(),displayName:l(),platformId:l(),externalId:le(l())});var au=g({name:l(),description:_(l()),type:l(),required:ee()}),yh=g({pieceName:l(),triggerName:l(),input:g({toolName:l(),toolDescription:l(),inputSchema:U(au),returnsResponse:ee()})});var su="^[0-9]+\\.[0-9]+\\.[0-9]+$",wR=new RegExp(su),Ph="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",$R=l().check(nt(new RegExp(su))),OR=l().check(nt(new RegExp(Ph))),_h=g({packageType:C("ARCHIVE"),pieceType:N(bt),pieceName:l(),pieceVersion:l(),archiveId:l(),platformId:l()}),uu=g({packageType:C("REGISTRY"),pieceType:C("OFFICIAL"),pieceName:l(),pieceVersion:l()}),cu=g({packageType:C("REGISTRY"),pieceType:C("CUSTOM"),pieceName:l(),pieceVersion:l(),platformId:l()}),RR=G([uu,cu]),zR=G([_h,uu,cu]);var xh=ot("type",[g({type:C("CRON_EXPRESSION"),cronExpression:l(),timezone:l()}),g({type:C("INTERVAL"),intervalMs:Ps().check(Zr(6e4))})]),DR=g({...Ue,type:N(Ae),projectId:l(),flowId:l(),triggerName:l(),schedule:le(xh),flowVersionId:l(),pieceName:l(),pieceVersion:l(),deleted:le(l()),simulate:ee()}),lu=(h=>(h.UNKNOWN="UNKNOWN",h.FLOW_RUN_LOG="FLOW_RUN_LOG",h.FLOW_RUN_LOG_SLICE="FLOW_RUN_LOG_SLICE",h.PACKAGE_ARCHIVE="PACKAGE_ARCHIVE",h.FLOW_STEP_FILE="FLOW_STEP_FILE",h.SAMPLE_DATA="SAMPLE_DATA",h.TRIGGER_PAYLOAD="TRIGGER_PAYLOAD",h.SAMPLE_DATA_INPUT="SAMPLE_DATA_INPUT",h.TRIGGER_EVENT_FILE="TRIGGER_EVENT_FILE",h.PROJECT_RELEASE="PROJECT_RELEASE",h.FLOW_VERSION_BACKUP="FLOW_VERSION_BACKUP",h.PLATFORM_ASSET="PLATFORM_ASSET",h.USER_PROFILE_PICTURE="USER_PROFILE_PICTURE",h.WEBHOOK_PAYLOAD="WEBHOOK_PAYLOAD",h.KNOWLEDGE_BASE="KNOWLEDGE_BASE",h.FLOW_BUNDLE="FLOW_BUNDLE",h))(lu||{}),pu=(r=>(r.NONE="NONE",r.ZSTD="ZSTD",r))(pu||{}),du=(r=>(r.S3="S3",r.DB="DB",r))(du||{}),kR=g({...Ue,projectId:le(l()),platformId:le(l()),type:N(lu),compression:N(pu),data:_(B()),location:N(du),size:le(be()),fileName:le(l()),s3Key:le(l()),metadata:le(H(l(),l()))}),fu=(n=>(n.ADMIN="ADMIN",n.MEMBER="MEMBER",n.OPERATOR="OPERATOR",n))(fu||{}),mu=(r=>(r.ACTIVE="ACTIVE",r.INACTIVE="INACTIVE",r))(mu||{}),CR=g({id:l(),email:l(),firstName:l(),status:N(mu),externalId:le(l()),platformId:le(l()),platformRole:N(fu),lastName:l(),created:ut,updated:ut,lastActiveDate:le(ut),imageUrl:le(l())});var ri=g({...Y.shape,...Z(H(l(),B()),"OBJECT").shape});var ni=g({...Y.shape,formatProperty:_(l()),...Z(l(),"RICH_TEXT").shape});var vu=g({...Y.shape,...Z(l(),"COLOR").shape});var oi=G([ke,Ze,ni,Jr,Ge,Ce,qe,Bo,nr,Zo,We,ar,ri,sr,ir,Ho,or,vu]),T={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 Be=g({displayName:l(),description:_(l()),hasConnectionIdentifier:_(ee())});var Pu=g({username:l(),password:l()}),ii=g({...Be.shape,username:g({displayName:l(),description:_(l())}),password:g({displayName:l(),description:_(l())}),...Z(Pu,"BASIC_AUTH").shape});var Ih=H(l(),G([ke,Ze,We,Ge,Ce])),ai=g({...Be.shape,props:Ih,...Z(B(),"CUSTOM_AUTH").shape});var ht=g({...Be.shape,...Z(g({auth:l()}),"SECRET_TEXT").shape});var Sh=H(l(),G([ke,Ze,ht,We,Ge,Ce,qe,Jr])),_u=g({...Be.shape,props:Sh,...Z(B(),"OIDC").shape});var si=(r=>(r.HEADER="HEADER",r.BODY="BODY",r))(si||{}),xu=G([ke,ht,Ce]),bu=H(l(),xu),Ah=g({props:_(H(l(),xu)),authUrl:l(),tokenUrl:l(),scope:U(l()),prompt:_(G([C("none"),C("consent"),C("login"),C("omit")])),pkce:_(ee()),pkceMethod:_(G([C("plain"),C("S256")])),authorizationMethod:_(N(si)),grantType:_(G([N(cr),C(qo)])),extra:_(H(l(),l()))}),Tu=g({access_token:l(),props:_(bu),data:H(l(),er())}),ui=g({...Be.shape,...Ah.shape,...Z(Tu,"OAUTH2").shape});var At=G([ii,ai,_u,ui,ht]),fr="Connection",ci={SecretText(e){return{...e,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(e){return{...e,valueSchema:void 0,type:"OAUTH2",displayName:e.displayName||fr}},BasicAuth(e){return{...e,valueSchema:void 0,type:"BASIC_AUTH",displayName:e.displayName||fr,required:!0}},CustomAuth(e){return{...e,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:e.displayName||fr}},OIDC(e){return{...e,valueSchema:void 0,type:"OIDC",displayName:e.displayName||fr}},None(){}};var vD={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 wh=g({...Y.shape,...Z(B(),"CUSTOM").shape,code:l()});var $h=G([oi,At]),li=H(l(),$h),LD=H(l(),oi);var Eu=G([g({strategy:C("CRON"),cronExpression:l()}),g({strategy:C("NONE")})]),wt=class{constructor(t,r,n,o,i,s,u,c,d,f,v,y,p,m,P,h,x,E,q,he,we){this.name=t;this.displayName=r;this.description=n;this.requireAuth=o;this.props=i;this.type=s;this.handshakeConfiguration=u;this.onHandshake=c;this.renewConfiguration=d;this.onRenew=f;this.onEnable=v;this.onDisable=y;this.onStart=p;this.run=m;this.test=P;this.sampleData=h;this.testStrategy=x;this.outputSchema=E;this.aiMetadata=q;this.classification=he;this.propertyGroups=we}static{a(this,"ITrigger")}},Se=a(e=>{switch(e.type){case"WEBHOOK":return new wt(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 wt(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 wt(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 wt(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,ye(e.sampleData)&&ye(e.test)?"SIMULATION":"TEST_FUNCTION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups)}},"createTrigger");var Iu="2",rn="0.82.0";var pi=class{constructor(t,r,n,o,i,s,u,c,d=rn,f,v="",y){this.displayName=t;this.logoUrl=r;this.authors=n;this.events=o;this.categories=u;this.auth=c;this.minimumSupportedRelease=d;this.maximumSupportedRelease=f;this.description=v;this.deprecated=y;this._actions={};this._triggers={};this.getContextInfo=a(()=>({version:Iu}),"getContextInfo");(!Rh(d)||zh(d,rn))&&(this.minimumSupportedRelease=rn),i.forEach(p=>this._actions[p.name]=p),s.forEach(p=>this._triggers[p.name]=p)}static{a(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:Oh(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}},Au=a(e=>{if(e.auth&&Array.isArray(e.auth)&&!e.auth.every((r,n,o)=>n===o.findIndex(i=>i.type===r.type)))throw new Error("Auth properties must be unique by type");return new pi(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 Oh(e){if(e!==void 0)return Array.isArray(e)?e.map(Su):Su(e)}a(Oh,"withConnectionIdentifierFlag");function Su(e){return{...e,hasConnectionIdentifier:e.getConnectionIdentifier!==void 0}}a(Su,"flagConnectionIdentifier");function Rh(e){return/^\d+\.\d+\.\d+$/.test(e)}a(Rh,"isValidSimpleSemver");function zh(e,t){let[r,n,o]=e.split(".").map(Number),[i,s,u]=t.split(".").map(Number);return r!==i?r<i:n!==s?n<s:o<u}a(zh,"isSemverLessThan");var Dh=_(H(l(),H(l(),l()))),wu=g({id:_(l()),name:l(),displayName:l(),logoUrl:l(),description:l(),authors:U(l()),platformId:_(l()),directoryPath:_(l()),auth:_(G([At,U(At)])),version:l(),categories:_(U(N(Tt))),minimumSupportedRelease:_(l()),maximumSupportedRelease:_(l()),deprecated:_(ee()),i18n:Dh}),kh=N(["human","ai","both"]),$u=g({description:_(l()),idempotent:_(ee())}),Ou=N(["READ","SEARCH","WRITE","DESTRUCTIVE"]);var Ch=N(["tabs","section","summary","builder","footer"]),Ru=g({key:l(),display:Ch,label:_(l()),description:_(l()),icon:_(l()),props:U(l())}),zu=g({name:l(),displayName:l(),description:l(),props:li,propertyGroups:_(U(Ru)),requireAuth:ee(),errorHandlingOptions:_(Vo),outputSchema:_(Kr()),audience:_(kh),aiMetadata:_($u),classification:_(Ou)}),Du=g({name:l(),displayName:l(),description:l(),props:li,propertyGroups:_(U(Ru)),errorHandlingOptions:_(Vo),type:N(Ae),sampleData:B(),handshakeConfiguration:_(Kr()),renewConfiguration:_(Eu),testStrategy:N(pr),outputSchema:_(Kr()),aiMetadata:_($u),classification:_(Ou)}),Nh=g({...wu.shape,actions:H(l(),zu),triggers:H(l(),Du)}),Uh=g({...wu.shape,actions:be(),triggers:be(),suggestedActions:_(U(zu)),suggestedTriggers:_(U(Du))}),ku=g({projectUsage:be(),pieceType:N(bt),packageType:N(ur),platformId:_(l()),archiveId:_(l())}),Fk=g({...Nh.shape,...ku.shape}),Vk=g({...Uh.shape,...ku.shape}),Bk=g({name:l(),version:l()});var Mh=Q(require("path")),Lh=Q(require("fs/promises"));var $t=require("node:stream");var nn=class{constructor(t,r){this.baseUrl=t;this.authenticationConverter=r}static{a(this,"BaseHttpClient")}getUrl(t){let r=new URL(`${this.baseUrl}${t.url}`),n=`${r.origin}${r.pathname}`,o=new URLSearchParams;return r.searchParams.forEach((i,s)=>{o.append(s,i)}),{urlWithoutQueryParams:n,queryParams:o}}getHeaders(t){let r={Accept:"application/json"};return t.authentication&&this.populateAuthentication(t.authentication,r),t.body&&(t.headers?.["Content-Type"]==="text/csv"?r["Content-Type"]="text/csv":r["Content-Type"]="application/json"),t.headers&&(r={...r,...t.headers}),r}populateAuthentication(t,r){this.authenticationConverter.convert(t,r)}};var on=class{static{a(this,"DelegatingAuthenticationConverter")}constructor(t=new di,r=new fi){this.converters={BEARER_TOKEN:t,BASIC:r}}convert(t,r){return this.converters[t.type].convert(t,r)}},di=class{static{a(this,"BearerTokenAuthenticationConverter")}convert(t,r){return r.Authorization=`Bearer ${t.token}`,r}},fi=class{static{a(this,"BasicTokenAuthenticationConverter")}convert(t,r){let n=`${t.username}:${t.password}`,o=Buffer.from(n).toString("base64");return r.Authorization=`Basic ${o}`,r}};var mr=class extends Error{constructor(r,n){let o=n.status||500,i=Buffer.isBuffer(n.responseBody)?n.responseBody.toString():n.responseBody;super(JSON.stringify({response:{status:o,body:i},request:{body:r}}));this.requestBody=r;this.status=o,this.responseBody=i}static{a(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 Cu({error:e,requestBody:t}){return e instanceof mr?e.errorMessage():{response:{status:0,body:e instanceof Error?e.message:String(e)},request:{body:t}}}a(Cu,"toFailsafeOutput");var an=(s=>(s.GET="GET",s.POST="POST",s.PATCH="PATCH",s.PUT="PUT",s.DELETE="DELETE",s.HEAD="HEAD",s))(an||{});var sn=class extends nn{static{a(this,"FetchHttpClient")}constructor(t="",r=new on){super(t,r)}async sendRequest(t,r){process.env.NODE_TLS_REJECT_UNAUTHORIZED="0";let{urlWithoutQueryParams:n,queryParams:o}=this.getUrl(t),i=this.getHeaders(t),s=t.queryParams??{};for(let[q,he]of Object.entries(s))o.append(q,he);let u=o.toString(),c=u?`${n}?${u}`:n,d=t.responseType??"json",f=t.followRedirects??!0,v=t.retries??0,{body:y,extraHeaders:p,isStream:m}=jh(t.method)?Fh(t.body,i):{body:void 0,extraHeaders:{},isStream:!1},P=Bh({...i,...p}),h=await Vh(async()=>{let q=new AbortController,he=t.timeout&&t.timeout>0?setTimeout(()=>q.abort(),t.timeout):void 0;try{let we={method:t.method.toString(),headers:P,body:y,redirect:f?"follow":"manual",signal:q.signal};return m&&(we.duplex="half"),r?.dispatcher!==void 0&&(we.dispatcher=r.dispatcher),await fetch(c,we)}finally{he!==void 0&&clearTimeout(he)}},m?0:v),x=f?300:400;if(h.status<200||h.status>=x){let q=await Nu(h,d==="stream"?"text":d),he=new mr(t.body,{status:h.status,responseBody:q});throw console.error("[HttpClient#(sanitized error message)] Request failed:",he),he}let E=await Nu(h,d);return{status:h.status,headers:Hh(h.headers),body:E}}};function jh(e){return e!=="GET"&&e!=="HEAD"}a(jh,"acceptsRequestBody");function Fh(e,t){if(Mu(e))return{body:void 0,extraHeaders:{},isStream:!1};if(Zh(e)){let n=new $t.PassThrough;return e.on("error",o=>n.destroy(o)),e.pipe(n),{body:n,extraHeaders:e.getHeaders(),isStream:!0}}return e instanceof $t.Readable?{body:e,extraHeaders:{},isStream:!0}:typeof e=="string"||Buffer.isBuffer(e)||e instanceof URLSearchParams||e instanceof ArrayBuffer||typeof FormData<"u"&&e instanceof FormData||typeof Blob<"u"&&e instanceof Blob?{body:e,extraHeaders:{},isStream:!1}:(t["Content-Type"]??t["content-type"]??"").includes("application/x-www-form-urlencoded")?{body:new URLSearchParams(e).toString(),extraHeaders:{},isStream:!1}:{body:JSON.stringify(e),extraHeaders:{},isStream:!1}}a(Fh,"serializeBody");async function Nu(e,t){switch(t){case"arraybuffer":return Buffer.from(await e.arrayBuffer());case"stream":return Mu(e.body)?$t.Readable.from([]):$t.Readable.fromWeb(e.body);case"blob":return await e.blob();case"text":return await e.text();default:{let r=await e.text();if(r.length===0)return;try{return JSON.parse(r)}catch{return r}}}}a(Nu,"parseResponseBody");async function Vh(e,t){let r;for(let n=0;n<=t;n++)try{let o=await e();if(o.status>=500&&n<t){await Uu(n);continue}return o}catch(o){if(r=o,n<t){await Uu(n);continue}throw o}throw r}a(Vh,"sendWithRetries");function Uu(e){let t=Math.min(1e3*2**e,3e4);return new Promise(r=>setTimeout(r,t))}a(Uu,"backoff");function Bh(e){let t={};for(let[r,n]of Object.entries(e))n!==void 0&&(t[r.toLowerCase()]=Array.isArray(n)?n.join(", "):n);return t}a(Bh,"normalizeHeaders");function Hh(e){let t={};return e.forEach((r,n)=>{t[n]=r}),t}a(Hh,"toHttpHeaders");function Zh(e){return typeof e=="object"&&e!==null&&typeof e.getHeaders=="function"&&typeof e.pipe=="function"&&typeof e.on=="function"}a(Zh,"isNodeFormData");function Mu(e){return e==null}a(Mu,"isNil");var hr=new sn;var zy=Q(require("fs")),Hl=Q(Bl());var Dy={"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 ky(e){let t=e.split(";")[0].trim().toLowerCase();return Dy[t]??""}a(ky,"contentTypeToExtension");var Cy=a(({baseUrl:e,relativePath:t})=>{let r=e.endsWith("/")?e:`${e}/`,n=t.startsWith("/")?t.slice(1):t;return`${r}${n}`},"joinBaseUrlWithRelativePath"),Ny=a((e,t)=>{let r="https://api.example.com";try{let n=t?e(t):void 0;return(n?.endsWith("/")?n.slice(0,-1):n)??r}catch{return r}},"getBaseUrlForDescription");function Zl({auth:e,baseUrl:t,authMapping:r,description:n,displayName:o,name:i,props:s,extraProps:u,authLocation:c="headers",classification:d="WRITE"}){return re({audience:"human",name:i||"custom_api_call",classification:d,displayName:o||"Custom API Call",description:n||"Make a custom API call to a specific endpoint",auth:e,requireAuth:!!e,props:{url:T.DynamicProperties({auth:e,displayName:"",required:!0,refreshers:[],props:a(async({auth:f})=>({url:T.ShortText({displayName:"URL",description:`You can either use the full URL or the relative path to the base URL
6
- i.e ${Ny(t,f)}/resource or /resource`,required:!0,defaultValue:f?t(f):"",...s?.url??{}})}),"props")}),method:T.StaticDropdown({displayName:"Method",required:!0,options:{options:Object.values(an).map(f=>({label:f,value:f}))},...s?.method??{}}),headers:T.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!0,...s?.headers??{}}),queryParams:T.Object({displayName:"Query Parameters",required:!0,...s?.queryParams??{}}),body_type:T.StaticDropdown({displayName:"Body Type",required:!1,defaultValue:"none",options:{disabled:!1,options:[{label:"None",value:"none"},{label:"JSON",value:"json"},{label:"Form Data",value:"form_data"},{label:"Raw",value:"raw"}]}}),body:T.DynamicProperties({auth:e,displayName:"Body",refreshers:["body_type"],required:!1,props:a(async({body_type:f})=>{if(!f)return{};let v=f,y={};switch(v){case"none":break;case"json":y.data=T.Json({displayName:"JSON Body",required:!0,...s?.body??{}});break;case"raw":y.data=T.LongText({displayName:"Raw Body",required:!0});break;case"form_data":y.data=T.Array({displayName:"Form Data",required:!0,properties:{fieldName:T.ShortText({displayName:"Field Name",required:!0}),fieldType:T.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:T.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:T.File({displayName:"File Field Value",required:!1})}});break}return y},"props")}),response_is_binary:T.Checkbox({displayName:"Response is Binary ?",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1}),failsafe:T.Checkbox({displayName:"No Error on Failure",required:!1,...s?.failsafe??{}}),timeout:T.Number({displayName:"Timeout (in seconds)",required:!1,...s?.timeout??{}}),followRedirects:T.Checkbox({displayName:"Follow redirects",required:!1,defaultValue:!1}),...u},run:a(async f=>{let{method:v,url:y,headers:p,queryParams:m,body:P,body_type:h,failsafe:x,timeout:E,response_is_binary:q,followRedirects:he}=f.propsValue;Qr(v,"Method"),Qr(y,"URL");let we=ye(r)?{}:await r(f.auth,f.propsValue),De=y.url,ve=De.startsWith("http://")||De.startsWith("https://")?De:Cy({baseUrl:t(f.auth),relativePath:De}),X={method:v,url:ve,headers:{...p??{},...c==="headers"||!ye(c)?we:{}},queryParams:{...c==="queryParams"?we:{},...m??{}},timeout:E?E*1e3:0,followRedirects:he};if(q&&(X.responseType="arraybuffer"),P)if(h&&h!=="none"){let $e=P.data;if(h==="form_data"){let Dr=$e,L=new Hl.default;for(let{fieldName:$,fieldType:I,textFieldValue:D,fileFieldValue:w}of Dr)I==="text"&&!dr(D)?L.append($,D):I==="file"&&!dr(w)&&L.append($,w.data,{filename:w?.filename});X.body=L,X.headers={...X.headers,...L.getHeaders()}}else X.body=$e}else h||(X.body=P);try{let $e=await hr.sendRequest(X);return await Uy(f.files,$e.body,$e.status,$e.headers,q)}catch($e){if(x)return Cu({error:$e,requestBody:X.body});throw $e}},"run")})}a(Zl,"createCustomApiCallAction");var Uy=a(async(e,t,r,n,o)=>{let i;if(o&&My(t)){let s=Array.isArray(n?.["content-type"])?n["content-type"][0]:n?.["content-type"],u=ky(s??"")||"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:r,headers:n,body:i}},"handleBinaryResponse"),My=a(e=>e instanceof ArrayBuffer||Buffer.isBuffer(e),"isBinaryBody");var oe={async poll(e,{store:t,auth:r,propsValue:n,maxItemsToPoll:o,files:i,server:s}){switch(e.strategy){case 0:{let u=await t.get("lastPoll");if(ye(u))throw new Error("lastPoll doesn't exist in the store.");let c=await e.items({store:t,auth:r,propsValue:n,lastFetchEpochMS:u,server:s}),d=c.reduce((f,v)=>Math.max(f,v.epochMilliSeconds),u);return await t.put("lastPoll",d),c.filter(f=>f.epochMilliSeconds>u).map(f=>f.data)}case 1:{let u=await t.get("lastItem"),c=await e.items({store:t,auth:r,propsValue:n,lastItemId:u,files:i,server:s}),d=c.findIndex(y=>y.id===u),f=[];ye(u)||d==-1?f=c??[]:f=c?.slice(0,d)??[],ye(o)||(f=f.slice(-o));let v=f?.[0]?.id;return ye(v)||await t.put("lastItem",v),f.map(y=>y.data)}}},async onEnable(e,{store:t,auth:r,propsValue:n,server:o,isRepublish:i}){switch(e.strategy){case 0:{if(i&&!ye(await t.get("lastPoll")))break;await t.put("lastPoll",Date.now());break}case 1:{if(i&&!ye(await t.get("lastItem")))break;let u=(await e.items({store:t,auth:r,propsValue:n,lastItemId:null,server:o}))?.[0]?.id;ye(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:r,store:n,files:o,server:i}){let s=[];switch(e.strategy){case 0:{s=await e.items({store:n,auth:t,propsValue:r,lastFetchEpochMS:0,server:i});break}case 1:{s=await e.items({store:n,auth:t,propsValue:r,lastItemId:null,files:o,server:i});break}}return Ly(s.map(u=>u.data))}};function Ly(e){return e.length<=5?e:e.slice(0,5)}a(Ly,"getFirstFiveOrAll");var ql=require("node:stream");function jy(e){return"body"in e?{body:e.body,size:e.size}:{body:ql.Readable.from(e.data),size:e.data.length}}a(jy,"toStreamingBody");async function*Fy({readable:e,chunkSize:t}){let r=[],n=0;for await(let o of e)for(r.push(Buffer.isBuffer(o)?o:Buffer.from(o)),n+=r[r.length-1].length;n>=t;){let i=r.length===1?r[0]:Buffer.concat(r);yield i.subarray(0,t);let s=i.subarray(t);r=s.length>0?[s]:[],n=s.length}n>0&&(yield r.length===1?r[0]:Buffer.concat(r))}a(Fy,"readChunks");var ki={readChunks:Fy,toStreamingBody:jy};var Pr="login.microsoftonline.com",Wl="login.microsoftonline.us",Gl={[Pr]:"https://graph.microsoft.com",[Wl]:"https://graph.microsoft.us"},Kl=T.StaticDropdown({displayName:"Cloud Environment",description:"Select your Microsoft cloud environment.",required:!0,defaultValue:Pr,options:{disabled:!1,options:[{label:"Commercial (Global)",value:Pr},{label:"US Government (GCC High)",value:Wl}]}});function Vy(e){return e??Pr}a(Vy,"resolveCloudHost");function S(e){let t=Vy(e);return Gl[t]??Gl[Pr]}a(S,"getGraphBaseUrl");var By=`
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})();Lu.BatchRequestContent=tO});var $x=I(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.BatchResponseContent=void 0;var rO=(Ee(),_e(be)),nO=(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 rO.__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})();ju.BatchResponseContent=nO});var Um=I(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.GRAPH_URLS=Gt.GRAPH_BASE_URL=Gt.GRAPH_API_VERSION=void 0;Gt.GRAPH_API_VERSION="v1.0";Gt.GRAPH_BASE_URL="https://graph.microsoft.com/";Gt.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 St=I(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});Fu.GraphClientError=void 0;var oO=(Ee(),_e(be)),iO=(function(e){oO.__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);Fu.GraphClientError=iO});var Bu=I(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.isCustomHost=ut.isGraphURL=ut.serializeContent=ut.urlJoin=ut.oDataQueryNames=void 0;var aO=Um(),sO=St();ut.oDataQueryNames=["$select","$expand","$orderby","$filter","$top","$skip","$skipToken","$count"];var uO=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");ut.urlJoin=uO;var cO=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");ut.serializeContent=cO;var lO=s(function(e){return Ox(e)},"isGraphURL");ut.isGraphURL=lO;var pO=s(function(e,t){return t.forEach(function(n){return dO(n)}),Ox(e,t)},"isCustomHost");ut.isCustomHost=pO;var Ox=s(function(e,t){if(t===void 0&&(t=aO.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"),dO=s(function(e){if(e.indexOf("/")!==-1)throw new sO.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 Wt=I(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.MiddlewareControl=void 0;var fO=(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})();Zu.MiddlewareControl=fO});var fn=I(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.cloneRequestWithNewUrl=ct.appendRequestHeader=ct.setRequestHeader=ct.getRequestHeader=ct.generateUUID=void 0;var Rx=(Ee(),_e(be)),mO=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");ct.generateUUID=mO;var hO=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");ct.getRequestHeader=hO;var gO=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");ct.setRequestHeader=gO;var yO=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");ct.appendRequestHeader=yO;var vO=s(function(e,t){return Rx.__awaiter(void 0,void 0,void 0,function(){var n,o,r,i,a,u,c,l,d,g,h,p,m;return Rx.__generator(this,function(_){switch(_.label){case 0:return t.headers.get("Content-Type")?[4,t.blob()]:[3,2];case 1:return o=_.sent(),[3,4];case 2:return[4,Promise.resolve(void 0)];case 3:o=_.sent(),_.label=4;case 4:return n=o,r=t.method,i=t.headers,a=t.referrer,u=t.referrerPolicy,c=t.mode,l=t.credentials,d=t.cache,g=t.redirect,h=t.integrity,p=t.keepalive,m=t.signal,[2,new Request(e,{method:r,headers:i,body:n,referrer:a,referrerPolicy:u,mode:c,credentials:l,cache:d,redirect:g,integrity:h,keepalive:p,signal:m})]}})})},"cloneRequestWithNewUrl");ct.cloneRequestWithNewUrl=vO});var Mm=I(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.AuthenticationHandlerOptions=void 0;var _O=(function(){function e(t,n){this.authenticationProvider=t,this.authenticationProviderOptions=n}return s(e,"AuthenticationHandlerOptions"),e})();Vu.AuthenticationHandlerOptions=_O});var hn=I(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.TelemetryHandlerOptions=mn.FeatureUsageFlag=void 0;var zx=Wt(),Lm;(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"})(Lm||(mn.FeatureUsageFlag=Lm={}));var PO=(function(){function e(){this.featureUsage=Lm.NONE}return s(e,"TelemetryHandlerOptions"),e.updateFeatureUsageFlag=function(t,n){var o;t.middlewareControl instanceof zx.MiddlewareControl?o=t.middlewareControl.getMiddlewareOptions(e):t.middlewareControl=new zx.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})();mn.TelemetryHandlerOptions=PO});var qu=I(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.AuthenticationHandler=void 0;var kx=(Ee(),_e(be)),Dx=Bu(),xO=Wt(),bO=fn(),EO=Mm(),Cx=hn(),TO=(function(){function e(t){this.authenticationProvider=t}return s(e,"AuthenticationHandler"),e.prototype.execute=function(t){return kx.__awaiter(this,void 0,void 0,function(){var n,o,r,i,a,u;return kx.__generator(this,function(c){switch(c.label){case 0:return n=typeof t.request=="string"?t.request:t.request.url,(0,Dx.isGraphURL)(n)||t.customHosts&&(0,Dx.isCustomHost)(n,t.customHosts)?(o=void 0,t.middlewareControl instanceof xO.MiddlewareControl&&(o=t.middlewareControl.getMiddlewareOptions(EO.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,bO.appendRequestHeader)(t.request,t.options,e.AUTHORIZATION_HEADER,u),Cx.TelemetryHandlerOptions.updateFeatureUsageFlag(t,Cx.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})();Hu.AuthenticationHandler=TO});var Wu=I(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.HTTPMessageHandler=void 0;var Nx=(Ee(),_e(be)),IO=(function(){function e(){}return s(e,"HTTPMessageHandler"),e.prototype.execute=function(t){return Nx.__awaiter(this,void 0,void 0,function(){var n;return Nx.__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})();Gu.HTTPMessageHandler=IO});var Ei=I(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.RetryHandlerOptions=void 0;var SO=(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})();Ju.RetryHandlerOptions=SO});var Ku=I(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.RetryHandler=void 0;var gn=(Ee(),_e(be)),jm=bi(),AO=Wt(),Ux=fn(),Mx=Ei(),Lx=hn(),wO=(function(){function e(t){t===void 0&&(t=new Mx.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===jm.RequestMethod.PUT||o===jm.RequestMethod.PATCH||o===jm.RequestMethod.POST;if(r){var i=(0,Ux.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 gn.__awaiter(this,void 0,void 0,function(){var n;return gn.__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 AO.MiddlewareControl&&(n=t.middlewareControl.getMiddlewareOptions(this.options.constructor)),typeof n>"u"&&(n=Object.assign(new Mx.RetryHandlerOptions,this.options)),n},e.prototype.executeWithRetry=function(t,n,o){return gn.__awaiter(this,void 0,void 0,function(){var r;return gn.__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,Ux.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 gn.__awaiter(this,void 0,void 0,function(){var n,o;return gn.__generator(this,function(r){switch(r.label){case 0:return n=0,o=this.getOptions(t),Lx.TelemetryHandlerOptions.updateFeatureUsageFlag(t,Lx.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})();Xu.RetryHandler=wO});var Ti=I(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.RedirectHandlerOptions=void 0;var $O=(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})();Yu.RedirectHandlerOptions=$O});var ec=I(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.RedirectHandler=void 0;var yn=(Ee(),_e(be)),OO=bi(),RO=Wt(),zO=fn(),Fm=Ti(),jx=hn(),kO=(function(){function e(t){t===void 0&&(t=new Fm.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 yn.__awaiter(this,void 0,void 0,function(){var o,r;return yn.__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,zO.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 RO.MiddlewareControl&&(n=t.middlewareControl.getMiddlewareOptions(Fm.RedirectHandlerOptions)),typeof n>"u"&&(n=Object.assign(new Fm.RedirectHandlerOptions,this.options)),n},e.prototype.executeWithRedirect=function(t,n,o){return yn.__awaiter(this,void 0,void 0,function(){var r,i;return yn.__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=OO.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 yn.__awaiter(this,void 0,void 0,function(){var n,o;return yn.__generator(this,function(r){switch(r.label){case 0:return n=0,o=this.getOptions(t),t.options.redirect=e.MANUAL_REDIRECT,jx.TelemetryHandlerOptions.updateFeatureUsageFlag(t,jx.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})();Qu.RedirectHandler=kO});var Fx=I(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.PACKAGE_VERSION=void 0;tc.PACKAGE_VERSION="3.0.7"});var oc=I(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.TelemetryHandler=void 0;var Bx=(Ee(),_e(be)),Zx=Bu(),DO=Fx(),CO=Wt(),rc=fn(),NO=hn(),UO=(function(){function e(){}return s(e,"TelemetryHandler"),e.prototype.execute=function(t){return Bx.__awaiter(this,void 0,void 0,function(){var n,o,r,i,a;return Bx.__generator(this,function(u){switch(u.label){case 0:return n=typeof t.request=="string"?t.request:t.request.url,(0,Zx.isGraphURL)(n)||t.customHosts&&(0,Zx.isCustomHost)(n,t.customHosts)?(o=(0,rc.getRequestHeader)(t.request,t.options,e.CLIENT_REQUEST_ID_HEADER),o||(o=(0,rc.generateUUID)(),(0,rc.setRequestHeader)(t.request,t.options,e.CLIENT_REQUEST_ID_HEADER,o)),r="".concat(e.PRODUCT_NAME,"/").concat(DO.PACKAGE_VERSION),i=void 0,t.middlewareControl instanceof CO.MiddlewareControl&&(i=t.middlewareControl.getMiddlewareOptions(NO.TelemetryHandlerOptions)),i&&(a=i.getFeatureUsage(),r+=" (".concat(e.FEATURE_USAGE_STRING,"=").concat(a,")")),(0,rc.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})();nc.TelemetryHandler=UO});var Vx=I(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.MiddlewareFactory=void 0;var MO=qu(),LO=Wu(),jO=Ti(),FO=Ei(),BO=ec(),ZO=Ku(),VO=oc(),HO=s(function(){return typeof process=="object"&&typeof require=="function"},"isNodeEnvironment"),qO=(function(){function e(){}return s(e,"MiddlewareFactory"),e.getDefaultMiddlewareChain=function(t){var n=[],o=new MO.AuthenticationHandler(t),r=new ZO.RetryHandler(new FO.RetryHandlerOptions),i=new VO.TelemetryHandler,a=new LO.HTTPMessageHandler;if(n.push(o),n.push(r),HO()){var u=new BO.RedirectHandler(new jO.RedirectHandlerOptions);n.push(u)}return n.push(i),n.push(a),n},e})();ic.MiddlewareFactory=qO});var sc=I(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.ChaosStrategy=void 0;var Hx;(function(e){e[e.MANUAL=0]="MANUAL",e[e.RANDOM=1]="RANDOM"})(Hx||(ac.ChaosStrategy=Hx={}))});var Bm=I(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.ChaosHandlerOptions=void 0;var GO=sc(),WO=(function(){function e(t,n,o,r,i,a){if(t===void 0&&(t=GO.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})();uc.ChaosHandlerOptions=WO});var qx=I(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.httpStatusCode=vn.methodStatusCode=void 0;vn.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]};vn.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 Jx=I(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.ChaosHandler=void 0;var cc=(Ee(),_e(be)),JO=Wt(),XO=fn(),Gx=qx(),Zm=Bm(),Wx=sc(),KO=(function(){function e(t,n){t===void 0&&(t=new Zm.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=Gx.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,XO.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 cc.__awaiter(this,void 0,void 0,function(){return cc.__generator(this,function(o){switch(o.label){case 0:return this.setStatusCode(t,n.request,n.options.method),t.chaosStrategy===Wx.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=Gx.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===Wx.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 JO.MiddlewareControl&&(n=t.middlewareControl.getMiddlewareOptions(Zm.ChaosHandlerOptions)),typeof n>"u"&&(n=Object.assign(new Zm.ChaosHandlerOptions,this.options)),n},e.prototype.execute=function(t){return cc.__awaiter(this,void 0,void 0,function(){var n;return cc.__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})();lc.ChaosHandler=KO});var Ii=I(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.ResponseType=void 0;var Xx;(function(e){e.ARRAYBUFFER="arraybuffer",e.BLOB="blob",e.DOCUMENT="document",e.JSON="json",e.RAW="raw",e.STREAM="stream",e.TEXT="text"})(Xx||(pc.ResponseType=Xx={}))});var Hm=I(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.GraphResponseHandler=_n.DocumentType=void 0;var dc=(Ee(),_e(be)),Pr=Ii(),Vm;(function(e){e.TEXT_HTML="text/html",e.TEXT_XML="text/xml",e.APPLICATION_XML="application/xml",e.APPLICATION_XHTML="application/xhtml+xml"})(Vm||(_n.DocumentType=Vm={}));var fc;(function(e){e.TEXT_PLAIN="text/plain",e.APPLICATION_JSON="application/json"})(fc||(fc={}));var mc;(function(e){e.DOCUMENT="^(text\\/(html|xml))|(application\\/(xml|xhtml\\+xml))$",e.IMAGE="^image\\/.+"})(mc||(mc={}));var YO=(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 dc.__awaiter(this,void 0,void 0,function(){var o,r,i,a;return dc.__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 Pr.ResponseType.ARRAYBUFFER:return[3,1];case Pr.ResponseType.BLOB:return[3,3];case Pr.ResponseType.DOCUMENT:return[3,5];case Pr.ResponseType.JSON:return[3,7];case Pr.ResponseType.STREAM:return[3,9];case Pr.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,Vm.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(mc.DOCUMENT).test(a)?[4,e.parseDocumentResponse(t,a)]:[3,15]);case 14:return o=u.sent(),[3,21];case 15:return new RegExp(mc.IMAGE).test(a)?(o=t.blob(),[3,21]):[3,16];case 16:return a!==fc.TEXT_PLAIN?[3,18]:[4,t.text()];case 17:return o=u.sent(),[3,21];case 18:return a!==fc.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 dc.__awaiter(this,void 0,void 0,function(){var r;return dc.__generator(this,function(i){switch(i.label){case 0:return n!==Pr.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})();_n.GraphResponseHandler=YO});var qm=I(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.Range=void 0;var QO=(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})();hc.Range=QO});var Gm=I(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.UploadResult=void 0;var eR=(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})();gc.UploadResult=eR});var Jm=I(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.LargeFileUploadTask=void 0;var Ye=(Ee(),_e(be)),Wm=St(),tR=Hm(),Kx=Ii(),yc=qm(),rR=Gm(),nR=(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 Wm.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 yc.Range(0,this.options.rangeSize-1)}return s(e,"LargeFileUploadTask"),e.createUploadSession=function(t,n,o,r){return r===void 0&&(r={}),Ye.__awaiter(this,void 0,void 0,function(){var i,a;return Ye.__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 yc.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 yc.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 yc.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 Wm.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 Ye.__awaiter(this,void 0,void 0,function(){var t,n,o,r,i,a,u;return Ye.__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 Wm.GraphClientError("Something went wrong! Large file upload slice response is null.");return[4,tR.GraphResponseHandler.getResponse(i)];case 4:return a=c.sent(),i.status===201||i.status===200&&a.id?(this.reportProgress(t,n),[2,rR.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 Ye.__awaiter(this,void 0,void 0,function(){return Ye.__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 Ye.__awaiter(this,void 0,void 0,function(){return Ye.__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(Kx.ResponseType.RAW).put(t)];case 1:return[2,r.sent()]}})})},e.prototype.cancel=function(){return Ye.__awaiter(this,void 0,void 0,function(){var t;return Ye.__generator(this,function(n){switch(n.label){case 0:return[4,this.client.api(this.uploadSession.url).responseType(Kx.ResponseType.RAW).delete()];case 1:return t=n.sent(),t.status===204&&(this.uploadSession.isCancelled=!0),[2,t]}})})},e.prototype.getStatus=function(){return Ye.__awaiter(this,void 0,void 0,function(){var t;return Ye.__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 Ye.__awaiter(this,void 0,void 0,function(){return Ye.__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})();vc.LargeFileUploadTask=nR});var Xm=I(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.FileUpload=void 0;var oR=St(),iR=(function(){function e(t,n,o){if(this.content=t,this.name=n,this.size=o,!t||!n||!o)throw new oR.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})();_c.FileUpload=iR});var Km=I(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});Pc.getValidRangeSize=void 0;var aR=5*1024*1024,sR=s(function(e){return e>320*1024&&(e=Math.floor(e/(320*1024))*320*1024),e},"roundTo320KB"),uR=s(function(e){e===void 0&&(e=aR);var t=60*1024*1024;return e>t&&(e=t),sR(e)},"getValidRangeSize");Pc.getValidRangeSize=uR});var Qx=I(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});xc.OneDriveLargeFileUploadTask=void 0;var At=(Ee(),_e(be)),Yx=St(),cR=Xm(),lR=Jm(),pR=Km(),dR=(function(e){At.__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 At.__awaiter(this,void 0,void 0,function(){var i,a,u;return At.__generator(this,function(c){if(!n||!o||!r)throw new Yx.GraphClientError("Please provide the Graph client instance, file object and OneDriveLargeFileUploadOptions value");return i=r.fileName,a=t.getFileInfo(o,i),u=new cR.FileUpload(a.content,i,a.size),[2,this.createTaskWithFileObject(n,u,r)]})})},t.createTaskWithFileObject=function(n,o,r){return At.__awaiter(this,void 0,void 0,function(){var i,a,u,c;return At.__generator(this,function(l){switch(l.label){case 0:if(!n||!o||!r)throw new Yx.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,pR.getValidRangeSize)(r.rangeSize),[2,new t(n,o,u,{rangeSize:c,uploadEventHandlers:r.uploadEventHandlers})]}})})},t.createUploadSession=function(n,o,r){return At.__awaiter(this,void 0,void 0,function(){var i;return At.__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"),At.__awaiter(this,void 0,void 0,function(){var r;return At.__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})(lR.LargeFileUploadTask);xc.OneDriveLargeFileUploadTask=dR});var tb=I(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});bc.StreamUpload=void 0;var eb=(Ee(),_e(be)),Si=St(),fR=(function(){function e(t,n,o){if(this.content=t,this.name=n,this.size=o,!t||!n||!o)throw new Si.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 eb.__awaiter(this,void 0,void 0,function(){var n,o,r,i,a,u,c;return eb.__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 Si.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 Si.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 Si.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 Si.GraphClientError("Error encountered while reading the stream during the upload"))})})},e})();bc.StreamUpload=fR});var rb=I(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.PageIterator=void 0;var Pn=(Ee(),_e(be)),mR=(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 Pn.__awaiter(this,void 0,void 0,function(){var t,n;return Pn.__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 Pn.__awaiter(this,void 0,void 0,function(){var t;return Pn.__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 Pn.__awaiter(this,void 0,void 0,function(){return Pn.__generator(this,function(t){return[2,this.iterate()]})})},e.prototype.isComplete=function(){return this.complete},e})();Ec.PageIterator=mR});var Ym=I(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});Ic.CustomAuthenticationProvider=void 0;var Tc=(Ee(),_e(be)),nb=St(),hR=(function(){function e(t){this.provider=t}return s(e,"CustomAuthenticationProvider"),e.prototype.getAccessToken=function(){return Tc.__awaiter(this,void 0,void 0,function(){var t=this;return Tc.__generator(this,function(n){return[2,new Promise(function(o,r){t.provider(function(i,a){return Tc.__awaiter(t,void 0,void 0,function(){var u,c;return Tc.__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 nb.GraphClientError(u)),[4,nb.GraphClientError.setGraphClientError(i)];case 2:c=l.sent(),r(c),l.label=3;case 3:return[2]}})})})})]})})},e})();Ic.CustomAuthenticationProvider=hR});var Qm=I(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.GraphError=void 0;var gR=(Ee(),_e(be)),yR=(function(e){gR.__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);Sc.GraphError=yR});var ib=I(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});Ac.GraphErrorHandler=void 0;var ob=(Ee(),_e(be)),eh=Qm(),vR=(function(){function e(){}return s(e,"GraphErrorHandler"),e.constructError=function(t,n,o){var r=new eh.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 eh.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),ob.__awaiter(this,void 0,void 0,function(){var i;return ob.__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 eh.GraphError(n),i.body=t),typeof o=="function")o(i,null);else return[2,i];return[2]})})},e})();Ac.GraphErrorHandler=vR});var th=I(wc=>{"use strict";Object.defineProperty(wc,"__esModule",{value:!0});wc.GraphRequest=void 0;var ge=(Ee(),_e(be)),_R=St(),PR=ib(),Ai=Bu(),xR=Hm(),bR=Wt(),xr=bi(),ER=Ii(),TR=(function(){function e(t,n,o){var r=this;this.parsePath=function(i){if(i.indexOf("https://")!==-1){i=i.replace("https://","");var a=i.indexOf("/");a!==-1&&(r.urlComponents.host="https://"+i.substring(0,a),i=i.substring(a+1,i.length));var u=i.indexOf("/");u!==-1&&(r.urlComponents.version=i.substring(0,u),i=i.substring(u+1,i.length))}i.charAt(0)==="/"&&(i=i.substr(1));var c=i.indexOf("?");if(c===-1)r.urlComponents.path=i;else{r.urlComponents.path=i.substr(0,c);for(var l=i.substring(c+1,i.length).split("&"),d=0,g=l;d<g.length;d++){var h=g[d];r.parseQueryParameter(h)}}},this.httpClient=t,this.config=n,this.urlComponents={host:this.config.baseUrl,version:this.config.defaultVersion,oDataQueryParams:{},otherURLQueryParams:{},otherURLQueryOptions:[]},this._headers={},this._options={},this._middlewareOptions=[],this.parsePath(o)}return s(e,"GraphRequest"),e.prototype.addCsvQueryParameter=function(t,n,o){this.urlComponents.oDataQueryParams[t]=this.urlComponents.oDataQueryParams[t]?this.urlComponents.oDataQueryParams[t]+",":"";var r=[];o.length>1&&typeof n=="string"?r=Array.prototype.slice.call(o):typeof n=="string"?r.push(n):r=r.concat(n),this.urlComponents.oDataQueryParams[t]+=r.join(",")},e.prototype.buildFullUrl=function(){var t=(0,Ai.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(Ai.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=ge.__assign({},t.headers);if(this.config.fetchOptions!==void 0){var o=ge.__assign({},this.config.fetchOptions);Object.assign(t,o),typeof this.config.fetchOptions.headers!==void 0&&(t.headers=ge.__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 ge.__awaiter(this,void 0,void 0,function(){var i,a,u,c,l,d,g,h;return ge.__generator(this,function(p){switch(p.label){case 0:a=new bR.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,xR.GraphResponseHandler.getResponse(i,this._responseType,o)];case 3:return l=p.sent(),[2,l];case 4:if(d=p.sent(),d instanceof _R.GraphClientError)throw d;return g=void 0,i&&(g=i.status),[4,PR.GraphErrorHandler.getError(d,g,o,i)];case 5:throw h=p.sent(),h;case 6:return[2]}})})},e.prototype.setHeaderContentType=function(){if(!this._headers){this.header("Content-Type","application/json");return}for(var t=Object.keys(this._headers),n=0,o=t;n<o.length;n++){var r=o[n];if(r.toLowerCase()==="content-type")return}this.header("Content-Type","application/json")},e.prototype.header=function(t,n){return this._headers[t]=n,this},e.prototype.headers=function(t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(this._headers[n]=t[n]);return this},e.prototype.option=function(t,n){return this._options[t]=n,this},e.prototype.options=function(t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(this._options[n]=t[n]);return this},e.prototype.middlewareOptions=function(t){return this._middlewareOptions=t,this},e.prototype.version=function(t){return this.urlComponents.version=t,this},e.prototype.responseType=function(t){return this._responseType=t,this},e.prototype.select=function(t){return this.addCsvQueryParameter("$select",t,arguments),this},e.prototype.expand=function(t){return this.addCsvQueryParameter("$expand",t,arguments),this},e.prototype.orderby=function(t){return this.addCsvQueryParameter("$orderby",t,arguments),this},e.prototype.filter=function(t){return this.urlComponents.oDataQueryParams.$filter=t,this},e.prototype.search=function(t){return this.urlComponents.oDataQueryParams.$search=t,this},e.prototype.top=function(t){return this.urlComponents.oDataQueryParams.$top=t,this},e.prototype.skip=function(t){return this.urlComponents.oDataQueryParams.$skip=t,this},e.prototype.skipToken=function(t){return this.urlComponents.oDataQueryParams.$skipToken=t,this},e.prototype.count=function(t){return t===void 0&&(t=!0),this.urlComponents.oDataQueryParams.$count=t.toString(),this},e.prototype.query=function(t){return this.parseQueryParameter(t)},e.prototype.get=function(t){return ge.__awaiter(this,void 0,void 0,function(){var n,o,r;return ge.__generator(this,function(i){switch(i.label){case 0:return n=this.buildFullUrl(),o={method:xr.RequestMethod.GET},[4,this.send(n,o,t)];case 1:return r=i.sent(),[2,r]}})})},e.prototype.post=function(t,n){return ge.__awaiter(this,void 0,void 0,function(){var o,r,i;return ge.__generator(this,function(a){switch(a.label){case 0:return o=this.buildFullUrl(),r={method:xr.RequestMethod.POST,body:(0,Ai.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 ge.__awaiter(this,void 0,void 0,function(){return ge.__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 ge.__awaiter(this,void 0,void 0,function(){var o,r;return ge.__generator(this,function(i){switch(i.label){case 0:return o=this.buildFullUrl(),this.setHeaderContentType(),r={method:xr.RequestMethod.PUT,body:(0,Ai.serializeContent)(t)},[4,this.send(o,r,n)];case 1:return[2,i.sent()]}})})},e.prototype.patch=function(t,n){return ge.__awaiter(this,void 0,void 0,function(){var o,r;return ge.__generator(this,function(i){switch(i.label){case 0:return o=this.buildFullUrl(),this.setHeaderContentType(),r={method:xr.RequestMethod.PATCH,body:(0,Ai.serializeContent)(t)},[4,this.send(o,r,n)];case 1:return[2,i.sent()]}})})},e.prototype.update=function(t,n){return ge.__awaiter(this,void 0,void 0,function(){return ge.__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 ge.__awaiter(this,void 0,void 0,function(){var n,o;return ge.__generator(this,function(r){switch(r.label){case 0:return n=this.buildFullUrl(),o={method:xr.RequestMethod.DELETE},[4,this.send(n,o,t)];case 1:return[2,r.sent()]}})})},e.prototype.del=function(t){return ge.__awaiter(this,void 0,void 0,function(){return ge.__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 ge.__awaiter(this,void 0,void 0,function(){var n,o;return ge.__generator(this,function(r){switch(r.label){case 0:return n=this.buildFullUrl(),o={method:xr.RequestMethod.GET},this.responseType(ER.ResponseType.STREAM),[4,this.send(n,o,t)];case 1:return[2,r.sent()]}})})},e.prototype.putStream=function(t,n){return ge.__awaiter(this,void 0,void 0,function(){var o,r;return ge.__generator(this,function(i){switch(i.label){case 0:return o=this.buildFullUrl(),r={method:xr.RequestMethod.PUT,headers:{"Content-Type":"application/octet-stream"},body:t},[4,this.send(o,r,n)];case 1:return[2,i.sent()]}})})},e})();wc.GraphRequest=TR});var rh=I($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.HTTPClient=void 0;var ab=(Ee(),_e(be)),IR=(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 ab.__awaiter(this,void 0,void 0,function(){var n;return ab.__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})();$c.HTTPClient=IR});var ub=I(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.HTTPClientFactory=void 0;var SR=(Ee(),_e(be)),sb=rh(),AR=qu(),wR=Wu(),$R=Ti(),OR=Ei(),RR=ec(),zR=Ku(),kR=oc(),DR=s(function(){return typeof process=="object"&&typeof require=="function"},"isNodeEnvironment"),CR=(function(){function e(){}return s(e,"HTTPClientFactory"),e.createWithAuthenticationProvider=function(t){var n=new AR.AuthenticationHandler(t),o=new zR.RetryHandler(new OR.RetryHandlerOptions),r=new kR.TelemetryHandler,i=new wR.HTTPMessageHandler;if(n.setNext(o),DR()){var a=new RR.RedirectHandler(new $R.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(sb.HTTPClient.bind.apply(sb.HTTPClient,SR.__spreadArray([void 0],t,!1)))},e})();Oc.HTTPClientFactory=CR});var cb=I(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});Rc.validatePolyFilling=void 0;var NR=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");Rc.validatePolyFilling=NR});var db=I(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.Client=void 0;var UR=(Ee(),_e(be)),lb=Um(),MR=Ym(),LR=th(),pb=rh(),jR=ub(),FR=cb(),BR=(function(){function e(t){this.config={baseUrl:lb.GRAPH_BASE_URL,debugLogging:!1,defaultVersion:lb.GRAPH_API_VERSION},(0,FR.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=jR.HTTPClientFactory.createWithAuthenticationProvider(t.authProvider);else if(t.middleware!==void 0)o=new(pb.HTTPClient.bind.apply(pb.HTTPClient,UR.__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 MR.CustomAuthenticationProvider(t[o]):t[o]);return e.initWithMiddleware(n)},e.initWithMiddleware=function(t){return new e(t)},e.prototype.api=function(t){return new LR.GraphRequest(this.httpClient,this.config,t)},e})();zc.Client=BR});var ye=I(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});M.ResponseType=M.GraphRequest=M.GraphClientError=M.GraphError=M.CustomAuthenticationProvider=M.Client=M.PageIterator=M.Range=M.UploadResult=M.FileUpload=M.StreamUpload=M.getValidRangeSize=M.OneDriveLargeFileUploadTask=M.LargeFileUploadTask=M.ChaosHandler=M.ChaosStrategy=M.ChaosHandlerOptions=M.TelemetryHandlerOptions=M.FeatureUsageFlag=M.RedirectHandlerOptions=M.RetryHandlerOptions=M.AuthenticationHandlerOptions=M.MiddlewareFactory=M.TelemetryHandler=M.RedirectHandler=M.RetryHandler=M.HTTPMessageHandler=M.AuthenticationHandler=M.BatchResponseContent=M.BatchRequestContent=void 0;var ZR=wx();Object.defineProperty(M,"BatchRequestContent",{enumerable:!0,get:s(function(){return ZR.BatchRequestContent},"get")});var VR=$x();Object.defineProperty(M,"BatchResponseContent",{enumerable:!0,get:s(function(){return VR.BatchResponseContent},"get")});var HR=qu();Object.defineProperty(M,"AuthenticationHandler",{enumerable:!0,get:s(function(){return HR.AuthenticationHandler},"get")});var qR=Wu();Object.defineProperty(M,"HTTPMessageHandler",{enumerable:!0,get:s(function(){return qR.HTTPMessageHandler},"get")});var GR=Ku();Object.defineProperty(M,"RetryHandler",{enumerable:!0,get:s(function(){return GR.RetryHandler},"get")});var WR=ec();Object.defineProperty(M,"RedirectHandler",{enumerable:!0,get:s(function(){return WR.RedirectHandler},"get")});var JR=oc();Object.defineProperty(M,"TelemetryHandler",{enumerable:!0,get:s(function(){return JR.TelemetryHandler},"get")});var XR=Vx();Object.defineProperty(M,"MiddlewareFactory",{enumerable:!0,get:s(function(){return XR.MiddlewareFactory},"get")});var KR=Mm();Object.defineProperty(M,"AuthenticationHandlerOptions",{enumerable:!0,get:s(function(){return KR.AuthenticationHandlerOptions},"get")});var YR=Ei();Object.defineProperty(M,"RetryHandlerOptions",{enumerable:!0,get:s(function(){return YR.RetryHandlerOptions},"get")});var QR=Ti();Object.defineProperty(M,"RedirectHandlerOptions",{enumerable:!0,get:s(function(){return QR.RedirectHandlerOptions},"get")});var fb=hn();Object.defineProperty(M,"FeatureUsageFlag",{enumerable:!0,get:s(function(){return fb.FeatureUsageFlag},"get")});Object.defineProperty(M,"TelemetryHandlerOptions",{enumerable:!0,get:s(function(){return fb.TelemetryHandlerOptions},"get")});var ez=Bm();Object.defineProperty(M,"ChaosHandlerOptions",{enumerable:!0,get:s(function(){return ez.ChaosHandlerOptions},"get")});var tz=sc();Object.defineProperty(M,"ChaosStrategy",{enumerable:!0,get:s(function(){return tz.ChaosStrategy},"get")});var rz=Jx();Object.defineProperty(M,"ChaosHandler",{enumerable:!0,get:s(function(){return rz.ChaosHandler},"get")});var nz=Jm();Object.defineProperty(M,"LargeFileUploadTask",{enumerable:!0,get:s(function(){return nz.LargeFileUploadTask},"get")});var oz=Qx();Object.defineProperty(M,"OneDriveLargeFileUploadTask",{enumerable:!0,get:s(function(){return oz.OneDriveLargeFileUploadTask},"get")});var iz=Km();Object.defineProperty(M,"getValidRangeSize",{enumerable:!0,get:s(function(){return iz.getValidRangeSize},"get")});var az=tb();Object.defineProperty(M,"StreamUpload",{enumerable:!0,get:s(function(){return az.StreamUpload},"get")});var sz=Xm();Object.defineProperty(M,"FileUpload",{enumerable:!0,get:s(function(){return sz.FileUpload},"get")});var uz=Gm();Object.defineProperty(M,"UploadResult",{enumerable:!0,get:s(function(){return uz.UploadResult},"get")});var cz=qm();Object.defineProperty(M,"Range",{enumerable:!0,get:s(function(){return cz.Range},"get")});var lz=rb();Object.defineProperty(M,"PageIterator",{enumerable:!0,get:s(function(){return lz.PageIterator},"get")});var pz=db();Object.defineProperty(M,"Client",{enumerable:!0,get:s(function(){return pz.Client},"get")});var dz=Ym();Object.defineProperty(M,"CustomAuthenticationProvider",{enumerable:!0,get:s(function(){return dz.CustomAuthenticationProvider},"get")});var fz=Qm();Object.defineProperty(M,"GraphError",{enumerable:!0,get:s(function(){return fz.GraphError},"get")});var mz=St();Object.defineProperty(M,"GraphClientError",{enumerable:!0,get:s(function(){return mz.GraphClientError},"get")});var hz=th();Object.defineProperty(M,"GraphRequest",{enumerable:!0,get:s(function(){return hz.GraphRequest},"get")});var gz=Ii();Object.defineProperty(M,"ResponseType",{enumerable:!0,get:s(function(){return gz.ResponseType},"get")})});var xn=I((ih,ah)=>{(function(e,t){typeof ih=="object"&&typeof ah<"u"?ah.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(ih,(function(){"use strict";var e=1e3,t=6e4,n=36e5,o="millisecond",r="second",i="minute",a="hour",u="day",c="week",l="month",d="quarter",g="year",h="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,P={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:s(function(q){var N=["th","st","nd","rd"],z=q%100;return"["+q+(N[(z-20)%10]||N[z]||N[0])+"]"},"ordinal")},x=s(function(q,N,z){var L=String(q);return!L||L.length>=N?q:""+Array(N+1-L.length).join(z)+q},"m"),$={s:x,z:s(function(q){var N=-q.utcOffset(),z=Math.abs(N),L=Math.floor(z/60),C=z%60;return(N<=0?"+":"-")+x(L,2,"0")+":"+x(C,2,"0")},"z"),m:s(function q(N,z){if(N.date()<z.date())return-q(z,N);var L=12*(z.year()-N.year())+(z.month()-N.month()),C=N.clone().add(L,l),Q=z-C<0,ee=N.clone().add(L+(Q?-1:1),l);return+(-(L+(z-C)/(Q?C-ee:ee-C))||0)},"t"),a:s(function(q){return q<0?Math.ceil(q)||0:Math.floor(q)},"a"),p:s(function(q){return{M:l,y:g,w:c,d:u,D:h,h:a,m:i,s:r,ms:o,Q:d}[q]||String(q||"").toLowerCase().replace(/s$/,"")},"p"),u:s(function(q){return q===void 0},"u")},j="en",ne={};ne[j]=P;var fe=s(function(q){return q instanceof He},"p"),Ve=s(function q(N,z,L){var C;if(!N)return j;if(typeof N=="string"){var Q=N.toLowerCase();ne[Q]&&(C=Q),z&&(ne[Q]=z,C=Q);var ee=N.split("-");if(!C&&ee.length>1)return q(ee[0])}else{var me=N.name;ne[me]=N,C=me}return!L&&C&&(j=C),C||!L&&j},"t"),Te=s(function(q,N){if(fe(q))return q.clone();var z=typeof N=="object"?N:{};return z.date=q,z.args=arguments,new He(z)},"w"),te=$;te.l=Ve,te.i=fe,te.w=function(q,N){return Te(q,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var He=(function(){function q(z){this.$L=Ve(z.locale,null,!0),this.parse(z)}s(q,"M");var N=q.prototype;return N.parse=function(z){this.$d=(function(L){var C=L.date,Q=L.utc;if(C===null)return new Date(NaN);if(te.u(C))return new Date;if(C instanceof Date)return new Date(C);if(typeof C=="string"&&!/Z$/i.test(C)){var ee=C.match(m);if(ee){var me=ee[2]-1||0,Se=(ee[7]||"0").substring(0,3);return Q?new Date(Date.UTC(ee[1],me,ee[3]||1,ee[4]||0,ee[5]||0,ee[6]||0,Se)):new Date(ee[1],me,ee[3]||1,ee[4]||0,ee[5]||0,ee[6]||0,Se)}}return new Date(C)})(z),this.$x=z.x||{},this.init()},N.init=function(){var z=this.$d;this.$y=z.getFullYear(),this.$M=z.getMonth(),this.$D=z.getDate(),this.$W=z.getDay(),this.$H=z.getHours(),this.$m=z.getMinutes(),this.$s=z.getSeconds(),this.$ms=z.getMilliseconds()},N.$utils=function(){return te},N.isValid=function(){return this.$d.toString()!==p},N.isSame=function(z,L){var C=Te(z);return this.startOf(L)<=C&&C<=this.endOf(L)},N.isAfter=function(z,L){return Te(z)<this.startOf(L)},N.isBefore=function(z,L){return this.endOf(L)<Te(z)},N.$g=function(z,L,C){return te.u(z)?this[L]:this.set(C,z)},N.unix=function(){return Math.floor(this.valueOf()/1e3)},N.valueOf=function(){return this.$d.getTime()},N.startOf=function(z,L){var C=this,Q=!!te.u(L)||L,ee=te.p(z),me=s(function(Xt,qe){var $t=te.w(C.$u?Date.UTC(C.$y,qe,Xt):new Date(C.$y,qe,Xt),C);return Q?$t:$t.endOf(u)},"l"),Se=s(function(Xt,qe){return te.w(C.toDate()[Xt].apply(C.toDate("s"),(Q?[0,0,0,0]:[23,59,59,999]).slice(qe)),C)},"$"),Re=this.$W,Me=this.$M,nt=this.$D,br="set"+(this.$u?"UTC":"");switch(ee){case g:return Q?me(1,0):me(31,11);case l:return Q?me(1,Me):me(0,Me+1);case c:var Jt=this.$locale().weekStart||0,bn=(Re<Jt?Re+7:Re)-Jt;return me(Q?nt-bn:nt+(6-bn),Me);case u:case h:return Se(br+"Hours",0);case a:return Se(br+"Minutes",1);case i:return Se(br+"Seconds",2);case r:return Se(br+"Milliseconds",3);default:return this.clone()}},N.endOf=function(z){return this.startOf(z,!1)},N.$set=function(z,L){var C,Q=te.p(z),ee="set"+(this.$u?"UTC":""),me=(C={},C[u]=ee+"Date",C[h]=ee+"Date",C[l]=ee+"Month",C[g]=ee+"FullYear",C[a]=ee+"Hours",C[i]=ee+"Minutes",C[r]=ee+"Seconds",C[o]=ee+"Milliseconds",C)[Q],Se=Q===u?this.$D+(L-this.$W):L;if(Q===l||Q===g){var Re=this.clone().set(h,1);Re.$d[me](Se),Re.init(),this.$d=Re.set(h,Math.min(this.$D,Re.daysInMonth())).$d}else me&&this.$d[me](Se);return this.init(),this},N.set=function(z,L){return this.clone().$set(z,L)},N.get=function(z){return this[te.p(z)]()},N.add=function(z,L){var C,Q=this;z=Number(z);var ee=te.p(L),me=s(function(Me){var nt=Te(Q);return te.w(nt.date(nt.date()+Math.round(Me*z)),Q)},"y");if(ee===l)return this.set(l,this.$M+z);if(ee===g)return this.set(g,this.$y+z);if(ee===u)return me(1);if(ee===c)return me(7);var Se=(C={},C[i]=t,C[a]=n,C[r]=e,C)[ee]||1,Re=this.$d.getTime()+z*Se;return te.w(Re,this)},N.subtract=function(z,L){return this.add(-1*z,L)},N.format=function(z){var L=this,C=this.$locale();if(!this.isValid())return C.invalidDate||p;var Q=z||"YYYY-MM-DDTHH:mm:ssZ",ee=te.z(this),me=this.$H,Se=this.$m,Re=this.$M,Me=C.weekdays,nt=C.months,br=C.meridiem,Jt=s(function(qe,$t,En,Ni){return qe&&(qe[$t]||qe(L,Q))||En[$t].slice(0,Ni)},"h"),bn=s(function(qe){return te.s(me%12||12,qe,"0")},"d"),Xt=br||function(qe,$t,En){var Ni=qe<12?"AM":"PM";return En?Ni.toLowerCase():Ni};return Q.replace(_,(function(qe,$t){return $t||(function(En){switch(En){case"YY":return String(L.$y).slice(-2);case"YYYY":return te.s(L.$y,4,"0");case"M":return Re+1;case"MM":return te.s(Re+1,2,"0");case"MMM":return Jt(C.monthsShort,Re,nt,3);case"MMMM":return Jt(nt,Re);case"D":return L.$D;case"DD":return te.s(L.$D,2,"0");case"d":return String(L.$W);case"dd":return Jt(C.weekdaysMin,L.$W,Me,2);case"ddd":return Jt(C.weekdaysShort,L.$W,Me,3);case"dddd":return Me[L.$W];case"H":return String(me);case"HH":return te.s(me,2,"0");case"h":return bn(1);case"hh":return bn(2);case"a":return Xt(me,Se,!0);case"A":return Xt(me,Se,!1);case"m":return String(Se);case"mm":return te.s(Se,2,"0");case"s":return String(L.$s);case"ss":return te.s(L.$s,2,"0");case"SSS":return te.s(L.$ms,3,"0");case"Z":return ee}return null})(qe)||ee.replace(":","")}))},N.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},N.diff=function(z,L,C){var Q,ee=this,me=te.p(L),Se=Te(z),Re=(Se.utcOffset()-this.utcOffset())*t,Me=this-Se,nt=s(function(){return te.m(ee,Se)},"D");switch(me){case g:Q=nt()/12;break;case l:Q=nt();break;case d:Q=nt()/3;break;case c:Q=(Me-Re)/6048e5;break;case u:Q=(Me-Re)/864e5;break;case a:Q=Me/n;break;case i:Q=Me/t;break;case r:Q=Me/e;break;default:Q=Me}return C?Q:te.a(Q)},N.daysInMonth=function(){return this.endOf(l).$D},N.$locale=function(){return ne[this.$L]},N.locale=function(z,L){if(!z)return this.$L;var C=this.clone(),Q=Ve(z,L,!0);return Q&&(C.$L=Q),C},N.clone=function(){return te.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()},q})(),Ci=He.prototype;return Te.prototype=Ci,[["$ms",o],["$s",r],["$m",i],["$H",a],["$W",u],["$M",l],["$y",g],["$D",h]].forEach((function(q){Ci[q[1]]=function(N){return this.$g(N,q[0],q[1])}})),Te.extend=function(q,N){return q.$i||(q(N,He,Te),q.$i=!0),Te},Te.locale=Ve,Te.isDayjs=fe,Te.unix=function(q){return Te(1e3*q)},Te.en=ne[j],Te.Ls=ne,Te.p={},Te}))});var Iz={};ot(Iz,{microsoftSharePoint:()=>Tz});module.exports=_e(Iz);var et={};ot(et,{$ZodAny:()=>Ln,$ZodArray:()=>Zn,$ZodAsyncError:()=>lt,$ZodBase64:()=>Ia,$ZodBase64URL:()=>Sa,$ZodBigInt:()=>Nr,$ZodBigIntFormat:()=>Oa,$ZodBoolean:()=>tr,$ZodCIDRv4:()=>Ea,$ZodCIDRv6:()=>Ta,$ZodCUID:()=>pa,$ZodCUID2:()=>da,$ZodCatch:()=>qa,$ZodCheck:()=>pe,$ZodCheckBigIntFormat:()=>wl,$ZodCheckEndsWith:()=>jl,$ZodCheckGreaterThan:()=>ea,$ZodCheckIncludes:()=>Ml,$ZodCheckLengthEquals:()=>Dl,$ZodCheckLessThan:()=>Qi,$ZodCheckLowerCase:()=>Nl,$ZodCheckMaxLength:()=>zl,$ZodCheckMaxSize:()=>$l,$ZodCheckMimeType:()=>Bl,$ZodCheckMinLength:()=>kl,$ZodCheckMinSize:()=>Ol,$ZodCheckMultipleOf:()=>Sl,$ZodCheckNumberFormat:()=>Al,$ZodCheckOverwrite:()=>Zl,$ZodCheckProperty:()=>Fl,$ZodCheckRegex:()=>Cl,$ZodCheckSizeEquals:()=>Rl,$ZodCheckStartsWith:()=>Ll,$ZodCheckStringFormat:()=>Dr,$ZodCheckUpperCase:()=>Ul,$ZodCodec:()=>Mr,$ZodCustom:()=>Yn,$ZodCustomStringFormat:()=>$a,$ZodDate:()=>Bn,$ZodDefault:()=>Ba,$ZodDiscriminatedUnion:()=>Vn,$ZodE164:()=>Aa,$ZodEmail:()=>ua,$ZodEmoji:()=>ca,$ZodEncodeError:()=>Ot,$ZodEnum:()=>Gn,$ZodError:()=>kn,$ZodExactOptional:()=>Fa,$ZodFile:()=>ja,$ZodFunction:()=>Xa,$ZodGUID:()=>aa,$ZodIPv4:()=>Pa,$ZodIPv6:()=>xa,$ZodISODate:()=>ya,$ZodISODateTime:()=>ga,$ZodISODuration:()=>_a,$ZodISOTime:()=>va,$ZodIntersection:()=>Ua,$ZodJWT:()=>wa,$ZodKSUID:()=>ha,$ZodLazy:()=>Ya,$ZodLiteral:()=>Wn,$ZodMAC:()=>ba,$ZodMap:()=>Ma,$ZodNaN:()=>Ga,$ZodNanoID:()=>la,$ZodNever:()=>Da,$ZodNonOptional:()=>Va,$ZodNull:()=>ka,$ZodNullable:()=>Xn,$ZodNumber:()=>Cr,$ZodNumberFormat:()=>Mn,$ZodObject:()=>Ca,$ZodObjectJIT:()=>Gl,$ZodOptional:()=>Ur,$ZodPipe:()=>Kn,$ZodPrefault:()=>Za,$ZodPromise:()=>Ka,$ZodReadonly:()=>Wa,$ZodRealError:()=>We,$ZodRecord:()=>qn,$ZodRegistry:()=>Qa,$ZodSet:()=>La,$ZodString:()=>vt,$ZodStringFormat:()=>ce,$ZodSuccess:()=>Ha,$ZodSymbol:()=>Ra,$ZodTemplateLiteral:()=>Ja,$ZodTransform:()=>Jn,$ZodTuple:()=>Hn,$ZodType:()=>V,$ZodULID:()=>fa,$ZodURL:()=>Un,$ZodUUID:()=>sa,$ZodUndefined:()=>za,$ZodUnion:()=>rr,$ZodUnknown:()=>jn,$ZodVoid:()=>Fn,$ZodXID:()=>ma,$ZodXor:()=>Na,$brand:()=>Sn,$constructor:()=>y,$input:()=>ts,$output:()=>es,Doc:()=>Nn,JSONSchema:()=>rg,JSONSchemaGenerator:()=>Os,NEVER:()=>Ui,TimePrecision:()=>ns,_any:()=>ko,_array:()=>jp,_base64:()=>Eo,_base64url:()=>To,_bigint:()=>ds,_boolean:()=>Oo,_catch:()=>hI,_check:()=>tg,_cidrv4:()=>xo,_cidrv6:()=>bo,_coercedBigint:()=>zo,_coercedBoolean:()=>Ro,_coercedDate:()=>No,_coercedNumber:()=>wo,_coercedString:()=>io,_cuid:()=>mo,_cuid2:()=>ho,_custom:()=>Bo,_date:()=>_s,_decode:()=>Vi,_decodeAsync:()=>qi,_default:()=>dI,_discriminatedUnion:()=>eI,_e164:()=>Io,_email:()=>ao,_emoji:()=>po,_encode:()=>Zi,_encodeAsync:()=>Hi,_endsWith:()=>ur,_enum:()=>aI,_file:()=>xs,_float32:()=>us,_float64:()=>cs,_gt:()=>dt,_gte:()=>Oe,_guid:()=>Fr,_includes:()=>ar,_int:()=>$o,_int32:()=>ls,_int64:()=>fs,_intersection:()=>tI,_ipv4:()=>_o,_ipv6:()=>Po,_isoDate:()=>is,_isoDateTime:()=>os,_isoDuration:()=>ss,_isoTime:()=>as,_jwt:()=>So,_ksuid:()=>vo,_lazy:()=>_I,_length:()=>Ut,_literal:()=>uI,_lowercase:()=>or,_lt:()=>pt,_lte:()=>Fe,_mac:()=>rs,_map:()=>oI,_max:()=>Fe,_maxLength:()=>Nt,_maxSize:()=>Pt,_mime:()=>cr,_min:()=>Oe,_minLength:()=>Ae,_minSize:()=>ft,_multipleOf:()=>_t,_nan:()=>Ps,_nanoid:()=>fo,_nativeEnum:()=>sI,_negative:()=>Mo,_never:()=>vs,_nonnegative:()=>jo,_nonoptional:()=>fI,_nonpositive:()=>Lo,_normalize:()=>lr,_null:()=>ys,_nullable:()=>pI,_number:()=>Ao,_optional:()=>lI,_overwrite:()=>at,_parse:()=>wr,_parseAsync:()=>$r,_pipe:()=>gI,_positive:()=>Uo,_promise:()=>PI,_property:()=>Fo,_readonly:()=>yI,_record:()=>nI,_refine:()=>bs,_regex:()=>Ne,_safeDecode:()=>Wi,_safeDecodeAsync:()=>Xi,_safeEncode:()=>Gi,_safeEncodeAsync:()=>Ji,_safeParse:()=>Or,_safeParseAsync:()=>zr,_set:()=>iI,_size:()=>Ct,_slugify:()=>Br,_startsWith:()=>sr,_string:()=>oo,_stringFormat:()=>mr,_stringbool:()=>Ss,_success:()=>mI,_superRefine:()=>Es,_symbol:()=>hs,_templateLiteral:()=>vI,_toLowerCase:()=>dr,_toUpperCase:()=>fr,_transform:()=>cI,_trim:()=>pr,_tuple:()=>rI,_uint32:()=>ps,_uint64:()=>ms,_ulid:()=>go,_undefined:()=>gs,_union:()=>YT,_unknown:()=>Do,_uppercase:()=>ir,_url:()=>nr,_uuid:()=>so,_uuidv4:()=>uo,_uuidv6:()=>co,_uuidv7:()=>lo,_void:()=>Co,_xid:()=>yo,_xor:()=>QT,clone:()=>ze,config:()=>Pe,createStandardJSONSchemaMethod:()=>Zr,createToJSONSchemaMethod:()=>Fp,decode:()=>bh,decodeAsync:()=>Th,describe:()=>Ts,encode:()=>xh,encodeAsync:()=>Eh,extractDefs:()=>Lt,finalize:()=>jt,flattenError:()=>Sr,formatError:()=>Ar,globalConfig:()=>In,globalRegistry:()=>ke,initializeContext:()=>Mt,isValidBase64:()=>ql,isValidBase64URL:()=>qh,isValidJWT:()=>Gh,locales:()=>jr,meta:()=>Is,parse:()=>Yt,parseAsync:()=>Qt,prettifyError:()=>Bi,process:()=>le,regexes:()=>Je,registry:()=>no,safeDecode:()=>Sh,safeDecodeAsync:()=>wh,safeEncode:()=>Ih,safeEncodeAsync:()=>Ah,safeParse:()=>Rr,safeParseAsync:()=>kr,toDotPath:()=>Ph,toJSONSchema:()=>Zo,treeifyError:()=>Fi,util:()=>A,version:()=>Vl});var Ui=Object.freeze({status:"aborted"});function y(e,t,n){function o(u,c){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:c,constr:a,traits:new Set},enumerable:!1}),u._zod.traits.has(e))return;u._zod.traits.add(e),t(u,c);let l=a.prototype,d=Object.keys(l);for(let g=0;g<d.length;g++){let h=d[g];h in u||(u[h]=l[h].bind(u))}}s(o,"init");let r=n?.Parent??Object;class i extends r{static{s(this,"Definition")}}Object.defineProperty(i,"name",{value:e});function a(u){var c;let l=n?.Parent?new i:this;o(l,u),(c=l._zod).deferred??(c.deferred=[]);for(let d of l._zod.deferred)d();return l}return s(a,"_"),Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:s(u=>n?.Parent&&u instanceof n.Parent?!0:u?._zod?.traits?.has(e),"value")}),Object.defineProperty(a,"name",{value:e}),a}s(y,"$constructor");var Sn=Symbol("zod_brand"),lt=class extends Error{static{s(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Ot=class extends Error{static{s(this,"$ZodEncodeError")}constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},In={};function Pe(e){return e&&Object.assign(In,e),In}s(Pe,"config");var A={};ot(A,{BIGINT_FORMAT_RANGES:()=>Kc,Class:()=>Vc,NUMBER_FORMAT_RANGES:()=>Xc,aborted:()=>Dt,allowsEval:()=>Gc,assert:()=>mE,assertEqual:()=>lE,assertIs:()=>dE,assertNever:()=>fE,assertNotEqual:()=>pE,assignProp:()=>zt,base64ToUint8Array:()=>yh,base64urlToUint8Array:()=>IE,cached:()=>Tr,captureStackTrace:()=>Li,cleanEnum:()=>TE,cleanRegex:()=>$n,clone:()=>ze,cloneDef:()=>gE,createTransparentProxy:()=>bE,defineLazy:()=>X,esc:()=>Mi,escapeRegex:()=>it,extend:()=>fh,finalizeIssue:()=>Ge,floatSafeRemainder:()=>Hc,getElementAtPath:()=>yE,getEnumValues:()=>wn,getLengthableOrigin:()=>zn,getParsedType:()=>xE,getSizableOrigin:()=>Rn,hexToUint8Array:()=>AE,isObject:()=>Kt,isPlainObject:()=>kt,issue:()=>Ir,joinValues:()=>b,jsonStringifyReplacer:()=>Er,merge:()=>EE,mergeDefs:()=>yt,normalizeParams:()=>T,nullish:()=>Rt,numKeys:()=>PE,objectClone:()=>hE,omit:()=>dh,optionalKeys:()=>Jc,parsedType:()=>w,partial:()=>hh,pick:()=>ph,prefixIssues:()=>Qe,primitiveTypes:()=>Wc,promiseAllObject:()=>vE,propertyKeyTypes:()=>On,randomString:()=>_E,required:()=>gh,safeExtend:()=>mh,shallowClone:()=>ji,slugify:()=>qc,stringifyPrimitive:()=>S,uint8ArrayToBase64:()=>vh,uint8ArrayToBase64url:()=>SE,uint8ArrayToHex:()=>wE,unwrapMessage:()=>An});function lE(e){return e}s(lE,"assertEqual");function pE(e){return e}s(pE,"assertNotEqual");function dE(e){}s(dE,"assertIs");function fE(e){throw new Error("Unexpected value in exhaustive check")}s(fE,"assertNever");function mE(e){}s(mE,"assert");function wn(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(wn,"getEnumValues");function b(e,t="|"){return e.map(n=>S(n)).join(t)}s(b,"joinValues");function Er(e,t){return typeof t=="bigint"?t.toString():t}s(Er,"jsonStringifyReplacer");function Tr(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}s(Tr,"cached");function Rt(e){return e==null}s(Rt,"nullish");function $n(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}s($n,"cleanRegex");function Hc(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(Hc,"floatSafeRemainder");var lh=Symbol("evaluating");function X(e,t,n){let o;Object.defineProperty(e,t,{get(){if(o!==lh)return o===void 0&&(o=lh,o=n()),o},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}s(X,"defineLazy");function hE(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}s(hE,"objectClone");function zt(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}s(zt,"assignProp");function yt(...e){let t={};for(let n of e){let o=Object.getOwnPropertyDescriptors(n);Object.assign(t,o)}return Object.defineProperties({},t)}s(yt,"mergeDefs");function gE(e){return yt(e._zod.def)}s(gE,"cloneDef");function yE(e,t){return t?t.reduce((n,o)=>n?.[o],e):e}s(yE,"getElementAtPath");function vE(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(vE,"promiseAllObject");function _E(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let o=0;o<e;o++)n+=t[Math.floor(Math.random()*t.length)];return n}s(_E,"randomString");function Mi(e){return JSON.stringify(e)}s(Mi,"esc");function qc(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}s(qc,"slugify");var Li="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Kt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}s(Kt,"isObject");var Gc=Tr(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function kt(e){if(Kt(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(Kt(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}s(kt,"isPlainObject");function ji(e){return kt(e)?{...e}:Array.isArray(e)?[...e]:e}s(ji,"shallowClone");function PE(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}s(PE,"numKeys");var xE=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"),On=new Set(["string","number","symbol"]),Wc=new Set(["string","number","bigint","boolean","symbol","undefined"]);function it(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}s(it,"escapeRegex");function ze(e,t,n){let o=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(o._zod.parent=e),o}s(ze,"clone");function T(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(T,"normalizeParams");function bE(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(bE,"createTransparentProxy");function S(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}s(S,"stringifyPrimitive");function Jc(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}s(Jc,"optionalKeys");var Xc={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]},Kc={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function ph(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=yt(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 zt(this,"shape",a),a},checks:[]});return ze(e,i)}s(ph,"pick");function dh(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=yt(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 zt(this,"shape",a),a},checks:[]});return ze(e,i)}s(dh,"omit");function fh(e,t){if(!kt(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=yt(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return zt(this,"shape",i),i}});return ze(e,r)}s(fh,"extend");function mh(e,t){if(!kt(t))throw new Error("Invalid input to safeExtend: expected a plain object");let n=yt(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return zt(this,"shape",o),o}});return ze(e,n)}s(mh,"safeExtend");function EE(e,t){let n=yt(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return zt(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:[]});return ze(e,n)}s(EE,"merge");function hh(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=yt(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 zt(this,"shape",c),c},checks:[]});return ze(t,a)}s(hh,"partial");function gh(e,t,n){let o=yt(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 zt(this,"shape",i),i}});return ze(t,o)}s(gh,"required");function Dt(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(Dt,"aborted");function Qe(e,t){return t.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}s(Qe,"prefixIssues");function An(e){return typeof e=="string"?e:e?.message}s(An,"unwrapMessage");function Ge(e,t,n){let o={...e,path:e.path??[]};if(!e.message){let r=An(e.inst?._zod.def?.error?.(e))??An(t?.error?.(e))??An(n.customError?.(e))??An(n.localeError?.(e))??"Invalid input";o.message=r}return delete o.inst,delete o.continue,t?.reportInput||delete o.input,o}s(Ge,"finalizeIssue");function Rn(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}s(Rn,"getSizableOrigin");function zn(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}s(zn,"getLengthableOrigin");function w(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(w,"parsedType");function Ir(...e){let[t,n,o]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:o}:{...t}}s(Ir,"issue");function TE(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}s(TE,"cleanEnum");function yh(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(yh,"base64ToUint8Array");function vh(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}s(vh,"uint8ArrayToBase64");function IE(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return yh(t+n)}s(IE,"base64urlToUint8Array");function SE(e){return vh(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}s(SE,"uint8ArrayToBase64url");function AE(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(AE,"hexToUint8Array");function wE(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}s(wE,"uint8ArrayToHex");var Vc=class{static{s(this,"Class")}constructor(...t){}};var _h=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,Er,2),Object.defineProperty(e,"toString",{value:s(()=>e.message,"value"),enumerable:!1})},"initializer"),kn=y("$ZodError",_h),We=y("$ZodError",_h,{Parent:Error});function Sr(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(Sr,"flattenError");function Ar(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(Ar,"formatError");function Fi(e,t=n=>n.message){let n={errors:[]},o=s((r,i=[])=>{var a,u;for(let c of r.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(l=>o({issues:l},c.path));else if(c.code==="invalid_key")o({issues:c.issues},c.path);else if(c.code==="invalid_element")o({issues:c.issues},c.path);else{let l=[...i,...c.path];if(l.length===0){n.errors.push(t(c));continue}let d=n,g=0;for(;g<l.length;){let h=l[g],p=g===l.length-1;typeof h=="string"?(d.properties??(d.properties={}),(a=d.properties)[h]??(a[h]={errors:[]}),d=d.properties[h]):(d.items??(d.items=[]),(u=d.items)[h]??(u[h]={errors:[]}),d=d.items[h]),p&&d.errors.push(t(c)),g++}}},"processError");return o(e),n}s(Fi,"treeifyError");function Ph(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(Ph,"toDotPath");function Bi(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 ${Ph(o.path)}`);return t.join(`
6
+ `)}s(Bi,"prettifyError");var wr=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 lt;if(a.issues.length){let u=new(r?.Err??e)(a.issues.map(c=>Ge(c,i,Pe())));throw Li(u,r?.callee),u}return a.value},"_parse"),Yt=wr(We),$r=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=>Ge(c,i,Pe())));throw Li(u,r?.callee),u}return a.value},"_parseAsync"),Qt=$r(We),Or=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 lt;return i.issues.length?{success:!1,error:new(e??kn)(i.issues.map(a=>Ge(a,r,Pe())))}:{success:!0,data:i.value}},"_safeParse"),Rr=Or(We),zr=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=>Ge(a,r,Pe())))}:{success:!0,data:i.value}},"_safeParseAsync"),kr=zr(We),Zi=s(e=>(t,n,o)=>{let r=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return wr(e)(t,n,r)},"_encode"),xh=Zi(We),Vi=s(e=>(t,n,o)=>wr(e)(t,n,o),"_decode"),bh=Vi(We),Hi=s(e=>async(t,n,o)=>{let r=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return $r(e)(t,n,r)},"_encodeAsync"),Eh=Hi(We),qi=s(e=>async(t,n,o)=>$r(e)(t,n,o),"_decodeAsync"),Th=qi(We),Gi=s(e=>(t,n,o)=>{let r=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Or(e)(t,n,r)},"_safeEncode"),Ih=Gi(We),Wi=s(e=>(t,n,o)=>Or(e)(t,n,o),"_safeDecode"),Sh=Wi(We),Ji=s(e=>async(t,n,o)=>{let r=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return zr(e)(t,n,r)},"_safeEncodeAsync"),Ah=Ji(We),Xi=s(e=>async(t,n,o)=>zr(e)(t,n,o),"_safeDecodeAsync"),wh=Xi(We);var Je={};ot(Je,{base64:()=>fl,base64url:()=>Ki,bigint:()=>_l,boolean:()=>xl,browserEmail:()=>UE,cidrv4:()=>pl,cidrv6:()=>dl,cuid:()=>Yc,cuid2:()=>Qc,date:()=>hl,datetime:()=>yl,domain:()=>jE,duration:()=>ol,e164:()=>ml,email:()=>al,emoji:()=>sl,extendedDuration:()=>OE,guid:()=>il,hex:()=>FE,hostname:()=>LE,html5Email:()=>DE,idnEmail:()=>NE,integer:()=>Pl,ipv4:()=>ul,ipv6:()=>cl,ksuid:()=>rl,lowercase:()=>Tl,mac:()=>ll,md5_base64:()=>ZE,md5_base64url:()=>VE,md5_hex:()=>BE,nanoid:()=>nl,null:()=>bl,number:()=>Yi,rfc5322Email:()=>CE,sha1_base64:()=>qE,sha1_base64url:()=>GE,sha1_hex:()=>HE,sha256_base64:()=>JE,sha256_base64url:()=>XE,sha256_hex:()=>WE,sha384_base64:()=>YE,sha384_base64url:()=>QE,sha384_hex:()=>KE,sha512_base64:()=>tT,sha512_base64url:()=>rT,sha512_hex:()=>eT,string:()=>vl,time:()=>gl,ulid:()=>el,undefined:()=>El,unicodeEmail:()=>$h,uppercase:()=>Il,uuid:()=>er,uuid4:()=>RE,uuid6:()=>zE,uuid7:()=>kE,xid:()=>tl});var Yc=/^[cC][^\s-]{8,}$/,Qc=/^[0-9a-z]+$/,el=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,tl=/^[0-9a-vA-V]{20}$/,rl=/^[A-Za-z0-9]{27}$/,nl=/^[a-zA-Z0-9_-]{21}$/,ol=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,OE=/^[-+]?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)?)??$/,il=/^([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})$/,er=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"),RE=er(4),zE=er(6),kE=er(7),al=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,DE=/^[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])?)*$/,CE=/^(([^<>()\[\]\\.,;:\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,}))$/,$h=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,NE=$h,UE=/^[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])?)*$/,ME="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function sl(){return new RegExp(ME,"u")}s(sl,"emoji");var ul=/^(?:(?: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])$/,cl=/^(([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}|:))$/,ll=s(e=>{let t=it(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"),pl=/^((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])$/,dl=/^(([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])$/,fl=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ki=/^[A-Za-z0-9_-]*$/,LE=/^(?=.{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])?)*\.?$/,jE=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,ml=/^\+[1-9]\d{6,14}$/,Oh="(?:(?:\\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])))",hl=new RegExp(`^${Oh}$`);function Rh(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(Rh,"timeSource");function gl(e){return new RegExp(`^${Rh(e)}$`)}s(gl,"time");function yl(e){let t=Rh({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(`^${Oh}T(?:${o})$`)}s(yl,"datetime");var vl=s(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},"string"),_l=/^-?\d+n?$/,Pl=/^-?\d+$/,Yi=/^-?\d+(?:\.\d+)?$/,xl=/^(?:true|false)$/i,bl=/^null$/i;var El=/^undefined$/i;var Tl=/^[^A-Z]*$/,Il=/^[^a-z]*$/,FE=/^[0-9a-fA-F]*$/;function Dn(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}s(Dn,"fixedBase64");function Cn(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}s(Cn,"fixedBase64url");var BE=/^[0-9a-fA-F]{32}$/,ZE=Dn(22,"=="),VE=Cn(22),HE=/^[0-9a-fA-F]{40}$/,qE=Dn(27,"="),GE=Cn(27),WE=/^[0-9a-fA-F]{64}$/,JE=Dn(43,"="),XE=Cn(43),KE=/^[0-9a-fA-F]{96}$/,YE=Dn(64,""),QE=Cn(64),eT=/^[0-9a-fA-F]{128}$/,tT=Dn(86,"=="),rT=Cn(86);var pe=y("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),kh={number:"number",bigint:"bigint",object:"date"},Qi=y("$ZodCheckLessThan",(e,t)=>{pe.init(e,t);let n=kh[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})}}),ea=y("$ZodCheckGreaterThan",(e,t)=>{pe.init(e,t);let n=kh[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})}}),Sl=y("$ZodCheckMultipleOf",(e,t)=>{pe.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):Hc(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})}}),Al=y("$ZodCheckNumberFormat",(e,t)=>{pe.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),o=n?"int":"number",[r,i]=Xc[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=Pl)}),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})}}),wl=y("$ZodCheckBigIntFormat",(e,t)=>{pe.init(e,t);let[n,o]=Kc[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})}}),$l=y("$ZodCheckMaxSize",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!Rt(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:Rn(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ol=y("$ZodCheckMinSize",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!Rt(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:Rn(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Rl=y("$ZodCheckSizeEquals",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!Rt(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:Rn(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})}}),zl=y("$ZodCheckMaxLength",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!Rt(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=zn(r);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),kl=y("$ZodCheckMinLength",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!Rt(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=zn(r);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Dl=y("$ZodCheckLengthEquals",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!Rt(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=zn(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})}}),Dr=y("$ZodCheckStringFormat",(e,t)=>{var n,o;pe.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=()=>{})}),Cl=y("$ZodCheckRegex",(e,t)=>{Dr.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})}}),Nl=y("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Tl),Dr.init(e,t)}),Ul=y("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Il),Dr.init(e,t)}),Ml=y("$ZodCheckIncludes",(e,t)=>{pe.init(e,t);let n=it(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})}}),Ll=y("$ZodCheckStartsWith",(e,t)=>{pe.init(e,t);let n=new RegExp(`^${it(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})}}),jl=y("$ZodCheckEndsWith",(e,t)=>{pe.init(e,t);let n=new RegExp(`.*${it(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{let r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function zh(e,t,n){e.issues.length&&t.issues.push(...Qe(n,e.issues))}s(zh,"handleCheckPropertyResult");var Fl=y("$ZodCheckProperty",(e,t)=>{pe.init(e,t),e._zod.check=n=>{let o=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then(r=>zh(r,n,t.property));zh(o,n,t.property)}}),Bl=y("$ZodCheckMimeType",(e,t)=>{pe.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})}}),Zl=y("$ZodCheckOverwrite",(e,t)=>{pe.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var Nn=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(...o.map(a=>a.length-a.trimStart().length)),i=o.map(a=>a.slice(r)).map(a=>" ".repeat(this.indent*2)+a);for(let a of i)this.content.push(a)}compile(){let t=Function,n=this?.args,r=[...(this?.content??[""]).map(i=>` ${i}`)];return new t(...n,r.join(`
8
+ `))}};var Vl={major:4,minor:3,patch:6};var V=y("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Vl;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=Dt(a),d;for(let g of u){if(g._zod.def.when){if(!g._zod.def.when(a))continue}else if(l)continue;let h=a.issues.length,p=g._zod.check(a);if(p instanceof Promise&&c?.async===!1)throw new lt;if(d||p instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await p,a.issues.length!==h&&(l||(l=Dt(a,h)))});else{if(a.issues.length===h)continue;l||(l=Dt(a,h))}}return d?d.then(()=>a):a},"runChecks"),i=s((a,u,c)=>{if(Dt(a))return a.aborted=!0,a;let l=r(u,o,c);if(l instanceof Promise){if(c.async===!1)throw new lt;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 lt;return c.then(l=>r(l,o,u))}return r(c,o,u)}}X(e,"~standard",()=>({validate:s(r=>{try{let i=Rr(e,r);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return kr(e,r).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},"validate"),vendor:"zod",version:1}))}),vt=y("$ZodString",(e,t)=>{V.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??vl(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}}),ce=y("$ZodStringFormat",(e,t)=>{Dr.init(e,t),vt.init(e,t)}),aa=y("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=il),ce.init(e,t)}),sa=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=er(o))}else t.pattern??(t.pattern=er());ce.init(e,t)}),ua=y("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=al),ce.init(e,t)}),Un=y("$ZodURL",(e,t)=>{ce.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})}}}),ca=y("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=sl()),ce.init(e,t)}),la=y("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=nl),ce.init(e,t)}),pa=y("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Yc),ce.init(e,t)}),da=y("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Qc),ce.init(e,t)}),fa=y("$ZodULID",(e,t)=>{t.pattern??(t.pattern=el),ce.init(e,t)}),ma=y("$ZodXID",(e,t)=>{t.pattern??(t.pattern=tl),ce.init(e,t)}),ha=y("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=rl),ce.init(e,t)}),ga=y("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=yl(t)),ce.init(e,t)}),ya=y("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=hl),ce.init(e,t)}),va=y("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=gl(t)),ce.init(e,t)}),_a=y("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=ol),ce.init(e,t)}),Pa=y("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=ul),ce.init(e,t),e._zod.bag.format="ipv4"}),xa=y("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=cl),ce.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})}}}),ba=y("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=ll(t.delimiter)),ce.init(e,t),e._zod.bag.format="mac"}),Ea=y("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=pl),ce.init(e,t)}),Ta=y("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=dl),ce.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 ql(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}s(ql,"isValidBase64");var Ia=y("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=fl),ce.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{ql(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function qh(e){if(!Ki.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return ql(n)}s(qh,"isValidBase64URL");var Sa=y("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Ki),ce.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{qh(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Aa=y("$ZodE164",(e,t)=>{t.pattern??(t.pattern=ml),ce.init(e,t)});function Gh(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(Gh,"isValidJWT");var wa=y("$ZodJWT",(e,t)=>{ce.init(e,t),e._zod.check=n=>{Gh(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),$a=y("$ZodCustomStringFormat",(e,t)=>{ce.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})}}),Cr=y("$ZodNumber",(e,t)=>{V.init(e,t),e._zod.pattern=e._zod.bag.pattern??Yi,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}}),Mn=y("$ZodNumberFormat",(e,t)=>{Al.init(e,t),Cr.init(e,t)}),tr=y("$ZodBoolean",(e,t)=>{V.init(e,t),e._zod.pattern=xl,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}}),Nr=y("$ZodBigInt",(e,t)=>{V.init(e,t),e._zod.pattern=_l,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}}),Oa=y("$ZodBigIntFormat",(e,t)=>{wl.init(e,t),Nr.init(e,t)}),Ra=y("$ZodSymbol",(e,t)=>{V.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}}),za=y("$ZodUndefined",(e,t)=>{V.init(e,t),e._zod.pattern=El,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}}),ka=y("$ZodNull",(e,t)=>{V.init(e,t),e._zod.pattern=bl,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}}),Ln=y("$ZodAny",(e,t)=>{V.init(e,t),e._zod.parse=n=>n}),jn=y("$ZodUnknown",(e,t)=>{V.init(e,t),e._zod.parse=n=>n}),Da=y("$ZodNever",(e,t)=>{V.init(e,t),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),Fn=y("$ZodVoid",(e,t)=>{V.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}}),Bn=y("$ZodDate",(e,t)=>{V.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 Ch(e,t,n){e.issues.length&&t.issues.push(...Qe(n,e.issues)),t.value[n]=e.value}s(Ch,"handleArrayResult");var Zn=y("$ZodArray",(e,t)=>{V.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=>Ch(l,n,a))):Ch(c,n,a)}return i.length?Promise.all(i).then(()=>n):n}});function ia(e,t,n,o,r){if(e.issues.length){if(r&&!(n in o))return;t.issues.push(...Qe(n,e.issues))}e.value===void 0?n in o&&(t.value[n]=void 0):t.value[n]=e.value}s(ia,"handlePropertyResult");function Wh(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=Jc(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}s(Wh,"normalizeDef");function Jh(e,t,n,o,r,i){let a=[],u=r.keySet,c=r.catchall._zod,l=c.def.type,d=c.optout==="optional";for(let g in t){if(u.has(g))continue;if(l==="never"){a.push(g);continue}let h=c.run({value:t[g],issues:[]},o);h instanceof Promise?e.push(h.then(p=>ia(p,n,g,t,d))):ia(h,n,g,t,d)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}s(Jh,"handleCatchall");var Ca=y("$ZodObject",(e,t)=>{if(V.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=Tr(()=>Wh(t));X(e._zod,"propValues",()=>{let u=t.shape,c={};for(let l in u){let d=u[l]._zod;if(d.values){c[l]??(c[l]=new Set);for(let g of d.values)c[l].add(g)}}return c});let r=Kt,i=t.catchall,a;e._zod.parse=(u,c)=>{a??(a=o.value);let l=u.value;if(!r(l))return u.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),u;u.value={};let d=[],g=a.shape;for(let h of a.keys){let p=g[h],m=p._zod.optout==="optional",_=p._zod.run({value:l[h],issues:[]},c);_ instanceof Promise?d.push(_.then(P=>ia(P,u,h,l,m))):ia(_,u,h,l,m)}return i?Jh(d,l,u,c,o.value,e):d.length?Promise.all(d).then(()=>u):u}}),Gl=y("$ZodObjectJIT",(e,t)=>{Ca.init(e,t);let n=e._zod.parse,o=Tr(()=>Wh(t)),r=s(h=>{let p=new Nn(["shape","payload","ctx"]),m=o.value,_=s(j=>{let ne=Mi(j);return`shape[${ne}]._zod.run({ value: input[${ne}], issues: [] }, ctx)`},"parseStr");p.write("const input = payload.value;");let P=Object.create(null),x=0;for(let j of m.keys)P[j]=`key_${x++}`;p.write("const newResult = {};");for(let j of m.keys){let ne=P[j],fe=Mi(j),Te=h[j]?._zod?.optout==="optional";p.write(`const ${ne} = ${_(j)};`),Te?p.write(`
9
+ if (${ne}.issues.length) {
10
+ if (${fe} in input) {
11
+ payload.issues = payload.issues.concat(${ne}.issues.map(iss => ({
12
+ ...iss,
13
+ path: iss.path ? [${fe}, ...iss.path] : [${fe}]
14
+ })));
15
+ }
16
+ }
17
+
18
+ if (${ne}.value === undefined) {
19
+ if (${fe} in input) {
20
+ newResult[${fe}] = undefined;
21
+ }
22
+ } else {
23
+ newResult[${fe}] = ${ne}.value;
24
+ }
25
+
26
+ `):p.write(`
27
+ if (${ne}.issues.length) {
28
+ payload.issues = payload.issues.concat(${ne}.issues.map(iss => ({
29
+ ...iss,
30
+ path: iss.path ? [${fe}, ...iss.path] : [${fe}]
31
+ })));
32
+ }
33
+
34
+ if (${ne}.value === undefined) {
35
+ if (${fe} in input) {
36
+ newResult[${fe}] = undefined;
37
+ }
38
+ } else {
39
+ newResult[${fe}] = ${ne}.value;
40
+ }
41
+
42
+ `)}p.write("payload.value = newResult;"),p.write("return payload;");let $=p.compile();return(j,ne)=>$(h,j,ne)},"generateFastpass"),i,a=Kt,u=!In.jitless,l=u&&Gc.value,d=t.catchall,g;e._zod.parse=(h,p)=>{g??(g=o.value);let m=h.value;return a(m)?u&&l&&p?.async===!1&&p.jitless!==!0?(i||(i=r(t.shape)),h=i(h,p),d?Jh([],m,h,p,g,e):h):n(h,p):(h.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),h)}});function Nh(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=>!Dt(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=>Ge(a,o,Pe())))}),t)}s(Nh,"handleUnionResults");var rr=y("$ZodUnion",(e,t)=>{V.init(e,t),X(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),X(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),X(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),X(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=>$n(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=>Nh(c,r,e,i)):Nh(u,r,e,i)}});function Uh(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=>Ge(a,o,Pe())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t)}s(Uh,"handleExclusiveUnionResults");var Na=y("$ZodXor",(e,t)=>{rr.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=>Uh(c,r,e,i)):Uh(u,r,e,i)}}),Vn=y("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,rr.init(e,t);let n=e._zod.parse;X(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=Tr(()=>{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(!Kt(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)}}),Ua=y("$ZodIntersection",(e,t)=>{V.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])=>Mh(n,c,l)):Mh(n,i,a)}});function Hl(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(kt(e)&&kt(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=Hl(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=Hl(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(Hl,"mergeValues");function Mh(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}),Dt(e))return e;let a=Hl(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(Mh,"handleIntersectionResults");var Hn=y("$ZodTuple",(e,t)=>{V.init(e,t);let n=t.items;e._zod.parse=(o,r)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let a=[],u=[...n].reverse().findIndex(d=>d._zod.optin!=="optional"),c=u===-1?0:n.length-u;if(!t.rest){let d=i.length>n.length,g=i.length<c-1;if(d||g)return o.issues.push({...d?{code:"too_big",maximum:n.length,inclusive:!0}:{code:"too_small",minimum:n.length},input:i,inst:e,origin:"array"}),o}let l=-1;for(let d of n){if(l++,l>=i.length&&l>=c)continue;let g=d._zod.run({value:i[l],issues:[]},r);g instanceof Promise?a.push(g.then(h=>ta(h,o,l))):ta(g,o,l)}if(t.rest){let d=i.slice(n.length);for(let g of d){l++;let h=t.rest._zod.run({value:g,issues:[]},r);h instanceof Promise?a.push(h.then(p=>ta(p,o,l))):ta(h,o,l)}}return a.length?Promise.all(a).then(()=>o):o}});function ta(e,t,n){e.issues.length&&t.issues.push(...Qe(n,e.issues)),t.value[n]=e.value}s(ta,"handleTupleResult");var qn=y("$ZodRecord",(e,t)=>{V.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;if(!kt(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;let i=[],a=t.keyType._zod.values;if(a){n.value={};let u=new Set;for(let l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){u.add(typeof l=="number"?l.toString():l);let d=t.valueType._zod.run({value:r[l],issues:[]},o);d instanceof Promise?i.push(d.then(g=>{g.issues.length&&n.issues.push(...Qe(l,g.issues)),n.value[l]=g.value})):(d.issues.length&&n.issues.push(...Qe(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"&&Yi.test(u)&&c.issues.length){let g=t.keyType._zod.run({value:Number(u),issues:[]},o);if(g instanceof Promise)throw new Error("Async schemas not supported in object keys currently");g.issues.length===0&&(c=g)}if(c.issues.length){t.mode==="loose"?n.value[u]=r[u]:n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(g=>Ge(g,o,Pe())),input:u,path:[u],inst:e});continue}let d=t.valueType._zod.run({value:r[u],issues:[]},o);d instanceof Promise?i.push(d.then(g=>{g.issues.length&&n.issues.push(...Qe(u,g.issues)),n.value[c.value]=g.value})):(d.issues.length&&n.issues.push(...Qe(u,d.issues)),n.value[c.value]=d.value)}}return i.length?Promise.all(i).then(()=>n):n}}),Ma=y("$ZodMap",(e,t)=>{V.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;if(!(r instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),n;let i=[];n.value=new Map;for(let[a,u]of r){let c=t.keyType._zod.run({value:a,issues:[]},o),l=t.valueType._zod.run({value:u,issues:[]},o);c instanceof Promise||l instanceof Promise?i.push(Promise.all([c,l]).then(([d,g])=>{Lh(d,g,n,a,r,e,o)})):Lh(c,l,n,a,r,e,o)}return i.length?Promise.all(i).then(()=>n):n}});function Lh(e,t,n,o,r,i,a){e.issues.length&&(On.has(typeof o)?n.issues.push(...Qe(o,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:r,inst:i,issues:e.issues.map(u=>Ge(u,a,Pe()))})),t.issues.length&&(On.has(typeof o)?n.issues.push(...Qe(o,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:i,key:o,issues:t.issues.map(u=>Ge(u,a,Pe()))})),n.value.set(e.value,t.value)}s(Lh,"handleMapResult");var La=y("$ZodSet",(e,t)=>{V.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=>jh(c,n))):jh(u,n)}return i.length?Promise.all(i).then(()=>n):n}});function jh(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}s(jh,"handleSetResult");var Gn=y("$ZodEnum",(e,t)=>{V.init(e,t);let n=wn(t.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(r=>On.has(typeof r)).map(r=>typeof r=="string"?it(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}}),Wn=y("$ZodLiteral",(e,t)=>{if(V.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"?it(o):o?it(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)=>{V.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}}),Jn=y("$ZodTransform",(e,t)=>{V.init(e,t),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Ot(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 lt;return n.value=r,n}});function Fh(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}s(Fh,"handleOptionalResult");var Ur=y("$ZodOptional",(e,t)=>{V.init(e,t),e._zod.optin="optional",e._zod.optout="optional",X(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),X(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${$n(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=>Fh(i,n.value)):Fh(r,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,o)}}),Fa=y("$ZodExactOptional",(e,t)=>{Ur.init(e,t),X(e._zod,"values",()=>t.innerType._zod.values),X(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,o)=>t.innerType._zod.run(n,o)}),Xn=y("$ZodNullable",(e,t)=>{V.init(e,t),X(e._zod,"optin",()=>t.innerType._zod.optin),X(e._zod,"optout",()=>t.innerType._zod.optout),X(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${$n(n.source)}|null)$`):void 0}),X(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)}),Ba=y("$ZodDefault",(e,t)=>{V.init(e,t),e._zod.optin="optional",X(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=>Bh(i,t)):Bh(r,t)}});function Bh(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}s(Bh,"handleDefaultResult");var Za=y("$ZodPrefault",(e,t)=>{V.init(e,t),e._zod.optin="optional",X(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))}),Va=y("$ZodNonOptional",(e,t)=>{V.init(e,t),X(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=>Zh(i,e)):Zh(r,e)}});function Zh(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(Zh,"handleNonOptionalResult");var Ha=y("$ZodSuccess",(e,t)=>{V.init(e,t),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Ot("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)}}),qa=y("$ZodCatch",(e,t)=>{V.init(e,t),X(e._zod,"optin",()=>t.innerType._zod.optin),X(e._zod,"optout",()=>t.innerType._zod.optout),X(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=>Ge(a,o,Pe()))},input:n.value}),n.issues=[]),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(i=>Ge(i,o,Pe()))},input:n.value}),n.issues=[]),n)}}),Ga=y("$ZodNaN",(e,t)=>{V.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)}),Kn=y("$ZodPipe",(e,t)=>{V.init(e,t),X(e._zod,"values",()=>t.in._zod.values),X(e._zod,"optin",()=>t.in._zod.optin),X(e._zod,"optout",()=>t.out._zod.optout),X(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=>ra(a,t.in,o)):ra(i,t.in,o)}let r=t.in._zod.run(n,o);return r instanceof Promise?r.then(i=>ra(i,t.out,o)):ra(r,t.out,o)}});function ra(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}s(ra,"handlePipeResult");var Mr=y("$ZodCodec",(e,t)=>{V.init(e,t),X(e._zod,"values",()=>t.in._zod.values),X(e._zod,"optin",()=>t.in._zod.optin),X(e._zod,"optout",()=>t.out._zod.optout),X(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=>na(a,t,o)):na(i,t,o)}else{let i=t.out._zod.run(n,o);return i instanceof Promise?i.then(a=>na(a,t,o)):na(i,t,o)}}});function na(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=>oa(e,i,t.out,n)):oa(e,r,t.out,n)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(i=>oa(e,i,t.in,n)):oa(e,r,t.in,n)}}s(na,"handleCodecAResult");function oa(e,t,n,o){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},o)}s(oa,"handleCodecTxResult");var Wa=y("$ZodReadonly",(e,t)=>{V.init(e,t),X(e._zod,"propValues",()=>t.innerType._zod.propValues),X(e._zod,"values",()=>t.innerType._zod.values),X(e._zod,"optin",()=>t.innerType?._zod?.optin),X(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(Vh):Vh(r)}});function Vh(e){return e.value=Object.freeze(e.value),e}s(Vh,"handleReadonlyResult");var Ja=y("$ZodTemplateLiteral",(e,t)=>{V.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||Wc.has(typeof o))n.push(it(`${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)}),Xa=y("$ZodFunction",(e,t)=>(V.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?Yt(e._def.input,o):o,i=Reflect.apply(n,this,r);return e._def.output?Yt(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 Qt(e._def.input,o):o,i=await Reflect.apply(n,this,r);return e._def.output?await Qt(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 Hn({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)),Ka=y("$ZodPromise",(e,t)=>{V.init(e,t),e._zod.parse=(n,o)=>Promise.resolve(n.value).then(r=>t.innerType._zod.run({value:r,issues:[]},o))}),Ya=y("$ZodLazy",(e,t)=>{V.init(e,t),X(e._zod,"innerType",()=>t.getter()),X(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),X(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),X(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),X(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,o)=>e._zod.innerType._zod.run(n,o)}),Yn=y("$ZodCustom",(e,t)=>{pe.init(e,t),V.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=>Hh(i,n,o,e));Hh(r,n,o,e)}});function Hh(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(Ir(r))}}s(Hh,"handleRefineResult");var jr={};ot(jr,{ar:()=>Wl,az:()=>Jl,be:()=>Xl,bg:()=>Kl,ca:()=>Yl,cs:()=>Ql,da:()=>ep,de:()=>tp,en:()=>Qn,eo:()=>rp,es:()=>np,fa:()=>op,fi:()=>ip,fr:()=>ap,frCA:()=>sp,he:()=>up,hu:()=>cp,hy:()=>lp,id:()=>pp,is:()=>dp,it:()=>fp,ja:()=>mp,ka:()=>hp,kh:()=>gp,km:()=>eo,ko:()=>yp,lt:()=>vp,mk:()=>_p,ms:()=>Pp,nl:()=>xp,no:()=>bp,ota:()=>Ep,pl:()=>Ip,ps:()=>Tp,pt:()=>Sp,ru:()=>Ap,sl:()=>wp,sv:()=>$p,ta:()=>Op,th:()=>Rp,tr:()=>zp,ua:()=>kp,uk:()=>ro,ur:()=>Dp,uz:()=>Cp,vi:()=>Np,yo:()=>Lp,zhCN:()=>Up,zhTW:()=>Mp});var oT=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=w(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 ${S(r.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${r.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${r.prefix}"`:i.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${i.suffix}"`:i.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${i.includes}"`:i.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${i.pattern}`:`${n[i.format]??r.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${r.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${r.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${r.keys.length>1?"\u0629":""}: ${b(r.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}},"error");function Wl(){return{localeError:oT()}}s(Wl,"default");var iT=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=w(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 ${S(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${i}${r.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${i}${r.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${i.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:i.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${i.suffix}" il\u0259 bitm\u0259lidir`:i.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${i.includes}" daxil olmal\u0131d\u0131r`:i.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${i.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${n[i.format]??r.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${r.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${r.keys.length>1?"lar":""}: ${b(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${r.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}},"error");function Jl(){return{localeError:iT()}}s(Jl,"default");function Xh(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(Xh,"getBelarusianPlural");var aT=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=w(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 ${S(r.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);if(a){let u=Number(r.maximum),c=Xh(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=Xh(u,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${r.minimum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${n[i.format]??r.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${r.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${b(r.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${r.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${r.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}},"error");function Xl(){return{localeError:aT()}}s(Xl,"default");var sT=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=w(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 ${S(r.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${r.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${r.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;if(i.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${i.prefix}"`;if(i.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${i.suffix}"`;if(i.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${i.includes}"`;if(i.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${i.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${n[i.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${r.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u043E\u0432\u0435":""}: ${b(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${r.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}},"error");function Kl(){return{localeError:sT()}}s(Kl,"default");var uT=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=w(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 ${S(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${b(r.values," o ")}`;case"too_big":{let i=r.inclusive?"com a m\xE0xim":"menys de",a=t(r.origin);return a?`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xE9s ${i} ${r.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(r.origin);return a?`Massa petit: s'esperava que ${r.origin} contingu\xE9s ${i} ${r.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${r.origin} fos ${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\xE0lid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${i.pattern}`:`Format inv\xE0lid per a ${n[i.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${r.divisor}`;case"unrecognized_keys":return`Clau${r.keys.length>1?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${b(r.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${r.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${r.origin}`;default:return"Entrada inv\xE0lida"}}},"error");function Yl(){return{localeError:uT()}}s(Yl,"default");var cT=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=w(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 ${S(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${i}${r.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${i}${r.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${i.pattern}`:`Neplatn\xFD form\xE1t ${n[i.format]??r.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${r.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${b(r.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${r.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${r.origin}`;default:return"Neplatn\xFD vstup"}}},"error");function Ql(){return{localeError:cT()}}s(Ql,"default");var lT=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=w(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 ${S(r.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin),u=o[r.origin]??r.origin;return a?`For stor: forventede ${u??"value"} ${a.verb} ${i} ${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${u??"value"} havde ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin),u=o[r.origin]??r.origin;return a?`For lille: forventede ${u} ${a.verb} ${i} ${r.minimum.toString()} ${a.unit}`:`For lille: forventede ${u} havde ${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.format]??r.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${b(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${r.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${r.origin}`;default:return"Ugyldigt input"}}},"error");function ep(){return{localeError:lT()}}s(ep,"default");var pT=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=w(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 ${S(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${i}${r.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${i}${r.maximum.toString()} ist`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Zu klein: erwartet, dass ${r.origin} ${i}${r.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${i}${r.minimum.toString()} ist`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ung\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\xFCltig: ${n[i.format]??r.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case"unrecognized_keys":return`${r.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${b(r.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${r.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${r.origin}`;default:return"Ung\xFCltige Eingabe"}}},"error");function tp(){return{localeError:pT()}}s(tp,"default");var dT=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=w(r.input),u=o[a]??a;return`Invalid input: expected ${i}, received ${u}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${S(r.values[0])}`:`Invalid option: expected one of ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Too big: expected ${r.origin??"value"} to have ${i}${r.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Too small: expected ${r.origin} to have ${i}${r.minimum.toString()} ${a.unit}`:`Too small: expected ${r.origin} to be ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${n[i.format]??r.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${r.divisor}`;case"unrecognized_keys":return`Unrecognized key${r.keys.length>1?"s":""}: ${b(r.keys,", ")}`;case"invalid_key":return`Invalid key in ${r.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${r.origin}`;default:return"Invalid input"}}},"error");function Qn(){return{localeError:dT()}}s(Qn,"default");var fT=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=w(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 ${S(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Tro malgranda: atendi\u011Dis ke ${r.origin} havu ${i}${r.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${r.origin} estu ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${n[i.format]??r.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${r.divisor}`;case"unrecognized_keys":return`Nekonata${r.keys.length>1?"j":""} \u015Dlosilo${r.keys.length>1?"j":""}: ${b(r.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${r.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${r.origin}`;default:return"Nevalida enigo"}}},"error");function rp(){return{localeError:fT()}}s(rp,"default");var mT=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=w(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 ${S(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin),u=o[r.origin]??r.origin;return a?`Demasiado grande: se esperaba que ${u??"valor"} tuviera ${i}${r.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${u??"valor"} fuera ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin),u=o[r.origin]??r.origin;return a?`Demasiado peque\xF1o: se esperaba que ${u} tuviera ${i}${r.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${u} fuera ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${i.pattern}`:`Inv\xE1lido ${n[i.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Llave${r.keys.length>1?"s":""} desconocida${r.keys.length>1?"s":""}: ${b(r.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[r.origin]??r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[r.origin]??r.origin}`;default:return"Entrada inv\xE1lida"}}},"error");function np(){return{localeError:mT()}}s(np,"default");var hT=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=w(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 ${S(r.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${b(r.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:i.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:i.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${i.includes}" \u0628\u0627\u0634\u062F`:i.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${i.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${n[i.format]??r.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${r.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${r.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${b(r.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${r.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${r.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}},"error");function op(){return{localeError:hT()}}s(op,"default");var gT=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=w(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 ${S(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${i}${r.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${i}${r.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${i.pattern}`:`Virheellinen ${n[i.format]??r.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${r.divisor} monikerta`;case"unrecognized_keys":return`${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${b(r.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}},"error");function ip(){return{localeError:gT()}}s(ip,"default");var yT=s(()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}s(t,"getSizing");let n={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN",number:"nombre",array:"tableau"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=w(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 : ${S(r.values[0])} attendu`:`Option invalide : une valeur parmi ${b(r.values,"|")} attendue`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Trop grand : ${r.origin??"valeur"} doit ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${r.origin??"valeur"} doit \xEAtre ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Trop petit : ${r.origin} doit ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`Trop petit : ${r.origin} doit \xEAtre ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${i.pattern}`:`${n[i.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${b(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}},"error");function ap(){return{localeError:yT()}}s(ap,"default");var vT=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=w(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 ${S(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"\u2264":"<",a=t(r.origin);return a?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${i}${r.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?"\u2265":">",a=t(r.origin);return a?`Trop petit : attendu que ${r.origin} ait ${i}${r.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${r.origin} soit ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${n[i.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${b(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}},"error");function sp(){return{localeError:vT()}}s(sp,"default");var _T=s(()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},n=s(l=>l?e[l]:void 0,"typeEntry"),o=s(l=>{let d=n(l);return d?d.label:l??e.unknown.label},"typeLabel"),r=s(l=>`\u05D4${o(l)}`,"withDefinite"),i=s(l=>(n(l)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA","verbFor"),a=s(l=>l?t[l]??null:null,"getSizing"),u={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},c={nan:"NaN"};return l=>{switch(l.code){case"invalid_type":{let d=l.expected,g=c[d??""]??o(d),h=w(l.input),p=c[h]??e[h]?.label??h;return/^[A-Z]/.test(l.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${l.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${g}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`}case"invalid_value":{if(l.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${S(l.values[0])}`;let d=l.values.map(p=>S(p));if(l.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${d[0]} \u05D0\u05D5 ${d[1]}`;let g=d[d.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${d.slice(0,-1).join(", ")} \u05D0\u05D5 ${g}`}case"too_big":{let d=a(l.origin),g=r(l.origin??"value");if(l.origin==="string")return`${d?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${g} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.maximum.toString()} ${d?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(l.origin==="number"){let m=l.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${l.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${g} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}`}if(l.origin==="array"||l.origin==="set"){let m=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",_=l.inclusive?`${l.maximum} ${d?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${l.maximum} ${d?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${g} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${_}`.trim()}let h=l.inclusive?"<=":"<",p=i(l.origin??"value");return d?.unit?`${d.longLabel} \u05DE\u05D3\u05D9: ${g} ${p} ${h}${l.maximum.toString()} ${d.unit}`:`${d?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${g} ${p} ${h}${l.maximum.toString()}`}case"too_small":{let d=a(l.origin),g=r(l.origin??"value");if(l.origin==="string")return`${d?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${g} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.minimum.toString()} ${d?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(l.origin==="number"){let m=l.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${l.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${g} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}`}if(l.origin==="array"||l.origin==="set"){let m=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(l.minimum===1&&l.inclusive){let P=(l.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${g} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${P}`}let _=l.inclusive?`${l.minimum} ${d?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${l.minimum} ${d?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${g} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${_}`.trim()}let h=l.inclusive?">=":">",p=i(l.origin??"value");return d?.unit?`${d.shortLabel} \u05DE\u05D3\u05D9: ${g} ${p} ${h}${l.minimum.toString()} ${d.unit}`:`${d?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${g} ${p} ${h}${l.minimum.toString()}`}case"invalid_format":{let d=l;if(d.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${d.prefix}"`;if(d.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${d.suffix}"`;if(d.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${d.includes}"`;if(d.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${d.pattern}`;let g=u[d.format],h=g?.label??d.format,m=(g?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${h} \u05DC\u05D0 ${m}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${l.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${l.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${l.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${b(l.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${r(l.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}},"error");function up(){return{localeError:_T()}}s(up,"default");var PT=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=w(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 ${S(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xFAl nagy: ${r.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${r.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${r.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} m\xE9rete t\xFAl kicsi ${i}${r.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} t\xFAl kicsi ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\xC9rv\xE9nytelen string: "${i.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:i.format==="ends_with"?`\xC9rv\xE9nytelen string: "${i.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:i.format==="includes"?`\xC9rv\xE9nytelen string: "${i.includes}" \xE9rt\xE9ket kell tartalmaznia`:i.format==="regex"?`\xC9rv\xE9nytelen string: ${i.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${n[i.format]??r.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${r.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${r.keys.length>1?"s":""}: ${b(r.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${r.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${r.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}},"error");function cp(){return{localeError:PT()}}s(cp,"default");function Kh(e,t,n){return Math.abs(e)===1?t:n}s(Kh,"getArmenianPlural");function Lr(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(Lr,"withDefiniteArticle");var xT=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=w(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 ${S(r.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);if(a){let u=Number(r.maximum),c=Kh(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 ${Lr(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 ${Lr(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=Kh(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 ${Lr(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 ${Lr(r.origin)} \u056C\u056B\u0576\u056B ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${i.prefix}"-\u0578\u057E`:i.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${i.suffix}"-\u0578\u057E`:i.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${i.includes}"`:i.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${i.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${n[i.format]??r.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${r.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${r.keys.length>1?"\u0576\u0565\u0580":""}. ${b(r.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Lr(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 ${Lr(r.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}},"error");function lp(){return{localeError:xT()}}s(lp,"default");var bT=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=w(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 ${S(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${i}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: diharapkan ${r.origin} memiliki ${i}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${n[i.format]??r.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${r.keys.length>1?"s":""}: ${b(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`;default:return"Input tidak valid"}}},"error");function pp(){return{localeError:bT()}}s(pp,"default");var ET=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=w(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 ${S(r.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} hafi ${i}${r.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} s\xE9 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} hafi ${i}${r.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} s\xE9 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${i.prefix}"`:i.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${i.suffix}"`:i.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${n[i.format]??r.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${r.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${r.keys.length>1?"ir lyklar":"ur lykill"}: ${b(r.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${r.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${r.origin}`;default:return"Rangt gildi"}}},"error");function dp(){return{localeError:ET()}}s(dp,"default");var TT=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=w(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 ${S(r.values[0])}`:`Opzione non valida: atteso uno tra ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Troppo grande: ${r.origin??"valore"} deve avere ${i}${r.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Troppo piccolo: ${r.origin} deve avere ${i}${r.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${r.origin} deve essere ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Invalid ${n[i.format]??r.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case"unrecognized_keys":return`Chiav${r.keys.length>1?"i":"e"} non riconosciut${r.keys.length>1?"e":"a"}: ${b(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`;default:return"Input non valido"}}},"error");function fp(){return{localeError:TT()}}s(fp,"default");var IT=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=w(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: ${S(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${b(r.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=r.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(r.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${a.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=r.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(r.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${a.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${i.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${n[i.format]??r.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${r.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${r.keys.length>1?"\u7FA4":""}: ${b(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}},"error");function mp(){return{localeError:IT()}}s(mp,"default");var ST=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=w(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 ${S(r.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${b(r.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.prefix}"-\u10D8\u10D7`:i.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.suffix}"-\u10D8\u10D7`:i.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${i.includes}"-\u10E1`:i.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${i.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${n[i.format]??r.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${r.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${r.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${b(r.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${r.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${r.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}},"error");function hp(){return{localeError:ST()}}s(hp,"default");var AT=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=w(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 ${S(r.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${r.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${i} ${r.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${i.prefix}"`:i.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${i.suffix}"`:i.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${i.includes}"`:i.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${i.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${n[i.format]??r.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${r.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${b(r.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${r.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${r.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}},"error");function eo(){return{localeError:AT()}}s(eo,"default");function gp(){return eo()}s(gp,"default");var wT=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=w(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 ${S(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${b(r.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",u=t(r.origin),c=u?.unit??"\uC694\uC18C";return u?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${c} ${i}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()} ${i}${a}`}case"too_small":{let i=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",u=t(r.origin),c=u?.unit??"\uC694\uC18C";return u?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${c} ${i}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()} ${i}${a}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:i.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${i.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${n[i.format]??r.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${r.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${b(r.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${r.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${r.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}},"error");function yp(){return{localeError:wT()}}s(yp,"default");var to=s(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalizeFirstCharacter");function Yh(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(Yh,"getUnitTypeFromNumber");var $T=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=w(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 ${S(r.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${b(r.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[r.origin]??r.origin,a=t(r.origin,Yh(Number(r.maximum)),r.inclusive??!1,"smaller");if(a?.verb)return`${to(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`${to(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,Yh(Number(r.minimum)),r.inclusive??!1,"bigger");if(a?.verb)return`${to(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`${to(i??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${u} ${r.minimum.toString()} ${a?.unit}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${n[i.format]??r.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${r.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${r.keys.length>1?"i":"as"} rakt${r.keys.length>1?"ai":"as"}: ${b(r.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=o[r.origin]??r.origin;return`${to(i??r.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}},"error");function vp(){return{localeError:$T()}}s(vp,"default");var OT=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=w(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 ${S(r.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${r.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${r.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${i.pattern}`:`Invalid ${n[i.format]??r.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${b(r.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${r.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${r.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}},"error");function _p(){return{localeError:OT()}}s(_p,"default");var RT=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=w(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 ${S(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: dijangka ${r.origin??"nilai"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: dijangka ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${n[i.format]??r.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${b(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`;default:return"Input tidak sah"}}},"error");function Pp(){return{localeError:RT()}}s(Pp,"default");var zT=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=w(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 ${S(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin),u=r.origin==="date"?"laat":r.origin==="string"?"lang":"groot";return a?`Te ${u}: verwacht dat ${r.origin??"waarde"} ${i}${r.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${u}: verwacht dat ${r.origin??"waarde"} ${i}${r.maximum.toString()} is`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin),u=r.origin==="date"?"vroeg":r.origin==="string"?"kort":"klein";return a?`Te ${u}: verwacht dat ${r.origin} ${i}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${u}: verwacht dat ${r.origin} ${i}${r.minimum.toString()} is`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${n[i.format]??r.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${r.keys.length>1?"s":""}: ${b(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`;default:return"Ongeldige invoer"}}},"error");function xp(){return{localeError:zT()}}s(xp,"default");var kT=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=w(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 ${S(r.values[0])}`:`Ugyldig valg: forventet en av ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${i}${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`For lite(n): forventet ${r.origin} til \xE5 ha ${i}${r.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${r.origin} til \xE5 ha ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.format]??r.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${b(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}},"error");function bp(){return{localeError:kT()}}s(bp,"default");var DT=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=w(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 ${S(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${i}${r.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${i}${r.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${i}${r.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${i}${r.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=r;return i.format==="starts_with"?`F\xE2sit metin: "${i.prefix}" ile ba\u015Flamal\u0131.`:i.format==="ends_with"?`F\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\xE2sit metin: "${i.includes}" ihtiv\xE2 etmeli.`:i.format==="regex"?`F\xE2sit metin: ${i.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${n[i.format]??r.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${r.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${r.keys.length>1?"s":""}: ${b(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${r.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}},"error");function Ep(){return{localeError:DT()}}s(Ep,"default");var CT=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=w(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 ${S(r.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${b(r.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} \u0648\u064A`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:i.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:i.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${i.includes}" \u0648\u0644\u0631\u064A`:i.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${i.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${n[i.format]??r.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${r.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${r.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${b(r.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${r.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${r.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}},"error");function Tp(){return{localeError:CT()}}s(Tp,"default");var NT=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=w(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 ${S(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${r.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${r.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${i.pattern}`:`Nieprawid\u0142ow(y/a/e) ${n[i.format]??r.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${b(r.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${r.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${r.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}},"error");function Ip(){return{localeError:NT()}}s(Ip,"default");var UT=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=w(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 ${S(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${i}${r.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Muito pequeno: esperado que ${r.origin} tivesse ${i}${r.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${i.prefix}"`:i.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inv\xE1lido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${i.pattern}`:`${n[i.format]??r.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Chave${r.keys.length>1?"s":""} desconhecida${r.keys.length>1?"s":""}: ${b(r.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${r.origin}`;default:return"Campo inv\xE1lido"}}},"error");function Sp(){return{localeError:UT()}}s(Sp,"default");function Qh(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(Qh,"getRussianPlural");var MT=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=w(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 ${S(r.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);if(a){let u=Number(r.maximum),c=Qh(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=Qh(u,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${r.minimum.toString()} ${c}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${n[i.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${r.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0438":""}: ${b(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${r.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}},"error");function Ap(){return{localeError:MT()}}s(Ap,"default");var LT=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=w(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 ${S(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${i}${r.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${r.origin} imelo ${i}${r.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${n[i.format]??r.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${b(r.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${r.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`;default:return"Neveljaven vnos"}}},"error");function wp(){return{localeError:LT()}}s(wp,"default");var jT=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=w(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 ${S(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${i}${r.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${r.origin??"v\xE4rdet"} att ha ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${i}${r.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${n[i.format]??r.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${b(r.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${r.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${r.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}},"error");function $p(){return{localeError:jT()}}s($p,"default");var FT=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=w(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 ${S(r.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${b(r.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${r.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${r.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin} ${i}${r.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin} ${i}${r.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${i.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${n[i.format]??r.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${r.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${r.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${b(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${r.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}},"error");function Op(){return{localeError:FT()}}s(Op,"default");var BT=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=w(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 ${S(r.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${i.prefix}"`:i.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${i.suffix}"`:i.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${i.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:i.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${i.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${n[i.format]??r.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${r.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${b(r.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}},"error");function Rp(){return{localeError:BT()}}s(Rp,"default");var ZT=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=w(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 ${S(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${i}${r.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${i}${r.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[i.format]??r.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${r.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${r.keys.length>1?"lar":""}: ${b(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${r.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}},"error");function zp(){return{localeError:ZT()}}s(zp,"default");var VT=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=w(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 ${S(r.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} \u0431\u0443\u0434\u0435 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${n[i.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0456":""}: ${b(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${r.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}},"error");function ro(){return{localeError:VT()}}s(ro,"default");function kp(){return ro()}s(kp,"default");var HT=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=w(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: ${S(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${b(r.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${r.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u06D2 ${i}${r.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u0627 ${i}${r.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${i.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${n[i.format]??r.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${r.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${r.keys.length>1?"\u0632":""}: ${b(r.keys,"\u060C ")}`;case"invalid_key":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}},"error");function Dp(){return{localeError:HT()}}s(Dp,"default");var qT=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=w(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 ${S(r.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Juda katta: kutilgan ${r.origin??"qiymat"} ${i}${r.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${r.origin??"qiymat"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Juda kichik: kutilgan ${r.origin} ${i}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto\u2018g\u2018ri satr: "${i.includes}" ni o\u2018z ichiga olishi kerak`:i.format==="regex"?`Noto\u2018g\u2018ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${n[i.format]??r.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${r.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${r.keys.length>1?"lar":""}: ${b(r.keys,", ")}`;case"invalid_key":return`${r.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${r.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}},"error");function Cp(){return{localeError:qT()}}s(Cp,"default");var GT=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=w(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 ${S(r.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${i.pattern}`:`${n[i.format]??r.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${r.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${b(r.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}},"error");function Np(){return{localeError:GT()}}s(Np,"default");var WT=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=w(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 ${S(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${i}${r.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${i}${r.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.prefix}" \u5F00\u5934`:i.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.suffix}" \u7ED3\u5C3E`:i.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${i.pattern}`:`\u65E0\u6548${n[i.format]??r.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${r.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${b(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${r.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}},"error");function Up(){return{localeError:WT()}}s(Up,"default");var JT=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=w(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 ${S(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${i}${r.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${i}${r.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.prefix}" \u958B\u982D`:i.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.suffix}" \u7D50\u5C3E`:i.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${i.pattern}`:`\u7121\u6548\u7684 ${n[i.format]??r.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${r.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${r.keys.length>1?"\u5011":""}\uFF1A${b(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}},"error");function Mp(){return{localeError:JT()}}s(Mp,"default");var XT=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=w(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 ${S(r.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${b(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin??"iye"} ${a.verb} ${i}${r.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${r.maximum}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin} ${a.verb} ${i}${r.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${r.minimum}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${i.prefix}"`:i.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${i.suffix}"`:i.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${i.includes}"`:i.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${i.pattern}`:`A\u1E63\xEC\u1E63e: ${n[i.format]??r.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${r.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${b(r.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${r.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${r.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}},"error");function Lp(){return{localeError:XT()}}s(Lp,"default");var eg,es=Symbol("ZodOutput"),ts=Symbol("ZodInput"),Qa=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 no(){return new Qa}s(no,"registry");(eg=globalThis).__zod_globalRegistry??(eg.__zod_globalRegistry=no());var ke=globalThis.__zod_globalRegistry;function oo(e,t){return new e({type:"string",...T(t)})}s(oo,"_string");function io(e,t){return new e({type:"string",coerce:!0,...T(t)})}s(io,"_coercedString");function ao(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...T(t)})}s(ao,"_email");function Fr(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...T(t)})}s(Fr,"_guid");function so(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...T(t)})}s(so,"_uuid");function uo(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...T(t)})}s(uo,"_uuidv4");function co(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...T(t)})}s(co,"_uuidv6");function lo(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...T(t)})}s(lo,"_uuidv7");function nr(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...T(t)})}s(nr,"_url");function po(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...T(t)})}s(po,"_emoji");function fo(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...T(t)})}s(fo,"_nanoid");function mo(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...T(t)})}s(mo,"_cuid");function ho(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...T(t)})}s(ho,"_cuid2");function go(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...T(t)})}s(go,"_ulid");function yo(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...T(t)})}s(yo,"_xid");function vo(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...T(t)})}s(vo,"_ksuid");function _o(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...T(t)})}s(_o,"_ipv4");function Po(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...T(t)})}s(Po,"_ipv6");function rs(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...T(t)})}s(rs,"_mac");function xo(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...T(t)})}s(xo,"_cidrv4");function bo(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...T(t)})}s(bo,"_cidrv6");function Eo(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...T(t)})}s(Eo,"_base64");function To(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...T(t)})}s(To,"_base64url");function Io(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...T(t)})}s(Io,"_e164");function So(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...T(t)})}s(So,"_jwt");var ns={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function os(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...T(t)})}s(os,"_isoDateTime");function is(e,t){return new e({type:"string",format:"date",check:"string_format",...T(t)})}s(is,"_isoDate");function as(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...T(t)})}s(as,"_isoTime");function ss(e,t){return new e({type:"string",format:"duration",check:"string_format",...T(t)})}s(ss,"_isoDuration");function Ao(e,t){return new e({type:"number",checks:[],...T(t)})}s(Ao,"_number");function wo(e,t){return new e({type:"number",coerce:!0,checks:[],...T(t)})}s(wo,"_coercedNumber");function $o(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...T(t)})}s($o,"_int");function us(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...T(t)})}s(us,"_float32");function cs(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...T(t)})}s(cs,"_float64");function ls(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...T(t)})}s(ls,"_int32");function ps(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...T(t)})}s(ps,"_uint32");function Oo(e,t){return new e({type:"boolean",...T(t)})}s(Oo,"_boolean");function Ro(e,t){return new e({type:"boolean",coerce:!0,...T(t)})}s(Ro,"_coercedBoolean");function ds(e,t){return new e({type:"bigint",...T(t)})}s(ds,"_bigint");function zo(e,t){return new e({type:"bigint",coerce:!0,...T(t)})}s(zo,"_coercedBigint");function fs(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...T(t)})}s(fs,"_int64");function ms(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...T(t)})}s(ms,"_uint64");function hs(e,t){return new e({type:"symbol",...T(t)})}s(hs,"_symbol");function gs(e,t){return new e({type:"undefined",...T(t)})}s(gs,"_undefined");function ys(e,t){return new e({type:"null",...T(t)})}s(ys,"_null");function ko(e){return new e({type:"any"})}s(ko,"_any");function Do(e){return new e({type:"unknown"})}s(Do,"_unknown");function vs(e,t){return new e({type:"never",...T(t)})}s(vs,"_never");function Co(e,t){return new e({type:"void",...T(t)})}s(Co,"_void");function _s(e,t){return new e({type:"date",...T(t)})}s(_s,"_date");function No(e,t){return new e({type:"date",coerce:!0,...T(t)})}s(No,"_coercedDate");function Ps(e,t){return new e({type:"nan",...T(t)})}s(Ps,"_nan");function pt(e,t){return new Qi({check:"less_than",...T(t),value:e,inclusive:!1})}s(pt,"_lt");function Fe(e,t){return new Qi({check:"less_than",...T(t),value:e,inclusive:!0})}s(Fe,"_lte");function dt(e,t){return new ea({check:"greater_than",...T(t),value:e,inclusive:!1})}s(dt,"_gt");function Oe(e,t){return new ea({check:"greater_than",...T(t),value:e,inclusive:!0})}s(Oe,"_gte");function Uo(e){return dt(0,e)}s(Uo,"_positive");function Mo(e){return pt(0,e)}s(Mo,"_negative");function Lo(e){return Fe(0,e)}s(Lo,"_nonpositive");function jo(e){return Oe(0,e)}s(jo,"_nonnegative");function _t(e,t){return new Sl({check:"multiple_of",...T(t),value:e})}s(_t,"_multipleOf");function Pt(e,t){return new $l({check:"max_size",...T(t),maximum:e})}s(Pt,"_maxSize");function ft(e,t){return new Ol({check:"min_size",...T(t),minimum:e})}s(ft,"_minSize");function Ct(e,t){return new Rl({check:"size_equals",...T(t),size:e})}s(Ct,"_size");function Nt(e,t){return new zl({check:"max_length",...T(t),maximum:e})}s(Nt,"_maxLength");function Ae(e,t){return new kl({check:"min_length",...T(t),minimum:e})}s(Ae,"_minLength");function Ut(e,t){return new Dl({check:"length_equals",...T(t),length:e})}s(Ut,"_length");function Ne(e,t){return new Cl({check:"string_format",format:"regex",...T(t),pattern:e})}s(Ne,"_regex");function or(e){return new Nl({check:"string_format",format:"lowercase",...T(e)})}s(or,"_lowercase");function ir(e){return new Ul({check:"string_format",format:"uppercase",...T(e)})}s(ir,"_uppercase");function ar(e,t){return new Ml({check:"string_format",format:"includes",...T(t),includes:e})}s(ar,"_includes");function sr(e,t){return new Ll({check:"string_format",format:"starts_with",...T(t),prefix:e})}s(sr,"_startsWith");function ur(e,t){return new jl({check:"string_format",format:"ends_with",...T(t),suffix:e})}s(ur,"_endsWith");function Fo(e,t,n){return new Fl({check:"property",property:e,schema:t,...T(n)})}s(Fo,"_property");function cr(e,t){return new Bl({check:"mime_type",mime:e,...T(t)})}s(cr,"_mime");function at(e){return new Zl({check:"overwrite",tx:e})}s(at,"_overwrite");function lr(e){return at(t=>t.normalize(e))}s(lr,"_normalize");function pr(){return at(e=>e.trim())}s(pr,"_trim");function dr(){return at(e=>e.toLowerCase())}s(dr,"_toLowerCase");function fr(){return at(e=>e.toUpperCase())}s(fr,"_toUpperCase");function Br(){return at(e=>qc(e))}s(Br,"_slugify");function jp(e,t,n){return new e({type:"array",element:t,...T(n)})}s(jp,"_array");function YT(e,t,n){return new e({type:"union",options:t,...T(n)})}s(YT,"_union");function QT(e,t,n){return new e({type:"union",options:t,inclusive:!1,...T(n)})}s(QT,"_xor");function eI(e,t,n,o){return new e({type:"union",options:n,discriminator:t,...T(o)})}s(eI,"_discriminatedUnion");function tI(e,t,n){return new e({type:"intersection",left:t,right:n})}s(tI,"_intersection");function rI(e,t,n,o){let r=n instanceof V,i=r?o:n,a=r?n:null;return new e({type:"tuple",items:t,rest:a,...T(i)})}s(rI,"_tuple");function nI(e,t,n,o){return new e({type:"record",keyType:t,valueType:n,...T(o)})}s(nI,"_record");function oI(e,t,n,o){return new e({type:"map",keyType:t,valueType:n,...T(o)})}s(oI,"_map");function iI(e,t,n){return new e({type:"set",valueType:t,...T(n)})}s(iI,"_set");function aI(e,t,n){let o=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:o,...T(n)})}s(aI,"_enum");function sI(e,t,n){return new e({type:"enum",entries:t,...T(n)})}s(sI,"_nativeEnum");function uI(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...T(n)})}s(uI,"_literal");function xs(e,t){return new e({type:"file",...T(t)})}s(xs,"_file");function cI(e,t){return new e({type:"transform",transform:t})}s(cI,"_transform");function lI(e,t){return new e({type:"optional",innerType:t})}s(lI,"_optional");function pI(e,t){return new e({type:"nullable",innerType:t})}s(pI,"_nullable");function dI(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():ji(n)}})}s(dI,"_default");function fI(e,t,n){return new e({type:"nonoptional",innerType:t,...T(n)})}s(fI,"_nonoptional");function mI(e,t){return new e({type:"success",innerType:t})}s(mI,"_success");function hI(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}s(hI,"_catch");function gI(e,t,n){return new e({type:"pipe",in:t,out:n})}s(gI,"_pipe");function yI(e,t){return new e({type:"readonly",innerType:t})}s(yI,"_readonly");function vI(e,t,n){return new e({type:"template_literal",parts:t,...T(n)})}s(vI,"_templateLiteral");function _I(e,t){return new e({type:"lazy",getter:t})}s(_I,"_lazy");function PI(e,t){return new e({type:"promise",innerType:t})}s(PI,"_promise");function Bo(e,t,n){let o=T(n);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}s(Bo,"_custom");function bs(e,t,n){return new e({type:"custom",check:"custom",fn:t,...T(n)})}s(bs,"_refine");function Es(e){let t=tg(n=>(n.addIssue=o=>{if(typeof o=="string")n.issues.push(Ir(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(Ir(r))}},e(n.value,n)));return t}s(Es,"_superRefine");function tg(e,t){let n=new pe({check:"custom",...T(t)});return n._zod.check=e,n}s(tg,"_check");function Ts(e){let t=new pe({check:"describe"});return t._zod.onattach=[n=>{let o=ke.get(n)??{};ke.add(n,{...o,description:e})}],t._zod.check=()=>{},t}s(Ts,"describe");function Is(e){let t=new pe({check:"meta"});return t._zod.onattach=[n=>{let o=ke.get(n)??{};ke.add(n,{...o,...e})}],t._zod.check=()=>{},t}s(Is,"meta");function Ss(e,t){let n=T(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??Mr,c=e.Boolean??tr,l=e.String??vt,d=new l({type:"string",error:n.error}),g=new c({type:"boolean",error:n.error}),h=new u({type:"pipe",in:d,out:g,transform:s(((p,m)=>{let _=p;return n.case!=="sensitive"&&(_=_.toLowerCase()),i.has(_)?!0:a.has(_)?!1:(m.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:m.value,inst:h,continue:!1}),{})}),"transform"),reverseTransform:s(((p,m)=>p===!0?o[0]||"true":r[0]||"false"),"reverseTransform"),error:n.error});return h}s(Ss,"_stringbool");function mr(e,t,n,o={}){let r=T(o),i={...T(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(mr,"_stringFormat");function Mt(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??ke,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(Mt,"initializeContext");function le(e,t,n={path:[],schemaPath:[]}){var o;let r=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);let u=e._zod.toJSONSchema?.();if(u)a.schema=u;else{let d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,d);else{let h=a.schema,p=t.processors[r.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);p(e,t,h,d)}let g=e._zod.parent;g&&(a.ref||(a.ref=g),le(g,t,d),t.seen.get(g).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(a.schema,c),t.io==="input"&&Be(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(le,"process");function Lt(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let a of e.seen.entries()){let u=e.metadataRegistry.get(a[0])?.id;if(u){let c=o.get(u);if(c&&c!==a[0])throw new Error(`Duplicate schema id "${u}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(u,a[0])}}let r=s(a=>{let u=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let g=e.external.registry.get(a[0])?.id,h=e.external.uri??(m=>m);if(g)return{ref:h(g)};let p=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=p,{defId:p,ref:`${h("__shared")}#/${u}/${p}`}}if(a[1]===n)return{ref:"#"};let l=`#/${u}/`,d=a[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:l+d}},"makeURI"),i=s(a=>{if(a[1].schema.$ref)return;let u=a[1],{ref:c,defId:l}=r(a);u.def={...u.schema},l&&(u.defId=l);let d=u.schema;for(let g in d)delete d[g];d.$ref=c},"extractToDef");if(e.cycles==="throw")for(let a of e.seen.entries()){let u=a[1];if(u.cycle)throw new Error(`Cycle detected: #/${u.cycle?.join("/")}/<root>
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(Lt,"extractDefs");function jt(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=s(a=>{let u=e.seen.get(a);if(u.ref===null)return;let c=u.def??u.schema,l={...c},d=u.ref;if(u.ref=null,d){o(d);let h=e.seen.get(d),p=h.schema;if(p.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(p)):Object.assign(c,p),Object.assign(c,l),a._zod.parent===d)for(let _ in c)_==="$ref"||_==="allOf"||_ in l||delete c[_];if(p.$ref&&h.def)for(let _ in c)_==="$ref"||_==="allOf"||_ in h.def&&JSON.stringify(c[_])===JSON.stringify(h.def[_])&&delete c[_]}let g=a._zod.parent;if(g&&g!==d){o(g);let h=e.seen.get(g);if(h?.schema.$ref&&(c.$ref=h.schema.$ref,h.def))for(let p in c)p==="$ref"||p==="allOf"||p in h.def&&JSON.stringify(c[p])===JSON.stringify(h.def[p])&&delete c[p]}e.override({zodSchema:a,jsonSchema:c,path:u.path??[]})},"flattenRef");for(let a of[...e.seen.entries()].reverse())o(a[0]);let r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(a)}Object.assign(r,n.def??n.schema);let i=e.external?.defs??{};for(let a of e.seen.entries()){let u=a[1];u.def&&u.defId&&(i[u.defId]=u.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?r.$defs=i:r.definitions=i);try{let a=JSON.parse(JSON.stringify(r));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:Zr(t,"input",e.processors),output:Zr(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}s(jt,"finalize");function Be(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 Be(o.element,n);if(o.type==="set")return Be(o.valueType,n);if(o.type==="lazy")return Be(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 Be(o.innerType,n);if(o.type==="intersection")return Be(o.left,n)||Be(o.right,n);if(o.type==="record"||o.type==="map")return Be(o.keyType,n)||Be(o.valueType,n);if(o.type==="pipe")return Be(o.in,n)||Be(o.out,n);if(o.type==="object"){for(let r in o.shape)if(Be(o.shape[r],n))return!0;return!1}if(o.type==="union"){for(let r of o.options)if(Be(r,n))return!0;return!1}if(o.type==="tuple"){for(let r of o.items)if(Be(r,n))return!0;return!!(o.rest&&Be(o.rest,n))}return!1}s(Be,"isTransforming");var Fp=s((e,t={})=>n=>{let o=Mt({...n,processors:t});return le(e,o),Lt(o,e),jt(o,e)},"createToJSONSchemaMethod"),Zr=s((e,t,n={})=>o=>{let{libraryOptions:r,target:i}=o??{},a=Mt({...r??{},target:i,io:t,processors:n});return le(e,a),Lt(a,e),jt(a,e)},"createStandardJSONSchemaMethod");var xI={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Bp=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=xI[u]??u,r.format===""&&delete r.format,u==="time"&&delete r.format),l&&(r.contentEncoding=l),c&&c.size>0){let d=[...c];d.length===1?r.pattern=d[0].source:d.length>1&&(r.allOf=[...d.map(g=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:g.source}))])}},"stringProcessor"),Zp=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"),Vp=s((e,t,n,o)=>{n.type="boolean"},"booleanProcessor"),Hp=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},"bigintProcessor"),qp=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},"symbolProcessor"),Gp=s((e,t,n,o)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},"nullProcessor"),Wp=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},"undefinedProcessor"),Jp=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},"voidProcessor"),Xp=s((e,t,n,o)=>{n.not={}},"neverProcessor"),Kp=s((e,t,n,o)=>{},"anyProcessor"),Yp=s((e,t,n,o)=>{},"unknownProcessor"),Qp=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},"dateProcessor"),ed=s((e,t,n,o)=>{let r=e._zod.def,i=wn(r.entries);i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),n.enum=i},"enumProcessor"),td=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"),rd=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},"nanProcessor"),nd=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"),od=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"),id=s((e,t,n,o)=>{n.type="boolean"},"successProcessor"),ad=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},"customProcessor"),sd=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},"functionProcessor"),ud=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},"transformProcessor"),cd=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},"mapProcessor"),ld=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},"setProcessor"),pd=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=le(i.element,t,{...o,path:[...o.path,"items"]})},"arrayProcessor"),dd=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]=le(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=le(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},"objectProcessor"),ws=s((e,t,n,o)=>{let r=e._zod.def,i=r.inclusive===!1,a=r.options.map((u,c)=>le(u,t,{...o,path:[...o.path,i?"oneOf":"anyOf",c]}));i?n.oneOf=a:n.anyOf=a},"unionProcessor"),fd=s((e,t,n,o)=>{let r=e._zod.def,i=le(r.left,t,{...o,path:[...o.path,"allOf",0]}),a=le(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"),md=s((e,t,n,o)=>{let r=n,i=e._zod.def;r.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",u=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=i.items.map((h,p)=>le(h,t,{...o,path:[...o.path,a,p]})),l=i.rest?le(i.rest,t,{...o,path:[...o.path,u,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=c,l&&(r.items=l)):t.target==="openapi-3.0"?(r.items={anyOf:c},l&&r.items.anyOf.push(l),r.minItems=c.length,l||(r.maxItems=c.length)):(r.items=c,l&&(r.additionalItems=l));let{minimum:d,maximum:g}=e._zod.bag;typeof d=="number"&&(r.minItems=d),typeof g=="number"&&(r.maxItems=g)},"tupleProcessor"),hd=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=le(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});r.patternProperties={};for(let g of c)r.patternProperties[g.source]=d}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=le(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),r.additionalProperties=le(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let l=a._zod.values;if(l){let d=[...l].filter(g=>typeof g=="string"||typeof g=="number");d.length>0&&(r.required=d)}},"recordProcessor"),gd=s((e,t,n,o)=>{let r=e._zod.def,i=le(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"),yd=s((e,t,n,o)=>{let r=e._zod.def;le(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType},"nonoptionalProcessor"),vd=s((e,t,n,o)=>{let r=e._zod.def;le(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},"defaultProcessor"),_d=s((e,t,n,o)=>{let r=e._zod.def;le(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"),Pd=s((e,t,n,o)=>{let r=e._zod.def;le(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"),xd=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;le(i,t,o);let a=t.seen.get(e);a.ref=i},"pipeProcessor"),bd=s((e,t,n,o)=>{let r=e._zod.def;le(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType,n.readOnly=!0},"readonlyProcessor"),Ed=s((e,t,n,o)=>{let r=e._zod.def;le(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType},"promiseProcessor"),$s=s((e,t,n,o)=>{let r=e._zod.def;le(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType},"optionalProcessor"),Td=s((e,t,n,o)=>{let r=e._zod.innerType;le(r,t,o);let i=t.seen.get(e);i.ref=r},"lazyProcessor"),As={string:Bp,number:Zp,boolean:Vp,bigint:Hp,symbol:qp,null:Gp,undefined:Wp,void:Jp,never:Xp,any:Kp,unknown:Yp,date:Qp,enum:ed,literal:td,nan:rd,template_literal:nd,file:od,success:id,custom:ad,function:sd,transform:ud,map:cd,set:ld,array:pd,object:dd,union:ws,intersection:fd,tuple:md,record:hd,nullable:gd,nonoptional:yd,default:vd,prefault:_d,catch:Pd,pipe:xd,readonly:bd,promise:Ed,optional:$s,lazy:Td};function Zo(e,t){if("_idmap"in e){let o=e,r=Mt({...t,processors:As}),i={};for(let c of o._idmap.entries()){let[l,d]=c;le(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;Lt(r,d),a[l]=jt(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=Mt({...t,processors:As});return le(e,n),Lt(n,e),jt(n,e)}s(Zo,"toJSONSchema");var Os=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=Mt({processors:As,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 le(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)),Lt(this.ctx,t);let o=jt(this.ctx,t),{"~standard":r,...i}=o;return i}};var rg={};var $e=y("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");V.init(e,t),e.def=t,e.type=t.type,e.parse=(n,o)=>Yt(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>Rr(e,n,o),e.parseAsync=async(n,o)=>Qt(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>kr(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)=>ze(e,n,o),e.brand=()=>e,e.register=((n,o)=>(n.add(e,o),e)),e.apply=n=>n(e)}),Rs=y("ZodMiniString",(e,t)=>{vt.init(e,t),$e.init(e,t)});function f(e){return oo(Rs,e)}s(f,"string");var ng=y("ZodMiniStringFormat",(e,t)=>{ce.init(e,t),Rs.init(e,t)});var TI=y("ZodMiniURL",(e,t)=>{Un.init(e,t),ng.init(e,t)});function og(e){return nr(TI,e)}s(og,"url");var zs=y("ZodMiniNumber",(e,t)=>{Cr.init(e,t),$e.init(e,t)});function De(e){return Ao(zs,e)}s(De,"number");var II=y("ZodMiniNumberFormat",(e,t)=>{Mn.init(e,t),zs.init(e,t)});function ig(e){return $o(II,e)}s(ig,"int");var Id=y("ZodMiniBoolean",(e,t)=>{tr.init(e,t),$e.init(e,t)});function ae(e){return Oo(Id,e)}s(ae,"boolean");var ag=y("ZodMiniBigInt",(e,t)=>{Nr.init(e,t),$e.init(e,t)});var SI=y("ZodMiniAny",(e,t)=>{Ln.init(e,t),$e.init(e,t)});function Vo(){return ko(SI)}s(Vo,"any");var AI=y("ZodMiniUnknown",(e,t)=>{jn.init(e,t),$e.init(e,t)});function G(){return Do(AI)}s(G,"unknown");var wI=y("ZodMiniVoid",(e,t)=>{Fn.init(e,t),$e.init(e,t)});function sg(e){return Co(wI,e)}s(sg,"_void");var ug=y("ZodMiniDate",(e,t)=>{Bn.init(e,t),$e.init(e,t)});var $I=y("ZodMiniArray",(e,t)=>{Zn.init(e,t),$e.init(e,t)});function Z(e,t){return new $I({type:"array",element:e,...T(t)})}s(Z,"array");var OI=y("ZodMiniObject",(e,t)=>{Ca.init(e,t),$e.init(e,t),X(e,"shape",()=>t.shape)});function v(e,t){let n={type:"object",shape:e??{},...T(t)};return new OI(n)}s(v,"object");var RI=y("ZodMiniUnion",(e,t)=>{rr.init(e,t),$e.init(e,t)});function K(e,t){return new RI({type:"union",options:e,...T(t)})}s(K,"union");var zI=y("ZodMiniDiscriminatedUnion",(e,t)=>{Vn.init(e,t),$e.init(e,t)});function Ft(e,t,n){return new zI({type:"union",options:t,discriminator:e,...T(n)})}s(Ft,"discriminatedUnion");var kI=y("ZodMiniRecord",(e,t)=>{qn.init(e,t),$e.init(e,t)});function W(e,t,n){return new kI({type:"record",keyType:e,valueType:t,...T(n)})}s(W,"record");var DI=y("ZodMiniEnum",(e,t)=>{Gn.init(e,t),$e.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 DI({type:"enum",entries:n,...T(t)})}s(B,"_enum");var CI=y("ZodMiniLiteral",(e,t)=>{Wn.init(e,t),$e.init(e,t)});function F(e,t){return new CI({type:"literal",values:Array.isArray(e)?e:[e],...T(t)})}s(F,"literal");var NI=y("ZodMiniTransform",(e,t)=>{Jn.init(e,t),$e.init(e,t)});function Bt(e){return new NI({type:"transform",transform:e})}s(Bt,"transform");var UI=y("ZodMiniOptional",(e,t)=>{Ur.init(e,t),$e.init(e,t)});function E(e){return new UI({type:"optional",innerType:e})}s(E,"optional");var MI=y("ZodMiniNullable",(e,t)=>{Xn.init(e,t),$e.init(e,t)});function Ho(e){return new MI({type:"nullable",innerType:e})}s(Ho,"nullable");var LI=y("ZodMiniPipe",(e,t)=>{Kn.init(e,t),$e.init(e,t)});function Zt(e,t){return new LI({type:"pipe",in:e,out:t})}s(Zt,"pipe");var jI=y("ZodMiniCustom",(e,t)=>{Yn.init(e,t),$e.init(e,t)});function ks(e,t){return Bo(jI,e??(()=>!0),t)}s(ks,"custom");var qo={};ot(qo,{bigint:()=>HI,boolean:()=>VI,date:()=>qI,number:()=>ZI,string:()=>BI});function BI(e){return io(Rs,e)}s(BI,"string");function ZI(e){return wo(zs,e)}s(ZI,"number");function VI(e){return Ro(Id,e)}s(VI,"boolean");function HI(e){return zo(ag,e)}s(HI,"bigint");function qI(e){return No(ug,e)}s(qI,"date");var Ad=v({retryOnFailure:v({defaultValue:E(ae()),hide:E(ae())}),continueOnFailure:v({defaultValue:E(ae()),hide:E(ae())})}),Sd=class{constructor(t,n,o,r,i,a,u,c,l,d,g,h,p){this.name=t;this.displayName=n;this.description=o;this.props=r;this.propertyGroups=i;this.run=a;this.test=u;this.requireAuth=c;this.errorHandlingOptions=l;this.outputSchema=d;this.audience=g;this.aiMetadata=h;this.classification=p}static{s(this,"IAction")}},ue=s(e=>new Sd(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:E(f()),advanced:E(ae()),width:E(B(["half","full"])),icon:E(f()),placeholder:E(f())}),J=s((e,t)=>v({type:F(t),required:ae(),defaultValue:E(Vo())}),"TPropertyValue");var tt=v({...oe.shape,...J(f(),"SHORT_TEXT").shape}),xt=v({...oe.shape,...J(f(),"LONG_TEXT").shape});var lg=v({label:f(),value:G(),description:E(f()),icon:E(f())}),Ds=v({disabled:E(ae()),placeholder:E(f()),options:Z(lg)});var WI=B(["cards"]),rt=v({...oe.shape,options:Ds,display:E(WI),...J(G(),"STATIC_DROPDOWN").shape}),bt=v({...oe.shape,options:Ds,...J(Z(G()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var wd=v({...oe.shape,...J(G(),"DROPDOWN").shape,refreshers:Z(f())}),Go=v({...oe.shape,...J(Z(G()),"MULTI_SELECT_DROPDOWN").shape,refreshers:Z(f())});var Et=v({...oe.shape,reveals:E(Z(f())),...J(ae(),"CHECKBOX").shape});var Tt=v({...oe.shape,display:E(B(["stepper"])),min:E(De()),max:E(De()),step:E(De()),...J(De(),"NUMBER").shape});var Wo=v({...oe.shape,streaming:E(ae()),...J(G(),"FILE").shape});var Jo=v({...oe.shape,...J(f(),"DATE_TIME").shape});var pg=W(f(),K([tt,xt,rt,Go,bt,Et,Tt,Wo,Jo])),Xo=v({...oe.shape,properties:pg,...J(Z(G()),"ARRAY").shape});var dg=B(["any_time","last_24_hours","last_7_days","last_30_days","last_90_days","this_month","custom"]),fg=v({preset:E(dg),after:E(f()),before:E(f())}),$d=v({...oe.shape,display:E(B(["dropdown"])),...J(fg,"DATE_RANGE").shape});var Ko=v({...oe.shape,...J(K([W(f(),G())]),"JSON").shape});var mg=K([tt,rt,Ko,Xo,bt]),JI=W(f(),mg),Od=v({refreshers:Z(f()),...oe.shape,...J(G(),"DYNAMIC").shape});var Cs=v({...oe.shape,...J(sg(),"MARKDOWN").shape});var Yo=(n=>(n.ARCHIVE="ARCHIVE",n.REGISTRY="REGISTRY",n))(Yo||{}),Vr=(n=>(n.CUSTOM="CUSTOM",n.OFFICIAL="OFFICIAL",n))(Vr||{}),Hr=(x=>(x.ARTIFICIAL_INTELLIGENCE="ARTIFICIAL_INTELLIGENCE",x.COMMUNICATION="COMMUNICATION",x.COMMERCE="COMMERCE",x.CORE="CORE",x.UNIVERSAL_AI="UNIVERSAL_AI",x.FLOW_CONTROL="FLOW_CONTROL",x.BUSINESS_INTELLIGENCE="BUSINESS_INTELLIGENCE",x.ACCOUNTING="ACCOUNTING",x.PRODUCTIVITY="PRODUCTIVITY",x.CONTENT_AND_FILES="CONTENT_AND_FILES",x.DEVELOPER_TOOLS="DEVELOPER_TOOLS",x.CUSTOMER_SUPPORT="CUSTOMER_SUPPORT",x.FORMS_AND_SURVEYS="FORMS_AND_SURVEYS",x.HUMAN_RESOURCES="HUMAN_RESOURCES",x.PAYMENT_PROCESSING="PAYMENT_PROCESSING",x.MARKETING="MARKETING",x.SALES_AND_CRM="SALES_AND_CRM",x))(Hr||{});var Qo=(n=>(n.AUTHORIZATION_CODE="authorization_code",n.CLIENT_CREDENTIALS="client_credentials",n))(Qo||{}),Rd="both_client_credentials_and_authorization_code";var Ze=(r=>(r.POLLING="POLLING",r.WEBHOOK="WEBHOOK",r.APP_WEBHOOK="APP_WEBHOOK",r.MANUAL="MANUAL",r))(Ze||{}),ei=(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))(ei||{}),XI=v({strategy:B(ei),paramName:E(f())}),ti=(n=>(n.SIMULATION="SIMULATION",n.TEST_FUNCTION="TEST_FUNCTION",n))(ti||{});var Ns=(n=>(n.WEBSOCKET="WEBSOCKET",n.NONE="NONE",n))(Ns||{}),hg=v({status:E(De()),body:E(G()),headers:E(W(f(),f()))}),gg=v({type:F("DELAY"),resumeDateTime:f(),requestIdToReply:E(f()),handlerId:E(f()),streamStepProgress:E(B(Ns))}),yg=v({type:F("WEBHOOK"),requestId:f(),requestIdToReply:E(f()),response:hg,handlerId:E(f()),streamStepProgress:E(B(Ns))}),KI=K([gg,yg]);var YI=v({body:G(),rawBody:E(G()),headers:W(f(),f()),queryParams:W(f(),f())});function we(e){return e==null}s(we,"isNil");function ri(e){return e==null?!0:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}s(ri,"isEmpty");function Us(e,t){if(e==null)throw new Error(`${t} is null or undefined`)}s(Us,"assertNotNullOrUndefined");function zd(e){try{return{data:e(),error:null}}catch(t){return{data:null,error:t}}}s(zd,"tryCatchSync");var kd=ie(require("crypto"),1);var QI=128,Vt,qr,eS=s(e=>{if(e<0)throw new RangeError("Wrong ID size");try{!Vt||Vt.length<e?(Vt=Buffer.allocUnsafe(e*QI),kd.default.randomFillSync(Vt),qr=0):qr+e>Vt.length&&(kd.default.randomFillSync(Vt),qr=0)}catch(t){throw Vt=void 0,t}qr+=e},"fillPool"),tS=s(e=>(eS(e|=0),Vt.subarray(qr-e,qr)),"random"),rS=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"),_g=s((e,t=21)=>rS(e,t,tS),"customAlphabet");var nS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Pg=21,Z0=f().check(Ne(new RegExp(`^[0-9a-zA-Z]{${Pg}}$`))),oS=_g(nS,Pg);var Ht=Zt(Bt(e=>e instanceof Date?e.toISOString():e),f()),st={id:f(),created:Ht,updated:Ht},xe=s(e=>E(Ho(e)),"Nullable");function Dd(e){return E(Ho(B(e)))}s(Dd,"NullableEnum");var q0=Zt(Bt(e=>e==="true"||e===!0?!0:e==="false"||e===!1?!1:void 0),E(ae())),Ms=s(e=>Zt(Bt(t=>Array.isArray(t)?t:t!==void 0?[t]:void 0),E(Z(e))),"OptionalArrayFromQuery");var J0=W(f(),G());var Gr=(x=>(x.OPENAI="openai",x.OPENROUTER="openrouter",x.ANTHROPIC="anthropic",x.AZURE="azure",x.GOOGLE="google",x.ACTIVEPIECES="activepieces",x.CLOUDFLARE_GATEWAY="cloudflare-gateway",x.CUSTOM="custom",x.BEDROCK="bedrock",x.VERTEX="vertex",x.MISTRAL="mistral",x.XAI="xai",x.DEEPSEEK="deepseek",x.ZAI="zai",x.QWEN="qwen",x.MINIMAX="minimax",x.MOONSHOT="moonshot",x))(Gr||{});var uU=f().check(Ne(/^#[0-9A-Fa-f]{6}$/));var lU=v({filename:f(),data:G(),type:F("file"),mimetype:E(f())});var iS=ie(bg());var yU=v({...st,name:f(),permissions:Z(f()),platformId:xe(f()),type:f(),userCount:E(De())});var _u={};ot(_u,{$brand:()=>Sn,$input:()=>ts,$output:()=>es,NEVER:()=>Ui,TimePrecision:()=>ns,ZodAny:()=>of,ZodArray:()=>cf,ZodBase64:()=>au,ZodBase64URL:()=>su,ZodBigInt:()=>en,ZodBigIntFormat:()=>lu,ZodBoolean:()=>Qr,ZodCIDRv4:()=>ou,ZodCIDRv6:()=>iu,ZodCUID:()=>Ks,ZodCUID2:()=>Ys,ZodCatch:()=>Rf,ZodCodec:()=>vu,ZodCustom:()=>mi,ZodCustomStringFormat:()=>Kr,ZodDate:()=>ci,ZodDefault:()=>If,ZodDiscriminatedUnion:()=>pf,ZodE164:()=>uu,ZodEmail:()=>Ws,ZodEmoji:()=>Js,ZodEnum:()=>Jr,ZodError:()=>aS,ZodExactOptional:()=>bf,ZodFile:()=>Pf,ZodFirstPartyTypeKind:()=>Zf,ZodFunction:()=>jf,ZodGUID:()=>oi,ZodIPv4:()=>ru,ZodIPv6:()=>nu,ZodISODate:()=>Bs,ZodISODateTime:()=>Fs,ZodISODuration:()=>Vs,ZodISOTime:()=>Zs,ZodIntersection:()=>df,ZodIssueCode:()=>uS,ZodJWT:()=>cu,ZodKSUID:()=>tu,ZodLazy:()=>Uf,ZodLiteral:()=>_f,ZodMAC:()=>Kd,ZodMap:()=>yf,ZodNaN:()=>kf,ZodNanoID:()=>Xs,ZodNever:()=>sf,ZodNonOptional:()=>gu,ZodNull:()=>rf,ZodNullable:()=>Tf,ZodNumber:()=>Yr,ZodNumberFormat:()=>gr,ZodObject:()=>pi,ZodOptional:()=>hu,ZodPipe:()=>yu,ZodPrefault:()=>Af,ZodPromise:()=>Lf,ZodReadonly:()=>Df,ZodRealError:()=>Xe,ZodRecord:()=>fi,ZodSet:()=>vf,ZodString:()=>Xr,ZodStringFormat:()=>de,ZodSuccess:()=>Of,ZodSymbol:()=>ef,ZodTemplateLiteral:()=>Nf,ZodTransform:()=>xf,ZodTuple:()=>mf,ZodType:()=>Y,ZodULID:()=>Qs,ZodURL:()=>ui,ZodUUID:()=>ht,ZodUndefined:()=>tf,ZodUnion:()=>di,ZodUnknown:()=>af,ZodVoid:()=>uf,ZodXID:()=>eu,ZodXor:()=>lf,_ZodString:()=>Gs,_default:()=>Sf,_function:()=>$y,any:()=>sy,array:()=>li,base64:()=>Vg,base64url:()=>Hg,bigint:()=>ry,boolean:()=>Qd,catch:()=>zf,check:()=>Oy,cidrv4:()=>Bg,cidrv6:()=>Zg,clone:()=>ze,codec:()=>Sy,coerce:()=>Vf,config:()=>Pe,core:()=>et,cuid:()=>Dg,cuid2:()=>Cg,custom:()=>Ry,date:()=>cy,decode:()=>Vd,decodeAsync:()=>qd,describe:()=>zy,discriminatedUnion:()=>hy,e164:()=>qg,email:()=>Tg,emoji:()=>zg,encode:()=>Zd,encodeAsync:()=>Hd,endsWith:()=>ur,enum:()=>fu,exactOptional:()=>Ef,file:()=>by,flattenError:()=>Sr,float32:()=>Yg,float64:()=>Qg,formatError:()=>Ar,fromJSONSchema:()=>Ly,function:()=>$y,getErrorMap:()=>lS,globalRegistry:()=>ke,gt:()=>dt,gte:()=>Oe,guid:()=>Ig,hash:()=>Kg,hex:()=>Xg,hostname:()=>Jg,httpUrl:()=>Rg,includes:()=>ar,instanceof:()=>Dy,int:()=>qs,int32:()=>ey,int64:()=>ny,intersection:()=>ff,ipv4:()=>Lg,ipv6:()=>Fg,iso:()=>Wr,json:()=>Ny,jwt:()=>Gg,keyof:()=>ly,ksuid:()=>Mg,lazy:()=>Mf,length:()=>Ut,literal:()=>xy,locales:()=>jr,looseObject:()=>fy,looseRecord:()=>yy,lowercase:()=>or,lt:()=>pt,lte:()=>Fe,mac:()=>jg,map:()=>vy,maxLength:()=>Nt,maxSize:()=>Pt,meta:()=>ky,mime:()=>cr,minLength:()=>Ae,minSize:()=>ft,multipleOf:()=>_t,nan:()=>Iy,nanoid:()=>kg,nativeEnum:()=>Py,negative:()=>Mo,never:()=>pu,nonnegative:()=>jo,nonoptional:()=>$f,nonpositive:()=>Lo,normalize:()=>lr,null:()=>nf,nullable:()=>ai,nullish:()=>Ey,number:()=>Yd,object:()=>py,optional:()=>ii,overwrite:()=>at,parse:()=>Ld,parseAsync:()=>jd,partialRecord:()=>gy,pipe:()=>si,positive:()=>Uo,prefault:()=>wf,preprocess:()=>Uy,prettifyError:()=>Bi,promise:()=>wy,property:()=>Fo,readonly:()=>Cf,record:()=>gf,refine:()=>Ff,regex:()=>Ne,regexes:()=>Je,registry:()=>no,safeDecode:()=>Wd,safeDecodeAsync:()=>Xd,safeEncode:()=>Gd,safeEncodeAsync:()=>Jd,safeParse:()=>Fd,safeParseAsync:()=>Bd,set:()=>_y,setErrorMap:()=>cS,size:()=>Ct,slugify:()=>Br,startsWith:()=>sr,strictObject:()=>dy,string:()=>Hs,stringFormat:()=>Wg,stringbool:()=>Cy,success:()=>Ty,superRefine:()=>Bf,symbol:()=>iy,templateLiteral:()=>Ay,toJSONSchema:()=>Zo,toLowerCase:()=>dr,toUpperCase:()=>fr,transform:()=>mu,treeifyError:()=>Fi,trim:()=>pr,tuple:()=>hf,uint32:()=>ty,uint64:()=>oy,ulid:()=>Ng,undefined:()=>ay,union:()=>du,unknown:()=>hr,uppercase:()=>ir,url:()=>Og,util:()=>A,uuid:()=>Sg,uuidv4:()=>Ag,uuidv6:()=>wg,uuidv7:()=>$g,void:()=>uy,xid:()=>Ug,xor:()=>my});var ni={};ot(ni,{ZodAny:()=>of,ZodArray:()=>cf,ZodBase64:()=>au,ZodBase64URL:()=>su,ZodBigInt:()=>en,ZodBigIntFormat:()=>lu,ZodBoolean:()=>Qr,ZodCIDRv4:()=>ou,ZodCIDRv6:()=>iu,ZodCUID:()=>Ks,ZodCUID2:()=>Ys,ZodCatch:()=>Rf,ZodCodec:()=>vu,ZodCustom:()=>mi,ZodCustomStringFormat:()=>Kr,ZodDate:()=>ci,ZodDefault:()=>If,ZodDiscriminatedUnion:()=>pf,ZodE164:()=>uu,ZodEmail:()=>Ws,ZodEmoji:()=>Js,ZodEnum:()=>Jr,ZodExactOptional:()=>bf,ZodFile:()=>Pf,ZodFunction:()=>jf,ZodGUID:()=>oi,ZodIPv4:()=>ru,ZodIPv6:()=>nu,ZodIntersection:()=>df,ZodJWT:()=>cu,ZodKSUID:()=>tu,ZodLazy:()=>Uf,ZodLiteral:()=>_f,ZodMAC:()=>Kd,ZodMap:()=>yf,ZodNaN:()=>kf,ZodNanoID:()=>Xs,ZodNever:()=>sf,ZodNonOptional:()=>gu,ZodNull:()=>rf,ZodNullable:()=>Tf,ZodNumber:()=>Yr,ZodNumberFormat:()=>gr,ZodObject:()=>pi,ZodOptional:()=>hu,ZodPipe:()=>yu,ZodPrefault:()=>Af,ZodPromise:()=>Lf,ZodReadonly:()=>Df,ZodRecord:()=>fi,ZodSet:()=>vf,ZodString:()=>Xr,ZodStringFormat:()=>de,ZodSuccess:()=>Of,ZodSymbol:()=>ef,ZodTemplateLiteral:()=>Nf,ZodTransform:()=>xf,ZodTuple:()=>mf,ZodType:()=>Y,ZodULID:()=>Qs,ZodURL:()=>ui,ZodUUID:()=>ht,ZodUndefined:()=>tf,ZodUnion:()=>di,ZodUnknown:()=>af,ZodVoid:()=>uf,ZodXID:()=>eu,ZodXor:()=>lf,_ZodString:()=>Gs,_default:()=>Sf,_function:()=>$y,any:()=>sy,array:()=>li,base64:()=>Vg,base64url:()=>Hg,bigint:()=>ry,boolean:()=>Qd,catch:()=>zf,check:()=>Oy,cidrv4:()=>Bg,cidrv6:()=>Zg,codec:()=>Sy,cuid:()=>Dg,cuid2:()=>Cg,custom:()=>Ry,date:()=>cy,describe:()=>zy,discriminatedUnion:()=>hy,e164:()=>qg,email:()=>Tg,emoji:()=>zg,enum:()=>fu,exactOptional:()=>Ef,file:()=>by,float32:()=>Yg,float64:()=>Qg,function:()=>$y,guid:()=>Ig,hash:()=>Kg,hex:()=>Xg,hostname:()=>Jg,httpUrl:()=>Rg,instanceof:()=>Dy,int:()=>qs,int32:()=>ey,int64:()=>ny,intersection:()=>ff,ipv4:()=>Lg,ipv6:()=>Fg,json:()=>Ny,jwt:()=>Gg,keyof:()=>ly,ksuid:()=>Mg,lazy:()=>Mf,literal:()=>xy,looseObject:()=>fy,looseRecord:()=>yy,mac:()=>jg,map:()=>vy,meta:()=>ky,nan:()=>Iy,nanoid:()=>kg,nativeEnum:()=>Py,never:()=>pu,nonoptional:()=>$f,null:()=>nf,nullable:()=>ai,nullish:()=>Ey,number:()=>Yd,object:()=>py,optional:()=>ii,partialRecord:()=>gy,pipe:()=>si,prefault:()=>wf,preprocess:()=>Uy,promise:()=>wy,readonly:()=>Cf,record:()=>gf,refine:()=>Ff,set:()=>_y,strictObject:()=>dy,string:()=>Hs,stringFormat:()=>Wg,stringbool:()=>Cy,success:()=>Ty,superRefine:()=>Bf,symbol:()=>iy,templateLiteral:()=>Ay,transform:()=>mu,tuple:()=>hf,uint32:()=>ty,uint64:()=>oy,ulid:()=>Ng,undefined:()=>ay,union:()=>du,unknown:()=>hr,url:()=>Og,uuid:()=>Sg,uuidv4:()=>Ag,uuidv6:()=>wg,uuidv7:()=>$g,void:()=>uy,xid:()=>Ug,xor:()=>my});var js={};ot(js,{endsWith:()=>ur,gt:()=>dt,gte:()=>Oe,includes:()=>ar,length:()=>Ut,lowercase:()=>or,lt:()=>pt,lte:()=>Fe,maxLength:()=>Nt,maxSize:()=>Pt,mime:()=>cr,minLength:()=>Ae,minSize:()=>ft,multipleOf:()=>_t,negative:()=>Mo,nonnegative:()=>jo,nonpositive:()=>Lo,normalize:()=>lr,overwrite:()=>at,positive:()=>Uo,property:()=>Fo,regex:()=>Ne,size:()=>Ct,slugify:()=>Br,startsWith:()=>sr,toLowerCase:()=>dr,toUpperCase:()=>fr,trim:()=>pr,uppercase:()=>ir});var Wr={};ot(Wr,{ZodISODate:()=>Bs,ZodISODateTime:()=>Fs,ZodISODuration:()=>Vs,ZodISOTime:()=>Zs,date:()=>Nd,datetime:()=>Cd,duration:()=>Md,time:()=>Ud});var Fs=y("ZodISODateTime",(e,t)=>{ga.init(e,t),de.init(e,t)});function Cd(e){return os(Fs,e)}s(Cd,"datetime");var Bs=y("ZodISODate",(e,t)=>{ya.init(e,t),de.init(e,t)});function Nd(e){return is(Bs,e)}s(Nd,"date");var Zs=y("ZodISOTime",(e,t)=>{va.init(e,t),de.init(e,t)});function Ud(e){return as(Zs,e)}s(Ud,"time");var Vs=y("ZodISODuration",(e,t)=>{_a.init(e,t),de.init(e,t)});function Md(e){return ss(Vs,e)}s(Md,"duration");var Eg=s((e,t)=>{kn.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:s(n=>Ar(e,n),"value")},flatten:{value:s(n=>Sr(e,n),"value")},addIssue:{value:s(n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Er,2)},"value")},addIssues:{value:s(n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Er,2)},"value")},isEmpty:{get(){return e.issues.length===0}}})},"initializer"),aS=y("ZodError",Eg),Xe=y("ZodError",Eg,{Parent:Error});var Ld=wr(Xe),jd=$r(Xe),Fd=Or(Xe),Bd=zr(Xe),Zd=Zi(Xe),Vd=Vi(Xe),Hd=Hi(Xe),qd=qi(Xe),Gd=Gi(Xe),Wd=Wi(Xe),Jd=Ji(Xe),Xd=Xi(Xe);var Y=y("ZodType",(e,t)=>(V.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Zr(e,"input"),output:Zr(e,"output")}}),e.toJSONSchema=Fp(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(A.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)=>ze(e,n,o),e.brand=()=>e,e.register=((n,o)=>(n.add(e,o),e)),e.parse=(n,o)=>Ld(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>Fd(e,n,o),e.parseAsync=async(n,o)=>jd(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>Bd(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>Zd(e,n,o),e.decode=(n,o)=>Vd(e,n,o),e.encodeAsync=async(n,o)=>Hd(e,n,o),e.decodeAsync=async(n,o)=>qd(e,n,o),e.safeEncode=(n,o)=>Gd(e,n,o),e.safeDecode=(n,o)=>Wd(e,n,o),e.safeEncodeAsync=async(n,o)=>Jd(e,n,o),e.safeDecodeAsync=async(n,o)=>Xd(e,n,o),e.refine=(n,o)=>e.check(Ff(n,o)),e.superRefine=n=>e.check(Bf(n)),e.overwrite=n=>e.check(at(n)),e.optional=()=>ii(e),e.exactOptional=()=>Ef(e),e.nullable=()=>ai(e),e.nullish=()=>ii(ai(e)),e.nonoptional=n=>$f(e,n),e.array=()=>li(e),e.or=n=>du([e,n]),e.and=n=>ff(e,n),e.transform=n=>si(e,mu(n)),e.default=n=>Sf(e,n),e.prefault=n=>wf(e,n),e.catch=n=>zf(e,n),e.pipe=n=>si(e,n),e.readonly=()=>Cf(e),e.describe=n=>{let o=e.clone();return ke.add(o,{description:n}),o},Object.defineProperty(e,"description",{get(){return ke.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return ke.get(e);let o=e.clone();return ke.add(o,n[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),Gs=y("_ZodString",(e,t)=>{vt.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Bp(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(Ne(...o)),e.includes=(...o)=>e.check(ar(...o)),e.startsWith=(...o)=>e.check(sr(...o)),e.endsWith=(...o)=>e.check(ur(...o)),e.min=(...o)=>e.check(Ae(...o)),e.max=(...o)=>e.check(Nt(...o)),e.length=(...o)=>e.check(Ut(...o)),e.nonempty=(...o)=>e.check(Ae(1,...o)),e.lowercase=o=>e.check(or(o)),e.uppercase=o=>e.check(ir(o)),e.trim=()=>e.check(pr()),e.normalize=(...o)=>e.check(lr(...o)),e.toLowerCase=()=>e.check(dr()),e.toUpperCase=()=>e.check(fr()),e.slugify=()=>e.check(Br())}),Xr=y("ZodString",(e,t)=>{vt.init(e,t),Gs.init(e,t),e.email=n=>e.check(ao(Ws,n)),e.url=n=>e.check(nr(ui,n)),e.jwt=n=>e.check(So(cu,n)),e.emoji=n=>e.check(po(Js,n)),e.guid=n=>e.check(Fr(oi,n)),e.uuid=n=>e.check(so(ht,n)),e.uuidv4=n=>e.check(uo(ht,n)),e.uuidv6=n=>e.check(co(ht,n)),e.uuidv7=n=>e.check(lo(ht,n)),e.nanoid=n=>e.check(fo(Xs,n)),e.guid=n=>e.check(Fr(oi,n)),e.cuid=n=>e.check(mo(Ks,n)),e.cuid2=n=>e.check(ho(Ys,n)),e.ulid=n=>e.check(go(Qs,n)),e.base64=n=>e.check(Eo(au,n)),e.base64url=n=>e.check(To(su,n)),e.xid=n=>e.check(yo(eu,n)),e.ksuid=n=>e.check(vo(tu,n)),e.ipv4=n=>e.check(_o(ru,n)),e.ipv6=n=>e.check(Po(nu,n)),e.cidrv4=n=>e.check(xo(ou,n)),e.cidrv6=n=>e.check(bo(iu,n)),e.e164=n=>e.check(Io(uu,n)),e.datetime=n=>e.check(Cd(n)),e.date=n=>e.check(Nd(n)),e.time=n=>e.check(Ud(n)),e.duration=n=>e.check(Md(n))});function Hs(e){return oo(Xr,e)}s(Hs,"string");var de=y("ZodStringFormat",(e,t)=>{ce.init(e,t),Gs.init(e,t)}),Ws=y("ZodEmail",(e,t)=>{ua.init(e,t),de.init(e,t)});function Tg(e){return ao(Ws,e)}s(Tg,"email");var oi=y("ZodGUID",(e,t)=>{aa.init(e,t),de.init(e,t)});function Ig(e){return Fr(oi,e)}s(Ig,"guid");var ht=y("ZodUUID",(e,t)=>{sa.init(e,t),de.init(e,t)});function Sg(e){return so(ht,e)}s(Sg,"uuid");function Ag(e){return uo(ht,e)}s(Ag,"uuidv4");function wg(e){return co(ht,e)}s(wg,"uuidv6");function $g(e){return lo(ht,e)}s($g,"uuidv7");var ui=y("ZodURL",(e,t)=>{Un.init(e,t),de.init(e,t)});function Og(e){return nr(ui,e)}s(Og,"url");function Rg(e){return nr(ui,{protocol:/^https?$/,hostname:Je.domain,...A.normalizeParams(e)})}s(Rg,"httpUrl");var Js=y("ZodEmoji",(e,t)=>{ca.init(e,t),de.init(e,t)});function zg(e){return po(Js,e)}s(zg,"emoji");var Xs=y("ZodNanoID",(e,t)=>{la.init(e,t),de.init(e,t)});function kg(e){return fo(Xs,e)}s(kg,"nanoid");var Ks=y("ZodCUID",(e,t)=>{pa.init(e,t),de.init(e,t)});function Dg(e){return mo(Ks,e)}s(Dg,"cuid");var Ys=y("ZodCUID2",(e,t)=>{da.init(e,t),de.init(e,t)});function Cg(e){return ho(Ys,e)}s(Cg,"cuid2");var Qs=y("ZodULID",(e,t)=>{fa.init(e,t),de.init(e,t)});function Ng(e){return go(Qs,e)}s(Ng,"ulid");var eu=y("ZodXID",(e,t)=>{ma.init(e,t),de.init(e,t)});function Ug(e){return yo(eu,e)}s(Ug,"xid");var tu=y("ZodKSUID",(e,t)=>{ha.init(e,t),de.init(e,t)});function Mg(e){return vo(tu,e)}s(Mg,"ksuid");var ru=y("ZodIPv4",(e,t)=>{Pa.init(e,t),de.init(e,t)});function Lg(e){return _o(ru,e)}s(Lg,"ipv4");var Kd=y("ZodMAC",(e,t)=>{ba.init(e,t),de.init(e,t)});function jg(e){return rs(Kd,e)}s(jg,"mac");var nu=y("ZodIPv6",(e,t)=>{xa.init(e,t),de.init(e,t)});function Fg(e){return Po(nu,e)}s(Fg,"ipv6");var ou=y("ZodCIDRv4",(e,t)=>{Ea.init(e,t),de.init(e,t)});function Bg(e){return xo(ou,e)}s(Bg,"cidrv4");var iu=y("ZodCIDRv6",(e,t)=>{Ta.init(e,t),de.init(e,t)});function Zg(e){return bo(iu,e)}s(Zg,"cidrv6");var au=y("ZodBase64",(e,t)=>{Ia.init(e,t),de.init(e,t)});function Vg(e){return Eo(au,e)}s(Vg,"base64");var su=y("ZodBase64URL",(e,t)=>{Sa.init(e,t),de.init(e,t)});function Hg(e){return To(su,e)}s(Hg,"base64url");var uu=y("ZodE164",(e,t)=>{Aa.init(e,t),de.init(e,t)});function qg(e){return Io(uu,e)}s(qg,"e164");var cu=y("ZodJWT",(e,t)=>{wa.init(e,t),de.init(e,t)});function Gg(e){return So(cu,e)}s(Gg,"jwt");var Kr=y("ZodCustomStringFormat",(e,t)=>{$a.init(e,t),de.init(e,t)});function Wg(e,t,n={}){return mr(Kr,e,t,n)}s(Wg,"stringFormat");function Jg(e){return mr(Kr,"hostname",Je.hostname,e)}s(Jg,"hostname");function Xg(e){return mr(Kr,"hex",Je.hex,e)}s(Xg,"hex");function Kg(e,t){let n=t?.enc??"hex",o=`${e}_${n}`,r=Je[o];if(!r)throw new Error(`Unrecognized hash format: ${o}`);return mr(Kr,o,r,t)}s(Kg,"hash");var Yr=y("ZodNumber",(e,t)=>{Cr.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Zp(e,o,r,i),e.gt=(o,r)=>e.check(dt(o,r)),e.gte=(o,r)=>e.check(Oe(o,r)),e.min=(o,r)=>e.check(Oe(o,r)),e.lt=(o,r)=>e.check(pt(o,r)),e.lte=(o,r)=>e.check(Fe(o,r)),e.max=(o,r)=>e.check(Fe(o,r)),e.int=o=>e.check(qs(o)),e.safe=o=>e.check(qs(o)),e.positive=o=>e.check(dt(0,o)),e.nonnegative=o=>e.check(Oe(0,o)),e.negative=o=>e.check(pt(0,o)),e.nonpositive=o=>e.check(Fe(0,o)),e.multipleOf=(o,r)=>e.check(_t(o,r)),e.step=(o,r)=>e.check(_t(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 Yd(e){return Ao(Yr,e)}s(Yd,"number");var gr=y("ZodNumberFormat",(e,t)=>{Mn.init(e,t),Yr.init(e,t)});function qs(e){return $o(gr,e)}s(qs,"int");function Yg(e){return us(gr,e)}s(Yg,"float32");function Qg(e){return cs(gr,e)}s(Qg,"float64");function ey(e){return ls(gr,e)}s(ey,"int32");function ty(e){return ps(gr,e)}s(ty,"uint32");var Qr=y("ZodBoolean",(e,t)=>{tr.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Vp(e,n,o,r)});function Qd(e){return Oo(Qr,e)}s(Qd,"boolean");var en=y("ZodBigInt",(e,t)=>{Nr.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Hp(e,o,r,i),e.gte=(o,r)=>e.check(Oe(o,r)),e.min=(o,r)=>e.check(Oe(o,r)),e.gt=(o,r)=>e.check(dt(o,r)),e.gte=(o,r)=>e.check(Oe(o,r)),e.min=(o,r)=>e.check(Oe(o,r)),e.lt=(o,r)=>e.check(pt(o,r)),e.lte=(o,r)=>e.check(Fe(o,r)),e.max=(o,r)=>e.check(Fe(o,r)),e.positive=o=>e.check(dt(BigInt(0),o)),e.negative=o=>e.check(pt(BigInt(0),o)),e.nonpositive=o=>e.check(Fe(BigInt(0),o)),e.nonnegative=o=>e.check(Oe(BigInt(0),o)),e.multipleOf=(o,r)=>e.check(_t(o,r));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function ry(e){return ds(en,e)}s(ry,"bigint");var lu=y("ZodBigIntFormat",(e,t)=>{Oa.init(e,t),en.init(e,t)});function ny(e){return fs(lu,e)}s(ny,"int64");function oy(e){return ms(lu,e)}s(oy,"uint64");var ef=y("ZodSymbol",(e,t)=>{Ra.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>qp(e,n,o,r)});function iy(e){return hs(ef,e)}s(iy,"symbol");var tf=y("ZodUndefined",(e,t)=>{za.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Wp(e,n,o,r)});function ay(e){return gs(tf,e)}s(ay,"_undefined");var rf=y("ZodNull",(e,t)=>{ka.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Gp(e,n,o,r)});function nf(e){return ys(rf,e)}s(nf,"_null");var of=y("ZodAny",(e,t)=>{Ln.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Kp(e,n,o,r)});function sy(){return ko(of)}s(sy,"any");var af=y("ZodUnknown",(e,t)=>{jn.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Yp(e,n,o,r)});function hr(){return Do(af)}s(hr,"unknown");var sf=y("ZodNever",(e,t)=>{Da.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Xp(e,n,o,r)});function pu(e){return vs(sf,e)}s(pu,"never");var uf=y("ZodVoid",(e,t)=>{Fn.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Jp(e,n,o,r)});function uy(e){return Co(uf,e)}s(uy,"_void");var ci=y("ZodDate",(e,t)=>{Bn.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Qp(e,o,r,i),e.min=(o,r)=>e.check(Oe(o,r)),e.max=(o,r)=>e.check(Fe(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 cy(e){return _s(ci,e)}s(cy,"date");var cf=y("ZodArray",(e,t)=>{Zn.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>pd(e,n,o,r),e.element=t.element,e.min=(n,o)=>e.check(Ae(n,o)),e.nonempty=n=>e.check(Ae(1,n)),e.max=(n,o)=>e.check(Nt(n,o)),e.length=(n,o)=>e.check(Ut(n,o)),e.unwrap=()=>e.element});function li(e,t){return jp(cf,e,t)}s(li,"array");function ly(e){let t=e._zod.def.shape;return fu(Object.keys(t))}s(ly,"keyof");var pi=y("ZodObject",(e,t)=>{Gl.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>dd(e,n,o,r),A.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>fu(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:hr()}),e.loose=()=>e.clone({...e._zod.def,catchall:hr()}),e.strict=()=>e.clone({...e._zod.def,catchall:pu()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>A.extend(e,n),e.safeExtend=n=>A.safeExtend(e,n),e.merge=n=>A.merge(e,n),e.pick=n=>A.pick(e,n),e.omit=n=>A.omit(e,n),e.partial=(...n)=>A.partial(hu,e,n[0]),e.required=(...n)=>A.required(gu,e,n[0])});function py(e,t){let n={type:"object",shape:e??{},...A.normalizeParams(t)};return new pi(n)}s(py,"object");function dy(e,t){return new pi({type:"object",shape:e,catchall:pu(),...A.normalizeParams(t)})}s(dy,"strictObject");function fy(e,t){return new pi({type:"object",shape:e,catchall:hr(),...A.normalizeParams(t)})}s(fy,"looseObject");var di=y("ZodUnion",(e,t)=>{rr.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ws(e,n,o,r),e.options=t.options});function du(e,t){return new di({type:"union",options:e,...A.normalizeParams(t)})}s(du,"union");var lf=y("ZodXor",(e,t)=>{di.init(e,t),Na.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ws(e,n,o,r),e.options=t.options});function my(e,t){return new lf({type:"union",options:e,inclusive:!1,...A.normalizeParams(t)})}s(my,"xor");var pf=y("ZodDiscriminatedUnion",(e,t)=>{di.init(e,t),Vn.init(e,t)});function hy(e,t,n){return new pf({type:"union",options:t,discriminator:e,...A.normalizeParams(n)})}s(hy,"discriminatedUnion");var df=y("ZodIntersection",(e,t)=>{Ua.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>fd(e,n,o,r)});function ff(e,t){return new df({type:"intersection",left:e,right:t})}s(ff,"intersection");var mf=y("ZodTuple",(e,t)=>{Hn.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>md(e,n,o,r),e.rest=n=>e.clone({...e._zod.def,rest:n})});function hf(e,t,n){let o=t instanceof V,r=o?n:t,i=o?t:null;return new mf({type:"tuple",items:e,rest:i,...A.normalizeParams(r)})}s(hf,"tuple");var fi=y("ZodRecord",(e,t)=>{qn.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>hd(e,n,o,r),e.keyType=t.keyType,e.valueType=t.valueType});function gf(e,t,n){return new fi({type:"record",keyType:e,valueType:t,...A.normalizeParams(n)})}s(gf,"record");function gy(e,t,n){let o=ze(e);return o._zod.values=void 0,new fi({type:"record",keyType:o,valueType:t,...A.normalizeParams(n)})}s(gy,"partialRecord");function yy(e,t,n){return new fi({type:"record",keyType:e,valueType:t,mode:"loose",...A.normalizeParams(n)})}s(yy,"looseRecord");var yf=y("ZodMap",(e,t)=>{Ma.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>cd(e,n,o,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(ft(...n)),e.nonempty=n=>e.check(ft(1,n)),e.max=(...n)=>e.check(Pt(...n)),e.size=(...n)=>e.check(Ct(...n))});function vy(e,t,n){return new yf({type:"map",keyType:e,valueType:t,...A.normalizeParams(n)})}s(vy,"map");var vf=y("ZodSet",(e,t)=>{La.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ld(e,n,o,r),e.min=(...n)=>e.check(ft(...n)),e.nonempty=n=>e.check(ft(1,n)),e.max=(...n)=>e.check(Pt(...n)),e.size=(...n)=>e.check(Ct(...n))});function _y(e,t){return new vf({type:"set",valueType:e,...A.normalizeParams(t)})}s(_y,"set");var Jr=y("ZodEnum",(e,t)=>{Gn.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(o,r,i)=>ed(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 Jr({...t,checks:[],...A.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 Jr({...t,checks:[],...A.normalizeParams(r),entries:i})}});function fu(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Jr({type:"enum",entries:n,...A.normalizeParams(t)})}s(fu,"_enum");function Py(e,t){return new Jr({type:"enum",entries:e,...A.normalizeParams(t)})}s(Py,"nativeEnum");var _f=y("ZodLiteral",(e,t)=>{Wn.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>td(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 xy(e,t){return new _f({type:"literal",values:Array.isArray(e)?e:[e],...A.normalizeParams(t)})}s(xy,"literal");var Pf=y("ZodFile",(e,t)=>{ja.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>od(e,n,o,r),e.min=(n,o)=>e.check(ft(n,o)),e.max=(n,o)=>e.check(Pt(n,o)),e.mime=(n,o)=>e.check(cr(Array.isArray(n)?n:[n],o))});function by(e){return xs(Pf,e)}s(by,"file");var xf=y("ZodTransform",(e,t)=>{Jn.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ud(e,n,o,r),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Ot(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(A.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(A.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 mu(e){return new xf({type:"transform",transform:e})}s(mu,"transform");var hu=y("ZodOptional",(e,t)=>{Ur.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>$s(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function ii(e){return new hu({type:"optional",innerType:e})}s(ii,"optional");var bf=y("ZodExactOptional",(e,t)=>{Fa.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>$s(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Ef(e){return new bf({type:"optional",innerType:e})}s(Ef,"exactOptional");var Tf=y("ZodNullable",(e,t)=>{Xn.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>gd(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function ai(e){return new Tf({type:"nullable",innerType:e})}s(ai,"nullable");function Ey(e){return ii(ai(e))}s(Ey,"nullish");var If=y("ZodDefault",(e,t)=>{Ba.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>vd(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Sf(e,t){return new If({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():A.shallowClone(t)}})}s(Sf,"_default");var Af=y("ZodPrefault",(e,t)=>{Za.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>_d(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function wf(e,t){return new Af({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():A.shallowClone(t)}})}s(wf,"prefault");var gu=y("ZodNonOptional",(e,t)=>{Va.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>yd(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function $f(e,t){return new gu({type:"nonoptional",innerType:e,...A.normalizeParams(t)})}s($f,"nonoptional");var Of=y("ZodSuccess",(e,t)=>{Ha.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>id(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Ty(e){return new Of({type:"success",innerType:e})}s(Ty,"success");var Rf=y("ZodCatch",(e,t)=>{qa.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Pd(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function zf(e,t){return new Rf({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}s(zf,"_catch");var kf=y("ZodNaN",(e,t)=>{Ga.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>rd(e,n,o,r)});function Iy(e){return Ps(kf,e)}s(Iy,"nan");var yu=y("ZodPipe",(e,t)=>{Kn.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>xd(e,n,o,r),e.in=t.in,e.out=t.out});function si(e,t){return new yu({type:"pipe",in:e,out:t})}s(si,"pipe");var vu=y("ZodCodec",(e,t)=>{yu.init(e,t),Mr.init(e,t)});function Sy(e,t,n){return new vu({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}s(Sy,"codec");var Df=y("ZodReadonly",(e,t)=>{Wa.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>bd(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Cf(e){return new Df({type:"readonly",innerType:e})}s(Cf,"readonly");var Nf=y("ZodTemplateLiteral",(e,t)=>{Ja.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>nd(e,n,o,r)});function Ay(e,t){return new Nf({type:"template_literal",parts:e,...A.normalizeParams(t)})}s(Ay,"templateLiteral");var Uf=y("ZodLazy",(e,t)=>{Ya.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Td(e,n,o,r),e.unwrap=()=>e._zod.def.getter()});function Mf(e){return new Uf({type:"lazy",getter:e})}s(Mf,"lazy");var Lf=y("ZodPromise",(e,t)=>{Ka.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ed(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function wy(e){return new Lf({type:"promise",innerType:e})}s(wy,"promise");var jf=y("ZodFunction",(e,t)=>{Xa.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>sd(e,n,o,r)});function $y(e){return new jf({type:"function",input:Array.isArray(e?.input)?hf(e?.input):e?.input??li(hr()),output:e?.output??hr()})}s($y,"_function");var mi=y("ZodCustom",(e,t)=>{Yn.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ad(e,n,o,r)});function Oy(e){let t=new pe({check:"custom"});return t._zod.check=e,t}s(Oy,"check");function Ry(e,t){return Bo(mi,e??(()=>!0),t)}s(Ry,"custom");function Ff(e,t={}){return bs(mi,e,t)}s(Ff,"refine");function Bf(e){return Es(e)}s(Bf,"superRefine");var zy=Ts,ky=Is;function Dy(e,t={}){let n=new mi({type:"custom",check:"custom",fn:s(o=>o instanceof e,"fn"),abort:!0,...A.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(Dy,"_instanceof");var Cy=s((...e)=>Ss({Codec:vu,Boolean:Qr,String:Xr},...e),"stringbool");function Ny(e){let t=Mf(()=>du([Hs(e),Yd(),Qd(),nf(),li(t),gf(Hs(),t)]));return t}s(Ny,"json");function Uy(e,t){return si(mu(e),t)}s(Uy,"preprocess");var uS={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 cS(e){Pe({customError:e})}s(cS,"setErrorMap");function lS(){return Pe().customError}s(lS,"getErrorMap");var Zf;Zf||(Zf={});var R={...ni,...js,iso:Wr},pS=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 dS(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(dS,"detectVersion");function fS(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(fS,"resolveRef");function My(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return R.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 R.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=fS(r,t),a=Le(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 R.null();if(r.length===0)return R.never();if(r.length===1)return R.literal(r[0]);if(r.every(a=>typeof a=="string"))return R.enum(r);let i=r.map(a=>R.literal(a));return i.length<2?i[0]:R.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return R.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(i=>{let a={...e,type:i};return My(a,t)});return r.length===0?R.never():r.length===1?r[0]:R.union(r)}if(!n)return R.any();let o;switch(n){case"string":{let r=R.string();if(e.format){let i=e.format;i==="email"?r=r.check(R.email()):i==="uri"||i==="uri-reference"?r=r.check(R.url()):i==="uuid"||i==="guid"?r=r.check(R.uuid()):i==="date-time"?r=r.check(R.iso.datetime()):i==="date"?r=r.check(R.iso.date()):i==="time"?r=r.check(R.iso.time()):i==="duration"?r=r.check(R.iso.duration()):i==="ipv4"?r=r.check(R.ipv4()):i==="ipv6"?r=r.check(R.ipv6()):i==="mac"?r=r.check(R.mac()):i==="cidr"?r=r.check(R.cidrv4()):i==="cidr-v6"?r=r.check(R.cidrv6()):i==="base64"?r=r.check(R.base64()):i==="base64url"?r=r.check(R.base64url()):i==="e164"?r=r.check(R.e164()):i==="jwt"?r=r.check(R.jwt()):i==="emoji"?r=r.check(R.emoji()):i==="nanoid"?r=r.check(R.nanoid()):i==="cuid"?r=r.check(R.cuid()):i==="cuid2"?r=r.check(R.cuid2()):i==="ulid"?r=r.check(R.ulid()):i==="xid"?r=r.check(R.xid()):i==="ksuid"&&(r=r.check(R.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"?R.number().int():R.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=R.boolean();break}case"null":{o=R.null();break}case"object":{let r={},i=e.properties||{},a=new Set(e.required||[]);for(let[c,l]of Object.entries(i)){let d=Le(l,t);r[c]=a.has(c)?d:d.optional()}if(e.propertyNames){let c=Le(e.propertyNames,t),l=e.additionalProperties&&typeof e.additionalProperties=="object"?Le(e.additionalProperties,t):R.any();if(Object.keys(r).length===0){o=R.record(c,l);break}let d=R.object(r).passthrough(),g=R.looseRecord(c,l);o=R.intersection(d,g);break}if(e.patternProperties){let c=e.patternProperties,l=Object.keys(c),d=[];for(let h of l){let p=Le(c[h],t),m=R.string().regex(new RegExp(h));d.push(R.looseRecord(m,p))}let g=[];if(Object.keys(r).length>0&&g.push(R.object(r).passthrough()),g.push(...d),g.length===0)o=R.object({}).passthrough();else if(g.length===1)o=g[0];else{let h=R.intersection(g[0],g[1]);for(let p=2;p<g.length;p++)h=R.intersection(h,g[p]);o=h}break}let u=R.object(r);e.additionalProperties===!1?o=u.strict():typeof e.additionalProperties=="object"?o=u.catchall(Le(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=>Le(c,t)),u=i&&typeof i=="object"&&!Array.isArray(i)?Le(i,t):void 0;u?o=R.tuple(a).rest(u):o=R.tuple(a),typeof e.minItems=="number"&&(o=o.check(R.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(R.maxLength(e.maxItems)))}else if(Array.isArray(i)){let a=i.map(c=>Le(c,t)),u=e.additionalItems&&typeof e.additionalItems=="object"?Le(e.additionalItems,t):void 0;u?o=R.tuple(a).rest(u):o=R.tuple(a),typeof e.minItems=="number"&&(o=o.check(R.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(R.maxLength(e.maxItems)))}else if(i!==void 0){let a=Le(i,t),u=R.array(a);typeof e.minItems=="number"&&(u=u.min(e.minItems)),typeof e.maxItems=="number"&&(u=u.max(e.maxItems)),o=u}else o=R.array(R.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(My,"convertBaseSchema");function Le(e,t){if(typeof e=="boolean")return e?R.any():R.never();let n=My(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=>Le(l,t)),c=R.union(u);n=o?R.intersection(n,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let u=e.oneOf.map(l=>Le(l,t)),c=R.xor(u);n=o?R.intersection(n,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=o?n:R.any();else{let u=o?n:Le(e.allOf[0],t),c=o?0:1;for(let l=c;l<e.allOf.length;l++)u=R.intersection(u,Le(e.allOf[l],t));n=u}e.nullable===!0&&t.version==="openapi-3.0"&&(n=R.nullable(n)),e.readOnly===!0&&(n=R.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))pS.has(u)||(r[u]=e[u]);return Object.keys(r).length>0&&t.registry.add(n,r),n}s(Le,"convertSchema");function Ly(e,t){if(typeof e=="boolean")return e?R.any():R.never();let n=dS(e,t?.defaultTarget),o=e.$defs||e.definitions||{},r={version:n,defs:o,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??ke};return Le(e,r)}s(Ly,"fromJSONSchema");var Vf={};ot(Vf,{bigint:()=>yS,boolean:()=>gS,date:()=>vS,number:()=>hS,string:()=>mS});function mS(e){return io(Xr,e)}s(mS,"string");function hS(e){return wo(Yr,e)}s(hS,"number");function gS(e){return Ro(Qr,e)}s(gS,"boolean");function yS(e){return zo(en,e)}s(yS,"bigint");function vS(e){return No(ci,e)}s(vS,"date");Pe(Qn());var nM=_u.enum(["active","out_of_credits","rejected","unreachable"]);var jy=(o=>(o.AGENT_DECIDE="agent-decide",o.CHOOSE_YOURSELF="choose-yourself",o.LEAVE_EMPTY="leave-empty",o))(jy||{}),Hf=(n=>(n.FILE="FILE",n.TABLE="TABLE",n))(Hf||{}),qf=(o=>(o.SSE="sse",o.STREAMABLE_HTTP="streamable-http",o.SIMPLE_HTTP="http",o))(qf||{});var Gf=(o=>(o.TEXT="text",o.NUMBER="number",o.BOOLEAN="boolean",o))(Gf||{});var Wf=(n=>(n.IN_PROGRESS="in-progress",n.COMPLETED="completed",n))(Wf||{});var _S=v({mode:B(jy),value:G()}),PS=v({auth:E(f()),fields:W(f(),_S)}),xS=v({pieceName:f(),pieceVersion:f(),actionName:f(),predefinedInput:E(PS)}),bS=v({type:F("PIECE"),toolName:f().check(Ae(1)),pieceMetadata:xS}),ES=v({type:F("none")}),TS=v({type:F("access_token"),accessToken:f()}),IS=v({type:F("api_key"),apiKey:f(),apiKeyHeader:f()}),SS=v({type:F("headers"),headers:W(f(),f())}),AS=Ft("type",[ES,TS,IS,SS]),Fy=v({type:F("FLOW"),toolName:f().check(Ae(1)),externalFlowId:f(),flowDisplayName:E(f())}),By=v({type:F("MCP"),toolName:f().check(Ae(1)),serverUrl:og(),protocol:B(qf),auth:AS}),Zy=v({type:F("KNOWLEDGE_BASE"),toolName:f().check(Ae(1)),sourceType:B(Hf),sourceId:f(),sourceName:f()}),wS=Ft("type",[bS,Fy,By,Zy]),$S=v({displayName:f(),description:E(f()),type:B(Gf)}),Vy=v({type:F("MARKDOWN"),markdown:f()}),tn={type:F("TOOL_CALL"),input:xe(W(f(),G())),output:E(G()),toolName:f(),status:B(Wf),toolCallId:f(),startTime:f(),endTime:E(f())},RM=v(tn),Hy=Ft("toolCallType",[v({...tn,toolCallType:F("PIECE"),pieceName:f(),pieceVersion:f(),actionName:f()}),v({...tn,toolCallType:F("FLOW"),displayName:f(),externalFlowId:f()}),v({...tn,toolCallType:F("MCP"),displayName:f(),serverUrl:f()}),v({...tn,toolCallType:F("KNOWLEDGE_BASE"),displayName:f(),sourceType:f()}),v({...tn,toolCallType:F("UNKNOWN"),displayName:f()})]),OS=K([Vy,Hy]);var RS=10800*1e3,zS=900*1e3;var Xf=(n=>(n.IMAGE="image",n.TEXT="text",n))(Xf||{}),It=v({apiKey:f()}),DS=It,CS=v({apiKey:f(),apiKeyHash:f()}),NS=It,US=It,MS=It,LS=It,jS=It,FS=It,BS=It,Jy=v({serviceAccountJson:f().check(Ae(1))}),Xy=v({accessKeyId:f().check(Ae(1)),secretAccessKey:f().check(Ae(1))}),ZS=v({}),VS=v({}),HS=v({}),qS=v({}),GS=v({}),WS=v({}),Kf=v({modelId:f(),modelName:f(),modelType:B(Xf)}),Ky=v({apiKeyHeader:f(),baseUrl:f(),models:Z(Kf),defaultHeaders:E(W(f(),f())),apiStyle:E(B(["chat","responses"]))}),Yy=v({accountId:f(),gatewayId:f(),models:Z(Kf),vertexProject:E(f()),vertexRegion:E(f())}),Qy=v({resourceName:f(),apiVersion:Zt(Bt(e=>typeof e=="string"&&e.trim().length===0?void 0:e),E(f()))}),ev=v({region:f().check(Ae(1))}),tv=v({project:f().check(Ne(/^[a-z0-9][a-z0-9-]{0,62}$/)),region:f().check(Ne(/^[a-z0-9][a-z0-9-]{0,62}$/)),models:Z(Kf)}),rv=v({}),JS=K([DS,MS,LS,jS,FS,US,NS,CS,Xy,Jy,BS]),nv=K([Ky,Yy,Qy,tv,ev,ZS,HS,qS,GS,VS,WS,rv]),XS=v({id:f(),name:f(),type:B(Xf)}),KS=v({id:f(),name:f(),provider:B(Gr),config:nv,enabledForChat:ae()}),YS=v({provider:B(Gr),name:f(),enabledForChat:ae(),keys:Z(v({id:f(),name:f()}))}),QS=v({provider:B(Gr),configId:f(),config:nv,auth:JS,platformId:f()});var CM={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"},qy=["gpt-5.5","gpt-5.4-mini","gpt-5.4-nano","gpt-4.1","gpt-4.1-mini"],eA=["claude-sonnet-4-6","claude-opus-4-7","claude-haiku-4-5"],ov=["claude-sonnet-4.6","claude-opus-4.7","claude-opus-4.8","claude-haiku-4.5"],Jf=["gemini-2.5-pro","gemini-2.5-flash","gemini-3.7-flash","gemini-3.1-pro-preview","gemini-3-flash-preview"],tA=["grok-4.20"],NM=ov.map(e=>`anthropic/${e}`),rA={openai:qy,anthropic:eA,google:Jf,vertex:Jf,activepieces:[...ov.map(e=>`anthropic/${e}`),...qy.map(e=>`openai/${e}`),...Jf.map(e=>`google/${e}`),...tA.map(e=>`x-ai/${e}`)]};var Gy=128e3,nA={openai:128e3,anthropic:2e5,google:1048576,bedrock:2e5,vertex:1048576,azure:128e3,openrouter:128e3,activepieces:2e5,mistral:128e3};function oA({provider:e}){return e?nA[e]??Gy:Gy}s(oA,"getMaxContextTokens");var Wy={openai:"text-embedding-3-small",google:"text-embedding-004",azure:"text-embedding-3-small",activepieces:"text-embedding-3-small",openrouter:"openai/text-embedding-3-small"},iA={anthropic:"native",google:"native",openrouter:"plugin",activepieces:"plugin"},aA=new Set(["anthropic","mistral","xai","deepseek","zai","qwen","minimax","moonshot"]),sA={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 Ue(e){return{chatModels:rA[e],maxContextTokens:oA({provider:e}),defaultEmbeddingModel:Wy[e],supportsEmbedding:Wy[e]!==void 0,supportsImageGeneration:!aA.has(e),webSearch:iA[e]}}s(Ue,"buildProviderCapabilities");var uA={openai:Ue("openai"),anthropic:Ue("anthropic"),openrouter:Ue("openrouter"),azure:Ue("azure"),google:Ue("google"),"cloudflare-gateway":Ue("cloudflare-gateway"),custom:Ue("custom"),bedrock:Ue("bedrock"),vertex:Ue("vertex"),mistral:Ue("mistral"),activepieces:Ue("activepieces"),xai:Ue("xai"),deepseek:Ue("deepseek"),zai:Ue("zai"),qwen:Ue("qwen"),minimax:Ue("minimax"),moonshot:Ue("moonshot")};var cA=v({base64Url:f(),fileName:f(),extension:E(f())}),lA=v({mimeType:f(),url:f(),fileName:E(f())}),Yf=K([cA,lA]);var pA=K([v({type:F("file"),value:Yf}),v({type:F("markdown"),value:f(),files:E(Z(Yf))})]),dA=v({sessionId:f(),message:f(),files:E(Z(f()))});var av=(n=>(n.ON_NEW_RECORD="ON_NEW_RECORD",n.ON_UPDATE_RECORD="ON_UPDATE_RECORD",n))(av||{}),sv=(n=>(n.ENABLED="ENABLED",n.DISABLED="DISABLED",n))(sv||{}),Qf=(o=>(o.RECORD_CREATED="RECORD_CREATED",o.RECORD_UPDATED="RECORD_UPDATED",o.RECORD_DELETED="RECORD_DELETED",o))(Qf||{});var fA=K([v({...st,name:f(),externalId:f(),type:F("STATIC_DROPDOWN"),tableId:f(),projectId:f(),data:v({options:Z(v({value:f()}))})}),v({...st,name:f(),externalId:f(),type:K([F("TEXT"),F("NUMBER"),F("DATE"),F("DATETIME")]),tableId:f(),projectId:f()})]),mA=v({...st,name:f(),folderId:xe(f()),projectId:f(),externalId:f(),status:Dd(sv),trigger:Dd(av)}),hA=v({...st,tableId:f(),projectId:f(),cells:W(f(),v({updated:f(),created:f(),value:G(),fieldName:f()}))}),gA=v({events:Z(B(Qf)),webhookUrl:f(),flowId:f()}),yA=v({fields:Z(v({id:f(),name:f()})),rows:Z(W(f(),f())),name:f()}),vA=v({projectId:f(),limit:E(qo.number()),cursor:E(f()),name:E(f()),externalIds:Ms(f()),folderId:E(f()),folderIds:Ms(f())}),_A=v({records:Z(Z(v({fieldId:f(),value:cv()}))),tableId:f()}),PA=v({cells:E(Z(v({fieldId:f(),value:cv()}))),tableId:f(),agentUpdate:E(ae())}),uv=Ft("operator",[yr("eq"),yr("neq"),yr("gt"),yr("gte"),yr("lt"),yr("lte"),yr("co"),iv("exists"),iv("not_exists")]),xA=v({tableId:f(),limit:E(qo.number()),cursor:E(f()),filters:Ms(uv)});function cv(){return Zt(Bt(e=>e==null?e:String(e)),Ho(f()))}s(cv,"coerceToString");function yr(e){return v({fieldId:f(),operator:F(e),value:f()})}s(yr,"valueFilter");function iv(e){return v({fieldId:f(),operator:F(e)})}s(iv,"existenceFilter");var bA=v({status:E(De()),body:E(G()),headers:E(W(f(),f()))}),EA=v({...st,deleted:xe(Ht),ownerId:f(),displayName:f(),platformId:f(),externalId:xe(f())});var lv=v({name:f(),description:E(f()),type:f(),required:ae()}),TA=v({pieceName:f(),triggerName:f(),input:v({toolName:f(),toolDescription:f(),inputSchema:Z(lv),returnsResponse:ae()})});var pv="^[0-9]+\\.[0-9]+\\.[0-9]+$",tL=new RegExp(pv),SA="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",rL=f().check(Ne(new RegExp(pv))),nL=f().check(Ne(new RegExp(SA))),AA=v({packageType:F("ARCHIVE"),pieceType:B(Vr),pieceName:f(),pieceVersion:f(),archiveId:f(),platformId:f()}),dv=v({packageType:F("REGISTRY"),pieceType:F("OFFICIAL"),pieceName:f(),pieceVersion:f()}),fv=v({packageType:F("REGISTRY"),pieceType:F("CUSTOM"),pieceName:f(),pieceVersion:f(),platformId:f()}),oL=K([dv,fv]),iL=K([AA,dv,fv]);var wA=Ft("type",[v({type:F("CRON_EXPRESSION"),cronExpression:f(),timezone:f()}),v({type:F("INTERVAL"),intervalMs:ig().check(Oe(6e4))})]),aL=v({...st,type:B(Ze),projectId:f(),flowId:f(),triggerName:f(),schedule:xe(wA),flowVersionId:f(),pieceName:f(),pieceVersion:f(),deleted:xe(f()),simulate:ae()}),mv=(x=>(x.UNKNOWN="UNKNOWN",x.FLOW_RUN_LOG="FLOW_RUN_LOG",x.FLOW_RUN_LOG_SLICE="FLOW_RUN_LOG_SLICE",x.PACKAGE_ARCHIVE="PACKAGE_ARCHIVE",x.FLOW_STEP_FILE="FLOW_STEP_FILE",x.SAMPLE_DATA="SAMPLE_DATA",x.TRIGGER_PAYLOAD="TRIGGER_PAYLOAD",x.SAMPLE_DATA_INPUT="SAMPLE_DATA_INPUT",x.TRIGGER_EVENT_FILE="TRIGGER_EVENT_FILE",x.PROJECT_RELEASE="PROJECT_RELEASE",x.FLOW_VERSION_BACKUP="FLOW_VERSION_BACKUP",x.PLATFORM_ASSET="PLATFORM_ASSET",x.USER_PROFILE_PICTURE="USER_PROFILE_PICTURE",x.WEBHOOK_PAYLOAD="WEBHOOK_PAYLOAD",x.KNOWLEDGE_BASE="KNOWLEDGE_BASE",x.FLOW_BUNDLE="FLOW_BUNDLE",x.PREWARM_SCOPE="PREWARM_SCOPE",x))(mv||{}),hv=(n=>(n.NONE="NONE",n.ZSTD="ZSTD",n))(hv||{}),gv=(n=>(n.S3="S3",n.DB="DB",n))(gv||{}),sL=v({...st,projectId:xe(f()),platformId:xe(f()),type:B(mv),compression:B(hv),data:E(G()),location:B(gv),size:xe(De()),fileName:xe(f()),s3Key:xe(f()),metadata:xe(W(f(),f()))}),yv=(o=>(o.ADMIN="ADMIN",o.MEMBER="MEMBER",o.OPERATOR="OPERATOR",o))(yv||{}),vv=(n=>(n.ACTIVE="ACTIVE",n.INACTIVE="INACTIVE",n))(vv||{}),uL=v({id:f(),email:f(),firstName:f(),status:B(vv),externalId:xe(f()),platformId:xe(f()),platformRole:B(yv),lastName:f(),created:Ht,updated:Ht,lastActiveDate:xe(Ht),imageUrl:xe(f())});var em=v({...oe.shape,...J(W(f(),G()),"OBJECT").shape});var tm=v({...oe.shape,formatProperty:E(f()),...J(f(),"RICH_TEXT").shape});var bv=v({...oe.shape,...J(f(),"COLOR").shape});var rm=K([tt,xt,tm,Cs,Et,rt,bt,wd,Go,Od,Tt,Xo,em,Ko,Jo,$d,Wo,bv]),O={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 gt=v({displayName:f(),description:E(f()),hasConnectionIdentifier:E(ae())});var Ev=v({username:f(),password:f()}),nm=v({...gt.shape,username:v({displayName:f(),description:E(f())}),password:v({displayName:f(),description:E(f())}),...J(Ev,"BASIC_AUTH").shape});var zA=W(f(),K([tt,xt,Tt,Et,rt])),om=v({...gt.shape,props:zA,...J(G(),"CUSTOM_AUTH").shape});var vr=v({...gt.shape,...J(v({auth:f()}),"SECRET_TEXT").shape});var kA=W(f(),K([tt,xt,vr,Tt,Et,rt,bt,Cs])),Tv=v({...gt.shape,props:kA,...J(G(),"OIDC").shape});var im=(n=>(n.HEADER="HEADER",n.BODY="BODY",n))(im||{}),Iv=K([tt,vr,rt]),Sv=W(f(),Iv),DA=v({props:E(W(f(),Iv)),authUrl:f(),tokenUrl:f(),scope:Z(f()),prompt:E(K([F("none"),F("consent"),F("login"),F("omit")])),pkce:E(ae()),pkceMethod:E(K([F("plain"),F("S256")])),authorizationMethod:E(B(im)),grantType:E(K([B(Qo),F(Rd)])),extra:E(W(f(),f()))}),Av=v({access_token:f(),props:E(Sv),data:W(f(),Vo())}),am=v({...gt.shape,...DA.shape,...J(Av,"OAUTH2").shape});var rn=K([nm,om,Tv,am,vr]),hi="Connection",sm={SecretText(e){return{...e,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(e){return{...e,valueSchema:void 0,type:"OAUTH2",displayName:e.displayName||hi}},BasicAuth(e){return{...e,valueSchema:void 0,type:"BASIC_AUTH",displayName:e.displayName||hi,required:!0}},CustomAuth(e){return{...e,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:e.displayName||hi}},OIDC(e){return{...e,valueSchema:void 0,type:"OIDC",displayName:e.displayName||hi}},None(){}};var H4={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 CA=v({...oe.shape,...J(G(),"CUSTOM").shape,code:f()});var NA=K([rm,rn]),um=W(f(),NA),d1=W(f(),rm);var wv=K([v({strategy:F("CRON"),cronExpression:f()}),v({strategy:F("NONE")})]),nn=class{constructor(t,n,o,r,i,a,u,c,l,d,g,h,p,m,_,P,x,$,j,ne,fe){this.name=t;this.displayName=n;this.description=o;this.requireAuth=r;this.props=i;this.type=a;this.handshakeConfiguration=u;this.onHandshake=c;this.renewConfiguration=l;this.onRenew=d;this.onEnable=g;this.onDisable=h;this.onStart=p;this.run=m;this.test=_;this.sampleData=P;this.testStrategy=x;this.outputSchema=$;this.aiMetadata=j;this.classification=ne;this.propertyGroups=fe}static{s(this,"ITrigger")}},je=s(e=>{switch(e.type){case"WEBHOOK":return new nn(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 nn(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 nn(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 nn(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,we(e.sampleData)&&we(e.test)?"SIMULATION":"TEST_FUNCTION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups)}},"createTrigger");var $v="2",Pu="0.82.0";var cm=class{constructor(t,n,o,r,i,a,u,c,l=Pu,d,g="",h){this.displayName=t;this.logoUrl=n;this.authors=o;this.events=r;this.categories=u;this.auth=c;this.minimumSupportedRelease=l;this.maximumSupportedRelease=d;this.description=g;this.deprecated=h;this._actions={};this._triggers={};this.getContextInfo=s(()=>({version:$v}),"getContextInfo");(!MA(l)||LA(l,Pu))&&(this.minimumSupportedRelease=Pu),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:UA(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}},Rv=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 cm(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 UA(e){if(e!==void 0)return Array.isArray(e)?e.map(Ov):Ov(e)}s(UA,"withConnectionIdentifierFlag");function Ov(e){return{...e,hasConnectionIdentifier:e.getConnectionIdentifier!==void 0}}s(Ov,"flagConnectionIdentifier");function MA(e){return/^\d+\.\d+\.\d+$/.test(e)}s(MA,"isValidSimpleSemver");function LA(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(LA,"isSemverLessThan");var jA=E(W(f(),W(f(),f()))),zv=v({id:E(f()),name:f(),displayName:f(),logoUrl:f(),description:f(),authors:Z(f()),platformId:E(f()),directoryPath:E(f()),auth:E(K([rn,Z(rn)])),version:f(),categories:E(Z(B(Hr))),minimumSupportedRelease:E(f()),maximumSupportedRelease:E(f()),deprecated:E(ae()),i18n:jA}),FA=B(["human","ai","both"]),kv=v({description:E(f()),idempotent:E(ae())}),Dv=B(["READ","SEARCH","WRITE","DESTRUCTIVE"]);var BA=B(["tabs","section","summary","builder","footer"]),Cv=v({key:f(),display:BA,label:E(f()),description:E(f()),icon:E(f()),props:Z(f())}),Nv=v({name:f(),displayName:f(),description:f(),props:um,propertyGroups:E(Z(Cv)),requireAuth:ae(),errorHandlingOptions:E(Ad),outputSchema:E(ks()),audience:E(FA),aiMetadata:E(kv),classification:E(Dv)}),Uv=v({name:f(),displayName:f(),description:f(),props:um,propertyGroups:E(Z(Cv)),errorHandlingOptions:E(Ad),type:B(Ze),sampleData:G(),handshakeConfiguration:E(ks()),renewConfiguration:E(wv),testStrategy:B(ti),outputSchema:E(ks()),aiMetadata:E(kv),classification:E(Dv)}),ZA=v({...zv.shape,actions:W(f(),Nv),triggers:W(f(),Uv)}),VA=v({...zv.shape,actions:De(),triggers:De(),suggestedActions:E(Z(Nv)),suggestedTriggers:E(Z(Uv))}),Mv=v({projectUsage:De(),pieceType:B(Vr),packageType:B(Yo),platformId:E(f()),archiveId:E(f())}),hj=v({...ZA.shape,...Mv.shape}),gj=v({...VA.shape,...Mv.shape}),yj=v({name:f(),version:f()});var HA=ie(require("path")),qA=ie(require("fs/promises"));var on=require("node:stream");var xu=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 bu=class{static{s(this,"DelegatingAuthenticationConverter")}constructor(t=new lm,n=new pm){this.converters={BEARER_TOKEN:t,BASIC:n}}convert(t,n){return this.converters[t.type].convert(t,n)}},lm=class{static{s(this,"BearerTokenAuthenticationConverter")}convert(t,n){return n.Authorization=`Bearer ${t.token}`,n}},pm=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 gi=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 Lv({error:e,requestBody:t}){return e instanceof gi?e.errorMessage():{response:{status:0,body:e instanceof Error?e.message:String(e)},request:{body:t}}}s(Lv,"toFailsafeOutput");var Eu=(a=>(a.GET="GET",a.POST="POST",a.PATCH="PATCH",a.PUT="PUT",a.DELETE="DELETE",a.HEAD="HEAD",a))(Eu||{});var Tu=class extends xu{static{s(this,"FetchHttpClient")}constructor(t="",n=new bu){super(t,n)}async sendRequest(t,n){process.env.NODE_TLS_REJECT_UNAUTHORIZED="0";let{urlWithoutQueryParams:o,queryParams:r}=this.getUrl(t),i=this.getHeaders(t),a=t.queryParams??{};for(let[j,ne]of Object.entries(a))r.append(j,ne);let u=r.toString(),c=u?`${o}?${u}`:o,l=t.responseType??"json",d=t.followRedirects??!0,g=t.retries??0,{body:h,extraHeaders:p,isStream:m}=Iu(t.method)?GA(t.body,i):{body:void 0,extraHeaders:{},isStream:!1},_=JA({...i,...p}),P=await WA(async()=>{let j=new AbortController,ne=t.timeout&&t.timeout>0?setTimeout(()=>j.abort(),t.timeout):void 0;try{let fe={method:t.method.toString(),headers:_,body:h,redirect:d?"follow":"manual",signal:j.signal};return m&&(fe.duplex="half"),n?.dispatcher!==void 0&&(fe.dispatcher=n.dispatcher),await fetch(c,fe)}finally{ne!==void 0&&clearTimeout(ne)}},m?0:g),x=d?300:400;if(P.status<200||P.status>=x){let j=await jv(P,l==="stream"?"text":l),ne=new gi(t.body,{status:P.status,responseBody:j});throw console.error("[HttpClient#(sanitized error message)] Request failed:",ne),ne}let $=await jv(P,l);return{status:P.status,headers:XA(P.headers),body:$}}};function Iu(e){return e!=="GET"&&e!=="HEAD"}s(Iu,"acceptsRequestBody");function GA(e,t){if(Bv(e))return{body:void 0,extraHeaders:{},isStream:!1};if(YA(e)){let o=KA(e);if(o!==null)return{body:o,extraHeaders:e.getHeaders(),isStream:!1};let r=new on.PassThrough;return e.on("error",i=>r.destroy(i)),e.pipe(r),{body:r,extraHeaders:e.getHeaders(),isStream:!0}}return e instanceof on.Readable?{body:e,extraHeaders:{},isStream:!0}:typeof e=="string"||Buffer.isBuffer(e)||e instanceof URLSearchParams||e instanceof ArrayBuffer||typeof FormData<"u"&&e instanceof FormData||typeof Blob<"u"&&e instanceof Blob?{body:e,extraHeaders:{},isStream:!1}:(t["Content-Type"]??t["content-type"]??"").includes("application/x-www-form-urlencoded")?{body:new URLSearchParams(e).toString(),extraHeaders:{},isStream:!1}:{body:JSON.stringify(e),extraHeaders:{},isStream:!1}}s(GA,"serializeBody");async function jv(e,t){switch(t){case"arraybuffer":return Buffer.from(await e.arrayBuffer());case"stream":return Bv(e.body)?on.Readable.from([]):on.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(jv,"parseResponseBody");async function WA(e,t){let n;for(let o=0;o<=t;o++)try{let r=await e();if(r.status>=500&&o<t){await Fv(o);continue}return r}catch(r){if(n=r,o<t){await Fv(o);continue}throw r}throw n}s(WA,"sendWithRetries");function Fv(e){let t=Math.min(1e3*2**e,3e4);return new Promise(n=>setTimeout(n,t))}s(Fv,"backoff");function JA(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(JA,"normalizeHeaders");function XA(e){let t={};return e.forEach((n,o)=>{t[o]=n}),t}s(XA,"toHttpHeaders");function KA(e){if(!e.hasKnownLength()||e.getLengthSync()>QA)return null;let{data:t}=zd(()=>e.getBuffer());return t}s(KA,"bufferFormDataIfSafe");function YA(e){return typeof e=="object"&&e!==null&&typeof e.getHeaders=="function"&&typeof e.pipe=="function"&&typeof e.on=="function"}s(YA,"isNodeFormData");function Bv(e){return e==null}s(Bv,"isNil");var QA=100*1024*1024;var yi=new Tu;var j$=ie(require("fs")),WP=ie(GP());var F$={"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 B$(e){let t=e.split(";")[0].trim().toLowerCase();return F$[t]??""}s(B$,"contentTypeToExtension");var Z$=s(({baseUrl:e,relativePath:t})=>{let n=e.endsWith("/")?e:`${e}/`,o=t.startsWith("/")?t.slice(1):t;return`${n}${o}`},"joinBaseUrlWithRelativePath"),V$=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 JP({auth:e,baseUrl:t,authMapping:n,description:o,displayName:r,name:i,props:a,extraProps:u,authLocation:c="headers",classification:l="WRITE"}){return ue({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:O.DynamicProperties({auth:e,displayName:"",required:!0,refreshers:[],props:s(async({auth:d})=>({url:O.ShortText({displayName:"URL",description:`Full URL, or a path relative to ${V$(t,d)}`,required:!0,placeholder:"/resource",defaultValue:d?t(d):"",...a?.url??{}})}),"props")}),method:O.StaticDropdown({displayName:"Method",required:!0,defaultValue:"GET",options:{options:Object.values(Eu).map(d=>({label:d,value:d}))},...a?.method??{}}),headers:O.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!1,...a?.headers??{}}),queryParams:O.Object({displayName:"Query Parameters",description:"Appended to the URL as ?key=value.",required:!1,...a?.queryParams??{}}),body_type:O.Dropdown({auth:e,displayName:"Body Type",required:!1,defaultValue:"none",refreshers:["method"],options:s(async({method:d})=>Iu(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:O.DynamicProperties({auth:e,displayName:"Body",refreshers:["body_type","method"],required:!1,props:s(async({body_type:d,method:g})=>{if(!d||!Iu(g))return{};let h=d,p={};switch(h){case"none":break;case"json":p.data=O.Json({displayName:"JSON Body",required:!0,...a?.body??{}});break;case"raw":p.data=O.LongText({displayName:"Raw Body",required:!0});break;case"form_data":p.data=O.Array({displayName:"Form Data",required:!0,properties:{fieldName:O.ShortText({displayName:"Field Name",required:!0}),fieldType:O.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:O.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:O.File({displayName:"File Field Value",required:!1})}});break}return p},"props")}),response_is_binary:O.Checkbox({displayName:"Response is Binary",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1,advanced:!0,...a?.response_is_binary??{}}),failsafe:O.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:O.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:O.Checkbox({displayName:"Follow redirects",description:"Follow 3xx redirects instead of returning them as the response.",required:!1,defaultValue:!1,advanced:!0,...a?.followRedirects??{}}),...u},run:s(async d=>{let{method:g,url:h,headers:p,queryParams:m,body:_,body_type:P,failsafe:x,timeout:$,response_is_binary:j,followRedirects:ne}=d.propsValue;Us(g,"Method"),Us(h,"URL");let fe=we(n)?{}:await n(d.auth,d.propsValue),Ve=h.url,Te=Ve.startsWith("http://")||Ve.startsWith("https://")?Ve:Z$({baseUrl:t(d.auth),relativePath:Ve}),te={method:g,url:Te,headers:{...p??{},...c==="headers"||!we(c)?fe:{}},queryParams:{...c==="queryParams"?fe:{},...m??{}},timeout:$?$*1e3:0,followRedirects:ne};if(j&&(te.responseType="arraybuffer"),_)if(P&&P!=="none"){let He=_.data;if(P==="form_data"){let Ci=He,q=new WP.default;for(let{fieldName:N,fieldType:z,textFieldValue:L,fileFieldValue:C}of Ci)z==="text"&&!ri(L)?q.append(N,L):z==="file"&&!ri(C)&&q.append(N,C.data,{filename:C?.filename});te.body=q,te.headers={...te.headers,...q.getHeaders()}}else te.body=He}else P||(te.body=_);try{let He=await yi.sendRequest(te);return await H$(d.files,He.body,He.status,He.headers,j)}catch(He){if(x)return Lv({error:He,requestBody:te.body});throw He}},"run")})}s(JP,"createCustomApiCallAction");var H$=s(async(e,t,n,o,r)=>{let i;if(r&&q$(t)){let a=Array.isArray(o?.["content-type"])?o["content-type"][0]:o?.["content-type"],u=B$(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"),q$=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(we(u))throw new Error("lastPoll doesn't exist in the store.");let c=await e.items({store:t,auth:n,propsValue:o,lastFetchEpochMS:u,server:a}),l=c.reduce((d,g)=>Math.max(d,g.epochMilliSeconds),u);return await t.put("lastPoll",l),c.filter(d=>d.epochMilliSeconds>u).map(d=>d.data)}case 1:{let u=await t.get("lastItem"),c=await e.items({store:t,auth:n,propsValue:o,lastItemId:u,files:i,server:a}),l=c.findIndex(h=>h.id===u),d=[];we(u)||l==-1?d=c??[]:d=c?.slice(0,l)??[],we(r)||(d=d.slice(-r));let g=d?.[0]?.id;return we(g)||await t.put("lastItem",g),d.map(h=>h.data)}}},async onEnable(e,{store:t,auth:n,propsValue:o,server:r,isRepublish:i}){switch(e.strategy){case 0:{if(i&&!we(await t.get("lastPoll")))break;await t.put("lastPoll",Date.now());break}case 1:{if(i&&!we(await t.get("lastItem")))break;let u=(await e.items({store:t,auth:n,propsValue:o,lastItemId:null,server:r}))?.[0]?.id;we(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 G$(a.map(u=>u.data))}};function G$(e){return e.length<=5?e:e.slice(0,5)}s(G$,"getFirstFiveOrAll");var XP=require("node:stream");function W$(e){return"body"in e?{body:e.body,size:e.size}:{body:XP.Readable.from(e.data),size:e.data.length}}s(W$,"toStreamingBody");async function*J$({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(J$,"readChunks");var zm={readChunks:J$,toStreamingBody:W$};var xi="login.microsoftonline.com",YP="login.microsoftonline.us",KP={[xi]:"https://graph.microsoft.com",[YP]:"https://graph.microsoft.us"},QP=O.StaticDropdown({displayName:"Cloud Environment",description:"Select your Microsoft cloud environment.",required:!0,defaultValue:xi,options:{disabled:!1,options:[{label:"Commercial (Global)",value:xi},{label:"US Government (GCC High)",value:YP}]}});function X$(e){return e??xi}s(X$,"resolveCloudHost");function k(e){let t=X$(e);return KP[t]??KP[xi]}s(k,"getGraphBaseUrl");var K$=`
7
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),
8
46
  set the **Redirect URI** to {{redirectUrl}} and add the following **Microsoft Graph (Delegated) permissions** under **API permissions**:
9
47
  - Sites.Read.All
@@ -13,7 +51,7 @@ If you'd like to use your own custom Azure app instead of the default app, follo
13
51
  - openid
14
52
  - email
15
53
  - profile
16
- - offline_access`,O=ci.OAuth2({description:By,props:{cloud:Kl},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 Ye=Q(ae());var ld=a(e=>T.Dropdown({auth:O,displayName:e.displayName,required:!0,refreshers:e.refreshers,options:a(async({auth:t,...r})=>{let n=r[e.refreshers[0]];if(!t||!n)return{disabled:!0,placeholder:"Please select a site first.",options:[]};let o=t,i=o.props?.cloud,s=Ye.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:S(i)}),u=[],c=await s.api(`/sites/${n}/drives`).select("id,name").get();for(;c.value.length>0;){for(let d of c.value)u.push({label:d.name,value:d.id});if(c["@odata.nextLink"])c=await s.api(c["@odata.nextLink"]).get();else break}return{disabled:!1,options:u}},"options")}),"createDriveDropdown"),A={siteId:T.Dropdown({auth:O,displayName:"Site",required:!0,refreshers:[],options:a(async({auth:e})=>{if(!e)return{disabled:!0,placeholder:"Please connect your account first.",options:[]};let t=e,r=t.props?.cloud,n=Ye.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(t.access_token),"getAccessToken")},baseUrl:S(r)}),o=[],i=await n.api("/sites?search=*&$select=displayName,id,name").get();for(;i.value.length>0;){for(let s of i.value)o.push({label:s.displayName,value:s.id});if(i["@odata.nextLink"])i=await n.api(i["@odata.nextLink"]).get();else break}return{disabled:!1,options:o}},"options")}),driveId:ld({displayName:"Drive",refreshers:["siteId"]}),createDriveDropdown:ld,itemId:T.Dropdown({auth:O,displayName:"Source File or Folder",required:!0,refreshers:["siteId","driveId"],options:a(async({auth:e,siteId:t,driveId:r})=>{if(!e||!t||!r)return{disabled:!0,placeholder:"Please select a site and drive first.",options:[]};let n=e,o=n.props?.cloud,i=Ye.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(n.access_token),"getAccessToken")},baseUrl:S(o)}),s=[],u=await i.api(`/sites/${t}/drives/${r}/root/children?$select=id,name,folder,file`).get();for(;u.value.length>0;){for(let c of u.value){let d=c.folder?"[Folder] ":"[File] ";s.push({label:d+c.name,value:c.id})}if(u["@odata.nextLink"])u=await i.api(u["@odata.nextLink"]).get();else break}return{disabled:!1,options:s}},"options")}),destinationFolderId:T.Dropdown({auth:O,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:a(async({auth:e,...t})=>{let r=t.destination_site_id,n=t.destination_drive_id;if(!e||!r||!n)return{disabled:!0,placeholder:"Select a destination site and drive first.",options:[]};let o=e,i=o.props?.cloud,s=Ye.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:S(i)}),u=[],c=await s.api(`/sites/${r}/drives/${n}/root/children?$filter=folder ne null&$select=id,name`).get();for(;c.value.length>0;){for(let d of c.value)u.push({label:d.name,value:d.id});if(c["@odata.nextLink"])c=await s.api(c["@odata.nextLink"]).get();else break}return{disabled:!1,options:u}},"options")}),listId:T.Dropdown({auth:O,displayName:"List",required:!0,refreshers:["siteId"],options:a(async({auth:e,siteId:t})=>{if(!e||!t)return{disabled:!0,placeholder:"Please select a site first.",options:[]};let r=e,n=r.props?.cloud,o=Ye.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(r.access_token),"getAccessToken")},baseUrl:S(n)}),i=[],s=await o.api(`/sites/${t}/lists`).select("displayName,id").get();for(;s.value.length>0;){for(let u of s.value)i.push({label:u.displayName,value:u.id});if(s["@odata.nextLink"])s=await o.api(s["@odata.nextLink"]).get();else break}return{disabled:!1,options:i}},"options")}),listColumns:T.DynamicProperties({auth:O,displayName:"List Columns",refreshers:["siteId","listId"],required:!0,props:a(async({auth:e,siteId:t,listId:r})=>{if(!e||!t||!r)return{};let n={},o=e,i=o.props?.cloud,s=Ye.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:S(i)}),u=[],c=await s.api(`/sites/${t}/lists/${r}/columns`).get();for(;c.value.length>0;){for(let d of c.value)d.readOnly||u.push(d);if(c["@odata.nextLink"])c=await s.api(c["@odata.nextLink"]).get();else break}for(let d of u){let f={displayName:d.displayName,description:d.description??"",required:!1};d.boolean?n[d.name]=T.Checkbox(f):d.text?n[d.name]=T.LongText(f):d.dateTime?n[d.name]=T.DateTime(f):d.choice?d.choice.displayAs==="checkBoxes"?n[d.name]=T.StaticMultiSelectDropdown({...f,options:{disabled:!1,options:d.choice?.choices?d.choice.choices.map(v=>({label:v,value:v})):[]}}):n[d.name]=T.StaticDropdown({...f,options:{disabled:!1,options:d.choice?.choices?d.choice.choices.map(v=>({label:v,value:v})):[]}}):d.number?n[d.name]=T.Number(f):d.currency&&(n[d.name]=T.Number(f))}return n},"props")}),listItemId:T.Dropdown({auth:O,displayName:"List Item",required:!0,refreshers:["siteId","listId"],options:a(async({auth:e,siteId:t,listId:r})=>{if(!e||!t||!r)return{disabled:!0,placeholder:"Please select a site and list first.",options:[]};let n=e,o=n.props?.cloud,i=Ye.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(n.access_token),"getAccessToken")},baseUrl:S(o)}),s=[],u=await i.api(`/sites/${t}/lists/${r}/items?$select=id&$expand=fields($select=Title)`).get();for(;u.value.length>0;){for(let c of u.value)s.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:s}},"options")}),pageId:T.Dropdown({auth:O,displayName:"Page",required:!0,refreshers:["siteId"],options:a(async({auth:e,siteId:t})=>{if(!e||!t)return{disabled:!0,placeholder:"Please select a site first.",options:[]};let r=e,n=r.props?.cloud,o=Ye.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(r.access_token),"getAccessToken")},baseUrl:S(n)}),i=[],s=await o.api(`/sites/${t}/pages?$select=id,title`).get();for(;s.value.length>0;){for(let u of s.value)i.push({label:u.title??`Page ${u.id}`,value:u.id});if(s["@odata.nextLink"])s=await o.api(s["@odata.nextLink"]).get();else break}return{disabled:!1,options:i}},"options")})};var pd=Q(ae());var dd=re({auth:O,name:"microsoft_sharepoint_create_folder",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:A.siteId,driveId:A.driveId,parentFolder:T.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:T.ShortText({displayName:"Folder Name",required:!0})},async run(e){let{driveId:t,parentFolder:r,folderName:n}=e.propsValue,o=e.auth.props?.cloud,i=pd.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:S(o)}),s=r+n;return await i.api(`/drives/${t}/root:${s}`).patch({folder:{}})}});var fd=Q(ae());var md=re({auth:O,name:"microsoft_sharepoint_create_list",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:A.siteId,displayName:T.ShortText({displayName:"List Name",required:!0}),description:T.ShortText({displayName:"List Description",required:!0})},async run(e){let{siteId:t,displayName:r,description:n}=e.propsValue,o=e.auth.props?.cloud,i=fd.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:S(o)}),s={displayName:r,description:n};return await i.api(`/sites/${t}/lists`).post(s)}});var hd=Q(ae());var gd=re({auth:O,name:"microsoft_sharepoint_create_list_item",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:A.siteId,listId:A.listId,listColumns:A.listColumns},async run(e){let{siteId:t,listId:r,listColumns:n}=e.propsValue,o=e.auth.props?.cloud,i=hd.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:S(o)}),s={};Object.entries(n).forEach(([c,d])=>{Array.isArray(d)&&(s[`${c}@odata.type`]="Collection(Edm.String)")});let u={fields:{...n,...s}};return await i.api(`/sites/${t}/lists/${r}/items`).post(u)}});var yd=Q(ae());var vd=re({auth:O,name:"microsoft_sharepoint_delete_list_item",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:A.siteId,listId:A.listId,listItemId:A.listItemId},async run(e){let{siteId:t,listId:r,listItemId:n}=e.propsValue,o=e.auth.props?.cloud;return await yd.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:S(o)}).api(`/sites/${t}/lists/${r}/items/${n}`).delete()}});var Pd=Q(ae());var _d=re({auth:O,name:"microsoft_sharepoint_search_list_item",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:A.siteId,listId:A.listId,searchValue:T.ShortText({displayName:"Title",description:"Item title to search",required:!0})},async run(e){let{siteId:t,listId:r,searchValue:n}=e.propsValue,o=e.auth.props?.cloud,i=Pd.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:S(o)}),s=n.replaceAll("'","''");return await i.api(`/sites/${t}/lists/${r}/items?$expand=fields&filter=fields/Title eq '${s}'`).headers({Prefer:"HonorNonIndexedQueriesWarningMayFailRandomly"}).get()}});var xd=Q(ae());var bd=re({auth:O,name:"microsoft_sharepoint_update_list_item",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:A.siteId,listId:A.listId,listItemId:A.listItemId,listColumns:A.listColumns},async run(e){let{siteId:t,listId:r,listItemId:n,listColumns:o}=e.propsValue,i=e.auth.props?.cloud,s=xd.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:S(i)}),u={};Object.entries(o).forEach(([d,f])=>{Array.isArray(f)&&(u[`${d}@odata.type`]="Collection(Edm.String)")});let c={...o,...u};return await s.api(`/sites/${t}/lists/${r}/items/${n}/fields`).patch(c)}});var Td=require("node:stream"),Ed=require("node:stream/consumers");var Id=Q(ae());var c_=250*1024*1024,l_=10*1024*1024,Sd=re({auth:O,name:"microsoft_sharepoint_upload_file",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:A.siteId,driveId:A.driveId,file:T.File({displayName:"File",description:"The file or url you want to upload",required:!0,streaming:!0}),parentFolder:T.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:T.ShortText({displayName:"File Name",required:!0})},async run(e){let{siteId:t,driveId:r,file:n,parentFolder:o,fileName:i}=e.propsValue,s=e.auth.props?.cloud,u=S(s),c=Id.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:u}),f=(await c.api(`/sites/${t}/drives/${r}/root:${o}`).get()).id??"test",v=`/sites/${t}/drives/${r}/items/${f}:/${i}`,{body:y,size:p}=ki.toStreamingBody(n);if(p==null){let P=await(0,Ed.buffer)(y);p=P.length,y=Td.Readable.from(P)}if(p>c_){let P=await c.api(`${v}:/createUploadSession`).post({item:{"@microsoft.graph.conflictBehavior":"replace",name:i}});return await p_({uploadUrl:P.uploadUrl,body:y,fileSize:p})}return(await hr.sendRequest({method:"PUT",url:`${u}/v1.0${v}:/content`,body:y,headers:{"Content-Type":"application/octet-stream","Content-Length":String(p)},authentication:{type:"BEARER_TOKEN",token:e.auth.access_token}})).body}});async function p_({uploadUrl:e,body:t,fileSize:r}){let n=0,o;for await(let i of ki.readChunks({readable:t,chunkSize:l_}))o=await hr.sendRequest({method:"PUT",url:e,body:i,headers:{"Content-Length":String(i.length),"Content-Range":`bytes ${n}-${n+i.length-1}/${r}`}}),n+=i.length;return o?.body}a(p_,"uploadInSession");var go=Q(ae());var Ad=2e3,d_=120;async function f_(e){return new Promise(t=>setTimeout(t,e))}a(f_,"delay");var wd=re({auth:O,name:"microsoft_sharepoint_copy_item",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:A.siteId,driveId:A.driveId,itemId:A.itemId,destination_site_id:A.siteId,destination_drive_id:A.createDriveDropdown({displayName:"Destination Drive",refreshers:["destination_site_id"]}),destination_folder_id:A.destinationFolderId,new_name:T.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:T.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:r,itemId:n,destination_drive_id:o,destination_folder_id:i,new_name:s,conflict_behavior:u}=e.propsValue,c=e.auth.props?.cloud,d=go.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:S(c)}),f={parentReference:{driveId:o}};i&&(f.parentReference.id=i),s&&(f.name=s);let v;try{v=await d.api(`/drives/${r}/items/${n}/copy`).responseType(go.ResponseType.RAW).query({"@microsoft.graph.conflictBehavior":u}).post(f)}catch(m){throw m.statusCode===400?new Error(`Invalid request: ${m.message||"Check your input parameters"}`):m.statusCode===403?new Error("Insufficient permissions to copy this item. Requires Files.ReadWrite or higher."):m.statusCode===404?new Error("Source item not found. Please verify the site, drive, and item IDs."):new Error(`Failed to initiate copy operation: ${m.message||"Unknown error"}`)}let y=v.headers.get("Location");if(!y)throw new Error("Could not get monitor URL from copy operation response.");let p=d_*1e3/Ad;for(;p>0;){let m=await d.api(y).get();if(m.status==="completed")return{success:!0,status:"completed",resourceId:m.resourceId,resourceLocation:m.resourceLocation};if(m.status==="failed"){let P=m.error?.details?m.error.details.map(h=>h.message||h.code).join(", "):m.error?.message||"Unknown error";throw new Error(`Copy operation failed: ${P}`)}await f_(Ad),p--}throw new Error("Copy operation timed out after 120 seconds.")}});var Sr=Q(ae());var $d=2e3,m_=120;async function h_(e){return new Promise(t=>setTimeout(t,e))}a(h_,"delay");var Od=re({auth:O,name:"microsoft_sharepoint_copy_item_within_site",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:A.siteId,driveId:A.driveId,itemId:A.itemId,destinationFolderId:T.Dropdown({auth:O,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:a(async({auth:e,siteId:t,driveId:r})=>{if(!e||!t||!r)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let n=e,o=n.props?.cloud,i=Sr.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(n.access_token),"getAccessToken")},baseUrl:S(o)}),s=[{label:"Root",value:"root"}],u=await i.api(`/sites/${t}/drives/${r}/root/children?$filter=folder ne null&$select=id,name`).get();for(;u.value.length>0;){for(let c of u.value)s.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:s}},"options")}),newName:T.ShortText({displayName:"New Name (Optional)",description:"A new name for the copied item. If not provided, the original name is used.",required:!1}),conflictBehavior:T.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:r,itemId:n,destinationFolderId:o,newName:i,conflictBehavior:s}=e.propsValue,u=e.auth.props?.cloud,c=Sr.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:S(u)}),f={parentReference:{id:o==="root"?(await c.api(`/drives/${r}/root`).get()).id:o}};i&&(f.name=i);let v;try{v=await c.api(`/drives/${r}/items/${n}/copy`).responseType(Sr.ResponseType.RAW).query({"@microsoft.graph.conflictBehavior":s}).post(f)}catch(m){throw m.statusCode===400?new Error(`Invalid request: ${m.message||"Check your input parameters"}`):m.statusCode===403?new Error("Insufficient permissions to copy this item. Requires Files.ReadWrite or higher."):m.statusCode===404?new Error("Source item not found. Please verify the site, drive, and item IDs."):new Error(`Failed to initiate copy operation: ${m.message||"Unknown error"}`)}let y=v.headers.get("Location");if(!y)throw new Error("Could not get monitor URL from copy operation response.");let p=m_*1e3/$d;for(;p>0;){let m=await c.api(y).get();if(m.status==="completed")return{success:!0,status:"completed",resourceId:m.resourceId,resourceLocation:m.resourceLocation};if(m.status==="failed"){let P=m.error?.details?m.error.details.map(h=>h.message||h.code).join(", "):m.error?.message||"Unknown error";throw new Error(`Copy operation failed: ${P}`)}await h_($d),p--}throw new Error("Copy operation timed out after 120 seconds.")}});var ia=Q(ae());var Rd=re({auth:O,name:"microsoft_sharepoint_find_file",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:A.siteId,driveId:A.driveId,findMethod:T.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:T.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:T.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:T.Dropdown({auth:O,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:a(async({auth:e,siteId:t,driveId:r})=>{if(!e||!t||!r)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let n=e,o=n.props?.cloud,i=ia.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(n.access_token),"getAccessToken")},baseUrl:S(o)}),s=[],u=await i.api(`/sites/${t}/drives/${r}/root/children?$filter=folder ne null&$select=id,name`).get();for(;u.value.length>0;){for(let c of u.value)s.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:s}},"options")})},async run(e){let{driveId:t,findMethod:r,filePath:n,searchQuery:o,searchFolderId:i}=e.propsValue,s=e.auth.props?.cloud,u=ia.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:S(s)});if(r==="path"){if(!n)throw new Error("File Path is required when finding by path.");let c=n.startsWith("/")?n.substring(1):n;try{return{success:!0,files:[await u.api(`/drives/${t}/root:/${encodeURI(c)}`).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(!o)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(o)}')`;try{return{success:!0,files:(await u.api(c).get()).value||[]}}catch(d){throw new Error(`Failed to search for file: ${d.message||"Unknown error"}`)}}}});var aa=Q(ae());var zd=re({auth:O,name:"microsoft_sharepoint_get_folder_contents",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:A.siteId,driveId:A.driveId,folderId:T.Dropdown({auth:O,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:a(async({auth:e,siteId:t,driveId:r})=>{if(!e||!t||!r)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let n=e,o=n.props?.cloud,i=aa.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(n.access_token),"getAccessToken")},baseUrl:S(o)}),s=[{label:"Root Folder",value:"root"}],u=await i.api(`/sites/${t}/drives/${r}/root/children?$filter=folder ne null&$select=id,name`).get();for(;u.value.length>0;){for(let c of u.value)s.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:s}},"options")}),includeCustomFields:T.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:T.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:T.ShortText({displayName:"Select Fields (Optional)",description:"A comma-separated list of properties to return. Example: `id,name,size,webUrl`",required:!1}),orderby:T.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:r,folderId:n,includeCustomFields:o,top:i,select:s,orderby:u}=e.propsValue,c=e.auth.props?.cloud,d=aa.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:S(c)}),f=n==="root"?`/sites/${t}/drive/root/children`:`/sites/${t}/drive/items/${n}/children`,v={};return o&&(v.$expand="listItem(expand=fields)"),i&&(v.$top=i),s&&(v.$select=s),u&&(v.$orderby=u),(await d.api(f).query(v).get()).value||[]}});var Dd=Q(ae());var kd=re({auth:O,name:"microsoft_sharepoint_get_site_information",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:A.siteId,select:T.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:r}=e.propsValue,n=e.auth.props?.cloud,i=Dd.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:S(n)}).api(`/sites/${t}`);return r&&i.select(r.split(",").map(s=>s.trim())),await i.get()}});var Cd=Q(ae());var Nd=re({auth:O,name:"microsoft_sharepoint_find_site",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:T.ShortText({displayName:"Site Name",description:"The name or keyword to search for.",required:!0})},async run(e){let{searchTerm:t}=e.propsValue,r=e.auth.props?.cloud,n=Cd.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:S(r)}),o=[],i=await n.api(`/sites?search=${encodeURIComponent(t)}&$select=displayName,id,name,webUrl`).get();for(;i.value.length>0;){for(let s of i.value)o.push({id:s.id,displayName:s.displayName,name:s.name,webUrl:s.webUrl});if(i["@odata.nextLink"])i=await n.api(i["@odata.nextLink"]).get();else break}return{sites:o}}});var yo=Q(ae());var Ud=re({auth:O,name:"microsoft_sharepoint_move_file",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:A.siteId,driveId:A.driveId,fileId:T.Dropdown({auth:O,displayName:"File to Move",description:"The file you want to move.",required:!0,refreshers:["siteId","driveId"],options:a(async({auth:e,siteId:t,driveId:r})=>{if(!e||!t||!r)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let n=e,o=n.props?.cloud,i=yo.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(n.access_token),"getAccessToken")},baseUrl:S(o)}),s=[],u=await i.api(`/drives/${r}/root/children?$select=id,name,file`).get();for(;u.value.length>0;){for(let c of u.value)c.file&&s.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:s}},"options")}),destinationFolderId:T.Dropdown({auth:O,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:a(async({auth:e,siteId:t,driveId:r})=>{if(!e||!t||!r)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let n=e,o=n.props?.cloud,i=yo.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(n.access_token),"getAccessToken")},baseUrl:S(o)}),s=[{label:"Root",value:"root"}],u=await i.api(`/sites/${t}/drives/${r}/root/children?$filter=folder ne null&$select=id,name`).get();for(;u.value.length>0;){for(let c of u.value)s.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:s}},"options")}),newName:T.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:r,destinationFolderId:n,newName:o}=e.propsValue,i=e.auth.props?.cloud,s=yo.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:S(i)});try{let c={parentReference:{id:n==="root"?(await s.api(`/drives/${t}/root`).get()).id:n}};return o&&(c.name=o),{success:!0,message:"File moved successfully",item:await s.api(`/drives/${t}/items/${r}`).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 Md=Q(ae());var Ld=re({auth:O,name:"microsoft_sharepoint_publish_page",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:A.siteId,pageId:A.pageId},async run(e){let{siteId:t,pageId:r}=e.propsValue,n=e.auth.props?.cloud,o=Md.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:S(n)});try{return await o.api(`/sites/${t}/pages/${r}/microsoft.graph.sitePage/publish`).post({}),{success:!0,message:"Page published successfully",pageId:r,siteId:t}}catch(i){throw i.statusCode===404?new Error(`Page not found. Please verify the page ID: ${r}`):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 Ar=Q(ae());var jd="activepieces_sharepoint_trigger",Fd=Se({auth:O,name:"new_file_in_folder",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:A.siteId,driveId:A.driveId,folderId:T.Dropdown({auth:O,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:a(async({auth:e,siteId:t,driveId:r})=>{if(!e||!t||!r)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let n=e,o=n.props?.cloud,i=Ar.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(n.access_token),"getAccessToken")},baseUrl:S(o)}),s=[{label:"Root Folder",value:"root"}],u=await i.api(`/drives/${r}/root/children?$filter=folder ne null&$select=id,name`).get();for(;u.value.length>0;){for(let c of u.value)s.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:s}},"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:r,folderId:n}=e.propsValue,o=e.auth.props?.cloud,i=Ar.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:S(o)});try{let s=n==="root"?(await i.api(`/drives/${r}/root`).get()).id:n,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/${s}/children`,expirationDateTime:u.toISOString(),clientState:jd});await e.store.put("subscriptionId",c.id)}catch(s){throw new Error(`Failed to create subscription: ${s.message||"Unknown error"}`)}},async onDisable(e){let t=await e.store.get("subscriptionId");if(t){let r=e.auth.props?.cloud,n=Ar.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:S(r)});try{await n.api(`/subscriptions/${t}`).delete()}catch(o){console.warn(`Error deleting subscription ${t}:`,o)}}await e.store.delete("subscriptionId")},async run(e){let t=e.payload.body?.value;if(!t||!Array.isArray(t))return[];let r=t.filter(s=>s.clientState===jd);if(r.length===0)return[];let n=e.auth.props?.cloud,o=Ar.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:S(n)}),i=[];for(let s of r)try{let u=await o.api(s.resource).get();u.file&&i.push(u)}catch(u){console.error("Error fetching file from notification:",u)}return i}});var wr=Q(ae());var Vd="activepieces_sharepoint_subfolder_trigger",Bd=Se({auth:O,name:"new_file_in_subfolders",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:A.siteId,driveId:A.driveId,parentFolderId:T.Dropdown({auth:O,displayName:"Parent Folder",description:"The parent folder whose subfolders you want to monitor.",required:!0,refreshers:["siteId","driveId"],options:a(async({auth:e,siteId:t,driveId:r})=>{if(!e||!t||!r)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let n=e,o=n.props?.cloud,i=wr.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(n.access_token),"getAccessToken")},baseUrl:S(o)}),s=[{label:"Root Folder",value:"root"}],u=await i.api(`/drives/${r}/root/children?$filter=folder ne null&$select=id,name`).get();for(;u.value.length>0;){for(let c of u.value)s.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:s}},"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:r,parentFolderId:n}=e.propsValue,o=e.auth.props?.cloud,i=wr.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:S(o)});try{let s=n==="root"?(await i.api(`/drives/${r}/root`).get()).id:n,c=(await i.api(`/drives/${r}/items/${s}/children?$filter=folder ne null&$select=id`).get()).value,d=new Date;d.setDate(d.getDate()+2);let f=c.map(p=>i.api("/subscriptions").post({changeType:"created",notificationUrl:e.webhookUrl,resource:`/sites/${t}/drive/items/${p.id}/children`,expirationDateTime:d.toISOString(),clientState:Vd})),y=(await Promise.allSettled(f)).filter(p=>p.status==="fulfilled").map(p=>p.value.id);await e.store.put("subscriptionIds",y)}catch(s){throw new Error(`Failed to create subscriptions: ${s.message||"Unknown error"}`)}},async onDisable(e){let t=await e.store.get("subscriptionIds");if(t&&t.length>0){let r=e.auth.props?.cloud,n=wr.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:S(r)}),o=t.map(i=>n.api(`/subscriptions/${i}`).delete().catch(s=>console.error(`Failed to delete subscription ${i}:`,s)));await Promise.allSettled(o)}await e.store.delete("subscriptionIds")},async run(e){let t=e.payload.body?.value;if(!t||!Array.isArray(t))return[];let r=t.filter(s=>s.clientState===Vd);if(r.length===0)return[];let n=e.auth.props?.cloud,o=wr.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:S(n)}),i=[];for(let s of r)try{let u=await o.api(s.resource).get();u.file&&i.push(u)}catch(u){console.error("Error fetching file from notification:",u)}return i}});var Hd=Q(ae()),Po=Q(Zt());var vo={strategy:0,items:a(async({auth:e,propsValue:t,lastFetchEpochMS:r})=>{let{siteId:n}=t,o=r===0,i=e.props?.cloud,s=Hd.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(e.access_token),"getAccessToken")},baseUrl:S(i)}),u=[],c=await s.api(`/sites/${n}/lists`).get(),d=!1;for(;!d&&c.value.length>0;){for(let f of c.value){if(o){u.push(f),u.length>=10&&(d=!0);continue}u.push(f)}if(d||!c["@odata.nextLink"])break;c=await s.api(c["@odata.nextLink"]).get()}return u.sort((f,v)=>{let y=(0,Po.default)(f.createdDateTime);return(0,Po.default)(v.createdDateTime).diff(y)}),u.map(f=>({epochMilliSeconds:(0,Po.default)(f.createdDateTime).valueOf(),data:f}))},"items")},Zd=Se({auth:O,name:"new_list",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:A.siteId},type:"POLLING",sampleData:void 0,async onEnable(e){await oe.onEnable(vo,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async onDisable(e){await oe.onDisable(vo,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async test(e){return await oe.test(vo,e)},async run(e){return await oe.poll(vo,e)}});var qd=Q(ae()),$r=Q(Zt());var xo={strategy:0,items:a(async({auth:e,propsValue:t,lastFetchEpochMS:r})=>{let{siteId:n,listId:o}=t,i=e.props?.cloud,s=qd.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(e.access_token),"getAccessToken")},baseUrl:S(i)}),u=[],c=r===0?`$filter=createdDateTime gt ${(0,$r.default)().toISOString()}`:"$top=10",d=await s.api(`/sites/${n}/lists/${o}/items?${c}`).expand("fields").get();if(r===0)for(let f of d.value)u.push(f);else for(;d.value.length>0;){for(let f of d.value)u.push(f);if(d["@odata.nextLink"])d=await s.api(d["@odata.nextLink"]).get();else break}return u.sort((f,v)=>{let y=(0,$r.default)(f.createdDateTime);return(0,$r.default)(v.createdDateTime).diff(y)}),u.map(f=>({epochMilliSeconds:(0,$r.default)(f.createdDateTime).valueOf(),data:f}))},"items")},Gd=Se({auth:O,name:"new_list_item",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:A.siteId,listId:A.listId},type:"POLLING",sampleData:void 0,async onEnable(e){await oe.onEnable(xo,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async onDisable(e){await oe.onDisable(xo,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async test(e){return await oe.test(xo,e)},async run(e){return await oe.poll(xo,e)}});var ca=Q(ae()),Or=Q(Zt());var bo={strategy:0,items:a(async({auth:e,propsValue:t,lastFetchEpochMS:r})=>{let{siteId:n,driveId:o,folderId:i}=t,s=r===0,u=e.props?.cloud,c=ca.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(e.access_token),"getAccessToken")},baseUrl:S(u)}),d=[],f=i!=="root"?`/sites/${n}/drive/items/${i}/children`:`/sites/${n}/drives/${o}/items/root/children`,v=await c.api(f).orderby("lastModifiedDateTime desc").get(),y=!1;for(;!y&&v.value.length>0;){for(let p of v.value){if(!p.file)continue;let m=(0,Or.default)(p.lastModifiedDateTime).valueOf();if(s){d.push(p),d.length>=10&&(y=!0);continue}if(m<r){y=!0;break}d.push(p)}if(y||!v["@odata.nextLink"])break;v=await c.api(v["@odata.nextLink"]).get()}return d.sort((p,m)=>{let P=(0,Or.default)(p.lastModifiedDateTime);return(0,Or.default)(m.lastModifiedDateTime).diff(P)}),d.map(p=>({epochMilliSeconds:(0,Or.default)(p.lastModifiedDateTime).valueOf(),data:p}))},"items")},Wd=Se({auth:O,name:"new_or_updated_file",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:A.siteId,driveId:A.driveId,folderId:T.Dropdown({auth:O,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:a(async({auth:e,siteId:t,driveId:r})=>{if(!e||!t||!r)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let n=e,o=n.props?.cloud,i=ca.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(n.access_token),"getAccessToken")},baseUrl:S(o)}),s=[{label:"Root Folder",value:"root"}],u=await i.api(`/sites/${t}/drives/${r}/items/root/children?$filter=folder ne null&$select=id,name`).get();for(;u.value.length>0;){for(let c of u.value)s.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:s}},"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 oe.onEnable(bo,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async onDisable(e){await oe.onDisable(bo,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async test(e){return await oe.test(bo,e)},async run(e){return await oe.poll(bo,e)}});var la=Q(ae()),Rr=Q(Zt());var To={strategy:0,items:a(async({auth:e,propsValue:t,lastFetchEpochMS:r})=>{let{siteId:n,driveId:o,parentFolderId:i}=t,s=r===0,u=e.props?.cloud,c=la.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(e.access_token),"getAccessToken")},baseUrl:S(u)}),d=[],f=i!=="root"?`/sites/${n}/drive/items/${i}/children`:`/sites/${n}/drives/${o}/items/root/children`,v=await c.api(f).orderby("lastModifiedDateTime desc").get(),y=!1;for(;!y&&v.value.length>0;){for(let p of v.value){if(!p.folder)continue;let m=(0,Rr.default)(p.lastModifiedDateTime).valueOf();if(s){d.push(p),d.length>=10&&(y=!0);continue}if(m<r){y=!0;break}d.push(p)}if(y||!v["@odata.nextLink"])break;v=await c.api(v["@odata.nextLink"]).get()}return d.sort((p,m)=>{let P=(0,Rr.default)(p.lastModifiedDateTime);return(0,Rr.default)(m.lastModifiedDateTime).diff(P)}),d.map(p=>({epochMilliSeconds:(0,Rr.default)(p.lastModifiedDateTime).valueOf(),data:p}))},"items")},Kd=Se({auth:O,name:"new_or_updated_folder",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:A.siteId,driveId:A.driveId,parentFolderId:T.Dropdown({auth:O,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:a(async({auth:e,siteId:t,driveId:r})=>{if(!e||!t||!r)return{disabled:!0,placeholder:"Select a site and drive first.",options:[]};let n=e,o=n.props?.cloud,i=la.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(n.access_token),"getAccessToken")},baseUrl:S(o)}),s=[{label:"Root Folder",value:"root"}],u=await i.api(`/sites/${t}/drives/${r}/items/root/children?$filter=folder ne null&$select=id,name`).get();for(;u.value.length>0;){for(let c of u.value)s.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:s}},"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 oe.onEnable(To,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async onDisable(e){await oe.onDisable(To,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async test(e){return await oe.test(To,e)},async run(e){return await oe.poll(To,e)}});var Xd=Q(ae()),zr=Q(Zt());var Eo={strategy:0,items:a(async({auth:e,propsValue:t,lastFetchEpochMS:r})=>{let{siteId:n}=t,o=r===0,i=e.props?.cloud,s=Xd.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(e.access_token),"getAccessToken")},baseUrl:S(i)}),u=[],c=await s.api(`/sites/${n}/lists`).get(),d=!1;for(;!d&&c.value.length>0;){for(let f of c.value){let v=(0,zr.default)(f.lastModifiedDateTime).valueOf();if(o){u.push(f),u.length>=10&&(d=!0);continue}if(v<r){d=!0;break}u.push(f)}if(d||!c["@odata.nextLink"])break;c=await s.api(c["@odata.nextLink"]).get()}return u.sort((f,v)=>{let y=(0,zr.default)(f.lastModifiedDateTime);return(0,zr.default)(v.lastModifiedDateTime).diff(y)}),u.map(f=>({epochMilliSeconds:(0,zr.default)(f.lastModifiedDateTime).valueOf(),data:f}))},"items")},Jd=Se({auth:O,name:"new_or_updated_list",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:A.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 oe.onEnable(Eo,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async onDisable(e){await oe.onDisable(Eo,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async test(e){return await oe.test(Eo,e)},async run(e){return await oe.poll(Eo,e)}});var Io=Q(ae());var Yd="activepieces_sharepoint_updated_list_item_trigger",Qd=Se({auth:O,name:"updated_list_item",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:A.siteId,listId:A.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:r}=e.propsValue,n=e.auth.props?.cloud,o=Io.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:S(n)});try{let i=new Date;i.setDate(i.getDate()+2);let s=await o.api("/subscriptions").post({changeType:"updated",notificationUrl:e.webhookUrl,resource:`/sites/${t}/lists/${r}/items`,expirationDateTime:i.toISOString(),clientState:Yd});await e.store.put("subscriptionId",s.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 r=e.auth.props?.cloud,n=Io.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:S(r)});try{await n.api(`/subscriptions/${t}`).delete()}catch(o){console.warn(`Error deleting subscription ${t}:`,o)}}await e.store.delete("subscriptionId")},async run(e){let t=e.payload.body?.value;if(!t||!Array.isArray(t))return[];let r=t.filter(s=>s.clientState===Yd);if(r.length===0)return[];let n=e.auth.props?.cloud,o=Io.Client.initWithMiddleware({authProvider:{getAccessToken:a(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:S(n)}),i=[];for(let s of r)try{let u=await o.api(s.resource).expand("fields").get();i.push(u)}catch(u){console.error("Error fetching list item from notification:",u)}return i}});var g_=Au({displayName:"Microsoft SharePoint",auth:O,minimumSupportedRelease:"0.78.0",logoUrl:"https://cdn.activepieces.com/pieces/microsoft-sharepoint.png",categories:["CONTENT_AND_FILES"],authors:["kishanprmr","pranith124","onyedikachi-david"],actions:[dd,md,gd,bd,vd,_d,Sd,Ld,wd,Od,Ud,Rd,zd,kd,Nd,Zl({auth:O,baseUrl:a(e=>{let t=e.props?.cloud;return S(t)+"/v1.0"},"baseUrl"),authMapping:a(async e=>({Authorization:`Bearer ${e.access_token}`}),"authMapping")})],triggers:[Fd,Bd,Wd,Kd,Gd,Qd,Zd,Jd]});0&&(module.exports={microsoftSharePoint});
54
+ - offline_access`,U=sm.OAuth2({description:K$,props:{cloud:QP},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 wt=ie(ye());var mb=s(e=>O.Dropdown({auth:U,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=wt.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(r.access_token),"getAccessToken")},baseUrl:k(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"),D={siteId:O.Dropdown({auth:U,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=wt.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(t.access_token),"getAccessToken")},baseUrl:k(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:mb({displayName:"Drive",refreshers:["siteId"]}),createDriveDropdown:mb,itemId:O.Dropdown({auth:U,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=wt.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:k(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:O.Dropdown({auth:U,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=wt.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(r.access_token),"getAccessToken")},baseUrl:k(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:O.Dropdown({auth:U,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=wt.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(n.access_token),"getAccessToken")},baseUrl:k(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:O.DynamicProperties({auth:U,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=wt.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(r.access_token),"getAccessToken")},baseUrl:k(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]=O.Checkbox(d):l.text?o[l.name]=O.LongText(d):l.dateTime?o[l.name]=O.DateTime(d):l.choice?l.choice.displayAs==="checkBoxes"?o[l.name]=O.StaticMultiSelectDropdown({...d,options:{disabled:!1,options:l.choice?.choices?l.choice.choices.map(g=>({label:g,value:g})):[]}}):o[l.name]=O.StaticDropdown({...d,options:{disabled:!1,options:l.choice?.choices?l.choice.choices.map(g=>({label:g,value:g})):[]}}):l.number?o[l.name]=O.Number(d):l.currency&&(o[l.name]=O.Number(d))}return o},"props")}),listItemId:O.Dropdown({auth:U,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=wt.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:k(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:O.Dropdown({auth:U,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=wt.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(n.access_token),"getAccessToken")},baseUrl:k(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 hb=ie(ye());var gb=ue({auth:U,name:"microsoft_sharepoint_create_folder",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:D.siteId,driveId:D.driveId,parentFolder:O.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:O.ShortText({displayName:"Folder Name",required:!0})},async run(e){let{driveId:t,parentFolder:n,folderName:o}=e.propsValue,r=e.auth.props?.cloud,i=hb.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:k(r)}),a=n+o;return await i.api(`/drives/${t}/root:${a}`).patch({folder:{}})}});var yb=ie(ye());var vb=ue({auth:U,name:"microsoft_sharepoint_create_list",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:D.siteId,displayName:O.ShortText({displayName:"List Name",required:!0}),description:O.ShortText({displayName:"List Description",required:!0})},async run(e){let{siteId:t,displayName:n,description:o}=e.propsValue,r=e.auth.props?.cloud,i=yb.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:k(r)}),a={displayName:n,description:o};return await i.api(`/sites/${t}/lists`).post(a)}});var _b=ie(ye());var Pb=ue({auth:U,name:"microsoft_sharepoint_create_list_item",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:D.siteId,listId:D.listId,listColumns:D.listColumns},async run(e){let{siteId:t,listId:n,listColumns:o}=e.propsValue,r=e.auth.props?.cloud,i=_b.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:k(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 xb=ie(ye());var bb=ue({auth:U,name:"microsoft_sharepoint_delete_list_item",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:D.siteId,listId:D.listId,listItemId:D.listItemId},async run(e){let{siteId:t,listId:n,listItemId:o}=e.propsValue,r=e.auth.props?.cloud;return await xb.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:k(r)}).api(`/sites/${t}/lists/${n}/items/${o}`).delete()}});var Eb=ie(ye());var Tb=ue({auth:U,name:"microsoft_sharepoint_search_list_item",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:D.siteId,listId:D.listId,searchValue:O.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=Eb.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:k(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 Ib=ie(ye());var Sb=ue({auth:U,name:"microsoft_sharepoint_update_list_item",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:D.siteId,listId:D.listId,listItemId:D.listItemId,listColumns:D.listColumns},async run(e){let{siteId:t,listId:n,listItemId:o,listColumns:r}=e.propsValue,i=e.auth.props?.cloud,a=Ib.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:k(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 Ab=require("node:stream"),wb=require("node:stream/consumers");var $b=ie(ye());var yz=250*1024*1024,vz=10*1024*1024,Ob=ue({auth:U,name:"microsoft_sharepoint_upload_file",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:D.siteId,driveId:D.driveId,file:O.File({displayName:"File",description:"The file or url you want to upload",required:!0,streaming:!0}),parentFolder:O.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:O.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=k(a),c=$b.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:u}),d=(await c.api(`/sites/${t}/drives/${n}/root:${r}`).get()).id??"test",g=`/sites/${t}/drives/${n}/items/${d}:/${i}`,{body:h,size:p}=zm.toStreamingBody(o);if(p==null){let _=await(0,wb.buffer)(h);p=_.length,h=Ab.Readable.from(_)}if(p>yz){let _=await c.api(`${g}:/createUploadSession`).post({item:{"@microsoft.graph.conflictBehavior":"replace",name:i}});return await _z({uploadUrl:_.uploadUrl,body:h,fileSize:p})}return(await yi.sendRequest({method:"PUT",url:`${u}/v1.0${g}:/content`,body:h,headers:{"Content-Type":"application/octet-stream","Content-Length":String(p)},authentication:{type:"BEARER_TOKEN",token:e.auth.access_token}})).body}});async function _z({uploadUrl:e,body:t,fileSize:n}){let o=0,r;for await(let i of zm.readChunks({readable:t,chunkSize:vz}))r=await yi.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(_z,"uploadInSession");var kc=ie(ye());var Rb=2e3,Pz=120;async function xz(e){return new Promise(t=>setTimeout(t,e))}s(xz,"delay");var zb=ue({auth:U,name:"microsoft_sharepoint_copy_item",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:D.siteId,driveId:D.driveId,itemId:D.itemId,destination_site_id:D.siteId,destination_drive_id:D.createDriveDropdown({displayName:"Destination Drive",refreshers:["destination_site_id"]}),destination_folder_id:D.destinationFolderId,new_name:O.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:O.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=kc.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:k(c)}),d={parentReference:{driveId:r}};i&&(d.parentReference.id=i),a&&(d.name=a);let g;try{g=await l.api(`/drives/${n}/items/${o}/copy`).responseType(kc.ResponseType.RAW).query({"@microsoft.graph.conflictBehavior":u}).post(d)}catch(m){throw m.statusCode===400?new Error(`Invalid request: ${m.message||"Check your input parameters"}`):m.statusCode===403?new Error("Insufficient permissions to copy this item. Requires Files.ReadWrite or higher."):m.statusCode===404?new Error("Source item not found. Please verify the site, drive, and item IDs."):new Error(`Failed to initiate copy operation: ${m.message||"Unknown error"}`)}let h=g.headers.get("Location");if(!h)throw new Error("Could not get monitor URL from copy operation response.");let p=Pz*1e3/Rb;for(;p>0;){let m=await l.api(h).get();if(m.status==="completed")return{success:!0,status:"completed",resourceId:m.resourceId,resourceLocation:m.resourceLocation};if(m.status==="failed"){let _=m.error?.details?m.error.details.map(P=>P.message||P.code).join(", "):m.error?.message||"Unknown error";throw new Error(`Copy operation failed: ${_}`)}await xz(Rb),p--}throw new Error("Copy operation timed out after 120 seconds.")}});var wi=ie(ye());var kb=2e3,bz=120;async function Ez(e){return new Promise(t=>setTimeout(t,e))}s(Ez,"delay");var Db=ue({auth:U,name:"microsoft_sharepoint_copy_item_within_site",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:D.siteId,driveId:D.driveId,itemId:D.itemId,destinationFolderId:O.Dropdown({auth:U,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=wi.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:k(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:O.ShortText({displayName:"New Name (Optional)",description:"A new name for the copied item. If not provided, the original name is used.",required:!1}),conflictBehavior:O.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=wi.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:k(u)}),d={parentReference:{id:r==="root"?(await c.api(`/drives/${n}/root`).get()).id:r}};i&&(d.name=i);let g;try{g=await c.api(`/drives/${n}/items/${o}/copy`).responseType(wi.ResponseType.RAW).query({"@microsoft.graph.conflictBehavior":a}).post(d)}catch(m){throw m.statusCode===400?new Error(`Invalid request: ${m.message||"Check your input parameters"}`):m.statusCode===403?new Error("Insufficient permissions to copy this item. Requires Files.ReadWrite or higher."):m.statusCode===404?new Error("Source item not found. Please verify the site, drive, and item IDs."):new Error(`Failed to initiate copy operation: ${m.message||"Unknown error"}`)}let h=g.headers.get("Location");if(!h)throw new Error("Could not get monitor URL from copy operation response.");let p=bz*1e3/kb;for(;p>0;){let m=await c.api(h).get();if(m.status==="completed")return{success:!0,status:"completed",resourceId:m.resourceId,resourceLocation:m.resourceLocation};if(m.status==="failed"){let _=m.error?.details?m.error.details.map(P=>P.message||P.code).join(", "):m.error?.message||"Unknown error";throw new Error(`Copy operation failed: ${_}`)}await Ez(kb),p--}throw new Error("Copy operation timed out after 120 seconds.")}});var nh=ie(ye());var Cb=ue({auth:U,name:"microsoft_sharepoint_find_file",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:D.siteId,driveId:D.driveId,findMethod:O.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:O.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:O.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:O.Dropdown({auth:U,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=nh.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:k(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=nh.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:k(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 oh=ie(ye());var Nb=ue({auth:U,name:"microsoft_sharepoint_get_folder_contents",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:D.siteId,driveId:D.driveId,folderId:O.Dropdown({auth:U,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=oh.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:k(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:O.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:O.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:O.ShortText({displayName:"Select Fields (Optional)",description:"A comma-separated list of properties to return. Example: `id,name,size,webUrl`",required:!1}),orderby:O.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=oh.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:k(c)}),d=o==="root"?`/sites/${t}/drive/root/children`:`/sites/${t}/drive/items/${o}/children`,g={};return r&&(g.$expand="listItem(expand=fields)"),i&&(g.$top=i),a&&(g.$select=a),u&&(g.$orderby=u),(await l.api(d).query(g).get()).value||[]}});var Ub=ie(ye());var Mb=ue({auth:U,name:"microsoft_sharepoint_get_site_information",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:D.siteId,select:O.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=Ub.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:k(o)}).api(`/sites/${t}`);return n&&i.select(n.split(",").map(a=>a.trim())),await i.get()}});var Lb=ie(ye());var jb=ue({auth:U,name:"microsoft_sharepoint_find_site",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:O.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=Lb.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:k(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 Dc=ie(ye());var Fb=ue({auth:U,name:"microsoft_sharepoint_move_file",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:D.siteId,driveId:D.driveId,fileId:O.Dropdown({auth:U,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=Dc.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:k(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:O.Dropdown({auth:U,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=Dc.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:k(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:O.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=Dc.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:k(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 Bb=ie(ye());var Zb=ue({auth:U,name:"microsoft_sharepoint_publish_page",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:D.siteId,pageId:D.pageId},async run(e){let{siteId:t,pageId:n}=e.propsValue,o=e.auth.props?.cloud,r=Bb.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:k(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 $i=ie(ye());var Vb="activepieces_sharepoint_trigger",Hb=je({auth:U,name:"new_file_in_folder",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:D.siteId,driveId:D.driveId,folderId:O.Dropdown({auth:U,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=$i.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:k(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=$i.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:k(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:Vb});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=$i.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:k(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===Vb);if(n.length===0)return[];let o=e.auth.props?.cloud,r=$i.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:k(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 Oi=ie(ye());var qb="activepieces_sharepoint_subfolder_trigger",Gb=je({auth:U,name:"new_file_in_subfolders",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:D.siteId,driveId:D.driveId,parentFolderId:O.Dropdown({auth:U,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=Oi.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:k(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=Oi.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:k(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:qb})),h=(await Promise.allSettled(d)).filter(p=>p.status==="fulfilled").map(p=>p.value.id);await e.store.put("subscriptionIds",h)}catch(a){throw new Error(`Failed to create subscriptions: ${a.message||"Unknown error"}`)}},async onDisable(e){let t=await e.store.get("subscriptionIds");if(t&&t.length>0){let n=e.auth.props?.cloud,o=Oi.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:k(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===qb);if(n.length===0)return[];let o=e.auth.props?.cloud,r=Oi.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:k(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 Wb=ie(ye()),Nc=ie(xn());var Cc={strategy:0,items:s(async({auth:e,propsValue:t,lastFetchEpochMS:n})=>{let{siteId:o}=t,r=n===0,i=e.props?.cloud,a=Wb.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.access_token),"getAccessToken")},baseUrl:k(i)}),u=[],c=await a.api(`/sites/${o}/lists`).get(),l=!1;for(;!l&&c.value.length>0;){for(let d of c.value){if(r){u.push(d),u.length>=10&&(l=!0);continue}u.push(d)}if(l||!c["@odata.nextLink"])break;c=await a.api(c["@odata.nextLink"]).get()}return u.sort((d,g)=>{let h=(0,Nc.default)(d.createdDateTime);return(0,Nc.default)(g.createdDateTime).diff(h)}),u.map(d=>({epochMilliSeconds:(0,Nc.default)(d.createdDateTime).valueOf(),data:d}))},"items")},Jb=je({auth:U,name:"new_list",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:D.siteId},type:"POLLING",sampleData:void 0,async onEnable(e){await he.onEnable(Cc,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async onDisable(e){await he.onDisable(Cc,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async test(e){return await he.test(Cc,e)},async run(e){return await he.poll(Cc,e)}});var Xb=ie(ye()),Ri=ie(xn());var Mc={strategy:0,items:s(async({auth:e,propsValue:t,lastFetchEpochMS:n})=>{let{siteId:o,listId:r}=t,i=e.props?.cloud,a=Xb.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.access_token),"getAccessToken")},baseUrl:k(i)}),u=[],c=n===0?`$filter=createdDateTime gt ${(0,Ri.default)().toISOString()}`:"$top=10",l=await a.api(`/sites/${o}/lists/${r}/items?${c}`).expand("fields").get();if(n===0)for(let d of l.value)u.push(d);else for(;l.value.length>0;){for(let d of l.value)u.push(d);if(l["@odata.nextLink"])l=await a.api(l["@odata.nextLink"]).get();else break}return u.sort((d,g)=>{let h=(0,Ri.default)(d.createdDateTime);return(0,Ri.default)(g.createdDateTime).diff(h)}),u.map(d=>({epochMilliSeconds:(0,Ri.default)(d.createdDateTime).valueOf(),data:d}))},"items")},Kb=je({auth:U,name:"new_list_item",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:D.siteId,listId:D.listId},type:"POLLING",sampleData:void 0,async onEnable(e){await he.onEnable(Mc,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async onDisable(e){await he.onDisable(Mc,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async test(e){return await he.test(Mc,e)},async run(e){return await he.poll(Mc,e)}});var sh=ie(ye()),zi=ie(xn());var Lc={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=sh.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.access_token),"getAccessToken")},baseUrl:k(u)}),l=[],d=i!=="root"?`/sites/${o}/drive/items/${i}/children`:`/sites/${o}/drives/${r}/items/root/children`,g=await c.api(d).orderby("lastModifiedDateTime desc").get(),h=!1;for(;!h&&g.value.length>0;){for(let p of g.value){if(!p.file)continue;let m=(0,zi.default)(p.lastModifiedDateTime).valueOf();if(a){l.push(p),l.length>=10&&(h=!0);continue}if(m<n){h=!0;break}l.push(p)}if(h||!g["@odata.nextLink"])break;g=await c.api(g["@odata.nextLink"]).get()}return l.sort((p,m)=>{let _=(0,zi.default)(p.lastModifiedDateTime);return(0,zi.default)(m.lastModifiedDateTime).diff(_)}),l.map(p=>({epochMilliSeconds:(0,zi.default)(p.lastModifiedDateTime).valueOf(),data:p}))},"items")},Yb=je({auth:U,name:"new_or_updated_file",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:D.siteId,driveId:D.driveId,folderId:O.Dropdown({auth:U,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=sh.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:k(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(Lc,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async onDisable(e){await he.onDisable(Lc,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async test(e){return await he.test(Lc,e)},async run(e){return await he.poll(Lc,e)}});var uh=ie(ye()),ki=ie(xn());var jc={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=uh.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.access_token),"getAccessToken")},baseUrl:k(u)}),l=[],d=i!=="root"?`/sites/${o}/drive/items/${i}/children`:`/sites/${o}/drives/${r}/items/root/children`,g=await c.api(d).orderby("lastModifiedDateTime desc").get(),h=!1;for(;!h&&g.value.length>0;){for(let p of g.value){if(!p.folder)continue;let m=(0,ki.default)(p.lastModifiedDateTime).valueOf();if(a){l.push(p),l.length>=10&&(h=!0);continue}if(m<n){h=!0;break}l.push(p)}if(h||!g["@odata.nextLink"])break;g=await c.api(g["@odata.nextLink"]).get()}return l.sort((p,m)=>{let _=(0,ki.default)(p.lastModifiedDateTime);return(0,ki.default)(m.lastModifiedDateTime).diff(_)}),l.map(p=>({epochMilliSeconds:(0,ki.default)(p.lastModifiedDateTime).valueOf(),data:p}))},"items")},Qb=je({auth:U,name:"new_or_updated_folder",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:D.siteId,driveId:D.driveId,parentFolderId:O.Dropdown({auth:U,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=uh.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(o.access_token),"getAccessToken")},baseUrl:k(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(jc,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async onDisable(e){await he.onDisable(jc,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async test(e){return await he.test(jc,e)},async run(e){return await he.poll(jc,e)}});var eE=ie(ye()),Di=ie(xn());var Fc={strategy:0,items:s(async({auth:e,propsValue:t,lastFetchEpochMS:n})=>{let{siteId:o}=t,r=n===0,i=e.props?.cloud,a=eE.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.access_token),"getAccessToken")},baseUrl:k(i)}),u=[],c=await a.api(`/sites/${o}/lists`).get(),l=!1;for(;!l&&c.value.length>0;){for(let d of c.value){let g=(0,Di.default)(d.lastModifiedDateTime).valueOf();if(r){u.push(d),u.length>=10&&(l=!0);continue}if(g<n){l=!0;break}u.push(d)}if(l||!c["@odata.nextLink"])break;c=await a.api(c["@odata.nextLink"]).get()}return u.sort((d,g)=>{let h=(0,Di.default)(d.lastModifiedDateTime);return(0,Di.default)(g.lastModifiedDateTime).diff(h)}),u.map(d=>({epochMilliSeconds:(0,Di.default)(d.lastModifiedDateTime).valueOf(),data:d}))},"items")},tE=je({auth:U,name:"new_or_updated_list",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:D.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(Fc,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async onDisable(e){await he.onDisable(Fc,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async test(e){return await he.test(Fc,e)},async run(e){return await he.poll(Fc,e)}});var Bc=ie(ye());var rE="activepieces_sharepoint_updated_list_item_trigger",nE=je({auth:U,name:"updated_list_item",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:D.siteId,listId:D.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=Bc.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:k(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:rE});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=Bc.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:k(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===rE);if(n.length===0)return[];let o=e.auth.props?.cloud,r=Bc.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.auth.access_token),"getAccessToken")},baseUrl:k(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 Tz=Rv({displayName:"Microsoft SharePoint",auth:U,minimumSupportedRelease:"0.78.0",logoUrl:"https://cdn.activepieces.com/pieces/microsoft-sharepoint.png",categories:["CONTENT_AND_FILES"],authors:["kishanprmr","pranith124","onyedikachi-david"],actions:[gb,vb,Pb,Sb,bb,Tb,Ob,Zb,zb,Db,Fb,Cb,Nb,Mb,jb,JP({auth:U,baseUrl:s(e=>{let t=e.props?.cloud;return k(t)+"/v1.0"},"baseUrl"),authMapping:s(async e=>({Authorization:`Bearer ${e.access_token}`}),"authMapping")})],triggers:[Hb,Gb,Yb,Qb,Kb,nE,Jb,tE]});0&&(module.exports={microsoftSharePoint});
17
55
  /*! Bundled license information:
18
56
 
19
57
  mime-types/index.js: