@activepieces/piece-google-contacts 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/index.js CHANGED
@@ -1,17 +1,17 @@
1
- "use strict";var QU=Object.create;var hs=Object.defineProperty;var eM=Object.getOwnPropertyDescriptor;var tM=Object.getOwnPropertyNames;var rM=Object.getPrototypeOf,nM=Object.prototype.hasOwnProperty;var a=(t,e)=>hs(t,"name",{value:e,configurable:!0});var Ct=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(o){throw r=[o],o}};var z=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},Xt=(t,e)=>{for(var r in e)hs(t,r,{get:e[r],enumerable:!0})},jx=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of tM(e))!nM.call(t,n)&&n!==r&&hs(t,n,{get:()=>e[n],enumerable:!(o=eM(e,n))||o.enumerable});return t};var Tt=(t,e,r)=>(r=t!=null?QU(rM(t)):{},jx(e||!t||!t.__esModule?hs(r,"default",{value:t,enumerable:!0}):r,t)),oM=t=>jx(hs({},"__esModule",{value:!0}),t);var Mw=z((Uw,ff)=>{(function(t){"use strict";let e="(0?\\d+|0x[a-f0-9]+)",r={fourOctet:new RegExp(`^${e}\\.${e}\\.${e}\\.${e}$`,"i"),threeOctet:new RegExp(`^${e}\\.${e}\\.${e}$`,"i"),twoOctet:new RegExp(`^${e}\\.${e}$`,"i"),longValue:new RegExp(`^${e}$`,"i")},o=new RegExp("^0[0-7]+$","i"),n=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(`^(?:::)(${e}\\.${e}\\.${e}\\.${e}(${i})?)$`,"i"),transitional:new RegExp(`^((?:${s})|(?:::)(?:${s})?)${e}\\.${e}\\.${e}\\.${e}(${i})?$`,"i")};function l(h,_){if(h.indexOf("::")!==h.lastIndexOf("::"))return null;let E=0,S=-1,T=(h.match(u.zoneIndex)||[])[0],k,L;for(T&&(T=T.substring(1),h=h.replace(/%.+$/,""));(S=h.indexOf(":",S+1))>=0;)E++;if(h.substr(0,2)==="::"&&E--,h.substr(-2,2)==="::"&&E--,E>_)return null;for(L=_-E,k=":";L--;)k+="0:";return h=h.replace("::",k),h[0]===":"&&(h=h.slice(1)),h[h.length-1]===":"&&(h=h.slice(0,-1)),_=(function(){let Y=h.split(":"),H=[];for(let X=0;X<Y.length;X++)H.push(parseInt(Y[X],16));return H})(),{parts:_,zoneId:T}}a(l,"expandIPv6");function p(h,_,E,S){if(h.length!==_.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let T=0,k;for(;S>0;){if(k=E-S,k<0&&(k=0),h[T]>>k!==_[T]>>k)return!1;S-=E,T+=1}return!0}a(p,"matchCIDR");function f(h){if(n.test(h))return parseInt(h,16);if(h[0]==="0"&&!isNaN(parseInt(h[1],10))){if(o.test(h))return parseInt(h,8);throw new Error(`ipaddr: cannot parse ${h} as octal`)}return parseInt(h,10)}a(f,"parseIntAuto");function y(h,_){for(;h.length<_;)h=`0${h}`;return h}a(y,"padPart");let m={};m.IPv4=(function(){function h(_){if(_.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let E,S;for(E=0;E<_.length;E++)if(S=_[E],!(0<=S&&S<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=_}return a(h,"IPv4"),h.prototype.SpecialRanges={unspecified:[[new h([0,0,0,0]),8]],broadcast:[[new h([255,255,255,255]),32]],multicast:[[new h([224,0,0,0]),4]],linkLocal:[[new h([169,254,0,0]),16]],loopback:[[new h([127,0,0,0]),8]],carrierGradeNat:[[new h([100,64,0,0]),10]],private:[[new h([10,0,0,0]),8],[new h([172,16,0,0]),12],[new h([192,168,0,0]),16]],reserved:[[new h([192,0,0,0]),24],[new h([192,0,2,0]),24],[new h([192,88,99,0]),24],[new h([198,18,0,0]),15],[new h([198,51,100,0]),24],[new h([203,0,113,0]),24],[new h([240,0,0,0]),4]],as112:[[new h([192,175,48,0]),24],[new h([192,31,196,0]),24]],amt:[[new h([192,52,193,0]),24]]},h.prototype.kind=function(){return"ipv4"},h.prototype.match=function(_,E){let S;if(E===void 0&&(S=_,_=S[0],E=S[1]),_.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return p(this.octets,_.octets,8,E)},h.prototype.prefixLengthFromSubnetMask=function(){let _=0,E=!1,S={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},T,k,L;for(T=3;T>=0;T-=1)if(k=this.octets[T],k in S){if(L=S[k],E&&L!==0)return null;L!==8&&(E=!0),_+=L}else return null;return 32-_},h.prototype.range=function(){return m.subnetMatch(this,this.SpecialRanges)},h.prototype.toByteArray=function(){return this.octets.slice(0)},h.prototype.toIPv4MappedAddress=function(){return m.IPv6.parse(`::ffff:${this.toString()}`)},h.prototype.toNormalizedString=function(){return this.toString()},h.prototype.toString=function(){return this.octets.join(".")},h})(),m.IPv4.broadcastAddressFromCIDR=function(h){try{let _=this.parseCIDR(h),E=_[0].toByteArray(),S=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),T=[],k=0;for(;k<4;)T.push(parseInt(E[k],10)|parseInt(S[k],10)^255),k++;return new this(T)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},m.IPv4.isIPv4=function(h){return this.parser(h)!==null},m.IPv4.isValid=function(h){try{return new this(this.parser(h)),!0}catch{return!1}},m.IPv4.isValidCIDR=function(h){try{return this.parseCIDR(h),!0}catch{return!1}},m.IPv4.isValidFourPartDecimal=function(h){return!!(m.IPv4.isValid(h)&&h.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},m.IPv4.isValidCIDRFourPartDecimal=function(h){let _=h.match(/^(.+)\/(\d+)$/);return!m.IPv4.isValidCIDR(h)||!_?!1:m.IPv4.isValidFourPartDecimal(_[1])},m.IPv4.networkAddressFromCIDR=function(h){let _,E,S,T,k;try{for(_=this.parseCIDR(h),S=_[0].toByteArray(),k=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),T=[],E=0;E<4;)T.push(parseInt(S[E],10)&parseInt(k[E],10)),E++;return new this(T)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},m.IPv4.parse=function(h){let _=this.parser(h);if(_===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(_)},m.IPv4.parseCIDR=function(h){let _;if(_=h.match(/^(.+)\/(\d+)$/)){let E=parseInt(_[2]);if(E>=0&&E<=32){let S=[this.parse(_[1]),E];return Object.defineProperty(S,"toString",{value:a(function(){return this.join("/")},"value")}),S}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},m.IPv4.parser=function(h){let _,E,S;if(_=h.match(r.fourOctet))return(function(){let T=_.slice(1,6),k=[];for(let L=0;L<T.length;L++)E=T[L],k.push(f(E));return k})();if(_=h.match(r.longValue)){if(S=f(_[1]),S>4294967295||S<0)throw new Error("ipaddr: address outside defined range");return(function(){let T=[],k;for(k=0;k<=24;k+=8)T.push(S>>k&255);return T})().reverse()}else return(_=h.match(r.twoOctet))?(function(){let T=_.slice(1,4),k=[];if(S=f(T[1]),S>16777215||S<0)throw new Error("ipaddr: address outside defined range");return k.push(f(T[0])),k.push(S>>16&255),k.push(S>>8&255),k.push(S&255),k})():(_=h.match(r.threeOctet))?(function(){let T=_.slice(1,5),k=[];if(S=f(T[2]),S>65535||S<0)throw new Error("ipaddr: address outside defined range");return k.push(f(T[0])),k.push(f(T[1])),k.push(S>>8&255),k.push(S&255),k})():null},m.IPv4.subnetMaskFromPrefixLength=function(h){if(h=parseInt(h),h<0||h>32)throw new Error("ipaddr: invalid IPv4 prefix length");let _=[0,0,0,0],E=0,S=Math.floor(h/8);for(;E<S;)_[E]=255,E++;return S<4&&(_[S]=Math.pow(2,h%8)-1<<8-h%8),new this(_)},m.IPv6=(function(){function h(_,E){let S,T;if(_.length===16)for(this.parts=[],S=0;S<=14;S+=2)this.parts.push(_[S]<<8|_[S+1]);else if(_.length===8)this.parts=_;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(S=0;S<this.parts.length;S++)if(T=this.parts[S],!(0<=T&&T<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");E&&(this.zoneId=E)}return a(h,"IPv6"),h.prototype.SpecialRanges={unspecified:[new h([0,0,0,0,0,0,0,0]),128],linkLocal:[new h([65152,0,0,0,0,0,0,0]),10],multicast:[new h([65280,0,0,0,0,0,0,0]),8],loopback:[new h([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new h([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new h([0,0,0,0,0,65535,0,0]),96],discard:[new h([256,0,0,0,0,0,0,0]),64],rfc6145:[new h([0,0,0,0,65535,0,0,0]),96],rfc6052:[new h([100,65435,0,0,0,0,0,0]),96],"6to4":[new h([8194,0,0,0,0,0,0,0]),16],teredo:[new h([8193,0,0,0,0,0,0,0]),32],benchmarking:[new h([8193,2,0,0,0,0,0,0]),48],amt:[new h([8193,3,0,0,0,0,0,0]),32],as112v6:[[new h([8193,4,274,0,0,0,0,0]),48],[new h([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new h([8193,16,0,0,0,0,0,0]),28],orchid2:[new h([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new h([8193,48,0,0,0,0,0,0]),28],reserved:[[new h([8193,0,0,0,0,0,0,0]),23],[new h([8193,3512,0,0,0,0,0,0]),32]]},h.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},h.prototype.kind=function(){return"ipv6"},h.prototype.match=function(_,E){let S;if(E===void 0&&(S=_,_=S[0],E=S[1]),_.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return p(this.parts,_.parts,16,E)},h.prototype.prefixLengthFromSubnetMask=function(){let _=0,E=!1,S={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},T,k;for(let L=7;L>=0;L-=1)if(T=this.parts[L],T in S){if(k=S[T],E&&k!==0)return null;k!==16&&(E=!0),_+=k}else return null;return 128-_},h.prototype.range=function(){return m.subnetMatch(this,this.SpecialRanges)},h.prototype.toByteArray=function(){let _,E=[],S=this.parts;for(let T=0;T<S.length;T++)_=S[T],E.push(_>>8),E.push(_&255);return E},h.prototype.toFixedLengthString=function(){let _=(function(){let S=[];for(let T=0;T<this.parts.length;T++)S.push(y(this.parts[T].toString(16),4));return S}).call(this).join(":"),E="";return this.zoneId&&(E=`%${this.zoneId}`),_+E},h.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let _=this.parts.slice(-2),E=_[0],S=_[1];return new m.IPv4([E>>8,E&255,S>>8,S&255])},h.prototype.toNormalizedString=function(){let _=(function(){let S=[];for(let T=0;T<this.parts.length;T++)S.push(this.parts[T].toString(16));return S}).call(this).join(":"),E="";return this.zoneId&&(E=`%${this.zoneId}`),_+E},h.prototype.toRFC5952String=function(){let _=/((^|:)(0(:|$)){2,})/g,E=this.toNormalizedString(),S=0,T=-1,k;for(;k=_.exec(E);)k[0].length>T&&(S=k.index,T=k[0].length);return T<0?E:`${E.substring(0,S)}::${E.substring(S+T)}`},h.prototype.toString=function(){return this.toRFC5952String()},h})(),m.IPv6.broadcastAddressFromCIDR=function(h){try{let _=this.parseCIDR(h),E=_[0].toByteArray(),S=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),T=[],k=0;for(;k<16;)T.push(parseInt(E[k],10)|parseInt(S[k],10)^255),k++;return new this(T)}catch(_){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${_})`)}},m.IPv6.isIPv6=function(h){return this.parser(h)!==null},m.IPv6.isValid=function(h){if(typeof h=="string"&&h.indexOf(":")===-1)return!1;try{let _=this.parser(h);return new this(_.parts,_.zoneId),!0}catch{return!1}},m.IPv6.isValidCIDR=function(h){if(typeof h=="string"&&h.indexOf(":")===-1)return!1;try{return this.parseCIDR(h),!0}catch{return!1}},m.IPv6.networkAddressFromCIDR=function(h){let _,E,S,T,k;try{for(_=this.parseCIDR(h),S=_[0].toByteArray(),k=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),T=[],E=0;E<16;)T.push(parseInt(S[E],10)&parseInt(k[E],10)),E++;return new this(T)}catch(L){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${L})`)}},m.IPv6.parse=function(h){let _=this.parser(h);if(_.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(_.parts,_.zoneId)},m.IPv6.parseCIDR=function(h){let _,E,S;if((E=h.match(/^(.+)\/(\d+)$/))&&(_=parseInt(E[2]),_>=0&&_<=128))return S=[this.parse(E[1]),_],Object.defineProperty(S,"toString",{value:a(function(){return this.join("/")},"value")}),S;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},m.IPv6.parser=function(h){let _,E,S,T,k,L;if(S=h.match(u.deprecatedTransitional))return this.parser(`::ffff:${S[1]}`);if(u.native.test(h))return l(h,8);if((S=h.match(u.transitional))&&(L=S[6]||"",_=S[1],S[1].endsWith("::")||(_=_.slice(0,-1)),_=l(_+L,6),_.parts)){for(k=[parseInt(S[2]),parseInt(S[3]),parseInt(S[4]),parseInt(S[5])],E=0;E<k.length;E++)if(T=k[E],!(0<=T&&T<=255))return null;return _.parts.push(k[0]<<8|k[1]),_.parts.push(k[2]<<8|k[3]),{parts:_.parts,zoneId:_.zoneId}}return null},m.IPv6.subnetMaskFromPrefixLength=function(h){if(h=parseInt(h),h<0||h>128)throw new Error("ipaddr: invalid IPv6 prefix length");let _=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],E=0,S=Math.floor(h/8);for(;E<S;)_[E]=255,E++;return S<16&&(_[S]=Math.pow(2,h%8)-1<<8-h%8),new this(_)},m.fromByteArray=function(h){let _=h.length;if(_===4)return new m.IPv4(h);if(_===16)return new m.IPv6(h);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},m.isValid=function(h){return m.IPv6.isValid(h)||m.IPv4.isValid(h)},m.isValidCIDR=function(h){return m.IPv6.isValidCIDR(h)||m.IPv4.isValidCIDR(h)},m.parse=function(h){if(m.IPv6.isValid(h))return m.IPv6.parse(h);if(m.IPv4.isValid(h))return m.IPv4.parse(h);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},m.parseCIDR=function(h){try{return m.IPv6.parseCIDR(h)}catch{try{return m.IPv4.parseCIDR(h)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},m.process=function(h){let _=this.parse(h);return _.kind()==="ipv6"&&_.isIPv4MappedAddress()?_.toIPv4Address():_},m.subnetMatch=function(h,_,E){let S,T,k,L;E==null&&(E="unicast");for(T in _)if(Object.prototype.hasOwnProperty.call(_,T)){for(k=_[T],k[0]&&!(k[0]instanceof Array)&&(k=[k]),S=0;S<k.length;S++)if(L=k[S],h.kind()===L[0].kind()&&h.match.apply(h,L))return T}return E},typeof ff<"u"&&ff.exports?ff.exports=m:t.ipaddr=m})(Uw)});var HI=z((nne,VI)=>{var GI=require("stream").Stream,YF=require("util");VI.exports=Kr;function Kr(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}a(Kr,"DelayedStream");YF.inherits(Kr,GI);Kr.create=function(t,e){var r=new this;e=e||{};for(var o in e)r[o]=e[o];r.source=t;var n=t.emit;return t.emit=function(){return r._handleEmit(arguments),n.apply(t,arguments)},t.on("error",function(){}),r.pauseStream&&t.pause(),r};Object.defineProperty(Kr.prototype,"readable",{configurable:!0,enumerable:!0,get:a(function(){return this.source.readable},"get")});Kr.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};Kr.prototype.resume=function(){this._released||this.release(),this.source.resume()};Kr.prototype.pause=function(){this.source.pause()};Kr.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(t){this.emit.apply(this,t)}.bind(this)),this._bufferedEvents=[]};Kr.prototype.pipe=function(){var t=GI.prototype.pipe.apply(this,arguments);return this.resume(),t};Kr.prototype._handleEmit=function(t){if(this._released){this.emit.apply(this,t);return}t[0]==="data"&&(this.dataSize+=t[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(t)};Kr.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(t))}}});var JI=z((ine,KI)=>{var QF=require("util"),WI=require("stream").Stream,ZI=HI();KI.exports=yt;function yt(){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(yt,"CombinedStream");QF.inherits(yt,WI);yt.create=function(t){var e=new this;t=t||{};for(var r in t)e[r]=t[r];return e};yt.isStreamLike=function(t){return typeof t!="function"&&typeof t!="string"&&typeof t!="boolean"&&typeof t!="number"&&!Buffer.isBuffer(t)};yt.prototype.append=function(t){var e=yt.isStreamLike(t);if(e){if(!(t instanceof ZI)){var r=ZI.create(t,{maxDataSize:1/0,pauseStream:this.pauseStreams});t.on("data",this._checkDataSize.bind(this)),t=r}this._handleErrors(t),this.pauseStreams&&t.pause()}return this._streams.push(t),this};yt.prototype.pipe=function(t,e){return WI.prototype.pipe.call(this,t,e),this.resume(),t};yt.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}};yt.prototype._realGetNext=function(){var t=this._streams.shift();if(typeof t>"u"){this.end();return}if(typeof t!="function"){this._pipeNext(t);return}var e=t;e(function(r){var o=yt.isStreamLike(r);o&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))};yt.prototype._pipeNext=function(t){this._currentStream=t;var e=yt.isStreamLike(t);if(e){t.on("end",this._getNext.bind(this)),t.pipe(this,{end:!1});return}var r=t;this.write(r),this._getNext()};yt.prototype._handleErrors=function(t){var e=this;t.on("error",function(r){e._emitError(r)})};yt.prototype.write=function(t){this.emit("data",t)};yt.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};yt.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")};yt.prototype.end=function(){this._reset(),this.emit("end")};yt.prototype.destroy=function(){this._reset(),this.emit("close")};yt.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};yt.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(t))}};yt.prototype._updateDataSize=function(){this.dataSize=0;var t=this;this._streams.forEach(function(e){e.dataSize&&(t.dataSize+=e.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};yt.prototype._emitError=function(t){this._reset(),this.emit("error",t)}});var YI=z((sne,XI)=>{"use strict";XI.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 tC=z(rr=>{"use strict";var vf=YI(),eB=require("path").extname,QI=/^\s*([^;\s]*)(?:;|\s|$)/,tB=/^text\//i;rr.charset=eC;rr.charsets={lookup:eC};rr.contentType=rB;rr.extension=nB;rr.extensions=Object.create(null);rr.lookup=oB;rr.types=Object.create(null);iB(rr.extensions,rr.types);function eC(t){if(!t||typeof t!="string")return!1;var e=QI.exec(t),r=e&&vf[e[1].toLowerCase()];return r&&r.charset?r.charset:e&&tB.test(e[1])?"UTF-8":!1}a(eC,"charset");function rB(t){if(!t||typeof t!="string")return!1;var e=t.indexOf("/")===-1?rr.lookup(t):t;if(!e)return!1;if(e.indexOf("charset")===-1){var r=rr.charset(e);r&&(e+="; charset="+r.toLowerCase())}return e}a(rB,"contentType");function nB(t){if(!t||typeof t!="string")return!1;var e=QI.exec(t),r=e&&rr.extensions[e[1].toLowerCase()];return!r||!r.length?!1:r[0]}a(nB,"extension");function oB(t){if(!t||typeof t!="string")return!1;var e=eB("x."+t).toLowerCase().substr(1);return e&&rr.types[e]||!1}a(oB,"lookup");function iB(t,e){var r=["nginx","apache",void 0,"iana"];Object.keys(vf).forEach(a(function(n){var i=vf[n],s=i.extensions;if(!(!s||!s.length)){t[n]=s;for(var u=0;u<s.length;u++){var l=s[u];if(e[l]){var p=r.indexOf(vf[e[l]].source),f=r.indexOf(i.source);if(e[l]!=="application/octet-stream"&&(p>f||p===f&&e[l].substr(0,12)==="application/"))continue}e[l]=n}}},"forEachMimeType"))}a(iB,"populateMaps")});var nC=z((lne,rC)=>{rC.exports=aB;function aB(t){var e=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;e?e(t):setTimeout(t,0)}a(aB,"defer")});var fb=z((pne,iC)=>{var oC=nC();iC.exports=sB;function sB(t){var e=!1;return oC(function(){e=!0}),a(function(o,n){e?t(o,n):oC(a(function(){t(o,n)},"nextTick_callback"))},"async_callback")}a(sB,"async")});var mb=z((mne,aC)=>{aC.exports=cB;function cB(t){Object.keys(t.jobs).forEach(uB.bind(t)),t.jobs={}}a(cB,"abort");function uB(t){typeof this.jobs[t]=="function"&&this.jobs[t]()}a(uB,"clean")});var hb=z((gne,cC)=>{var sC=fb(),lB=mb();cC.exports=dB;function dB(t,e,r,o){var n=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[n]=pB(e,n,t[n],function(i,s){n in r.jobs&&(delete r.jobs[n],i?lB(r):r.results[n]=s,o(i,r.results))})}a(dB,"iterate");function pB(t,e,r,o){var n;return t.length==2?n=t(r,sC(o)):n=t(r,e,sC(o)),n}a(pB,"runJob")});var gb=z((_ne,uC)=>{uC.exports=fB;function fB(t,e){var r=!Array.isArray(t),o={index:0,keyedList:r||e?Object.keys(t):null,jobs:{},results:r?{}:[],size:r?Object.keys(t).length:t.length};return e&&o.keyedList.sort(r?e:function(n,i){return e(t[n],t[i])}),o}a(fB,"state")});var yb=z((bne,lC)=>{var mB=mb(),hB=fb();lC.exports=gB;function gB(t){Object.keys(this.jobs).length&&(this.index=this.size,mB(this),hB(t)(null,this.results))}a(gB,"terminator")});var pC=z((Ene,dC)=>{var yB=hb(),_B=gb(),vB=yb();dC.exports=bB;function bB(t,e,r){for(var o=_B(t);o.index<(o.keyedList||t).length;)yB(t,e,o,function(n,i){if(n){r(n,i);return}if(Object.keys(o.jobs).length===0){r(null,o.results);return}}),o.index++;return vB.bind(o,r)}a(bB,"parallel")});var _b=z((xne,bf)=>{var fC=hb(),PB=gb(),EB=yb();bf.exports=SB;bf.exports.ascending=mC;bf.exports.descending=xB;function SB(t,e,r,o){var n=PB(t,r);return fC(t,e,n,a(function i(s,u){if(s){o(s,u);return}if(n.index++,n.index<(n.keyedList||t).length){fC(t,e,n,i);return}o(null,n.results)},"iteratorHandler")),EB.bind(n,o)}a(SB,"serialOrdered");function mC(t,e){return t<e?-1:t>e?1:0}a(mC,"ascending");function xB(t,e){return-1*mC(t,e)}a(xB,"descending")});var gC=z((Ane,hC)=>{var TB=_b();hC.exports=AB;function AB(t,e,r){return TB(t,e,null,r)}a(AB,"serial")});var _C=z((Ine,yC)=>{yC.exports={parallel:pC(),serial:gC(),serialOrdered:_b()}});var vb=z((Cne,vC)=>{"use strict";vC.exports=Object});var PC=z((Rne,bC)=>{"use strict";bC.exports=Error});var SC=z((One,EC)=>{"use strict";EC.exports=EvalError});var TC=z((kne,xC)=>{"use strict";xC.exports=RangeError});var wC=z((Nne,AC)=>{"use strict";AC.exports=ReferenceError});var CC=z(($ne,IC)=>{"use strict";IC.exports=SyntaxError});var xo=z((zne,RC)=>{"use strict";RC.exports=TypeError});var kC=z((Dne,OC)=>{"use strict";OC.exports=URIError});var $C=z((Une,NC)=>{"use strict";NC.exports=Math.abs});var DC=z((Mne,zC)=>{"use strict";zC.exports=Math.floor});var MC=z((Lne,UC)=>{"use strict";UC.exports=Math.max});var jC=z((jne,LC)=>{"use strict";LC.exports=Math.min});var BC=z((Fne,FC)=>{"use strict";FC.exports=Math.pow});var GC=z((Bne,qC)=>{"use strict";qC.exports=Math.round});var HC=z((qne,VC)=>{"use strict";VC.exports=Number.isNaN||a(function(e){return e!==e},"isNaN")});var WC=z((Vne,ZC)=>{"use strict";var wB=HC();ZC.exports=a(function(e){return wB(e)||e===0?e:e<0?-1:1},"sign")});var JC=z((Zne,KC)=>{"use strict";KC.exports=Object.getOwnPropertyDescriptor});var bb=z((Wne,XC)=>{"use strict";var Pf=JC();if(Pf)try{Pf([],"length")}catch{Pf=null}XC.exports=Pf});var QC=z((Kne,YC)=>{"use strict";var Ef=Object.defineProperty||!1;if(Ef)try{Ef({},"a",{value:1})}catch{Ef=!1}YC.exports=Ef});var Pb=z((Jne,eR)=>{"use strict";eR.exports=a(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),o=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var n=42;e[r]=n;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(e,r);if(u.value!==n||u.enumerable!==!0)return!1}return!0},"hasSymbols")});var nR=z((Yne,rR)=>{"use strict";var tR=typeof Symbol<"u"&&Symbol,IB=Pb();rR.exports=a(function(){return typeof tR!="function"||typeof Symbol!="function"||typeof tR("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:IB()},"hasNativeSymbols")});var Eb=z((eoe,oR)=>{"use strict";oR.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Sb=z((toe,iR)=>{"use strict";var CB=vb();iR.exports=CB.getPrototypeOf||null});var cR=z((roe,sR)=>{"use strict";var RB="Function.prototype.bind called on incompatible ",OB=Object.prototype.toString,kB=Math.max,NB="[object Function]",aR=a(function(e,r){for(var o=[],n=0;n<e.length;n+=1)o[n]=e[n];for(var i=0;i<r.length;i+=1)o[i+e.length]=r[i];return o},"concatty"),$B=a(function(e,r){for(var o=[],n=r||0,i=0;n<e.length;n+=1,i+=1)o[i]=e[n];return o},"slicy"),zB=a(function(t,e){for(var r="",o=0;o<t.length;o+=1)r+=t[o],o+1<t.length&&(r+=e);return r},"joiny");sR.exports=a(function(e){var r=this;if(typeof r!="function"||OB.apply(r)!==NB)throw new TypeError(RB+r);for(var o=$B(arguments,1),n,i=a(function(){if(this instanceof n){var f=r.apply(this,aR(o,arguments));return Object(f)===f?f:this}return r.apply(e,aR(o,arguments))},"binder"),s=kB(0,r.length-o.length),u=[],l=0;l<s;l++)u[l]="$"+l;if(n=Function("binder","return function ("+zB(u,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var p=a(function(){},"Empty");p.prototype=r.prototype,n.prototype=new p,p.prototype=null}return n},"bind")});var wa=z((ooe,uR)=>{"use strict";var DB=cR();uR.exports=Function.prototype.bind||DB});var Sf=z((ioe,lR)=>{"use strict";lR.exports=Function.prototype.call});var xb=z((aoe,dR)=>{"use strict";dR.exports=Function.prototype.apply});var fR=z((soe,pR)=>{"use strict";pR.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var hR=z((coe,mR)=>{"use strict";var UB=wa(),MB=xb(),LB=Sf(),jB=fR();mR.exports=jB||UB.call(LB,MB)});var Tb=z((uoe,gR)=>{"use strict";var FB=wa(),BB=xo(),qB=Sf(),GB=hR();gR.exports=a(function(e){if(e.length<1||typeof e[0]!="function")throw new BB("a function is required");return GB(FB,qB,e)},"callBindBasic")});var ER=z((doe,PR)=>{"use strict";var VB=Tb(),yR=bb(),vR;try{vR=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var Ab=!!vR&&yR&&yR(Object.prototype,"__proto__"),bR=Object,_R=bR.getPrototypeOf;PR.exports=Ab&&typeof Ab.get=="function"?VB([Ab.get]):typeof _R=="function"?a(function(e){return _R(e==null?e:bR(e))},"getDunder"):!1});var wR=z((foe,AR)=>{"use strict";var SR=Eb(),xR=Sb(),TR=ER();AR.exports=SR?a(function(e){return SR(e)},"getProto"):xR?a(function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return xR(e)},"getProto"):TR?a(function(e){return TR(e)},"getProto"):null});var wb=z((hoe,IR)=>{"use strict";var HB=Function.prototype.call,ZB=Object.prototype.hasOwnProperty,WB=wa();IR.exports=WB.call(HB,ZB)});var vu=z((goe,$R)=>{"use strict";var Be,KB=vb(),JB=PC(),XB=SC(),YB=TC(),QB=wC(),Oa=CC(),Ra=xo(),eq=kC(),tq=$C(),rq=DC(),nq=MC(),oq=jC(),iq=BC(),aq=GC(),sq=WC(),kR=Function,Ib=a(function(t){try{return kR('"use strict"; return ('+t+").constructor;")()}catch{}},"getEvalledConstructor"),gu=bb(),cq=QC(),Cb=a(function(){throw new Ra},"throwTypeError"),uq=gu?(function(){try{return arguments.callee,Cb}catch{try{return gu(arguments,"callee").get}catch{return Cb}}})():Cb,Ia=nR()(),Nt=wR(),lq=Sb(),dq=Eb(),NR=xb(),yu=Sf(),Ca={},pq=typeof Uint8Array>"u"||!Nt?Be:Nt(Uint8Array),mi={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Be:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Be:ArrayBuffer,"%ArrayIteratorPrototype%":Ia&&Nt?Nt([][Symbol.iterator]()):Be,"%AsyncFromSyncIteratorPrototype%":Be,"%AsyncFunction%":Ca,"%AsyncGenerator%":Ca,"%AsyncGeneratorFunction%":Ca,"%AsyncIteratorPrototype%":Ca,"%Atomics%":typeof Atomics>"u"?Be:Atomics,"%BigInt%":typeof BigInt>"u"?Be:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Be:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Be:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Be:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":JB,"%eval%":eval,"%EvalError%":XB,"%Float16Array%":typeof Float16Array>"u"?Be:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Be:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Be:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Be:FinalizationRegistry,"%Function%":kR,"%GeneratorFunction%":Ca,"%Int8Array%":typeof Int8Array>"u"?Be:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Be:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Be:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ia&&Nt?Nt(Nt([][Symbol.iterator]())):Be,"%JSON%":typeof JSON=="object"?JSON:Be,"%Map%":typeof Map>"u"?Be:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ia||!Nt?Be:Nt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":KB,"%Object.getOwnPropertyDescriptor%":gu,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Be:Promise,"%Proxy%":typeof Proxy>"u"?Be:Proxy,"%RangeError%":YB,"%ReferenceError%":QB,"%Reflect%":typeof Reflect>"u"?Be:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Be:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ia||!Nt?Be:Nt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Be:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ia&&Nt?Nt(""[Symbol.iterator]()):Be,"%Symbol%":Ia?Symbol:Be,"%SyntaxError%":Oa,"%ThrowTypeError%":uq,"%TypedArray%":pq,"%TypeError%":Ra,"%Uint8Array%":typeof Uint8Array>"u"?Be:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Be:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Be:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Be:Uint32Array,"%URIError%":eq,"%WeakMap%":typeof WeakMap>"u"?Be:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Be:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Be:WeakSet,"%Function.prototype.call%":yu,"%Function.prototype.apply%":NR,"%Object.defineProperty%":cq,"%Object.getPrototypeOf%":lq,"%Math.abs%":tq,"%Math.floor%":rq,"%Math.max%":nq,"%Math.min%":oq,"%Math.pow%":iq,"%Math.round%":aq,"%Math.sign%":sq,"%Reflect.getPrototypeOf%":dq};if(Nt)try{null.error}catch(t){CR=Nt(Nt(t)),mi["%Error.prototype%"]=CR}var CR,fq=a(function t(e){var r;if(e==="%AsyncFunction%")r=Ib("async function () {}");else if(e==="%GeneratorFunction%")r=Ib("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Ib("async function* () {}");else if(e==="%AsyncGenerator%"){var o=t("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if(e==="%AsyncIteratorPrototype%"){var n=t("%AsyncGenerator%");n&&Nt&&(r=Nt(n.prototype))}return mi[e]=r,r},"doEval"),RR={__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"]},_u=wa(),xf=wb(),mq=_u.call(yu,Array.prototype.concat),hq=_u.call(NR,Array.prototype.splice),OR=_u.call(yu,String.prototype.replace),Tf=_u.call(yu,String.prototype.slice),gq=_u.call(yu,RegExp.prototype.exec),yq=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_q=/\\(\\)?/g,vq=a(function(e){var r=Tf(e,0,1),o=Tf(e,-1);if(r==="%"&&o!=="%")throw new Oa("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&r!=="%")throw new Oa("invalid intrinsic syntax, expected opening `%`");var n=[];return OR(e,yq,function(i,s,u,l){n[n.length]=u?OR(l,_q,"$1"):s||i}),n},"stringToPath"),bq=a(function(e,r){var o=e,n;if(xf(RR,o)&&(n=RR[o],o="%"+n[0]+"%"),xf(mi,o)){var i=mi[o];if(i===Ca&&(i=fq(o)),typeof i>"u"&&!r)throw new Ra("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:i}}throw new Oa("intrinsic "+e+" does not exist!")},"getBaseIntrinsic");$R.exports=a(function(e,r){if(typeof e!="string"||e.length===0)throw new Ra("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Ra('"allowMissing" argument must be a boolean');if(gq(/^%?[^%]*%?$/,e)===null)throw new Oa("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=vq(e),n=o.length>0?o[0]:"",i=bq("%"+n+"%",r),s=i.name,u=i.value,l=!1,p=i.alias;p&&(n=p[0],hq(o,mq([0,1],p)));for(var f=1,y=!0;f<o.length;f+=1){var m=o[f],h=Tf(m,0,1),_=Tf(m,-1);if((h==='"'||h==="'"||h==="`"||_==='"'||_==="'"||_==="`")&&h!==_)throw new Oa("property names with quotes must have matching quotes");if((m==="constructor"||!y)&&(l=!0),n+="."+m,s="%"+n+"%",xf(mi,s))u=mi[s];else if(u!=null){if(!(m in u)){if(!r)throw new Ra("base intrinsic for "+e+" exists, but the property is not available.");return}if(gu&&f+1>=o.length){var E=gu(u,m);y=!!E,y&&"get"in E&&!("originalValue"in E.get)?u=E.get:u=u[m]}else y=xf(u,m),u=u[m];y&&!l&&(mi[s]=u)}}return u},"GetIntrinsic")});var DR=z((_oe,zR)=>{"use strict";var Pq=Pb();zR.exports=a(function(){return Pq()&&!!Symbol.toStringTag},"hasToStringTagShams")});var LR=z((boe,MR)=>{"use strict";var Eq=vu(),UR=Eq("%Object.defineProperty%",!0),Sq=DR()(),xq=wb(),Tq=xo(),Af=Sq?Symbol.toStringTag:null;MR.exports=a(function(e,r){var o=arguments.length>2&&!!arguments[2]&&arguments[2].force,n=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof o<"u"&&typeof o!="boolean"||typeof n<"u"&&typeof n!="boolean")throw new Tq("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Af&&(o||!xq(e,Af))&&(UR?UR(e,Af,{configurable:!n,enumerable:!1,value:r,writable:!1}):e[Af]=r)},"setToStringTag")});var FR=z((Eoe,jR)=>{"use strict";var Aq=Function.prototype.call,wq=Object.prototype.hasOwnProperty,Iq=wa();jR.exports=Iq.call(Aq,wq)});var qR=z((Soe,BR)=>{"use strict";BR.exports=function(t,e){return Object.keys(e).forEach(function(r){t[r]=t[r]||e[r]}),t}});var HR=z((xoe,VR)=>{"use strict";var Nb=JI(),Cq=require("util"),Rb=require("path"),Rq=require("http"),Oq=require("https"),kq=require("url").parse,Nq=require("fs"),$q=require("stream").Stream,zq=require("crypto"),Ob=tC(),Dq=_C(),Uq=LR(),To=FR(),kb=qR();function GR(t){return String(t).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}a(GR,"escapeHeaderParam");function We(t){if(!(this instanceof We))return new We(t);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Nb.call(this),t=t||{};for(var e in t)this[e]=t[e]}a(We,"FormData");Cq.inherits(We,Nb);We.LINE_BREAK=`\r
2
- `;We.DEFAULT_CONTENT_TYPE="application/octet-stream";We.prototype.append=function(t,e,r){r=r||{},typeof r=="string"&&(r={filename:r});var o=Nb.prototype.append.bind(this);if((typeof e=="number"||e==null)&&(e=String(e)),Array.isArray(e)){this._error(new Error("Arrays are not supported."));return}var n=this._multiPartHeader(t,e,r),i=this._multiPartFooter();o(n),o(e),o(i),this._trackLength(n,e,r)};We.prototype._trackLength=function(t,e,r){var o=0;r.knownLength!=null?o+=Number(r.knownLength):Buffer.isBuffer(e)?o=e.length:typeof e=="string"&&(o=Buffer.byteLength(e)),this._valueLength+=o,this._overheadLength+=Buffer.byteLength(t)+We.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&To(e,"httpVersion"))&&!(e instanceof $q))&&(r.knownLength||this._valuesToMeasure.push(e))};We.prototype._lengthRetriever=function(t,e){To(t,"fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):Nq.stat(t.path,function(r,o){if(r){e(r);return}var n=o.size-(t.start?t.start:0);e(null,n)}):To(t,"httpVersion")?e(null,Number(t.headers["content-length"])):To(t,"httpModule")?(t.on("response",function(r){t.pause(),e(null,Number(r.headers["content-length"]))}),t.resume()):e("Unknown stream")};We.prototype._multiPartHeader=function(t,e,r){if(typeof r.header=="string")return r.header;var o=this._getContentDisposition(e,r),n=this._getContentType(e,r),i="",s={"Content-Disposition":["form-data",'name="'+GR(t)+'"'].concat(o||[]),"Content-Type":[].concat(n||[])};typeof r.header=="object"&&kb(s,r.header);var u;for(var l in s)if(To(s,l)){if(u=s[l],u==null)continue;Array.isArray(u)||(u=[u]),u.length&&(i+=l+": "+u.join("; ")+We.LINE_BREAK)}return"--"+this.getBoundary()+We.LINE_BREAK+i+We.LINE_BREAK};We.prototype._getContentDisposition=function(t,e){var r;if(typeof e.filepath=="string"?r=Rb.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t&&(t.name||t.path)?r=Rb.basename(e.filename||t&&(t.name||t.path)):t&&t.readable&&To(t,"httpVersion")&&(r=Rb.basename(t.client._httpMessage.path||"")),r)return'filename="'+GR(r)+'"'};We.prototype._getContentType=function(t,e){var r=e.contentType;return!r&&t&&t.name&&(r=Ob.lookup(t.name)),!r&&t&&t.path&&(r=Ob.lookup(t.path)),!r&&t&&t.readable&&To(t,"httpVersion")&&(r=t.headers["content-type"]),!r&&(e.filepath||e.filename)&&(r=Ob.lookup(e.filepath||e.filename)),!r&&t&&typeof t=="object"&&(r=We.DEFAULT_CONTENT_TYPE),r};We.prototype._multiPartFooter=function(){return function(t){var e=We.LINE_BREAK,r=this._streams.length===0;r&&(e+=this._lastBoundary()),t(e)}.bind(this)};We.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+We.LINE_BREAK};We.prototype.getHeaders=function(t){var e,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)To(t,e)&&(r[e.toLowerCase()]=t[e]);return r};We.prototype.setBoundary=function(t){if(typeof t!="string")throw new TypeError("FormData boundary must be a string");this._boundary=t};We.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};We.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),r=0,o=this._streams.length;r<o;r++)typeof this._streams[r]!="function"&&(Buffer.isBuffer(this._streams[r])?t=Buffer.concat([t,this._streams[r]]):t=Buffer.concat([t,Buffer.from(this._streams[r])]),(typeof this._streams[r]!="string"||this._streams[r].substring(2,e.length+2)!==e)&&(t=Buffer.concat([t,Buffer.from(We.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])};We.prototype._generateBoundary=function(){this._boundary="--------------------------"+zq.randomBytes(12).toString("hex")};We.prototype.getLengthSync=function(){var t=this._overheadLength+this._valueLength;return this._streams.length&&(t+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),t};We.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t};We.prototype.getLength=function(t){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(t.bind(this,null,e));return}Dq.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,o){if(r){t(r);return}o.forEach(function(n){e+=n}),t(null,e)})};We.prototype.submit=function(t,e){var r,o,n={method:"post"};return typeof t=="string"?(t=kq(t),o=kb({port:t.port,path:t.pathname,host:t.hostname,protocol:t.protocol},n)):(o=kb(t,n),o.port||(o.port=o.protocol==="https:"?443:80)),o.headers=this.getHeaders(t.headers),o.protocol==="https:"?r=Oq.request(o):r=Rq.request(o),this.getLength(function(i,s){if(i&&i!=="Unknown stream"){this._error(i);return}if(s&&r.setHeader("Content-Length",s),this.pipe(r),e){var u,l=a(function(p,f){return r.removeListener("error",l),r.removeListener("response",u),e.call(this,p,f)},"callback");u=l.bind(this,null),r.on("error",l),r.on("response",u)}}.bind(this)),r};We.prototype._error=function(t){this.error||(this.error=t,this.pause(),this.emit("error",t))};We.prototype.toString=function(){return"[object FormData]"};Uq(We.prototype,"FormData");VR.exports=We});var xu=z((kse,QO)=>{"use strict";var If=Object.prototype.hasOwnProperty,YO=Object.prototype.toString,HO=Object.defineProperty,ZO=Object.getOwnPropertyDescriptor,WO=a(function(e){return typeof Array.isArray=="function"?Array.isArray(e):YO.call(e)==="[object Array]"},"isArray"),KO=a(function(e){if(!e||YO.call(e)!=="[object Object]")return!1;var r=If.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&If.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!o)return!1;var n;for(n in e);return typeof n>"u"||If.call(e,n)},"isPlainObject"),JO=a(function(e,r){HO&&r.name==="__proto__"?HO(e,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):e[r.name]=r.newValue},"setProperty"),XO=a(function(e,r){if(r==="__proto__")if(If.call(e,r)){if(ZO)return ZO(e,r).value}else return;return e[r]},"getProperty");QO.exports=a(function t(){var e,r,o,n,i,s,u=arguments[0],l=1,p=arguments.length,f=!1;for(typeof u=="boolean"&&(f=u,u=arguments[1]||{},l=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});l<p;++l)if(e=arguments[l],e!=null)for(r in e)o=XO(u,r),n=XO(e,r),u!==n&&(f&&n&&(KO(n)||(i=WO(n)))?(i?(i=!1,s=o&&WO(o)?o:[]):s=o&&KO(o)?o:{},JO(u,{name:r,newValue:t(f,s,n)})):typeof n<"u"&&JO(u,{name:r,newValue:n}));return u},"extend")});var ek=z(($se,A4)=>{A4.exports={name:"gaxios",version:"7.1.3",description:"A simple common HTTP client specifically for Google APIs and services.",main:"build/cjs/src/index.js",types:"build/cjs/src/index.d.ts",files:["build/"],exports:{".":{import:{types:"./build/esm/src/index.d.ts",default:"./build/esm/src/index.js"},require:{types:"./build/cjs/src/index.d.ts",default:"./build/cjs/src/index.js"}}},scripts:{lint:"gts check --no-inline-config",test:"c8 mocha build/esm/test","presystem-test":"npm run compile","system-test":"mocha build/esm/system-test --timeout 80000",compile:"tsc -b ./tsconfig.json ./tsconfig.cjs.json && node utils/enable-esm.mjs",fix:"gts fix",prepare:"npm run compile",pretest:"npm run compile",webpack:"webpack","prebrowser-test":"npm run compile","browser-test":"node build/browser-test/browser-test-runner.js",docs:"jsdoc -c .jsdoc.js","docs-test":"linkinator docs","predocs-test":"npm run docs","samples-test":"cd samples/ && npm link ../ && npm test && cd ../",prelint:"cd samples; npm link ../; npm install",clean:"gts clean"},repository:{type:"git",directory:"packages/gaxios",url:"https://github.com/googleapis/google-cloud-node-core.git"},keywords:["google"],engines:{node:">=18"},author:"Google, LLC",license:"Apache-2.0",devDependencies:{"@babel/plugin-proposal-private-methods":"^7.18.6","@types/cors":"^2.8.6","@types/express":"^5.0.0","@types/extend":"^3.0.1","@types/mocha":"^10.0.10","@types/multiparty":"4.2.1","@types/mv":"^2.1.0","@types/ncp":"^2.0.1","@types/node":"^22.0.0","@types/sinon":"^17.0.0","@types/tmp":"0.2.6",assert:"^2.0.0",browserify:"^17.0.0",c8:"^10.0.0",cors:"^2.8.5",express:"^5.0.0",gts:"^6.0.0","is-docker":"^3.0.0",jsdoc:"^4.0.0","jsdoc-fresh":"^5.0.0","jsdoc-region-tag":"^4.0.0",karma:"^6.0.0","karma-chrome-launcher":"^3.0.0","karma-coverage":"^2.0.0","karma-firefox-launcher":"^2.0.0","karma-mocha":"^2.0.0","karma-remap-coverage":"^0.1.5","karma-sourcemap-loader":"^0.4.0","karma-webpack":"^5.0.1",linkinator:"^6.1.2",mocha:"^11.1.0",multiparty:"^4.2.1",mv:"^2.1.1",ncp:"^2.0.0",nock:"^14.0.0-beta.13","null-loader":"^4.0.0","pack-n-play":"^4.0.0",puppeteer:"^24.0.0",sinon:"^21.0.0","stream-browserify":"^3.0.0",tmp:"0.2.5","ts-loader":"^9.5.2",typescript:"^5.8.3",webpack:"^5.35.0","webpack-cli":"^6.0.1"},dependencies:{extend:"^3.0.2","https-proxy-agent":"^7.0.1","node-fetch":"^3.3.2",rimraf:"^5.0.1"},homepage:"https://github.com/googleapis/google-cloud-node-core/tree/main/packages/gaxios"}});var rk=z((zse,tk)=>{"use strict";var w4=ek();tk.exports={pkg:w4}});var Mb=z(Nr=>{"use strict";var ok=Nr&&Nr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Nr,"__esModule",{value:!0});Nr.GaxiosError=Nr.GAXIOS_ERROR_SYMBOL=void 0;Nr.defaultErrorRedactor=ik;var nk=ok(xu()),I4=ok(rk()),Db=I4.default.pkg;Nr.GAXIOS_ERROR_SYMBOL=Symbol.for(`${Db.name}-gaxios-error`);var Ub=class t extends Error{static{a(this,"GaxiosError")}config;response;code;status;error;[Nr.GAXIOS_ERROR_SYMBOL]=Db.version;static[Symbol.hasInstance](e){return e&&typeof e=="object"&&Nr.GAXIOS_ERROR_SYMBOL in e&&e[Nr.GAXIOS_ERROR_SYMBOL]===Db.version?!0:Function.prototype[Symbol.hasInstance].call(t,e)}constructor(e,r,o,n){if(super(e,{cause:n}),this.config=r,this.response=o,this.error=n instanceof Error?n:void 0,this.config=(0,nk.default)(!0,{},r),this.response&&(this.response.config=(0,nk.default)(!0,{},this.response.config)),this.response){try{this.response.data=C4(this.config.responseType,this.response?.bodyUsed?this.response?.data:void 0)}catch{}this.status=this.response.status}n instanceof DOMException?this.code=n.name:n&&typeof n=="object"&&"code"in n&&(typeof n.code=="string"||typeof n.code=="number")&&(this.code=n.code)}static extractAPIErrorFromResponse(e,r="The request failed"){let o=r;if(typeof e.data=="string"&&(o=e.data),e.data&&typeof e.data=="object"&&"error"in e.data&&e.data.error&&!e.ok){if(typeof e.data.error=="string")return{message:e.data.error,code:e.status,status:e.statusText};if(typeof e.data.error=="object"){o="message"in e.data.error&&typeof e.data.error.message=="string"?e.data.error.message:o;let n="status"in e.data.error&&typeof e.data.error.status=="string"?e.data.error.status:e.statusText,i="code"in e.data.error&&typeof e.data.error.code=="number"?e.data.error.code:e.status;if("errors"in e.data.error&&Array.isArray(e.data.error.errors)){let s=[];for(let u of e.data.error.errors)typeof u=="object"&&"message"in u&&typeof u.message=="string"&&s.push(u.message);return Object.assign({message:s.join(`
3
- `)||o,code:i,status:n},e.data.error)}return Object.assign({message:o,code:i,status:n},e.data.error)}}return{message:o,code:e.status,status:e.statusText}}};Nr.GaxiosError=Ub;function C4(t,e){switch(t){case"stream":return e;case"json":return JSON.parse(JSON.stringify(e));case"arraybuffer":return JSON.parse(Buffer.from(e).toString("utf8"));case"blob":return JSON.parse(e.text());default:return e}}a(C4,"translateData");function ik(t){let e="<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>.";function r(i){i&&i.forEach((s,u)=>{(/^authentication$/i.test(u)||/^authorization$/i.test(u)||/secret/i.test(u))&&i.set(u,e)})}a(r,"redactHeaders");function o(i,s){if(typeof i=="object"&&i!==null&&typeof i[s]=="string"){let u=i[s];(/grant_type=/i.test(u)||/assertion=/i.test(u)||/secret/i.test(u))&&(i[s]=e)}}a(o,"redactString");function n(i){!i||typeof i!="object"||(i instanceof FormData||i instanceof URLSearchParams||"forEach"in i&&"set"in i?i.forEach((s,u)=>{(["grant_type","assertion"].includes(u)||/secret/.test(u))&&i.set(u,e)}):("grant_type"in i&&(i.grant_type=e),"assertion"in i&&(i.assertion=e),"client_secret"in i&&(i.client_secret=e)))}return a(n,"redactObject"),t.config&&(r(t.config.headers),o(t.config,"data"),n(t.config.data),o(t.config,"body"),n(t.config.body),t.config.url.searchParams.has("token")&&t.config.url.searchParams.set("token",e),t.config.url.searchParams.has("client_secret")&&t.config.url.searchParams.set("client_secret",e)),t.response&&(ik({config:t.response.config}),r(t.response.headers),t.response.bodyUsed&&(o(t.response,"data"),n(t.response.data))),t}a(ik,"defaultErrorRedactor")});var sk=z(Lb=>{"use strict";Object.defineProperty(Lb,"__esModule",{value:!0});Lb.getRetryConfig=R4;async function R4(t){let e=ak(t);if(!t||!t.config||!e&&!t.config.retry)return{shouldRetry:!1};e=e||{},e.currentRetryAttempt=e.currentRetryAttempt||0,e.retry=e.retry===void 0||e.retry===null?3:e.retry,e.httpMethodsToRetry=e.httpMethodsToRetry||["GET","HEAD","PUT","OPTIONS","DELETE"],e.noResponseRetries=e.noResponseRetries===void 0||e.noResponseRetries===null?2:e.noResponseRetries,e.retryDelayMultiplier=e.retryDelayMultiplier?e.retryDelayMultiplier:2,e.timeOfFirstRequest=e.timeOfFirstRequest?e.timeOfFirstRequest:Date.now(),e.totalTimeout=e.totalTimeout?e.totalTimeout:Number.MAX_SAFE_INTEGER,e.maxRetryDelay=e.maxRetryDelay?e.maxRetryDelay:Number.MAX_SAFE_INTEGER;let r=[[100,199],[408,408],[429,429],[500,599]];if(e.statusCodesToRetry=e.statusCodesToRetry||r,t.config.retryConfig=e,!await(e.shouldRetry||O4)(t))return{shouldRetry:!1,config:t.config};let n=k4(e);t.config.retryConfig.currentRetryAttempt+=1;let i=e.retryBackoff?e.retryBackoff(t,n):new Promise(s=>{setTimeout(s,n)});return e.onRetryAttempt&&await e.onRetryAttempt(t),await i,{shouldRetry:!0,config:t.config}}a(R4,"getRetryConfig");function O4(t){let e=ak(t);if(t.config.signal?.aborted&&t.code!=="TimeoutError"||t.code==="AbortError"||!e||e.retry===0||!t.response&&(e.currentRetryAttempt||0)>=e.noResponseRetries||!e.httpMethodsToRetry||!e.httpMethodsToRetry.includes(t.config.method?.toUpperCase()||"GET"))return!1;if(t.response&&t.response.status){let r=!1;for(let[o,n]of e.statusCodesToRetry){let i=t.response.status;if(i>=o&&i<=n){r=!0;break}}if(!r)return!1}return e.currentRetryAttempt=e.currentRetryAttempt||0,!(e.currentRetryAttempt>=e.retry)}a(O4,"shouldRetryRequest");function ak(t){if(t&&t.config&&t.config.retryConfig)return t.config.retryConfig}a(ak,"getConfig");function k4(t){let r=(t.currentRetryAttempt?0:t.retryDelay??100)+(Math.pow(t.retryDelayMultiplier,t.currentRetryAttempt)-1)/2*1e3,o=t.totalTimeout-(Date.now()-t.timeOfFirstRequest);return Math.min(r,o,t.maxRetryDelay)}a(k4,"getNextRetryDelay")});var Fb=z(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});Cf.GaxiosInterceptorManager=void 0;var jb=class extends Set{static{a(this,"GaxiosInterceptorManager")}};Cf.GaxiosInterceptorManager=jb});var uk=z((Bse,ck)=>{var ka=1e3,Na=ka*60,$a=Na*60,gi=$a*24,N4=gi*7,$4=gi*365.25;ck.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return z4(t);if(r==="number"&&isFinite(t))return e.long?U4(t):D4(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function z4(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),o=(e[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return r*$4;case"weeks":case"week":case"w":return r*N4;case"days":case"day":case"d":return r*gi;case"hours":case"hour":case"hrs":case"hr":case"h":return r*$a;case"minutes":case"minute":case"mins":case"min":case"m":return r*Na;case"seconds":case"second":case"secs":case"sec":case"s":return r*ka;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}a(z4,"parse");function D4(t){var e=Math.abs(t);return e>=gi?Math.round(t/gi)+"d":e>=$a?Math.round(t/$a)+"h":e>=Na?Math.round(t/Na)+"m":e>=ka?Math.round(t/ka)+"s":t+"ms"}a(D4,"fmtShort");function U4(t){var e=Math.abs(t);return e>=gi?Rf(t,e,gi,"day"):e>=$a?Rf(t,e,$a,"hour"):e>=Na?Rf(t,e,Na,"minute"):e>=ka?Rf(t,e,ka,"second"):t+" ms"}a(U4,"fmtLong");function Rf(t,e,r,o){var n=e>=r*1.5;return Math.round(t/r)+" "+o+(n?"s":"")}a(Rf,"plural")});var Bb=z((Gse,lk)=>{function M4(t){r.debug=r,r.default=r,r.coerce=l,r.disable=s,r.enable=n,r.enabled=u,r.humanize=uk(),r.destroy=p,Object.keys(t).forEach(f=>{r[f]=t[f]}),r.names=[],r.skips=[],r.formatters={};function e(f){let y=0;for(let m=0;m<f.length;m++)y=(y<<5)-y+f.charCodeAt(m),y|=0;return r.colors[Math.abs(y)%r.colors.length]}a(e,"selectColor"),r.selectColor=e;function r(f){let y,m=null,h,_;function E(...S){if(!E.enabled)return;let T=E,k=Number(new Date),L=k-(y||k);T.diff=L,T.prev=y,T.curr=k,y=k,S[0]=r.coerce(S[0]),typeof S[0]!="string"&&S.unshift("%O");let Y=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,(X,re)=>{if(X==="%%")return"%";Y++;let ce=r.formatters[re];if(typeof ce=="function"){let ee=S[Y];X=ce.call(T,ee),S.splice(Y,1),Y--}return X}),r.formatArgs.call(T,S),(T.log||r.log).apply(T,S)}return a(E,"debug"),E.namespace=f,E.useColors=r.useColors(),E.color=r.selectColor(f),E.extend=o,E.destroy=r.destroy,Object.defineProperty(E,"enabled",{enumerable:!0,configurable:!1,get:a(()=>m!==null?m:(h!==r.namespaces&&(h=r.namespaces,_=r.enabled(f)),_),"get"),set:a(S=>{m=S},"set")}),typeof r.init=="function"&&r.init(E),E}a(r,"createDebug");function o(f,y){let m=r(this.namespace+(typeof y>"u"?":":y)+f);return m.log=this.log,m}a(o,"extend");function n(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let y=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let m of y)m[0]==="-"?r.skips.push(m.slice(1)):r.names.push(m)}a(n,"enable");function i(f,y){let m=0,h=0,_=-1,E=0;for(;m<f.length;)if(h<y.length&&(y[h]===f[m]||y[h]==="*"))y[h]==="*"?(_=h,E=m,h++):(m++,h++);else if(_!==-1)h=_+1,E++,m=E;else return!1;for(;h<y.length&&y[h]==="*";)h++;return h===y.length}a(i,"matchesTemplate");function s(){let f=[...r.names,...r.skips.map(y=>"-"+y)].join(",");return r.enable(""),f}a(s,"disable");function u(f){for(let y of r.skips)if(i(f,y))return!1;for(let y of r.names)if(i(f,y))return!0;return!1}a(u,"enabled");function l(f){return f instanceof Error?f.stack||f.message:f}a(l,"coerce");function p(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return a(p,"destroy"),r.enable(r.load()),r}a(M4,"setup");lk.exports=M4});var dk=z((nr,Of)=>{nr.formatArgs=j4;nr.save=F4;nr.load=B4;nr.useColors=L4;nr.storage=q4();nr.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();nr.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function L4(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}a(L4,"useColors");function j4(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Of.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,n=>{n!=="%%"&&(r++,n==="%c"&&(o=r))}),t.splice(o,0,e)}a(j4,"formatArgs");nr.log=console.debug||console.log||(()=>{});function F4(t){try{t?nr.storage.setItem("debug",t):nr.storage.removeItem("debug")}catch{}}a(F4,"save");function B4(){let t;try{t=nr.storage.getItem("debug")||nr.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}a(B4,"load");function q4(){try{return localStorage}catch{}}a(q4,"localstorage");Of.exports=Bb()(nr);var{formatters:G4}=Of.exports;G4.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var fk=z((Zse,pk)=>{"use strict";pk.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",o=e.indexOf(r+t),n=e.indexOf("--");return o!==-1&&(n===-1||o<n)}});var gk=z((Wse,hk)=>{"use strict";var V4=require("os"),mk=require("tty"),$r=fk(),{env:$t}=process,wo;$r("no-color")||$r("no-colors")||$r("color=false")||$r("color=never")?wo=0:($r("color")||$r("colors")||$r("color=true")||$r("color=always"))&&(wo=1);"FORCE_COLOR"in $t&&($t.FORCE_COLOR==="true"?wo=1:$t.FORCE_COLOR==="false"?wo=0:wo=$t.FORCE_COLOR.length===0?1:Math.min(parseInt($t.FORCE_COLOR,10),3));function qb(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}a(qb,"translateLevel");function Gb(t,e){if(wo===0)return 0;if($r("color=16m")||$r("color=full")||$r("color=truecolor"))return 3;if($r("color=256"))return 2;if(t&&!e&&wo===void 0)return 0;let r=wo||0;if($t.TERM==="dumb")return r;if(process.platform==="win32"){let o=V4.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in $t)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(o=>o in $t)||$t.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in $t)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test($t.TEAMCITY_VERSION)?1:0;if($t.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in $t){let o=parseInt(($t.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch($t.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test($t.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test($t.TERM)||"COLORTERM"in $t?1:r}a(Gb,"supportsColor");function H4(t){let e=Gb(t,t&&t.isTTY);return qb(e)}a(H4,"getSupportLevel");hk.exports={supportsColor:H4,stdout:qb(Gb(!0,mk.isatty(1))),stderr:qb(Gb(!0,mk.isatty(2)))}});var _k=z((zt,Nf)=>{var Z4=require("tty"),kf=require("util");zt.init=e6;zt.log=X4;zt.formatArgs=K4;zt.save=Y4;zt.load=Q4;zt.useColors=W4;zt.destroy=kf.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");zt.colors=[6,2,3,4,5,1];try{let t=gk();t&&(t.stderr||t).level>=2&&(zt.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}zt.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(n,i)=>i.toUpperCase()),o=process.env[e];return/^(yes|on|true|enabled)$/i.test(o)?o=!0:/^(no|off|false|disabled)$/i.test(o)?o=!1:o==="null"?o=null:o=Number(o),t[r]=o,t},{});function W4(){return"colors"in zt.inspectOpts?!!zt.inspectOpts.colors:Z4.isatty(process.stderr.fd)}a(W4,"useColors");function K4(t){let{namespace:e,useColors:r}=this;if(r){let o=this.color,n="\x1B[3"+(o<8?o:"8;5;"+o),i=` ${n};1m${e} \x1B[0m`;t[0]=i+t[0].split(`
1
+ "use strict";var YU=Object.create;var hs=Object.defineProperty;var QU=Object.getOwnPropertyDescriptor;var eM=Object.getOwnPropertyNames;var tM=Object.getPrototypeOf,rM=Object.prototype.hasOwnProperty;var a=(t,e)=>hs(t,"name",{value:e,configurable:!0});var Ct=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(o){throw r=[o],o}};var z=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},Xt=(t,e)=>{for(var r in e)hs(t,r,{get:e[r],enumerable:!0})},jx=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of eM(e))!rM.call(t,n)&&n!==r&&hs(t,n,{get:()=>e[n],enumerable:!(o=QU(e,n))||o.enumerable});return t};var Tt=(t,e,r)=>(r=t!=null?YU(tM(t)):{},jx(e||!t||!t.__esModule?hs(r,"default",{value:t,enumerable:!0}):r,t)),nM=t=>jx(hs({},"__esModule",{value:!0}),t);var Mw=z((Uw,ff)=>{(function(t){"use strict";let e="(0?\\d+|0x[a-f0-9]+)",r={fourOctet:new RegExp(`^${e}\\.${e}\\.${e}\\.${e}$`,"i"),threeOctet:new RegExp(`^${e}\\.${e}\\.${e}$`,"i"),twoOctet:new RegExp(`^${e}\\.${e}$`,"i"),longValue:new RegExp(`^${e}$`,"i")},o=new RegExp("^0[0-7]+$","i"),n=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(`^(?:::)(${e}\\.${e}\\.${e}\\.${e}(${i})?)$`,"i"),transitional:new RegExp(`^((?:${s})|(?:::)(?:${s})?)${e}\\.${e}\\.${e}\\.${e}(${i})?$`,"i")};function l(h,_){if(h.indexOf("::")!==h.lastIndexOf("::"))return null;let P=0,S=-1,T=(h.match(u.zoneIndex)||[])[0],k,L;for(T&&(T=T.substring(1),h=h.replace(/%.+$/,""));(S=h.indexOf(":",S+1))>=0;)P++;if(h.substr(0,2)==="::"&&P--,h.substr(-2,2)==="::"&&P--,P>_)return null;for(L=_-P,k=":";L--;)k+="0:";return h=h.replace("::",k),h[0]===":"&&(h=h.slice(1)),h[h.length-1]===":"&&(h=h.slice(0,-1)),_=(function(){let Y=h.split(":"),H=[];for(let X=0;X<Y.length;X++)H.push(parseInt(Y[X],16));return H})(),{parts:_,zoneId:T}}a(l,"expandIPv6");function p(h,_,P,S){if(h.length!==_.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let T=0,k;for(;S>0;){if(k=P-S,k<0&&(k=0),h[T]>>k!==_[T]>>k)return!1;S-=P,T+=1}return!0}a(p,"matchCIDR");function f(h){if(n.test(h))return parseInt(h,16);if(h[0]==="0"&&!isNaN(parseInt(h[1],10))){if(o.test(h))return parseInt(h,8);throw new Error(`ipaddr: cannot parse ${h} as octal`)}return parseInt(h,10)}a(f,"parseIntAuto");function y(h,_){for(;h.length<_;)h=`0${h}`;return h}a(y,"padPart");let m={};m.IPv4=(function(){function h(_){if(_.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let P,S;for(P=0;P<_.length;P++)if(S=_[P],!(0<=S&&S<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=_}return a(h,"IPv4"),h.prototype.SpecialRanges={unspecified:[[new h([0,0,0,0]),8]],broadcast:[[new h([255,255,255,255]),32]],multicast:[[new h([224,0,0,0]),4]],linkLocal:[[new h([169,254,0,0]),16]],loopback:[[new h([127,0,0,0]),8]],carrierGradeNat:[[new h([100,64,0,0]),10]],private:[[new h([10,0,0,0]),8],[new h([172,16,0,0]),12],[new h([192,168,0,0]),16]],reserved:[[new h([192,0,0,0]),24],[new h([192,0,2,0]),24],[new h([192,88,99,0]),24],[new h([198,18,0,0]),15],[new h([198,51,100,0]),24],[new h([203,0,113,0]),24],[new h([240,0,0,0]),4]],as112:[[new h([192,175,48,0]),24],[new h([192,31,196,0]),24]],amt:[[new h([192,52,193,0]),24]]},h.prototype.kind=function(){return"ipv4"},h.prototype.match=function(_,P){let S;if(P===void 0&&(S=_,_=S[0],P=S[1]),_.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return p(this.octets,_.octets,8,P)},h.prototype.prefixLengthFromSubnetMask=function(){let _=0,P=!1,S={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},T,k,L;for(T=3;T>=0;T-=1)if(k=this.octets[T],k in S){if(L=S[k],P&&L!==0)return null;L!==8&&(P=!0),_+=L}else return null;return 32-_},h.prototype.range=function(){return m.subnetMatch(this,this.SpecialRanges)},h.prototype.toByteArray=function(){return this.octets.slice(0)},h.prototype.toIPv4MappedAddress=function(){return m.IPv6.parse(`::ffff:${this.toString()}`)},h.prototype.toNormalizedString=function(){return this.toString()},h.prototype.toString=function(){return this.octets.join(".")},h})(),m.IPv4.broadcastAddressFromCIDR=function(h){try{let _=this.parseCIDR(h),P=_[0].toByteArray(),S=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),T=[],k=0;for(;k<4;)T.push(parseInt(P[k],10)|parseInt(S[k],10)^255),k++;return new this(T)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},m.IPv4.isIPv4=function(h){return this.parser(h)!==null},m.IPv4.isValid=function(h){try{return new this(this.parser(h)),!0}catch{return!1}},m.IPv4.isValidCIDR=function(h){try{return this.parseCIDR(h),!0}catch{return!1}},m.IPv4.isValidFourPartDecimal=function(h){return!!(m.IPv4.isValid(h)&&h.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},m.IPv4.isValidCIDRFourPartDecimal=function(h){let _=h.match(/^(.+)\/(\d+)$/);return!m.IPv4.isValidCIDR(h)||!_?!1:m.IPv4.isValidFourPartDecimal(_[1])},m.IPv4.networkAddressFromCIDR=function(h){let _,P,S,T,k;try{for(_=this.parseCIDR(h),S=_[0].toByteArray(),k=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),T=[],P=0;P<4;)T.push(parseInt(S[P],10)&parseInt(k[P],10)),P++;return new this(T)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},m.IPv4.parse=function(h){let _=this.parser(h);if(_===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(_)},m.IPv4.parseCIDR=function(h){let _;if(_=h.match(/^(.+)\/(\d+)$/)){let P=parseInt(_[2]);if(P>=0&&P<=32){let S=[this.parse(_[1]),P];return Object.defineProperty(S,"toString",{value:a(function(){return this.join("/")},"value")}),S}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},m.IPv4.parser=function(h){let _,P,S;if(_=h.match(r.fourOctet))return(function(){let T=_.slice(1,6),k=[];for(let L=0;L<T.length;L++)P=T[L],k.push(f(P));return k})();if(_=h.match(r.longValue)){if(S=f(_[1]),S>4294967295||S<0)throw new Error("ipaddr: address outside defined range");return(function(){let T=[],k;for(k=0;k<=24;k+=8)T.push(S>>k&255);return T})().reverse()}else return(_=h.match(r.twoOctet))?(function(){let T=_.slice(1,4),k=[];if(S=f(T[1]),S>16777215||S<0)throw new Error("ipaddr: address outside defined range");return k.push(f(T[0])),k.push(S>>16&255),k.push(S>>8&255),k.push(S&255),k})():(_=h.match(r.threeOctet))?(function(){let T=_.slice(1,5),k=[];if(S=f(T[2]),S>65535||S<0)throw new Error("ipaddr: address outside defined range");return k.push(f(T[0])),k.push(f(T[1])),k.push(S>>8&255),k.push(S&255),k})():null},m.IPv4.subnetMaskFromPrefixLength=function(h){if(h=parseInt(h),h<0||h>32)throw new Error("ipaddr: invalid IPv4 prefix length");let _=[0,0,0,0],P=0,S=Math.floor(h/8);for(;P<S;)_[P]=255,P++;return S<4&&(_[S]=Math.pow(2,h%8)-1<<8-h%8),new this(_)},m.IPv6=(function(){function h(_,P){let S,T;if(_.length===16)for(this.parts=[],S=0;S<=14;S+=2)this.parts.push(_[S]<<8|_[S+1]);else if(_.length===8)this.parts=_;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(S=0;S<this.parts.length;S++)if(T=this.parts[S],!(0<=T&&T<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");P&&(this.zoneId=P)}return a(h,"IPv6"),h.prototype.SpecialRanges={unspecified:[new h([0,0,0,0,0,0,0,0]),128],linkLocal:[new h([65152,0,0,0,0,0,0,0]),10],multicast:[new h([65280,0,0,0,0,0,0,0]),8],loopback:[new h([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new h([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new h([0,0,0,0,0,65535,0,0]),96],discard:[new h([256,0,0,0,0,0,0,0]),64],rfc6145:[new h([0,0,0,0,65535,0,0,0]),96],rfc6052:[new h([100,65435,0,0,0,0,0,0]),96],"6to4":[new h([8194,0,0,0,0,0,0,0]),16],teredo:[new h([8193,0,0,0,0,0,0,0]),32],benchmarking:[new h([8193,2,0,0,0,0,0,0]),48],amt:[new h([8193,3,0,0,0,0,0,0]),32],as112v6:[[new h([8193,4,274,0,0,0,0,0]),48],[new h([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new h([8193,16,0,0,0,0,0,0]),28],orchid2:[new h([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new h([8193,48,0,0,0,0,0,0]),28],reserved:[[new h([8193,0,0,0,0,0,0,0]),23],[new h([8193,3512,0,0,0,0,0,0]),32]]},h.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},h.prototype.kind=function(){return"ipv6"},h.prototype.match=function(_,P){let S;if(P===void 0&&(S=_,_=S[0],P=S[1]),_.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return p(this.parts,_.parts,16,P)},h.prototype.prefixLengthFromSubnetMask=function(){let _=0,P=!1,S={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},T,k;for(let L=7;L>=0;L-=1)if(T=this.parts[L],T in S){if(k=S[T],P&&k!==0)return null;k!==16&&(P=!0),_+=k}else return null;return 128-_},h.prototype.range=function(){return m.subnetMatch(this,this.SpecialRanges)},h.prototype.toByteArray=function(){let _,P=[],S=this.parts;for(let T=0;T<S.length;T++)_=S[T],P.push(_>>8),P.push(_&255);return P},h.prototype.toFixedLengthString=function(){let _=(function(){let S=[];for(let T=0;T<this.parts.length;T++)S.push(y(this.parts[T].toString(16),4));return S}).call(this).join(":"),P="";return this.zoneId&&(P=`%${this.zoneId}`),_+P},h.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let _=this.parts.slice(-2),P=_[0],S=_[1];return new m.IPv4([P>>8,P&255,S>>8,S&255])},h.prototype.toNormalizedString=function(){let _=(function(){let S=[];for(let T=0;T<this.parts.length;T++)S.push(this.parts[T].toString(16));return S}).call(this).join(":"),P="";return this.zoneId&&(P=`%${this.zoneId}`),_+P},h.prototype.toRFC5952String=function(){let _=/((^|:)(0(:|$)){2,})/g,P=this.toNormalizedString(),S=0,T=-1,k;for(;k=_.exec(P);)k[0].length>T&&(S=k.index,T=k[0].length);return T<0?P:`${P.substring(0,S)}::${P.substring(S+T)}`},h.prototype.toString=function(){return this.toRFC5952String()},h})(),m.IPv6.broadcastAddressFromCIDR=function(h){try{let _=this.parseCIDR(h),P=_[0].toByteArray(),S=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),T=[],k=0;for(;k<16;)T.push(parseInt(P[k],10)|parseInt(S[k],10)^255),k++;return new this(T)}catch(_){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${_})`)}},m.IPv6.isIPv6=function(h){return this.parser(h)!==null},m.IPv6.isValid=function(h){if(typeof h=="string"&&h.indexOf(":")===-1)return!1;try{let _=this.parser(h);return new this(_.parts,_.zoneId),!0}catch{return!1}},m.IPv6.isValidCIDR=function(h){if(typeof h=="string"&&h.indexOf(":")===-1)return!1;try{return this.parseCIDR(h),!0}catch{return!1}},m.IPv6.networkAddressFromCIDR=function(h){let _,P,S,T,k;try{for(_=this.parseCIDR(h),S=_[0].toByteArray(),k=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),T=[],P=0;P<16;)T.push(parseInt(S[P],10)&parseInt(k[P],10)),P++;return new this(T)}catch(L){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${L})`)}},m.IPv6.parse=function(h){let _=this.parser(h);if(_.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(_.parts,_.zoneId)},m.IPv6.parseCIDR=function(h){let _,P,S;if((P=h.match(/^(.+)\/(\d+)$/))&&(_=parseInt(P[2]),_>=0&&_<=128))return S=[this.parse(P[1]),_],Object.defineProperty(S,"toString",{value:a(function(){return this.join("/")},"value")}),S;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},m.IPv6.parser=function(h){let _,P,S,T,k,L;if(S=h.match(u.deprecatedTransitional))return this.parser(`::ffff:${S[1]}`);if(u.native.test(h))return l(h,8);if((S=h.match(u.transitional))&&(L=S[6]||"",_=S[1],S[1].endsWith("::")||(_=_.slice(0,-1)),_=l(_+L,6),_.parts)){for(k=[parseInt(S[2]),parseInt(S[3]),parseInt(S[4]),parseInt(S[5])],P=0;P<k.length;P++)if(T=k[P],!(0<=T&&T<=255))return null;return _.parts.push(k[0]<<8|k[1]),_.parts.push(k[2]<<8|k[3]),{parts:_.parts,zoneId:_.zoneId}}return null},m.IPv6.subnetMaskFromPrefixLength=function(h){if(h=parseInt(h),h<0||h>128)throw new Error("ipaddr: invalid IPv6 prefix length");let _=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],P=0,S=Math.floor(h/8);for(;P<S;)_[P]=255,P++;return S<16&&(_[S]=Math.pow(2,h%8)-1<<8-h%8),new this(_)},m.fromByteArray=function(h){let _=h.length;if(_===4)return new m.IPv4(h);if(_===16)return new m.IPv6(h);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},m.isValid=function(h){return m.IPv6.isValid(h)||m.IPv4.isValid(h)},m.isValidCIDR=function(h){return m.IPv6.isValidCIDR(h)||m.IPv4.isValidCIDR(h)},m.parse=function(h){if(m.IPv6.isValid(h))return m.IPv6.parse(h);if(m.IPv4.isValid(h))return m.IPv4.parse(h);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},m.parseCIDR=function(h){try{return m.IPv6.parseCIDR(h)}catch{try{return m.IPv4.parseCIDR(h)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},m.process=function(h){let _=this.parse(h);return _.kind()==="ipv6"&&_.isIPv4MappedAddress()?_.toIPv4Address():_},m.subnetMatch=function(h,_,P){let S,T,k,L;P==null&&(P="unicast");for(T in _)if(Object.prototype.hasOwnProperty.call(_,T)){for(k=_[T],k[0]&&!(k[0]instanceof Array)&&(k=[k]),S=0;S<k.length;S++)if(L=k[S],h.kind()===L[0].kind()&&h.match.apply(h,L))return T}return P},typeof ff<"u"&&ff.exports?ff.exports=m:t.ipaddr=m})(Uw)});var HI=z((rne,VI)=>{var GI=require("stream").Stream,XF=require("util");VI.exports=Kr;function Kr(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}a(Kr,"DelayedStream");XF.inherits(Kr,GI);Kr.create=function(t,e){var r=new this;e=e||{};for(var o in e)r[o]=e[o];r.source=t;var n=t.emit;return t.emit=function(){return r._handleEmit(arguments),n.apply(t,arguments)},t.on("error",function(){}),r.pauseStream&&t.pause(),r};Object.defineProperty(Kr.prototype,"readable",{configurable:!0,enumerable:!0,get:a(function(){return this.source.readable},"get")});Kr.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};Kr.prototype.resume=function(){this._released||this.release(),this.source.resume()};Kr.prototype.pause=function(){this.source.pause()};Kr.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(t){this.emit.apply(this,t)}.bind(this)),this._bufferedEvents=[]};Kr.prototype.pipe=function(){var t=GI.prototype.pipe.apply(this,arguments);return this.resume(),t};Kr.prototype._handleEmit=function(t){if(this._released){this.emit.apply(this,t);return}t[0]==="data"&&(this.dataSize+=t[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(t)};Kr.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(t))}}});var JI=z((one,KI)=>{var YF=require("util"),WI=require("stream").Stream,ZI=HI();KI.exports=yt;function yt(){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(yt,"CombinedStream");YF.inherits(yt,WI);yt.create=function(t){var e=new this;t=t||{};for(var r in t)e[r]=t[r];return e};yt.isStreamLike=function(t){return typeof t!="function"&&typeof t!="string"&&typeof t!="boolean"&&typeof t!="number"&&!Buffer.isBuffer(t)};yt.prototype.append=function(t){var e=yt.isStreamLike(t);if(e){if(!(t instanceof ZI)){var r=ZI.create(t,{maxDataSize:1/0,pauseStream:this.pauseStreams});t.on("data",this._checkDataSize.bind(this)),t=r}this._handleErrors(t),this.pauseStreams&&t.pause()}return this._streams.push(t),this};yt.prototype.pipe=function(t,e){return WI.prototype.pipe.call(this,t,e),this.resume(),t};yt.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}};yt.prototype._realGetNext=function(){var t=this._streams.shift();if(typeof t>"u"){this.end();return}if(typeof t!="function"){this._pipeNext(t);return}var e=t;e(function(r){var o=yt.isStreamLike(r);o&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))};yt.prototype._pipeNext=function(t){this._currentStream=t;var e=yt.isStreamLike(t);if(e){t.on("end",this._getNext.bind(this)),t.pipe(this,{end:!1});return}var r=t;this.write(r),this._getNext()};yt.prototype._handleErrors=function(t){var e=this;t.on("error",function(r){e._emitError(r)})};yt.prototype.write=function(t){this.emit("data",t)};yt.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};yt.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")};yt.prototype.end=function(){this._reset(),this.emit("end")};yt.prototype.destroy=function(){this._reset(),this.emit("close")};yt.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};yt.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(t))}};yt.prototype._updateDataSize=function(){this.dataSize=0;var t=this;this._streams.forEach(function(e){e.dataSize&&(t.dataSize+=e.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};yt.prototype._emitError=function(t){this._reset(),this.emit("error",t)}});var YI=z((ane,XI)=>{"use strict";XI.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 tC=z(rr=>{"use strict";var vf=YI(),QF=require("path").extname,QI=/^\s*([^;\s]*)(?:;|\s|$)/,eB=/^text\//i;rr.charset=eC;rr.charsets={lookup:eC};rr.contentType=tB;rr.extension=rB;rr.extensions=Object.create(null);rr.lookup=nB;rr.types=Object.create(null);oB(rr.extensions,rr.types);function eC(t){if(!t||typeof t!="string")return!1;var e=QI.exec(t),r=e&&vf[e[1].toLowerCase()];return r&&r.charset?r.charset:e&&eB.test(e[1])?"UTF-8":!1}a(eC,"charset");function tB(t){if(!t||typeof t!="string")return!1;var e=t.indexOf("/")===-1?rr.lookup(t):t;if(!e)return!1;if(e.indexOf("charset")===-1){var r=rr.charset(e);r&&(e+="; charset="+r.toLowerCase())}return e}a(tB,"contentType");function rB(t){if(!t||typeof t!="string")return!1;var e=QI.exec(t),r=e&&rr.extensions[e[1].toLowerCase()];return!r||!r.length?!1:r[0]}a(rB,"extension");function nB(t){if(!t||typeof t!="string")return!1;var e=QF("x."+t).toLowerCase().substr(1);return e&&rr.types[e]||!1}a(nB,"lookup");function oB(t,e){var r=["nginx","apache",void 0,"iana"];Object.keys(vf).forEach(a(function(n){var i=vf[n],s=i.extensions;if(!(!s||!s.length)){t[n]=s;for(var u=0;u<s.length;u++){var l=s[u];if(e[l]){var p=r.indexOf(vf[e[l]].source),f=r.indexOf(i.source);if(e[l]!=="application/octet-stream"&&(p>f||p===f&&e[l].substr(0,12)==="application/"))continue}e[l]=n}}},"forEachMimeType"))}a(oB,"populateMaps")});var nC=z((une,rC)=>{rC.exports=iB;function iB(t){var e=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;e?e(t):setTimeout(t,0)}a(iB,"defer")});var fb=z((dne,iC)=>{var oC=nC();iC.exports=aB;function aB(t){var e=!1;return oC(function(){e=!0}),a(function(o,n){e?t(o,n):oC(a(function(){t(o,n)},"nextTick_callback"))},"async_callback")}a(aB,"async")});var mb=z((fne,aC)=>{aC.exports=sB;function sB(t){Object.keys(t.jobs).forEach(cB.bind(t)),t.jobs={}}a(sB,"abort");function cB(t){typeof this.jobs[t]=="function"&&this.jobs[t]()}a(cB,"clean")});var hb=z((hne,cC)=>{var sC=fb(),uB=mb();cC.exports=lB;function lB(t,e,r,o){var n=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[n]=dB(e,n,t[n],function(i,s){n in r.jobs&&(delete r.jobs[n],i?uB(r):r.results[n]=s,o(i,r.results))})}a(lB,"iterate");function dB(t,e,r,o){var n;return t.length==2?n=t(r,sC(o)):n=t(r,e,sC(o)),n}a(dB,"runJob")});var gb=z((yne,uC)=>{uC.exports=pB;function pB(t,e){var r=!Array.isArray(t),o={index:0,keyedList:r||e?Object.keys(t):null,jobs:{},results:r?{}:[],size:r?Object.keys(t).length:t.length};return e&&o.keyedList.sort(r?e:function(n,i){return e(t[n],t[i])}),o}a(pB,"state")});var yb=z((vne,lC)=>{var fB=mb(),mB=fb();lC.exports=hB;function hB(t){Object.keys(this.jobs).length&&(this.index=this.size,fB(this),mB(t)(null,this.results))}a(hB,"terminator")});var pC=z((Ene,dC)=>{var gB=hb(),yB=gb(),_B=yb();dC.exports=vB;function vB(t,e,r){for(var o=yB(t);o.index<(o.keyedList||t).length;)gB(t,e,o,function(n,i){if(n){r(n,i);return}if(Object.keys(o.jobs).length===0){r(null,o.results);return}}),o.index++;return _B.bind(o,r)}a(vB,"parallel")});var _b=z((Sne,bf)=>{var fC=hb(),bB=gb(),EB=yb();bf.exports=PB;bf.exports.ascending=mC;bf.exports.descending=SB;function PB(t,e,r,o){var n=bB(t,r);return fC(t,e,n,a(function i(s,u){if(s){o(s,u);return}if(n.index++,n.index<(n.keyedList||t).length){fC(t,e,n,i);return}o(null,n.results)},"iteratorHandler")),EB.bind(n,o)}a(PB,"serialOrdered");function mC(t,e){return t<e?-1:t>e?1:0}a(mC,"ascending");function SB(t,e){return-1*mC(t,e)}a(SB,"descending")});var gC=z((Tne,hC)=>{var xB=_b();hC.exports=TB;function TB(t,e,r){return xB(t,e,null,r)}a(TB,"serial")});var _C=z((wne,yC)=>{yC.exports={parallel:pC(),serial:gC(),serialOrdered:_b()}});var vb=z((Ine,vC)=>{"use strict";vC.exports=Object});var EC=z((Cne,bC)=>{"use strict";bC.exports=Error});var SC=z((Rne,PC)=>{"use strict";PC.exports=EvalError});var TC=z((One,xC)=>{"use strict";xC.exports=RangeError});var wC=z((kne,AC)=>{"use strict";AC.exports=ReferenceError});var CC=z((Nne,IC)=>{"use strict";IC.exports=SyntaxError});var xo=z(($ne,RC)=>{"use strict";RC.exports=TypeError});var kC=z((zne,OC)=>{"use strict";OC.exports=URIError});var $C=z((Dne,NC)=>{"use strict";NC.exports=Math.abs});var DC=z((Une,zC)=>{"use strict";zC.exports=Math.floor});var MC=z((Mne,UC)=>{"use strict";UC.exports=Math.max});var jC=z((Lne,LC)=>{"use strict";LC.exports=Math.min});var BC=z((jne,FC)=>{"use strict";FC.exports=Math.pow});var GC=z((Fne,qC)=>{"use strict";qC.exports=Math.round});var HC=z((Bne,VC)=>{"use strict";VC.exports=Number.isNaN||a(function(e){return e!==e},"isNaN")});var WC=z((Gne,ZC)=>{"use strict";var AB=HC();ZC.exports=a(function(e){return AB(e)||e===0?e:e<0?-1:1},"sign")});var JC=z((Hne,KC)=>{"use strict";KC.exports=Object.getOwnPropertyDescriptor});var bb=z((Zne,XC)=>{"use strict";var Ef=JC();if(Ef)try{Ef([],"length")}catch{Ef=null}XC.exports=Ef});var QC=z((Wne,YC)=>{"use strict";var Pf=Object.defineProperty||!1;if(Pf)try{Pf({},"a",{value:1})}catch{Pf=!1}YC.exports=Pf});var Eb=z((Kne,eR)=>{"use strict";eR.exports=a(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),o=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var n=42;e[r]=n;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(e,r);if(u.value!==n||u.enumerable!==!0)return!1}return!0},"hasSymbols")});var nR=z((Xne,rR)=>{"use strict";var tR=typeof Symbol<"u"&&Symbol,wB=Eb();rR.exports=a(function(){return typeof tR!="function"||typeof Symbol!="function"||typeof tR("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:wB()},"hasNativeSymbols")});var Pb=z((Qne,oR)=>{"use strict";oR.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Sb=z((eoe,iR)=>{"use strict";var IB=vb();iR.exports=IB.getPrototypeOf||null});var cR=z((toe,sR)=>{"use strict";var CB="Function.prototype.bind called on incompatible ",RB=Object.prototype.toString,OB=Math.max,kB="[object Function]",aR=a(function(e,r){for(var o=[],n=0;n<e.length;n+=1)o[n]=e[n];for(var i=0;i<r.length;i+=1)o[i+e.length]=r[i];return o},"concatty"),NB=a(function(e,r){for(var o=[],n=r||0,i=0;n<e.length;n+=1,i+=1)o[i]=e[n];return o},"slicy"),$B=a(function(t,e){for(var r="",o=0;o<t.length;o+=1)r+=t[o],o+1<t.length&&(r+=e);return r},"joiny");sR.exports=a(function(e){var r=this;if(typeof r!="function"||RB.apply(r)!==kB)throw new TypeError(CB+r);for(var o=NB(arguments,1),n,i=a(function(){if(this instanceof n){var f=r.apply(this,aR(o,arguments));return Object(f)===f?f:this}return r.apply(e,aR(o,arguments))},"binder"),s=OB(0,r.length-o.length),u=[],l=0;l<s;l++)u[l]="$"+l;if(n=Function("binder","return function ("+$B(u,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var p=a(function(){},"Empty");p.prototype=r.prototype,n.prototype=new p,p.prototype=null}return n},"bind")});var wa=z((noe,uR)=>{"use strict";var zB=cR();uR.exports=Function.prototype.bind||zB});var Sf=z((ooe,lR)=>{"use strict";lR.exports=Function.prototype.call});var xb=z((ioe,dR)=>{"use strict";dR.exports=Function.prototype.apply});var fR=z((aoe,pR)=>{"use strict";pR.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var hR=z((soe,mR)=>{"use strict";var DB=wa(),UB=xb(),MB=Sf(),LB=fR();mR.exports=LB||DB.call(MB,UB)});var Tb=z((coe,gR)=>{"use strict";var jB=wa(),FB=xo(),BB=Sf(),qB=hR();gR.exports=a(function(e){if(e.length<1||typeof e[0]!="function")throw new FB("a function is required");return qB(jB,BB,e)},"callBindBasic")});var PR=z((loe,ER)=>{"use strict";var GB=Tb(),yR=bb(),vR;try{vR=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var Ab=!!vR&&yR&&yR(Object.prototype,"__proto__"),bR=Object,_R=bR.getPrototypeOf;ER.exports=Ab&&typeof Ab.get=="function"?GB([Ab.get]):typeof _R=="function"?a(function(e){return _R(e==null?e:bR(e))},"getDunder"):!1});var wR=z((poe,AR)=>{"use strict";var SR=Pb(),xR=Sb(),TR=PR();AR.exports=SR?a(function(e){return SR(e)},"getProto"):xR?a(function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return xR(e)},"getProto"):TR?a(function(e){return TR(e)},"getProto"):null});var wb=z((moe,IR)=>{"use strict";var VB=Function.prototype.call,HB=Object.prototype.hasOwnProperty,ZB=wa();IR.exports=ZB.call(VB,HB)});var vu=z((hoe,$R)=>{"use strict";var Be,WB=vb(),KB=EC(),JB=SC(),XB=TC(),YB=wC(),Oa=CC(),Ra=xo(),QB=kC(),eq=$C(),tq=DC(),rq=MC(),nq=jC(),oq=BC(),iq=GC(),aq=WC(),kR=Function,Ib=a(function(t){try{return kR('"use strict"; return ('+t+").constructor;")()}catch{}},"getEvalledConstructor"),gu=bb(),sq=QC(),Cb=a(function(){throw new Ra},"throwTypeError"),cq=gu?(function(){try{return arguments.callee,Cb}catch{try{return gu(arguments,"callee").get}catch{return Cb}}})():Cb,Ia=nR()(),Nt=wR(),uq=Sb(),lq=Pb(),NR=xb(),yu=Sf(),Ca={},dq=typeof Uint8Array>"u"||!Nt?Be:Nt(Uint8Array),mi={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Be:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Be:ArrayBuffer,"%ArrayIteratorPrototype%":Ia&&Nt?Nt([][Symbol.iterator]()):Be,"%AsyncFromSyncIteratorPrototype%":Be,"%AsyncFunction%":Ca,"%AsyncGenerator%":Ca,"%AsyncGeneratorFunction%":Ca,"%AsyncIteratorPrototype%":Ca,"%Atomics%":typeof Atomics>"u"?Be:Atomics,"%BigInt%":typeof BigInt>"u"?Be:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Be:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Be:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Be:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":KB,"%eval%":eval,"%EvalError%":JB,"%Float16Array%":typeof Float16Array>"u"?Be:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Be:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Be:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Be:FinalizationRegistry,"%Function%":kR,"%GeneratorFunction%":Ca,"%Int8Array%":typeof Int8Array>"u"?Be:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Be:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Be:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ia&&Nt?Nt(Nt([][Symbol.iterator]())):Be,"%JSON%":typeof JSON=="object"?JSON:Be,"%Map%":typeof Map>"u"?Be:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ia||!Nt?Be:Nt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":WB,"%Object.getOwnPropertyDescriptor%":gu,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Be:Promise,"%Proxy%":typeof Proxy>"u"?Be:Proxy,"%RangeError%":XB,"%ReferenceError%":YB,"%Reflect%":typeof Reflect>"u"?Be:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Be:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ia||!Nt?Be:Nt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Be:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ia&&Nt?Nt(""[Symbol.iterator]()):Be,"%Symbol%":Ia?Symbol:Be,"%SyntaxError%":Oa,"%ThrowTypeError%":cq,"%TypedArray%":dq,"%TypeError%":Ra,"%Uint8Array%":typeof Uint8Array>"u"?Be:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Be:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Be:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Be:Uint32Array,"%URIError%":QB,"%WeakMap%":typeof WeakMap>"u"?Be:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Be:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Be:WeakSet,"%Function.prototype.call%":yu,"%Function.prototype.apply%":NR,"%Object.defineProperty%":sq,"%Object.getPrototypeOf%":uq,"%Math.abs%":eq,"%Math.floor%":tq,"%Math.max%":rq,"%Math.min%":nq,"%Math.pow%":oq,"%Math.round%":iq,"%Math.sign%":aq,"%Reflect.getPrototypeOf%":lq};if(Nt)try{null.error}catch(t){CR=Nt(Nt(t)),mi["%Error.prototype%"]=CR}var CR,pq=a(function t(e){var r;if(e==="%AsyncFunction%")r=Ib("async function () {}");else if(e==="%GeneratorFunction%")r=Ib("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Ib("async function* () {}");else if(e==="%AsyncGenerator%"){var o=t("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if(e==="%AsyncIteratorPrototype%"){var n=t("%AsyncGenerator%");n&&Nt&&(r=Nt(n.prototype))}return mi[e]=r,r},"doEval"),RR={__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"]},_u=wa(),xf=wb(),fq=_u.call(yu,Array.prototype.concat),mq=_u.call(NR,Array.prototype.splice),OR=_u.call(yu,String.prototype.replace),Tf=_u.call(yu,String.prototype.slice),hq=_u.call(yu,RegExp.prototype.exec),gq=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,yq=/\\(\\)?/g,_q=a(function(e){var r=Tf(e,0,1),o=Tf(e,-1);if(r==="%"&&o!=="%")throw new Oa("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&r!=="%")throw new Oa("invalid intrinsic syntax, expected opening `%`");var n=[];return OR(e,gq,function(i,s,u,l){n[n.length]=u?OR(l,yq,"$1"):s||i}),n},"stringToPath"),vq=a(function(e,r){var o=e,n;if(xf(RR,o)&&(n=RR[o],o="%"+n[0]+"%"),xf(mi,o)){var i=mi[o];if(i===Ca&&(i=pq(o)),typeof i>"u"&&!r)throw new Ra("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:i}}throw new Oa("intrinsic "+e+" does not exist!")},"getBaseIntrinsic");$R.exports=a(function(e,r){if(typeof e!="string"||e.length===0)throw new Ra("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Ra('"allowMissing" argument must be a boolean');if(hq(/^%?[^%]*%?$/,e)===null)throw new Oa("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=_q(e),n=o.length>0?o[0]:"",i=vq("%"+n+"%",r),s=i.name,u=i.value,l=!1,p=i.alias;p&&(n=p[0],mq(o,fq([0,1],p)));for(var f=1,y=!0;f<o.length;f+=1){var m=o[f],h=Tf(m,0,1),_=Tf(m,-1);if((h==='"'||h==="'"||h==="`"||_==='"'||_==="'"||_==="`")&&h!==_)throw new Oa("property names with quotes must have matching quotes");if((m==="constructor"||!y)&&(l=!0),n+="."+m,s="%"+n+"%",xf(mi,s))u=mi[s];else if(u!=null){if(!(m in u)){if(!r)throw new Ra("base intrinsic for "+e+" exists, but the property is not available.");return}if(gu&&f+1>=o.length){var P=gu(u,m);y=!!P,y&&"get"in P&&!("originalValue"in P.get)?u=P.get:u=u[m]}else y=xf(u,m),u=u[m];y&&!l&&(mi[s]=u)}}return u},"GetIntrinsic")});var DR=z((yoe,zR)=>{"use strict";var bq=Eb();zR.exports=a(function(){return bq()&&!!Symbol.toStringTag},"hasToStringTagShams")});var LR=z((voe,MR)=>{"use strict";var Eq=vu(),UR=Eq("%Object.defineProperty%",!0),Pq=DR()(),Sq=wb(),xq=xo(),Af=Pq?Symbol.toStringTag:null;MR.exports=a(function(e,r){var o=arguments.length>2&&!!arguments[2]&&arguments[2].force,n=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof o<"u"&&typeof o!="boolean"||typeof n<"u"&&typeof n!="boolean")throw new xq("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Af&&(o||!Sq(e,Af))&&(UR?UR(e,Af,{configurable:!n,enumerable:!1,value:r,writable:!1}):e[Af]=r)},"setToStringTag")});var FR=z((Eoe,jR)=>{"use strict";var Tq=Function.prototype.call,Aq=Object.prototype.hasOwnProperty,wq=wa();jR.exports=wq.call(Tq,Aq)});var qR=z((Poe,BR)=>{"use strict";BR.exports=function(t,e){return Object.keys(e).forEach(function(r){t[r]=t[r]||e[r]}),t}});var HR=z((Soe,VR)=>{"use strict";var Nb=JI(),Iq=require("util"),Rb=require("path"),Cq=require("http"),Rq=require("https"),Oq=require("url").parse,kq=require("fs"),Nq=require("stream").Stream,$q=require("crypto"),Ob=tC(),zq=_C(),Dq=LR(),To=FR(),kb=qR();function GR(t){return String(t).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}a(GR,"escapeHeaderParam");function We(t){if(!(this instanceof We))return new We(t);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Nb.call(this),t=t||{};for(var e in t)this[e]=t[e]}a(We,"FormData");Iq.inherits(We,Nb);We.LINE_BREAK=`\r
2
+ `;We.DEFAULT_CONTENT_TYPE="application/octet-stream";We.prototype.append=function(t,e,r){r=r||{},typeof r=="string"&&(r={filename:r});var o=Nb.prototype.append.bind(this);if((typeof e=="number"||e==null)&&(e=String(e)),Array.isArray(e)){this._error(new Error("Arrays are not supported."));return}var n=this._multiPartHeader(t,e,r),i=this._multiPartFooter();o(n),o(e),o(i),this._trackLength(n,e,r)};We.prototype._trackLength=function(t,e,r){var o=0;r.knownLength!=null?o+=Number(r.knownLength):Buffer.isBuffer(e)?o=e.length:typeof e=="string"&&(o=Buffer.byteLength(e)),this._valueLength+=o,this._overheadLength+=Buffer.byteLength(t)+We.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&To(e,"httpVersion"))&&!(e instanceof Nq))&&(r.knownLength||this._valuesToMeasure.push(e))};We.prototype._lengthRetriever=function(t,e){To(t,"fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):kq.stat(t.path,function(r,o){if(r){e(r);return}var n=o.size-(t.start?t.start:0);e(null,n)}):To(t,"httpVersion")?e(null,Number(t.headers["content-length"])):To(t,"httpModule")?(t.on("response",function(r){t.pause(),e(null,Number(r.headers["content-length"]))}),t.resume()):e("Unknown stream")};We.prototype._multiPartHeader=function(t,e,r){if(typeof r.header=="string")return r.header;var o=this._getContentDisposition(e,r),n=this._getContentType(e,r),i="",s={"Content-Disposition":["form-data",'name="'+GR(t)+'"'].concat(o||[]),"Content-Type":[].concat(n||[])};typeof r.header=="object"&&kb(s,r.header);var u;for(var l in s)if(To(s,l)){if(u=s[l],u==null)continue;Array.isArray(u)||(u=[u]),u.length&&(i+=l+": "+u.join("; ")+We.LINE_BREAK)}return"--"+this.getBoundary()+We.LINE_BREAK+i+We.LINE_BREAK};We.prototype._getContentDisposition=function(t,e){var r;if(typeof e.filepath=="string"?r=Rb.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t&&(t.name||t.path)?r=Rb.basename(e.filename||t&&(t.name||t.path)):t&&t.readable&&To(t,"httpVersion")&&(r=Rb.basename(t.client._httpMessage.path||"")),r)return'filename="'+GR(r)+'"'};We.prototype._getContentType=function(t,e){var r=e.contentType;return!r&&t&&t.name&&(r=Ob.lookup(t.name)),!r&&t&&t.path&&(r=Ob.lookup(t.path)),!r&&t&&t.readable&&To(t,"httpVersion")&&(r=t.headers["content-type"]),!r&&(e.filepath||e.filename)&&(r=Ob.lookup(e.filepath||e.filename)),!r&&t&&typeof t=="object"&&(r=We.DEFAULT_CONTENT_TYPE),r};We.prototype._multiPartFooter=function(){return function(t){var e=We.LINE_BREAK,r=this._streams.length===0;r&&(e+=this._lastBoundary()),t(e)}.bind(this)};We.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+We.LINE_BREAK};We.prototype.getHeaders=function(t){var e,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)To(t,e)&&(r[e.toLowerCase()]=t[e]);return r};We.prototype.setBoundary=function(t){if(typeof t!="string")throw new TypeError("FormData boundary must be a string");this._boundary=t};We.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};We.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),r=0,o=this._streams.length;r<o;r++)typeof this._streams[r]!="function"&&(Buffer.isBuffer(this._streams[r])?t=Buffer.concat([t,this._streams[r]]):t=Buffer.concat([t,Buffer.from(this._streams[r])]),(typeof this._streams[r]!="string"||this._streams[r].substring(2,e.length+2)!==e)&&(t=Buffer.concat([t,Buffer.from(We.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])};We.prototype._generateBoundary=function(){this._boundary="--------------------------"+$q.randomBytes(12).toString("hex")};We.prototype.getLengthSync=function(){var t=this._overheadLength+this._valueLength;return this._streams.length&&(t+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),t};We.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t};We.prototype.getLength=function(t){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(t.bind(this,null,e));return}zq.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,o){if(r){t(r);return}o.forEach(function(n){e+=n}),t(null,e)})};We.prototype.submit=function(t,e){var r,o,n={method:"post"};return typeof t=="string"?(t=Oq(t),o=kb({port:t.port,path:t.pathname,host:t.hostname,protocol:t.protocol},n)):(o=kb(t,n),o.port||(o.port=o.protocol==="https:"?443:80)),o.headers=this.getHeaders(t.headers),o.protocol==="https:"?r=Rq.request(o):r=Cq.request(o),this.getLength(function(i,s){if(i&&i!=="Unknown stream"){this._error(i);return}if(s&&r.setHeader("Content-Length",s),this.pipe(r),e){var u,l=a(function(p,f){return r.removeListener("error",l),r.removeListener("response",u),e.call(this,p,f)},"callback");u=l.bind(this,null),r.on("error",l),r.on("response",u)}}.bind(this)),r};We.prototype._error=function(t){this.error||(this.error=t,this.pause(),this.emit("error",t))};We.prototype.toString=function(){return"[object FormData]"};Dq(We.prototype,"FormData");VR.exports=We});var xu=z((Ose,YO)=>{"use strict";var If=Object.prototype.hasOwnProperty,XO=Object.prototype.toString,VO=Object.defineProperty,HO=Object.getOwnPropertyDescriptor,ZO=a(function(e){return typeof Array.isArray=="function"?Array.isArray(e):XO.call(e)==="[object Array]"},"isArray"),WO=a(function(e){if(!e||XO.call(e)!=="[object Object]")return!1;var r=If.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&If.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!o)return!1;var n;for(n in e);return typeof n>"u"||If.call(e,n)},"isPlainObject"),KO=a(function(e,r){VO&&r.name==="__proto__"?VO(e,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):e[r.name]=r.newValue},"setProperty"),JO=a(function(e,r){if(r==="__proto__")if(If.call(e,r)){if(HO)return HO(e,r).value}else return;return e[r]},"getProperty");YO.exports=a(function t(){var e,r,o,n,i,s,u=arguments[0],l=1,p=arguments.length,f=!1;for(typeof u=="boolean"&&(f=u,u=arguments[1]||{},l=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});l<p;++l)if(e=arguments[l],e!=null)for(r in e)o=JO(u,r),n=JO(e,r),u!==n&&(f&&n&&(WO(n)||(i=ZO(n)))?(i?(i=!1,s=o&&ZO(o)?o:[]):s=o&&WO(o)?o:{},KO(u,{name:r,newValue:t(f,s,n)})):typeof n<"u"&&KO(u,{name:r,newValue:n}));return u},"extend")});var QO=z((Nse,T4)=>{T4.exports={name:"gaxios",version:"7.1.3",description:"A simple common HTTP client specifically for Google APIs and services.",main:"build/cjs/src/index.js",types:"build/cjs/src/index.d.ts",files:["build/"],exports:{".":{import:{types:"./build/esm/src/index.d.ts",default:"./build/esm/src/index.js"},require:{types:"./build/cjs/src/index.d.ts",default:"./build/cjs/src/index.js"}}},scripts:{lint:"gts check --no-inline-config",test:"c8 mocha build/esm/test","presystem-test":"npm run compile","system-test":"mocha build/esm/system-test --timeout 80000",compile:"tsc -b ./tsconfig.json ./tsconfig.cjs.json && node utils/enable-esm.mjs",fix:"gts fix",prepare:"npm run compile",pretest:"npm run compile",webpack:"webpack","prebrowser-test":"npm run compile","browser-test":"node build/browser-test/browser-test-runner.js",docs:"jsdoc -c .jsdoc.js","docs-test":"linkinator docs","predocs-test":"npm run docs","samples-test":"cd samples/ && npm link ../ && npm test && cd ../",prelint:"cd samples; npm link ../; npm install",clean:"gts clean"},repository:{type:"git",directory:"packages/gaxios",url:"https://github.com/googleapis/google-cloud-node-core.git"},keywords:["google"],engines:{node:">=18"},author:"Google, LLC",license:"Apache-2.0",devDependencies:{"@babel/plugin-proposal-private-methods":"^7.18.6","@types/cors":"^2.8.6","@types/express":"^5.0.0","@types/extend":"^3.0.1","@types/mocha":"^10.0.10","@types/multiparty":"4.2.1","@types/mv":"^2.1.0","@types/ncp":"^2.0.1","@types/node":"^22.0.0","@types/sinon":"^17.0.0","@types/tmp":"0.2.6",assert:"^2.0.0",browserify:"^17.0.0",c8:"^10.0.0",cors:"^2.8.5",express:"^5.0.0",gts:"^6.0.0","is-docker":"^3.0.0",jsdoc:"^4.0.0","jsdoc-fresh":"^5.0.0","jsdoc-region-tag":"^4.0.0",karma:"^6.0.0","karma-chrome-launcher":"^3.0.0","karma-coverage":"^2.0.0","karma-firefox-launcher":"^2.0.0","karma-mocha":"^2.0.0","karma-remap-coverage":"^0.1.5","karma-sourcemap-loader":"^0.4.0","karma-webpack":"^5.0.1",linkinator:"^6.1.2",mocha:"^11.1.0",multiparty:"^4.2.1",mv:"^2.1.1",ncp:"^2.0.0",nock:"^14.0.0-beta.13","null-loader":"^4.0.0","pack-n-play":"^4.0.0",puppeteer:"^24.0.0",sinon:"^21.0.0","stream-browserify":"^3.0.0",tmp:"0.2.5","ts-loader":"^9.5.2",typescript:"^5.8.3",webpack:"^5.35.0","webpack-cli":"^6.0.1"},dependencies:{extend:"^3.0.2","https-proxy-agent":"^7.0.1","node-fetch":"^3.3.2",rimraf:"^5.0.1"},homepage:"https://github.com/googleapis/google-cloud-node-core/tree/main/packages/gaxios"}});var tk=z(($se,ek)=>{"use strict";var A4=QO();ek.exports={pkg:A4}});var Mb=z(Nr=>{"use strict";var nk=Nr&&Nr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Nr,"__esModule",{value:!0});Nr.GaxiosError=Nr.GAXIOS_ERROR_SYMBOL=void 0;Nr.defaultErrorRedactor=ok;var rk=nk(xu()),w4=nk(tk()),Db=w4.default.pkg;Nr.GAXIOS_ERROR_SYMBOL=Symbol.for(`${Db.name}-gaxios-error`);var Ub=class t extends Error{static{a(this,"GaxiosError")}config;response;code;status;error;[Nr.GAXIOS_ERROR_SYMBOL]=Db.version;static[Symbol.hasInstance](e){return e&&typeof e=="object"&&Nr.GAXIOS_ERROR_SYMBOL in e&&e[Nr.GAXIOS_ERROR_SYMBOL]===Db.version?!0:Function.prototype[Symbol.hasInstance].call(t,e)}constructor(e,r,o,n){if(super(e,{cause:n}),this.config=r,this.response=o,this.error=n instanceof Error?n:void 0,this.config=(0,rk.default)(!0,{},r),this.response&&(this.response.config=(0,rk.default)(!0,{},this.response.config)),this.response){try{this.response.data=I4(this.config.responseType,this.response?.bodyUsed?this.response?.data:void 0)}catch{}this.status=this.response.status}n instanceof DOMException?this.code=n.name:n&&typeof n=="object"&&"code"in n&&(typeof n.code=="string"||typeof n.code=="number")&&(this.code=n.code)}static extractAPIErrorFromResponse(e,r="The request failed"){let o=r;if(typeof e.data=="string"&&(o=e.data),e.data&&typeof e.data=="object"&&"error"in e.data&&e.data.error&&!e.ok){if(typeof e.data.error=="string")return{message:e.data.error,code:e.status,status:e.statusText};if(typeof e.data.error=="object"){o="message"in e.data.error&&typeof e.data.error.message=="string"?e.data.error.message:o;let n="status"in e.data.error&&typeof e.data.error.status=="string"?e.data.error.status:e.statusText,i="code"in e.data.error&&typeof e.data.error.code=="number"?e.data.error.code:e.status;if("errors"in e.data.error&&Array.isArray(e.data.error.errors)){let s=[];for(let u of e.data.error.errors)typeof u=="object"&&"message"in u&&typeof u.message=="string"&&s.push(u.message);return Object.assign({message:s.join(`
3
+ `)||o,code:i,status:n},e.data.error)}return Object.assign({message:o,code:i,status:n},e.data.error)}}return{message:o,code:e.status,status:e.statusText}}};Nr.GaxiosError=Ub;function I4(t,e){switch(t){case"stream":return e;case"json":return JSON.parse(JSON.stringify(e));case"arraybuffer":return JSON.parse(Buffer.from(e).toString("utf8"));case"blob":return JSON.parse(e.text());default:return e}}a(I4,"translateData");function ok(t){let e="<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>.";function r(i){i&&i.forEach((s,u)=>{(/^authentication$/i.test(u)||/^authorization$/i.test(u)||/secret/i.test(u))&&i.set(u,e)})}a(r,"redactHeaders");function o(i,s){if(typeof i=="object"&&i!==null&&typeof i[s]=="string"){let u=i[s];(/grant_type=/i.test(u)||/assertion=/i.test(u)||/secret/i.test(u))&&(i[s]=e)}}a(o,"redactString");function n(i){!i||typeof i!="object"||(i instanceof FormData||i instanceof URLSearchParams||"forEach"in i&&"set"in i?i.forEach((s,u)=>{(["grant_type","assertion"].includes(u)||/secret/.test(u))&&i.set(u,e)}):("grant_type"in i&&(i.grant_type=e),"assertion"in i&&(i.assertion=e),"client_secret"in i&&(i.client_secret=e)))}return a(n,"redactObject"),t.config&&(r(t.config.headers),o(t.config,"data"),n(t.config.data),o(t.config,"body"),n(t.config.body),t.config.url.searchParams.has("token")&&t.config.url.searchParams.set("token",e),t.config.url.searchParams.has("client_secret")&&t.config.url.searchParams.set("client_secret",e)),t.response&&(ok({config:t.response.config}),r(t.response.headers),t.response.bodyUsed&&(o(t.response,"data"),n(t.response.data))),t}a(ok,"defaultErrorRedactor")});var ak=z(Lb=>{"use strict";Object.defineProperty(Lb,"__esModule",{value:!0});Lb.getRetryConfig=C4;async function C4(t){let e=ik(t);if(!t||!t.config||!e&&!t.config.retry)return{shouldRetry:!1};e=e||{},e.currentRetryAttempt=e.currentRetryAttempt||0,e.retry=e.retry===void 0||e.retry===null?3:e.retry,e.httpMethodsToRetry=e.httpMethodsToRetry||["GET","HEAD","PUT","OPTIONS","DELETE"],e.noResponseRetries=e.noResponseRetries===void 0||e.noResponseRetries===null?2:e.noResponseRetries,e.retryDelayMultiplier=e.retryDelayMultiplier?e.retryDelayMultiplier:2,e.timeOfFirstRequest=e.timeOfFirstRequest?e.timeOfFirstRequest:Date.now(),e.totalTimeout=e.totalTimeout?e.totalTimeout:Number.MAX_SAFE_INTEGER,e.maxRetryDelay=e.maxRetryDelay?e.maxRetryDelay:Number.MAX_SAFE_INTEGER;let r=[[100,199],[408,408],[429,429],[500,599]];if(e.statusCodesToRetry=e.statusCodesToRetry||r,t.config.retryConfig=e,!await(e.shouldRetry||R4)(t))return{shouldRetry:!1,config:t.config};let n=O4(e);t.config.retryConfig.currentRetryAttempt+=1;let i=e.retryBackoff?e.retryBackoff(t,n):new Promise(s=>{setTimeout(s,n)});return e.onRetryAttempt&&await e.onRetryAttempt(t),await i,{shouldRetry:!0,config:t.config}}a(C4,"getRetryConfig");function R4(t){let e=ik(t);if(t.config.signal?.aborted&&t.code!=="TimeoutError"||t.code==="AbortError"||!e||e.retry===0||!t.response&&(e.currentRetryAttempt||0)>=e.noResponseRetries||!e.httpMethodsToRetry||!e.httpMethodsToRetry.includes(t.config.method?.toUpperCase()||"GET"))return!1;if(t.response&&t.response.status){let r=!1;for(let[o,n]of e.statusCodesToRetry){let i=t.response.status;if(i>=o&&i<=n){r=!0;break}}if(!r)return!1}return e.currentRetryAttempt=e.currentRetryAttempt||0,!(e.currentRetryAttempt>=e.retry)}a(R4,"shouldRetryRequest");function ik(t){if(t&&t.config&&t.config.retryConfig)return t.config.retryConfig}a(ik,"getConfig");function O4(t){let r=(t.currentRetryAttempt?0:t.retryDelay??100)+(Math.pow(t.retryDelayMultiplier,t.currentRetryAttempt)-1)/2*1e3,o=t.totalTimeout-(Date.now()-t.timeOfFirstRequest);return Math.min(r,o,t.maxRetryDelay)}a(O4,"getNextRetryDelay")});var Fb=z(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});Cf.GaxiosInterceptorManager=void 0;var jb=class extends Set{static{a(this,"GaxiosInterceptorManager")}};Cf.GaxiosInterceptorManager=jb});var ck=z((Fse,sk)=>{var ka=1e3,Na=ka*60,$a=Na*60,gi=$a*24,k4=gi*7,N4=gi*365.25;sk.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return $4(t);if(r==="number"&&isFinite(t))return e.long?D4(t):z4(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function $4(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),o=(e[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return r*N4;case"weeks":case"week":case"w":return r*k4;case"days":case"day":case"d":return r*gi;case"hours":case"hour":case"hrs":case"hr":case"h":return r*$a;case"minutes":case"minute":case"mins":case"min":case"m":return r*Na;case"seconds":case"second":case"secs":case"sec":case"s":return r*ka;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}a($4,"parse");function z4(t){var e=Math.abs(t);return e>=gi?Math.round(t/gi)+"d":e>=$a?Math.round(t/$a)+"h":e>=Na?Math.round(t/Na)+"m":e>=ka?Math.round(t/ka)+"s":t+"ms"}a(z4,"fmtShort");function D4(t){var e=Math.abs(t);return e>=gi?Rf(t,e,gi,"day"):e>=$a?Rf(t,e,$a,"hour"):e>=Na?Rf(t,e,Na,"minute"):e>=ka?Rf(t,e,ka,"second"):t+" ms"}a(D4,"fmtLong");function Rf(t,e,r,o){var n=e>=r*1.5;return Math.round(t/r)+" "+o+(n?"s":"")}a(Rf,"plural")});var Bb=z((qse,uk)=>{function U4(t){r.debug=r,r.default=r,r.coerce=l,r.disable=s,r.enable=n,r.enabled=u,r.humanize=ck(),r.destroy=p,Object.keys(t).forEach(f=>{r[f]=t[f]}),r.names=[],r.skips=[],r.formatters={};function e(f){let y=0;for(let m=0;m<f.length;m++)y=(y<<5)-y+f.charCodeAt(m),y|=0;return r.colors[Math.abs(y)%r.colors.length]}a(e,"selectColor"),r.selectColor=e;function r(f){let y,m=null,h,_;function P(...S){if(!P.enabled)return;let T=P,k=Number(new Date),L=k-(y||k);T.diff=L,T.prev=y,T.curr=k,y=k,S[0]=r.coerce(S[0]),typeof S[0]!="string"&&S.unshift("%O");let Y=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,(X,re)=>{if(X==="%%")return"%";Y++;let ce=r.formatters[re];if(typeof ce=="function"){let ee=S[Y];X=ce.call(T,ee),S.splice(Y,1),Y--}return X}),r.formatArgs.call(T,S),(T.log||r.log).apply(T,S)}return a(P,"debug"),P.namespace=f,P.useColors=r.useColors(),P.color=r.selectColor(f),P.extend=o,P.destroy=r.destroy,Object.defineProperty(P,"enabled",{enumerable:!0,configurable:!1,get:a(()=>m!==null?m:(h!==r.namespaces&&(h=r.namespaces,_=r.enabled(f)),_),"get"),set:a(S=>{m=S},"set")}),typeof r.init=="function"&&r.init(P),P}a(r,"createDebug");function o(f,y){let m=r(this.namespace+(typeof y>"u"?":":y)+f);return m.log=this.log,m}a(o,"extend");function n(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let y=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let m of y)m[0]==="-"?r.skips.push(m.slice(1)):r.names.push(m)}a(n,"enable");function i(f,y){let m=0,h=0,_=-1,P=0;for(;m<f.length;)if(h<y.length&&(y[h]===f[m]||y[h]==="*"))y[h]==="*"?(_=h,P=m,h++):(m++,h++);else if(_!==-1)h=_+1,P++,m=P;else return!1;for(;h<y.length&&y[h]==="*";)h++;return h===y.length}a(i,"matchesTemplate");function s(){let f=[...r.names,...r.skips.map(y=>"-"+y)].join(",");return r.enable(""),f}a(s,"disable");function u(f){for(let y of r.skips)if(i(f,y))return!1;for(let y of r.names)if(i(f,y))return!0;return!1}a(u,"enabled");function l(f){return f instanceof Error?f.stack||f.message:f}a(l,"coerce");function p(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return a(p,"destroy"),r.enable(r.load()),r}a(U4,"setup");uk.exports=U4});var lk=z((nr,Of)=>{nr.formatArgs=L4;nr.save=j4;nr.load=F4;nr.useColors=M4;nr.storage=B4();nr.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();nr.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function M4(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}a(M4,"useColors");function L4(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Of.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,n=>{n!=="%%"&&(r++,n==="%c"&&(o=r))}),t.splice(o,0,e)}a(L4,"formatArgs");nr.log=console.debug||console.log||(()=>{});function j4(t){try{t?nr.storage.setItem("debug",t):nr.storage.removeItem("debug")}catch{}}a(j4,"save");function F4(){let t;try{t=nr.storage.getItem("debug")||nr.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}a(F4,"load");function B4(){try{return localStorage}catch{}}a(B4,"localstorage");Of.exports=Bb()(nr);var{formatters:q4}=Of.exports;q4.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var pk=z((Hse,dk)=>{"use strict";dk.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",o=e.indexOf(r+t),n=e.indexOf("--");return o!==-1&&(n===-1||o<n)}});var hk=z((Zse,mk)=>{"use strict";var G4=require("os"),fk=require("tty"),$r=pk(),{env:$t}=process,wo;$r("no-color")||$r("no-colors")||$r("color=false")||$r("color=never")?wo=0:($r("color")||$r("colors")||$r("color=true")||$r("color=always"))&&(wo=1);"FORCE_COLOR"in $t&&($t.FORCE_COLOR==="true"?wo=1:$t.FORCE_COLOR==="false"?wo=0:wo=$t.FORCE_COLOR.length===0?1:Math.min(parseInt($t.FORCE_COLOR,10),3));function qb(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}a(qb,"translateLevel");function Gb(t,e){if(wo===0)return 0;if($r("color=16m")||$r("color=full")||$r("color=truecolor"))return 3;if($r("color=256"))return 2;if(t&&!e&&wo===void 0)return 0;let r=wo||0;if($t.TERM==="dumb")return r;if(process.platform==="win32"){let o=G4.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in $t)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(o=>o in $t)||$t.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in $t)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test($t.TEAMCITY_VERSION)?1:0;if($t.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in $t){let o=parseInt(($t.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch($t.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test($t.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test($t.TERM)||"COLORTERM"in $t?1:r}a(Gb,"supportsColor");function V4(t){let e=Gb(t,t&&t.isTTY);return qb(e)}a(V4,"getSupportLevel");mk.exports={supportsColor:V4,stdout:qb(Gb(!0,fk.isatty(1))),stderr:qb(Gb(!0,fk.isatty(2)))}});var yk=z((zt,Nf)=>{var H4=require("tty"),kf=require("util");zt.init=Q4;zt.log=J4;zt.formatArgs=W4;zt.save=X4;zt.load=Y4;zt.useColors=Z4;zt.destroy=kf.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");zt.colors=[6,2,3,4,5,1];try{let t=hk();t&&(t.stderr||t).level>=2&&(zt.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}zt.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(n,i)=>i.toUpperCase()),o=process.env[e];return/^(yes|on|true|enabled)$/i.test(o)?o=!0:/^(no|off|false|disabled)$/i.test(o)?o=!1:o==="null"?o=null:o=Number(o),t[r]=o,t},{});function Z4(){return"colors"in zt.inspectOpts?!!zt.inspectOpts.colors:H4.isatty(process.stderr.fd)}a(Z4,"useColors");function W4(t){let{namespace:e,useColors:r}=this;if(r){let o=this.color,n="\x1B[3"+(o<8?o:"8;5;"+o),i=` ${n};1m${e} \x1B[0m`;t[0]=i+t[0].split(`
4
4
  `).join(`
5
- `+i),t.push(n+"m+"+Nf.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=J4()+e+" "+t[0]}a(K4,"formatArgs");function J4(){return zt.inspectOpts.hideDate?"":new Date().toISOString()+" "}a(J4,"getDate");function X4(...t){return process.stderr.write(kf.formatWithOptions(zt.inspectOpts,...t)+`
6
- `)}a(X4,"log");function Y4(t){t?process.env.DEBUG=t:delete process.env.DEBUG}a(Y4,"save");function Q4(){return process.env.DEBUG}a(Q4,"load");function e6(t){t.inspectOpts={};let e=Object.keys(zt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=zt.inspectOpts[e[r]]}a(e6,"init");Nf.exports=Bb()(zt);var{formatters:yk}=Nf.exports;yk.o=function(t){return this.inspectOpts.colors=this.useColors,kf.inspect(t,this.inspectOpts).split(`
7
- `).map(e=>e.trim()).join(" ")};yk.O=function(t){return this.inspectOpts.colors=this.useColors,kf.inspect(t,this.inspectOpts)}});var Hb=z((Xse,Vb)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Vb.exports=dk():Vb.exports=_k()});var Pk=z(or=>{"use strict";var t6=or&&or.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),r6=or&&or.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vk=or&&or.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&t6(e,t,r);return r6(e,t),e};Object.defineProperty(or,"__esModule",{value:!0});or.req=or.json=or.toBuffer=void 0;var n6=vk(require("http")),o6=vk(require("https"));async function bk(t){let e=0,r=[];for await(let o of t)e+=o.length,r.push(o);return Buffer.concat(r,e)}a(bk,"toBuffer");or.toBuffer=bk;async function i6(t){let r=(await bk(t)).toString("utf8");try{return JSON.parse(r)}catch(o){let n=o;throw n.message+=` (input: ${r})`,n}}a(i6,"json");or.json=i6;function a6(t,e={}){let o=((typeof t=="string"?t:t.href).startsWith("https:")?o6:n6).request(t,e),n=new Promise((i,s)=>{o.once("response",i).once("error",s).end()});return o.then=n.then.bind(n),o}a(a6,"req");or.req=a6});var Tk=z(hr=>{"use strict";var Sk=hr&&hr.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),s6=hr&&hr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),xk=hr&&hr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Sk(e,t,r);return s6(e,t),e},c6=hr&&hr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Sk(e,t,r)};Object.defineProperty(hr,"__esModule",{value:!0});hr.Agent=void 0;var u6=xk(require("net")),Ek=xk(require("http")),l6=require("https");c6(Pk(),hr);var dn=Symbol("AgentBaseInternalState"),Zb=class extends Ek.Agent{static{a(this,"Agent")}constructor(e){super(e),this[dn]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
8
- `).some(o=>o.indexOf("(https.js:")!==-1||o.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new u6.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let o=this.sockets[e],n=o.indexOf(r);n!==-1&&(o.splice(n,1),this.totalSocketCount--,o.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?l6.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,o){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),s=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(u=>{if(this.decrementSockets(i,s),u instanceof Ek.Agent)try{return u.addRequest(e,n)}catch(l){return o(l)}this[dn].currentSocket=u,super.createSocket(e,r,o)},u=>{this.decrementSockets(i,s),o(u)})}createConnection(){let e=this[dn].currentSocket;if(this[dn].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[dn].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[dn]&&(this[dn].defaultPort=e)}get protocol(){return this[dn].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[dn]&&(this[dn].protocol=e)}};hr.Agent=Zb});var Ak=z(za=>{"use strict";var d6=za&&za.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(za,"__esModule",{value:!0});za.parseProxyResponse=void 0;var p6=d6(Hb()),$f=(0,p6.default)("https-proxy-agent:parse-proxy-response");function f6(t){return new Promise((e,r)=>{let o=0,n=[];function i(){let f=t.read();f?p(f):t.once("readable",i)}a(i,"read");function s(){t.removeListener("end",u),t.removeListener("error",l),t.removeListener("readable",i)}a(s,"cleanup");function u(){s(),$f("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}a(u,"onend");function l(f){s(),$f("onerror %o",f),r(f)}a(l,"onerror");function p(f){n.push(f),o+=f.length;let y=Buffer.concat(n,o),m=y.indexOf(`\r
5
+ `+i),t.push(n+"m+"+Nf.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=K4()+e+" "+t[0]}a(W4,"formatArgs");function K4(){return zt.inspectOpts.hideDate?"":new Date().toISOString()+" "}a(K4,"getDate");function J4(...t){return process.stderr.write(kf.formatWithOptions(zt.inspectOpts,...t)+`
6
+ `)}a(J4,"log");function X4(t){t?process.env.DEBUG=t:delete process.env.DEBUG}a(X4,"save");function Y4(){return process.env.DEBUG}a(Y4,"load");function Q4(t){t.inspectOpts={};let e=Object.keys(zt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=zt.inspectOpts[e[r]]}a(Q4,"init");Nf.exports=Bb()(zt);var{formatters:gk}=Nf.exports;gk.o=function(t){return this.inspectOpts.colors=this.useColors,kf.inspect(t,this.inspectOpts).split(`
7
+ `).map(e=>e.trim()).join(" ")};gk.O=function(t){return this.inspectOpts.colors=this.useColors,kf.inspect(t,this.inspectOpts)}});var Hb=z((Jse,Vb)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Vb.exports=lk():Vb.exports=yk()});var bk=z(or=>{"use strict";var e6=or&&or.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),t6=or&&or.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),_k=or&&or.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&e6(e,t,r);return t6(e,t),e};Object.defineProperty(or,"__esModule",{value:!0});or.req=or.json=or.toBuffer=void 0;var r6=_k(require("http")),n6=_k(require("https"));async function vk(t){let e=0,r=[];for await(let o of t)e+=o.length,r.push(o);return Buffer.concat(r,e)}a(vk,"toBuffer");or.toBuffer=vk;async function o6(t){let r=(await vk(t)).toString("utf8");try{return JSON.parse(r)}catch(o){let n=o;throw n.message+=` (input: ${r})`,n}}a(o6,"json");or.json=o6;function i6(t,e={}){let o=((typeof t=="string"?t:t.href).startsWith("https:")?n6:r6).request(t,e),n=new Promise((i,s)=>{o.once("response",i).once("error",s).end()});return o.then=n.then.bind(n),o}a(i6,"req");or.req=i6});var xk=z(hr=>{"use strict";var Pk=hr&&hr.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),a6=hr&&hr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Sk=hr&&hr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Pk(e,t,r);return a6(e,t),e},s6=hr&&hr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Pk(e,t,r)};Object.defineProperty(hr,"__esModule",{value:!0});hr.Agent=void 0;var c6=Sk(require("net")),Ek=Sk(require("http")),u6=require("https");s6(bk(),hr);var dn=Symbol("AgentBaseInternalState"),Zb=class extends Ek.Agent{static{a(this,"Agent")}constructor(e){super(e),this[dn]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
8
+ `).some(o=>o.indexOf("(https.js:")!==-1||o.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new c6.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let o=this.sockets[e],n=o.indexOf(r);n!==-1&&(o.splice(n,1),this.totalSocketCount--,o.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?u6.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,o){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),s=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(u=>{if(this.decrementSockets(i,s),u instanceof Ek.Agent)try{return u.addRequest(e,n)}catch(l){return o(l)}this[dn].currentSocket=u,super.createSocket(e,r,o)},u=>{this.decrementSockets(i,s),o(u)})}createConnection(){let e=this[dn].currentSocket;if(this[dn].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[dn].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[dn]&&(this[dn].defaultPort=e)}get protocol(){return this[dn].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[dn]&&(this[dn].protocol=e)}};hr.Agent=Zb});var Tk=z(za=>{"use strict";var l6=za&&za.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(za,"__esModule",{value:!0});za.parseProxyResponse=void 0;var d6=l6(Hb()),$f=(0,d6.default)("https-proxy-agent:parse-proxy-response");function p6(t){return new Promise((e,r)=>{let o=0,n=[];function i(){let f=t.read();f?p(f):t.once("readable",i)}a(i,"read");function s(){t.removeListener("end",u),t.removeListener("error",l),t.removeListener("readable",i)}a(s,"cleanup");function u(){s(),$f("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}a(u,"onend");function l(f){s(),$f("onerror %o",f),r(f)}a(l,"onerror");function p(f){n.push(f),o+=f.length;let y=Buffer.concat(n,o),m=y.indexOf(`\r
9
9
  \r
10
10
  `);if(m===-1){$f("have not received end of HTTP headers yet..."),i();return}let h=y.slice(0,m).toString("ascii").split(`\r
11
- `),_=h.shift();if(!_)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let E=_.split(" "),S=+E[1],T=E.slice(2).join(" "),k={};for(let L of h){if(!L)continue;let Y=L.indexOf(":");if(Y===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${L}"`));let H=L.slice(0,Y).toLowerCase(),X=L.slice(Y+1).trimStart(),re=k[H];typeof re=="string"?k[H]=[re,X]:Array.isArray(re)?re.push(X):k[H]=X}$f("got proxy server response: %o %o",_,k),s(),e({connect:{statusCode:S,statusText:T,headers:k},buffered:y})}a(p,"ondata"),t.on("error",l),t.on("end",u),i()})}a(f6,"parseProxyResponse");za.parseProxyResponse=f6});var kk=z(zr=>{"use strict";var m6=zr&&zr.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),h6=zr&&zr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Rk=zr&&zr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&m6(e,t,r);return h6(e,t),e},Ok=zr&&zr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(zr,"__esModule",{value:!0});zr.HttpsProxyAgent=void 0;var zf=Rk(require("net")),wk=Rk(require("tls")),g6=Ok(require("assert")),y6=Ok(Hb()),_6=Tk(),v6=require("url"),b6=Ak(),Tu=(0,y6.default)("https-proxy-agent"),Ik=a(t=>t.servername===void 0&&t.host&&!zf.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),Df=class extends _6.Agent{static{a(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new v6.URL(e):e,this.proxyHeaders=r?.headers??{},Tu("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let o=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Ck(r,"headers"):null,host:o,port:n}}async connect(e,r){let{proxy:o}=this;if(!r.host)throw new TypeError('No "host" provided');let n;o.protocol==="https:"?(Tu("Creating `tls.Socket`: %o",this.connectOpts),n=wk.connect(Ik(this.connectOpts))):(Tu("Creating `net.Socket`: %o",this.connectOpts),n=zf.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},s=zf.isIPv6(r.host)?`[${r.host}]`:r.host,u=`CONNECT ${s}:${r.port} HTTP/1.1\r
11
+ `),_=h.shift();if(!_)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let P=_.split(" "),S=+P[1],T=P.slice(2).join(" "),k={};for(let L of h){if(!L)continue;let Y=L.indexOf(":");if(Y===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${L}"`));let H=L.slice(0,Y).toLowerCase(),X=L.slice(Y+1).trimStart(),re=k[H];typeof re=="string"?k[H]=[re,X]:Array.isArray(re)?re.push(X):k[H]=X}$f("got proxy server response: %o %o",_,k),s(),e({connect:{statusCode:S,statusText:T,headers:k},buffered:y})}a(p,"ondata"),t.on("error",l),t.on("end",u),i()})}a(p6,"parseProxyResponse");za.parseProxyResponse=p6});var Ok=z(zr=>{"use strict";var f6=zr&&zr.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),m6=zr&&zr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ck=zr&&zr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&f6(e,t,r);return m6(e,t),e},Rk=zr&&zr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(zr,"__esModule",{value:!0});zr.HttpsProxyAgent=void 0;var zf=Ck(require("net")),Ak=Ck(require("tls")),h6=Rk(require("assert")),g6=Rk(Hb()),y6=xk(),_6=require("url"),v6=Tk(),Tu=(0,g6.default)("https-proxy-agent"),wk=a(t=>t.servername===void 0&&t.host&&!zf.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),Df=class extends y6.Agent{static{a(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new _6.URL(e):e,this.proxyHeaders=r?.headers??{},Tu("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let o=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Ik(r,"headers"):null,host:o,port:n}}async connect(e,r){let{proxy:o}=this;if(!r.host)throw new TypeError('No "host" provided');let n;o.protocol==="https:"?(Tu("Creating `tls.Socket`: %o",this.connectOpts),n=Ak.connect(wk(this.connectOpts))):(Tu("Creating `net.Socket`: %o",this.connectOpts),n=zf.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},s=zf.isIPv6(r.host)?`[${r.host}]`:r.host,u=`CONNECT ${s}:${r.port} HTTP/1.1\r
12
12
  `;if(o.username||o.password){let m=`${decodeURIComponent(o.username)}:${decodeURIComponent(o.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(m).toString("base64")}`}i.Host=`${s}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let m of Object.keys(i))u+=`${m}: ${i[m]}\r
13
- `;let l=(0,b6.parseProxyResponse)(n);n.write(`${u}\r
14
- `);let{connect:p,buffered:f}=await l;if(e.emit("proxyConnect",p),this.emit("proxyConnect",p,e),p.statusCode===200)return e.once("socket",P6),r.secureEndpoint?(Tu("Upgrading socket connection to TLS"),wk.connect({...Ck(Ik(r),"host","path","port"),socket:n})):n;n.destroy();let y=new zf.Socket({writable:!1});return y.readable=!0,e.once("socket",m=>{Tu("Replaying proxy buffer for failed request"),(0,g6.default)(m.listenerCount("data")>0),m.push(f),m.push(null)}),y}};Df.protocols=["http","https"];zr.HttpsProxyAgent=Df;function P6(t){t.resume()}a(P6,"resume");function Ck(t,...e){let r={},o;for(o in t)e.includes(o)||(r[o]=t[o]);return r}a(Ck,"omit")});function E6(t){if(!/^data:/i.test(t))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');t=t.replace(/\r?\n/g,"");let e=t.indexOf(",");if(e===-1||e<=4)throw new TypeError("malformed data: URI");let r=t.substring(5,e).split(";"),o="",n=!1,i=r[0]||"text/plain",s=i;for(let f=1;f<r.length;f++)r[f]==="base64"?n=!0:r[f]&&(s+=`;${r[f]}`,r[f].indexOf("charset=")===0&&(o=r[f].substring(8)));!r[0]&&!o.length&&(s+=";charset=US-ASCII",o="US-ASCII");let u=n?"base64":"ascii",l=unescape(t.substring(e+1)),p=Buffer.from(l,u);return p.type=i,p.typeFull=s,p.charset=o,p}var Nk,$k=Ct(()=>{a(E6,"dataUriToBuffer");Nk=E6});var Dk=z((Uf,zk)=>{(function(t,e){typeof Uf=="object"&&typeof zk<"u"?e(Uf):typeof define=="function"&&define.amd?define(["exports"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.WebStreamsPolyfill={}))})(Uf,(function(t){"use strict";function e(){}a(e,"noop");function r(c){return typeof c=="object"&&c!==null||typeof c=="function"}a(r,"typeIsObject");let o=e;function n(c,d){try{Object.defineProperty(c,"name",{value:d,configurable:!0})}catch{}}a(n,"setFunctionName");let i=Promise,s=Promise.prototype.then,u=Promise.reject.bind(i);function l(c){return new i(c)}a(l,"newPromise");function p(c){return l(d=>d(c))}a(p,"promiseResolvedWith");function f(c){return u(c)}a(f,"promiseRejectedWith");function y(c,d,g){return s.call(c,d,g)}a(y,"PerformPromiseThen");function m(c,d,g){y(y(c,d,g),void 0,o)}a(m,"uponPromise");function h(c,d){m(c,d)}a(h,"uponFulfillment");function _(c,d){m(c,void 0,d)}a(_,"uponRejection");function E(c,d,g){return y(c,d,g)}a(E,"transformPromiseWith");function S(c){y(c,void 0,o)}a(S,"setPromiseIsHandledToTrue");let T=a(c=>{if(typeof queueMicrotask=="function")T=queueMicrotask;else{let d=p(void 0);T=a(g=>y(d,g),"_queueMicrotask")}return T(c)},"_queueMicrotask");function k(c,d,g){if(typeof c!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(c,d,g)}a(k,"reflectCall");function L(c,d,g){try{return p(k(c,d,g))}catch(P){return f(P)}}a(L,"promiseCall");let Y=16384;class H{static{a(this,"SimpleQueue")}constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(d){let g=this._back,P=g;g._elements.length===Y-1&&(P={_elements:[],_next:void 0}),g._elements.push(d),P!==g&&(this._back=P,g._next=P),++this._size}shift(){let d=this._front,g=d,P=this._cursor,I=P+1,F=d._elements,V=F[P];return I===Y&&(g=d._next,I=0),--this._size,this._cursor=I,d!==g&&(this._front=g),F[P]=void 0,V}forEach(d){let g=this._cursor,P=this._front,I=P._elements;for(;(g!==I.length||P._next!==void 0)&&!(g===I.length&&(P=P._next,I=P._elements,g=0,I.length===0));)d(I[g]),++g}peek(){let d=this._front,g=this._cursor;return d._elements[g]}}let X=Symbol("[[AbortSteps]]"),re=Symbol("[[ErrorSteps]]"),ce=Symbol("[[CancelSteps]]"),ee=Symbol("[[PullSteps]]"),Le=Symbol("[[ReleaseSteps]]");function ue(c,d){c._ownerReadableStream=d,d._reader=c,d._state==="readable"?Q(c):d._state==="closed"?me(c):pe(c,d._storedError)}a(ue,"ReadableStreamReaderGenericInitialize");function K(c,d){let g=c._ownerReadableStream;return qr(g,d)}a(K,"ReadableStreamReaderGenericCancel");function Z(c){let d=c._ownerReadableStream;d._state==="readable"?ze(c,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):je(c,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),d._readableStreamController[Le](),d._reader=void 0,c._ownerReadableStream=void 0}a(Z,"ReadableStreamReaderGenericRelease");function oe(c){return new TypeError("Cannot "+c+" a stream using a released reader")}a(oe,"readerLockException");function Q(c){c._closedPromise=l((d,g)=>{c._closedPromise_resolve=d,c._closedPromise_reject=g})}a(Q,"defaultReaderClosedPromiseInitialize");function pe(c,d){Q(c),ze(c,d)}a(pe,"defaultReaderClosedPromiseInitializeAsRejected");function me(c){Q(c),Qe(c)}a(me,"defaultReaderClosedPromiseInitializeAsResolved");function ze(c,d){c._closedPromise_reject!==void 0&&(S(c._closedPromise),c._closedPromise_reject(d),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0)}a(ze,"defaultReaderClosedPromiseReject");function je(c,d){pe(c,d)}a(je,"defaultReaderClosedPromiseResetToRejected");function Qe(c){c._closedPromise_resolve!==void 0&&(c._closedPromise_resolve(void 0),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0)}a(Qe,"defaultReaderClosedPromiseResolve");let it=Number.isFinite||function(c){return typeof c=="number"&&isFinite(c)},It=Math.trunc||function(c){return c<0?Math.ceil(c):Math.floor(c)};function se(c){return typeof c=="object"||typeof c=="function"}a(se,"isDictionary");function gt(c,d){if(c!==void 0&&!se(c))throw new TypeError(`${d} is not an object.`)}a(gt,"assertDictionary");function _t(c,d){if(typeof c!="function")throw new TypeError(`${d} is not a function.`)}a(_t,"assertFunction");function sr(c){return typeof c=="object"&&c!==null||typeof c=="function"}a(sr,"isObject");function Je(c,d){if(!sr(c))throw new TypeError(`${d} is not an object.`)}a(Je,"assertObject");function et(c,d,g){if(c===void 0)throw new TypeError(`Parameter ${d} is required in '${g}'.`)}a(et,"assertRequiredArgument");function b(c,d,g){if(c===void 0)throw new TypeError(`${d} is required in '${g}'.`)}a(b,"assertRequiredField");function x(c){return Number(c)}a(x,"convertUnrestrictedDouble");function A(c){return c===0?0:c}a(A,"censorNegativeZero");function M(c){return A(It(c))}a(M,"integerPart");function R(c,d){let P=Number.MAX_SAFE_INTEGER,I=Number(c);if(I=A(I),!it(I))throw new TypeError(`${d} is not a finite number`);if(I=M(I),I<0||I>P)throw new TypeError(`${d} is outside the accepted range of 0 to ${P}, inclusive`);return!it(I)||I===0?0:I}a(R,"convertUnsignedLongLongWithEnforceRange");function $(c,d){if(!to(c))throw new TypeError(`${d} is not a ReadableStream.`)}a($,"assertReadableStream");function B(c){return new J(c)}a(B,"AcquireReadableStreamDefaultReader");function C(c,d){c._reader._readRequests.push(d)}a(C,"ReadableStreamAddReadRequest");function N(c,d,g){let I=c._reader._readRequests.shift();g?I._closeSteps():I._chunkSteps(d)}a(N,"ReadableStreamFulfillReadRequest");function j(c){return c._reader._readRequests.length}a(j,"ReadableStreamGetNumReadRequests");function U(c){let d=c._reader;return!(d===void 0||!he(d))}a(U,"ReadableStreamHasDefaultReader");class J{static{a(this,"ReadableStreamDefaultReader")}constructor(d){if(et(d,1,"ReadableStreamDefaultReader"),$(d,"First parameter"),ro(d))throw new TypeError("This stream has already been locked for exclusive reading by another reader");ue(this,d),this._readRequests=new H}get closed(){return he(this)?this._closedPromise:f(lt("closed"))}cancel(d=void 0){return he(this)?this._ownerReadableStream===void 0?f(oe("cancel")):K(this,d):f(lt("cancel"))}read(){if(!he(this))return f(lt("read"));if(this._ownerReadableStream===void 0)return f(oe("read from"));let d,g,P=l((F,V)=>{d=F,g=V});return ye(this,{_chunkSteps:a(F=>d({value:F,done:!1}),"_chunkSteps"),_closeSteps:a(()=>d({value:void 0,done:!0}),"_closeSteps"),_errorSteps:a(F=>g(F),"_errorSteps")}),P}releaseLock(){if(!he(this))throw lt("releaseLock");this._ownerReadableStream!==void 0&&Ze(this)}}Object.defineProperties(J.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),n(J.prototype.cancel,"cancel"),n(J.prototype.read,"read"),n(J.prototype.releaseLock,"releaseLock"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(J.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});function he(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_readRequests")?!1:c instanceof J}a(he,"IsReadableStreamDefaultReader");function ye(c,d){let g=c._ownerReadableStream;g._disturbed=!0,g._state==="closed"?d._closeSteps():g._state==="errored"?d._errorSteps(g._storedError):g._readableStreamController[ee](d)}a(ye,"ReadableStreamDefaultReaderRead");function Ze(c){Z(c);let d=new TypeError("Reader was released");ut(c,d)}a(Ze,"ReadableStreamDefaultReaderRelease");function ut(c,d){let g=c._readRequests;c._readRequests=new H,g.forEach(P=>{P._errorSteps(d)})}a(ut,"ReadableStreamDefaultReaderErrorReadRequests");function lt(c){return new TypeError(`ReadableStreamDefaultReader.prototype.${c} can only be used on a ReadableStreamDefaultReader`)}a(lt,"defaultReaderBrandCheckException");let Ve=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype);class Ke{static{a(this,"ReadableStreamAsyncIteratorImpl")}constructor(d,g){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=d,this._preventCancel=g}next(){let d=a(()=>this._nextSteps(),"nextSteps");return this._ongoingPromise=this._ongoingPromise?E(this._ongoingPromise,d,d):d(),this._ongoingPromise}return(d){let g=a(()=>this._returnSteps(d),"returnSteps");return this._ongoingPromise?E(this._ongoingPromise,g,g):g()}_nextSteps(){if(this._isFinished)return Promise.resolve({value:void 0,done:!0});let d=this._reader,g,P,I=l((V,fe)=>{g=V,P=fe});return ye(d,{_chunkSteps:a(V=>{this._ongoingPromise=void 0,T(()=>g({value:V,done:!1}))},"_chunkSteps"),_closeSteps:a(()=>{this._ongoingPromise=void 0,this._isFinished=!0,Z(d),g({value:void 0,done:!0})},"_closeSteps"),_errorSteps:a(V=>{this._ongoingPromise=void 0,this._isFinished=!0,Z(d),P(V)},"_errorSteps")}),I}_returnSteps(d){if(this._isFinished)return Promise.resolve({value:d,done:!0});this._isFinished=!0;let g=this._reader;if(!this._preventCancel){let P=K(g,d);return Z(g),E(P,()=>({value:d,done:!0}))}return Z(g),p({value:d,done:!0})}}let St={next(){return Oi(this)?this._asyncIteratorImpl.next():f(ki("next"))},return(c){return Oi(this)?this._asyncIteratorImpl.return(c):f(ki("return"))}};Object.setPrototypeOf(St,Ve);function Ri(c,d){let g=B(c),P=new Ke(g,d),I=Object.create(St);return I._asyncIteratorImpl=P,I}a(Ri,"AcquireReadableStreamAsyncIterator");function Oi(c){if(!r(c)||!Object.prototype.hasOwnProperty.call(c,"_asyncIteratorImpl"))return!1;try{return c._asyncIteratorImpl instanceof Ke}catch{return!1}}a(Oi,"IsReadableStreamAsyncIterator");function ki(c){return new TypeError(`ReadableStreamAsyncIterator.${c} can only be used on a ReadableSteamAsyncIterator`)}a(ki,"streamAsyncIteratorBrandCheckException");let cr=Number.isNaN||function(c){return c!==c};var An,Lt,xt;function tt(c){return c.slice()}a(tt,"CreateArrayFromList");function MS(c,d,g,P,I){new Uint8Array(c).set(new Uint8Array(g,P,I),d)}a(MS,"CopyDataBlockBytes");let wn=a(c=>(typeof c.transfer=="function"?wn=a(d=>d.transfer(),"TransferArrayBuffer"):typeof structuredClone=="function"?wn=a(d=>structuredClone(d,{transfer:[d]}),"TransferArrayBuffer"):wn=a(d=>d,"TransferArrayBuffer"),wn(c)),"TransferArrayBuffer"),Xn=a(c=>(typeof c.detached=="boolean"?Xn=a(d=>d.detached,"IsDetachedBuffer"):Xn=a(d=>d.byteLength===0,"IsDetachedBuffer"),Xn(c)),"IsDetachedBuffer");function LS(c,d,g){if(c.slice)return c.slice(d,g);let P=g-d,I=new ArrayBuffer(P);return MS(I,0,c,d,P),I}a(LS,"ArrayBufferSlice");function pl(c,d){let g=c[d];if(g!=null){if(typeof g!="function")throw new TypeError(`${String(d)} is not a function`);return g}}a(pl,"GetMethod");function _D(c){let d={[Symbol.iterator]:()=>c.iterator},g=(async function*(){return yield*d})(),P=g.next;return{iterator:g,nextMethod:P,done:!1}}a(_D,"CreateAsyncFromSyncIterator");let uh=(xt=(An=Symbol.asyncIterator)!==null&&An!==void 0?An:(Lt=Symbol.for)===null||Lt===void 0?void 0:Lt.call(Symbol,"Symbol.asyncIterator"))!==null&&xt!==void 0?xt:"@@asyncIterator";function jS(c,d="sync",g){if(g===void 0)if(d==="async"){if(g=pl(c,uh),g===void 0){let F=pl(c,Symbol.iterator),V=jS(c,"sync",F);return _D(V)}}else g=pl(c,Symbol.iterator);if(g===void 0)throw new TypeError("The object is not iterable");let P=k(g,c,[]);if(!r(P))throw new TypeError("The iterator method must return an object");let I=P.next;return{iterator:P,nextMethod:I,done:!1}}a(jS,"GetIterator");function vD(c){let d=k(c.nextMethod,c.iterator,[]);if(!r(d))throw new TypeError("The iterator.next() method must return an object");return d}a(vD,"IteratorNext");function bD(c){return!!c.done}a(bD,"IteratorComplete");function PD(c){return c.value}a(PD,"IteratorValue");function ED(c){return!(typeof c!="number"||cr(c)||c<0)}a(ED,"IsNonNegativeNumber");function FS(c){let d=LS(c.buffer,c.byteOffset,c.byteOffset+c.byteLength);return new Uint8Array(d)}a(FS,"CloneAsUint8Array");function lh(c){let d=c._queue.shift();return c._queueTotalSize-=d.size,c._queueTotalSize<0&&(c._queueTotalSize=0),d.value}a(lh,"DequeueValue");function dh(c,d,g){if(!ED(g)||g===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");c._queue.push({value:d,size:g}),c._queueTotalSize+=g}a(dh,"EnqueueValueWithSize");function SD(c){return c._queue.peek().value}a(SD,"PeekQueueValue");function Yn(c){c._queue=new H,c._queueTotalSize=0}a(Yn,"ResetQueue");function BS(c){return c===DataView}a(BS,"isDataViewConstructor");function xD(c){return BS(c.constructor)}a(xD,"isDataView");function TD(c){return BS(c)?1:c.BYTES_PER_ELEMENT}a(TD,"arrayBufferViewElementSize");class Uo{static{a(this,"ReadableStreamBYOBRequest")}constructor(){throw new TypeError("Illegal constructor")}get view(){if(!ph(this))throw yh("view");return this._view}respond(d){if(!ph(this))throw yh("respond");if(et(d,1,"respond"),d=R(d,"First parameter"),this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(Xn(this._view.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");gl(this._associatedReadableByteStreamController,d)}respondWithNewView(d){if(!ph(this))throw yh("respondWithNewView");if(et(d,1,"respondWithNewView"),!ArrayBuffer.isView(d))throw new TypeError("You can only respond with array buffer views");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(Xn(d.buffer))throw new TypeError("The given view's buffer has been detached and so cannot be used as a response");yl(this._associatedReadableByteStreamController,d)}}Object.defineProperties(Uo.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),n(Uo.prototype.respond,"respond"),n(Uo.prototype.respondWithNewView,"respondWithNewView"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Uo.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});class In{static{a(this,"ReadableByteStreamController")}constructor(){throw new TypeError("Illegal constructor")}get byobRequest(){if(!Mo(this))throw cs("byobRequest");return gh(this)}get desiredSize(){if(!Mo(this))throw cs("desiredSize");return YS(this)}close(){if(!Mo(this))throw cs("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");let d=this._controlledReadableByteStream._state;if(d!=="readable")throw new TypeError(`The stream (in ${d} state) is not in the readable state and cannot be closed`);ss(this)}enqueue(d){if(!Mo(this))throw cs("enqueue");if(et(d,1,"enqueue"),!ArrayBuffer.isView(d))throw new TypeError("chunk must be an array buffer view");if(d.byteLength===0)throw new TypeError("chunk must have non-zero byteLength");if(d.buffer.byteLength===0)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");let g=this._controlledReadableByteStream._state;if(g!=="readable")throw new TypeError(`The stream (in ${g} state) is not in the readable state and cannot be enqueued to`);hl(this,d)}error(d=void 0){if(!Mo(this))throw cs("error");wr(this,d)}[ce](d){qS(this),Yn(this);let g=this._cancelAlgorithm(d);return ml(this),g}[ee](d){let g=this._controlledReadableByteStream;if(this._queueTotalSize>0){XS(this,d);return}let P=this._autoAllocateChunkSize;if(P!==void 0){let I;try{I=new ArrayBuffer(P)}catch(V){d._errorSteps(V);return}let F={buffer:I,bufferByteLength:P,byteOffset:0,byteLength:P,bytesFilled:0,minimumFill:1,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(F)}C(g,d),Lo(this)}[Le](){if(this._pendingPullIntos.length>0){let d=this._pendingPullIntos.peek();d.readerType="none",this._pendingPullIntos=new H,this._pendingPullIntos.push(d)}}}Object.defineProperties(In.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),n(In.prototype.close,"close"),n(In.prototype.enqueue,"enqueue"),n(In.prototype.error,"error"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(In.prototype,Symbol.toStringTag,{value:"ReadableByteStreamController",configurable:!0});function Mo(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledReadableByteStream")?!1:c instanceof In}a(Mo,"IsReadableByteStreamController");function ph(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_associatedReadableByteStreamController")?!1:c instanceof Uo}a(ph,"IsReadableStreamBYOBRequest");function Lo(c){if(!RD(c))return;if(c._pulling){c._pullAgain=!0;return}c._pulling=!0;let g=c._pullAlgorithm();m(g,()=>(c._pulling=!1,c._pullAgain&&(c._pullAgain=!1,Lo(c)),null),P=>(wr(c,P),null))}a(Lo,"ReadableByteStreamControllerCallPullIfNeeded");function qS(c){mh(c),c._pendingPullIntos=new H}a(qS,"ReadableByteStreamControllerClearPendingPullIntos");function fh(c,d){let g=!1;c._state==="closed"&&(g=!0);let P=GS(d);d.readerType==="default"?N(c,P,g):DD(c,P,g)}a(fh,"ReadableByteStreamControllerCommitPullIntoDescriptor");function GS(c){let d=c.bytesFilled,g=c.elementSize;return new c.viewConstructor(c.buffer,c.byteOffset,d/g)}a(GS,"ReadableByteStreamControllerConvertPullIntoDescriptor");function fl(c,d,g,P){c._queue.push({buffer:d,byteOffset:g,byteLength:P}),c._queueTotalSize+=P}a(fl,"ReadableByteStreamControllerEnqueueChunkToQueue");function VS(c,d,g,P){let I;try{I=LS(d,g,g+P)}catch(F){throw wr(c,F),F}fl(c,I,0,P)}a(VS,"ReadableByteStreamControllerEnqueueClonedChunkToQueue");function HS(c,d){d.bytesFilled>0&&VS(c,d.buffer,d.byteOffset,d.bytesFilled),Ni(c)}a(HS,"ReadableByteStreamControllerEnqueueDetachedPullIntoToQueue");function ZS(c,d){let g=Math.min(c._queueTotalSize,d.byteLength-d.bytesFilled),P=d.bytesFilled+g,I=g,F=!1,V=P%d.elementSize,fe=P-V;fe>=d.minimumFill&&(I=fe-d.bytesFilled,F=!0);let Ie=c._queue;for(;I>0;){let _e=Ie.peek(),Ne=Math.min(I,_e.byteLength),Fe=d.byteOffset+d.bytesFilled;MS(d.buffer,Fe,_e.buffer,_e.byteOffset,Ne),_e.byteLength===Ne?Ie.shift():(_e.byteOffset+=Ne,_e.byteLength-=Ne),c._queueTotalSize-=Ne,WS(c,Ne,d),I-=Ne}return F}a(ZS,"ReadableByteStreamControllerFillPullIntoDescriptorFromQueue");function WS(c,d,g){g.bytesFilled+=d}a(WS,"ReadableByteStreamControllerFillHeadPullIntoDescriptor");function KS(c){c._queueTotalSize===0&&c._closeRequested?(ml(c),ms(c._controlledReadableByteStream)):Lo(c)}a(KS,"ReadableByteStreamControllerHandleQueueDrain");function mh(c){c._byobRequest!==null&&(c._byobRequest._associatedReadableByteStreamController=void 0,c._byobRequest._view=null,c._byobRequest=null)}a(mh,"ReadableByteStreamControllerInvalidateBYOBRequest");function hh(c){for(;c._pendingPullIntos.length>0;){if(c._queueTotalSize===0)return;let d=c._pendingPullIntos.peek();ZS(c,d)&&(Ni(c),fh(c._controlledReadableByteStream,d))}}a(hh,"ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue");function AD(c){let d=c._controlledReadableByteStream._reader;for(;d._readRequests.length>0;){if(c._queueTotalSize===0)return;let g=d._readRequests.shift();XS(c,g)}}a(AD,"ReadableByteStreamControllerProcessReadRequestsUsingQueue");function wD(c,d,g,P){let I=c._controlledReadableByteStream,F=d.constructor,V=TD(F),{byteOffset:fe,byteLength:Ie}=d,_e=g*V,Ne;try{Ne=wn(d.buffer)}catch(at){P._errorSteps(at);return}let Fe={buffer:Ne,bufferByteLength:Ne.byteLength,byteOffset:fe,byteLength:Ie,bytesFilled:0,minimumFill:_e,elementSize:V,viewConstructor:F,readerType:"byob"};if(c._pendingPullIntos.length>0){c._pendingPullIntos.push(Fe),tx(I,P);return}if(I._state==="closed"){let at=new F(Fe.buffer,Fe.byteOffset,0);P._closeSteps(at);return}if(c._queueTotalSize>0){if(ZS(c,Fe)){let at=GS(Fe);KS(c),P._chunkSteps(at);return}if(c._closeRequested){let at=new TypeError("Insufficient bytes to fill elements in the given buffer");wr(c,at),P._errorSteps(at);return}}c._pendingPullIntos.push(Fe),tx(I,P),Lo(c)}a(wD,"ReadableByteStreamControllerPullInto");function ID(c,d){d.readerType==="none"&&Ni(c);let g=c._controlledReadableByteStream;if(_h(g))for(;rx(g)>0;){let P=Ni(c);fh(g,P)}}a(ID,"ReadableByteStreamControllerRespondInClosedState");function CD(c,d,g){if(WS(c,d,g),g.readerType==="none"){HS(c,g),hh(c);return}if(g.bytesFilled<g.minimumFill)return;Ni(c);let P=g.bytesFilled%g.elementSize;if(P>0){let I=g.byteOffset+g.bytesFilled;VS(c,g.buffer,I-P,P)}g.bytesFilled-=P,fh(c._controlledReadableByteStream,g),hh(c)}a(CD,"ReadableByteStreamControllerRespondInReadableState");function JS(c,d){let g=c._pendingPullIntos.peek();mh(c),c._controlledReadableByteStream._state==="closed"?ID(c,g):CD(c,d,g),Lo(c)}a(JS,"ReadableByteStreamControllerRespondInternal");function Ni(c){return c._pendingPullIntos.shift()}a(Ni,"ReadableByteStreamControllerShiftPendingPullInto");function RD(c){let d=c._controlledReadableByteStream;return d._state!=="readable"||c._closeRequested||!c._started?!1:!!(U(d)&&j(d)>0||_h(d)&&rx(d)>0||YS(c)>0)}a(RD,"ReadableByteStreamControllerShouldCallPull");function ml(c){c._pullAlgorithm=void 0,c._cancelAlgorithm=void 0}a(ml,"ReadableByteStreamControllerClearAlgorithms");function ss(c){let d=c._controlledReadableByteStream;if(!(c._closeRequested||d._state!=="readable")){if(c._queueTotalSize>0){c._closeRequested=!0;return}if(c._pendingPullIntos.length>0){let g=c._pendingPullIntos.peek();if(g.bytesFilled%g.elementSize!==0){let P=new TypeError("Insufficient bytes to fill elements in the given buffer");throw wr(c,P),P}}ml(c),ms(d)}}a(ss,"ReadableByteStreamControllerClose");function hl(c,d){let g=c._controlledReadableByteStream;if(c._closeRequested||g._state!=="readable")return;let{buffer:P,byteOffset:I,byteLength:F}=d;if(Xn(P))throw new TypeError("chunk's buffer is detached and so cannot be enqueued");let V=wn(P);if(c._pendingPullIntos.length>0){let fe=c._pendingPullIntos.peek();if(Xn(fe.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be filled with an enqueued chunk");mh(c),fe.buffer=wn(fe.buffer),fe.readerType==="none"&&HS(c,fe)}if(U(g))if(AD(c),j(g)===0)fl(c,V,I,F);else{c._pendingPullIntos.length>0&&Ni(c);let fe=new Uint8Array(V,I,F);N(g,fe,!1)}else _h(g)?(fl(c,V,I,F),hh(c)):fl(c,V,I,F);Lo(c)}a(hl,"ReadableByteStreamControllerEnqueue");function wr(c,d){let g=c._controlledReadableByteStream;g._state==="readable"&&(qS(c),Yn(c),ml(c),Ax(g,d))}a(wr,"ReadableByteStreamControllerError");function XS(c,d){let g=c._queue.shift();c._queueTotalSize-=g.byteLength,KS(c);let P=new Uint8Array(g.buffer,g.byteOffset,g.byteLength);d._chunkSteps(P)}a(XS,"ReadableByteStreamControllerFillReadRequestFromQueue");function gh(c){if(c._byobRequest===null&&c._pendingPullIntos.length>0){let d=c._pendingPullIntos.peek(),g=new Uint8Array(d.buffer,d.byteOffset+d.bytesFilled,d.byteLength-d.bytesFilled),P=Object.create(Uo.prototype);kD(P,c,g),c._byobRequest=P}return c._byobRequest}a(gh,"ReadableByteStreamControllerGetBYOBRequest");function YS(c){let d=c._controlledReadableByteStream._state;return d==="errored"?null:d==="closed"?0:c._strategyHWM-c._queueTotalSize}a(YS,"ReadableByteStreamControllerGetDesiredSize");function gl(c,d){let g=c._pendingPullIntos.peek();if(c._controlledReadableByteStream._state==="closed"){if(d!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(d===0)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(g.bytesFilled+d>g.byteLength)throw new RangeError("bytesWritten out of range")}g.buffer=wn(g.buffer),JS(c,d)}a(gl,"ReadableByteStreamControllerRespond");function yl(c,d){let g=c._pendingPullIntos.peek();if(c._controlledReadableByteStream._state==="closed"){if(d.byteLength!==0)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(d.byteLength===0)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(g.byteOffset+g.bytesFilled!==d.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(g.bufferByteLength!==d.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(g.bytesFilled+d.byteLength>g.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");let I=d.byteLength;g.buffer=wn(d.buffer),JS(c,I)}a(yl,"ReadableByteStreamControllerRespondWithNewView");function QS(c,d,g,P,I,F,V){d._controlledReadableByteStream=c,d._pullAgain=!1,d._pulling=!1,d._byobRequest=null,d._queue=d._queueTotalSize=void 0,Yn(d),d._closeRequested=!1,d._started=!1,d._strategyHWM=F,d._pullAlgorithm=P,d._cancelAlgorithm=I,d._autoAllocateChunkSize=V,d._pendingPullIntos=new H,c._readableStreamController=d;let fe=g();m(p(fe),()=>(d._started=!0,Lo(d),null),Ie=>(wr(d,Ie),null))}a(QS,"SetUpReadableByteStreamController");function OD(c,d,g){let P=Object.create(In.prototype),I,F,V;d.start!==void 0?I=a(()=>d.start(P),"startAlgorithm"):I=a(()=>{},"startAlgorithm"),d.pull!==void 0?F=a(()=>d.pull(P),"pullAlgorithm"):F=a(()=>p(void 0),"pullAlgorithm"),d.cancel!==void 0?V=a(Ie=>d.cancel(Ie),"cancelAlgorithm"):V=a(()=>p(void 0),"cancelAlgorithm");let fe=d.autoAllocateChunkSize;if(fe===0)throw new TypeError("autoAllocateChunkSize must be greater than 0");QS(c,P,I,F,V,g,fe)}a(OD,"SetUpReadableByteStreamControllerFromUnderlyingSource");function kD(c,d,g){c._associatedReadableByteStreamController=d,c._view=g}a(kD,"SetUpReadableStreamBYOBRequest");function yh(c){return new TypeError(`ReadableStreamBYOBRequest.prototype.${c} can only be used on a ReadableStreamBYOBRequest`)}a(yh,"byobRequestBrandCheckException");function cs(c){return new TypeError(`ReadableByteStreamController.prototype.${c} can only be used on a ReadableByteStreamController`)}a(cs,"byteStreamControllerBrandCheckException");function ND(c,d){gt(c,d);let g=c?.mode;return{mode:g===void 0?void 0:$D(g,`${d} has member 'mode' that`)}}a(ND,"convertReaderOptions");function $D(c,d){if(c=`${c}`,c!=="byob")throw new TypeError(`${d} '${c}' is not a valid enumeration value for ReadableStreamReaderMode`);return c}a($D,"convertReadableStreamReaderMode");function zD(c,d){var g;gt(c,d);let P=(g=c?.min)!==null&&g!==void 0?g:1;return{min:R(P,`${d} has member 'min' that`)}}a(zD,"convertByobReadOptions");function ex(c){return new Qn(c)}a(ex,"AcquireReadableStreamBYOBReader");function tx(c,d){c._reader._readIntoRequests.push(d)}a(tx,"ReadableStreamAddReadIntoRequest");function DD(c,d,g){let I=c._reader._readIntoRequests.shift();g?I._closeSteps(d):I._chunkSteps(d)}a(DD,"ReadableStreamFulfillReadIntoRequest");function rx(c){return c._reader._readIntoRequests.length}a(rx,"ReadableStreamGetNumReadIntoRequests");function _h(c){let d=c._reader;return!(d===void 0||!jo(d))}a(_h,"ReadableStreamHasBYOBReader");class Qn{static{a(this,"ReadableStreamBYOBReader")}constructor(d){if(et(d,1,"ReadableStreamBYOBReader"),$(d,"First parameter"),ro(d))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!Mo(d._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");ue(this,d),this._readIntoRequests=new H}get closed(){return jo(this)?this._closedPromise:f(_l("closed"))}cancel(d=void 0){return jo(this)?this._ownerReadableStream===void 0?f(oe("cancel")):K(this,d):f(_l("cancel"))}read(d,g={}){if(!jo(this))return f(_l("read"));if(!ArrayBuffer.isView(d))return f(new TypeError("view must be an array buffer view"));if(d.byteLength===0)return f(new TypeError("view must have non-zero byteLength"));if(d.buffer.byteLength===0)return f(new TypeError("view's buffer must have non-zero byteLength"));if(Xn(d.buffer))return f(new TypeError("view's buffer has been detached"));let P;try{P=zD(g,"options")}catch(_e){return f(_e)}let I=P.min;if(I===0)return f(new TypeError("options.min must be greater than 0"));if(xD(d)){if(I>d.byteLength)return f(new RangeError("options.min must be less than or equal to view's byteLength"))}else if(I>d.length)return f(new RangeError("options.min must be less than or equal to view's length"));if(this._ownerReadableStream===void 0)return f(oe("read from"));let F,V,fe=l((_e,Ne)=>{F=_e,V=Ne});return nx(this,d,I,{_chunkSteps:a(_e=>F({value:_e,done:!1}),"_chunkSteps"),_closeSteps:a(_e=>F({value:_e,done:!0}),"_closeSteps"),_errorSteps:a(_e=>V(_e),"_errorSteps")}),fe}releaseLock(){if(!jo(this))throw _l("releaseLock");this._ownerReadableStream!==void 0&&UD(this)}}Object.defineProperties(Qn.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),n(Qn.prototype.cancel,"cancel"),n(Qn.prototype.read,"read"),n(Qn.prototype.releaseLock,"releaseLock"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Qn.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});function jo(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_readIntoRequests")?!1:c instanceof Qn}a(jo,"IsReadableStreamBYOBReader");function nx(c,d,g,P){let I=c._ownerReadableStream;I._disturbed=!0,I._state==="errored"?P._errorSteps(I._storedError):wD(I._readableStreamController,d,g,P)}a(nx,"ReadableStreamBYOBReaderRead");function UD(c){Z(c);let d=new TypeError("Reader was released");ox(c,d)}a(UD,"ReadableStreamBYOBReaderRelease");function ox(c,d){let g=c._readIntoRequests;c._readIntoRequests=new H,g.forEach(P=>{P._errorSteps(d)})}a(ox,"ReadableStreamBYOBReaderErrorReadIntoRequests");function _l(c){return new TypeError(`ReadableStreamBYOBReader.prototype.${c} can only be used on a ReadableStreamBYOBReader`)}a(_l,"byobReaderBrandCheckException");function us(c,d){let{highWaterMark:g}=c;if(g===void 0)return d;if(cr(g)||g<0)throw new RangeError("Invalid highWaterMark");return g}a(us,"ExtractHighWaterMark");function vl(c){let{size:d}=c;return d||(()=>1)}a(vl,"ExtractSizeAlgorithm");function bl(c,d){gt(c,d);let g=c?.highWaterMark,P=c?.size;return{highWaterMark:g===void 0?void 0:x(g),size:P===void 0?void 0:MD(P,`${d} has member 'size' that`)}}a(bl,"convertQueuingStrategy");function MD(c,d){return _t(c,d),g=>x(c(g))}a(MD,"convertQueuingStrategySize");function LD(c,d){gt(c,d);let g=c?.abort,P=c?.close,I=c?.start,F=c?.type,V=c?.write;return{abort:g===void 0?void 0:jD(g,c,`${d} has member 'abort' that`),close:P===void 0?void 0:FD(P,c,`${d} has member 'close' that`),start:I===void 0?void 0:BD(I,c,`${d} has member 'start' that`),write:V===void 0?void 0:qD(V,c,`${d} has member 'write' that`),type:F}}a(LD,"convertUnderlyingSink");function jD(c,d,g){return _t(c,g),P=>L(c,d,[P])}a(jD,"convertUnderlyingSinkAbortCallback");function FD(c,d,g){return _t(c,g),()=>L(c,d,[])}a(FD,"convertUnderlyingSinkCloseCallback");function BD(c,d,g){return _t(c,g),P=>k(c,d,[P])}a(BD,"convertUnderlyingSinkStartCallback");function qD(c,d,g){return _t(c,g),(P,I)=>L(c,d,[P,I])}a(qD,"convertUnderlyingSinkWriteCallback");function ix(c,d){if(!$i(c))throw new TypeError(`${d} is not a WritableStream.`)}a(ix,"assertWritableStream");function GD(c){if(typeof c!="object"||c===null)return!1;try{return typeof c.aborted=="boolean"}catch{return!1}}a(GD,"isAbortSignal");let VD=typeof AbortController=="function";function HD(){if(VD)return new AbortController}a(HD,"createAbortController");class eo{static{a(this,"WritableStream")}constructor(d={},g={}){d===void 0?d=null:Je(d,"First parameter");let P=bl(g,"Second parameter"),I=LD(d,"First parameter");if(sx(this),I.type!==void 0)throw new RangeError("Invalid type is specified");let V=vl(P),fe=us(P,1);aU(this,I,fe,V)}get locked(){if(!$i(this))throw Tl("locked");return zi(this)}abort(d=void 0){return $i(this)?zi(this)?f(new TypeError("Cannot abort a stream that already has a writer")):Pl(this,d):f(Tl("abort"))}close(){return $i(this)?zi(this)?f(new TypeError("Cannot close a stream that already has a writer")):sn(this)?f(new TypeError("Cannot close an already-closing stream")):cx(this):f(Tl("close"))}getWriter(){if(!$i(this))throw Tl("getWriter");return ax(this)}}Object.defineProperties(eo.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),n(eo.prototype.abort,"abort"),n(eo.prototype.close,"close"),n(eo.prototype.getWriter,"getWriter"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(eo.prototype,Symbol.toStringTag,{value:"WritableStream",configurable:!0});function ax(c){return new Cn(c)}a(ax,"AcquireWritableStreamDefaultWriter");function ZD(c,d,g,P,I=1,F=()=>1){let V=Object.create(eo.prototype);sx(V);let fe=Object.create(Di.prototype);return mx(V,fe,c,d,g,P,I,F),V}a(ZD,"CreateWritableStream");function sx(c){c._state="writable",c._storedError=void 0,c._writer=void 0,c._writableStreamController=void 0,c._writeRequests=new H,c._inFlightWriteRequest=void 0,c._closeRequest=void 0,c._inFlightCloseRequest=void 0,c._pendingAbortRequest=void 0,c._backpressure=!1}a(sx,"InitializeWritableStream");function $i(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_writableStreamController")?!1:c instanceof eo}a($i,"IsWritableStream");function zi(c){return c._writer!==void 0}a(zi,"IsWritableStreamLocked");function Pl(c,d){var g;if(c._state==="closed"||c._state==="errored")return p(void 0);c._writableStreamController._abortReason=d,(g=c._writableStreamController._abortController)===null||g===void 0||g.abort(d);let P=c._state;if(P==="closed"||P==="errored")return p(void 0);if(c._pendingAbortRequest!==void 0)return c._pendingAbortRequest._promise;let I=!1;P==="erroring"&&(I=!0,d=void 0);let F=l((V,fe)=>{c._pendingAbortRequest={_promise:void 0,_resolve:V,_reject:fe,_reason:d,_wasAlreadyErroring:I}});return c._pendingAbortRequest._promise=F,I||bh(c,d),F}a(Pl,"WritableStreamAbort");function cx(c){let d=c._state;if(d==="closed"||d==="errored")return f(new TypeError(`The stream (in ${d} state) is not in the writable state and cannot be closed`));let g=l((I,F)=>{let V={_resolve:I,_reject:F};c._closeRequest=V}),P=c._writer;return P!==void 0&&c._backpressure&&d==="writable"&&Ih(P),sU(c._writableStreamController),g}a(cx,"WritableStreamClose");function WD(c){return l((g,P)=>{let I={_resolve:g,_reject:P};c._writeRequests.push(I)})}a(WD,"WritableStreamAddWriteRequest");function vh(c,d){if(c._state==="writable"){bh(c,d);return}Ph(c)}a(vh,"WritableStreamDealWithRejection");function bh(c,d){let g=c._writableStreamController;c._state="erroring",c._storedError=d;let P=c._writer;P!==void 0&&lx(P,d),!QD(c)&&g._started&&Ph(c)}a(bh,"WritableStreamStartErroring");function Ph(c){c._state="errored",c._writableStreamController[re]();let d=c._storedError;if(c._writeRequests.forEach(I=>{I._reject(d)}),c._writeRequests=new H,c._pendingAbortRequest===void 0){El(c);return}let g=c._pendingAbortRequest;if(c._pendingAbortRequest=void 0,g._wasAlreadyErroring){g._reject(d),El(c);return}let P=c._writableStreamController[X](g._reason);m(P,()=>(g._resolve(),El(c),null),I=>(g._reject(I),El(c),null))}a(Ph,"WritableStreamFinishErroring");function KD(c){c._inFlightWriteRequest._resolve(void 0),c._inFlightWriteRequest=void 0}a(KD,"WritableStreamFinishInFlightWrite");function JD(c,d){c._inFlightWriteRequest._reject(d),c._inFlightWriteRequest=void 0,vh(c,d)}a(JD,"WritableStreamFinishInFlightWriteWithError");function XD(c){c._inFlightCloseRequest._resolve(void 0),c._inFlightCloseRequest=void 0,c._state==="erroring"&&(c._storedError=void 0,c._pendingAbortRequest!==void 0&&(c._pendingAbortRequest._resolve(),c._pendingAbortRequest=void 0)),c._state="closed";let g=c._writer;g!==void 0&&_x(g)}a(XD,"WritableStreamFinishInFlightClose");function YD(c,d){c._inFlightCloseRequest._reject(d),c._inFlightCloseRequest=void 0,c._pendingAbortRequest!==void 0&&(c._pendingAbortRequest._reject(d),c._pendingAbortRequest=void 0),vh(c,d)}a(YD,"WritableStreamFinishInFlightCloseWithError");function sn(c){return!(c._closeRequest===void 0&&c._inFlightCloseRequest===void 0)}a(sn,"WritableStreamCloseQueuedOrInFlight");function QD(c){return!(c._inFlightWriteRequest===void 0&&c._inFlightCloseRequest===void 0)}a(QD,"WritableStreamHasOperationMarkedInFlight");function eU(c){c._inFlightCloseRequest=c._closeRequest,c._closeRequest=void 0}a(eU,"WritableStreamMarkCloseRequestInFlight");function tU(c){c._inFlightWriteRequest=c._writeRequests.shift()}a(tU,"WritableStreamMarkFirstWriteRequestInFlight");function El(c){c._closeRequest!==void 0&&(c._closeRequest._reject(c._storedError),c._closeRequest=void 0);let d=c._writer;d!==void 0&&Ah(d,c._storedError)}a(El,"WritableStreamRejectCloseAndClosedPromiseIfNeeded");function Eh(c,d){let g=c._writer;g!==void 0&&d!==c._backpressure&&(d?mU(g):Ih(g)),c._backpressure=d}a(Eh,"WritableStreamUpdateBackpressure");class Cn{static{a(this,"WritableStreamDefaultWriter")}constructor(d){if(et(d,1,"WritableStreamDefaultWriter"),ix(d,"First parameter"),zi(d))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=d,d._writer=this;let g=d._state;if(g==="writable")!sn(d)&&d._backpressure?wl(this):vx(this),Al(this);else if(g==="erroring")wh(this,d._storedError),Al(this);else if(g==="closed")vx(this),pU(this);else{let P=d._storedError;wh(this,P),yx(this,P)}}get closed(){return Fo(this)?this._closedPromise:f(Bo("closed"))}get desiredSize(){if(!Fo(this))throw Bo("desiredSize");if(this._ownerWritableStream===void 0)throw ds("desiredSize");return iU(this)}get ready(){return Fo(this)?this._readyPromise:f(Bo("ready"))}abort(d=void 0){return Fo(this)?this._ownerWritableStream===void 0?f(ds("abort")):rU(this,d):f(Bo("abort"))}close(){if(!Fo(this))return f(Bo("close"));let d=this._ownerWritableStream;return d===void 0?f(ds("close")):sn(d)?f(new TypeError("Cannot close an already-closing stream")):ux(this)}releaseLock(){if(!Fo(this))throw Bo("releaseLock");this._ownerWritableStream!==void 0&&dx(this)}write(d=void 0){return Fo(this)?this._ownerWritableStream===void 0?f(ds("write to")):px(this,d):f(Bo("write"))}}Object.defineProperties(Cn.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),n(Cn.prototype.abort,"abort"),n(Cn.prototype.close,"close"),n(Cn.prototype.releaseLock,"releaseLock"),n(Cn.prototype.write,"write"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Cn.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});function Fo(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_ownerWritableStream")?!1:c instanceof Cn}a(Fo,"IsWritableStreamDefaultWriter");function rU(c,d){let g=c._ownerWritableStream;return Pl(g,d)}a(rU,"WritableStreamDefaultWriterAbort");function ux(c){let d=c._ownerWritableStream;return cx(d)}a(ux,"WritableStreamDefaultWriterClose");function nU(c){let d=c._ownerWritableStream,g=d._state;return sn(d)||g==="closed"?p(void 0):g==="errored"?f(d._storedError):ux(c)}a(nU,"WritableStreamDefaultWriterCloseWithErrorPropagation");function oU(c,d){c._closedPromiseState==="pending"?Ah(c,d):fU(c,d)}a(oU,"WritableStreamDefaultWriterEnsureClosedPromiseRejected");function lx(c,d){c._readyPromiseState==="pending"?bx(c,d):hU(c,d)}a(lx,"WritableStreamDefaultWriterEnsureReadyPromiseRejected");function iU(c){let d=c._ownerWritableStream,g=d._state;return g==="errored"||g==="erroring"?null:g==="closed"?0:hx(d._writableStreamController)}a(iU,"WritableStreamDefaultWriterGetDesiredSize");function dx(c){let d=c._ownerWritableStream,g=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");lx(c,g),oU(c,g),d._writer=void 0,c._ownerWritableStream=void 0}a(dx,"WritableStreamDefaultWriterRelease");function px(c,d){let g=c._ownerWritableStream,P=g._writableStreamController,I=cU(P,d);if(g!==c._ownerWritableStream)return f(ds("write to"));let F=g._state;if(F==="errored")return f(g._storedError);if(sn(g)||F==="closed")return f(new TypeError("The stream is closing or closed and cannot be written to"));if(F==="erroring")return f(g._storedError);let V=WD(g);return uU(P,d,I),V}a(px,"WritableStreamDefaultWriterWrite");let fx={};class Di{static{a(this,"WritableStreamDefaultController")}constructor(){throw new TypeError("Illegal constructor")}get abortReason(){if(!Sh(this))throw Th("abortReason");return this._abortReason}get signal(){if(!Sh(this))throw Th("signal");if(this._abortController===void 0)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal}error(d=void 0){if(!Sh(this))throw Th("error");this._controlledWritableStream._state==="writable"&&gx(this,d)}[X](d){let g=this._abortAlgorithm(d);return Sl(this),g}[re](){Yn(this)}}Object.defineProperties(Di.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Di.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});function Sh(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledWritableStream")?!1:c instanceof Di}a(Sh,"IsWritableStreamDefaultController");function mx(c,d,g,P,I,F,V,fe){d._controlledWritableStream=c,c._writableStreamController=d,d._queue=void 0,d._queueTotalSize=void 0,Yn(d),d._abortReason=void 0,d._abortController=HD(),d._started=!1,d._strategySizeAlgorithm=fe,d._strategyHWM=V,d._writeAlgorithm=P,d._closeAlgorithm=I,d._abortAlgorithm=F;let Ie=xh(d);Eh(c,Ie);let _e=g(),Ne=p(_e);m(Ne,()=>(d._started=!0,xl(d),null),Fe=>(d._started=!0,vh(c,Fe),null))}a(mx,"SetUpWritableStreamDefaultController");function aU(c,d,g,P){let I=Object.create(Di.prototype),F,V,fe,Ie;d.start!==void 0?F=a(()=>d.start(I),"startAlgorithm"):F=a(()=>{},"startAlgorithm"),d.write!==void 0?V=a(_e=>d.write(_e,I),"writeAlgorithm"):V=a(()=>p(void 0),"writeAlgorithm"),d.close!==void 0?fe=a(()=>d.close(),"closeAlgorithm"):fe=a(()=>p(void 0),"closeAlgorithm"),d.abort!==void 0?Ie=a(_e=>d.abort(_e),"abortAlgorithm"):Ie=a(()=>p(void 0),"abortAlgorithm"),mx(c,I,F,V,fe,Ie,g,P)}a(aU,"SetUpWritableStreamDefaultControllerFromUnderlyingSink");function Sl(c){c._writeAlgorithm=void 0,c._closeAlgorithm=void 0,c._abortAlgorithm=void 0,c._strategySizeAlgorithm=void 0}a(Sl,"WritableStreamDefaultControllerClearAlgorithms");function sU(c){dh(c,fx,0),xl(c)}a(sU,"WritableStreamDefaultControllerClose");function cU(c,d){try{return c._strategySizeAlgorithm(d)}catch(g){return ls(c,g),1}}a(cU,"WritableStreamDefaultControllerGetChunkSize");function hx(c){return c._strategyHWM-c._queueTotalSize}a(hx,"WritableStreamDefaultControllerGetDesiredSize");function uU(c,d,g){try{dh(c,d,g)}catch(I){ls(c,I);return}let P=c._controlledWritableStream;if(!sn(P)&&P._state==="writable"){let I=xh(c);Eh(P,I)}xl(c)}a(uU,"WritableStreamDefaultControllerWrite");function xl(c){let d=c._controlledWritableStream;if(!c._started||d._inFlightWriteRequest!==void 0)return;if(d._state==="erroring"){Ph(d);return}if(c._queue.length===0)return;let P=SD(c);P===fx?lU(c):dU(c,P)}a(xl,"WritableStreamDefaultControllerAdvanceQueueIfNeeded");function ls(c,d){c._controlledWritableStream._state==="writable"&&gx(c,d)}a(ls,"WritableStreamDefaultControllerErrorIfNeeded");function lU(c){let d=c._controlledWritableStream;eU(d),lh(c);let g=c._closeAlgorithm();Sl(c),m(g,()=>(XD(d),null),P=>(YD(d,P),null))}a(lU,"WritableStreamDefaultControllerProcessClose");function dU(c,d){let g=c._controlledWritableStream;tU(g);let P=c._writeAlgorithm(d);m(P,()=>{KD(g);let I=g._state;if(lh(c),!sn(g)&&I==="writable"){let F=xh(c);Eh(g,F)}return xl(c),null},I=>(g._state==="writable"&&Sl(c),JD(g,I),null))}a(dU,"WritableStreamDefaultControllerProcessWrite");function xh(c){return hx(c)<=0}a(xh,"WritableStreamDefaultControllerGetBackpressure");function gx(c,d){let g=c._controlledWritableStream;Sl(c),bh(g,d)}a(gx,"WritableStreamDefaultControllerError");function Tl(c){return new TypeError(`WritableStream.prototype.${c} can only be used on a WritableStream`)}a(Tl,"streamBrandCheckException$2");function Th(c){return new TypeError(`WritableStreamDefaultController.prototype.${c} can only be used on a WritableStreamDefaultController`)}a(Th,"defaultControllerBrandCheckException$2");function Bo(c){return new TypeError(`WritableStreamDefaultWriter.prototype.${c} can only be used on a WritableStreamDefaultWriter`)}a(Bo,"defaultWriterBrandCheckException");function ds(c){return new TypeError("Cannot "+c+" a stream using a released writer")}a(ds,"defaultWriterLockException");function Al(c){c._closedPromise=l((d,g)=>{c._closedPromise_resolve=d,c._closedPromise_reject=g,c._closedPromiseState="pending"})}a(Al,"defaultWriterClosedPromiseInitialize");function yx(c,d){Al(c),Ah(c,d)}a(yx,"defaultWriterClosedPromiseInitializeAsRejected");function pU(c){Al(c),_x(c)}a(pU,"defaultWriterClosedPromiseInitializeAsResolved");function Ah(c,d){c._closedPromise_reject!==void 0&&(S(c._closedPromise),c._closedPromise_reject(d),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0,c._closedPromiseState="rejected")}a(Ah,"defaultWriterClosedPromiseReject");function fU(c,d){yx(c,d)}a(fU,"defaultWriterClosedPromiseResetToRejected");function _x(c){c._closedPromise_resolve!==void 0&&(c._closedPromise_resolve(void 0),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0,c._closedPromiseState="resolved")}a(_x,"defaultWriterClosedPromiseResolve");function wl(c){c._readyPromise=l((d,g)=>{c._readyPromise_resolve=d,c._readyPromise_reject=g}),c._readyPromiseState="pending"}a(wl,"defaultWriterReadyPromiseInitialize");function wh(c,d){wl(c),bx(c,d)}a(wh,"defaultWriterReadyPromiseInitializeAsRejected");function vx(c){wl(c),Ih(c)}a(vx,"defaultWriterReadyPromiseInitializeAsResolved");function bx(c,d){c._readyPromise_reject!==void 0&&(S(c._readyPromise),c._readyPromise_reject(d),c._readyPromise_resolve=void 0,c._readyPromise_reject=void 0,c._readyPromiseState="rejected")}a(bx,"defaultWriterReadyPromiseReject");function mU(c){wl(c)}a(mU,"defaultWriterReadyPromiseReset");function hU(c,d){wh(c,d)}a(hU,"defaultWriterReadyPromiseResetToRejected");function Ih(c){c._readyPromise_resolve!==void 0&&(c._readyPromise_resolve(void 0),c._readyPromise_resolve=void 0,c._readyPromise_reject=void 0,c._readyPromiseState="fulfilled")}a(Ih,"defaultWriterReadyPromiseResolve");function gU(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof global<"u")return global}a(gU,"getGlobals");let Ch=gU();function yU(c){if(!(typeof c=="function"||typeof c=="object")||c.name!=="DOMException")return!1;try{return new c,!0}catch{return!1}}a(yU,"isDOMExceptionConstructor");function _U(){let c=Ch?.DOMException;return yU(c)?c:void 0}a(_U,"getFromGlobal");function vU(){let c=a(function(g,P){this.message=g||"",this.name=P||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)},"DOMException");return n(c,"DOMException"),c.prototype=Object.create(Error.prototype),Object.defineProperty(c.prototype,"constructor",{value:c,writable:!0,configurable:!0}),c}a(vU,"createPolyfill");let bU=_U()||vU();function Px(c,d,g,P,I,F){let V=B(c),fe=ax(d);c._disturbed=!0;let Ie=!1,_e=p(void 0);return l((Ne,Fe)=>{let at;if(F!==void 0){if(at=a(()=>{let be=F.reason!==void 0?F.reason:new bU("Aborted","AbortError"),qe=[];P||qe.push(()=>d._state==="writable"?Pl(d,be):p(void 0)),I||qe.push(()=>c._state==="readable"?qr(c,be):p(void 0)),Jt(()=>Promise.all(qe.map(st=>st())),!0,be)},"abortAlgorithm"),F.aborted){at();return}F.addEventListener("abort",at)}function Gr(){return l((be,qe)=>{function st(ur){ur?be():y(ji(),st,qe)}a(st,"next"),st(!1)})}a(Gr,"pipeLoop");function ji(){return Ie?p(!0):y(fe._readyPromise,()=>l((be,qe)=>{ye(V,{_chunkSteps:a(st=>{_e=y(px(fe,st),void 0,e),be(!1)},"_chunkSteps"),_closeSteps:a(()=>be(!0),"_closeSteps"),_errorSteps:qe})}))}if(a(ji,"pipeStep"),On(c,V._closedPromise,be=>(P?Ir(!0,be):Jt(()=>Pl(d,be),!0,be),null)),On(d,fe._closedPromise,be=>(I?Ir(!0,be):Jt(()=>qr(c,be),!0,be),null)),Gt(c,V._closedPromise,()=>(g?Ir():Jt(()=>nU(fe)),null)),sn(d)||d._state==="closed"){let be=new TypeError("the destination writable stream closed before all data could be piped to it");I?Ir(!0,be):Jt(()=>qr(c,be),!0,be)}S(Gr());function oo(){let be=_e;return y(_e,()=>be!==_e?oo():void 0)}a(oo,"waitForWritesToFinish");function On(be,qe,st){be._state==="errored"?st(be._storedError):_(qe,st)}a(On,"isOrBecomesErrored");function Gt(be,qe,st){be._state==="closed"?st():h(qe,st)}a(Gt,"isOrBecomesClosed");function Jt(be,qe,st){if(Ie)return;Ie=!0,d._state==="writable"&&!sn(d)?h(oo(),ur):ur();function ur(){return m(be(),()=>kn(qe,st),Fi=>kn(!0,Fi)),null}a(ur,"doTheRest")}a(Jt,"shutdownWithAction");function Ir(be,qe){Ie||(Ie=!0,d._state==="writable"&&!sn(d)?h(oo(),()=>kn(be,qe)):kn(be,qe))}a(Ir,"shutdown");function kn(be,qe){return dx(fe),Z(V),F!==void 0&&F.removeEventListener("abort",at),be?Fe(qe):Ne(void 0),null}a(kn,"finalize")})}a(Px,"ReadableStreamPipeTo");class Rn{static{a(this,"ReadableStreamDefaultController")}constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!Il(this))throw Rl("desiredSize");return Rh(this)}close(){if(!Il(this))throw Rl("close");if(!Mi(this))throw new TypeError("The stream is not in a state that permits close");qo(this)}enqueue(d=void 0){if(!Il(this))throw Rl("enqueue");if(!Mi(this))throw new TypeError("The stream is not in a state that permits enqueue");return Ui(this,d)}error(d=void 0){if(!Il(this))throw Rl("error");Br(this,d)}[ce](d){Yn(this);let g=this._cancelAlgorithm(d);return Cl(this),g}[ee](d){let g=this._controlledReadableStream;if(this._queue.length>0){let P=lh(this);this._closeRequested&&this._queue.length===0?(Cl(this),ms(g)):ps(this),d._chunkSteps(P)}else C(g,d),ps(this)}[Le](){}}Object.defineProperties(Rn.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),n(Rn.prototype.close,"close"),n(Rn.prototype.enqueue,"enqueue"),n(Rn.prototype.error,"error"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Rn.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});function Il(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledReadableStream")?!1:c instanceof Rn}a(Il,"IsReadableStreamDefaultController");function ps(c){if(!Ex(c))return;if(c._pulling){c._pullAgain=!0;return}c._pulling=!0;let g=c._pullAlgorithm();m(g,()=>(c._pulling=!1,c._pullAgain&&(c._pullAgain=!1,ps(c)),null),P=>(Br(c,P),null))}a(ps,"ReadableStreamDefaultControllerCallPullIfNeeded");function Ex(c){let d=c._controlledReadableStream;return!Mi(c)||!c._started?!1:!!(ro(d)&&j(d)>0||Rh(c)>0)}a(Ex,"ReadableStreamDefaultControllerShouldCallPull");function Cl(c){c._pullAlgorithm=void 0,c._cancelAlgorithm=void 0,c._strategySizeAlgorithm=void 0}a(Cl,"ReadableStreamDefaultControllerClearAlgorithms");function qo(c){if(!Mi(c))return;let d=c._controlledReadableStream;c._closeRequested=!0,c._queue.length===0&&(Cl(c),ms(d))}a(qo,"ReadableStreamDefaultControllerClose");function Ui(c,d){if(!Mi(c))return;let g=c._controlledReadableStream;if(ro(g)&&j(g)>0)N(g,d,!1);else{let P;try{P=c._strategySizeAlgorithm(d)}catch(I){throw Br(c,I),I}try{dh(c,d,P)}catch(I){throw Br(c,I),I}}ps(c)}a(Ui,"ReadableStreamDefaultControllerEnqueue");function Br(c,d){let g=c._controlledReadableStream;g._state==="readable"&&(Yn(c),Cl(c),Ax(g,d))}a(Br,"ReadableStreamDefaultControllerError");function Rh(c){let d=c._controlledReadableStream._state;return d==="errored"?null:d==="closed"?0:c._strategyHWM-c._queueTotalSize}a(Rh,"ReadableStreamDefaultControllerGetDesiredSize");function PU(c){return!Ex(c)}a(PU,"ReadableStreamDefaultControllerHasBackpressure");function Mi(c){let d=c._controlledReadableStream._state;return!c._closeRequested&&d==="readable"}a(Mi,"ReadableStreamDefaultControllerCanCloseOrEnqueue");function Sx(c,d,g,P,I,F,V){d._controlledReadableStream=c,d._queue=void 0,d._queueTotalSize=void 0,Yn(d),d._started=!1,d._closeRequested=!1,d._pullAgain=!1,d._pulling=!1,d._strategySizeAlgorithm=V,d._strategyHWM=F,d._pullAlgorithm=P,d._cancelAlgorithm=I,c._readableStreamController=d;let fe=g();m(p(fe),()=>(d._started=!0,ps(d),null),Ie=>(Br(d,Ie),null))}a(Sx,"SetUpReadableStreamDefaultController");function EU(c,d,g,P){let I=Object.create(Rn.prototype),F,V,fe;d.start!==void 0?F=a(()=>d.start(I),"startAlgorithm"):F=a(()=>{},"startAlgorithm"),d.pull!==void 0?V=a(()=>d.pull(I),"pullAlgorithm"):V=a(()=>p(void 0),"pullAlgorithm"),d.cancel!==void 0?fe=a(Ie=>d.cancel(Ie),"cancelAlgorithm"):fe=a(()=>p(void 0),"cancelAlgorithm"),Sx(c,I,F,V,fe,g,P)}a(EU,"SetUpReadableStreamDefaultControllerFromUnderlyingSource");function Rl(c){return new TypeError(`ReadableStreamDefaultController.prototype.${c} can only be used on a ReadableStreamDefaultController`)}a(Rl,"defaultControllerBrandCheckException$1");function SU(c,d){return Mo(c._readableStreamController)?TU(c):xU(c)}a(SU,"ReadableStreamTee");function xU(c,d){let g=B(c),P=!1,I=!1,F=!1,V=!1,fe,Ie,_e,Ne,Fe,at=l(Gt=>{Fe=Gt});function Gr(){return P?(I=!0,p(void 0)):(P=!0,ye(g,{_chunkSteps:a(Jt=>{T(()=>{I=!1;let Ir=Jt,kn=Jt;F||Ui(_e._readableStreamController,Ir),V||Ui(Ne._readableStreamController,kn),P=!1,I&&Gr()})},"_chunkSteps"),_closeSteps:a(()=>{P=!1,F||qo(_e._readableStreamController),V||qo(Ne._readableStreamController),(!F||!V)&&Fe(void 0)},"_closeSteps"),_errorSteps:a(()=>{P=!1},"_errorSteps")}),p(void 0))}a(Gr,"pullAlgorithm");function ji(Gt){if(F=!0,fe=Gt,V){let Jt=tt([fe,Ie]),Ir=qr(c,Jt);Fe(Ir)}return at}a(ji,"cancel1Algorithm");function oo(Gt){if(V=!0,Ie=Gt,F){let Jt=tt([fe,Ie]),Ir=qr(c,Jt);Fe(Ir)}return at}a(oo,"cancel2Algorithm");function On(){}return a(On,"startAlgorithm"),_e=fs(On,Gr,ji),Ne=fs(On,Gr,oo),_(g._closedPromise,Gt=>(Br(_e._readableStreamController,Gt),Br(Ne._readableStreamController,Gt),(!F||!V)&&Fe(void 0),null)),[_e,Ne]}a(xU,"ReadableStreamDefaultTee");function TU(c){let d=B(c),g=!1,P=!1,I=!1,F=!1,V=!1,fe,Ie,_e,Ne,Fe,at=l(be=>{Fe=be});function Gr(be){_(be._closedPromise,qe=>(be!==d||(wr(_e._readableStreamController,qe),wr(Ne._readableStreamController,qe),(!F||!V)&&Fe(void 0)),null))}a(Gr,"forwardReaderError");function ji(){jo(d)&&(Z(d),d=B(c),Gr(d)),ye(d,{_chunkSteps:a(qe=>{T(()=>{P=!1,I=!1;let st=qe,ur=qe;if(!F&&!V)try{ur=FS(qe)}catch(Fi){wr(_e._readableStreamController,Fi),wr(Ne._readableStreamController,Fi),Fe(qr(c,Fi));return}F||hl(_e._readableStreamController,st),V||hl(Ne._readableStreamController,ur),g=!1,P?On():I&&Gt()})},"_chunkSteps"),_closeSteps:a(()=>{g=!1,F||ss(_e._readableStreamController),V||ss(Ne._readableStreamController),_e._readableStreamController._pendingPullIntos.length>0&&gl(_e._readableStreamController,0),Ne._readableStreamController._pendingPullIntos.length>0&&gl(Ne._readableStreamController,0),(!F||!V)&&Fe(void 0)},"_closeSteps"),_errorSteps:a(()=>{g=!1},"_errorSteps")})}a(ji,"pullWithDefaultReader");function oo(be,qe){he(d)&&(Z(d),d=ex(c),Gr(d));let st=qe?Ne:_e,ur=qe?_e:Ne;nx(d,be,1,{_chunkSteps:a(Bi=>{T(()=>{P=!1,I=!1;let qi=qe?V:F;if(qe?F:V)qi||yl(st._readableStreamController,Bi);else{let Lx;try{Lx=FS(Bi)}catch(zh){wr(st._readableStreamController,zh),wr(ur._readableStreamController,zh),Fe(qr(c,zh));return}qi||yl(st._readableStreamController,Bi),hl(ur._readableStreamController,Lx)}g=!1,P?On():I&&Gt()})},"_chunkSteps"),_closeSteps:a(Bi=>{g=!1;let qi=qe?V:F,Ml=qe?F:V;qi||ss(st._readableStreamController),Ml||ss(ur._readableStreamController),Bi!==void 0&&(qi||yl(st._readableStreamController,Bi),!Ml&&ur._readableStreamController._pendingPullIntos.length>0&&gl(ur._readableStreamController,0)),(!qi||!Ml)&&Fe(void 0)},"_closeSteps"),_errorSteps:a(()=>{g=!1},"_errorSteps")})}a(oo,"pullWithBYOBReader");function On(){if(g)return P=!0,p(void 0);g=!0;let be=gh(_e._readableStreamController);return be===null?ji():oo(be._view,!1),p(void 0)}a(On,"pull1Algorithm");function Gt(){if(g)return I=!0,p(void 0);g=!0;let be=gh(Ne._readableStreamController);return be===null?ji():oo(be._view,!0),p(void 0)}a(Gt,"pull2Algorithm");function Jt(be){if(F=!0,fe=be,V){let qe=tt([fe,Ie]),st=qr(c,qe);Fe(st)}return at}a(Jt,"cancel1Algorithm");function Ir(be){if(V=!0,Ie=be,F){let qe=tt([fe,Ie]),st=qr(c,qe);Fe(st)}return at}a(Ir,"cancel2Algorithm");function kn(){}return a(kn,"startAlgorithm"),_e=Tx(kn,On,Jt),Ne=Tx(kn,Gt,Ir),Gr(d),[_e,Ne]}a(TU,"ReadableByteStreamTee");function AU(c){return r(c)&&typeof c.getReader<"u"}a(AU,"isReadableStreamLike");function wU(c){return AU(c)?CU(c.getReader()):IU(c)}a(wU,"ReadableStreamFrom");function IU(c){let d,g=jS(c,"async"),P=e;function I(){let V;try{V=vD(g)}catch(Ie){return f(Ie)}let fe=p(V);return E(fe,Ie=>{if(!r(Ie))throw new TypeError("The promise returned by the iterator.next() method must fulfill with an object");if(bD(Ie))qo(d._readableStreamController);else{let Ne=PD(Ie);Ui(d._readableStreamController,Ne)}})}a(I,"pullAlgorithm");function F(V){let fe=g.iterator,Ie;try{Ie=pl(fe,"return")}catch(Fe){return f(Fe)}if(Ie===void 0)return p(void 0);let _e;try{_e=k(Ie,fe,[V])}catch(Fe){return f(Fe)}let Ne=p(_e);return E(Ne,Fe=>{if(!r(Fe))throw new TypeError("The promise returned by the iterator.return() method must fulfill with an object")})}return a(F,"cancelAlgorithm"),d=fs(P,I,F,0),d}a(IU,"ReadableStreamFromIterable");function CU(c){let d,g=e;function P(){let F;try{F=c.read()}catch(V){return f(V)}return E(F,V=>{if(!r(V))throw new TypeError("The promise returned by the reader.read() method must fulfill with an object");if(V.done)qo(d._readableStreamController);else{let fe=V.value;Ui(d._readableStreamController,fe)}})}a(P,"pullAlgorithm");function I(F){try{return p(c.cancel(F))}catch(V){return f(V)}}return a(I,"cancelAlgorithm"),d=fs(g,P,I,0),d}a(CU,"ReadableStreamFromDefaultReader");function RU(c,d){gt(c,d);let g=c,P=g?.autoAllocateChunkSize,I=g?.cancel,F=g?.pull,V=g?.start,fe=g?.type;return{autoAllocateChunkSize:P===void 0?void 0:R(P,`${d} has member 'autoAllocateChunkSize' that`),cancel:I===void 0?void 0:OU(I,g,`${d} has member 'cancel' that`),pull:F===void 0?void 0:kU(F,g,`${d} has member 'pull' that`),start:V===void 0?void 0:NU(V,g,`${d} has member 'start' that`),type:fe===void 0?void 0:$U(fe,`${d} has member 'type' that`)}}a(RU,"convertUnderlyingDefaultOrByteSource");function OU(c,d,g){return _t(c,g),P=>L(c,d,[P])}a(OU,"convertUnderlyingSourceCancelCallback");function kU(c,d,g){return _t(c,g),P=>L(c,d,[P])}a(kU,"convertUnderlyingSourcePullCallback");function NU(c,d,g){return _t(c,g),P=>k(c,d,[P])}a(NU,"convertUnderlyingSourceStartCallback");function $U(c,d){if(c=`${c}`,c!=="bytes")throw new TypeError(`${d} '${c}' is not a valid enumeration value for ReadableStreamType`);return c}a($U,"convertReadableStreamType");function zU(c,d){return gt(c,d),{preventCancel:!!c?.preventCancel}}a(zU,"convertIteratorOptions");function xx(c,d){gt(c,d);let g=c?.preventAbort,P=c?.preventCancel,I=c?.preventClose,F=c?.signal;return F!==void 0&&DU(F,`${d} has member 'signal' that`),{preventAbort:!!g,preventCancel:!!P,preventClose:!!I,signal:F}}a(xx,"convertPipeOptions");function DU(c,d){if(!GD(c))throw new TypeError(`${d} is not an AbortSignal.`)}a(DU,"assertAbortSignal");function UU(c,d){gt(c,d);let g=c?.readable;b(g,"readable","ReadableWritablePair"),$(g,`${d} has member 'readable' that`);let P=c?.writable;return b(P,"writable","ReadableWritablePair"),ix(P,`${d} has member 'writable' that`),{readable:g,writable:P}}a(UU,"convertReadableWritablePair");class jt{static{a(this,"ReadableStream")}constructor(d={},g={}){d===void 0?d=null:Je(d,"First parameter");let P=bl(g,"Second parameter"),I=RU(d,"First parameter");if(Oh(this),I.type==="bytes"){if(P.size!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");let F=us(P,0);OD(this,I,F)}else{let F=vl(P),V=us(P,1);EU(this,I,V,F)}}get locked(){if(!to(this))throw Go("locked");return ro(this)}cancel(d=void 0){return to(this)?ro(this)?f(new TypeError("Cannot cancel a stream that already has a reader")):qr(this,d):f(Go("cancel"))}getReader(d=void 0){if(!to(this))throw Go("getReader");return ND(d,"First parameter").mode===void 0?B(this):ex(this)}pipeThrough(d,g={}){if(!to(this))throw Go("pipeThrough");et(d,1,"pipeThrough");let P=UU(d,"First parameter"),I=xx(g,"Second parameter");if(ro(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(zi(P.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");let F=Px(this,P.writable,I.preventClose,I.preventAbort,I.preventCancel,I.signal);return S(F),P.readable}pipeTo(d,g={}){if(!to(this))return f(Go("pipeTo"));if(d===void 0)return f("Parameter 1 is required in 'pipeTo'.");if(!$i(d))return f(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));let P;try{P=xx(g,"Second parameter")}catch(I){return f(I)}return ro(this)?f(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):zi(d)?f(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Px(this,d,P.preventClose,P.preventAbort,P.preventCancel,P.signal)}tee(){if(!to(this))throw Go("tee");let d=SU(this);return tt(d)}values(d=void 0){if(!to(this))throw Go("values");let g=zU(d,"First parameter");return Ri(this,g.preventCancel)}[uh](d){return this.values(d)}static from(d){return wU(d)}}Object.defineProperties(jt,{from:{enumerable:!0}}),Object.defineProperties(jt.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),n(jt.from,"from"),n(jt.prototype.cancel,"cancel"),n(jt.prototype.getReader,"getReader"),n(jt.prototype.pipeThrough,"pipeThrough"),n(jt.prototype.pipeTo,"pipeTo"),n(jt.prototype.tee,"tee"),n(jt.prototype.values,"values"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(jt.prototype,Symbol.toStringTag,{value:"ReadableStream",configurable:!0}),Object.defineProperty(jt.prototype,uh,{value:jt.prototype.values,writable:!0,configurable:!0});function fs(c,d,g,P=1,I=()=>1){let F=Object.create(jt.prototype);Oh(F);let V=Object.create(Rn.prototype);return Sx(F,V,c,d,g,P,I),F}a(fs,"CreateReadableStream");function Tx(c,d,g){let P=Object.create(jt.prototype);Oh(P);let I=Object.create(In.prototype);return QS(P,I,c,d,g,0,void 0),P}a(Tx,"CreateReadableByteStream");function Oh(c){c._state="readable",c._reader=void 0,c._storedError=void 0,c._disturbed=!1}a(Oh,"InitializeReadableStream");function to(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_readableStreamController")?!1:c instanceof jt}a(to,"IsReadableStream");function ro(c){return c._reader!==void 0}a(ro,"IsReadableStreamLocked");function qr(c,d){if(c._disturbed=!0,c._state==="closed")return p(void 0);if(c._state==="errored")return f(c._storedError);ms(c);let g=c._reader;if(g!==void 0&&jo(g)){let I=g._readIntoRequests;g._readIntoRequests=new H,I.forEach(F=>{F._closeSteps(void 0)})}let P=c._readableStreamController[ce](d);return E(P,e)}a(qr,"ReadableStreamCancel");function ms(c){c._state="closed";let d=c._reader;if(d!==void 0&&(Qe(d),he(d))){let g=d._readRequests;d._readRequests=new H,g.forEach(P=>{P._closeSteps()})}}a(ms,"ReadableStreamClose");function Ax(c,d){c._state="errored",c._storedError=d;let g=c._reader;g!==void 0&&(ze(g,d),he(g)?ut(g,d):ox(g,d))}a(Ax,"ReadableStreamError");function Go(c){return new TypeError(`ReadableStream.prototype.${c} can only be used on a ReadableStream`)}a(Go,"streamBrandCheckException$1");function wx(c,d){gt(c,d);let g=c?.highWaterMark;return b(g,"highWaterMark","QueuingStrategyInit"),{highWaterMark:x(g)}}a(wx,"convertQueuingStrategyInit");let Ix=a(c=>c.byteLength,"byteLengthSizeFunction");n(Ix,"size");class Ol{static{a(this,"ByteLengthQueuingStrategy")}constructor(d){et(d,1,"ByteLengthQueuingStrategy"),d=wx(d,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=d.highWaterMark}get highWaterMark(){if(!Rx(this))throw Cx("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark}get size(){if(!Rx(this))throw Cx("size");return Ix}}Object.defineProperties(Ol.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Ol.prototype,Symbol.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});function Cx(c){return new TypeError(`ByteLengthQueuingStrategy.prototype.${c} can only be used on a ByteLengthQueuingStrategy`)}a(Cx,"byteLengthBrandCheckException");function Rx(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_byteLengthQueuingStrategyHighWaterMark")?!1:c instanceof Ol}a(Rx,"IsByteLengthQueuingStrategy");let Ox=a(()=>1,"countSizeFunction");n(Ox,"size");class kl{static{a(this,"CountQueuingStrategy")}constructor(d){et(d,1,"CountQueuingStrategy"),d=wx(d,"First parameter"),this._countQueuingStrategyHighWaterMark=d.highWaterMark}get highWaterMark(){if(!Nx(this))throw kx("highWaterMark");return this._countQueuingStrategyHighWaterMark}get size(){if(!Nx(this))throw kx("size");return Ox}}Object.defineProperties(kl.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(kl.prototype,Symbol.toStringTag,{value:"CountQueuingStrategy",configurable:!0});function kx(c){return new TypeError(`CountQueuingStrategy.prototype.${c} can only be used on a CountQueuingStrategy`)}a(kx,"countBrandCheckException");function Nx(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_countQueuingStrategyHighWaterMark")?!1:c instanceof kl}a(Nx,"IsCountQueuingStrategy");function MU(c,d){gt(c,d);let g=c?.cancel,P=c?.flush,I=c?.readableType,F=c?.start,V=c?.transform,fe=c?.writableType;return{cancel:g===void 0?void 0:BU(g,c,`${d} has member 'cancel' that`),flush:P===void 0?void 0:LU(P,c,`${d} has member 'flush' that`),readableType:I,start:F===void 0?void 0:jU(F,c,`${d} has member 'start' that`),transform:V===void 0?void 0:FU(V,c,`${d} has member 'transform' that`),writableType:fe}}a(MU,"convertTransformer");function LU(c,d,g){return _t(c,g),P=>L(c,d,[P])}a(LU,"convertTransformerFlushCallback");function jU(c,d,g){return _t(c,g),P=>k(c,d,[P])}a(jU,"convertTransformerStartCallback");function FU(c,d,g){return _t(c,g),(P,I)=>L(c,d,[P,I])}a(FU,"convertTransformerTransformCallback");function BU(c,d,g){return _t(c,g),P=>L(c,d,[P])}a(BU,"convertTransformerCancelCallback");class Nl{static{a(this,"TransformStream")}constructor(d={},g={},P={}){d===void 0&&(d=null);let I=bl(g,"Second parameter"),F=bl(P,"Third parameter"),V=MU(d,"First parameter");if(V.readableType!==void 0)throw new RangeError("Invalid readableType specified");if(V.writableType!==void 0)throw new RangeError("Invalid writableType specified");let fe=us(F,0),Ie=vl(F),_e=us(I,1),Ne=vl(I),Fe,at=l(Gr=>{Fe=Gr});qU(this,at,_e,Ne,fe,Ie),VU(this,V),V.start!==void 0?Fe(V.start(this._transformStreamController)):Fe(void 0)}get readable(){if(!$x(this))throw Mx("readable");return this._readable}get writable(){if(!$x(this))throw Mx("writable");return this._writable}}Object.defineProperties(Nl.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Nl.prototype,Symbol.toStringTag,{value:"TransformStream",configurable:!0});function qU(c,d,g,P,I,F){function V(){return d}a(V,"startAlgorithm");function fe(at){return WU(c,at)}a(fe,"writeAlgorithm");function Ie(at){return KU(c,at)}a(Ie,"abortAlgorithm");function _e(){return JU(c)}a(_e,"closeAlgorithm"),c._writable=ZD(V,fe,_e,Ie,g,P);function Ne(){return XU(c)}a(Ne,"pullAlgorithm");function Fe(at){return YU(c,at)}a(Fe,"cancelAlgorithm"),c._readable=fs(V,Ne,Fe,I,F),c._backpressure=void 0,c._backpressureChangePromise=void 0,c._backpressureChangePromise_resolve=void 0,$l(c,!0),c._transformStreamController=void 0}a(qU,"InitializeTransformStream");function $x(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_transformStreamController")?!1:c instanceof Nl}a($x,"IsTransformStream");function zx(c,d){Br(c._readable._readableStreamController,d),kh(c,d)}a(zx,"TransformStreamError");function kh(c,d){Dl(c._transformStreamController),ls(c._writable._writableStreamController,d),Nh(c)}a(kh,"TransformStreamErrorWritableAndUnblockWrite");function Nh(c){c._backpressure&&$l(c,!1)}a(Nh,"TransformStreamUnblockWrite");function $l(c,d){c._backpressureChangePromise!==void 0&&c._backpressureChangePromise_resolve(),c._backpressureChangePromise=l(g=>{c._backpressureChangePromise_resolve=g}),c._backpressure=d}a($l,"TransformStreamSetBackpressure");class no{static{a(this,"TransformStreamDefaultController")}constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!zl(this))throw Ul("desiredSize");let d=this._controlledTransformStream._readable._readableStreamController;return Rh(d)}enqueue(d=void 0){if(!zl(this))throw Ul("enqueue");Dx(this,d)}error(d=void 0){if(!zl(this))throw Ul("error");HU(this,d)}terminate(){if(!zl(this))throw Ul("terminate");ZU(this)}}Object.defineProperties(no.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),n(no.prototype.enqueue,"enqueue"),n(no.prototype.error,"error"),n(no.prototype.terminate,"terminate"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(no.prototype,Symbol.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});function zl(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledTransformStream")?!1:c instanceof no}a(zl,"IsTransformStreamDefaultController");function GU(c,d,g,P,I){d._controlledTransformStream=c,c._transformStreamController=d,d._transformAlgorithm=g,d._flushAlgorithm=P,d._cancelAlgorithm=I,d._finishPromise=void 0,d._finishPromise_resolve=void 0,d._finishPromise_reject=void 0}a(GU,"SetUpTransformStreamDefaultController");function VU(c,d){let g=Object.create(no.prototype),P,I,F;d.transform!==void 0?P=a(V=>d.transform(V,g),"transformAlgorithm"):P=a(V=>{try{return Dx(g,V),p(void 0)}catch(fe){return f(fe)}},"transformAlgorithm"),d.flush!==void 0?I=a(()=>d.flush(g),"flushAlgorithm"):I=a(()=>p(void 0),"flushAlgorithm"),d.cancel!==void 0?F=a(V=>d.cancel(V),"cancelAlgorithm"):F=a(()=>p(void 0),"cancelAlgorithm"),GU(c,g,P,I,F)}a(VU,"SetUpTransformStreamDefaultControllerFromTransformer");function Dl(c){c._transformAlgorithm=void 0,c._flushAlgorithm=void 0,c._cancelAlgorithm=void 0}a(Dl,"TransformStreamDefaultControllerClearAlgorithms");function Dx(c,d){let g=c._controlledTransformStream,P=g._readable._readableStreamController;if(!Mi(P))throw new TypeError("Readable side is not in a state that permits enqueue");try{Ui(P,d)}catch(F){throw kh(g,F),g._readable._storedError}PU(P)!==g._backpressure&&$l(g,!0)}a(Dx,"TransformStreamDefaultControllerEnqueue");function HU(c,d){zx(c._controlledTransformStream,d)}a(HU,"TransformStreamDefaultControllerError");function Ux(c,d){let g=c._transformAlgorithm(d);return E(g,void 0,P=>{throw zx(c._controlledTransformStream,P),P})}a(Ux,"TransformStreamDefaultControllerPerformTransform");function ZU(c){let d=c._controlledTransformStream,g=d._readable._readableStreamController;qo(g);let P=new TypeError("TransformStream terminated");kh(d,P)}a(ZU,"TransformStreamDefaultControllerTerminate");function WU(c,d){let g=c._transformStreamController;if(c._backpressure){let P=c._backpressureChangePromise;return E(P,()=>{let I=c._writable;if(I._state==="erroring")throw I._storedError;return Ux(g,d)})}return Ux(g,d)}a(WU,"TransformStreamDefaultSinkWriteAlgorithm");function KU(c,d){let g=c._transformStreamController;if(g._finishPromise!==void 0)return g._finishPromise;let P=c._readable;g._finishPromise=l((F,V)=>{g._finishPromise_resolve=F,g._finishPromise_reject=V});let I=g._cancelAlgorithm(d);return Dl(g),m(I,()=>(P._state==="errored"?Li(g,P._storedError):(Br(P._readableStreamController,d),$h(g)),null),F=>(Br(P._readableStreamController,F),Li(g,F),null)),g._finishPromise}a(KU,"TransformStreamDefaultSinkAbortAlgorithm");function JU(c){let d=c._transformStreamController;if(d._finishPromise!==void 0)return d._finishPromise;let g=c._readable;d._finishPromise=l((I,F)=>{d._finishPromise_resolve=I,d._finishPromise_reject=F});let P=d._flushAlgorithm();return Dl(d),m(P,()=>(g._state==="errored"?Li(d,g._storedError):(qo(g._readableStreamController),$h(d)),null),I=>(Br(g._readableStreamController,I),Li(d,I),null)),d._finishPromise}a(JU,"TransformStreamDefaultSinkCloseAlgorithm");function XU(c){return $l(c,!1),c._backpressureChangePromise}a(XU,"TransformStreamDefaultSourcePullAlgorithm");function YU(c,d){let g=c._transformStreamController;if(g._finishPromise!==void 0)return g._finishPromise;let P=c._writable;g._finishPromise=l((F,V)=>{g._finishPromise_resolve=F,g._finishPromise_reject=V});let I=g._cancelAlgorithm(d);return Dl(g),m(I,()=>(P._state==="errored"?Li(g,P._storedError):(ls(P._writableStreamController,d),Nh(c),$h(g)),null),F=>(ls(P._writableStreamController,F),Nh(c),Li(g,F),null)),g._finishPromise}a(YU,"TransformStreamDefaultSourceCancelAlgorithm");function Ul(c){return new TypeError(`TransformStreamDefaultController.prototype.${c} can only be used on a TransformStreamDefaultController`)}a(Ul,"defaultControllerBrandCheckException");function $h(c){c._finishPromise_resolve!==void 0&&(c._finishPromise_resolve(),c._finishPromise_resolve=void 0,c._finishPromise_reject=void 0)}a($h,"defaultControllerFinishPromiseResolve");function Li(c,d){c._finishPromise_reject!==void 0&&(S(c._finishPromise),c._finishPromise_reject(d),c._finishPromise_resolve=void 0,c._finishPromise_reject=void 0)}a(Li,"defaultControllerFinishPromiseReject");function Mx(c){return new TypeError(`TransformStream.prototype.${c} can only be used on a TransformStream`)}a(Mx,"streamBrandCheckException"),t.ByteLengthQueuingStrategy=Ol,t.CountQueuingStrategy=kl,t.ReadableByteStreamController=In,t.ReadableStream=jt,t.ReadableStreamBYOBReader=Qn,t.ReadableStreamBYOBRequest=Uo,t.ReadableStreamDefaultController=Rn,t.ReadableStreamDefaultReader=J,t.TransformStream=Nl,t.TransformStreamDefaultController=no,t.WritableStream=eo,t.WritableStreamDefaultController=Di,t.WritableStreamDefaultWriter=Cn}))});var Uk=z(()=>{if(!globalThis.ReadableStream)try{let t=require("node:process"),{emitWarning:e}=t;try{t.emitWarning=()=>{},Object.assign(globalThis,require("node:stream/web")),t.emitWarning=e}catch(r){throw t.emitWarning=e,r}}catch{Object.assign(globalThis,Dk())}try{let{Blob:t}=require("buffer");t&&!t.prototype.stream&&(t.prototype.stream=a(function(r){let o=0,n=this;return new ReadableStream({type:"bytes",async pull(i){let u=await n.slice(o,Math.min(n.size,o+65536)).arrayBuffer();o+=u.byteLength,i.enqueue(new Uint8Array(u)),o===n.size&&i.close()}})},"name"))}catch{}});async function*Wb(t,e=!0){for(let r of t)if("stream"in r)yield*r.stream();else if(ArrayBuffer.isView(r))if(e){let o=r.byteOffset,n=r.byteOffset+r.byteLength;for(;o!==n;){let i=Math.min(n-o,Mk),s=r.buffer.slice(o,o+i);o+=s.byteLength,yield new Uint8Array(s)}}else yield r;else{let o=0,n=r;for(;o!==n.size;){let s=await n.slice(o,Math.min(n.size,o+Mk)).arrayBuffer();o+=s.byteLength,yield new Uint8Array(s)}}}var pce,Mk,Lk,S6,Xr,Au=Ct(()=>{pce=Tt(Uk(),1);Mk=65536;a(Wb,"toIterator");Lk=class Kb{static{a(this,"Blob")}#e=[];#t="";#r=0;#n="transparent";constructor(e=[],r={}){if(typeof e!="object"||e===null)throw new TypeError("Failed to construct 'Blob': The provided value cannot be converted to a sequence.");if(typeof e[Symbol.iterator]!="function")throw new TypeError("Failed to construct 'Blob': The object must have a callable @@iterator property.");if(typeof r!="object"&&typeof r!="function")throw new TypeError("Failed to construct 'Blob': parameter 2 cannot convert to dictionary.");r===null&&(r={});let o=new TextEncoder;for(let i of e){let s;ArrayBuffer.isView(i)?s=new Uint8Array(i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength)):i instanceof ArrayBuffer?s=new Uint8Array(i.slice(0)):i instanceof Kb?s=i:s=o.encode(`${i}`),this.#r+=ArrayBuffer.isView(s)?s.byteLength:s.size,this.#e.push(s)}this.#n=`${r.endings===void 0?"transparent":r.endings}`;let n=r.type===void 0?"":String(r.type);this.#t=/^[\x20-\x7E]*$/.test(n)?n:""}get size(){return this.#r}get type(){return this.#t}async text(){let e=new TextDecoder,r="";for await(let o of Wb(this.#e,!1))r+=e.decode(o,{stream:!0});return r+=e.decode(),r}async arrayBuffer(){let e=new Uint8Array(this.size),r=0;for await(let o of Wb(this.#e,!1))e.set(o,r),r+=o.length;return e.buffer}stream(){let e=Wb(this.#e,!0);return new globalThis.ReadableStream({type:"bytes",async pull(r){let o=await e.next();o.done?r.close():r.enqueue(o.value)},async cancel(){await e.return()}})}slice(e=0,r=this.size,o=""){let{size:n}=this,i=e<0?Math.max(n+e,0):Math.min(e,n),s=r<0?Math.max(n+r,0):Math.min(r,n),u=Math.max(s-i,0),l=this.#e,p=[],f=0;for(let m of l){if(f>=u)break;let h=ArrayBuffer.isView(m)?m.byteLength:m.size;if(i&&h<=i)i-=h,s-=h;else{let _;ArrayBuffer.isView(m)?(_=m.subarray(i,Math.min(h,s)),f+=_.byteLength):(_=m.slice(i,Math.min(h,s)),f+=_.size),s-=h,p.push(_),i=0}}let y=new Kb([],{type:String(o).toLowerCase()});return y.#r=u,y.#e=p,y}get[Symbol.toStringTag](){return"Blob"}static[Symbol.hasInstance](e){return e&&typeof e=="object"&&typeof e.constructor=="function"&&(typeof e.stream=="function"||typeof e.arrayBuffer=="function")&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}};Object.defineProperties(Lk.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}});S6=Lk,Xr=S6});var x6,T6,Io,Jb=Ct(()=>{Au();x6=class extends Xr{static{a(this,"File")}#e=0;#t="";constructor(e,r,o={}){if(arguments.length<2)throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`);super(e,o),o===null&&(o={});let n=o.lastModified===void 0?Date.now():Number(o.lastModified);Number.isNaN(n)||(this.#e=n),this.#t=String(r)}get name(){return this.#t}get lastModified(){return this.#e}get[Symbol.toStringTag](){return"File"}static[Symbol.hasInstance](e){return!!e&&e instanceof Xr&&/^(File)$/.test(e[Symbol.toStringTag])}},T6=x6,Io=T6});function Bk(t,e=Xr){var r=`${jk()}${jk()}`.replace(/\./g,"").slice(-28).padStart(32,"-"),o=[],n=`--${r}\r
13
+ `;let l=(0,v6.parseProxyResponse)(n);n.write(`${u}\r
14
+ `);let{connect:p,buffered:f}=await l;if(e.emit("proxyConnect",p),this.emit("proxyConnect",p,e),p.statusCode===200)return e.once("socket",b6),r.secureEndpoint?(Tu("Upgrading socket connection to TLS"),Ak.connect({...Ik(wk(r),"host","path","port"),socket:n})):n;n.destroy();let y=new zf.Socket({writable:!1});return y.readable=!0,e.once("socket",m=>{Tu("Replaying proxy buffer for failed request"),(0,h6.default)(m.listenerCount("data")>0),m.push(f),m.push(null)}),y}};Df.protocols=["http","https"];zr.HttpsProxyAgent=Df;function b6(t){t.resume()}a(b6,"resume");function Ik(t,...e){let r={},o;for(o in t)e.includes(o)||(r[o]=t[o]);return r}a(Ik,"omit")});function E6(t){if(!/^data:/i.test(t))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');t=t.replace(/\r?\n/g,"");let e=t.indexOf(",");if(e===-1||e<=4)throw new TypeError("malformed data: URI");let r=t.substring(5,e).split(";"),o="",n=!1,i=r[0]||"text/plain",s=i;for(let f=1;f<r.length;f++)r[f]==="base64"?n=!0:r[f]&&(s+=`;${r[f]}`,r[f].indexOf("charset=")===0&&(o=r[f].substring(8)));!r[0]&&!o.length&&(s+=";charset=US-ASCII",o="US-ASCII");let u=n?"base64":"ascii",l=unescape(t.substring(e+1)),p=Buffer.from(l,u);return p.type=i,p.typeFull=s,p.charset=o,p}var kk,Nk=Ct(()=>{a(E6,"dataUriToBuffer");kk=E6});var zk=z((Uf,$k)=>{(function(t,e){typeof Uf=="object"&&typeof $k<"u"?e(Uf):typeof define=="function"&&define.amd?define(["exports"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.WebStreamsPolyfill={}))})(Uf,(function(t){"use strict";function e(){}a(e,"noop");function r(c){return typeof c=="object"&&c!==null||typeof c=="function"}a(r,"typeIsObject");let o=e;function n(c,d){try{Object.defineProperty(c,"name",{value:d,configurable:!0})}catch{}}a(n,"setFunctionName");let i=Promise,s=Promise.prototype.then,u=Promise.reject.bind(i);function l(c){return new i(c)}a(l,"newPromise");function p(c){return l(d=>d(c))}a(p,"promiseResolvedWith");function f(c){return u(c)}a(f,"promiseRejectedWith");function y(c,d,g){return s.call(c,d,g)}a(y,"PerformPromiseThen");function m(c,d,g){y(y(c,d,g),void 0,o)}a(m,"uponPromise");function h(c,d){m(c,d)}a(h,"uponFulfillment");function _(c,d){m(c,void 0,d)}a(_,"uponRejection");function P(c,d,g){return y(c,d,g)}a(P,"transformPromiseWith");function S(c){y(c,void 0,o)}a(S,"setPromiseIsHandledToTrue");let T=a(c=>{if(typeof queueMicrotask=="function")T=queueMicrotask;else{let d=p(void 0);T=a(g=>y(d,g),"_queueMicrotask")}return T(c)},"_queueMicrotask");function k(c,d,g){if(typeof c!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(c,d,g)}a(k,"reflectCall");function L(c,d,g){try{return p(k(c,d,g))}catch(E){return f(E)}}a(L,"promiseCall");let Y=16384;class H{static{a(this,"SimpleQueue")}constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(d){let g=this._back,E=g;g._elements.length===Y-1&&(E={_elements:[],_next:void 0}),g._elements.push(d),E!==g&&(this._back=E,g._next=E),++this._size}shift(){let d=this._front,g=d,E=this._cursor,I=E+1,F=d._elements,V=F[E];return I===Y&&(g=d._next,I=0),--this._size,this._cursor=I,d!==g&&(this._front=g),F[E]=void 0,V}forEach(d){let g=this._cursor,E=this._front,I=E._elements;for(;(g!==I.length||E._next!==void 0)&&!(g===I.length&&(E=E._next,I=E._elements,g=0,I.length===0));)d(I[g]),++g}peek(){let d=this._front,g=this._cursor;return d._elements[g]}}let X=Symbol("[[AbortSteps]]"),re=Symbol("[[ErrorSteps]]"),ce=Symbol("[[CancelSteps]]"),ee=Symbol("[[PullSteps]]"),Le=Symbol("[[ReleaseSteps]]");function le(c,d){c._ownerReadableStream=d,d._reader=c,d._state==="readable"?Q(c):d._state==="closed"?me(c):de(c,d._storedError)}a(le,"ReadableStreamReaderGenericInitialize");function W(c,d){let g=c._ownerReadableStream;return qr(g,d)}a(W,"ReadableStreamReaderGenericCancel");function Z(c){let d=c._ownerReadableStream;d._state==="readable"?ze(c,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):je(c,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),d._readableStreamController[Le](),d._reader=void 0,c._ownerReadableStream=void 0}a(Z,"ReadableStreamReaderGenericRelease");function oe(c){return new TypeError("Cannot "+c+" a stream using a released reader")}a(oe,"readerLockException");function Q(c){c._closedPromise=l((d,g)=>{c._closedPromise_resolve=d,c._closedPromise_reject=g})}a(Q,"defaultReaderClosedPromiseInitialize");function de(c,d){Q(c),ze(c,d)}a(de,"defaultReaderClosedPromiseInitializeAsRejected");function me(c){Q(c),Qe(c)}a(me,"defaultReaderClosedPromiseInitializeAsResolved");function ze(c,d){c._closedPromise_reject!==void 0&&(S(c._closedPromise),c._closedPromise_reject(d),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0)}a(ze,"defaultReaderClosedPromiseReject");function je(c,d){de(c,d)}a(je,"defaultReaderClosedPromiseResetToRejected");function Qe(c){c._closedPromise_resolve!==void 0&&(c._closedPromise_resolve(void 0),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0)}a(Qe,"defaultReaderClosedPromiseResolve");let it=Number.isFinite||function(c){return typeof c=="number"&&isFinite(c)},It=Math.trunc||function(c){return c<0?Math.ceil(c):Math.floor(c)};function se(c){return typeof c=="object"||typeof c=="function"}a(se,"isDictionary");function gt(c,d){if(c!==void 0&&!se(c))throw new TypeError(`${d} is not an object.`)}a(gt,"assertDictionary");function _t(c,d){if(typeof c!="function")throw new TypeError(`${d} is not a function.`)}a(_t,"assertFunction");function sr(c){return typeof c=="object"&&c!==null||typeof c=="function"}a(sr,"isObject");function Je(c,d){if(!sr(c))throw new TypeError(`${d} is not an object.`)}a(Je,"assertObject");function et(c,d,g){if(c===void 0)throw new TypeError(`Parameter ${d} is required in '${g}'.`)}a(et,"assertRequiredArgument");function b(c,d,g){if(c===void 0)throw new TypeError(`${d} is required in '${g}'.`)}a(b,"assertRequiredField");function x(c){return Number(c)}a(x,"convertUnrestrictedDouble");function A(c){return c===0?0:c}a(A,"censorNegativeZero");function M(c){return A(It(c))}a(M,"integerPart");function R(c,d){let E=Number.MAX_SAFE_INTEGER,I=Number(c);if(I=A(I),!it(I))throw new TypeError(`${d} is not a finite number`);if(I=M(I),I<0||I>E)throw new TypeError(`${d} is outside the accepted range of 0 to ${E}, inclusive`);return!it(I)||I===0?0:I}a(R,"convertUnsignedLongLongWithEnforceRange");function $(c,d){if(!to(c))throw new TypeError(`${d} is not a ReadableStream.`)}a($,"assertReadableStream");function B(c){return new J(c)}a(B,"AcquireReadableStreamDefaultReader");function C(c,d){c._reader._readRequests.push(d)}a(C,"ReadableStreamAddReadRequest");function N(c,d,g){let I=c._reader._readRequests.shift();g?I._closeSteps():I._chunkSteps(d)}a(N,"ReadableStreamFulfillReadRequest");function j(c){return c._reader._readRequests.length}a(j,"ReadableStreamGetNumReadRequests");function U(c){let d=c._reader;return!(d===void 0||!he(d))}a(U,"ReadableStreamHasDefaultReader");class J{static{a(this,"ReadableStreamDefaultReader")}constructor(d){if(et(d,1,"ReadableStreamDefaultReader"),$(d,"First parameter"),ro(d))throw new TypeError("This stream has already been locked for exclusive reading by another reader");le(this,d),this._readRequests=new H}get closed(){return he(this)?this._closedPromise:f(lt("closed"))}cancel(d=void 0){return he(this)?this._ownerReadableStream===void 0?f(oe("cancel")):W(this,d):f(lt("cancel"))}read(){if(!he(this))return f(lt("read"));if(this._ownerReadableStream===void 0)return f(oe("read from"));let d,g,E=l((F,V)=>{d=F,g=V});return ye(this,{_chunkSteps:a(F=>d({value:F,done:!1}),"_chunkSteps"),_closeSteps:a(()=>d({value:void 0,done:!0}),"_closeSteps"),_errorSteps:a(F=>g(F),"_errorSteps")}),E}releaseLock(){if(!he(this))throw lt("releaseLock");this._ownerReadableStream!==void 0&&Ze(this)}}Object.defineProperties(J.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),n(J.prototype.cancel,"cancel"),n(J.prototype.read,"read"),n(J.prototype.releaseLock,"releaseLock"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(J.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});function he(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_readRequests")?!1:c instanceof J}a(he,"IsReadableStreamDefaultReader");function ye(c,d){let g=c._ownerReadableStream;g._disturbed=!0,g._state==="closed"?d._closeSteps():g._state==="errored"?d._errorSteps(g._storedError):g._readableStreamController[ee](d)}a(ye,"ReadableStreamDefaultReaderRead");function Ze(c){Z(c);let d=new TypeError("Reader was released");ut(c,d)}a(Ze,"ReadableStreamDefaultReaderRelease");function ut(c,d){let g=c._readRequests;c._readRequests=new H,g.forEach(E=>{E._errorSteps(d)})}a(ut,"ReadableStreamDefaultReaderErrorReadRequests");function lt(c){return new TypeError(`ReadableStreamDefaultReader.prototype.${c} can only be used on a ReadableStreamDefaultReader`)}a(lt,"defaultReaderBrandCheckException");let Ve=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype);class Ke{static{a(this,"ReadableStreamAsyncIteratorImpl")}constructor(d,g){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=d,this._preventCancel=g}next(){let d=a(()=>this._nextSteps(),"nextSteps");return this._ongoingPromise=this._ongoingPromise?P(this._ongoingPromise,d,d):d(),this._ongoingPromise}return(d){let g=a(()=>this._returnSteps(d),"returnSteps");return this._ongoingPromise?P(this._ongoingPromise,g,g):g()}_nextSteps(){if(this._isFinished)return Promise.resolve({value:void 0,done:!0});let d=this._reader,g,E,I=l((V,fe)=>{g=V,E=fe});return ye(d,{_chunkSteps:a(V=>{this._ongoingPromise=void 0,T(()=>g({value:V,done:!1}))},"_chunkSteps"),_closeSteps:a(()=>{this._ongoingPromise=void 0,this._isFinished=!0,Z(d),g({value:void 0,done:!0})},"_closeSteps"),_errorSteps:a(V=>{this._ongoingPromise=void 0,this._isFinished=!0,Z(d),E(V)},"_errorSteps")}),I}_returnSteps(d){if(this._isFinished)return Promise.resolve({value:d,done:!0});this._isFinished=!0;let g=this._reader;if(!this._preventCancel){let E=W(g,d);return Z(g),P(E,()=>({value:d,done:!0}))}return Z(g),p({value:d,done:!0})}}let St={next(){return Oi(this)?this._asyncIteratorImpl.next():f(ki("next"))},return(c){return Oi(this)?this._asyncIteratorImpl.return(c):f(ki("return"))}};Object.setPrototypeOf(St,Ve);function Ri(c,d){let g=B(c),E=new Ke(g,d),I=Object.create(St);return I._asyncIteratorImpl=E,I}a(Ri,"AcquireReadableStreamAsyncIterator");function Oi(c){if(!r(c)||!Object.prototype.hasOwnProperty.call(c,"_asyncIteratorImpl"))return!1;try{return c._asyncIteratorImpl instanceof Ke}catch{return!1}}a(Oi,"IsReadableStreamAsyncIterator");function ki(c){return new TypeError(`ReadableStreamAsyncIterator.${c} can only be used on a ReadableSteamAsyncIterator`)}a(ki,"streamAsyncIteratorBrandCheckException");let cr=Number.isNaN||function(c){return c!==c};var An,Lt,xt;function tt(c){return c.slice()}a(tt,"CreateArrayFromList");function MS(c,d,g,E,I){new Uint8Array(c).set(new Uint8Array(g,E,I),d)}a(MS,"CopyDataBlockBytes");let wn=a(c=>(typeof c.transfer=="function"?wn=a(d=>d.transfer(),"TransferArrayBuffer"):typeof structuredClone=="function"?wn=a(d=>structuredClone(d,{transfer:[d]}),"TransferArrayBuffer"):wn=a(d=>d,"TransferArrayBuffer"),wn(c)),"TransferArrayBuffer"),Xn=a(c=>(typeof c.detached=="boolean"?Xn=a(d=>d.detached,"IsDetachedBuffer"):Xn=a(d=>d.byteLength===0,"IsDetachedBuffer"),Xn(c)),"IsDetachedBuffer");function LS(c,d,g){if(c.slice)return c.slice(d,g);let E=g-d,I=new ArrayBuffer(E);return MS(I,0,c,d,E),I}a(LS,"ArrayBufferSlice");function pl(c,d){let g=c[d];if(g!=null){if(typeof g!="function")throw new TypeError(`${String(d)} is not a function`);return g}}a(pl,"GetMethod");function yD(c){let d={[Symbol.iterator]:()=>c.iterator},g=(async function*(){return yield*d})(),E=g.next;return{iterator:g,nextMethod:E,done:!1}}a(yD,"CreateAsyncFromSyncIterator");let uh=(xt=(An=Symbol.asyncIterator)!==null&&An!==void 0?An:(Lt=Symbol.for)===null||Lt===void 0?void 0:Lt.call(Symbol,"Symbol.asyncIterator"))!==null&&xt!==void 0?xt:"@@asyncIterator";function jS(c,d="sync",g){if(g===void 0)if(d==="async"){if(g=pl(c,uh),g===void 0){let F=pl(c,Symbol.iterator),V=jS(c,"sync",F);return yD(V)}}else g=pl(c,Symbol.iterator);if(g===void 0)throw new TypeError("The object is not iterable");let E=k(g,c,[]);if(!r(E))throw new TypeError("The iterator method must return an object");let I=E.next;return{iterator:E,nextMethod:I,done:!1}}a(jS,"GetIterator");function _D(c){let d=k(c.nextMethod,c.iterator,[]);if(!r(d))throw new TypeError("The iterator.next() method must return an object");return d}a(_D,"IteratorNext");function vD(c){return!!c.done}a(vD,"IteratorComplete");function bD(c){return c.value}a(bD,"IteratorValue");function ED(c){return!(typeof c!="number"||cr(c)||c<0)}a(ED,"IsNonNegativeNumber");function FS(c){let d=LS(c.buffer,c.byteOffset,c.byteOffset+c.byteLength);return new Uint8Array(d)}a(FS,"CloneAsUint8Array");function lh(c){let d=c._queue.shift();return c._queueTotalSize-=d.size,c._queueTotalSize<0&&(c._queueTotalSize=0),d.value}a(lh,"DequeueValue");function dh(c,d,g){if(!ED(g)||g===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");c._queue.push({value:d,size:g}),c._queueTotalSize+=g}a(dh,"EnqueueValueWithSize");function PD(c){return c._queue.peek().value}a(PD,"PeekQueueValue");function Yn(c){c._queue=new H,c._queueTotalSize=0}a(Yn,"ResetQueue");function BS(c){return c===DataView}a(BS,"isDataViewConstructor");function SD(c){return BS(c.constructor)}a(SD,"isDataView");function xD(c){return BS(c)?1:c.BYTES_PER_ELEMENT}a(xD,"arrayBufferViewElementSize");class Uo{static{a(this,"ReadableStreamBYOBRequest")}constructor(){throw new TypeError("Illegal constructor")}get view(){if(!ph(this))throw yh("view");return this._view}respond(d){if(!ph(this))throw yh("respond");if(et(d,1,"respond"),d=R(d,"First parameter"),this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(Xn(this._view.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");gl(this._associatedReadableByteStreamController,d)}respondWithNewView(d){if(!ph(this))throw yh("respondWithNewView");if(et(d,1,"respondWithNewView"),!ArrayBuffer.isView(d))throw new TypeError("You can only respond with array buffer views");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(Xn(d.buffer))throw new TypeError("The given view's buffer has been detached and so cannot be used as a response");yl(this._associatedReadableByteStreamController,d)}}Object.defineProperties(Uo.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),n(Uo.prototype.respond,"respond"),n(Uo.prototype.respondWithNewView,"respondWithNewView"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Uo.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});class In{static{a(this,"ReadableByteStreamController")}constructor(){throw new TypeError("Illegal constructor")}get byobRequest(){if(!Mo(this))throw cs("byobRequest");return gh(this)}get desiredSize(){if(!Mo(this))throw cs("desiredSize");return YS(this)}close(){if(!Mo(this))throw cs("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");let d=this._controlledReadableByteStream._state;if(d!=="readable")throw new TypeError(`The stream (in ${d} state) is not in the readable state and cannot be closed`);ss(this)}enqueue(d){if(!Mo(this))throw cs("enqueue");if(et(d,1,"enqueue"),!ArrayBuffer.isView(d))throw new TypeError("chunk must be an array buffer view");if(d.byteLength===0)throw new TypeError("chunk must have non-zero byteLength");if(d.buffer.byteLength===0)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");let g=this._controlledReadableByteStream._state;if(g!=="readable")throw new TypeError(`The stream (in ${g} state) is not in the readable state and cannot be enqueued to`);hl(this,d)}error(d=void 0){if(!Mo(this))throw cs("error");wr(this,d)}[ce](d){qS(this),Yn(this);let g=this._cancelAlgorithm(d);return ml(this),g}[ee](d){let g=this._controlledReadableByteStream;if(this._queueTotalSize>0){XS(this,d);return}let E=this._autoAllocateChunkSize;if(E!==void 0){let I;try{I=new ArrayBuffer(E)}catch(V){d._errorSteps(V);return}let F={buffer:I,bufferByteLength:E,byteOffset:0,byteLength:E,bytesFilled:0,minimumFill:1,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(F)}C(g,d),Lo(this)}[Le](){if(this._pendingPullIntos.length>0){let d=this._pendingPullIntos.peek();d.readerType="none",this._pendingPullIntos=new H,this._pendingPullIntos.push(d)}}}Object.defineProperties(In.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),n(In.prototype.close,"close"),n(In.prototype.enqueue,"enqueue"),n(In.prototype.error,"error"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(In.prototype,Symbol.toStringTag,{value:"ReadableByteStreamController",configurable:!0});function Mo(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledReadableByteStream")?!1:c instanceof In}a(Mo,"IsReadableByteStreamController");function ph(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_associatedReadableByteStreamController")?!1:c instanceof Uo}a(ph,"IsReadableStreamBYOBRequest");function Lo(c){if(!CD(c))return;if(c._pulling){c._pullAgain=!0;return}c._pulling=!0;let g=c._pullAlgorithm();m(g,()=>(c._pulling=!1,c._pullAgain&&(c._pullAgain=!1,Lo(c)),null),E=>(wr(c,E),null))}a(Lo,"ReadableByteStreamControllerCallPullIfNeeded");function qS(c){mh(c),c._pendingPullIntos=new H}a(qS,"ReadableByteStreamControllerClearPendingPullIntos");function fh(c,d){let g=!1;c._state==="closed"&&(g=!0);let E=GS(d);d.readerType==="default"?N(c,E,g):zD(c,E,g)}a(fh,"ReadableByteStreamControllerCommitPullIntoDescriptor");function GS(c){let d=c.bytesFilled,g=c.elementSize;return new c.viewConstructor(c.buffer,c.byteOffset,d/g)}a(GS,"ReadableByteStreamControllerConvertPullIntoDescriptor");function fl(c,d,g,E){c._queue.push({buffer:d,byteOffset:g,byteLength:E}),c._queueTotalSize+=E}a(fl,"ReadableByteStreamControllerEnqueueChunkToQueue");function VS(c,d,g,E){let I;try{I=LS(d,g,g+E)}catch(F){throw wr(c,F),F}fl(c,I,0,E)}a(VS,"ReadableByteStreamControllerEnqueueClonedChunkToQueue");function HS(c,d){d.bytesFilled>0&&VS(c,d.buffer,d.byteOffset,d.bytesFilled),Ni(c)}a(HS,"ReadableByteStreamControllerEnqueueDetachedPullIntoToQueue");function ZS(c,d){let g=Math.min(c._queueTotalSize,d.byteLength-d.bytesFilled),E=d.bytesFilled+g,I=g,F=!1,V=E%d.elementSize,fe=E-V;fe>=d.minimumFill&&(I=fe-d.bytesFilled,F=!0);let Ie=c._queue;for(;I>0;){let _e=Ie.peek(),Ne=Math.min(I,_e.byteLength),Fe=d.byteOffset+d.bytesFilled;MS(d.buffer,Fe,_e.buffer,_e.byteOffset,Ne),_e.byteLength===Ne?Ie.shift():(_e.byteOffset+=Ne,_e.byteLength-=Ne),c._queueTotalSize-=Ne,WS(c,Ne,d),I-=Ne}return F}a(ZS,"ReadableByteStreamControllerFillPullIntoDescriptorFromQueue");function WS(c,d,g){g.bytesFilled+=d}a(WS,"ReadableByteStreamControllerFillHeadPullIntoDescriptor");function KS(c){c._queueTotalSize===0&&c._closeRequested?(ml(c),ms(c._controlledReadableByteStream)):Lo(c)}a(KS,"ReadableByteStreamControllerHandleQueueDrain");function mh(c){c._byobRequest!==null&&(c._byobRequest._associatedReadableByteStreamController=void 0,c._byobRequest._view=null,c._byobRequest=null)}a(mh,"ReadableByteStreamControllerInvalidateBYOBRequest");function hh(c){for(;c._pendingPullIntos.length>0;){if(c._queueTotalSize===0)return;let d=c._pendingPullIntos.peek();ZS(c,d)&&(Ni(c),fh(c._controlledReadableByteStream,d))}}a(hh,"ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue");function TD(c){let d=c._controlledReadableByteStream._reader;for(;d._readRequests.length>0;){if(c._queueTotalSize===0)return;let g=d._readRequests.shift();XS(c,g)}}a(TD,"ReadableByteStreamControllerProcessReadRequestsUsingQueue");function AD(c,d,g,E){let I=c._controlledReadableByteStream,F=d.constructor,V=xD(F),{byteOffset:fe,byteLength:Ie}=d,_e=g*V,Ne;try{Ne=wn(d.buffer)}catch(at){E._errorSteps(at);return}let Fe={buffer:Ne,bufferByteLength:Ne.byteLength,byteOffset:fe,byteLength:Ie,bytesFilled:0,minimumFill:_e,elementSize:V,viewConstructor:F,readerType:"byob"};if(c._pendingPullIntos.length>0){c._pendingPullIntos.push(Fe),tx(I,E);return}if(I._state==="closed"){let at=new F(Fe.buffer,Fe.byteOffset,0);E._closeSteps(at);return}if(c._queueTotalSize>0){if(ZS(c,Fe)){let at=GS(Fe);KS(c),E._chunkSteps(at);return}if(c._closeRequested){let at=new TypeError("Insufficient bytes to fill elements in the given buffer");wr(c,at),E._errorSteps(at);return}}c._pendingPullIntos.push(Fe),tx(I,E),Lo(c)}a(AD,"ReadableByteStreamControllerPullInto");function wD(c,d){d.readerType==="none"&&Ni(c);let g=c._controlledReadableByteStream;if(_h(g))for(;rx(g)>0;){let E=Ni(c);fh(g,E)}}a(wD,"ReadableByteStreamControllerRespondInClosedState");function ID(c,d,g){if(WS(c,d,g),g.readerType==="none"){HS(c,g),hh(c);return}if(g.bytesFilled<g.minimumFill)return;Ni(c);let E=g.bytesFilled%g.elementSize;if(E>0){let I=g.byteOffset+g.bytesFilled;VS(c,g.buffer,I-E,E)}g.bytesFilled-=E,fh(c._controlledReadableByteStream,g),hh(c)}a(ID,"ReadableByteStreamControllerRespondInReadableState");function JS(c,d){let g=c._pendingPullIntos.peek();mh(c),c._controlledReadableByteStream._state==="closed"?wD(c,g):ID(c,d,g),Lo(c)}a(JS,"ReadableByteStreamControllerRespondInternal");function Ni(c){return c._pendingPullIntos.shift()}a(Ni,"ReadableByteStreamControllerShiftPendingPullInto");function CD(c){let d=c._controlledReadableByteStream;return d._state!=="readable"||c._closeRequested||!c._started?!1:!!(U(d)&&j(d)>0||_h(d)&&rx(d)>0||YS(c)>0)}a(CD,"ReadableByteStreamControllerShouldCallPull");function ml(c){c._pullAlgorithm=void 0,c._cancelAlgorithm=void 0}a(ml,"ReadableByteStreamControllerClearAlgorithms");function ss(c){let d=c._controlledReadableByteStream;if(!(c._closeRequested||d._state!=="readable")){if(c._queueTotalSize>0){c._closeRequested=!0;return}if(c._pendingPullIntos.length>0){let g=c._pendingPullIntos.peek();if(g.bytesFilled%g.elementSize!==0){let E=new TypeError("Insufficient bytes to fill elements in the given buffer");throw wr(c,E),E}}ml(c),ms(d)}}a(ss,"ReadableByteStreamControllerClose");function hl(c,d){let g=c._controlledReadableByteStream;if(c._closeRequested||g._state!=="readable")return;let{buffer:E,byteOffset:I,byteLength:F}=d;if(Xn(E))throw new TypeError("chunk's buffer is detached and so cannot be enqueued");let V=wn(E);if(c._pendingPullIntos.length>0){let fe=c._pendingPullIntos.peek();if(Xn(fe.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be filled with an enqueued chunk");mh(c),fe.buffer=wn(fe.buffer),fe.readerType==="none"&&HS(c,fe)}if(U(g))if(TD(c),j(g)===0)fl(c,V,I,F);else{c._pendingPullIntos.length>0&&Ni(c);let fe=new Uint8Array(V,I,F);N(g,fe,!1)}else _h(g)?(fl(c,V,I,F),hh(c)):fl(c,V,I,F);Lo(c)}a(hl,"ReadableByteStreamControllerEnqueue");function wr(c,d){let g=c._controlledReadableByteStream;g._state==="readable"&&(qS(c),Yn(c),ml(c),Ax(g,d))}a(wr,"ReadableByteStreamControllerError");function XS(c,d){let g=c._queue.shift();c._queueTotalSize-=g.byteLength,KS(c);let E=new Uint8Array(g.buffer,g.byteOffset,g.byteLength);d._chunkSteps(E)}a(XS,"ReadableByteStreamControllerFillReadRequestFromQueue");function gh(c){if(c._byobRequest===null&&c._pendingPullIntos.length>0){let d=c._pendingPullIntos.peek(),g=new Uint8Array(d.buffer,d.byteOffset+d.bytesFilled,d.byteLength-d.bytesFilled),E=Object.create(Uo.prototype);OD(E,c,g),c._byobRequest=E}return c._byobRequest}a(gh,"ReadableByteStreamControllerGetBYOBRequest");function YS(c){let d=c._controlledReadableByteStream._state;return d==="errored"?null:d==="closed"?0:c._strategyHWM-c._queueTotalSize}a(YS,"ReadableByteStreamControllerGetDesiredSize");function gl(c,d){let g=c._pendingPullIntos.peek();if(c._controlledReadableByteStream._state==="closed"){if(d!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(d===0)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(g.bytesFilled+d>g.byteLength)throw new RangeError("bytesWritten out of range")}g.buffer=wn(g.buffer),JS(c,d)}a(gl,"ReadableByteStreamControllerRespond");function yl(c,d){let g=c._pendingPullIntos.peek();if(c._controlledReadableByteStream._state==="closed"){if(d.byteLength!==0)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(d.byteLength===0)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(g.byteOffset+g.bytesFilled!==d.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(g.bufferByteLength!==d.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(g.bytesFilled+d.byteLength>g.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");let I=d.byteLength;g.buffer=wn(d.buffer),JS(c,I)}a(yl,"ReadableByteStreamControllerRespondWithNewView");function QS(c,d,g,E,I,F,V){d._controlledReadableByteStream=c,d._pullAgain=!1,d._pulling=!1,d._byobRequest=null,d._queue=d._queueTotalSize=void 0,Yn(d),d._closeRequested=!1,d._started=!1,d._strategyHWM=F,d._pullAlgorithm=E,d._cancelAlgorithm=I,d._autoAllocateChunkSize=V,d._pendingPullIntos=new H,c._readableStreamController=d;let fe=g();m(p(fe),()=>(d._started=!0,Lo(d),null),Ie=>(wr(d,Ie),null))}a(QS,"SetUpReadableByteStreamController");function RD(c,d,g){let E=Object.create(In.prototype),I,F,V;d.start!==void 0?I=a(()=>d.start(E),"startAlgorithm"):I=a(()=>{},"startAlgorithm"),d.pull!==void 0?F=a(()=>d.pull(E),"pullAlgorithm"):F=a(()=>p(void 0),"pullAlgorithm"),d.cancel!==void 0?V=a(Ie=>d.cancel(Ie),"cancelAlgorithm"):V=a(()=>p(void 0),"cancelAlgorithm");let fe=d.autoAllocateChunkSize;if(fe===0)throw new TypeError("autoAllocateChunkSize must be greater than 0");QS(c,E,I,F,V,g,fe)}a(RD,"SetUpReadableByteStreamControllerFromUnderlyingSource");function OD(c,d,g){c._associatedReadableByteStreamController=d,c._view=g}a(OD,"SetUpReadableStreamBYOBRequest");function yh(c){return new TypeError(`ReadableStreamBYOBRequest.prototype.${c} can only be used on a ReadableStreamBYOBRequest`)}a(yh,"byobRequestBrandCheckException");function cs(c){return new TypeError(`ReadableByteStreamController.prototype.${c} can only be used on a ReadableByteStreamController`)}a(cs,"byteStreamControllerBrandCheckException");function kD(c,d){gt(c,d);let g=c?.mode;return{mode:g===void 0?void 0:ND(g,`${d} has member 'mode' that`)}}a(kD,"convertReaderOptions");function ND(c,d){if(c=`${c}`,c!=="byob")throw new TypeError(`${d} '${c}' is not a valid enumeration value for ReadableStreamReaderMode`);return c}a(ND,"convertReadableStreamReaderMode");function $D(c,d){var g;gt(c,d);let E=(g=c?.min)!==null&&g!==void 0?g:1;return{min:R(E,`${d} has member 'min' that`)}}a($D,"convertByobReadOptions");function ex(c){return new Qn(c)}a(ex,"AcquireReadableStreamBYOBReader");function tx(c,d){c._reader._readIntoRequests.push(d)}a(tx,"ReadableStreamAddReadIntoRequest");function zD(c,d,g){let I=c._reader._readIntoRequests.shift();g?I._closeSteps(d):I._chunkSteps(d)}a(zD,"ReadableStreamFulfillReadIntoRequest");function rx(c){return c._reader._readIntoRequests.length}a(rx,"ReadableStreamGetNumReadIntoRequests");function _h(c){let d=c._reader;return!(d===void 0||!jo(d))}a(_h,"ReadableStreamHasBYOBReader");class Qn{static{a(this,"ReadableStreamBYOBReader")}constructor(d){if(et(d,1,"ReadableStreamBYOBReader"),$(d,"First parameter"),ro(d))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!Mo(d._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");le(this,d),this._readIntoRequests=new H}get closed(){return jo(this)?this._closedPromise:f(_l("closed"))}cancel(d=void 0){return jo(this)?this._ownerReadableStream===void 0?f(oe("cancel")):W(this,d):f(_l("cancel"))}read(d,g={}){if(!jo(this))return f(_l("read"));if(!ArrayBuffer.isView(d))return f(new TypeError("view must be an array buffer view"));if(d.byteLength===0)return f(new TypeError("view must have non-zero byteLength"));if(d.buffer.byteLength===0)return f(new TypeError("view's buffer must have non-zero byteLength"));if(Xn(d.buffer))return f(new TypeError("view's buffer has been detached"));let E;try{E=$D(g,"options")}catch(_e){return f(_e)}let I=E.min;if(I===0)return f(new TypeError("options.min must be greater than 0"));if(SD(d)){if(I>d.byteLength)return f(new RangeError("options.min must be less than or equal to view's byteLength"))}else if(I>d.length)return f(new RangeError("options.min must be less than or equal to view's length"));if(this._ownerReadableStream===void 0)return f(oe("read from"));let F,V,fe=l((_e,Ne)=>{F=_e,V=Ne});return nx(this,d,I,{_chunkSteps:a(_e=>F({value:_e,done:!1}),"_chunkSteps"),_closeSteps:a(_e=>F({value:_e,done:!0}),"_closeSteps"),_errorSteps:a(_e=>V(_e),"_errorSteps")}),fe}releaseLock(){if(!jo(this))throw _l("releaseLock");this._ownerReadableStream!==void 0&&DD(this)}}Object.defineProperties(Qn.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),n(Qn.prototype.cancel,"cancel"),n(Qn.prototype.read,"read"),n(Qn.prototype.releaseLock,"releaseLock"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Qn.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});function jo(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_readIntoRequests")?!1:c instanceof Qn}a(jo,"IsReadableStreamBYOBReader");function nx(c,d,g,E){let I=c._ownerReadableStream;I._disturbed=!0,I._state==="errored"?E._errorSteps(I._storedError):AD(I._readableStreamController,d,g,E)}a(nx,"ReadableStreamBYOBReaderRead");function DD(c){Z(c);let d=new TypeError("Reader was released");ox(c,d)}a(DD,"ReadableStreamBYOBReaderRelease");function ox(c,d){let g=c._readIntoRequests;c._readIntoRequests=new H,g.forEach(E=>{E._errorSteps(d)})}a(ox,"ReadableStreamBYOBReaderErrorReadIntoRequests");function _l(c){return new TypeError(`ReadableStreamBYOBReader.prototype.${c} can only be used on a ReadableStreamBYOBReader`)}a(_l,"byobReaderBrandCheckException");function us(c,d){let{highWaterMark:g}=c;if(g===void 0)return d;if(cr(g)||g<0)throw new RangeError("Invalid highWaterMark");return g}a(us,"ExtractHighWaterMark");function vl(c){let{size:d}=c;return d||(()=>1)}a(vl,"ExtractSizeAlgorithm");function bl(c,d){gt(c,d);let g=c?.highWaterMark,E=c?.size;return{highWaterMark:g===void 0?void 0:x(g),size:E===void 0?void 0:UD(E,`${d} has member 'size' that`)}}a(bl,"convertQueuingStrategy");function UD(c,d){return _t(c,d),g=>x(c(g))}a(UD,"convertQueuingStrategySize");function MD(c,d){gt(c,d);let g=c?.abort,E=c?.close,I=c?.start,F=c?.type,V=c?.write;return{abort:g===void 0?void 0:LD(g,c,`${d} has member 'abort' that`),close:E===void 0?void 0:jD(E,c,`${d} has member 'close' that`),start:I===void 0?void 0:FD(I,c,`${d} has member 'start' that`),write:V===void 0?void 0:BD(V,c,`${d} has member 'write' that`),type:F}}a(MD,"convertUnderlyingSink");function LD(c,d,g){return _t(c,g),E=>L(c,d,[E])}a(LD,"convertUnderlyingSinkAbortCallback");function jD(c,d,g){return _t(c,g),()=>L(c,d,[])}a(jD,"convertUnderlyingSinkCloseCallback");function FD(c,d,g){return _t(c,g),E=>k(c,d,[E])}a(FD,"convertUnderlyingSinkStartCallback");function BD(c,d,g){return _t(c,g),(E,I)=>L(c,d,[E,I])}a(BD,"convertUnderlyingSinkWriteCallback");function ix(c,d){if(!$i(c))throw new TypeError(`${d} is not a WritableStream.`)}a(ix,"assertWritableStream");function qD(c){if(typeof c!="object"||c===null)return!1;try{return typeof c.aborted=="boolean"}catch{return!1}}a(qD,"isAbortSignal");let GD=typeof AbortController=="function";function VD(){if(GD)return new AbortController}a(VD,"createAbortController");class eo{static{a(this,"WritableStream")}constructor(d={},g={}){d===void 0?d=null:Je(d,"First parameter");let E=bl(g,"Second parameter"),I=MD(d,"First parameter");if(sx(this),I.type!==void 0)throw new RangeError("Invalid type is specified");let V=vl(E),fe=us(E,1);iU(this,I,fe,V)}get locked(){if(!$i(this))throw Tl("locked");return zi(this)}abort(d=void 0){return $i(this)?zi(this)?f(new TypeError("Cannot abort a stream that already has a writer")):El(this,d):f(Tl("abort"))}close(){return $i(this)?zi(this)?f(new TypeError("Cannot close a stream that already has a writer")):sn(this)?f(new TypeError("Cannot close an already-closing stream")):cx(this):f(Tl("close"))}getWriter(){if(!$i(this))throw Tl("getWriter");return ax(this)}}Object.defineProperties(eo.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),n(eo.prototype.abort,"abort"),n(eo.prototype.close,"close"),n(eo.prototype.getWriter,"getWriter"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(eo.prototype,Symbol.toStringTag,{value:"WritableStream",configurable:!0});function ax(c){return new Cn(c)}a(ax,"AcquireWritableStreamDefaultWriter");function HD(c,d,g,E,I=1,F=()=>1){let V=Object.create(eo.prototype);sx(V);let fe=Object.create(Di.prototype);return mx(V,fe,c,d,g,E,I,F),V}a(HD,"CreateWritableStream");function sx(c){c._state="writable",c._storedError=void 0,c._writer=void 0,c._writableStreamController=void 0,c._writeRequests=new H,c._inFlightWriteRequest=void 0,c._closeRequest=void 0,c._inFlightCloseRequest=void 0,c._pendingAbortRequest=void 0,c._backpressure=!1}a(sx,"InitializeWritableStream");function $i(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_writableStreamController")?!1:c instanceof eo}a($i,"IsWritableStream");function zi(c){return c._writer!==void 0}a(zi,"IsWritableStreamLocked");function El(c,d){var g;if(c._state==="closed"||c._state==="errored")return p(void 0);c._writableStreamController._abortReason=d,(g=c._writableStreamController._abortController)===null||g===void 0||g.abort(d);let E=c._state;if(E==="closed"||E==="errored")return p(void 0);if(c._pendingAbortRequest!==void 0)return c._pendingAbortRequest._promise;let I=!1;E==="erroring"&&(I=!0,d=void 0);let F=l((V,fe)=>{c._pendingAbortRequest={_promise:void 0,_resolve:V,_reject:fe,_reason:d,_wasAlreadyErroring:I}});return c._pendingAbortRequest._promise=F,I||bh(c,d),F}a(El,"WritableStreamAbort");function cx(c){let d=c._state;if(d==="closed"||d==="errored")return f(new TypeError(`The stream (in ${d} state) is not in the writable state and cannot be closed`));let g=l((I,F)=>{let V={_resolve:I,_reject:F};c._closeRequest=V}),E=c._writer;return E!==void 0&&c._backpressure&&d==="writable"&&Ih(E),aU(c._writableStreamController),g}a(cx,"WritableStreamClose");function ZD(c){return l((g,E)=>{let I={_resolve:g,_reject:E};c._writeRequests.push(I)})}a(ZD,"WritableStreamAddWriteRequest");function vh(c,d){if(c._state==="writable"){bh(c,d);return}Eh(c)}a(vh,"WritableStreamDealWithRejection");function bh(c,d){let g=c._writableStreamController;c._state="erroring",c._storedError=d;let E=c._writer;E!==void 0&&lx(E,d),!YD(c)&&g._started&&Eh(c)}a(bh,"WritableStreamStartErroring");function Eh(c){c._state="errored",c._writableStreamController[re]();let d=c._storedError;if(c._writeRequests.forEach(I=>{I._reject(d)}),c._writeRequests=new H,c._pendingAbortRequest===void 0){Pl(c);return}let g=c._pendingAbortRequest;if(c._pendingAbortRequest=void 0,g._wasAlreadyErroring){g._reject(d),Pl(c);return}let E=c._writableStreamController[X](g._reason);m(E,()=>(g._resolve(),Pl(c),null),I=>(g._reject(I),Pl(c),null))}a(Eh,"WritableStreamFinishErroring");function WD(c){c._inFlightWriteRequest._resolve(void 0),c._inFlightWriteRequest=void 0}a(WD,"WritableStreamFinishInFlightWrite");function KD(c,d){c._inFlightWriteRequest._reject(d),c._inFlightWriteRequest=void 0,vh(c,d)}a(KD,"WritableStreamFinishInFlightWriteWithError");function JD(c){c._inFlightCloseRequest._resolve(void 0),c._inFlightCloseRequest=void 0,c._state==="erroring"&&(c._storedError=void 0,c._pendingAbortRequest!==void 0&&(c._pendingAbortRequest._resolve(),c._pendingAbortRequest=void 0)),c._state="closed";let g=c._writer;g!==void 0&&_x(g)}a(JD,"WritableStreamFinishInFlightClose");function XD(c,d){c._inFlightCloseRequest._reject(d),c._inFlightCloseRequest=void 0,c._pendingAbortRequest!==void 0&&(c._pendingAbortRequest._reject(d),c._pendingAbortRequest=void 0),vh(c,d)}a(XD,"WritableStreamFinishInFlightCloseWithError");function sn(c){return!(c._closeRequest===void 0&&c._inFlightCloseRequest===void 0)}a(sn,"WritableStreamCloseQueuedOrInFlight");function YD(c){return!(c._inFlightWriteRequest===void 0&&c._inFlightCloseRequest===void 0)}a(YD,"WritableStreamHasOperationMarkedInFlight");function QD(c){c._inFlightCloseRequest=c._closeRequest,c._closeRequest=void 0}a(QD,"WritableStreamMarkCloseRequestInFlight");function eU(c){c._inFlightWriteRequest=c._writeRequests.shift()}a(eU,"WritableStreamMarkFirstWriteRequestInFlight");function Pl(c){c._closeRequest!==void 0&&(c._closeRequest._reject(c._storedError),c._closeRequest=void 0);let d=c._writer;d!==void 0&&Ah(d,c._storedError)}a(Pl,"WritableStreamRejectCloseAndClosedPromiseIfNeeded");function Ph(c,d){let g=c._writer;g!==void 0&&d!==c._backpressure&&(d?fU(g):Ih(g)),c._backpressure=d}a(Ph,"WritableStreamUpdateBackpressure");class Cn{static{a(this,"WritableStreamDefaultWriter")}constructor(d){if(et(d,1,"WritableStreamDefaultWriter"),ix(d,"First parameter"),zi(d))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=d,d._writer=this;let g=d._state;if(g==="writable")!sn(d)&&d._backpressure?wl(this):vx(this),Al(this);else if(g==="erroring")wh(this,d._storedError),Al(this);else if(g==="closed")vx(this),dU(this);else{let E=d._storedError;wh(this,E),yx(this,E)}}get closed(){return Fo(this)?this._closedPromise:f(Bo("closed"))}get desiredSize(){if(!Fo(this))throw Bo("desiredSize");if(this._ownerWritableStream===void 0)throw ds("desiredSize");return oU(this)}get ready(){return Fo(this)?this._readyPromise:f(Bo("ready"))}abort(d=void 0){return Fo(this)?this._ownerWritableStream===void 0?f(ds("abort")):tU(this,d):f(Bo("abort"))}close(){if(!Fo(this))return f(Bo("close"));let d=this._ownerWritableStream;return d===void 0?f(ds("close")):sn(d)?f(new TypeError("Cannot close an already-closing stream")):ux(this)}releaseLock(){if(!Fo(this))throw Bo("releaseLock");this._ownerWritableStream!==void 0&&dx(this)}write(d=void 0){return Fo(this)?this._ownerWritableStream===void 0?f(ds("write to")):px(this,d):f(Bo("write"))}}Object.defineProperties(Cn.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),n(Cn.prototype.abort,"abort"),n(Cn.prototype.close,"close"),n(Cn.prototype.releaseLock,"releaseLock"),n(Cn.prototype.write,"write"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Cn.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});function Fo(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_ownerWritableStream")?!1:c instanceof Cn}a(Fo,"IsWritableStreamDefaultWriter");function tU(c,d){let g=c._ownerWritableStream;return El(g,d)}a(tU,"WritableStreamDefaultWriterAbort");function ux(c){let d=c._ownerWritableStream;return cx(d)}a(ux,"WritableStreamDefaultWriterClose");function rU(c){let d=c._ownerWritableStream,g=d._state;return sn(d)||g==="closed"?p(void 0):g==="errored"?f(d._storedError):ux(c)}a(rU,"WritableStreamDefaultWriterCloseWithErrorPropagation");function nU(c,d){c._closedPromiseState==="pending"?Ah(c,d):pU(c,d)}a(nU,"WritableStreamDefaultWriterEnsureClosedPromiseRejected");function lx(c,d){c._readyPromiseState==="pending"?bx(c,d):mU(c,d)}a(lx,"WritableStreamDefaultWriterEnsureReadyPromiseRejected");function oU(c){let d=c._ownerWritableStream,g=d._state;return g==="errored"||g==="erroring"?null:g==="closed"?0:hx(d._writableStreamController)}a(oU,"WritableStreamDefaultWriterGetDesiredSize");function dx(c){let d=c._ownerWritableStream,g=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");lx(c,g),nU(c,g),d._writer=void 0,c._ownerWritableStream=void 0}a(dx,"WritableStreamDefaultWriterRelease");function px(c,d){let g=c._ownerWritableStream,E=g._writableStreamController,I=sU(E,d);if(g!==c._ownerWritableStream)return f(ds("write to"));let F=g._state;if(F==="errored")return f(g._storedError);if(sn(g)||F==="closed")return f(new TypeError("The stream is closing or closed and cannot be written to"));if(F==="erroring")return f(g._storedError);let V=ZD(g);return cU(E,d,I),V}a(px,"WritableStreamDefaultWriterWrite");let fx={};class Di{static{a(this,"WritableStreamDefaultController")}constructor(){throw new TypeError("Illegal constructor")}get abortReason(){if(!Sh(this))throw Th("abortReason");return this._abortReason}get signal(){if(!Sh(this))throw Th("signal");if(this._abortController===void 0)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal}error(d=void 0){if(!Sh(this))throw Th("error");this._controlledWritableStream._state==="writable"&&gx(this,d)}[X](d){let g=this._abortAlgorithm(d);return Sl(this),g}[re](){Yn(this)}}Object.defineProperties(Di.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Di.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});function Sh(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledWritableStream")?!1:c instanceof Di}a(Sh,"IsWritableStreamDefaultController");function mx(c,d,g,E,I,F,V,fe){d._controlledWritableStream=c,c._writableStreamController=d,d._queue=void 0,d._queueTotalSize=void 0,Yn(d),d._abortReason=void 0,d._abortController=VD(),d._started=!1,d._strategySizeAlgorithm=fe,d._strategyHWM=V,d._writeAlgorithm=E,d._closeAlgorithm=I,d._abortAlgorithm=F;let Ie=xh(d);Ph(c,Ie);let _e=g(),Ne=p(_e);m(Ne,()=>(d._started=!0,xl(d),null),Fe=>(d._started=!0,vh(c,Fe),null))}a(mx,"SetUpWritableStreamDefaultController");function iU(c,d,g,E){let I=Object.create(Di.prototype),F,V,fe,Ie;d.start!==void 0?F=a(()=>d.start(I),"startAlgorithm"):F=a(()=>{},"startAlgorithm"),d.write!==void 0?V=a(_e=>d.write(_e,I),"writeAlgorithm"):V=a(()=>p(void 0),"writeAlgorithm"),d.close!==void 0?fe=a(()=>d.close(),"closeAlgorithm"):fe=a(()=>p(void 0),"closeAlgorithm"),d.abort!==void 0?Ie=a(_e=>d.abort(_e),"abortAlgorithm"):Ie=a(()=>p(void 0),"abortAlgorithm"),mx(c,I,F,V,fe,Ie,g,E)}a(iU,"SetUpWritableStreamDefaultControllerFromUnderlyingSink");function Sl(c){c._writeAlgorithm=void 0,c._closeAlgorithm=void 0,c._abortAlgorithm=void 0,c._strategySizeAlgorithm=void 0}a(Sl,"WritableStreamDefaultControllerClearAlgorithms");function aU(c){dh(c,fx,0),xl(c)}a(aU,"WritableStreamDefaultControllerClose");function sU(c,d){try{return c._strategySizeAlgorithm(d)}catch(g){return ls(c,g),1}}a(sU,"WritableStreamDefaultControllerGetChunkSize");function hx(c){return c._strategyHWM-c._queueTotalSize}a(hx,"WritableStreamDefaultControllerGetDesiredSize");function cU(c,d,g){try{dh(c,d,g)}catch(I){ls(c,I);return}let E=c._controlledWritableStream;if(!sn(E)&&E._state==="writable"){let I=xh(c);Ph(E,I)}xl(c)}a(cU,"WritableStreamDefaultControllerWrite");function xl(c){let d=c._controlledWritableStream;if(!c._started||d._inFlightWriteRequest!==void 0)return;if(d._state==="erroring"){Eh(d);return}if(c._queue.length===0)return;let E=PD(c);E===fx?uU(c):lU(c,E)}a(xl,"WritableStreamDefaultControllerAdvanceQueueIfNeeded");function ls(c,d){c._controlledWritableStream._state==="writable"&&gx(c,d)}a(ls,"WritableStreamDefaultControllerErrorIfNeeded");function uU(c){let d=c._controlledWritableStream;QD(d),lh(c);let g=c._closeAlgorithm();Sl(c),m(g,()=>(JD(d),null),E=>(XD(d,E),null))}a(uU,"WritableStreamDefaultControllerProcessClose");function lU(c,d){let g=c._controlledWritableStream;eU(g);let E=c._writeAlgorithm(d);m(E,()=>{WD(g);let I=g._state;if(lh(c),!sn(g)&&I==="writable"){let F=xh(c);Ph(g,F)}return xl(c),null},I=>(g._state==="writable"&&Sl(c),KD(g,I),null))}a(lU,"WritableStreamDefaultControllerProcessWrite");function xh(c){return hx(c)<=0}a(xh,"WritableStreamDefaultControllerGetBackpressure");function gx(c,d){let g=c._controlledWritableStream;Sl(c),bh(g,d)}a(gx,"WritableStreamDefaultControllerError");function Tl(c){return new TypeError(`WritableStream.prototype.${c} can only be used on a WritableStream`)}a(Tl,"streamBrandCheckException$2");function Th(c){return new TypeError(`WritableStreamDefaultController.prototype.${c} can only be used on a WritableStreamDefaultController`)}a(Th,"defaultControllerBrandCheckException$2");function Bo(c){return new TypeError(`WritableStreamDefaultWriter.prototype.${c} can only be used on a WritableStreamDefaultWriter`)}a(Bo,"defaultWriterBrandCheckException");function ds(c){return new TypeError("Cannot "+c+" a stream using a released writer")}a(ds,"defaultWriterLockException");function Al(c){c._closedPromise=l((d,g)=>{c._closedPromise_resolve=d,c._closedPromise_reject=g,c._closedPromiseState="pending"})}a(Al,"defaultWriterClosedPromiseInitialize");function yx(c,d){Al(c),Ah(c,d)}a(yx,"defaultWriterClosedPromiseInitializeAsRejected");function dU(c){Al(c),_x(c)}a(dU,"defaultWriterClosedPromiseInitializeAsResolved");function Ah(c,d){c._closedPromise_reject!==void 0&&(S(c._closedPromise),c._closedPromise_reject(d),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0,c._closedPromiseState="rejected")}a(Ah,"defaultWriterClosedPromiseReject");function pU(c,d){yx(c,d)}a(pU,"defaultWriterClosedPromiseResetToRejected");function _x(c){c._closedPromise_resolve!==void 0&&(c._closedPromise_resolve(void 0),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0,c._closedPromiseState="resolved")}a(_x,"defaultWriterClosedPromiseResolve");function wl(c){c._readyPromise=l((d,g)=>{c._readyPromise_resolve=d,c._readyPromise_reject=g}),c._readyPromiseState="pending"}a(wl,"defaultWriterReadyPromiseInitialize");function wh(c,d){wl(c),bx(c,d)}a(wh,"defaultWriterReadyPromiseInitializeAsRejected");function vx(c){wl(c),Ih(c)}a(vx,"defaultWriterReadyPromiseInitializeAsResolved");function bx(c,d){c._readyPromise_reject!==void 0&&(S(c._readyPromise),c._readyPromise_reject(d),c._readyPromise_resolve=void 0,c._readyPromise_reject=void 0,c._readyPromiseState="rejected")}a(bx,"defaultWriterReadyPromiseReject");function fU(c){wl(c)}a(fU,"defaultWriterReadyPromiseReset");function mU(c,d){wh(c,d)}a(mU,"defaultWriterReadyPromiseResetToRejected");function Ih(c){c._readyPromise_resolve!==void 0&&(c._readyPromise_resolve(void 0),c._readyPromise_resolve=void 0,c._readyPromise_reject=void 0,c._readyPromiseState="fulfilled")}a(Ih,"defaultWriterReadyPromiseResolve");function hU(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof global<"u")return global}a(hU,"getGlobals");let Ch=hU();function gU(c){if(!(typeof c=="function"||typeof c=="object")||c.name!=="DOMException")return!1;try{return new c,!0}catch{return!1}}a(gU,"isDOMExceptionConstructor");function yU(){let c=Ch?.DOMException;return gU(c)?c:void 0}a(yU,"getFromGlobal");function _U(){let c=a(function(g,E){this.message=g||"",this.name=E||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)},"DOMException");return n(c,"DOMException"),c.prototype=Object.create(Error.prototype),Object.defineProperty(c.prototype,"constructor",{value:c,writable:!0,configurable:!0}),c}a(_U,"createPolyfill");let vU=yU()||_U();function Ex(c,d,g,E,I,F){let V=B(c),fe=ax(d);c._disturbed=!0;let Ie=!1,_e=p(void 0);return l((Ne,Fe)=>{let at;if(F!==void 0){if(at=a(()=>{let be=F.reason!==void 0?F.reason:new vU("Aborted","AbortError"),qe=[];E||qe.push(()=>d._state==="writable"?El(d,be):p(void 0)),I||qe.push(()=>c._state==="readable"?qr(c,be):p(void 0)),Jt(()=>Promise.all(qe.map(st=>st())),!0,be)},"abortAlgorithm"),F.aborted){at();return}F.addEventListener("abort",at)}function Gr(){return l((be,qe)=>{function st(ur){ur?be():y(ji(),st,qe)}a(st,"next"),st(!1)})}a(Gr,"pipeLoop");function ji(){return Ie?p(!0):y(fe._readyPromise,()=>l((be,qe)=>{ye(V,{_chunkSteps:a(st=>{_e=y(px(fe,st),void 0,e),be(!1)},"_chunkSteps"),_closeSteps:a(()=>be(!0),"_closeSteps"),_errorSteps:qe})}))}if(a(ji,"pipeStep"),On(c,V._closedPromise,be=>(E?Ir(!0,be):Jt(()=>El(d,be),!0,be),null)),On(d,fe._closedPromise,be=>(I?Ir(!0,be):Jt(()=>qr(c,be),!0,be),null)),Gt(c,V._closedPromise,()=>(g?Ir():Jt(()=>rU(fe)),null)),sn(d)||d._state==="closed"){let be=new TypeError("the destination writable stream closed before all data could be piped to it");I?Ir(!0,be):Jt(()=>qr(c,be),!0,be)}S(Gr());function oo(){let be=_e;return y(_e,()=>be!==_e?oo():void 0)}a(oo,"waitForWritesToFinish");function On(be,qe,st){be._state==="errored"?st(be._storedError):_(qe,st)}a(On,"isOrBecomesErrored");function Gt(be,qe,st){be._state==="closed"?st():h(qe,st)}a(Gt,"isOrBecomesClosed");function Jt(be,qe,st){if(Ie)return;Ie=!0,d._state==="writable"&&!sn(d)?h(oo(),ur):ur();function ur(){return m(be(),()=>kn(qe,st),Fi=>kn(!0,Fi)),null}a(ur,"doTheRest")}a(Jt,"shutdownWithAction");function Ir(be,qe){Ie||(Ie=!0,d._state==="writable"&&!sn(d)?h(oo(),()=>kn(be,qe)):kn(be,qe))}a(Ir,"shutdown");function kn(be,qe){return dx(fe),Z(V),F!==void 0&&F.removeEventListener("abort",at),be?Fe(qe):Ne(void 0),null}a(kn,"finalize")})}a(Ex,"ReadableStreamPipeTo");class Rn{static{a(this,"ReadableStreamDefaultController")}constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!Il(this))throw Rl("desiredSize");return Rh(this)}close(){if(!Il(this))throw Rl("close");if(!Mi(this))throw new TypeError("The stream is not in a state that permits close");qo(this)}enqueue(d=void 0){if(!Il(this))throw Rl("enqueue");if(!Mi(this))throw new TypeError("The stream is not in a state that permits enqueue");return Ui(this,d)}error(d=void 0){if(!Il(this))throw Rl("error");Br(this,d)}[ce](d){Yn(this);let g=this._cancelAlgorithm(d);return Cl(this),g}[ee](d){let g=this._controlledReadableStream;if(this._queue.length>0){let E=lh(this);this._closeRequested&&this._queue.length===0?(Cl(this),ms(g)):ps(this),d._chunkSteps(E)}else C(g,d),ps(this)}[Le](){}}Object.defineProperties(Rn.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),n(Rn.prototype.close,"close"),n(Rn.prototype.enqueue,"enqueue"),n(Rn.prototype.error,"error"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Rn.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});function Il(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledReadableStream")?!1:c instanceof Rn}a(Il,"IsReadableStreamDefaultController");function ps(c){if(!Px(c))return;if(c._pulling){c._pullAgain=!0;return}c._pulling=!0;let g=c._pullAlgorithm();m(g,()=>(c._pulling=!1,c._pullAgain&&(c._pullAgain=!1,ps(c)),null),E=>(Br(c,E),null))}a(ps,"ReadableStreamDefaultControllerCallPullIfNeeded");function Px(c){let d=c._controlledReadableStream;return!Mi(c)||!c._started?!1:!!(ro(d)&&j(d)>0||Rh(c)>0)}a(Px,"ReadableStreamDefaultControllerShouldCallPull");function Cl(c){c._pullAlgorithm=void 0,c._cancelAlgorithm=void 0,c._strategySizeAlgorithm=void 0}a(Cl,"ReadableStreamDefaultControllerClearAlgorithms");function qo(c){if(!Mi(c))return;let d=c._controlledReadableStream;c._closeRequested=!0,c._queue.length===0&&(Cl(c),ms(d))}a(qo,"ReadableStreamDefaultControllerClose");function Ui(c,d){if(!Mi(c))return;let g=c._controlledReadableStream;if(ro(g)&&j(g)>0)N(g,d,!1);else{let E;try{E=c._strategySizeAlgorithm(d)}catch(I){throw Br(c,I),I}try{dh(c,d,E)}catch(I){throw Br(c,I),I}}ps(c)}a(Ui,"ReadableStreamDefaultControllerEnqueue");function Br(c,d){let g=c._controlledReadableStream;g._state==="readable"&&(Yn(c),Cl(c),Ax(g,d))}a(Br,"ReadableStreamDefaultControllerError");function Rh(c){let d=c._controlledReadableStream._state;return d==="errored"?null:d==="closed"?0:c._strategyHWM-c._queueTotalSize}a(Rh,"ReadableStreamDefaultControllerGetDesiredSize");function bU(c){return!Px(c)}a(bU,"ReadableStreamDefaultControllerHasBackpressure");function Mi(c){let d=c._controlledReadableStream._state;return!c._closeRequested&&d==="readable"}a(Mi,"ReadableStreamDefaultControllerCanCloseOrEnqueue");function Sx(c,d,g,E,I,F,V){d._controlledReadableStream=c,d._queue=void 0,d._queueTotalSize=void 0,Yn(d),d._started=!1,d._closeRequested=!1,d._pullAgain=!1,d._pulling=!1,d._strategySizeAlgorithm=V,d._strategyHWM=F,d._pullAlgorithm=E,d._cancelAlgorithm=I,c._readableStreamController=d;let fe=g();m(p(fe),()=>(d._started=!0,ps(d),null),Ie=>(Br(d,Ie),null))}a(Sx,"SetUpReadableStreamDefaultController");function EU(c,d,g,E){let I=Object.create(Rn.prototype),F,V,fe;d.start!==void 0?F=a(()=>d.start(I),"startAlgorithm"):F=a(()=>{},"startAlgorithm"),d.pull!==void 0?V=a(()=>d.pull(I),"pullAlgorithm"):V=a(()=>p(void 0),"pullAlgorithm"),d.cancel!==void 0?fe=a(Ie=>d.cancel(Ie),"cancelAlgorithm"):fe=a(()=>p(void 0),"cancelAlgorithm"),Sx(c,I,F,V,fe,g,E)}a(EU,"SetUpReadableStreamDefaultControllerFromUnderlyingSource");function Rl(c){return new TypeError(`ReadableStreamDefaultController.prototype.${c} can only be used on a ReadableStreamDefaultController`)}a(Rl,"defaultControllerBrandCheckException$1");function PU(c,d){return Mo(c._readableStreamController)?xU(c):SU(c)}a(PU,"ReadableStreamTee");function SU(c,d){let g=B(c),E=!1,I=!1,F=!1,V=!1,fe,Ie,_e,Ne,Fe,at=l(Gt=>{Fe=Gt});function Gr(){return E?(I=!0,p(void 0)):(E=!0,ye(g,{_chunkSteps:a(Jt=>{T(()=>{I=!1;let Ir=Jt,kn=Jt;F||Ui(_e._readableStreamController,Ir),V||Ui(Ne._readableStreamController,kn),E=!1,I&&Gr()})},"_chunkSteps"),_closeSteps:a(()=>{E=!1,F||qo(_e._readableStreamController),V||qo(Ne._readableStreamController),(!F||!V)&&Fe(void 0)},"_closeSteps"),_errorSteps:a(()=>{E=!1},"_errorSteps")}),p(void 0))}a(Gr,"pullAlgorithm");function ji(Gt){if(F=!0,fe=Gt,V){let Jt=tt([fe,Ie]),Ir=qr(c,Jt);Fe(Ir)}return at}a(ji,"cancel1Algorithm");function oo(Gt){if(V=!0,Ie=Gt,F){let Jt=tt([fe,Ie]),Ir=qr(c,Jt);Fe(Ir)}return at}a(oo,"cancel2Algorithm");function On(){}return a(On,"startAlgorithm"),_e=fs(On,Gr,ji),Ne=fs(On,Gr,oo),_(g._closedPromise,Gt=>(Br(_e._readableStreamController,Gt),Br(Ne._readableStreamController,Gt),(!F||!V)&&Fe(void 0),null)),[_e,Ne]}a(SU,"ReadableStreamDefaultTee");function xU(c){let d=B(c),g=!1,E=!1,I=!1,F=!1,V=!1,fe,Ie,_e,Ne,Fe,at=l(be=>{Fe=be});function Gr(be){_(be._closedPromise,qe=>(be!==d||(wr(_e._readableStreamController,qe),wr(Ne._readableStreamController,qe),(!F||!V)&&Fe(void 0)),null))}a(Gr,"forwardReaderError");function ji(){jo(d)&&(Z(d),d=B(c),Gr(d)),ye(d,{_chunkSteps:a(qe=>{T(()=>{E=!1,I=!1;let st=qe,ur=qe;if(!F&&!V)try{ur=FS(qe)}catch(Fi){wr(_e._readableStreamController,Fi),wr(Ne._readableStreamController,Fi),Fe(qr(c,Fi));return}F||hl(_e._readableStreamController,st),V||hl(Ne._readableStreamController,ur),g=!1,E?On():I&&Gt()})},"_chunkSteps"),_closeSteps:a(()=>{g=!1,F||ss(_e._readableStreamController),V||ss(Ne._readableStreamController),_e._readableStreamController._pendingPullIntos.length>0&&gl(_e._readableStreamController,0),Ne._readableStreamController._pendingPullIntos.length>0&&gl(Ne._readableStreamController,0),(!F||!V)&&Fe(void 0)},"_closeSteps"),_errorSteps:a(()=>{g=!1},"_errorSteps")})}a(ji,"pullWithDefaultReader");function oo(be,qe){he(d)&&(Z(d),d=ex(c),Gr(d));let st=qe?Ne:_e,ur=qe?_e:Ne;nx(d,be,1,{_chunkSteps:a(Bi=>{T(()=>{E=!1,I=!1;let qi=qe?V:F;if(qe?F:V)qi||yl(st._readableStreamController,Bi);else{let Lx;try{Lx=FS(Bi)}catch(zh){wr(st._readableStreamController,zh),wr(ur._readableStreamController,zh),Fe(qr(c,zh));return}qi||yl(st._readableStreamController,Bi),hl(ur._readableStreamController,Lx)}g=!1,E?On():I&&Gt()})},"_chunkSteps"),_closeSteps:a(Bi=>{g=!1;let qi=qe?V:F,Ml=qe?F:V;qi||ss(st._readableStreamController),Ml||ss(ur._readableStreamController),Bi!==void 0&&(qi||yl(st._readableStreamController,Bi),!Ml&&ur._readableStreamController._pendingPullIntos.length>0&&gl(ur._readableStreamController,0)),(!qi||!Ml)&&Fe(void 0)},"_closeSteps"),_errorSteps:a(()=>{g=!1},"_errorSteps")})}a(oo,"pullWithBYOBReader");function On(){if(g)return E=!0,p(void 0);g=!0;let be=gh(_e._readableStreamController);return be===null?ji():oo(be._view,!1),p(void 0)}a(On,"pull1Algorithm");function Gt(){if(g)return I=!0,p(void 0);g=!0;let be=gh(Ne._readableStreamController);return be===null?ji():oo(be._view,!0),p(void 0)}a(Gt,"pull2Algorithm");function Jt(be){if(F=!0,fe=be,V){let qe=tt([fe,Ie]),st=qr(c,qe);Fe(st)}return at}a(Jt,"cancel1Algorithm");function Ir(be){if(V=!0,Ie=be,F){let qe=tt([fe,Ie]),st=qr(c,qe);Fe(st)}return at}a(Ir,"cancel2Algorithm");function kn(){}return a(kn,"startAlgorithm"),_e=Tx(kn,On,Jt),Ne=Tx(kn,Gt,Ir),Gr(d),[_e,Ne]}a(xU,"ReadableByteStreamTee");function TU(c){return r(c)&&typeof c.getReader<"u"}a(TU,"isReadableStreamLike");function AU(c){return TU(c)?IU(c.getReader()):wU(c)}a(AU,"ReadableStreamFrom");function wU(c){let d,g=jS(c,"async"),E=e;function I(){let V;try{V=_D(g)}catch(Ie){return f(Ie)}let fe=p(V);return P(fe,Ie=>{if(!r(Ie))throw new TypeError("The promise returned by the iterator.next() method must fulfill with an object");if(vD(Ie))qo(d._readableStreamController);else{let Ne=bD(Ie);Ui(d._readableStreamController,Ne)}})}a(I,"pullAlgorithm");function F(V){let fe=g.iterator,Ie;try{Ie=pl(fe,"return")}catch(Fe){return f(Fe)}if(Ie===void 0)return p(void 0);let _e;try{_e=k(Ie,fe,[V])}catch(Fe){return f(Fe)}let Ne=p(_e);return P(Ne,Fe=>{if(!r(Fe))throw new TypeError("The promise returned by the iterator.return() method must fulfill with an object")})}return a(F,"cancelAlgorithm"),d=fs(E,I,F,0),d}a(wU,"ReadableStreamFromIterable");function IU(c){let d,g=e;function E(){let F;try{F=c.read()}catch(V){return f(V)}return P(F,V=>{if(!r(V))throw new TypeError("The promise returned by the reader.read() method must fulfill with an object");if(V.done)qo(d._readableStreamController);else{let fe=V.value;Ui(d._readableStreamController,fe)}})}a(E,"pullAlgorithm");function I(F){try{return p(c.cancel(F))}catch(V){return f(V)}}return a(I,"cancelAlgorithm"),d=fs(g,E,I,0),d}a(IU,"ReadableStreamFromDefaultReader");function CU(c,d){gt(c,d);let g=c,E=g?.autoAllocateChunkSize,I=g?.cancel,F=g?.pull,V=g?.start,fe=g?.type;return{autoAllocateChunkSize:E===void 0?void 0:R(E,`${d} has member 'autoAllocateChunkSize' that`),cancel:I===void 0?void 0:RU(I,g,`${d} has member 'cancel' that`),pull:F===void 0?void 0:OU(F,g,`${d} has member 'pull' that`),start:V===void 0?void 0:kU(V,g,`${d} has member 'start' that`),type:fe===void 0?void 0:NU(fe,`${d} has member 'type' that`)}}a(CU,"convertUnderlyingDefaultOrByteSource");function RU(c,d,g){return _t(c,g),E=>L(c,d,[E])}a(RU,"convertUnderlyingSourceCancelCallback");function OU(c,d,g){return _t(c,g),E=>L(c,d,[E])}a(OU,"convertUnderlyingSourcePullCallback");function kU(c,d,g){return _t(c,g),E=>k(c,d,[E])}a(kU,"convertUnderlyingSourceStartCallback");function NU(c,d){if(c=`${c}`,c!=="bytes")throw new TypeError(`${d} '${c}' is not a valid enumeration value for ReadableStreamType`);return c}a(NU,"convertReadableStreamType");function $U(c,d){return gt(c,d),{preventCancel:!!c?.preventCancel}}a($U,"convertIteratorOptions");function xx(c,d){gt(c,d);let g=c?.preventAbort,E=c?.preventCancel,I=c?.preventClose,F=c?.signal;return F!==void 0&&zU(F,`${d} has member 'signal' that`),{preventAbort:!!g,preventCancel:!!E,preventClose:!!I,signal:F}}a(xx,"convertPipeOptions");function zU(c,d){if(!qD(c))throw new TypeError(`${d} is not an AbortSignal.`)}a(zU,"assertAbortSignal");function DU(c,d){gt(c,d);let g=c?.readable;b(g,"readable","ReadableWritablePair"),$(g,`${d} has member 'readable' that`);let E=c?.writable;return b(E,"writable","ReadableWritablePair"),ix(E,`${d} has member 'writable' that`),{readable:g,writable:E}}a(DU,"convertReadableWritablePair");class jt{static{a(this,"ReadableStream")}constructor(d={},g={}){d===void 0?d=null:Je(d,"First parameter");let E=bl(g,"Second parameter"),I=CU(d,"First parameter");if(Oh(this),I.type==="bytes"){if(E.size!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");let F=us(E,0);RD(this,I,F)}else{let F=vl(E),V=us(E,1);EU(this,I,V,F)}}get locked(){if(!to(this))throw Go("locked");return ro(this)}cancel(d=void 0){return to(this)?ro(this)?f(new TypeError("Cannot cancel a stream that already has a reader")):qr(this,d):f(Go("cancel"))}getReader(d=void 0){if(!to(this))throw Go("getReader");return kD(d,"First parameter").mode===void 0?B(this):ex(this)}pipeThrough(d,g={}){if(!to(this))throw Go("pipeThrough");et(d,1,"pipeThrough");let E=DU(d,"First parameter"),I=xx(g,"Second parameter");if(ro(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(zi(E.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");let F=Ex(this,E.writable,I.preventClose,I.preventAbort,I.preventCancel,I.signal);return S(F),E.readable}pipeTo(d,g={}){if(!to(this))return f(Go("pipeTo"));if(d===void 0)return f("Parameter 1 is required in 'pipeTo'.");if(!$i(d))return f(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));let E;try{E=xx(g,"Second parameter")}catch(I){return f(I)}return ro(this)?f(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):zi(d)?f(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Ex(this,d,E.preventClose,E.preventAbort,E.preventCancel,E.signal)}tee(){if(!to(this))throw Go("tee");let d=PU(this);return tt(d)}values(d=void 0){if(!to(this))throw Go("values");let g=$U(d,"First parameter");return Ri(this,g.preventCancel)}[uh](d){return this.values(d)}static from(d){return AU(d)}}Object.defineProperties(jt,{from:{enumerable:!0}}),Object.defineProperties(jt.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),n(jt.from,"from"),n(jt.prototype.cancel,"cancel"),n(jt.prototype.getReader,"getReader"),n(jt.prototype.pipeThrough,"pipeThrough"),n(jt.prototype.pipeTo,"pipeTo"),n(jt.prototype.tee,"tee"),n(jt.prototype.values,"values"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(jt.prototype,Symbol.toStringTag,{value:"ReadableStream",configurable:!0}),Object.defineProperty(jt.prototype,uh,{value:jt.prototype.values,writable:!0,configurable:!0});function fs(c,d,g,E=1,I=()=>1){let F=Object.create(jt.prototype);Oh(F);let V=Object.create(Rn.prototype);return Sx(F,V,c,d,g,E,I),F}a(fs,"CreateReadableStream");function Tx(c,d,g){let E=Object.create(jt.prototype);Oh(E);let I=Object.create(In.prototype);return QS(E,I,c,d,g,0,void 0),E}a(Tx,"CreateReadableByteStream");function Oh(c){c._state="readable",c._reader=void 0,c._storedError=void 0,c._disturbed=!1}a(Oh,"InitializeReadableStream");function to(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_readableStreamController")?!1:c instanceof jt}a(to,"IsReadableStream");function ro(c){return c._reader!==void 0}a(ro,"IsReadableStreamLocked");function qr(c,d){if(c._disturbed=!0,c._state==="closed")return p(void 0);if(c._state==="errored")return f(c._storedError);ms(c);let g=c._reader;if(g!==void 0&&jo(g)){let I=g._readIntoRequests;g._readIntoRequests=new H,I.forEach(F=>{F._closeSteps(void 0)})}let E=c._readableStreamController[ce](d);return P(E,e)}a(qr,"ReadableStreamCancel");function ms(c){c._state="closed";let d=c._reader;if(d!==void 0&&(Qe(d),he(d))){let g=d._readRequests;d._readRequests=new H,g.forEach(E=>{E._closeSteps()})}}a(ms,"ReadableStreamClose");function Ax(c,d){c._state="errored",c._storedError=d;let g=c._reader;g!==void 0&&(ze(g,d),he(g)?ut(g,d):ox(g,d))}a(Ax,"ReadableStreamError");function Go(c){return new TypeError(`ReadableStream.prototype.${c} can only be used on a ReadableStream`)}a(Go,"streamBrandCheckException$1");function wx(c,d){gt(c,d);let g=c?.highWaterMark;return b(g,"highWaterMark","QueuingStrategyInit"),{highWaterMark:x(g)}}a(wx,"convertQueuingStrategyInit");let Ix=a(c=>c.byteLength,"byteLengthSizeFunction");n(Ix,"size");class Ol{static{a(this,"ByteLengthQueuingStrategy")}constructor(d){et(d,1,"ByteLengthQueuingStrategy"),d=wx(d,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=d.highWaterMark}get highWaterMark(){if(!Rx(this))throw Cx("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark}get size(){if(!Rx(this))throw Cx("size");return Ix}}Object.defineProperties(Ol.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Ol.prototype,Symbol.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});function Cx(c){return new TypeError(`ByteLengthQueuingStrategy.prototype.${c} can only be used on a ByteLengthQueuingStrategy`)}a(Cx,"byteLengthBrandCheckException");function Rx(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_byteLengthQueuingStrategyHighWaterMark")?!1:c instanceof Ol}a(Rx,"IsByteLengthQueuingStrategy");let Ox=a(()=>1,"countSizeFunction");n(Ox,"size");class kl{static{a(this,"CountQueuingStrategy")}constructor(d){et(d,1,"CountQueuingStrategy"),d=wx(d,"First parameter"),this._countQueuingStrategyHighWaterMark=d.highWaterMark}get highWaterMark(){if(!Nx(this))throw kx("highWaterMark");return this._countQueuingStrategyHighWaterMark}get size(){if(!Nx(this))throw kx("size");return Ox}}Object.defineProperties(kl.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(kl.prototype,Symbol.toStringTag,{value:"CountQueuingStrategy",configurable:!0});function kx(c){return new TypeError(`CountQueuingStrategy.prototype.${c} can only be used on a CountQueuingStrategy`)}a(kx,"countBrandCheckException");function Nx(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_countQueuingStrategyHighWaterMark")?!1:c instanceof kl}a(Nx,"IsCountQueuingStrategy");function UU(c,d){gt(c,d);let g=c?.cancel,E=c?.flush,I=c?.readableType,F=c?.start,V=c?.transform,fe=c?.writableType;return{cancel:g===void 0?void 0:FU(g,c,`${d} has member 'cancel' that`),flush:E===void 0?void 0:MU(E,c,`${d} has member 'flush' that`),readableType:I,start:F===void 0?void 0:LU(F,c,`${d} has member 'start' that`),transform:V===void 0?void 0:jU(V,c,`${d} has member 'transform' that`),writableType:fe}}a(UU,"convertTransformer");function MU(c,d,g){return _t(c,g),E=>L(c,d,[E])}a(MU,"convertTransformerFlushCallback");function LU(c,d,g){return _t(c,g),E=>k(c,d,[E])}a(LU,"convertTransformerStartCallback");function jU(c,d,g){return _t(c,g),(E,I)=>L(c,d,[E,I])}a(jU,"convertTransformerTransformCallback");function FU(c,d,g){return _t(c,g),E=>L(c,d,[E])}a(FU,"convertTransformerCancelCallback");class Nl{static{a(this,"TransformStream")}constructor(d={},g={},E={}){d===void 0&&(d=null);let I=bl(g,"Second parameter"),F=bl(E,"Third parameter"),V=UU(d,"First parameter");if(V.readableType!==void 0)throw new RangeError("Invalid readableType specified");if(V.writableType!==void 0)throw new RangeError("Invalid writableType specified");let fe=us(F,0),Ie=vl(F),_e=us(I,1),Ne=vl(I),Fe,at=l(Gr=>{Fe=Gr});BU(this,at,_e,Ne,fe,Ie),GU(this,V),V.start!==void 0?Fe(V.start(this._transformStreamController)):Fe(void 0)}get readable(){if(!$x(this))throw Mx("readable");return this._readable}get writable(){if(!$x(this))throw Mx("writable");return this._writable}}Object.defineProperties(Nl.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Nl.prototype,Symbol.toStringTag,{value:"TransformStream",configurable:!0});function BU(c,d,g,E,I,F){function V(){return d}a(V,"startAlgorithm");function fe(at){return ZU(c,at)}a(fe,"writeAlgorithm");function Ie(at){return WU(c,at)}a(Ie,"abortAlgorithm");function _e(){return KU(c)}a(_e,"closeAlgorithm"),c._writable=HD(V,fe,_e,Ie,g,E);function Ne(){return JU(c)}a(Ne,"pullAlgorithm");function Fe(at){return XU(c,at)}a(Fe,"cancelAlgorithm"),c._readable=fs(V,Ne,Fe,I,F),c._backpressure=void 0,c._backpressureChangePromise=void 0,c._backpressureChangePromise_resolve=void 0,$l(c,!0),c._transformStreamController=void 0}a(BU,"InitializeTransformStream");function $x(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_transformStreamController")?!1:c instanceof Nl}a($x,"IsTransformStream");function zx(c,d){Br(c._readable._readableStreamController,d),kh(c,d)}a(zx,"TransformStreamError");function kh(c,d){Dl(c._transformStreamController),ls(c._writable._writableStreamController,d),Nh(c)}a(kh,"TransformStreamErrorWritableAndUnblockWrite");function Nh(c){c._backpressure&&$l(c,!1)}a(Nh,"TransformStreamUnblockWrite");function $l(c,d){c._backpressureChangePromise!==void 0&&c._backpressureChangePromise_resolve(),c._backpressureChangePromise=l(g=>{c._backpressureChangePromise_resolve=g}),c._backpressure=d}a($l,"TransformStreamSetBackpressure");class no{static{a(this,"TransformStreamDefaultController")}constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!zl(this))throw Ul("desiredSize");let d=this._controlledTransformStream._readable._readableStreamController;return Rh(d)}enqueue(d=void 0){if(!zl(this))throw Ul("enqueue");Dx(this,d)}error(d=void 0){if(!zl(this))throw Ul("error");VU(this,d)}terminate(){if(!zl(this))throw Ul("terminate");HU(this)}}Object.defineProperties(no.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),n(no.prototype.enqueue,"enqueue"),n(no.prototype.error,"error"),n(no.prototype.terminate,"terminate"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(no.prototype,Symbol.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});function zl(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledTransformStream")?!1:c instanceof no}a(zl,"IsTransformStreamDefaultController");function qU(c,d,g,E,I){d._controlledTransformStream=c,c._transformStreamController=d,d._transformAlgorithm=g,d._flushAlgorithm=E,d._cancelAlgorithm=I,d._finishPromise=void 0,d._finishPromise_resolve=void 0,d._finishPromise_reject=void 0}a(qU,"SetUpTransformStreamDefaultController");function GU(c,d){let g=Object.create(no.prototype),E,I,F;d.transform!==void 0?E=a(V=>d.transform(V,g),"transformAlgorithm"):E=a(V=>{try{return Dx(g,V),p(void 0)}catch(fe){return f(fe)}},"transformAlgorithm"),d.flush!==void 0?I=a(()=>d.flush(g),"flushAlgorithm"):I=a(()=>p(void 0),"flushAlgorithm"),d.cancel!==void 0?F=a(V=>d.cancel(V),"cancelAlgorithm"):F=a(()=>p(void 0),"cancelAlgorithm"),qU(c,g,E,I,F)}a(GU,"SetUpTransformStreamDefaultControllerFromTransformer");function Dl(c){c._transformAlgorithm=void 0,c._flushAlgorithm=void 0,c._cancelAlgorithm=void 0}a(Dl,"TransformStreamDefaultControllerClearAlgorithms");function Dx(c,d){let g=c._controlledTransformStream,E=g._readable._readableStreamController;if(!Mi(E))throw new TypeError("Readable side is not in a state that permits enqueue");try{Ui(E,d)}catch(F){throw kh(g,F),g._readable._storedError}bU(E)!==g._backpressure&&$l(g,!0)}a(Dx,"TransformStreamDefaultControllerEnqueue");function VU(c,d){zx(c._controlledTransformStream,d)}a(VU,"TransformStreamDefaultControllerError");function Ux(c,d){let g=c._transformAlgorithm(d);return P(g,void 0,E=>{throw zx(c._controlledTransformStream,E),E})}a(Ux,"TransformStreamDefaultControllerPerformTransform");function HU(c){let d=c._controlledTransformStream,g=d._readable._readableStreamController;qo(g);let E=new TypeError("TransformStream terminated");kh(d,E)}a(HU,"TransformStreamDefaultControllerTerminate");function ZU(c,d){let g=c._transformStreamController;if(c._backpressure){let E=c._backpressureChangePromise;return P(E,()=>{let I=c._writable;if(I._state==="erroring")throw I._storedError;return Ux(g,d)})}return Ux(g,d)}a(ZU,"TransformStreamDefaultSinkWriteAlgorithm");function WU(c,d){let g=c._transformStreamController;if(g._finishPromise!==void 0)return g._finishPromise;let E=c._readable;g._finishPromise=l((F,V)=>{g._finishPromise_resolve=F,g._finishPromise_reject=V});let I=g._cancelAlgorithm(d);return Dl(g),m(I,()=>(E._state==="errored"?Li(g,E._storedError):(Br(E._readableStreamController,d),$h(g)),null),F=>(Br(E._readableStreamController,F),Li(g,F),null)),g._finishPromise}a(WU,"TransformStreamDefaultSinkAbortAlgorithm");function KU(c){let d=c._transformStreamController;if(d._finishPromise!==void 0)return d._finishPromise;let g=c._readable;d._finishPromise=l((I,F)=>{d._finishPromise_resolve=I,d._finishPromise_reject=F});let E=d._flushAlgorithm();return Dl(d),m(E,()=>(g._state==="errored"?Li(d,g._storedError):(qo(g._readableStreamController),$h(d)),null),I=>(Br(g._readableStreamController,I),Li(d,I),null)),d._finishPromise}a(KU,"TransformStreamDefaultSinkCloseAlgorithm");function JU(c){return $l(c,!1),c._backpressureChangePromise}a(JU,"TransformStreamDefaultSourcePullAlgorithm");function XU(c,d){let g=c._transformStreamController;if(g._finishPromise!==void 0)return g._finishPromise;let E=c._writable;g._finishPromise=l((F,V)=>{g._finishPromise_resolve=F,g._finishPromise_reject=V});let I=g._cancelAlgorithm(d);return Dl(g),m(I,()=>(E._state==="errored"?Li(g,E._storedError):(ls(E._writableStreamController,d),Nh(c),$h(g)),null),F=>(ls(E._writableStreamController,F),Nh(c),Li(g,F),null)),g._finishPromise}a(XU,"TransformStreamDefaultSourceCancelAlgorithm");function Ul(c){return new TypeError(`TransformStreamDefaultController.prototype.${c} can only be used on a TransformStreamDefaultController`)}a(Ul,"defaultControllerBrandCheckException");function $h(c){c._finishPromise_resolve!==void 0&&(c._finishPromise_resolve(),c._finishPromise_resolve=void 0,c._finishPromise_reject=void 0)}a($h,"defaultControllerFinishPromiseResolve");function Li(c,d){c._finishPromise_reject!==void 0&&(S(c._finishPromise),c._finishPromise_reject(d),c._finishPromise_resolve=void 0,c._finishPromise_reject=void 0)}a(Li,"defaultControllerFinishPromiseReject");function Mx(c){return new TypeError(`TransformStream.prototype.${c} can only be used on a TransformStream`)}a(Mx,"streamBrandCheckException"),t.ByteLengthQueuingStrategy=Ol,t.CountQueuingStrategy=kl,t.ReadableByteStreamController=In,t.ReadableStream=jt,t.ReadableStreamBYOBReader=Qn,t.ReadableStreamBYOBRequest=Uo,t.ReadableStreamDefaultController=Rn,t.ReadableStreamDefaultReader=J,t.TransformStream=Nl,t.TransformStreamDefaultController=no,t.WritableStream=eo,t.WritableStreamDefaultController=Di,t.WritableStreamDefaultWriter=Cn}))});var Dk=z(()=>{if(!globalThis.ReadableStream)try{let t=require("node:process"),{emitWarning:e}=t;try{t.emitWarning=()=>{},Object.assign(globalThis,require("node:stream/web")),t.emitWarning=e}catch(r){throw t.emitWarning=e,r}}catch{Object.assign(globalThis,zk())}try{let{Blob:t}=require("buffer");t&&!t.prototype.stream&&(t.prototype.stream=a(function(r){let o=0,n=this;return new ReadableStream({type:"bytes",async pull(i){let u=await n.slice(o,Math.min(n.size,o+65536)).arrayBuffer();o+=u.byteLength,i.enqueue(new Uint8Array(u)),o===n.size&&i.close()}})},"name"))}catch{}});async function*Wb(t,e=!0){for(let r of t)if("stream"in r)yield*r.stream();else if(ArrayBuffer.isView(r))if(e){let o=r.byteOffset,n=r.byteOffset+r.byteLength;for(;o!==n;){let i=Math.min(n-o,Uk),s=r.buffer.slice(o,o+i);o+=s.byteLength,yield new Uint8Array(s)}}else yield r;else{let o=0,n=r;for(;o!==n.size;){let s=await n.slice(o,Math.min(n.size,o+Uk)).arrayBuffer();o+=s.byteLength,yield new Uint8Array(s)}}}var dce,Uk,Mk,P6,Xr,Au=Ct(()=>{dce=Tt(Dk(),1);Uk=65536;a(Wb,"toIterator");Mk=class Kb{static{a(this,"Blob")}#e=[];#t="";#r=0;#n="transparent";constructor(e=[],r={}){if(typeof e!="object"||e===null)throw new TypeError("Failed to construct 'Blob': The provided value cannot be converted to a sequence.");if(typeof e[Symbol.iterator]!="function")throw new TypeError("Failed to construct 'Blob': The object must have a callable @@iterator property.");if(typeof r!="object"&&typeof r!="function")throw new TypeError("Failed to construct 'Blob': parameter 2 cannot convert to dictionary.");r===null&&(r={});let o=new TextEncoder;for(let i of e){let s;ArrayBuffer.isView(i)?s=new Uint8Array(i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength)):i instanceof ArrayBuffer?s=new Uint8Array(i.slice(0)):i instanceof Kb?s=i:s=o.encode(`${i}`),this.#r+=ArrayBuffer.isView(s)?s.byteLength:s.size,this.#e.push(s)}this.#n=`${r.endings===void 0?"transparent":r.endings}`;let n=r.type===void 0?"":String(r.type);this.#t=/^[\x20-\x7E]*$/.test(n)?n:""}get size(){return this.#r}get type(){return this.#t}async text(){let e=new TextDecoder,r="";for await(let o of Wb(this.#e,!1))r+=e.decode(o,{stream:!0});return r+=e.decode(),r}async arrayBuffer(){let e=new Uint8Array(this.size),r=0;for await(let o of Wb(this.#e,!1))e.set(o,r),r+=o.length;return e.buffer}stream(){let e=Wb(this.#e,!0);return new globalThis.ReadableStream({type:"bytes",async pull(r){let o=await e.next();o.done?r.close():r.enqueue(o.value)},async cancel(){await e.return()}})}slice(e=0,r=this.size,o=""){let{size:n}=this,i=e<0?Math.max(n+e,0):Math.min(e,n),s=r<0?Math.max(n+r,0):Math.min(r,n),u=Math.max(s-i,0),l=this.#e,p=[],f=0;for(let m of l){if(f>=u)break;let h=ArrayBuffer.isView(m)?m.byteLength:m.size;if(i&&h<=i)i-=h,s-=h;else{let _;ArrayBuffer.isView(m)?(_=m.subarray(i,Math.min(h,s)),f+=_.byteLength):(_=m.slice(i,Math.min(h,s)),f+=_.size),s-=h,p.push(_),i=0}}let y=new Kb([],{type:String(o).toLowerCase()});return y.#r=u,y.#e=p,y}get[Symbol.toStringTag](){return"Blob"}static[Symbol.hasInstance](e){return e&&typeof e=="object"&&typeof e.constructor=="function"&&(typeof e.stream=="function"||typeof e.arrayBuffer=="function")&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}};Object.defineProperties(Mk.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}});P6=Mk,Xr=P6});var S6,x6,Io,Jb=Ct(()=>{Au();S6=class extends Xr{static{a(this,"File")}#e=0;#t="";constructor(e,r,o={}){if(arguments.length<2)throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`);super(e,o),o===null&&(o={});let n=o.lastModified===void 0?Date.now():Number(o.lastModified);Number.isNaN(n)||(this.#e=n),this.#t=String(r)}get name(){return this.#t}get lastModified(){return this.#e}get[Symbol.toStringTag](){return"File"}static[Symbol.hasInstance](e){return!!e&&e instanceof Xr&&/^(File)$/.test(e[Symbol.toStringTag])}},x6=S6,Io=x6});function Fk(t,e=Xr){var r=`${Lk()}${Lk()}`.replace(/\./g,"").slice(-28).padStart(32,"-"),o=[],n=`--${r}\r
15
15
  Content-Disposition: form-data; name="`;return t.forEach((i,s)=>typeof i=="string"?o.push(n+Xb(s)+`"\r
16
16
  \r
17
17
  ${i.replace(/\r(?!\n)|(?<!\r)\n/g,`\r
@@ -20,55 +20,55 @@ ${i.replace(/\r(?!\n)|(?<!\r)\n/g,`\r
20
20
  Content-Type: ${i.type||"application/octet-stream"}\r
21
21
  \r
22
22
  `,i,`\r
23
- `)),o.push(`--${r}--`),new e(o,{type:"multipart/form-data; boundary="+r})}var wu,A6,w6,jk,I6,Fk,Xb,yi,Co,Mf=Ct(()=>{Au();Jb();({toStringTag:wu,iterator:A6,hasInstance:w6}=Symbol),jk=Math.random,I6="append,set,get,getAll,delete,keys,values,entries,forEach,constructor".split(","),Fk=a((t,e,r)=>(t+="",/^(Blob|File)$/.test(e&&e[wu])?[(r=r!==void 0?r+"":e[wu]=="File"?e.name:"blob",t),e.name!==r||e[wu]=="blob"?new Io([e],r,e):e]:[t,e+""]),"f"),Xb=a((t,e)=>(e?t:t.replace(/\r?\n|\r/g,`\r
24
- `)).replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"e"),yi=a((t,e,r)=>{if(e.length<r)throw new TypeError(`Failed to execute '${t}' on 'FormData': ${r} arguments required, but only ${e.length} present.`)},"x"),Co=class{static{a(this,"FormData")}#e=[];constructor(...e){if(e.length)throw new TypeError("Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.")}get[wu](){return"FormData"}[A6](){return this.entries()}static[w6](e){return e&&typeof e=="object"&&e[wu]==="FormData"&&!I6.some(r=>typeof e[r]!="function")}append(...e){yi("append",arguments,2),this.#e.push(Fk(...e))}delete(e){yi("delete",arguments,1),e+="",this.#e=this.#e.filter(([r])=>r!==e)}get(e){yi("get",arguments,1),e+="";for(var r=this.#e,o=r.length,n=0;n<o;n++)if(r[n][0]===e)return r[n][1];return null}getAll(e,r){return yi("getAll",arguments,1),r=[],e+="",this.#e.forEach(o=>o[0]===e&&r.push(o[1])),r}has(e){return yi("has",arguments,1),e+="",this.#e.some(r=>r[0]===e)}forEach(e,r){yi("forEach",arguments,1);for(var[o,n]of this)e.call(r,n,o,this)}set(...e){yi("set",arguments,2);var r=[],o=!0;e=Fk(...e),this.#e.forEach(n=>{n[0]===e[0]?o&&(o=!r.push(e)):r.push(n)}),o&&r.push(e),this.#e=r}*entries(){yield*this.#e}*keys(){for(var[e]of this)yield e}*values(){for(var[,e]of this)yield e}};a(Bk,"formDataToBlob")});var Bn,Lf=Ct(()=>{Bn=class extends Error{static{a(this,"FetchBaseError")}constructor(e,r){super(e),Error.captureStackTrace(this,this.constructor),this.type=r}get name(){return this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}}});var Wt,Yb=Ct(()=>{Lf();Wt=class extends Bn{static{a(this,"FetchError")}constructor(e,r,o){super(e,r),o&&(this.code=this.errno=o.code,this.erroredSysCall=o.syscall)}}});var jf,Qb,Iu,qk,Gk,Vk,Ff=Ct(()=>{jf=Symbol.toStringTag,Qb=a(t=>typeof t=="object"&&typeof t.append=="function"&&typeof t.delete=="function"&&typeof t.get=="function"&&typeof t.getAll=="function"&&typeof t.has=="function"&&typeof t.set=="function"&&typeof t.sort=="function"&&t[jf]==="URLSearchParams","isURLSearchParameters"),Iu=a(t=>t&&typeof t=="object"&&typeof t.arrayBuffer=="function"&&typeof t.type=="string"&&typeof t.stream=="function"&&typeof t.constructor=="function"&&/^(Blob|File)$/.test(t[jf]),"isBlob"),qk=a(t=>typeof t=="object"&&(t[jf]==="AbortSignal"||t[jf]==="EventTarget"),"isAbortSignal"),Gk=a((t,e)=>{let r=new URL(e).hostname,o=new URL(t).hostname;return r===o||r.endsWith(`.${o}`)},"isDomainOrSubdomain"),Vk=a((t,e)=>{let r=new URL(e).protocol,o=new URL(t).protocol;return r===o},"isSameProtocol")});var Zk=z((Oce,Hk)=>{if(!globalThis.DOMException)try{let{MessageChannel:t}=require("worker_threads"),e=new t().port1,r=new ArrayBuffer;e.postMessage(r,[r,r])}catch(t){t.constructor.name==="DOMException"&&(globalThis.DOMException=t.constructor)}Hk.exports=globalThis.DOMException});var _i,Wk,Kk,eP,Jk,Xk,Yk,Qk,e0,t0,Bf,tP=Ct(()=>{_i=require("node:fs"),Wk=require("node:path"),Kk=Tt(Zk(),1);Jb();Au();({stat:eP}=_i.promises),Jk=a((t,e)=>e0((0,_i.statSync)(t),t,e),"blobFromSync"),Xk=a((t,e)=>eP(t).then(r=>e0(r,t,e)),"blobFrom"),Yk=a((t,e)=>eP(t).then(r=>t0(r,t,e)),"fileFrom"),Qk=a((t,e)=>t0((0,_i.statSync)(t),t,e),"fileFromSync"),e0=a((t,e,r="")=>new Xr([new Bf({path:e,size:t.size,lastModified:t.mtimeMs,start:0})],{type:r}),"fromBlob"),t0=a((t,e,r="")=>new Io([new Bf({path:e,size:t.size,lastModified:t.mtimeMs,start:0})],(0,Wk.basename)(e),{type:r,lastModified:t.mtimeMs}),"fromFile"),Bf=class t{static{a(this,"BlobDataItem")}#e;#t;constructor(e){this.#e=e.path,this.#t=e.start,this.size=e.size,this.lastModified=e.lastModified}slice(e,r){return new t({path:this.#e,lastModified:this.lastModified,size:r-e,start:this.#t+e})}async*stream(){let{mtimeMs:e}=await eP(this.#e);if(e>this.lastModified)throw new Kk.default("The requested file could not be read, typically due to permission problems that have occurred after a reference to a file was acquired.","NotReadableError");yield*(0,_i.createReadStream)(this.#e,{start:this.#t,end:this.#t+this.size-1})}get[Symbol.toStringTag](){return"Blob"}}});var n0={};Xt(n0,{toFormData:()=>z6});function $6(t){let e=t.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);if(!e)return;let r=e[2]||e[3]||"",o=r.slice(r.lastIndexOf("\\")+1);return o=o.replace(/%22/g,'"'),o=o.replace(/&#(\d{4});/g,(n,i)=>String.fromCharCode(i)),o}async function z6(t,e){if(!/multipart/i.test(e))throw new TypeError("Failed to fetch");let r=e.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!r)throw new TypeError("no or bad content-type header, no multipart boundary");let o=new rP(r[1]||r[2]),n,i,s,u,l,p,f=[],y=new Co,m=a(T=>{s+=S.decode(T,{stream:!0})},"onPartData"),h=a(T=>{f.push(T)},"appendToFile"),_=a(()=>{let T=new Io(f,p,{type:l});y.append(u,T)},"appendFileToFormData"),E=a(()=>{y.append(u,s)},"appendEntryToFormData"),S=new TextDecoder("utf-8");S.decode(),o.onPartBegin=function(){o.onPartData=m,o.onPartEnd=E,n="",i="",s="",u="",l="",p=null,f.length=0},o.onHeaderField=function(T){n+=S.decode(T,{stream:!0})},o.onHeaderValue=function(T){i+=S.decode(T,{stream:!0})},o.onHeaderEnd=function(){if(i+=S.decode(),n=n.toLowerCase(),n==="content-disposition"){let T=i.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);T&&(u=T[2]||T[3]||""),p=$6(i),p&&(o.onPartData=h,o.onPartEnd=_)}else n==="content-type"&&(l=i);i="",n=""};for await(let T of t)o.write(T);return o.end(),y}var pn,ct,r0,Ro,qf,Gf,C6,Cu,R6,O6,k6,N6,vi,rP,o0=Ct(()=>{tP();Mf();pn=0,ct={START_BOUNDARY:pn++,HEADER_FIELD_START:pn++,HEADER_FIELD:pn++,HEADER_VALUE_START:pn++,HEADER_VALUE:pn++,HEADER_VALUE_ALMOST_DONE:pn++,HEADERS_ALMOST_DONE:pn++,PART_DATA_START:pn++,PART_DATA:pn++,END:pn++},r0=1,Ro={PART_BOUNDARY:r0,LAST_BOUNDARY:r0*=2},qf=10,Gf=13,C6=32,Cu=45,R6=58,O6=97,k6=122,N6=a(t=>t|32,"lower"),vi=a(()=>{},"noop"),rP=class{static{a(this,"MultipartParser")}constructor(e){this.index=0,this.flags=0,this.onHeaderEnd=vi,this.onHeaderField=vi,this.onHeadersEnd=vi,this.onHeaderValue=vi,this.onPartBegin=vi,this.onPartData=vi,this.onPartEnd=vi,this.boundaryChars={},e=`\r
25
- --`+e;let r=new Uint8Array(e.length);for(let o=0;o<e.length;o++)r[o]=e.charCodeAt(o),this.boundaryChars[r[o]]=!0;this.boundary=r,this.lookbehind=new Uint8Array(this.boundary.length+8),this.state=ct.START_BOUNDARY}write(e){let r=0,o=e.length,n=this.index,{lookbehind:i,boundary:s,boundaryChars:u,index:l,state:p,flags:f}=this,y=this.boundary.length,m=y-1,h=e.length,_,E,S=a(Y=>{this[Y+"Mark"]=r},"mark"),T=a(Y=>{delete this[Y+"Mark"]},"clear"),k=a((Y,H,X,re)=>{(H===void 0||H!==X)&&this[Y](re&&re.subarray(H,X))},"callback"),L=a((Y,H)=>{let X=Y+"Mark";X in this&&(H?(k(Y,this[X],r,e),delete this[X]):(k(Y,this[X],e.length,e),this[X]=0))},"dataCallback");for(r=0;r<o;r++)switch(_=e[r],p){case ct.START_BOUNDARY:if(l===s.length-2){if(_===Cu)f|=Ro.LAST_BOUNDARY;else if(_!==Gf)return;l++;break}else if(l-1===s.length-2){if(f&Ro.LAST_BOUNDARY&&_===Cu)p=ct.END,f=0;else if(!(f&Ro.LAST_BOUNDARY)&&_===qf)l=0,k("onPartBegin"),p=ct.HEADER_FIELD_START;else return;break}_!==s[l+2]&&(l=-2),_===s[l+2]&&l++;break;case ct.HEADER_FIELD_START:p=ct.HEADER_FIELD,S("onHeaderField"),l=0;case ct.HEADER_FIELD:if(_===Gf){T("onHeaderField"),p=ct.HEADERS_ALMOST_DONE;break}if(l++,_===Cu)break;if(_===R6){if(l===1)return;L("onHeaderField",!0),p=ct.HEADER_VALUE_START;break}if(E=N6(_),E<O6||E>k6)return;break;case ct.HEADER_VALUE_START:if(_===C6)break;S("onHeaderValue"),p=ct.HEADER_VALUE;case ct.HEADER_VALUE:_===Gf&&(L("onHeaderValue",!0),k("onHeaderEnd"),p=ct.HEADER_VALUE_ALMOST_DONE);break;case ct.HEADER_VALUE_ALMOST_DONE:if(_!==qf)return;p=ct.HEADER_FIELD_START;break;case ct.HEADERS_ALMOST_DONE:if(_!==qf)return;k("onHeadersEnd"),p=ct.PART_DATA_START;break;case ct.PART_DATA_START:p=ct.PART_DATA,S("onPartData");case ct.PART_DATA:if(n=l,l===0){for(r+=m;r<h&&!(e[r]in u);)r+=y;r-=m,_=e[r]}if(l<s.length)s[l]===_?(l===0&&L("onPartData",!0),l++):l=0;else if(l===s.length)l++,_===Gf?f|=Ro.PART_BOUNDARY:_===Cu?f|=Ro.LAST_BOUNDARY:l=0;else if(l-1===s.length)if(f&Ro.PART_BOUNDARY){if(l=0,_===qf){f&=~Ro.PART_BOUNDARY,k("onPartEnd"),k("onPartBegin"),p=ct.HEADER_FIELD_START;break}}else f&Ro.LAST_BOUNDARY&&_===Cu?(k("onPartEnd"),p=ct.END,f=0):l=0;if(l>0)i[l-1]=_;else if(n>0){let Y=new Uint8Array(i.buffer,i.byteOffset,i.byteLength);k("onPartData",0,n,Y),n=0,S("onPartData"),r--}break;case ct.END:break;default:throw new Error(`Unexpected state entered: ${p}`)}L("onHeaderField"),L("onHeaderValue"),L("onPartData"),this.index=l,this.state=p,this.flags=f}end(){if(this.state===ct.HEADER_FIELD_START&&this.index===0||this.state===ct.PART_DATA&&this.index===this.boundary.length)this.onPartEnd();else if(this.state!==ct.END)throw new Error("MultipartParser.end(): stream ended unexpectedly")}};a($6,"_fileName");a(z6,"toFormData")});async function nP(t){if(t[ir].disturbed)throw new TypeError(`body used already for: ${t.url}`);if(t[ir].disturbed=!0,t[ir].error)throw t[ir].error;let{body:e}=t;if(e===null)return gr.Buffer.alloc(0);if(!(e instanceof Dr.default))return gr.Buffer.alloc(0);let r=[],o=0;try{for await(let n of e){if(t.size>0&&o+n.length>t.size){let i=new Wt(`content size at ${t.url} over limit: ${t.size}`,"max-size");throw e.destroy(i),i}o+=n.length,r.push(n)}}catch(n){throw n instanceof Bn?n:new Wt(`Invalid response body while trying to fetch ${t.url}: ${n.message}`,"system",n)}if(e.readableEnded===!0||e._readableState.ended===!0)try{return r.every(n=>typeof n=="string")?gr.Buffer.from(r.join("")):gr.Buffer.concat(r,o)}catch(n){throw new Wt(`Could not create Buffer from response body for ${t.url}: ${n.message}`,"system",n)}else throw new Wt(`Premature close of server response while trying to fetch ${t.url}`)}var Dr,qn,gr,D6,ir,fn,Da,U6,Vf,i0,a0,Hf=Ct(()=>{Dr=Tt(require("node:stream"),1),qn=require("node:util"),gr=require("node:buffer");Au();Mf();Yb();Lf();Ff();D6=(0,qn.promisify)(Dr.default.pipeline),ir=Symbol("Body internals"),fn=class{static{a(this,"Body")}constructor(e,{size:r=0}={}){let o=null;e===null?e=null:Qb(e)?e=gr.Buffer.from(e.toString()):Iu(e)||gr.Buffer.isBuffer(e)||(qn.types.isAnyArrayBuffer(e)?e=gr.Buffer.from(e):ArrayBuffer.isView(e)?e=gr.Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof Dr.default||(e instanceof Co?(e=Bk(e),o=e.type.split("=")[1]):e=gr.Buffer.from(String(e))));let n=e;gr.Buffer.isBuffer(e)?n=Dr.default.Readable.from(e):Iu(e)&&(n=Dr.default.Readable.from(e.stream())),this[ir]={body:e,stream:n,boundary:o,disturbed:!1,error:null},this.size=r,e instanceof Dr.default&&e.on("error",i=>{let s=i instanceof Bn?i:new Wt(`Invalid response body while trying to fetch ${this.url}: ${i.message}`,"system",i);this[ir].error=s})}get body(){return this[ir].stream}get bodyUsed(){return this[ir].disturbed}async arrayBuffer(){let{buffer:e,byteOffset:r,byteLength:o}=await nP(this);return e.slice(r,r+o)}async formData(){let e=this.headers.get("content-type");if(e.startsWith("application/x-www-form-urlencoded")){let o=new Co,n=new URLSearchParams(await this.text());for(let[i,s]of n)o.append(i,s);return o}let{toFormData:r}=await Promise.resolve().then(()=>(o0(),n0));return r(this.body,e)}async blob(){let e=this.headers&&this.headers.get("content-type")||this[ir].body&&this[ir].body.type||"",r=await this.arrayBuffer();return new Xr([r],{type:e})}async json(){let e=await this.text();return JSON.parse(e)}async text(){let e=await nP(this);return new TextDecoder().decode(e)}buffer(){return nP(this)}};fn.prototype.buffer=(0,qn.deprecate)(fn.prototype.buffer,"Please use 'response.arrayBuffer()' instead of 'response.buffer()'","node-fetch#buffer");Object.defineProperties(fn.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0},data:{get:(0,qn.deprecate)(()=>{},"data doesn't exist, use json(), text(), arrayBuffer(), or body instead","https://github.com/node-fetch/node-fetch/issues/1000 (response)")}});a(nP,"consumeBody");Da=a((t,e)=>{let r,o,{body:n}=t[ir];if(t.bodyUsed)throw new Error("cannot clone body after it is used");return n instanceof Dr.default&&typeof n.getBoundary!="function"&&(r=new Dr.PassThrough({highWaterMark:e}),o=new Dr.PassThrough({highWaterMark:e}),n.pipe(r),n.pipe(o),t[ir].stream=r,n=o),n},"clone"),U6=(0,qn.deprecate)(t=>t.getBoundary(),"form-data doesn't follow the spec and requires special treatment. Use alternative package","https://github.com/node-fetch/node-fetch/issues/1167"),Vf=a((t,e)=>t===null?null:typeof t=="string"?"text/plain;charset=UTF-8":Qb(t)?"application/x-www-form-urlencoded;charset=UTF-8":Iu(t)?t.type||null:gr.Buffer.isBuffer(t)||qn.types.isAnyArrayBuffer(t)||ArrayBuffer.isView(t)?null:t instanceof Co?`multipart/form-data; boundary=${e[ir].boundary}`:t&&typeof t.getBoundary=="function"?`multipart/form-data;boundary=${U6(t)}`:t instanceof Dr.default?null:"text/plain;charset=UTF-8","extractContentType"),i0=a(t=>{let{body:e}=t[ir];return e===null?0:Iu(e)?e.size:gr.Buffer.isBuffer(e)?e.length:e&&typeof e.getLengthSync=="function"&&e.hasKnownLength&&e.hasKnownLength()?e.getLengthSync():null},"getTotalBytes"),a0=a(async(t,{body:e})=>{e===null?t.end():await D6(e,t)},"writeToStream")});function s0(t=[]){return new ar(t.reduce((e,r,o,n)=>(o%2===0&&e.push(n.slice(o,o+2)),e),[]).filter(([e,r])=>{try{return Zf(e),iP(e,String(r)),!0}catch{return!1}}))}var oP,Ru,Zf,iP,ar,Wf=Ct(()=>{oP=require("node:util"),Ru=Tt(require("node:http"),1),Zf=typeof Ru.default.validateHeaderName=="function"?Ru.default.validateHeaderName:t=>{if(!/^[\^`\-\w!#$%&'*+.|~]+$/.test(t)){let e=new TypeError(`Header name must be a valid HTTP token [${t}]`);throw Object.defineProperty(e,"code",{value:"ERR_INVALID_HTTP_TOKEN"}),e}},iP=typeof Ru.default.validateHeaderValue=="function"?Ru.default.validateHeaderValue:(t,e)=>{if(/[^\t\u0020-\u007E\u0080-\u00FF]/.test(e)){let r=new TypeError(`Invalid character in header content ["${t}"]`);throw Object.defineProperty(r,"code",{value:"ERR_INVALID_CHAR"}),r}},ar=class t extends URLSearchParams{static{a(this,"Headers")}constructor(e){let r=[];if(e instanceof t){let o=e.raw();for(let[n,i]of Object.entries(o))r.push(...i.map(s=>[n,s]))}else if(e!=null)if(typeof e=="object"&&!oP.types.isBoxedPrimitive(e)){let o=e[Symbol.iterator];if(o==null)r.push(...Object.entries(e));else{if(typeof o!="function")throw new TypeError("Header pairs must be iterable");r=[...e].map(n=>{if(typeof n!="object"||oP.types.isBoxedPrimitive(n))throw new TypeError("Each header pair must be an iterable object");return[...n]}).map(n=>{if(n.length!==2)throw new TypeError("Each header pair must be a name/value tuple");return[...n]})}}else throw new TypeError("Failed to construct 'Headers': The provided value is not of type '(sequence<sequence<ByteString>> or record<ByteString, ByteString>)");return r=r.length>0?r.map(([o,n])=>(Zf(o),iP(o,String(n)),[String(o).toLowerCase(),String(n)])):void 0,super(r),new Proxy(this,{get(o,n,i){switch(n){case"append":case"set":return(s,u)=>(Zf(s),iP(s,String(u)),URLSearchParams.prototype[n].call(o,String(s).toLowerCase(),String(u)));case"delete":case"has":case"getAll":return s=>(Zf(s),URLSearchParams.prototype[n].call(o,String(s).toLowerCase()));case"keys":return()=>(o.sort(),new Set(URLSearchParams.prototype.keys.call(o)).keys());default:return Reflect.get(o,n,i)}}})}get[Symbol.toStringTag](){return this.constructor.name}toString(){return Object.prototype.toString.call(this)}get(e){let r=this.getAll(e);if(r.length===0)return null;let o=r.join(", ");return/^content-encoding$/i.test(e)&&(o=o.toLowerCase()),o}forEach(e,r=void 0){for(let o of this.keys())Reflect.apply(e,r,[this.get(o),o,this])}*values(){for(let e of this.keys())yield this.get(e)}*entries(){for(let e of this.keys())yield[e,this.get(e)]}[Symbol.iterator](){return this.entries()}raw(){return[...this.keys()].reduce((e,r)=>(e[r]=this.getAll(r),e),{})}[Symbol.for("nodejs.util.inspect.custom")](){return[...this.keys()].reduce((e,r)=>{let o=this.getAll(r);return r==="host"?e[r]=o[0]:e[r]=o.length>1?o:o[0],e},{})}};Object.defineProperties(ar.prototype,["get","entries","forEach","values"].reduce((t,e)=>(t[e]={enumerable:!0},t),{}));a(s0,"fromRawHeaders")});var M6,Ou,aP=Ct(()=>{M6=new Set([301,302,303,307,308]),Ou=a(t=>M6.has(t),"isRedirect")});var Yr,yr,c0=Ct(()=>{Wf();Hf();aP();Yr=Symbol("Response internals"),yr=class t extends fn{static{a(this,"Response")}constructor(e=null,r={}){super(e,r);let o=r.status!=null?r.status:200,n=new ar(r.headers);if(e!==null&&!n.has("Content-Type")){let i=Vf(e,this);i&&n.append("Content-Type",i)}this[Yr]={type:"default",url:r.url,status:o,statusText:r.statusText||"",headers:n,counter:r.counter,highWaterMark:r.highWaterMark}}get type(){return this[Yr].type}get url(){return this[Yr].url||""}get status(){return this[Yr].status}get ok(){return this[Yr].status>=200&&this[Yr].status<300}get redirected(){return this[Yr].counter>0}get statusText(){return this[Yr].statusText}get headers(){return this[Yr].headers}get highWaterMark(){return this[Yr].highWaterMark}clone(){return new t(Da(this,this.highWaterMark),{type:this.type,url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected,size:this.size,highWaterMark:this.highWaterMark})}static redirect(e,r=302){if(!Ou(r))throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');return new t(null,{headers:{location:new URL(e).toString()},status:r})}static error(){let e=new t(null,{status:0,statusText:""});return e[Yr].type="error",e}static json(e=void 0,r={}){let o=JSON.stringify(e);if(o===void 0)throw new TypeError("data is not JSON serializable");let n=new ar(r&&r.headers);return n.has("content-type")||n.set("content-type","application/json"),new t(o,{...r,headers:n})}get[Symbol.toStringTag](){return"Response"}};Object.defineProperties(yr.prototype,{type:{enumerable:!0},url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}})});var u0,l0=Ct(()=>{u0=a(t=>{if(t.search)return t.search;let e=t.href.length-1,r=t.hash||(t.href[e]==="#"?"#":"");return t.href[e-r.length]==="?"?"?":""},"getSearch")});function d0(t,e=!1){return t==null||(t=new URL(t),/^(about|blob|data):$/.test(t.protocol))?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function h0(t){if(!f0.has(t))throw new TypeError(`Invalid referrerPolicy: ${t}`);return t}function L6(t){if(/^(http|ws)s:$/.test(t.protocol))return!0;let e=t.host.replace(/(^\[)|(]$)/g,""),r=(0,p0.isIP)(e);return r===4&&/^127\./.test(e)||r===6&&/^(((0+:){7})|(::(0+:){0,6}))0*1$/.test(e)?!0:t.host==="localhost"||t.host.endsWith(".localhost")?!1:t.protocol==="file:"}function Ua(t){return/^about:(blank|srcdoc)$/.test(t)||t.protocol==="data:"||/^(blob|filesystem):$/.test(t.protocol)?!0:L6(t)}function g0(t,{referrerURLCallback:e,referrerOriginCallback:r}={}){if(t.referrer==="no-referrer"||t.referrerPolicy==="")return null;let o=t.referrerPolicy;if(t.referrer==="about:client")return"no-referrer";let n=t.referrer,i=d0(n),s=d0(n,!0);i.toString().length>4096&&(i=s),e&&(i=e(i)),r&&(s=r(s));let u=new URL(t.url);switch(o){case"no-referrer":return"no-referrer";case"origin":return s;case"unsafe-url":return i;case"strict-origin":return Ua(i)&&!Ua(u)?"no-referrer":s.toString();case"strict-origin-when-cross-origin":return i.origin===u.origin?i:Ua(i)&&!Ua(u)?"no-referrer":s;case"same-origin":return i.origin===u.origin?i:"no-referrer";case"origin-when-cross-origin":return i.origin===u.origin?i:s;case"no-referrer-when-downgrade":return Ua(i)&&!Ua(u)?"no-referrer":i;default:throw new TypeError(`Invalid referrerPolicy: ${o}`)}}function y0(t){let e=(t.get("referrer-policy")||"").split(/[,\s]+/),r="";for(let o of e)o&&f0.has(o)&&(r=o);return r}var p0,f0,m0,sP=Ct(()=>{p0=require("node:net");a(d0,"stripURLForUseAsAReferrer");f0=new Set(["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"]),m0="strict-origin-when-cross-origin";a(h0,"validateReferrerPolicy");a(L6,"isOriginPotentiallyTrustworthy");a(Ua,"isUrlPotentiallyTrustworthy");a(g0,"determineRequestsReferrer");a(y0,"parseReferrerPolicyFromHeader")});var _0,v0,Dt,ku,j6,Oo,b0,P0=Ct(()=>{_0=require("node:url"),v0=require("node:util");Wf();Hf();Ff();l0();sP();Dt=Symbol("Request internals"),ku=a(t=>typeof t=="object"&&typeof t[Dt]=="object","isRequest"),j6=(0,v0.deprecate)(()=>{},".data is not a valid RequestInit property, use .body instead","https://github.com/node-fetch/node-fetch/issues/1000 (request)"),Oo=class t extends fn{static{a(this,"Request")}constructor(e,r={}){let o;if(ku(e)?o=new URL(e.url):(o=new URL(e),e={}),o.username!==""||o.password!=="")throw new TypeError(`${o} is an url with embedded credentials.`);let n=r.method||e.method||"GET";if(/^(delete|get|head|options|post|put)$/i.test(n)&&(n=n.toUpperCase()),!ku(r)&&"data"in r&&j6(),(r.body!=null||ku(e)&&e.body!==null)&&(n==="GET"||n==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body");let i=r.body?r.body:ku(e)&&e.body!==null?Da(e):null;super(i,{size:r.size||e.size||0});let s=new ar(r.headers||e.headers||{});if(i!==null&&!s.has("Content-Type")){let p=Vf(i,this);p&&s.set("Content-Type",p)}let u=ku(e)?e.signal:null;if("signal"in r&&(u=r.signal),u!=null&&!qk(u))throw new TypeError("Expected signal to be an instanceof AbortSignal or EventTarget");let l=r.referrer==null?e.referrer:r.referrer;if(l==="")l="no-referrer";else if(l){let p=new URL(l);l=/^about:(\/\/)?client$/.test(p)?"client":p}else l=void 0;this[Dt]={method:n,redirect:r.redirect||e.redirect||"follow",headers:s,parsedURL:o,signal:u,referrer:l},this.follow=r.follow===void 0?e.follow===void 0?20:e.follow:r.follow,this.compress=r.compress===void 0?e.compress===void 0?!0:e.compress:r.compress,this.counter=r.counter||e.counter||0,this.agent=r.agent||e.agent,this.highWaterMark=r.highWaterMark||e.highWaterMark||16384,this.insecureHTTPParser=r.insecureHTTPParser||e.insecureHTTPParser||!1,this.referrerPolicy=r.referrerPolicy||e.referrerPolicy||""}get method(){return this[Dt].method}get url(){return(0,_0.format)(this[Dt].parsedURL)}get headers(){return this[Dt].headers}get redirect(){return this[Dt].redirect}get signal(){return this[Dt].signal}get referrer(){if(this[Dt].referrer==="no-referrer")return"";if(this[Dt].referrer==="client")return"about:client";if(this[Dt].referrer)return this[Dt].referrer.toString()}get referrerPolicy(){return this[Dt].referrerPolicy}set referrerPolicy(e){this[Dt].referrerPolicy=h0(e)}clone(){return new t(this)}get[Symbol.toStringTag](){return"Request"}};Object.defineProperties(Oo.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0},referrer:{enumerable:!0},referrerPolicy:{enumerable:!0}});b0=a(t=>{let{parsedURL:e}=t[Dt],r=new ar(t[Dt].headers);r.has("Accept")||r.set("Accept","*/*");let o=null;if(t.body===null&&/^(post|put)$/i.test(t.method)&&(o="0"),t.body!==null){let u=i0(t);typeof u=="number"&&!Number.isNaN(u)&&(o=String(u))}o&&r.set("Content-Length",o),t.referrerPolicy===""&&(t.referrerPolicy=m0),t.referrer&&t.referrer!=="no-referrer"?t[Dt].referrer=g0(t):t[Dt].referrer="no-referrer",t[Dt].referrer instanceof URL&&r.set("Referer",t.referrer),r.has("User-Agent")||r.set("User-Agent","node-fetch"),t.compress&&!r.has("Accept-Encoding")&&r.set("Accept-Encoding","gzip, deflate, br");let{agent:n}=t;typeof n=="function"&&(n=n(e));let i=u0(e),s={path:e.pathname+i,method:t.method,headers:r[Symbol.for("nodejs.util.inspect.custom")](),insecureHTTPParser:t.insecureHTTPParser,agent:n};return{parsedURL:e,options:s}},"getNodeRequestOptions")});var Nu,E0=Ct(()=>{Lf();Nu=class extends Bn{static{a(this,"AbortError")}constructor(e,r="aborted"){super(e,r)}}});var T0={};Xt(T0,{AbortError:()=>Nu,Blob:()=>Xr,FetchError:()=>Wt,File:()=>Io,FormData:()=>Co,Headers:()=>ar,Request:()=>Oo,Response:()=>yr,blobFrom:()=>Xk,blobFromSync:()=>Jk,default:()=>cP,fileFrom:()=>Yk,fileFromSync:()=>Qk,isRedirect:()=>Ou});async function cP(t,e){return new Promise((r,o)=>{let n=new Oo(t,e),{parsedURL:i,options:s}=b0(n);if(!F6.has(i.protocol))throw new TypeError(`node-fetch cannot load ${t}. URL scheme "${i.protocol.replace(/:$/,"")}" is not supported.`);if(i.protocol==="data:"){let _=Nk(n.url),E=new yr(_,{headers:{"Content-Type":_.typeFull}});r(E);return}let u=(i.protocol==="https:"?x0.default:S0.default).request,{signal:l}=n,p=null,f=a(()=>{let _=new Nu("The operation was aborted.");o(_),n.body&&n.body instanceof _r.default.Readable&&n.body.destroy(_),!(!p||!p.body)&&p.body.emit("error",_)},"abort");if(l&&l.aborted){f();return}let y=a(()=>{f(),h()},"abortAndFinalize"),m=u(i.toString(),s);l&&l.addEventListener("abort",y);let h=a(()=>{m.abort(),l&&l.removeEventListener("abort",y)},"finalize");m.on("error",_=>{o(new Wt(`request to ${n.url} failed, reason: ${_.message}`,"system",_)),h()}),B6(m,_=>{p&&p.body&&p.body.destroy(_)}),process.version<"v14"&&m.on("socket",_=>{let E;_.prependListener("end",()=>{E=_._eventsCount}),_.prependListener("close",S=>{if(p&&E<_._eventsCount&&!S){let T=new Error("Premature close");T.code="ERR_STREAM_PREMATURE_CLOSE",p.body.emit("error",T)}})}),m.on("response",_=>{m.setTimeout(0);let E=s0(_.rawHeaders);if(Ou(_.statusCode)){let Y=E.get("Location"),H=null;try{H=Y===null?null:new URL(Y,n.url)}catch{if(n.redirect!=="manual"){o(new Wt(`uri requested responds with an invalid redirect URL: ${Y}`,"invalid-redirect")),h();return}}switch(n.redirect){case"error":o(new Wt(`uri requested responds with a redirect, redirect mode is set to error: ${n.url}`,"no-redirect")),h();return;case"manual":break;case"follow":{if(H===null)break;if(n.counter>=n.follow){o(new Wt(`maximum redirect reached at: ${n.url}`,"max-redirect")),h();return}let X={headers:new ar(n.headers),follow:n.follow,counter:n.counter+1,agent:n.agent,compress:n.compress,method:n.method,body:Da(n),signal:n.signal,size:n.size,referrer:n.referrer,referrerPolicy:n.referrerPolicy};if(!Gk(n.url,H)||!Vk(n.url,H))for(let ce of["authorization","www-authenticate","cookie","cookie2"])X.headers.delete(ce);if(_.statusCode!==303&&n.body&&e.body instanceof _r.default.Readable){o(new Wt("Cannot follow redirect with body being a readable stream","unsupported-redirect")),h();return}(_.statusCode===303||(_.statusCode===301||_.statusCode===302)&&n.method==="POST")&&(X.method="GET",X.body=void 0,X.headers.delete("content-length"));let re=y0(E);re&&(X.referrerPolicy=re),r(cP(new Oo(H,X))),h();return}default:return o(new TypeError(`Redirect option '${n.redirect}' is not a valid value of RequestRedirect`))}}l&&_.once("end",()=>{l.removeEventListener("abort",y)});let S=(0,_r.pipeline)(_,new _r.PassThrough,Y=>{Y&&o(Y)});process.version<"v12.10"&&_.on("aborted",y);let T={url:n.url,status:_.statusCode,statusText:_.statusMessage,headers:E,size:n.size,counter:n.counter,highWaterMark:n.highWaterMark},k=E.get("Content-Encoding");if(!n.compress||n.method==="HEAD"||k===null||_.statusCode===204||_.statusCode===304){p=new yr(S,T),r(p);return}let L={flush:bi.default.Z_SYNC_FLUSH,finishFlush:bi.default.Z_SYNC_FLUSH};if(k==="gzip"||k==="x-gzip"){S=(0,_r.pipeline)(S,bi.default.createGunzip(L),Y=>{Y&&o(Y)}),p=new yr(S,T),r(p);return}if(k==="deflate"||k==="x-deflate"){let Y=(0,_r.pipeline)(_,new _r.PassThrough,H=>{H&&o(H)});Y.once("data",H=>{(H[0]&15)===8?S=(0,_r.pipeline)(S,bi.default.createInflate(),X=>{X&&o(X)}):S=(0,_r.pipeline)(S,bi.default.createInflateRaw(),X=>{X&&o(X)}),p=new yr(S,T),r(p)}),Y.once("end",()=>{p||(p=new yr(S,T),r(p))});return}if(k==="br"){S=(0,_r.pipeline)(S,bi.default.createBrotliDecompress(),Y=>{Y&&o(Y)}),p=new yr(S,T),r(p);return}p=new yr(S,T),r(p)}),a0(m,n).catch(o)})}function B6(t,e){let r=$u.Buffer.from(`0\r
23
+ `)),o.push(`--${r}--`),new e(o,{type:"multipart/form-data; boundary="+r})}var wu,T6,A6,Lk,w6,jk,Xb,yi,Co,Mf=Ct(()=>{Au();Jb();({toStringTag:wu,iterator:T6,hasInstance:A6}=Symbol),Lk=Math.random,w6="append,set,get,getAll,delete,keys,values,entries,forEach,constructor".split(","),jk=a((t,e,r)=>(t+="",/^(Blob|File)$/.test(e&&e[wu])?[(r=r!==void 0?r+"":e[wu]=="File"?e.name:"blob",t),e.name!==r||e[wu]=="blob"?new Io([e],r,e):e]:[t,e+""]),"f"),Xb=a((t,e)=>(e?t:t.replace(/\r?\n|\r/g,`\r
24
+ `)).replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"e"),yi=a((t,e,r)=>{if(e.length<r)throw new TypeError(`Failed to execute '${t}' on 'FormData': ${r} arguments required, but only ${e.length} present.`)},"x"),Co=class{static{a(this,"FormData")}#e=[];constructor(...e){if(e.length)throw new TypeError("Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.")}get[wu](){return"FormData"}[T6](){return this.entries()}static[A6](e){return e&&typeof e=="object"&&e[wu]==="FormData"&&!w6.some(r=>typeof e[r]!="function")}append(...e){yi("append",arguments,2),this.#e.push(jk(...e))}delete(e){yi("delete",arguments,1),e+="",this.#e=this.#e.filter(([r])=>r!==e)}get(e){yi("get",arguments,1),e+="";for(var r=this.#e,o=r.length,n=0;n<o;n++)if(r[n][0]===e)return r[n][1];return null}getAll(e,r){return yi("getAll",arguments,1),r=[],e+="",this.#e.forEach(o=>o[0]===e&&r.push(o[1])),r}has(e){return yi("has",arguments,1),e+="",this.#e.some(r=>r[0]===e)}forEach(e,r){yi("forEach",arguments,1);for(var[o,n]of this)e.call(r,n,o,this)}set(...e){yi("set",arguments,2);var r=[],o=!0;e=jk(...e),this.#e.forEach(n=>{n[0]===e[0]?o&&(o=!r.push(e)):r.push(n)}),o&&r.push(e),this.#e=r}*entries(){yield*this.#e}*keys(){for(var[e]of this)yield e}*values(){for(var[,e]of this)yield e}};a(Fk,"formDataToBlob")});var Bn,Lf=Ct(()=>{Bn=class extends Error{static{a(this,"FetchBaseError")}constructor(e,r){super(e),Error.captureStackTrace(this,this.constructor),this.type=r}get name(){return this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}}});var Wt,Yb=Ct(()=>{Lf();Wt=class extends Bn{static{a(this,"FetchError")}constructor(e,r,o){super(e,r),o&&(this.code=this.errno=o.code,this.erroredSysCall=o.syscall)}}});var jf,Qb,Iu,Bk,qk,Gk,Ff=Ct(()=>{jf=Symbol.toStringTag,Qb=a(t=>typeof t=="object"&&typeof t.append=="function"&&typeof t.delete=="function"&&typeof t.get=="function"&&typeof t.getAll=="function"&&typeof t.has=="function"&&typeof t.set=="function"&&typeof t.sort=="function"&&t[jf]==="URLSearchParams","isURLSearchParameters"),Iu=a(t=>t&&typeof t=="object"&&typeof t.arrayBuffer=="function"&&typeof t.type=="string"&&typeof t.stream=="function"&&typeof t.constructor=="function"&&/^(Blob|File)$/.test(t[jf]),"isBlob"),Bk=a(t=>typeof t=="object"&&(t[jf]==="AbortSignal"||t[jf]==="EventTarget"),"isAbortSignal"),qk=a((t,e)=>{let r=new URL(e).hostname,o=new URL(t).hostname;return r===o||r.endsWith(`.${o}`)},"isDomainOrSubdomain"),Gk=a((t,e)=>{let r=new URL(e).protocol,o=new URL(t).protocol;return r===o},"isSameProtocol")});var Hk=z((Rce,Vk)=>{if(!globalThis.DOMException)try{let{MessageChannel:t}=require("worker_threads"),e=new t().port1,r=new ArrayBuffer;e.postMessage(r,[r,r])}catch(t){t.constructor.name==="DOMException"&&(globalThis.DOMException=t.constructor)}Vk.exports=globalThis.DOMException});var _i,Zk,Wk,eE,Kk,Jk,Xk,Yk,Qk,e0,Bf,tE=Ct(()=>{_i=require("node:fs"),Zk=require("node:path"),Wk=Tt(Hk(),1);Jb();Au();({stat:eE}=_i.promises),Kk=a((t,e)=>Qk((0,_i.statSync)(t),t,e),"blobFromSync"),Jk=a((t,e)=>eE(t).then(r=>Qk(r,t,e)),"blobFrom"),Xk=a((t,e)=>eE(t).then(r=>e0(r,t,e)),"fileFrom"),Yk=a((t,e)=>e0((0,_i.statSync)(t),t,e),"fileFromSync"),Qk=a((t,e,r="")=>new Xr([new Bf({path:e,size:t.size,lastModified:t.mtimeMs,start:0})],{type:r}),"fromBlob"),e0=a((t,e,r="")=>new Io([new Bf({path:e,size:t.size,lastModified:t.mtimeMs,start:0})],(0,Zk.basename)(e),{type:r,lastModified:t.mtimeMs}),"fromFile"),Bf=class t{static{a(this,"BlobDataItem")}#e;#t;constructor(e){this.#e=e.path,this.#t=e.start,this.size=e.size,this.lastModified=e.lastModified}slice(e,r){return new t({path:this.#e,lastModified:this.lastModified,size:r-e,start:this.#t+e})}async*stream(){let{mtimeMs:e}=await eE(this.#e);if(e>this.lastModified)throw new Wk.default("The requested file could not be read, typically due to permission problems that have occurred after a reference to a file was acquired.","NotReadableError");yield*(0,_i.createReadStream)(this.#e,{start:this.#t,end:this.#t+this.size-1})}get[Symbol.toStringTag](){return"Blob"}}});var r0={};Xt(r0,{toFormData:()=>$6});function N6(t){let e=t.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);if(!e)return;let r=e[2]||e[3]||"",o=r.slice(r.lastIndexOf("\\")+1);return o=o.replace(/%22/g,'"'),o=o.replace(/&#(\d{4});/g,(n,i)=>String.fromCharCode(i)),o}async function $6(t,e){if(!/multipart/i.test(e))throw new TypeError("Failed to fetch");let r=e.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!r)throw new TypeError("no or bad content-type header, no multipart boundary");let o=new rE(r[1]||r[2]),n,i,s,u,l,p,f=[],y=new Co,m=a(T=>{s+=S.decode(T,{stream:!0})},"onPartData"),h=a(T=>{f.push(T)},"appendToFile"),_=a(()=>{let T=new Io(f,p,{type:l});y.append(u,T)},"appendFileToFormData"),P=a(()=>{y.append(u,s)},"appendEntryToFormData"),S=new TextDecoder("utf-8");S.decode(),o.onPartBegin=function(){o.onPartData=m,o.onPartEnd=P,n="",i="",s="",u="",l="",p=null,f.length=0},o.onHeaderField=function(T){n+=S.decode(T,{stream:!0})},o.onHeaderValue=function(T){i+=S.decode(T,{stream:!0})},o.onHeaderEnd=function(){if(i+=S.decode(),n=n.toLowerCase(),n==="content-disposition"){let T=i.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);T&&(u=T[2]||T[3]||""),p=N6(i),p&&(o.onPartData=h,o.onPartEnd=_)}else n==="content-type"&&(l=i);i="",n=""};for await(let T of t)o.write(T);return o.end(),y}var pn,ct,t0,Ro,qf,Gf,I6,Cu,C6,R6,O6,k6,vi,rE,n0=Ct(()=>{tE();Mf();pn=0,ct={START_BOUNDARY:pn++,HEADER_FIELD_START:pn++,HEADER_FIELD:pn++,HEADER_VALUE_START:pn++,HEADER_VALUE:pn++,HEADER_VALUE_ALMOST_DONE:pn++,HEADERS_ALMOST_DONE:pn++,PART_DATA_START:pn++,PART_DATA:pn++,END:pn++},t0=1,Ro={PART_BOUNDARY:t0,LAST_BOUNDARY:t0*=2},qf=10,Gf=13,I6=32,Cu=45,C6=58,R6=97,O6=122,k6=a(t=>t|32,"lower"),vi=a(()=>{},"noop"),rE=class{static{a(this,"MultipartParser")}constructor(e){this.index=0,this.flags=0,this.onHeaderEnd=vi,this.onHeaderField=vi,this.onHeadersEnd=vi,this.onHeaderValue=vi,this.onPartBegin=vi,this.onPartData=vi,this.onPartEnd=vi,this.boundaryChars={},e=`\r
25
+ --`+e;let r=new Uint8Array(e.length);for(let o=0;o<e.length;o++)r[o]=e.charCodeAt(o),this.boundaryChars[r[o]]=!0;this.boundary=r,this.lookbehind=new Uint8Array(this.boundary.length+8),this.state=ct.START_BOUNDARY}write(e){let r=0,o=e.length,n=this.index,{lookbehind:i,boundary:s,boundaryChars:u,index:l,state:p,flags:f}=this,y=this.boundary.length,m=y-1,h=e.length,_,P,S=a(Y=>{this[Y+"Mark"]=r},"mark"),T=a(Y=>{delete this[Y+"Mark"]},"clear"),k=a((Y,H,X,re)=>{(H===void 0||H!==X)&&this[Y](re&&re.subarray(H,X))},"callback"),L=a((Y,H)=>{let X=Y+"Mark";X in this&&(H?(k(Y,this[X],r,e),delete this[X]):(k(Y,this[X],e.length,e),this[X]=0))},"dataCallback");for(r=0;r<o;r++)switch(_=e[r],p){case ct.START_BOUNDARY:if(l===s.length-2){if(_===Cu)f|=Ro.LAST_BOUNDARY;else if(_!==Gf)return;l++;break}else if(l-1===s.length-2){if(f&Ro.LAST_BOUNDARY&&_===Cu)p=ct.END,f=0;else if(!(f&Ro.LAST_BOUNDARY)&&_===qf)l=0,k("onPartBegin"),p=ct.HEADER_FIELD_START;else return;break}_!==s[l+2]&&(l=-2),_===s[l+2]&&l++;break;case ct.HEADER_FIELD_START:p=ct.HEADER_FIELD,S("onHeaderField"),l=0;case ct.HEADER_FIELD:if(_===Gf){T("onHeaderField"),p=ct.HEADERS_ALMOST_DONE;break}if(l++,_===Cu)break;if(_===C6){if(l===1)return;L("onHeaderField",!0),p=ct.HEADER_VALUE_START;break}if(P=k6(_),P<R6||P>O6)return;break;case ct.HEADER_VALUE_START:if(_===I6)break;S("onHeaderValue"),p=ct.HEADER_VALUE;case ct.HEADER_VALUE:_===Gf&&(L("onHeaderValue",!0),k("onHeaderEnd"),p=ct.HEADER_VALUE_ALMOST_DONE);break;case ct.HEADER_VALUE_ALMOST_DONE:if(_!==qf)return;p=ct.HEADER_FIELD_START;break;case ct.HEADERS_ALMOST_DONE:if(_!==qf)return;k("onHeadersEnd"),p=ct.PART_DATA_START;break;case ct.PART_DATA_START:p=ct.PART_DATA,S("onPartData");case ct.PART_DATA:if(n=l,l===0){for(r+=m;r<h&&!(e[r]in u);)r+=y;r-=m,_=e[r]}if(l<s.length)s[l]===_?(l===0&&L("onPartData",!0),l++):l=0;else if(l===s.length)l++,_===Gf?f|=Ro.PART_BOUNDARY:_===Cu?f|=Ro.LAST_BOUNDARY:l=0;else if(l-1===s.length)if(f&Ro.PART_BOUNDARY){if(l=0,_===qf){f&=~Ro.PART_BOUNDARY,k("onPartEnd"),k("onPartBegin"),p=ct.HEADER_FIELD_START;break}}else f&Ro.LAST_BOUNDARY&&_===Cu?(k("onPartEnd"),p=ct.END,f=0):l=0;if(l>0)i[l-1]=_;else if(n>0){let Y=new Uint8Array(i.buffer,i.byteOffset,i.byteLength);k("onPartData",0,n,Y),n=0,S("onPartData"),r--}break;case ct.END:break;default:throw new Error(`Unexpected state entered: ${p}`)}L("onHeaderField"),L("onHeaderValue"),L("onPartData"),this.index=l,this.state=p,this.flags=f}end(){if(this.state===ct.HEADER_FIELD_START&&this.index===0||this.state===ct.PART_DATA&&this.index===this.boundary.length)this.onPartEnd();else if(this.state!==ct.END)throw new Error("MultipartParser.end(): stream ended unexpectedly")}};a(N6,"_fileName");a($6,"toFormData")});async function nE(t){if(t[ir].disturbed)throw new TypeError(`body used already for: ${t.url}`);if(t[ir].disturbed=!0,t[ir].error)throw t[ir].error;let{body:e}=t;if(e===null)return gr.Buffer.alloc(0);if(!(e instanceof Dr.default))return gr.Buffer.alloc(0);let r=[],o=0;try{for await(let n of e){if(t.size>0&&o+n.length>t.size){let i=new Wt(`content size at ${t.url} over limit: ${t.size}`,"max-size");throw e.destroy(i),i}o+=n.length,r.push(n)}}catch(n){throw n instanceof Bn?n:new Wt(`Invalid response body while trying to fetch ${t.url}: ${n.message}`,"system",n)}if(e.readableEnded===!0||e._readableState.ended===!0)try{return r.every(n=>typeof n=="string")?gr.Buffer.from(r.join("")):gr.Buffer.concat(r,o)}catch(n){throw new Wt(`Could not create Buffer from response body for ${t.url}: ${n.message}`,"system",n)}else throw new Wt(`Premature close of server response while trying to fetch ${t.url}`)}var Dr,qn,gr,z6,ir,fn,Da,D6,Vf,o0,i0,Hf=Ct(()=>{Dr=Tt(require("node:stream"),1),qn=require("node:util"),gr=require("node:buffer");Au();Mf();Yb();Lf();Ff();z6=(0,qn.promisify)(Dr.default.pipeline),ir=Symbol("Body internals"),fn=class{static{a(this,"Body")}constructor(e,{size:r=0}={}){let o=null;e===null?e=null:Qb(e)?e=gr.Buffer.from(e.toString()):Iu(e)||gr.Buffer.isBuffer(e)||(qn.types.isAnyArrayBuffer(e)?e=gr.Buffer.from(e):ArrayBuffer.isView(e)?e=gr.Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof Dr.default||(e instanceof Co?(e=Fk(e),o=e.type.split("=")[1]):e=gr.Buffer.from(String(e))));let n=e;gr.Buffer.isBuffer(e)?n=Dr.default.Readable.from(e):Iu(e)&&(n=Dr.default.Readable.from(e.stream())),this[ir]={body:e,stream:n,boundary:o,disturbed:!1,error:null},this.size=r,e instanceof Dr.default&&e.on("error",i=>{let s=i instanceof Bn?i:new Wt(`Invalid response body while trying to fetch ${this.url}: ${i.message}`,"system",i);this[ir].error=s})}get body(){return this[ir].stream}get bodyUsed(){return this[ir].disturbed}async arrayBuffer(){let{buffer:e,byteOffset:r,byteLength:o}=await nE(this);return e.slice(r,r+o)}async formData(){let e=this.headers.get("content-type");if(e.startsWith("application/x-www-form-urlencoded")){let o=new Co,n=new URLSearchParams(await this.text());for(let[i,s]of n)o.append(i,s);return o}let{toFormData:r}=await Promise.resolve().then(()=>(n0(),r0));return r(this.body,e)}async blob(){let e=this.headers&&this.headers.get("content-type")||this[ir].body&&this[ir].body.type||"",r=await this.arrayBuffer();return new Xr([r],{type:e})}async json(){let e=await this.text();return JSON.parse(e)}async text(){let e=await nE(this);return new TextDecoder().decode(e)}buffer(){return nE(this)}};fn.prototype.buffer=(0,qn.deprecate)(fn.prototype.buffer,"Please use 'response.arrayBuffer()' instead of 'response.buffer()'","node-fetch#buffer");Object.defineProperties(fn.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0},data:{get:(0,qn.deprecate)(()=>{},"data doesn't exist, use json(), text(), arrayBuffer(), or body instead","https://github.com/node-fetch/node-fetch/issues/1000 (response)")}});a(nE,"consumeBody");Da=a((t,e)=>{let r,o,{body:n}=t[ir];if(t.bodyUsed)throw new Error("cannot clone body after it is used");return n instanceof Dr.default&&typeof n.getBoundary!="function"&&(r=new Dr.PassThrough({highWaterMark:e}),o=new Dr.PassThrough({highWaterMark:e}),n.pipe(r),n.pipe(o),t[ir].stream=r,n=o),n},"clone"),D6=(0,qn.deprecate)(t=>t.getBoundary(),"form-data doesn't follow the spec and requires special treatment. Use alternative package","https://github.com/node-fetch/node-fetch/issues/1167"),Vf=a((t,e)=>t===null?null:typeof t=="string"?"text/plain;charset=UTF-8":Qb(t)?"application/x-www-form-urlencoded;charset=UTF-8":Iu(t)?t.type||null:gr.Buffer.isBuffer(t)||qn.types.isAnyArrayBuffer(t)||ArrayBuffer.isView(t)?null:t instanceof Co?`multipart/form-data; boundary=${e[ir].boundary}`:t&&typeof t.getBoundary=="function"?`multipart/form-data;boundary=${D6(t)}`:t instanceof Dr.default?null:"text/plain;charset=UTF-8","extractContentType"),o0=a(t=>{let{body:e}=t[ir];return e===null?0:Iu(e)?e.size:gr.Buffer.isBuffer(e)?e.length:e&&typeof e.getLengthSync=="function"&&e.hasKnownLength&&e.hasKnownLength()?e.getLengthSync():null},"getTotalBytes"),i0=a(async(t,{body:e})=>{e===null?t.end():await z6(e,t)},"writeToStream")});function a0(t=[]){return new ar(t.reduce((e,r,o,n)=>(o%2===0&&e.push(n.slice(o,o+2)),e),[]).filter(([e,r])=>{try{return Zf(e),iE(e,String(r)),!0}catch{return!1}}))}var oE,Ru,Zf,iE,ar,Wf=Ct(()=>{oE=require("node:util"),Ru=Tt(require("node:http"),1),Zf=typeof Ru.default.validateHeaderName=="function"?Ru.default.validateHeaderName:t=>{if(!/^[\^`\-\w!#$%&'*+.|~]+$/.test(t)){let e=new TypeError(`Header name must be a valid HTTP token [${t}]`);throw Object.defineProperty(e,"code",{value:"ERR_INVALID_HTTP_TOKEN"}),e}},iE=typeof Ru.default.validateHeaderValue=="function"?Ru.default.validateHeaderValue:(t,e)=>{if(/[^\t\u0020-\u007E\u0080-\u00FF]/.test(e)){let r=new TypeError(`Invalid character in header content ["${t}"]`);throw Object.defineProperty(r,"code",{value:"ERR_INVALID_CHAR"}),r}},ar=class t extends URLSearchParams{static{a(this,"Headers")}constructor(e){let r=[];if(e instanceof t){let o=e.raw();for(let[n,i]of Object.entries(o))r.push(...i.map(s=>[n,s]))}else if(e!=null)if(typeof e=="object"&&!oE.types.isBoxedPrimitive(e)){let o=e[Symbol.iterator];if(o==null)r.push(...Object.entries(e));else{if(typeof o!="function")throw new TypeError("Header pairs must be iterable");r=[...e].map(n=>{if(typeof n!="object"||oE.types.isBoxedPrimitive(n))throw new TypeError("Each header pair must be an iterable object");return[...n]}).map(n=>{if(n.length!==2)throw new TypeError("Each header pair must be a name/value tuple");return[...n]})}}else throw new TypeError("Failed to construct 'Headers': The provided value is not of type '(sequence<sequence<ByteString>> or record<ByteString, ByteString>)");return r=r.length>0?r.map(([o,n])=>(Zf(o),iE(o,String(n)),[String(o).toLowerCase(),String(n)])):void 0,super(r),new Proxy(this,{get(o,n,i){switch(n){case"append":case"set":return(s,u)=>(Zf(s),iE(s,String(u)),URLSearchParams.prototype[n].call(o,String(s).toLowerCase(),String(u)));case"delete":case"has":case"getAll":return s=>(Zf(s),URLSearchParams.prototype[n].call(o,String(s).toLowerCase()));case"keys":return()=>(o.sort(),new Set(URLSearchParams.prototype.keys.call(o)).keys());default:return Reflect.get(o,n,i)}}})}get[Symbol.toStringTag](){return this.constructor.name}toString(){return Object.prototype.toString.call(this)}get(e){let r=this.getAll(e);if(r.length===0)return null;let o=r.join(", ");return/^content-encoding$/i.test(e)&&(o=o.toLowerCase()),o}forEach(e,r=void 0){for(let o of this.keys())Reflect.apply(e,r,[this.get(o),o,this])}*values(){for(let e of this.keys())yield this.get(e)}*entries(){for(let e of this.keys())yield[e,this.get(e)]}[Symbol.iterator](){return this.entries()}raw(){return[...this.keys()].reduce((e,r)=>(e[r]=this.getAll(r),e),{})}[Symbol.for("nodejs.util.inspect.custom")](){return[...this.keys()].reduce((e,r)=>{let o=this.getAll(r);return r==="host"?e[r]=o[0]:e[r]=o.length>1?o:o[0],e},{})}};Object.defineProperties(ar.prototype,["get","entries","forEach","values"].reduce((t,e)=>(t[e]={enumerable:!0},t),{}));a(a0,"fromRawHeaders")});var U6,Ou,aE=Ct(()=>{U6=new Set([301,302,303,307,308]),Ou=a(t=>U6.has(t),"isRedirect")});var Yr,yr,s0=Ct(()=>{Wf();Hf();aE();Yr=Symbol("Response internals"),yr=class t extends fn{static{a(this,"Response")}constructor(e=null,r={}){super(e,r);let o=r.status!=null?r.status:200,n=new ar(r.headers);if(e!==null&&!n.has("Content-Type")){let i=Vf(e,this);i&&n.append("Content-Type",i)}this[Yr]={type:"default",url:r.url,status:o,statusText:r.statusText||"",headers:n,counter:r.counter,highWaterMark:r.highWaterMark}}get type(){return this[Yr].type}get url(){return this[Yr].url||""}get status(){return this[Yr].status}get ok(){return this[Yr].status>=200&&this[Yr].status<300}get redirected(){return this[Yr].counter>0}get statusText(){return this[Yr].statusText}get headers(){return this[Yr].headers}get highWaterMark(){return this[Yr].highWaterMark}clone(){return new t(Da(this,this.highWaterMark),{type:this.type,url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected,size:this.size,highWaterMark:this.highWaterMark})}static redirect(e,r=302){if(!Ou(r))throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');return new t(null,{headers:{location:new URL(e).toString()},status:r})}static error(){let e=new t(null,{status:0,statusText:""});return e[Yr].type="error",e}static json(e=void 0,r={}){let o=JSON.stringify(e);if(o===void 0)throw new TypeError("data is not JSON serializable");let n=new ar(r&&r.headers);return n.has("content-type")||n.set("content-type","application/json"),new t(o,{...r,headers:n})}get[Symbol.toStringTag](){return"Response"}};Object.defineProperties(yr.prototype,{type:{enumerable:!0},url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}})});var c0,u0=Ct(()=>{c0=a(t=>{if(t.search)return t.search;let e=t.href.length-1,r=t.hash||(t.href[e]==="#"?"#":"");return t.href[e-r.length]==="?"?"?":""},"getSearch")});function l0(t,e=!1){return t==null||(t=new URL(t),/^(about|blob|data):$/.test(t.protocol))?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function m0(t){if(!p0.has(t))throw new TypeError(`Invalid referrerPolicy: ${t}`);return t}function M6(t){if(/^(http|ws)s:$/.test(t.protocol))return!0;let e=t.host.replace(/(^\[)|(]$)/g,""),r=(0,d0.isIP)(e);return r===4&&/^127\./.test(e)||r===6&&/^(((0+:){7})|(::(0+:){0,6}))0*1$/.test(e)?!0:t.host==="localhost"||t.host.endsWith(".localhost")?!1:t.protocol==="file:"}function Ua(t){return/^about:(blank|srcdoc)$/.test(t)||t.protocol==="data:"||/^(blob|filesystem):$/.test(t.protocol)?!0:M6(t)}function h0(t,{referrerURLCallback:e,referrerOriginCallback:r}={}){if(t.referrer==="no-referrer"||t.referrerPolicy==="")return null;let o=t.referrerPolicy;if(t.referrer==="about:client")return"no-referrer";let n=t.referrer,i=l0(n),s=l0(n,!0);i.toString().length>4096&&(i=s),e&&(i=e(i)),r&&(s=r(s));let u=new URL(t.url);switch(o){case"no-referrer":return"no-referrer";case"origin":return s;case"unsafe-url":return i;case"strict-origin":return Ua(i)&&!Ua(u)?"no-referrer":s.toString();case"strict-origin-when-cross-origin":return i.origin===u.origin?i:Ua(i)&&!Ua(u)?"no-referrer":s;case"same-origin":return i.origin===u.origin?i:"no-referrer";case"origin-when-cross-origin":return i.origin===u.origin?i:s;case"no-referrer-when-downgrade":return Ua(i)&&!Ua(u)?"no-referrer":i;default:throw new TypeError(`Invalid referrerPolicy: ${o}`)}}function g0(t){let e=(t.get("referrer-policy")||"").split(/[,\s]+/),r="";for(let o of e)o&&p0.has(o)&&(r=o);return r}var d0,p0,f0,sE=Ct(()=>{d0=require("node:net");a(l0,"stripURLForUseAsAReferrer");p0=new Set(["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"]),f0="strict-origin-when-cross-origin";a(m0,"validateReferrerPolicy");a(M6,"isOriginPotentiallyTrustworthy");a(Ua,"isUrlPotentiallyTrustworthy");a(h0,"determineRequestsReferrer");a(g0,"parseReferrerPolicyFromHeader")});var y0,_0,Dt,ku,L6,Oo,v0,b0=Ct(()=>{y0=require("node:url"),_0=require("node:util");Wf();Hf();Ff();u0();sE();Dt=Symbol("Request internals"),ku=a(t=>typeof t=="object"&&typeof t[Dt]=="object","isRequest"),L6=(0,_0.deprecate)(()=>{},".data is not a valid RequestInit property, use .body instead","https://github.com/node-fetch/node-fetch/issues/1000 (request)"),Oo=class t extends fn{static{a(this,"Request")}constructor(e,r={}){let o;if(ku(e)?o=new URL(e.url):(o=new URL(e),e={}),o.username!==""||o.password!=="")throw new TypeError(`${o} is an url with embedded credentials.`);let n=r.method||e.method||"GET";if(/^(delete|get|head|options|post|put)$/i.test(n)&&(n=n.toUpperCase()),!ku(r)&&"data"in r&&L6(),(r.body!=null||ku(e)&&e.body!==null)&&(n==="GET"||n==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body");let i=r.body?r.body:ku(e)&&e.body!==null?Da(e):null;super(i,{size:r.size||e.size||0});let s=new ar(r.headers||e.headers||{});if(i!==null&&!s.has("Content-Type")){let p=Vf(i,this);p&&s.set("Content-Type",p)}let u=ku(e)?e.signal:null;if("signal"in r&&(u=r.signal),u!=null&&!Bk(u))throw new TypeError("Expected signal to be an instanceof AbortSignal or EventTarget");let l=r.referrer==null?e.referrer:r.referrer;if(l==="")l="no-referrer";else if(l){let p=new URL(l);l=/^about:(\/\/)?client$/.test(p)?"client":p}else l=void 0;this[Dt]={method:n,redirect:r.redirect||e.redirect||"follow",headers:s,parsedURL:o,signal:u,referrer:l},this.follow=r.follow===void 0?e.follow===void 0?20:e.follow:r.follow,this.compress=r.compress===void 0?e.compress===void 0?!0:e.compress:r.compress,this.counter=r.counter||e.counter||0,this.agent=r.agent||e.agent,this.highWaterMark=r.highWaterMark||e.highWaterMark||16384,this.insecureHTTPParser=r.insecureHTTPParser||e.insecureHTTPParser||!1,this.referrerPolicy=r.referrerPolicy||e.referrerPolicy||""}get method(){return this[Dt].method}get url(){return(0,y0.format)(this[Dt].parsedURL)}get headers(){return this[Dt].headers}get redirect(){return this[Dt].redirect}get signal(){return this[Dt].signal}get referrer(){if(this[Dt].referrer==="no-referrer")return"";if(this[Dt].referrer==="client")return"about:client";if(this[Dt].referrer)return this[Dt].referrer.toString()}get referrerPolicy(){return this[Dt].referrerPolicy}set referrerPolicy(e){this[Dt].referrerPolicy=m0(e)}clone(){return new t(this)}get[Symbol.toStringTag](){return"Request"}};Object.defineProperties(Oo.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0},referrer:{enumerable:!0},referrerPolicy:{enumerable:!0}});v0=a(t=>{let{parsedURL:e}=t[Dt],r=new ar(t[Dt].headers);r.has("Accept")||r.set("Accept","*/*");let o=null;if(t.body===null&&/^(post|put)$/i.test(t.method)&&(o="0"),t.body!==null){let u=o0(t);typeof u=="number"&&!Number.isNaN(u)&&(o=String(u))}o&&r.set("Content-Length",o),t.referrerPolicy===""&&(t.referrerPolicy=f0),t.referrer&&t.referrer!=="no-referrer"?t[Dt].referrer=h0(t):t[Dt].referrer="no-referrer",t[Dt].referrer instanceof URL&&r.set("Referer",t.referrer),r.has("User-Agent")||r.set("User-Agent","node-fetch"),t.compress&&!r.has("Accept-Encoding")&&r.set("Accept-Encoding","gzip, deflate, br");let{agent:n}=t;typeof n=="function"&&(n=n(e));let i=c0(e),s={path:e.pathname+i,method:t.method,headers:r[Symbol.for("nodejs.util.inspect.custom")](),insecureHTTPParser:t.insecureHTTPParser,agent:n};return{parsedURL:e,options:s}},"getNodeRequestOptions")});var Nu,E0=Ct(()=>{Lf();Nu=class extends Bn{static{a(this,"AbortError")}constructor(e,r="aborted"){super(e,r)}}});var x0={};Xt(x0,{AbortError:()=>Nu,Blob:()=>Xr,FetchError:()=>Wt,File:()=>Io,FormData:()=>Co,Headers:()=>ar,Request:()=>Oo,Response:()=>yr,blobFrom:()=>Jk,blobFromSync:()=>Kk,default:()=>cE,fileFrom:()=>Xk,fileFromSync:()=>Yk,isRedirect:()=>Ou});async function cE(t,e){return new Promise((r,o)=>{let n=new Oo(t,e),{parsedURL:i,options:s}=v0(n);if(!j6.has(i.protocol))throw new TypeError(`node-fetch cannot load ${t}. URL scheme "${i.protocol.replace(/:$/,"")}" is not supported.`);if(i.protocol==="data:"){let _=kk(n.url),P=new yr(_,{headers:{"Content-Type":_.typeFull}});r(P);return}let u=(i.protocol==="https:"?S0.default:P0.default).request,{signal:l}=n,p=null,f=a(()=>{let _=new Nu("The operation was aborted.");o(_),n.body&&n.body instanceof _r.default.Readable&&n.body.destroy(_),!(!p||!p.body)&&p.body.emit("error",_)},"abort");if(l&&l.aborted){f();return}let y=a(()=>{f(),h()},"abortAndFinalize"),m=u(i.toString(),s);l&&l.addEventListener("abort",y);let h=a(()=>{m.abort(),l&&l.removeEventListener("abort",y)},"finalize");m.on("error",_=>{o(new Wt(`request to ${n.url} failed, reason: ${_.message}`,"system",_)),h()}),F6(m,_=>{p&&p.body&&p.body.destroy(_)}),process.version<"v14"&&m.on("socket",_=>{let P;_.prependListener("end",()=>{P=_._eventsCount}),_.prependListener("close",S=>{if(p&&P<_._eventsCount&&!S){let T=new Error("Premature close");T.code="ERR_STREAM_PREMATURE_CLOSE",p.body.emit("error",T)}})}),m.on("response",_=>{m.setTimeout(0);let P=a0(_.rawHeaders);if(Ou(_.statusCode)){let Y=P.get("Location"),H=null;try{H=Y===null?null:new URL(Y,n.url)}catch{if(n.redirect!=="manual"){o(new Wt(`uri requested responds with an invalid redirect URL: ${Y}`,"invalid-redirect")),h();return}}switch(n.redirect){case"error":o(new Wt(`uri requested responds with a redirect, redirect mode is set to error: ${n.url}`,"no-redirect")),h();return;case"manual":break;case"follow":{if(H===null)break;if(n.counter>=n.follow){o(new Wt(`maximum redirect reached at: ${n.url}`,"max-redirect")),h();return}let X={headers:new ar(n.headers),follow:n.follow,counter:n.counter+1,agent:n.agent,compress:n.compress,method:n.method,body:Da(n),signal:n.signal,size:n.size,referrer:n.referrer,referrerPolicy:n.referrerPolicy};if(!qk(n.url,H)||!Gk(n.url,H))for(let ce of["authorization","www-authenticate","cookie","cookie2"])X.headers.delete(ce);if(_.statusCode!==303&&n.body&&e.body instanceof _r.default.Readable){o(new Wt("Cannot follow redirect with body being a readable stream","unsupported-redirect")),h();return}(_.statusCode===303||(_.statusCode===301||_.statusCode===302)&&n.method==="POST")&&(X.method="GET",X.body=void 0,X.headers.delete("content-length"));let re=g0(P);re&&(X.referrerPolicy=re),r(cE(new Oo(H,X))),h();return}default:return o(new TypeError(`Redirect option '${n.redirect}' is not a valid value of RequestRedirect`))}}l&&_.once("end",()=>{l.removeEventListener("abort",y)});let S=(0,_r.pipeline)(_,new _r.PassThrough,Y=>{Y&&o(Y)});process.version<"v12.10"&&_.on("aborted",y);let T={url:n.url,status:_.statusCode,statusText:_.statusMessage,headers:P,size:n.size,counter:n.counter,highWaterMark:n.highWaterMark},k=P.get("Content-Encoding");if(!n.compress||n.method==="HEAD"||k===null||_.statusCode===204||_.statusCode===304){p=new yr(S,T),r(p);return}let L={flush:bi.default.Z_SYNC_FLUSH,finishFlush:bi.default.Z_SYNC_FLUSH};if(k==="gzip"||k==="x-gzip"){S=(0,_r.pipeline)(S,bi.default.createGunzip(L),Y=>{Y&&o(Y)}),p=new yr(S,T),r(p);return}if(k==="deflate"||k==="x-deflate"){let Y=(0,_r.pipeline)(_,new _r.PassThrough,H=>{H&&o(H)});Y.once("data",H=>{(H[0]&15)===8?S=(0,_r.pipeline)(S,bi.default.createInflate(),X=>{X&&o(X)}):S=(0,_r.pipeline)(S,bi.default.createInflateRaw(),X=>{X&&o(X)}),p=new yr(S,T),r(p)}),Y.once("end",()=>{p||(p=new yr(S,T),r(p))});return}if(k==="br"){S=(0,_r.pipeline)(S,bi.default.createBrotliDecompress(),Y=>{Y&&o(Y)}),p=new yr(S,T),r(p);return}p=new yr(S,T),r(p)}),i0(m,n).catch(o)})}function F6(t,e){let r=$u.Buffer.from(`0\r
26
26
  \r
27
- `),o=!1,n=!1,i;t.on("response",s=>{let{headers:u}=s;o=u["transfer-encoding"]==="chunked"&&!u["content-length"]}),t.on("socket",s=>{let u=a(()=>{if(o&&!n){let p=new Error("Premature close");p.code="ERR_STREAM_PREMATURE_CLOSE",e(p)}},"onSocketClose"),l=a(p=>{n=$u.Buffer.compare(p.slice(-5),r)===0,!n&&i&&(n=$u.Buffer.compare(i.slice(-3),r.slice(0,3))===0&&$u.Buffer.compare(p.slice(-2),r.slice(3))===0),i=p},"onData");s.prependListener("close",u),s.on("data",l),t.on("close",()=>{s.removeListener("close",u),s.removeListener("data",l)})})}var S0,x0,bi,_r,$u,F6,A0=Ct(()=>{S0=Tt(require("node:http"),1),x0=Tt(require("node:https"),1),bi=Tt(require("node:zlib"),1),_r=Tt(require("node:stream"),1),$u=require("node:buffer");$k();Hf();c0();Wf();P0();Yb();E0();aP();Mf();Ff();sP();tP();F6=new Set(["data:","http:","https:"]);a(cP,"fetch");a(B6,"fixResponseChunkedTransferBadEnding")});var C0=z(La=>{"use strict";var q6=La&&La.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},Ma;Object.defineProperty(La,"__esModule",{value:!0});La.Gaxios=void 0;var G6=q6(xu()),V6=require("https"),Pi=Mb(),H6=sk(),w0=require("stream"),I0=Fb(),Z6=a(async()=>globalThis.crypto?.randomUUID()||(await import("crypto")).randomUUID(),"randomUUID"),W6=204,Kf=class{static{a(this,"Gaxios")}agentCache=new Map;defaults;interceptors;constructor(e){this.defaults=e||{},this.interceptors={request:new I0.GaxiosInterceptorManager,response:new I0.GaxiosInterceptorManager}}fetch(...e){let r=e[0],o=e[1],n,i=new Headers;return typeof r=="string"?n=new URL(r):r instanceof URL?n=r:r&&r.url&&(n=new URL(r.url)),r&&typeof r=="object"&&"headers"in r&&Ma.mergeHeaders(i,r.headers),o&&Ma.mergeHeaders(i,new Headers(o.headers)),typeof r=="object"&&!(r instanceof URL)?this.request({...o,...r,headers:i,url:n}):this.request({...o,headers:i,url:n})}async request(e={}){let r=await this.#n(e);return r=await this.#t(r),this.#r(this._request(r))}async _defaultAdapter(e){let r=e.fetchImplementation||this.defaults.fetchImplementation||await Ma.#c(),o={...e};delete o.data;let n=await r(e.url,o),i=await this.getResponseData(e,n);return Object.getOwnPropertyDescriptor(n,"data")?.configurable||Object.defineProperties(n,{data:{configurable:!0,writable:!0,enumerable:!0,value:i}}),Object.assign(n,{config:e,data:i})}async _request(e){try{let r;if(e.adapter?r=await e.adapter(e,this._defaultAdapter.bind(this)):r=await this._defaultAdapter(e),!e.validateStatus(r.status)){if(e.responseType==="stream"){let n=[];for await(let i of r.data)n.push(i);r.data=n.toString()}let o=Pi.GaxiosError.extractAPIErrorFromResponse(r,`Request failed with status code ${r.status}`);throw new Pi.GaxiosError(o?.message,e,r,o)}return r}catch(r){let o;r instanceof Pi.GaxiosError?o=r:r instanceof Error?o=new Pi.GaxiosError(r.message,e,void 0,r):o=new Pi.GaxiosError("Unexpected Gaxios Error",e,void 0,r);let{shouldRetry:n,config:i}=await(0,H6.getRetryConfig)(o);if(n&&i)return o.config.retryConfig.currentRetryAttempt=i.retryConfig.currentRetryAttempt,e.retryConfig=o.config?.retryConfig,this.#o(e),this._request(e);throw e.errorRedactor&&e.errorRedactor(o),o}}async getResponseData(e,r){if(r.status===W6)return"";if(e.maxContentLength&&r.headers.has("content-length")&&e.maxContentLength<Number.parseInt(r.headers?.get("content-length")||""))throw new Pi.GaxiosError("Response's `Content-Length` is over the limit.",e,Object.assign(r,{config:e}));switch(e.responseType){case"stream":return r.body;case"json":{let o=await r.text();try{return JSON.parse(o)}catch{return o}}case"arraybuffer":return r.arrayBuffer();case"blob":return r.blob();case"text":return r.text();default:return this.getResponseDataFromContentType(r)}}#e(e,r=[]){let o=new URL(e),n=[...r],i=(process.env.NO_PROXY??process.env.no_proxy)?.split(",")||[];for(let s of i)n.push(s.trim());for(let s of n)if(s instanceof RegExp){if(s.test(o.toString()))return!1}else if(s instanceof URL){if(s.origin===o.origin)return!1}else if(s.startsWith("*.")||s.startsWith(".")){let u=s.replace(/^\*\./,".");if(o.hostname.endsWith(u))return!1}else if(s===o.origin||s===o.hostname||s===o.href)return!1;return!0}async#t(e){let r=Promise.resolve(e);for(let o of this.interceptors.request.values())o&&(r=r.then(o.resolved,o.rejected));return r}async#r(e){let r=Promise.resolve(e);for(let o of this.interceptors.response.values())o&&(r=r.then(o.resolved,o.rejected));return r}async#n(e){let r=new Headers(this.defaults.headers);Ma.mergeHeaders(r,e.headers);let o=(0,G6.default)(!0,{},this.defaults,e);if(!o.url)throw new Error("URL is required.");if(o.baseURL&&(o.url=new URL(o.url,o.baseURL)),o.url=new URL(o.url),o.params)if(o.paramsSerializer){let s=o.paramsSerializer(o.params);s.startsWith("?")&&(s=s.slice(1));let u=o.url.toString().includes("?")?"&":"?";o.url=o.url+u+s}else{let s=o.url instanceof URL?o.url:new URL(o.url);for(let[u,l]of new URLSearchParams(o.params))s.searchParams.append(u,l);o.url=s}typeof e.maxContentLength=="number"&&(o.size=e.maxContentLength),typeof e.maxRedirects=="number"&&(o.follow=e.maxRedirects);let n=typeof o.data=="string"||o.data instanceof ArrayBuffer||o.data instanceof Blob||globalThis.File&&o.data instanceof File||o.data instanceof FormData||o.data instanceof w0.Readable||o.data instanceof ReadableStream||o.data instanceof String||o.data instanceof URLSearchParams||ArrayBuffer.isView(o.data)||["Blob","File","FormData"].includes(o.data?.constructor?.name||"");if(o.multipart?.length){let s=await Z6();r.set("content-type",`multipart/related; boundary=${s}`),o.body=w0.Readable.from(this.getMultipartRequest(o.multipart,s))}else n?o.body=o.data:typeof o.data=="object"?r.get("Content-Type")==="application/x-www-form-urlencoded"?o.body=o.paramsSerializer?o.paramsSerializer(o.data):new URLSearchParams(o.data):(r.has("content-type")||r.set("content-type","application/json"),o.body=JSON.stringify(o.data)):o.data&&(o.body=o.data);o.validateStatus=o.validateStatus||this.validateStatus,o.responseType=o.responseType||"unknown",!r.has("accept")&&o.responseType==="json"&&r.set("accept","application/json");let i=o.proxy||process?.env?.HTTPS_PROXY||process?.env?.https_proxy||process?.env?.HTTP_PROXY||process?.env?.http_proxy;if(!o.agent)if(i&&this.#e(o.url,o.noProxy)){let s=await Ma.#s();this.agentCache.has(i)?o.agent=this.agentCache.get(i):(o.agent=new s(i,{cert:o.cert,key:o.key}),this.agentCache.set(i,o.agent))}else o.cert&&o.key&&(this.agentCache.has(o.key)?o.agent=this.agentCache.get(o.key):(o.agent=new V6.Agent({cert:o.cert,key:o.key}),this.agentCache.set(o.key,o.agent)));return typeof o.errorRedactor!="function"&&o.errorRedactor!==!1&&(o.errorRedactor=Pi.defaultErrorRedactor),o.body&&!("duplex"in o)&&(o.duplex="half"),this.#o(o),Object.assign(o,{headers:r,url:o.url instanceof URL?o.url:new URL(o.url)})}#o(e){if(e.timeout){let r=AbortSignal.timeout(e.timeout);e.signal&&!e.signal.aborted?e.signal=AbortSignal.any([e.signal,r]):e.signal=r}}validateStatus(e){return e>=200&&e<300}async getResponseDataFromContentType(e){let r=e.headers.get("Content-Type");if(r===null)return e.text();if(r=r.toLowerCase(),r.includes("application/json")){let o=await e.text();try{o=JSON.parse(o)}catch{}return o}else return r.match(/^text\//)?e.text():e.blob()}async*getMultipartRequest(e,r){let o=`--${r}--`;for(let n of e){let i=n.headers.get("Content-Type")||"application/octet-stream";yield`--${r}\r
27
+ `),o=!1,n=!1,i;t.on("response",s=>{let{headers:u}=s;o=u["transfer-encoding"]==="chunked"&&!u["content-length"]}),t.on("socket",s=>{let u=a(()=>{if(o&&!n){let p=new Error("Premature close");p.code="ERR_STREAM_PREMATURE_CLOSE",e(p)}},"onSocketClose"),l=a(p=>{n=$u.Buffer.compare(p.slice(-5),r)===0,!n&&i&&(n=$u.Buffer.compare(i.slice(-3),r.slice(0,3))===0&&$u.Buffer.compare(p.slice(-2),r.slice(3))===0),i=p},"onData");s.prependListener("close",u),s.on("data",l),t.on("close",()=>{s.removeListener("close",u),s.removeListener("data",l)})})}var P0,S0,bi,_r,$u,j6,T0=Ct(()=>{P0=Tt(require("node:http"),1),S0=Tt(require("node:https"),1),bi=Tt(require("node:zlib"),1),_r=Tt(require("node:stream"),1),$u=require("node:buffer");Nk();Hf();s0();Wf();b0();Yb();E0();aE();Mf();Ff();sE();tE();j6=new Set(["data:","http:","https:"]);a(cE,"fetch");a(F6,"fixResponseChunkedTransferBadEnding")});var I0=z(La=>{"use strict";var B6=La&&La.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},Ma;Object.defineProperty(La,"__esModule",{value:!0});La.Gaxios=void 0;var q6=B6(xu()),G6=require("https"),Ei=Mb(),V6=ak(),A0=require("stream"),w0=Fb(),H6=a(async()=>globalThis.crypto?.randomUUID()||(await import("crypto")).randomUUID(),"randomUUID"),Z6=204,Kf=class{static{a(this,"Gaxios")}agentCache=new Map;defaults;interceptors;constructor(e){this.defaults=e||{},this.interceptors={request:new w0.GaxiosInterceptorManager,response:new w0.GaxiosInterceptorManager}}fetch(...e){let r=e[0],o=e[1],n,i=new Headers;return typeof r=="string"?n=new URL(r):r instanceof URL?n=r:r&&r.url&&(n=new URL(r.url)),r&&typeof r=="object"&&"headers"in r&&Ma.mergeHeaders(i,r.headers),o&&Ma.mergeHeaders(i,new Headers(o.headers)),typeof r=="object"&&!(r instanceof URL)?this.request({...o,...r,headers:i,url:n}):this.request({...o,headers:i,url:n})}async request(e={}){let r=await this.#n(e);return r=await this.#t(r),this.#r(this._request(r))}async _defaultAdapter(e){let r=e.fetchImplementation||this.defaults.fetchImplementation||await Ma.#c(),o={...e};delete o.data;let n=await r(e.url,o),i=await this.getResponseData(e,n);return Object.getOwnPropertyDescriptor(n,"data")?.configurable||Object.defineProperties(n,{data:{configurable:!0,writable:!0,enumerable:!0,value:i}}),Object.assign(n,{config:e,data:i})}async _request(e){try{let r;if(e.adapter?r=await e.adapter(e,this._defaultAdapter.bind(this)):r=await this._defaultAdapter(e),!e.validateStatus(r.status)){if(e.responseType==="stream"){let n=[];for await(let i of r.data)n.push(i);r.data=n.toString()}let o=Ei.GaxiosError.extractAPIErrorFromResponse(r,`Request failed with status code ${r.status}`);throw new Ei.GaxiosError(o?.message,e,r,o)}return r}catch(r){let o;r instanceof Ei.GaxiosError?o=r:r instanceof Error?o=new Ei.GaxiosError(r.message,e,void 0,r):o=new Ei.GaxiosError("Unexpected Gaxios Error",e,void 0,r);let{shouldRetry:n,config:i}=await(0,V6.getRetryConfig)(o);if(n&&i)return o.config.retryConfig.currentRetryAttempt=i.retryConfig.currentRetryAttempt,e.retryConfig=o.config?.retryConfig,this.#o(e),this._request(e);throw e.errorRedactor&&e.errorRedactor(o),o}}async getResponseData(e,r){if(r.status===Z6)return"";if(e.maxContentLength&&r.headers.has("content-length")&&e.maxContentLength<Number.parseInt(r.headers?.get("content-length")||""))throw new Ei.GaxiosError("Response's `Content-Length` is over the limit.",e,Object.assign(r,{config:e}));switch(e.responseType){case"stream":return r.body;case"json":{let o=await r.text();try{return JSON.parse(o)}catch{return o}}case"arraybuffer":return r.arrayBuffer();case"blob":return r.blob();case"text":return r.text();default:return this.getResponseDataFromContentType(r)}}#e(e,r=[]){let o=new URL(e),n=[...r],i=(process.env.NO_PROXY??process.env.no_proxy)?.split(",")||[];for(let s of i)n.push(s.trim());for(let s of n)if(s instanceof RegExp){if(s.test(o.toString()))return!1}else if(s instanceof URL){if(s.origin===o.origin)return!1}else if(s.startsWith("*.")||s.startsWith(".")){let u=s.replace(/^\*\./,".");if(o.hostname.endsWith(u))return!1}else if(s===o.origin||s===o.hostname||s===o.href)return!1;return!0}async#t(e){let r=Promise.resolve(e);for(let o of this.interceptors.request.values())o&&(r=r.then(o.resolved,o.rejected));return r}async#r(e){let r=Promise.resolve(e);for(let o of this.interceptors.response.values())o&&(r=r.then(o.resolved,o.rejected));return r}async#n(e){let r=new Headers(this.defaults.headers);Ma.mergeHeaders(r,e.headers);let o=(0,q6.default)(!0,{},this.defaults,e);if(!o.url)throw new Error("URL is required.");if(o.baseURL&&(o.url=new URL(o.url,o.baseURL)),o.url=new URL(o.url),o.params)if(o.paramsSerializer){let s=o.paramsSerializer(o.params);s.startsWith("?")&&(s=s.slice(1));let u=o.url.toString().includes("?")?"&":"?";o.url=o.url+u+s}else{let s=o.url instanceof URL?o.url:new URL(o.url);for(let[u,l]of new URLSearchParams(o.params))s.searchParams.append(u,l);o.url=s}typeof e.maxContentLength=="number"&&(o.size=e.maxContentLength),typeof e.maxRedirects=="number"&&(o.follow=e.maxRedirects);let n=typeof o.data=="string"||o.data instanceof ArrayBuffer||o.data instanceof Blob||globalThis.File&&o.data instanceof File||o.data instanceof FormData||o.data instanceof A0.Readable||o.data instanceof ReadableStream||o.data instanceof String||o.data instanceof URLSearchParams||ArrayBuffer.isView(o.data)||["Blob","File","FormData"].includes(o.data?.constructor?.name||"");if(o.multipart?.length){let s=await H6();r.set("content-type",`multipart/related; boundary=${s}`),o.body=A0.Readable.from(this.getMultipartRequest(o.multipart,s))}else n?o.body=o.data:typeof o.data=="object"?r.get("Content-Type")==="application/x-www-form-urlencoded"?o.body=o.paramsSerializer?o.paramsSerializer(o.data):new URLSearchParams(o.data):(r.has("content-type")||r.set("content-type","application/json"),o.body=JSON.stringify(o.data)):o.data&&(o.body=o.data);o.validateStatus=o.validateStatus||this.validateStatus,o.responseType=o.responseType||"unknown",!r.has("accept")&&o.responseType==="json"&&r.set("accept","application/json");let i=o.proxy||process?.env?.HTTPS_PROXY||process?.env?.https_proxy||process?.env?.HTTP_PROXY||process?.env?.http_proxy;if(!o.agent)if(i&&this.#e(o.url,o.noProxy)){let s=await Ma.#s();this.agentCache.has(i)?o.agent=this.agentCache.get(i):(o.agent=new s(i,{cert:o.cert,key:o.key}),this.agentCache.set(i,o.agent))}else o.cert&&o.key&&(this.agentCache.has(o.key)?o.agent=this.agentCache.get(o.key):(o.agent=new G6.Agent({cert:o.cert,key:o.key}),this.agentCache.set(o.key,o.agent)));return typeof o.errorRedactor!="function"&&o.errorRedactor!==!1&&(o.errorRedactor=Ei.defaultErrorRedactor),o.body&&!("duplex"in o)&&(o.duplex="half"),this.#o(o),Object.assign(o,{headers:r,url:o.url instanceof URL?o.url:new URL(o.url)})}#o(e){if(e.timeout){let r=AbortSignal.timeout(e.timeout);e.signal&&!e.signal.aborted?e.signal=AbortSignal.any([e.signal,r]):e.signal=r}}validateStatus(e){return e>=200&&e<300}async getResponseDataFromContentType(e){let r=e.headers.get("Content-Type");if(r===null)return e.text();if(r=r.toLowerCase(),r.includes("application/json")){let o=await e.text();try{o=JSON.parse(o)}catch{}return o}else return r.match(/^text\//)?e.text():e.blob()}async*getMultipartRequest(e,r){let o=`--${r}--`;for(let n of e){let i=n.headers.get("Content-Type")||"application/octet-stream";yield`--${r}\r
28
28
  Content-Type: ${i}\r
29
29
  \r
30
30
  `,typeof n.content=="string"?yield n.content:yield*n.content,yield`\r
31
- `}yield o}static#i;static#a;static async#s(){return this.#i||=(await Promise.resolve().then(()=>Tt(kk()))).HttpsProxyAgent,this.#i}static async#c(){let e=typeof window<"u"&&!!window;return this.#a||=e?window.fetch:(await Promise.resolve().then(()=>(A0(),T0))).default,this.#a}static mergeHeaders(e,...r){e=e instanceof Headers?e:new Headers(e);for(let o of r)(o instanceof Headers?o:new Headers(o)).forEach((i,s)=>{s==="set-cookie"?e.append(s,i):e.set(s,i)});return e}};La.Gaxios=Kf;Ma=Kf});var bt=z(Kt=>{"use strict";var K6=Kt&&Kt.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),J6=Kt&&Kt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&K6(e,t,r)};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.instance=Kt.Gaxios=Kt.GaxiosError=void 0;Kt.request=Y6;var R0=C0();Object.defineProperty(Kt,"Gaxios",{enumerable:!0,get:a(function(){return R0.Gaxios},"get")});var X6=Mb();Object.defineProperty(Kt,"GaxiosError",{enumerable:!0,get:a(function(){return X6.GaxiosError},"get")});J6(Fb(),Kt);Kt.instance=new R0.Gaxios;async function Y6(t){return Kt.instance.request(t)}a(Y6,"request")});var uP=z((O0,Jf)=>{(function(t){"use strict";var e,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,o=Math.ceil,n=Math.floor,i="[BigNumber Error] ",s=i+"Number primitive has more than 15 significant digits: ",u=1e14,l=14,p=9007199254740991,f=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],y=1e7,m=1e9;function h(H){var X,re,ce,ee=se.prototype={constructor:se,toString:null,valueOf:null},Le=new se(1),ue=20,K=4,Z=-7,oe=21,Q=-1e7,pe=1e7,me=!1,ze=1,je=0,Qe={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xA0",suffix:""},it="0123456789abcdefghijklmnopqrstuvwxyz",It=!0;function se(b,x){var A,M,R,$,B,C,N,j,U=this;if(!(U instanceof se))return new se(b,x);if(x==null){if(b&&b._isBigNumber===!0){U.s=b.s,!b.c||b.e>pe?U.c=U.e=null:b.e<Q?U.c=[U.e=0]:(U.e=b.e,U.c=b.c.slice());return}if((C=typeof b=="number")&&b*0==0){if(U.s=1/b<0?(b=-b,-1):1,b===~~b){for($=0,B=b;B>=10;B/=10,$++);$>pe?U.c=U.e=null:(U.e=$,U.c=[b]);return}j=String(b)}else{if(!r.test(j=String(b)))return ce(U,j,C);U.s=j.charCodeAt(0)==45?(j=j.slice(1),-1):1}($=j.indexOf("."))>-1&&(j=j.replace(".","")),(B=j.search(/e/i))>0?($<0&&($=B),$+=+j.slice(B+1),j=j.substring(0,B)):$<0&&($=j.length)}else{if(T(x,2,it.length,"Base"),x==10&&It)return U=new se(b),Je(U,ue+U.e+1,K);if(j=String(b),C=typeof b=="number"){if(b*0!=0)return ce(U,j,C,x);if(U.s=1/b<0?(j=j.slice(1),-1):1,se.DEBUG&&j.replace(/^0\.0*|\./,"").length>15)throw Error(s+b)}else U.s=j.charCodeAt(0)===45?(j=j.slice(1),-1):1;for(A=it.slice(0,x),$=B=0,N=j.length;B<N;B++)if(A.indexOf(M=j.charAt(B))<0){if(M=="."){if(B>$){$=N;continue}}else if(!R&&(j==j.toUpperCase()&&(j=j.toLowerCase())||j==j.toLowerCase()&&(j=j.toUpperCase()))){R=!0,B=-1,$=0;continue}return ce(U,String(b),C,x)}C=!1,j=re(j,x,10,U.s),($=j.indexOf("."))>-1?j=j.replace(".",""):$=j.length}for(B=0;j.charCodeAt(B)===48;B++);for(N=j.length;j.charCodeAt(--N)===48;);if(j=j.slice(B,++N)){if(N-=B,C&&se.DEBUG&&N>15&&(b>p||b!==n(b)))throw Error(s+U.s*b);if(($=$-B-1)>pe)U.c=U.e=null;else if($<Q)U.c=[U.e=0];else{if(U.e=$,U.c=[],B=($+1)%l,$<0&&(B+=l),B<N){for(B&&U.c.push(+j.slice(0,B)),N-=l;B<N;)U.c.push(+j.slice(B,B+=l));B=l-(j=j.slice(B)).length}else B-=N;for(;B--;j+="0");U.c.push(+j)}}else U.c=[U.e=0]}a(se,"BigNumber"),se.clone=h,se.ROUND_UP=0,se.ROUND_DOWN=1,se.ROUND_CEIL=2,se.ROUND_FLOOR=3,se.ROUND_HALF_UP=4,se.ROUND_HALF_DOWN=5,se.ROUND_HALF_EVEN=6,se.ROUND_HALF_CEIL=7,se.ROUND_HALF_FLOOR=8,se.EUCLID=9,se.config=se.set=function(b){var x,A;if(b!=null)if(typeof b=="object"){if(b.hasOwnProperty(x="DECIMAL_PLACES")&&(A=b[x],T(A,0,m,x),ue=A),b.hasOwnProperty(x="ROUNDING_MODE")&&(A=b[x],T(A,0,8,x),K=A),b.hasOwnProperty(x="EXPONENTIAL_AT")&&(A=b[x],A&&A.pop?(T(A[0],-m,0,x),T(A[1],0,m,x),Z=A[0],oe=A[1]):(T(A,-m,m,x),Z=-(oe=A<0?-A:A))),b.hasOwnProperty(x="RANGE"))if(A=b[x],A&&A.pop)T(A[0],-m,-1,x),T(A[1],1,m,x),Q=A[0],pe=A[1];else if(T(A,-m,m,x),A)Q=-(pe=A<0?-A:A);else throw Error(i+x+" cannot be zero: "+A);if(b.hasOwnProperty(x="CRYPTO"))if(A=b[x],A===!!A)if(A)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))me=A;else throw me=!A,Error(i+"crypto unavailable");else me=A;else throw Error(i+x+" not true or false: "+A);if(b.hasOwnProperty(x="MODULO_MODE")&&(A=b[x],T(A,0,9,x),ze=A),b.hasOwnProperty(x="POW_PRECISION")&&(A=b[x],T(A,0,m,x),je=A),b.hasOwnProperty(x="FORMAT"))if(A=b[x],typeof A=="object")Qe=A;else throw Error(i+x+" not an object: "+A);if(b.hasOwnProperty(x="ALPHABET"))if(A=b[x],typeof A=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(A))It=A.slice(0,10)=="0123456789",it=A;else throw Error(i+x+" invalid: "+A)}else throw Error(i+"Object expected: "+b);return{DECIMAL_PLACES:ue,ROUNDING_MODE:K,EXPONENTIAL_AT:[Z,oe],RANGE:[Q,pe],CRYPTO:me,MODULO_MODE:ze,POW_PRECISION:je,FORMAT:Qe,ALPHABET:it}},se.isBigNumber=function(b){if(!b||b._isBigNumber!==!0)return!1;if(!se.DEBUG)return!0;var x,A,M=b.c,R=b.e,$=b.s;e:if({}.toString.call(M)=="[object Array]"){if(($===1||$===-1)&&R>=-m&&R<=m&&R===n(R)){if(M[0]===0){if(R===0&&M.length===1)return!0;break e}if(x=(R+1)%l,x<1&&(x+=l),String(M[0]).length==x){for(x=0;x<M.length;x++)if(A=M[x],A<0||A>=u||A!==n(A))break e;if(A!==0)return!0}}}else if(M===null&&R===null&&($===null||$===1||$===-1))return!0;throw Error(i+"Invalid BigNumber: "+b)},se.maximum=se.max=function(){return _t(arguments,-1)},se.minimum=se.min=function(){return _t(arguments,1)},se.random=(function(){var b=9007199254740992,x=Math.random()*b&2097151?function(){return n(Math.random()*b)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(A){var M,R,$,B,C,N=0,j=[],U=new se(Le);if(A==null?A=ue:T(A,0,m),B=o(A/l),me)if(crypto.getRandomValues){for(M=crypto.getRandomValues(new Uint32Array(B*=2));N<B;)C=M[N]*131072+(M[N+1]>>>11),C>=9e15?(R=crypto.getRandomValues(new Uint32Array(2)),M[N]=R[0],M[N+1]=R[1]):(j.push(C%1e14),N+=2);N=B/2}else if(crypto.randomBytes){for(M=crypto.randomBytes(B*=7);N<B;)C=(M[N]&31)*281474976710656+M[N+1]*1099511627776+M[N+2]*4294967296+M[N+3]*16777216+(M[N+4]<<16)+(M[N+5]<<8)+M[N+6],C>=9e15?crypto.randomBytes(7).copy(M,N):(j.push(C%1e14),N+=7);N=B/7}else throw me=!1,Error(i+"crypto unavailable");if(!me)for(;N<B;)C=x(),C<9e15&&(j[N++]=C%1e14);for(B=j[--N],A%=l,B&&A&&(C=f[l-A],j[N]=n(B/C)*C);j[N]===0;j.pop(),N--);if(N<0)j=[$=0];else{for($=-1;j[0]===0;j.splice(0,1),$-=l);for(N=1,C=j[0];C>=10;C/=10,N++);N<l&&($-=l-N)}return U.e=$,U.c=j,U}})(),se.sum=function(){for(var b=1,x=arguments,A=new se(x[0]);b<x.length;)A=A.plus(x[b++]);return A},re=(function(){var b="0123456789";function x(A,M,R,$){for(var B,C=[0],N,j=0,U=A.length;j<U;){for(N=C.length;N--;C[N]*=M);for(C[0]+=$.indexOf(A.charAt(j++)),B=0;B<C.length;B++)C[B]>R-1&&(C[B+1]==null&&(C[B+1]=0),C[B+1]+=C[B]/R|0,C[B]%=R)}return C.reverse()}return a(x,"toBaseOut"),function(A,M,R,$,B){var C,N,j,U,J,he,ye,Ze,ut=A.indexOf("."),lt=ue,Ve=K;for(ut>=0&&(U=je,je=0,A=A.replace(".",""),Ze=new se(M),he=Ze.pow(A.length-ut),je=U,Ze.c=x(Y(E(he.c),he.e,"0"),10,R,b),Ze.e=Ze.c.length),ye=x(A,M,R,B?(C=it,b):(C=b,it)),j=U=ye.length;ye[--U]==0;ye.pop());if(!ye[0])return C.charAt(0);if(ut<0?--j:(he.c=ye,he.e=j,he.s=$,he=X(he,Ze,lt,Ve,R),ye=he.c,J=he.r,j=he.e),N=j+lt+1,ut=ye[N],U=R/2,J=J||N<0||ye[N+1]!=null,J=Ve<4?(ut!=null||J)&&(Ve==0||Ve==(he.s<0?3:2)):ut>U||ut==U&&(Ve==4||J||Ve==6&&ye[N-1]&1||Ve==(he.s<0?8:7)),N<1||!ye[0])A=J?Y(C.charAt(1),-lt,C.charAt(0)):C.charAt(0);else{if(ye.length=N,J)for(--R;++ye[--N]>R;)ye[N]=0,N||(++j,ye=[1].concat(ye));for(U=ye.length;!ye[--U];);for(ut=0,A="";ut<=U;A+=C.charAt(ye[ut++]));A=Y(A,j,C.charAt(0))}return A}})(),X=(function(){function b(M,R,$){var B,C,N,j,U=0,J=M.length,he=R%y,ye=R/y|0;for(M=M.slice();J--;)N=M[J]%y,j=M[J]/y|0,B=ye*N+j*he,C=he*N+B%y*y+U,U=(C/$|0)+(B/y|0)+ye*j,M[J]=C%$;return U&&(M=[U].concat(M)),M}a(b,"multiply");function x(M,R,$,B){var C,N;if($!=B)N=$>B?1:-1;else for(C=N=0;C<$;C++)if(M[C]!=R[C]){N=M[C]>R[C]?1:-1;break}return N}a(x,"compare");function A(M,R,$,B){for(var C=0;$--;)M[$]-=C,C=M[$]<R[$]?1:0,M[$]=C*B+M[$]-R[$];for(;!M[0]&&M.length>1;M.splice(0,1));}return a(A,"subtract"),function(M,R,$,B,C){var N,j,U,J,he,ye,Ze,ut,lt,Ve,Ke,St,Ri,Oi,ki,cr,An,Lt=M.s==R.s?1:-1,xt=M.c,tt=R.c;if(!xt||!xt[0]||!tt||!tt[0])return new se(!M.s||!R.s||(xt?tt&&xt[0]==tt[0]:!tt)?NaN:xt&&xt[0]==0||!tt?Lt*0:Lt/0);for(ut=new se(Lt),lt=ut.c=[],j=M.e-R.e,Lt=$+j+1,C||(C=u,j=_(M.e/l)-_(R.e/l),Lt=Lt/l|0),U=0;tt[U]==(xt[U]||0);U++);if(tt[U]>(xt[U]||0)&&j--,Lt<0)lt.push(1),J=!0;else{for(Oi=xt.length,cr=tt.length,U=0,Lt+=2,he=n(C/(tt[0]+1)),he>1&&(tt=b(tt,he,C),xt=b(xt,he,C),cr=tt.length,Oi=xt.length),Ri=cr,Ve=xt.slice(0,cr),Ke=Ve.length;Ke<cr;Ve[Ke++]=0);An=tt.slice(),An=[0].concat(An),ki=tt[0],tt[1]>=C/2&&ki++;do{if(he=0,N=x(tt,Ve,cr,Ke),N<0){if(St=Ve[0],cr!=Ke&&(St=St*C+(Ve[1]||0)),he=n(St/ki),he>1)for(he>=C&&(he=C-1),ye=b(tt,he,C),Ze=ye.length,Ke=Ve.length;x(ye,Ve,Ze,Ke)==1;)he--,A(ye,cr<Ze?An:tt,Ze,C),Ze=ye.length,N=1;else he==0&&(N=he=1),ye=tt.slice(),Ze=ye.length;if(Ze<Ke&&(ye=[0].concat(ye)),A(Ve,ye,Ke,C),Ke=Ve.length,N==-1)for(;x(tt,Ve,cr,Ke)<1;)he++,A(Ve,cr<Ke?An:tt,Ke,C),Ke=Ve.length}else N===0&&(he++,Ve=[0]);lt[U++]=he,Ve[0]?Ve[Ke++]=xt[Ri]||0:(Ve=[xt[Ri]],Ke=1)}while((Ri++<Oi||Ve[0]!=null)&&Lt--);J=Ve[0]!=null,lt[0]||lt.splice(0,1)}if(C==u){for(U=1,Lt=lt[0];Lt>=10;Lt/=10,U++);Je(ut,$+(ut.e=U+j*l-1)+1,B,J)}else ut.e=j,ut.r=+J;return ut}})();function gt(b,x,A,M){var R,$,B,C,N;if(A==null?A=K:T(A,0,8),!b.c)return b.toString();if(R=b.c[0],B=b.e,x==null)N=E(b.c),N=M==1||M==2&&(B<=Z||B>=oe)?L(N,B):Y(N,B,"0");else if(b=Je(new se(b),x,A),$=b.e,N=E(b.c),C=N.length,M==1||M==2&&(x<=$||$<=Z)){for(;C<x;N+="0",C++);N=L(N,$)}else if(x-=B+(M===2&&$>B),N=Y(N,$,"0"),$+1>C){if(--x>0)for(N+=".";x--;N+="0");}else if(x+=$-C,x>0)for($+1==C&&(N+=".");x--;N+="0");return b.s<0&&R?"-"+N:N}a(gt,"format");function _t(b,x){for(var A,M,R=1,$=new se(b[0]);R<b.length;R++)M=new se(b[R]),(!M.s||(A=S($,M))===x||A===0&&$.s===x)&&($=M);return $}a(_t,"maxOrMin");function sr(b,x,A){for(var M=1,R=x.length;!x[--R];x.pop());for(R=x[0];R>=10;R/=10,M++);return(A=M+A*l-1)>pe?b.c=b.e=null:A<Q?b.c=[b.e=0]:(b.e=A,b.c=x),b}a(sr,"normalise"),ce=(function(){var b=/^(-?)0([xbo])(?=\w[\w.]*$)/i,x=/^([^.]+)\.$/,A=/^\.([^.]+)$/,M=/^-?(Infinity|NaN)$/,R=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function($,B,C,N){var j,U=C?B:B.replace(R,"");if(M.test(U))$.s=isNaN(U)?null:U<0?-1:1;else{if(!C&&(U=U.replace(b,function(J,he,ye){return j=(ye=ye.toLowerCase())=="x"?16:ye=="b"?2:8,!N||N==j?he:J}),N&&(j=N,U=U.replace(x,"$1").replace(A,"0.$1")),B!=U))return new se(U,j);if(se.DEBUG)throw Error(i+"Not a"+(N?" base "+N:"")+" number: "+B);$.s=null}$.c=$.e=null}})();function Je(b,x,A,M){var R,$,B,C,N,j,U,J=b.c,he=f;if(J){e:{for(R=1,C=J[0];C>=10;C/=10,R++);if($=x-R,$<0)$+=l,B=x,N=J[j=0],U=n(N/he[R-B-1]%10);else if(j=o(($+1)/l),j>=J.length)if(M){for(;J.length<=j;J.push(0));N=U=0,R=1,$%=l,B=$-l+1}else break e;else{for(N=C=J[j],R=1;C>=10;C/=10,R++);$%=l,B=$-l+R,U=B<0?0:n(N/he[R-B-1]%10)}if(M=M||x<0||J[j+1]!=null||(B<0?N:N%he[R-B-1]),M=A<4?(U||M)&&(A==0||A==(b.s<0?3:2)):U>5||U==5&&(A==4||M||A==6&&($>0?B>0?N/he[R-B]:0:J[j-1])%10&1||A==(b.s<0?8:7)),x<1||!J[0])return J.length=0,M?(x-=b.e+1,J[0]=he[(l-x%l)%l],b.e=-x||0):J[0]=b.e=0,b;if($==0?(J.length=j,C=1,j--):(J.length=j+1,C=he[l-$],J[j]=B>0?n(N/he[R-B]%he[B])*C:0),M)for(;;)if(j==0){for($=1,B=J[0];B>=10;B/=10,$++);for(B=J[0]+=C,C=1;B>=10;B/=10,C++);$!=C&&(b.e++,J[0]==u&&(J[0]=1));break}else{if(J[j]+=C,J[j]!=u)break;J[j--]=0,C=1}for($=J.length;J[--$]===0;J.pop());}b.e>pe?b.c=b.e=null:b.e<Q&&(b.c=[b.e=0])}return b}a(Je,"round");function et(b){var x,A=b.e;return A===null?b.toString():(x=E(b.c),x=A<=Z||A>=oe?L(x,A):Y(x,A,"0"),b.s<0?"-"+x:x)}return a(et,"valueOf"),ee.absoluteValue=ee.abs=function(){var b=new se(this);return b.s<0&&(b.s=1),b},ee.comparedTo=function(b,x){return S(this,new se(b,x))},ee.decimalPlaces=ee.dp=function(b,x){var A,M,R,$=this;if(b!=null)return T(b,0,m),x==null?x=K:T(x,0,8),Je(new se($),b+$.e+1,x);if(!(A=$.c))return null;if(M=((R=A.length-1)-_(this.e/l))*l,R=A[R])for(;R%10==0;R/=10,M--);return M<0&&(M=0),M},ee.dividedBy=ee.div=function(b,x){return X(this,new se(b,x),ue,K)},ee.dividedToIntegerBy=ee.idiv=function(b,x){return X(this,new se(b,x),0,1)},ee.exponentiatedBy=ee.pow=function(b,x){var A,M,R,$,B,C,N,j,U,J=this;if(b=new se(b),b.c&&!b.isInteger())throw Error(i+"Exponent not an integer: "+et(b));if(x!=null&&(x=new se(x)),C=b.e>14,!J.c||!J.c[0]||J.c[0]==1&&!J.e&&J.c.length==1||!b.c||!b.c[0])return U=new se(Math.pow(+et(J),C?b.s*(2-k(b)):+et(b))),x?U.mod(x):U;if(N=b.s<0,x){if(x.c?!x.c[0]:!x.s)return new se(NaN);M=!N&&J.isInteger()&&x.isInteger(),M&&(J=J.mod(x))}else{if(b.e>9&&(J.e>0||J.e<-1||(J.e==0?J.c[0]>1||C&&J.c[1]>=24e7:J.c[0]<8e13||C&&J.c[0]<=9999975e7)))return $=J.s<0&&k(b)?-0:0,J.e>-1&&($=1/$),new se(N?1/$:$);je&&($=o(je/l+2))}for(C?(A=new se(.5),N&&(b.s=1),j=k(b)):(R=Math.abs(+et(b)),j=R%2),U=new se(Le);;){if(j){if(U=U.times(J),!U.c)break;$?U.c.length>$&&(U.c.length=$):M&&(U=U.mod(x))}if(R){if(R=n(R/2),R===0)break;j=R%2}else if(b=b.times(A),Je(b,b.e+1,1),b.e>14)j=k(b);else{if(R=+et(b),R===0)break;j=R%2}J=J.times(J),$?J.c&&J.c.length>$&&(J.c.length=$):M&&(J=J.mod(x))}return M?U:(N&&(U=Le.div(U)),x?U.mod(x):$?Je(U,je,K,B):U)},ee.integerValue=function(b){var x=new se(this);return b==null?b=K:T(b,0,8),Je(x,x.e+1,b)},ee.isEqualTo=ee.eq=function(b,x){return S(this,new se(b,x))===0},ee.isFinite=function(){return!!this.c},ee.isGreaterThan=ee.gt=function(b,x){return S(this,new se(b,x))>0},ee.isGreaterThanOrEqualTo=ee.gte=function(b,x){return(x=S(this,new se(b,x)))===1||x===0},ee.isInteger=function(){return!!this.c&&_(this.e/l)>this.c.length-2},ee.isLessThan=ee.lt=function(b,x){return S(this,new se(b,x))<0},ee.isLessThanOrEqualTo=ee.lte=function(b,x){return(x=S(this,new se(b,x)))===-1||x===0},ee.isNaN=function(){return!this.s},ee.isNegative=function(){return this.s<0},ee.isPositive=function(){return this.s>0},ee.isZero=function(){return!!this.c&&this.c[0]==0},ee.minus=function(b,x){var A,M,R,$,B=this,C=B.s;if(b=new se(b,x),x=b.s,!C||!x)return new se(NaN);if(C!=x)return b.s=-x,B.plus(b);var N=B.e/l,j=b.e/l,U=B.c,J=b.c;if(!N||!j){if(!U||!J)return U?(b.s=-x,b):new se(J?B:NaN);if(!U[0]||!J[0])return J[0]?(b.s=-x,b):new se(U[0]?B:K==3?-0:0)}if(N=_(N),j=_(j),U=U.slice(),C=N-j){for(($=C<0)?(C=-C,R=U):(j=N,R=J),R.reverse(),x=C;x--;R.push(0));R.reverse()}else for(M=($=(C=U.length)<(x=J.length))?C:x,C=x=0;x<M;x++)if(U[x]!=J[x]){$=U[x]<J[x];break}if($&&(R=U,U=J,J=R,b.s=-b.s),x=(M=J.length)-(A=U.length),x>0)for(;x--;U[A++]=0);for(x=u-1;M>C;){if(U[--M]<J[M]){for(A=M;A&&!U[--A];U[A]=x);--U[A],U[M]+=u}U[M]-=J[M]}for(;U[0]==0;U.splice(0,1),--j);return U[0]?sr(b,U,j):(b.s=K==3?-1:1,b.c=[b.e=0],b)},ee.modulo=ee.mod=function(b,x){var A,M,R=this;return b=new se(b,x),!R.c||!b.s||b.c&&!b.c[0]?new se(NaN):!b.c||R.c&&!R.c[0]?new se(R):(ze==9?(M=b.s,b.s=1,A=X(R,b,0,3),b.s=M,A.s*=M):A=X(R,b,0,ze),b=R.minus(A.times(b)),!b.c[0]&&ze==1&&(b.s=R.s),b)},ee.multipliedBy=ee.times=function(b,x){var A,M,R,$,B,C,N,j,U,J,he,ye,Ze,ut,lt,Ve=this,Ke=Ve.c,St=(b=new se(b,x)).c;if(!Ke||!St||!Ke[0]||!St[0])return!Ve.s||!b.s||Ke&&!Ke[0]&&!St||St&&!St[0]&&!Ke?b.c=b.e=b.s=null:(b.s*=Ve.s,!Ke||!St?b.c=b.e=null:(b.c=[0],b.e=0)),b;for(M=_(Ve.e/l)+_(b.e/l),b.s*=Ve.s,N=Ke.length,J=St.length,N<J&&(Ze=Ke,Ke=St,St=Ze,R=N,N=J,J=R),R=N+J,Ze=[];R--;Ze.push(0));for(ut=u,lt=y,R=J;--R>=0;){for(A=0,he=St[R]%lt,ye=St[R]/lt|0,B=N,$=R+B;$>R;)j=Ke[--B]%lt,U=Ke[B]/lt|0,C=ye*j+U*he,j=he*j+C%lt*lt+Ze[$]+A,A=(j/ut|0)+(C/lt|0)+ye*U,Ze[$--]=j%ut;Ze[$]=A}return A?++M:Ze.splice(0,1),sr(b,Ze,M)},ee.negated=function(){var b=new se(this);return b.s=-b.s||null,b},ee.plus=function(b,x){var A,M=this,R=M.s;if(b=new se(b,x),x=b.s,!R||!x)return new se(NaN);if(R!=x)return b.s=-x,M.minus(b);var $=M.e/l,B=b.e/l,C=M.c,N=b.c;if(!$||!B){if(!C||!N)return new se(R/0);if(!C[0]||!N[0])return N[0]?b:new se(C[0]?M:R*0)}if($=_($),B=_(B),C=C.slice(),R=$-B){for(R>0?(B=$,A=N):(R=-R,A=C),A.reverse();R--;A.push(0));A.reverse()}for(R=C.length,x=N.length,R-x<0&&(A=N,N=C,C=A,x=R),R=0;x;)R=(C[--x]=C[x]+N[x]+R)/u|0,C[x]=u===C[x]?0:C[x]%u;return R&&(C=[R].concat(C),++B),sr(b,C,B)},ee.precision=ee.sd=function(b,x){var A,M,R,$=this;if(b!=null&&b!==!!b)return T(b,1,m),x==null?x=K:T(x,0,8),Je(new se($),b,x);if(!(A=$.c))return null;if(R=A.length-1,M=R*l+1,R=A[R]){for(;R%10==0;R/=10,M--);for(R=A[0];R>=10;R/=10,M++);}return b&&$.e+1>M&&(M=$.e+1),M},ee.shiftedBy=function(b){return T(b,-p,p),this.times("1e"+b)},ee.squareRoot=ee.sqrt=function(){var b,x,A,M,R,$=this,B=$.c,C=$.s,N=$.e,j=ue+4,U=new se("0.5");if(C!==1||!B||!B[0])return new se(!C||C<0&&(!B||B[0])?NaN:B?$:1/0);if(C=Math.sqrt(+et($)),C==0||C==1/0?(x=E(B),(x.length+N)%2==0&&(x+="0"),C=Math.sqrt(+x),N=_((N+1)/2)-(N<0||N%2),C==1/0?x="5e"+N:(x=C.toExponential(),x=x.slice(0,x.indexOf("e")+1)+N),A=new se(x)):A=new se(C+""),A.c[0]){for(N=A.e,C=N+j,C<3&&(C=0);;)if(R=A,A=U.times(R.plus(X($,R,j,1))),E(R.c).slice(0,C)===(x=E(A.c)).slice(0,C))if(A.e<N&&--C,x=x.slice(C-3,C+1),x=="9999"||!M&&x=="4999"){if(!M&&(Je(R,R.e+ue+2,0),R.times(R).eq($))){A=R;break}j+=4,C+=4,M=1}else{(!+x||!+x.slice(1)&&x.charAt(0)=="5")&&(Je(A,A.e+ue+2,1),b=!A.times(A).eq($));break}}return Je(A,A.e+ue+1,K,b)},ee.toExponential=function(b,x){return b!=null&&(T(b,0,m),b++),gt(this,b,x,1)},ee.toFixed=function(b,x){return b!=null&&(T(b,0,m),b=b+this.e+1),gt(this,b,x)},ee.toFormat=function(b,x,A){var M,R=this;if(A==null)b!=null&&x&&typeof x=="object"?(A=x,x=null):b&&typeof b=="object"?(A=b,b=x=null):A=Qe;else if(typeof A!="object")throw Error(i+"Argument not an object: "+A);if(M=R.toFixed(b,x),R.c){var $,B=M.split("."),C=+A.groupSize,N=+A.secondaryGroupSize,j=A.groupSeparator||"",U=B[0],J=B[1],he=R.s<0,ye=he?U.slice(1):U,Ze=ye.length;if(N&&($=C,C=N,N=$,Ze-=$),C>0&&Ze>0){for($=Ze%C||C,U=ye.substr(0,$);$<Ze;$+=C)U+=j+ye.substr($,C);N>0&&(U+=j+ye.slice($)),he&&(U="-"+U)}M=J?U+(A.decimalSeparator||"")+((N=+A.fractionGroupSize)?J.replace(new RegExp("\\d{"+N+"}\\B","g"),"$&"+(A.fractionGroupSeparator||"")):J):U}return(A.prefix||"")+M+(A.suffix||"")},ee.toFraction=function(b){var x,A,M,R,$,B,C,N,j,U,J,he,ye=this,Ze=ye.c;if(b!=null&&(C=new se(b),!C.isInteger()&&(C.c||C.s!==1)||C.lt(Le)))throw Error(i+"Argument "+(C.isInteger()?"out of range: ":"not an integer: ")+et(C));if(!Ze)return new se(ye);for(x=new se(Le),j=A=new se(Le),M=N=new se(Le),he=E(Ze),$=x.e=he.length-ye.e-1,x.c[0]=f[(B=$%l)<0?l+B:B],b=!b||C.comparedTo(x)>0?$>0?x:j:C,B=pe,pe=1/0,C=new se(he),N.c[0]=0;U=X(C,x,0,1),R=A.plus(U.times(M)),R.comparedTo(b)!=1;)A=M,M=R,j=N.plus(U.times(R=j)),N=R,x=C.minus(U.times(R=x)),C=R;return R=X(b.minus(A),M,0,1),N=N.plus(R.times(j)),A=A.plus(R.times(M)),N.s=j.s=ye.s,$=$*2,J=X(j,M,$,K).minus(ye).abs().comparedTo(X(N,A,$,K).minus(ye).abs())<1?[j,M]:[N,A],pe=B,J},ee.toNumber=function(){return+et(this)},ee.toPrecision=function(b,x){return b!=null&&T(b,1,m),gt(this,b,x,2)},ee.toString=function(b){var x,A=this,M=A.s,R=A.e;return R===null?M?(x="Infinity",M<0&&(x="-"+x)):x="NaN":(b==null?x=R<=Z||R>=oe?L(E(A.c),R):Y(E(A.c),R,"0"):b===10&&It?(A=Je(new se(A),ue+R+1,K),x=Y(E(A.c),A.e,"0")):(T(b,2,it.length,"Base"),x=re(Y(E(A.c),R,"0"),10,b,M,!0)),M<0&&A.c[0]&&(x="-"+x)),x},ee.valueOf=ee.toJSON=function(){return et(this)},ee._isBigNumber=!0,H!=null&&se.set(H),se}a(h,"clone");function _(H){var X=H|0;return H>0||H===X?X:X-1}a(_,"bitFloor");function E(H){for(var X,re,ce=1,ee=H.length,Le=H[0]+"";ce<ee;){for(X=H[ce++]+"",re=l-X.length;re--;X="0"+X);Le+=X}for(ee=Le.length;Le.charCodeAt(--ee)===48;);return Le.slice(0,ee+1||1)}a(E,"coeffToString");function S(H,X){var re,ce,ee=H.c,Le=X.c,ue=H.s,K=X.s,Z=H.e,oe=X.e;if(!ue||!K)return null;if(re=ee&&!ee[0],ce=Le&&!Le[0],re||ce)return re?ce?0:-K:ue;if(ue!=K)return ue;if(re=ue<0,ce=Z==oe,!ee||!Le)return ce?0:!ee^re?1:-1;if(!ce)return Z>oe^re?1:-1;for(K=(Z=ee.length)<(oe=Le.length)?Z:oe,ue=0;ue<K;ue++)if(ee[ue]!=Le[ue])return ee[ue]>Le[ue]^re?1:-1;return Z==oe?0:Z>oe^re?1:-1}a(S,"compare");function T(H,X,re,ce){if(H<X||H>re||H!==n(H))throw Error(i+(ce||"Argument")+(typeof H=="number"?H<X||H>re?" out of range: ":" not an integer: ":" not a primitive number: ")+String(H))}a(T,"intCheck");function k(H){var X=H.c.length-1;return _(H.e/l)==X&&H.c[X]%2!=0}a(k,"isOdd");function L(H,X){return(H.length>1?H.charAt(0)+"."+H.slice(1):H)+(X<0?"e":"e+")+X}a(L,"toExponential");function Y(H,X,re){var ce,ee;if(X<0){for(ee=re+".";++X;ee+=re);H=ee+H}else if(ce=H.length,++X>ce){for(ee=re,X-=ce;--X;ee+=re);H+=ee}else X<ce&&(H=H.slice(0,X)+"."+H.slice(X));return H}a(Y,"toFixedPoint"),e=h(),e.default=e.BigNumber=e,typeof define=="function"&&define.amd?define(function(){return e}):typeof Jf<"u"&&Jf.exports?Jf.exports=e:(t||(t=typeof self<"u"&&self?self:window),t.BigNumber=e)})(O0)});var z0=z((Nue,$0)=>{var k0=uP(),N0=$0.exports;(function(){"use strict";function t(p){return p<10?"0"+p:p}a(t,"f");var e=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o,n,i={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},s;function u(p){return r.lastIndex=0,r.test(p)?'"'+p.replace(r,function(f){var y=i[f];return typeof y=="string"?y:"\\u"+("0000"+f.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+p+'"'}a(u,"quote");function l(p,f){var y,m,h,_,E=o,S,T=f[p],k=T!=null&&(T instanceof k0||k0.isBigNumber(T));switch(T&&typeof T=="object"&&typeof T.toJSON=="function"&&(T=T.toJSON(p)),typeof s=="function"&&(T=s.call(f,p,T)),typeof T){case"string":return k?T:u(T);case"number":return isFinite(T)?String(T):"null";case"boolean":case"null":case"bigint":return String(T);case"object":if(!T)return"null";if(o+=n,S=[],Object.prototype.toString.apply(T)==="[object Array]"){for(_=T.length,y=0;y<_;y+=1)S[y]=l(y,T)||"null";return h=S.length===0?"[]":o?`[
31
+ `}yield o}static#i;static#a;static async#s(){return this.#i||=(await Promise.resolve().then(()=>Tt(Ok()))).HttpsProxyAgent,this.#i}static async#c(){let e=typeof window<"u"&&!!window;return this.#a||=e?window.fetch:(await Promise.resolve().then(()=>(T0(),x0))).default,this.#a}static mergeHeaders(e,...r){e=e instanceof Headers?e:new Headers(e);for(let o of r)(o instanceof Headers?o:new Headers(o)).forEach((i,s)=>{s==="set-cookie"?e.append(s,i):e.set(s,i)});return e}};La.Gaxios=Kf;Ma=Kf});var bt=z(Kt=>{"use strict";var W6=Kt&&Kt.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),K6=Kt&&Kt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&W6(e,t,r)};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.instance=Kt.Gaxios=Kt.GaxiosError=void 0;Kt.request=X6;var C0=I0();Object.defineProperty(Kt,"Gaxios",{enumerable:!0,get:a(function(){return C0.Gaxios},"get")});var J6=Mb();Object.defineProperty(Kt,"GaxiosError",{enumerable:!0,get:a(function(){return J6.GaxiosError},"get")});K6(Fb(),Kt);Kt.instance=new C0.Gaxios;async function X6(t){return Kt.instance.request(t)}a(X6,"request")});var uE=z((R0,Jf)=>{(function(t){"use strict";var e,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,o=Math.ceil,n=Math.floor,i="[BigNumber Error] ",s=i+"Number primitive has more than 15 significant digits: ",u=1e14,l=14,p=9007199254740991,f=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],y=1e7,m=1e9;function h(H){var X,re,ce,ee=se.prototype={constructor:se,toString:null,valueOf:null},Le=new se(1),le=20,W=4,Z=-7,oe=21,Q=-1e7,de=1e7,me=!1,ze=1,je=0,Qe={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xA0",suffix:""},it="0123456789abcdefghijklmnopqrstuvwxyz",It=!0;function se(b,x){var A,M,R,$,B,C,N,j,U=this;if(!(U instanceof se))return new se(b,x);if(x==null){if(b&&b._isBigNumber===!0){U.s=b.s,!b.c||b.e>de?U.c=U.e=null:b.e<Q?U.c=[U.e=0]:(U.e=b.e,U.c=b.c.slice());return}if((C=typeof b=="number")&&b*0==0){if(U.s=1/b<0?(b=-b,-1):1,b===~~b){for($=0,B=b;B>=10;B/=10,$++);$>de?U.c=U.e=null:(U.e=$,U.c=[b]);return}j=String(b)}else{if(!r.test(j=String(b)))return ce(U,j,C);U.s=j.charCodeAt(0)==45?(j=j.slice(1),-1):1}($=j.indexOf("."))>-1&&(j=j.replace(".","")),(B=j.search(/e/i))>0?($<0&&($=B),$+=+j.slice(B+1),j=j.substring(0,B)):$<0&&($=j.length)}else{if(T(x,2,it.length,"Base"),x==10&&It)return U=new se(b),Je(U,le+U.e+1,W);if(j=String(b),C=typeof b=="number"){if(b*0!=0)return ce(U,j,C,x);if(U.s=1/b<0?(j=j.slice(1),-1):1,se.DEBUG&&j.replace(/^0\.0*|\./,"").length>15)throw Error(s+b)}else U.s=j.charCodeAt(0)===45?(j=j.slice(1),-1):1;for(A=it.slice(0,x),$=B=0,N=j.length;B<N;B++)if(A.indexOf(M=j.charAt(B))<0){if(M=="."){if(B>$){$=N;continue}}else if(!R&&(j==j.toUpperCase()&&(j=j.toLowerCase())||j==j.toLowerCase()&&(j=j.toUpperCase()))){R=!0,B=-1,$=0;continue}return ce(U,String(b),C,x)}C=!1,j=re(j,x,10,U.s),($=j.indexOf("."))>-1?j=j.replace(".",""):$=j.length}for(B=0;j.charCodeAt(B)===48;B++);for(N=j.length;j.charCodeAt(--N)===48;);if(j=j.slice(B,++N)){if(N-=B,C&&se.DEBUG&&N>15&&(b>p||b!==n(b)))throw Error(s+U.s*b);if(($=$-B-1)>de)U.c=U.e=null;else if($<Q)U.c=[U.e=0];else{if(U.e=$,U.c=[],B=($+1)%l,$<0&&(B+=l),B<N){for(B&&U.c.push(+j.slice(0,B)),N-=l;B<N;)U.c.push(+j.slice(B,B+=l));B=l-(j=j.slice(B)).length}else B-=N;for(;B--;j+="0");U.c.push(+j)}}else U.c=[U.e=0]}a(se,"BigNumber"),se.clone=h,se.ROUND_UP=0,se.ROUND_DOWN=1,se.ROUND_CEIL=2,se.ROUND_FLOOR=3,se.ROUND_HALF_UP=4,se.ROUND_HALF_DOWN=5,se.ROUND_HALF_EVEN=6,se.ROUND_HALF_CEIL=7,se.ROUND_HALF_FLOOR=8,se.EUCLID=9,se.config=se.set=function(b){var x,A;if(b!=null)if(typeof b=="object"){if(b.hasOwnProperty(x="DECIMAL_PLACES")&&(A=b[x],T(A,0,m,x),le=A),b.hasOwnProperty(x="ROUNDING_MODE")&&(A=b[x],T(A,0,8,x),W=A),b.hasOwnProperty(x="EXPONENTIAL_AT")&&(A=b[x],A&&A.pop?(T(A[0],-m,0,x),T(A[1],0,m,x),Z=A[0],oe=A[1]):(T(A,-m,m,x),Z=-(oe=A<0?-A:A))),b.hasOwnProperty(x="RANGE"))if(A=b[x],A&&A.pop)T(A[0],-m,-1,x),T(A[1],1,m,x),Q=A[0],de=A[1];else if(T(A,-m,m,x),A)Q=-(de=A<0?-A:A);else throw Error(i+x+" cannot be zero: "+A);if(b.hasOwnProperty(x="CRYPTO"))if(A=b[x],A===!!A)if(A)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))me=A;else throw me=!A,Error(i+"crypto unavailable");else me=A;else throw Error(i+x+" not true or false: "+A);if(b.hasOwnProperty(x="MODULO_MODE")&&(A=b[x],T(A,0,9,x),ze=A),b.hasOwnProperty(x="POW_PRECISION")&&(A=b[x],T(A,0,m,x),je=A),b.hasOwnProperty(x="FORMAT"))if(A=b[x],typeof A=="object")Qe=A;else throw Error(i+x+" not an object: "+A);if(b.hasOwnProperty(x="ALPHABET"))if(A=b[x],typeof A=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(A))It=A.slice(0,10)=="0123456789",it=A;else throw Error(i+x+" invalid: "+A)}else throw Error(i+"Object expected: "+b);return{DECIMAL_PLACES:le,ROUNDING_MODE:W,EXPONENTIAL_AT:[Z,oe],RANGE:[Q,de],CRYPTO:me,MODULO_MODE:ze,POW_PRECISION:je,FORMAT:Qe,ALPHABET:it}},se.isBigNumber=function(b){if(!b||b._isBigNumber!==!0)return!1;if(!se.DEBUG)return!0;var x,A,M=b.c,R=b.e,$=b.s;e:if({}.toString.call(M)=="[object Array]"){if(($===1||$===-1)&&R>=-m&&R<=m&&R===n(R)){if(M[0]===0){if(R===0&&M.length===1)return!0;break e}if(x=(R+1)%l,x<1&&(x+=l),String(M[0]).length==x){for(x=0;x<M.length;x++)if(A=M[x],A<0||A>=u||A!==n(A))break e;if(A!==0)return!0}}}else if(M===null&&R===null&&($===null||$===1||$===-1))return!0;throw Error(i+"Invalid BigNumber: "+b)},se.maximum=se.max=function(){return _t(arguments,-1)},se.minimum=se.min=function(){return _t(arguments,1)},se.random=(function(){var b=9007199254740992,x=Math.random()*b&2097151?function(){return n(Math.random()*b)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(A){var M,R,$,B,C,N=0,j=[],U=new se(Le);if(A==null?A=le:T(A,0,m),B=o(A/l),me)if(crypto.getRandomValues){for(M=crypto.getRandomValues(new Uint32Array(B*=2));N<B;)C=M[N]*131072+(M[N+1]>>>11),C>=9e15?(R=crypto.getRandomValues(new Uint32Array(2)),M[N]=R[0],M[N+1]=R[1]):(j.push(C%1e14),N+=2);N=B/2}else if(crypto.randomBytes){for(M=crypto.randomBytes(B*=7);N<B;)C=(M[N]&31)*281474976710656+M[N+1]*1099511627776+M[N+2]*4294967296+M[N+3]*16777216+(M[N+4]<<16)+(M[N+5]<<8)+M[N+6],C>=9e15?crypto.randomBytes(7).copy(M,N):(j.push(C%1e14),N+=7);N=B/7}else throw me=!1,Error(i+"crypto unavailable");if(!me)for(;N<B;)C=x(),C<9e15&&(j[N++]=C%1e14);for(B=j[--N],A%=l,B&&A&&(C=f[l-A],j[N]=n(B/C)*C);j[N]===0;j.pop(),N--);if(N<0)j=[$=0];else{for($=-1;j[0]===0;j.splice(0,1),$-=l);for(N=1,C=j[0];C>=10;C/=10,N++);N<l&&($-=l-N)}return U.e=$,U.c=j,U}})(),se.sum=function(){for(var b=1,x=arguments,A=new se(x[0]);b<x.length;)A=A.plus(x[b++]);return A},re=(function(){var b="0123456789";function x(A,M,R,$){for(var B,C=[0],N,j=0,U=A.length;j<U;){for(N=C.length;N--;C[N]*=M);for(C[0]+=$.indexOf(A.charAt(j++)),B=0;B<C.length;B++)C[B]>R-1&&(C[B+1]==null&&(C[B+1]=0),C[B+1]+=C[B]/R|0,C[B]%=R)}return C.reverse()}return a(x,"toBaseOut"),function(A,M,R,$,B){var C,N,j,U,J,he,ye,Ze,ut=A.indexOf("."),lt=le,Ve=W;for(ut>=0&&(U=je,je=0,A=A.replace(".",""),Ze=new se(M),he=Ze.pow(A.length-ut),je=U,Ze.c=x(Y(P(he.c),he.e,"0"),10,R,b),Ze.e=Ze.c.length),ye=x(A,M,R,B?(C=it,b):(C=b,it)),j=U=ye.length;ye[--U]==0;ye.pop());if(!ye[0])return C.charAt(0);if(ut<0?--j:(he.c=ye,he.e=j,he.s=$,he=X(he,Ze,lt,Ve,R),ye=he.c,J=he.r,j=he.e),N=j+lt+1,ut=ye[N],U=R/2,J=J||N<0||ye[N+1]!=null,J=Ve<4?(ut!=null||J)&&(Ve==0||Ve==(he.s<0?3:2)):ut>U||ut==U&&(Ve==4||J||Ve==6&&ye[N-1]&1||Ve==(he.s<0?8:7)),N<1||!ye[0])A=J?Y(C.charAt(1),-lt,C.charAt(0)):C.charAt(0);else{if(ye.length=N,J)for(--R;++ye[--N]>R;)ye[N]=0,N||(++j,ye=[1].concat(ye));for(U=ye.length;!ye[--U];);for(ut=0,A="";ut<=U;A+=C.charAt(ye[ut++]));A=Y(A,j,C.charAt(0))}return A}})(),X=(function(){function b(M,R,$){var B,C,N,j,U=0,J=M.length,he=R%y,ye=R/y|0;for(M=M.slice();J--;)N=M[J]%y,j=M[J]/y|0,B=ye*N+j*he,C=he*N+B%y*y+U,U=(C/$|0)+(B/y|0)+ye*j,M[J]=C%$;return U&&(M=[U].concat(M)),M}a(b,"multiply");function x(M,R,$,B){var C,N;if($!=B)N=$>B?1:-1;else for(C=N=0;C<$;C++)if(M[C]!=R[C]){N=M[C]>R[C]?1:-1;break}return N}a(x,"compare");function A(M,R,$,B){for(var C=0;$--;)M[$]-=C,C=M[$]<R[$]?1:0,M[$]=C*B+M[$]-R[$];for(;!M[0]&&M.length>1;M.splice(0,1));}return a(A,"subtract"),function(M,R,$,B,C){var N,j,U,J,he,ye,Ze,ut,lt,Ve,Ke,St,Ri,Oi,ki,cr,An,Lt=M.s==R.s?1:-1,xt=M.c,tt=R.c;if(!xt||!xt[0]||!tt||!tt[0])return new se(!M.s||!R.s||(xt?tt&&xt[0]==tt[0]:!tt)?NaN:xt&&xt[0]==0||!tt?Lt*0:Lt/0);for(ut=new se(Lt),lt=ut.c=[],j=M.e-R.e,Lt=$+j+1,C||(C=u,j=_(M.e/l)-_(R.e/l),Lt=Lt/l|0),U=0;tt[U]==(xt[U]||0);U++);if(tt[U]>(xt[U]||0)&&j--,Lt<0)lt.push(1),J=!0;else{for(Oi=xt.length,cr=tt.length,U=0,Lt+=2,he=n(C/(tt[0]+1)),he>1&&(tt=b(tt,he,C),xt=b(xt,he,C),cr=tt.length,Oi=xt.length),Ri=cr,Ve=xt.slice(0,cr),Ke=Ve.length;Ke<cr;Ve[Ke++]=0);An=tt.slice(),An=[0].concat(An),ki=tt[0],tt[1]>=C/2&&ki++;do{if(he=0,N=x(tt,Ve,cr,Ke),N<0){if(St=Ve[0],cr!=Ke&&(St=St*C+(Ve[1]||0)),he=n(St/ki),he>1)for(he>=C&&(he=C-1),ye=b(tt,he,C),Ze=ye.length,Ke=Ve.length;x(ye,Ve,Ze,Ke)==1;)he--,A(ye,cr<Ze?An:tt,Ze,C),Ze=ye.length,N=1;else he==0&&(N=he=1),ye=tt.slice(),Ze=ye.length;if(Ze<Ke&&(ye=[0].concat(ye)),A(Ve,ye,Ke,C),Ke=Ve.length,N==-1)for(;x(tt,Ve,cr,Ke)<1;)he++,A(Ve,cr<Ke?An:tt,Ke,C),Ke=Ve.length}else N===0&&(he++,Ve=[0]);lt[U++]=he,Ve[0]?Ve[Ke++]=xt[Ri]||0:(Ve=[xt[Ri]],Ke=1)}while((Ri++<Oi||Ve[0]!=null)&&Lt--);J=Ve[0]!=null,lt[0]||lt.splice(0,1)}if(C==u){for(U=1,Lt=lt[0];Lt>=10;Lt/=10,U++);Je(ut,$+(ut.e=U+j*l-1)+1,B,J)}else ut.e=j,ut.r=+J;return ut}})();function gt(b,x,A,M){var R,$,B,C,N;if(A==null?A=W:T(A,0,8),!b.c)return b.toString();if(R=b.c[0],B=b.e,x==null)N=P(b.c),N=M==1||M==2&&(B<=Z||B>=oe)?L(N,B):Y(N,B,"0");else if(b=Je(new se(b),x,A),$=b.e,N=P(b.c),C=N.length,M==1||M==2&&(x<=$||$<=Z)){for(;C<x;N+="0",C++);N=L(N,$)}else if(x-=B+(M===2&&$>B),N=Y(N,$,"0"),$+1>C){if(--x>0)for(N+=".";x--;N+="0");}else if(x+=$-C,x>0)for($+1==C&&(N+=".");x--;N+="0");return b.s<0&&R?"-"+N:N}a(gt,"format");function _t(b,x){for(var A,M,R=1,$=new se(b[0]);R<b.length;R++)M=new se(b[R]),(!M.s||(A=S($,M))===x||A===0&&$.s===x)&&($=M);return $}a(_t,"maxOrMin");function sr(b,x,A){for(var M=1,R=x.length;!x[--R];x.pop());for(R=x[0];R>=10;R/=10,M++);return(A=M+A*l-1)>de?b.c=b.e=null:A<Q?b.c=[b.e=0]:(b.e=A,b.c=x),b}a(sr,"normalise"),ce=(function(){var b=/^(-?)0([xbo])(?=\w[\w.]*$)/i,x=/^([^.]+)\.$/,A=/^\.([^.]+)$/,M=/^-?(Infinity|NaN)$/,R=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function($,B,C,N){var j,U=C?B:B.replace(R,"");if(M.test(U))$.s=isNaN(U)?null:U<0?-1:1;else{if(!C&&(U=U.replace(b,function(J,he,ye){return j=(ye=ye.toLowerCase())=="x"?16:ye=="b"?2:8,!N||N==j?he:J}),N&&(j=N,U=U.replace(x,"$1").replace(A,"0.$1")),B!=U))return new se(U,j);if(se.DEBUG)throw Error(i+"Not a"+(N?" base "+N:"")+" number: "+B);$.s=null}$.c=$.e=null}})();function Je(b,x,A,M){var R,$,B,C,N,j,U,J=b.c,he=f;if(J){e:{for(R=1,C=J[0];C>=10;C/=10,R++);if($=x-R,$<0)$+=l,B=x,N=J[j=0],U=n(N/he[R-B-1]%10);else if(j=o(($+1)/l),j>=J.length)if(M){for(;J.length<=j;J.push(0));N=U=0,R=1,$%=l,B=$-l+1}else break e;else{for(N=C=J[j],R=1;C>=10;C/=10,R++);$%=l,B=$-l+R,U=B<0?0:n(N/he[R-B-1]%10)}if(M=M||x<0||J[j+1]!=null||(B<0?N:N%he[R-B-1]),M=A<4?(U||M)&&(A==0||A==(b.s<0?3:2)):U>5||U==5&&(A==4||M||A==6&&($>0?B>0?N/he[R-B]:0:J[j-1])%10&1||A==(b.s<0?8:7)),x<1||!J[0])return J.length=0,M?(x-=b.e+1,J[0]=he[(l-x%l)%l],b.e=-x||0):J[0]=b.e=0,b;if($==0?(J.length=j,C=1,j--):(J.length=j+1,C=he[l-$],J[j]=B>0?n(N/he[R-B]%he[B])*C:0),M)for(;;)if(j==0){for($=1,B=J[0];B>=10;B/=10,$++);for(B=J[0]+=C,C=1;B>=10;B/=10,C++);$!=C&&(b.e++,J[0]==u&&(J[0]=1));break}else{if(J[j]+=C,J[j]!=u)break;J[j--]=0,C=1}for($=J.length;J[--$]===0;J.pop());}b.e>de?b.c=b.e=null:b.e<Q&&(b.c=[b.e=0])}return b}a(Je,"round");function et(b){var x,A=b.e;return A===null?b.toString():(x=P(b.c),x=A<=Z||A>=oe?L(x,A):Y(x,A,"0"),b.s<0?"-"+x:x)}return a(et,"valueOf"),ee.absoluteValue=ee.abs=function(){var b=new se(this);return b.s<0&&(b.s=1),b},ee.comparedTo=function(b,x){return S(this,new se(b,x))},ee.decimalPlaces=ee.dp=function(b,x){var A,M,R,$=this;if(b!=null)return T(b,0,m),x==null?x=W:T(x,0,8),Je(new se($),b+$.e+1,x);if(!(A=$.c))return null;if(M=((R=A.length-1)-_(this.e/l))*l,R=A[R])for(;R%10==0;R/=10,M--);return M<0&&(M=0),M},ee.dividedBy=ee.div=function(b,x){return X(this,new se(b,x),le,W)},ee.dividedToIntegerBy=ee.idiv=function(b,x){return X(this,new se(b,x),0,1)},ee.exponentiatedBy=ee.pow=function(b,x){var A,M,R,$,B,C,N,j,U,J=this;if(b=new se(b),b.c&&!b.isInteger())throw Error(i+"Exponent not an integer: "+et(b));if(x!=null&&(x=new se(x)),C=b.e>14,!J.c||!J.c[0]||J.c[0]==1&&!J.e&&J.c.length==1||!b.c||!b.c[0])return U=new se(Math.pow(+et(J),C?b.s*(2-k(b)):+et(b))),x?U.mod(x):U;if(N=b.s<0,x){if(x.c?!x.c[0]:!x.s)return new se(NaN);M=!N&&J.isInteger()&&x.isInteger(),M&&(J=J.mod(x))}else{if(b.e>9&&(J.e>0||J.e<-1||(J.e==0?J.c[0]>1||C&&J.c[1]>=24e7:J.c[0]<8e13||C&&J.c[0]<=9999975e7)))return $=J.s<0&&k(b)?-0:0,J.e>-1&&($=1/$),new se(N?1/$:$);je&&($=o(je/l+2))}for(C?(A=new se(.5),N&&(b.s=1),j=k(b)):(R=Math.abs(+et(b)),j=R%2),U=new se(Le);;){if(j){if(U=U.times(J),!U.c)break;$?U.c.length>$&&(U.c.length=$):M&&(U=U.mod(x))}if(R){if(R=n(R/2),R===0)break;j=R%2}else if(b=b.times(A),Je(b,b.e+1,1),b.e>14)j=k(b);else{if(R=+et(b),R===0)break;j=R%2}J=J.times(J),$?J.c&&J.c.length>$&&(J.c.length=$):M&&(J=J.mod(x))}return M?U:(N&&(U=Le.div(U)),x?U.mod(x):$?Je(U,je,W,B):U)},ee.integerValue=function(b){var x=new se(this);return b==null?b=W:T(b,0,8),Je(x,x.e+1,b)},ee.isEqualTo=ee.eq=function(b,x){return S(this,new se(b,x))===0},ee.isFinite=function(){return!!this.c},ee.isGreaterThan=ee.gt=function(b,x){return S(this,new se(b,x))>0},ee.isGreaterThanOrEqualTo=ee.gte=function(b,x){return(x=S(this,new se(b,x)))===1||x===0},ee.isInteger=function(){return!!this.c&&_(this.e/l)>this.c.length-2},ee.isLessThan=ee.lt=function(b,x){return S(this,new se(b,x))<0},ee.isLessThanOrEqualTo=ee.lte=function(b,x){return(x=S(this,new se(b,x)))===-1||x===0},ee.isNaN=function(){return!this.s},ee.isNegative=function(){return this.s<0},ee.isPositive=function(){return this.s>0},ee.isZero=function(){return!!this.c&&this.c[0]==0},ee.minus=function(b,x){var A,M,R,$,B=this,C=B.s;if(b=new se(b,x),x=b.s,!C||!x)return new se(NaN);if(C!=x)return b.s=-x,B.plus(b);var N=B.e/l,j=b.e/l,U=B.c,J=b.c;if(!N||!j){if(!U||!J)return U?(b.s=-x,b):new se(J?B:NaN);if(!U[0]||!J[0])return J[0]?(b.s=-x,b):new se(U[0]?B:W==3?-0:0)}if(N=_(N),j=_(j),U=U.slice(),C=N-j){for(($=C<0)?(C=-C,R=U):(j=N,R=J),R.reverse(),x=C;x--;R.push(0));R.reverse()}else for(M=($=(C=U.length)<(x=J.length))?C:x,C=x=0;x<M;x++)if(U[x]!=J[x]){$=U[x]<J[x];break}if($&&(R=U,U=J,J=R,b.s=-b.s),x=(M=J.length)-(A=U.length),x>0)for(;x--;U[A++]=0);for(x=u-1;M>C;){if(U[--M]<J[M]){for(A=M;A&&!U[--A];U[A]=x);--U[A],U[M]+=u}U[M]-=J[M]}for(;U[0]==0;U.splice(0,1),--j);return U[0]?sr(b,U,j):(b.s=W==3?-1:1,b.c=[b.e=0],b)},ee.modulo=ee.mod=function(b,x){var A,M,R=this;return b=new se(b,x),!R.c||!b.s||b.c&&!b.c[0]?new se(NaN):!b.c||R.c&&!R.c[0]?new se(R):(ze==9?(M=b.s,b.s=1,A=X(R,b,0,3),b.s=M,A.s*=M):A=X(R,b,0,ze),b=R.minus(A.times(b)),!b.c[0]&&ze==1&&(b.s=R.s),b)},ee.multipliedBy=ee.times=function(b,x){var A,M,R,$,B,C,N,j,U,J,he,ye,Ze,ut,lt,Ve=this,Ke=Ve.c,St=(b=new se(b,x)).c;if(!Ke||!St||!Ke[0]||!St[0])return!Ve.s||!b.s||Ke&&!Ke[0]&&!St||St&&!St[0]&&!Ke?b.c=b.e=b.s=null:(b.s*=Ve.s,!Ke||!St?b.c=b.e=null:(b.c=[0],b.e=0)),b;for(M=_(Ve.e/l)+_(b.e/l),b.s*=Ve.s,N=Ke.length,J=St.length,N<J&&(Ze=Ke,Ke=St,St=Ze,R=N,N=J,J=R),R=N+J,Ze=[];R--;Ze.push(0));for(ut=u,lt=y,R=J;--R>=0;){for(A=0,he=St[R]%lt,ye=St[R]/lt|0,B=N,$=R+B;$>R;)j=Ke[--B]%lt,U=Ke[B]/lt|0,C=ye*j+U*he,j=he*j+C%lt*lt+Ze[$]+A,A=(j/ut|0)+(C/lt|0)+ye*U,Ze[$--]=j%ut;Ze[$]=A}return A?++M:Ze.splice(0,1),sr(b,Ze,M)},ee.negated=function(){var b=new se(this);return b.s=-b.s||null,b},ee.plus=function(b,x){var A,M=this,R=M.s;if(b=new se(b,x),x=b.s,!R||!x)return new se(NaN);if(R!=x)return b.s=-x,M.minus(b);var $=M.e/l,B=b.e/l,C=M.c,N=b.c;if(!$||!B){if(!C||!N)return new se(R/0);if(!C[0]||!N[0])return N[0]?b:new se(C[0]?M:R*0)}if($=_($),B=_(B),C=C.slice(),R=$-B){for(R>0?(B=$,A=N):(R=-R,A=C),A.reverse();R--;A.push(0));A.reverse()}for(R=C.length,x=N.length,R-x<0&&(A=N,N=C,C=A,x=R),R=0;x;)R=(C[--x]=C[x]+N[x]+R)/u|0,C[x]=u===C[x]?0:C[x]%u;return R&&(C=[R].concat(C),++B),sr(b,C,B)},ee.precision=ee.sd=function(b,x){var A,M,R,$=this;if(b!=null&&b!==!!b)return T(b,1,m),x==null?x=W:T(x,0,8),Je(new se($),b,x);if(!(A=$.c))return null;if(R=A.length-1,M=R*l+1,R=A[R]){for(;R%10==0;R/=10,M--);for(R=A[0];R>=10;R/=10,M++);}return b&&$.e+1>M&&(M=$.e+1),M},ee.shiftedBy=function(b){return T(b,-p,p),this.times("1e"+b)},ee.squareRoot=ee.sqrt=function(){var b,x,A,M,R,$=this,B=$.c,C=$.s,N=$.e,j=le+4,U=new se("0.5");if(C!==1||!B||!B[0])return new se(!C||C<0&&(!B||B[0])?NaN:B?$:1/0);if(C=Math.sqrt(+et($)),C==0||C==1/0?(x=P(B),(x.length+N)%2==0&&(x+="0"),C=Math.sqrt(+x),N=_((N+1)/2)-(N<0||N%2),C==1/0?x="5e"+N:(x=C.toExponential(),x=x.slice(0,x.indexOf("e")+1)+N),A=new se(x)):A=new se(C+""),A.c[0]){for(N=A.e,C=N+j,C<3&&(C=0);;)if(R=A,A=U.times(R.plus(X($,R,j,1))),P(R.c).slice(0,C)===(x=P(A.c)).slice(0,C))if(A.e<N&&--C,x=x.slice(C-3,C+1),x=="9999"||!M&&x=="4999"){if(!M&&(Je(R,R.e+le+2,0),R.times(R).eq($))){A=R;break}j+=4,C+=4,M=1}else{(!+x||!+x.slice(1)&&x.charAt(0)=="5")&&(Je(A,A.e+le+2,1),b=!A.times(A).eq($));break}}return Je(A,A.e+le+1,W,b)},ee.toExponential=function(b,x){return b!=null&&(T(b,0,m),b++),gt(this,b,x,1)},ee.toFixed=function(b,x){return b!=null&&(T(b,0,m),b=b+this.e+1),gt(this,b,x)},ee.toFormat=function(b,x,A){var M,R=this;if(A==null)b!=null&&x&&typeof x=="object"?(A=x,x=null):b&&typeof b=="object"?(A=b,b=x=null):A=Qe;else if(typeof A!="object")throw Error(i+"Argument not an object: "+A);if(M=R.toFixed(b,x),R.c){var $,B=M.split("."),C=+A.groupSize,N=+A.secondaryGroupSize,j=A.groupSeparator||"",U=B[0],J=B[1],he=R.s<0,ye=he?U.slice(1):U,Ze=ye.length;if(N&&($=C,C=N,N=$,Ze-=$),C>0&&Ze>0){for($=Ze%C||C,U=ye.substr(0,$);$<Ze;$+=C)U+=j+ye.substr($,C);N>0&&(U+=j+ye.slice($)),he&&(U="-"+U)}M=J?U+(A.decimalSeparator||"")+((N=+A.fractionGroupSize)?J.replace(new RegExp("\\d{"+N+"}\\B","g"),"$&"+(A.fractionGroupSeparator||"")):J):U}return(A.prefix||"")+M+(A.suffix||"")},ee.toFraction=function(b){var x,A,M,R,$,B,C,N,j,U,J,he,ye=this,Ze=ye.c;if(b!=null&&(C=new se(b),!C.isInteger()&&(C.c||C.s!==1)||C.lt(Le)))throw Error(i+"Argument "+(C.isInteger()?"out of range: ":"not an integer: ")+et(C));if(!Ze)return new se(ye);for(x=new se(Le),j=A=new se(Le),M=N=new se(Le),he=P(Ze),$=x.e=he.length-ye.e-1,x.c[0]=f[(B=$%l)<0?l+B:B],b=!b||C.comparedTo(x)>0?$>0?x:j:C,B=de,de=1/0,C=new se(he),N.c[0]=0;U=X(C,x,0,1),R=A.plus(U.times(M)),R.comparedTo(b)!=1;)A=M,M=R,j=N.plus(U.times(R=j)),N=R,x=C.minus(U.times(R=x)),C=R;return R=X(b.minus(A),M,0,1),N=N.plus(R.times(j)),A=A.plus(R.times(M)),N.s=j.s=ye.s,$=$*2,J=X(j,M,$,W).minus(ye).abs().comparedTo(X(N,A,$,W).minus(ye).abs())<1?[j,M]:[N,A],de=B,J},ee.toNumber=function(){return+et(this)},ee.toPrecision=function(b,x){return b!=null&&T(b,1,m),gt(this,b,x,2)},ee.toString=function(b){var x,A=this,M=A.s,R=A.e;return R===null?M?(x="Infinity",M<0&&(x="-"+x)):x="NaN":(b==null?x=R<=Z||R>=oe?L(P(A.c),R):Y(P(A.c),R,"0"):b===10&&It?(A=Je(new se(A),le+R+1,W),x=Y(P(A.c),A.e,"0")):(T(b,2,it.length,"Base"),x=re(Y(P(A.c),R,"0"),10,b,M,!0)),M<0&&A.c[0]&&(x="-"+x)),x},ee.valueOf=ee.toJSON=function(){return et(this)},ee._isBigNumber=!0,H!=null&&se.set(H),se}a(h,"clone");function _(H){var X=H|0;return H>0||H===X?X:X-1}a(_,"bitFloor");function P(H){for(var X,re,ce=1,ee=H.length,Le=H[0]+"";ce<ee;){for(X=H[ce++]+"",re=l-X.length;re--;X="0"+X);Le+=X}for(ee=Le.length;Le.charCodeAt(--ee)===48;);return Le.slice(0,ee+1||1)}a(P,"coeffToString");function S(H,X){var re,ce,ee=H.c,Le=X.c,le=H.s,W=X.s,Z=H.e,oe=X.e;if(!le||!W)return null;if(re=ee&&!ee[0],ce=Le&&!Le[0],re||ce)return re?ce?0:-W:le;if(le!=W)return le;if(re=le<0,ce=Z==oe,!ee||!Le)return ce?0:!ee^re?1:-1;if(!ce)return Z>oe^re?1:-1;for(W=(Z=ee.length)<(oe=Le.length)?Z:oe,le=0;le<W;le++)if(ee[le]!=Le[le])return ee[le]>Le[le]^re?1:-1;return Z==oe?0:Z>oe^re?1:-1}a(S,"compare");function T(H,X,re,ce){if(H<X||H>re||H!==n(H))throw Error(i+(ce||"Argument")+(typeof H=="number"?H<X||H>re?" out of range: ":" not an integer: ":" not a primitive number: ")+String(H))}a(T,"intCheck");function k(H){var X=H.c.length-1;return _(H.e/l)==X&&H.c[X]%2!=0}a(k,"isOdd");function L(H,X){return(H.length>1?H.charAt(0)+"."+H.slice(1):H)+(X<0?"e":"e+")+X}a(L,"toExponential");function Y(H,X,re){var ce,ee;if(X<0){for(ee=re+".";++X;ee+=re);H=ee+H}else if(ce=H.length,++X>ce){for(ee=re,X-=ce;--X;ee+=re);H+=ee}else X<ce&&(H=H.slice(0,X)+"."+H.slice(X));return H}a(Y,"toFixedPoint"),e=h(),e.default=e.BigNumber=e,typeof define=="function"&&define.amd?define(function(){return e}):typeof Jf<"u"&&Jf.exports?Jf.exports=e:(t||(t=typeof self<"u"&&self?self:window),t.BigNumber=e)})(R0)});var $0=z((kue,N0)=>{var O0=uE(),k0=N0.exports;(function(){"use strict";function t(p){return p<10?"0"+p:p}a(t,"f");var e=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o,n,i={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},s;function u(p){return r.lastIndex=0,r.test(p)?'"'+p.replace(r,function(f){var y=i[f];return typeof y=="string"?y:"\\u"+("0000"+f.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+p+'"'}a(u,"quote");function l(p,f){var y,m,h,_,P=o,S,T=f[p],k=T!=null&&(T instanceof O0||O0.isBigNumber(T));switch(T&&typeof T=="object"&&typeof T.toJSON=="function"&&(T=T.toJSON(p)),typeof s=="function"&&(T=s.call(f,p,T)),typeof T){case"string":return k?T:u(T);case"number":return isFinite(T)?String(T):"null";case"boolean":case"null":case"bigint":return String(T);case"object":if(!T)return"null";if(o+=n,S=[],Object.prototype.toString.apply(T)==="[object Array]"){for(_=T.length,y=0;y<_;y+=1)S[y]=l(y,T)||"null";return h=S.length===0?"[]":o?`[
32
32
  `+o+S.join(`,
33
33
  `+o)+`
34
- `+E+"]":"["+S.join(",")+"]",o=E,h}if(s&&typeof s=="object")for(_=s.length,y=0;y<_;y+=1)typeof s[y]=="string"&&(m=s[y],h=l(m,T),h&&S.push(u(m)+(o?": ":":")+h));else Object.keys(T).forEach(function(L){var Y=l(L,T);Y&&S.push(u(L)+(o?": ":":")+Y)});return h=S.length===0?"{}":o?`{
34
+ `+P+"]":"["+S.join(",")+"]",o=P,h}if(s&&typeof s=="object")for(_=s.length,y=0;y<_;y+=1)typeof s[y]=="string"&&(m=s[y],h=l(m,T),h&&S.push(u(m)+(o?": ":":")+h));else Object.keys(T).forEach(function(L){var Y=l(L,T);Y&&S.push(u(L)+(o?": ":":")+Y)});return h=S.length===0?"{}":o?`{
35
35
  `+o+S.join(`,
36
36
  `+o)+`
37
- `+E+"}":"{"+S.join(",")+"}",o=E,h}}a(l,"str"),typeof N0.stringify!="function"&&(N0.stringify=function(p,f,y){var m;if(o="",n="",typeof y=="number")for(m=0;m<y;m+=1)n+=" ";else typeof y=="string"&&(n=y);if(s=f,f&&typeof f!="function"&&(typeof f!="object"||typeof f.length!="number"))throw new Error("JSON.stringify");return l("",{"":p})})})()});var U0=z((zue,D0)=>{var Xf=null,Q6=/(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/,eG=/(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/,tG=a(function(t){"use strict";var e={strict:!1,storeAsString:!1,alwaysParseAsBig:!1,useNativeBigInt:!1,protoAction:"error",constructorAction:"error"};if(t!=null){if(t.strict===!0&&(e.strict=!0),t.storeAsString===!0&&(e.storeAsString=!0),e.alwaysParseAsBig=t.alwaysParseAsBig===!0?t.alwaysParseAsBig:!1,e.useNativeBigInt=t.useNativeBigInt===!0?t.useNativeBigInt:!1,typeof t.constructorAction<"u")if(t.constructorAction==="error"||t.constructorAction==="ignore"||t.constructorAction==="preserve")e.constructorAction=t.constructorAction;else throw new Error(`Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${t.constructorAction}`);if(typeof t.protoAction<"u")if(t.protoAction==="error"||t.protoAction==="ignore"||t.protoAction==="preserve")e.protoAction=t.protoAction;else throw new Error(`Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${t.protoAction}`)}var r,o,n={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
38
- `,r:"\r",t:" "},i,s=a(function(E){throw{name:"SyntaxError",message:E,at:r,text:i}},"error"),u=a(function(E){return E&&E!==o&&s("Expected '"+E+"' instead of '"+o+"'"),o=i.charAt(r),r+=1,o},"next"),l=a(function(){var E,S="";for(o==="-"&&(S="-",u("-"));o>="0"&&o<="9";)S+=o,u();if(o===".")for(S+=".";u()&&o>="0"&&o<="9";)S+=o;if(o==="e"||o==="E")for(S+=o,u(),(o==="-"||o==="+")&&(S+=o,u());o>="0"&&o<="9";)S+=o,u();if(E=+S,!isFinite(E))s("Bad number");else return Xf==null&&(Xf=uP()),S.length>15?e.storeAsString?S:e.useNativeBigInt?BigInt(S):new Xf(S):e.alwaysParseAsBig?e.useNativeBigInt?BigInt(E):new Xf(E):E},"number"),p=a(function(){var E,S,T="",k;if(o==='"')for(var L=r;u();){if(o==='"')return r-1>L&&(T+=i.substring(L,r-1)),u(),T;if(o==="\\"){if(r-1>L&&(T+=i.substring(L,r-1)),u(),o==="u"){for(k=0,S=0;S<4&&(E=parseInt(u(),16),!!isFinite(E));S+=1)k=k*16+E;T+=String.fromCharCode(k)}else if(typeof n[o]=="string")T+=n[o];else break;L=r}}s("Bad string")},"string"),f=a(function(){for(;o&&o<=" ";)u()},"white"),y=a(function(){switch(o){case"t":return u("t"),u("r"),u("u"),u("e"),!0;case"f":return u("f"),u("a"),u("l"),u("s"),u("e"),!1;case"n":return u("n"),u("u"),u("l"),u("l"),null}s("Unexpected '"+o+"'")},"word"),m,h=a(function(){var E=[];if(o==="["){if(u("["),f(),o==="]")return u("]"),E;for(;o;){if(E.push(m()),f(),o==="]")return u("]"),E;u(","),f()}}s("Bad array")},"array"),_=a(function(){var E,S=Object.create(null);if(o==="{"){if(u("{"),f(),o==="}")return u("}"),S;for(;o;){if(E=p(),f(),u(":"),e.strict===!0&&Object.hasOwnProperty.call(S,E)&&s('Duplicate key "'+E+'"'),Q6.test(E)===!0?e.protoAction==="error"?s("Object contains forbidden prototype property"):e.protoAction==="ignore"?m():S[E]=m():eG.test(E)===!0?e.constructorAction==="error"?s("Object contains forbidden constructor property"):e.constructorAction==="ignore"?m():S[E]=m():S[E]=m(),f(),o==="}")return u("}"),S;u(","),f()}}s("Bad object")},"object");return m=a(function(){switch(f(),o){case"{":return _();case"[":return h();case'"':return p();case"-":return l();default:return o>="0"&&o<="9"?l():y()}},"value"),function(E,S){var T;return i=E+"",r=0,o=" ",T=m(),f(),o&&s("Syntax error"),typeof S=="function"?a((function k(L,Y){var H,X,re=L[Y];return re&&typeof re=="object"&&Object.keys(re).forEach(function(ce){X=k(re,ce),X!==void 0?re[ce]=X:delete re[ce]}),S.call(L,Y,re)}),"walk")({"":T},""):T}},"json_parse");D0.exports=tG});var j0=z((Uue,Yf)=>{var M0=z0().stringify,L0=U0();Yf.exports=function(t){return{parse:L0(t),stringify:M0}};Yf.exports.parse=L0();Yf.exports.stringify=M0});var lP=z(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.GCE_LINUX_BIOS_PATHS=void 0;Qr.isGoogleCloudServerless=q0;Qr.isGoogleComputeEngineLinux=G0;Qr.isGoogleComputeEngineMACAddress=V0;Qr.isGoogleComputeEngine=H0;Qr.detectGCPResidency=nG;var F0=require("fs"),B0=require("os");Qr.GCE_LINUX_BIOS_PATHS={BIOS_DATE:"/sys/class/dmi/id/bios_date",BIOS_VENDOR:"/sys/class/dmi/id/bios_vendor"};var rG=/^42:01/;function q0(){return!!(process.env.CLOUD_RUN_JOB||process.env.FUNCTION_NAME||process.env.K_SERVICE)}a(q0,"isGoogleCloudServerless");function G0(){if((0,B0.platform)()!=="linux")return!1;try{(0,F0.statSync)(Qr.GCE_LINUX_BIOS_PATHS.BIOS_DATE);let t=(0,F0.readFileSync)(Qr.GCE_LINUX_BIOS_PATHS.BIOS_VENDOR,"utf8");return/Google/.test(t)}catch{return!1}}a(G0,"isGoogleComputeEngineLinux");function V0(){let t=(0,B0.networkInterfaces)();for(let e of Object.values(t))if(e){for(let{mac:r}of e)if(rG.test(r))return!0}return!1}a(V0,"isGoogleComputeEngineMACAddress");function H0(){return G0()||V0()}a(H0,"isGoogleComputeEngine");function nG(){return q0()||H0()}a(nG,"detectGCPResidency")});var Z0=z(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});Qf.Colours=void 0;var qt=class t{static{a(this,"Colours")}static isEnabled(e){return e&&e.isTTY&&(typeof e.getColorDepth=="function"?e.getColorDepth()>2:!0)}static refresh(){t.enabled=t.isEnabled(process==null?void 0:process.stderr),this.enabled?(t.reset="\x1B[0m",t.bright="\x1B[1m",t.dim="\x1B[2m",t.red="\x1B[31m",t.green="\x1B[32m",t.yellow="\x1B[33m",t.blue="\x1B[34m",t.magenta="\x1B[35m",t.cyan="\x1B[36m",t.white="\x1B[37m",t.grey="\x1B[90m"):(t.reset="",t.bright="",t.dim="",t.red="",t.green="",t.yellow="",t.blue="",t.magenta="",t.cyan="",t.white="",t.grey="")}};Qf.Colours=qt;qt.enabled=!1;qt.reset="";qt.bright="";qt.dim="";qt.red="";qt.green="";qt.yellow="";qt.blue="";qt.magenta="";qt.cyan="";qt.white="";qt.grey="";qt.refresh()});var X0=z(ot=>{"use strict";var oG=ot&&ot.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),iG=ot&&ot.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),W0=ot&&ot.__importStar||(function(){var t=a(function(e){return t=Object.getOwnPropertyNames||function(r){var o=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(o[o.length]=n);return o},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var o=t(e),n=0;n<o.length;n++)o[n]!=="default"&&oG(r,e,o[n]);return iG(r,e),r}})();Object.defineProperty(ot,"__esModule",{value:!0});ot.env=ot.DebugLogBackendBase=ot.placeholder=ot.AdhocDebugLogger=ot.LogSeverity=void 0;ot.getNodeBackend=pP;ot.getDebugBackend=sG;ot.getStructuredBackend=cG;ot.setBackend=uG;ot.log=J0;var aG=require("events"),zu=W0(require("process")),K0=W0(require("util")),vr=Z0(),en;(function(t){t.DEFAULT="DEFAULT",t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR"})(en||(ot.LogSeverity=en={}));var Du=class extends aG.EventEmitter{static{a(this,"AdhocDebugLogger")}constructor(e,r){super(),this.namespace=e,this.upstream=r,this.func=Object.assign(this.invoke.bind(this),{instance:this,on:a((o,n)=>this.on(o,n),"on")}),this.func.debug=(...o)=>this.invokeSeverity(en.DEBUG,...o),this.func.info=(...o)=>this.invokeSeverity(en.INFO,...o),this.func.warn=(...o)=>this.invokeSeverity(en.WARNING,...o),this.func.error=(...o)=>this.invokeSeverity(en.ERROR,...o),this.func.sublog=o=>J0(o,this.func)}invoke(e,...r){if(this.upstream)try{this.upstream(e,...r)}catch{}try{this.emit("log",e,r)}catch{}}invokeSeverity(e,...r){this.invoke({severity:e},...r)}};ot.AdhocDebugLogger=Du;ot.placeholder=new Du("",()=>{}).func;var ja=class{static{a(this,"DebugLogBackendBase")}constructor(){var e;this.cached=new Map,this.filters=[],this.filtersSet=!1;let r=(e=zu.env[ot.env.nodeEnables])!==null&&e!==void 0?e:"*";r==="all"&&(r="*"),this.filters=r.split(",")}log(e,r,...o){try{this.filtersSet||(this.setFilters(),this.filtersSet=!0);let n=this.cached.get(e);n||(n=this.makeLogger(e),this.cached.set(e,n)),n(r,...o)}catch(n){console.error(n)}}};ot.DebugLogBackendBase=ja;var dP=class extends ja{static{a(this,"NodeBackend")}constructor(){super(...arguments),this.enabledRegexp=/.*/g}isEnabled(e){return this.enabledRegexp.test(e)}makeLogger(e){return this.enabledRegexp.test(e)?(r,...o)=>{var n;let i=`${vr.Colours.green}${e}${vr.Colours.reset}`,s=`${vr.Colours.yellow}${zu.pid}${vr.Colours.reset}`,u;switch(r.severity){case en.ERROR:u=`${vr.Colours.red}${r.severity}${vr.Colours.reset}`;break;case en.INFO:u=`${vr.Colours.magenta}${r.severity}${vr.Colours.reset}`;break;case en.WARNING:u=`${vr.Colours.yellow}${r.severity}${vr.Colours.reset}`;break;default:u=(n=r.severity)!==null&&n!==void 0?n:en.DEFAULT;break}let l=K0.formatWithOptions({colors:vr.Colours.enabled},...o),p=Object.assign({},r);delete p.severity;let f=Object.getOwnPropertyNames(p).length?JSON.stringify(p):"",y=f?`${vr.Colours.grey}${f}${vr.Colours.reset}`:"";console.error("%s [%s|%s] %s%s",s,i,u,l,f?` ${y}`:"")}:()=>{}}setFilters(){let r=this.filters.join(",").replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^");this.enabledRegexp=new RegExp(`^${r}$`,"i")}};function pP(){return new dP}a(pP,"getNodeBackend");var fP=class extends ja{static{a(this,"DebugBackend")}constructor(e){super(),this.debugPkg=e}makeLogger(e){let r=this.debugPkg(e);return(o,...n)=>{r(n[0],...n.slice(1))}}setFilters(){var e;let r=(e=zu.env.NODE_DEBUG)!==null&&e!==void 0?e:"";zu.env.NODE_DEBUG=`${r}${r?",":""}${this.filters.join(",")}`}};function sG(t){return new fP(t)}a(sG,"getDebugBackend");var mP=class extends ja{static{a(this,"StructuredBackend")}constructor(e){var r;super(),this.upstream=(r=e)!==null&&r!==void 0?r:void 0}makeLogger(e){var r;let o=(r=this.upstream)===null||r===void 0?void 0:r.makeLogger(e);return(n,...i)=>{var s;let u=(s=n.severity)!==null&&s!==void 0?s:en.INFO,l=Object.assign({severity:u,message:K0.format(...i)},n),p=JSON.stringify(l);o?o(n,p):console.log("%s",p)}}setFilters(){var e;(e=this.upstream)===null||e===void 0||e.setFilters()}};function cG(t){return new mP(t)}a(cG,"getStructuredBackend");ot.env={nodeEnables:"GOOGLE_SDK_NODE_LOGGING"};var hP=new Map,br;function uG(t){br=t,hP.clear()}a(uG,"setBackend");function J0(t,e){if(!br&&!zu.env[ot.env.nodeEnables]||!t)return ot.placeholder;e&&(t=`${e.instance.namespace}:${t}`);let r=hP.get(t);if(r)return r.func;if(br===null)return ot.placeholder;br===void 0&&(br=pP());let o=(()=>{let n;return new Du(t,(s,...u)=>{if(n!==br){if(br===null)return;br===void 0&&(br=pP()),n=br}br?.log(t,s,...u)})})();return hP.set(t,o),o.func}a(J0,"log")});var gP=z(Ei=>{"use strict";var lG=Ei&&Ei.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),dG=Ei&&Ei.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&lG(e,t,r)};Object.defineProperty(Ei,"__esModule",{value:!0});dG(X0(),Ei)});var Mu=z(Ee=>{"use strict";var Q0=Ee&&Ee.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),pG=Ee&&Ee.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),fG=Ee&&Ee.__importStar||(function(){var t=a(function(e){return t=Object.getOwnPropertyNames||function(r){var o=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(o[o.length]=n);return o},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var o=t(e),n=0;n<o.length;n++)o[n]!=="default"&&Q0(r,e,o[n]);return pG(r,e),r}})(),mG=Ee&&Ee.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Q0(e,t,r)};Object.defineProperty(Ee,"__esModule",{value:!0});Ee.gcpResidencyCache=Ee.METADATA_SERVER_DETECTION=Ee.HEADERS=Ee.HEADER_VALUE=Ee.HEADER_NAME=Ee.SECONDARY_HOST_ADDRESS=Ee.HOST_ADDRESS=Ee.BASE_PATH=void 0;Ee.instance=bG;Ee.project=PG;Ee.universe=EG;Ee.bulk=SG;Ee.isAvailable=TG;Ee.resetIsAvailableCache=AG;Ee.getGCPResidency=vP;Ee.setGCPResidency=eN;Ee.requestTimeout=tN;var yP=bt(),hG=j0(),gG=lP(),yG=fG(gP());Ee.BASE_PATH="/computeMetadata/v1";Ee.HOST_ADDRESS="http://169.254.169.254";Ee.SECONDARY_HOST_ADDRESS="http://metadata.google.internal.";Ee.HEADER_NAME="Metadata-Flavor";Ee.HEADER_VALUE="Google";Ee.HEADERS=Object.freeze({[Ee.HEADER_NAME]:Ee.HEADER_VALUE});var Y0=yG.log("gcp-metadata");Ee.METADATA_SERVER_DETECTION=Object.freeze({"assume-present":"don't try to ping the metadata server, but assume it's present",none:"don't try to ping the metadata server, but don't try to use it either","bios-only":"treat the result of a BIOS probe as canonical (don't fall back to pinging)","ping-only":"skip the BIOS probe, and go straight to pinging"});function _P(t){return t||(t=process.env.GCE_METADATA_IP||process.env.GCE_METADATA_HOST||Ee.HOST_ADDRESS),/^https?:\/\//.test(t)||(t=`http://${t}`),new URL(Ee.BASE_PATH,t).href}a(_P,"getBaseUrl");function _G(t){Object.keys(t).forEach(e=>{switch(e){case"params":case"property":case"headers":break;case"qs":throw new Error("'qs' is not a valid configuration option. Please use 'params' instead.");default:throw new Error(`'${e}' is not a valid configuration option.`)}})}a(_G,"validate");async function Uu(t,e={},r=3,o=!1){let n=new Headers(Ee.HEADERS),i="",s={};if(typeof t=="object"){let y=t;new Headers(y.headers).forEach((m,h)=>n.set(h,m)),i=y.metadataKey,s=y.params||s,r=y.noResponseRetries||r,o=y.fastFail||o}else i=t;typeof e=="string"?i+=`/${e}`:(_G(e),e.property&&(i+=`/${e.property}`),new Headers(e.headers).forEach((y,m)=>n.set(m,y)),s=e.params||s);let u=o?vG:yP.request,l={url:`${_P()}/${i}`,headers:n,retryConfig:{noResponseRetries:r},params:s,responseType:"text",timeout:tN()};Y0.info("instance request %j",l);let p=await u(l);Y0.info("instance metadata is %s",p.data);let f=p.headers.get(Ee.HEADER_NAME);if(f!==Ee.HEADER_VALUE)throw new RangeError(`Invalid response from metadata service: incorrect ${Ee.HEADER_NAME} header. Expected '${Ee.HEADER_VALUE}', got ${f?`'${f}'`:"no header"}`);if(typeof p.data=="string")try{return hG.parse(p.data)}catch{}return p.data}a(Uu,"metadataAccessor");async function vG(t){let e={...t,url:t.url?.toString().replace(_P(),_P(Ee.SECONDARY_HOST_ADDRESS))},r=(0,yP.request)(t),o=(0,yP.request)(e);return Promise.any([r,o])}a(vG,"fastFailMetadataRequest");function bG(t){return Uu("instance",t)}a(bG,"instance");function PG(t){return Uu("project",t)}a(PG,"project");function EG(t){return Uu("universe",t)}a(EG,"universe");async function SG(t){let e={};return await Promise.all(t.map(r=>(async()=>{let o=await Uu(r),n=r.metadataKey;e[n]=o})())),e}a(SG,"bulk");function xG(){return process.env.DETECT_GCP_RETRIES?Number(process.env.DETECT_GCP_RETRIES):0}a(xG,"detectGCPAvailableRetries");var em;async function TG(){if(process.env.METADATA_SERVER_DETECTION){let t=process.env.METADATA_SERVER_DETECTION.trim().toLocaleLowerCase();if(!(t in Ee.METADATA_SERVER_DETECTION))throw new RangeError(`Unknown \`METADATA_SERVER_DETECTION\` env variable. Got \`${t}\`, but it should be \`${Object.keys(Ee.METADATA_SERVER_DETECTION).join("`, `")}\`, or unset`);switch(t){case"assume-present":return!0;case"none":return!1;case"bios-only":return vP();case"ping-only":}}try{return em===void 0&&(em=Uu("instance",void 0,xG(),!(process.env.GCE_METADATA_IP||process.env.GCE_METADATA_HOST))),await em,!0}catch(t){let e=t;if(process.env.DEBUG_AUTH&&console.info(e),e.type==="request-timeout"||e.response&&e.response.status===404)return!1;if(!(e.response&&e.response.status===404)&&(!e.code||!["EHOSTDOWN","EHOSTUNREACH","ENETUNREACH","ENOENT","ENOTFOUND","ECONNREFUSED"].includes(e.code.toString()))){let r="UNKNOWN";e.code&&(r=e.code.toString()),process.emitWarning(`received unexpected error = ${e.message} code = ${r}`,"MetadataLookupWarning")}return!1}}a(TG,"isAvailable");function AG(){em=void 0}a(AG,"resetIsAvailableCache");Ee.gcpResidencyCache=null;function vP(){return Ee.gcpResidencyCache===null&&eN(),Ee.gcpResidencyCache}a(vP,"getGCPResidency");function eN(t=null){Ee.gcpResidencyCache=t!==null?t:(0,gG.detectGCPResidency)()}a(eN,"setGCPResidency");function tN(){return vP()?0:3e3}a(tN,"requestTimeout");mG(lP(),Ee)});var oN=z(tm=>{"use strict";tm.byteLength=IG;tm.toByteArray=RG;tm.fromByteArray=NG;var mn=[],Ur=[],wG=typeof Uint8Array<"u"?Uint8Array:Array,bP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Si=0,rN=bP.length;Si<rN;++Si)mn[Si]=bP[Si],Ur[bP.charCodeAt(Si)]=Si;var Si,rN;Ur[45]=62;Ur[95]=63;function nN(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var o=r===e?0:4-r%4;return[r,o]}a(nN,"getLens");function IG(t){var e=nN(t),r=e[0],o=e[1];return(r+o)*3/4-o}a(IG,"byteLength");function CG(t,e,r){return(e+r)*3/4-r}a(CG,"_byteLength");function RG(t){var e,r=nN(t),o=r[0],n=r[1],i=new wG(CG(t,o,n)),s=0,u=n>0?o-4:o,l;for(l=0;l<u;l+=4)e=Ur[t.charCodeAt(l)]<<18|Ur[t.charCodeAt(l+1)]<<12|Ur[t.charCodeAt(l+2)]<<6|Ur[t.charCodeAt(l+3)],i[s++]=e>>16&255,i[s++]=e>>8&255,i[s++]=e&255;return n===2&&(e=Ur[t.charCodeAt(l)]<<2|Ur[t.charCodeAt(l+1)]>>4,i[s++]=e&255),n===1&&(e=Ur[t.charCodeAt(l)]<<10|Ur[t.charCodeAt(l+1)]<<4|Ur[t.charCodeAt(l+2)]>>2,i[s++]=e>>8&255,i[s++]=e&255),i}a(RG,"toByteArray");function OG(t){return mn[t>>18&63]+mn[t>>12&63]+mn[t>>6&63]+mn[t&63]}a(OG,"tripletToBase64");function kG(t,e,r){for(var o,n=[],i=e;i<r;i+=3)o=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(t[i+2]&255),n.push(OG(o));return n.join("")}a(kG,"encodeChunk");function NG(t){for(var e,r=t.length,o=r%3,n=[],i=16383,s=0,u=r-o;s<u;s+=i)n.push(kG(t,s,s+i>u?u:s+i));return o===1?(e=t[r-1],n.push(mn[e>>2]+mn[e<<4&63]+"==")):o===2&&(e=(t[r-2]<<8)+t[r-1],n.push(mn[e>>10]+mn[e>>4&63]+mn[e<<2&63]+"=")),n.join("")}a(NG,"fromByteArray")});var EP=z(PP=>{"use strict";Object.defineProperty(PP,"__esModule",{value:!0});PP.fromArrayBufferToHex=$G;function $G(t){return Array.from(new Uint8Array(t)).map(r=>r.toString(16).padStart(2,"0")).join("")}a($G,"fromArrayBufferToHex")});var iN=z(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});rm.BrowserCrypto=void 0;var Fa=oN(),zG=EP(),SP=class t{static{a(this,"BrowserCrypto")}constructor(){if(typeof window>"u"||window.crypto===void 0||window.crypto.subtle===void 0)throw new Error("SubtleCrypto not found. Make sure it's an https:// website.")}async sha256DigestBase64(e){let r=new TextEncoder().encode(e),o=await window.crypto.subtle.digest("SHA-256",r);return Fa.fromByteArray(new Uint8Array(o))}randomBytesBase64(e){let r=new Uint8Array(e);return window.crypto.getRandomValues(r),Fa.fromByteArray(r)}static padBase64(e){for(;e.length%4!==0;)e+="=";return e}async verify(e,r,o){let n={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},i=new TextEncoder().encode(r),s=Fa.toByteArray(t.padBase64(o)),u=await window.crypto.subtle.importKey("jwk",e,n,!0,["verify"]);return await window.crypto.subtle.verify(n,u,s,i)}async sign(e,r){let o={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},n=new TextEncoder().encode(r),i=await window.crypto.subtle.importKey("jwk",e,o,!0,["sign"]),s=await window.crypto.subtle.sign(o,i,n);return Fa.fromByteArray(new Uint8Array(s))}decodeBase64StringUtf8(e){let r=Fa.toByteArray(t.padBase64(e));return new TextDecoder().decode(r)}encodeBase64StringUtf8(e){let r=new TextEncoder().encode(e);return Fa.fromByteArray(r)}async sha256DigestHex(e){let r=new TextEncoder().encode(e),o=await window.crypto.subtle.digest("SHA-256",r);return(0,zG.fromArrayBufferToHex)(o)}async signWithHmacSha256(e,r){let o=typeof e=="string"?e:String.fromCharCode(...new Uint16Array(e)),n=new TextEncoder,i=await window.crypto.subtle.importKey("raw",n.encode(o),{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]);return window.crypto.subtle.sign("HMAC",i,n.encode(r))}};rm.BrowserCrypto=SP});var aN=z(nm=>{"use strict";Object.defineProperty(nm,"__esModule",{value:!0});nm.NodeCrypto=void 0;var Ba=require("crypto"),xP=class{static{a(this,"NodeCrypto")}async sha256DigestBase64(e){return Ba.createHash("sha256").update(e).digest("base64")}randomBytesBase64(e){return Ba.randomBytes(e).toString("base64")}async verify(e,r,o){let n=Ba.createVerify("RSA-SHA256");return n.update(r),n.end(),n.verify(e,o,"base64")}async sign(e,r){let o=Ba.createSign("RSA-SHA256");return o.update(r),o.end(),o.sign(e,"base64")}decodeBase64StringUtf8(e){return Buffer.from(e,"base64").toString("utf-8")}encodeBase64StringUtf8(e){return Buffer.from(e,"utf-8").toString("base64")}async sha256DigestHex(e){return Ba.createHash("sha256").update(e).digest("hex")}async signWithHmacSha256(e,r){let o=typeof e=="string"?e:UG(e);return DG(Ba.createHmac("sha256",o).update(r).digest())}};nm.NodeCrypto=xP;function DG(t){return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}a(DG,"toArrayBuffer");function UG(t){return Buffer.from(t)}a(UG,"toBuffer")});var Lu=z(Gn=>{"use strict";var MG=Gn&&Gn.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),LG=Gn&&Gn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&MG(e,t,r)};Object.defineProperty(Gn,"__esModule",{value:!0});Gn.createCrypto=BG;Gn.hasBrowserCrypto=sN;var jG=iN(),FG=aN();LG(EP(),Gn);function BG(){return sN()?new jG.BrowserCrypto:new FG.NodeCrypto}a(BG,"createCrypto");function sN(){return typeof window<"u"&&typeof window.crypto<"u"&&typeof window.crypto.subtle<"u"}a(sN,"hasBrowserCrypto")});var qa=z((TP,uN)=>{var om=require("buffer"),hn=om.Buffer;function cN(t,e){for(var r in t)e[r]=t[r]}a(cN,"copyProps");hn.from&&hn.alloc&&hn.allocUnsafe&&hn.allocUnsafeSlow?uN.exports=om:(cN(om,TP),TP.Buffer=xi);function xi(t,e,r){return hn(t,e,r)}a(xi,"SafeBuffer");xi.prototype=Object.create(hn.prototype);cN(hn,xi);xi.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return hn(t,e,r)};xi.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var o=hn(t);return e!==void 0?typeof r=="string"?o.fill(e,r):o.fill(e):o.fill(0),o};xi.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return hn(t)};xi.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return om.SlowBuffer(t)}});var dN=z((ile,lN)=>{"use strict";function AP(t){var e=(t/8|0)+(t%8===0?0:1);return e}a(AP,"getParamSize");var qG={ES256:AP(256),ES384:AP(384),ES512:AP(521)};function GG(t){var e=qG[t];if(e)return e;throw new Error('Unknown algorithm "'+t+'"')}a(GG,"getParamBytesForAlg");lN.exports=GG});var wP=z((sle,yN)=>{"use strict";var im=qa().Buffer,fN=dN(),am=128,mN=0,VG=32,HG=16,ZG=2,hN=HG|VG|mN<<6,sm=ZG|mN<<6;function WG(t){return t.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}a(WG,"base64Url");function gN(t){if(im.isBuffer(t))return t;if(typeof t=="string")return im.from(t,"base64");throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}a(gN,"signatureAsBuffer");function KG(t,e){t=gN(t);var r=fN(e),o=r+1,n=t.length,i=0;if(t[i++]!==hN)throw new Error('Could not find expected "seq"');var s=t[i++];if(s===(am|1)&&(s=t[i++]),n-i<s)throw new Error('"seq" specified length of "'+s+'", only "'+(n-i)+'" remaining');if(t[i++]!==sm)throw new Error('Could not find expected "int" for "r"');var u=t[i++];if(n-i-2<u)throw new Error('"r" specified length of "'+u+'", only "'+(n-i-2)+'" available');if(o<u)throw new Error('"r" specified length of "'+u+'", max of "'+o+'" is acceptable');var l=i;if(i+=u,t[i++]!==sm)throw new Error('Could not find expected "int" for "s"');var p=t[i++];if(n-i!==p)throw new Error('"s" specified length of "'+p+'", expected "'+(n-i)+'"');if(o<p)throw new Error('"s" specified length of "'+p+'", max of "'+o+'" is acceptable');var f=i;if(i+=p,i!==n)throw new Error('Expected to consume entire buffer, but "'+(n-i)+'" bytes remain');var y=r-u,m=r-p,h=im.allocUnsafe(y+u+m+p);for(i=0;i<y;++i)h[i]=0;t.copy(h,i,l+Math.max(-y,0),l+u),i=r;for(var _=i;i<_+m;++i)h[i]=0;return t.copy(h,i,f+Math.max(-m,0),f+p),h=h.toString("base64"),h=WG(h),h}a(KG,"derToJose");function pN(t,e,r){for(var o=0;e+o<r&&t[e+o]===0;)++o;var n=t[e+o]>=am;return n&&--o,o}a(pN,"countPadding");function JG(t,e){t=gN(t);var r=fN(e),o=t.length;if(o!==r*2)throw new TypeError('"'+e+'" signatures must be "'+r*2+'" bytes, saw "'+o+'"');var n=pN(t,0,r),i=pN(t,r,t.length),s=r-n,u=r-i,l=2+s+1+1+u,p=l<am,f=im.allocUnsafe((p?2:3)+l),y=0;return f[y++]=hN,p?f[y++]=l:(f[y++]=am|1,f[y++]=l&255),f[y++]=sm,f[y++]=s,n<0?(f[y++]=0,y+=t.copy(f,y,0,r)):y+=t.copy(f,y,n,r),f[y++]=sm,f[y++]=u,i<0?(f[y++]=0,t.copy(f,y,r)):t.copy(f,y,r+i),f}a(JG,"joseToDer");yN.exports={derToJose:KG,joseToDer:JG}});var tn=z(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.LRUCache=void 0;Vn.snakeToCamel=vN;Vn.originalOrCamelOptions=eV;Vn.removeUndefinedValuesInObject=tV;Vn.isValidFile=rV;Vn.getWellKnownCertificateConfigFileLocation=nV;var XG=require("fs"),YG=require("os"),IP=require("path"),QG="certificate_config.json",_N="gcloud";function vN(t){return t.replace(/([_][^_])/g,e=>e.slice(1).toUpperCase())}a(vN,"snakeToCamel");function eV(t){function e(r){let o=t||{};return o[r]??o[vN(r)]}return a(e,"get"),{get:e}}a(eV,"originalOrCamelOptions");var CP=class{static{a(this,"LRUCache")}capacity;#e=new Map;maxAge;constructor(e){this.capacity=e.capacity,this.maxAge=e.maxAge}#t(e,r){this.#e.delete(e),this.#e.set(e,{value:r,lastAccessed:Date.now()})}set(e,r){this.#t(e,r),this.#r()}get(e){let r=this.#e.get(e);if(r)return this.#t(e,r.value),this.#r(),r.value}#r(){let e=this.maxAge?Date.now()-this.maxAge:0,r=this.#e.entries().next();for(;!r.done&&(this.#e.size>this.capacity||r.value[1].lastAccessed<e);)this.#e.delete(r.value[0]),r=this.#e.entries().next()}};Vn.LRUCache=CP;function tV(t){return Object.entries(t).forEach(([e,r])=>{(r===void 0||r==="undefined")&&delete t[e]}),t}a(tV,"removeUndefinedValuesInObject");async function rV(t){try{return(await XG.promises.lstat(t)).isFile()}catch{return!1}}a(rV,"isValidFile");function nV(){let t=process.env.CLOUDSDK_CONFIG||(oV()?IP.join(process.env.APPDATA||"",_N):IP.join(process.env.HOME||"",".config",_N));return IP.join(t,QG)}a(nV,"getWellKnownCertificateConfigFileLocation");function oV(){return YG.platform().startsWith("win")}a(oV,"_isWindows")});var bN=z((dle,iV)=>{iV.exports={name:"google-auth-library",version:"10.5.0",author:"Google Inc.",description:"Google APIs Authentication Client Library for Node.js",engines:{node:">=18"},main:"./build/src/index.js",types:"./build/src/index.d.ts",repository:"googleapis/google-auth-library-nodejs.git",keywords:["google","api","google apis","client","client library"],dependencies:{"base64-js":"^1.3.0","ecdsa-sig-formatter":"^1.0.11",gaxios:"^7.0.0","gcp-metadata":"^8.0.0","google-logging-utils":"^1.0.0",gtoken:"^8.0.0",jws:"^4.0.0"},devDependencies:{"@types/base64-js":"^1.2.5","@types/jws":"^3.1.0","@types/mocha":"^10.0.10","@types/mv":"^2.1.0","@types/ncp":"^2.0.1","@types/node":"^22.0.0","@types/sinon":"^17.0.0","assert-rejects":"^1.0.0",c8:"^10.0.0",codecov:"^3.0.2",gts:"^6.0.0","is-docker":"^3.0.0",jsdoc:"^4.0.0","jsdoc-fresh":"^5.0.0","jsdoc-region-tag":"^4.0.0",karma:"^6.0.0","karma-chrome-launcher":"^3.0.0","karma-coverage":"^2.0.0","karma-firefox-launcher":"^2.0.0","karma-mocha":"^2.0.0","karma-sourcemap-loader":"^0.4.0","karma-webpack":"^5.0.1",keypair:"^1.0.4",mocha:"^11.1.0",mv:"^2.1.1",ncp:"^2.0.0",nock:"^14.0.5","null-loader":"^4.0.0",puppeteer:"^24.0.0",sinon:"^21.0.0","ts-loader":"^8.0.0",typescript:"5.8.2",webpack:"^5.21.2","webpack-cli":"^4.0.0"},files:["build/src","!build/src/**/*.map"],scripts:{test:"c8 mocha build/test",clean:"gts clean",prepare:"npm run compile",lint:"gts check --no-inline-config",compile:"tsc -p .",fix:"gts fix",pretest:"npm run compile -- --sourceMap",docs:"jsdoc -c .jsdoc.js","samples-setup":"cd samples/ && npm link ../ && npm run setup && cd ../","samples-test":"cd samples/ && npm link ../ && npm test && cd ../","system-test":"mocha build/system-test --timeout 60000","presystem-test":"npm run compile -- --sourceMap",webpack:"webpack","browser-test":"karma start","docs-test":"echo 'disabled until linkinator is fixed'","predocs-test":"npm run docs",prelint:"cd samples; npm link ../; npm install"},license:"Apache-2.0"}});var RP=z(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.USER_AGENT=ko.PRODUCT_NAME=ko.pkg=void 0;var PN=bN();ko.pkg=PN;var EN="google-api-nodejs-client";ko.PRODUCT_NAME=EN;var aV=`${EN}/${PN.version}`;ko.USER_AGENT=aV});var Pr=z(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.AuthClient=rn.DEFAULT_EAGER_REFRESH_THRESHOLD_MILLIS=rn.DEFAULT_UNIVERSE=void 0;var sV=require("events"),OP=bt(),cV=tn(),uV=gP(),kP=RP();rn.DEFAULT_UNIVERSE="googleapis.com";rn.DEFAULT_EAGER_REFRESH_THRESHOLD_MILLIS=300*1e3;var NP=class t extends sV.EventEmitter{static{a(this,"AuthClient")}apiKey;projectId;quotaProjectId;transporter;credentials={};eagerRefreshThresholdMillis=rn.DEFAULT_EAGER_REFRESH_THRESHOLD_MILLIS;forceRefreshOnFailure=!1;universeDomain=rn.DEFAULT_UNIVERSE;static RequestMethodNameSymbol=Symbol("request method name");static RequestLogIdSymbol=Symbol("request log id");constructor(e={}){super();let r=(0,cV.originalOrCamelOptions)(e);this.apiKey=e.apiKey,this.projectId=r.get("project_id")??null,this.quotaProjectId=r.get("quota_project_id"),this.credentials=r.get("credentials")??{},this.universeDomain=r.get("universe_domain")??rn.DEFAULT_UNIVERSE,this.transporter=e.transporter??new OP.Gaxios(e.transporterOptions),r.get("useAuthRequestParameters")!==!1&&(this.transporter.interceptors.request.add(t.DEFAULT_REQUEST_INTERCEPTOR),this.transporter.interceptors.response.add(t.DEFAULT_RESPONSE_INTERCEPTOR)),e.eagerRefreshThresholdMillis&&(this.eagerRefreshThresholdMillis=e.eagerRefreshThresholdMillis),this.forceRefreshOnFailure=e.forceRefreshOnFailure??!1}fetch(...e){let r=e[0],o=e[1],n,i=new Headers;return typeof r=="string"?n=new URL(r):r instanceof URL?n=r:r&&r.url&&(n=new URL(r.url)),r&&typeof r=="object"&&"headers"in r&&OP.Gaxios.mergeHeaders(i,r.headers),o&&OP.Gaxios.mergeHeaders(i,new Headers(o.headers)),typeof r=="object"&&!(r instanceof URL)?this.request({...o,...r,headers:i,url:n}):this.request({...o,headers:i,url:n})}setCredentials(e){this.credentials=e}addSharedMetadataHeaders(e){return!e.has("x-goog-user-project")&&this.quotaProjectId&&e.set("x-goog-user-project",this.quotaProjectId),e}addUserProjectAndAuthHeaders(e,r){let o=r.get("x-goog-user-project"),n=r.get("authorization");return o&&e.set("x-goog-user-project",o),n&&e.set("authorization",n),e}static log=(0,uV.log)("auth");static DEFAULT_REQUEST_INTERCEPTOR={resolved:a(async e=>{if(!e.headers.has("x-goog-api-client")){let o=process.version.replace(/^v/,"");e.headers.set("x-goog-api-client",`gl-node/${o}`)}let r=e.headers.get("User-Agent");r?r.includes(`${kP.PRODUCT_NAME}/`)||e.headers.set("User-Agent",`${r} ${kP.USER_AGENT}`):e.headers.set("User-Agent",kP.USER_AGENT);try{let o=e,n=o[t.RequestMethodNameSymbol],i=`${Math.floor(Math.random()*1e3)}`;o[t.RequestLogIdSymbol]=i;let s={url:e.url,headers:e.headers};n?t.log.info("%s [%s] request %j",n,i,s):t.log.info("[%s] request %j",i,s)}catch{}return e},"resolved")};static DEFAULT_RESPONSE_INTERCEPTOR={resolved:a(async e=>{try{let r=e.config,o=r[t.RequestMethodNameSymbol],n=r[t.RequestLogIdSymbol];o?t.log.info("%s [%s] response %j",o,n,e.data):t.log.info("[%s] response %j",n,e.data)}catch{}return e},"resolved"),rejected:a(async e=>{try{let r=e.config,o=r[t.RequestMethodNameSymbol],n=r[t.RequestLogIdSymbol];o?t.log.info("%s [%s] error %j",o,n,e.response?.data):t.log.error("[%s] error %j",n,e.response?.data)}catch{}throw e},"rejected")};static setMethodName(e,r){try{let o=e;o[t.RequestMethodNameSymbol]=r}catch{}}static get RETRY_CONFIG(){return{retry:!0,retryConfig:{httpMethodsToRetry:["GET","PUT","POST","HEAD","OPTIONS","DELETE"]}}}};rn.AuthClient=NP});var zP=z(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});cm.LoginTicket=void 0;var $P=class{static{a(this,"LoginTicket")}envelope;payload;constructor(e,r){this.envelope=e,this.payload=r}getEnvelope(){return this.envelope}getPayload(){return this.payload}getUserId(){let e=this.getPayload();return e&&e.sub?e.sub:null}getAttributes(){return{envelope:this.getEnvelope(),payload:this.getPayload()}}};cm.LoginTicket=$P});var Ti=z(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.OAuth2Client=gn.ClientAuthentication=gn.CertificateFormat=gn.CodeChallengeMethod=void 0;var SN=bt(),lV=require("querystring"),dV=require("stream"),pV=wP(),xN=tn(),DP=Lu(),Ga=Pr(),fV=zP(),TN;(function(t){t.Plain="plain",t.S256="S256"})(TN||(gn.CodeChallengeMethod=TN={}));var Hn;(function(t){t.PEM="PEM",t.JWK="JWK"})(Hn||(gn.CertificateFormat=Hn={}));var ju;(function(t){t.ClientSecretPost="ClientSecretPost",t.ClientSecretBasic="ClientSecretBasic",t.None="None"})(ju||(gn.ClientAuthentication=ju={}));var UP=class t extends Ga.AuthClient{static{a(this,"OAuth2Client")}redirectUri;certificateCache={};certificateExpiry=null;certificateCacheFormat=Hn.PEM;refreshTokenPromises=new Map;endpoints;issuers;clientAuthentication;_clientId;_clientSecret;refreshHandler;constructor(e={},r,o){super(typeof e=="object"?e:{}),typeof e!="object"&&(e={clientId:e,clientSecret:r,redirectUri:o}),this._clientId=e.clientId||e.client_id,this._clientSecret=e.clientSecret||e.client_secret,this.redirectUri=e.redirectUri||e.redirect_uris?.[0],this.endpoints={tokenInfoUrl:"https://oauth2.googleapis.com/tokeninfo",oauth2AuthBaseUrl:"https://accounts.google.com/o/oauth2/v2/auth",oauth2TokenUrl:"https://oauth2.googleapis.com/token",oauth2RevokeUrl:"https://oauth2.googleapis.com/revoke",oauth2FederatedSignonPemCertsUrl:"https://www.googleapis.com/oauth2/v1/certs",oauth2FederatedSignonJwkCertsUrl:"https://www.googleapis.com/oauth2/v3/certs",oauth2IapPublicKeyUrl:"https://www.gstatic.com/iap/verify/public_key",...e.endpoints},this.clientAuthentication=e.clientAuthentication||ju.ClientSecretPost,this.issuers=e.issuers||["accounts.google.com","https://accounts.google.com",this.universeDomain]}static GOOGLE_TOKEN_INFO_URL="https://oauth2.googleapis.com/tokeninfo";static CLOCK_SKEW_SECS_=300;static DEFAULT_MAX_TOKEN_LIFETIME_SECS_=86400;generateAuthUrl(e={}){if(e.code_challenge_method&&!e.code_challenge)throw new Error("If a code_challenge_method is provided, code_challenge must be included.");return e.response_type=e.response_type||"code",e.client_id=e.client_id||this._clientId,e.redirect_uri=e.redirect_uri||this.redirectUri,Array.isArray(e.scope)&&(e.scope=e.scope.join(" ")),this.endpoints.oauth2AuthBaseUrl.toString()+"?"+lV.stringify(e)}generateCodeVerifier(){throw new Error("generateCodeVerifier is removed, please use generateCodeVerifierAsync instead.")}async generateCodeVerifierAsync(){let e=(0,DP.createCrypto)(),o=e.randomBytesBase64(96).replace(/\+/g,"~").replace(/=/g,"_").replace(/\//g,"-"),i=(await e.sha256DigestBase64(o)).split("=")[0].replace(/\+/g,"-").replace(/\//g,"_");return{codeVerifier:o,codeChallenge:i}}getToken(e,r){let o=typeof e=="string"?{code:e}:e;if(r)this.getTokenAsync(o).then(n=>r(null,n.tokens,n.res),n=>r(n,null,n.response));else return this.getTokenAsync(o)}async getTokenAsync(e){let r=this.endpoints.oauth2TokenUrl.toString(),o=new Headers,n={client_id:e.client_id||this._clientId,code_verifier:e.codeVerifier,code:e.code,grant_type:"authorization_code",redirect_uri:e.redirect_uri||this.redirectUri};if(this.clientAuthentication===ju.ClientSecretBasic){let l=Buffer.from(`${this._clientId}:${this._clientSecret}`);o.set("authorization",`Basic ${l.toString("base64")}`)}this.clientAuthentication===ju.ClientSecretPost&&(n.client_secret=this._clientSecret);let i={...t.RETRY_CONFIG,method:"POST",url:r,data:new URLSearchParams((0,xN.removeUndefinedValuesInObject)(n)),headers:o};Ga.AuthClient.setMethodName(i,"getTokenAsync");let s=await this.transporter.request(i),u=s.data;return s.data&&s.data.expires_in&&(u.expiry_date=new Date().getTime()+s.data.expires_in*1e3,delete u.expires_in),this.emit("tokens",u),{tokens:u,res:s}}async refreshToken(e){if(!e)return this.refreshTokenNoCache(e);if(this.refreshTokenPromises.has(e))return this.refreshTokenPromises.get(e);let r=this.refreshTokenNoCache(e).then(o=>(this.refreshTokenPromises.delete(e),o),o=>{throw this.refreshTokenPromises.delete(e),o});return this.refreshTokenPromises.set(e,r),r}async refreshTokenNoCache(e){if(!e)throw new Error("No refresh token is set.");let r=this.endpoints.oauth2TokenUrl.toString(),o={refresh_token:e,client_id:this._clientId,client_secret:this._clientSecret,grant_type:"refresh_token"},n;try{let s={...t.RETRY_CONFIG,method:"POST",url:r,data:new URLSearchParams((0,xN.removeUndefinedValuesInObject)(o))};Ga.AuthClient.setMethodName(s,"refreshTokenNoCache"),n=await this.transporter.request(s)}catch(s){throw s instanceof SN.GaxiosError&&s.message==="invalid_grant"&&s.response?.data&&/ReAuth/i.test(s.response.data.error_description)&&(s.message=JSON.stringify(s.response.data)),s}let i=n.data;return n.data&&n.data.expires_in&&(i.expiry_date=new Date().getTime()+n.data.expires_in*1e3,delete i.expires_in),this.emit("tokens",i),{tokens:i,res:n}}refreshAccessToken(e){if(e)this.refreshAccessTokenAsync().then(r=>e(null,r.credentials,r.res),e);else return this.refreshAccessTokenAsync()}async refreshAccessTokenAsync(){let e=await this.refreshToken(this.credentials.refresh_token),r=e.tokens;return r.refresh_token=this.credentials.refresh_token,this.credentials=r,{credentials:this.credentials,res:e.res}}getAccessToken(e){if(e)this.getAccessTokenAsync().then(r=>e(null,r.token,r.res),e);else return this.getAccessTokenAsync()}async getAccessTokenAsync(){if(!this.credentials.access_token||this.isTokenExpiring()){if(!this.credentials.refresh_token)if(this.refreshHandler){let o=await this.processAndValidateRefreshHandler();if(o?.access_token)return this.setCredentials(o),{token:this.credentials.access_token}}else throw new Error("No refresh token or refresh handler callback is set.");let r=await this.refreshAccessTokenAsync();if(!r.credentials||r.credentials&&!r.credentials.access_token)throw new Error("Could not refresh access token.");return{token:r.credentials.access_token,res:r.res}}else return{token:this.credentials.access_token}}async getRequestHeaders(e){return(await this.getRequestMetadataAsync(e)).headers}async getRequestMetadataAsync(e){let r=this.credentials;if(!r.access_token&&!r.refresh_token&&!this.apiKey&&!this.refreshHandler)throw new Error("No access, refresh token, API key or refresh handler callback is set.");if(r.access_token&&!this.isTokenExpiring()){r.token_type=r.token_type||"Bearer";let u=new Headers({authorization:r.token_type+" "+r.access_token});return{headers:this.addSharedMetadataHeaders(u)}}if(this.refreshHandler){let u=await this.processAndValidateRefreshHandler();if(u?.access_token){this.setCredentials(u);let l=new Headers({authorization:"Bearer "+this.credentials.access_token});return{headers:this.addSharedMetadataHeaders(l)}}}if(this.apiKey)return{headers:new Headers({"X-Goog-Api-Key":this.apiKey})};let o=null,n=null;try{o=await this.refreshToken(r.refresh_token),n=o.tokens}catch(u){let l=u;throw l.response&&(l.response.status===403||l.response.status===404)&&(l.message=`Could not refresh access token: ${l.message}`),l}let i=this.credentials;i.token_type=i.token_type||"Bearer",n.refresh_token=i.refresh_token,this.credentials=n;let s=new Headers({authorization:i.token_type+" "+n.access_token});return{headers:this.addSharedMetadataHeaders(s),res:o.res}}static getRevokeTokenUrl(e){return new t().getRevokeTokenURL(e).toString()}getRevokeTokenURL(e){let r=new URL(this.endpoints.oauth2RevokeUrl);return r.searchParams.append("token",e),r}revokeToken(e,r){let o={...t.RETRY_CONFIG,url:this.getRevokeTokenURL(e).toString(),method:"POST"};if(Ga.AuthClient.setMethodName(o,"revokeToken"),r)this.transporter.request(o).then(n=>r(null,n),r);else return this.transporter.request(o)}revokeCredentials(e){if(e)this.revokeCredentialsAsync().then(r=>e(null,r),e);else return this.revokeCredentialsAsync()}async revokeCredentialsAsync(){let e=this.credentials.access_token;if(this.credentials={},e)return this.revokeToken(e);throw new Error("No access token to revoke.")}request(e,r){if(r)this.requestAsync(e).then(o=>r(null,o),o=>r(o,o.response));else return this.requestAsync(e)}async requestAsync(e,r=!1){try{let o=await this.getRequestMetadataAsync();return e.headers=SN.Gaxios.mergeHeaders(e.headers),this.addUserProjectAndAuthHeaders(e.headers,o.headers),this.apiKey&&e.headers.set("X-Goog-Api-Key",this.apiKey),await this.transporter.request(e)}catch(o){let n=o.response;if(n){let i=n.status,s=this.credentials&&this.credentials.access_token&&this.credentials.refresh_token&&(!this.credentials.expiry_date||this.forceRefreshOnFailure),u=this.credentials&&this.credentials.access_token&&!this.credentials.refresh_token&&(!this.credentials.expiry_date||this.forceRefreshOnFailure)&&this.refreshHandler,l=n.config.data instanceof dV.Readable,p=i===401||i===403;if(!r&&p&&!l&&s)return await this.refreshAccessTokenAsync(),this.requestAsync(e,!0);if(!r&&p&&!l&&u){let f=await this.processAndValidateRefreshHandler();return f?.access_token&&this.setCredentials(f),this.requestAsync(e,!0)}}throw o}}verifyIdToken(e,r){if(r&&typeof r!="function")throw new Error("This method accepts an options object as the first parameter, which includes the idToken, audience, and maxExpiry.");if(r)this.verifyIdTokenAsync(e).then(o=>r(null,o),r);else return this.verifyIdTokenAsync(e)}async verifyIdTokenAsync(e){if(!e.idToken)throw new Error("The verifyIdToken method requires an ID Token");let r=await this.getFederatedSignonCertsAsync();return await this.verifySignedJwtWithCertsAsync(e.idToken,r.certs,e.audience,this.issuers,e.maxExpiry)}async getTokenInfo(e){let{data:r}=await this.transporter.request({...t.RETRY_CONFIG,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded;charset=UTF-8",authorization:`Bearer ${e}`},url:this.endpoints.tokenInfoUrl.toString()}),o=Object.assign({expiry_date:new Date().getTime()+r.expires_in*1e3,scopes:r.scope.split(" ")},r);return delete o.expires_in,delete o.scope,o}getFederatedSignonCerts(e){if(e)this.getFederatedSignonCertsAsync().then(r=>e(null,r.certs,r.res),e);else return this.getFederatedSignonCertsAsync()}async getFederatedSignonCertsAsync(){let e=new Date().getTime(),r=(0,DP.hasBrowserCrypto)()?Hn.JWK:Hn.PEM;if(this.certificateExpiry&&e<this.certificateExpiry.getTime()&&this.certificateCacheFormat===r)return{certs:this.certificateCache,format:r};let o,n;switch(r){case Hn.PEM:n=this.endpoints.oauth2FederatedSignonPemCertsUrl.toString();break;case Hn.JWK:n=this.endpoints.oauth2FederatedSignonJwkCertsUrl.toString();break;default:throw new Error(`Unsupported certificate format ${r}`)}try{let p={...t.RETRY_CONFIG,url:n};Ga.AuthClient.setMethodName(p,"getFederatedSignonCertsAsync"),o=await this.transporter.request(p)}catch(p){throw p instanceof Error&&(p.message=`Failed to retrieve verification certificates: ${p.message}`),p}let i=o?.headers.get("cache-control"),s=-1;if(i){let p=/max-age=(?<maxAge>[0-9]+)/.exec(i)?.groups?.maxAge;p&&(s=Number(p)*1e3)}let u={};switch(r){case Hn.PEM:u=o.data;break;case Hn.JWK:for(let p of o.data.keys)u[p.kid]=p;break;default:throw new Error(`Unsupported certificate format ${r}`)}let l=new Date;return this.certificateExpiry=s===-1?null:new Date(l.getTime()+s),this.certificateCache=u,this.certificateCacheFormat=r,{certs:u,format:r,res:o}}getIapPublicKeys(e){if(e)this.getIapPublicKeysAsync().then(r=>e(null,r.pubkeys,r.res),e);else return this.getIapPublicKeysAsync()}async getIapPublicKeysAsync(){let e,r=this.endpoints.oauth2IapPublicKeyUrl.toString();try{let o={...t.RETRY_CONFIG,url:r};Ga.AuthClient.setMethodName(o,"getIapPublicKeysAsync"),e=await this.transporter.request(o)}catch(o){throw o instanceof Error&&(o.message=`Failed to retrieve verification certificates: ${o.message}`),o}return{pubkeys:e.data,res:e}}verifySignedJwtWithCerts(){throw new Error("verifySignedJwtWithCerts is removed, please use verifySignedJwtWithCertsAsync instead.")}async verifySignedJwtWithCertsAsync(e,r,o,n,i){let s=(0,DP.createCrypto)();i||(i=t.DEFAULT_MAX_TOKEN_LIFETIME_SECS_);let u=e.split(".");if(u.length!==3)throw new Error("Wrong number of segments in token: "+e);let l=u[0]+"."+u[1],p=u[2],f,y;try{f=JSON.parse(s.decodeBase64StringUtf8(u[0]))}catch(L){throw L instanceof Error&&(L.message=`Can't parse token envelope: ${u[0]}': ${L.message}`),L}if(!f)throw new Error("Can't parse token envelope: "+u[0]);try{y=JSON.parse(s.decodeBase64StringUtf8(u[1]))}catch(L){throw L instanceof Error&&(L.message=`Can't parse token payload '${u[0]}`),L}if(!y)throw new Error("Can't parse token payload: "+u[1]);if(!Object.prototype.hasOwnProperty.call(r,f.kid))throw new Error("No pem found for envelope: "+JSON.stringify(f));let m=r[f.kid];if(f.alg==="ES256"&&(p=pV.joseToDer(p,"ES256").toString("base64")),!await s.verify(m,l,p))throw new Error("Invalid token signature: "+e);if(!y.iat)throw new Error("No issue time in token: "+JSON.stringify(y));if(!y.exp)throw new Error("No expiration time in token: "+JSON.stringify(y));let _=Number(y.iat);if(isNaN(_))throw new Error("iat field using invalid format");let E=Number(y.exp);if(isNaN(E))throw new Error("exp field using invalid format");let S=new Date().getTime()/1e3;if(E>=S+i)throw new Error("Expiration time too far in future: "+JSON.stringify(y));let T=_-t.CLOCK_SKEW_SECS_,k=E+t.CLOCK_SKEW_SECS_;if(S<T)throw new Error("Token used too early, "+S+" < "+T+": "+JSON.stringify(y));if(S>k)throw new Error("Token used too late, "+S+" > "+k+": "+JSON.stringify(y));if(n&&n.indexOf(y.iss)<0)throw new Error("Invalid issuer, expected one of ["+n+"], but got "+y.iss);if(typeof o<"u"&&o!==null){let L=y.aud,Y=!1;if(o.constructor===Array?Y=o.indexOf(L)>-1:Y=L===o,!Y)throw new Error("Wrong recipient, payload audience != requiredAudience")}return new fV.LoginTicket(f,y)}async processAndValidateRefreshHandler(){if(this.refreshHandler){let e=await this.refreshHandler();if(!e.access_token)throw new Error("No access token is returned by the refreshHandler callback.");return e}}isTokenExpiring(){let e=this.credentials.expiry_date;return e?e<=new Date().getTime()+this.eagerRefreshThresholdMillis:!1}};gn.OAuth2Client=UP});var LP=z(um=>{"use strict";Object.defineProperty(um,"__esModule",{value:!0});um.Compute=void 0;var mV=bt(),AN=Mu(),hV=Ti(),MP=class extends hV.OAuth2Client{static{a(this,"Compute")}serviceAccountEmail;scopes;constructor(e={}){super(e),this.credentials={expiry_date:1,refresh_token:"compute-placeholder"},this.serviceAccountEmail=e.serviceAccountEmail||"default",this.scopes=Array.isArray(e.scopes)?e.scopes:e.scopes?[e.scopes]:[]}async refreshTokenNoCache(){let e=`service-accounts/${this.serviceAccountEmail}/token`,r;try{let n={property:e};this.scopes.length>0&&(n.params={scopes:this.scopes.join(",")}),r=await AN.instance(n)}catch(n){throw n instanceof mV.GaxiosError&&(n.message=`Could not refresh access token: ${n.message}`,this.wrapError(n)),n}let o=r;return r&&r.expires_in&&(o.expiry_date=new Date().getTime()+r.expires_in*1e3,delete o.expires_in),this.emit("tokens",o),{tokens:o,res:null}}async fetchIdToken(e){let r=`service-accounts/${this.serviceAccountEmail}/identity?format=full&audience=${e}`,o;try{let n={property:r};o=await AN.instance(n)}catch(n){throw n instanceof Error&&(n.message=`Could not fetch ID token: ${n.message}`),n}return o}wrapError(e){let r=e.response;r&&r.status&&(e.status=r.status,r.status===403?e.message="A Forbidden error was returned while attempting to retrieve an access token for the Compute Engine built-in service account. This may be because the Compute Engine instance does not have the correct permission scopes specified: "+e.message:r.status===404&&(e.message="A Not Found error was returned while attempting to retrieve an accesstoken for the Compute Engine built-in service account. This may be because the Compute Engine instance does not have any permission scopes specified: "+e.message))}};um.Compute=MP});var FP=z(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});lm.IdTokenClient=void 0;var gV=Ti(),jP=class extends gV.OAuth2Client{static{a(this,"IdTokenClient")}targetAudience;idTokenProvider;constructor(e){super(e),this.targetAudience=e.targetAudience,this.idTokenProvider=e.idTokenProvider}async getRequestMetadataAsync(){if(!this.credentials.id_token||!this.credentials.expiry_date||this.isTokenExpiring()){let r=await this.idTokenProvider.fetchIdToken(this.targetAudience);this.credentials={id_token:r,expiry_date:this.getIdTokenExpiryDate(r)}}return{headers:new Headers({authorization:"Bearer "+this.credentials.id_token})}}getIdTokenExpiryDate(e){let r=e.split(".")[1];if(r)return JSON.parse(Buffer.from(r,"base64").toString("ascii")).exp*1e3}};lm.IdTokenClient=jP});var BP=z(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.GCPEnv=void 0;Va.clear=yV;Va.getEnv=_V;var wN=Mu(),yn;(function(t){t.APP_ENGINE="APP_ENGINE",t.KUBERNETES_ENGINE="KUBERNETES_ENGINE",t.CLOUD_FUNCTIONS="CLOUD_FUNCTIONS",t.COMPUTE_ENGINE="COMPUTE_ENGINE",t.CLOUD_RUN="CLOUD_RUN",t.CLOUD_RUN_JOBS="CLOUD_RUN_JOBS",t.NONE="NONE"})(yn||(Va.GCPEnv=yn={}));var Fu;function yV(){Fu=void 0}a(yV,"clear");async function _V(){return Fu||(Fu=vV(),Fu)}a(_V,"getEnv");async function vV(){let t=yn.NONE;return bV()?t=yn.APP_ENGINE:PV()?t=yn.CLOUD_FUNCTIONS:await TV()?await xV()?t=yn.KUBERNETES_ENGINE:EV()?t=yn.CLOUD_RUN:SV()?t=yn.CLOUD_RUN_JOBS:t=yn.COMPUTE_ENGINE:t=yn.NONE,t}a(vV,"getEnvMemoized");function bV(){return!!(process.env.GAE_SERVICE||process.env.GAE_MODULE_NAME)}a(bV,"isAppEngine");function PV(){return!!(process.env.FUNCTION_NAME||process.env.FUNCTION_TARGET)}a(PV,"isCloudFunction");function EV(){return!!process.env.K_CONFIGURATION}a(EV,"isCloudRun");function SV(){return!!process.env.CLOUD_RUN_JOB}a(SV,"isCloudRunJob");async function xV(){try{return await wN.instance("attributes/cluster-name"),!0}catch{return!1}}a(xV,"isKubernetesEngine");async function TV(){return wN.isAvailable()}a(TV,"isComputeEngine")});var qP=z((Tle,IN)=>{var dm=qa().Buffer,AV=require("stream"),wV=require("util");function pm(t){if(this.buffer=null,this.writable=!0,this.readable=!0,!t)return this.buffer=dm.alloc(0),this;if(typeof t.pipe=="function")return this.buffer=dm.alloc(0),t.pipe(this),this;if(t.length||typeof t=="object")return this.buffer=t,this.writable=!1,process.nextTick(function(){this.emit("end",t),this.readable=!1,this.emit("close")}.bind(this)),this;throw new TypeError("Unexpected data type ("+typeof t+")")}a(pm,"DataStream");wV.inherits(pm,AV);pm.prototype.write=a(function(e){this.buffer=dm.concat([this.buffer,dm.from(e)]),this.emit("data",e)},"write");pm.prototype.end=a(function(e){e&&this.write(e),this.emit("end",e),this.emit("close"),this.writable=!1,this.readable=!1},"end");IN.exports=pm});var RN=z((wle,CN)=>{"use strict";var Bu=require("buffer").Buffer,GP=require("buffer").SlowBuffer;CN.exports=fm;function fm(t,e){if(!Bu.isBuffer(t)||!Bu.isBuffer(e)||t.length!==e.length)return!1;for(var r=0,o=0;o<t.length;o++)r|=t[o]^e[o];return r===0}a(fm,"bufferEq");fm.install=function(){Bu.prototype.equal=GP.prototype.equal=a(function(e){return fm(this,e)},"equal")};var IV=Bu.prototype.equal,CV=GP.prototype.equal;fm.restore=function(){Bu.prototype.equal=IV,GP.prototype.equal=CV}});var WP=z((Cle,LN)=>{var Za=qa().Buffer,Mr=require("crypto"),kN=wP(),ON=require("util"),RV=`"%s" is not a valid algorithm.
37
+ `+P+"}":"{"+S.join(",")+"}",o=P,h}}a(l,"str"),typeof k0.stringify!="function"&&(k0.stringify=function(p,f,y){var m;if(o="",n="",typeof y=="number")for(m=0;m<y;m+=1)n+=" ";else typeof y=="string"&&(n=y);if(s=f,f&&typeof f!="function"&&(typeof f!="object"||typeof f.length!="number"))throw new Error("JSON.stringify");return l("",{"":p})})})()});var D0=z(($ue,z0)=>{var Xf=null,Y6=/(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/,Q6=/(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/,eG=a(function(t){"use strict";var e={strict:!1,storeAsString:!1,alwaysParseAsBig:!1,useNativeBigInt:!1,protoAction:"error",constructorAction:"error"};if(t!=null){if(t.strict===!0&&(e.strict=!0),t.storeAsString===!0&&(e.storeAsString=!0),e.alwaysParseAsBig=t.alwaysParseAsBig===!0?t.alwaysParseAsBig:!1,e.useNativeBigInt=t.useNativeBigInt===!0?t.useNativeBigInt:!1,typeof t.constructorAction<"u")if(t.constructorAction==="error"||t.constructorAction==="ignore"||t.constructorAction==="preserve")e.constructorAction=t.constructorAction;else throw new Error(`Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${t.constructorAction}`);if(typeof t.protoAction<"u")if(t.protoAction==="error"||t.protoAction==="ignore"||t.protoAction==="preserve")e.protoAction=t.protoAction;else throw new Error(`Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${t.protoAction}`)}var r,o,n={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
38
+ `,r:"\r",t:" "},i,s=a(function(P){throw{name:"SyntaxError",message:P,at:r,text:i}},"error"),u=a(function(P){return P&&P!==o&&s("Expected '"+P+"' instead of '"+o+"'"),o=i.charAt(r),r+=1,o},"next"),l=a(function(){var P,S="";for(o==="-"&&(S="-",u("-"));o>="0"&&o<="9";)S+=o,u();if(o===".")for(S+=".";u()&&o>="0"&&o<="9";)S+=o;if(o==="e"||o==="E")for(S+=o,u(),(o==="-"||o==="+")&&(S+=o,u());o>="0"&&o<="9";)S+=o,u();if(P=+S,!isFinite(P))s("Bad number");else return Xf==null&&(Xf=uE()),S.length>15?e.storeAsString?S:e.useNativeBigInt?BigInt(S):new Xf(S):e.alwaysParseAsBig?e.useNativeBigInt?BigInt(P):new Xf(P):P},"number"),p=a(function(){var P,S,T="",k;if(o==='"')for(var L=r;u();){if(o==='"')return r-1>L&&(T+=i.substring(L,r-1)),u(),T;if(o==="\\"){if(r-1>L&&(T+=i.substring(L,r-1)),u(),o==="u"){for(k=0,S=0;S<4&&(P=parseInt(u(),16),!!isFinite(P));S+=1)k=k*16+P;T+=String.fromCharCode(k)}else if(typeof n[o]=="string")T+=n[o];else break;L=r}}s("Bad string")},"string"),f=a(function(){for(;o&&o<=" ";)u()},"white"),y=a(function(){switch(o){case"t":return u("t"),u("r"),u("u"),u("e"),!0;case"f":return u("f"),u("a"),u("l"),u("s"),u("e"),!1;case"n":return u("n"),u("u"),u("l"),u("l"),null}s("Unexpected '"+o+"'")},"word"),m,h=a(function(){var P=[];if(o==="["){if(u("["),f(),o==="]")return u("]"),P;for(;o;){if(P.push(m()),f(),o==="]")return u("]"),P;u(","),f()}}s("Bad array")},"array"),_=a(function(){var P,S=Object.create(null);if(o==="{"){if(u("{"),f(),o==="}")return u("}"),S;for(;o;){if(P=p(),f(),u(":"),e.strict===!0&&Object.hasOwnProperty.call(S,P)&&s('Duplicate key "'+P+'"'),Y6.test(P)===!0?e.protoAction==="error"?s("Object contains forbidden prototype property"):e.protoAction==="ignore"?m():S[P]=m():Q6.test(P)===!0?e.constructorAction==="error"?s("Object contains forbidden constructor property"):e.constructorAction==="ignore"?m():S[P]=m():S[P]=m(),f(),o==="}")return u("}"),S;u(","),f()}}s("Bad object")},"object");return m=a(function(){switch(f(),o){case"{":return _();case"[":return h();case'"':return p();case"-":return l();default:return o>="0"&&o<="9"?l():y()}},"value"),function(P,S){var T;return i=P+"",r=0,o=" ",T=m(),f(),o&&s("Syntax error"),typeof S=="function"?a((function k(L,Y){var H,X,re=L[Y];return re&&typeof re=="object"&&Object.keys(re).forEach(function(ce){X=k(re,ce),X!==void 0?re[ce]=X:delete re[ce]}),S.call(L,Y,re)}),"walk")({"":T},""):T}},"json_parse");z0.exports=eG});var L0=z((Due,Yf)=>{var U0=$0().stringify,M0=D0();Yf.exports=function(t){return{parse:M0(t),stringify:U0}};Yf.exports.parse=M0();Yf.exports.stringify=U0});var lE=z(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.GCE_LINUX_BIOS_PATHS=void 0;Qr.isGoogleCloudServerless=B0;Qr.isGoogleComputeEngineLinux=q0;Qr.isGoogleComputeEngineMACAddress=G0;Qr.isGoogleComputeEngine=V0;Qr.detectGCPResidency=rG;var j0=require("fs"),F0=require("os");Qr.GCE_LINUX_BIOS_PATHS={BIOS_DATE:"/sys/class/dmi/id/bios_date",BIOS_VENDOR:"/sys/class/dmi/id/bios_vendor"};var tG=/^42:01/;function B0(){return!!(process.env.CLOUD_RUN_JOB||process.env.FUNCTION_NAME||process.env.K_SERVICE)}a(B0,"isGoogleCloudServerless");function q0(){if((0,F0.platform)()!=="linux")return!1;try{(0,j0.statSync)(Qr.GCE_LINUX_BIOS_PATHS.BIOS_DATE);let t=(0,j0.readFileSync)(Qr.GCE_LINUX_BIOS_PATHS.BIOS_VENDOR,"utf8");return/Google/.test(t)}catch{return!1}}a(q0,"isGoogleComputeEngineLinux");function G0(){let t=(0,F0.networkInterfaces)();for(let e of Object.values(t))if(e){for(let{mac:r}of e)if(tG.test(r))return!0}return!1}a(G0,"isGoogleComputeEngineMACAddress");function V0(){return q0()||G0()}a(V0,"isGoogleComputeEngine");function rG(){return B0()||V0()}a(rG,"detectGCPResidency")});var H0=z(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});Qf.Colours=void 0;var qt=class t{static{a(this,"Colours")}static isEnabled(e){return e&&e.isTTY&&(typeof e.getColorDepth=="function"?e.getColorDepth()>2:!0)}static refresh(){t.enabled=t.isEnabled(process==null?void 0:process.stderr),this.enabled?(t.reset="\x1B[0m",t.bright="\x1B[1m",t.dim="\x1B[2m",t.red="\x1B[31m",t.green="\x1B[32m",t.yellow="\x1B[33m",t.blue="\x1B[34m",t.magenta="\x1B[35m",t.cyan="\x1B[36m",t.white="\x1B[37m",t.grey="\x1B[90m"):(t.reset="",t.bright="",t.dim="",t.red="",t.green="",t.yellow="",t.blue="",t.magenta="",t.cyan="",t.white="",t.grey="")}};Qf.Colours=qt;qt.enabled=!1;qt.reset="";qt.bright="";qt.dim="";qt.red="";qt.green="";qt.yellow="";qt.blue="";qt.magenta="";qt.cyan="";qt.white="";qt.grey="";qt.refresh()});var J0=z(ot=>{"use strict";var nG=ot&&ot.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),oG=ot&&ot.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Z0=ot&&ot.__importStar||(function(){var t=a(function(e){return t=Object.getOwnPropertyNames||function(r){var o=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(o[o.length]=n);return o},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var o=t(e),n=0;n<o.length;n++)o[n]!=="default"&&nG(r,e,o[n]);return oG(r,e),r}})();Object.defineProperty(ot,"__esModule",{value:!0});ot.env=ot.DebugLogBackendBase=ot.placeholder=ot.AdhocDebugLogger=ot.LogSeverity=void 0;ot.getNodeBackend=pE;ot.getDebugBackend=aG;ot.getStructuredBackend=sG;ot.setBackend=cG;ot.log=K0;var iG=require("events"),zu=Z0(require("process")),W0=Z0(require("util")),vr=H0(),en;(function(t){t.DEFAULT="DEFAULT",t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR"})(en||(ot.LogSeverity=en={}));var Du=class extends iG.EventEmitter{static{a(this,"AdhocDebugLogger")}constructor(e,r){super(),this.namespace=e,this.upstream=r,this.func=Object.assign(this.invoke.bind(this),{instance:this,on:a((o,n)=>this.on(o,n),"on")}),this.func.debug=(...o)=>this.invokeSeverity(en.DEBUG,...o),this.func.info=(...o)=>this.invokeSeverity(en.INFO,...o),this.func.warn=(...o)=>this.invokeSeverity(en.WARNING,...o),this.func.error=(...o)=>this.invokeSeverity(en.ERROR,...o),this.func.sublog=o=>K0(o,this.func)}invoke(e,...r){if(this.upstream)try{this.upstream(e,...r)}catch{}try{this.emit("log",e,r)}catch{}}invokeSeverity(e,...r){this.invoke({severity:e},...r)}};ot.AdhocDebugLogger=Du;ot.placeholder=new Du("",()=>{}).func;var ja=class{static{a(this,"DebugLogBackendBase")}constructor(){var e;this.cached=new Map,this.filters=[],this.filtersSet=!1;let r=(e=zu.env[ot.env.nodeEnables])!==null&&e!==void 0?e:"*";r==="all"&&(r="*"),this.filters=r.split(",")}log(e,r,...o){try{this.filtersSet||(this.setFilters(),this.filtersSet=!0);let n=this.cached.get(e);n||(n=this.makeLogger(e),this.cached.set(e,n)),n(r,...o)}catch(n){console.error(n)}}};ot.DebugLogBackendBase=ja;var dE=class extends ja{static{a(this,"NodeBackend")}constructor(){super(...arguments),this.enabledRegexp=/.*/g}isEnabled(e){return this.enabledRegexp.test(e)}makeLogger(e){return this.enabledRegexp.test(e)?(r,...o)=>{var n;let i=`${vr.Colours.green}${e}${vr.Colours.reset}`,s=`${vr.Colours.yellow}${zu.pid}${vr.Colours.reset}`,u;switch(r.severity){case en.ERROR:u=`${vr.Colours.red}${r.severity}${vr.Colours.reset}`;break;case en.INFO:u=`${vr.Colours.magenta}${r.severity}${vr.Colours.reset}`;break;case en.WARNING:u=`${vr.Colours.yellow}${r.severity}${vr.Colours.reset}`;break;default:u=(n=r.severity)!==null&&n!==void 0?n:en.DEFAULT;break}let l=W0.formatWithOptions({colors:vr.Colours.enabled},...o),p=Object.assign({},r);delete p.severity;let f=Object.getOwnPropertyNames(p).length?JSON.stringify(p):"",y=f?`${vr.Colours.grey}${f}${vr.Colours.reset}`:"";console.error("%s [%s|%s] %s%s",s,i,u,l,f?` ${y}`:"")}:()=>{}}setFilters(){let r=this.filters.join(",").replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^");this.enabledRegexp=new RegExp(`^${r}$`,"i")}};function pE(){return new dE}a(pE,"getNodeBackend");var fE=class extends ja{static{a(this,"DebugBackend")}constructor(e){super(),this.debugPkg=e}makeLogger(e){let r=this.debugPkg(e);return(o,...n)=>{r(n[0],...n.slice(1))}}setFilters(){var e;let r=(e=zu.env.NODE_DEBUG)!==null&&e!==void 0?e:"";zu.env.NODE_DEBUG=`${r}${r?",":""}${this.filters.join(",")}`}};function aG(t){return new fE(t)}a(aG,"getDebugBackend");var mE=class extends ja{static{a(this,"StructuredBackend")}constructor(e){var r;super(),this.upstream=(r=e)!==null&&r!==void 0?r:void 0}makeLogger(e){var r;let o=(r=this.upstream)===null||r===void 0?void 0:r.makeLogger(e);return(n,...i)=>{var s;let u=(s=n.severity)!==null&&s!==void 0?s:en.INFO,l=Object.assign({severity:u,message:W0.format(...i)},n),p=JSON.stringify(l);o?o(n,p):console.log("%s",p)}}setFilters(){var e;(e=this.upstream)===null||e===void 0||e.setFilters()}};function sG(t){return new mE(t)}a(sG,"getStructuredBackend");ot.env={nodeEnables:"GOOGLE_SDK_NODE_LOGGING"};var hE=new Map,br;function cG(t){br=t,hE.clear()}a(cG,"setBackend");function K0(t,e){if(!br&&!zu.env[ot.env.nodeEnables]||!t)return ot.placeholder;e&&(t=`${e.instance.namespace}:${t}`);let r=hE.get(t);if(r)return r.func;if(br===null)return ot.placeholder;br===void 0&&(br=pE());let o=(()=>{let n;return new Du(t,(s,...u)=>{if(n!==br){if(br===null)return;br===void 0&&(br=pE()),n=br}br?.log(t,s,...u)})})();return hE.set(t,o),o.func}a(K0,"log")});var gE=z(Pi=>{"use strict";var uG=Pi&&Pi.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),lG=Pi&&Pi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&uG(e,t,r)};Object.defineProperty(Pi,"__esModule",{value:!0});lG(J0(),Pi)});var Mu=z(Pe=>{"use strict";var Y0=Pe&&Pe.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),dG=Pe&&Pe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),pG=Pe&&Pe.__importStar||(function(){var t=a(function(e){return t=Object.getOwnPropertyNames||function(r){var o=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(o[o.length]=n);return o},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var o=t(e),n=0;n<o.length;n++)o[n]!=="default"&&Y0(r,e,o[n]);return dG(r,e),r}})(),fG=Pe&&Pe.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Y0(e,t,r)};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.gcpResidencyCache=Pe.METADATA_SERVER_DETECTION=Pe.HEADERS=Pe.HEADER_VALUE=Pe.HEADER_NAME=Pe.SECONDARY_HOST_ADDRESS=Pe.HOST_ADDRESS=Pe.BASE_PATH=void 0;Pe.instance=vG;Pe.project=bG;Pe.universe=EG;Pe.bulk=PG;Pe.isAvailable=xG;Pe.resetIsAvailableCache=TG;Pe.getGCPResidency=vE;Pe.setGCPResidency=Q0;Pe.requestTimeout=eN;var yE=bt(),mG=L0(),hG=lE(),gG=pG(gE());Pe.BASE_PATH="/computeMetadata/v1";Pe.HOST_ADDRESS="http://169.254.169.254";Pe.SECONDARY_HOST_ADDRESS="http://metadata.google.internal.";Pe.HEADER_NAME="Metadata-Flavor";Pe.HEADER_VALUE="Google";Pe.HEADERS=Object.freeze({[Pe.HEADER_NAME]:Pe.HEADER_VALUE});var X0=gG.log("gcp-metadata");Pe.METADATA_SERVER_DETECTION=Object.freeze({"assume-present":"don't try to ping the metadata server, but assume it's present",none:"don't try to ping the metadata server, but don't try to use it either","bios-only":"treat the result of a BIOS probe as canonical (don't fall back to pinging)","ping-only":"skip the BIOS probe, and go straight to pinging"});function _E(t){return t||(t=process.env.GCE_METADATA_IP||process.env.GCE_METADATA_HOST||Pe.HOST_ADDRESS),/^https?:\/\//.test(t)||(t=`http://${t}`),new URL(Pe.BASE_PATH,t).href}a(_E,"getBaseUrl");function yG(t){Object.keys(t).forEach(e=>{switch(e){case"params":case"property":case"headers":break;case"qs":throw new Error("'qs' is not a valid configuration option. Please use 'params' instead.");default:throw new Error(`'${e}' is not a valid configuration option.`)}})}a(yG,"validate");async function Uu(t,e={},r=3,o=!1){let n=new Headers(Pe.HEADERS),i="",s={};if(typeof t=="object"){let y=t;new Headers(y.headers).forEach((m,h)=>n.set(h,m)),i=y.metadataKey,s=y.params||s,r=y.noResponseRetries||r,o=y.fastFail||o}else i=t;typeof e=="string"?i+=`/${e}`:(yG(e),e.property&&(i+=`/${e.property}`),new Headers(e.headers).forEach((y,m)=>n.set(m,y)),s=e.params||s);let u=o?_G:yE.request,l={url:`${_E()}/${i}`,headers:n,retryConfig:{noResponseRetries:r},params:s,responseType:"text",timeout:eN()};X0.info("instance request %j",l);let p=await u(l);X0.info("instance metadata is %s",p.data);let f=p.headers.get(Pe.HEADER_NAME);if(f!==Pe.HEADER_VALUE)throw new RangeError(`Invalid response from metadata service: incorrect ${Pe.HEADER_NAME} header. Expected '${Pe.HEADER_VALUE}', got ${f?`'${f}'`:"no header"}`);if(typeof p.data=="string")try{return mG.parse(p.data)}catch{}return p.data}a(Uu,"metadataAccessor");async function _G(t){let e={...t,url:t.url?.toString().replace(_E(),_E(Pe.SECONDARY_HOST_ADDRESS))},r=(0,yE.request)(t),o=(0,yE.request)(e);return Promise.any([r,o])}a(_G,"fastFailMetadataRequest");function vG(t){return Uu("instance",t)}a(vG,"instance");function bG(t){return Uu("project",t)}a(bG,"project");function EG(t){return Uu("universe",t)}a(EG,"universe");async function PG(t){let e={};return await Promise.all(t.map(r=>(async()=>{let o=await Uu(r),n=r.metadataKey;e[n]=o})())),e}a(PG,"bulk");function SG(){return process.env.DETECT_GCP_RETRIES?Number(process.env.DETECT_GCP_RETRIES):0}a(SG,"detectGCPAvailableRetries");var em;async function xG(){if(process.env.METADATA_SERVER_DETECTION){let t=process.env.METADATA_SERVER_DETECTION.trim().toLocaleLowerCase();if(!(t in Pe.METADATA_SERVER_DETECTION))throw new RangeError(`Unknown \`METADATA_SERVER_DETECTION\` env variable. Got \`${t}\`, but it should be \`${Object.keys(Pe.METADATA_SERVER_DETECTION).join("`, `")}\`, or unset`);switch(t){case"assume-present":return!0;case"none":return!1;case"bios-only":return vE();case"ping-only":}}try{return em===void 0&&(em=Uu("instance",void 0,SG(),!(process.env.GCE_METADATA_IP||process.env.GCE_METADATA_HOST))),await em,!0}catch(t){let e=t;if(process.env.DEBUG_AUTH&&console.info(e),e.type==="request-timeout"||e.response&&e.response.status===404)return!1;if(!(e.response&&e.response.status===404)&&(!e.code||!["EHOSTDOWN","EHOSTUNREACH","ENETUNREACH","ENOENT","ENOTFOUND","ECONNREFUSED"].includes(e.code.toString()))){let r="UNKNOWN";e.code&&(r=e.code.toString()),process.emitWarning(`received unexpected error = ${e.message} code = ${r}`,"MetadataLookupWarning")}return!1}}a(xG,"isAvailable");function TG(){em=void 0}a(TG,"resetIsAvailableCache");Pe.gcpResidencyCache=null;function vE(){return Pe.gcpResidencyCache===null&&Q0(),Pe.gcpResidencyCache}a(vE,"getGCPResidency");function Q0(t=null){Pe.gcpResidencyCache=t!==null?t:(0,hG.detectGCPResidency)()}a(Q0,"setGCPResidency");function eN(){return vE()?0:3e3}a(eN,"requestTimeout");fG(lE(),Pe)});var nN=z(tm=>{"use strict";tm.byteLength=wG;tm.toByteArray=CG;tm.fromByteArray=kG;var mn=[],Ur=[],AG=typeof Uint8Array<"u"?Uint8Array:Array,bE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Si=0,tN=bE.length;Si<tN;++Si)mn[Si]=bE[Si],Ur[bE.charCodeAt(Si)]=Si;var Si,tN;Ur[45]=62;Ur[95]=63;function rN(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var o=r===e?0:4-r%4;return[r,o]}a(rN,"getLens");function wG(t){var e=rN(t),r=e[0],o=e[1];return(r+o)*3/4-o}a(wG,"byteLength");function IG(t,e,r){return(e+r)*3/4-r}a(IG,"_byteLength");function CG(t){var e,r=rN(t),o=r[0],n=r[1],i=new AG(IG(t,o,n)),s=0,u=n>0?o-4:o,l;for(l=0;l<u;l+=4)e=Ur[t.charCodeAt(l)]<<18|Ur[t.charCodeAt(l+1)]<<12|Ur[t.charCodeAt(l+2)]<<6|Ur[t.charCodeAt(l+3)],i[s++]=e>>16&255,i[s++]=e>>8&255,i[s++]=e&255;return n===2&&(e=Ur[t.charCodeAt(l)]<<2|Ur[t.charCodeAt(l+1)]>>4,i[s++]=e&255),n===1&&(e=Ur[t.charCodeAt(l)]<<10|Ur[t.charCodeAt(l+1)]<<4|Ur[t.charCodeAt(l+2)]>>2,i[s++]=e>>8&255,i[s++]=e&255),i}a(CG,"toByteArray");function RG(t){return mn[t>>18&63]+mn[t>>12&63]+mn[t>>6&63]+mn[t&63]}a(RG,"tripletToBase64");function OG(t,e,r){for(var o,n=[],i=e;i<r;i+=3)o=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(t[i+2]&255),n.push(RG(o));return n.join("")}a(OG,"encodeChunk");function kG(t){for(var e,r=t.length,o=r%3,n=[],i=16383,s=0,u=r-o;s<u;s+=i)n.push(OG(t,s,s+i>u?u:s+i));return o===1?(e=t[r-1],n.push(mn[e>>2]+mn[e<<4&63]+"==")):o===2&&(e=(t[r-2]<<8)+t[r-1],n.push(mn[e>>10]+mn[e>>4&63]+mn[e<<2&63]+"=")),n.join("")}a(kG,"fromByteArray")});var PE=z(EE=>{"use strict";Object.defineProperty(EE,"__esModule",{value:!0});EE.fromArrayBufferToHex=NG;function NG(t){return Array.from(new Uint8Array(t)).map(r=>r.toString(16).padStart(2,"0")).join("")}a(NG,"fromArrayBufferToHex")});var oN=z(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});rm.BrowserCrypto=void 0;var Fa=nN(),$G=PE(),SE=class t{static{a(this,"BrowserCrypto")}constructor(){if(typeof window>"u"||window.crypto===void 0||window.crypto.subtle===void 0)throw new Error("SubtleCrypto not found. Make sure it's an https:// website.")}async sha256DigestBase64(e){let r=new TextEncoder().encode(e),o=await window.crypto.subtle.digest("SHA-256",r);return Fa.fromByteArray(new Uint8Array(o))}randomBytesBase64(e){let r=new Uint8Array(e);return window.crypto.getRandomValues(r),Fa.fromByteArray(r)}static padBase64(e){for(;e.length%4!==0;)e+="=";return e}async verify(e,r,o){let n={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},i=new TextEncoder().encode(r),s=Fa.toByteArray(t.padBase64(o)),u=await window.crypto.subtle.importKey("jwk",e,n,!0,["verify"]);return await window.crypto.subtle.verify(n,u,s,i)}async sign(e,r){let o={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},n=new TextEncoder().encode(r),i=await window.crypto.subtle.importKey("jwk",e,o,!0,["sign"]),s=await window.crypto.subtle.sign(o,i,n);return Fa.fromByteArray(new Uint8Array(s))}decodeBase64StringUtf8(e){let r=Fa.toByteArray(t.padBase64(e));return new TextDecoder().decode(r)}encodeBase64StringUtf8(e){let r=new TextEncoder().encode(e);return Fa.fromByteArray(r)}async sha256DigestHex(e){let r=new TextEncoder().encode(e),o=await window.crypto.subtle.digest("SHA-256",r);return(0,$G.fromArrayBufferToHex)(o)}async signWithHmacSha256(e,r){let o=typeof e=="string"?e:String.fromCharCode(...new Uint16Array(e)),n=new TextEncoder,i=await window.crypto.subtle.importKey("raw",n.encode(o),{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]);return window.crypto.subtle.sign("HMAC",i,n.encode(r))}};rm.BrowserCrypto=SE});var iN=z(nm=>{"use strict";Object.defineProperty(nm,"__esModule",{value:!0});nm.NodeCrypto=void 0;var Ba=require("crypto"),xE=class{static{a(this,"NodeCrypto")}async sha256DigestBase64(e){return Ba.createHash("sha256").update(e).digest("base64")}randomBytesBase64(e){return Ba.randomBytes(e).toString("base64")}async verify(e,r,o){let n=Ba.createVerify("RSA-SHA256");return n.update(r),n.end(),n.verify(e,o,"base64")}async sign(e,r){let o=Ba.createSign("RSA-SHA256");return o.update(r),o.end(),o.sign(e,"base64")}decodeBase64StringUtf8(e){return Buffer.from(e,"base64").toString("utf-8")}encodeBase64StringUtf8(e){return Buffer.from(e,"utf-8").toString("base64")}async sha256DigestHex(e){return Ba.createHash("sha256").update(e).digest("hex")}async signWithHmacSha256(e,r){let o=typeof e=="string"?e:DG(e);return zG(Ba.createHmac("sha256",o).update(r).digest())}};nm.NodeCrypto=xE;function zG(t){return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}a(zG,"toArrayBuffer");function DG(t){return Buffer.from(t)}a(DG,"toBuffer")});var Lu=z(Gn=>{"use strict";var UG=Gn&&Gn.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),MG=Gn&&Gn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&UG(e,t,r)};Object.defineProperty(Gn,"__esModule",{value:!0});Gn.createCrypto=FG;Gn.hasBrowserCrypto=aN;var LG=oN(),jG=iN();MG(PE(),Gn);function FG(){return aN()?new LG.BrowserCrypto:new jG.NodeCrypto}a(FG,"createCrypto");function aN(){return typeof window<"u"&&typeof window.crypto<"u"&&typeof window.crypto.subtle<"u"}a(aN,"hasBrowserCrypto")});var qa=z((TE,cN)=>{var om=require("buffer"),hn=om.Buffer;function sN(t,e){for(var r in t)e[r]=t[r]}a(sN,"copyProps");hn.from&&hn.alloc&&hn.allocUnsafe&&hn.allocUnsafeSlow?cN.exports=om:(sN(om,TE),TE.Buffer=xi);function xi(t,e,r){return hn(t,e,r)}a(xi,"SafeBuffer");xi.prototype=Object.create(hn.prototype);sN(hn,xi);xi.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return hn(t,e,r)};xi.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var o=hn(t);return e!==void 0?typeof r=="string"?o.fill(e,r):o.fill(e):o.fill(0),o};xi.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return hn(t)};xi.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return om.SlowBuffer(t)}});var lN=z((ole,uN)=>{"use strict";function AE(t){var e=(t/8|0)+(t%8===0?0:1);return e}a(AE,"getParamSize");var BG={ES256:AE(256),ES384:AE(384),ES512:AE(521)};function qG(t){var e=BG[t];if(e)return e;throw new Error('Unknown algorithm "'+t+'"')}a(qG,"getParamBytesForAlg");uN.exports=qG});var wE=z((ale,gN)=>{"use strict";var im=qa().Buffer,pN=lN(),am=128,fN=0,GG=32,VG=16,HG=2,mN=VG|GG|fN<<6,sm=HG|fN<<6;function ZG(t){return t.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}a(ZG,"base64Url");function hN(t){if(im.isBuffer(t))return t;if(typeof t=="string")return im.from(t,"base64");throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}a(hN,"signatureAsBuffer");function WG(t,e){t=hN(t);var r=pN(e),o=r+1,n=t.length,i=0;if(t[i++]!==mN)throw new Error('Could not find expected "seq"');var s=t[i++];if(s===(am|1)&&(s=t[i++]),n-i<s)throw new Error('"seq" specified length of "'+s+'", only "'+(n-i)+'" remaining');if(t[i++]!==sm)throw new Error('Could not find expected "int" for "r"');var u=t[i++];if(n-i-2<u)throw new Error('"r" specified length of "'+u+'", only "'+(n-i-2)+'" available');if(o<u)throw new Error('"r" specified length of "'+u+'", max of "'+o+'" is acceptable');var l=i;if(i+=u,t[i++]!==sm)throw new Error('Could not find expected "int" for "s"');var p=t[i++];if(n-i!==p)throw new Error('"s" specified length of "'+p+'", expected "'+(n-i)+'"');if(o<p)throw new Error('"s" specified length of "'+p+'", max of "'+o+'" is acceptable');var f=i;if(i+=p,i!==n)throw new Error('Expected to consume entire buffer, but "'+(n-i)+'" bytes remain');var y=r-u,m=r-p,h=im.allocUnsafe(y+u+m+p);for(i=0;i<y;++i)h[i]=0;t.copy(h,i,l+Math.max(-y,0),l+u),i=r;for(var _=i;i<_+m;++i)h[i]=0;return t.copy(h,i,f+Math.max(-m,0),f+p),h=h.toString("base64"),h=ZG(h),h}a(WG,"derToJose");function dN(t,e,r){for(var o=0;e+o<r&&t[e+o]===0;)++o;var n=t[e+o]>=am;return n&&--o,o}a(dN,"countPadding");function KG(t,e){t=hN(t);var r=pN(e),o=t.length;if(o!==r*2)throw new TypeError('"'+e+'" signatures must be "'+r*2+'" bytes, saw "'+o+'"');var n=dN(t,0,r),i=dN(t,r,t.length),s=r-n,u=r-i,l=2+s+1+1+u,p=l<am,f=im.allocUnsafe((p?2:3)+l),y=0;return f[y++]=mN,p?f[y++]=l:(f[y++]=am|1,f[y++]=l&255),f[y++]=sm,f[y++]=s,n<0?(f[y++]=0,y+=t.copy(f,y,0,r)):y+=t.copy(f,y,n,r),f[y++]=sm,f[y++]=u,i<0?(f[y++]=0,t.copy(f,y,r)):t.copy(f,y,r+i),f}a(KG,"joseToDer");gN.exports={derToJose:WG,joseToDer:KG}});var tn=z(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.LRUCache=void 0;Vn.snakeToCamel=_N;Vn.originalOrCamelOptions=QG;Vn.removeUndefinedValuesInObject=eV;Vn.isValidFile=tV;Vn.getWellKnownCertificateConfigFileLocation=rV;var JG=require("fs"),XG=require("os"),IE=require("path"),YG="certificate_config.json",yN="gcloud";function _N(t){return t.replace(/([_][^_])/g,e=>e.slice(1).toUpperCase())}a(_N,"snakeToCamel");function QG(t){function e(r){let o=t||{};return o[r]??o[_N(r)]}return a(e,"get"),{get:e}}a(QG,"originalOrCamelOptions");var CE=class{static{a(this,"LRUCache")}capacity;#e=new Map;maxAge;constructor(e){this.capacity=e.capacity,this.maxAge=e.maxAge}#t(e,r){this.#e.delete(e),this.#e.set(e,{value:r,lastAccessed:Date.now()})}set(e,r){this.#t(e,r),this.#r()}get(e){let r=this.#e.get(e);if(r)return this.#t(e,r.value),this.#r(),r.value}#r(){let e=this.maxAge?Date.now()-this.maxAge:0,r=this.#e.entries().next();for(;!r.done&&(this.#e.size>this.capacity||r.value[1].lastAccessed<e);)this.#e.delete(r.value[0]),r=this.#e.entries().next()}};Vn.LRUCache=CE;function eV(t){return Object.entries(t).forEach(([e,r])=>{(r===void 0||r==="undefined")&&delete t[e]}),t}a(eV,"removeUndefinedValuesInObject");async function tV(t){try{return(await JG.promises.lstat(t)).isFile()}catch{return!1}}a(tV,"isValidFile");function rV(){let t=process.env.CLOUDSDK_CONFIG||(nV()?IE.join(process.env.APPDATA||"",yN):IE.join(process.env.HOME||"",".config",yN));return IE.join(t,YG)}a(rV,"getWellKnownCertificateConfigFileLocation");function nV(){return XG.platform().startsWith("win")}a(nV,"_isWindows")});var vN=z((lle,oV)=>{oV.exports={name:"google-auth-library",version:"10.5.0",author:"Google Inc.",description:"Google APIs Authentication Client Library for Node.js",engines:{node:">=18"},main:"./build/src/index.js",types:"./build/src/index.d.ts",repository:"googleapis/google-auth-library-nodejs.git",keywords:["google","api","google apis","client","client library"],dependencies:{"base64-js":"^1.3.0","ecdsa-sig-formatter":"^1.0.11",gaxios:"^7.0.0","gcp-metadata":"^8.0.0","google-logging-utils":"^1.0.0",gtoken:"^8.0.0",jws:"^4.0.0"},devDependencies:{"@types/base64-js":"^1.2.5","@types/jws":"^3.1.0","@types/mocha":"^10.0.10","@types/mv":"^2.1.0","@types/ncp":"^2.0.1","@types/node":"^22.0.0","@types/sinon":"^17.0.0","assert-rejects":"^1.0.0",c8:"^10.0.0",codecov:"^3.0.2",gts:"^6.0.0","is-docker":"^3.0.0",jsdoc:"^4.0.0","jsdoc-fresh":"^5.0.0","jsdoc-region-tag":"^4.0.0",karma:"^6.0.0","karma-chrome-launcher":"^3.0.0","karma-coverage":"^2.0.0","karma-firefox-launcher":"^2.0.0","karma-mocha":"^2.0.0","karma-sourcemap-loader":"^0.4.0","karma-webpack":"^5.0.1",keypair:"^1.0.4",mocha:"^11.1.0",mv:"^2.1.1",ncp:"^2.0.0",nock:"^14.0.5","null-loader":"^4.0.0",puppeteer:"^24.0.0",sinon:"^21.0.0","ts-loader":"^8.0.0",typescript:"5.8.2",webpack:"^5.21.2","webpack-cli":"^4.0.0"},files:["build/src","!build/src/**/*.map"],scripts:{test:"c8 mocha build/test",clean:"gts clean",prepare:"npm run compile",lint:"gts check --no-inline-config",compile:"tsc -p .",fix:"gts fix",pretest:"npm run compile -- --sourceMap",docs:"jsdoc -c .jsdoc.js","samples-setup":"cd samples/ && npm link ../ && npm run setup && cd ../","samples-test":"cd samples/ && npm link ../ && npm test && cd ../","system-test":"mocha build/system-test --timeout 60000","presystem-test":"npm run compile -- --sourceMap",webpack:"webpack","browser-test":"karma start","docs-test":"echo 'disabled until linkinator is fixed'","predocs-test":"npm run docs",prelint:"cd samples; npm link ../; npm install"},license:"Apache-2.0"}});var RE=z(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.USER_AGENT=ko.PRODUCT_NAME=ko.pkg=void 0;var bN=vN();ko.pkg=bN;var EN="google-api-nodejs-client";ko.PRODUCT_NAME=EN;var iV=`${EN}/${bN.version}`;ko.USER_AGENT=iV});var Er=z(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.AuthClient=rn.DEFAULT_EAGER_REFRESH_THRESHOLD_MILLIS=rn.DEFAULT_UNIVERSE=void 0;var aV=require("events"),OE=bt(),sV=tn(),cV=gE(),kE=RE();rn.DEFAULT_UNIVERSE="googleapis.com";rn.DEFAULT_EAGER_REFRESH_THRESHOLD_MILLIS=300*1e3;var NE=class t extends aV.EventEmitter{static{a(this,"AuthClient")}apiKey;projectId;quotaProjectId;transporter;credentials={};eagerRefreshThresholdMillis=rn.DEFAULT_EAGER_REFRESH_THRESHOLD_MILLIS;forceRefreshOnFailure=!1;universeDomain=rn.DEFAULT_UNIVERSE;static RequestMethodNameSymbol=Symbol("request method name");static RequestLogIdSymbol=Symbol("request log id");constructor(e={}){super();let r=(0,sV.originalOrCamelOptions)(e);this.apiKey=e.apiKey,this.projectId=r.get("project_id")??null,this.quotaProjectId=r.get("quota_project_id"),this.credentials=r.get("credentials")??{},this.universeDomain=r.get("universe_domain")??rn.DEFAULT_UNIVERSE,this.transporter=e.transporter??new OE.Gaxios(e.transporterOptions),r.get("useAuthRequestParameters")!==!1&&(this.transporter.interceptors.request.add(t.DEFAULT_REQUEST_INTERCEPTOR),this.transporter.interceptors.response.add(t.DEFAULT_RESPONSE_INTERCEPTOR)),e.eagerRefreshThresholdMillis&&(this.eagerRefreshThresholdMillis=e.eagerRefreshThresholdMillis),this.forceRefreshOnFailure=e.forceRefreshOnFailure??!1}fetch(...e){let r=e[0],o=e[1],n,i=new Headers;return typeof r=="string"?n=new URL(r):r instanceof URL?n=r:r&&r.url&&(n=new URL(r.url)),r&&typeof r=="object"&&"headers"in r&&OE.Gaxios.mergeHeaders(i,r.headers),o&&OE.Gaxios.mergeHeaders(i,new Headers(o.headers)),typeof r=="object"&&!(r instanceof URL)?this.request({...o,...r,headers:i,url:n}):this.request({...o,headers:i,url:n})}setCredentials(e){this.credentials=e}addSharedMetadataHeaders(e){return!e.has("x-goog-user-project")&&this.quotaProjectId&&e.set("x-goog-user-project",this.quotaProjectId),e}addUserProjectAndAuthHeaders(e,r){let o=r.get("x-goog-user-project"),n=r.get("authorization");return o&&e.set("x-goog-user-project",o),n&&e.set("authorization",n),e}static log=(0,cV.log)("auth");static DEFAULT_REQUEST_INTERCEPTOR={resolved:a(async e=>{if(!e.headers.has("x-goog-api-client")){let o=process.version.replace(/^v/,"");e.headers.set("x-goog-api-client",`gl-node/${o}`)}let r=e.headers.get("User-Agent");r?r.includes(`${kE.PRODUCT_NAME}/`)||e.headers.set("User-Agent",`${r} ${kE.USER_AGENT}`):e.headers.set("User-Agent",kE.USER_AGENT);try{let o=e,n=o[t.RequestMethodNameSymbol],i=`${Math.floor(Math.random()*1e3)}`;o[t.RequestLogIdSymbol]=i;let s={url:e.url,headers:e.headers};n?t.log.info("%s [%s] request %j",n,i,s):t.log.info("[%s] request %j",i,s)}catch{}return e},"resolved")};static DEFAULT_RESPONSE_INTERCEPTOR={resolved:a(async e=>{try{let r=e.config,o=r[t.RequestMethodNameSymbol],n=r[t.RequestLogIdSymbol];o?t.log.info("%s [%s] response %j",o,n,e.data):t.log.info("[%s] response %j",n,e.data)}catch{}return e},"resolved"),rejected:a(async e=>{try{let r=e.config,o=r[t.RequestMethodNameSymbol],n=r[t.RequestLogIdSymbol];o?t.log.info("%s [%s] error %j",o,n,e.response?.data):t.log.error("[%s] error %j",n,e.response?.data)}catch{}throw e},"rejected")};static setMethodName(e,r){try{let o=e;o[t.RequestMethodNameSymbol]=r}catch{}}static get RETRY_CONFIG(){return{retry:!0,retryConfig:{httpMethodsToRetry:["GET","PUT","POST","HEAD","OPTIONS","DELETE"]}}}};rn.AuthClient=NE});var zE=z(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});cm.LoginTicket=void 0;var $E=class{static{a(this,"LoginTicket")}envelope;payload;constructor(e,r){this.envelope=e,this.payload=r}getEnvelope(){return this.envelope}getPayload(){return this.payload}getUserId(){let e=this.getPayload();return e&&e.sub?e.sub:null}getAttributes(){return{envelope:this.getEnvelope(),payload:this.getPayload()}}};cm.LoginTicket=$E});var Ti=z(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.OAuth2Client=gn.ClientAuthentication=gn.CertificateFormat=gn.CodeChallengeMethod=void 0;var PN=bt(),uV=require("querystring"),lV=require("stream"),dV=wE(),SN=tn(),DE=Lu(),Ga=Er(),pV=zE(),xN;(function(t){t.Plain="plain",t.S256="S256"})(xN||(gn.CodeChallengeMethod=xN={}));var Hn;(function(t){t.PEM="PEM",t.JWK="JWK"})(Hn||(gn.CertificateFormat=Hn={}));var ju;(function(t){t.ClientSecretPost="ClientSecretPost",t.ClientSecretBasic="ClientSecretBasic",t.None="None"})(ju||(gn.ClientAuthentication=ju={}));var UE=class t extends Ga.AuthClient{static{a(this,"OAuth2Client")}redirectUri;certificateCache={};certificateExpiry=null;certificateCacheFormat=Hn.PEM;refreshTokenPromises=new Map;endpoints;issuers;clientAuthentication;_clientId;_clientSecret;refreshHandler;constructor(e={},r,o){super(typeof e=="object"?e:{}),typeof e!="object"&&(e={clientId:e,clientSecret:r,redirectUri:o}),this._clientId=e.clientId||e.client_id,this._clientSecret=e.clientSecret||e.client_secret,this.redirectUri=e.redirectUri||e.redirect_uris?.[0],this.endpoints={tokenInfoUrl:"https://oauth2.googleapis.com/tokeninfo",oauth2AuthBaseUrl:"https://accounts.google.com/o/oauth2/v2/auth",oauth2TokenUrl:"https://oauth2.googleapis.com/token",oauth2RevokeUrl:"https://oauth2.googleapis.com/revoke",oauth2FederatedSignonPemCertsUrl:"https://www.googleapis.com/oauth2/v1/certs",oauth2FederatedSignonJwkCertsUrl:"https://www.googleapis.com/oauth2/v3/certs",oauth2IapPublicKeyUrl:"https://www.gstatic.com/iap/verify/public_key",...e.endpoints},this.clientAuthentication=e.clientAuthentication||ju.ClientSecretPost,this.issuers=e.issuers||["accounts.google.com","https://accounts.google.com",this.universeDomain]}static GOOGLE_TOKEN_INFO_URL="https://oauth2.googleapis.com/tokeninfo";static CLOCK_SKEW_SECS_=300;static DEFAULT_MAX_TOKEN_LIFETIME_SECS_=86400;generateAuthUrl(e={}){if(e.code_challenge_method&&!e.code_challenge)throw new Error("If a code_challenge_method is provided, code_challenge must be included.");return e.response_type=e.response_type||"code",e.client_id=e.client_id||this._clientId,e.redirect_uri=e.redirect_uri||this.redirectUri,Array.isArray(e.scope)&&(e.scope=e.scope.join(" ")),this.endpoints.oauth2AuthBaseUrl.toString()+"?"+uV.stringify(e)}generateCodeVerifier(){throw new Error("generateCodeVerifier is removed, please use generateCodeVerifierAsync instead.")}async generateCodeVerifierAsync(){let e=(0,DE.createCrypto)(),o=e.randomBytesBase64(96).replace(/\+/g,"~").replace(/=/g,"_").replace(/\//g,"-"),i=(await e.sha256DigestBase64(o)).split("=")[0].replace(/\+/g,"-").replace(/\//g,"_");return{codeVerifier:o,codeChallenge:i}}getToken(e,r){let o=typeof e=="string"?{code:e}:e;if(r)this.getTokenAsync(o).then(n=>r(null,n.tokens,n.res),n=>r(n,null,n.response));else return this.getTokenAsync(o)}async getTokenAsync(e){let r=this.endpoints.oauth2TokenUrl.toString(),o=new Headers,n={client_id:e.client_id||this._clientId,code_verifier:e.codeVerifier,code:e.code,grant_type:"authorization_code",redirect_uri:e.redirect_uri||this.redirectUri};if(this.clientAuthentication===ju.ClientSecretBasic){let l=Buffer.from(`${this._clientId}:${this._clientSecret}`);o.set("authorization",`Basic ${l.toString("base64")}`)}this.clientAuthentication===ju.ClientSecretPost&&(n.client_secret=this._clientSecret);let i={...t.RETRY_CONFIG,method:"POST",url:r,data:new URLSearchParams((0,SN.removeUndefinedValuesInObject)(n)),headers:o};Ga.AuthClient.setMethodName(i,"getTokenAsync");let s=await this.transporter.request(i),u=s.data;return s.data&&s.data.expires_in&&(u.expiry_date=new Date().getTime()+s.data.expires_in*1e3,delete u.expires_in),this.emit("tokens",u),{tokens:u,res:s}}async refreshToken(e){if(!e)return this.refreshTokenNoCache(e);if(this.refreshTokenPromises.has(e))return this.refreshTokenPromises.get(e);let r=this.refreshTokenNoCache(e).then(o=>(this.refreshTokenPromises.delete(e),o),o=>{throw this.refreshTokenPromises.delete(e),o});return this.refreshTokenPromises.set(e,r),r}async refreshTokenNoCache(e){if(!e)throw new Error("No refresh token is set.");let r=this.endpoints.oauth2TokenUrl.toString(),o={refresh_token:e,client_id:this._clientId,client_secret:this._clientSecret,grant_type:"refresh_token"},n;try{let s={...t.RETRY_CONFIG,method:"POST",url:r,data:new URLSearchParams((0,SN.removeUndefinedValuesInObject)(o))};Ga.AuthClient.setMethodName(s,"refreshTokenNoCache"),n=await this.transporter.request(s)}catch(s){throw s instanceof PN.GaxiosError&&s.message==="invalid_grant"&&s.response?.data&&/ReAuth/i.test(s.response.data.error_description)&&(s.message=JSON.stringify(s.response.data)),s}let i=n.data;return n.data&&n.data.expires_in&&(i.expiry_date=new Date().getTime()+n.data.expires_in*1e3,delete i.expires_in),this.emit("tokens",i),{tokens:i,res:n}}refreshAccessToken(e){if(e)this.refreshAccessTokenAsync().then(r=>e(null,r.credentials,r.res),e);else return this.refreshAccessTokenAsync()}async refreshAccessTokenAsync(){let e=await this.refreshToken(this.credentials.refresh_token),r=e.tokens;return r.refresh_token=this.credentials.refresh_token,this.credentials=r,{credentials:this.credentials,res:e.res}}getAccessToken(e){if(e)this.getAccessTokenAsync().then(r=>e(null,r.token,r.res),e);else return this.getAccessTokenAsync()}async getAccessTokenAsync(){if(!this.credentials.access_token||this.isTokenExpiring()){if(!this.credentials.refresh_token)if(this.refreshHandler){let o=await this.processAndValidateRefreshHandler();if(o?.access_token)return this.setCredentials(o),{token:this.credentials.access_token}}else throw new Error("No refresh token or refresh handler callback is set.");let r=await this.refreshAccessTokenAsync();if(!r.credentials||r.credentials&&!r.credentials.access_token)throw new Error("Could not refresh access token.");return{token:r.credentials.access_token,res:r.res}}else return{token:this.credentials.access_token}}async getRequestHeaders(e){return(await this.getRequestMetadataAsync(e)).headers}async getRequestMetadataAsync(e){let r=this.credentials;if(!r.access_token&&!r.refresh_token&&!this.apiKey&&!this.refreshHandler)throw new Error("No access, refresh token, API key or refresh handler callback is set.");if(r.access_token&&!this.isTokenExpiring()){r.token_type=r.token_type||"Bearer";let u=new Headers({authorization:r.token_type+" "+r.access_token});return{headers:this.addSharedMetadataHeaders(u)}}if(this.refreshHandler){let u=await this.processAndValidateRefreshHandler();if(u?.access_token){this.setCredentials(u);let l=new Headers({authorization:"Bearer "+this.credentials.access_token});return{headers:this.addSharedMetadataHeaders(l)}}}if(this.apiKey)return{headers:new Headers({"X-Goog-Api-Key":this.apiKey})};let o=null,n=null;try{o=await this.refreshToken(r.refresh_token),n=o.tokens}catch(u){let l=u;throw l.response&&(l.response.status===403||l.response.status===404)&&(l.message=`Could not refresh access token: ${l.message}`),l}let i=this.credentials;i.token_type=i.token_type||"Bearer",n.refresh_token=i.refresh_token,this.credentials=n;let s=new Headers({authorization:i.token_type+" "+n.access_token});return{headers:this.addSharedMetadataHeaders(s),res:o.res}}static getRevokeTokenUrl(e){return new t().getRevokeTokenURL(e).toString()}getRevokeTokenURL(e){let r=new URL(this.endpoints.oauth2RevokeUrl);return r.searchParams.append("token",e),r}revokeToken(e,r){let o={...t.RETRY_CONFIG,url:this.getRevokeTokenURL(e).toString(),method:"POST"};if(Ga.AuthClient.setMethodName(o,"revokeToken"),r)this.transporter.request(o).then(n=>r(null,n),r);else return this.transporter.request(o)}revokeCredentials(e){if(e)this.revokeCredentialsAsync().then(r=>e(null,r),e);else return this.revokeCredentialsAsync()}async revokeCredentialsAsync(){let e=this.credentials.access_token;if(this.credentials={},e)return this.revokeToken(e);throw new Error("No access token to revoke.")}request(e,r){if(r)this.requestAsync(e).then(o=>r(null,o),o=>r(o,o.response));else return this.requestAsync(e)}async requestAsync(e,r=!1){try{let o=await this.getRequestMetadataAsync();return e.headers=PN.Gaxios.mergeHeaders(e.headers),this.addUserProjectAndAuthHeaders(e.headers,o.headers),this.apiKey&&e.headers.set("X-Goog-Api-Key",this.apiKey),await this.transporter.request(e)}catch(o){let n=o.response;if(n){let i=n.status,s=this.credentials&&this.credentials.access_token&&this.credentials.refresh_token&&(!this.credentials.expiry_date||this.forceRefreshOnFailure),u=this.credentials&&this.credentials.access_token&&!this.credentials.refresh_token&&(!this.credentials.expiry_date||this.forceRefreshOnFailure)&&this.refreshHandler,l=n.config.data instanceof lV.Readable,p=i===401||i===403;if(!r&&p&&!l&&s)return await this.refreshAccessTokenAsync(),this.requestAsync(e,!0);if(!r&&p&&!l&&u){let f=await this.processAndValidateRefreshHandler();return f?.access_token&&this.setCredentials(f),this.requestAsync(e,!0)}}throw o}}verifyIdToken(e,r){if(r&&typeof r!="function")throw new Error("This method accepts an options object as the first parameter, which includes the idToken, audience, and maxExpiry.");if(r)this.verifyIdTokenAsync(e).then(o=>r(null,o),r);else return this.verifyIdTokenAsync(e)}async verifyIdTokenAsync(e){if(!e.idToken)throw new Error("The verifyIdToken method requires an ID Token");let r=await this.getFederatedSignonCertsAsync();return await this.verifySignedJwtWithCertsAsync(e.idToken,r.certs,e.audience,this.issuers,e.maxExpiry)}async getTokenInfo(e){let{data:r}=await this.transporter.request({...t.RETRY_CONFIG,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded;charset=UTF-8",authorization:`Bearer ${e}`},url:this.endpoints.tokenInfoUrl.toString()}),o=Object.assign({expiry_date:new Date().getTime()+r.expires_in*1e3,scopes:r.scope.split(" ")},r);return delete o.expires_in,delete o.scope,o}getFederatedSignonCerts(e){if(e)this.getFederatedSignonCertsAsync().then(r=>e(null,r.certs,r.res),e);else return this.getFederatedSignonCertsAsync()}async getFederatedSignonCertsAsync(){let e=new Date().getTime(),r=(0,DE.hasBrowserCrypto)()?Hn.JWK:Hn.PEM;if(this.certificateExpiry&&e<this.certificateExpiry.getTime()&&this.certificateCacheFormat===r)return{certs:this.certificateCache,format:r};let o,n;switch(r){case Hn.PEM:n=this.endpoints.oauth2FederatedSignonPemCertsUrl.toString();break;case Hn.JWK:n=this.endpoints.oauth2FederatedSignonJwkCertsUrl.toString();break;default:throw new Error(`Unsupported certificate format ${r}`)}try{let p={...t.RETRY_CONFIG,url:n};Ga.AuthClient.setMethodName(p,"getFederatedSignonCertsAsync"),o=await this.transporter.request(p)}catch(p){throw p instanceof Error&&(p.message=`Failed to retrieve verification certificates: ${p.message}`),p}let i=o?.headers.get("cache-control"),s=-1;if(i){let p=/max-age=(?<maxAge>[0-9]+)/.exec(i)?.groups?.maxAge;p&&(s=Number(p)*1e3)}let u={};switch(r){case Hn.PEM:u=o.data;break;case Hn.JWK:for(let p of o.data.keys)u[p.kid]=p;break;default:throw new Error(`Unsupported certificate format ${r}`)}let l=new Date;return this.certificateExpiry=s===-1?null:new Date(l.getTime()+s),this.certificateCache=u,this.certificateCacheFormat=r,{certs:u,format:r,res:o}}getIapPublicKeys(e){if(e)this.getIapPublicKeysAsync().then(r=>e(null,r.pubkeys,r.res),e);else return this.getIapPublicKeysAsync()}async getIapPublicKeysAsync(){let e,r=this.endpoints.oauth2IapPublicKeyUrl.toString();try{let o={...t.RETRY_CONFIG,url:r};Ga.AuthClient.setMethodName(o,"getIapPublicKeysAsync"),e=await this.transporter.request(o)}catch(o){throw o instanceof Error&&(o.message=`Failed to retrieve verification certificates: ${o.message}`),o}return{pubkeys:e.data,res:e}}verifySignedJwtWithCerts(){throw new Error("verifySignedJwtWithCerts is removed, please use verifySignedJwtWithCertsAsync instead.")}async verifySignedJwtWithCertsAsync(e,r,o,n,i){let s=(0,DE.createCrypto)();i||(i=t.DEFAULT_MAX_TOKEN_LIFETIME_SECS_);let u=e.split(".");if(u.length!==3)throw new Error("Wrong number of segments in token: "+e);let l=u[0]+"."+u[1],p=u[2],f,y;try{f=JSON.parse(s.decodeBase64StringUtf8(u[0]))}catch(L){throw L instanceof Error&&(L.message=`Can't parse token envelope: ${u[0]}': ${L.message}`),L}if(!f)throw new Error("Can't parse token envelope: "+u[0]);try{y=JSON.parse(s.decodeBase64StringUtf8(u[1]))}catch(L){throw L instanceof Error&&(L.message=`Can't parse token payload '${u[0]}`),L}if(!y)throw new Error("Can't parse token payload: "+u[1]);if(!Object.prototype.hasOwnProperty.call(r,f.kid))throw new Error("No pem found for envelope: "+JSON.stringify(f));let m=r[f.kid];if(f.alg==="ES256"&&(p=dV.joseToDer(p,"ES256").toString("base64")),!await s.verify(m,l,p))throw new Error("Invalid token signature: "+e);if(!y.iat)throw new Error("No issue time in token: "+JSON.stringify(y));if(!y.exp)throw new Error("No expiration time in token: "+JSON.stringify(y));let _=Number(y.iat);if(isNaN(_))throw new Error("iat field using invalid format");let P=Number(y.exp);if(isNaN(P))throw new Error("exp field using invalid format");let S=new Date().getTime()/1e3;if(P>=S+i)throw new Error("Expiration time too far in future: "+JSON.stringify(y));let T=_-t.CLOCK_SKEW_SECS_,k=P+t.CLOCK_SKEW_SECS_;if(S<T)throw new Error("Token used too early, "+S+" < "+T+": "+JSON.stringify(y));if(S>k)throw new Error("Token used too late, "+S+" > "+k+": "+JSON.stringify(y));if(n&&n.indexOf(y.iss)<0)throw new Error("Invalid issuer, expected one of ["+n+"], but got "+y.iss);if(typeof o<"u"&&o!==null){let L=y.aud,Y=!1;if(o.constructor===Array?Y=o.indexOf(L)>-1:Y=L===o,!Y)throw new Error("Wrong recipient, payload audience != requiredAudience")}return new pV.LoginTicket(f,y)}async processAndValidateRefreshHandler(){if(this.refreshHandler){let e=await this.refreshHandler();if(!e.access_token)throw new Error("No access token is returned by the refreshHandler callback.");return e}}isTokenExpiring(){let e=this.credentials.expiry_date;return e?e<=new Date().getTime()+this.eagerRefreshThresholdMillis:!1}};gn.OAuth2Client=UE});var LE=z(um=>{"use strict";Object.defineProperty(um,"__esModule",{value:!0});um.Compute=void 0;var fV=bt(),TN=Mu(),mV=Ti(),ME=class extends mV.OAuth2Client{static{a(this,"Compute")}serviceAccountEmail;scopes;constructor(e={}){super(e),this.credentials={expiry_date:1,refresh_token:"compute-placeholder"},this.serviceAccountEmail=e.serviceAccountEmail||"default",this.scopes=Array.isArray(e.scopes)?e.scopes:e.scopes?[e.scopes]:[]}async refreshTokenNoCache(){let e=`service-accounts/${this.serviceAccountEmail}/token`,r;try{let n={property:e};this.scopes.length>0&&(n.params={scopes:this.scopes.join(",")}),r=await TN.instance(n)}catch(n){throw n instanceof fV.GaxiosError&&(n.message=`Could not refresh access token: ${n.message}`,this.wrapError(n)),n}let o=r;return r&&r.expires_in&&(o.expiry_date=new Date().getTime()+r.expires_in*1e3,delete o.expires_in),this.emit("tokens",o),{tokens:o,res:null}}async fetchIdToken(e){let r=`service-accounts/${this.serviceAccountEmail}/identity?format=full&audience=${e}`,o;try{let n={property:r};o=await TN.instance(n)}catch(n){throw n instanceof Error&&(n.message=`Could not fetch ID token: ${n.message}`),n}return o}wrapError(e){let r=e.response;r&&r.status&&(e.status=r.status,r.status===403?e.message="A Forbidden error was returned while attempting to retrieve an access token for the Compute Engine built-in service account. This may be because the Compute Engine instance does not have the correct permission scopes specified: "+e.message:r.status===404&&(e.message="A Not Found error was returned while attempting to retrieve an accesstoken for the Compute Engine built-in service account. This may be because the Compute Engine instance does not have any permission scopes specified: "+e.message))}};um.Compute=ME});var FE=z(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});lm.IdTokenClient=void 0;var hV=Ti(),jE=class extends hV.OAuth2Client{static{a(this,"IdTokenClient")}targetAudience;idTokenProvider;constructor(e){super(e),this.targetAudience=e.targetAudience,this.idTokenProvider=e.idTokenProvider}async getRequestMetadataAsync(){if(!this.credentials.id_token||!this.credentials.expiry_date||this.isTokenExpiring()){let r=await this.idTokenProvider.fetchIdToken(this.targetAudience);this.credentials={id_token:r,expiry_date:this.getIdTokenExpiryDate(r)}}return{headers:new Headers({authorization:"Bearer "+this.credentials.id_token})}}getIdTokenExpiryDate(e){let r=e.split(".")[1];if(r)return JSON.parse(Buffer.from(r,"base64").toString("ascii")).exp*1e3}};lm.IdTokenClient=jE});var BE=z(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.GCPEnv=void 0;Va.clear=gV;Va.getEnv=yV;var AN=Mu(),yn;(function(t){t.APP_ENGINE="APP_ENGINE",t.KUBERNETES_ENGINE="KUBERNETES_ENGINE",t.CLOUD_FUNCTIONS="CLOUD_FUNCTIONS",t.COMPUTE_ENGINE="COMPUTE_ENGINE",t.CLOUD_RUN="CLOUD_RUN",t.CLOUD_RUN_JOBS="CLOUD_RUN_JOBS",t.NONE="NONE"})(yn||(Va.GCPEnv=yn={}));var Fu;function gV(){Fu=void 0}a(gV,"clear");async function yV(){return Fu||(Fu=_V(),Fu)}a(yV,"getEnv");async function _V(){let t=yn.NONE;return vV()?t=yn.APP_ENGINE:bV()?t=yn.CLOUD_FUNCTIONS:await xV()?await SV()?t=yn.KUBERNETES_ENGINE:EV()?t=yn.CLOUD_RUN:PV()?t=yn.CLOUD_RUN_JOBS:t=yn.COMPUTE_ENGINE:t=yn.NONE,t}a(_V,"getEnvMemoized");function vV(){return!!(process.env.GAE_SERVICE||process.env.GAE_MODULE_NAME)}a(vV,"isAppEngine");function bV(){return!!(process.env.FUNCTION_NAME||process.env.FUNCTION_TARGET)}a(bV,"isCloudFunction");function EV(){return!!process.env.K_CONFIGURATION}a(EV,"isCloudRun");function PV(){return!!process.env.CLOUD_RUN_JOB}a(PV,"isCloudRunJob");async function SV(){try{return await AN.instance("attributes/cluster-name"),!0}catch{return!1}}a(SV,"isKubernetesEngine");async function xV(){return AN.isAvailable()}a(xV,"isComputeEngine")});var qE=z((xle,wN)=>{var dm=qa().Buffer,TV=require("stream"),AV=require("util");function pm(t){if(this.buffer=null,this.writable=!0,this.readable=!0,!t)return this.buffer=dm.alloc(0),this;if(typeof t.pipe=="function")return this.buffer=dm.alloc(0),t.pipe(this),this;if(t.length||typeof t=="object")return this.buffer=t,this.writable=!1,process.nextTick(function(){this.emit("end",t),this.readable=!1,this.emit("close")}.bind(this)),this;throw new TypeError("Unexpected data type ("+typeof t+")")}a(pm,"DataStream");AV.inherits(pm,TV);pm.prototype.write=a(function(e){this.buffer=dm.concat([this.buffer,dm.from(e)]),this.emit("data",e)},"write");pm.prototype.end=a(function(e){e&&this.write(e),this.emit("end",e),this.emit("close"),this.writable=!1,this.readable=!1},"end");wN.exports=pm});var CN=z((Ale,IN)=>{"use strict";var Bu=require("buffer").Buffer,GE=require("buffer").SlowBuffer;IN.exports=fm;function fm(t,e){if(!Bu.isBuffer(t)||!Bu.isBuffer(e)||t.length!==e.length)return!1;for(var r=0,o=0;o<t.length;o++)r|=t[o]^e[o];return r===0}a(fm,"bufferEq");fm.install=function(){Bu.prototype.equal=GE.prototype.equal=a(function(e){return fm(this,e)},"equal")};var wV=Bu.prototype.equal,IV=GE.prototype.equal;fm.restore=function(){Bu.prototype.equal=wV,GE.prototype.equal=IV}});var WE=z((Ile,MN)=>{var Za=qa().Buffer,Mr=require("crypto"),ON=wE(),RN=require("util"),CV=`"%s" is not a valid algorithm.
39
39
  Supported algorithms are:
40
- "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".`,qu="secret must be a string or buffer",Ha="key must be a string or a buffer",OV="key must be a string, a buffer or an object",HP=typeof Mr.createPublicKey=="function";HP&&(Ha+=" or a KeyObject",qu+="or a KeyObject");function NN(t){if(!Za.isBuffer(t)&&typeof t!="string"&&(!HP||typeof t!="object"||typeof t.type!="string"||typeof t.asymmetricKeyType!="string"||typeof t.export!="function"))throw nn(Ha)}a(NN,"checkIsPublicKey");function $N(t){if(!Za.isBuffer(t)&&typeof t!="string"&&typeof t!="object")throw nn(OV)}a($N,"checkIsPrivateKey");function kV(t){if(!Za.isBuffer(t)){if(typeof t=="string")return t;if(!HP||typeof t!="object"||t.type!=="secret"||typeof t.export!="function")throw nn(qu)}}a(kV,"checkIsSecretKey");function ZP(t){return t.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}a(ZP,"fromBase64");function zN(t){t=t.toString();var e=4-t.length%4;if(e!==4)for(var r=0;r<e;++r)t+="=";return t.replace(/\-/g,"+").replace(/_/g,"/")}a(zN,"toBase64");function nn(t){var e=[].slice.call(arguments,1),r=ON.format.bind(ON,t).apply(null,e);return new TypeError(r)}a(nn,"typeError");function NV(t){return Za.isBuffer(t)||typeof t=="string"}a(NV,"bufferOrString");function Gu(t){return NV(t)||(t=JSON.stringify(t)),t}a(Gu,"normalizeInput");function DN(t){return a(function(r,o){kV(o),r=Gu(r);var n=Mr.createHmac("sha"+t,o),i=(n.update(r),n.digest("base64"));return ZP(i)},"sign")}a(DN,"createHmacSigner");var VP,$V="timingSafeEqual"in Mr?a(function(e,r){return e.byteLength!==r.byteLength?!1:Mr.timingSafeEqual(e,r)},"timingSafeEqual"):a(function(e,r){return VP||(VP=RN()),VP(e,r)},"timingSafeEqual");function zV(t){return a(function(r,o,n){var i=DN(t)(r,n);return $V(Za.from(o),Za.from(i))},"verify")}a(zV,"createHmacVerifier");function UN(t){return a(function(r,o){$N(o),r=Gu(r);var n=Mr.createSign("RSA-SHA"+t),i=(n.update(r),n.sign(o,"base64"));return ZP(i)},"sign")}a(UN,"createKeySigner");function MN(t){return a(function(r,o,n){NN(n),r=Gu(r),o=zN(o);var i=Mr.createVerify("RSA-SHA"+t);return i.update(r),i.verify(n,o,"base64")},"verify")}a(MN,"createKeyVerifier");function DV(t){return a(function(r,o){$N(o),r=Gu(r);var n=Mr.createSign("RSA-SHA"+t),i=(n.update(r),n.sign({key:o,padding:Mr.constants.RSA_PKCS1_PSS_PADDING,saltLength:Mr.constants.RSA_PSS_SALTLEN_DIGEST},"base64"));return ZP(i)},"sign")}a(DV,"createPSSKeySigner");function UV(t){return a(function(r,o,n){NN(n),r=Gu(r),o=zN(o);var i=Mr.createVerify("RSA-SHA"+t);return i.update(r),i.verify({key:n,padding:Mr.constants.RSA_PKCS1_PSS_PADDING,saltLength:Mr.constants.RSA_PSS_SALTLEN_DIGEST},o,"base64")},"verify")}a(UV,"createPSSKeyVerifier");function MV(t){var e=UN(t);return a(function(){var o=e.apply(null,arguments);return o=kN.derToJose(o,"ES"+t),o},"sign")}a(MV,"createECDSASigner");function LV(t){var e=MN(t);return a(function(o,n,i){n=kN.joseToDer(n,"ES"+t).toString("base64");var s=e(o,n,i);return s},"verify")}a(LV,"createECDSAVerifer");function jV(){return a(function(){return""},"sign")}a(jV,"createNoneSigner");function FV(){return a(function(e,r){return r===""},"verify")}a(FV,"createNoneVerifier");LN.exports=a(function(e){var r={hs:DN,rs:UN,ps:DV,es:MV,none:jV},o={hs:zV,rs:MN,ps:UV,es:LV,none:FV},n=e.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/);if(!n)throw nn(RV,e);var i=(n[1]||n[3]).toLowerCase(),s=n[2];return{sign:r[i](s),verify:o[i](s)}},"jwa")});var KP=z((Ole,jN)=>{var BV=require("buffer").Buffer;jN.exports=a(function(e){return typeof e=="string"?e:typeof e=="number"||BV.isBuffer(e)?e.toString():JSON.stringify(e)},"toString")});var HN=z((Nle,VN)=>{var qV=qa().Buffer,FN=qP(),GV=WP(),VV=require("stream"),BN=KP(),JP=require("util");function qN(t,e){return qV.from(t,e).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}a(qN,"base64url");function HV(t,e,r){r=r||"utf8";var o=qN(BN(t),"binary"),n=qN(BN(e),r);return JP.format("%s.%s",o,n)}a(HV,"jwsSecuredInput");function GN(t){var e=t.header,r=t.payload,o=t.secret||t.privateKey,n=t.encoding,i=GV(e.alg),s=HV(e,r,n),u=i.sign(s,o);return JP.format("%s.%s",s,u)}a(GN,"jwsSign");function mm(t){var e=t.secret;if(e=e??t.privateKey,e=e??t.key,/^hs/i.test(t.header.alg)===!0&&e==null)throw new TypeError("secret must be a string or buffer or a KeyObject");var r=new FN(e);this.readable=!0,this.header=t.header,this.encoding=t.encoding,this.secret=this.privateKey=this.key=r,this.payload=new FN(t.payload),this.secret.once("close",function(){!this.payload.writable&&this.readable&&this.sign()}.bind(this)),this.payload.once("close",function(){!this.secret.writable&&this.readable&&this.sign()}.bind(this))}a(mm,"SignStream");JP.inherits(mm,VV);mm.prototype.sign=a(function(){try{var e=GN({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});return this.emit("done",e),this.emit("data",e),this.emit("end"),this.readable=!1,e}catch(r){this.readable=!1,this.emit("error",r),this.emit("close")}},"sign");mm.sign=GN;VN.exports=mm});var r$=z((zle,t$)=>{var WN=qa().Buffer,ZN=qP(),ZV=WP(),WV=require("stream"),KN=KP(),KV=require("util"),JV=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function XV(t){return Object.prototype.toString.call(t)==="[object Object]"}a(XV,"isObject");function YV(t){if(XV(t))return t;try{return JSON.parse(t)}catch{return}}a(YV,"safeJsonParse");function JN(t){var e=t.split(".",1)[0];return YV(WN.from(e,"base64").toString("binary"))}a(JN,"headerFromJWS");function QV(t){return t.split(".",2).join(".")}a(QV,"securedInputFromJWS");function XN(t){return t.split(".")[2]}a(XN,"signatureFromJWS");function e2(t,e){e=e||"utf8";var r=t.split(".")[1];return WN.from(r,"base64").toString(e)}a(e2,"payloadFromJWS");function YN(t){return JV.test(t)&&!!JN(t)}a(YN,"isValidJws");function QN(t,e,r){if(!e){var o=new Error("Missing algorithm parameter for jws.verify");throw o.code="MISSING_ALGORITHM",o}t=KN(t);var n=XN(t),i=QV(t),s=ZV(e);return s.verify(i,n,r)}a(QN,"jwsVerify");function e$(t,e){if(e=e||{},t=KN(t),!YN(t))return null;var r=JN(t);if(!r)return null;var o=e2(t);return(r.typ==="JWT"||e.json)&&(o=JSON.parse(o,e.encoding)),{header:r,payload:o,signature:XN(t)}}a(e$,"jwsDecode");function Wa(t){t=t||{};var e=t.secret;if(e=e??t.publicKey,e=e??t.key,/^hs/i.test(t.algorithm)===!0&&e==null)throw new TypeError("secret must be a string or buffer or a KeyObject");var r=new ZN(e);this.readable=!0,this.algorithm=t.algorithm,this.encoding=t.encoding,this.secret=this.publicKey=this.key=r,this.signature=new ZN(t.signature),this.secret.once("close",function(){!this.signature.writable&&this.readable&&this.verify()}.bind(this)),this.signature.once("close",function(){!this.secret.writable&&this.readable&&this.verify()}.bind(this))}a(Wa,"VerifyStream");KV.inherits(Wa,WV);Wa.prototype.verify=a(function(){try{var e=QN(this.signature.buffer,this.algorithm,this.key.buffer),r=e$(this.signature.buffer,this.encoding);return this.emit("done",e,r),this.emit("data",e),this.emit("end"),this.readable=!1,e}catch(o){this.readable=!1,this.emit("error",o),this.emit("close")}},"verify");Wa.decode=e$;Wa.isValid=YN;Wa.verify=QN;t$.exports=Wa});var XP=z(No=>{var n$=HN(),hm=r$(),t2=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"];No.ALGORITHMS=t2;No.sign=n$.sign;No.verify=hm.verify;No.decode=hm.decode;No.isValid=hm.isValid;No.createSign=a(function(e){return new n$(e)},"createSign");No.createVerify=a(function(e){return new hm(e)},"createVerify")});var _$=z(ym=>{"use strict";Object.defineProperty(ym,"__esModule",{value:!0});ym.GoogleToken=void 0;var o$=gm(require("fs")),r2=bt(),n2=gm(XP()),o2=gm(require("path")),i2=require("util");function gm(t,e){if(typeof WeakMap=="function")var r=new WeakMap,o=new WeakMap;return(gm=a(function(i,s){if(!s&&i&&i.__esModule)return i;var u,l,p={__proto__:null,default:i};if(i===null||Zn(i)!="object"&&typeof i!="function")return p;if(u=s?o:r){if(u.has(i))return u.get(i);u.set(i,p)}for(var f in i)f!=="default"&&{}.hasOwnProperty.call(i,f)&&((l=(u=Object.defineProperty)&&Object.getOwnPropertyDescriptor(i,f))&&(l.get||l.set)?u(p,f,l):p[f]=i[f]);return p},"_interopRequireWildcard"))(t,e)}a(gm,"_interopRequireWildcard");function Zn(t){"@babel/helpers - typeof";return Zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zn(t)}a(Zn,"_typeof");function a2(t,e){f$(t,e),e.add(t)}a(a2,"_classPrivateMethodInitSpec");function s2(t,e,r){f$(t,e),e.set(t,r)}a(s2,"_classPrivateFieldInitSpec");function f$(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}a(f$,"_checkPrivateRedeclaration");function i$(t,e,r){return t.set(on(t,e),r),r}a(i$,"_classPrivateFieldSet");function a$(t,e){return t.get(on(t,e))}a(a$,"_classPrivateFieldGet");function on(t,e,r){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}a(on,"_assertClassBrand");function s$(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,g$(o.key),o)}}a(s$,"_defineProperties");function m$(t,e,r){return e&&s$(t.prototype,e),r&&s$(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}a(m$,"_createClass");function h$(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}a(h$,"_classCallCheck");function c2(t,e,r){return e=Wu(e),u2(t,nE()?Reflect.construct(e,r||[],Wu(t).constructor):e.apply(t,r))}a(c2,"_callSuper");function u2(t,e){if(e&&(Zn(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l2(t)}a(u2,"_possibleConstructorReturn");function l2(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}a(l2,"_assertThisInitialized");function d2(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Zu(t,e)}a(d2,"_inherits");function YP(t){var e=typeof Map=="function"?new Map:void 0;return YP=a(function(o){if(o===null||!f2(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(o))return e.get(o);e.set(o,n)}function n(){return p2(o,arguments,Wu(this).constructor)}return a(n,"Wrapper"),n.prototype=Object.create(o.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Zu(n,o)},"_wrapNativeSuper"),YP(t)}a(YP,"_wrapNativeSuper");function p2(t,e,r){if(nE())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var n=new(t.bind.apply(t,o));return r&&Zu(n,r.prototype),n}a(p2,"_construct");function nE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nE=a(function(){return!!t},"_isNativeReflectConstruct"))()}a(nE,"_isNativeReflectConstruct");function f2(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch{return typeof t=="function"}}a(f2,"_isNativeFunction");function Zu(t,e){return Zu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Zu(t,e)}a(Zu,"_setPrototypeOf");function Wu(t){return Wu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Wu(t)}a(Wu,"_getPrototypeOf");function Er(t,e,r){return(e=g$(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}a(Er,"_defineProperty");function g$(t){var e=m2(t,"string");return Zn(e)=="symbol"?e:e+""}a(g$,"_toPropertyKey");function m2(t,e){if(Zn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(Zn(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}a(m2,"_toPrimitive");function xr(){var t,e,r=typeof Symbol=="function"?Symbol:{},o=r.iterator||"@@iterator",n=r.toStringTag||"@@toStringTag";function i(h,_,E,S){var T=_&&_.prototype instanceof u?_:u,k=Object.create(T.prototype);return Sr(k,"_invoke",(function(L,Y,H){var X,re,ce,ee=0,Le=H||[],ue=!1,K={p:0,n:0,v:t,a:Z,f:Z.bind(t,4),d:a(function(Q,pe){return X=Q,re=0,ce=t,K.n=pe,s},"d")};function Z(oe,Q){for(re=oe,ce=Q,e=0;!ue&&ee&&!pe&&e<Le.length;e++){var pe,me=Le[e],ze=K.p,je=me[2];oe>3?(pe=je===Q)&&(ce=me[(re=me[4])?5:(re=3,3)],me[4]=me[5]=t):me[0]<=ze&&((pe=oe<2&&ze<me[1])?(re=0,K.v=Q,K.n=me[1]):ze<je&&(pe=oe<3||me[0]>Q||Q>je)&&(me[4]=oe,me[5]=Q,K.n=je,re=0))}if(pe||oe>1)return s;throw ue=!0,Q}return a(Z,"d"),function(oe,Q,pe){if(ee>1)throw TypeError("Generator is already running");for(ue&&Q===1&&Z(Q,pe),re=Q,ce=pe;(e=re<2?t:ce)||!ue;){X||(re?re<3?(re>1&&(K.n=-1),Z(re,ce)):K.n=ce:K.v=ce);try{if(ee=2,X){if(re||(oe="next"),e=X[oe]){if(!(e=e.call(X,ce)))throw TypeError("iterator result is not an object");if(!e.done)return e;ce=e.value,re<2&&(re=0)}else re===1&&(e=X.return)&&e.call(X),re<2&&(ce=TypeError("The iterator does not provide a '"+oe+"' method"),re=1);X=t}else if((e=(ue=K.n<0)?ce:L.call(Y,K))!==s)break}catch(me){X=t,re=1,ce=me}finally{ee=1}}return{value:e,done:ue}}})(h,E,S),!0),k}a(i,"i");var s={};function u(){}a(u,"Generator");function l(){}a(l,"GeneratorFunction");function p(){}a(p,"GeneratorFunctionPrototype"),e=Object.getPrototypeOf;var f=[][o]?e(e([][o]())):(Sr(e={},o,function(){return this}),e),y=p.prototype=u.prototype=Object.create(f);function m(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,p):(h.__proto__=p,Sr(h,n,"GeneratorFunction")),h.prototype=Object.create(y),h}return a(m,"f"),l.prototype=p,Sr(y,"constructor",p),Sr(p,"constructor",l),l.displayName="GeneratorFunction",Sr(p,n,"GeneratorFunction"),Sr(y),Sr(y,n,"Generator"),Sr(y,o,function(){return this}),Sr(y,"toString",function(){return"[object Generator]"}),(xr=a(function(){return{w:i,m}},"_regenerator"))()}a(xr,"_regenerator");function Sr(t,e,r,o){var n=Object.defineProperty;try{n({},"",{})}catch{n=0}Sr=a(function(s,u,l,p){if(u)n?n(s,u,{value:l,enumerable:!p,configurable:!p,writable:!p}):s[u]=l;else{var f=a(function(m,h){Sr(s,m,function(_){return this._invoke(m,h,_)})},"o");f("next",0),f("throw",1),f("return",2)}},"_regeneratorDefine"),Sr(t,e,r,o)}a(Sr,"_regeneratorDefine2");function c$(t,e,r,o,n,i,s){try{var u=t[i](s),l=u.value}catch(p){return void r(p)}u.done?e(l):Promise.resolve(l).then(o,n)}a(c$,"asyncGeneratorStep");function Ka(t){return function(){var e=this,r=arguments;return new Promise(function(o,n){var i=t.apply(e,r);function s(l){c$(i,o,n,s,u,"next",l)}a(s,"_next");function u(l){c$(i,o,n,s,u,"throw",l)}a(u,"_throw"),s(void 0)})}}a(Ka,"_asyncToGenerator");var u$=o$.readFile?(0,i2.promisify)(o$.readFile):Ka(xr().m(a(function t(){return xr().w(function(e){for(;;)switch(e.n){case 0:throw new Hu("use key rather than keyFile.","MISSING_CREDENTIALS");case 1:return e.a(2)}},t)},"_callee"))),l$="https://oauth2.googleapis.com/token",h2="https://oauth2.googleapis.com/revoke?token=",Hu=(function(t){function e(r,o){var n;return h$(this,e),n=c2(this,e,[r]),Er(n,"code",void 0),n.code=o,n}return a(e,"ErrorWithCode"),d2(e,t),m$(e)})(YP(Error)),Vu=new WeakMap,_n=new WeakSet,Lle=ym.GoogleToken=(function(){function t(e){h$(this,t),a2(this,_n),Er(this,"expiresAt",void 0),Er(this,"key",void 0),Er(this,"keyFile",void 0),Er(this,"iss",void 0),Er(this,"sub",void 0),Er(this,"scope",void 0),Er(this,"rawToken",void 0),Er(this,"tokenExpires",void 0),Er(this,"email",void 0),Er(this,"additionalClaims",void 0),Er(this,"eagerRefreshThresholdMillis",void 0),Er(this,"transporter",{request:a(function(o){return(0,r2.request)(o)},"request")}),s2(this,Vu,void 0),on(_n,this,y$).call(this,e)}return a(t,"GoogleToken"),m$(t,[{key:"accessToken",get:a(function(){return this.rawToken?this.rawToken.access_token:void 0},"get")},{key:"idToken",get:a(function(){return this.rawToken?this.rawToken.id_token:void 0},"get")},{key:"tokenType",get:a(function(){return this.rawToken?this.rawToken.token_type:void 0},"get")},{key:"refreshToken",get:a(function(){return this.rawToken?this.rawToken.refresh_token:void 0},"get")},{key:"hasExpired",value:a(function(){var r=new Date().getTime();return this.rawToken&&this.expiresAt?r>=this.expiresAt:!0},"hasExpired")},{key:"isTokenExpiring",value:a(function(){var r,o=new Date().getTime(),n=(r=this.eagerRefreshThresholdMillis)!==null&&r!==void 0?r:0;return this.rawToken&&this.expiresAt?this.expiresAt<=o+n:!0},"isTokenExpiring")},{key:"getToken",value:a(function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Zn(r)==="object"&&(o=r,r=void 0),o=Object.assign({forceRefresh:!1},o),r){var n=r;on(_n,this,d$).call(this,o).then(function(i){return n(null,i)},r);return}return on(_n,this,d$).call(this,o)},"getToken")},{key:"getCredentials",value:(function(){var e=Ka(xr().m(a(function o(n){var i,s,u,l,p,f,y;return xr().w(function(m){for(;;)switch(m.n){case 0:i=o2.extname(n),y=i,m.n=y===".json"?1:y===".der"||y===".crt"||y===".pem"?4:y===".p12"||y===".pfx"?6:7;break;case 1:return m.n=2,u$(n,"utf8");case 2:if(s=m.v,u=JSON.parse(s),l=u.private_key,p=u.client_email,!(!l||!p)){m.n=3;break}throw new Hu("private_key and client_email are required.","MISSING_CREDENTIALS");case 3:return m.a(2,{privateKey:l,clientEmail:p});case 4:return m.n=5,u$(n,"utf8");case 5:return f=m.v,m.a(2,{privateKey:f});case 6:throw new Hu("*.p12 certificates are not supported after v6.1.2. Consider utilizing *.json format or converting *.p12 to *.pem using the OpenSSL CLI.","UNKNOWN_CERTIFICATE_TYPE");case 7:throw new Hu("Unknown certificate type. Type is determined based on file extension. Current supported extensions are *.json, and *.pem.","UNKNOWN_CERTIFICATE_TYPE");case 8:return m.a(2)}},o)},"_callee2")));function r(o){return e.apply(this,arguments)}return a(r,"getCredentials"),r})()},{key:"revokeToken",value:a(function(r){if(r){on(_n,this,p$).call(this).then(function(){return r()},r);return}return on(_n,this,p$).call(this)},"revokeToken")}])})();function d$(t){return QP.apply(this,arguments)}a(d$,"_getTokenAsync");function QP(){return QP=Ka(xr().m(a(function t(e){return xr().w(function(r){for(;;)switch(r.n){case 0:if(!(a$(Vu,this)&&!e.forceRefresh)){r.n=1;break}return r.a(2,a$(Vu,this));case 1:return r.p=1,r.n=2,i$(Vu,this,on(_n,this,g2).call(this,e));case 2:return r.a(2,r.v);case 3:return r.p=3,i$(Vu,this,void 0),r.f(3);case 4:return r.a(2)}},t,this,[[1,,3,4]])},"_callee3"))),QP.apply(this,arguments)}a(QP,"_getTokenAsync2");function g2(t){return eE.apply(this,arguments)}a(g2,"_getTokenAsyncInner");function eE(){return eE=Ka(xr().m(a(function t(e){var r;return xr().w(function(o){for(;;)switch(o.n){case 0:if(!(this.isTokenExpiring()===!1&&e.forceRefresh===!1)){o.n=1;break}return o.a(2,Promise.resolve(this.rawToken));case 1:if(!(!this.key&&!this.keyFile)){o.n=2;break}throw new Error("No key or keyFile set.");case 2:if(!(!this.key&&this.keyFile)){o.n=4;break}return o.n=3,this.getCredentials(this.keyFile);case 3:r=o.v,this.key=r.privateKey,this.iss=r.clientEmail||this.iss,r.clientEmail||on(_n,this,y2).call(this);case 4:return o.a(2,on(_n,this,_2).call(this))}},t,this)},"_callee4"))),eE.apply(this,arguments)}a(eE,"_getTokenAsyncInner2");function y2(){if(!this.iss)throw new Hu("email is required.","MISSING_CREDENTIALS")}a(y2,"_ensureEmail");function p$(){return tE.apply(this,arguments)}a(p$,"_revokeTokenAsync");function tE(){return tE=Ka(xr().m(a(function t(){var e;return xr().w(function(r){for(;;)switch(r.n){case 0:if(this.accessToken){r.n=1;break}throw new Error("No token to revoke.");case 1:return e=h2+this.accessToken,r.n=2,this.transporter.request({url:e,retry:!0});case 2:on(_n,this,y$).call(this,{email:this.iss,sub:this.sub,key:this.key,keyFile:this.keyFile,scope:this.scope,additionalClaims:this.additionalClaims});case 3:return r.a(2)}},t,this)},"_callee5"))),tE.apply(this,arguments)}a(tE,"_revokeTokenAsync2");function y$(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.keyFile=t.keyFile,this.key=t.key,this.rawToken=void 0,this.iss=t.email||t.iss,this.sub=t.sub,this.additionalClaims=t.additionalClaims,Zn(t.scope)==="object"?this.scope=t.scope.join(" "):this.scope=t.scope,this.eagerRefreshThresholdMillis=t.eagerRefreshThresholdMillis,t.transporter&&(this.transporter=t.transporter)}a(y$,"_configure");function _2(){return rE.apply(this,arguments)}a(_2,"_requestToken");function rE(){return rE=Ka(xr().m(a(function t(){var e,r,o,n,i,s,u,l,p,f;return xr().w(function(y){for(;;)switch(y.n){case 0:return e=Math.floor(new Date().getTime()/1e3),r=this.additionalClaims||{},o=Object.assign({iss:this.iss,scope:this.scope,aud:l$,exp:e+3600,iat:e,sub:this.sub},r),n=n2.sign({header:{alg:"RS256"},payload:o,secret:this.key}),y.p=1,y.n=2,this.transporter.request({method:"POST",url:l$,data:new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:jwt-bearer",assertion:n}),responseType:"json",retryConfig:{httpMethodsToRetry:["POST"]}});case 2:return i=y.v,this.rawToken=i.data,this.expiresAt=i.data.expires_in===null||i.data.expires_in===void 0?void 0:(e+i.data.expires_in)*1e3,y.a(2,this.rawToken);case 3:throw y.p=3,f=y.v,this.rawToken=void 0,this.tokenExpires=void 0,l=f.response&&(s=f.response)!==null&&s!==void 0&&s.data?(u=f.response)===null||u===void 0?void 0:u.data:{},l.error&&(p=l.error_description?": ".concat(l.error_description):"",f.message="".concat(l.error).concat(p)),f;case 4:return y.a(2)}},t,this,[[1,3]])},"_callee6"))),rE.apply(this,arguments)}a(rE,"_requestToken2")});var iE=z(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});_m.JWTAccess=void 0;var v2=XP(),b2=tn(),v$={alg:"RS256",typ:"JWT"},oE=class t{static{a(this,"JWTAccess")}email;key;keyId;projectId;eagerRefreshThresholdMillis;cache=new b2.LRUCache({capacity:500,maxAge:3600*1e3});constructor(e,r,o,n){this.email=e,this.key=r,this.keyId=o,this.eagerRefreshThresholdMillis=n??300*1e3}getCachedKey(e,r){let o=e;if(r&&Array.isArray(r)&&r.length?o=e?`${e}_${r.join("_")}`:`${r.join("_")}`:typeof r=="string"&&(o=e?`${e}_${r}`:r),!o)throw Error("Scopes or url must be provided");return o}getRequestHeaders(e,r,o){let n=this.getCachedKey(e,o),i=this.cache.get(n),s=Date.now();if(i&&i.expiration-s>this.eagerRefreshThresholdMillis)return new Headers(i.headers);let u=Math.floor(Date.now()/1e3),l=t.getExpirationTime(u),p;if(Array.isArray(o)&&(o=o.join(" ")),o?p={iss:this.email,sub:this.email,scope:o,exp:l,iat:u}:p={iss:this.email,sub:this.email,aud:e,exp:l,iat:u},r){for(let _ in p)if(r[_])throw new Error(`The '${_}' property is not allowed when passing additionalClaims. This claim is included in the JWT by default.`)}let f=this.keyId?{...v$,kid:this.keyId}:v$,y=Object.assign(p,r),m=v2.sign({header:f,payload:y,secret:this.key}),h=new Headers({authorization:`Bearer ${m}`});return this.cache.set(n,{expiration:l*1e3,headers:h}),h}static getExpirationTime(e){return e+3600}fromJSON(e){if(!e)throw new Error("Must pass in a JSON object containing the service account auth settings.");if(!e.client_email)throw new Error("The incoming JSON object does not contain a client_email field");if(!e.private_key)throw new Error("The incoming JSON object does not contain a private_key field");this.email=e.client_email,this.key=e.private_key,this.keyId=e.private_key_id,this.projectId=e.project_id}fromStream(e,r){if(r)this.fromStreamAsync(e).then(()=>r(),r);else return this.fromStreamAsync(e)}fromStreamAsync(e){return new Promise((r,o)=>{e||o(new Error("Must pass in a stream containing the service account auth settings."));let n="";e.setEncoding("utf8").on("data",i=>n+=i).on("error",o).on("end",()=>{try{let i=JSON.parse(n);this.fromJSON(i),r()}catch(i){o(i)}})})}};_m.JWTAccess=oE});var sE=z(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});bm.JWT=void 0;var b$=_$(),P2=iE(),E2=Ti(),vm=Pr(),aE=class t extends E2.OAuth2Client{static{a(this,"JWT")}email;keyFile;key;keyId;defaultScopes;scopes;scope;subject;gtoken;additionalClaims;useJWTAccessWithScope;defaultServicePath;access;constructor(e={}){super(e),this.email=e.email,this.keyFile=e.keyFile,this.key=e.key,this.keyId=e.keyId,this.scopes=e.scopes,this.subject=e.subject,this.additionalClaims=e.additionalClaims,this.credentials={refresh_token:"jwt-placeholder",expiry_date:1}}createScoped(e){let r=new t(this);return r.scopes=e,r}async getRequestMetadataAsync(e){e=this.defaultServicePath?`https://${this.defaultServicePath}/`:e;let r=!this.hasUserScopes()&&e||this.useJWTAccessWithScope&&this.hasAnyScopes()||this.universeDomain!==vm.DEFAULT_UNIVERSE;if(this.subject&&this.universeDomain!==vm.DEFAULT_UNIVERSE)throw new RangeError(`Service Account user is configured for the credential. Domain-wide delegation is not supported in universes other than ${vm.DEFAULT_UNIVERSE}`);if(!this.apiKey&&r)if(this.additionalClaims&&this.additionalClaims.target_audience){let{tokens:o}=await this.refreshToken();return{headers:this.addSharedMetadataHeaders(new Headers({authorization:`Bearer ${o.id_token}`}))}}else{this.access||(this.access=new P2.JWTAccess(this.email,this.key,this.keyId,this.eagerRefreshThresholdMillis));let o;this.hasUserScopes()?o=this.scopes:e||(o=this.defaultScopes);let n=this.useJWTAccessWithScope||this.universeDomain!==vm.DEFAULT_UNIVERSE,i=await this.access.getRequestHeaders(e??void 0,this.additionalClaims,n?o:void 0);return{headers:this.addSharedMetadataHeaders(i)}}else return this.hasAnyScopes()||this.apiKey?super.getRequestMetadataAsync(e):{headers:new Headers}}async fetchIdToken(e){let r=new b$.GoogleToken({iss:this.email,sub:this.subject,scope:this.scopes||this.defaultScopes,keyFile:this.keyFile,key:this.key,additionalClaims:{target_audience:e},transporter:this.transporter});if(await r.getToken({forceRefresh:!0}),!r.idToken)throw new Error("Unknown error: Failed to fetch ID token");return r.idToken}hasUserScopes(){return this.scopes?this.scopes.length>0:!1}hasAnyScopes(){return!!(this.scopes&&this.scopes.length>0||this.defaultScopes&&this.defaultScopes.length>0)}authorize(e){if(e)this.authorizeAsync().then(r=>e(null,r),e);else return this.authorizeAsync()}async authorizeAsync(){let e=await this.refreshToken();if(!e)throw new Error("No result returned");return this.credentials=e.tokens,this.credentials.refresh_token="jwt-placeholder",this.key=this.gtoken.key,this.email=this.gtoken.iss,e.tokens}async refreshTokenNoCache(){let e=this.createGToken(),o={access_token:(await e.getToken({forceRefresh:this.isTokenExpiring()})).access_token,token_type:"Bearer",expiry_date:e.expiresAt,id_token:e.idToken};return this.emit("tokens",o),{res:null,tokens:o}}createGToken(){return this.gtoken||(this.gtoken=new b$.GoogleToken({iss:this.email,sub:this.subject,scope:this.scopes||this.defaultScopes,keyFile:this.keyFile,key:this.key,additionalClaims:this.additionalClaims,transporter:this.transporter})),this.gtoken}fromJSON(e){if(!e)throw new Error("Must pass in a JSON object containing the service account auth settings.");if(!e.client_email)throw new Error("The incoming JSON object does not contain a client_email field");if(!e.private_key)throw new Error("The incoming JSON object does not contain a private_key field");this.email=e.client_email,this.key=e.private_key,this.keyId=e.private_key_id,this.projectId=e.project_id,this.quotaProjectId=e.quota_project_id,this.universeDomain=e.universe_domain||this.universeDomain}fromStream(e,r){if(r)this.fromStreamAsync(e).then(()=>r(),r);else return this.fromStreamAsync(e)}fromStreamAsync(e){return new Promise((r,o)=>{if(!e)throw new Error("Must pass in a stream containing the service account auth settings.");let n="";e.setEncoding("utf8").on("error",o).on("data",i=>n+=i).on("end",()=>{try{let i=JSON.parse(n);this.fromJSON(i),r()}catch(i){o(i)}})})}fromAPIKey(e){if(typeof e!="string")throw new Error("Must provide an API Key string.");this.apiKey=e}async getCredentials(){if(this.key)return{private_key:this.key,client_email:this.email};if(this.keyFile){let r=await this.createGToken().getCredentials(this.keyFile);return{private_key:r.privateKey,client_email:r.clientEmail}}throw new Error("A key or a keyFile must be provided to getCredentials.")}};bm.JWT=aE});var uE=z(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.UserRefreshClient=Ja.USER_REFRESH_ACCOUNT_TYPE=void 0;var S2=Ti(),x2=Pr();Ja.USER_REFRESH_ACCOUNT_TYPE="authorized_user";var cE=class t extends S2.OAuth2Client{static{a(this,"UserRefreshClient")}_refreshToken;constructor(e,r,o,n,i){let s=e&&typeof e=="object"?e:{clientId:e,clientSecret:r,refreshToken:o,eagerRefreshThresholdMillis:n,forceRefreshOnFailure:i};super(s),this._refreshToken=s.refreshToken,this.credentials.refresh_token=s.refreshToken}async refreshTokenNoCache(){return super.refreshTokenNoCache(this._refreshToken)}async fetchIdToken(e){let r={...t.RETRY_CONFIG,url:this.endpoints.oauth2TokenUrl,method:"POST",data:new URLSearchParams({client_id:this._clientId,client_secret:this._clientSecret,grant_type:"refresh_token",refresh_token:this._refreshToken,target_audience:e})};return x2.AuthClient.setMethodName(r,"fetchIdToken"),(await this.transporter.request(r)).data.id_token}fromJSON(e){if(!e)throw new Error("Must pass in a JSON object containing the user refresh token");if(e.type!=="authorized_user")throw new Error('The incoming JSON object does not have the "authorized_user" type');if(!e.client_id)throw new Error("The incoming JSON object does not contain a client_id field");if(!e.client_secret)throw new Error("The incoming JSON object does not contain a client_secret field");if(!e.refresh_token)throw new Error("The incoming JSON object does not contain a refresh_token field");this._clientId=e.client_id,this._clientSecret=e.client_secret,this._refreshToken=e.refresh_token,this.credentials.refresh_token=e.refresh_token,this.quotaProjectId=e.quota_project_id,this.universeDomain=e.universe_domain||this.universeDomain}fromStream(e,r){if(r)this.fromStreamAsync(e).then(()=>r(),r);else return this.fromStreamAsync(e)}async fromStreamAsync(e){return new Promise((r,o)=>{if(!e)return o(new Error("Must pass in a stream containing the user refresh token."));let n="";e.setEncoding("utf8").on("error",o).on("data",i=>n+=i).on("end",()=>{try{let i=JSON.parse(n);return this.fromJSON(i),r()}catch(i){return o(i)}})})}static fromJSON(e){let r=new t;return r.fromJSON(e),r}};Ja.UserRefreshClient=cE});var dE=z(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});Xa.Impersonated=Xa.IMPERSONATED_ACCOUNT_TYPE=void 0;var P$=Ti(),T2=bt(),A2=tn();Xa.IMPERSONATED_ACCOUNT_TYPE="impersonated_service_account";var lE=class t extends P$.OAuth2Client{static{a(this,"Impersonated")}sourceClient;targetPrincipal;targetScopes;delegates;lifetime;endpoint;constructor(e={}){if(super(e),this.credentials={expiry_date:1,refresh_token:"impersonated-placeholder"},this.sourceClient=e.sourceClient??new P$.OAuth2Client,this.targetPrincipal=e.targetPrincipal??"",this.delegates=e.delegates??[],this.targetScopes=e.targetScopes??[],this.lifetime=e.lifetime??3600,!!!(0,A2.originalOrCamelOptions)(e).get("universe_domain"))this.universeDomain=this.sourceClient.universeDomain;else if(this.sourceClient.universeDomain!==this.universeDomain)throw new RangeError(`Universe domain ${this.sourceClient.universeDomain} in source credentials does not match ${this.universeDomain} universe domain set for impersonated credentials.`);this.endpoint=e.endpoint??`https://iamcredentials.${this.universeDomain}`}async sign(e){await this.sourceClient.getAccessToken();let r=`projects/-/serviceAccounts/${this.targetPrincipal}`,o=`${this.endpoint}/v1/${r}:signBlob`,n={delegates:this.delegates,payload:Buffer.from(e).toString("base64")};return(await this.sourceClient.request({...t.RETRY_CONFIG,url:o,data:n,method:"POST"})).data}getTargetPrincipal(){return this.targetPrincipal}async refreshToken(){try{await this.sourceClient.getAccessToken();let e="projects/-/serviceAccounts/"+this.targetPrincipal,r=`${this.endpoint}/v1/${e}:generateAccessToken`,o={delegates:this.delegates,scope:this.targetScopes,lifetime:this.lifetime+"s"},n=await this.sourceClient.request({...t.RETRY_CONFIG,url:r,data:o,method:"POST"}),i=n.data;return this.credentials.access_token=i.accessToken,this.credentials.expiry_date=Date.parse(i.expireTime),{tokens:this.credentials,res:n}}catch(e){if(!(e instanceof Error))throw e;let r=0,o="";throw e instanceof T2.GaxiosError&&(r=e?.response?.data?.error?.status,o=e?.response?.data?.error?.message),r&&o?(e.message=`${r}: unable to impersonate: ${o}`,e):(e.message=`unable to impersonate: ${e}`,e)}}async fetchIdToken(e,r){await this.sourceClient.getAccessToken();let o=`projects/-/serviceAccounts/${this.targetPrincipal}`,n=`${this.endpoint}/v1/${o}:generateIdToken`,i={delegates:this.delegates,audience:e,includeEmail:r?.includeEmail??!0,useEmailAzp:r?.includeEmail??!0};return(await this.sourceClient.request({...t.RETRY_CONFIG,url:n,data:i,method:"POST"})).data.token}};Xa.Impersonated=lE});var fE=z(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.OAuthClientAuthHandler=void 0;Ku.getErrorFromOAuthErrorResponse=C2;var Ya=bt(),w2=Lu(),I2=["PUT","POST","PATCH"],pE=class{static{a(this,"OAuthClientAuthHandler")}#e=(0,w2.createCrypto)();#t;transporter;constructor(e){e&&"clientId"in e?(this.#t=e,this.transporter=new Ya.Gaxios):(this.#t=e?.clientAuthentication,this.transporter=e?.transporter||new Ya.Gaxios)}applyClientAuthenticationOptions(e,r){e.headers=Ya.Gaxios.mergeHeaders(e.headers),this.injectAuthenticatedHeaders(e,r),r||this.injectAuthenticatedRequestBody(e)}injectAuthenticatedHeaders(e,r){if(r)e.headers=Ya.Gaxios.mergeHeaders(e.headers,{authorization:`Bearer ${r}`});else if(this.#t?.confidentialClientType==="basic"){e.headers=Ya.Gaxios.mergeHeaders(e.headers);let o=this.#t.clientId,n=this.#t.clientSecret||"",i=this.#e.encodeBase64StringUtf8(`${o}:${n}`);Ya.Gaxios.mergeHeaders(e.headers,{authorization:`Basic ${i}`})}}injectAuthenticatedRequestBody(e){if(this.#t?.confidentialClientType==="request-body"){let r=(e.method||"GET").toUpperCase();if(!I2.includes(r))throw new Error(`${r} HTTP method does not support ${this.#t.confidentialClientType} client authentication`);let n=new Headers(e.headers).get("content-type");if(n?.startsWith("application/x-www-form-urlencoded")||e.data instanceof URLSearchParams){let i=new URLSearchParams(e.data??"");i.append("client_id",this.#t.clientId),i.append("client_secret",this.#t.clientSecret||""),e.data=i}else if(n?.startsWith("application/json"))e.data=e.data||{},Object.assign(e.data,{client_id:this.#t.clientId,client_secret:this.#t.clientSecret||""});else throw new Error(`${n} content-types are not supported with ${this.#t.confidentialClientType} client authentication`)}}static get RETRY_CONFIG(){return{retry:!0,retryConfig:{httpMethodsToRetry:["GET","PUT","POST","HEAD","OPTIONS","DELETE"]}}}};Ku.OAuthClientAuthHandler=pE;function C2(t,e){let r=t.error,o=t.error_description,n=t.error_uri,i=`Error code ${r}`;typeof o<"u"&&(i+=`: ${o}`),typeof n<"u"&&(i+=` - ${n}`);let s=new Error(i);if(e){let u=Object.keys(e);e.stack&&u.push("stack"),u.forEach(l=>{l!=="message"&&Object.defineProperty(s,l,{value:e[l],writable:!1,enumerable:!0})})}return s}a(C2,"getErrorFromOAuthErrorResponse")});var Em=z(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});Pm.StsCredentials=void 0;var R2=bt(),O2=Pr(),E$=fE(),k2=tn(),mE=class t extends E$.OAuthClientAuthHandler{static{a(this,"StsCredentials")}#e;constructor(e={tokenExchangeEndpoint:""},r){(typeof e!="object"||e instanceof URL)&&(e={tokenExchangeEndpoint:e,clientAuthentication:r}),super(e),this.#e=e.tokenExchangeEndpoint}async exchangeToken(e,r,o){let n={grant_type:e.grantType,resource:e.resource,audience:e.audience,scope:e.scope?.join(" "),requested_token_type:e.requestedTokenType,subject_token:e.subjectToken,subject_token_type:e.subjectTokenType,actor_token:e.actingParty?.actorToken,actor_token_type:e.actingParty?.actorTokenType,options:o&&JSON.stringify(o)},i={...t.RETRY_CONFIG,url:this.#e.toString(),method:"POST",headers:r,data:new URLSearchParams((0,k2.removeUndefinedValuesInObject)(n))};O2.AuthClient.setMethodName(i,"exchangeToken"),this.applyClientAuthenticationOptions(i);try{let s=await this.transporter.request(i),u=s.data;return u.res=s,u}catch(s){throw s instanceof R2.GaxiosError&&s.response?(0,E$.getErrorFromOAuthErrorResponse)(s.response.data,s):s}}};Pm.StsCredentials=mE});var $o=z(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.BaseExternalAccountClient=Lr.CLOUD_RESOURCE_MANAGER=Lr.EXTERNAL_ACCOUNT_TYPE=Lr.EXPIRATION_TIME_OFFSET=void 0;var N2=bt(),$2=require("stream"),hE=Pr(),z2=Em(),S$=tn(),D2=RP(),U2="urn:ietf:params:oauth:grant-type:token-exchange",M2="urn:ietf:params:oauth:token-type:access_token",gE="https://www.googleapis.com/auth/cloud-platform",L2=3600;Lr.EXPIRATION_TIME_OFFSET=300*1e3;Lr.EXTERNAL_ACCOUNT_TYPE="external_account";Lr.CLOUD_RESOURCE_MANAGER="https://cloudresourcemanager.googleapis.com/v1/projects/";var j2="//iam\\.googleapis\\.com/locations/[^/]+/workforcePools/[^/]+/providers/.+",F2="https://sts.{universeDomain}/v1/token",yE=class t extends hE.AuthClient{static{a(this,"BaseExternalAccountClient")}scopes;projectNumber;audience;subjectTokenType;stsCredential;clientAuth;credentialSourceType;cachedAccessToken;serviceAccountImpersonationUrl;serviceAccountImpersonationLifetime;workforcePoolUserProject;configLifetimeRequested;tokenUrl;cloudResourceManagerURL;supplierContext;#e=null;constructor(e){super(e);let r=(0,S$.originalOrCamelOptions)(e),o=r.get("type");if(o&&o!==Lr.EXTERNAL_ACCOUNT_TYPE)throw new Error(`Expected "${Lr.EXTERNAL_ACCOUNT_TYPE}" type but received "${e.type}"`);let n=r.get("client_id"),i=r.get("client_secret");this.tokenUrl=r.get("token_url")??F2.replace("{universeDomain}",this.universeDomain);let s=r.get("subject_token_type"),u=r.get("workforce_pool_user_project"),l=r.get("service_account_impersonation_url"),p=r.get("service_account_impersonation"),f=(0,S$.originalOrCamelOptions)(p).get("token_lifetime_seconds");this.cloudResourceManagerURL=new URL(r.get("cloud_resource_manager_url")||`https://cloudresourcemanager.${this.universeDomain}/v1/projects/`),n&&(this.clientAuth={confidentialClientType:"basic",clientId:n,clientSecret:i}),this.stsCredential=new z2.StsCredentials({tokenExchangeEndpoint:this.tokenUrl,clientAuthentication:this.clientAuth}),this.scopes=r.get("scopes")||[gE],this.cachedAccessToken=null,this.audience=r.get("audience"),this.subjectTokenType=s,this.workforcePoolUserProject=u;let y=new RegExp(j2);if(this.workforcePoolUserProject&&!this.audience.match(y))throw new Error("workforcePoolUserProject should not be set for non-workforce pool credentials.");this.serviceAccountImpersonationUrl=l,this.serviceAccountImpersonationLifetime=f,this.serviceAccountImpersonationLifetime?this.configLifetimeRequested=!0:(this.configLifetimeRequested=!1,this.serviceAccountImpersonationLifetime=L2),this.projectNumber=this.getProjectNumber(this.audience),this.supplierContext={audience:this.audience,subjectTokenType:this.subjectTokenType,transporter:this.transporter}}getServiceAccountEmail(){if(this.serviceAccountImpersonationUrl){if(this.serviceAccountImpersonationUrl.length>256)throw new RangeError(`URL is too long: ${this.serviceAccountImpersonationUrl}`);return/serviceAccounts\/(?<email>[^:]+):generateAccessToken$/.exec(this.serviceAccountImpersonationUrl)?.groups?.email||null}return null}setCredentials(e){super.setCredentials(e),this.cachedAccessToken=e}async getAccessToken(){return(!this.cachedAccessToken||this.isExpired(this.cachedAccessToken))&&await this.refreshAccessTokenAsync(),{token:this.cachedAccessToken.access_token,res:this.cachedAccessToken.res}}async getRequestHeaders(){let e=await this.getAccessToken(),r=new Headers({authorization:`Bearer ${e.token}`});return this.addSharedMetadataHeaders(r)}request(e,r){if(r)this.requestAsync(e).then(o=>r(null,o),o=>r(o,o.response));else return this.requestAsync(e)}async getProjectId(){let e=this.projectNumber||this.workforcePoolUserProject;if(this.projectId)return this.projectId;if(e){let r=await this.getRequestHeaders(),o={...t.RETRY_CONFIG,headers:r,url:`${this.cloudResourceManagerURL.toString()}${e}`};hE.AuthClient.setMethodName(o,"getProjectId");let n=await this.transporter.request(o);return this.projectId=n.data.projectId,this.projectId}return null}async requestAsync(e,r=!1){let o;try{let n=await this.getRequestHeaders();e.headers=N2.Gaxios.mergeHeaders(e.headers),this.addUserProjectAndAuthHeaders(e.headers,n),o=await this.transporter.request(e)}catch(n){let i=n.response;if(i){let s=i.status,u=i.config.data instanceof $2.Readable;if(!r&&(s===401||s===403)&&!u&&this.forceRefreshOnFailure)return await this.refreshAccessTokenAsync(),await this.requestAsync(e,!0)}throw n}return o}async refreshAccessTokenAsync(){this.#e=this.#e||this.#t();try{return await this.#e}finally{this.#e=null}}async#t(){let e=await this.retrieveSubjectToken(),r={grantType:U2,audience:this.audience,requestedTokenType:M2,subjectToken:e,subjectTokenType:this.subjectTokenType,scope:this.serviceAccountImpersonationUrl?[gE]:this.getScopesArray()},o=!this.clientAuth&&this.workforcePoolUserProject?{userProject:this.workforcePoolUserProject}:void 0,n=new Headers({"x-goog-api-client":this.getMetricsHeaderValue()}),i=await this.stsCredential.exchangeToken(r,n,o);return this.serviceAccountImpersonationUrl?this.cachedAccessToken=await this.getImpersonatedAccessToken(i.access_token):i.expires_in?this.cachedAccessToken={access_token:i.access_token,expiry_date:new Date().getTime()+i.expires_in*1e3,res:i.res}:this.cachedAccessToken={access_token:i.access_token,res:i.res},this.credentials={},Object.assign(this.credentials,this.cachedAccessToken),delete this.credentials.res,this.emit("tokens",{refresh_token:null,expiry_date:this.cachedAccessToken.expiry_date,access_token:this.cachedAccessToken.access_token,token_type:"Bearer",id_token:null}),this.cachedAccessToken}getProjectNumber(e){let r=e.match(/\/projects\/([^/]+)/);return r?r[1]:null}async getImpersonatedAccessToken(e){let r={...t.RETRY_CONFIG,url:this.serviceAccountImpersonationUrl,method:"POST",headers:{"content-type":"application/json",authorization:`Bearer ${e}`},data:{scope:this.getScopesArray(),lifetime:this.serviceAccountImpersonationLifetime+"s"}};hE.AuthClient.setMethodName(r,"getImpersonatedAccessToken");let o=await this.transporter.request(r),n=o.data;return{access_token:n.accessToken,expiry_date:new Date(n.expireTime).getTime(),res:o}}isExpired(e){let r=new Date().getTime();return e.expiry_date?r>=e.expiry_date-this.eagerRefreshThresholdMillis:!1}getScopesArray(){return typeof this.scopes=="string"?[this.scopes]:this.scopes||[gE]}getMetricsHeaderValue(){let e=process.version.replace(/^v/,""),r=this.serviceAccountImpersonationUrl!==void 0,o=this.credentialSourceType?this.credentialSourceType:"unknown";return`gl-node/${e} auth/${D2.pkg.version} google-byoid-sdk source/${o} sa-impersonation/${r} config-lifetime/${this.configLifetimeRequested}`}getTokenUrl(){return this.tokenUrl}};Lr.BaseExternalAccountClient=yE});var x$=z(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});Sm.FileSubjectTokenSupplier=void 0;var vE=require("util"),bE=require("fs"),B2=(0,vE.promisify)(bE.readFile??(()=>{})),q2=(0,vE.promisify)(bE.realpath??(()=>{})),G2=(0,vE.promisify)(bE.lstat??(()=>{})),_E=class{static{a(this,"FileSubjectTokenSupplier")}filePath;formatType;subjectTokenFieldName;constructor(e){this.filePath=e.filePath,this.formatType=e.formatType,this.subjectTokenFieldName=e.subjectTokenFieldName}async getSubjectToken(){let e=this.filePath;try{if(e=await q2(e),!(await G2(e)).isFile())throw new Error}catch(n){throw n instanceof Error&&(n.message=`The file at ${e} does not exist, or it is not a file. ${n.message}`),n}let r,o=await B2(e,{encoding:"utf8"});if(this.formatType==="text"?r=o:this.formatType==="json"&&this.subjectTokenFieldName&&(r=JSON.parse(o)[this.subjectTokenFieldName]),!r)throw new Error("Unable to parse the subject_token from the credential_source file");return r}};Sm.FileSubjectTokenSupplier=_E});var T$=z(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});xm.UrlSubjectTokenSupplier=void 0;var V2=Pr(),PE=class{static{a(this,"UrlSubjectTokenSupplier")}url;headers;formatType;subjectTokenFieldName;additionalGaxiosOptions;constructor(e){this.url=e.url,this.formatType=e.formatType,this.subjectTokenFieldName=e.subjectTokenFieldName,this.headers=e.headers,this.additionalGaxiosOptions=e.additionalGaxiosOptions}async getSubjectToken(e){let r={...this.additionalGaxiosOptions,url:this.url,method:"GET",headers:this.headers};V2.AuthClient.setMethodName(r,"getSubjectToken");let o;if(this.formatType==="text"?o=(await e.transporter.request(r)).data:this.formatType==="json"&&this.subjectTokenFieldName&&(o=(await e.transporter.request(r)).data[this.subjectTokenFieldName]),!o)throw new Error("Unable to parse the subject_token from the credential_source URL");return o}};xm.UrlSubjectTokenSupplier=PE});var A$=z(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.CertificateSubjectTokenSupplier=Tr.InvalidConfigurationError=Tr.CertificateSourceUnavailableError=Tr.CERTIFICATE_CONFIGURATION_ENV_VARIABLE=void 0;var Tm=tn(),Am=require("fs"),wm=require("crypto"),H2=require("https");Tr.CERTIFICATE_CONFIGURATION_ENV_VARIABLE="GOOGLE_API_CERTIFICATE_CONFIG";var vn=class extends Error{static{a(this,"CertificateSourceUnavailableError")}constructor(e){super(e),this.name="CertificateSourceUnavailableError"}};Tr.CertificateSourceUnavailableError=vn;var jr=class extends Error{static{a(this,"InvalidConfigurationError")}constructor(e){super(e),this.name="InvalidConfigurationError"}};Tr.InvalidConfigurationError=jr;var EE=class{static{a(this,"CertificateSubjectTokenSupplier")}certificateConfigPath;trustChainPath;cert;key;constructor(e){if(!e.useDefaultCertificateConfig&&!e.certificateConfigLocation)throw new jr("Either `useDefaultCertificateConfig` must be true or a `certificateConfigLocation` must be provided.");if(e.useDefaultCertificateConfig&&e.certificateConfigLocation)throw new jr("Both `useDefaultCertificateConfig` and `certificateConfigLocation` cannot be provided.");this.trustChainPath=e.trustChainPath,this.certificateConfigPath=e.certificateConfigLocation??""}async createMtlsHttpsAgent(){if(!this.key||!this.cert)throw new jr("Cannot create mTLS Agent with missing certificate or key");return new H2.Agent({key:this.key,cert:this.cert})}async getSubjectToken(){this.certificateConfigPath=await this.#e();let{certPath:e,keyPath:r}=await this.#t();return{cert:this.cert,key:this.key}=await this.#r(e,r),await this.#n(this.cert)}async#e(){let e=this.certificateConfigPath;if(e){if(await(0,Tm.isValidFile)(e))return e;throw new vn(`Provided certificate config path is invalid: ${e}`)}let r=process.env[Tr.CERTIFICATE_CONFIGURATION_ENV_VARIABLE];if(r){if(await(0,Tm.isValidFile)(r))return r;throw new vn(`Path from environment variable "${Tr.CERTIFICATE_CONFIGURATION_ENV_VARIABLE}" is invalid: ${r}`)}let o=(0,Tm.getWellKnownCertificateConfigFileLocation)();if(await(0,Tm.isValidFile)(o))return o;throw new vn(`Could not find certificate configuration file. Searched override path, the "${Tr.CERTIFICATE_CONFIGURATION_ENV_VARIABLE}" env var, and the gcloud path (${o}).`)}async#t(){let e=this.certificateConfigPath,r;try{r=await Am.promises.readFile(e,"utf8")}catch{throw new vn(`Failed to read certificate config file at: ${e}`)}try{let o=JSON.parse(r),n=o?.cert_configs?.workload?.cert_path,i=o?.cert_configs?.workload?.key_path;if(!n||!i)throw new jr(`Certificate config file (${e}) is missing required "cert_path" or "key_path" in the workload config.`);return{certPath:n,keyPath:i}}catch(o){throw o instanceof jr?o:new jr(`Failed to parse certificate config from ${e}: ${o.message}`)}}async#r(e,r){let o,n;try{o=await Am.promises.readFile(e),new wm.X509Certificate(o)}catch(i){let s=i instanceof Error?i.message:String(i);throw new vn(`Failed to read certificate file at ${e}: ${s}`)}try{n=await Am.promises.readFile(r),(0,wm.createPrivateKey)(n)}catch(i){let s=i instanceof Error?i.message:String(i);throw new vn(`Failed to read private key file at ${r}: ${s}`)}return{cert:o,key:n}}async#n(e){let r=new wm.X509Certificate(e);if(!this.trustChainPath)return JSON.stringify([r.raw.toString("base64")]);try{let i=((await Am.promises.readFile(this.trustChainPath,"utf8")).match(/-----BEGIN CERTIFICATE-----[^-]+-----END CERTIFICATE-----/g)??[]).map((l,p)=>{try{return new wm.X509Certificate(l)}catch(f){let y=f instanceof Error?f.message:String(f);throw new jr(`Failed to parse certificate at index ${p} in trust chain file ${this.trustChainPath}: ${y}`)}}),s=i.findIndex(l=>r.raw.equals(l.raw)),u;if(s===-1)u=[r,...i];else if(s===0)u=i;else throw new jr(`Leaf certificate exists in the trust chain but is not the first entry (found at index ${s}).`);return JSON.stringify(u.map(l=>l.raw.toString("base64")))}catch(o){if(o instanceof jr)throw o;let n=o instanceof Error?o.message:String(o);throw new vn(`Failed to process certificate chain from ${this.trustChainPath}: ${n}`)}}};Tr.CertificateSubjectTokenSupplier=EE});var TE=z(Im=>{"use strict";Object.defineProperty(Im,"__esModule",{value:!0});Im.IdentityPoolClient=void 0;var Z2=$o(),SE=tn(),W2=x$(),K2=T$(),w$=A$(),J2=Em(),I$=bt(),xE=class t extends Z2.BaseExternalAccountClient{static{a(this,"IdentityPoolClient")}subjectTokenSupplier;constructor(e){super(e);let r=(0,SE.originalOrCamelOptions)(e),o=r.get("credential_source"),n=r.get("subject_token_supplier");if(!o&&!n)throw new Error("A credential source or subject token supplier must be specified.");if(o&&n)throw new Error("Only one of credential source or subject token supplier can be specified.");if(n)this.subjectTokenSupplier=n,this.credentialSourceType="programmatic";else{let i=(0,SE.originalOrCamelOptions)(o),s=(0,SE.originalOrCamelOptions)(i.get("format")),u=s.get("type")||"text",l=s.get("subject_token_field_name");if(u!=="json"&&u!=="text")throw new Error(`Invalid credential_source format "${u}"`);if(u==="json"&&!l)throw new Error("Missing subject_token_field_name for JSON credential_source format");let p=i.get("file"),f=i.get("url"),y=i.get("certificate"),m=i.get("headers");if(p&&f||f&&y||p&&y)throw new Error('No valid Identity Pool "credential_source" provided, must be either file, url, or certificate.');if(p)this.credentialSourceType="file",this.subjectTokenSupplier=new W2.FileSubjectTokenSupplier({filePath:p,formatType:u,subjectTokenFieldName:l});else if(f)this.credentialSourceType="url",this.subjectTokenSupplier=new K2.UrlSubjectTokenSupplier({url:f,formatType:u,subjectTokenFieldName:l,headers:m,additionalGaxiosOptions:t.RETRY_CONFIG});else if(y){this.credentialSourceType="certificate";let h=new w$.CertificateSubjectTokenSupplier({useDefaultCertificateConfig:y.use_default_certificate_config,certificateConfigLocation:y.certificate_config_location,trustChainPath:y.trust_chain_path});this.subjectTokenSupplier=h}else throw new Error('No valid Identity Pool "credential_source" provided, must be either file, url, or certificate.')}}async retrieveSubjectToken(){let e=await this.subjectTokenSupplier.getSubjectToken(this.supplierContext);if(this.subjectTokenSupplier instanceof w$.CertificateSubjectTokenSupplier){let r=await this.subjectTokenSupplier.createMtlsHttpsAgent();this.stsCredential=new J2.StsCredentials({tokenExchangeEndpoint:this.getTokenUrl(),clientAuthentication:this.clientAuth,transporter:new I$.Gaxios({agent:r})}),this.transporter=new I$.Gaxios({...this.transporter.defaults||{},agent:r})}return e}};Im.IdentityPoolClient=xE});var wE=z(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});Rm.AwsRequestSigner=void 0;var Cm=bt(),R$=Lu(),C$="AWS4-HMAC-SHA256",X2="aws4_request",AE=class{static{a(this,"AwsRequestSigner")}getCredentials;region;crypto;constructor(e,r){this.getCredentials=e,this.region=r,this.crypto=(0,R$.createCrypto)()}async getRequestOptions(e){if(!e.url)throw new RangeError('"url" is required in "amzOptions"');let r=typeof e.data=="object"?JSON.stringify(e.data):e.data,o=e.url,n=e.method||"GET",i=e.body||r,s=e.headers,u=await this.getCredentials(),l=new URL(o);if(typeof i!="string"&&i!==void 0)throw new TypeError(`'requestPayload' is expected to be a string if provided. Got: ${i}`);let p=await Q2({crypto:this.crypto,host:l.host,canonicalUri:l.pathname,canonicalQuerystring:l.search.slice(1),method:n,region:this.region,securityCredentials:u,requestPayload:i,additionalAmzHeaders:s}),f=Cm.Gaxios.mergeHeaders(p.amzDate?{"x-amz-date":p.amzDate}:{},{authorization:p.authorizationHeader,host:l.host},s||{});u.token&&Cm.Gaxios.mergeHeaders(f,{"x-amz-security-token":u.token});let y={url:o,method:n,headers:f};return i!==void 0&&(y.body=i),y}};Rm.AwsRequestSigner=AE;async function Ju(t,e,r){return await t.signWithHmacSha256(e,r)}a(Ju,"sign");async function Y2(t,e,r,o,n){let i=await Ju(t,`AWS4${e}`,r),s=await Ju(t,i,o),u=await Ju(t,s,n);return await Ju(t,u,"aws4_request")}a(Y2,"getSigningKey");async function Q2(t){let e=Cm.Gaxios.mergeHeaders(t.additionalAmzHeaders),r=t.requestPayload||"",o=t.host.split(".")[0],n=new Date,i=n.toISOString().replace(/[-:]/g,"").replace(/\.[0-9]+/,""),s=n.toISOString().replace(/[-]/g,"").replace(/T.*/,"");t.securityCredentials.token&&e.set("x-amz-security-token",t.securityCredentials.token);let u=Cm.Gaxios.mergeHeaders({host:t.host},e.has("date")?{}:{"x-amz-date":i},e),l="",p=[...u.keys()].sort();p.forEach(k=>{l+=`${k}:${u.get(k)}
40
+ "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".`,qu="secret must be a string or buffer",Ha="key must be a string or a buffer",RV="key must be a string, a buffer or an object",HE=typeof Mr.createPublicKey=="function";HE&&(Ha+=" or a KeyObject",qu+="or a KeyObject");function kN(t){if(!Za.isBuffer(t)&&typeof t!="string"&&(!HE||typeof t!="object"||typeof t.type!="string"||typeof t.asymmetricKeyType!="string"||typeof t.export!="function"))throw nn(Ha)}a(kN,"checkIsPublicKey");function NN(t){if(!Za.isBuffer(t)&&typeof t!="string"&&typeof t!="object")throw nn(RV)}a(NN,"checkIsPrivateKey");function OV(t){if(!Za.isBuffer(t)){if(typeof t=="string")return t;if(!HE||typeof t!="object"||t.type!=="secret"||typeof t.export!="function")throw nn(qu)}}a(OV,"checkIsSecretKey");function ZE(t){return t.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}a(ZE,"fromBase64");function $N(t){t=t.toString();var e=4-t.length%4;if(e!==4)for(var r=0;r<e;++r)t+="=";return t.replace(/\-/g,"+").replace(/_/g,"/")}a($N,"toBase64");function nn(t){var e=[].slice.call(arguments,1),r=RN.format.bind(RN,t).apply(null,e);return new TypeError(r)}a(nn,"typeError");function kV(t){return Za.isBuffer(t)||typeof t=="string"}a(kV,"bufferOrString");function Gu(t){return kV(t)||(t=JSON.stringify(t)),t}a(Gu,"normalizeInput");function zN(t){return a(function(r,o){OV(o),r=Gu(r);var n=Mr.createHmac("sha"+t,o),i=(n.update(r),n.digest("base64"));return ZE(i)},"sign")}a(zN,"createHmacSigner");var VE,NV="timingSafeEqual"in Mr?a(function(e,r){return e.byteLength!==r.byteLength?!1:Mr.timingSafeEqual(e,r)},"timingSafeEqual"):a(function(e,r){return VE||(VE=CN()),VE(e,r)},"timingSafeEqual");function $V(t){return a(function(r,o,n){var i=zN(t)(r,n);return NV(Za.from(o),Za.from(i))},"verify")}a($V,"createHmacVerifier");function DN(t){return a(function(r,o){NN(o),r=Gu(r);var n=Mr.createSign("RSA-SHA"+t),i=(n.update(r),n.sign(o,"base64"));return ZE(i)},"sign")}a(DN,"createKeySigner");function UN(t){return a(function(r,o,n){kN(n),r=Gu(r),o=$N(o);var i=Mr.createVerify("RSA-SHA"+t);return i.update(r),i.verify(n,o,"base64")},"verify")}a(UN,"createKeyVerifier");function zV(t){return a(function(r,o){NN(o),r=Gu(r);var n=Mr.createSign("RSA-SHA"+t),i=(n.update(r),n.sign({key:o,padding:Mr.constants.RSA_PKCS1_PSS_PADDING,saltLength:Mr.constants.RSA_PSS_SALTLEN_DIGEST},"base64"));return ZE(i)},"sign")}a(zV,"createPSSKeySigner");function DV(t){return a(function(r,o,n){kN(n),r=Gu(r),o=$N(o);var i=Mr.createVerify("RSA-SHA"+t);return i.update(r),i.verify({key:n,padding:Mr.constants.RSA_PKCS1_PSS_PADDING,saltLength:Mr.constants.RSA_PSS_SALTLEN_DIGEST},o,"base64")},"verify")}a(DV,"createPSSKeyVerifier");function UV(t){var e=DN(t);return a(function(){var o=e.apply(null,arguments);return o=ON.derToJose(o,"ES"+t),o},"sign")}a(UV,"createECDSASigner");function MV(t){var e=UN(t);return a(function(o,n,i){n=ON.joseToDer(n,"ES"+t).toString("base64");var s=e(o,n,i);return s},"verify")}a(MV,"createECDSAVerifer");function LV(){return a(function(){return""},"sign")}a(LV,"createNoneSigner");function jV(){return a(function(e,r){return r===""},"verify")}a(jV,"createNoneVerifier");MN.exports=a(function(e){var r={hs:zN,rs:DN,ps:zV,es:UV,none:LV},o={hs:$V,rs:UN,ps:DV,es:MV,none:jV},n=e.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/);if(!n)throw nn(CV,e);var i=(n[1]||n[3]).toLowerCase(),s=n[2];return{sign:r[i](s),verify:o[i](s)}},"jwa")});var KE=z((Rle,LN)=>{var FV=require("buffer").Buffer;LN.exports=a(function(e){return typeof e=="string"?e:typeof e=="number"||FV.isBuffer(e)?e.toString():JSON.stringify(e)},"toString")});var VN=z((kle,GN)=>{var BV=qa().Buffer,jN=qE(),qV=WE(),GV=require("stream"),FN=KE(),JE=require("util");function BN(t,e){return BV.from(t,e).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}a(BN,"base64url");function VV(t,e,r){r=r||"utf8";var o=BN(FN(t),"binary"),n=BN(FN(e),r);return JE.format("%s.%s",o,n)}a(VV,"jwsSecuredInput");function qN(t){var e=t.header,r=t.payload,o=t.secret||t.privateKey,n=t.encoding,i=qV(e.alg),s=VV(e,r,n),u=i.sign(s,o);return JE.format("%s.%s",s,u)}a(qN,"jwsSign");function mm(t){var e=t.secret;if(e=e??t.privateKey,e=e??t.key,/^hs/i.test(t.header.alg)===!0&&e==null)throw new TypeError("secret must be a string or buffer or a KeyObject");var r=new jN(e);this.readable=!0,this.header=t.header,this.encoding=t.encoding,this.secret=this.privateKey=this.key=r,this.payload=new jN(t.payload),this.secret.once("close",function(){!this.payload.writable&&this.readable&&this.sign()}.bind(this)),this.payload.once("close",function(){!this.secret.writable&&this.readable&&this.sign()}.bind(this))}a(mm,"SignStream");JE.inherits(mm,GV);mm.prototype.sign=a(function(){try{var e=qN({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});return this.emit("done",e),this.emit("data",e),this.emit("end"),this.readable=!1,e}catch(r){this.readable=!1,this.emit("error",r),this.emit("close")}},"sign");mm.sign=qN;GN.exports=mm});var t$=z(($le,e$)=>{var ZN=qa().Buffer,HN=qE(),HV=WE(),ZV=require("stream"),WN=KE(),WV=require("util"),KV=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function JV(t){return Object.prototype.toString.call(t)==="[object Object]"}a(JV,"isObject");function XV(t){if(JV(t))return t;try{return JSON.parse(t)}catch{return}}a(XV,"safeJsonParse");function KN(t){var e=t.split(".",1)[0];return XV(ZN.from(e,"base64").toString("binary"))}a(KN,"headerFromJWS");function YV(t){return t.split(".",2).join(".")}a(YV,"securedInputFromJWS");function JN(t){return t.split(".")[2]}a(JN,"signatureFromJWS");function QV(t,e){e=e||"utf8";var r=t.split(".")[1];return ZN.from(r,"base64").toString(e)}a(QV,"payloadFromJWS");function XN(t){return KV.test(t)&&!!KN(t)}a(XN,"isValidJws");function YN(t,e,r){if(!e){var o=new Error("Missing algorithm parameter for jws.verify");throw o.code="MISSING_ALGORITHM",o}t=WN(t);var n=JN(t),i=YV(t),s=HV(e);return s.verify(i,n,r)}a(YN,"jwsVerify");function QN(t,e){if(e=e||{},t=WN(t),!XN(t))return null;var r=KN(t);if(!r)return null;var o=QV(t);return(r.typ==="JWT"||e.json)&&(o=JSON.parse(o,e.encoding)),{header:r,payload:o,signature:JN(t)}}a(QN,"jwsDecode");function Wa(t){t=t||{};var e=t.secret;if(e=e??t.publicKey,e=e??t.key,/^hs/i.test(t.algorithm)===!0&&e==null)throw new TypeError("secret must be a string or buffer or a KeyObject");var r=new HN(e);this.readable=!0,this.algorithm=t.algorithm,this.encoding=t.encoding,this.secret=this.publicKey=this.key=r,this.signature=new HN(t.signature),this.secret.once("close",function(){!this.signature.writable&&this.readable&&this.verify()}.bind(this)),this.signature.once("close",function(){!this.secret.writable&&this.readable&&this.verify()}.bind(this))}a(Wa,"VerifyStream");WV.inherits(Wa,ZV);Wa.prototype.verify=a(function(){try{var e=YN(this.signature.buffer,this.algorithm,this.key.buffer),r=QN(this.signature.buffer,this.encoding);return this.emit("done",e,r),this.emit("data",e),this.emit("end"),this.readable=!1,e}catch(o){this.readable=!1,this.emit("error",o),this.emit("close")}},"verify");Wa.decode=QN;Wa.isValid=XN;Wa.verify=YN;e$.exports=Wa});var XE=z(No=>{var r$=VN(),hm=t$(),e2=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"];No.ALGORITHMS=e2;No.sign=r$.sign;No.verify=hm.verify;No.decode=hm.decode;No.isValid=hm.isValid;No.createSign=a(function(e){return new r$(e)},"createSign");No.createVerify=a(function(e){return new hm(e)},"createVerify")});var y$=z(ym=>{"use strict";Object.defineProperty(ym,"__esModule",{value:!0});ym.GoogleToken=void 0;var n$=gm(require("fs")),t2=bt(),r2=gm(XE()),n2=gm(require("path")),o2=require("util");function gm(t,e){if(typeof WeakMap=="function")var r=new WeakMap,o=new WeakMap;return(gm=a(function(i,s){if(!s&&i&&i.__esModule)return i;var u,l,p={__proto__:null,default:i};if(i===null||Zn(i)!="object"&&typeof i!="function")return p;if(u=s?o:r){if(u.has(i))return u.get(i);u.set(i,p)}for(var f in i)f!=="default"&&{}.hasOwnProperty.call(i,f)&&((l=(u=Object.defineProperty)&&Object.getOwnPropertyDescriptor(i,f))&&(l.get||l.set)?u(p,f,l):p[f]=i[f]);return p},"_interopRequireWildcard"))(t,e)}a(gm,"_interopRequireWildcard");function Zn(t){"@babel/helpers - typeof";return Zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zn(t)}a(Zn,"_typeof");function i2(t,e){p$(t,e),e.add(t)}a(i2,"_classPrivateMethodInitSpec");function a2(t,e,r){p$(t,e),e.set(t,r)}a(a2,"_classPrivateFieldInitSpec");function p$(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}a(p$,"_checkPrivateRedeclaration");function o$(t,e,r){return t.set(on(t,e),r),r}a(o$,"_classPrivateFieldSet");function i$(t,e){return t.get(on(t,e))}a(i$,"_classPrivateFieldGet");function on(t,e,r){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}a(on,"_assertClassBrand");function a$(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,h$(o.key),o)}}a(a$,"_defineProperties");function f$(t,e,r){return e&&a$(t.prototype,e),r&&a$(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}a(f$,"_createClass");function m$(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}a(m$,"_classCallCheck");function s2(t,e,r){return e=Wu(e),c2(t,nP()?Reflect.construct(e,r||[],Wu(t).constructor):e.apply(t,r))}a(s2,"_callSuper");function c2(t,e){if(e&&(Zn(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return u2(t)}a(c2,"_possibleConstructorReturn");function u2(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}a(u2,"_assertThisInitialized");function l2(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Zu(t,e)}a(l2,"_inherits");function YE(t){var e=typeof Map=="function"?new Map:void 0;return YE=a(function(o){if(o===null||!p2(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(o))return e.get(o);e.set(o,n)}function n(){return d2(o,arguments,Wu(this).constructor)}return a(n,"Wrapper"),n.prototype=Object.create(o.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Zu(n,o)},"_wrapNativeSuper"),YE(t)}a(YE,"_wrapNativeSuper");function d2(t,e,r){if(nP())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var n=new(t.bind.apply(t,o));return r&&Zu(n,r.prototype),n}a(d2,"_construct");function nP(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nP=a(function(){return!!t},"_isNativeReflectConstruct"))()}a(nP,"_isNativeReflectConstruct");function p2(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch{return typeof t=="function"}}a(p2,"_isNativeFunction");function Zu(t,e){return Zu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Zu(t,e)}a(Zu,"_setPrototypeOf");function Wu(t){return Wu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Wu(t)}a(Wu,"_getPrototypeOf");function Pr(t,e,r){return(e=h$(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}a(Pr,"_defineProperty");function h$(t){var e=f2(t,"string");return Zn(e)=="symbol"?e:e+""}a(h$,"_toPropertyKey");function f2(t,e){if(Zn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(Zn(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}a(f2,"_toPrimitive");function xr(){var t,e,r=typeof Symbol=="function"?Symbol:{},o=r.iterator||"@@iterator",n=r.toStringTag||"@@toStringTag";function i(h,_,P,S){var T=_&&_.prototype instanceof u?_:u,k=Object.create(T.prototype);return Sr(k,"_invoke",(function(L,Y,H){var X,re,ce,ee=0,Le=H||[],le=!1,W={p:0,n:0,v:t,a:Z,f:Z.bind(t,4),d:a(function(Q,de){return X=Q,re=0,ce=t,W.n=de,s},"d")};function Z(oe,Q){for(re=oe,ce=Q,e=0;!le&&ee&&!de&&e<Le.length;e++){var de,me=Le[e],ze=W.p,je=me[2];oe>3?(de=je===Q)&&(ce=me[(re=me[4])?5:(re=3,3)],me[4]=me[5]=t):me[0]<=ze&&((de=oe<2&&ze<me[1])?(re=0,W.v=Q,W.n=me[1]):ze<je&&(de=oe<3||me[0]>Q||Q>je)&&(me[4]=oe,me[5]=Q,W.n=je,re=0))}if(de||oe>1)return s;throw le=!0,Q}return a(Z,"d"),function(oe,Q,de){if(ee>1)throw TypeError("Generator is already running");for(le&&Q===1&&Z(Q,de),re=Q,ce=de;(e=re<2?t:ce)||!le;){X||(re?re<3?(re>1&&(W.n=-1),Z(re,ce)):W.n=ce:W.v=ce);try{if(ee=2,X){if(re||(oe="next"),e=X[oe]){if(!(e=e.call(X,ce)))throw TypeError("iterator result is not an object");if(!e.done)return e;ce=e.value,re<2&&(re=0)}else re===1&&(e=X.return)&&e.call(X),re<2&&(ce=TypeError("The iterator does not provide a '"+oe+"' method"),re=1);X=t}else if((e=(le=W.n<0)?ce:L.call(Y,W))!==s)break}catch(me){X=t,re=1,ce=me}finally{ee=1}}return{value:e,done:le}}})(h,P,S),!0),k}a(i,"i");var s={};function u(){}a(u,"Generator");function l(){}a(l,"GeneratorFunction");function p(){}a(p,"GeneratorFunctionPrototype"),e=Object.getPrototypeOf;var f=[][o]?e(e([][o]())):(Sr(e={},o,function(){return this}),e),y=p.prototype=u.prototype=Object.create(f);function m(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,p):(h.__proto__=p,Sr(h,n,"GeneratorFunction")),h.prototype=Object.create(y),h}return a(m,"f"),l.prototype=p,Sr(y,"constructor",p),Sr(p,"constructor",l),l.displayName="GeneratorFunction",Sr(p,n,"GeneratorFunction"),Sr(y),Sr(y,n,"Generator"),Sr(y,o,function(){return this}),Sr(y,"toString",function(){return"[object Generator]"}),(xr=a(function(){return{w:i,m}},"_regenerator"))()}a(xr,"_regenerator");function Sr(t,e,r,o){var n=Object.defineProperty;try{n({},"",{})}catch{n=0}Sr=a(function(s,u,l,p){if(u)n?n(s,u,{value:l,enumerable:!p,configurable:!p,writable:!p}):s[u]=l;else{var f=a(function(m,h){Sr(s,m,function(_){return this._invoke(m,h,_)})},"o");f("next",0),f("throw",1),f("return",2)}},"_regeneratorDefine"),Sr(t,e,r,o)}a(Sr,"_regeneratorDefine2");function s$(t,e,r,o,n,i,s){try{var u=t[i](s),l=u.value}catch(p){return void r(p)}u.done?e(l):Promise.resolve(l).then(o,n)}a(s$,"asyncGeneratorStep");function Ka(t){return function(){var e=this,r=arguments;return new Promise(function(o,n){var i=t.apply(e,r);function s(l){s$(i,o,n,s,u,"next",l)}a(s,"_next");function u(l){s$(i,o,n,s,u,"throw",l)}a(u,"_throw"),s(void 0)})}}a(Ka,"_asyncToGenerator");var c$=n$.readFile?(0,o2.promisify)(n$.readFile):Ka(xr().m(a(function t(){return xr().w(function(e){for(;;)switch(e.n){case 0:throw new Hu("use key rather than keyFile.","MISSING_CREDENTIALS");case 1:return e.a(2)}},t)},"_callee"))),u$="https://oauth2.googleapis.com/token",m2="https://oauth2.googleapis.com/revoke?token=",Hu=(function(t){function e(r,o){var n;return m$(this,e),n=s2(this,e,[r]),Pr(n,"code",void 0),n.code=o,n}return a(e,"ErrorWithCode"),l2(e,t),f$(e)})(YE(Error)),Vu=new WeakMap,_n=new WeakSet,Mle=ym.GoogleToken=(function(){function t(e){m$(this,t),i2(this,_n),Pr(this,"expiresAt",void 0),Pr(this,"key",void 0),Pr(this,"keyFile",void 0),Pr(this,"iss",void 0),Pr(this,"sub",void 0),Pr(this,"scope",void 0),Pr(this,"rawToken",void 0),Pr(this,"tokenExpires",void 0),Pr(this,"email",void 0),Pr(this,"additionalClaims",void 0),Pr(this,"eagerRefreshThresholdMillis",void 0),Pr(this,"transporter",{request:a(function(o){return(0,t2.request)(o)},"request")}),a2(this,Vu,void 0),on(_n,this,g$).call(this,e)}return a(t,"GoogleToken"),f$(t,[{key:"accessToken",get:a(function(){return this.rawToken?this.rawToken.access_token:void 0},"get")},{key:"idToken",get:a(function(){return this.rawToken?this.rawToken.id_token:void 0},"get")},{key:"tokenType",get:a(function(){return this.rawToken?this.rawToken.token_type:void 0},"get")},{key:"refreshToken",get:a(function(){return this.rawToken?this.rawToken.refresh_token:void 0},"get")},{key:"hasExpired",value:a(function(){var r=new Date().getTime();return this.rawToken&&this.expiresAt?r>=this.expiresAt:!0},"hasExpired")},{key:"isTokenExpiring",value:a(function(){var r,o=new Date().getTime(),n=(r=this.eagerRefreshThresholdMillis)!==null&&r!==void 0?r:0;return this.rawToken&&this.expiresAt?this.expiresAt<=o+n:!0},"isTokenExpiring")},{key:"getToken",value:a(function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Zn(r)==="object"&&(o=r,r=void 0),o=Object.assign({forceRefresh:!1},o),r){var n=r;on(_n,this,l$).call(this,o).then(function(i){return n(null,i)},r);return}return on(_n,this,l$).call(this,o)},"getToken")},{key:"getCredentials",value:(function(){var e=Ka(xr().m(a(function o(n){var i,s,u,l,p,f,y;return xr().w(function(m){for(;;)switch(m.n){case 0:i=n2.extname(n),y=i,m.n=y===".json"?1:y===".der"||y===".crt"||y===".pem"?4:y===".p12"||y===".pfx"?6:7;break;case 1:return m.n=2,c$(n,"utf8");case 2:if(s=m.v,u=JSON.parse(s),l=u.private_key,p=u.client_email,!(!l||!p)){m.n=3;break}throw new Hu("private_key and client_email are required.","MISSING_CREDENTIALS");case 3:return m.a(2,{privateKey:l,clientEmail:p});case 4:return m.n=5,c$(n,"utf8");case 5:return f=m.v,m.a(2,{privateKey:f});case 6:throw new Hu("*.p12 certificates are not supported after v6.1.2. Consider utilizing *.json format or converting *.p12 to *.pem using the OpenSSL CLI.","UNKNOWN_CERTIFICATE_TYPE");case 7:throw new Hu("Unknown certificate type. Type is determined based on file extension. Current supported extensions are *.json, and *.pem.","UNKNOWN_CERTIFICATE_TYPE");case 8:return m.a(2)}},o)},"_callee2")));function r(o){return e.apply(this,arguments)}return a(r,"getCredentials"),r})()},{key:"revokeToken",value:a(function(r){if(r){on(_n,this,d$).call(this).then(function(){return r()},r);return}return on(_n,this,d$).call(this)},"revokeToken")}])})();function l$(t){return QE.apply(this,arguments)}a(l$,"_getTokenAsync");function QE(){return QE=Ka(xr().m(a(function t(e){return xr().w(function(r){for(;;)switch(r.n){case 0:if(!(i$(Vu,this)&&!e.forceRefresh)){r.n=1;break}return r.a(2,i$(Vu,this));case 1:return r.p=1,r.n=2,o$(Vu,this,on(_n,this,h2).call(this,e));case 2:return r.a(2,r.v);case 3:return r.p=3,o$(Vu,this,void 0),r.f(3);case 4:return r.a(2)}},t,this,[[1,,3,4]])},"_callee3"))),QE.apply(this,arguments)}a(QE,"_getTokenAsync2");function h2(t){return eP.apply(this,arguments)}a(h2,"_getTokenAsyncInner");function eP(){return eP=Ka(xr().m(a(function t(e){var r;return xr().w(function(o){for(;;)switch(o.n){case 0:if(!(this.isTokenExpiring()===!1&&e.forceRefresh===!1)){o.n=1;break}return o.a(2,Promise.resolve(this.rawToken));case 1:if(!(!this.key&&!this.keyFile)){o.n=2;break}throw new Error("No key or keyFile set.");case 2:if(!(!this.key&&this.keyFile)){o.n=4;break}return o.n=3,this.getCredentials(this.keyFile);case 3:r=o.v,this.key=r.privateKey,this.iss=r.clientEmail||this.iss,r.clientEmail||on(_n,this,g2).call(this);case 4:return o.a(2,on(_n,this,y2).call(this))}},t,this)},"_callee4"))),eP.apply(this,arguments)}a(eP,"_getTokenAsyncInner2");function g2(){if(!this.iss)throw new Hu("email is required.","MISSING_CREDENTIALS")}a(g2,"_ensureEmail");function d$(){return tP.apply(this,arguments)}a(d$,"_revokeTokenAsync");function tP(){return tP=Ka(xr().m(a(function t(){var e;return xr().w(function(r){for(;;)switch(r.n){case 0:if(this.accessToken){r.n=1;break}throw new Error("No token to revoke.");case 1:return e=m2+this.accessToken,r.n=2,this.transporter.request({url:e,retry:!0});case 2:on(_n,this,g$).call(this,{email:this.iss,sub:this.sub,key:this.key,keyFile:this.keyFile,scope:this.scope,additionalClaims:this.additionalClaims});case 3:return r.a(2)}},t,this)},"_callee5"))),tP.apply(this,arguments)}a(tP,"_revokeTokenAsync2");function g$(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.keyFile=t.keyFile,this.key=t.key,this.rawToken=void 0,this.iss=t.email||t.iss,this.sub=t.sub,this.additionalClaims=t.additionalClaims,Zn(t.scope)==="object"?this.scope=t.scope.join(" "):this.scope=t.scope,this.eagerRefreshThresholdMillis=t.eagerRefreshThresholdMillis,t.transporter&&(this.transporter=t.transporter)}a(g$,"_configure");function y2(){return rP.apply(this,arguments)}a(y2,"_requestToken");function rP(){return rP=Ka(xr().m(a(function t(){var e,r,o,n,i,s,u,l,p,f;return xr().w(function(y){for(;;)switch(y.n){case 0:return e=Math.floor(new Date().getTime()/1e3),r=this.additionalClaims||{},o=Object.assign({iss:this.iss,scope:this.scope,aud:u$,exp:e+3600,iat:e,sub:this.sub},r),n=r2.sign({header:{alg:"RS256"},payload:o,secret:this.key}),y.p=1,y.n=2,this.transporter.request({method:"POST",url:u$,data:new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:jwt-bearer",assertion:n}),responseType:"json",retryConfig:{httpMethodsToRetry:["POST"]}});case 2:return i=y.v,this.rawToken=i.data,this.expiresAt=i.data.expires_in===null||i.data.expires_in===void 0?void 0:(e+i.data.expires_in)*1e3,y.a(2,this.rawToken);case 3:throw y.p=3,f=y.v,this.rawToken=void 0,this.tokenExpires=void 0,l=f.response&&(s=f.response)!==null&&s!==void 0&&s.data?(u=f.response)===null||u===void 0?void 0:u.data:{},l.error&&(p=l.error_description?": ".concat(l.error_description):"",f.message="".concat(l.error).concat(p)),f;case 4:return y.a(2)}},t,this,[[1,3]])},"_callee6"))),rP.apply(this,arguments)}a(rP,"_requestToken2")});var iP=z(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});_m.JWTAccess=void 0;var _2=XE(),v2=tn(),_$={alg:"RS256",typ:"JWT"},oP=class t{static{a(this,"JWTAccess")}email;key;keyId;projectId;eagerRefreshThresholdMillis;cache=new v2.LRUCache({capacity:500,maxAge:3600*1e3});constructor(e,r,o,n){this.email=e,this.key=r,this.keyId=o,this.eagerRefreshThresholdMillis=n??300*1e3}getCachedKey(e,r){let o=e;if(r&&Array.isArray(r)&&r.length?o=e?`${e}_${r.join("_")}`:`${r.join("_")}`:typeof r=="string"&&(o=e?`${e}_${r}`:r),!o)throw Error("Scopes or url must be provided");return o}getRequestHeaders(e,r,o){let n=this.getCachedKey(e,o),i=this.cache.get(n),s=Date.now();if(i&&i.expiration-s>this.eagerRefreshThresholdMillis)return new Headers(i.headers);let u=Math.floor(Date.now()/1e3),l=t.getExpirationTime(u),p;if(Array.isArray(o)&&(o=o.join(" ")),o?p={iss:this.email,sub:this.email,scope:o,exp:l,iat:u}:p={iss:this.email,sub:this.email,aud:e,exp:l,iat:u},r){for(let _ in p)if(r[_])throw new Error(`The '${_}' property is not allowed when passing additionalClaims. This claim is included in the JWT by default.`)}let f=this.keyId?{..._$,kid:this.keyId}:_$,y=Object.assign(p,r),m=_2.sign({header:f,payload:y,secret:this.key}),h=new Headers({authorization:`Bearer ${m}`});return this.cache.set(n,{expiration:l*1e3,headers:h}),h}static getExpirationTime(e){return e+3600}fromJSON(e){if(!e)throw new Error("Must pass in a JSON object containing the service account auth settings.");if(!e.client_email)throw new Error("The incoming JSON object does not contain a client_email field");if(!e.private_key)throw new Error("The incoming JSON object does not contain a private_key field");this.email=e.client_email,this.key=e.private_key,this.keyId=e.private_key_id,this.projectId=e.project_id}fromStream(e,r){if(r)this.fromStreamAsync(e).then(()=>r(),r);else return this.fromStreamAsync(e)}fromStreamAsync(e){return new Promise((r,o)=>{e||o(new Error("Must pass in a stream containing the service account auth settings."));let n="";e.setEncoding("utf8").on("data",i=>n+=i).on("error",o).on("end",()=>{try{let i=JSON.parse(n);this.fromJSON(i),r()}catch(i){o(i)}})})}};_m.JWTAccess=oP});var sP=z(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});bm.JWT=void 0;var v$=y$(),b2=iP(),E2=Ti(),vm=Er(),aP=class t extends E2.OAuth2Client{static{a(this,"JWT")}email;keyFile;key;keyId;defaultScopes;scopes;scope;subject;gtoken;additionalClaims;useJWTAccessWithScope;defaultServicePath;access;constructor(e={}){super(e),this.email=e.email,this.keyFile=e.keyFile,this.key=e.key,this.keyId=e.keyId,this.scopes=e.scopes,this.subject=e.subject,this.additionalClaims=e.additionalClaims,this.credentials={refresh_token:"jwt-placeholder",expiry_date:1}}createScoped(e){let r=new t(this);return r.scopes=e,r}async getRequestMetadataAsync(e){e=this.defaultServicePath?`https://${this.defaultServicePath}/`:e;let r=!this.hasUserScopes()&&e||this.useJWTAccessWithScope&&this.hasAnyScopes()||this.universeDomain!==vm.DEFAULT_UNIVERSE;if(this.subject&&this.universeDomain!==vm.DEFAULT_UNIVERSE)throw new RangeError(`Service Account user is configured for the credential. Domain-wide delegation is not supported in universes other than ${vm.DEFAULT_UNIVERSE}`);if(!this.apiKey&&r)if(this.additionalClaims&&this.additionalClaims.target_audience){let{tokens:o}=await this.refreshToken();return{headers:this.addSharedMetadataHeaders(new Headers({authorization:`Bearer ${o.id_token}`}))}}else{this.access||(this.access=new b2.JWTAccess(this.email,this.key,this.keyId,this.eagerRefreshThresholdMillis));let o;this.hasUserScopes()?o=this.scopes:e||(o=this.defaultScopes);let n=this.useJWTAccessWithScope||this.universeDomain!==vm.DEFAULT_UNIVERSE,i=await this.access.getRequestHeaders(e??void 0,this.additionalClaims,n?o:void 0);return{headers:this.addSharedMetadataHeaders(i)}}else return this.hasAnyScopes()||this.apiKey?super.getRequestMetadataAsync(e):{headers:new Headers}}async fetchIdToken(e){let r=new v$.GoogleToken({iss:this.email,sub:this.subject,scope:this.scopes||this.defaultScopes,keyFile:this.keyFile,key:this.key,additionalClaims:{target_audience:e},transporter:this.transporter});if(await r.getToken({forceRefresh:!0}),!r.idToken)throw new Error("Unknown error: Failed to fetch ID token");return r.idToken}hasUserScopes(){return this.scopes?this.scopes.length>0:!1}hasAnyScopes(){return!!(this.scopes&&this.scopes.length>0||this.defaultScopes&&this.defaultScopes.length>0)}authorize(e){if(e)this.authorizeAsync().then(r=>e(null,r),e);else return this.authorizeAsync()}async authorizeAsync(){let e=await this.refreshToken();if(!e)throw new Error("No result returned");return this.credentials=e.tokens,this.credentials.refresh_token="jwt-placeholder",this.key=this.gtoken.key,this.email=this.gtoken.iss,e.tokens}async refreshTokenNoCache(){let e=this.createGToken(),o={access_token:(await e.getToken({forceRefresh:this.isTokenExpiring()})).access_token,token_type:"Bearer",expiry_date:e.expiresAt,id_token:e.idToken};return this.emit("tokens",o),{res:null,tokens:o}}createGToken(){return this.gtoken||(this.gtoken=new v$.GoogleToken({iss:this.email,sub:this.subject,scope:this.scopes||this.defaultScopes,keyFile:this.keyFile,key:this.key,additionalClaims:this.additionalClaims,transporter:this.transporter})),this.gtoken}fromJSON(e){if(!e)throw new Error("Must pass in a JSON object containing the service account auth settings.");if(!e.client_email)throw new Error("The incoming JSON object does not contain a client_email field");if(!e.private_key)throw new Error("The incoming JSON object does not contain a private_key field");this.email=e.client_email,this.key=e.private_key,this.keyId=e.private_key_id,this.projectId=e.project_id,this.quotaProjectId=e.quota_project_id,this.universeDomain=e.universe_domain||this.universeDomain}fromStream(e,r){if(r)this.fromStreamAsync(e).then(()=>r(),r);else return this.fromStreamAsync(e)}fromStreamAsync(e){return new Promise((r,o)=>{if(!e)throw new Error("Must pass in a stream containing the service account auth settings.");let n="";e.setEncoding("utf8").on("error",o).on("data",i=>n+=i).on("end",()=>{try{let i=JSON.parse(n);this.fromJSON(i),r()}catch(i){o(i)}})})}fromAPIKey(e){if(typeof e!="string")throw new Error("Must provide an API Key string.");this.apiKey=e}async getCredentials(){if(this.key)return{private_key:this.key,client_email:this.email};if(this.keyFile){let r=await this.createGToken().getCredentials(this.keyFile);return{private_key:r.privateKey,client_email:r.clientEmail}}throw new Error("A key or a keyFile must be provided to getCredentials.")}};bm.JWT=aP});var uP=z(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.UserRefreshClient=Ja.USER_REFRESH_ACCOUNT_TYPE=void 0;var P2=Ti(),S2=Er();Ja.USER_REFRESH_ACCOUNT_TYPE="authorized_user";var cP=class t extends P2.OAuth2Client{static{a(this,"UserRefreshClient")}_refreshToken;constructor(e,r,o,n,i){let s=e&&typeof e=="object"?e:{clientId:e,clientSecret:r,refreshToken:o,eagerRefreshThresholdMillis:n,forceRefreshOnFailure:i};super(s),this._refreshToken=s.refreshToken,this.credentials.refresh_token=s.refreshToken}async refreshTokenNoCache(){return super.refreshTokenNoCache(this._refreshToken)}async fetchIdToken(e){let r={...t.RETRY_CONFIG,url:this.endpoints.oauth2TokenUrl,method:"POST",data:new URLSearchParams({client_id:this._clientId,client_secret:this._clientSecret,grant_type:"refresh_token",refresh_token:this._refreshToken,target_audience:e})};return S2.AuthClient.setMethodName(r,"fetchIdToken"),(await this.transporter.request(r)).data.id_token}fromJSON(e){if(!e)throw new Error("Must pass in a JSON object containing the user refresh token");if(e.type!=="authorized_user")throw new Error('The incoming JSON object does not have the "authorized_user" type');if(!e.client_id)throw new Error("The incoming JSON object does not contain a client_id field");if(!e.client_secret)throw new Error("The incoming JSON object does not contain a client_secret field");if(!e.refresh_token)throw new Error("The incoming JSON object does not contain a refresh_token field");this._clientId=e.client_id,this._clientSecret=e.client_secret,this._refreshToken=e.refresh_token,this.credentials.refresh_token=e.refresh_token,this.quotaProjectId=e.quota_project_id,this.universeDomain=e.universe_domain||this.universeDomain}fromStream(e,r){if(r)this.fromStreamAsync(e).then(()=>r(),r);else return this.fromStreamAsync(e)}async fromStreamAsync(e){return new Promise((r,o)=>{if(!e)return o(new Error("Must pass in a stream containing the user refresh token."));let n="";e.setEncoding("utf8").on("error",o).on("data",i=>n+=i).on("end",()=>{try{let i=JSON.parse(n);return this.fromJSON(i),r()}catch(i){return o(i)}})})}static fromJSON(e){let r=new t;return r.fromJSON(e),r}};Ja.UserRefreshClient=cP});var dP=z(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});Xa.Impersonated=Xa.IMPERSONATED_ACCOUNT_TYPE=void 0;var b$=Ti(),x2=bt(),T2=tn();Xa.IMPERSONATED_ACCOUNT_TYPE="impersonated_service_account";var lP=class t extends b$.OAuth2Client{static{a(this,"Impersonated")}sourceClient;targetPrincipal;targetScopes;delegates;lifetime;endpoint;constructor(e={}){if(super(e),this.credentials={expiry_date:1,refresh_token:"impersonated-placeholder"},this.sourceClient=e.sourceClient??new b$.OAuth2Client,this.targetPrincipal=e.targetPrincipal??"",this.delegates=e.delegates??[],this.targetScopes=e.targetScopes??[],this.lifetime=e.lifetime??3600,!!!(0,T2.originalOrCamelOptions)(e).get("universe_domain"))this.universeDomain=this.sourceClient.universeDomain;else if(this.sourceClient.universeDomain!==this.universeDomain)throw new RangeError(`Universe domain ${this.sourceClient.universeDomain} in source credentials does not match ${this.universeDomain} universe domain set for impersonated credentials.`);this.endpoint=e.endpoint??`https://iamcredentials.${this.universeDomain}`}async sign(e){await this.sourceClient.getAccessToken();let r=`projects/-/serviceAccounts/${this.targetPrincipal}`,o=`${this.endpoint}/v1/${r}:signBlob`,n={delegates:this.delegates,payload:Buffer.from(e).toString("base64")};return(await this.sourceClient.request({...t.RETRY_CONFIG,url:o,data:n,method:"POST"})).data}getTargetPrincipal(){return this.targetPrincipal}async refreshToken(){try{await this.sourceClient.getAccessToken();let e="projects/-/serviceAccounts/"+this.targetPrincipal,r=`${this.endpoint}/v1/${e}:generateAccessToken`,o={delegates:this.delegates,scope:this.targetScopes,lifetime:this.lifetime+"s"},n=await this.sourceClient.request({...t.RETRY_CONFIG,url:r,data:o,method:"POST"}),i=n.data;return this.credentials.access_token=i.accessToken,this.credentials.expiry_date=Date.parse(i.expireTime),{tokens:this.credentials,res:n}}catch(e){if(!(e instanceof Error))throw e;let r=0,o="";throw e instanceof x2.GaxiosError&&(r=e?.response?.data?.error?.status,o=e?.response?.data?.error?.message),r&&o?(e.message=`${r}: unable to impersonate: ${o}`,e):(e.message=`unable to impersonate: ${e}`,e)}}async fetchIdToken(e,r){await this.sourceClient.getAccessToken();let o=`projects/-/serviceAccounts/${this.targetPrincipal}`,n=`${this.endpoint}/v1/${o}:generateIdToken`,i={delegates:this.delegates,audience:e,includeEmail:r?.includeEmail??!0,useEmailAzp:r?.includeEmail??!0};return(await this.sourceClient.request({...t.RETRY_CONFIG,url:n,data:i,method:"POST"})).data.token}};Xa.Impersonated=lP});var fP=z(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.OAuthClientAuthHandler=void 0;Ku.getErrorFromOAuthErrorResponse=I2;var Ya=bt(),A2=Lu(),w2=["PUT","POST","PATCH"],pP=class{static{a(this,"OAuthClientAuthHandler")}#e=(0,A2.createCrypto)();#t;transporter;constructor(e){e&&"clientId"in e?(this.#t=e,this.transporter=new Ya.Gaxios):(this.#t=e?.clientAuthentication,this.transporter=e?.transporter||new Ya.Gaxios)}applyClientAuthenticationOptions(e,r){e.headers=Ya.Gaxios.mergeHeaders(e.headers),this.injectAuthenticatedHeaders(e,r),r||this.injectAuthenticatedRequestBody(e)}injectAuthenticatedHeaders(e,r){if(r)e.headers=Ya.Gaxios.mergeHeaders(e.headers,{authorization:`Bearer ${r}`});else if(this.#t?.confidentialClientType==="basic"){e.headers=Ya.Gaxios.mergeHeaders(e.headers);let o=this.#t.clientId,n=this.#t.clientSecret||"",i=this.#e.encodeBase64StringUtf8(`${o}:${n}`);Ya.Gaxios.mergeHeaders(e.headers,{authorization:`Basic ${i}`})}}injectAuthenticatedRequestBody(e){if(this.#t?.confidentialClientType==="request-body"){let r=(e.method||"GET").toUpperCase();if(!w2.includes(r))throw new Error(`${r} HTTP method does not support ${this.#t.confidentialClientType} client authentication`);let n=new Headers(e.headers).get("content-type");if(n?.startsWith("application/x-www-form-urlencoded")||e.data instanceof URLSearchParams){let i=new URLSearchParams(e.data??"");i.append("client_id",this.#t.clientId),i.append("client_secret",this.#t.clientSecret||""),e.data=i}else if(n?.startsWith("application/json"))e.data=e.data||{},Object.assign(e.data,{client_id:this.#t.clientId,client_secret:this.#t.clientSecret||""});else throw new Error(`${n} content-types are not supported with ${this.#t.confidentialClientType} client authentication`)}}static get RETRY_CONFIG(){return{retry:!0,retryConfig:{httpMethodsToRetry:["GET","PUT","POST","HEAD","OPTIONS","DELETE"]}}}};Ku.OAuthClientAuthHandler=pP;function I2(t,e){let r=t.error,o=t.error_description,n=t.error_uri,i=`Error code ${r}`;typeof o<"u"&&(i+=`: ${o}`),typeof n<"u"&&(i+=` - ${n}`);let s=new Error(i);if(e){let u=Object.keys(e);e.stack&&u.push("stack"),u.forEach(l=>{l!=="message"&&Object.defineProperty(s,l,{value:e[l],writable:!1,enumerable:!0})})}return s}a(I2,"getErrorFromOAuthErrorResponse")});var Pm=z(Em=>{"use strict";Object.defineProperty(Em,"__esModule",{value:!0});Em.StsCredentials=void 0;var C2=bt(),R2=Er(),E$=fP(),O2=tn(),mP=class t extends E$.OAuthClientAuthHandler{static{a(this,"StsCredentials")}#e;constructor(e={tokenExchangeEndpoint:""},r){(typeof e!="object"||e instanceof URL)&&(e={tokenExchangeEndpoint:e,clientAuthentication:r}),super(e),this.#e=e.tokenExchangeEndpoint}async exchangeToken(e,r,o){let n={grant_type:e.grantType,resource:e.resource,audience:e.audience,scope:e.scope?.join(" "),requested_token_type:e.requestedTokenType,subject_token:e.subjectToken,subject_token_type:e.subjectTokenType,actor_token:e.actingParty?.actorToken,actor_token_type:e.actingParty?.actorTokenType,options:o&&JSON.stringify(o)},i={...t.RETRY_CONFIG,url:this.#e.toString(),method:"POST",headers:r,data:new URLSearchParams((0,O2.removeUndefinedValuesInObject)(n))};R2.AuthClient.setMethodName(i,"exchangeToken"),this.applyClientAuthenticationOptions(i);try{let s=await this.transporter.request(i),u=s.data;return u.res=s,u}catch(s){throw s instanceof C2.GaxiosError&&s.response?(0,E$.getErrorFromOAuthErrorResponse)(s.response.data,s):s}}};Em.StsCredentials=mP});var $o=z(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.BaseExternalAccountClient=Lr.CLOUD_RESOURCE_MANAGER=Lr.EXTERNAL_ACCOUNT_TYPE=Lr.EXPIRATION_TIME_OFFSET=void 0;var k2=bt(),N2=require("stream"),hP=Er(),$2=Pm(),P$=tn(),z2=RE(),D2="urn:ietf:params:oauth:grant-type:token-exchange",U2="urn:ietf:params:oauth:token-type:access_token",gP="https://www.googleapis.com/auth/cloud-platform",M2=3600;Lr.EXPIRATION_TIME_OFFSET=300*1e3;Lr.EXTERNAL_ACCOUNT_TYPE="external_account";Lr.CLOUD_RESOURCE_MANAGER="https://cloudresourcemanager.googleapis.com/v1/projects/";var L2="//iam\\.googleapis\\.com/locations/[^/]+/workforcePools/[^/]+/providers/.+",j2="https://sts.{universeDomain}/v1/token",yP=class t extends hP.AuthClient{static{a(this,"BaseExternalAccountClient")}scopes;projectNumber;audience;subjectTokenType;stsCredential;clientAuth;credentialSourceType;cachedAccessToken;serviceAccountImpersonationUrl;serviceAccountImpersonationLifetime;workforcePoolUserProject;configLifetimeRequested;tokenUrl;cloudResourceManagerURL;supplierContext;#e=null;constructor(e){super(e);let r=(0,P$.originalOrCamelOptions)(e),o=r.get("type");if(o&&o!==Lr.EXTERNAL_ACCOUNT_TYPE)throw new Error(`Expected "${Lr.EXTERNAL_ACCOUNT_TYPE}" type but received "${e.type}"`);let n=r.get("client_id"),i=r.get("client_secret");this.tokenUrl=r.get("token_url")??j2.replace("{universeDomain}",this.universeDomain);let s=r.get("subject_token_type"),u=r.get("workforce_pool_user_project"),l=r.get("service_account_impersonation_url"),p=r.get("service_account_impersonation"),f=(0,P$.originalOrCamelOptions)(p).get("token_lifetime_seconds");this.cloudResourceManagerURL=new URL(r.get("cloud_resource_manager_url")||`https://cloudresourcemanager.${this.universeDomain}/v1/projects/`),n&&(this.clientAuth={confidentialClientType:"basic",clientId:n,clientSecret:i}),this.stsCredential=new $2.StsCredentials({tokenExchangeEndpoint:this.tokenUrl,clientAuthentication:this.clientAuth}),this.scopes=r.get("scopes")||[gP],this.cachedAccessToken=null,this.audience=r.get("audience"),this.subjectTokenType=s,this.workforcePoolUserProject=u;let y=new RegExp(L2);if(this.workforcePoolUserProject&&!this.audience.match(y))throw new Error("workforcePoolUserProject should not be set for non-workforce pool credentials.");this.serviceAccountImpersonationUrl=l,this.serviceAccountImpersonationLifetime=f,this.serviceAccountImpersonationLifetime?this.configLifetimeRequested=!0:(this.configLifetimeRequested=!1,this.serviceAccountImpersonationLifetime=M2),this.projectNumber=this.getProjectNumber(this.audience),this.supplierContext={audience:this.audience,subjectTokenType:this.subjectTokenType,transporter:this.transporter}}getServiceAccountEmail(){if(this.serviceAccountImpersonationUrl){if(this.serviceAccountImpersonationUrl.length>256)throw new RangeError(`URL is too long: ${this.serviceAccountImpersonationUrl}`);return/serviceAccounts\/(?<email>[^:]+):generateAccessToken$/.exec(this.serviceAccountImpersonationUrl)?.groups?.email||null}return null}setCredentials(e){super.setCredentials(e),this.cachedAccessToken=e}async getAccessToken(){return(!this.cachedAccessToken||this.isExpired(this.cachedAccessToken))&&await this.refreshAccessTokenAsync(),{token:this.cachedAccessToken.access_token,res:this.cachedAccessToken.res}}async getRequestHeaders(){let e=await this.getAccessToken(),r=new Headers({authorization:`Bearer ${e.token}`});return this.addSharedMetadataHeaders(r)}request(e,r){if(r)this.requestAsync(e).then(o=>r(null,o),o=>r(o,o.response));else return this.requestAsync(e)}async getProjectId(){let e=this.projectNumber||this.workforcePoolUserProject;if(this.projectId)return this.projectId;if(e){let r=await this.getRequestHeaders(),o={...t.RETRY_CONFIG,headers:r,url:`${this.cloudResourceManagerURL.toString()}${e}`};hP.AuthClient.setMethodName(o,"getProjectId");let n=await this.transporter.request(o);return this.projectId=n.data.projectId,this.projectId}return null}async requestAsync(e,r=!1){let o;try{let n=await this.getRequestHeaders();e.headers=k2.Gaxios.mergeHeaders(e.headers),this.addUserProjectAndAuthHeaders(e.headers,n),o=await this.transporter.request(e)}catch(n){let i=n.response;if(i){let s=i.status,u=i.config.data instanceof N2.Readable;if(!r&&(s===401||s===403)&&!u&&this.forceRefreshOnFailure)return await this.refreshAccessTokenAsync(),await this.requestAsync(e,!0)}throw n}return o}async refreshAccessTokenAsync(){this.#e=this.#e||this.#t();try{return await this.#e}finally{this.#e=null}}async#t(){let e=await this.retrieveSubjectToken(),r={grantType:D2,audience:this.audience,requestedTokenType:U2,subjectToken:e,subjectTokenType:this.subjectTokenType,scope:this.serviceAccountImpersonationUrl?[gP]:this.getScopesArray()},o=!this.clientAuth&&this.workforcePoolUserProject?{userProject:this.workforcePoolUserProject}:void 0,n=new Headers({"x-goog-api-client":this.getMetricsHeaderValue()}),i=await this.stsCredential.exchangeToken(r,n,o);return this.serviceAccountImpersonationUrl?this.cachedAccessToken=await this.getImpersonatedAccessToken(i.access_token):i.expires_in?this.cachedAccessToken={access_token:i.access_token,expiry_date:new Date().getTime()+i.expires_in*1e3,res:i.res}:this.cachedAccessToken={access_token:i.access_token,res:i.res},this.credentials={},Object.assign(this.credentials,this.cachedAccessToken),delete this.credentials.res,this.emit("tokens",{refresh_token:null,expiry_date:this.cachedAccessToken.expiry_date,access_token:this.cachedAccessToken.access_token,token_type:"Bearer",id_token:null}),this.cachedAccessToken}getProjectNumber(e){let r=e.match(/\/projects\/([^/]+)/);return r?r[1]:null}async getImpersonatedAccessToken(e){let r={...t.RETRY_CONFIG,url:this.serviceAccountImpersonationUrl,method:"POST",headers:{"content-type":"application/json",authorization:`Bearer ${e}`},data:{scope:this.getScopesArray(),lifetime:this.serviceAccountImpersonationLifetime+"s"}};hP.AuthClient.setMethodName(r,"getImpersonatedAccessToken");let o=await this.transporter.request(r),n=o.data;return{access_token:n.accessToken,expiry_date:new Date(n.expireTime).getTime(),res:o}}isExpired(e){let r=new Date().getTime();return e.expiry_date?r>=e.expiry_date-this.eagerRefreshThresholdMillis:!1}getScopesArray(){return typeof this.scopes=="string"?[this.scopes]:this.scopes||[gP]}getMetricsHeaderValue(){let e=process.version.replace(/^v/,""),r=this.serviceAccountImpersonationUrl!==void 0,o=this.credentialSourceType?this.credentialSourceType:"unknown";return`gl-node/${e} auth/${z2.pkg.version} google-byoid-sdk source/${o} sa-impersonation/${r} config-lifetime/${this.configLifetimeRequested}`}getTokenUrl(){return this.tokenUrl}};Lr.BaseExternalAccountClient=yP});var S$=z(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});Sm.FileSubjectTokenSupplier=void 0;var vP=require("util"),bP=require("fs"),F2=(0,vP.promisify)(bP.readFile??(()=>{})),B2=(0,vP.promisify)(bP.realpath??(()=>{})),q2=(0,vP.promisify)(bP.lstat??(()=>{})),_P=class{static{a(this,"FileSubjectTokenSupplier")}filePath;formatType;subjectTokenFieldName;constructor(e){this.filePath=e.filePath,this.formatType=e.formatType,this.subjectTokenFieldName=e.subjectTokenFieldName}async getSubjectToken(){let e=this.filePath;try{if(e=await B2(e),!(await q2(e)).isFile())throw new Error}catch(n){throw n instanceof Error&&(n.message=`The file at ${e} does not exist, or it is not a file. ${n.message}`),n}let r,o=await F2(e,{encoding:"utf8"});if(this.formatType==="text"?r=o:this.formatType==="json"&&this.subjectTokenFieldName&&(r=JSON.parse(o)[this.subjectTokenFieldName]),!r)throw new Error("Unable to parse the subject_token from the credential_source file");return r}};Sm.FileSubjectTokenSupplier=_P});var x$=z(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});xm.UrlSubjectTokenSupplier=void 0;var G2=Er(),EP=class{static{a(this,"UrlSubjectTokenSupplier")}url;headers;formatType;subjectTokenFieldName;additionalGaxiosOptions;constructor(e){this.url=e.url,this.formatType=e.formatType,this.subjectTokenFieldName=e.subjectTokenFieldName,this.headers=e.headers,this.additionalGaxiosOptions=e.additionalGaxiosOptions}async getSubjectToken(e){let r={...this.additionalGaxiosOptions,url:this.url,method:"GET",headers:this.headers};G2.AuthClient.setMethodName(r,"getSubjectToken");let o;if(this.formatType==="text"?o=(await e.transporter.request(r)).data:this.formatType==="json"&&this.subjectTokenFieldName&&(o=(await e.transporter.request(r)).data[this.subjectTokenFieldName]),!o)throw new Error("Unable to parse the subject_token from the credential_source URL");return o}};xm.UrlSubjectTokenSupplier=EP});var T$=z(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.CertificateSubjectTokenSupplier=Tr.InvalidConfigurationError=Tr.CertificateSourceUnavailableError=Tr.CERTIFICATE_CONFIGURATION_ENV_VARIABLE=void 0;var Tm=tn(),Am=require("fs"),wm=require("crypto"),V2=require("https");Tr.CERTIFICATE_CONFIGURATION_ENV_VARIABLE="GOOGLE_API_CERTIFICATE_CONFIG";var vn=class extends Error{static{a(this,"CertificateSourceUnavailableError")}constructor(e){super(e),this.name="CertificateSourceUnavailableError"}};Tr.CertificateSourceUnavailableError=vn;var jr=class extends Error{static{a(this,"InvalidConfigurationError")}constructor(e){super(e),this.name="InvalidConfigurationError"}};Tr.InvalidConfigurationError=jr;var PP=class{static{a(this,"CertificateSubjectTokenSupplier")}certificateConfigPath;trustChainPath;cert;key;constructor(e){if(!e.useDefaultCertificateConfig&&!e.certificateConfigLocation)throw new jr("Either `useDefaultCertificateConfig` must be true or a `certificateConfigLocation` must be provided.");if(e.useDefaultCertificateConfig&&e.certificateConfigLocation)throw new jr("Both `useDefaultCertificateConfig` and `certificateConfigLocation` cannot be provided.");this.trustChainPath=e.trustChainPath,this.certificateConfigPath=e.certificateConfigLocation??""}async createMtlsHttpsAgent(){if(!this.key||!this.cert)throw new jr("Cannot create mTLS Agent with missing certificate or key");return new V2.Agent({key:this.key,cert:this.cert})}async getSubjectToken(){this.certificateConfigPath=await this.#e();let{certPath:e,keyPath:r}=await this.#t();return{cert:this.cert,key:this.key}=await this.#r(e,r),await this.#n(this.cert)}async#e(){let e=this.certificateConfigPath;if(e){if(await(0,Tm.isValidFile)(e))return e;throw new vn(`Provided certificate config path is invalid: ${e}`)}let r=process.env[Tr.CERTIFICATE_CONFIGURATION_ENV_VARIABLE];if(r){if(await(0,Tm.isValidFile)(r))return r;throw new vn(`Path from environment variable "${Tr.CERTIFICATE_CONFIGURATION_ENV_VARIABLE}" is invalid: ${r}`)}let o=(0,Tm.getWellKnownCertificateConfigFileLocation)();if(await(0,Tm.isValidFile)(o))return o;throw new vn(`Could not find certificate configuration file. Searched override path, the "${Tr.CERTIFICATE_CONFIGURATION_ENV_VARIABLE}" env var, and the gcloud path (${o}).`)}async#t(){let e=this.certificateConfigPath,r;try{r=await Am.promises.readFile(e,"utf8")}catch{throw new vn(`Failed to read certificate config file at: ${e}`)}try{let o=JSON.parse(r),n=o?.cert_configs?.workload?.cert_path,i=o?.cert_configs?.workload?.key_path;if(!n||!i)throw new jr(`Certificate config file (${e}) is missing required "cert_path" or "key_path" in the workload config.`);return{certPath:n,keyPath:i}}catch(o){throw o instanceof jr?o:new jr(`Failed to parse certificate config from ${e}: ${o.message}`)}}async#r(e,r){let o,n;try{o=await Am.promises.readFile(e),new wm.X509Certificate(o)}catch(i){let s=i instanceof Error?i.message:String(i);throw new vn(`Failed to read certificate file at ${e}: ${s}`)}try{n=await Am.promises.readFile(r),(0,wm.createPrivateKey)(n)}catch(i){let s=i instanceof Error?i.message:String(i);throw new vn(`Failed to read private key file at ${r}: ${s}`)}return{cert:o,key:n}}async#n(e){let r=new wm.X509Certificate(e);if(!this.trustChainPath)return JSON.stringify([r.raw.toString("base64")]);try{let i=((await Am.promises.readFile(this.trustChainPath,"utf8")).match(/-----BEGIN CERTIFICATE-----[^-]+-----END CERTIFICATE-----/g)??[]).map((l,p)=>{try{return new wm.X509Certificate(l)}catch(f){let y=f instanceof Error?f.message:String(f);throw new jr(`Failed to parse certificate at index ${p} in trust chain file ${this.trustChainPath}: ${y}`)}}),s=i.findIndex(l=>r.raw.equals(l.raw)),u;if(s===-1)u=[r,...i];else if(s===0)u=i;else throw new jr(`Leaf certificate exists in the trust chain but is not the first entry (found at index ${s}).`);return JSON.stringify(u.map(l=>l.raw.toString("base64")))}catch(o){if(o instanceof jr)throw o;let n=o instanceof Error?o.message:String(o);throw new vn(`Failed to process certificate chain from ${this.trustChainPath}: ${n}`)}}};Tr.CertificateSubjectTokenSupplier=PP});var TP=z(Im=>{"use strict";Object.defineProperty(Im,"__esModule",{value:!0});Im.IdentityPoolClient=void 0;var H2=$o(),SP=tn(),Z2=S$(),W2=x$(),A$=T$(),K2=Pm(),w$=bt(),xP=class t extends H2.BaseExternalAccountClient{static{a(this,"IdentityPoolClient")}subjectTokenSupplier;constructor(e){super(e);let r=(0,SP.originalOrCamelOptions)(e),o=r.get("credential_source"),n=r.get("subject_token_supplier");if(!o&&!n)throw new Error("A credential source or subject token supplier must be specified.");if(o&&n)throw new Error("Only one of credential source or subject token supplier can be specified.");if(n)this.subjectTokenSupplier=n,this.credentialSourceType="programmatic";else{let i=(0,SP.originalOrCamelOptions)(o),s=(0,SP.originalOrCamelOptions)(i.get("format")),u=s.get("type")||"text",l=s.get("subject_token_field_name");if(u!=="json"&&u!=="text")throw new Error(`Invalid credential_source format "${u}"`);if(u==="json"&&!l)throw new Error("Missing subject_token_field_name for JSON credential_source format");let p=i.get("file"),f=i.get("url"),y=i.get("certificate"),m=i.get("headers");if(p&&f||f&&y||p&&y)throw new Error('No valid Identity Pool "credential_source" provided, must be either file, url, or certificate.');if(p)this.credentialSourceType="file",this.subjectTokenSupplier=new Z2.FileSubjectTokenSupplier({filePath:p,formatType:u,subjectTokenFieldName:l});else if(f)this.credentialSourceType="url",this.subjectTokenSupplier=new W2.UrlSubjectTokenSupplier({url:f,formatType:u,subjectTokenFieldName:l,headers:m,additionalGaxiosOptions:t.RETRY_CONFIG});else if(y){this.credentialSourceType="certificate";let h=new A$.CertificateSubjectTokenSupplier({useDefaultCertificateConfig:y.use_default_certificate_config,certificateConfigLocation:y.certificate_config_location,trustChainPath:y.trust_chain_path});this.subjectTokenSupplier=h}else throw new Error('No valid Identity Pool "credential_source" provided, must be either file, url, or certificate.')}}async retrieveSubjectToken(){let e=await this.subjectTokenSupplier.getSubjectToken(this.supplierContext);if(this.subjectTokenSupplier instanceof A$.CertificateSubjectTokenSupplier){let r=await this.subjectTokenSupplier.createMtlsHttpsAgent();this.stsCredential=new K2.StsCredentials({tokenExchangeEndpoint:this.getTokenUrl(),clientAuthentication:this.clientAuth,transporter:new w$.Gaxios({agent:r})}),this.transporter=new w$.Gaxios({...this.transporter.defaults||{},agent:r})}return e}};Im.IdentityPoolClient=xP});var wP=z(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});Rm.AwsRequestSigner=void 0;var Cm=bt(),C$=Lu(),I$="AWS4-HMAC-SHA256",J2="aws4_request",AP=class{static{a(this,"AwsRequestSigner")}getCredentials;region;crypto;constructor(e,r){this.getCredentials=e,this.region=r,this.crypto=(0,C$.createCrypto)()}async getRequestOptions(e){if(!e.url)throw new RangeError('"url" is required in "amzOptions"');let r=typeof e.data=="object"?JSON.stringify(e.data):e.data,o=e.url,n=e.method||"GET",i=e.body||r,s=e.headers,u=await this.getCredentials(),l=new URL(o);if(typeof i!="string"&&i!==void 0)throw new TypeError(`'requestPayload' is expected to be a string if provided. Got: ${i}`);let p=await Y2({crypto:this.crypto,host:l.host,canonicalUri:l.pathname,canonicalQuerystring:l.search.slice(1),method:n,region:this.region,securityCredentials:u,requestPayload:i,additionalAmzHeaders:s}),f=Cm.Gaxios.mergeHeaders(p.amzDate?{"x-amz-date":p.amzDate}:{},{authorization:p.authorizationHeader,host:l.host},s||{});u.token&&Cm.Gaxios.mergeHeaders(f,{"x-amz-security-token":u.token});let y={url:o,method:n,headers:f};return i!==void 0&&(y.body=i),y}};Rm.AwsRequestSigner=AP;async function Ju(t,e,r){return await t.signWithHmacSha256(e,r)}a(Ju,"sign");async function X2(t,e,r,o,n){let i=await Ju(t,`AWS4${e}`,r),s=await Ju(t,i,o),u=await Ju(t,s,n);return await Ju(t,u,"aws4_request")}a(X2,"getSigningKey");async function Y2(t){let e=Cm.Gaxios.mergeHeaders(t.additionalAmzHeaders),r=t.requestPayload||"",o=t.host.split(".")[0],n=new Date,i=n.toISOString().replace(/[-:]/g,"").replace(/\.[0-9]+/,""),s=n.toISOString().replace(/[-]/g,"").replace(/T.*/,"");t.securityCredentials.token&&e.set("x-amz-security-token",t.securityCredentials.token);let u=Cm.Gaxios.mergeHeaders({host:t.host},e.has("date")?{}:{"x-amz-date":i},e),l="",p=[...u.keys()].sort();p.forEach(k=>{l+=`${k}:${u.get(k)}
41
41
  `});let f=p.join(";"),y=await t.crypto.sha256DigestHex(r),m=`${t.method.toUpperCase()}
42
42
  ${t.canonicalUri}
43
43
  ${t.canonicalQuerystring}
44
44
  ${l}
45
45
  ${f}
46
- ${y}`,h=`${s}/${t.region}/${o}/${X2}`,_=`${C$}
46
+ ${y}`,h=`${s}/${t.region}/${o}/${J2}`,_=`${I$}
47
47
  ${i}
48
48
  ${h}
49
- `+await t.crypto.sha256DigestHex(m),E=await Y2(t.crypto,t.securityCredentials.secretAccessKey,s,t.region,o),S=await Ju(t.crypto,E,_),T=`${C$} Credential=${t.securityCredentials.accessKeyId}/${h}, SignedHeaders=${f}, Signature=${(0,R$.fromArrayBufferToHex)(S)}`;return{amzDate:e.has("date")?void 0:i,authorizationHeader:T,canonicalQuerystring:t.canonicalQuerystring}}a(Q2,"generateAuthenticationHeaderMap")});var O$=z(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});km.DefaultAwsSecurityCredentialsSupplier=void 0;var Om=Pr(),IE=class{static{a(this,"DefaultAwsSecurityCredentialsSupplier")}regionUrl;securityCredentialsUrl;imdsV2SessionTokenUrl;additionalGaxiosOptions;constructor(e){this.regionUrl=e.regionUrl,this.securityCredentialsUrl=e.securityCredentialsUrl,this.imdsV2SessionTokenUrl=e.imdsV2SessionTokenUrl,this.additionalGaxiosOptions=e.additionalGaxiosOptions}async getAwsRegion(e){if(this.#n)return this.#n;let r=new Headers;if(!this.#n&&this.imdsV2SessionTokenUrl&&r.set("x-aws-ec2-metadata-token",await this.#e(e.transporter)),!this.regionUrl)throw new RangeError('Unable to determine AWS region due to missing "options.credential_source.region_url"');let o={...this.additionalGaxiosOptions,url:this.regionUrl,method:"GET",headers:r};Om.AuthClient.setMethodName(o,"getAwsRegion");let n=await e.transporter.request(o);return n.data.substr(0,n.data.length-1)}async getAwsSecurityCredentials(e){if(this.#o)return this.#o;let r=new Headers;this.imdsV2SessionTokenUrl&&r.set("x-aws-ec2-metadata-token",await this.#e(e.transporter));let o=await this.#t(r,e.transporter),n=await this.#r(o,r,e.transporter);return{accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,token:n.Token}}async#e(e){let r={...this.additionalGaxiosOptions,url:this.imdsV2SessionTokenUrl,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"300"}};return Om.AuthClient.setMethodName(r,"#getImdsV2SessionToken"),(await e.request(r)).data}async#t(e,r){if(!this.securityCredentialsUrl)throw new Error('Unable to determine AWS role name due to missing "options.credential_source.url"');let o={...this.additionalGaxiosOptions,url:this.securityCredentialsUrl,method:"GET",headers:e};return Om.AuthClient.setMethodName(o,"#getAwsRoleName"),(await r.request(o)).data}async#r(e,r,o){let n={...this.additionalGaxiosOptions,url:`${this.securityCredentialsUrl}/${e}`,headers:r};return Om.AuthClient.setMethodName(n,"#retrieveAwsSecurityCredentials"),(await o.request(n)).data}get#n(){return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||null}get#o(){return process.env.AWS_ACCESS_KEY_ID&&process.env.AWS_SECRET_ACCESS_KEY?{accessKeyId:process.env.AWS_ACCESS_KEY_ID,secretAccessKey:process.env.AWS_SECRET_ACCESS_KEY,token:process.env.AWS_SESSION_TOKEN}:null}};km.DefaultAwsSecurityCredentialsSupplier=IE});var RE=z(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});Nm.AwsClient=void 0;var eH=wE(),tH=$o(),rH=O$(),k$=tn(),nH=bt(),CE=class t extends tH.BaseExternalAccountClient{static{a(this,"AwsClient")}environmentId;awsSecurityCredentialsSupplier;regionalCredVerificationUrl;awsRequestSigner;region;static#e="https://sts.{region}.amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15";static AWS_EC2_METADATA_IPV4_ADDRESS="169.254.169.254";static AWS_EC2_METADATA_IPV6_ADDRESS="fd00:ec2::254";constructor(e){super(e);let r=(0,k$.originalOrCamelOptions)(e),o=r.get("credential_source"),n=r.get("aws_security_credentials_supplier");if(!o&&!n)throw new Error("A credential source or AWS security credentials supplier must be specified.");if(o&&n)throw new Error("Only one of credential source or AWS security credentials supplier can be specified.");if(n)this.awsSecurityCredentialsSupplier=n,this.regionalCredVerificationUrl=t.#e,this.credentialSourceType="programmatic";else{let i=(0,k$.originalOrCamelOptions)(o);this.environmentId=i.get("environment_id");let s=i.get("region_url"),u=i.get("url"),l=i.get("imdsv2_session_token_url");this.awsSecurityCredentialsSupplier=new rH.DefaultAwsSecurityCredentialsSupplier({regionUrl:s,securityCredentialsUrl:u,imdsV2SessionTokenUrl:l}),this.regionalCredVerificationUrl=i.get("regional_cred_verification_url"),this.credentialSourceType="aws",this.validateEnvironmentId()}this.awsRequestSigner=null,this.region=""}validateEnvironmentId(){let e=this.environmentId?.match(/^(aws)(\d+)$/);if(!e||!this.regionalCredVerificationUrl)throw new Error('No valid AWS "credential_source" provided');if(parseInt(e[2],10)!==1)throw new Error(`aws version "${e[2]}" is not supported in the current build.`)}async retrieveSubjectToken(){this.awsRequestSigner||(this.region=await this.awsSecurityCredentialsSupplier.getAwsRegion(this.supplierContext),this.awsRequestSigner=new eH.AwsRequestSigner(async()=>this.awsSecurityCredentialsSupplier.getAwsSecurityCredentials(this.supplierContext),this.region));let e=await this.awsRequestSigner.getRequestOptions({...t.RETRY_CONFIG,url:this.regionalCredVerificationUrl.replace("{region}",this.region),method:"POST"}),r=[];return nH.Gaxios.mergeHeaders({"x-goog-cloud-target-resource":this.audience},e.headers).forEach((n,i)=>r.push({key:i,value:n})),encodeURIComponent(JSON.stringify({url:e.url,method:e.method,headers:r}))}};Nm.AwsClient=CE});var zE=z(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.InvalidSubjectTokenError=Et.InvalidMessageFieldError=Et.InvalidCodeFieldError=Et.InvalidTokenTypeFieldError=Et.InvalidExpirationTimeFieldError=Et.InvalidSuccessFieldError=Et.InvalidVersionFieldError=Et.ExecutableResponseError=Et.ExecutableResponse=void 0;var $m="urn:ietf:params:oauth:token-type:saml2",OE="urn:ietf:params:oauth:token-type:id_token",kE="urn:ietf:params:oauth:token-type:jwt",NE=class{static{a(this,"ExecutableResponse")}version;success;expirationTime;tokenType;errorCode;errorMessage;subjectToken;constructor(e){if(!e.version)throw new zm("Executable response must contain a 'version' field.");if(e.success===void 0)throw new Dm("Executable response must contain a 'success' field.");if(this.version=e.version,this.success=e.success,this.success){if(this.expirationTime=e.expiration_time,this.tokenType=e.token_type,this.tokenType!==$m&&this.tokenType!==OE&&this.tokenType!==kE)throw new Um(`Executable response must contain a 'token_type' field when successful and it must be one of ${OE}, ${kE}, or ${$m}.`);if(this.tokenType===$m){if(!e.saml_response)throw new Xu(`Executable response must contain a 'saml_response' field when token_type=${$m}.`);this.subjectToken=e.saml_response}else{if(!e.id_token)throw new Xu(`Executable response must contain a 'id_token' field when token_type=${OE} or ${kE}.`);this.subjectToken=e.id_token}}else{if(!e.code)throw new Mm("Executable response must contain a 'code' field when unsuccessful.");if(!e.message)throw new Lm("Executable response must contain a 'message' field when unsuccessful.");this.errorCode=e.code,this.errorMessage=e.message}}isValid(){return!this.isExpired()&&this.success}isExpired(){return this.expirationTime!==void 0&&this.expirationTime<Math.round(Date.now()/1e3)}};Et.ExecutableResponse=NE;var bn=class extends Error{static{a(this,"ExecutableResponseError")}constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}};Et.ExecutableResponseError=bn;var zm=class extends bn{static{a(this,"InvalidVersionFieldError")}};Et.InvalidVersionFieldError=zm;var Dm=class extends bn{static{a(this,"InvalidSuccessFieldError")}};Et.InvalidSuccessFieldError=Dm;var $E=class extends bn{static{a(this,"InvalidExpirationTimeFieldError")}};Et.InvalidExpirationTimeFieldError=$E;var Um=class extends bn{static{a(this,"InvalidTokenTypeFieldError")}};Et.InvalidTokenTypeFieldError=Um;var Mm=class extends bn{static{a(this,"InvalidCodeFieldError")}};Et.InvalidCodeFieldError=Mm;var Lm=class extends bn{static{a(this,"InvalidMessageFieldError")}};Et.InvalidMessageFieldError=Lm;var Xu=class extends bn{static{a(this,"InvalidSubjectTokenError")}};Et.InvalidSubjectTokenError=Xu});var ME=z(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.PluggableAuthHandler=Qa.ExecutableError=void 0;var Ai=zE(),oH=require("child_process"),DE=require("fs"),jm=class extends Error{static{a(this,"ExecutableError")}code;constructor(e,r){super(`The executable failed with exit code: ${r} and error message: ${e}.`),this.code=r,Object.setPrototypeOf(this,new.target.prototype)}};Qa.ExecutableError=jm;var UE=class t{static{a(this,"PluggableAuthHandler")}commandComponents;timeoutMillis;outputFile;constructor(e){if(!e.command)throw new Error("No command provided.");if(this.commandComponents=t.parseCommand(e.command),this.timeoutMillis=e.timeoutMillis,!this.timeoutMillis)throw new Error("No timeoutMillis provided.");this.outputFile=e.outputFile}retrieveResponseFromExecutable(e){return new Promise((r,o)=>{let n=oH.spawn(this.commandComponents[0],this.commandComponents.slice(1),{env:{...process.env,...Object.fromEntries(e)}}),i="";n.stdout.on("data",u=>{i+=u}),n.stderr.on("data",u=>{i+=u});let s=setTimeout(()=>(n.removeAllListeners(),n.kill(),o(new Error("The executable failed to finish within the timeout specified."))),this.timeoutMillis);n.on("close",u=>{if(clearTimeout(s),u===0)try{let l=JSON.parse(i),p=new Ai.ExecutableResponse(l);return r(p)}catch(l){return l instanceof Ai.ExecutableResponseError?o(l):o(new Ai.ExecutableResponseError(`The executable returned an invalid response: ${i}`))}else return o(new jm(i,u.toString()))})})}async retrieveCachedResponse(){if(!this.outputFile||this.outputFile.length===0)return;let e;try{e=await DE.promises.realpath(this.outputFile)}catch{return}if(!(await DE.promises.lstat(e)).isFile())return;let r=await DE.promises.readFile(e,{encoding:"utf8"});if(r!=="")try{let o=JSON.parse(r);return new Ai.ExecutableResponse(o).isValid()?new Ai.ExecutableResponse(o):void 0}catch(o){throw o instanceof Ai.ExecutableResponseError?o:new Ai.ExecutableResponseError(`The output file contained an invalid response: ${r}`)}}static parseCommand(e){let r=e.match(/(?:[^\s"]+|"[^"]*")+/g);if(!r)throw new Error(`Provided command: "${e}" could not be parsed.`);for(let o=0;o<r.length;o++)r[o][0]==='"'&&r[o].slice(-1)==='"'&&(r[o]=r[o].slice(1,-1));return r}};Qa.PluggableAuthHandler=UE});var jE=z(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.PluggableAuthClient=es.ExecutableError=void 0;var iH=$o(),aH=zE(),N$=ME(),sH=ME();Object.defineProperty(es,"ExecutableError",{enumerable:!0,get:a(function(){return sH.ExecutableError},"get")});var cH=30*1e3,$$=5*1e3,z$=120*1e3,uH="GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES",D$=1,LE=class extends iH.BaseExternalAccountClient{static{a(this,"PluggableAuthClient")}command;timeoutMillis;outputFile;handler;constructor(e){if(super(e),!e.credential_source.executable)throw new Error('No valid Pluggable Auth "credential_source" provided.');if(this.command=e.credential_source.executable.command,!this.command)throw new Error('No valid Pluggable Auth "credential_source" provided.');if(e.credential_source.executable.timeout_millis===void 0)this.timeoutMillis=cH;else if(this.timeoutMillis=e.credential_source.executable.timeout_millis,this.timeoutMillis<$$||this.timeoutMillis>z$)throw new Error(`Timeout must be between ${$$} and ${z$} milliseconds.`);this.outputFile=e.credential_source.executable.output_file,this.handler=new N$.PluggableAuthHandler({command:this.command,timeoutMillis:this.timeoutMillis,outputFile:this.outputFile}),this.credentialSourceType="executable"}async retrieveSubjectToken(){if(process.env[uH]!=="1")throw new Error("Pluggable Auth executables need to be explicitly allowed to run by setting the GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES environment Variable to 1.");let e;if(this.outputFile&&(e=await this.handler.retrieveCachedResponse()),!e){let r=new Map;r.set("GOOGLE_EXTERNAL_ACCOUNT_AUDIENCE",this.audience),r.set("GOOGLE_EXTERNAL_ACCOUNT_TOKEN_TYPE",this.subjectTokenType),r.set("GOOGLE_EXTERNAL_ACCOUNT_INTERACTIVE","0"),this.outputFile&&r.set("GOOGLE_EXTERNAL_ACCOUNT_OUTPUT_FILE",this.outputFile);let o=this.getServiceAccountEmail();o&&r.set("GOOGLE_EXTERNAL_ACCOUNT_IMPERSONATED_EMAIL",o),e=await this.handler.retrieveResponseFromExecutable(r)}if(e.version>D$)throw new Error(`Version of executable is not currently supported, maximum supported version is ${D$}.`);if(!e.success)throw new N$.ExecutableError(e.errorMessage,e.errorCode);if(this.outputFile&&!e.expirationTime)throw new aH.InvalidExpirationTimeFieldError("The executable response must contain the `expiration_time` field for successful responses when an output_file has been specified in the configuration.");if(e.isExpired())throw new Error("Executable response is expired.");return e.subjectToken}};es.PluggableAuthClient=LE});var BE=z(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});Fm.ExternalAccountClient=void 0;var lH=$o(),dH=TE(),pH=RE(),fH=jE(),FE=class{static{a(this,"ExternalAccountClient")}constructor(){throw new Error("ExternalAccountClients should be initialized via: ExternalAccountClient.fromJSON(), directly via explicit constructors, eg. new AwsClient(options), new IdentityPoolClient(options), newPluggableAuthClientOptions, or via new GoogleAuth(options).getClient()")}static fromJSON(e){return e&&e.type===lH.EXTERNAL_ACCOUNT_TYPE?e.credential_source?.environment_id?new pH.AwsClient(e):e.credential_source?.executable?new fH.PluggableAuthClient(e):new dH.IdentityPoolClient(e):null}};Fm.ExternalAccountClient=FE});var VE=z(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.ExternalAccountAuthorizedUserClient=ts.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE=void 0;var M$=Pr(),U$=fE(),L$=bt(),mH=require("stream"),hH=$o();ts.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE="external_account_authorized_user";var gH="https://sts.{universeDomain}/v1/oauthtoken",qE=class t extends U$.OAuthClientAuthHandler{static{a(this,"ExternalAccountAuthorizedUserHandler")}#e;constructor(e){super(e),this.#e=e.tokenRefreshEndpoint}async refreshToken(e,r){let o={...t.RETRY_CONFIG,url:this.#e,method:"POST",headers:r,data:new URLSearchParams({grant_type:"refresh_token",refresh_token:e})};M$.AuthClient.setMethodName(o,"refreshToken"),this.applyClientAuthenticationOptions(o);try{let n=await this.transporter.request(o),i=n.data;return i.res=n,i}catch(n){throw n instanceof L$.GaxiosError&&n.response?(0,U$.getErrorFromOAuthErrorResponse)(n.response.data,n):n}}},GE=class extends M$.AuthClient{static{a(this,"ExternalAccountAuthorizedUserClient")}cachedAccessToken;externalAccountAuthorizedUserHandler;refreshToken;constructor(e){super(e),e.universe_domain&&(this.universeDomain=e.universe_domain),this.refreshToken=e.refresh_token;let r={confidentialClientType:"basic",clientId:e.client_id,clientSecret:e.client_secret};this.externalAccountAuthorizedUserHandler=new qE({tokenRefreshEndpoint:e.token_url??gH.replace("{universeDomain}",this.universeDomain),transporter:this.transporter,clientAuthentication:r}),this.cachedAccessToken=null,this.quotaProjectId=e.quota_project_id,typeof e?.eagerRefreshThresholdMillis!="number"?this.eagerRefreshThresholdMillis=hH.EXPIRATION_TIME_OFFSET:this.eagerRefreshThresholdMillis=e.eagerRefreshThresholdMillis,this.forceRefreshOnFailure=!!e?.forceRefreshOnFailure}async getAccessToken(){return(!this.cachedAccessToken||this.isExpired(this.cachedAccessToken))&&await this.refreshAccessTokenAsync(),{token:this.cachedAccessToken.access_token,res:this.cachedAccessToken.res}}async getRequestHeaders(){let e=await this.getAccessToken(),r=new Headers({authorization:`Bearer ${e.token}`});return this.addSharedMetadataHeaders(r)}request(e,r){if(r)this.requestAsync(e).then(o=>r(null,o),o=>r(o,o.response));else return this.requestAsync(e)}async requestAsync(e,r=!1){let o;try{let n=await this.getRequestHeaders();e.headers=L$.Gaxios.mergeHeaders(e.headers),this.addUserProjectAndAuthHeaders(e.headers,n),o=await this.transporter.request(e)}catch(n){let i=n.response;if(i){let s=i.status,u=i.config.data instanceof mH.Readable;if(!r&&(s===401||s===403)&&!u&&this.forceRefreshOnFailure)return await this.refreshAccessTokenAsync(),await this.requestAsync(e,!0)}throw n}return o}async refreshAccessTokenAsync(){let e=await this.externalAccountAuthorizedUserHandler.refreshToken(this.refreshToken);return this.cachedAccessToken={access_token:e.access_token,expiry_date:new Date().getTime()+e.expires_in*1e3,res:e.res},e.refresh_token!==void 0&&(this.refreshToken=e.refresh_token),this.cachedAccessToken}isExpired(e){let r=new Date().getTime();return e.expiry_date?r>=e.expiry_date-this.eagerRefreshThresholdMillis:!1}};ts.ExternalAccountAuthorizedUserClient=GE});var q$=z(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.GoogleAuth=an.GoogleAuthExceptionMessages=void 0;var yH=require("child_process"),Yu=require("fs"),_H=bt(),Qu=Mu(),vH=require("os"),HE=require("path"),bH=Lu(),PH=LP(),EH=FP(),SH=BP(),rs=sE(),j$=uE(),ns=dE(),xH=BE(),el=$o(),ZE=Pr(),F$=VE(),B$=tn();an.GoogleAuthExceptionMessages={API_KEY_WITH_CREDENTIALS:"API Keys and Credentials are mutually exclusive authentication methods and cannot be used together.",NO_PROJECT_ID_FOUND:`Unable to detect a Project Id in the current environment.
49
+ `+await t.crypto.sha256DigestHex(m),P=await X2(t.crypto,t.securityCredentials.secretAccessKey,s,t.region,o),S=await Ju(t.crypto,P,_),T=`${I$} Credential=${t.securityCredentials.accessKeyId}/${h}, SignedHeaders=${f}, Signature=${(0,C$.fromArrayBufferToHex)(S)}`;return{amzDate:e.has("date")?void 0:i,authorizationHeader:T,canonicalQuerystring:t.canonicalQuerystring}}a(Y2,"generateAuthenticationHeaderMap")});var R$=z(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});km.DefaultAwsSecurityCredentialsSupplier=void 0;var Om=Er(),IP=class{static{a(this,"DefaultAwsSecurityCredentialsSupplier")}regionUrl;securityCredentialsUrl;imdsV2SessionTokenUrl;additionalGaxiosOptions;constructor(e){this.regionUrl=e.regionUrl,this.securityCredentialsUrl=e.securityCredentialsUrl,this.imdsV2SessionTokenUrl=e.imdsV2SessionTokenUrl,this.additionalGaxiosOptions=e.additionalGaxiosOptions}async getAwsRegion(e){if(this.#n)return this.#n;let r=new Headers;if(!this.#n&&this.imdsV2SessionTokenUrl&&r.set("x-aws-ec2-metadata-token",await this.#e(e.transporter)),!this.regionUrl)throw new RangeError('Unable to determine AWS region due to missing "options.credential_source.region_url"');let o={...this.additionalGaxiosOptions,url:this.regionUrl,method:"GET",headers:r};Om.AuthClient.setMethodName(o,"getAwsRegion");let n=await e.transporter.request(o);return n.data.substr(0,n.data.length-1)}async getAwsSecurityCredentials(e){if(this.#o)return this.#o;let r=new Headers;this.imdsV2SessionTokenUrl&&r.set("x-aws-ec2-metadata-token",await this.#e(e.transporter));let o=await this.#t(r,e.transporter),n=await this.#r(o,r,e.transporter);return{accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,token:n.Token}}async#e(e){let r={...this.additionalGaxiosOptions,url:this.imdsV2SessionTokenUrl,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"300"}};return Om.AuthClient.setMethodName(r,"#getImdsV2SessionToken"),(await e.request(r)).data}async#t(e,r){if(!this.securityCredentialsUrl)throw new Error('Unable to determine AWS role name due to missing "options.credential_source.url"');let o={...this.additionalGaxiosOptions,url:this.securityCredentialsUrl,method:"GET",headers:e};return Om.AuthClient.setMethodName(o,"#getAwsRoleName"),(await r.request(o)).data}async#r(e,r,o){let n={...this.additionalGaxiosOptions,url:`${this.securityCredentialsUrl}/${e}`,headers:r};return Om.AuthClient.setMethodName(n,"#retrieveAwsSecurityCredentials"),(await o.request(n)).data}get#n(){return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||null}get#o(){return process.env.AWS_ACCESS_KEY_ID&&process.env.AWS_SECRET_ACCESS_KEY?{accessKeyId:process.env.AWS_ACCESS_KEY_ID,secretAccessKey:process.env.AWS_SECRET_ACCESS_KEY,token:process.env.AWS_SESSION_TOKEN}:null}};km.DefaultAwsSecurityCredentialsSupplier=IP});var RP=z(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});Nm.AwsClient=void 0;var Q2=wP(),eH=$o(),tH=R$(),O$=tn(),rH=bt(),CP=class t extends eH.BaseExternalAccountClient{static{a(this,"AwsClient")}environmentId;awsSecurityCredentialsSupplier;regionalCredVerificationUrl;awsRequestSigner;region;static#e="https://sts.{region}.amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15";static AWS_EC2_METADATA_IPV4_ADDRESS="169.254.169.254";static AWS_EC2_METADATA_IPV6_ADDRESS="fd00:ec2::254";constructor(e){super(e);let r=(0,O$.originalOrCamelOptions)(e),o=r.get("credential_source"),n=r.get("aws_security_credentials_supplier");if(!o&&!n)throw new Error("A credential source or AWS security credentials supplier must be specified.");if(o&&n)throw new Error("Only one of credential source or AWS security credentials supplier can be specified.");if(n)this.awsSecurityCredentialsSupplier=n,this.regionalCredVerificationUrl=t.#e,this.credentialSourceType="programmatic";else{let i=(0,O$.originalOrCamelOptions)(o);this.environmentId=i.get("environment_id");let s=i.get("region_url"),u=i.get("url"),l=i.get("imdsv2_session_token_url");this.awsSecurityCredentialsSupplier=new tH.DefaultAwsSecurityCredentialsSupplier({regionUrl:s,securityCredentialsUrl:u,imdsV2SessionTokenUrl:l}),this.regionalCredVerificationUrl=i.get("regional_cred_verification_url"),this.credentialSourceType="aws",this.validateEnvironmentId()}this.awsRequestSigner=null,this.region=""}validateEnvironmentId(){let e=this.environmentId?.match(/^(aws)(\d+)$/);if(!e||!this.regionalCredVerificationUrl)throw new Error('No valid AWS "credential_source" provided');if(parseInt(e[2],10)!==1)throw new Error(`aws version "${e[2]}" is not supported in the current build.`)}async retrieveSubjectToken(){this.awsRequestSigner||(this.region=await this.awsSecurityCredentialsSupplier.getAwsRegion(this.supplierContext),this.awsRequestSigner=new Q2.AwsRequestSigner(async()=>this.awsSecurityCredentialsSupplier.getAwsSecurityCredentials(this.supplierContext),this.region));let e=await this.awsRequestSigner.getRequestOptions({...t.RETRY_CONFIG,url:this.regionalCredVerificationUrl.replace("{region}",this.region),method:"POST"}),r=[];return rH.Gaxios.mergeHeaders({"x-goog-cloud-target-resource":this.audience},e.headers).forEach((n,i)=>r.push({key:i,value:n})),encodeURIComponent(JSON.stringify({url:e.url,method:e.method,headers:r}))}};Nm.AwsClient=CP});var zP=z(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.InvalidSubjectTokenError=Pt.InvalidMessageFieldError=Pt.InvalidCodeFieldError=Pt.InvalidTokenTypeFieldError=Pt.InvalidExpirationTimeFieldError=Pt.InvalidSuccessFieldError=Pt.InvalidVersionFieldError=Pt.ExecutableResponseError=Pt.ExecutableResponse=void 0;var $m="urn:ietf:params:oauth:token-type:saml2",OP="urn:ietf:params:oauth:token-type:id_token",kP="urn:ietf:params:oauth:token-type:jwt",NP=class{static{a(this,"ExecutableResponse")}version;success;expirationTime;tokenType;errorCode;errorMessage;subjectToken;constructor(e){if(!e.version)throw new zm("Executable response must contain a 'version' field.");if(e.success===void 0)throw new Dm("Executable response must contain a 'success' field.");if(this.version=e.version,this.success=e.success,this.success){if(this.expirationTime=e.expiration_time,this.tokenType=e.token_type,this.tokenType!==$m&&this.tokenType!==OP&&this.tokenType!==kP)throw new Um(`Executable response must contain a 'token_type' field when successful and it must be one of ${OP}, ${kP}, or ${$m}.`);if(this.tokenType===$m){if(!e.saml_response)throw new Xu(`Executable response must contain a 'saml_response' field when token_type=${$m}.`);this.subjectToken=e.saml_response}else{if(!e.id_token)throw new Xu(`Executable response must contain a 'id_token' field when token_type=${OP} or ${kP}.`);this.subjectToken=e.id_token}}else{if(!e.code)throw new Mm("Executable response must contain a 'code' field when unsuccessful.");if(!e.message)throw new Lm("Executable response must contain a 'message' field when unsuccessful.");this.errorCode=e.code,this.errorMessage=e.message}}isValid(){return!this.isExpired()&&this.success}isExpired(){return this.expirationTime!==void 0&&this.expirationTime<Math.round(Date.now()/1e3)}};Pt.ExecutableResponse=NP;var bn=class extends Error{static{a(this,"ExecutableResponseError")}constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}};Pt.ExecutableResponseError=bn;var zm=class extends bn{static{a(this,"InvalidVersionFieldError")}};Pt.InvalidVersionFieldError=zm;var Dm=class extends bn{static{a(this,"InvalidSuccessFieldError")}};Pt.InvalidSuccessFieldError=Dm;var $P=class extends bn{static{a(this,"InvalidExpirationTimeFieldError")}};Pt.InvalidExpirationTimeFieldError=$P;var Um=class extends bn{static{a(this,"InvalidTokenTypeFieldError")}};Pt.InvalidTokenTypeFieldError=Um;var Mm=class extends bn{static{a(this,"InvalidCodeFieldError")}};Pt.InvalidCodeFieldError=Mm;var Lm=class extends bn{static{a(this,"InvalidMessageFieldError")}};Pt.InvalidMessageFieldError=Lm;var Xu=class extends bn{static{a(this,"InvalidSubjectTokenError")}};Pt.InvalidSubjectTokenError=Xu});var MP=z(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.PluggableAuthHandler=Qa.ExecutableError=void 0;var Ai=zP(),nH=require("child_process"),DP=require("fs"),jm=class extends Error{static{a(this,"ExecutableError")}code;constructor(e,r){super(`The executable failed with exit code: ${r} and error message: ${e}.`),this.code=r,Object.setPrototypeOf(this,new.target.prototype)}};Qa.ExecutableError=jm;var UP=class t{static{a(this,"PluggableAuthHandler")}commandComponents;timeoutMillis;outputFile;constructor(e){if(!e.command)throw new Error("No command provided.");if(this.commandComponents=t.parseCommand(e.command),this.timeoutMillis=e.timeoutMillis,!this.timeoutMillis)throw new Error("No timeoutMillis provided.");this.outputFile=e.outputFile}retrieveResponseFromExecutable(e){return new Promise((r,o)=>{let n=nH.spawn(this.commandComponents[0],this.commandComponents.slice(1),{env:{...process.env,...Object.fromEntries(e)}}),i="";n.stdout.on("data",u=>{i+=u}),n.stderr.on("data",u=>{i+=u});let s=setTimeout(()=>(n.removeAllListeners(),n.kill(),o(new Error("The executable failed to finish within the timeout specified."))),this.timeoutMillis);n.on("close",u=>{if(clearTimeout(s),u===0)try{let l=JSON.parse(i),p=new Ai.ExecutableResponse(l);return r(p)}catch(l){return l instanceof Ai.ExecutableResponseError?o(l):o(new Ai.ExecutableResponseError(`The executable returned an invalid response: ${i}`))}else return o(new jm(i,u.toString()))})})}async retrieveCachedResponse(){if(!this.outputFile||this.outputFile.length===0)return;let e;try{e=await DP.promises.realpath(this.outputFile)}catch{return}if(!(await DP.promises.lstat(e)).isFile())return;let r=await DP.promises.readFile(e,{encoding:"utf8"});if(r!=="")try{let o=JSON.parse(r);return new Ai.ExecutableResponse(o).isValid()?new Ai.ExecutableResponse(o):void 0}catch(o){throw o instanceof Ai.ExecutableResponseError?o:new Ai.ExecutableResponseError(`The output file contained an invalid response: ${r}`)}}static parseCommand(e){let r=e.match(/(?:[^\s"]+|"[^"]*")+/g);if(!r)throw new Error(`Provided command: "${e}" could not be parsed.`);for(let o=0;o<r.length;o++)r[o][0]==='"'&&r[o].slice(-1)==='"'&&(r[o]=r[o].slice(1,-1));return r}};Qa.PluggableAuthHandler=UP});var jP=z(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.PluggableAuthClient=es.ExecutableError=void 0;var oH=$o(),iH=zP(),k$=MP(),aH=MP();Object.defineProperty(es,"ExecutableError",{enumerable:!0,get:a(function(){return aH.ExecutableError},"get")});var sH=30*1e3,N$=5*1e3,$$=120*1e3,cH="GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES",z$=1,LP=class extends oH.BaseExternalAccountClient{static{a(this,"PluggableAuthClient")}command;timeoutMillis;outputFile;handler;constructor(e){if(super(e),!e.credential_source.executable)throw new Error('No valid Pluggable Auth "credential_source" provided.');if(this.command=e.credential_source.executable.command,!this.command)throw new Error('No valid Pluggable Auth "credential_source" provided.');if(e.credential_source.executable.timeout_millis===void 0)this.timeoutMillis=sH;else if(this.timeoutMillis=e.credential_source.executable.timeout_millis,this.timeoutMillis<N$||this.timeoutMillis>$$)throw new Error(`Timeout must be between ${N$} and ${$$} milliseconds.`);this.outputFile=e.credential_source.executable.output_file,this.handler=new k$.PluggableAuthHandler({command:this.command,timeoutMillis:this.timeoutMillis,outputFile:this.outputFile}),this.credentialSourceType="executable"}async retrieveSubjectToken(){if(process.env[cH]!=="1")throw new Error("Pluggable Auth executables need to be explicitly allowed to run by setting the GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES environment Variable to 1.");let e;if(this.outputFile&&(e=await this.handler.retrieveCachedResponse()),!e){let r=new Map;r.set("GOOGLE_EXTERNAL_ACCOUNT_AUDIENCE",this.audience),r.set("GOOGLE_EXTERNAL_ACCOUNT_TOKEN_TYPE",this.subjectTokenType),r.set("GOOGLE_EXTERNAL_ACCOUNT_INTERACTIVE","0"),this.outputFile&&r.set("GOOGLE_EXTERNAL_ACCOUNT_OUTPUT_FILE",this.outputFile);let o=this.getServiceAccountEmail();o&&r.set("GOOGLE_EXTERNAL_ACCOUNT_IMPERSONATED_EMAIL",o),e=await this.handler.retrieveResponseFromExecutable(r)}if(e.version>z$)throw new Error(`Version of executable is not currently supported, maximum supported version is ${z$}.`);if(!e.success)throw new k$.ExecutableError(e.errorMessage,e.errorCode);if(this.outputFile&&!e.expirationTime)throw new iH.InvalidExpirationTimeFieldError("The executable response must contain the `expiration_time` field for successful responses when an output_file has been specified in the configuration.");if(e.isExpired())throw new Error("Executable response is expired.");return e.subjectToken}};es.PluggableAuthClient=LP});var BP=z(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});Fm.ExternalAccountClient=void 0;var uH=$o(),lH=TP(),dH=RP(),pH=jP(),FP=class{static{a(this,"ExternalAccountClient")}constructor(){throw new Error("ExternalAccountClients should be initialized via: ExternalAccountClient.fromJSON(), directly via explicit constructors, eg. new AwsClient(options), new IdentityPoolClient(options), newPluggableAuthClientOptions, or via new GoogleAuth(options).getClient()")}static fromJSON(e){return e&&e.type===uH.EXTERNAL_ACCOUNT_TYPE?e.credential_source?.environment_id?new dH.AwsClient(e):e.credential_source?.executable?new pH.PluggableAuthClient(e):new lH.IdentityPoolClient(e):null}};Fm.ExternalAccountClient=FP});var VP=z(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.ExternalAccountAuthorizedUserClient=ts.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE=void 0;var U$=Er(),D$=fP(),M$=bt(),fH=require("stream"),mH=$o();ts.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE="external_account_authorized_user";var hH="https://sts.{universeDomain}/v1/oauthtoken",qP=class t extends D$.OAuthClientAuthHandler{static{a(this,"ExternalAccountAuthorizedUserHandler")}#e;constructor(e){super(e),this.#e=e.tokenRefreshEndpoint}async refreshToken(e,r){let o={...t.RETRY_CONFIG,url:this.#e,method:"POST",headers:r,data:new URLSearchParams({grant_type:"refresh_token",refresh_token:e})};U$.AuthClient.setMethodName(o,"refreshToken"),this.applyClientAuthenticationOptions(o);try{let n=await this.transporter.request(o),i=n.data;return i.res=n,i}catch(n){throw n instanceof M$.GaxiosError&&n.response?(0,D$.getErrorFromOAuthErrorResponse)(n.response.data,n):n}}},GP=class extends U$.AuthClient{static{a(this,"ExternalAccountAuthorizedUserClient")}cachedAccessToken;externalAccountAuthorizedUserHandler;refreshToken;constructor(e){super(e),e.universe_domain&&(this.universeDomain=e.universe_domain),this.refreshToken=e.refresh_token;let r={confidentialClientType:"basic",clientId:e.client_id,clientSecret:e.client_secret};this.externalAccountAuthorizedUserHandler=new qP({tokenRefreshEndpoint:e.token_url??hH.replace("{universeDomain}",this.universeDomain),transporter:this.transporter,clientAuthentication:r}),this.cachedAccessToken=null,this.quotaProjectId=e.quota_project_id,typeof e?.eagerRefreshThresholdMillis!="number"?this.eagerRefreshThresholdMillis=mH.EXPIRATION_TIME_OFFSET:this.eagerRefreshThresholdMillis=e.eagerRefreshThresholdMillis,this.forceRefreshOnFailure=!!e?.forceRefreshOnFailure}async getAccessToken(){return(!this.cachedAccessToken||this.isExpired(this.cachedAccessToken))&&await this.refreshAccessTokenAsync(),{token:this.cachedAccessToken.access_token,res:this.cachedAccessToken.res}}async getRequestHeaders(){let e=await this.getAccessToken(),r=new Headers({authorization:`Bearer ${e.token}`});return this.addSharedMetadataHeaders(r)}request(e,r){if(r)this.requestAsync(e).then(o=>r(null,o),o=>r(o,o.response));else return this.requestAsync(e)}async requestAsync(e,r=!1){let o;try{let n=await this.getRequestHeaders();e.headers=M$.Gaxios.mergeHeaders(e.headers),this.addUserProjectAndAuthHeaders(e.headers,n),o=await this.transporter.request(e)}catch(n){let i=n.response;if(i){let s=i.status,u=i.config.data instanceof fH.Readable;if(!r&&(s===401||s===403)&&!u&&this.forceRefreshOnFailure)return await this.refreshAccessTokenAsync(),await this.requestAsync(e,!0)}throw n}return o}async refreshAccessTokenAsync(){let e=await this.externalAccountAuthorizedUserHandler.refreshToken(this.refreshToken);return this.cachedAccessToken={access_token:e.access_token,expiry_date:new Date().getTime()+e.expires_in*1e3,res:e.res},e.refresh_token!==void 0&&(this.refreshToken=e.refresh_token),this.cachedAccessToken}isExpired(e){let r=new Date().getTime();return e.expiry_date?r>=e.expiry_date-this.eagerRefreshThresholdMillis:!1}};ts.ExternalAccountAuthorizedUserClient=GP});var B$=z(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.GoogleAuth=an.GoogleAuthExceptionMessages=void 0;var gH=require("child_process"),Yu=require("fs"),yH=bt(),Qu=Mu(),_H=require("os"),HP=require("path"),vH=Lu(),bH=LE(),EH=FE(),PH=BE(),rs=sP(),L$=uP(),ns=dP(),SH=BP(),el=$o(),ZP=Er(),j$=VP(),F$=tn();an.GoogleAuthExceptionMessages={API_KEY_WITH_CREDENTIALS:"API Keys and Credentials are mutually exclusive authentication methods and cannot be used together.",NO_PROJECT_ID_FOUND:`Unable to detect a Project Id in the current environment.
50
50
  To learn more about authentication and Google APIs, visit:
51
51
  https://cloud.google.com/docs/authentication/getting-started`,NO_CREDENTIALS_FOUND:`Unable to find credentials in current environment.
52
52
  To learn more about authentication and Google APIs, visit:
53
53
  https://cloud.google.com/docs/authentication/getting-started`,NO_ADC_FOUND:"Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started for more information.",NO_UNIVERSE_DOMAIN_FOUND:`Unable to detect a Universe Domain in the current environment.
54
54
  To learn more about Universe Domain retrieval, visit:
55
- https://cloud.google.com/compute/docs/metadata/predefined-metadata-keys`};var WE=class{static{a(this,"GoogleAuth")}checkIsGCE=void 0;useJWTAccessWithScope;defaultServicePath;get isGCE(){return this.checkIsGCE}_findProjectIdPromise;_cachedProjectId;jsonContent=null;apiKey;cachedCredential=null;#e=null;defaultScopes;keyFilename;scopes;clientOptions={};constructor(e={}){if(this._cachedProjectId=e.projectId||null,this.cachedCredential=e.authClient||null,this.keyFilename=e.keyFilename||e.keyFile,this.scopes=e.scopes,this.clientOptions=e.clientOptions||{},this.jsonContent=e.credentials||null,this.apiKey=e.apiKey||this.clientOptions.apiKey||null,this.apiKey&&(this.jsonContent||this.clientOptions.credentials))throw new RangeError(an.GoogleAuthExceptionMessages.API_KEY_WITH_CREDENTIALS);e.universeDomain&&(this.clientOptions.universeDomain=e.universeDomain)}setGapicJWTValues(e){e.defaultServicePath=this.defaultServicePath,e.useJWTAccessWithScope=this.useJWTAccessWithScope,e.defaultScopes=this.defaultScopes}getProjectId(e){if(e)this.getProjectIdAsync().then(r=>e(null,r),e);else return this.getProjectIdAsync()}async getProjectIdOptional(){try{return await this.getProjectId()}catch(e){if(e instanceof Error&&e.message===an.GoogleAuthExceptionMessages.NO_PROJECT_ID_FOUND)return null;throw e}}async findAndCacheProjectId(){let e=null;if(e||=await this.getProductionProjectId(),e||=await this.getFileProjectId(),e||=await this.getDefaultServiceProjectId(),e||=await this.getGCEProjectId(),e||=await this.getExternalAccountClientProjectId(),e)return this._cachedProjectId=e,e;throw new Error(an.GoogleAuthExceptionMessages.NO_PROJECT_ID_FOUND)}async getProjectIdAsync(){return this._cachedProjectId?this._cachedProjectId:(this._findProjectIdPromise||(this._findProjectIdPromise=this.findAndCacheProjectId()),this._findProjectIdPromise)}async getUniverseDomainFromMetadataServer(){let e;try{e=await Qu.universe("universe-domain"),e||=ZE.DEFAULT_UNIVERSE}catch(r){if(r&&r?.response?.status===404)e=ZE.DEFAULT_UNIVERSE;else throw r}return e}async getUniverseDomain(){let e=(0,B$.originalOrCamelOptions)(this.clientOptions).get("universe_domain");try{e??=(await this.getClient()).universeDomain}catch{e??=ZE.DEFAULT_UNIVERSE}return e}getAnyScopes(){return this.scopes||this.defaultScopes}getApplicationDefault(e={},r){let o;if(typeof e=="function"?r=e:o=e,r)this.getApplicationDefaultAsync(o).then(n=>r(null,n.credential,n.projectId),r);else return this.getApplicationDefaultAsync(o)}async getApplicationDefaultAsync(e={}){if(this.cachedCredential)return await this.#t(this.cachedCredential,null);let r;if(r=await this._tryGetApplicationCredentialsFromEnvironmentVariable(e),r)return r instanceof rs.JWT?r.scopes=this.scopes:r instanceof el.BaseExternalAccountClient&&(r.scopes=this.getAnyScopes()),await this.#t(r);if(r=await this._tryGetApplicationCredentialsFromWellKnownFile(e),r)return r instanceof rs.JWT?r.scopes=this.scopes:r instanceof el.BaseExternalAccountClient&&(r.scopes=this.getAnyScopes()),await this.#t(r);if(await this._checkIsGCE())return e.scopes=this.getAnyScopes(),await this.#t(new PH.Compute(e));throw new Error(an.GoogleAuthExceptionMessages.NO_ADC_FOUND)}async#t(e,r=process.env.GOOGLE_CLOUD_QUOTA_PROJECT||null){let o=await this.getProjectIdOptional();return r&&(e.quotaProjectId=r),this.cachedCredential=e,{credential:e,projectId:o}}async _checkIsGCE(){return this.checkIsGCE===void 0&&(this.checkIsGCE=Qu.getGCPResidency()||await Qu.isAvailable()),this.checkIsGCE}async _tryGetApplicationCredentialsFromEnvironmentVariable(e){let r=process.env.GOOGLE_APPLICATION_CREDENTIALS||process.env.google_application_credentials;if(!r||r.length===0)return null;try{return this._getApplicationCredentialsFromFilePath(r,e)}catch(o){throw o instanceof Error&&(o.message=`Unable to read the credential file specified by the GOOGLE_APPLICATION_CREDENTIALS environment variable: ${o.message}`),o}}async _tryGetApplicationCredentialsFromWellKnownFile(e){let r=null;if(this._isWindows())r=process.env.APPDATA;else{let n=process.env.HOME;n&&(r=HE.join(n,".config"))}return r&&(r=HE.join(r,"gcloud","application_default_credentials.json"),Yu.existsSync(r)||(r=null)),r?await this._getApplicationCredentialsFromFilePath(r,e):null}async _getApplicationCredentialsFromFilePath(e,r={}){if(!e||e.length===0)throw new Error("The file path is invalid.");try{if(e=Yu.realpathSync(e),!Yu.lstatSync(e).isFile())throw new Error}catch(n){throw n instanceof Error&&(n.message=`The file at ${e} does not exist, or it is not a file. ${n.message}`),n}let o=Yu.createReadStream(e);return this.fromStream(o,r)}fromImpersonatedJSON(e){if(!e)throw new Error("Must pass in a JSON object containing an impersonated refresh token");if(e.type!==ns.IMPERSONATED_ACCOUNT_TYPE)throw new Error(`The incoming JSON object does not have the "${ns.IMPERSONATED_ACCOUNT_TYPE}" type`);if(!e.source_credentials)throw new Error("The incoming JSON object does not contain a source_credentials field");if(!e.service_account_impersonation_url)throw new Error("The incoming JSON object does not contain a service_account_impersonation_url field");let r=this.fromJSON(e.source_credentials);if(e.service_account_impersonation_url?.length>256)throw new RangeError(`Target principal is too long: ${e.service_account_impersonation_url}`);let o=/(?<target>[^/]+):(generateAccessToken|generateIdToken)$/.exec(e.service_account_impersonation_url)?.groups?.target;if(!o)throw new RangeError(`Cannot extract target principal from ${e.service_account_impersonation_url}`);let n=(this.scopes||e.scopes||this.defaultScopes)??[];return new ns.Impersonated({...e,sourceClient:r,targetPrincipal:o,targetScopes:Array.isArray(n)?n:[n]})}fromJSON(e,r={}){let o,n=(0,B$.originalOrCamelOptions)(r).get("universe_domain");return e.type===j$.USER_REFRESH_ACCOUNT_TYPE?(o=new j$.UserRefreshClient(r),o.fromJSON(e)):e.type===ns.IMPERSONATED_ACCOUNT_TYPE?o=this.fromImpersonatedJSON(e):e.type===el.EXTERNAL_ACCOUNT_TYPE?(o=xH.ExternalAccountClient.fromJSON({...e,...r}),o.scopes=this.getAnyScopes()):e.type===F$.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE?o=new F$.ExternalAccountAuthorizedUserClient({...e,...r}):(r.scopes=this.scopes,o=new rs.JWT(r),this.setGapicJWTValues(o),o.fromJSON(e)),n&&(o.universeDomain=n),o}_cacheClientFromJSON(e,r){let o=this.fromJSON(e,r);return this.jsonContent=e,this.cachedCredential=o,o}fromStream(e,r={},o){let n={};if(typeof r=="function"?o=r:n=r,o)this.fromStreamAsync(e,n).then(i=>o(null,i),o);else return this.fromStreamAsync(e,n)}fromStreamAsync(e,r){return new Promise((o,n)=>{if(!e)throw new Error("Must pass in a stream containing the Google auth settings.");let i=[];e.setEncoding("utf8").on("error",n).on("data",s=>i.push(s)).on("end",()=>{try{try{let s=JSON.parse(i.join("")),u=this._cacheClientFromJSON(s,r);return o(u)}catch(s){if(!this.keyFilename)throw s;let u=new rs.JWT({...this.clientOptions,keyFile:this.keyFilename});return this.cachedCredential=u,this.setGapicJWTValues(u),o(u)}}catch(s){return n(s)}})})}fromAPIKey(e,r={}){return new rs.JWT({...r,apiKey:e})}_isWindows(){let e=vH.platform();return!!(e&&e.length>=3&&e.substring(0,3).toLowerCase()==="win")}async getDefaultServiceProjectId(){return new Promise(e=>{(0,yH.exec)("gcloud config config-helper --format json",(r,o)=>{if(!r&&o)try{let n=JSON.parse(o).configuration.properties.core.project;e(n);return}catch{}e(null)})})}getProductionProjectId(){return process.env.GCLOUD_PROJECT||process.env.GOOGLE_CLOUD_PROJECT||process.env.gcloud_project||process.env.google_cloud_project}async getFileProjectId(){if(this.cachedCredential)return this.cachedCredential.projectId;if(this.keyFilename){let r=await this.getClient();if(r&&r.projectId)return r.projectId}let e=await this._tryGetApplicationCredentialsFromEnvironmentVariable();return e?e.projectId:null}async getExternalAccountClientProjectId(){return!this.jsonContent||this.jsonContent.type!==el.EXTERNAL_ACCOUNT_TYPE?null:await(await this.getClient()).getProjectId()}async getGCEProjectId(){try{return await Qu.project("project-id")}catch{return null}}getCredentials(e){if(e)this.getCredentialsAsync().then(r=>e(null,r),e);else return this.getCredentialsAsync()}async getCredentialsAsync(){let e=await this.getClient();if(e instanceof ns.Impersonated)return{client_email:e.getTargetPrincipal()};if(e instanceof el.BaseExternalAccountClient){let r=e.getServiceAccountEmail();if(r)return{client_email:r,universe_domain:e.universeDomain}}if(this.jsonContent)return{client_email:this.jsonContent.client_email,private_key:this.jsonContent.private_key,universe_domain:this.jsonContent.universe_domain};if(await this._checkIsGCE()){let[r,o]=await Promise.all([Qu.instance("service-accounts/default/email"),this.getUniverseDomain()]);return{client_email:r,universe_domain:o}}throw new Error(an.GoogleAuthExceptionMessages.NO_CREDENTIALS_FOUND)}async getClient(){if(this.cachedCredential)return this.cachedCredential;this.#e=this.#e||this.#r();try{return await this.#e}finally{this.#e=null}}async#r(){if(this.jsonContent)return this._cacheClientFromJSON(this.jsonContent,this.clientOptions);if(this.keyFilename){let e=HE.resolve(this.keyFilename),r=Yu.createReadStream(e);return await this.fromStreamAsync(r,this.clientOptions)}else if(this.apiKey){let e=await this.fromAPIKey(this.apiKey,this.clientOptions);e.scopes=this.scopes;let{credential:r}=await this.#t(e);return r}else{let{credential:e}=await this.getApplicationDefaultAsync(this.clientOptions);return e}}async getIdTokenClient(e){let r=await this.getClient();if(!("fetchIdToken"in r))throw new Error("Cannot fetch ID token in this environment, use GCE or set the GOOGLE_APPLICATION_CREDENTIALS environment variable to a service account credentials JSON file.");return new EH.IdTokenClient({targetAudience:e,idTokenProvider:r})}async getAccessToken(){return(await(await this.getClient()).getAccessToken()).token}async getRequestHeaders(e){return(await this.getClient()).getRequestHeaders(e)}async authorizeRequest(e={}){let r=e.url,n=await(await this.getClient()).getRequestHeaders(r);return e.headers=_H.Gaxios.mergeHeaders(e.headers,n),e}async fetch(...e){return(await this.getClient()).fetch(...e)}async request(e){return(await this.getClient()).request(e)}getEnv(){return(0,SH.getEnv)()}async sign(e,r){let o=await this.getClient(),n=await this.getUniverseDomain();if(r=r||`https://iamcredentials.${n}/v1/projects/-/serviceAccounts/`,o instanceof ns.Impersonated)return(await o.sign(e)).signedBlob;let i=(0,bH.createCrypto)();if(o instanceof rs.JWT&&o.key)return await i.sign(o.key,e);let s=await this.getCredentials();if(!s.client_email)throw new Error("Cannot sign data without `client_email`.");return this.signBlob(i,s.client_email,e,r)}async signBlob(e,r,o,n){let i=new URL(n+`${r}:signBlob`);return(await this.request({method:"POST",url:i.href,data:{payload:e.encodeBase64StringUtf8(o)},retry:!0,retryConfig:{httpMethodsToRetry:["POST"]}})).data.signedBlob}};an.GoogleAuth=WE});var G$=z(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});Bm.IAMAuth=void 0;var KE=class{static{a(this,"IAMAuth")}selector;token;constructor(e,r){this.selector=e,this.token=r,this.selector=e,this.token=r}getRequestHeaders(){return{"x-goog-iam-authority-selector":this.selector,"x-goog-iam-authorization-token":this.token}}};Bm.IAMAuth=KE});var V$=z(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.DownscopedClient=Pn.EXPIRATION_TIME_OFFSET=Pn.MAX_ACCESS_BOUNDARY_RULES_COUNT=void 0;var TH=bt(),AH=require("stream"),JE=Pr(),wH=Em(),IH="urn:ietf:params:oauth:grant-type:token-exchange",CH="urn:ietf:params:oauth:token-type:access_token",RH="urn:ietf:params:oauth:token-type:access_token";Pn.MAX_ACCESS_BOUNDARY_RULES_COUNT=10;Pn.EXPIRATION_TIME_OFFSET=300*1e3;var XE=class extends JE.AuthClient{static{a(this,"DownscopedClient")}authClient;credentialAccessBoundary;cachedDownscopedAccessToken;stsCredential;constructor(e,r={accessBoundary:{accessBoundaryRules:[]}}){if(super(e instanceof JE.AuthClient?{}:e),e instanceof JE.AuthClient?(this.authClient=e,this.credentialAccessBoundary=r):(this.authClient=e.authClient,this.credentialAccessBoundary=e.credentialAccessBoundary),this.credentialAccessBoundary.accessBoundary.accessBoundaryRules.length===0)throw new Error("At least one access boundary rule needs to be defined.");if(this.credentialAccessBoundary.accessBoundary.accessBoundaryRules.length>Pn.MAX_ACCESS_BOUNDARY_RULES_COUNT)throw new Error(`The provided access boundary has more than ${Pn.MAX_ACCESS_BOUNDARY_RULES_COUNT} access boundary rules.`);for(let o of this.credentialAccessBoundary.accessBoundary.accessBoundaryRules)if(o.availablePermissions.length===0)throw new Error("At least one permission should be defined in access boundary rules.");this.stsCredential=new wH.StsCredentials({tokenExchangeEndpoint:`https://sts.${this.universeDomain}/v1/token`}),this.cachedDownscopedAccessToken=null}setCredentials(e){if(!e.expiry_date)throw new Error("The access token expiry_date field is missing in the provided credentials.");super.setCredentials(e),this.cachedDownscopedAccessToken=e}async getAccessToken(){return(!this.cachedDownscopedAccessToken||this.isExpired(this.cachedDownscopedAccessToken))&&await this.refreshAccessTokenAsync(),{token:this.cachedDownscopedAccessToken.access_token,expirationTime:this.cachedDownscopedAccessToken.expiry_date,res:this.cachedDownscopedAccessToken.res}}async getRequestHeaders(){let e=await this.getAccessToken(),r=new Headers({authorization:`Bearer ${e.token}`});return this.addSharedMetadataHeaders(r)}request(e,r){if(r)this.requestAsync(e).then(o=>r(null,o),o=>r(o,o.response));else return this.requestAsync(e)}async requestAsync(e,r=!1){let o;try{let n=await this.getRequestHeaders();e.headers=TH.Gaxios.mergeHeaders(e.headers),this.addUserProjectAndAuthHeaders(e.headers,n),o=await this.transporter.request(e)}catch(n){let i=n.response;if(i){let s=i.status,u=i.config.data instanceof AH.Readable;if(!r&&(s===401||s===403)&&!u&&this.forceRefreshOnFailure)return await this.refreshAccessTokenAsync(),await this.requestAsync(e,!0)}throw n}return o}async refreshAccessTokenAsync(){let e=(await this.authClient.getAccessToken()).token,r={grantType:IH,requestedTokenType:CH,subjectToken:e,subjectTokenType:RH},o=await this.stsCredential.exchangeToken(r,void 0,this.credentialAccessBoundary),n=this.authClient.credentials?.expiry_date||null,i=o.expires_in?new Date().getTime()+o.expires_in*1e3:n;return this.cachedDownscopedAccessToken={access_token:o.access_token,expiry_date:i,res:o.res},this.credentials={},Object.assign(this.credentials,this.cachedDownscopedAccessToken),delete this.credentials.res,this.emit("tokens",{refresh_token:null,expiry_date:this.cachedDownscopedAccessToken.expiry_date,access_token:this.cachedDownscopedAccessToken.access_token,token_type:"Bearer",id_token:null}),this.cachedDownscopedAccessToken}isExpired(e){let r=new Date().getTime();return e.expiry_date?r>=e.expiry_date-this.eagerRefreshThresholdMillis:!1}};Pn.DownscopedClient=XE});var H$=z(qm=>{"use strict";Object.defineProperty(qm,"__esModule",{value:!0});qm.PassThroughClient=void 0;var OH=Pr(),YE=class extends OH.AuthClient{static{a(this,"PassThroughClient")}async request(e){return this.transporter.request(e)}async getAccessToken(){return{}}async getRequestHeaders(){return new Headers}};qm.PassThroughClient=YE});var tl=z(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.GoogleAuth=ge.auth=ge.PassThroughClient=ge.ExternalAccountAuthorizedUserClient=ge.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE=ge.ExecutableError=ge.PluggableAuthClient=ge.DownscopedClient=ge.BaseExternalAccountClient=ge.ExternalAccountClient=ge.IdentityPoolClient=ge.AwsRequestSigner=ge.AwsClient=ge.UserRefreshClient=ge.LoginTicket=ge.ClientAuthentication=ge.OAuth2Client=ge.CodeChallengeMethod=ge.Impersonated=ge.JWT=ge.JWTAccess=ge.IdTokenClient=ge.IAMAuth=ge.GCPEnv=ge.Compute=ge.DEFAULT_UNIVERSE=ge.AuthClient=ge.gaxios=ge.gcpMetadata=void 0;var Z$=q$();Object.defineProperty(ge,"GoogleAuth",{enumerable:!0,get:a(function(){return Z$.GoogleAuth},"get")});ge.gcpMetadata=Mu();ge.gaxios=bt();var W$=Pr();Object.defineProperty(ge,"AuthClient",{enumerable:!0,get:a(function(){return W$.AuthClient},"get")});Object.defineProperty(ge,"DEFAULT_UNIVERSE",{enumerable:!0,get:a(function(){return W$.DEFAULT_UNIVERSE},"get")});var kH=LP();Object.defineProperty(ge,"Compute",{enumerable:!0,get:a(function(){return kH.Compute},"get")});var NH=BP();Object.defineProperty(ge,"GCPEnv",{enumerable:!0,get:a(function(){return NH.GCPEnv},"get")});var $H=G$();Object.defineProperty(ge,"IAMAuth",{enumerable:!0,get:a(function(){return $H.IAMAuth},"get")});var zH=FP();Object.defineProperty(ge,"IdTokenClient",{enumerable:!0,get:a(function(){return zH.IdTokenClient},"get")});var DH=iE();Object.defineProperty(ge,"JWTAccess",{enumerable:!0,get:a(function(){return DH.JWTAccess},"get")});var UH=sE();Object.defineProperty(ge,"JWT",{enumerable:!0,get:a(function(){return UH.JWT},"get")});var MH=dE();Object.defineProperty(ge,"Impersonated",{enumerable:!0,get:a(function(){return MH.Impersonated},"get")});var QE=Ti();Object.defineProperty(ge,"CodeChallengeMethod",{enumerable:!0,get:a(function(){return QE.CodeChallengeMethod},"get")});Object.defineProperty(ge,"OAuth2Client",{enumerable:!0,get:a(function(){return QE.OAuth2Client},"get")});Object.defineProperty(ge,"ClientAuthentication",{enumerable:!0,get:a(function(){return QE.ClientAuthentication},"get")});var LH=zP();Object.defineProperty(ge,"LoginTicket",{enumerable:!0,get:a(function(){return LH.LoginTicket},"get")});var jH=uE();Object.defineProperty(ge,"UserRefreshClient",{enumerable:!0,get:a(function(){return jH.UserRefreshClient},"get")});var FH=RE();Object.defineProperty(ge,"AwsClient",{enumerable:!0,get:a(function(){return FH.AwsClient},"get")});var BH=wE();Object.defineProperty(ge,"AwsRequestSigner",{enumerable:!0,get:a(function(){return BH.AwsRequestSigner},"get")});var qH=TE();Object.defineProperty(ge,"IdentityPoolClient",{enumerable:!0,get:a(function(){return qH.IdentityPoolClient},"get")});var GH=BE();Object.defineProperty(ge,"ExternalAccountClient",{enumerable:!0,get:a(function(){return GH.ExternalAccountClient},"get")});var VH=$o();Object.defineProperty(ge,"BaseExternalAccountClient",{enumerable:!0,get:a(function(){return VH.BaseExternalAccountClient},"get")});var HH=V$();Object.defineProperty(ge,"DownscopedClient",{enumerable:!0,get:a(function(){return HH.DownscopedClient},"get")});var K$=jE();Object.defineProperty(ge,"PluggableAuthClient",{enumerable:!0,get:a(function(){return K$.PluggableAuthClient},"get")});Object.defineProperty(ge,"ExecutableError",{enumerable:!0,get:a(function(){return K$.ExecutableError},"get")});var J$=VE();Object.defineProperty(ge,"EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE",{enumerable:!0,get:a(function(){return J$.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE},"get")});Object.defineProperty(ge,"ExternalAccountAuthorizedUserClient",{enumerable:!0,get:a(function(){return J$.ExternalAccountAuthorizedUserClient},"get")});var ZH=H$();Object.defineProperty(ge,"PassThroughClient",{enumerable:!0,get:a(function(){return ZH.PassThroughClient},"get")});var WH=new Z$.GoogleAuth;ge.auth=WH});var X$=z(eS=>{"use strict";Object.defineProperty(eS,"__esModule",{value:!0});eS.getAPI=KH;function KH(t,e,r,o){let n;if(typeof e=="string")n=e,e={};else if(typeof e=="object")n=e.version,delete e.version;else throw new Error("Argument error: Accepts only string or object");try{let i=r[n],s=new i(e,o);return Object.freeze(s)}catch(i){throw new Error(`Unable to load endpoint ${t}("${n}"): ${i.message}`)}}a(KH,"getAPI")});var Q$=z((Mde,Y$)=>{Y$.exports=require("util").inspect});var al=z((Lde,vz)=>{var lS=typeof Map=="function"&&Map.prototype,tS=Object.getOwnPropertyDescriptor&&lS?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Vm=lS&&tS&&typeof tS.get=="function"?tS.get:null,ez=lS&&Map.prototype.forEach,dS=typeof Set=="function"&&Set.prototype,rS=Object.getOwnPropertyDescriptor&&dS?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Hm=dS&&rS&&typeof rS.get=="function"?rS.get:null,tz=dS&&Set.prototype.forEach,JH=typeof WeakMap=="function"&&WeakMap.prototype,nl=JH?WeakMap.prototype.has:null,XH=typeof WeakSet=="function"&&WeakSet.prototype,ol=XH?WeakSet.prototype.has:null,YH=typeof WeakRef=="function"&&WeakRef.prototype,rz=YH?WeakRef.prototype.deref:null,QH=Boolean.prototype.valueOf,eZ=Object.prototype.toString,tZ=Function.prototype.toString,rZ=String.prototype.match,pS=String.prototype.slice,zo=String.prototype.replace,nZ=String.prototype.toUpperCase,nz=String.prototype.toLowerCase,pz=RegExp.prototype.test,oz=Array.prototype.concat,En=Array.prototype.join,oZ=Array.prototype.slice,iz=Math.floor,iS=typeof BigInt=="function"?BigInt.prototype.valueOf:null,nS=Object.getOwnPropertySymbols,aS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,os=typeof Symbol=="function"&&typeof Symbol.iterator=="object",il=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===os||!0)?Symbol.toStringTag:null,fz=Object.prototype.propertyIsEnumerable,az=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function sz(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||pz.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var o=t<0?-iz(-t):iz(t);if(o!==t){var n=String(o),i=pS.call(e,n.length+1);return zo.call(n,r,"$&_")+"."+zo.call(zo.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return zo.call(e,r,"$&_")}a(sz,"addNumericSeparator");var sS=Q$(),cz=sS.custom,uz=gz(cz)?cz:null,mz={__proto__:null,double:'"',single:"'"},iZ={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};vz.exports=a(function t(e,r,o,n){var i=r||{};if(Wn(i,"quoteStyle")&&!Wn(mz,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Wn(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=Wn(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Wn(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Wn(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return _z(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return u?sz(e,l):l}if(typeof e=="bigint"){var p=String(e)+"n";return u?sz(e,p):p}var f=typeof i.depth>"u"?5:i.depth;if(typeof o>"u"&&(o=0),o>=f&&f>0&&typeof e=="object")return cS(e)?"[Array]":"[Object]";var y=SZ(i,o);if(typeof n>"u")n=[];else if(yz(n,e)>=0)return"[Circular]";function m(Z,oe,Q){if(oe&&(n=oZ.call(n),n.push(oe)),Q){var pe={depth:i.depth};return Wn(i,"quoteStyle")&&(pe.quoteStyle=i.quoteStyle),t(Z,pe,o+1,n)}return t(Z,i,o+1,n)}if(a(m,"inspect"),typeof e=="function"&&!lz(e)){var h=mZ(e),_=Gm(e,m);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(_.length>0?" { "+En.call(_,", ")+" }":"")}if(gz(e)){var E=os?zo.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):aS.call(e);return typeof e=="object"&&!os?rl(E):E}if(bZ(e)){for(var S="<"+nz.call(String(e.nodeName)),T=e.attributes||[],k=0;k<T.length;k++)S+=" "+T[k].name+"="+hz(aZ(T[k].value),"double",i);return S+=">",e.childNodes&&e.childNodes.length&&(S+="..."),S+="</"+nz.call(String(e.nodeName))+">",S}if(cS(e)){if(e.length===0)return"[]";var L=Gm(e,m);return y&&!EZ(L)?"["+uS(L,y)+"]":"[ "+En.call(L,", ")+" ]"}if(cZ(e)){var Y=Gm(e,m);return!("cause"in Error.prototype)&&"cause"in e&&!fz.call(e,"cause")?"{ ["+String(e)+"] "+En.call(oz.call("[cause]: "+m(e.cause),Y),", ")+" }":Y.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+En.call(Y,", ")+" }"}if(typeof e=="object"&&s){if(uz&&typeof e[uz]=="function"&&sS)return sS(e,{depth:f-o});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(hZ(e)){var H=[];return ez&&ez.call(e,function(Z,oe){H.push(m(oe,e,!0)+" => "+m(Z,e))}),dz("Map",Vm.call(e),H,y)}if(_Z(e)){var X=[];return tz&&tz.call(e,function(Z){X.push(m(Z,e))}),dz("Set",Hm.call(e),X,y)}if(gZ(e))return oS("WeakMap");if(vZ(e))return oS("WeakSet");if(yZ(e))return oS("WeakRef");if(lZ(e))return rl(m(Number(e)));if(pZ(e))return rl(m(iS.call(e)));if(dZ(e))return rl(QH.call(e));if(uZ(e))return rl(m(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof global<"u"&&e===global)return"{ [object globalThis] }";if(!sZ(e)&&!lz(e)){var re=Gm(e,m),ce=az?az(e)===Object.prototype:e instanceof Object||e.constructor===Object,ee=e instanceof Object?"":"null prototype",Le=!ce&&il&&Object(e)===e&&il in e?pS.call(Do(e),8,-1):ee?"Object":"",ue=ce||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",K=ue+(Le||ee?"["+En.call(oz.call([],Le||[],ee||[]),": ")+"] ":"");return re.length===0?K+"{}":y?K+"{"+uS(re,y)+"}":K+"{ "+En.call(re,", ")+" }"}return String(e)},"inspect_");function hz(t,e,r){var o=r.quoteStyle||e,n=mz[o];return n+t+n}a(hz,"wrapQuotes");function aZ(t){return zo.call(String(t),/"/g,"&quot;")}a(aZ,"quote");function wi(t){return!il||!(typeof t=="object"&&(il in t||typeof t[il]<"u"))}a(wi,"canTrustToString");function cS(t){return Do(t)==="[object Array]"&&wi(t)}a(cS,"isArray");function sZ(t){return Do(t)==="[object Date]"&&wi(t)}a(sZ,"isDate");function lz(t){return Do(t)==="[object RegExp]"&&wi(t)}a(lz,"isRegExp");function cZ(t){return Do(t)==="[object Error]"&&wi(t)}a(cZ,"isError");function uZ(t){return Do(t)==="[object String]"&&wi(t)}a(uZ,"isString");function lZ(t){return Do(t)==="[object Number]"&&wi(t)}a(lZ,"isNumber");function dZ(t){return Do(t)==="[object Boolean]"&&wi(t)}a(dZ,"isBoolean");function gz(t){if(os)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!aS)return!1;try{return aS.call(t),!0}catch{}return!1}a(gz,"isSymbol");function pZ(t){if(!t||typeof t!="object"||!iS)return!1;try{return iS.call(t),!0}catch{}return!1}a(pZ,"isBigInt");var fZ=Object.prototype.hasOwnProperty||function(t){return t in this};function Wn(t,e){return fZ.call(t,e)}a(Wn,"has");function Do(t){return eZ.call(t)}a(Do,"toStr");function mZ(t){if(t.name)return t.name;var e=rZ.call(tZ.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}a(mZ,"nameOf");function yz(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;r<o;r++)if(t[r]===e)return r;return-1}a(yz,"indexOf");function hZ(t){if(!Vm||!t||typeof t!="object")return!1;try{Vm.call(t);try{Hm.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}a(hZ,"isMap");function gZ(t){if(!nl||!t||typeof t!="object")return!1;try{nl.call(t,nl);try{ol.call(t,ol)}catch{return!0}return t instanceof WeakMap}catch{}return!1}a(gZ,"isWeakMap");function yZ(t){if(!rz||!t||typeof t!="object")return!1;try{return rz.call(t),!0}catch{}return!1}a(yZ,"isWeakRef");function _Z(t){if(!Hm||!t||typeof t!="object")return!1;try{Hm.call(t);try{Vm.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}a(_Z,"isSet");function vZ(t){if(!ol||!t||typeof t!="object")return!1;try{ol.call(t,ol);try{nl.call(t,nl)}catch{return!0}return t instanceof WeakSet}catch{}return!1}a(vZ,"isWeakSet");function bZ(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}a(bZ,"isElement");function _z(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return _z(pS.call(t,0,e.maxStringLength),e)+o}var n=iZ[e.quoteStyle||"single"];n.lastIndex=0;var i=zo.call(zo.call(t,n,"\\$1"),/[\x00-\x1f]/g,PZ);return hz(i,"single",e)}a(_z,"inspectString");function PZ(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+nZ.call(e.toString(16))}a(PZ,"lowbyte");function rl(t){return"Object("+t+")"}a(rl,"markBoxed");function oS(t){return t+" { ? }"}a(oS,"weakCollectionOf");function dz(t,e,r,o){var n=o?uS(r,o):En.call(r,", ");return t+" ("+e+") {"+n+"}"}a(dz,"collectionOf");function EZ(t){for(var e=0;e<t.length;e++)if(yz(t[e],`
56
- `)>=0)return!1;return!0}a(EZ,"singleLineValues");function SZ(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=En.call(Array(t.indent+1)," ");else return null;return{base:r,prev:En.call(Array(e+1),r)}}a(SZ,"getIndent");function uS(t,e){if(t.length===0)return"";var r=`
57
- `+e.prev+e.base;return r+En.call(t,","+r)+`
58
- `+e.prev}a(uS,"indentedJoin");function Gm(t,e){var r=cS(t),o=[];if(r){o.length=t.length;for(var n=0;n<t.length;n++)o[n]=Wn(t,n)?e(t[n],t):""}var i=typeof nS=="function"?nS(t):[],s;if(os){s={};for(var u=0;u<i.length;u++)s["$"+i[u]]=i[u]}for(var l in t)Wn(t,l)&&(r&&String(Number(l))===l&&l<t.length||os&&s["$"+l]instanceof Symbol||(pz.call(/[^\w$]/,l)?o.push(e(l,t)+": "+e(t[l],t)):o.push(l+": "+e(t[l],t))));if(typeof nS=="function")for(var p=0;p<i.length;p++)fz.call(t,i[p])&&o.push("["+e(i[p])+"]: "+e(t[i[p]],t));return o}a(Gm,"arrObjKeys")});var Pz=z((Fde,bz)=>{"use strict";var xZ=al(),TZ=xo(),Zm=a(function(t,e,r){for(var o=t,n;(n=o.next)!=null;o=n)if(n.key===e)return o.next=n.next,r||(n.next=t.next,t.next=n),n},"listGetNode"),AZ=a(function(t,e){if(t){var r=Zm(t,e);return r&&r.value}},"listGet"),wZ=a(function(t,e,r){var o=Zm(t,e);o?o.value=r:t.next={key:e,next:t.next,value:r}},"listSet"),IZ=a(function(t,e){return t?!!Zm(t,e):!1},"listHas"),CZ=a(function(t,e){if(t)return Zm(t,e,!0)},"listDelete");bz.exports=a(function(){var e,r={assert:a(function(o){if(!r.has(o))throw new TZ("Side channel does not contain "+xZ(o))},"assert"),delete:a(function(o){var n=CZ(e,o);return n&&e&&!e.next&&(e=void 0),!!n},"delete"),get:a(function(o){return AZ(e,o)},"get"),has:a(function(o){return IZ(e,o)},"has"),set:a(function(o,n){e||(e={next:void 0}),wZ(e,o,n)},"set")};return r},"getSideChannelList")});var fS=z((qde,xz)=>{"use strict";var Ez=vu(),Sz=Tb(),RZ=Sz([Ez("%String.prototype.indexOf%")]);xz.exports=a(function(e,r){var o=Ez(e,!!r);return typeof o=="function"&&RZ(e,".prototype.")>-1?Sz([o]):o},"callBoundIntrinsic")});var mS=z((Vde,Az)=>{"use strict";var OZ=vu(),sl=fS(),kZ=al(),NZ=xo(),Tz=OZ("%Map%",!0),$Z=sl("Map.prototype.get",!0),zZ=sl("Map.prototype.set",!0),DZ=sl("Map.prototype.has",!0),UZ=sl("Map.prototype.delete",!0),MZ=sl("Map.prototype.size",!0);Az.exports=!!Tz&&a(function(){var e,r={assert:a(function(o){if(!r.has(o))throw new NZ("Side channel does not contain "+kZ(o))},"assert"),delete:a(function(o){if(e){var n=UZ(e,o);return MZ(e)===0&&(e=void 0),n}return!1},"delete"),get:a(function(o){if(e)return $Z(e,o)},"get"),has:a(function(o){return e?DZ(e,o):!1},"has"),set:a(function(o,n){e||(e=new Tz),zZ(e,o,n)},"set")};return r},"getSideChannelMap")});var Iz=z((Zde,wz)=>{"use strict";var LZ=vu(),Km=fS(),jZ=al(),Wm=mS(),FZ=xo(),is=LZ("%WeakMap%",!0),BZ=Km("WeakMap.prototype.get",!0),qZ=Km("WeakMap.prototype.set",!0),GZ=Km("WeakMap.prototype.has",!0),VZ=Km("WeakMap.prototype.delete",!0);wz.exports=is?a(function(){var e,r,o={assert:a(function(n){if(!o.has(n))throw new FZ("Side channel does not contain "+jZ(n))},"assert"),delete:a(function(n){if(is&&n&&(typeof n=="object"||typeof n=="function")){if(e)return VZ(e,n)}else if(Wm&&r)return r.delete(n);return!1},"delete"),get:a(function(n){return is&&n&&(typeof n=="object"||typeof n=="function")&&e?BZ(e,n):r&&r.get(n)},"get"),has:a(function(n){return is&&n&&(typeof n=="object"||typeof n=="function")&&e?GZ(e,n):!!r&&r.has(n)},"has"),set:a(function(n,i){is&&n&&(typeof n=="object"||typeof n=="function")?(e||(e=new is),qZ(e,n,i)):Wm&&(r||(r=Wm()),r.set(n,i))},"set")};return o},"getSideChannelWeakMap"):Wm});var hS=z((Kde,Cz)=>{"use strict";var HZ=xo(),ZZ=al(),WZ=Pz(),KZ=mS(),JZ=Iz(),XZ=JZ||KZ||WZ;Cz.exports=a(function(){var e,r={assert:a(function(o){if(!r.has(o))throw new HZ("Side channel does not contain "+ZZ(o))},"assert"),delete:a(function(o){return!!e&&e.delete(o)},"delete"),get:a(function(o){return e&&e.get(o)},"get"),has:a(function(o){return!!e&&e.has(o)},"has"),set:a(function(o,n){e||(e=XZ()),e.set(o,n)},"set")};return r},"getSideChannel")});var Jm=z((Xde,Rz)=>{"use strict";var YZ=String.prototype.replace,QZ=/%20/g,gS={RFC1738:"RFC1738",RFC3986:"RFC3986"};Rz.exports={default:gS.RFC3986,formatters:{RFC1738:a(function(t){return YZ.call(t,QZ,"+")},"RFC1738"),RFC3986:a(function(t){return String(t)},"RFC3986")},RFC1738:gS.RFC1738,RFC3986:gS.RFC3986}});var bS=z((Qde,Oz)=>{"use strict";var eW=Jm(),tW=hS(),yS=Object.prototype.hasOwnProperty,Ii=Array.isArray,Xm=tW(),as=a(function(e,r){return Xm.set(e,r),e},"markOverflow"),Ci=a(function(e){return Xm.has(e)},"isOverflow"),cl=a(function(e){return Xm.get(e)},"getMaxIndex"),vS=a(function(e,r){Xm.set(e,r)},"setMaxIndex"),Sn=(function(){for(var t=[],e=0;e<256;++e)t[t.length]="%"+((e<16?"0":"")+e.toString(16)).toUpperCase();return t})(),rW=a(function(e){for(;e.length>1;){var r=e.pop(),o=r.obj[r.prop];if(Ii(o)){for(var n=[],i=0;i<o.length;++i)typeof o[i]<"u"&&(n[n.length]=o[i]);r.obj[r.prop]=n}}},"compactQueue"),ul=a(function(e,r){for(var o=r&&r.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)typeof e[n]<"u"&&(o[n]=e[n]);return o},"arrayToObject"),nW=a(function t(e,r,o){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(Ii(e)){var n=e.length;if(o&&typeof o.arrayLimit=="number"&&n>o.arrayLimit)return as(ul(e.concat(r),o),n);e[n]=r}else if(e&&typeof e=="object")if(Ci(e)){var i=cl(e)+1;e[i]=r,vS(e,i)}else{if(o&&o.strictMerge)return[e,r];(o&&(o.plainObjects||o.allowPrototypes)||!yS.call(Object.prototype,r))&&(e[r]=!0)}else return[e,r];return e}if(!e||typeof e!="object"){if(Ci(r)){for(var s=Object.keys(r),u=o&&o.plainObjects?{__proto__:null,0:e}:{0:e},l=0;l<s.length;l++){var p=parseInt(s[l],10);u[p+1]=r[s[l]]}return as(u,cl(r)+1)}var f=[e].concat(r);return o&&typeof o.arrayLimit=="number"&&f.length>o.arrayLimit?as(ul(f,o),f.length-1):f}var y=e;return Ii(e)&&!Ii(r)&&(y=ul(e,o)),Ii(e)&&Ii(r)?(r.forEach(function(m,h){if(yS.call(e,h)){var _=e[h];_&&typeof _=="object"&&m&&typeof m=="object"?e[h]=t(_,m,o):e[e.length]=m}else e[h]=m}),e):Object.keys(r).reduce(function(m,h){var _=r[h];if(yS.call(m,h)?m[h]=t(m[h],_,o):m[h]=_,Ci(r)&&!Ci(m)&&as(m,cl(r)),Ci(m)){var E=parseInt(h,10);String(E)===h&&E>=0&&E>cl(m)&&vS(m,E)}return m},y)},"merge"),oW=a(function(e,r){return Object.keys(r).reduce(function(o,n){return o[n]=r[n],o},e)},"assignSingleSource"),iW=a(function(t,e,r){var o=t.replace(/\+/g," ");if(r==="iso-8859-1")return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch{return o}},"decode"),_S=1024,aW=a(function(e,r,o,n,i){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),o==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(h){return"%26%23"+parseInt(h.slice(2),16)+"%3B"});for(var u="",l=0;l<s.length;l+=_S){for(var p=s.length>=_S?s.slice(l,l+_S):s,f=[],y=0;y<p.length;++y){var m=p.charCodeAt(y);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||i===eW.RFC1738&&(m===40||m===41)){f[f.length]=p.charAt(y);continue}if(m<128){f[f.length]=Sn[m];continue}if(m<2048){f[f.length]=Sn[192|m>>6]+Sn[128|m&63];continue}if(m<55296||m>=57344){f[f.length]=Sn[224|m>>12]+Sn[128|m>>6&63]+Sn[128|m&63];continue}y+=1,m=65536+((m&1023)<<10|p.charCodeAt(y)&1023),f[f.length]=Sn[240|m>>18]+Sn[128|m>>12&63]+Sn[128|m>>6&63]+Sn[128|m&63]}u+=f.join("")}return u},"encode"),sW=a(function(e){for(var r=[{obj:{o:e},prop:"o"}],o=[],n=0;n<r.length;++n)for(var i=r[n],s=i.obj[i.prop],u=Object.keys(s),l=0;l<u.length;++l){var p=u[l],f=s[p];typeof f=="object"&&f!==null&&o.indexOf(f)===-1&&(r[r.length]={obj:s,prop:p},o[o.length]=f)}return rW(r),e},"compact"),cW=a(function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},"isRegExp"),uW=a(function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},"isBuffer"),lW=a(function(e,r,o,n){if(Ci(e)){var i=cl(e)+1;return e[i]=r,vS(e,i),e}var s=[].concat(e,r);return s.length>o?as(ul(s,{plainObjects:n}),s.length-1):s},"combine"),dW=a(function(e,r){if(Ii(e)){for(var o=[],n=0;n<e.length;n+=1)o[o.length]=r(e[n]);return o}return r(e)},"maybeMap");Oz.exports={arrayToObject:ul,assign:oW,combine:lW,compact:sW,decode:iW,encode:aW,isBuffer:uW,isOverflow:Ci,isRegExp:cW,markOverflow:as,maybeMap:dW,merge:nW}});var Uz=z((tpe,Dz)=>{"use strict";var Nz=hS(),Ym=bS(),ll=Jm(),pW=Object.prototype.hasOwnProperty,$z={brackets:a(function(e){return e+"[]"},"brackets"),comma:"comma",indices:a(function(e,r){return e+"["+r+"]"},"indices"),repeat:a(function(e){return e},"repeat")},xn=Array.isArray,fW=Array.prototype.push,zz=a(function(t,e){fW.apply(t,xn(e)?e:[e])},"pushToArray"),mW=Date.prototype.toISOString,kz=ll.default,wt={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Ym.encode,encodeValuesOnly:!1,filter:void 0,format:kz,formatter:ll.formatters[kz],indices:!1,serializeDate:a(function(e){return mW.call(e)},"serializeDate"),skipNulls:!1,strictNullHandling:!1},hW=a(function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},"isNonNullishPrimitive"),PS={},gW=a(function t(e,r,o,n,i,s,u,l,p,f,y,m,h,_,E,S,T,k){for(var L=e,Y=k,H=0,X=!1;(Y=Y.get(PS))!==void 0&&!X;){var re=Y.get(e);if(H+=1,typeof re<"u"){if(re===H)throw new RangeError("Cyclic object value");X=!0}typeof Y.get(PS)>"u"&&(H=0)}if(typeof f=="function"?L=f(r,L):L instanceof Date?L=h(L):o==="comma"&&xn(L)&&(L=Ym.maybeMap(L,function(Qe){return Qe instanceof Date?h(Qe):Qe})),L===null){if(s)return p&&!S?p(r,wt.encoder,T,"key",_):r;L=""}if(hW(L)||Ym.isBuffer(L)){if(p){var ce=S?r:p(r,wt.encoder,T,"key",_);return[E(ce)+"="+E(p(L,wt.encoder,T,"value",_))]}return[E(r)+"="+E(String(L))]}var ee=[];if(typeof L>"u")return ee;var Le;if(o==="comma"&&xn(L))S&&p&&(L=Ym.maybeMap(L,p)),Le=[{value:L.length>0?L.join(",")||null:void 0}];else if(xn(f))Le=f;else{var ue=Object.keys(L);Le=y?ue.sort(y):ue}var K=l?String(r).replace(/\./g,"%2E"):String(r),Z=n&&xn(L)&&L.length===1?K+"[]":K;if(i&&xn(L)&&L.length===0)return Z+"[]";for(var oe=0;oe<Le.length;++oe){var Q=Le[oe],pe=typeof Q=="object"&&Q&&typeof Q.value<"u"?Q.value:L[Q];if(!(u&&pe===null)){var me=m&&l?String(Q).replace(/\./g,"%2E"):String(Q),ze=xn(L)?typeof o=="function"?o(Z,me):Z:Z+(m?"."+me:"["+me+"]");k.set(e,H);var je=Nz();je.set(PS,k),zz(ee,t(pe,ze,o,n,i,s,u,l,o==="comma"&&S&&xn(L)?null:p,f,y,m,h,_,E,S,T,je))}}return ee},"stringify"),yW=a(function(e){if(!e)return wt;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||wt.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var o=ll.default;if(typeof e.format<"u"){if(!pW.call(ll.formatters,e.format))throw new TypeError("Unknown format option provided.");o=e.format}var n=ll.formatters[o],i=wt.filter;(typeof e.filter=="function"||xn(e.filter))&&(i=e.filter);var s;if(e.arrayFormat in $z?s=e.arrayFormat:"indices"in e?s=e.indices?"indices":"repeat":s=wt.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:wt.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:wt.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:wt.allowEmptyArrays,arrayFormat:s,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:wt.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?wt.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:wt.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:wt.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:wt.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:wt.encodeValuesOnly,filter:i,format:o,formatter:n,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:wt.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:wt.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:wt.strictNullHandling}},"normalizeStringifyOptions");Dz.exports=function(t,e){var r=t,o=yW(e),n,i;typeof o.filter=="function"?(i=o.filter,r=i("",r)):xn(o.filter)&&(i=o.filter,n=i);var s=[];if(typeof r!="object"||r===null)return"";var u=$z[o.arrayFormat],l=u==="comma"&&o.commaRoundTrip;n||(n=Object.keys(r)),o.sort&&n.sort(o.sort);for(var p=Nz(),f=0;f<n.length;++f){var y=n[f],m=r[y];o.skipNulls&&m===null||zz(s,gW(m,y,u,l,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,p))}var h=s.join(o.delimiter),_=o.addQueryPrefix===!0?"?":"";return o.charsetSentinel&&(o.charset==="iso-8859-1"?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),h.length>0?_+h:""}});var jz=z((npe,Lz)=>{"use strict";var Tn=bS(),Qm=Object.prototype.hasOwnProperty,ES=Array.isArray,ht={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Tn.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},_W=a(function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},"interpretNumericEntities"),Mz=a(function(t,e,r){if(t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return t},"parseArrayValue"),vW="utf8=%26%2310003%3B",bW="utf8=%E2%9C%93",PW=a(function(e,r){var o={__proto__:null},n=r.ignoreQueryPrefix?e.replace(/^\?/,""):e;n=n.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var i=r.parameterLimit===1/0?void 0:r.parameterLimit,s=n.split(r.delimiter,r.throwOnLimitExceeded&&typeof i<"u"?i+1:i);if(r.throwOnLimitExceeded&&typeof i<"u"&&s.length>i)throw new RangeError("Parameter limit exceeded. Only "+i+" parameter"+(i===1?"":"s")+" allowed.");var u=-1,l,p=r.charset;if(r.charsetSentinel)for(l=0;l<s.length;++l)s[l].indexOf("utf8=")===0&&(s[l]===bW?p="utf-8":s[l]===vW&&(p="iso-8859-1"),u=l,l=s.length);for(l=0;l<s.length;++l)if(l!==u){var f=s[l],y=f.indexOf("]="),m=y===-1?f.indexOf("="):y+1,h,_;if(m===-1?(h=r.decoder(f,ht.decoder,p,"key"),_=r.strictNullHandling?null:""):(h=r.decoder(f.slice(0,m),ht.decoder,p,"key"),h!==null&&(_=Tn.maybeMap(Mz(f.slice(m+1),r,ES(o[h])?o[h].length:0),function(S){return r.decoder(S,ht.decoder,p,"value")}))),_&&r.interpretNumericEntities&&p==="iso-8859-1"&&(_=_W(String(_))),f.indexOf("[]=")>-1&&(_=ES(_)?[_]:_),r.comma&&ES(_)&&_.length>r.arrayLimit){if(r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(r.arrayLimit===1?"":"s")+" allowed in an array.");_=Tn.combine([],_,r.arrayLimit,r.plainObjects)}if(h!==null){var E=Qm.call(o,h);E&&(r.duplicates==="combine"||f.indexOf("[]=")>-1)?o[h]=Tn.combine(o[h],_,r.arrayLimit,r.plainObjects):(!E||r.duplicates==="last")&&(o[h]=_)}}return o},"parseQueryStringValues"),EW=a(function(t,e,r,o){var n=0;if(t.length>0&&t[t.length-1]==="[]"){var i=t.slice(0,-1).join("");n=Array.isArray(e)&&e[i]?e[i].length:0}for(var s=o?e:Mz(e,r,n),u=t.length-1;u>=0;--u){var l,p=t[u];if(p==="[]"&&r.parseArrays)Tn.isOverflow(s)?l=s:l=r.allowEmptyArrays&&(s===""||r.strictNullHandling&&s===null)?[]:Tn.combine([],s,r.arrayLimit,r.plainObjects);else{l=r.plainObjects?{__proto__:null}:{};var f=p.charAt(0)==="["&&p.charAt(p.length-1)==="]"?p.slice(1,-1):p,y=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,m=parseInt(y,10),h=!isNaN(m)&&p!==y&&String(m)===y&&m>=0&&r.parseArrays;if(!r.parseArrays&&y==="")l={0:s};else if(h&&m<r.arrayLimit)l=[],l[m]=s;else{if(h&&r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(r.arrayLimit===1?"":"s")+" allowed in an array.");h?(l[m]=s,Tn.markOverflow(l,m)):y!=="__proto__"&&(l[y]=s)}}s=l}return s},"parseObject"),SW=a(function(e,r){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(r.depth<=0)return!r.plainObjects&&Qm.call(Object.prototype,o)&&!r.allowPrototypes?void 0:[o];var n=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,s=n.exec(o),u=s?o.slice(0,s.index):o,l=[];if(u){if(!r.plainObjects&&Qm.call(Object.prototype,u)&&!r.allowPrototypes)return;l[l.length]=u}for(var p=0;(s=i.exec(o))!==null&&p<r.depth;){p+=1;var f=s[1].slice(1,-1);if(!r.plainObjects&&Qm.call(Object.prototype,f)&&!r.allowPrototypes)return;l[l.length]=s[1]}if(s){if(r.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");l[l.length]="["+o.slice(s.index)+"]"}return l},"splitKeyIntoSegments"),xW=a(function(e,r,o,n){if(e){var i=SW(e,o);if(i)return EW(i,r,o,n)}},"parseQueryStringKeys"),TW=a(function(e){if(!e)return ht;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded<"u"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var r=typeof e.charset>"u"?ht.charset:e.charset,o=typeof e.duplicates>"u"?ht.duplicates:e.duplicates;if(o!=="combine"&&o!=="first"&&o!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var n=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:ht.allowDots:!!e.allowDots;return{allowDots:n,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:ht.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:ht.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:ht.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:ht.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:ht.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:ht.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:ht.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:ht.decoder,delimiter:typeof e.delimiter=="string"||Tn.isRegExp(e.delimiter)?e.delimiter:ht.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:ht.depth,duplicates:o,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:ht.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:ht.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:ht.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:ht.strictDepth,strictMerge:typeof e.strictMerge=="boolean"?!!e.strictMerge:ht.strictMerge,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:ht.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},"normalizeParseOptions");Lz.exports=function(t,e){var r=TW(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var o=typeof t=="string"?PW(t,r):t,n=r.plainObjects?{__proto__:null}:{},i=Object.keys(o),s=0;s<i.length;++s){var u=i[s],l=xW(u,o[u],r,typeof t=="string");n=Tn.merge(n,l,r)}return r.allowSparse===!0?n:Tn.compact(n)}});var SS=z((ipe,Fz)=>{"use strict";var AW=Uz(),wW=jz(),IW=Jm();Fz.exports={formats:IW,parse:wW,stringify:AW}});var qz=z((xS,Bz)=>{(function(t,e){typeof xS=="object"?Bz.exports=e():typeof define=="function"&&define.amd?define([],e):t.urltemplate=e()})(xS,function(){function t(){}return a(t,"UrlTemplate"),t.prototype.encodeReserved=function(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(r){return/%[0-9A-Fa-f]/.test(r)||(r=encodeURI(r).replace(/%5B/g,"[").replace(/%5D/g,"]")),r}).join("")},t.prototype.encodeUnreserved=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(r){return"%"+r.charCodeAt(0).toString(16).toUpperCase()})},t.prototype.encodeValue=function(e,r,o){return r=e==="+"||e==="#"?this.encodeReserved(r):this.encodeUnreserved(r),o?this.encodeUnreserved(o)+"="+r:r},t.prototype.isDefined=function(e){return e!=null},t.prototype.isKeyOperator=function(e){return e===";"||e==="&"||e==="?"},t.prototype.getValues=function(e,r,o,n){var i=e[o],s=[];if(this.isDefined(i)&&i!=="")if(typeof i=="string"||typeof i=="number"||typeof i=="boolean")i=i.toString(),n&&n!=="*"&&(i=i.substring(0,parseInt(n,10))),s.push(this.encodeValue(r,i,this.isKeyOperator(r)?o:null));else if(n==="*")Array.isArray(i)?i.filter(this.isDefined).forEach(function(l){s.push(this.encodeValue(r,l,this.isKeyOperator(r)?o:null))},this):Object.keys(i).forEach(function(l){this.isDefined(i[l])&&s.push(this.encodeValue(r,i[l],l))},this);else{var u=[];Array.isArray(i)?i.filter(this.isDefined).forEach(function(l){u.push(this.encodeValue(r,l))},this):Object.keys(i).forEach(function(l){this.isDefined(i[l])&&(u.push(this.encodeUnreserved(l)),u.push(this.encodeValue(r,i[l].toString())))},this),this.isKeyOperator(r)?s.push(this.encodeUnreserved(o)+"="+u.join(",")):u.length!==0&&s.push(u.join(","))}else r===";"?this.isDefined(i)&&s.push(this.encodeUnreserved(o)):i===""&&(r==="&"||r==="?")?s.push(this.encodeUnreserved(o)+"="):i===""&&s.push("");return s},t.prototype.parse=function(e){var r=this,o=["+","#",".","/",";","?","&"];return{expand:a(function(n){return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(i,s,u){if(s){var l=null,p=[];if(o.indexOf(s.charAt(0))!==-1&&(l=s.charAt(0),s=s.substr(1)),s.split(/,/g).forEach(function(y){var m=/([^:\*]*)(?::(\d+)|(\*))?/.exec(y);p.push.apply(p,r.getValues(n,l,m[1],m[2]||m[3]))}),l&&l!=="+"){var f=",";return l==="?"?f="&":l!=="#"&&(f=l),(p.length!==0?l:"")+p.join(f)}else return p.join(",")}else return r.encodeReserved(u)})},"expand")}},new t})});var Gz=z(TS=>{"use strict";Object.defineProperty(TS,"__esModule",{value:!0});TS.isBrowser=CW;function CW(){return typeof window<"u"}a(CW,"isBrowser")});var th=z(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});eh.headersToClassicHeaders=Vz;eh.marshallGaxiosResponse=RW;function Vz(t){let e={};if(t instanceof Headers)t.forEach((r,o)=>{e[o]=r});else if(Array.isArray(t))for(let[r,o]of t)e[r]=o;else e=t||{};return e}a(Vz,"headersToClassicHeaders");function RW(t){return Object.defineProperties(t||{},{headers:{configurable:!0,writable:!0,enumerable:!0,value:Vz(t?.headers)}})}a(RW,"marshallGaxiosResponse")});var Wz=z(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.sessions=void 0;Ar.request=qW;Ar.closeSession=AS;var Zz=require("http2"),OW=require("zlib"),kW=require("url"),NW=SS(),$W=xu(),zW=require("stream"),DW=require("util"),UW=require("process"),MW=th(),{HTTP2_HEADER_CONTENT_ENCODING:LW,HTTP2_HEADER_CONTENT_TYPE:Hz,HTTP2_HEADER_METHOD:jW,HTTP2_HEADER_PATH:FW,HTTP2_HEADER_STATUS:BW}=Zz.constants,dl=!!UW.env.HTTP2_DEBUG;Ar.sessions={};async function qW(t){let e=$W(!0,{},t);e.validateStatus=e.validateStatus||GW,e.responseType=e.responseType||"json";let r=new kW.URL(e.url),o=VW(r.host);o.timeoutHandle!==void 0&&clearTimeout(o.timeoutHandle);let n=r.pathname;if(t.params&&Object.keys(t.params).length>0){let y=(t.paramsSerializer||NW.stringify)(e.params);n+=`?${y}`}let i=(0,MW.headersToClassicHeaders)(e.headers);i[FW]=n,i[jW]=t.method||"GET",e.headers=i,i[Hz]||e.responseType!=="text"&&(i[Hz]="application/json");let s={config:t,headers:{},status:0,data:{},statusText:""},u=[],l=o.session,p;return new Promise((f,y)=>{try{p=l.request(i).on("response",m=>{Object.assign(s,{headers:m,status:m[BW]});let h=p;if(m[LW]==="gzip"&&(h=p.pipe(OW.createGunzip())),e.responseType==="stream"){s.data=h,f(s);return}h.on("data",_=>{u.push(_)}).on("error",_=>{y(_)}).on("end",()=>{let _=Buffer.concat(u),E=_;if(_){if(e.responseType==="json")try{E=JSON.parse(_.toString("utf8"))}catch{E=_.toString("utf8")}else e.responseType==="text"?E=_.toString("utf8"):e.responseType==="arraybuffer"&&(E=_.buffer);s.data=E}if(!e.validateStatus(s.status)){let S=`Request failed with status code ${s.status}. `;if(s.data&&typeof s.data=="object"){let T=DW.inspect(s.data,{depth:5});S=`${S}
59
- '${T}`}y(new Error(S,{cause:s}))}f(s)})}).on("error",m=>{y(m)})}catch(m){AS(r).then(()=>y(m)).catch(y);return}if(s.request=p,t.data){if(t.data instanceof zW.Stream)t.data.pipe(p);else if(typeof t.data=="string"){let m=Buffer.from(t.data);p.end(m)}else if(typeof t.data=="object"){let m=JSON.stringify(t.data);p.end(m)}}o.timeoutHandle=setTimeout(()=>AS(r),500)})}a(qW,"request");function GW(t){return t>=200&&t<300}a(GW,"validateStatus");function VW(t){if(Ar.sessions[t])dl&&console.log(`Used cached client for ${t}`);else{dl&&console.log(`Creating client for ${t}`);let e=Zz.connect(`https://${t}`);e.on("error",r=>{console.error(`*ERROR*: ${r}`),delete Ar.sessions[t]}).on("goaway",(r,o)=>{console.error(`*GOAWAY*: ${r} : ${o}`),delete Ar.sessions[t]}),Ar.sessions[t]={session:e}}return Ar.sessions[t]}a(VW,"_getClient");async function AS(t){let e=Ar.sessions[t.host];if(!e)return;let{session:r}=e;delete Ar.sessions[t.host],dl&&console.error(`Closing ${t.host}`),r.close(()=>{dl&&console.error(`Closed ${t.host}`)}),setTimeout(()=>{r&&!r.destroyed&&(dl&&console.log(`Forcing close ${t.host}`),r&&r.destroy())},1e3)}a(AS,"closeSession")});var Kz=z((fpe,HW)=>{HW.exports={name:"googleapis-common",version:"8.0.2",description:"A common tooling library used by the googleapis npm module. You probably don't want to use this directly.",repository:{type:"git",directory:"packages/nodejs-googleapis-common",url:"https://github.com/googleapis/google-cloud-node-core.git"},main:"build/src/index.js",types:"build/src/index.d.ts",files:["build/src","!build/src/**/*.map"],scripts:{prebenchmark:"npm run compile",benchmark:"node build/benchmark/bench.js",compile:"tsc -p .",test:"c8 mocha build/test","system-test":"c8 mocha build/system-test --timeout 600000","presystem-test":"npm run compile",fix:"gts fix",prepare:"npm run compile",pretest:"npm run compile",lint:"gts check","samples-test":"mocha build/samples-test",docs:"jsdoc -c .jsdoc.js",webpack:"webpack","browser-test":"karma start",prelint:"cd samples; npm link ../; npm install",clean:"gts clean",precompile:"gts clean"},keywords:[],author:"Google LLC",license:"Apache-2.0",dependencies:{extend:"^3.0.2",gaxios:"7.1.3","google-auth-library":"10.5.0","google-logging-utils":"1.1.3",qs:"^6.7.0","url-template":"^2.0.8"},devDependencies:{"@babel/plugin-proposal-private-methods":"^7.18.6","@types/extend":"^3.0.1","@types/mocha":"^10.0.10","@types/mv":"^2.1.0","@types/ncp":"^2.0.8","@types/nock":"^11.0.0","@types/proxyquire":"^1.3.31","@types/qs":"^6.5.3","@types/sinon":"^21.0.0","@types/tmp":"^0.2.6","@types/url-template":"^2.0.28",c8:"^10.1.3",codecov:"^3.8.3",gts:"^6.0.2",http2spy:"^2.0.0","is-docker":"^3.0.0",jsdoc:"^4.0.4","jsdoc-fresh":"^5.0.0","jsdoc-region-tag":"^4.0.0",karma:"^6.0.0","karma-chrome-launcher":"^3.0.0","karma-coverage":"^2.0.0","karma-firefox-launcher":"^2.0.0","karma-mocha":"^2.0.0","karma-remap-coverage":"^0.1.5","karma-sourcemap-loader":"^0.4.0","karma-webpack":"^5.0.1",mocha:"^11.1.0",mv:"^2.1.1",ncp:"^2.0.0",nock:"^14.0.5","null-loader":"^4.0.1","path-to-regexp":"^6.0.0",proxyquire:"^2.1.3",puppeteer:"^24.0.0",sinon:"21.0.3",tmp:"0.2.5","ts-loader":"^9.5.2",typescript:"5.8.3",webpack:"^5.97.1","webpack-cli":"^6.0.1"},engines:{node:">=18.0.0"},homepage:"https://github.com/googleapis/google-cloud-node-core/tree/main/packages/nodejs-googleapis-common"}});var rh=z(OS=>{"use strict";Object.defineProperty(OS,"__esModule",{value:!0});OS.createAPIRequest=XW;var wS=bt(),ZW=SS(),eD=require("stream"),Jz=qz(),Xz=xu(),CS=Gz(),WW=Wz(),IS=th(),tD=Kz(),Yz=a(()=>globalThis.crypto?.randomUUID()||require("crypto").randomUUID(),"randomUUID");function KW(t){return t!==null&&typeof t=="object"&&typeof t.pipe=="function"&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object"}a(KW,"isReadableStream");function JW(t,e){let r=new Array;return e.forEach(o=>{t[o]===void 0&&r.push(o)}),r.length>0?r:null}a(JW,"getMissingParams");function XW(t,e){if(e)Qz(t).then(r=>e(null,r),e);else return Qz(t)}a(XW,"createAPIRequest");async function Qz(t){let e=Xz(!0,{},t.context.google?._options||{},t.context._options||{},t.options),r=Xz(!0,{},e.params,t.params);e.userAgentDirectives=e.userAgentDirectives||[];let o=r.media||{},n=r.requestBody;!r.requestBody&&r.resource&&(!t.requiredParams.includes("resource")||typeof r.resource!="string")&&(n=r.resource,delete r.resource),delete r.requestBody;let i=r.auth||e.auth,s=typeof o.body=="string"?"text/plain":"application/octet-stream";delete r.media,delete r.auth;let u=(0,IS.headersToClassicHeaders)(r.headers||{});YW(u,e.apiVersion),delete r.headers,Object.keys(r).forEach(h=>{if(h.slice(-1)==="_"){let _=h.slice(0,-1);r[_]=r[h],delete r[h]}});let l=JW(r,t.requiredParams);if(l)throw new Error("Missing required parameters: "+l.join(", "));if(e.url){let h=e.url;typeof h=="object"&&(h=h.toString()),e.url=Jz.parse(h).expand(r)}if(t.mediaUrl&&(t.mediaUrl=Jz.parse(t.mediaUrl).expand(r)),t.context._options.rootUrl!==void 0&&e.url!==void 0){let h=new URL(e.url),_=h.href.substr(h.origin.length);e.url=new URL(_,t.context._options.rootUrl).href}e.paramsSerializer=h=>ZW.stringify(h,{arrayFormat:"repeat"}),t.pathParams.forEach(h=>delete r[h]),typeof i=="string"&&(r.key=r.key||i,i=void 0);function p(h){let _=Yz(),E=`--${_}--`,S=new eD.PassThrough({flush(L){this.push(`\r
60
- `),this.push(E),L()}}),T=new RS,k=KW(h[1].body);u["content-type"]=`multipart/related; boundary=${_}`;for(let L of h){let Y=`--${_}\r
55
+ https://cloud.google.com/compute/docs/metadata/predefined-metadata-keys`};var WP=class{static{a(this,"GoogleAuth")}checkIsGCE=void 0;useJWTAccessWithScope;defaultServicePath;get isGCE(){return this.checkIsGCE}_findProjectIdPromise;_cachedProjectId;jsonContent=null;apiKey;cachedCredential=null;#e=null;defaultScopes;keyFilename;scopes;clientOptions={};constructor(e={}){if(this._cachedProjectId=e.projectId||null,this.cachedCredential=e.authClient||null,this.keyFilename=e.keyFilename||e.keyFile,this.scopes=e.scopes,this.clientOptions=e.clientOptions||{},this.jsonContent=e.credentials||null,this.apiKey=e.apiKey||this.clientOptions.apiKey||null,this.apiKey&&(this.jsonContent||this.clientOptions.credentials))throw new RangeError(an.GoogleAuthExceptionMessages.API_KEY_WITH_CREDENTIALS);e.universeDomain&&(this.clientOptions.universeDomain=e.universeDomain)}setGapicJWTValues(e){e.defaultServicePath=this.defaultServicePath,e.useJWTAccessWithScope=this.useJWTAccessWithScope,e.defaultScopes=this.defaultScopes}getProjectId(e){if(e)this.getProjectIdAsync().then(r=>e(null,r),e);else return this.getProjectIdAsync()}async getProjectIdOptional(){try{return await this.getProjectId()}catch(e){if(e instanceof Error&&e.message===an.GoogleAuthExceptionMessages.NO_PROJECT_ID_FOUND)return null;throw e}}async findAndCacheProjectId(){let e=null;if(e||=await this.getProductionProjectId(),e||=await this.getFileProjectId(),e||=await this.getDefaultServiceProjectId(),e||=await this.getGCEProjectId(),e||=await this.getExternalAccountClientProjectId(),e)return this._cachedProjectId=e,e;throw new Error(an.GoogleAuthExceptionMessages.NO_PROJECT_ID_FOUND)}async getProjectIdAsync(){return this._cachedProjectId?this._cachedProjectId:(this._findProjectIdPromise||(this._findProjectIdPromise=this.findAndCacheProjectId()),this._findProjectIdPromise)}async getUniverseDomainFromMetadataServer(){let e;try{e=await Qu.universe("universe-domain"),e||=ZP.DEFAULT_UNIVERSE}catch(r){if(r&&r?.response?.status===404)e=ZP.DEFAULT_UNIVERSE;else throw r}return e}async getUniverseDomain(){let e=(0,F$.originalOrCamelOptions)(this.clientOptions).get("universe_domain");try{e??=(await this.getClient()).universeDomain}catch{e??=ZP.DEFAULT_UNIVERSE}return e}getAnyScopes(){return this.scopes||this.defaultScopes}getApplicationDefault(e={},r){let o;if(typeof e=="function"?r=e:o=e,r)this.getApplicationDefaultAsync(o).then(n=>r(null,n.credential,n.projectId),r);else return this.getApplicationDefaultAsync(o)}async getApplicationDefaultAsync(e={}){if(this.cachedCredential)return await this.#t(this.cachedCredential,null);let r;if(r=await this._tryGetApplicationCredentialsFromEnvironmentVariable(e),r)return r instanceof rs.JWT?r.scopes=this.scopes:r instanceof el.BaseExternalAccountClient&&(r.scopes=this.getAnyScopes()),await this.#t(r);if(r=await this._tryGetApplicationCredentialsFromWellKnownFile(e),r)return r instanceof rs.JWT?r.scopes=this.scopes:r instanceof el.BaseExternalAccountClient&&(r.scopes=this.getAnyScopes()),await this.#t(r);if(await this._checkIsGCE())return e.scopes=this.getAnyScopes(),await this.#t(new bH.Compute(e));throw new Error(an.GoogleAuthExceptionMessages.NO_ADC_FOUND)}async#t(e,r=process.env.GOOGLE_CLOUD_QUOTA_PROJECT||null){let o=await this.getProjectIdOptional();return r&&(e.quotaProjectId=r),this.cachedCredential=e,{credential:e,projectId:o}}async _checkIsGCE(){return this.checkIsGCE===void 0&&(this.checkIsGCE=Qu.getGCPResidency()||await Qu.isAvailable()),this.checkIsGCE}async _tryGetApplicationCredentialsFromEnvironmentVariable(e){let r=process.env.GOOGLE_APPLICATION_CREDENTIALS||process.env.google_application_credentials;if(!r||r.length===0)return null;try{return this._getApplicationCredentialsFromFilePath(r,e)}catch(o){throw o instanceof Error&&(o.message=`Unable to read the credential file specified by the GOOGLE_APPLICATION_CREDENTIALS environment variable: ${o.message}`),o}}async _tryGetApplicationCredentialsFromWellKnownFile(e){let r=null;if(this._isWindows())r=process.env.APPDATA;else{let n=process.env.HOME;n&&(r=HP.join(n,".config"))}return r&&(r=HP.join(r,"gcloud","application_default_credentials.json"),Yu.existsSync(r)||(r=null)),r?await this._getApplicationCredentialsFromFilePath(r,e):null}async _getApplicationCredentialsFromFilePath(e,r={}){if(!e||e.length===0)throw new Error("The file path is invalid.");try{if(e=Yu.realpathSync(e),!Yu.lstatSync(e).isFile())throw new Error}catch(n){throw n instanceof Error&&(n.message=`The file at ${e} does not exist, or it is not a file. ${n.message}`),n}let o=Yu.createReadStream(e);return this.fromStream(o,r)}fromImpersonatedJSON(e){if(!e)throw new Error("Must pass in a JSON object containing an impersonated refresh token");if(e.type!==ns.IMPERSONATED_ACCOUNT_TYPE)throw new Error(`The incoming JSON object does not have the "${ns.IMPERSONATED_ACCOUNT_TYPE}" type`);if(!e.source_credentials)throw new Error("The incoming JSON object does not contain a source_credentials field");if(!e.service_account_impersonation_url)throw new Error("The incoming JSON object does not contain a service_account_impersonation_url field");let r=this.fromJSON(e.source_credentials);if(e.service_account_impersonation_url?.length>256)throw new RangeError(`Target principal is too long: ${e.service_account_impersonation_url}`);let o=/(?<target>[^/]+):(generateAccessToken|generateIdToken)$/.exec(e.service_account_impersonation_url)?.groups?.target;if(!o)throw new RangeError(`Cannot extract target principal from ${e.service_account_impersonation_url}`);let n=(this.scopes||e.scopes||this.defaultScopes)??[];return new ns.Impersonated({...e,sourceClient:r,targetPrincipal:o,targetScopes:Array.isArray(n)?n:[n]})}fromJSON(e,r={}){let o,n=(0,F$.originalOrCamelOptions)(r).get("universe_domain");return e.type===L$.USER_REFRESH_ACCOUNT_TYPE?(o=new L$.UserRefreshClient(r),o.fromJSON(e)):e.type===ns.IMPERSONATED_ACCOUNT_TYPE?o=this.fromImpersonatedJSON(e):e.type===el.EXTERNAL_ACCOUNT_TYPE?(o=SH.ExternalAccountClient.fromJSON({...e,...r}),o.scopes=this.getAnyScopes()):e.type===j$.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE?o=new j$.ExternalAccountAuthorizedUserClient({...e,...r}):(r.scopes=this.scopes,o=new rs.JWT(r),this.setGapicJWTValues(o),o.fromJSON(e)),n&&(o.universeDomain=n),o}_cacheClientFromJSON(e,r){let o=this.fromJSON(e,r);return this.jsonContent=e,this.cachedCredential=o,o}fromStream(e,r={},o){let n={};if(typeof r=="function"?o=r:n=r,o)this.fromStreamAsync(e,n).then(i=>o(null,i),o);else return this.fromStreamAsync(e,n)}fromStreamAsync(e,r){return new Promise((o,n)=>{if(!e)throw new Error("Must pass in a stream containing the Google auth settings.");let i=[];e.setEncoding("utf8").on("error",n).on("data",s=>i.push(s)).on("end",()=>{try{try{let s=JSON.parse(i.join("")),u=this._cacheClientFromJSON(s,r);return o(u)}catch(s){if(!this.keyFilename)throw s;let u=new rs.JWT({...this.clientOptions,keyFile:this.keyFilename});return this.cachedCredential=u,this.setGapicJWTValues(u),o(u)}}catch(s){return n(s)}})})}fromAPIKey(e,r={}){return new rs.JWT({...r,apiKey:e})}_isWindows(){let e=_H.platform();return!!(e&&e.length>=3&&e.substring(0,3).toLowerCase()==="win")}async getDefaultServiceProjectId(){return new Promise(e=>{(0,gH.exec)("gcloud config config-helper --format json",(r,o)=>{if(!r&&o)try{let n=JSON.parse(o).configuration.properties.core.project;e(n);return}catch{}e(null)})})}getProductionProjectId(){return process.env.GCLOUD_PROJECT||process.env.GOOGLE_CLOUD_PROJECT||process.env.gcloud_project||process.env.google_cloud_project}async getFileProjectId(){if(this.cachedCredential)return this.cachedCredential.projectId;if(this.keyFilename){let r=await this.getClient();if(r&&r.projectId)return r.projectId}let e=await this._tryGetApplicationCredentialsFromEnvironmentVariable();return e?e.projectId:null}async getExternalAccountClientProjectId(){return!this.jsonContent||this.jsonContent.type!==el.EXTERNAL_ACCOUNT_TYPE?null:await(await this.getClient()).getProjectId()}async getGCEProjectId(){try{return await Qu.project("project-id")}catch{return null}}getCredentials(e){if(e)this.getCredentialsAsync().then(r=>e(null,r),e);else return this.getCredentialsAsync()}async getCredentialsAsync(){let e=await this.getClient();if(e instanceof ns.Impersonated)return{client_email:e.getTargetPrincipal()};if(e instanceof el.BaseExternalAccountClient){let r=e.getServiceAccountEmail();if(r)return{client_email:r,universe_domain:e.universeDomain}}if(this.jsonContent)return{client_email:this.jsonContent.client_email,private_key:this.jsonContent.private_key,universe_domain:this.jsonContent.universe_domain};if(await this._checkIsGCE()){let[r,o]=await Promise.all([Qu.instance("service-accounts/default/email"),this.getUniverseDomain()]);return{client_email:r,universe_domain:o}}throw new Error(an.GoogleAuthExceptionMessages.NO_CREDENTIALS_FOUND)}async getClient(){if(this.cachedCredential)return this.cachedCredential;this.#e=this.#e||this.#r();try{return await this.#e}finally{this.#e=null}}async#r(){if(this.jsonContent)return this._cacheClientFromJSON(this.jsonContent,this.clientOptions);if(this.keyFilename){let e=HP.resolve(this.keyFilename),r=Yu.createReadStream(e);return await this.fromStreamAsync(r,this.clientOptions)}else if(this.apiKey){let e=await this.fromAPIKey(this.apiKey,this.clientOptions);e.scopes=this.scopes;let{credential:r}=await this.#t(e);return r}else{let{credential:e}=await this.getApplicationDefaultAsync(this.clientOptions);return e}}async getIdTokenClient(e){let r=await this.getClient();if(!("fetchIdToken"in r))throw new Error("Cannot fetch ID token in this environment, use GCE or set the GOOGLE_APPLICATION_CREDENTIALS environment variable to a service account credentials JSON file.");return new EH.IdTokenClient({targetAudience:e,idTokenProvider:r})}async getAccessToken(){return(await(await this.getClient()).getAccessToken()).token}async getRequestHeaders(e){return(await this.getClient()).getRequestHeaders(e)}async authorizeRequest(e={}){let r=e.url,n=await(await this.getClient()).getRequestHeaders(r);return e.headers=yH.Gaxios.mergeHeaders(e.headers,n),e}async fetch(...e){return(await this.getClient()).fetch(...e)}async request(e){return(await this.getClient()).request(e)}getEnv(){return(0,PH.getEnv)()}async sign(e,r){let o=await this.getClient(),n=await this.getUniverseDomain();if(r=r||`https://iamcredentials.${n}/v1/projects/-/serviceAccounts/`,o instanceof ns.Impersonated)return(await o.sign(e)).signedBlob;let i=(0,vH.createCrypto)();if(o instanceof rs.JWT&&o.key)return await i.sign(o.key,e);let s=await this.getCredentials();if(!s.client_email)throw new Error("Cannot sign data without `client_email`.");return this.signBlob(i,s.client_email,e,r)}async signBlob(e,r,o,n){let i=new URL(n+`${r}:signBlob`);return(await this.request({method:"POST",url:i.href,data:{payload:e.encodeBase64StringUtf8(o)},retry:!0,retryConfig:{httpMethodsToRetry:["POST"]}})).data.signedBlob}};an.GoogleAuth=WP});var q$=z(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});Bm.IAMAuth=void 0;var KP=class{static{a(this,"IAMAuth")}selector;token;constructor(e,r){this.selector=e,this.token=r,this.selector=e,this.token=r}getRequestHeaders(){return{"x-goog-iam-authority-selector":this.selector,"x-goog-iam-authorization-token":this.token}}};Bm.IAMAuth=KP});var G$=z(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.DownscopedClient=En.EXPIRATION_TIME_OFFSET=En.MAX_ACCESS_BOUNDARY_RULES_COUNT=void 0;var xH=bt(),TH=require("stream"),JP=Er(),AH=Pm(),wH="urn:ietf:params:oauth:grant-type:token-exchange",IH="urn:ietf:params:oauth:token-type:access_token",CH="urn:ietf:params:oauth:token-type:access_token";En.MAX_ACCESS_BOUNDARY_RULES_COUNT=10;En.EXPIRATION_TIME_OFFSET=300*1e3;var XP=class extends JP.AuthClient{static{a(this,"DownscopedClient")}authClient;credentialAccessBoundary;cachedDownscopedAccessToken;stsCredential;constructor(e,r={accessBoundary:{accessBoundaryRules:[]}}){if(super(e instanceof JP.AuthClient?{}:e),e instanceof JP.AuthClient?(this.authClient=e,this.credentialAccessBoundary=r):(this.authClient=e.authClient,this.credentialAccessBoundary=e.credentialAccessBoundary),this.credentialAccessBoundary.accessBoundary.accessBoundaryRules.length===0)throw new Error("At least one access boundary rule needs to be defined.");if(this.credentialAccessBoundary.accessBoundary.accessBoundaryRules.length>En.MAX_ACCESS_BOUNDARY_RULES_COUNT)throw new Error(`The provided access boundary has more than ${En.MAX_ACCESS_BOUNDARY_RULES_COUNT} access boundary rules.`);for(let o of this.credentialAccessBoundary.accessBoundary.accessBoundaryRules)if(o.availablePermissions.length===0)throw new Error("At least one permission should be defined in access boundary rules.");this.stsCredential=new AH.StsCredentials({tokenExchangeEndpoint:`https://sts.${this.universeDomain}/v1/token`}),this.cachedDownscopedAccessToken=null}setCredentials(e){if(!e.expiry_date)throw new Error("The access token expiry_date field is missing in the provided credentials.");super.setCredentials(e),this.cachedDownscopedAccessToken=e}async getAccessToken(){return(!this.cachedDownscopedAccessToken||this.isExpired(this.cachedDownscopedAccessToken))&&await this.refreshAccessTokenAsync(),{token:this.cachedDownscopedAccessToken.access_token,expirationTime:this.cachedDownscopedAccessToken.expiry_date,res:this.cachedDownscopedAccessToken.res}}async getRequestHeaders(){let e=await this.getAccessToken(),r=new Headers({authorization:`Bearer ${e.token}`});return this.addSharedMetadataHeaders(r)}request(e,r){if(r)this.requestAsync(e).then(o=>r(null,o),o=>r(o,o.response));else return this.requestAsync(e)}async requestAsync(e,r=!1){let o;try{let n=await this.getRequestHeaders();e.headers=xH.Gaxios.mergeHeaders(e.headers),this.addUserProjectAndAuthHeaders(e.headers,n),o=await this.transporter.request(e)}catch(n){let i=n.response;if(i){let s=i.status,u=i.config.data instanceof TH.Readable;if(!r&&(s===401||s===403)&&!u&&this.forceRefreshOnFailure)return await this.refreshAccessTokenAsync(),await this.requestAsync(e,!0)}throw n}return o}async refreshAccessTokenAsync(){let e=(await this.authClient.getAccessToken()).token,r={grantType:wH,requestedTokenType:IH,subjectToken:e,subjectTokenType:CH},o=await this.stsCredential.exchangeToken(r,void 0,this.credentialAccessBoundary),n=this.authClient.credentials?.expiry_date||null,i=o.expires_in?new Date().getTime()+o.expires_in*1e3:n;return this.cachedDownscopedAccessToken={access_token:o.access_token,expiry_date:i,res:o.res},this.credentials={},Object.assign(this.credentials,this.cachedDownscopedAccessToken),delete this.credentials.res,this.emit("tokens",{refresh_token:null,expiry_date:this.cachedDownscopedAccessToken.expiry_date,access_token:this.cachedDownscopedAccessToken.access_token,token_type:"Bearer",id_token:null}),this.cachedDownscopedAccessToken}isExpired(e){let r=new Date().getTime();return e.expiry_date?r>=e.expiry_date-this.eagerRefreshThresholdMillis:!1}};En.DownscopedClient=XP});var V$=z(qm=>{"use strict";Object.defineProperty(qm,"__esModule",{value:!0});qm.PassThroughClient=void 0;var RH=Er(),YP=class extends RH.AuthClient{static{a(this,"PassThroughClient")}async request(e){return this.transporter.request(e)}async getAccessToken(){return{}}async getRequestHeaders(){return new Headers}};qm.PassThroughClient=YP});var tl=z(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.GoogleAuth=ge.auth=ge.PassThroughClient=ge.ExternalAccountAuthorizedUserClient=ge.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE=ge.ExecutableError=ge.PluggableAuthClient=ge.DownscopedClient=ge.BaseExternalAccountClient=ge.ExternalAccountClient=ge.IdentityPoolClient=ge.AwsRequestSigner=ge.AwsClient=ge.UserRefreshClient=ge.LoginTicket=ge.ClientAuthentication=ge.OAuth2Client=ge.CodeChallengeMethod=ge.Impersonated=ge.JWT=ge.JWTAccess=ge.IdTokenClient=ge.IAMAuth=ge.GCPEnv=ge.Compute=ge.DEFAULT_UNIVERSE=ge.AuthClient=ge.gaxios=ge.gcpMetadata=void 0;var H$=B$();Object.defineProperty(ge,"GoogleAuth",{enumerable:!0,get:a(function(){return H$.GoogleAuth},"get")});ge.gcpMetadata=Mu();ge.gaxios=bt();var Z$=Er();Object.defineProperty(ge,"AuthClient",{enumerable:!0,get:a(function(){return Z$.AuthClient},"get")});Object.defineProperty(ge,"DEFAULT_UNIVERSE",{enumerable:!0,get:a(function(){return Z$.DEFAULT_UNIVERSE},"get")});var OH=LE();Object.defineProperty(ge,"Compute",{enumerable:!0,get:a(function(){return OH.Compute},"get")});var kH=BE();Object.defineProperty(ge,"GCPEnv",{enumerable:!0,get:a(function(){return kH.GCPEnv},"get")});var NH=q$();Object.defineProperty(ge,"IAMAuth",{enumerable:!0,get:a(function(){return NH.IAMAuth},"get")});var $H=FE();Object.defineProperty(ge,"IdTokenClient",{enumerable:!0,get:a(function(){return $H.IdTokenClient},"get")});var zH=iP();Object.defineProperty(ge,"JWTAccess",{enumerable:!0,get:a(function(){return zH.JWTAccess},"get")});var DH=sP();Object.defineProperty(ge,"JWT",{enumerable:!0,get:a(function(){return DH.JWT},"get")});var UH=dP();Object.defineProperty(ge,"Impersonated",{enumerable:!0,get:a(function(){return UH.Impersonated},"get")});var QP=Ti();Object.defineProperty(ge,"CodeChallengeMethod",{enumerable:!0,get:a(function(){return QP.CodeChallengeMethod},"get")});Object.defineProperty(ge,"OAuth2Client",{enumerable:!0,get:a(function(){return QP.OAuth2Client},"get")});Object.defineProperty(ge,"ClientAuthentication",{enumerable:!0,get:a(function(){return QP.ClientAuthentication},"get")});var MH=zE();Object.defineProperty(ge,"LoginTicket",{enumerable:!0,get:a(function(){return MH.LoginTicket},"get")});var LH=uP();Object.defineProperty(ge,"UserRefreshClient",{enumerable:!0,get:a(function(){return LH.UserRefreshClient},"get")});var jH=RP();Object.defineProperty(ge,"AwsClient",{enumerable:!0,get:a(function(){return jH.AwsClient},"get")});var FH=wP();Object.defineProperty(ge,"AwsRequestSigner",{enumerable:!0,get:a(function(){return FH.AwsRequestSigner},"get")});var BH=TP();Object.defineProperty(ge,"IdentityPoolClient",{enumerable:!0,get:a(function(){return BH.IdentityPoolClient},"get")});var qH=BP();Object.defineProperty(ge,"ExternalAccountClient",{enumerable:!0,get:a(function(){return qH.ExternalAccountClient},"get")});var GH=$o();Object.defineProperty(ge,"BaseExternalAccountClient",{enumerable:!0,get:a(function(){return GH.BaseExternalAccountClient},"get")});var VH=G$();Object.defineProperty(ge,"DownscopedClient",{enumerable:!0,get:a(function(){return VH.DownscopedClient},"get")});var W$=jP();Object.defineProperty(ge,"PluggableAuthClient",{enumerable:!0,get:a(function(){return W$.PluggableAuthClient},"get")});Object.defineProperty(ge,"ExecutableError",{enumerable:!0,get:a(function(){return W$.ExecutableError},"get")});var K$=VP();Object.defineProperty(ge,"EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE",{enumerable:!0,get:a(function(){return K$.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE},"get")});Object.defineProperty(ge,"ExternalAccountAuthorizedUserClient",{enumerable:!0,get:a(function(){return K$.ExternalAccountAuthorizedUserClient},"get")});var HH=V$();Object.defineProperty(ge,"PassThroughClient",{enumerable:!0,get:a(function(){return HH.PassThroughClient},"get")});var ZH=new H$.GoogleAuth;ge.auth=ZH});var J$=z(eS=>{"use strict";Object.defineProperty(eS,"__esModule",{value:!0});eS.getAPI=WH;function WH(t,e,r,o){let n;if(typeof e=="string")n=e,e={};else if(typeof e=="object")n=e.version,delete e.version;else throw new Error("Argument error: Accepts only string or object");try{let i=r[n],s=new i(e,o);return Object.freeze(s)}catch(i){throw new Error(`Unable to load endpoint ${t}("${n}"): ${i.message}`)}}a(WH,"getAPI")});var Y$=z((Ude,X$)=>{X$.exports=require("util").inspect});var al=z((Mde,_z)=>{var lS=typeof Map=="function"&&Map.prototype,tS=Object.getOwnPropertyDescriptor&&lS?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Vm=lS&&tS&&typeof tS.get=="function"?tS.get:null,Q$=lS&&Map.prototype.forEach,dS=typeof Set=="function"&&Set.prototype,rS=Object.getOwnPropertyDescriptor&&dS?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Hm=dS&&rS&&typeof rS.get=="function"?rS.get:null,ez=dS&&Set.prototype.forEach,KH=typeof WeakMap=="function"&&WeakMap.prototype,nl=KH?WeakMap.prototype.has:null,JH=typeof WeakSet=="function"&&WeakSet.prototype,ol=JH?WeakSet.prototype.has:null,XH=typeof WeakRef=="function"&&WeakRef.prototype,tz=XH?WeakRef.prototype.deref:null,YH=Boolean.prototype.valueOf,QH=Object.prototype.toString,eZ=Function.prototype.toString,tZ=String.prototype.match,pS=String.prototype.slice,zo=String.prototype.replace,rZ=String.prototype.toUpperCase,rz=String.prototype.toLowerCase,dz=RegExp.prototype.test,nz=Array.prototype.concat,Pn=Array.prototype.join,nZ=Array.prototype.slice,oz=Math.floor,iS=typeof BigInt=="function"?BigInt.prototype.valueOf:null,nS=Object.getOwnPropertySymbols,aS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,os=typeof Symbol=="function"&&typeof Symbol.iterator=="object",il=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===os||!0)?Symbol.toStringTag:null,pz=Object.prototype.propertyIsEnumerable,iz=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function az(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||dz.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var o=t<0?-oz(-t):oz(t);if(o!==t){var n=String(o),i=pS.call(e,n.length+1);return zo.call(n,r,"$&_")+"."+zo.call(zo.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return zo.call(e,r,"$&_")}a(az,"addNumericSeparator");var sS=Y$(),sz=sS.custom,cz=hz(sz)?sz:null,fz={__proto__:null,double:'"',single:"'"},oZ={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};_z.exports=a(function t(e,r,o,n){var i=r||{};if(Wn(i,"quoteStyle")&&!Wn(fz,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Wn(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=Wn(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Wn(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Wn(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return yz(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return u?az(e,l):l}if(typeof e=="bigint"){var p=String(e)+"n";return u?az(e,p):p}var f=typeof i.depth>"u"?5:i.depth;if(typeof o>"u"&&(o=0),o>=f&&f>0&&typeof e=="object")return cS(e)?"[Array]":"[Object]";var y=PZ(i,o);if(typeof n>"u")n=[];else if(gz(n,e)>=0)return"[Circular]";function m(Z,oe,Q){if(oe&&(n=nZ.call(n),n.push(oe)),Q){var de={depth:i.depth};return Wn(i,"quoteStyle")&&(de.quoteStyle=i.quoteStyle),t(Z,de,o+1,n)}return t(Z,i,o+1,n)}if(a(m,"inspect"),typeof e=="function"&&!uz(e)){var h=fZ(e),_=Gm(e,m);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(_.length>0?" { "+Pn.call(_,", ")+" }":"")}if(hz(e)){var P=os?zo.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):aS.call(e);return typeof e=="object"&&!os?rl(P):P}if(vZ(e)){for(var S="<"+rz.call(String(e.nodeName)),T=e.attributes||[],k=0;k<T.length;k++)S+=" "+T[k].name+"="+mz(iZ(T[k].value),"double",i);return S+=">",e.childNodes&&e.childNodes.length&&(S+="..."),S+="</"+rz.call(String(e.nodeName))+">",S}if(cS(e)){if(e.length===0)return"[]";var L=Gm(e,m);return y&&!EZ(L)?"["+uS(L,y)+"]":"[ "+Pn.call(L,", ")+" ]"}if(sZ(e)){var Y=Gm(e,m);return!("cause"in Error.prototype)&&"cause"in e&&!pz.call(e,"cause")?"{ ["+String(e)+"] "+Pn.call(nz.call("[cause]: "+m(e.cause),Y),", ")+" }":Y.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Pn.call(Y,", ")+" }"}if(typeof e=="object"&&s){if(cz&&typeof e[cz]=="function"&&sS)return sS(e,{depth:f-o});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(mZ(e)){var H=[];return Q$&&Q$.call(e,function(Z,oe){H.push(m(oe,e,!0)+" => "+m(Z,e))}),lz("Map",Vm.call(e),H,y)}if(yZ(e)){var X=[];return ez&&ez.call(e,function(Z){X.push(m(Z,e))}),lz("Set",Hm.call(e),X,y)}if(hZ(e))return oS("WeakMap");if(_Z(e))return oS("WeakSet");if(gZ(e))return oS("WeakRef");if(uZ(e))return rl(m(Number(e)));if(dZ(e))return rl(m(iS.call(e)));if(lZ(e))return rl(YH.call(e));if(cZ(e))return rl(m(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof global<"u"&&e===global)return"{ [object globalThis] }";if(!aZ(e)&&!uz(e)){var re=Gm(e,m),ce=iz?iz(e)===Object.prototype:e instanceof Object||e.constructor===Object,ee=e instanceof Object?"":"null prototype",Le=!ce&&il&&Object(e)===e&&il in e?pS.call(Do(e),8,-1):ee?"Object":"",le=ce||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",W=le+(Le||ee?"["+Pn.call(nz.call([],Le||[],ee||[]),": ")+"] ":"");return re.length===0?W+"{}":y?W+"{"+uS(re,y)+"}":W+"{ "+Pn.call(re,", ")+" }"}return String(e)},"inspect_");function mz(t,e,r){var o=r.quoteStyle||e,n=fz[o];return n+t+n}a(mz,"wrapQuotes");function iZ(t){return zo.call(String(t),/"/g,"&quot;")}a(iZ,"quote");function wi(t){return!il||!(typeof t=="object"&&(il in t||typeof t[il]<"u"))}a(wi,"canTrustToString");function cS(t){return Do(t)==="[object Array]"&&wi(t)}a(cS,"isArray");function aZ(t){return Do(t)==="[object Date]"&&wi(t)}a(aZ,"isDate");function uz(t){return Do(t)==="[object RegExp]"&&wi(t)}a(uz,"isRegExp");function sZ(t){return Do(t)==="[object Error]"&&wi(t)}a(sZ,"isError");function cZ(t){return Do(t)==="[object String]"&&wi(t)}a(cZ,"isString");function uZ(t){return Do(t)==="[object Number]"&&wi(t)}a(uZ,"isNumber");function lZ(t){return Do(t)==="[object Boolean]"&&wi(t)}a(lZ,"isBoolean");function hz(t){if(os)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!aS)return!1;try{return aS.call(t),!0}catch{}return!1}a(hz,"isSymbol");function dZ(t){if(!t||typeof t!="object"||!iS)return!1;try{return iS.call(t),!0}catch{}return!1}a(dZ,"isBigInt");var pZ=Object.prototype.hasOwnProperty||function(t){return t in this};function Wn(t,e){return pZ.call(t,e)}a(Wn,"has");function Do(t){return QH.call(t)}a(Do,"toStr");function fZ(t){if(t.name)return t.name;var e=tZ.call(eZ.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}a(fZ,"nameOf");function gz(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;r<o;r++)if(t[r]===e)return r;return-1}a(gz,"indexOf");function mZ(t){if(!Vm||!t||typeof t!="object")return!1;try{Vm.call(t);try{Hm.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}a(mZ,"isMap");function hZ(t){if(!nl||!t||typeof t!="object")return!1;try{nl.call(t,nl);try{ol.call(t,ol)}catch{return!0}return t instanceof WeakMap}catch{}return!1}a(hZ,"isWeakMap");function gZ(t){if(!tz||!t||typeof t!="object")return!1;try{return tz.call(t),!0}catch{}return!1}a(gZ,"isWeakRef");function yZ(t){if(!Hm||!t||typeof t!="object")return!1;try{Hm.call(t);try{Vm.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}a(yZ,"isSet");function _Z(t){if(!ol||!t||typeof t!="object")return!1;try{ol.call(t,ol);try{nl.call(t,nl)}catch{return!0}return t instanceof WeakSet}catch{}return!1}a(_Z,"isWeakSet");function vZ(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}a(vZ,"isElement");function yz(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return yz(pS.call(t,0,e.maxStringLength),e)+o}var n=oZ[e.quoteStyle||"single"];n.lastIndex=0;var i=zo.call(zo.call(t,n,"\\$1"),/[\x00-\x1f]/g,bZ);return mz(i,"single",e)}a(yz,"inspectString");function bZ(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+rZ.call(e.toString(16))}a(bZ,"lowbyte");function rl(t){return"Object("+t+")"}a(rl,"markBoxed");function oS(t){return t+" { ? }"}a(oS,"weakCollectionOf");function lz(t,e,r,o){var n=o?uS(r,o):Pn.call(r,", ");return t+" ("+e+") {"+n+"}"}a(lz,"collectionOf");function EZ(t){for(var e=0;e<t.length;e++)if(gz(t[e],`
56
+ `)>=0)return!1;return!0}a(EZ,"singleLineValues");function PZ(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=Pn.call(Array(t.indent+1)," ");else return null;return{base:r,prev:Pn.call(Array(e+1),r)}}a(PZ,"getIndent");function uS(t,e){if(t.length===0)return"";var r=`
57
+ `+e.prev+e.base;return r+Pn.call(t,","+r)+`
58
+ `+e.prev}a(uS,"indentedJoin");function Gm(t,e){var r=cS(t),o=[];if(r){o.length=t.length;for(var n=0;n<t.length;n++)o[n]=Wn(t,n)?e(t[n],t):""}var i=typeof nS=="function"?nS(t):[],s;if(os){s={};for(var u=0;u<i.length;u++)s["$"+i[u]]=i[u]}for(var l in t)Wn(t,l)&&(r&&String(Number(l))===l&&l<t.length||os&&s["$"+l]instanceof Symbol||(dz.call(/[^\w$]/,l)?o.push(e(l,t)+": "+e(t[l],t)):o.push(l+": "+e(t[l],t))));if(typeof nS=="function")for(var p=0;p<i.length;p++)pz.call(t,i[p])&&o.push("["+e(i[p])+"]: "+e(t[i[p]],t));return o}a(Gm,"arrObjKeys")});var bz=z((jde,vz)=>{"use strict";var SZ=al(),xZ=xo(),Zm=a(function(t,e,r){for(var o=t,n;(n=o.next)!=null;o=n)if(n.key===e)return o.next=n.next,r||(n.next=t.next,t.next=n),n},"listGetNode"),TZ=a(function(t,e){if(t){var r=Zm(t,e);return r&&r.value}},"listGet"),AZ=a(function(t,e,r){var o=Zm(t,e);o?o.value=r:t.next={key:e,next:t.next,value:r}},"listSet"),wZ=a(function(t,e){return t?!!Zm(t,e):!1},"listHas"),IZ=a(function(t,e){if(t)return Zm(t,e,!0)},"listDelete");vz.exports=a(function(){var e,r={assert:a(function(o){if(!r.has(o))throw new xZ("Side channel does not contain "+SZ(o))},"assert"),delete:a(function(o){var n=IZ(e,o);return n&&e&&!e.next&&(e=void 0),!!n},"delete"),get:a(function(o){return TZ(e,o)},"get"),has:a(function(o){return wZ(e,o)},"has"),set:a(function(o,n){e||(e={next:void 0}),AZ(e,o,n)},"set")};return r},"getSideChannelList")});var fS=z((Bde,Sz)=>{"use strict";var Ez=vu(),Pz=Tb(),CZ=Pz([Ez("%String.prototype.indexOf%")]);Sz.exports=a(function(e,r){var o=Ez(e,!!r);return typeof o=="function"&&CZ(e,".prototype.")>-1?Pz([o]):o},"callBoundIntrinsic")});var mS=z((Gde,Tz)=>{"use strict";var RZ=vu(),sl=fS(),OZ=al(),kZ=xo(),xz=RZ("%Map%",!0),NZ=sl("Map.prototype.get",!0),$Z=sl("Map.prototype.set",!0),zZ=sl("Map.prototype.has",!0),DZ=sl("Map.prototype.delete",!0),UZ=sl("Map.prototype.size",!0);Tz.exports=!!xz&&a(function(){var e,r={assert:a(function(o){if(!r.has(o))throw new kZ("Side channel does not contain "+OZ(o))},"assert"),delete:a(function(o){if(e){var n=DZ(e,o);return UZ(e)===0&&(e=void 0),n}return!1},"delete"),get:a(function(o){if(e)return NZ(e,o)},"get"),has:a(function(o){return e?zZ(e,o):!1},"has"),set:a(function(o,n){e||(e=new xz),$Z(e,o,n)},"set")};return r},"getSideChannelMap")});var wz=z((Hde,Az)=>{"use strict";var MZ=vu(),Km=fS(),LZ=al(),Wm=mS(),jZ=xo(),is=MZ("%WeakMap%",!0),FZ=Km("WeakMap.prototype.get",!0),BZ=Km("WeakMap.prototype.set",!0),qZ=Km("WeakMap.prototype.has",!0),GZ=Km("WeakMap.prototype.delete",!0);Az.exports=is?a(function(){var e,r,o={assert:a(function(n){if(!o.has(n))throw new jZ("Side channel does not contain "+LZ(n))},"assert"),delete:a(function(n){if(is&&n&&(typeof n=="object"||typeof n=="function")){if(e)return GZ(e,n)}else if(Wm&&r)return r.delete(n);return!1},"delete"),get:a(function(n){return is&&n&&(typeof n=="object"||typeof n=="function")&&e?FZ(e,n):r&&r.get(n)},"get"),has:a(function(n){return is&&n&&(typeof n=="object"||typeof n=="function")&&e?qZ(e,n):!!r&&r.has(n)},"has"),set:a(function(n,i){is&&n&&(typeof n=="object"||typeof n=="function")?(e||(e=new is),BZ(e,n,i)):Wm&&(r||(r=Wm()),r.set(n,i))},"set")};return o},"getSideChannelWeakMap"):Wm});var hS=z((Wde,Iz)=>{"use strict";var VZ=xo(),HZ=al(),ZZ=bz(),WZ=mS(),KZ=wz(),JZ=KZ||WZ||ZZ;Iz.exports=a(function(){var e,r={assert:a(function(o){if(!r.has(o))throw new VZ("Side channel does not contain "+HZ(o))},"assert"),delete:a(function(o){return!!e&&e.delete(o)},"delete"),get:a(function(o){return e&&e.get(o)},"get"),has:a(function(o){return!!e&&e.has(o)},"has"),set:a(function(o,n){e||(e=JZ()),e.set(o,n)},"set")};return r},"getSideChannel")});var Jm=z((Jde,Cz)=>{"use strict";var XZ=String.prototype.replace,YZ=/%20/g,gS={RFC1738:"RFC1738",RFC3986:"RFC3986"};Cz.exports={default:gS.RFC3986,formatters:{RFC1738:a(function(t){return XZ.call(t,YZ,"+")},"RFC1738"),RFC3986:a(function(t){return String(t)},"RFC3986")},RFC1738:gS.RFC1738,RFC3986:gS.RFC3986}});var bS=z((Yde,Rz)=>{"use strict";var QZ=Jm(),eW=hS(),yS=Object.prototype.hasOwnProperty,Ii=Array.isArray,Xm=eW(),as=a(function(e,r){return Xm.set(e,r),e},"markOverflow"),Ci=a(function(e){return Xm.has(e)},"isOverflow"),cl=a(function(e){return Xm.get(e)},"getMaxIndex"),vS=a(function(e,r){Xm.set(e,r)},"setMaxIndex"),Sn=(function(){for(var t=[],e=0;e<256;++e)t[t.length]="%"+((e<16?"0":"")+e.toString(16)).toUpperCase();return t})(),tW=a(function(e){for(;e.length>1;){var r=e.pop(),o=r.obj[r.prop];if(Ii(o)){for(var n=[],i=0;i<o.length;++i)typeof o[i]<"u"&&(n[n.length]=o[i]);r.obj[r.prop]=n}}},"compactQueue"),ul=a(function(e,r){for(var o=r&&r.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)typeof e[n]<"u"&&(o[n]=e[n]);return o},"arrayToObject"),rW=a(function t(e,r,o){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(Ii(e)){var n=e.length;if(o&&typeof o.arrayLimit=="number"&&n>o.arrayLimit)return as(ul(e.concat(r),o),n);e[n]=r}else if(e&&typeof e=="object")if(Ci(e)){var i=cl(e)+1;e[i]=r,vS(e,i)}else{if(o&&o.strictMerge)return[e,r];(o&&(o.plainObjects||o.allowPrototypes)||!yS.call(Object.prototype,r))&&(e[r]=!0)}else return[e,r];return e}if(!e||typeof e!="object"){if(Ci(r)){for(var s=Object.keys(r),u=o&&o.plainObjects?{__proto__:null,0:e}:{0:e},l=0;l<s.length;l++){var p=parseInt(s[l],10);u[p+1]=r[s[l]]}return as(u,cl(r)+1)}var f=[e].concat(r);return o&&typeof o.arrayLimit=="number"&&f.length>o.arrayLimit?as(ul(f,o),f.length-1):f}var y=e;return Ii(e)&&!Ii(r)&&(y=ul(e,o)),Ii(e)&&Ii(r)?(r.forEach(function(m,h){if(yS.call(e,h)){var _=e[h];_&&typeof _=="object"&&m&&typeof m=="object"?e[h]=t(_,m,o):e[e.length]=m}else e[h]=m}),e):Object.keys(r).reduce(function(m,h){var _=r[h];if(yS.call(m,h)?m[h]=t(m[h],_,o):m[h]=_,Ci(r)&&!Ci(m)&&as(m,cl(r)),Ci(m)){var P=parseInt(h,10);String(P)===h&&P>=0&&P>cl(m)&&vS(m,P)}return m},y)},"merge"),nW=a(function(e,r){return Object.keys(r).reduce(function(o,n){return o[n]=r[n],o},e)},"assignSingleSource"),oW=a(function(t,e,r){var o=t.replace(/\+/g," ");if(r==="iso-8859-1")return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch{return o}},"decode"),_S=1024,iW=a(function(e,r,o,n,i){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),o==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(h){return"%26%23"+parseInt(h.slice(2),16)+"%3B"});for(var u="",l=0;l<s.length;l+=_S){for(var p=s.length>=_S?s.slice(l,l+_S):s,f=[],y=0;y<p.length;++y){var m=p.charCodeAt(y);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||i===QZ.RFC1738&&(m===40||m===41)){f[f.length]=p.charAt(y);continue}if(m<128){f[f.length]=Sn[m];continue}if(m<2048){f[f.length]=Sn[192|m>>6]+Sn[128|m&63];continue}if(m<55296||m>=57344){f[f.length]=Sn[224|m>>12]+Sn[128|m>>6&63]+Sn[128|m&63];continue}y+=1,m=65536+((m&1023)<<10|p.charCodeAt(y)&1023),f[f.length]=Sn[240|m>>18]+Sn[128|m>>12&63]+Sn[128|m>>6&63]+Sn[128|m&63]}u+=f.join("")}return u},"encode"),aW=a(function(e){for(var r=[{obj:{o:e},prop:"o"}],o=[],n=0;n<r.length;++n)for(var i=r[n],s=i.obj[i.prop],u=Object.keys(s),l=0;l<u.length;++l){var p=u[l],f=s[p];typeof f=="object"&&f!==null&&o.indexOf(f)===-1&&(r[r.length]={obj:s,prop:p},o[o.length]=f)}return tW(r),e},"compact"),sW=a(function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},"isRegExp"),cW=a(function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},"isBuffer"),uW=a(function(e,r,o,n){if(Ci(e)){var i=cl(e)+1;return e[i]=r,vS(e,i),e}var s=[].concat(e,r);return s.length>o?as(ul(s,{plainObjects:n}),s.length-1):s},"combine"),lW=a(function(e,r){if(Ii(e)){for(var o=[],n=0;n<e.length;n+=1)o[o.length]=r(e[n]);return o}return r(e)},"maybeMap");Rz.exports={arrayToObject:ul,assign:nW,combine:uW,compact:aW,decode:oW,encode:iW,isBuffer:cW,isOverflow:Ci,isRegExp:sW,markOverflow:as,maybeMap:lW,merge:rW}});var Dz=z((epe,zz)=>{"use strict";var kz=hS(),Ym=bS(),ll=Jm(),dW=Object.prototype.hasOwnProperty,Nz={brackets:a(function(e){return e+"[]"},"brackets"),comma:"comma",indices:a(function(e,r){return e+"["+r+"]"},"indices"),repeat:a(function(e){return e},"repeat")},xn=Array.isArray,pW=Array.prototype.push,$z=a(function(t,e){pW.apply(t,xn(e)?e:[e])},"pushToArray"),fW=Date.prototype.toISOString,Oz=ll.default,wt={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Ym.encode,encodeValuesOnly:!1,filter:void 0,format:Oz,formatter:ll.formatters[Oz],indices:!1,serializeDate:a(function(e){return fW.call(e)},"serializeDate"),skipNulls:!1,strictNullHandling:!1},mW=a(function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},"isNonNullishPrimitive"),ES={},hW=a(function t(e,r,o,n,i,s,u,l,p,f,y,m,h,_,P,S,T,k){for(var L=e,Y=k,H=0,X=!1;(Y=Y.get(ES))!==void 0&&!X;){var re=Y.get(e);if(H+=1,typeof re<"u"){if(re===H)throw new RangeError("Cyclic object value");X=!0}typeof Y.get(ES)>"u"&&(H=0)}if(typeof f=="function"?L=f(r,L):L instanceof Date?L=h(L):o==="comma"&&xn(L)&&(L=Ym.maybeMap(L,function(Qe){return Qe instanceof Date?h(Qe):Qe})),L===null){if(s)return p&&!S?p(r,wt.encoder,T,"key",_):r;L=""}if(mW(L)||Ym.isBuffer(L)){if(p){var ce=S?r:p(r,wt.encoder,T,"key",_);return[P(ce)+"="+P(p(L,wt.encoder,T,"value",_))]}return[P(r)+"="+P(String(L))]}var ee=[];if(typeof L>"u")return ee;var Le;if(o==="comma"&&xn(L))S&&p&&(L=Ym.maybeMap(L,p)),Le=[{value:L.length>0?L.join(",")||null:void 0}];else if(xn(f))Le=f;else{var le=Object.keys(L);Le=y?le.sort(y):le}var W=l?String(r).replace(/\./g,"%2E"):String(r),Z=n&&xn(L)&&L.length===1?W+"[]":W;if(i&&xn(L)&&L.length===0)return Z+"[]";for(var oe=0;oe<Le.length;++oe){var Q=Le[oe],de=typeof Q=="object"&&Q&&typeof Q.value<"u"?Q.value:L[Q];if(!(u&&de===null)){var me=m&&l?String(Q).replace(/\./g,"%2E"):String(Q),ze=xn(L)?typeof o=="function"?o(Z,me):Z:Z+(m?"."+me:"["+me+"]");k.set(e,H);var je=kz();je.set(ES,k),$z(ee,t(de,ze,o,n,i,s,u,l,o==="comma"&&S&&xn(L)?null:p,f,y,m,h,_,P,S,T,je))}}return ee},"stringify"),gW=a(function(e){if(!e)return wt;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||wt.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var o=ll.default;if(typeof e.format<"u"){if(!dW.call(ll.formatters,e.format))throw new TypeError("Unknown format option provided.");o=e.format}var n=ll.formatters[o],i=wt.filter;(typeof e.filter=="function"||xn(e.filter))&&(i=e.filter);var s;if(e.arrayFormat in Nz?s=e.arrayFormat:"indices"in e?s=e.indices?"indices":"repeat":s=wt.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:wt.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:wt.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:wt.allowEmptyArrays,arrayFormat:s,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:wt.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?wt.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:wt.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:wt.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:wt.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:wt.encodeValuesOnly,filter:i,format:o,formatter:n,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:wt.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:wt.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:wt.strictNullHandling}},"normalizeStringifyOptions");zz.exports=function(t,e){var r=t,o=gW(e),n,i;typeof o.filter=="function"?(i=o.filter,r=i("",r)):xn(o.filter)&&(i=o.filter,n=i);var s=[];if(typeof r!="object"||r===null)return"";var u=Nz[o.arrayFormat],l=u==="comma"&&o.commaRoundTrip;n||(n=Object.keys(r)),o.sort&&n.sort(o.sort);for(var p=kz(),f=0;f<n.length;++f){var y=n[f],m=r[y];o.skipNulls&&m===null||$z(s,hW(m,y,u,l,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,p))}var h=s.join(o.delimiter),_=o.addQueryPrefix===!0?"?":"";return o.charsetSentinel&&(o.charset==="iso-8859-1"?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),h.length>0?_+h:""}});var Lz=z((rpe,Mz)=>{"use strict";var Tn=bS(),Qm=Object.prototype.hasOwnProperty,PS=Array.isArray,ht={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Tn.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},yW=a(function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},"interpretNumericEntities"),Uz=a(function(t,e,r){if(t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return t},"parseArrayValue"),_W="utf8=%26%2310003%3B",vW="utf8=%E2%9C%93",bW=a(function(e,r){var o={__proto__:null},n=r.ignoreQueryPrefix?e.replace(/^\?/,""):e;n=n.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var i=r.parameterLimit===1/0?void 0:r.parameterLimit,s=n.split(r.delimiter,r.throwOnLimitExceeded&&typeof i<"u"?i+1:i);if(r.throwOnLimitExceeded&&typeof i<"u"&&s.length>i)throw new RangeError("Parameter limit exceeded. Only "+i+" parameter"+(i===1?"":"s")+" allowed.");var u=-1,l,p=r.charset;if(r.charsetSentinel)for(l=0;l<s.length;++l)s[l].indexOf("utf8=")===0&&(s[l]===vW?p="utf-8":s[l]===_W&&(p="iso-8859-1"),u=l,l=s.length);for(l=0;l<s.length;++l)if(l!==u){var f=s[l],y=f.indexOf("]="),m=y===-1?f.indexOf("="):y+1,h,_;if(m===-1?(h=r.decoder(f,ht.decoder,p,"key"),_=r.strictNullHandling?null:""):(h=r.decoder(f.slice(0,m),ht.decoder,p,"key"),h!==null&&(_=Tn.maybeMap(Uz(f.slice(m+1),r,PS(o[h])?o[h].length:0),function(S){return r.decoder(S,ht.decoder,p,"value")}))),_&&r.interpretNumericEntities&&p==="iso-8859-1"&&(_=yW(String(_))),f.indexOf("[]=")>-1&&(_=PS(_)?[_]:_),r.comma&&PS(_)&&_.length>r.arrayLimit){if(r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(r.arrayLimit===1?"":"s")+" allowed in an array.");_=Tn.combine([],_,r.arrayLimit,r.plainObjects)}if(h!==null){var P=Qm.call(o,h);P&&(r.duplicates==="combine"||f.indexOf("[]=")>-1)?o[h]=Tn.combine(o[h],_,r.arrayLimit,r.plainObjects):(!P||r.duplicates==="last")&&(o[h]=_)}}return o},"parseQueryStringValues"),EW=a(function(t,e,r,o){var n=0;if(t.length>0&&t[t.length-1]==="[]"){var i=t.slice(0,-1).join("");n=Array.isArray(e)&&e[i]?e[i].length:0}for(var s=o?e:Uz(e,r,n),u=t.length-1;u>=0;--u){var l,p=t[u];if(p==="[]"&&r.parseArrays)Tn.isOverflow(s)?l=s:l=r.allowEmptyArrays&&(s===""||r.strictNullHandling&&s===null)?[]:Tn.combine([],s,r.arrayLimit,r.plainObjects);else{l=r.plainObjects?{__proto__:null}:{};var f=p.charAt(0)==="["&&p.charAt(p.length-1)==="]"?p.slice(1,-1):p,y=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,m=parseInt(y,10),h=!isNaN(m)&&p!==y&&String(m)===y&&m>=0&&r.parseArrays;if(!r.parseArrays&&y==="")l={0:s};else if(h&&m<r.arrayLimit)l=[],l[m]=s;else{if(h&&r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(r.arrayLimit===1?"":"s")+" allowed in an array.");h?(l[m]=s,Tn.markOverflow(l,m)):y!=="__proto__"&&(l[y]=s)}}s=l}return s},"parseObject"),PW=a(function(e,r){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(r.depth<=0)return!r.plainObjects&&Qm.call(Object.prototype,o)&&!r.allowPrototypes?void 0:[o];var n=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,s=n.exec(o),u=s?o.slice(0,s.index):o,l=[];if(u){if(!r.plainObjects&&Qm.call(Object.prototype,u)&&!r.allowPrototypes)return;l[l.length]=u}for(var p=0;(s=i.exec(o))!==null&&p<r.depth;){p+=1;var f=s[1].slice(1,-1);if(!r.plainObjects&&Qm.call(Object.prototype,f)&&!r.allowPrototypes)return;l[l.length]=s[1]}if(s){if(r.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");l[l.length]="["+o.slice(s.index)+"]"}return l},"splitKeyIntoSegments"),SW=a(function(e,r,o,n){if(e){var i=PW(e,o);if(i)return EW(i,r,o,n)}},"parseQueryStringKeys"),xW=a(function(e){if(!e)return ht;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded<"u"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var r=typeof e.charset>"u"?ht.charset:e.charset,o=typeof e.duplicates>"u"?ht.duplicates:e.duplicates;if(o!=="combine"&&o!=="first"&&o!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var n=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:ht.allowDots:!!e.allowDots;return{allowDots:n,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:ht.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:ht.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:ht.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:ht.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:ht.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:ht.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:ht.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:ht.decoder,delimiter:typeof e.delimiter=="string"||Tn.isRegExp(e.delimiter)?e.delimiter:ht.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:ht.depth,duplicates:o,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:ht.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:ht.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:ht.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:ht.strictDepth,strictMerge:typeof e.strictMerge=="boolean"?!!e.strictMerge:ht.strictMerge,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:ht.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},"normalizeParseOptions");Mz.exports=function(t,e){var r=xW(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var o=typeof t=="string"?bW(t,r):t,n=r.plainObjects?{__proto__:null}:{},i=Object.keys(o),s=0;s<i.length;++s){var u=i[s],l=SW(u,o[u],r,typeof t=="string");n=Tn.merge(n,l,r)}return r.allowSparse===!0?n:Tn.compact(n)}});var SS=z((ope,jz)=>{"use strict";var TW=Dz(),AW=Lz(),wW=Jm();jz.exports={formats:wW,parse:AW,stringify:TW}});var Bz=z((xS,Fz)=>{(function(t,e){typeof xS=="object"?Fz.exports=e():typeof define=="function"&&define.amd?define([],e):t.urltemplate=e()})(xS,function(){function t(){}return a(t,"UrlTemplate"),t.prototype.encodeReserved=function(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(r){return/%[0-9A-Fa-f]/.test(r)||(r=encodeURI(r).replace(/%5B/g,"[").replace(/%5D/g,"]")),r}).join("")},t.prototype.encodeUnreserved=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(r){return"%"+r.charCodeAt(0).toString(16).toUpperCase()})},t.prototype.encodeValue=function(e,r,o){return r=e==="+"||e==="#"?this.encodeReserved(r):this.encodeUnreserved(r),o?this.encodeUnreserved(o)+"="+r:r},t.prototype.isDefined=function(e){return e!=null},t.prototype.isKeyOperator=function(e){return e===";"||e==="&"||e==="?"},t.prototype.getValues=function(e,r,o,n){var i=e[o],s=[];if(this.isDefined(i)&&i!=="")if(typeof i=="string"||typeof i=="number"||typeof i=="boolean")i=i.toString(),n&&n!=="*"&&(i=i.substring(0,parseInt(n,10))),s.push(this.encodeValue(r,i,this.isKeyOperator(r)?o:null));else if(n==="*")Array.isArray(i)?i.filter(this.isDefined).forEach(function(l){s.push(this.encodeValue(r,l,this.isKeyOperator(r)?o:null))},this):Object.keys(i).forEach(function(l){this.isDefined(i[l])&&s.push(this.encodeValue(r,i[l],l))},this);else{var u=[];Array.isArray(i)?i.filter(this.isDefined).forEach(function(l){u.push(this.encodeValue(r,l))},this):Object.keys(i).forEach(function(l){this.isDefined(i[l])&&(u.push(this.encodeUnreserved(l)),u.push(this.encodeValue(r,i[l].toString())))},this),this.isKeyOperator(r)?s.push(this.encodeUnreserved(o)+"="+u.join(",")):u.length!==0&&s.push(u.join(","))}else r===";"?this.isDefined(i)&&s.push(this.encodeUnreserved(o)):i===""&&(r==="&"||r==="?")?s.push(this.encodeUnreserved(o)+"="):i===""&&s.push("");return s},t.prototype.parse=function(e){var r=this,o=["+","#",".","/",";","?","&"];return{expand:a(function(n){return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(i,s,u){if(s){var l=null,p=[];if(o.indexOf(s.charAt(0))!==-1&&(l=s.charAt(0),s=s.substr(1)),s.split(/,/g).forEach(function(y){var m=/([^:\*]*)(?::(\d+)|(\*))?/.exec(y);p.push.apply(p,r.getValues(n,l,m[1],m[2]||m[3]))}),l&&l!=="+"){var f=",";return l==="?"?f="&":l!=="#"&&(f=l),(p.length!==0?l:"")+p.join(f)}else return p.join(",")}else return r.encodeReserved(u)})},"expand")}},new t})});var qz=z(TS=>{"use strict";Object.defineProperty(TS,"__esModule",{value:!0});TS.isBrowser=IW;function IW(){return typeof window<"u"}a(IW,"isBrowser")});var th=z(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});eh.headersToClassicHeaders=Gz;eh.marshallGaxiosResponse=CW;function Gz(t){let e={};if(t instanceof Headers)t.forEach((r,o)=>{e[o]=r});else if(Array.isArray(t))for(let[r,o]of t)e[r]=o;else e=t||{};return e}a(Gz,"headersToClassicHeaders");function CW(t){return Object.defineProperties(t||{},{headers:{configurable:!0,writable:!0,enumerable:!0,value:Gz(t?.headers)}})}a(CW,"marshallGaxiosResponse")});var Zz=z(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.sessions=void 0;Ar.request=BW;Ar.closeSession=AS;var Hz=require("http2"),RW=require("zlib"),OW=require("url"),kW=SS(),NW=xu(),$W=require("stream"),zW=require("util"),DW=require("process"),UW=th(),{HTTP2_HEADER_CONTENT_ENCODING:MW,HTTP2_HEADER_CONTENT_TYPE:Vz,HTTP2_HEADER_METHOD:LW,HTTP2_HEADER_PATH:jW,HTTP2_HEADER_STATUS:FW}=Hz.constants,dl=!!DW.env.HTTP2_DEBUG;Ar.sessions={};async function BW(t){let e=NW(!0,{},t);e.validateStatus=e.validateStatus||qW,e.responseType=e.responseType||"json";let r=new OW.URL(e.url),o=GW(r.host);o.timeoutHandle!==void 0&&clearTimeout(o.timeoutHandle);let n=r.pathname;if(t.params&&Object.keys(t.params).length>0){let y=(t.paramsSerializer||kW.stringify)(e.params);n+=`?${y}`}let i=(0,UW.headersToClassicHeaders)(e.headers);i[jW]=n,i[LW]=t.method||"GET",e.headers=i,i[Vz]||e.responseType!=="text"&&(i[Vz]="application/json");let s={config:t,headers:{},status:0,data:{},statusText:""},u=[],l=o.session,p;return new Promise((f,y)=>{try{p=l.request(i).on("response",m=>{Object.assign(s,{headers:m,status:m[FW]});let h=p;if(m[MW]==="gzip"&&(h=p.pipe(RW.createGunzip())),e.responseType==="stream"){s.data=h,f(s);return}h.on("data",_=>{u.push(_)}).on("error",_=>{y(_)}).on("end",()=>{let _=Buffer.concat(u),P=_;if(_){if(e.responseType==="json")try{P=JSON.parse(_.toString("utf8"))}catch{P=_.toString("utf8")}else e.responseType==="text"?P=_.toString("utf8"):e.responseType==="arraybuffer"&&(P=_.buffer);s.data=P}if(!e.validateStatus(s.status)){let S=`Request failed with status code ${s.status}. `;if(s.data&&typeof s.data=="object"){let T=zW.inspect(s.data,{depth:5});S=`${S}
59
+ '${T}`}y(new Error(S,{cause:s}))}f(s)})}).on("error",m=>{y(m)})}catch(m){AS(r).then(()=>y(m)).catch(y);return}if(s.request=p,t.data){if(t.data instanceof $W.Stream)t.data.pipe(p);else if(typeof t.data=="string"){let m=Buffer.from(t.data);p.end(m)}else if(typeof t.data=="object"){let m=JSON.stringify(t.data);p.end(m)}}o.timeoutHandle=setTimeout(()=>AS(r),500)})}a(BW,"request");function qW(t){return t>=200&&t<300}a(qW,"validateStatus");function GW(t){if(Ar.sessions[t])dl&&console.log(`Used cached client for ${t}`);else{dl&&console.log(`Creating client for ${t}`);let e=Hz.connect(`https://${t}`);e.on("error",r=>{console.error(`*ERROR*: ${r}`),delete Ar.sessions[t]}).on("goaway",(r,o)=>{console.error(`*GOAWAY*: ${r} : ${o}`),delete Ar.sessions[t]}),Ar.sessions[t]={session:e}}return Ar.sessions[t]}a(GW,"_getClient");async function AS(t){let e=Ar.sessions[t.host];if(!e)return;let{session:r}=e;delete Ar.sessions[t.host],dl&&console.error(`Closing ${t.host}`),r.close(()=>{dl&&console.error(`Closed ${t.host}`)}),setTimeout(()=>{r&&!r.destroyed&&(dl&&console.log(`Forcing close ${t.host}`),r&&r.destroy())},1e3)}a(AS,"closeSession")});var Wz=z((ppe,VW)=>{VW.exports={name:"googleapis-common",version:"8.0.2",description:"A common tooling library used by the googleapis npm module. You probably don't want to use this directly.",repository:{type:"git",directory:"packages/nodejs-googleapis-common",url:"https://github.com/googleapis/google-cloud-node-core.git"},main:"build/src/index.js",types:"build/src/index.d.ts",files:["build/src","!build/src/**/*.map"],scripts:{prebenchmark:"npm run compile",benchmark:"node build/benchmark/bench.js",compile:"tsc -p .",test:"c8 mocha build/test","system-test":"c8 mocha build/system-test --timeout 600000","presystem-test":"npm run compile",fix:"gts fix",prepare:"npm run compile",pretest:"npm run compile",lint:"gts check","samples-test":"mocha build/samples-test",docs:"jsdoc -c .jsdoc.js",webpack:"webpack","browser-test":"karma start",prelint:"cd samples; npm link ../; npm install",clean:"gts clean",precompile:"gts clean"},keywords:[],author:"Google LLC",license:"Apache-2.0",dependencies:{extend:"^3.0.2",gaxios:"7.1.3","google-auth-library":"10.5.0","google-logging-utils":"1.1.3",qs:"^6.7.0","url-template":"^2.0.8"},devDependencies:{"@babel/plugin-proposal-private-methods":"^7.18.6","@types/extend":"^3.0.1","@types/mocha":"^10.0.10","@types/mv":"^2.1.0","@types/ncp":"^2.0.8","@types/nock":"^11.0.0","@types/proxyquire":"^1.3.31","@types/qs":"^6.5.3","@types/sinon":"^21.0.0","@types/tmp":"^0.2.6","@types/url-template":"^2.0.28",c8:"^10.1.3",codecov:"^3.8.3",gts:"^6.0.2",http2spy:"^2.0.0","is-docker":"^3.0.0",jsdoc:"^4.0.4","jsdoc-fresh":"^5.0.0","jsdoc-region-tag":"^4.0.0",karma:"^6.0.0","karma-chrome-launcher":"^3.0.0","karma-coverage":"^2.0.0","karma-firefox-launcher":"^2.0.0","karma-mocha":"^2.0.0","karma-remap-coverage":"^0.1.5","karma-sourcemap-loader":"^0.4.0","karma-webpack":"^5.0.1",mocha:"^11.1.0",mv:"^2.1.1",ncp:"^2.0.0",nock:"^14.0.5","null-loader":"^4.0.1","path-to-regexp":"^6.0.0",proxyquire:"^2.1.3",puppeteer:"^24.0.0",sinon:"21.0.3",tmp:"0.2.5","ts-loader":"^9.5.2",typescript:"5.8.3",webpack:"^5.97.1","webpack-cli":"^6.0.1"},engines:{node:">=18.0.0"},homepage:"https://github.com/googleapis/google-cloud-node-core/tree/main/packages/nodejs-googleapis-common"}});var rh=z(OS=>{"use strict";Object.defineProperty(OS,"__esModule",{value:!0});OS.createAPIRequest=JW;var wS=bt(),HW=SS(),Qz=require("stream"),Kz=Bz(),Jz=xu(),CS=qz(),ZW=Zz(),IS=th(),eD=Wz(),Xz=a(()=>globalThis.crypto?.randomUUID()||require("crypto").randomUUID(),"randomUUID");function WW(t){return t!==null&&typeof t=="object"&&typeof t.pipe=="function"&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object"}a(WW,"isReadableStream");function KW(t,e){let r=new Array;return e.forEach(o=>{t[o]===void 0&&r.push(o)}),r.length>0?r:null}a(KW,"getMissingParams");function JW(t,e){if(e)Yz(t).then(r=>e(null,r),e);else return Yz(t)}a(JW,"createAPIRequest");async function Yz(t){let e=Jz(!0,{},t.context.google?._options||{},t.context._options||{},t.options),r=Jz(!0,{},e.params,t.params);e.userAgentDirectives=e.userAgentDirectives||[];let o=r.media||{},n=r.requestBody;!r.requestBody&&r.resource&&(!t.requiredParams.includes("resource")||typeof r.resource!="string")&&(n=r.resource,delete r.resource),delete r.requestBody;let i=r.auth||e.auth,s=typeof o.body=="string"?"text/plain":"application/octet-stream";delete r.media,delete r.auth;let u=(0,IS.headersToClassicHeaders)(r.headers||{});XW(u,e.apiVersion),delete r.headers,Object.keys(r).forEach(h=>{if(h.slice(-1)==="_"){let _=h.slice(0,-1);r[_]=r[h],delete r[h]}});let l=KW(r,t.requiredParams);if(l)throw new Error("Missing required parameters: "+l.join(", "));if(e.url){let h=e.url;typeof h=="object"&&(h=h.toString()),e.url=Kz.parse(h).expand(r)}if(t.mediaUrl&&(t.mediaUrl=Kz.parse(t.mediaUrl).expand(r)),t.context._options.rootUrl!==void 0&&e.url!==void 0){let h=new URL(e.url),_=h.href.substr(h.origin.length);e.url=new URL(_,t.context._options.rootUrl).href}e.paramsSerializer=h=>HW.stringify(h,{arrayFormat:"repeat"}),t.pathParams.forEach(h=>delete r[h]),typeof i=="string"&&(r.key=r.key||i,i=void 0);function p(h){let _=Xz(),P=`--${_}--`,S=new Qz.PassThrough({flush(L){this.push(`\r
60
+ `),this.push(P),L()}}),T=new RS,k=WW(h[1].body);u["content-type"]=`multipart/related; boundary=${_}`;for(let L of h){let Y=`--${_}\r
61
61
  content-type: ${L["content-type"]}\r
62
62
  \r
63
63
  `;S.push(Y),typeof L.body=="string"?(S.push(L.body),S.push(`\r
64
- `)):(T.on("progress",H=>{e.onUploadProgress&&e.onUploadProgress({bytesRead:H})}),L.body.pipe(T).pipe(S))}k||(S.push(E),S.push(null)),e.data=S}a(p,"multipartUpload");function f(h){let _=Yz(),E=`--${_}--`;u["content-type"]=`multipart/related; boundary=${_}`;let S="";for(let T of h){let k=`--${_}\r
64
+ `)):(T.on("progress",H=>{e.onUploadProgress&&e.onUploadProgress({bytesRead:H})}),L.body.pipe(T).pipe(S))}k||(S.push(P),S.push(null)),e.data=S}a(p,"multipartUpload");function f(h){let _=Xz(),P=`--${_}--`;u["content-type"]=`multipart/related; boundary=${_}`;let S="";for(let T of h){let k=`--${_}\r
65
65
  content-type: ${T["content-type"]}\r
66
66
  \r
67
67
  `;S+=k,typeof T.body=="string"&&(S+=T.body,S+=`\r
68
- `)}S+=E,e.data=S}if(a(f,"browserMultipartUpload"),t.mediaUrl&&o.body)if(e.url=t.mediaUrl,n){r.uploadType="multipart";let h=[{"content-type":"application/json",body:JSON.stringify(n)},{"content-type":o.mimeType||n&&n.mimeType||s,body:o.body}];(0,CS.isBrowser)()?f(h):p(h)}else r.uploadType="media",Object.assign(u,{"content-type":o.mimeType||s}),e.data=o.body;else e.data=n||void 0;if(e.headers=wS.Gaxios.mergeHeaders(e.headers||{},u),e.params=r,!(0,CS.isBrowser)()){e.headers.set("Accept-Encoding","gzip"),e.userAgentDirectives.push({product:"google-api-nodejs-client",version:tD.version,comment:"gzip"});let h=e.userAgentDirectives.map(_=>{let E=`${_.product}/${_.version}`;return _.comment&&(E+=` (${_.comment})`),E}).join(" ");e.headers.set("User-Agent",h)}if(e.validateStatus||(e.validateStatus=h=>h>=200&&h<300||h===304),e.retry=e.retry===void 0?!0:e.retry,delete e.auth,e.universeDomain&&e.universe_domain&&e.universeDomain!==e.universe_domain)throw new Error("Please set either universe_domain or universeDomain, but not both.");let y=typeof process=="object"&&typeof process.env=="object"?process.env.GOOGLE_CLOUD_UNIVERSE_DOMAIN:void 0,m=e.universeDomain??e.universe_domain??y??"googleapis.com";if(m!=="googleapis.com"&&e.url){let h=new URL(e.url);h.hostname.endsWith(".googleapis.com")&&(h.hostname=h.hostname.replace(/googleapis\.com$/,m),e.url=h.toString())}if(Object.keys(e.params).length||(delete e.params,delete e.paramsSerializer),i&&typeof i=="object"){let h=typeof i.getUniverseDomain=="function"?await i.getUniverseDomain():void 0;if(h&&m!==h)throw new Error(`The configured universe domain (${m}) does not match the universe domain found in the credentials (${h}). If you haven't configured the universe domain explicitly, googleapis.com is the default.`);if(e.http2){let _=await i.getRequestHeaders(e.url),E=Object.assign({},e);return E.headers=wS.Gaxios.mergeHeaders(E.headers,_),WW.request(E)}else{let _=await i.request(e);return(0,IS.marshallGaxiosResponse)(_)}}else return new wS.Gaxios().request(e).then(h=>(0,IS.marshallGaxiosResponse)(h))}a(Qz,"createAPIRequestAsync");var RS=class extends eD.Transform{static{a(this,"ProgressStream")}bytesRead=0;_transform(e,r,o){this.bytesRead+=e.length,this.emit("progress",this.bytesRead),this.push(e),o()}};function YW(t,e){(0,CS.isBrowser)()||(t["x-goog-api-client"]=`gdcl/${tD.version} gl-node/${process.versions.node}`),e&&(t["x-goog-api-version"]=e)}a(YW,"populateAPIHeader")});var rD=z(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});nh.AuthPlus=void 0;var Kn=tl(),kS=class extends Kn.GoogleAuth{static{a(this,"AuthPlus")}JWT=Kn.JWT;Compute=Kn.Compute;OAuth2=Kn.OAuth2Client;GoogleAuth=Kn.GoogleAuth;AwsClient=Kn.AwsClient;IdentityPoolClient=Kn.IdentityPoolClient;ExternalAccountClient=Kn.ExternalAccountClient;_cachedAuth;async getClient(e){return this._cachedAuth=new Kn.GoogleAuth(e),this._cachedAuth.getClient()}getProjectId(e){return e?this._cachedAuth?this._cachedAuth.getProjectId(e):super.getProjectId(e):this._cachedAuth?this._cachedAuth.getProjectId():super.getProjectId()}};nh.AuthPlus=kS});var $S=z(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});oh.Endpoint=void 0;var nD=rh(),NS=class{static{a(this,"Endpoint")}_options;google;constructor(e){this._options=e||{}}applySchema(e,r,o,n){if(this.applyMethodsFromSchema(e,r,o,n),o.resources){for(let i in o.resources)if(Object.prototype.hasOwnProperty.call(o.resources,i)){let s=o.resources[i];e[i]||(e[i]={}),this.applySchema(e[i],r,s,n)}}}applyMethodsFromSchema(e,r,o,n){if(o.methods){for(let i in o.methods)if(Object.prototype.hasOwnProperty.call(o.methods,i)){let s=o.methods[i];e[i]=this.makeMethod(r,s,n)}}}makeMethod(e,r,o){return(n,i)=>{let s=typeof n=="function"?{}:n;i=typeof n=="function"?n:i;let u=oD(e.rootUrl+e.servicePath+r.path),l={options:{url:u.substring(1,u.length-1),method:r.httpMethod,apiVersion:r.apiVersion},params:s,requiredParams:r.parameterOrder||[],pathParams:this.getPathParams(r.parameters),context:o};if(r.mediaUpload&&r.mediaUpload.protocols&&r.mediaUpload.protocols.simple&&r.mediaUpload.protocols.simple.path){let p=oD(e.rootUrl+r.mediaUpload.protocols.simple.path);l.mediaUrl=p.substring(1,p.length-1)}if(!i)return(0,nD.createAPIRequest)(l);(0,nD.createAPIRequest)(l,i)}}getPathParams(e){let r=new Array;return typeof e!="object"&&(e={}),Object.keys(e).forEach(o=>{e[o].location==="path"&&r.push(o)}),r}};oh.Endpoint=NS;function oD(t){return t?`'${t}'`.replace(/([^:]\/)\/+/g,"$1"):""}a(oD,"buildurl")});var aD=z(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});ih.Discovery=void 0;var QW=require("fs"),e3=bt(),t3=require("url"),iD=require("util"),r3=rh(),n3=$S(),o3=iD.promisify(QW.readFile),zS=class{static{a(this,"Discovery")}transporter=new e3.Gaxios;options;constructor(e){this.options=e||{}}makeEndpoint(e){return r=>{let o=new n3.Endpoint(r);return o.applySchema(o,e,e,o),o}}log(...e){this.options&&this.options.debug&&console.log(...e)}async discoverAllAPIs(e){let r=new Headers(this.options.includePrivate?{}:{"X-User-Ip":"0.0.0.0"}),n=(await this.transporter.request({url:e,headers:r})).data.items,i=await Promise.all(n.map(async l=>{let p=await this.discoverAPI(l.discoveryRestUrl);return{api:l,endpointCreator:p}})),s={},u={};for(let l of i)u[l.api.name]||(s[l.api.name]={},u[l.api.name]=p=>{let f=typeof p,y;if(f==="string")y=p,p={};else if(f==="object")y=p.version,delete p.version;else throw new Error("Argument error: Accepts only string or object");try{let m=l.endpointCreator(p,this);return Object.freeze(m)}catch(m){throw new Error(iD.format('Unable to load endpoint %s("%s"): %s',l.api.name,y,m.message))}}),s[l.api.name][l.api.version]=l.endpointCreator;return u}async discoverAPI(e){if(typeof e=="string"){let r=t3.parse(e);if(e&&!r.protocol){this.log("Reading from file "+e);let o=await o3(e,{encoding:"utf8"});return this.makeEndpoint(JSON.parse(o))}else{this.log("Requesting "+e);let o=await this.transporter.request({url:e});return this.makeEndpoint(o.data)}}else{let r=e;this.log("Requesting "+r.url);let o=r.url;delete r.url;let n={options:{url:o,method:"GET"},requiredParams:[],pathParams:[],params:r,context:{google:{_options:{}},_options:{}}},i=await(0,r3.createAPIRequest)(n);return this.makeEndpoint(i.data)}}};ih.Discovery=zS});var ah=z($e=>{"use strict";var i3=$e&&$e.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),a3=$e&&$e.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&i3(e,t,r)};Object.defineProperty($e,"__esModule",{value:!0});$e.Endpoint=$e.Discovery=$e.AuthPlus=$e.createAPIRequest=$e.getAPI=$e.GaxiosError=$e.Gaxios=$e.AwsClient=$e.IdentityPoolClient=$e.BaseExternalAccountClient=$e.ExternalAccountClient=$e.GoogleAuth=$e.UserRefreshClient=$e.Compute=$e.JWT=$e.OAuth2Client=$e.gaxios=$e.googleAuthLibrary=void 0;$e.googleAuthLibrary=tl();$e.gaxios=bt();var Jn=tl();Object.defineProperty($e,"OAuth2Client",{enumerable:!0,get:a(function(){return Jn.OAuth2Client},"get")});Object.defineProperty($e,"JWT",{enumerable:!0,get:a(function(){return Jn.JWT},"get")});Object.defineProperty($e,"Compute",{enumerable:!0,get:a(function(){return Jn.Compute},"get")});Object.defineProperty($e,"UserRefreshClient",{enumerable:!0,get:a(function(){return Jn.UserRefreshClient},"get")});Object.defineProperty($e,"GoogleAuth",{enumerable:!0,get:a(function(){return Jn.GoogleAuth},"get")});Object.defineProperty($e,"ExternalAccountClient",{enumerable:!0,get:a(function(){return Jn.ExternalAccountClient},"get")});Object.defineProperty($e,"BaseExternalAccountClient",{enumerable:!0,get:a(function(){return Jn.BaseExternalAccountClient},"get")});Object.defineProperty($e,"IdentityPoolClient",{enumerable:!0,get:a(function(){return Jn.IdentityPoolClient},"get")});Object.defineProperty($e,"AwsClient",{enumerable:!0,get:a(function(){return Jn.AwsClient},"get")});var sD=bt();Object.defineProperty($e,"Gaxios",{enumerable:!0,get:a(function(){return sD.Gaxios},"get")});Object.defineProperty($e,"GaxiosError",{enumerable:!0,get:a(function(){return sD.GaxiosError},"get")});var s3=X$();Object.defineProperty($e,"getAPI",{enumerable:!0,get:a(function(){return s3.getAPI},"get")});var c3=rh();Object.defineProperty($e,"createAPIRequest",{enumerable:!0,get:a(function(){return c3.createAPIRequest},"get")});var u3=rD();Object.defineProperty($e,"AuthPlus",{enumerable:!0,get:a(function(){return u3.AuthPlus},"get")});var l3=aD();Object.defineProperty($e,"Discovery",{enumerable:!0,get:a(function(){return l3.Discovery},"get")});var d3=$S();Object.defineProperty($e,"Endpoint",{enumerable:!0,get:a(function(){return d3.Endpoint},"get")});a3(th(),$e)});var uD=z(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});sh.people_v1=void 0;var we=ah(),cD;(function(t){class e{static{a(this,"People")}context;contactGroups;otherContacts;people;constructor(l,p){this.context={_options:l||{},google:p},this.contactGroups=new r(this.context),this.otherContacts=new n(this.context),this.people=new i(this.context)}}t.People=e;class r{static{a(this,"Resource$Contactgroups")}context;members;constructor(l){this.context=l,this.members=new o(this.context)}batchGet(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/contactGroups:batchGet").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}create(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/contactGroups").replace(/([^:]\/)\/+/g,"$1"),method:"POST",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}delete(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}get(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}list(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/contactGroups").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}update(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}}t.Resource$Contactgroups=r;class o{static{a(this,"Resource$Contactgroups$Members")}context;constructor(l){this.context=l}modify(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}/members:modify").replace(/([^:]\/)\/+/g,"$1"),method:"POST",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}}t.Resource$Contactgroups$Members=o;class n{static{a(this,"Resource$Othercontacts")}context;constructor(l){this.context=l}copyOtherContactToMyContactsGroup(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}:copyOtherContactToMyContactsGroup").replace(/([^:]\/)\/+/g,"$1"),method:"POST",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}list(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/otherContacts").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}search(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/otherContacts:search").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}}t.Resource$Othercontacts=n;class i{static{a(this,"Resource$People")}context;connections;constructor(l){this.context=l,this.connections=new s(this.context)}batchCreateContacts(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:batchCreateContacts").replace(/([^:]\/)\/+/g,"$1"),method:"POST",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}batchDeleteContacts(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:batchDeleteContacts").replace(/([^:]\/)\/+/g,"$1"),method:"POST",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}batchUpdateContacts(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:batchUpdateContacts").replace(/([^:]\/)\/+/g,"$1"),method:"POST",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}createContact(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:createContact").replace(/([^:]\/)\/+/g,"$1"),method:"POST",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}deleteContact(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}:deleteContact").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}deleteContactPhoto(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}:deleteContactPhoto").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}get(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}getBatchGet(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:batchGet").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}listDirectoryPeople(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:listDirectoryPeople").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}searchContacts(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:searchContacts").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}searchDirectoryPeople(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:searchDirectoryPeople").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}updateContact(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}:updateContact").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}updateContactPhoto(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}:updateContactPhoto").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}}t.Resource$People=i;class s{static{a(this,"Resource$People$Connections")}context;constructor(l){this.context=l}list(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}/connections").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}}t.Resource$People$Connections=s})(cD||(sh.people_v1=cD={}))});var pD=z(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.AuthPlus=Fr.people_v1=Fr.auth=Fr.VERSIONS=void 0;Fr.people=p3;var lD=ah(),dD=uD();Object.defineProperty(Fr,"people_v1",{enumerable:!0,get:a(function(){return dD.people_v1},"get")});Fr.VERSIONS={v1:dD.people_v1.People};function p3(t){return(0,lD.getAPI)("people",t,Fr.VERSIONS,this)}a(p3,"people");var f3=new lD.AuthPlus;Fr.auth=f3;var m3=ah();Object.defineProperty(Fr,"AuthPlus",{enumerable:!0,get:a(function(){return m3.AuthPlus},"get")})});var fD=z((DS,US)=>{(function(t,e){typeof DS=="object"&&typeof US<"u"?US.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(DS,(function(){"use strict";var t=1e3,e=6e4,r=36e5,o="millisecond",n="second",i="minute",s="hour",u="day",l="week",p="month",f="quarter",y="year",m="date",h="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|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,S={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(ue){var K=["th","st","nd","rd"],Z=ue%100;return"["+ue+(K[(Z-20)%10]||K[Z]||K[0])+"]"},"ordinal")},T=a(function(ue,K,Z){var oe=String(ue);return!oe||oe.length>=K?ue:""+Array(K+1-oe.length).join(Z)+ue},"m"),k={s:T,z:a(function(ue){var K=-ue.utcOffset(),Z=Math.abs(K),oe=Math.floor(Z/60),Q=Z%60;return(K<=0?"+":"-")+T(oe,2,"0")+":"+T(Q,2,"0")},"z"),m:a(function ue(K,Z){if(K.date()<Z.date())return-ue(Z,K);var oe=12*(Z.year()-K.year())+(Z.month()-K.month()),Q=K.clone().add(oe,p),pe=Z-Q<0,me=K.clone().add(oe+(pe?-1:1),p);return+(-(oe+(Z-Q)/(pe?Q-me:me-Q))||0)},"t"),a:a(function(ue){return ue<0?Math.ceil(ue)||0:Math.floor(ue)},"a"),p:a(function(ue){return{M:p,y,w:l,d:u,D:m,h:s,m:i,s:n,ms:o,Q:f}[ue]||String(ue||"").toLowerCase().replace(/s$/,"")},"p"),u:a(function(ue){return ue===void 0},"u")},L="en",Y={};Y[L]=S;var H=a(function(ue){return ue instanceof ee},"p"),X=a(function ue(K,Z,oe){var Q;if(!K)return L;if(typeof K=="string"){var pe=K.toLowerCase();Y[pe]&&(Q=pe),Z&&(Y[pe]=Z,Q=pe);var me=K.split("-");if(!Q&&me.length>1)return ue(me[0])}else{var ze=K.name;Y[ze]=K,Q=ze}return!oe&&Q&&(L=Q),Q||!oe&&L},"t"),re=a(function(ue,K){if(H(ue))return ue.clone();var Z=typeof K=="object"?K:{};return Z.date=ue,Z.args=arguments,new ee(Z)},"w"),ce=k;ce.l=X,ce.i=H,ce.w=function(ue,K){return re(ue,{locale:K.$L,utc:K.$u,x:K.$x,$offset:K.$offset})};var ee=(function(){function ue(Z){this.$L=X(Z.locale,null,!0),this.parse(Z)}a(ue,"M");var K=ue.prototype;return K.parse=function(Z){this.$d=(function(oe){var Q=oe.date,pe=oe.utc;if(Q===null)return new Date(NaN);if(ce.u(Q))return new Date;if(Q instanceof Date)return new Date(Q);if(typeof Q=="string"&&!/Z$/i.test(Q)){var me=Q.match(_);if(me){var ze=me[2]-1||0,je=(me[7]||"0").substring(0,3);return pe?new Date(Date.UTC(me[1],ze,me[3]||1,me[4]||0,me[5]||0,me[6]||0,je)):new Date(me[1],ze,me[3]||1,me[4]||0,me[5]||0,me[6]||0,je)}}return new Date(Q)})(Z),this.$x=Z.x||{},this.init()},K.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()},K.$utils=function(){return ce},K.isValid=function(){return this.$d.toString()!==h},K.isSame=function(Z,oe){var Q=re(Z);return this.startOf(oe)<=Q&&Q<=this.endOf(oe)},K.isAfter=function(Z,oe){return re(Z)<this.startOf(oe)},K.isBefore=function(Z,oe){return this.endOf(oe)<re(Z)},K.$g=function(Z,oe,Q){return ce.u(Z)?this[oe]:this.set(Q,Z)},K.unix=function(){return Math.floor(this.valueOf()/1e3)},K.valueOf=function(){return this.$d.getTime()},K.startOf=function(Z,oe){var Q=this,pe=!!ce.u(oe)||oe,me=ce.p(Z),ze=a(function(sr,Je){var et=ce.w(Q.$u?Date.UTC(Q.$y,Je,sr):new Date(Q.$y,Je,sr),Q);return pe?et:et.endOf(u)},"l"),je=a(function(sr,Je){return ce.w(Q.toDate()[sr].apply(Q.toDate("s"),(pe?[0,0,0,0]:[23,59,59,999]).slice(Je)),Q)},"$"),Qe=this.$W,it=this.$M,It=this.$D,se="set"+(this.$u?"UTC":"");switch(me){case y:return pe?ze(1,0):ze(31,11);case p:return pe?ze(1,it):ze(0,it+1);case l:var gt=this.$locale().weekStart||0,_t=(Qe<gt?Qe+7:Qe)-gt;return ze(pe?It-_t:It+(6-_t),it);case u:case m:return je(se+"Hours",0);case s:return je(se+"Minutes",1);case i:return je(se+"Seconds",2);case n:return je(se+"Milliseconds",3);default:return this.clone()}},K.endOf=function(Z){return this.startOf(Z,!1)},K.$set=function(Z,oe){var Q,pe=ce.p(Z),me="set"+(this.$u?"UTC":""),ze=(Q={},Q[u]=me+"Date",Q[m]=me+"Date",Q[p]=me+"Month",Q[y]=me+"FullYear",Q[s]=me+"Hours",Q[i]=me+"Minutes",Q[n]=me+"Seconds",Q[o]=me+"Milliseconds",Q)[pe],je=pe===u?this.$D+(oe-this.$W):oe;if(pe===p||pe===y){var Qe=this.clone().set(m,1);Qe.$d[ze](je),Qe.init(),this.$d=Qe.set(m,Math.min(this.$D,Qe.daysInMonth())).$d}else ze&&this.$d[ze](je);return this.init(),this},K.set=function(Z,oe){return this.clone().$set(Z,oe)},K.get=function(Z){return this[ce.p(Z)]()},K.add=function(Z,oe){var Q,pe=this;Z=Number(Z);var me=ce.p(oe),ze=a(function(it){var It=re(pe);return ce.w(It.date(It.date()+Math.round(it*Z)),pe)},"y");if(me===p)return this.set(p,this.$M+Z);if(me===y)return this.set(y,this.$y+Z);if(me===u)return ze(1);if(me===l)return ze(7);var je=(Q={},Q[i]=e,Q[s]=r,Q[n]=t,Q)[me]||1,Qe=this.$d.getTime()+Z*je;return ce.w(Qe,this)},K.subtract=function(Z,oe){return this.add(-1*Z,oe)},K.format=function(Z){var oe=this,Q=this.$locale();if(!this.isValid())return Q.invalidDate||h;var pe=Z||"YYYY-MM-DDTHH:mm:ssZ",me=ce.z(this),ze=this.$H,je=this.$m,Qe=this.$M,it=Q.weekdays,It=Q.months,se=Q.meridiem,gt=a(function(Je,et,b,x){return Je&&(Je[et]||Je(oe,pe))||b[et].slice(0,x)},"h"),_t=a(function(Je){return ce.s(ze%12||12,Je,"0")},"d"),sr=se||function(Je,et,b){var x=Je<12?"AM":"PM";return b?x.toLowerCase():x};return pe.replace(E,(function(Je,et){return et||(function(b){switch(b){case"YY":return String(oe.$y).slice(-2);case"YYYY":return ce.s(oe.$y,4,"0");case"M":return Qe+1;case"MM":return ce.s(Qe+1,2,"0");case"MMM":return gt(Q.monthsShort,Qe,It,3);case"MMMM":return gt(It,Qe);case"D":return oe.$D;case"DD":return ce.s(oe.$D,2,"0");case"d":return String(oe.$W);case"dd":return gt(Q.weekdaysMin,oe.$W,it,2);case"ddd":return gt(Q.weekdaysShort,oe.$W,it,3);case"dddd":return it[oe.$W];case"H":return String(ze);case"HH":return ce.s(ze,2,"0");case"h":return _t(1);case"hh":return _t(2);case"a":return sr(ze,je,!0);case"A":return sr(ze,je,!1);case"m":return String(je);case"mm":return ce.s(je,2,"0");case"s":return String(oe.$s);case"ss":return ce.s(oe.$s,2,"0");case"SSS":return ce.s(oe.$ms,3,"0");case"Z":return me}return null})(Je)||me.replace(":","")}))},K.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},K.diff=function(Z,oe,Q){var pe,me=this,ze=ce.p(oe),je=re(Z),Qe=(je.utcOffset()-this.utcOffset())*e,it=this-je,It=a(function(){return ce.m(me,je)},"D");switch(ze){case y:pe=It()/12;break;case p:pe=It();break;case f:pe=It()/3;break;case l:pe=(it-Qe)/6048e5;break;case u:pe=(it-Qe)/864e5;break;case s:pe=it/r;break;case i:pe=it/e;break;case n:pe=it/t;break;default:pe=it}return Q?pe:ce.a(pe)},K.daysInMonth=function(){return this.endOf(p).$D},K.$locale=function(){return Y[this.$L]},K.locale=function(Z,oe){if(!Z)return this.$L;var Q=this.clone(),pe=X(Z,oe,!0);return pe&&(Q.$L=pe),Q},K.clone=function(){return ce.w(this.$d,this)},K.toDate=function(){return new Date(this.valueOf())},K.toJSON=function(){return this.isValid()?this.toISOString():null},K.toISOString=function(){return this.$d.toISOString()},K.toString=function(){return this.$d.toUTCString()},ue})(),Le=ee.prototype;return re.prototype=Le,[["$ms",o],["$s",n],["$m",i],["$H",s],["$W",u],["$M",p],["$y",y],["$D",m]].forEach((function(ue){Le[ue[1]]=function(K){return this.$g(K,ue[0],ue[1])}})),re.extend=function(ue,K){return ue.$i||(ue(K,ee,re),ue.$i=!0),re},re.locale=X,re.isDayjs=H,re.unix=function(ue){return re(1e3*ue)},re.en=Y[L],re.Ls=Y,re.p={},re}))});var g3={};Xt(g3,{googleContacts:()=>h3});module.exports=oM(g3);var dr={};Xt(dr,{$ZodAny:()=>$s,$ZodArray:()=>Ms,$ZodAsyncError:()=>Vr,$ZodBase64:()=>Sd,$ZodBase64URL:()=>xd,$ZodBigInt:()=>na,$ZodBigIntFormat:()=>Id,$ZodBoolean:()=>Ko,$ZodCIDRv4:()=>Pd,$ZodCIDRv6:()=>Ed,$ZodCUID:()=>fd,$ZodCUID2:()=>md,$ZodCatch:()=>Gd,$ZodCheck:()=>rt,$ZodCheckBigIntFormat:()=>Pg,$ZodCheckEndsWith:()=>Ng,$ZodCheckGreaterThan:()=>rd,$ZodCheckIncludes:()=>Og,$ZodCheckLengthEquals:()=>wg,$ZodCheckLessThan:()=>td,$ZodCheckLowerCase:()=>Cg,$ZodCheckMaxLength:()=>Tg,$ZodCheckMaxSize:()=>Eg,$ZodCheckMimeType:()=>zg,$ZodCheckMinLength:()=>Ag,$ZodCheckMinSize:()=>Sg,$ZodCheckMultipleOf:()=>vg,$ZodCheckNumberFormat:()=>bg,$ZodCheckOverwrite:()=>Dg,$ZodCheckProperty:()=>$g,$ZodCheckRegex:()=>Ig,$ZodCheckSizeEquals:()=>xg,$ZodCheckStartsWith:()=>kg,$ZodCheckStringFormat:()=>ta,$ZodCheckUpperCase:()=>Rg,$ZodCodec:()=>ia,$ZodCustom:()=>Zs,$ZodCustomStringFormat:()=>wd,$ZodDate:()=>Us,$ZodDefault:()=>jd,$ZodDiscriminatedUnion:()=>Ls,$ZodE164:()=>Td,$ZodEmail:()=>ld,$ZodEmoji:()=>dd,$ZodEncodeError:()=>io,$ZodEnum:()=>Bs,$ZodError:()=>xs,$ZodExactOptional:()=>Ld,$ZodFile:()=>Md,$ZodFunction:()=>Wd,$ZodGUID:()=>cd,$ZodIPv4:()=>_d,$ZodIPv6:()=>vd,$ZodISODate:()=>Rs,$ZodISODateTime:()=>Cs,$ZodISODuration:()=>ks,$ZodISOTime:()=>Os,$ZodIntersection:()=>zd,$ZodJWT:()=>Ad,$ZodKSUID:()=>yd,$ZodLazy:()=>Jd,$ZodLiteral:()=>qs,$ZodMAC:()=>bd,$ZodMap:()=>Dd,$ZodNaN:()=>Vd,$ZodNanoID:()=>pd,$ZodNever:()=>kd,$ZodNonOptional:()=>Bd,$ZodNull:()=>Od,$ZodNullable:()=>Vs,$ZodNumber:()=>ra,$ZodNumberFormat:()=>Ns,$ZodObject:()=>Nd,$ZodObjectJIT:()=>jg,$ZodOptional:()=>oa,$ZodPipe:()=>Hs,$ZodPrefault:()=>Fd,$ZodPromise:()=>Kd,$ZodReadonly:()=>Hd,$ZodRealError:()=>Qt,$ZodRecord:()=>Fs,$ZodRegistry:()=>Xd,$ZodSet:()=>Ud,$ZodString:()=>$n,$ZodStringFormat:()=>Xe,$ZodSuccess:()=>qd,$ZodSymbol:()=>Cd,$ZodTemplateLiteral:()=>Zd,$ZodTransform:()=>Gs,$ZodTuple:()=>js,$ZodType:()=>Te,$ZodULID:()=>hd,$ZodURL:()=>Is,$ZodUUID:()=>ud,$ZodUndefined:()=>Rd,$ZodUnion:()=>Jo,$ZodUnknown:()=>zs,$ZodVoid:()=>Ds,$ZodXID:()=>gd,$ZodXor:()=>$d,$brand:()=>ys,$constructor:()=>w,$input:()=>Qd,$output:()=>Yd,Doc:()=>ws,JSONSchema:()=>NT,JSONSchemaGenerator:()=>Sp,NEVER:()=>Ll,TimePrecision:()=>tp,_any:()=>Oc,_array:()=>Ny,_base64:()=>yc,_base64url:()=>_c,_bigint:()=>ap,_boolean:()=>Ic,_catch:()=>lL,_check:()=>kT,_cidrv4:()=>hc,_cidrv6:()=>gc,_coercedBigint:()=>Rc,_coercedBoolean:()=>Cc,_coercedDate:()=>$c,_coercedNumber:()=>Ac,_coercedString:()=>ec,_cuid:()=>cc,_cuid2:()=>uc,_custom:()=>jc,_date:()=>fp,_decode:()=>Hl,_decodeAsync:()=>Wl,_default:()=>sL,_discriminatedUnion:()=>K1,_e164:()=>vc,_email:()=>tc,_emoji:()=>ac,_encode:()=>Vl,_encodeAsync:()=>Zl,_endsWith:()=>ri,_enum:()=>tL,_file:()=>hp,_float32:()=>rp,_float64:()=>np,_gt:()=>Zr,_gte:()=>At,_guid:()=>ca,_includes:()=>ei,_int:()=>wc,_int32:()=>op,_int64:()=>sp,_intersection:()=>J1,_ipv4:()=>fc,_ipv6:()=>mc,_isoDate:()=>Ec,_isoDateTime:()=>Pc,_isoDuration:()=>xc,_isoTime:()=>Sc,_jwt:()=>bc,_ksuid:()=>pc,_lazy:()=>mL,_length:()=>fo,_literal:()=>nL,_lowercase:()=>Yo,_lt:()=>Hr,_lte:()=>Vt,_mac:()=>ep,_map:()=>Q1,_max:()=>Vt,_maxLength:()=>po,_maxSize:()=>Dn,_mime:()=>ni,_min:()=>At,_minLength:()=>vt,_minSize:()=>Wr,_multipleOf:()=>zn,_nan:()=>mp,_nanoid:()=>sc,_nativeEnum:()=>rL,_negative:()=>Dc,_never:()=>pp,_nonnegative:()=>Mc,_nonoptional:()=>cL,_nonpositive:()=>Uc,_normalize:()=>oi,_null:()=>dp,_nullable:()=>aL,_number:()=>Tc,_optional:()=>iL,_overwrite:()=>Rr,_parse:()=>Ki,_parseAsync:()=>Ji,_pipe:()=>dL,_positive:()=>zc,_promise:()=>hL,_property:()=>Lc,_readonly:()=>pL,_record:()=>Y1,_refine:()=>Fc,_regex:()=>Ut,_safeDecode:()=>Jl,_safeDecodeAsync:()=>Yl,_safeEncode:()=>Kl,_safeEncodeAsync:()=>Xl,_safeParse:()=>Xi,_safeParseAsync:()=>Qi,_set:()=>eL,_size:()=>lo,_slugify:()=>ua,_startsWith:()=>ti,_string:()=>Qs,_stringFormat:()=>ci,_stringbool:()=>vp,_success:()=>uL,_superRefine:()=>gp,_symbol:()=>up,_templateLiteral:()=>fL,_toLowerCase:()=>ai,_toUpperCase:()=>si,_transform:()=>oL,_trim:()=>ii,_tuple:()=>X1,_uint32:()=>ip,_uint64:()=>cp,_ulid:()=>lc,_undefined:()=>lp,_union:()=>Z1,_unknown:()=>kc,_uppercase:()=>Qo,_url:()=>Xo,_uuid:()=>rc,_uuidv4:()=>nc,_uuidv6:()=>oc,_uuidv7:()=>ic,_void:()=>Nc,_xid:()=>dc,_xor:()=>W1,clone:()=>Rt,config:()=>pt,createStandardJSONSchemaMethod:()=>la,createToJSONSchemaMethod:()=>$y,decode:()=>Qx,decodeAsync:()=>tT,describe:()=>yp,encode:()=>Yx,encodeAsync:()=>eT,extractDefs:()=>ho,finalize:()=>go,flattenError:()=>Zi,formatError:()=>Wi,globalConfig:()=>gs,globalRegistry:()=>Ot,initializeContext:()=>mo,isValidBase64:()=>Lg,isValidBase64URL:()=>ST,isValidJWT:()=>xT,locales:()=>sa,meta:()=>_p,parse:()=>Ho,parseAsync:()=>Zo,prettifyError:()=>Gl,process:()=>Ye,regexes:()=>er,registry:()=>Ys,safeDecode:()=>nT,safeDecodeAsync:()=>iT,safeEncode:()=>rT,safeEncodeAsync:()=>oT,safeParse:()=>Yi,safeParseAsync:()=>ea,toDotPath:()=>Xx,toJSONSchema:()=>Bc,treeifyError:()=>ql,util:()=>ie,version:()=>Ug});var Ll=Object.freeze({status:"aborted"});function w(t,e,r){function o(u,l){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:l,constr:s,traits:new Set},enumerable:!1}),u._zod.traits.has(t))return;u._zod.traits.add(t),e(u,l);let p=s.prototype,f=Object.keys(p);for(let y=0;y<f.length;y++){let m=f[y];m in u||(u[m]=p[m].bind(u))}}a(o,"init");let n=r?.Parent??Object;class i extends n{static{a(this,"Definition")}}Object.defineProperty(i,"name",{value:t});function s(u){var l;let p=r?.Parent?new i:this;o(p,u),(l=p._zod).deferred??(l.deferred=[]);for(let f of p._zod.deferred)f();return p}return a(s,"_"),Object.defineProperty(s,"init",{value:o}),Object.defineProperty(s,Symbol.hasInstance,{value:a(u=>r?.Parent&&u instanceof r.Parent?!0:u?._zod?.traits?.has(t),"value")}),Object.defineProperty(s,"name",{value:t}),s}a(w,"$constructor");var ys=Symbol("zod_brand"),Vr=class extends Error{static{a(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},io=class extends Error{static{a(this,"$ZodEncodeError")}constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}},gs={};function pt(t){return t&&Object.assign(gs,t),gs}a(pt,"config");var ie={};Xt(ie,{BIGINT_FORMAT_RANGES:()=>Gh,Class:()=>Uh,NUMBER_FORMAT_RANGES:()=>qh,aborted:()=>uo,allowsEval:()=>jh,assert:()=>uM,assertEqual:()=>iM,assertIs:()=>sM,assertNever:()=>cM,assertNotEqual:()=>aM,assignProp:()=>so,base64ToUint8Array:()=>Wx,base64urlToUint8Array:()=>bM,cached:()=>Vi,captureStackTrace:()=>Fl,cleanEnum:()=>vM,cleanRegex:()=>bs,clone:()=>Rt,cloneDef:()=>dM,createTransparentProxy:()=>yM,defineLazy:()=>De,esc:()=>jl,escapeRegex:()=>Cr,extend:()=>Gx,finalizeIssue:()=>Yt,floatSafeRemainder:()=>Mh,getElementAtPath:()=>pM,getEnumValues:()=>vs,getLengthableOrigin:()=>Ss,getParsedType:()=>gM,getSizableOrigin:()=>Es,hexToUint8Array:()=>EM,isObject:()=>Vo,isPlainObject:()=>co,issue:()=>Hi,joinValues:()=>G,jsonStringifyReplacer:()=>Gi,merge:()=>_M,mergeDefs:()=>Nn,normalizeParams:()=>te,nullish:()=>ao,numKeys:()=>hM,objectClone:()=>lM,omit:()=>qx,optionalKeys:()=>Bh,parsedType:()=>ae,partial:()=>Hx,pick:()=>Bx,prefixIssues:()=>lr,primitiveTypes:()=>Fh,promiseAllObject:()=>fM,propertyKeyTypes:()=>Ps,randomString:()=>mM,required:()=>Zx,safeExtend:()=>Vx,shallowClone:()=>Bl,slugify:()=>Lh,stringifyPrimitive:()=>ne,uint8ArrayToBase64:()=>Kx,uint8ArrayToBase64url:()=>PM,uint8ArrayToHex:()=>SM,unwrapMessage:()=>_s});function iM(t){return t}a(iM,"assertEqual");function aM(t){return t}a(aM,"assertNotEqual");function sM(t){}a(sM,"assertIs");function cM(t){throw new Error("Unexpected value in exhaustive check")}a(cM,"assertNever");function uM(t){}a(uM,"assert");function vs(t){let e=Object.values(t).filter(o=>typeof o=="number");return Object.entries(t).filter(([o,n])=>e.indexOf(+o)===-1).map(([o,n])=>n)}a(vs,"getEnumValues");function G(t,e="|"){return t.map(r=>ne(r)).join(e)}a(G,"joinValues");function Gi(t,e){return typeof e=="bigint"?e.toString():e}a(Gi,"jsonStringifyReplacer");function Vi(t){return{get value(){{let r=t();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}a(Vi,"cached");function ao(t){return t==null}a(ao,"nullish");function bs(t){let e=t.startsWith("^")?1:0,r=t.endsWith("$")?t.length-1:t.length;return t.slice(e,r)}a(bs,"cleanRegex");function Mh(t,e){let r=(t.toString().split(".")[1]||"").length,o=e.toString(),n=(o.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(o)){let l=o.match(/\d?e-(\d?)/);l?.[1]&&(n=Number.parseInt(l[1]))}let i=r>n?r:n,s=Number.parseInt(t.toFixed(i).replace(".","")),u=Number.parseInt(e.toFixed(i).replace(".",""));return s%u/10**i}a(Mh,"floatSafeRemainder");var Fx=Symbol("evaluating");function De(t,e,r){let o;Object.defineProperty(t,e,{get(){if(o!==Fx)return o===void 0&&(o=Fx,o=r()),o},set(n){Object.defineProperty(t,e,{value:n})},configurable:!0})}a(De,"defineLazy");function lM(t){return Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t))}a(lM,"objectClone");function so(t,e,r){Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0})}a(so,"assignProp");function Nn(...t){let e={};for(let r of t){let o=Object.getOwnPropertyDescriptors(r);Object.assign(e,o)}return Object.defineProperties({},e)}a(Nn,"mergeDefs");function dM(t){return Nn(t._zod.def)}a(dM,"cloneDef");function pM(t,e){return e?e.reduce((r,o)=>r?.[o],t):t}a(pM,"getElementAtPath");function fM(t){let e=Object.keys(t),r=e.map(o=>t[o]);return Promise.all(r).then(o=>{let n={};for(let i=0;i<e.length;i++)n[e[i]]=o[i];return n})}a(fM,"promiseAllObject");function mM(t=10){let e="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<t;o++)r+=e[Math.floor(Math.random()*e.length)];return r}a(mM,"randomString");function jl(t){return JSON.stringify(t)}a(jl,"esc");function Lh(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}a(Lh,"slugify");var Fl="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function Vo(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}a(Vo,"isObject");var jh=Vi(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});function co(t){if(Vo(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!="function")return!0;let r=e.prototype;return!(Vo(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}a(co,"isPlainObject");function Bl(t){return co(t)?{...t}:Array.isArray(t)?[...t]:t}a(Bl,"shallowClone");function hM(t){let e=0;for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&e++;return e}a(hM,"numKeys");var gM=a(t=>{let e=typeof t;switch(e){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(t)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(t)?"array":t===null?"null":t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?"promise":typeof Map<"u"&&t instanceof Map?"map":typeof Set<"u"&&t instanceof Set?"set":typeof Date<"u"&&t instanceof Date?"date":typeof File<"u"&&t instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${e}`)}},"getParsedType"),Ps=new Set(["string","number","symbol"]),Fh=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Cr(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}a(Cr,"escapeRegex");function Rt(t,e,r){let o=new t._zod.constr(e??t._zod.def);return(!e||r?.parent)&&(o._zod.parent=t),o}a(Rt,"clone");function te(t){let e=t;if(!e)return{};if(typeof e=="string")return{error:a(()=>e,"error")};if(e?.message!==void 0){if(e?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:a(()=>e.error,"error")}:e}a(te,"normalizeParams");function yM(t){let e;return new Proxy({},{get(r,o,n){return e??(e=t()),Reflect.get(e,o,n)},set(r,o,n,i){return e??(e=t()),Reflect.set(e,o,n,i)},has(r,o){return e??(e=t()),Reflect.has(e,o)},deleteProperty(r,o){return e??(e=t()),Reflect.deleteProperty(e,o)},ownKeys(r){return e??(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(r,o){return e??(e=t()),Reflect.getOwnPropertyDescriptor(e,o)},defineProperty(r,o,n){return e??(e=t()),Reflect.defineProperty(e,o,n)}})}a(yM,"createTransparentProxy");function ne(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}a(ne,"stringifyPrimitive");function Bh(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}a(Bh,"optionalKeys");var qh={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]},Gh={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Bx(t,e){let r=t._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=Nn(t._zod.def,{get shape(){let s={};for(let u in e){if(!(u in r.shape))throw new Error(`Unrecognized key: "${u}"`);e[u]&&(s[u]=r.shape[u])}return so(this,"shape",s),s},checks:[]});return Rt(t,i)}a(Bx,"pick");function qx(t,e){let r=t._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=Nn(t._zod.def,{get shape(){let s={...t._zod.def.shape};for(let u in e){if(!(u in r.shape))throw new Error(`Unrecognized key: "${u}"`);e[u]&&delete s[u]}return so(this,"shape",s),s},checks:[]});return Rt(t,i)}a(qx,"omit");function Gx(t,e){if(!co(e))throw new Error("Invalid input to extend: expected a plain object");let r=t._zod.def.checks;if(r&&r.length>0){let i=t._zod.def.shape;for(let s in e)if(Object.getOwnPropertyDescriptor(i,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=Nn(t._zod.def,{get shape(){let i={...t._zod.def.shape,...e};return so(this,"shape",i),i}});return Rt(t,n)}a(Gx,"extend");function Vx(t,e){if(!co(e))throw new Error("Invalid input to safeExtend: expected a plain object");let r=Nn(t._zod.def,{get shape(){let o={...t._zod.def.shape,...e};return so(this,"shape",o),o}});return Rt(t,r)}a(Vx,"safeExtend");function _M(t,e){let r=Nn(t._zod.def,{get shape(){let o={...t._zod.def.shape,...e._zod.def.shape};return so(this,"shape",o),o},get catchall(){return e._zod.def.catchall},checks:[]});return Rt(t,r)}a(_M,"merge");function Hx(t,e,r){let n=e._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let s=Nn(e._zod.def,{get shape(){let u=e._zod.def.shape,l={...u};if(r)for(let p in r){if(!(p in u))throw new Error(`Unrecognized key: "${p}"`);r[p]&&(l[p]=t?new t({type:"optional",innerType:u[p]}):u[p])}else for(let p in u)l[p]=t?new t({type:"optional",innerType:u[p]}):u[p];return so(this,"shape",l),l},checks:[]});return Rt(e,s)}a(Hx,"partial");function Zx(t,e,r){let o=Nn(e._zod.def,{get shape(){let n=e._zod.def.shape,i={...n};if(r)for(let s in r){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(i[s]=new t({type:"nonoptional",innerType:n[s]}))}else for(let s in n)i[s]=new t({type:"nonoptional",innerType:n[s]});return so(this,"shape",i),i}});return Rt(e,o)}a(Zx,"required");function uo(t,e=0){if(t.aborted===!0)return!0;for(let r=e;r<t.issues.length;r++)if(t.issues[r]?.continue!==!0)return!0;return!1}a(uo,"aborted");function lr(t,e){return e.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(t),r})}a(lr,"prefixIssues");function _s(t){return typeof t=="string"?t:t?.message}a(_s,"unwrapMessage");function Yt(t,e,r){let o={...t,path:t.path??[]};if(!t.message){let n=_s(t.inst?._zod.def?.error?.(t))??_s(e?.error?.(t))??_s(r.customError?.(t))??_s(r.localeError?.(t))??"Invalid input";o.message=n}return delete o.inst,delete o.continue,e?.reportInput||delete o.input,o}a(Yt,"finalizeIssue");function Es(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}a(Es,"getSizableOrigin");function Ss(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}a(Ss,"getLengthableOrigin");function ae(t){let e=typeof t;switch(e){case"number":return Number.isNaN(t)?"nan":"number";case"object":{if(t===null)return"null";if(Array.isArray(t))return"array";let r=t;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return e}a(ae,"parsedType");function Hi(...t){let[e,r,o]=t;return typeof e=="string"?{message:e,code:"custom",input:r,inst:o}:{...e}}a(Hi,"issue");function vM(t){return Object.entries(t).filter(([e,r])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}a(vM,"cleanEnum");function Wx(t){let e=atob(t),r=new Uint8Array(e.length);for(let o=0;o<e.length;o++)r[o]=e.charCodeAt(o);return r}a(Wx,"base64ToUint8Array");function Kx(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}a(Kx,"uint8ArrayToBase64");function bM(t){let e=t.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-e.length%4)%4);return Wx(e+r)}a(bM,"base64urlToUint8Array");function PM(t){return Kx(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}a(PM,"uint8ArrayToBase64url");function EM(t){let e=t.replace(/^0x/,"");if(e.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(e.length/2);for(let o=0;o<e.length;o+=2)r[o/2]=Number.parseInt(e.slice(o,o+2),16);return r}a(EM,"hexToUint8Array");function SM(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}a(SM,"uint8ArrayToHex");var Uh=class{static{a(this,"Class")}constructor(...e){}};var Jx=a((t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),t.message=JSON.stringify(e,Gi,2),Object.defineProperty(t,"toString",{value:a(()=>t.message,"value"),enumerable:!1})},"initializer"),xs=w("$ZodError",Jx),Qt=w("$ZodError",Jx,{Parent:Error});function Zi(t,e=r=>r.message){let r={},o=[];for(let n of t.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(e(n))):o.push(e(n));return{formErrors:o,fieldErrors:r}}a(Zi,"flattenError");function Wi(t,e=r=>r.message){let r={_errors:[]},o=a(n=>{for(let i of n.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(s=>o({issues:s}));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)r._errors.push(e(i));else{let s=r,u=0;for(;u<i.path.length;){let l=i.path[u];u===i.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(e(i))):s[l]=s[l]||{_errors:[]},s=s[l],u++}}},"processError");return o(t),r}a(Wi,"formatError");function ql(t,e=r=>r.message){let r={errors:[]},o=a((n,i=[])=>{var s,u;for(let l of n.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(p=>o({issues:p},l.path));else if(l.code==="invalid_key")o({issues:l.issues},l.path);else if(l.code==="invalid_element")o({issues:l.issues},l.path);else{let p=[...i,...l.path];if(p.length===0){r.errors.push(e(l));continue}let f=r,y=0;for(;y<p.length;){let m=p[y],h=y===p.length-1;typeof m=="string"?(f.properties??(f.properties={}),(s=f.properties)[m]??(s[m]={errors:[]}),f=f.properties[m]):(f.items??(f.items=[]),(u=f.items)[m]??(u[m]={errors:[]}),f=f.items[m]),h&&f.errors.push(e(l)),y++}}},"processError");return o(t),r}a(ql,"treeifyError");function Xx(t){let e=[],r=t.map(o=>typeof o=="object"?o.key:o);for(let o of r)typeof o=="number"?e.push(`[${o}]`):typeof o=="symbol"?e.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?e.push(`[${JSON.stringify(o)}]`):(e.length&&e.push("."),e.push(o));return e.join("")}a(Xx,"toDotPath");function Gl(t){let e=[],r=[...t.issues].sort((o,n)=>(o.path??[]).length-(n.path??[]).length);for(let o of r)e.push(`\u2716 ${o.message}`),o.path?.length&&e.push(` \u2192 at ${Xx(o.path)}`);return e.join(`
69
- `)}a(Gl,"prettifyError");var Ki=a(t=>(e,r,o,n)=>{let i=o?Object.assign(o,{async:!1}):{async:!1},s=e._zod.run({value:r,issues:[]},i);if(s instanceof Promise)throw new Vr;if(s.issues.length){let u=new(n?.Err??t)(s.issues.map(l=>Yt(l,i,pt())));throw Fl(u,n?.callee),u}return s.value},"_parse"),Ho=Ki(Qt),Ji=a(t=>async(e,r,o,n)=>{let i=o?Object.assign(o,{async:!0}):{async:!0},s=e._zod.run({value:r,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){let u=new(n?.Err??t)(s.issues.map(l=>Yt(l,i,pt())));throw Fl(u,n?.callee),u}return s.value},"_parseAsync"),Zo=Ji(Qt),Xi=a(t=>(e,r,o)=>{let n=o?{...o,async:!1}:{async:!1},i=e._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new Vr;return i.issues.length?{success:!1,error:new(t??xs)(i.issues.map(s=>Yt(s,n,pt())))}:{success:!0,data:i.value}},"_safeParse"),Yi=Xi(Qt),Qi=a(t=>async(e,r,o)=>{let n=o?Object.assign(o,{async:!0}):{async:!0},i=e._zod.run({value:r,issues:[]},n);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new t(i.issues.map(s=>Yt(s,n,pt())))}:{success:!0,data:i.value}},"_safeParseAsync"),ea=Qi(Qt),Vl=a(t=>(e,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Ki(t)(e,r,n)},"_encode"),Yx=Vl(Qt),Hl=a(t=>(e,r,o)=>Ki(t)(e,r,o),"_decode"),Qx=Hl(Qt),Zl=a(t=>async(e,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Ji(t)(e,r,n)},"_encodeAsync"),eT=Zl(Qt),Wl=a(t=>async(e,r,o)=>Ji(t)(e,r,o),"_decodeAsync"),tT=Wl(Qt),Kl=a(t=>(e,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Xi(t)(e,r,n)},"_safeEncode"),rT=Kl(Qt),Jl=a(t=>(e,r,o)=>Xi(t)(e,r,o),"_safeDecode"),nT=Jl(Qt),Xl=a(t=>async(e,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Qi(t)(e,r,n)},"_safeEncodeAsync"),oT=Xl(Qt),Yl=a(t=>async(e,r,o)=>Qi(t)(e,r,o),"_safeDecodeAsync"),iT=Yl(Qt);var er={};Xt(er,{base64:()=>ag,base64url:()=>Ql,bigint:()=>pg,boolean:()=>mg,browserEmail:()=>kM,cidrv4:()=>og,cidrv6:()=>ig,cuid:()=>Vh,cuid2:()=>Hh,date:()=>cg,datetime:()=>lg,domain:()=>zM,duration:()=>Xh,e164:()=>sg,email:()=>Qh,emoji:()=>eg,extendedDuration:()=>TM,guid:()=>Yh,hex:()=>DM,hostname:()=>$M,html5Email:()=>CM,idnEmail:()=>OM,integer:()=>fg,ipv4:()=>tg,ipv6:()=>rg,ksuid:()=>Kh,lowercase:()=>yg,mac:()=>ng,md5_base64:()=>MM,md5_base64url:()=>LM,md5_hex:()=>UM,nanoid:()=>Jh,null:()=>hg,number:()=>ed,rfc5322Email:()=>RM,sha1_base64:()=>FM,sha1_base64url:()=>BM,sha1_hex:()=>jM,sha256_base64:()=>GM,sha256_base64url:()=>VM,sha256_hex:()=>qM,sha384_base64:()=>ZM,sha384_base64url:()=>WM,sha384_hex:()=>HM,sha512_base64:()=>JM,sha512_base64url:()=>XM,sha512_hex:()=>KM,string:()=>dg,time:()=>ug,ulid:()=>Zh,undefined:()=>gg,unicodeEmail:()=>aT,uppercase:()=>_g,uuid:()=>Wo,uuid4:()=>AM,uuid6:()=>wM,uuid7:()=>IM,xid:()=>Wh});var Vh=/^[cC][^\s-]{8,}$/,Hh=/^[0-9a-z]+$/,Zh=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Wh=/^[0-9a-vA-V]{20}$/,Kh=/^[A-Za-z0-9]{27}$/,Jh=/^[a-zA-Z0-9_-]{21}$/,Xh=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,TM=/^[-+]?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)?)??$/,Yh=/^([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})$/,Wo=a(t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,"uuid"),AM=Wo(4),wM=Wo(6),IM=Wo(7),Qh=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,CM=/^[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])?)*$/,RM=/^(([^<>()\[\]\\.,;:\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,}))$/,aT=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,OM=aT,kM=/^[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])?)*$/,NM="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function eg(){return new RegExp(NM,"u")}a(eg,"emoji");var tg=/^(?:(?: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])$/,rg=/^(([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}|:))$/,ng=a(t=>{let e=Cr(t??":");return new RegExp(`^(?:[0-9A-F]{2}${e}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${e}){5}[0-9a-f]{2}$`)},"mac"),og=/^((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])$/,ig=/^(([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])$/,ag=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ql=/^[A-Za-z0-9_-]*$/,$M=/^(?=.{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])?)*\.?$/,zM=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,sg=/^\+[1-9]\d{6,14}$/,sT="(?:(?:\\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])))",cg=new RegExp(`^${sT}$`);function cT(t){let e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}a(cT,"timeSource");function ug(t){return new RegExp(`^${cT(t)}$`)}a(ug,"time");function lg(t){let e=cT({precision:t.precision}),r=["Z"];t.local&&r.push(""),t.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${e}(?:${r.join("|")})`;return new RegExp(`^${sT}T(?:${o})$`)}a(lg,"datetime");var dg=a(t=>{let e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},"string"),pg=/^-?\d+n?$/,fg=/^-?\d+$/,ed=/^-?\d+(?:\.\d+)?$/,mg=/^(?:true|false)$/i,hg=/^null$/i;var gg=/^undefined$/i;var yg=/^[^A-Z]*$/,_g=/^[^a-z]*$/,DM=/^[0-9a-fA-F]*$/;function Ts(t,e){return new RegExp(`^[A-Za-z0-9+/]{${t}}${e}$`)}a(Ts,"fixedBase64");function As(t){return new RegExp(`^[A-Za-z0-9_-]{${t}}$`)}a(As,"fixedBase64url");var UM=/^[0-9a-fA-F]{32}$/,MM=Ts(22,"=="),LM=As(22),jM=/^[0-9a-fA-F]{40}$/,FM=Ts(27,"="),BM=As(27),qM=/^[0-9a-fA-F]{64}$/,GM=Ts(43,"="),VM=As(43),HM=/^[0-9a-fA-F]{96}$/,ZM=Ts(64,""),WM=As(64),KM=/^[0-9a-fA-F]{128}$/,JM=Ts(86,"=="),XM=As(86);var rt=w("$ZodCheck",(t,e)=>{var r;t._zod??(t._zod={}),t._zod.def=e,(r=t._zod).onattach??(r.onattach=[])}),lT={number:"number",bigint:"bigint",object:"date"},td=w("$ZodCheckLessThan",(t,e)=>{rt.init(t,e);let r=lT[typeof e.value];t._zod.onattach.push(o=>{let n=o._zod.bag,i=(e.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value<i&&(e.inclusive?n.maximum=e.value:n.exclusiveMaximum=e.value)}),t._zod.check=o=>{(e.inclusive?o.value<=e.value:o.value<e.value)||o.issues.push({origin:r,code:"too_big",maximum:typeof e.value=="object"?e.value.getTime():e.value,input:o.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),rd=w("$ZodCheckGreaterThan",(t,e)=>{rt.init(t,e);let r=lT[typeof e.value];t._zod.onattach.push(o=>{let n=o._zod.bag,i=(e.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>i&&(e.inclusive?n.minimum=e.value:n.exclusiveMinimum=e.value)}),t._zod.check=o=>{(e.inclusive?o.value>=e.value:o.value>e.value)||o.issues.push({origin:r,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:o.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),vg=w("$ZodCheckMultipleOf",(t,e)=>{rt.init(t,e),t._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.multipleOf=e.value)}),t._zod.check=r=>{if(typeof r.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%e.value===BigInt(0):Mh(r.value,e.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:e.value,input:r.value,inst:t,continue:!e.abort})}}),bg=w("$ZodCheckNumberFormat",(t,e)=>{rt.init(t,e),e.format=e.format||"float64";let r=e.format?.includes("int"),o=r?"int":"number",[n,i]=qh[e.format];t._zod.onattach.push(s=>{let u=s._zod.bag;u.format=e.format,u.minimum=n,u.maximum=i,r&&(u.pattern=fg)}),t._zod.check=s=>{let u=s.value;if(r){if(!Number.isInteger(u)){s.issues.push({expected:o,format:e.format,code:"invalid_type",continue:!1,input:u,inst:t});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:t,origin:o,inclusive:!0,continue:!e.abort}):s.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:o,inclusive:!0,continue:!e.abort});return}}u<n&&s.issues.push({origin:"number",input:u,code:"too_small",minimum:n,inclusive:!0,inst:t,continue:!e.abort}),u>i&&s.issues.push({origin:"number",input:u,code:"too_big",maximum:i,inclusive:!0,inst:t,continue:!e.abort})}}),Pg=w("$ZodCheckBigIntFormat",(t,e)=>{rt.init(t,e);let[r,o]=Gh[e.format];t._zod.onattach.push(n=>{let i=n._zod.bag;i.format=e.format,i.minimum=r,i.maximum=o}),t._zod.check=n=>{let i=n.value;i<r&&n.issues.push({origin:"bigint",input:i,code:"too_small",minimum:r,inclusive:!0,inst:t,continue:!e.abort}),i>o&&n.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:t,continue:!e.abort})}}),Eg=w("$ZodCheckMaxSize",(t,e)=>{var r;rt.init(t,e),(r=t._zod.def).when??(r.when=o=>{let n=o.value;return!ao(n)&&n.size!==void 0}),t._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<n&&(o._zod.bag.maximum=e.maximum)}),t._zod.check=o=>{let n=o.value;n.size<=e.maximum||o.issues.push({origin:Es(n),code:"too_big",maximum:e.maximum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),Sg=w("$ZodCheckMinSize",(t,e)=>{var r;rt.init(t,e),(r=t._zod.def).when??(r.when=o=>{let n=o.value;return!ao(n)&&n.size!==void 0}),t._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>n&&(o._zod.bag.minimum=e.minimum)}),t._zod.check=o=>{let n=o.value;n.size>=e.minimum||o.issues.push({origin:Es(n),code:"too_small",minimum:e.minimum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),xg=w("$ZodCheckSizeEquals",(t,e)=>{var r;rt.init(t,e),(r=t._zod.def).when??(r.when=o=>{let n=o.value;return!ao(n)&&n.size!==void 0}),t._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=e.size,n.maximum=e.size,n.size=e.size}),t._zod.check=o=>{let n=o.value,i=n.size;if(i===e.size)return;let s=i>e.size;o.issues.push({origin:Es(n),...s?{code:"too_big",maximum:e.size}:{code:"too_small",minimum:e.size},inclusive:!0,exact:!0,input:o.value,inst:t,continue:!e.abort})}}),Tg=w("$ZodCheckMaxLength",(t,e)=>{var r;rt.init(t,e),(r=t._zod.def).when??(r.when=o=>{let n=o.value;return!ao(n)&&n.length!==void 0}),t._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<n&&(o._zod.bag.maximum=e.maximum)}),t._zod.check=o=>{let n=o.value;if(n.length<=e.maximum)return;let s=Ss(n);o.issues.push({origin:s,code:"too_big",maximum:e.maximum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),Ag=w("$ZodCheckMinLength",(t,e)=>{var r;rt.init(t,e),(r=t._zod.def).when??(r.when=o=>{let n=o.value;return!ao(n)&&n.length!==void 0}),t._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>n&&(o._zod.bag.minimum=e.minimum)}),t._zod.check=o=>{let n=o.value;if(n.length>=e.minimum)return;let s=Ss(n);o.issues.push({origin:s,code:"too_small",minimum:e.minimum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),wg=w("$ZodCheckLengthEquals",(t,e)=>{var r;rt.init(t,e),(r=t._zod.def).when??(r.when=o=>{let n=o.value;return!ao(n)&&n.length!==void 0}),t._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=e.length,n.maximum=e.length,n.length=e.length}),t._zod.check=o=>{let n=o.value,i=n.length;if(i===e.length)return;let s=Ss(n),u=i>e.length;o.issues.push({origin:s,...u?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:o.value,inst:t,continue:!e.abort})}}),ta=w("$ZodCheckStringFormat",(t,e)=>{var r,o;rt.init(t,e),t._zod.onattach.push(n=>{let i=n._zod.bag;i.format=e.format,e.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(e.pattern))}),e.pattern?(r=t._zod).check??(r.check=n=>{e.pattern.lastIndex=0,!e.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:e.format,input:n.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:t,continue:!e.abort})}):(o=t._zod).check??(o.check=()=>{})}),Ig=w("$ZodCheckRegex",(t,e)=>{ta.init(t,e),t._zod.check=r=>{e.pattern.lastIndex=0,!e.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),Cg=w("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=yg),ta.init(t,e)}),Rg=w("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=_g),ta.init(t,e)}),Og=w("$ZodCheckIncludes",(t,e)=>{rt.init(t,e);let r=Cr(e.includes),o=new RegExp(typeof e.position=="number"?`^.{${e.position}}${r}`:r);e.pattern=o,t._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),t._zod.check=n=>{n.value.includes(e.includes,e.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:n.value,inst:t,continue:!e.abort})}}),kg=w("$ZodCheckStartsWith",(t,e)=>{rt.init(t,e);let r=new RegExp(`^${Cr(e.prefix)}.*`);e.pattern??(e.pattern=r),t._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),t._zod.check=o=>{o.value.startsWith(e.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:o.value,inst:t,continue:!e.abort})}}),Ng=w("$ZodCheckEndsWith",(t,e)=>{rt.init(t,e);let r=new RegExp(`.*${Cr(e.suffix)}$`);e.pattern??(e.pattern=r),t._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),t._zod.check=o=>{o.value.endsWith(e.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:o.value,inst:t,continue:!e.abort})}});function uT(t,e,r){t.issues.length&&e.issues.push(...lr(r,t.issues))}a(uT,"handleCheckPropertyResult");var $g=w("$ZodCheckProperty",(t,e)=>{rt.init(t,e),t._zod.check=r=>{let o=e.schema._zod.run({value:r.value[e.property],issues:[]},{});if(o instanceof Promise)return o.then(n=>uT(n,r,e.property));uT(o,r,e.property)}}),zg=w("$ZodCheckMimeType",(t,e)=>{rt.init(t,e);let r=new Set(e.mime);t._zod.onattach.push(o=>{o._zod.bag.mime=e.mime}),t._zod.check=o=>{r.has(o.value.type)||o.issues.push({code:"invalid_value",values:e.mime,input:o.value.type,inst:t,continue:!e.abort})}}),Dg=w("$ZodCheckOverwrite",(t,e)=>{rt.init(t,e),t._zod.check=r=>{r.value=e.tx(r.value)}});var ws=class{static{a(this,"Doc")}constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let o=e.split(`
68
+ `)}S+=P,e.data=S}if(a(f,"browserMultipartUpload"),t.mediaUrl&&o.body)if(e.url=t.mediaUrl,n){r.uploadType="multipart";let h=[{"content-type":"application/json",body:JSON.stringify(n)},{"content-type":o.mimeType||n&&n.mimeType||s,body:o.body}];(0,CS.isBrowser)()?f(h):p(h)}else r.uploadType="media",Object.assign(u,{"content-type":o.mimeType||s}),e.data=o.body;else e.data=n||void 0;if(e.headers=wS.Gaxios.mergeHeaders(e.headers||{},u),e.params=r,!(0,CS.isBrowser)()){e.headers.set("Accept-Encoding","gzip"),e.userAgentDirectives.push({product:"google-api-nodejs-client",version:eD.version,comment:"gzip"});let h=e.userAgentDirectives.map(_=>{let P=`${_.product}/${_.version}`;return _.comment&&(P+=` (${_.comment})`),P}).join(" ");e.headers.set("User-Agent",h)}if(e.validateStatus||(e.validateStatus=h=>h>=200&&h<300||h===304),e.retry=e.retry===void 0?!0:e.retry,delete e.auth,e.universeDomain&&e.universe_domain&&e.universeDomain!==e.universe_domain)throw new Error("Please set either universe_domain or universeDomain, but not both.");let y=typeof process=="object"&&typeof process.env=="object"?process.env.GOOGLE_CLOUD_UNIVERSE_DOMAIN:void 0,m=e.universeDomain??e.universe_domain??y??"googleapis.com";if(m!=="googleapis.com"&&e.url){let h=new URL(e.url);h.hostname.endsWith(".googleapis.com")&&(h.hostname=h.hostname.replace(/googleapis\.com$/,m),e.url=h.toString())}if(Object.keys(e.params).length||(delete e.params,delete e.paramsSerializer),i&&typeof i=="object"){let h=typeof i.getUniverseDomain=="function"?await i.getUniverseDomain():void 0;if(h&&m!==h)throw new Error(`The configured universe domain (${m}) does not match the universe domain found in the credentials (${h}). If you haven't configured the universe domain explicitly, googleapis.com is the default.`);if(e.http2){let _=await i.getRequestHeaders(e.url),P=Object.assign({},e);return P.headers=wS.Gaxios.mergeHeaders(P.headers,_),ZW.request(P)}else{let _=await i.request(e);return(0,IS.marshallGaxiosResponse)(_)}}else return new wS.Gaxios().request(e).then(h=>(0,IS.marshallGaxiosResponse)(h))}a(Yz,"createAPIRequestAsync");var RS=class extends Qz.Transform{static{a(this,"ProgressStream")}bytesRead=0;_transform(e,r,o){this.bytesRead+=e.length,this.emit("progress",this.bytesRead),this.push(e),o()}};function XW(t,e){(0,CS.isBrowser)()||(t["x-goog-api-client"]=`gdcl/${eD.version} gl-node/${process.versions.node}`),e&&(t["x-goog-api-version"]=e)}a(XW,"populateAPIHeader")});var tD=z(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});nh.AuthPlus=void 0;var Kn=tl(),kS=class extends Kn.GoogleAuth{static{a(this,"AuthPlus")}JWT=Kn.JWT;Compute=Kn.Compute;OAuth2=Kn.OAuth2Client;GoogleAuth=Kn.GoogleAuth;AwsClient=Kn.AwsClient;IdentityPoolClient=Kn.IdentityPoolClient;ExternalAccountClient=Kn.ExternalAccountClient;_cachedAuth;async getClient(e){return this._cachedAuth=new Kn.GoogleAuth(e),this._cachedAuth.getClient()}getProjectId(e){return e?this._cachedAuth?this._cachedAuth.getProjectId(e):super.getProjectId(e):this._cachedAuth?this._cachedAuth.getProjectId():super.getProjectId()}};nh.AuthPlus=kS});var $S=z(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});oh.Endpoint=void 0;var rD=rh(),NS=class{static{a(this,"Endpoint")}_options;google;constructor(e){this._options=e||{}}applySchema(e,r,o,n){if(this.applyMethodsFromSchema(e,r,o,n),o.resources){for(let i in o.resources)if(Object.prototype.hasOwnProperty.call(o.resources,i)){let s=o.resources[i];e[i]||(e[i]={}),this.applySchema(e[i],r,s,n)}}}applyMethodsFromSchema(e,r,o,n){if(o.methods){for(let i in o.methods)if(Object.prototype.hasOwnProperty.call(o.methods,i)){let s=o.methods[i];e[i]=this.makeMethod(r,s,n)}}}makeMethod(e,r,o){return(n,i)=>{let s=typeof n=="function"?{}:n;i=typeof n=="function"?n:i;let u=nD(e.rootUrl+e.servicePath+r.path),l={options:{url:u.substring(1,u.length-1),method:r.httpMethod,apiVersion:r.apiVersion},params:s,requiredParams:r.parameterOrder||[],pathParams:this.getPathParams(r.parameters),context:o};if(r.mediaUpload&&r.mediaUpload.protocols&&r.mediaUpload.protocols.simple&&r.mediaUpload.protocols.simple.path){let p=nD(e.rootUrl+r.mediaUpload.protocols.simple.path);l.mediaUrl=p.substring(1,p.length-1)}if(!i)return(0,rD.createAPIRequest)(l);(0,rD.createAPIRequest)(l,i)}}getPathParams(e){let r=new Array;return typeof e!="object"&&(e={}),Object.keys(e).forEach(o=>{e[o].location==="path"&&r.push(o)}),r}};oh.Endpoint=NS;function nD(t){return t?`'${t}'`.replace(/([^:]\/)\/+/g,"$1"):""}a(nD,"buildurl")});var iD=z(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});ih.Discovery=void 0;var YW=require("fs"),QW=bt(),e3=require("url"),oD=require("util"),t3=rh(),r3=$S(),n3=oD.promisify(YW.readFile),zS=class{static{a(this,"Discovery")}transporter=new QW.Gaxios;options;constructor(e){this.options=e||{}}makeEndpoint(e){return r=>{let o=new r3.Endpoint(r);return o.applySchema(o,e,e,o),o}}log(...e){this.options&&this.options.debug&&console.log(...e)}async discoverAllAPIs(e){let r=new Headers(this.options.includePrivate?{}:{"X-User-Ip":"0.0.0.0"}),n=(await this.transporter.request({url:e,headers:r})).data.items,i=await Promise.all(n.map(async l=>{let p=await this.discoverAPI(l.discoveryRestUrl);return{api:l,endpointCreator:p}})),s={},u={};for(let l of i)u[l.api.name]||(s[l.api.name]={},u[l.api.name]=p=>{let f=typeof p,y;if(f==="string")y=p,p={};else if(f==="object")y=p.version,delete p.version;else throw new Error("Argument error: Accepts only string or object");try{let m=l.endpointCreator(p,this);return Object.freeze(m)}catch(m){throw new Error(oD.format('Unable to load endpoint %s("%s"): %s',l.api.name,y,m.message))}}),s[l.api.name][l.api.version]=l.endpointCreator;return u}async discoverAPI(e){if(typeof e=="string"){let r=e3.parse(e);if(e&&!r.protocol){this.log("Reading from file "+e);let o=await n3(e,{encoding:"utf8"});return this.makeEndpoint(JSON.parse(o))}else{this.log("Requesting "+e);let o=await this.transporter.request({url:e});return this.makeEndpoint(o.data)}}else{let r=e;this.log("Requesting "+r.url);let o=r.url;delete r.url;let n={options:{url:o,method:"GET"},requiredParams:[],pathParams:[],params:r,context:{google:{_options:{}},_options:{}}},i=await(0,t3.createAPIRequest)(n);return this.makeEndpoint(i.data)}}};ih.Discovery=zS});var ah=z($e=>{"use strict";var o3=$e&&$e.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),i3=$e&&$e.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&o3(e,t,r)};Object.defineProperty($e,"__esModule",{value:!0});$e.Endpoint=$e.Discovery=$e.AuthPlus=$e.createAPIRequest=$e.getAPI=$e.GaxiosError=$e.Gaxios=$e.AwsClient=$e.IdentityPoolClient=$e.BaseExternalAccountClient=$e.ExternalAccountClient=$e.GoogleAuth=$e.UserRefreshClient=$e.Compute=$e.JWT=$e.OAuth2Client=$e.gaxios=$e.googleAuthLibrary=void 0;$e.googleAuthLibrary=tl();$e.gaxios=bt();var Jn=tl();Object.defineProperty($e,"OAuth2Client",{enumerable:!0,get:a(function(){return Jn.OAuth2Client},"get")});Object.defineProperty($e,"JWT",{enumerable:!0,get:a(function(){return Jn.JWT},"get")});Object.defineProperty($e,"Compute",{enumerable:!0,get:a(function(){return Jn.Compute},"get")});Object.defineProperty($e,"UserRefreshClient",{enumerable:!0,get:a(function(){return Jn.UserRefreshClient},"get")});Object.defineProperty($e,"GoogleAuth",{enumerable:!0,get:a(function(){return Jn.GoogleAuth},"get")});Object.defineProperty($e,"ExternalAccountClient",{enumerable:!0,get:a(function(){return Jn.ExternalAccountClient},"get")});Object.defineProperty($e,"BaseExternalAccountClient",{enumerable:!0,get:a(function(){return Jn.BaseExternalAccountClient},"get")});Object.defineProperty($e,"IdentityPoolClient",{enumerable:!0,get:a(function(){return Jn.IdentityPoolClient},"get")});Object.defineProperty($e,"AwsClient",{enumerable:!0,get:a(function(){return Jn.AwsClient},"get")});var aD=bt();Object.defineProperty($e,"Gaxios",{enumerable:!0,get:a(function(){return aD.Gaxios},"get")});Object.defineProperty($e,"GaxiosError",{enumerable:!0,get:a(function(){return aD.GaxiosError},"get")});var a3=J$();Object.defineProperty($e,"getAPI",{enumerable:!0,get:a(function(){return a3.getAPI},"get")});var s3=rh();Object.defineProperty($e,"createAPIRequest",{enumerable:!0,get:a(function(){return s3.createAPIRequest},"get")});var c3=tD();Object.defineProperty($e,"AuthPlus",{enumerable:!0,get:a(function(){return c3.AuthPlus},"get")});var u3=iD();Object.defineProperty($e,"Discovery",{enumerable:!0,get:a(function(){return u3.Discovery},"get")});var l3=$S();Object.defineProperty($e,"Endpoint",{enumerable:!0,get:a(function(){return l3.Endpoint},"get")});i3(th(),$e)});var cD=z(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});sh.people_v1=void 0;var we=ah(),sD;(function(t){class e{static{a(this,"People")}context;contactGroups;otherContacts;people;constructor(l,p){this.context={_options:l||{},google:p},this.contactGroups=new r(this.context),this.otherContacts=new n(this.context),this.people=new i(this.context)}}t.People=e;class r{static{a(this,"Resource$Contactgroups")}context;members;constructor(l){this.context=l,this.members=new o(this.context)}batchGet(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/contactGroups:batchGet").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}create(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/contactGroups").replace(/([^:]\/)\/+/g,"$1"),method:"POST",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}delete(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}get(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}list(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/contactGroups").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}update(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}}t.Resource$Contactgroups=r;class o{static{a(this,"Resource$Contactgroups$Members")}context;constructor(l){this.context=l}modify(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}/members:modify").replace(/([^:]\/)\/+/g,"$1"),method:"POST",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}}t.Resource$Contactgroups$Members=o;class n{static{a(this,"Resource$Othercontacts")}context;constructor(l){this.context=l}copyOtherContactToMyContactsGroup(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}:copyOtherContactToMyContactsGroup").replace(/([^:]\/)\/+/g,"$1"),method:"POST",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}list(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/otherContacts").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}search(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/otherContacts:search").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}}t.Resource$Othercontacts=n;class i{static{a(this,"Resource$People")}context;connections;constructor(l){this.context=l,this.connections=new s(this.context)}batchCreateContacts(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:batchCreateContacts").replace(/([^:]\/)\/+/g,"$1"),method:"POST",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}batchDeleteContacts(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:batchDeleteContacts").replace(/([^:]\/)\/+/g,"$1"),method:"POST",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}batchUpdateContacts(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:batchUpdateContacts").replace(/([^:]\/)\/+/g,"$1"),method:"POST",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}createContact(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:createContact").replace(/([^:]\/)\/+/g,"$1"),method:"POST",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}deleteContact(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}:deleteContact").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}deleteContactPhoto(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}:deleteContactPhoto").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}get(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}getBatchGet(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:batchGet").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}listDirectoryPeople(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:listDirectoryPeople").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}searchContacts(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:searchContacts").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}searchDirectoryPeople(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:searchDirectoryPeople").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}updateContact(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}:updateContact").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}updateContactPhoto(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}:updateContactPhoto").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}}t.Resource$People=i;class s{static{a(this,"Resource$People$Connections")}context;constructor(l){this.context=l}list(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}/connections").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}}t.Resource$People$Connections=s})(sD||(sh.people_v1=sD={}))});var dD=z(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.AuthPlus=Fr.people_v1=Fr.auth=Fr.VERSIONS=void 0;Fr.people=d3;var uD=ah(),lD=cD();Object.defineProperty(Fr,"people_v1",{enumerable:!0,get:a(function(){return lD.people_v1},"get")});Fr.VERSIONS={v1:lD.people_v1.People};function d3(t){return(0,uD.getAPI)("people",t,Fr.VERSIONS,this)}a(d3,"people");var p3=new uD.AuthPlus;Fr.auth=p3;var f3=ah();Object.defineProperty(Fr,"AuthPlus",{enumerable:!0,get:a(function(){return f3.AuthPlus},"get")})});var pD=z((DS,US)=>{(function(t,e){typeof DS=="object"&&typeof US<"u"?US.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(DS,(function(){"use strict";var t=1e3,e=6e4,r=36e5,o="millisecond",n="second",i="minute",s="hour",u="day",l="week",p="month",f="quarter",y="year",m="date",h="Invalid Date",_=/^(\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,S={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(le){var W=["th","st","nd","rd"],Z=le%100;return"["+le+(W[(Z-20)%10]||W[Z]||W[0])+"]"},"ordinal")},T=a(function(le,W,Z){var oe=String(le);return!oe||oe.length>=W?le:""+Array(W+1-oe.length).join(Z)+le},"m"),k={s:T,z:a(function(le){var W=-le.utcOffset(),Z=Math.abs(W),oe=Math.floor(Z/60),Q=Z%60;return(W<=0?"+":"-")+T(oe,2,"0")+":"+T(Q,2,"0")},"z"),m:a(function le(W,Z){if(W.date()<Z.date())return-le(Z,W);var oe=12*(Z.year()-W.year())+(Z.month()-W.month()),Q=W.clone().add(oe,p),de=Z-Q<0,me=W.clone().add(oe+(de?-1:1),p);return+(-(oe+(Z-Q)/(de?Q-me:me-Q))||0)},"t"),a:a(function(le){return le<0?Math.ceil(le)||0:Math.floor(le)},"a"),p:a(function(le){return{M:p,y,w:l,d:u,D:m,h:s,m:i,s:n,ms:o,Q:f}[le]||String(le||"").toLowerCase().replace(/s$/,"")},"p"),u:a(function(le){return le===void 0},"u")},L="en",Y={};Y[L]=S;var H=a(function(le){return le instanceof ee},"p"),X=a(function le(W,Z,oe){var Q;if(!W)return L;if(typeof W=="string"){var de=W.toLowerCase();Y[de]&&(Q=de),Z&&(Y[de]=Z,Q=de);var me=W.split("-");if(!Q&&me.length>1)return le(me[0])}else{var ze=W.name;Y[ze]=W,Q=ze}return!oe&&Q&&(L=Q),Q||!oe&&L},"t"),re=a(function(le,W){if(H(le))return le.clone();var Z=typeof W=="object"?W:{};return Z.date=le,Z.args=arguments,new ee(Z)},"w"),ce=k;ce.l=X,ce.i=H,ce.w=function(le,W){return re(le,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})};var ee=(function(){function le(Z){this.$L=X(Z.locale,null,!0),this.parse(Z)}a(le,"M");var W=le.prototype;return W.parse=function(Z){this.$d=(function(oe){var Q=oe.date,de=oe.utc;if(Q===null)return new Date(NaN);if(ce.u(Q))return new Date;if(Q instanceof Date)return new Date(Q);if(typeof Q=="string"&&!/Z$/i.test(Q)){var me=Q.match(_);if(me){var ze=me[2]-1||0,je=(me[7]||"0").substring(0,3);return de?new Date(Date.UTC(me[1],ze,me[3]||1,me[4]||0,me[5]||0,me[6]||0,je)):new Date(me[1],ze,me[3]||1,me[4]||0,me[5]||0,me[6]||0,je)}}return new Date(Q)})(Z),this.$x=Z.x||{},this.init()},W.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()},W.$utils=function(){return ce},W.isValid=function(){return this.$d.toString()!==h},W.isSame=function(Z,oe){var Q=re(Z);return this.startOf(oe)<=Q&&Q<=this.endOf(oe)},W.isAfter=function(Z,oe){return re(Z)<this.startOf(oe)},W.isBefore=function(Z,oe){return this.endOf(oe)<re(Z)},W.$g=function(Z,oe,Q){return ce.u(Z)?this[oe]:this.set(Q,Z)},W.unix=function(){return Math.floor(this.valueOf()/1e3)},W.valueOf=function(){return this.$d.getTime()},W.startOf=function(Z,oe){var Q=this,de=!!ce.u(oe)||oe,me=ce.p(Z),ze=a(function(sr,Je){var et=ce.w(Q.$u?Date.UTC(Q.$y,Je,sr):new Date(Q.$y,Je,sr),Q);return de?et:et.endOf(u)},"l"),je=a(function(sr,Je){return ce.w(Q.toDate()[sr].apply(Q.toDate("s"),(de?[0,0,0,0]:[23,59,59,999]).slice(Je)),Q)},"$"),Qe=this.$W,it=this.$M,It=this.$D,se="set"+(this.$u?"UTC":"");switch(me){case y:return de?ze(1,0):ze(31,11);case p:return de?ze(1,it):ze(0,it+1);case l:var gt=this.$locale().weekStart||0,_t=(Qe<gt?Qe+7:Qe)-gt;return ze(de?It-_t:It+(6-_t),it);case u:case m:return je(se+"Hours",0);case s:return je(se+"Minutes",1);case i:return je(se+"Seconds",2);case n:return je(se+"Milliseconds",3);default:return this.clone()}},W.endOf=function(Z){return this.startOf(Z,!1)},W.$set=function(Z,oe){var Q,de=ce.p(Z),me="set"+(this.$u?"UTC":""),ze=(Q={},Q[u]=me+"Date",Q[m]=me+"Date",Q[p]=me+"Month",Q[y]=me+"FullYear",Q[s]=me+"Hours",Q[i]=me+"Minutes",Q[n]=me+"Seconds",Q[o]=me+"Milliseconds",Q)[de],je=de===u?this.$D+(oe-this.$W):oe;if(de===p||de===y){var Qe=this.clone().set(m,1);Qe.$d[ze](je),Qe.init(),this.$d=Qe.set(m,Math.min(this.$D,Qe.daysInMonth())).$d}else ze&&this.$d[ze](je);return this.init(),this},W.set=function(Z,oe){return this.clone().$set(Z,oe)},W.get=function(Z){return this[ce.p(Z)]()},W.add=function(Z,oe){var Q,de=this;Z=Number(Z);var me=ce.p(oe),ze=a(function(it){var It=re(de);return ce.w(It.date(It.date()+Math.round(it*Z)),de)},"y");if(me===p)return this.set(p,this.$M+Z);if(me===y)return this.set(y,this.$y+Z);if(me===u)return ze(1);if(me===l)return ze(7);var je=(Q={},Q[i]=e,Q[s]=r,Q[n]=t,Q)[me]||1,Qe=this.$d.getTime()+Z*je;return ce.w(Qe,this)},W.subtract=function(Z,oe){return this.add(-1*Z,oe)},W.format=function(Z){var oe=this,Q=this.$locale();if(!this.isValid())return Q.invalidDate||h;var de=Z||"YYYY-MM-DDTHH:mm:ssZ",me=ce.z(this),ze=this.$H,je=this.$m,Qe=this.$M,it=Q.weekdays,It=Q.months,se=Q.meridiem,gt=a(function(Je,et,b,x){return Je&&(Je[et]||Je(oe,de))||b[et].slice(0,x)},"h"),_t=a(function(Je){return ce.s(ze%12||12,Je,"0")},"d"),sr=se||function(Je,et,b){var x=Je<12?"AM":"PM";return b?x.toLowerCase():x};return de.replace(P,(function(Je,et){return et||(function(b){switch(b){case"YY":return String(oe.$y).slice(-2);case"YYYY":return ce.s(oe.$y,4,"0");case"M":return Qe+1;case"MM":return ce.s(Qe+1,2,"0");case"MMM":return gt(Q.monthsShort,Qe,It,3);case"MMMM":return gt(It,Qe);case"D":return oe.$D;case"DD":return ce.s(oe.$D,2,"0");case"d":return String(oe.$W);case"dd":return gt(Q.weekdaysMin,oe.$W,it,2);case"ddd":return gt(Q.weekdaysShort,oe.$W,it,3);case"dddd":return it[oe.$W];case"H":return String(ze);case"HH":return ce.s(ze,2,"0");case"h":return _t(1);case"hh":return _t(2);case"a":return sr(ze,je,!0);case"A":return sr(ze,je,!1);case"m":return String(je);case"mm":return ce.s(je,2,"0");case"s":return String(oe.$s);case"ss":return ce.s(oe.$s,2,"0");case"SSS":return ce.s(oe.$ms,3,"0");case"Z":return me}return null})(Je)||me.replace(":","")}))},W.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},W.diff=function(Z,oe,Q){var de,me=this,ze=ce.p(oe),je=re(Z),Qe=(je.utcOffset()-this.utcOffset())*e,it=this-je,It=a(function(){return ce.m(me,je)},"D");switch(ze){case y:de=It()/12;break;case p:de=It();break;case f:de=It()/3;break;case l:de=(it-Qe)/6048e5;break;case u:de=(it-Qe)/864e5;break;case s:de=it/r;break;case i:de=it/e;break;case n:de=it/t;break;default:de=it}return Q?de:ce.a(de)},W.daysInMonth=function(){return this.endOf(p).$D},W.$locale=function(){return Y[this.$L]},W.locale=function(Z,oe){if(!Z)return this.$L;var Q=this.clone(),de=X(Z,oe,!0);return de&&(Q.$L=de),Q},W.clone=function(){return ce.w(this.$d,this)},W.toDate=function(){return new Date(this.valueOf())},W.toJSON=function(){return this.isValid()?this.toISOString():null},W.toISOString=function(){return this.$d.toISOString()},W.toString=function(){return this.$d.toUTCString()},le})(),Le=ee.prototype;return re.prototype=Le,[["$ms",o],["$s",n],["$m",i],["$H",s],["$W",u],["$M",p],["$y",y],["$D",m]].forEach((function(le){Le[le[1]]=function(W){return this.$g(W,le[0],le[1])}})),re.extend=function(le,W){return le.$i||(le(W,ee,re),le.$i=!0),re},re.locale=X,re.isDayjs=H,re.unix=function(le){return re(1e3*le)},re.en=Y[L],re.Ls=Y,re.p={},re}))});var h3={};Xt(h3,{googleContacts:()=>m3});module.exports=nM(h3);var dr={};Xt(dr,{$ZodAny:()=>$s,$ZodArray:()=>Ms,$ZodAsyncError:()=>Vr,$ZodBase64:()=>Sd,$ZodBase64URL:()=>xd,$ZodBigInt:()=>na,$ZodBigIntFormat:()=>Id,$ZodBoolean:()=>Ko,$ZodCIDRv4:()=>Ed,$ZodCIDRv6:()=>Pd,$ZodCUID:()=>fd,$ZodCUID2:()=>md,$ZodCatch:()=>Gd,$ZodCheck:()=>rt,$ZodCheckBigIntFormat:()=>Eg,$ZodCheckEndsWith:()=>Ng,$ZodCheckGreaterThan:()=>rd,$ZodCheckIncludes:()=>Og,$ZodCheckLengthEquals:()=>wg,$ZodCheckLessThan:()=>td,$ZodCheckLowerCase:()=>Cg,$ZodCheckMaxLength:()=>Tg,$ZodCheckMaxSize:()=>Pg,$ZodCheckMimeType:()=>zg,$ZodCheckMinLength:()=>Ag,$ZodCheckMinSize:()=>Sg,$ZodCheckMultipleOf:()=>vg,$ZodCheckNumberFormat:()=>bg,$ZodCheckOverwrite:()=>Dg,$ZodCheckProperty:()=>$g,$ZodCheckRegex:()=>Ig,$ZodCheckSizeEquals:()=>xg,$ZodCheckStartsWith:()=>kg,$ZodCheckStringFormat:()=>ta,$ZodCheckUpperCase:()=>Rg,$ZodCodec:()=>ia,$ZodCustom:()=>Zs,$ZodCustomStringFormat:()=>wd,$ZodDate:()=>Us,$ZodDefault:()=>jd,$ZodDiscriminatedUnion:()=>Ls,$ZodE164:()=>Td,$ZodEmail:()=>ld,$ZodEmoji:()=>dd,$ZodEncodeError:()=>io,$ZodEnum:()=>Bs,$ZodError:()=>xs,$ZodExactOptional:()=>Ld,$ZodFile:()=>Md,$ZodFunction:()=>Wd,$ZodGUID:()=>cd,$ZodIPv4:()=>_d,$ZodIPv6:()=>vd,$ZodISODate:()=>Rs,$ZodISODateTime:()=>Cs,$ZodISODuration:()=>ks,$ZodISOTime:()=>Os,$ZodIntersection:()=>zd,$ZodJWT:()=>Ad,$ZodKSUID:()=>yd,$ZodLazy:()=>Jd,$ZodLiteral:()=>qs,$ZodMAC:()=>bd,$ZodMap:()=>Dd,$ZodNaN:()=>Vd,$ZodNanoID:()=>pd,$ZodNever:()=>kd,$ZodNonOptional:()=>Bd,$ZodNull:()=>Od,$ZodNullable:()=>Vs,$ZodNumber:()=>ra,$ZodNumberFormat:()=>Ns,$ZodObject:()=>Nd,$ZodObjectJIT:()=>jg,$ZodOptional:()=>oa,$ZodPipe:()=>Hs,$ZodPrefault:()=>Fd,$ZodPromise:()=>Kd,$ZodReadonly:()=>Hd,$ZodRealError:()=>Qt,$ZodRecord:()=>Fs,$ZodRegistry:()=>Xd,$ZodSet:()=>Ud,$ZodString:()=>$n,$ZodStringFormat:()=>Xe,$ZodSuccess:()=>qd,$ZodSymbol:()=>Cd,$ZodTemplateLiteral:()=>Zd,$ZodTransform:()=>Gs,$ZodTuple:()=>js,$ZodType:()=>Te,$ZodULID:()=>hd,$ZodURL:()=>Is,$ZodUUID:()=>ud,$ZodUndefined:()=>Rd,$ZodUnion:()=>Jo,$ZodUnknown:()=>zs,$ZodVoid:()=>Ds,$ZodXID:()=>gd,$ZodXor:()=>$d,$brand:()=>ys,$constructor:()=>w,$input:()=>Qd,$output:()=>Yd,Doc:()=>ws,JSONSchema:()=>NT,JSONSchemaGenerator:()=>Sp,NEVER:()=>Ll,TimePrecision:()=>tp,_any:()=>Oc,_array:()=>Ny,_base64:()=>yc,_base64url:()=>_c,_bigint:()=>ap,_boolean:()=>Ic,_catch:()=>uL,_check:()=>kT,_cidrv4:()=>hc,_cidrv6:()=>gc,_coercedBigint:()=>Rc,_coercedBoolean:()=>Cc,_coercedDate:()=>$c,_coercedNumber:()=>Ac,_coercedString:()=>ec,_cuid:()=>cc,_cuid2:()=>uc,_custom:()=>jc,_date:()=>fp,_decode:()=>Hl,_decodeAsync:()=>Wl,_default:()=>aL,_discriminatedUnion:()=>W1,_e164:()=>vc,_email:()=>tc,_emoji:()=>ac,_encode:()=>Vl,_encodeAsync:()=>Zl,_endsWith:()=>ri,_enum:()=>eL,_file:()=>hp,_float32:()=>rp,_float64:()=>np,_gt:()=>Zr,_gte:()=>At,_guid:()=>ca,_includes:()=>ei,_int:()=>wc,_int32:()=>op,_int64:()=>sp,_intersection:()=>K1,_ipv4:()=>fc,_ipv6:()=>mc,_isoDate:()=>Pc,_isoDateTime:()=>Ec,_isoDuration:()=>xc,_isoTime:()=>Sc,_jwt:()=>bc,_ksuid:()=>pc,_lazy:()=>fL,_length:()=>fo,_literal:()=>rL,_lowercase:()=>Yo,_lt:()=>Hr,_lte:()=>Vt,_mac:()=>ep,_map:()=>Y1,_max:()=>Vt,_maxLength:()=>po,_maxSize:()=>Dn,_mime:()=>ni,_min:()=>At,_minLength:()=>vt,_minSize:()=>Wr,_multipleOf:()=>zn,_nan:()=>mp,_nanoid:()=>sc,_nativeEnum:()=>tL,_negative:()=>Dc,_never:()=>pp,_nonnegative:()=>Mc,_nonoptional:()=>sL,_nonpositive:()=>Uc,_normalize:()=>oi,_null:()=>dp,_nullable:()=>iL,_number:()=>Tc,_optional:()=>oL,_overwrite:()=>Rr,_parse:()=>Ki,_parseAsync:()=>Ji,_pipe:()=>lL,_positive:()=>zc,_promise:()=>mL,_property:()=>Lc,_readonly:()=>dL,_record:()=>X1,_refine:()=>Fc,_regex:()=>Ut,_safeDecode:()=>Jl,_safeDecodeAsync:()=>Yl,_safeEncode:()=>Kl,_safeEncodeAsync:()=>Xl,_safeParse:()=>Xi,_safeParseAsync:()=>Qi,_set:()=>Q1,_size:()=>lo,_slugify:()=>ua,_startsWith:()=>ti,_string:()=>Qs,_stringFormat:()=>ci,_stringbool:()=>vp,_success:()=>cL,_superRefine:()=>gp,_symbol:()=>up,_templateLiteral:()=>pL,_toLowerCase:()=>ai,_toUpperCase:()=>si,_transform:()=>nL,_trim:()=>ii,_tuple:()=>J1,_uint32:()=>ip,_uint64:()=>cp,_ulid:()=>lc,_undefined:()=>lp,_union:()=>H1,_unknown:()=>kc,_uppercase:()=>Qo,_url:()=>Xo,_uuid:()=>rc,_uuidv4:()=>nc,_uuidv6:()=>oc,_uuidv7:()=>ic,_void:()=>Nc,_xid:()=>dc,_xor:()=>Z1,clone:()=>Rt,config:()=>pt,createStandardJSONSchemaMethod:()=>la,createToJSONSchemaMethod:()=>$y,decode:()=>Qx,decodeAsync:()=>tT,describe:()=>yp,encode:()=>Yx,encodeAsync:()=>eT,extractDefs:()=>ho,finalize:()=>go,flattenError:()=>Zi,formatError:()=>Wi,globalConfig:()=>gs,globalRegistry:()=>Ot,initializeContext:()=>mo,isValidBase64:()=>Lg,isValidBase64URL:()=>ST,isValidJWT:()=>xT,locales:()=>sa,meta:()=>_p,parse:()=>Ho,parseAsync:()=>Zo,prettifyError:()=>Gl,process:()=>Ye,regexes:()=>er,registry:()=>Ys,safeDecode:()=>nT,safeDecodeAsync:()=>iT,safeEncode:()=>rT,safeEncodeAsync:()=>oT,safeParse:()=>Yi,safeParseAsync:()=>ea,toDotPath:()=>Xx,toJSONSchema:()=>Bc,treeifyError:()=>ql,util:()=>ie,version:()=>Ug});var Ll=Object.freeze({status:"aborted"});function w(t,e,r){function o(u,l){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:l,constr:s,traits:new Set},enumerable:!1}),u._zod.traits.has(t))return;u._zod.traits.add(t),e(u,l);let p=s.prototype,f=Object.keys(p);for(let y=0;y<f.length;y++){let m=f[y];m in u||(u[m]=p[m].bind(u))}}a(o,"init");let n=r?.Parent??Object;class i extends n{static{a(this,"Definition")}}Object.defineProperty(i,"name",{value:t});function s(u){var l;let p=r?.Parent?new i:this;o(p,u),(l=p._zod).deferred??(l.deferred=[]);for(let f of p._zod.deferred)f();return p}return a(s,"_"),Object.defineProperty(s,"init",{value:o}),Object.defineProperty(s,Symbol.hasInstance,{value:a(u=>r?.Parent&&u instanceof r.Parent?!0:u?._zod?.traits?.has(t),"value")}),Object.defineProperty(s,"name",{value:t}),s}a(w,"$constructor");var ys=Symbol("zod_brand"),Vr=class extends Error{static{a(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},io=class extends Error{static{a(this,"$ZodEncodeError")}constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}},gs={};function pt(t){return t&&Object.assign(gs,t),gs}a(pt,"config");var ie={};Xt(ie,{BIGINT_FORMAT_RANGES:()=>Gh,Class:()=>Uh,NUMBER_FORMAT_RANGES:()=>qh,aborted:()=>uo,allowsEval:()=>jh,assert:()=>cM,assertEqual:()=>oM,assertIs:()=>aM,assertNever:()=>sM,assertNotEqual:()=>iM,assignProp:()=>so,base64ToUint8Array:()=>Wx,base64urlToUint8Array:()=>vM,cached:()=>Vi,captureStackTrace:()=>Fl,cleanEnum:()=>_M,cleanRegex:()=>bs,clone:()=>Rt,cloneDef:()=>lM,createTransparentProxy:()=>gM,defineLazy:()=>De,esc:()=>jl,escapeRegex:()=>Cr,extend:()=>Gx,finalizeIssue:()=>Yt,floatSafeRemainder:()=>Mh,getElementAtPath:()=>dM,getEnumValues:()=>vs,getLengthableOrigin:()=>Ss,getParsedType:()=>hM,getSizableOrigin:()=>Ps,hexToUint8Array:()=>EM,isObject:()=>Vo,isPlainObject:()=>co,issue:()=>Hi,joinValues:()=>G,jsonStringifyReplacer:()=>Gi,merge:()=>yM,mergeDefs:()=>Nn,normalizeParams:()=>te,nullish:()=>ao,numKeys:()=>mM,objectClone:()=>uM,omit:()=>qx,optionalKeys:()=>Bh,parsedType:()=>ae,partial:()=>Hx,pick:()=>Bx,prefixIssues:()=>lr,primitiveTypes:()=>Fh,promiseAllObject:()=>pM,propertyKeyTypes:()=>Es,randomString:()=>fM,required:()=>Zx,safeExtend:()=>Vx,shallowClone:()=>Bl,slugify:()=>Lh,stringifyPrimitive:()=>ne,uint8ArrayToBase64:()=>Kx,uint8ArrayToBase64url:()=>bM,uint8ArrayToHex:()=>PM,unwrapMessage:()=>_s});function oM(t){return t}a(oM,"assertEqual");function iM(t){return t}a(iM,"assertNotEqual");function aM(t){}a(aM,"assertIs");function sM(t){throw new Error("Unexpected value in exhaustive check")}a(sM,"assertNever");function cM(t){}a(cM,"assert");function vs(t){let e=Object.values(t).filter(o=>typeof o=="number");return Object.entries(t).filter(([o,n])=>e.indexOf(+o)===-1).map(([o,n])=>n)}a(vs,"getEnumValues");function G(t,e="|"){return t.map(r=>ne(r)).join(e)}a(G,"joinValues");function Gi(t,e){return typeof e=="bigint"?e.toString():e}a(Gi,"jsonStringifyReplacer");function Vi(t){return{get value(){{let r=t();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}a(Vi,"cached");function ao(t){return t==null}a(ao,"nullish");function bs(t){let e=t.startsWith("^")?1:0,r=t.endsWith("$")?t.length-1:t.length;return t.slice(e,r)}a(bs,"cleanRegex");function Mh(t,e){let r=(t.toString().split(".")[1]||"").length,o=e.toString(),n=(o.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(o)){let l=o.match(/\d?e-(\d?)/);l?.[1]&&(n=Number.parseInt(l[1]))}let i=r>n?r:n,s=Number.parseInt(t.toFixed(i).replace(".","")),u=Number.parseInt(e.toFixed(i).replace(".",""));return s%u/10**i}a(Mh,"floatSafeRemainder");var Fx=Symbol("evaluating");function De(t,e,r){let o;Object.defineProperty(t,e,{get(){if(o!==Fx)return o===void 0&&(o=Fx,o=r()),o},set(n){Object.defineProperty(t,e,{value:n})},configurable:!0})}a(De,"defineLazy");function uM(t){return Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t))}a(uM,"objectClone");function so(t,e,r){Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0})}a(so,"assignProp");function Nn(...t){let e={};for(let r of t){let o=Object.getOwnPropertyDescriptors(r);Object.assign(e,o)}return Object.defineProperties({},e)}a(Nn,"mergeDefs");function lM(t){return Nn(t._zod.def)}a(lM,"cloneDef");function dM(t,e){return e?e.reduce((r,o)=>r?.[o],t):t}a(dM,"getElementAtPath");function pM(t){let e=Object.keys(t),r=e.map(o=>t[o]);return Promise.all(r).then(o=>{let n={};for(let i=0;i<e.length;i++)n[e[i]]=o[i];return n})}a(pM,"promiseAllObject");function fM(t=10){let e="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<t;o++)r+=e[Math.floor(Math.random()*e.length)];return r}a(fM,"randomString");function jl(t){return JSON.stringify(t)}a(jl,"esc");function Lh(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}a(Lh,"slugify");var Fl="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function Vo(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}a(Vo,"isObject");var jh=Vi(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});function co(t){if(Vo(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!="function")return!0;let r=e.prototype;return!(Vo(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}a(co,"isPlainObject");function Bl(t){return co(t)?{...t}:Array.isArray(t)?[...t]:t}a(Bl,"shallowClone");function mM(t){let e=0;for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&e++;return e}a(mM,"numKeys");var hM=a(t=>{let e=typeof t;switch(e){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(t)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(t)?"array":t===null?"null":t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?"promise":typeof Map<"u"&&t instanceof Map?"map":typeof Set<"u"&&t instanceof Set?"set":typeof Date<"u"&&t instanceof Date?"date":typeof File<"u"&&t instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${e}`)}},"getParsedType"),Es=new Set(["string","number","symbol"]),Fh=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Cr(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}a(Cr,"escapeRegex");function Rt(t,e,r){let o=new t._zod.constr(e??t._zod.def);return(!e||r?.parent)&&(o._zod.parent=t),o}a(Rt,"clone");function te(t){let e=t;if(!e)return{};if(typeof e=="string")return{error:a(()=>e,"error")};if(e?.message!==void 0){if(e?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:a(()=>e.error,"error")}:e}a(te,"normalizeParams");function gM(t){let e;return new Proxy({},{get(r,o,n){return e??(e=t()),Reflect.get(e,o,n)},set(r,o,n,i){return e??(e=t()),Reflect.set(e,o,n,i)},has(r,o){return e??(e=t()),Reflect.has(e,o)},deleteProperty(r,o){return e??(e=t()),Reflect.deleteProperty(e,o)},ownKeys(r){return e??(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(r,o){return e??(e=t()),Reflect.getOwnPropertyDescriptor(e,o)},defineProperty(r,o,n){return e??(e=t()),Reflect.defineProperty(e,o,n)}})}a(gM,"createTransparentProxy");function ne(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}a(ne,"stringifyPrimitive");function Bh(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}a(Bh,"optionalKeys");var qh={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]},Gh={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Bx(t,e){let r=t._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=Nn(t._zod.def,{get shape(){let s={};for(let u in e){if(!(u in r.shape))throw new Error(`Unrecognized key: "${u}"`);e[u]&&(s[u]=r.shape[u])}return so(this,"shape",s),s},checks:[]});return Rt(t,i)}a(Bx,"pick");function qx(t,e){let r=t._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=Nn(t._zod.def,{get shape(){let s={...t._zod.def.shape};for(let u in e){if(!(u in r.shape))throw new Error(`Unrecognized key: "${u}"`);e[u]&&delete s[u]}return so(this,"shape",s),s},checks:[]});return Rt(t,i)}a(qx,"omit");function Gx(t,e){if(!co(e))throw new Error("Invalid input to extend: expected a plain object");let r=t._zod.def.checks;if(r&&r.length>0){let i=t._zod.def.shape;for(let s in e)if(Object.getOwnPropertyDescriptor(i,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=Nn(t._zod.def,{get shape(){let i={...t._zod.def.shape,...e};return so(this,"shape",i),i}});return Rt(t,n)}a(Gx,"extend");function Vx(t,e){if(!co(e))throw new Error("Invalid input to safeExtend: expected a plain object");let r=Nn(t._zod.def,{get shape(){let o={...t._zod.def.shape,...e};return so(this,"shape",o),o}});return Rt(t,r)}a(Vx,"safeExtend");function yM(t,e){let r=Nn(t._zod.def,{get shape(){let o={...t._zod.def.shape,...e._zod.def.shape};return so(this,"shape",o),o},get catchall(){return e._zod.def.catchall},checks:[]});return Rt(t,r)}a(yM,"merge");function Hx(t,e,r){let n=e._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let s=Nn(e._zod.def,{get shape(){let u=e._zod.def.shape,l={...u};if(r)for(let p in r){if(!(p in u))throw new Error(`Unrecognized key: "${p}"`);r[p]&&(l[p]=t?new t({type:"optional",innerType:u[p]}):u[p])}else for(let p in u)l[p]=t?new t({type:"optional",innerType:u[p]}):u[p];return so(this,"shape",l),l},checks:[]});return Rt(e,s)}a(Hx,"partial");function Zx(t,e,r){let o=Nn(e._zod.def,{get shape(){let n=e._zod.def.shape,i={...n};if(r)for(let s in r){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(i[s]=new t({type:"nonoptional",innerType:n[s]}))}else for(let s in n)i[s]=new t({type:"nonoptional",innerType:n[s]});return so(this,"shape",i),i}});return Rt(e,o)}a(Zx,"required");function uo(t,e=0){if(t.aborted===!0)return!0;for(let r=e;r<t.issues.length;r++)if(t.issues[r]?.continue!==!0)return!0;return!1}a(uo,"aborted");function lr(t,e){return e.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(t),r})}a(lr,"prefixIssues");function _s(t){return typeof t=="string"?t:t?.message}a(_s,"unwrapMessage");function Yt(t,e,r){let o={...t,path:t.path??[]};if(!t.message){let n=_s(t.inst?._zod.def?.error?.(t))??_s(e?.error?.(t))??_s(r.customError?.(t))??_s(r.localeError?.(t))??"Invalid input";o.message=n}return delete o.inst,delete o.continue,e?.reportInput||delete o.input,o}a(Yt,"finalizeIssue");function Ps(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}a(Ps,"getSizableOrigin");function Ss(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}a(Ss,"getLengthableOrigin");function ae(t){let e=typeof t;switch(e){case"number":return Number.isNaN(t)?"nan":"number";case"object":{if(t===null)return"null";if(Array.isArray(t))return"array";let r=t;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return e}a(ae,"parsedType");function Hi(...t){let[e,r,o]=t;return typeof e=="string"?{message:e,code:"custom",input:r,inst:o}:{...e}}a(Hi,"issue");function _M(t){return Object.entries(t).filter(([e,r])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}a(_M,"cleanEnum");function Wx(t){let e=atob(t),r=new Uint8Array(e.length);for(let o=0;o<e.length;o++)r[o]=e.charCodeAt(o);return r}a(Wx,"base64ToUint8Array");function Kx(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}a(Kx,"uint8ArrayToBase64");function vM(t){let e=t.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-e.length%4)%4);return Wx(e+r)}a(vM,"base64urlToUint8Array");function bM(t){return Kx(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}a(bM,"uint8ArrayToBase64url");function EM(t){let e=t.replace(/^0x/,"");if(e.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(e.length/2);for(let o=0;o<e.length;o+=2)r[o/2]=Number.parseInt(e.slice(o,o+2),16);return r}a(EM,"hexToUint8Array");function PM(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}a(PM,"uint8ArrayToHex");var Uh=class{static{a(this,"Class")}constructor(...e){}};var Jx=a((t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),t.message=JSON.stringify(e,Gi,2),Object.defineProperty(t,"toString",{value:a(()=>t.message,"value"),enumerable:!1})},"initializer"),xs=w("$ZodError",Jx),Qt=w("$ZodError",Jx,{Parent:Error});function Zi(t,e=r=>r.message){let r={},o=[];for(let n of t.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(e(n))):o.push(e(n));return{formErrors:o,fieldErrors:r}}a(Zi,"flattenError");function Wi(t,e=r=>r.message){let r={_errors:[]},o=a(n=>{for(let i of n.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(s=>o({issues:s}));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)r._errors.push(e(i));else{let s=r,u=0;for(;u<i.path.length;){let l=i.path[u];u===i.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(e(i))):s[l]=s[l]||{_errors:[]},s=s[l],u++}}},"processError");return o(t),r}a(Wi,"formatError");function ql(t,e=r=>r.message){let r={errors:[]},o=a((n,i=[])=>{var s,u;for(let l of n.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(p=>o({issues:p},l.path));else if(l.code==="invalid_key")o({issues:l.issues},l.path);else if(l.code==="invalid_element")o({issues:l.issues},l.path);else{let p=[...i,...l.path];if(p.length===0){r.errors.push(e(l));continue}let f=r,y=0;for(;y<p.length;){let m=p[y],h=y===p.length-1;typeof m=="string"?(f.properties??(f.properties={}),(s=f.properties)[m]??(s[m]={errors:[]}),f=f.properties[m]):(f.items??(f.items=[]),(u=f.items)[m]??(u[m]={errors:[]}),f=f.items[m]),h&&f.errors.push(e(l)),y++}}},"processError");return o(t),r}a(ql,"treeifyError");function Xx(t){let e=[],r=t.map(o=>typeof o=="object"?o.key:o);for(let o of r)typeof o=="number"?e.push(`[${o}]`):typeof o=="symbol"?e.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?e.push(`[${JSON.stringify(o)}]`):(e.length&&e.push("."),e.push(o));return e.join("")}a(Xx,"toDotPath");function Gl(t){let e=[],r=[...t.issues].sort((o,n)=>(o.path??[]).length-(n.path??[]).length);for(let o of r)e.push(`\u2716 ${o.message}`),o.path?.length&&e.push(` \u2192 at ${Xx(o.path)}`);return e.join(`
69
+ `)}a(Gl,"prettifyError");var Ki=a(t=>(e,r,o,n)=>{let i=o?Object.assign(o,{async:!1}):{async:!1},s=e._zod.run({value:r,issues:[]},i);if(s instanceof Promise)throw new Vr;if(s.issues.length){let u=new(n?.Err??t)(s.issues.map(l=>Yt(l,i,pt())));throw Fl(u,n?.callee),u}return s.value},"_parse"),Ho=Ki(Qt),Ji=a(t=>async(e,r,o,n)=>{let i=o?Object.assign(o,{async:!0}):{async:!0},s=e._zod.run({value:r,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){let u=new(n?.Err??t)(s.issues.map(l=>Yt(l,i,pt())));throw Fl(u,n?.callee),u}return s.value},"_parseAsync"),Zo=Ji(Qt),Xi=a(t=>(e,r,o)=>{let n=o?{...o,async:!1}:{async:!1},i=e._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new Vr;return i.issues.length?{success:!1,error:new(t??xs)(i.issues.map(s=>Yt(s,n,pt())))}:{success:!0,data:i.value}},"_safeParse"),Yi=Xi(Qt),Qi=a(t=>async(e,r,o)=>{let n=o?Object.assign(o,{async:!0}):{async:!0},i=e._zod.run({value:r,issues:[]},n);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new t(i.issues.map(s=>Yt(s,n,pt())))}:{success:!0,data:i.value}},"_safeParseAsync"),ea=Qi(Qt),Vl=a(t=>(e,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Ki(t)(e,r,n)},"_encode"),Yx=Vl(Qt),Hl=a(t=>(e,r,o)=>Ki(t)(e,r,o),"_decode"),Qx=Hl(Qt),Zl=a(t=>async(e,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Ji(t)(e,r,n)},"_encodeAsync"),eT=Zl(Qt),Wl=a(t=>async(e,r,o)=>Ji(t)(e,r,o),"_decodeAsync"),tT=Wl(Qt),Kl=a(t=>(e,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Xi(t)(e,r,n)},"_safeEncode"),rT=Kl(Qt),Jl=a(t=>(e,r,o)=>Xi(t)(e,r,o),"_safeDecode"),nT=Jl(Qt),Xl=a(t=>async(e,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Qi(t)(e,r,n)},"_safeEncodeAsync"),oT=Xl(Qt),Yl=a(t=>async(e,r,o)=>Qi(t)(e,r,o),"_safeDecodeAsync"),iT=Yl(Qt);var er={};Xt(er,{base64:()=>ag,base64url:()=>Ql,bigint:()=>pg,boolean:()=>mg,browserEmail:()=>OM,cidrv4:()=>og,cidrv6:()=>ig,cuid:()=>Vh,cuid2:()=>Hh,date:()=>cg,datetime:()=>lg,domain:()=>$M,duration:()=>Xh,e164:()=>sg,email:()=>Qh,emoji:()=>eg,extendedDuration:()=>xM,guid:()=>Yh,hex:()=>zM,hostname:()=>NM,html5Email:()=>IM,idnEmail:()=>RM,integer:()=>fg,ipv4:()=>tg,ipv6:()=>rg,ksuid:()=>Kh,lowercase:()=>yg,mac:()=>ng,md5_base64:()=>UM,md5_base64url:()=>MM,md5_hex:()=>DM,nanoid:()=>Jh,null:()=>hg,number:()=>ed,rfc5322Email:()=>CM,sha1_base64:()=>jM,sha1_base64url:()=>FM,sha1_hex:()=>LM,sha256_base64:()=>qM,sha256_base64url:()=>GM,sha256_hex:()=>BM,sha384_base64:()=>HM,sha384_base64url:()=>ZM,sha384_hex:()=>VM,sha512_base64:()=>KM,sha512_base64url:()=>JM,sha512_hex:()=>WM,string:()=>dg,time:()=>ug,ulid:()=>Zh,undefined:()=>gg,unicodeEmail:()=>aT,uppercase:()=>_g,uuid:()=>Wo,uuid4:()=>TM,uuid6:()=>AM,uuid7:()=>wM,xid:()=>Wh});var Vh=/^[cC][^\s-]{8,}$/,Hh=/^[0-9a-z]+$/,Zh=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Wh=/^[0-9a-vA-V]{20}$/,Kh=/^[A-Za-z0-9]{27}$/,Jh=/^[a-zA-Z0-9_-]{21}$/,Xh=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,xM=/^[-+]?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)?)??$/,Yh=/^([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})$/,Wo=a(t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,"uuid"),TM=Wo(4),AM=Wo(6),wM=Wo(7),Qh=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,IM=/^[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])?)*$/,CM=/^(([^<>()\[\]\\.,;:\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,}))$/,aT=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,RM=aT,OM=/^[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])?)*$/,kM="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function eg(){return new RegExp(kM,"u")}a(eg,"emoji");var tg=/^(?:(?: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])$/,rg=/^(([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}|:))$/,ng=a(t=>{let e=Cr(t??":");return new RegExp(`^(?:[0-9A-F]{2}${e}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${e}){5}[0-9a-f]{2}$`)},"mac"),og=/^((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])$/,ig=/^(([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])$/,ag=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ql=/^[A-Za-z0-9_-]*$/,NM=/^(?=.{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])?)*\.?$/,$M=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,sg=/^\+[1-9]\d{6,14}$/,sT="(?:(?:\\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])))",cg=new RegExp(`^${sT}$`);function cT(t){let e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}a(cT,"timeSource");function ug(t){return new RegExp(`^${cT(t)}$`)}a(ug,"time");function lg(t){let e=cT({precision:t.precision}),r=["Z"];t.local&&r.push(""),t.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${e}(?:${r.join("|")})`;return new RegExp(`^${sT}T(?:${o})$`)}a(lg,"datetime");var dg=a(t=>{let e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},"string"),pg=/^-?\d+n?$/,fg=/^-?\d+$/,ed=/^-?\d+(?:\.\d+)?$/,mg=/^(?:true|false)$/i,hg=/^null$/i;var gg=/^undefined$/i;var yg=/^[^A-Z]*$/,_g=/^[^a-z]*$/,zM=/^[0-9a-fA-F]*$/;function Ts(t,e){return new RegExp(`^[A-Za-z0-9+/]{${t}}${e}$`)}a(Ts,"fixedBase64");function As(t){return new RegExp(`^[A-Za-z0-9_-]{${t}}$`)}a(As,"fixedBase64url");var DM=/^[0-9a-fA-F]{32}$/,UM=Ts(22,"=="),MM=As(22),LM=/^[0-9a-fA-F]{40}$/,jM=Ts(27,"="),FM=As(27),BM=/^[0-9a-fA-F]{64}$/,qM=Ts(43,"="),GM=As(43),VM=/^[0-9a-fA-F]{96}$/,HM=Ts(64,""),ZM=As(64),WM=/^[0-9a-fA-F]{128}$/,KM=Ts(86,"=="),JM=As(86);var rt=w("$ZodCheck",(t,e)=>{var r;t._zod??(t._zod={}),t._zod.def=e,(r=t._zod).onattach??(r.onattach=[])}),lT={number:"number",bigint:"bigint",object:"date"},td=w("$ZodCheckLessThan",(t,e)=>{rt.init(t,e);let r=lT[typeof e.value];t._zod.onattach.push(o=>{let n=o._zod.bag,i=(e.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value<i&&(e.inclusive?n.maximum=e.value:n.exclusiveMaximum=e.value)}),t._zod.check=o=>{(e.inclusive?o.value<=e.value:o.value<e.value)||o.issues.push({origin:r,code:"too_big",maximum:typeof e.value=="object"?e.value.getTime():e.value,input:o.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),rd=w("$ZodCheckGreaterThan",(t,e)=>{rt.init(t,e);let r=lT[typeof e.value];t._zod.onattach.push(o=>{let n=o._zod.bag,i=(e.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>i&&(e.inclusive?n.minimum=e.value:n.exclusiveMinimum=e.value)}),t._zod.check=o=>{(e.inclusive?o.value>=e.value:o.value>e.value)||o.issues.push({origin:r,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:o.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),vg=w("$ZodCheckMultipleOf",(t,e)=>{rt.init(t,e),t._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.multipleOf=e.value)}),t._zod.check=r=>{if(typeof r.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%e.value===BigInt(0):Mh(r.value,e.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:e.value,input:r.value,inst:t,continue:!e.abort})}}),bg=w("$ZodCheckNumberFormat",(t,e)=>{rt.init(t,e),e.format=e.format||"float64";let r=e.format?.includes("int"),o=r?"int":"number",[n,i]=qh[e.format];t._zod.onattach.push(s=>{let u=s._zod.bag;u.format=e.format,u.minimum=n,u.maximum=i,r&&(u.pattern=fg)}),t._zod.check=s=>{let u=s.value;if(r){if(!Number.isInteger(u)){s.issues.push({expected:o,format:e.format,code:"invalid_type",continue:!1,input:u,inst:t});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:t,origin:o,inclusive:!0,continue:!e.abort}):s.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:o,inclusive:!0,continue:!e.abort});return}}u<n&&s.issues.push({origin:"number",input:u,code:"too_small",minimum:n,inclusive:!0,inst:t,continue:!e.abort}),u>i&&s.issues.push({origin:"number",input:u,code:"too_big",maximum:i,inclusive:!0,inst:t,continue:!e.abort})}}),Eg=w("$ZodCheckBigIntFormat",(t,e)=>{rt.init(t,e);let[r,o]=Gh[e.format];t._zod.onattach.push(n=>{let i=n._zod.bag;i.format=e.format,i.minimum=r,i.maximum=o}),t._zod.check=n=>{let i=n.value;i<r&&n.issues.push({origin:"bigint",input:i,code:"too_small",minimum:r,inclusive:!0,inst:t,continue:!e.abort}),i>o&&n.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:t,continue:!e.abort})}}),Pg=w("$ZodCheckMaxSize",(t,e)=>{var r;rt.init(t,e),(r=t._zod.def).when??(r.when=o=>{let n=o.value;return!ao(n)&&n.size!==void 0}),t._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<n&&(o._zod.bag.maximum=e.maximum)}),t._zod.check=o=>{let n=o.value;n.size<=e.maximum||o.issues.push({origin:Ps(n),code:"too_big",maximum:e.maximum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),Sg=w("$ZodCheckMinSize",(t,e)=>{var r;rt.init(t,e),(r=t._zod.def).when??(r.when=o=>{let n=o.value;return!ao(n)&&n.size!==void 0}),t._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>n&&(o._zod.bag.minimum=e.minimum)}),t._zod.check=o=>{let n=o.value;n.size>=e.minimum||o.issues.push({origin:Ps(n),code:"too_small",minimum:e.minimum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),xg=w("$ZodCheckSizeEquals",(t,e)=>{var r;rt.init(t,e),(r=t._zod.def).when??(r.when=o=>{let n=o.value;return!ao(n)&&n.size!==void 0}),t._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=e.size,n.maximum=e.size,n.size=e.size}),t._zod.check=o=>{let n=o.value,i=n.size;if(i===e.size)return;let s=i>e.size;o.issues.push({origin:Ps(n),...s?{code:"too_big",maximum:e.size}:{code:"too_small",minimum:e.size},inclusive:!0,exact:!0,input:o.value,inst:t,continue:!e.abort})}}),Tg=w("$ZodCheckMaxLength",(t,e)=>{var r;rt.init(t,e),(r=t._zod.def).when??(r.when=o=>{let n=o.value;return!ao(n)&&n.length!==void 0}),t._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<n&&(o._zod.bag.maximum=e.maximum)}),t._zod.check=o=>{let n=o.value;if(n.length<=e.maximum)return;let s=Ss(n);o.issues.push({origin:s,code:"too_big",maximum:e.maximum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),Ag=w("$ZodCheckMinLength",(t,e)=>{var r;rt.init(t,e),(r=t._zod.def).when??(r.when=o=>{let n=o.value;return!ao(n)&&n.length!==void 0}),t._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>n&&(o._zod.bag.minimum=e.minimum)}),t._zod.check=o=>{let n=o.value;if(n.length>=e.minimum)return;let s=Ss(n);o.issues.push({origin:s,code:"too_small",minimum:e.minimum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),wg=w("$ZodCheckLengthEquals",(t,e)=>{var r;rt.init(t,e),(r=t._zod.def).when??(r.when=o=>{let n=o.value;return!ao(n)&&n.length!==void 0}),t._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=e.length,n.maximum=e.length,n.length=e.length}),t._zod.check=o=>{let n=o.value,i=n.length;if(i===e.length)return;let s=Ss(n),u=i>e.length;o.issues.push({origin:s,...u?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:o.value,inst:t,continue:!e.abort})}}),ta=w("$ZodCheckStringFormat",(t,e)=>{var r,o;rt.init(t,e),t._zod.onattach.push(n=>{let i=n._zod.bag;i.format=e.format,e.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(e.pattern))}),e.pattern?(r=t._zod).check??(r.check=n=>{e.pattern.lastIndex=0,!e.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:e.format,input:n.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:t,continue:!e.abort})}):(o=t._zod).check??(o.check=()=>{})}),Ig=w("$ZodCheckRegex",(t,e)=>{ta.init(t,e),t._zod.check=r=>{e.pattern.lastIndex=0,!e.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),Cg=w("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=yg),ta.init(t,e)}),Rg=w("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=_g),ta.init(t,e)}),Og=w("$ZodCheckIncludes",(t,e)=>{rt.init(t,e);let r=Cr(e.includes),o=new RegExp(typeof e.position=="number"?`^.{${e.position}}${r}`:r);e.pattern=o,t._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),t._zod.check=n=>{n.value.includes(e.includes,e.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:n.value,inst:t,continue:!e.abort})}}),kg=w("$ZodCheckStartsWith",(t,e)=>{rt.init(t,e);let r=new RegExp(`^${Cr(e.prefix)}.*`);e.pattern??(e.pattern=r),t._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),t._zod.check=o=>{o.value.startsWith(e.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:o.value,inst:t,continue:!e.abort})}}),Ng=w("$ZodCheckEndsWith",(t,e)=>{rt.init(t,e);let r=new RegExp(`.*${Cr(e.suffix)}$`);e.pattern??(e.pattern=r),t._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),t._zod.check=o=>{o.value.endsWith(e.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:o.value,inst:t,continue:!e.abort})}});function uT(t,e,r){t.issues.length&&e.issues.push(...lr(r,t.issues))}a(uT,"handleCheckPropertyResult");var $g=w("$ZodCheckProperty",(t,e)=>{rt.init(t,e),t._zod.check=r=>{let o=e.schema._zod.run({value:r.value[e.property],issues:[]},{});if(o instanceof Promise)return o.then(n=>uT(n,r,e.property));uT(o,r,e.property)}}),zg=w("$ZodCheckMimeType",(t,e)=>{rt.init(t,e);let r=new Set(e.mime);t._zod.onattach.push(o=>{o._zod.bag.mime=e.mime}),t._zod.check=o=>{r.has(o.value.type)||o.issues.push({code:"invalid_value",values:e.mime,input:o.value.type,inst:t,continue:!e.abort})}}),Dg=w("$ZodCheckOverwrite",(t,e)=>{rt.init(t,e),t._zod.check=r=>{r.value=e.tx(r.value)}});var ws=class{static{a(this,"Doc")}constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let o=e.split(`
70
70
  `).filter(s=>s),n=Math.min(...o.map(s=>s.length-s.trimStart().length)),i=o.map(s=>s.slice(n)).map(s=>" ".repeat(this.indent*2)+s);for(let s of i)this.content.push(s)}compile(){let e=Function,r=this?.args,n=[...(this?.content??[""]).map(i=>` ${i}`)];return new e(...r,n.join(`
71
- `))}};var Ug={major:4,minor:3,patch:6};var Te=w("$ZodType",(t,e)=>{var r;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=Ug;let o=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&o.unshift(t);for(let n of o)for(let i of n._zod.onattach)i(t);if(o.length===0)(r=t._zod).deferred??(r.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let n=a((s,u,l)=>{let p=uo(s),f;for(let y of u){if(y._zod.def.when){if(!y._zod.def.when(s))continue}else if(p)continue;let m=s.issues.length,h=y._zod.check(s);if(h instanceof Promise&&l?.async===!1)throw new Vr;if(f||h instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await h,s.issues.length!==m&&(p||(p=uo(s,m)))});else{if(s.issues.length===m)continue;p||(p=uo(s,m))}}return f?f.then(()=>s):s},"runChecks"),i=a((s,u,l)=>{if(uo(s))return s.aborted=!0,s;let p=n(u,o,l);if(p instanceof Promise){if(l.async===!1)throw new Vr;return p.then(f=>t._zod.parse(f,l))}return t._zod.parse(p,l)},"handleCanaryResult");t._zod.run=(s,u)=>{if(u.skipChecks)return t._zod.parse(s,u);if(u.direction==="backward"){let p=t._zod.parse({value:s.value,issues:[]},{...u,skipChecks:!0});return p instanceof Promise?p.then(f=>i(f,s,u)):i(p,s,u)}let l=t._zod.parse(s,u);if(l instanceof Promise){if(u.async===!1)throw new Vr;return l.then(p=>n(p,o,u))}return n(l,o,u)}}De(t,"~standard",()=>({validate:a(n=>{try{let i=Yi(t,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return ea(t,n).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},"validate"),vendor:"zod",version:1}))}),$n=w("$ZodString",(t,e)=>{Te.init(t,e),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??dg(t._zod.bag),t._zod.parse=(r,o)=>{if(e.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:t}),r}}),Xe=w("$ZodStringFormat",(t,e)=>{ta.init(t,e),$n.init(t,e)}),cd=w("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=Yh),Xe.init(t,e)}),ud=w("$ZodUUID",(t,e)=>{if(e.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(o===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=Wo(o))}else e.pattern??(e.pattern=Wo());Xe.init(t,e)}),ld=w("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=Qh),Xe.init(t,e)}),Is=w("$ZodURL",(t,e)=>{Xe.init(t,e),t._zod.check=r=>{try{let o=r.value.trim(),n=new URL(o);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:r.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:r.value,inst:t,continue:!e.abort})),e.normalize?r.value=n.href:r.value=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:t,continue:!e.abort})}}}),dd=w("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=eg()),Xe.init(t,e)}),pd=w("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=Jh),Xe.init(t,e)}),fd=w("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=Vh),Xe.init(t,e)}),md=w("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=Hh),Xe.init(t,e)}),hd=w("$ZodULID",(t,e)=>{e.pattern??(e.pattern=Zh),Xe.init(t,e)}),gd=w("$ZodXID",(t,e)=>{e.pattern??(e.pattern=Wh),Xe.init(t,e)}),yd=w("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=Kh),Xe.init(t,e)}),Cs=w("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=lg(e)),Xe.init(t,e)}),Rs=w("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=cg),Xe.init(t,e)}),Os=w("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=ug(e)),Xe.init(t,e)}),ks=w("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=Xh),Xe.init(t,e)}),_d=w("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=tg),Xe.init(t,e),t._zod.bag.format="ipv4"}),vd=w("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=rg),Xe.init(t,e),t._zod.bag.format="ipv6",t._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:t,continue:!e.abort})}}}),bd=w("$ZodMAC",(t,e)=>{e.pattern??(e.pattern=ng(e.delimiter)),Xe.init(t,e),t._zod.bag.format="mac"}),Pd=w("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=og),Xe.init(t,e)}),Ed=w("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=ig),Xe.init(t,e),t._zod.check=r=>{let o=r.value.split("/");try{if(o.length!==2)throw new Error;let[n,i]=o;if(!i)throw new Error;let s=Number(i);if(`${s}`!==i)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:t,continue:!e.abort})}}});function Lg(t){if(t==="")return!0;if(t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}a(Lg,"isValidBase64");var Sd=w("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=ag),Xe.init(t,e),t._zod.bag.contentEncoding="base64",t._zod.check=r=>{Lg(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:t,continue:!e.abort})}});function ST(t){if(!Ql.test(t))return!1;let e=t.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=e.padEnd(Math.ceil(e.length/4)*4,"=");return Lg(r)}a(ST,"isValidBase64URL");var xd=w("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=Ql),Xe.init(t,e),t._zod.bag.contentEncoding="base64url",t._zod.check=r=>{ST(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:t,continue:!e.abort})}}),Td=w("$ZodE164",(t,e)=>{e.pattern??(e.pattern=sg),Xe.init(t,e)});function xT(t,e=null){try{let r=t.split(".");if(r.length!==3)return!1;let[o]=r;if(!o)return!1;let n=JSON.parse(atob(o));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||e&&(!("alg"in n)||n.alg!==e))}catch{return!1}}a(xT,"isValidJWT");var Ad=w("$ZodJWT",(t,e)=>{Xe.init(t,e),t._zod.check=r=>{xT(r.value,e.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:t,continue:!e.abort})}}),wd=w("$ZodCustomStringFormat",(t,e)=>{Xe.init(t,e),t._zod.check=r=>{e.fn(r.value)||r.issues.push({code:"invalid_format",format:e.format,input:r.value,inst:t,continue:!e.abort})}}),ra=w("$ZodNumber",(t,e)=>{Te.init(t,e),t._zod.pattern=t._zod.bag.pattern??ed,t._zod.parse=(r,o)=>{if(e.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let i=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:t,...i?{received:i}:{}}),r}}),Ns=w("$ZodNumberFormat",(t,e)=>{bg.init(t,e),ra.init(t,e)}),Ko=w("$ZodBoolean",(t,e)=>{Te.init(t,e),t._zod.pattern=mg,t._zod.parse=(r,o)=>{if(e.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:t}),r}}),na=w("$ZodBigInt",(t,e)=>{Te.init(t,e),t._zod.pattern=pg,t._zod.parse=(r,o)=>{if(e.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:t}),r}}),Id=w("$ZodBigIntFormat",(t,e)=>{Pg.init(t,e),na.init(t,e)}),Cd=w("$ZodSymbol",(t,e)=>{Te.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:t}),r}}),Rd=w("$ZodUndefined",(t,e)=>{Te.init(t,e),t._zod.pattern=gg,t._zod.values=new Set([void 0]),t._zod.optin="optional",t._zod.optout="optional",t._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:t}),r}}),Od=w("$ZodNull",(t,e)=>{Te.init(t,e),t._zod.pattern=hg,t._zod.values=new Set([null]),t._zod.parse=(r,o)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:t}),r}}),$s=w("$ZodAny",(t,e)=>{Te.init(t,e),t._zod.parse=r=>r}),zs=w("$ZodUnknown",(t,e)=>{Te.init(t,e),t._zod.parse=r=>r}),kd=w("$ZodNever",(t,e)=>{Te.init(t,e),t._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:t}),r)}),Ds=w("$ZodVoid",(t,e)=>{Te.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:t}),r}}),Us=w("$ZodDate",(t,e)=>{Te.init(t,e),t._zod.parse=(r,o)=>{if(e.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,i=n instanceof Date;return i&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...i?{received:"Invalid Date"}:{},inst:t}),r}});function pT(t,e,r){t.issues.length&&e.issues.push(...lr(r,t.issues)),e.value[r]=t.value}a(pT,"handleArrayResult");var Ms=w("$ZodArray",(t,e)=>{Te.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:t}),r;r.value=Array(n.length);let i=[];for(let s=0;s<n.length;s++){let u=n[s],l=e.element._zod.run({value:u,issues:[]},o);l instanceof Promise?i.push(l.then(p=>pT(p,r,s))):pT(l,r,s)}return i.length?Promise.all(i).then(()=>r):r}});function sd(t,e,r,o,n){if(t.issues.length){if(n&&!(r in o))return;e.issues.push(...lr(r,t.issues))}t.value===void 0?r in o&&(e.value[r]=void 0):e.value[r]=t.value}a(sd,"handlePropertyResult");function TT(t){let e=Object.keys(t.shape);for(let o of e)if(!t.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let r=Bh(t.shape);return{...t,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(r)}}a(TT,"normalizeDef");function AT(t,e,r,o,n,i){let s=[],u=n.keySet,l=n.catchall._zod,p=l.def.type,f=l.optout==="optional";for(let y in e){if(u.has(y))continue;if(p==="never"){s.push(y);continue}let m=l.run({value:e[y],issues:[]},o);m instanceof Promise?t.push(m.then(h=>sd(h,r,y,e,f))):sd(m,r,y,e,f)}return s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:e,inst:i}),t.length?Promise.all(t).then(()=>r):r}a(AT,"handleCatchall");var Nd=w("$ZodObject",(t,e)=>{if(Te.init(t,e),!Object.getOwnPropertyDescriptor(e,"shape")?.get){let u=e.shape;Object.defineProperty(e,"shape",{get:a(()=>{let l={...u};return Object.defineProperty(e,"shape",{value:l}),l},"get")})}let o=Vi(()=>TT(e));De(t._zod,"propValues",()=>{let u=e.shape,l={};for(let p in u){let f=u[p]._zod;if(f.values){l[p]??(l[p]=new Set);for(let y of f.values)l[p].add(y)}}return l});let n=Vo,i=e.catchall,s;t._zod.parse=(u,l)=>{s??(s=o.value);let p=u.value;if(!n(p))return u.issues.push({expected:"object",code:"invalid_type",input:p,inst:t}),u;u.value={};let f=[],y=s.shape;for(let m of s.keys){let h=y[m],_=h._zod.optout==="optional",E=h._zod.run({value:p[m],issues:[]},l);E instanceof Promise?f.push(E.then(S=>sd(S,u,m,p,_))):sd(E,u,m,p,_)}return i?AT(f,p,u,l,o.value,t):f.length?Promise.all(f).then(()=>u):u}}),jg=w("$ZodObjectJIT",(t,e)=>{Nd.init(t,e);let r=t._zod.parse,o=Vi(()=>TT(e)),n=a(m=>{let h=new ws(["shape","payload","ctx"]),_=o.value,E=a(L=>{let Y=jl(L);return`shape[${Y}]._zod.run({ value: input[${Y}], issues: [] }, ctx)`},"parseStr");h.write("const input = payload.value;");let S=Object.create(null),T=0;for(let L of _.keys)S[L]=`key_${T++}`;h.write("const newResult = {};");for(let L of _.keys){let Y=S[L],H=jl(L),re=m[L]?._zod?.optout==="optional";h.write(`const ${Y} = ${E(L)};`),re?h.write(`
71
+ `))}};var Ug={major:4,minor:3,patch:6};var Te=w("$ZodType",(t,e)=>{var r;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=Ug;let o=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&o.unshift(t);for(let n of o)for(let i of n._zod.onattach)i(t);if(o.length===0)(r=t._zod).deferred??(r.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let n=a((s,u,l)=>{let p=uo(s),f;for(let y of u){if(y._zod.def.when){if(!y._zod.def.when(s))continue}else if(p)continue;let m=s.issues.length,h=y._zod.check(s);if(h instanceof Promise&&l?.async===!1)throw new Vr;if(f||h instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await h,s.issues.length!==m&&(p||(p=uo(s,m)))});else{if(s.issues.length===m)continue;p||(p=uo(s,m))}}return f?f.then(()=>s):s},"runChecks"),i=a((s,u,l)=>{if(uo(s))return s.aborted=!0,s;let p=n(u,o,l);if(p instanceof Promise){if(l.async===!1)throw new Vr;return p.then(f=>t._zod.parse(f,l))}return t._zod.parse(p,l)},"handleCanaryResult");t._zod.run=(s,u)=>{if(u.skipChecks)return t._zod.parse(s,u);if(u.direction==="backward"){let p=t._zod.parse({value:s.value,issues:[]},{...u,skipChecks:!0});return p instanceof Promise?p.then(f=>i(f,s,u)):i(p,s,u)}let l=t._zod.parse(s,u);if(l instanceof Promise){if(u.async===!1)throw new Vr;return l.then(p=>n(p,o,u))}return n(l,o,u)}}De(t,"~standard",()=>({validate:a(n=>{try{let i=Yi(t,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return ea(t,n).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},"validate"),vendor:"zod",version:1}))}),$n=w("$ZodString",(t,e)=>{Te.init(t,e),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??dg(t._zod.bag),t._zod.parse=(r,o)=>{if(e.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:t}),r}}),Xe=w("$ZodStringFormat",(t,e)=>{ta.init(t,e),$n.init(t,e)}),cd=w("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=Yh),Xe.init(t,e)}),ud=w("$ZodUUID",(t,e)=>{if(e.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(o===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=Wo(o))}else e.pattern??(e.pattern=Wo());Xe.init(t,e)}),ld=w("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=Qh),Xe.init(t,e)}),Is=w("$ZodURL",(t,e)=>{Xe.init(t,e),t._zod.check=r=>{try{let o=r.value.trim(),n=new URL(o);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:r.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:r.value,inst:t,continue:!e.abort})),e.normalize?r.value=n.href:r.value=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:t,continue:!e.abort})}}}),dd=w("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=eg()),Xe.init(t,e)}),pd=w("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=Jh),Xe.init(t,e)}),fd=w("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=Vh),Xe.init(t,e)}),md=w("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=Hh),Xe.init(t,e)}),hd=w("$ZodULID",(t,e)=>{e.pattern??(e.pattern=Zh),Xe.init(t,e)}),gd=w("$ZodXID",(t,e)=>{e.pattern??(e.pattern=Wh),Xe.init(t,e)}),yd=w("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=Kh),Xe.init(t,e)}),Cs=w("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=lg(e)),Xe.init(t,e)}),Rs=w("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=cg),Xe.init(t,e)}),Os=w("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=ug(e)),Xe.init(t,e)}),ks=w("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=Xh),Xe.init(t,e)}),_d=w("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=tg),Xe.init(t,e),t._zod.bag.format="ipv4"}),vd=w("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=rg),Xe.init(t,e),t._zod.bag.format="ipv6",t._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:t,continue:!e.abort})}}}),bd=w("$ZodMAC",(t,e)=>{e.pattern??(e.pattern=ng(e.delimiter)),Xe.init(t,e),t._zod.bag.format="mac"}),Ed=w("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=og),Xe.init(t,e)}),Pd=w("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=ig),Xe.init(t,e),t._zod.check=r=>{let o=r.value.split("/");try{if(o.length!==2)throw new Error;let[n,i]=o;if(!i)throw new Error;let s=Number(i);if(`${s}`!==i)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:t,continue:!e.abort})}}});function Lg(t){if(t==="")return!0;if(t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}a(Lg,"isValidBase64");var Sd=w("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=ag),Xe.init(t,e),t._zod.bag.contentEncoding="base64",t._zod.check=r=>{Lg(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:t,continue:!e.abort})}});function ST(t){if(!Ql.test(t))return!1;let e=t.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=e.padEnd(Math.ceil(e.length/4)*4,"=");return Lg(r)}a(ST,"isValidBase64URL");var xd=w("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=Ql),Xe.init(t,e),t._zod.bag.contentEncoding="base64url",t._zod.check=r=>{ST(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:t,continue:!e.abort})}}),Td=w("$ZodE164",(t,e)=>{e.pattern??(e.pattern=sg),Xe.init(t,e)});function xT(t,e=null){try{let r=t.split(".");if(r.length!==3)return!1;let[o]=r;if(!o)return!1;let n=JSON.parse(atob(o));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||e&&(!("alg"in n)||n.alg!==e))}catch{return!1}}a(xT,"isValidJWT");var Ad=w("$ZodJWT",(t,e)=>{Xe.init(t,e),t._zod.check=r=>{xT(r.value,e.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:t,continue:!e.abort})}}),wd=w("$ZodCustomStringFormat",(t,e)=>{Xe.init(t,e),t._zod.check=r=>{e.fn(r.value)||r.issues.push({code:"invalid_format",format:e.format,input:r.value,inst:t,continue:!e.abort})}}),ra=w("$ZodNumber",(t,e)=>{Te.init(t,e),t._zod.pattern=t._zod.bag.pattern??ed,t._zod.parse=(r,o)=>{if(e.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let i=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:t,...i?{received:i}:{}}),r}}),Ns=w("$ZodNumberFormat",(t,e)=>{bg.init(t,e),ra.init(t,e)}),Ko=w("$ZodBoolean",(t,e)=>{Te.init(t,e),t._zod.pattern=mg,t._zod.parse=(r,o)=>{if(e.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:t}),r}}),na=w("$ZodBigInt",(t,e)=>{Te.init(t,e),t._zod.pattern=pg,t._zod.parse=(r,o)=>{if(e.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:t}),r}}),Id=w("$ZodBigIntFormat",(t,e)=>{Eg.init(t,e),na.init(t,e)}),Cd=w("$ZodSymbol",(t,e)=>{Te.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:t}),r}}),Rd=w("$ZodUndefined",(t,e)=>{Te.init(t,e),t._zod.pattern=gg,t._zod.values=new Set([void 0]),t._zod.optin="optional",t._zod.optout="optional",t._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:t}),r}}),Od=w("$ZodNull",(t,e)=>{Te.init(t,e),t._zod.pattern=hg,t._zod.values=new Set([null]),t._zod.parse=(r,o)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:t}),r}}),$s=w("$ZodAny",(t,e)=>{Te.init(t,e),t._zod.parse=r=>r}),zs=w("$ZodUnknown",(t,e)=>{Te.init(t,e),t._zod.parse=r=>r}),kd=w("$ZodNever",(t,e)=>{Te.init(t,e),t._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:t}),r)}),Ds=w("$ZodVoid",(t,e)=>{Te.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:t}),r}}),Us=w("$ZodDate",(t,e)=>{Te.init(t,e),t._zod.parse=(r,o)=>{if(e.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,i=n instanceof Date;return i&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...i?{received:"Invalid Date"}:{},inst:t}),r}});function pT(t,e,r){t.issues.length&&e.issues.push(...lr(r,t.issues)),e.value[r]=t.value}a(pT,"handleArrayResult");var Ms=w("$ZodArray",(t,e)=>{Te.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:t}),r;r.value=Array(n.length);let i=[];for(let s=0;s<n.length;s++){let u=n[s],l=e.element._zod.run({value:u,issues:[]},o);l instanceof Promise?i.push(l.then(p=>pT(p,r,s))):pT(l,r,s)}return i.length?Promise.all(i).then(()=>r):r}});function sd(t,e,r,o,n){if(t.issues.length){if(n&&!(r in o))return;e.issues.push(...lr(r,t.issues))}t.value===void 0?r in o&&(e.value[r]=void 0):e.value[r]=t.value}a(sd,"handlePropertyResult");function TT(t){let e=Object.keys(t.shape);for(let o of e)if(!t.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let r=Bh(t.shape);return{...t,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(r)}}a(TT,"normalizeDef");function AT(t,e,r,o,n,i){let s=[],u=n.keySet,l=n.catchall._zod,p=l.def.type,f=l.optout==="optional";for(let y in e){if(u.has(y))continue;if(p==="never"){s.push(y);continue}let m=l.run({value:e[y],issues:[]},o);m instanceof Promise?t.push(m.then(h=>sd(h,r,y,e,f))):sd(m,r,y,e,f)}return s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:e,inst:i}),t.length?Promise.all(t).then(()=>r):r}a(AT,"handleCatchall");var Nd=w("$ZodObject",(t,e)=>{if(Te.init(t,e),!Object.getOwnPropertyDescriptor(e,"shape")?.get){let u=e.shape;Object.defineProperty(e,"shape",{get:a(()=>{let l={...u};return Object.defineProperty(e,"shape",{value:l}),l},"get")})}let o=Vi(()=>TT(e));De(t._zod,"propValues",()=>{let u=e.shape,l={};for(let p in u){let f=u[p]._zod;if(f.values){l[p]??(l[p]=new Set);for(let y of f.values)l[p].add(y)}}return l});let n=Vo,i=e.catchall,s;t._zod.parse=(u,l)=>{s??(s=o.value);let p=u.value;if(!n(p))return u.issues.push({expected:"object",code:"invalid_type",input:p,inst:t}),u;u.value={};let f=[],y=s.shape;for(let m of s.keys){let h=y[m],_=h._zod.optout==="optional",P=h._zod.run({value:p[m],issues:[]},l);P instanceof Promise?f.push(P.then(S=>sd(S,u,m,p,_))):sd(P,u,m,p,_)}return i?AT(f,p,u,l,o.value,t):f.length?Promise.all(f).then(()=>u):u}}),jg=w("$ZodObjectJIT",(t,e)=>{Nd.init(t,e);let r=t._zod.parse,o=Vi(()=>TT(e)),n=a(m=>{let h=new ws(["shape","payload","ctx"]),_=o.value,P=a(L=>{let Y=jl(L);return`shape[${Y}]._zod.run({ value: input[${Y}], issues: [] }, ctx)`},"parseStr");h.write("const input = payload.value;");let S=Object.create(null),T=0;for(let L of _.keys)S[L]=`key_${T++}`;h.write("const newResult = {};");for(let L of _.keys){let Y=S[L],H=jl(L),re=m[L]?._zod?.optout==="optional";h.write(`const ${Y} = ${P(L)};`),re?h.write(`
72
72
  if (${Y}.issues.length) {
73
73
  if (${H} in input) {
74
74
  payload.issues = payload.issues.concat(${Y}.issues.map(iss => ({
@@ -102,9 +102,9 @@ content-type: ${T["content-type"]}\r
102
102
  newResult[${H}] = ${Y}.value;
103
103
  }
104
104
 
105
- `)}h.write("payload.value = newResult;"),h.write("return payload;");let k=h.compile();return(L,Y)=>k(m,L,Y)},"generateFastpass"),i,s=Vo,u=!gs.jitless,p=u&&jh.value,f=e.catchall,y;t._zod.parse=(m,h)=>{y??(y=o.value);let _=m.value;return s(_)?u&&p&&h?.async===!1&&h.jitless!==!0?(i||(i=n(e.shape)),m=i(m,h),f?AT([],_,m,h,y,t):m):r(m,h):(m.issues.push({expected:"object",code:"invalid_type",input:_,inst:t}),m)}});function fT(t,e,r,o){for(let i of t)if(i.issues.length===0)return e.value=i.value,e;let n=t.filter(i=>!uo(i));return n.length===1?(e.value=n[0].value,n[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(i=>i.issues.map(s=>Yt(s,o,pt())))}),e)}a(fT,"handleUnionResults");var Jo=w("$ZodUnion",(t,e)=>{Te.init(t,e),De(t._zod,"optin",()=>e.options.some(n=>n._zod.optin==="optional")?"optional":void 0),De(t._zod,"optout",()=>e.options.some(n=>n._zod.optout==="optional")?"optional":void 0),De(t._zod,"values",()=>{if(e.options.every(n=>n._zod.values))return new Set(e.options.flatMap(n=>Array.from(n._zod.values)))}),De(t._zod,"pattern",()=>{if(e.options.every(n=>n._zod.pattern)){let n=e.options.map(i=>i._zod.pattern);return new RegExp(`^(${n.map(i=>bs(i.source)).join("|")})$`)}});let r=e.options.length===1,o=e.options[0]._zod.run;t._zod.parse=(n,i)=>{if(r)return o(n,i);let s=!1,u=[];for(let l of e.options){let p=l._zod.run({value:n.value,issues:[]},i);if(p instanceof Promise)u.push(p),s=!0;else{if(p.issues.length===0)return p;u.push(p)}}return s?Promise.all(u).then(l=>fT(l,n,t,i)):fT(u,n,t,i)}});function mT(t,e,r,o){let n=t.filter(i=>i.issues.length===0);return n.length===1?(e.value=n[0].value,e):(n.length===0?e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(i=>i.issues.map(s=>Yt(s,o,pt())))}):e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:[],inclusive:!1}),e)}a(mT,"handleExclusiveUnionResults");var $d=w("$ZodXor",(t,e)=>{Jo.init(t,e),e.inclusive=!1;let r=e.options.length===1,o=e.options[0]._zod.run;t._zod.parse=(n,i)=>{if(r)return o(n,i);let s=!1,u=[];for(let l of e.options){let p=l._zod.run({value:n.value,issues:[]},i);p instanceof Promise?(u.push(p),s=!0):u.push(p)}return s?Promise.all(u).then(l=>mT(l,n,t,i)):mT(u,n,t,i)}}),Ls=w("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,Jo.init(t,e);let r=t._zod.parse;De(t._zod,"propValues",()=>{let n={};for(let i of e.options){let s=i._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(i)}"`);for(let[u,l]of Object.entries(s)){n[u]||(n[u]=new Set);for(let p of l)n[u].add(p)}}return n});let o=Vi(()=>{let n=e.options,i=new Map;for(let s of n){let u=s._zod.propValues?.[e.discriminator];if(!u||u.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(s)}"`);for(let l of u){if(i.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);i.set(l,s)}}return i});t._zod.parse=(n,i)=>{let s=n.value;if(!Vo(s))return n.issues.push({code:"invalid_type",expected:"object",input:s,inst:t}),n;let u=o.value.get(s?.[e.discriminator]);return u?u._zod.run(n,i):e.unionFallback?r(n,i):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,input:s,path:[e.discriminator],inst:t}),n)}}),zd=w("$ZodIntersection",(t,e)=>{Te.init(t,e),t._zod.parse=(r,o)=>{let n=r.value,i=e.left._zod.run({value:n,issues:[]},o),s=e.right._zod.run({value:n,issues:[]},o);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([l,p])=>hT(r,l,p)):hT(r,i,s)}});function Mg(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&e instanceof Date&&+t==+e)return{valid:!0,data:t};if(co(t)&&co(e)){let r=Object.keys(e),o=Object.keys(t).filter(i=>r.indexOf(i)!==-1),n={...t,...e};for(let i of o){let s=Mg(t[i],e[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};n[i]=s.data}return{valid:!0,data:n}}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let o=0;o<t.length;o++){let n=t[o],i=e[o],s=Mg(n,i);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}a(Mg,"mergeValues");function hT(t,e,r){let o=new Map,n;for(let u of e.issues)if(u.code==="unrecognized_keys"){n??(n=u);for(let l of u.keys)o.has(l)||o.set(l,{}),o.get(l).l=!0}else t.issues.push(u);for(let u of r.issues)if(u.code==="unrecognized_keys")for(let l of u.keys)o.has(l)||o.set(l,{}),o.get(l).r=!0;else t.issues.push(u);let i=[...o].filter(([,u])=>u.l&&u.r).map(([u])=>u);if(i.length&&n&&t.issues.push({...n,keys:i}),uo(t))return t;let s=Mg(e.value,r.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return t.value=s.data,t}a(hT,"handleIntersectionResults");var js=w("$ZodTuple",(t,e)=>{Te.init(t,e);let r=e.items;t._zod.parse=(o,n)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:t,expected:"tuple",code:"invalid_type"}),o;o.value=[];let s=[],u=[...r].reverse().findIndex(f=>f._zod.optin!=="optional"),l=u===-1?0:r.length-u;if(!e.rest){let f=i.length>r.length,y=i.length<l-1;if(f||y)return o.issues.push({...f?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:i,inst:t,origin:"array"}),o}let p=-1;for(let f of r){if(p++,p>=i.length&&p>=l)continue;let y=f._zod.run({value:i[p],issues:[]},n);y instanceof Promise?s.push(y.then(m=>nd(m,o,p))):nd(y,o,p)}if(e.rest){let f=i.slice(r.length);for(let y of f){p++;let m=e.rest._zod.run({value:y,issues:[]},n);m instanceof Promise?s.push(m.then(h=>nd(h,o,p))):nd(m,o,p)}}return s.length?Promise.all(s).then(()=>o):o}});function nd(t,e,r){t.issues.length&&e.issues.push(...lr(r,t.issues)),e.value[r]=t.value}a(nd,"handleTupleResult");var Fs=w("$ZodRecord",(t,e)=>{Te.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;if(!co(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:t}),r;let i=[],s=e.keyType._zod.values;if(s){r.value={};let u=new Set;for(let p of s)if(typeof p=="string"||typeof p=="number"||typeof p=="symbol"){u.add(typeof p=="number"?p.toString():p);let f=e.valueType._zod.run({value:n[p],issues:[]},o);f instanceof Promise?i.push(f.then(y=>{y.issues.length&&r.issues.push(...lr(p,y.issues)),r.value[p]=y.value})):(f.issues.length&&r.issues.push(...lr(p,f.issues)),r.value[p]=f.value)}let l;for(let p in n)u.has(p)||(l=l??[],l.push(p));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:t,keys:l})}else{r.value={};for(let u of Reflect.ownKeys(n)){if(u==="__proto__")continue;let l=e.keyType._zod.run({value:u,issues:[]},o);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&ed.test(u)&&l.issues.length){let y=e.keyType._zod.run({value:Number(u),issues:[]},o);if(y instanceof Promise)throw new Error("Async schemas not supported in object keys currently");y.issues.length===0&&(l=y)}if(l.issues.length){e.mode==="loose"?r.value[u]=n[u]:r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(y=>Yt(y,o,pt())),input:u,path:[u],inst:t});continue}let f=e.valueType._zod.run({value:n[u],issues:[]},o);f instanceof Promise?i.push(f.then(y=>{y.issues.length&&r.issues.push(...lr(u,y.issues)),r.value[l.value]=y.value})):(f.issues.length&&r.issues.push(...lr(u,f.issues)),r.value[l.value]=f.value)}}return i.length?Promise.all(i).then(()=>r):r}}),Dd=w("$ZodMap",(t,e)=>{Te.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:t}),r;let i=[];r.value=new Map;for(let[s,u]of n){let l=e.keyType._zod.run({value:s,issues:[]},o),p=e.valueType._zod.run({value:u,issues:[]},o);l instanceof Promise||p instanceof Promise?i.push(Promise.all([l,p]).then(([f,y])=>{gT(f,y,r,s,n,t,o)})):gT(l,p,r,s,n,t,o)}return i.length?Promise.all(i).then(()=>r):r}});function gT(t,e,r,o,n,i,s){t.issues.length&&(Ps.has(typeof o)?r.issues.push(...lr(o,t.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:i,issues:t.issues.map(u=>Yt(u,s,pt()))})),e.issues.length&&(Ps.has(typeof o)?r.issues.push(...lr(o,e.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:i,key:o,issues:e.issues.map(u=>Yt(u,s,pt()))})),r.value.set(t.value,e.value)}a(gT,"handleMapResult");var Ud=w("$ZodSet",(t,e)=>{Te.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:t,expected:"set",code:"invalid_type"}),r;let i=[];r.value=new Set;for(let s of n){let u=e.valueType._zod.run({value:s,issues:[]},o);u instanceof Promise?i.push(u.then(l=>yT(l,r))):yT(u,r)}return i.length?Promise.all(i).then(()=>r):r}});function yT(t,e){t.issues.length&&e.issues.push(...t.issues),e.value.add(t.value)}a(yT,"handleSetResult");var Bs=w("$ZodEnum",(t,e)=>{Te.init(t,e);let r=vs(e.entries),o=new Set(r);t._zod.values=o,t._zod.pattern=new RegExp(`^(${r.filter(n=>Ps.has(typeof n)).map(n=>typeof n=="string"?Cr(n):n.toString()).join("|")})$`),t._zod.parse=(n,i)=>{let s=n.value;return o.has(s)||n.issues.push({code:"invalid_value",values:r,input:s,inst:t}),n}}),qs=w("$ZodLiteral",(t,e)=>{if(Te.init(t,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(e.values);t._zod.values=r,t._zod.pattern=new RegExp(`^(${e.values.map(o=>typeof o=="string"?Cr(o):o?Cr(o.toString()):String(o)).join("|")})$`),t._zod.parse=(o,n)=>{let i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:e.values,input:i,inst:t}),o}}),Md=w("$ZodFile",(t,e)=>{Te.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:t}),r}}),Gs=w("$ZodTransform",(t,e)=>{Te.init(t,e),t._zod.parse=(r,o)=>{if(o.direction==="backward")throw new io(t.constructor.name);let n=e.transform(r.value,r);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then(s=>(r.value=s,r));if(n instanceof Promise)throw new Vr;return r.value=n,r}});function _T(t,e){return t.issues.length&&e===void 0?{issues:[],value:void 0}:t}a(_T,"handleOptionalResult");var oa=w("$ZodOptional",(t,e)=>{Te.init(t,e),t._zod.optin="optional",t._zod.optout="optional",De(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),De(t._zod,"pattern",()=>{let r=e.innerType._zod.pattern;return r?new RegExp(`^(${bs(r.source)})?$`):void 0}),t._zod.parse=(r,o)=>{if(e.innerType._zod.optin==="optional"){let n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>_T(i,r.value)):_T(n,r.value)}return r.value===void 0?r:e.innerType._zod.run(r,o)}}),Ld=w("$ZodExactOptional",(t,e)=>{oa.init(t,e),De(t._zod,"values",()=>e.innerType._zod.values),De(t._zod,"pattern",()=>e.innerType._zod.pattern),t._zod.parse=(r,o)=>e.innerType._zod.run(r,o)}),Vs=w("$ZodNullable",(t,e)=>{Te.init(t,e),De(t._zod,"optin",()=>e.innerType._zod.optin),De(t._zod,"optout",()=>e.innerType._zod.optout),De(t._zod,"pattern",()=>{let r=e.innerType._zod.pattern;return r?new RegExp(`^(${bs(r.source)}|null)$`):void 0}),De(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(r,o)=>r.value===null?r:e.innerType._zod.run(r,o)}),jd=w("$ZodDefault",(t,e)=>{Te.init(t,e),t._zod.optin="optional",De(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,o)=>{if(o.direction==="backward")return e.innerType._zod.run(r,o);if(r.value===void 0)return r.value=e.defaultValue,r;let n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>vT(i,e)):vT(n,e)}});function vT(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}a(vT,"handleDefaultResult");var Fd=w("$ZodPrefault",(t,e)=>{Te.init(t,e),t._zod.optin="optional",De(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,o)=>(o.direction==="backward"||r.value===void 0&&(r.value=e.defaultValue),e.innerType._zod.run(r,o))}),Bd=w("$ZodNonOptional",(t,e)=>{Te.init(t,e),De(t._zod,"values",()=>{let r=e.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),t._zod.parse=(r,o)=>{let n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>bT(i,t)):bT(n,t)}});function bT(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}a(bT,"handleNonOptionalResult");var qd=w("$ZodSuccess",(t,e)=>{Te.init(t,e),t._zod.parse=(r,o)=>{if(o.direction==="backward")throw new io("ZodSuccess");let n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),Gd=w("$ZodCatch",(t,e)=>{Te.init(t,e),De(t._zod,"optin",()=>e.innerType._zod.optin),De(t._zod,"optout",()=>e.innerType._zod.optout),De(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,o)=>{if(o.direction==="backward")return e.innerType._zod.run(r,o);let n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.value,i.issues.length&&(r.value=e.catchValue({...r,error:{issues:i.issues.map(s=>Yt(s,o,pt()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=e.catchValue({...r,error:{issues:n.issues.map(i=>Yt(i,o,pt()))},input:r.value}),r.issues=[]),r)}}),Vd=w("$ZodNaN",(t,e)=>{Te.init(t,e),t._zod.parse=(r,o)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:t,expected:"nan",code:"invalid_type"}),r)}),Hs=w("$ZodPipe",(t,e)=>{Te.init(t,e),De(t._zod,"values",()=>e.in._zod.values),De(t._zod,"optin",()=>e.in._zod.optin),De(t._zod,"optout",()=>e.out._zod.optout),De(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(r,o)=>{if(o.direction==="backward"){let i=e.out._zod.run(r,o);return i instanceof Promise?i.then(s=>od(s,e.in,o)):od(i,e.in,o)}let n=e.in._zod.run(r,o);return n instanceof Promise?n.then(i=>od(i,e.out,o)):od(n,e.out,o)}});function od(t,e,r){return t.issues.length?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues},r)}a(od,"handlePipeResult");var ia=w("$ZodCodec",(t,e)=>{Te.init(t,e),De(t._zod,"values",()=>e.in._zod.values),De(t._zod,"optin",()=>e.in._zod.optin),De(t._zod,"optout",()=>e.out._zod.optout),De(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(r,o)=>{if((o.direction||"forward")==="forward"){let i=e.in._zod.run(r,o);return i instanceof Promise?i.then(s=>id(s,e,o)):id(i,e,o)}else{let i=e.out._zod.run(r,o);return i instanceof Promise?i.then(s=>id(s,e,o)):id(i,e,o)}}});function id(t,e,r){if(t.issues.length)return t.aborted=!0,t;if((r.direction||"forward")==="forward"){let n=e.transform(t.value,t);return n instanceof Promise?n.then(i=>ad(t,i,e.out,r)):ad(t,n,e.out,r)}else{let n=e.reverseTransform(t.value,t);return n instanceof Promise?n.then(i=>ad(t,i,e.in,r)):ad(t,n,e.in,r)}}a(id,"handleCodecAResult");function ad(t,e,r,o){return t.issues.length?(t.aborted=!0,t):r._zod.run({value:e,issues:t.issues},o)}a(ad,"handleCodecTxResult");var Hd=w("$ZodReadonly",(t,e)=>{Te.init(t,e),De(t._zod,"propValues",()=>e.innerType._zod.propValues),De(t._zod,"values",()=>e.innerType._zod.values),De(t._zod,"optin",()=>e.innerType?._zod?.optin),De(t._zod,"optout",()=>e.innerType?._zod?.optout),t._zod.parse=(r,o)=>{if(o.direction==="backward")return e.innerType._zod.run(r,o);let n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(PT):PT(n)}});function PT(t){return t.value=Object.freeze(t.value),t}a(PT,"handleReadonlyResult");var Zd=w("$ZodTemplateLiteral",(t,e)=>{Te.init(t,e);let r=[];for(let o of e.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 n=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=n.startsWith("^")?1:0,s=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(i,s))}else if(o===null||Fh.has(typeof o))r.push(Cr(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);t._zod.pattern=new RegExp(`^${r.join("")}$`),t._zod.parse=(o,n)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:t,expected:"string",code:"invalid_type"}),o):(t._zod.pattern.lastIndex=0,t._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:t,code:"invalid_format",format:e.format??"template_literal",pattern:t._zod.pattern.source}),o)}),Wd=w("$ZodFunction",(t,e)=>(Te.init(t,e),t._def=e,t._zod.def=e,t.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...o){let n=t._def.input?Ho(t._def.input,o):o,i=Reflect.apply(r,this,n);return t._def.output?Ho(t._def.output,i):i}},t.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let n=t._def.input?await Zo(t._def.input,o):o,i=await Reflect.apply(r,this,n);return t._def.output?await Zo(t._def.output,i):i}},t._zod.parse=(r,o)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:t}),r):(t._def.output&&t._def.output._zod.def.type==="promise"?r.value=t.implementAsync(r.value):r.value=t.implement(r.value),r),t.input=(...r)=>{let o=t.constructor;return Array.isArray(r[0])?new o({type:"function",input:new js({type:"tuple",items:r[0],rest:r[1]}),output:t._def.output}):new o({type:"function",input:r[0],output:t._def.output})},t.output=r=>{let o=t.constructor;return new o({type:"function",input:t._def.input,output:r})},t)),Kd=w("$ZodPromise",(t,e)=>{Te.init(t,e),t._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>e.innerType._zod.run({value:n,issues:[]},o))}),Jd=w("$ZodLazy",(t,e)=>{Te.init(t,e),De(t._zod,"innerType",()=>e.getter()),De(t._zod,"pattern",()=>t._zod.innerType?._zod?.pattern),De(t._zod,"propValues",()=>t._zod.innerType?._zod?.propValues),De(t._zod,"optin",()=>t._zod.innerType?._zod?.optin??void 0),De(t._zod,"optout",()=>t._zod.innerType?._zod?.optout??void 0),t._zod.parse=(r,o)=>t._zod.innerType._zod.run(r,o)}),Zs=w("$ZodCustom",(t,e)=>{rt.init(t,e),Te.init(t,e),t._zod.parse=(r,o)=>r,t._zod.check=r=>{let o=r.value,n=e.fn(o);if(n instanceof Promise)return n.then(i=>ET(i,r,o,t));ET(n,r,o,t)}});function ET(t,e,r,o){if(!t){let n={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(n.params=o._zod.def.params),e.issues.push(Hi(n))}}a(ET,"handleRefineResult");var sa={};Xt(sa,{ar:()=>Fg,az:()=>Bg,be:()=>qg,bg:()=>Gg,ca:()=>Vg,cs:()=>Hg,da:()=>Zg,de:()=>Wg,en:()=>Ws,eo:()=>Kg,es:()=>Jg,fa:()=>Xg,fi:()=>Yg,fr:()=>Qg,frCA:()=>ey,he:()=>ty,hu:()=>ry,hy:()=>ny,id:()=>oy,is:()=>iy,it:()=>ay,ja:()=>sy,ka:()=>cy,kh:()=>uy,km:()=>Ks,ko:()=>ly,lt:()=>dy,mk:()=>py,ms:()=>fy,nl:()=>my,no:()=>hy,ota:()=>gy,pl:()=>_y,ps:()=>yy,pt:()=>vy,ru:()=>by,sl:()=>Py,sv:()=>Ey,ta:()=>Sy,th:()=>xy,tr:()=>Ty,ua:()=>Ay,uk:()=>Xs,ur:()=>wy,uz:()=>Iy,vi:()=>Cy,yo:()=>ky,zhCN:()=>Ry,zhTW:()=>Oy});var QM=a(()=>{let t={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${n.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${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 n.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${ne(n.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()} ${s.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;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 "${n.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}`:`${r[i.format]??n.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${G(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}},"error");function Fg(){return{localeError:QM()}}a(Fg,"default");var e1=a(()=>{let t={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${u}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${u}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${ne(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()} ${s.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()} ${s.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${G(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}},"error");function Bg(){return{localeError:e1()}}a(Bg,"default");function wT(t,e,r,o){let n=Math.abs(t),i=n%10,s=n%100;return s>=11&&s<=19?o:i===1?e:i>=2&&i<=4?r:o}a(wT,"getBelarusianPlural");var t1=a(()=>{let t={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${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 n.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${ne(n.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);if(s){let u=Number(n.maximum),l=wT(u,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${i}${n.maximum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);if(s){let u=Number(n.minimum),l=wT(u,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${i}${n.minimum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${G(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}},"error");function qg(){return{localeError:t1()}}a(qg,"default");var r1=a(()=>{let t={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${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 n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${ne(n.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.minimum.toString()} ${s.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${s} ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${G(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}},"error");function Gg(){return{localeError:r1()}}a(Gg,"default");var n1=a(()=>{let t={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${u}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${u}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${ne(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${G(n.values," o ")}`;case"too_big":{let i=n.inclusive?"com a m\xE0xim":"menys de",s=e(n.origin);return s?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${i} ${n.maximum.toString()} ${s.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"com a m\xEDnim":"m\xE9s de",s=e(n.origin);return s?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${i} ${n.minimum.toString()} ${s.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}},"error");function Vg(){return{localeError:n1()}}a(Vg,"default");var o1=a(()=>{let t={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${u}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${u}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${ne(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.maximum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.minimum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${G(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}},"error");function Hg(){return{localeError:o1()}}a(Hg,"default");var i1=a(()=>{let t={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${u}`:`Ugyldigt input: forventede ${i}, fik ${u}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${ne(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin),u=o[n.origin]??n.origin;return s?`For stor: forventede ${u??"value"} ${s.verb} ${i} ${n.maximum.toString()} ${s.unit??"elementer"}`:`For stor: forventede ${u??"value"} havde ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin),u=o[n.origin]??n.origin;return s?`For lille: forventede ${u} ${s.verb} ${i} ${n.minimum.toString()} ${s.unit}`:`For lille: forventede ${u} havde ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${G(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${n.origin}`;default:return"Ugyldigt input"}}},"error");function Zg(){return{localeError:i1()}}a(Zg,"default");var a1=a(()=>{let t={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${u}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${u}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${ne(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ${s.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ist`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ${s.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ist`}case"invalid_format":{let i=n;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: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${G(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}},"error");function Wg(){return{localeError:a1()}}a(Wg,"default");var s1=a(()=>{let t={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return`Invalid input: expected ${i}, received ${u}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${ne(n.values[0])}`:`Invalid option: expected one of ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Too big: expected ${n.origin??"value"} to have ${i}${n.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Too small: expected ${n.origin} to have ${i}${n.minimum.toString()} ${s.unit}`:`Too small: expected ${n.origin} to be ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}},"error");function Ws(){return{localeError:s1()}}a(Ws,"default");var c1=a(()=>{let t={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${u}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${u}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${ne(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()} ${s.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${i}${n.minimum.toString()} ${s.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}},"error");function Kg(){return{localeError:c1()}}a(Kg,"default");var u1=a(()=>{let t={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${u}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${u}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${ne(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin),u=o[n.origin]??n.origin;return s?`Demasiado grande: se esperaba que ${u??"valor"} tuviera ${i}${n.maximum.toString()} ${s.unit??"elementos"}`:`Demasiado grande: se esperaba que ${u??"valor"} fuera ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin),u=o[n.origin]??n.origin;return s?`Demasiado peque\xF1o: se esperaba que ${u} tuviera ${i}${n.minimum.toString()} ${s.unit}`:`Demasiado peque\xF1o: se esperaba que ${u} fuera ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}},"error");function Jg(){return{localeError:u1()}}a(Jg,"default");var l1=a(()=>{let t={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${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 n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${ne(n.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${G(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${s.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=n;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`:`${r[i.format]??n.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${G(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}},"error");function Xg(){return{localeError:l1()}}a(Xg,"default");var d1=a(()=>{let t={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${u}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${u}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${ne(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Liian suuri: ${s.subject} t\xE4ytyy olla ${i}${n.maximum.toString()} ${s.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Liian pieni: ${s.subject} t\xE4ytyy olla ${i}${n.minimum.toString()} ${s.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${G(n.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}},"error");function Yg(){return{localeError:d1()}}a(Yg,"default");var p1=a(()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${u} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${u} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${ne(n.values[0])} attendu`:`Option invalide : une valeur parmi ${G(n.values,"|")} attendue`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Trop grand : ${n.origin??"valeur"} doit ${s.verb} ${i}${n.maximum.toString()} ${s.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${n.origin??"valeur"} doit \xEAtre ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Trop petit : ${n.origin} doit ${s.verb} ${i}${n.minimum.toString()} ${s.unit}`:`Trop petit : ${n.origin} doit \xEAtre ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${G(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}},"error");function Qg(){return{localeError:p1()}}a(Qg,"default");var f1=a(()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${u}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${u}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${ne(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u2264":"<",s=e(n.origin);return s?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${i}${n.maximum.toString()} ${s.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u2265":">",s=e(n.origin);return s?`Trop petit : attendu que ${n.origin} ait ${i}${n.minimum.toString()} ${s.unit}`:`Trop petit : attendu que ${n.origin} soit ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${G(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}},"error");function ey(){return{localeError:f1()}}a(ey,"default");var m1=a(()=>{let t={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},e={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"}},r=a(p=>p?t[p]:void 0,"typeEntry"),o=a(p=>{let f=r(p);return f?f.label:p??t.unknown.label},"typeLabel"),n=a(p=>`\u05D4${o(p)}`,"withDefinite"),i=a(p=>(r(p)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA","verbFor"),s=a(p=>p?e[p]??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"}},l={nan:"NaN"};return p=>{switch(p.code){case"invalid_type":{let f=p.expected,y=l[f??""]??o(f),m=ae(p.input),h=l[m]??t[m]?.label??m;return/^[A-Z]/.test(p.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${p.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${h}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${y}, \u05D4\u05EA\u05E7\u05D1\u05DC ${h}`}case"invalid_value":{if(p.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 ${ne(p.values[0])}`;let f=p.values.map(h=>ne(h));if(p.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${f[0]} \u05D0\u05D5 ${f[1]}`;let y=f[f.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${f.slice(0,-1).join(", ")} \u05D0\u05D5 ${y}`}case"too_big":{let f=s(p.origin),y=n(p.origin??"value");if(p.origin==="string")return`${f?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${y} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${p.maximum.toString()} ${f?.unit??""} ${p.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(p.origin==="number"){let _=p.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${p.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${p.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${y} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${_}`}if(p.origin==="array"||p.origin==="set"){let _=p.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",E=p.inclusive?`${p.maximum} ${f?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${p.maximum} ${f?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${y} ${_} \u05DC\u05D4\u05DB\u05D9\u05DC ${E}`.trim()}let m=p.inclusive?"<=":"<",h=i(p.origin??"value");return f?.unit?`${f.longLabel} \u05DE\u05D3\u05D9: ${y} ${h} ${m}${p.maximum.toString()} ${f.unit}`:`${f?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${y} ${h} ${m}${p.maximum.toString()}`}case"too_small":{let f=s(p.origin),y=n(p.origin??"value");if(p.origin==="string")return`${f?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${y} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${p.minimum.toString()} ${f?.unit??""} ${p.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(p.origin==="number"){let _=p.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${p.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${p.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${y} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${_}`}if(p.origin==="array"||p.origin==="set"){let _=p.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(p.minimum===1&&p.inclusive){let S=(p.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${y} ${_} \u05DC\u05D4\u05DB\u05D9\u05DC ${S}`}let E=p.inclusive?`${p.minimum} ${f?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${p.minimum} ${f?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${y} ${_} \u05DC\u05D4\u05DB\u05D9\u05DC ${E}`.trim()}let m=p.inclusive?">=":">",h=i(p.origin??"value");return f?.unit?`${f.shortLabel} \u05DE\u05D3\u05D9: ${y} ${h} ${m}${p.minimum.toString()} ${f.unit}`:`${f?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${y} ${h} ${m}${p.minimum.toString()}`}case"invalid_format":{let f=p;if(f.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${f.prefix}"`;if(f.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${f.suffix}"`;if(f.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${f.includes}"`;if(f.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${f.pattern}`;let y=u[f.format],m=y?.label??f.format,_=(y?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${m} \u05DC\u05D0 ${_}`}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 ${p.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${p.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${p.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${G(p.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${n(p.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}},"error");function ty(){return{localeError:m1()}}a(ty,"default");var h1=a(()=>{let t={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${u}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${u}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${ne(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${n.maximum.toString()} ${s.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${i}${n.minimum.toString()} ${s.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}},"error");function ry(){return{localeError:h1()}}a(ry,"default");function IT(t,e,r){return Math.abs(t)===1?e:r}a(IT,"getArmenianPlural");function aa(t){if(!t)return"";let e=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=t[t.length-1];return t+(e.includes(r)?"\u0576":"\u0568")}a(aa,"withDefiniteArticle");var g1=a(()=>{let t={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${n.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${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 n.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${ne(n.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);if(s){let u=Number(n.maximum),l=IT(u,s.unit.one,s.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${aa(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.maximum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${aa(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);if(s){let u=Number(n.minimum),l=IT(u,s.unit.one,s.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${aa(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.minimum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${aa(n.origin)} \u056C\u056B\u0576\u056B ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${n.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${G(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${aa(n.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${aa(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}},"error");function ny(){return{localeError:g1()}}a(ny,"default");var y1=a(()=>{let t={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${u}`:`Input tidak valid: diharapkan ${i}, diterima ${u}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${ne(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${i}${n.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Terlalu kecil: diharapkan ${n.origin} memiliki ${i}${n.minimum.toString()} ${s.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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}`:`${r[i.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}},"error");function oy(){return{localeError:y1()}}a(oy,"default");var _1=a(()=>{let t={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${u} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${u} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${ne(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${i}${n.maximum.toString()} ${s.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${i}${n.minimum.toString()} ${s.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${G(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}},"error");function iy(){return{localeError:_1()}}a(iy,"default");var v1=a(()=>{let t={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${u}`:`Input non valido: atteso ${i}, ricevuto ${u}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${ne(n.values[0])}`:`Opzione non valida: atteso uno tra ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Troppo grande: ${n.origin??"valore"} deve avere ${i}${n.maximum.toString()} ${s.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Troppo piccolo: ${n.origin} deve avere ${i}${n.minimum.toString()} ${s.unit}`:`Troppo piccolo: ${n.origin} deve essere ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${G(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}},"error");function ay(){return{localeError:v1()}}a(ay,"default");var b1=a(()=>{let t={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${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 n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${ne(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${G(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",s=e(n.origin);return s?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${s.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",s=e(n.origin);return s?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${s.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=n;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${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${n.keys.length>1?"\u7FA4":""}: ${G(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}},"error");function sy(){return{localeError:b1()}}a(sy,"default");var P1=a(()=>{let t={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${n.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${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 n.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${ne(n.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${G(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${s.verb} ${i}${n.maximum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} ${s.verb} ${i}${n.minimum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${n.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${G(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}},"error");function cy(){return{localeError:P1()}}a(cy,"default");var E1=a(()=>{let t={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${n.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${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 n.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${ne(n.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()} ${s.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()} ${s.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${G(n.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}},"error");function Ks(){return{localeError:E1()}}a(Ks,"default");function uy(){return Ks()}a(uy,"default");var S1=a(()=>{let t={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${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 n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${ne(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${G(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",s=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",u=e(n.origin),l=u?.unit??"\uC694\uC18C";return u?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${l} ${i}${s}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${i}${s}`}case"too_small":{let i=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",s=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",u=e(n.origin),l=u?.unit??"\uC694\uC18C";return u?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${l} ${i}${s}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${i}${s}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${G(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}},"error");function ly(){return{localeError:S1()}}a(ly,"default");var Js=a(t=>t.charAt(0).toUpperCase()+t.slice(1),"capitalizeFirstCharacter");function CT(t){let e=Math.abs(t),r=e%10,o=e%100;return o>=11&&o<=19||r===0?"many":r===1?"one":"few"}a(CT,"getUnitTypeFromNumber");var x1=a(()=>{let t={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function e(n,i,s,u){let l=t[n]??null;return l===null?l:{unit:l.unit[i],verb:l.verb[u][s?"inclusive":"notInclusive"]}}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${u}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${u}, o tik\u0117tasi - ${i}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${ne(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${G(n.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[n.origin]??n.origin,s=e(n.origin,CT(Number(n.maximum)),n.inclusive??!1,"smaller");if(s?.verb)return`${Js(i??n.origin??"reik\u0161m\u0117")} ${s.verb} ${n.maximum.toString()} ${s.unit??"element\u0173"}`;let u=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Js(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${u} ${n.maximum.toString()} ${s?.unit}`}case"too_small":{let i=o[n.origin]??n.origin,s=e(n.origin,CT(Number(n.minimum)),n.inclusive??!1,"bigger");if(s?.verb)return`${Js(i??n.origin??"reik\u0161m\u0117")} ${s.verb} ${n.minimum.toString()} ${s.unit??"element\u0173"}`;let u=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Js(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${u} ${n.minimum.toString()} ${s?.unit}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${G(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=o[n.origin]??n.origin;return`${Js(i??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}},"error");function dy(){return{localeError:x1()}}a(dy,"default");var T1=a(()=>{let t={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${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 n.values.length===1?`Invalid input: expected ${ne(n.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.minimum.toString()} ${s.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${G(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}},"error");function py(){return{localeError:T1()}}a(py,"default");var A1=a(()=>{let t={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${u}`:`Input tidak sah: dijangka ${i}, diterima ${u}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${ne(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Terlalu besar: dijangka ${n.origin??"nilai"} ${s.verb} ${i}${n.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Terlalu kecil: dijangka ${n.origin} ${s.verb} ${i}${n.minimum.toString()} ${s.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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}`:`${r[i.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${G(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}},"error");function fy(){return{localeError:A1()}}a(fy,"default");var w1=a(()=>{let t={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${u}`:`Ongeldige invoer: verwacht ${i}, ontving ${u}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${ne(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin),u=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return s?`Te ${u}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} ${s.unit??"elementen"} ${s.verb}`:`Te ${u}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} is`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin),u=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return s?`Te ${u}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} ${s.unit} ${s.verb}`:`Te ${u}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} is`}case"invalid_format":{let i=n;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: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}},"error");function my(){return{localeError:w1()}}a(my,"default");var I1=a(()=>{let t={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${u}`:`Ugyldig input: forventet ${i}, fikk ${u}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${ne(n.values[0])}`:`Ugyldig valg: forventet en av ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()} ${s.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()} ${s.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${G(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}},"error");function hy(){return{localeError:I1()}}a(hy,"default");var C1=a(()=>{let t={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${u}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${u}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${ne(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} ${s.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} ${s.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}},"error");function gy(){return{localeError:C1()}}a(gy,"default");var R1=a(()=>{let t={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${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 n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${ne(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${G(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${s.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=n;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`:`${r[i.format]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${G(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}},"error");function yy(){return{localeError:R1()}}a(yy,"default");var O1=a(()=>{let t={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${u}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${u}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${ne(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.maximum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.minimum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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) ${r[i.format]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}},"error");function _y(){return{localeError:O1()}}a(_y,"default");var k1=a(()=>{let t={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${u}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${u}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${ne(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${i}${n.maximum.toString()} ${s.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Muito pequeno: esperado que ${n.origin} tivesse ${i}${n.minimum.toString()} ${s.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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}`:`${r[i.format]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}},"error");function vy(){return{localeError:k1()}}a(vy,"default");function RT(t,e,r,o){let n=Math.abs(t),i=n%10,s=n%100;return s>=11&&s<=19?o:i===1?e:i>=2&&i<=4?r:o}a(RT,"getRussianPlural");var N1=a(()=>{let t={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${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 n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${ne(n.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);if(s){let u=Number(n.maximum),l=RT(u,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.maximum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);if(s){let u=Number(n.minimum),l=RT(u,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.minimum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${G(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}},"error");function by(){return{localeError:N1()}}a(by,"default");var $1=a(()=>{let t={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${u}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${u}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${ne(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${i}${n.maximum.toString()} ${s.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${i}${n.minimum.toString()} ${s.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${G(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}},"error");function Py(){return{localeError:$1()}}a(Py,"default");var z1=a(()=>{let t={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${u}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${u}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${ne(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()} ${s.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()} ${s.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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) ${r[i.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${G(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}},"error");function Ey(){return{localeError:z1()}}a(Ey,"default");var D1=a(()=>{let t={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${n.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${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 n.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${ne(n.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${G(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.maximum.toString()} ${s.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${i}${n.minimum.toString()} ${s.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${i}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${G(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}},"error");function Sy(){return{localeError:D1()}}a(Sy,"default");var U1=a(()=>{let t={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${n.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${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 n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${ne(n.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",s=e(n.origin);return s?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()} ${s.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",s=e(n.origin);return s?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()} ${s.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;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: ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${n.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${G(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}},"error");function xy(){return{localeError:U1()}}a(xy,"default");var M1=a(()=>{let t={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${u}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${u}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${ne(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()} ${s.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()} ${s.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${G(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}},"error");function Ty(){return{localeError:M1()}}a(Ty,"default");var L1=a(()=>{let t={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${n.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${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 n.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${ne(n.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${s.verb} ${i}${n.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} ${s.verb} ${i}${n.minimum.toString()} ${s.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} \u0431\u0443\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${G(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${n.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}},"error");function Xs(){return{localeError:L1()}}a(Xs,"default");function Ay(){return Xs()}a(Ay,"default");var j1=a(()=>{let t={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${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 n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${ne(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${G(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${i}${n.minimum.toString()} ${s.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${i}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${n.keys.length>1?"\u0632":""}: ${G(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}},"error");function wy(){return{localeError:j1()}}a(wy,"default");var F1=a(()=>{let t={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${u}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${u}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${ne(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()} ${s.unit} ${s.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()} ${s.unit} ${s.verb}`:`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${G(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${n.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}},"error");function Iy(){return{localeError:F1()}}a(Iy,"default");var B1=a(()=>{let t={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${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 n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${ne(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${s.verb} ${i}${n.maximum.toString()} ${s.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${s.verb} ${i}${n.minimum.toString()} ${s.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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}`:`${r[i.format]??n.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${G(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}},"error");function Cy(){return{localeError:B1()}}a(Cy,"default");var q1=a(()=>{let t={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.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 n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${ne(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()} ${s.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()} ${s.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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${r[i.format]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${G(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}},"error");function Ry(){return{localeError:q1()}}a(Ry,"default");var G1=a(()=>{let t={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${u}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${u}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${ne(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()} ${s.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()} ${s.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${G(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}},"error");function Oy(){return{localeError:G1()}}a(Oy,"default");var V1=a(()=>{let t={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.expected}, \xE0m\u1ECD\u0300 a r\xED ${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 n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${ne(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${s.verb} ${i}${n.maximum} ${s.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.maximum}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${s.verb} ${i}${n.minimum} ${s.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.minimum}`}case"invalid_format":{let i=n;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: ${r[i.format]??n.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${G(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}},"error");function ky(){return{localeError:V1()}}a(ky,"default");var OT,Yd=Symbol("ZodOutput"),Qd=Symbol("ZodInput"),Xd=class{static{a(this,"$ZodRegistry")}constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...r){let o=r[0];return this._map.set(e,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let r=this._map.get(e);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(e),this}get(e){let r=e._zod.parent;if(r){let o={...this.get(r)??{}};delete o.id;let n={...o,...this._map.get(e)};return Object.keys(n).length?n:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Ys(){return new Xd}a(Ys,"registry");(OT=globalThis).__zod_globalRegistry??(OT.__zod_globalRegistry=Ys());var Ot=globalThis.__zod_globalRegistry;function Qs(t,e){return new t({type:"string",...te(e)})}a(Qs,"_string");function ec(t,e){return new t({type:"string",coerce:!0,...te(e)})}a(ec,"_coercedString");function tc(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...te(e)})}a(tc,"_email");function ca(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...te(e)})}a(ca,"_guid");function rc(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...te(e)})}a(rc,"_uuid");function nc(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...te(e)})}a(nc,"_uuidv4");function oc(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...te(e)})}a(oc,"_uuidv6");function ic(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...te(e)})}a(ic,"_uuidv7");function Xo(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...te(e)})}a(Xo,"_url");function ac(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...te(e)})}a(ac,"_emoji");function sc(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...te(e)})}a(sc,"_nanoid");function cc(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...te(e)})}a(cc,"_cuid");function uc(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...te(e)})}a(uc,"_cuid2");function lc(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...te(e)})}a(lc,"_ulid");function dc(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...te(e)})}a(dc,"_xid");function pc(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...te(e)})}a(pc,"_ksuid");function fc(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...te(e)})}a(fc,"_ipv4");function mc(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...te(e)})}a(mc,"_ipv6");function ep(t,e){return new t({type:"string",format:"mac",check:"string_format",abort:!1,...te(e)})}a(ep,"_mac");function hc(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...te(e)})}a(hc,"_cidrv4");function gc(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...te(e)})}a(gc,"_cidrv6");function yc(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...te(e)})}a(yc,"_base64");function _c(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...te(e)})}a(_c,"_base64url");function vc(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...te(e)})}a(vc,"_e164");function bc(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...te(e)})}a(bc,"_jwt");var tp={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Pc(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...te(e)})}a(Pc,"_isoDateTime");function Ec(t,e){return new t({type:"string",format:"date",check:"string_format",...te(e)})}a(Ec,"_isoDate");function Sc(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...te(e)})}a(Sc,"_isoTime");function xc(t,e){return new t({type:"string",format:"duration",check:"string_format",...te(e)})}a(xc,"_isoDuration");function Tc(t,e){return new t({type:"number",checks:[],...te(e)})}a(Tc,"_number");function Ac(t,e){return new t({type:"number",coerce:!0,checks:[],...te(e)})}a(Ac,"_coercedNumber");function wc(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...te(e)})}a(wc,"_int");function rp(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float32",...te(e)})}a(rp,"_float32");function np(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float64",...te(e)})}a(np,"_float64");function op(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"int32",...te(e)})}a(op,"_int32");function ip(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"uint32",...te(e)})}a(ip,"_uint32");function Ic(t,e){return new t({type:"boolean",...te(e)})}a(Ic,"_boolean");function Cc(t,e){return new t({type:"boolean",coerce:!0,...te(e)})}a(Cc,"_coercedBoolean");function ap(t,e){return new t({type:"bigint",...te(e)})}a(ap,"_bigint");function Rc(t,e){return new t({type:"bigint",coerce:!0,...te(e)})}a(Rc,"_coercedBigint");function sp(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...te(e)})}a(sp,"_int64");function cp(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...te(e)})}a(cp,"_uint64");function up(t,e){return new t({type:"symbol",...te(e)})}a(up,"_symbol");function lp(t,e){return new t({type:"undefined",...te(e)})}a(lp,"_undefined");function dp(t,e){return new t({type:"null",...te(e)})}a(dp,"_null");function Oc(t){return new t({type:"any"})}a(Oc,"_any");function kc(t){return new t({type:"unknown"})}a(kc,"_unknown");function pp(t,e){return new t({type:"never",...te(e)})}a(pp,"_never");function Nc(t,e){return new t({type:"void",...te(e)})}a(Nc,"_void");function fp(t,e){return new t({type:"date",...te(e)})}a(fp,"_date");function $c(t,e){return new t({type:"date",coerce:!0,...te(e)})}a($c,"_coercedDate");function mp(t,e){return new t({type:"nan",...te(e)})}a(mp,"_nan");function Hr(t,e){return new td({check:"less_than",...te(e),value:t,inclusive:!1})}a(Hr,"_lt");function Vt(t,e){return new td({check:"less_than",...te(e),value:t,inclusive:!0})}a(Vt,"_lte");function Zr(t,e){return new rd({check:"greater_than",...te(e),value:t,inclusive:!1})}a(Zr,"_gt");function At(t,e){return new rd({check:"greater_than",...te(e),value:t,inclusive:!0})}a(At,"_gte");function zc(t){return Zr(0,t)}a(zc,"_positive");function Dc(t){return Hr(0,t)}a(Dc,"_negative");function Uc(t){return Vt(0,t)}a(Uc,"_nonpositive");function Mc(t){return At(0,t)}a(Mc,"_nonnegative");function zn(t,e){return new vg({check:"multiple_of",...te(e),value:t})}a(zn,"_multipleOf");function Dn(t,e){return new Eg({check:"max_size",...te(e),maximum:t})}a(Dn,"_maxSize");function Wr(t,e){return new Sg({check:"min_size",...te(e),minimum:t})}a(Wr,"_minSize");function lo(t,e){return new xg({check:"size_equals",...te(e),size:t})}a(lo,"_size");function po(t,e){return new Tg({check:"max_length",...te(e),maximum:t})}a(po,"_maxLength");function vt(t,e){return new Ag({check:"min_length",...te(e),minimum:t})}a(vt,"_minLength");function fo(t,e){return new wg({check:"length_equals",...te(e),length:t})}a(fo,"_length");function Ut(t,e){return new Ig({check:"string_format",format:"regex",...te(e),pattern:t})}a(Ut,"_regex");function Yo(t){return new Cg({check:"string_format",format:"lowercase",...te(t)})}a(Yo,"_lowercase");function Qo(t){return new Rg({check:"string_format",format:"uppercase",...te(t)})}a(Qo,"_uppercase");function ei(t,e){return new Og({check:"string_format",format:"includes",...te(e),includes:t})}a(ei,"_includes");function ti(t,e){return new kg({check:"string_format",format:"starts_with",...te(e),prefix:t})}a(ti,"_startsWith");function ri(t,e){return new Ng({check:"string_format",format:"ends_with",...te(e),suffix:t})}a(ri,"_endsWith");function Lc(t,e,r){return new $g({check:"property",property:t,schema:e,...te(r)})}a(Lc,"_property");function ni(t,e){return new zg({check:"mime_type",mime:t,...te(e)})}a(ni,"_mime");function Rr(t){return new Dg({check:"overwrite",tx:t})}a(Rr,"_overwrite");function oi(t){return Rr(e=>e.normalize(t))}a(oi,"_normalize");function ii(){return Rr(t=>t.trim())}a(ii,"_trim");function ai(){return Rr(t=>t.toLowerCase())}a(ai,"_toLowerCase");function si(){return Rr(t=>t.toUpperCase())}a(si,"_toUpperCase");function ua(){return Rr(t=>Lh(t))}a(ua,"_slugify");function Ny(t,e,r){return new t({type:"array",element:e,...te(r)})}a(Ny,"_array");function Z1(t,e,r){return new t({type:"union",options:e,...te(r)})}a(Z1,"_union");function W1(t,e,r){return new t({type:"union",options:e,inclusive:!1,...te(r)})}a(W1,"_xor");function K1(t,e,r,o){return new t({type:"union",options:r,discriminator:e,...te(o)})}a(K1,"_discriminatedUnion");function J1(t,e,r){return new t({type:"intersection",left:e,right:r})}a(J1,"_intersection");function X1(t,e,r,o){let n=r instanceof Te,i=n?o:r,s=n?r:null;return new t({type:"tuple",items:e,rest:s,...te(i)})}a(X1,"_tuple");function Y1(t,e,r,o){return new t({type:"record",keyType:e,valueType:r,...te(o)})}a(Y1,"_record");function Q1(t,e,r,o){return new t({type:"map",keyType:e,valueType:r,...te(o)})}a(Q1,"_map");function eL(t,e,r){return new t({type:"set",valueType:e,...te(r)})}a(eL,"_set");function tL(t,e,r){let o=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new t({type:"enum",entries:o,...te(r)})}a(tL,"_enum");function rL(t,e,r){return new t({type:"enum",entries:e,...te(r)})}a(rL,"_nativeEnum");function nL(t,e,r){return new t({type:"literal",values:Array.isArray(e)?e:[e],...te(r)})}a(nL,"_literal");function hp(t,e){return new t({type:"file",...te(e)})}a(hp,"_file");function oL(t,e){return new t({type:"transform",transform:e})}a(oL,"_transform");function iL(t,e){return new t({type:"optional",innerType:e})}a(iL,"_optional");function aL(t,e){return new t({type:"nullable",innerType:e})}a(aL,"_nullable");function sL(t,e,r){return new t({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():Bl(r)}})}a(sL,"_default");function cL(t,e,r){return new t({type:"nonoptional",innerType:e,...te(r)})}a(cL,"_nonoptional");function uL(t,e){return new t({type:"success",innerType:e})}a(uL,"_success");function lL(t,e,r){return new t({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}a(lL,"_catch");function dL(t,e,r){return new t({type:"pipe",in:e,out:r})}a(dL,"_pipe");function pL(t,e){return new t({type:"readonly",innerType:e})}a(pL,"_readonly");function fL(t,e,r){return new t({type:"template_literal",parts:e,...te(r)})}a(fL,"_templateLiteral");function mL(t,e){return new t({type:"lazy",getter:e})}a(mL,"_lazy");function hL(t,e){return new t({type:"promise",innerType:e})}a(hL,"_promise");function jc(t,e,r){let o=te(r);return o.abort??(o.abort=!0),new t({type:"custom",check:"custom",fn:e,...o})}a(jc,"_custom");function Fc(t,e,r){return new t({type:"custom",check:"custom",fn:e,...te(r)})}a(Fc,"_refine");function gp(t){let e=kT(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Hi(o,r.value,e._zod.def));else{let n=o;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=e),n.continue??(n.continue=!e._zod.def.abort),r.issues.push(Hi(n))}},t(r.value,r)));return e}a(gp,"_superRefine");function kT(t,e){let r=new rt({check:"custom",...te(e)});return r._zod.check=t,r}a(kT,"_check");function yp(t){let e=new rt({check:"describe"});return e._zod.onattach=[r=>{let o=Ot.get(r)??{};Ot.add(r,{...o,description:t})}],e._zod.check=()=>{},e}a(yp,"describe");function _p(t){let e=new rt({check:"meta"});return e._zod.onattach=[r=>{let o=Ot.get(r)??{};Ot.add(r,{...o,...t})}],e._zod.check=()=>{},e}a(_p,"meta");function vp(t,e){let r=te(e),o=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(o=o.map(h=>typeof h=="string"?h.toLowerCase():h),n=n.map(h=>typeof h=="string"?h.toLowerCase():h));let i=new Set(o),s=new Set(n),u=t.Codec??ia,l=t.Boolean??Ko,p=t.String??$n,f=new p({type:"string",error:r.error}),y=new l({type:"boolean",error:r.error}),m=new u({type:"pipe",in:f,out:y,transform:a(((h,_)=>{let E=h;return r.case!=="sensitive"&&(E=E.toLowerCase()),i.has(E)?!0:s.has(E)?!1:(_.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...s],input:_.value,inst:m,continue:!1}),{})}),"transform"),reverseTransform:a(((h,_)=>h===!0?o[0]||"true":n[0]||"false"),"reverseTransform"),error:r.error});return m}a(vp,"_stringbool");function ci(t,e,r,o={}){let n=te(o),i={...te(o),check:"string_format",type:"string",format:e,fn:typeof r=="function"?r:u=>r.test(u),...n};return r instanceof RegExp&&(i.pattern=r),new t(i)}a(ci,"_stringFormat");function mo(t){let e=t?.target??"draft-2020-12";return e==="draft-4"&&(e="draft-04"),e==="draft-7"&&(e="draft-07"),{processors:t.processors??{},metadataRegistry:t?.metadata??Ot,target:e,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,cycles:t?.cycles??"ref",reused:t?.reused??"inline",external:t?.external??void 0}}a(mo,"initializeContext");function Ye(t,e,r={path:[],schemaPath:[]}){var o;let n=t._zod.def,i=e.seen.get(t);if(i)return i.count++,r.schemaPath.includes(t)&&(i.cycle=r.path),i.schema;let s={schema:{},count:1,cycle:void 0,path:r.path};e.seen.set(t,s);let u=t._zod.toJSONSchema?.();if(u)s.schema=u;else{let f={...r,schemaPath:[...r.schemaPath,t],path:r.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(e,s.schema,f);else{let m=s.schema,h=e.processors[n.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);h(t,e,m,f)}let y=t._zod.parent;y&&(s.ref||(s.ref=y),Ye(y,e,f),e.seen.get(y).isParent=!0)}let l=e.metadataRegistry.get(t);return l&&Object.assign(s.schema,l),e.io==="input"&&Ht(t)&&(delete s.schema.examples,delete s.schema.default),e.io==="input"&&s.schema._prefault&&((o=s.schema).default??(o.default=s.schema._prefault)),delete s.schema._prefault,e.seen.get(t).schema}a(Ye,"process");function ho(t,e){let r=t.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let s of t.seen.entries()){let u=t.metadataRegistry.get(s[0])?.id;if(u){let l=o.get(u);if(l&&l!==s[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,s[0])}}let n=a(s=>{let u=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){let y=t.external.registry.get(s[0])?.id,m=t.external.uri??(_=>_);if(y)return{ref:m(y)};let h=s[1].defId??s[1].schema.id??`schema${t.counter++}`;return s[1].defId=h,{defId:h,ref:`${m("__shared")}#/${u}/${h}`}}if(s[1]===r)return{ref:"#"};let p=`#/${u}/`,f=s[1].schema.id??`__schema${t.counter++}`;return{defId:f,ref:p+f}},"makeURI"),i=a(s=>{if(s[1].schema.$ref)return;let u=s[1],{ref:l,defId:p}=n(s);u.def={...u.schema},p&&(u.defId=p);let f=u.schema;for(let y in f)delete f[y];f.$ref=l},"extractToDef");if(t.cycles==="throw")for(let s of t.seen.entries()){let u=s[1];if(u.cycle)throw new Error(`Cycle detected: #/${u.cycle?.join("/")}/<root>
105
+ `)}h.write("payload.value = newResult;"),h.write("return payload;");let k=h.compile();return(L,Y)=>k(m,L,Y)},"generateFastpass"),i,s=Vo,u=!gs.jitless,p=u&&jh.value,f=e.catchall,y;t._zod.parse=(m,h)=>{y??(y=o.value);let _=m.value;return s(_)?u&&p&&h?.async===!1&&h.jitless!==!0?(i||(i=n(e.shape)),m=i(m,h),f?AT([],_,m,h,y,t):m):r(m,h):(m.issues.push({expected:"object",code:"invalid_type",input:_,inst:t}),m)}});function fT(t,e,r,o){for(let i of t)if(i.issues.length===0)return e.value=i.value,e;let n=t.filter(i=>!uo(i));return n.length===1?(e.value=n[0].value,n[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(i=>i.issues.map(s=>Yt(s,o,pt())))}),e)}a(fT,"handleUnionResults");var Jo=w("$ZodUnion",(t,e)=>{Te.init(t,e),De(t._zod,"optin",()=>e.options.some(n=>n._zod.optin==="optional")?"optional":void 0),De(t._zod,"optout",()=>e.options.some(n=>n._zod.optout==="optional")?"optional":void 0),De(t._zod,"values",()=>{if(e.options.every(n=>n._zod.values))return new Set(e.options.flatMap(n=>Array.from(n._zod.values)))}),De(t._zod,"pattern",()=>{if(e.options.every(n=>n._zod.pattern)){let n=e.options.map(i=>i._zod.pattern);return new RegExp(`^(${n.map(i=>bs(i.source)).join("|")})$`)}});let r=e.options.length===1,o=e.options[0]._zod.run;t._zod.parse=(n,i)=>{if(r)return o(n,i);let s=!1,u=[];for(let l of e.options){let p=l._zod.run({value:n.value,issues:[]},i);if(p instanceof Promise)u.push(p),s=!0;else{if(p.issues.length===0)return p;u.push(p)}}return s?Promise.all(u).then(l=>fT(l,n,t,i)):fT(u,n,t,i)}});function mT(t,e,r,o){let n=t.filter(i=>i.issues.length===0);return n.length===1?(e.value=n[0].value,e):(n.length===0?e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(i=>i.issues.map(s=>Yt(s,o,pt())))}):e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:[],inclusive:!1}),e)}a(mT,"handleExclusiveUnionResults");var $d=w("$ZodXor",(t,e)=>{Jo.init(t,e),e.inclusive=!1;let r=e.options.length===1,o=e.options[0]._zod.run;t._zod.parse=(n,i)=>{if(r)return o(n,i);let s=!1,u=[];for(let l of e.options){let p=l._zod.run({value:n.value,issues:[]},i);p instanceof Promise?(u.push(p),s=!0):u.push(p)}return s?Promise.all(u).then(l=>mT(l,n,t,i)):mT(u,n,t,i)}}),Ls=w("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,Jo.init(t,e);let r=t._zod.parse;De(t._zod,"propValues",()=>{let n={};for(let i of e.options){let s=i._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(i)}"`);for(let[u,l]of Object.entries(s)){n[u]||(n[u]=new Set);for(let p of l)n[u].add(p)}}return n});let o=Vi(()=>{let n=e.options,i=new Map;for(let s of n){let u=s._zod.propValues?.[e.discriminator];if(!u||u.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(s)}"`);for(let l of u){if(i.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);i.set(l,s)}}return i});t._zod.parse=(n,i)=>{let s=n.value;if(!Vo(s))return n.issues.push({code:"invalid_type",expected:"object",input:s,inst:t}),n;let u=o.value.get(s?.[e.discriminator]);return u?u._zod.run(n,i):e.unionFallback?r(n,i):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,input:s,path:[e.discriminator],inst:t}),n)}}),zd=w("$ZodIntersection",(t,e)=>{Te.init(t,e),t._zod.parse=(r,o)=>{let n=r.value,i=e.left._zod.run({value:n,issues:[]},o),s=e.right._zod.run({value:n,issues:[]},o);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([l,p])=>hT(r,l,p)):hT(r,i,s)}});function Mg(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&e instanceof Date&&+t==+e)return{valid:!0,data:t};if(co(t)&&co(e)){let r=Object.keys(e),o=Object.keys(t).filter(i=>r.indexOf(i)!==-1),n={...t,...e};for(let i of o){let s=Mg(t[i],e[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};n[i]=s.data}return{valid:!0,data:n}}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let o=0;o<t.length;o++){let n=t[o],i=e[o],s=Mg(n,i);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}a(Mg,"mergeValues");function hT(t,e,r){let o=new Map,n;for(let u of e.issues)if(u.code==="unrecognized_keys"){n??(n=u);for(let l of u.keys)o.has(l)||o.set(l,{}),o.get(l).l=!0}else t.issues.push(u);for(let u of r.issues)if(u.code==="unrecognized_keys")for(let l of u.keys)o.has(l)||o.set(l,{}),o.get(l).r=!0;else t.issues.push(u);let i=[...o].filter(([,u])=>u.l&&u.r).map(([u])=>u);if(i.length&&n&&t.issues.push({...n,keys:i}),uo(t))return t;let s=Mg(e.value,r.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return t.value=s.data,t}a(hT,"handleIntersectionResults");var js=w("$ZodTuple",(t,e)=>{Te.init(t,e);let r=e.items;t._zod.parse=(o,n)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:t,expected:"tuple",code:"invalid_type"}),o;o.value=[];let s=[],u=[...r].reverse().findIndex(f=>f._zod.optin!=="optional"),l=u===-1?0:r.length-u;if(!e.rest){let f=i.length>r.length,y=i.length<l-1;if(f||y)return o.issues.push({...f?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:i,inst:t,origin:"array"}),o}let p=-1;for(let f of r){if(p++,p>=i.length&&p>=l)continue;let y=f._zod.run({value:i[p],issues:[]},n);y instanceof Promise?s.push(y.then(m=>nd(m,o,p))):nd(y,o,p)}if(e.rest){let f=i.slice(r.length);for(let y of f){p++;let m=e.rest._zod.run({value:y,issues:[]},n);m instanceof Promise?s.push(m.then(h=>nd(h,o,p))):nd(m,o,p)}}return s.length?Promise.all(s).then(()=>o):o}});function nd(t,e,r){t.issues.length&&e.issues.push(...lr(r,t.issues)),e.value[r]=t.value}a(nd,"handleTupleResult");var Fs=w("$ZodRecord",(t,e)=>{Te.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;if(!co(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:t}),r;let i=[],s=e.keyType._zod.values;if(s){r.value={};let u=new Set;for(let p of s)if(typeof p=="string"||typeof p=="number"||typeof p=="symbol"){u.add(typeof p=="number"?p.toString():p);let f=e.valueType._zod.run({value:n[p],issues:[]},o);f instanceof Promise?i.push(f.then(y=>{y.issues.length&&r.issues.push(...lr(p,y.issues)),r.value[p]=y.value})):(f.issues.length&&r.issues.push(...lr(p,f.issues)),r.value[p]=f.value)}let l;for(let p in n)u.has(p)||(l=l??[],l.push(p));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:t,keys:l})}else{r.value={};for(let u of Reflect.ownKeys(n)){if(u==="__proto__")continue;let l=e.keyType._zod.run({value:u,issues:[]},o);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&ed.test(u)&&l.issues.length){let y=e.keyType._zod.run({value:Number(u),issues:[]},o);if(y instanceof Promise)throw new Error("Async schemas not supported in object keys currently");y.issues.length===0&&(l=y)}if(l.issues.length){e.mode==="loose"?r.value[u]=n[u]:r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(y=>Yt(y,o,pt())),input:u,path:[u],inst:t});continue}let f=e.valueType._zod.run({value:n[u],issues:[]},o);f instanceof Promise?i.push(f.then(y=>{y.issues.length&&r.issues.push(...lr(u,y.issues)),r.value[l.value]=y.value})):(f.issues.length&&r.issues.push(...lr(u,f.issues)),r.value[l.value]=f.value)}}return i.length?Promise.all(i).then(()=>r):r}}),Dd=w("$ZodMap",(t,e)=>{Te.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:t}),r;let i=[];r.value=new Map;for(let[s,u]of n){let l=e.keyType._zod.run({value:s,issues:[]},o),p=e.valueType._zod.run({value:u,issues:[]},o);l instanceof Promise||p instanceof Promise?i.push(Promise.all([l,p]).then(([f,y])=>{gT(f,y,r,s,n,t,o)})):gT(l,p,r,s,n,t,o)}return i.length?Promise.all(i).then(()=>r):r}});function gT(t,e,r,o,n,i,s){t.issues.length&&(Es.has(typeof o)?r.issues.push(...lr(o,t.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:i,issues:t.issues.map(u=>Yt(u,s,pt()))})),e.issues.length&&(Es.has(typeof o)?r.issues.push(...lr(o,e.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:i,key:o,issues:e.issues.map(u=>Yt(u,s,pt()))})),r.value.set(t.value,e.value)}a(gT,"handleMapResult");var Ud=w("$ZodSet",(t,e)=>{Te.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:t,expected:"set",code:"invalid_type"}),r;let i=[];r.value=new Set;for(let s of n){let u=e.valueType._zod.run({value:s,issues:[]},o);u instanceof Promise?i.push(u.then(l=>yT(l,r))):yT(u,r)}return i.length?Promise.all(i).then(()=>r):r}});function yT(t,e){t.issues.length&&e.issues.push(...t.issues),e.value.add(t.value)}a(yT,"handleSetResult");var Bs=w("$ZodEnum",(t,e)=>{Te.init(t,e);let r=vs(e.entries),o=new Set(r);t._zod.values=o,t._zod.pattern=new RegExp(`^(${r.filter(n=>Es.has(typeof n)).map(n=>typeof n=="string"?Cr(n):n.toString()).join("|")})$`),t._zod.parse=(n,i)=>{let s=n.value;return o.has(s)||n.issues.push({code:"invalid_value",values:r,input:s,inst:t}),n}}),qs=w("$ZodLiteral",(t,e)=>{if(Te.init(t,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(e.values);t._zod.values=r,t._zod.pattern=new RegExp(`^(${e.values.map(o=>typeof o=="string"?Cr(o):o?Cr(o.toString()):String(o)).join("|")})$`),t._zod.parse=(o,n)=>{let i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:e.values,input:i,inst:t}),o}}),Md=w("$ZodFile",(t,e)=>{Te.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:t}),r}}),Gs=w("$ZodTransform",(t,e)=>{Te.init(t,e),t._zod.parse=(r,o)=>{if(o.direction==="backward")throw new io(t.constructor.name);let n=e.transform(r.value,r);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then(s=>(r.value=s,r));if(n instanceof Promise)throw new Vr;return r.value=n,r}});function _T(t,e){return t.issues.length&&e===void 0?{issues:[],value:void 0}:t}a(_T,"handleOptionalResult");var oa=w("$ZodOptional",(t,e)=>{Te.init(t,e),t._zod.optin="optional",t._zod.optout="optional",De(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),De(t._zod,"pattern",()=>{let r=e.innerType._zod.pattern;return r?new RegExp(`^(${bs(r.source)})?$`):void 0}),t._zod.parse=(r,o)=>{if(e.innerType._zod.optin==="optional"){let n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>_T(i,r.value)):_T(n,r.value)}return r.value===void 0?r:e.innerType._zod.run(r,o)}}),Ld=w("$ZodExactOptional",(t,e)=>{oa.init(t,e),De(t._zod,"values",()=>e.innerType._zod.values),De(t._zod,"pattern",()=>e.innerType._zod.pattern),t._zod.parse=(r,o)=>e.innerType._zod.run(r,o)}),Vs=w("$ZodNullable",(t,e)=>{Te.init(t,e),De(t._zod,"optin",()=>e.innerType._zod.optin),De(t._zod,"optout",()=>e.innerType._zod.optout),De(t._zod,"pattern",()=>{let r=e.innerType._zod.pattern;return r?new RegExp(`^(${bs(r.source)}|null)$`):void 0}),De(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(r,o)=>r.value===null?r:e.innerType._zod.run(r,o)}),jd=w("$ZodDefault",(t,e)=>{Te.init(t,e),t._zod.optin="optional",De(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,o)=>{if(o.direction==="backward")return e.innerType._zod.run(r,o);if(r.value===void 0)return r.value=e.defaultValue,r;let n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>vT(i,e)):vT(n,e)}});function vT(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}a(vT,"handleDefaultResult");var Fd=w("$ZodPrefault",(t,e)=>{Te.init(t,e),t._zod.optin="optional",De(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,o)=>(o.direction==="backward"||r.value===void 0&&(r.value=e.defaultValue),e.innerType._zod.run(r,o))}),Bd=w("$ZodNonOptional",(t,e)=>{Te.init(t,e),De(t._zod,"values",()=>{let r=e.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),t._zod.parse=(r,o)=>{let n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>bT(i,t)):bT(n,t)}});function bT(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}a(bT,"handleNonOptionalResult");var qd=w("$ZodSuccess",(t,e)=>{Te.init(t,e),t._zod.parse=(r,o)=>{if(o.direction==="backward")throw new io("ZodSuccess");let n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),Gd=w("$ZodCatch",(t,e)=>{Te.init(t,e),De(t._zod,"optin",()=>e.innerType._zod.optin),De(t._zod,"optout",()=>e.innerType._zod.optout),De(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,o)=>{if(o.direction==="backward")return e.innerType._zod.run(r,o);let n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.value,i.issues.length&&(r.value=e.catchValue({...r,error:{issues:i.issues.map(s=>Yt(s,o,pt()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=e.catchValue({...r,error:{issues:n.issues.map(i=>Yt(i,o,pt()))},input:r.value}),r.issues=[]),r)}}),Vd=w("$ZodNaN",(t,e)=>{Te.init(t,e),t._zod.parse=(r,o)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:t,expected:"nan",code:"invalid_type"}),r)}),Hs=w("$ZodPipe",(t,e)=>{Te.init(t,e),De(t._zod,"values",()=>e.in._zod.values),De(t._zod,"optin",()=>e.in._zod.optin),De(t._zod,"optout",()=>e.out._zod.optout),De(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(r,o)=>{if(o.direction==="backward"){let i=e.out._zod.run(r,o);return i instanceof Promise?i.then(s=>od(s,e.in,o)):od(i,e.in,o)}let n=e.in._zod.run(r,o);return n instanceof Promise?n.then(i=>od(i,e.out,o)):od(n,e.out,o)}});function od(t,e,r){return t.issues.length?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues},r)}a(od,"handlePipeResult");var ia=w("$ZodCodec",(t,e)=>{Te.init(t,e),De(t._zod,"values",()=>e.in._zod.values),De(t._zod,"optin",()=>e.in._zod.optin),De(t._zod,"optout",()=>e.out._zod.optout),De(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(r,o)=>{if((o.direction||"forward")==="forward"){let i=e.in._zod.run(r,o);return i instanceof Promise?i.then(s=>id(s,e,o)):id(i,e,o)}else{let i=e.out._zod.run(r,o);return i instanceof Promise?i.then(s=>id(s,e,o)):id(i,e,o)}}});function id(t,e,r){if(t.issues.length)return t.aborted=!0,t;if((r.direction||"forward")==="forward"){let n=e.transform(t.value,t);return n instanceof Promise?n.then(i=>ad(t,i,e.out,r)):ad(t,n,e.out,r)}else{let n=e.reverseTransform(t.value,t);return n instanceof Promise?n.then(i=>ad(t,i,e.in,r)):ad(t,n,e.in,r)}}a(id,"handleCodecAResult");function ad(t,e,r,o){return t.issues.length?(t.aborted=!0,t):r._zod.run({value:e,issues:t.issues},o)}a(ad,"handleCodecTxResult");var Hd=w("$ZodReadonly",(t,e)=>{Te.init(t,e),De(t._zod,"propValues",()=>e.innerType._zod.propValues),De(t._zod,"values",()=>e.innerType._zod.values),De(t._zod,"optin",()=>e.innerType?._zod?.optin),De(t._zod,"optout",()=>e.innerType?._zod?.optout),t._zod.parse=(r,o)=>{if(o.direction==="backward")return e.innerType._zod.run(r,o);let n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(ET):ET(n)}});function ET(t){return t.value=Object.freeze(t.value),t}a(ET,"handleReadonlyResult");var Zd=w("$ZodTemplateLiteral",(t,e)=>{Te.init(t,e);let r=[];for(let o of e.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 n=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=n.startsWith("^")?1:0,s=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(i,s))}else if(o===null||Fh.has(typeof o))r.push(Cr(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);t._zod.pattern=new RegExp(`^${r.join("")}$`),t._zod.parse=(o,n)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:t,expected:"string",code:"invalid_type"}),o):(t._zod.pattern.lastIndex=0,t._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:t,code:"invalid_format",format:e.format??"template_literal",pattern:t._zod.pattern.source}),o)}),Wd=w("$ZodFunction",(t,e)=>(Te.init(t,e),t._def=e,t._zod.def=e,t.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...o){let n=t._def.input?Ho(t._def.input,o):o,i=Reflect.apply(r,this,n);return t._def.output?Ho(t._def.output,i):i}},t.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let n=t._def.input?await Zo(t._def.input,o):o,i=await Reflect.apply(r,this,n);return t._def.output?await Zo(t._def.output,i):i}},t._zod.parse=(r,o)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:t}),r):(t._def.output&&t._def.output._zod.def.type==="promise"?r.value=t.implementAsync(r.value):r.value=t.implement(r.value),r),t.input=(...r)=>{let o=t.constructor;return Array.isArray(r[0])?new o({type:"function",input:new js({type:"tuple",items:r[0],rest:r[1]}),output:t._def.output}):new o({type:"function",input:r[0],output:t._def.output})},t.output=r=>{let o=t.constructor;return new o({type:"function",input:t._def.input,output:r})},t)),Kd=w("$ZodPromise",(t,e)=>{Te.init(t,e),t._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>e.innerType._zod.run({value:n,issues:[]},o))}),Jd=w("$ZodLazy",(t,e)=>{Te.init(t,e),De(t._zod,"innerType",()=>e.getter()),De(t._zod,"pattern",()=>t._zod.innerType?._zod?.pattern),De(t._zod,"propValues",()=>t._zod.innerType?._zod?.propValues),De(t._zod,"optin",()=>t._zod.innerType?._zod?.optin??void 0),De(t._zod,"optout",()=>t._zod.innerType?._zod?.optout??void 0),t._zod.parse=(r,o)=>t._zod.innerType._zod.run(r,o)}),Zs=w("$ZodCustom",(t,e)=>{rt.init(t,e),Te.init(t,e),t._zod.parse=(r,o)=>r,t._zod.check=r=>{let o=r.value,n=e.fn(o);if(n instanceof Promise)return n.then(i=>PT(i,r,o,t));PT(n,r,o,t)}});function PT(t,e,r,o){if(!t){let n={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(n.params=o._zod.def.params),e.issues.push(Hi(n))}}a(PT,"handleRefineResult");var sa={};Xt(sa,{ar:()=>Fg,az:()=>Bg,be:()=>qg,bg:()=>Gg,ca:()=>Vg,cs:()=>Hg,da:()=>Zg,de:()=>Wg,en:()=>Ws,eo:()=>Kg,es:()=>Jg,fa:()=>Xg,fi:()=>Yg,fr:()=>Qg,frCA:()=>ey,he:()=>ty,hu:()=>ry,hy:()=>ny,id:()=>oy,is:()=>iy,it:()=>ay,ja:()=>sy,ka:()=>cy,kh:()=>uy,km:()=>Ks,ko:()=>ly,lt:()=>dy,mk:()=>py,ms:()=>fy,nl:()=>my,no:()=>hy,ota:()=>gy,pl:()=>_y,ps:()=>yy,pt:()=>vy,ru:()=>by,sl:()=>Ey,sv:()=>Py,ta:()=>Sy,th:()=>xy,tr:()=>Ty,ua:()=>Ay,uk:()=>Xs,ur:()=>wy,uz:()=>Iy,vi:()=>Cy,yo:()=>ky,zhCN:()=>Ry,zhTW:()=>Oy});var YM=a(()=>{let t={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${n.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${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 n.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${ne(n.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()} ${s.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;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 "${n.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}`:`${r[i.format]??n.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${G(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}},"error");function Fg(){return{localeError:YM()}}a(Fg,"default");var QM=a(()=>{let t={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${u}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${u}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${ne(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()} ${s.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()} ${s.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${G(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}},"error");function Bg(){return{localeError:QM()}}a(Bg,"default");function wT(t,e,r,o){let n=Math.abs(t),i=n%10,s=n%100;return s>=11&&s<=19?o:i===1?e:i>=2&&i<=4?r:o}a(wT,"getBelarusianPlural");var e1=a(()=>{let t={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${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 n.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${ne(n.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);if(s){let u=Number(n.maximum),l=wT(u,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${i}${n.maximum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);if(s){let u=Number(n.minimum),l=wT(u,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${i}${n.minimum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${G(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}},"error");function qg(){return{localeError:e1()}}a(qg,"default");var t1=a(()=>{let t={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${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 n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${ne(n.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.minimum.toString()} ${s.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${s} ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${G(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}},"error");function Gg(){return{localeError:t1()}}a(Gg,"default");var r1=a(()=>{let t={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${u}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${u}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${ne(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${G(n.values," o ")}`;case"too_big":{let i=n.inclusive?"com a m\xE0xim":"menys de",s=e(n.origin);return s?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${i} ${n.maximum.toString()} ${s.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"com a m\xEDnim":"m\xE9s de",s=e(n.origin);return s?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${i} ${n.minimum.toString()} ${s.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}},"error");function Vg(){return{localeError:r1()}}a(Vg,"default");var n1=a(()=>{let t={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${u}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${u}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${ne(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.maximum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.minimum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${G(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}},"error");function Hg(){return{localeError:n1()}}a(Hg,"default");var o1=a(()=>{let t={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${u}`:`Ugyldigt input: forventede ${i}, fik ${u}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${ne(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin),u=o[n.origin]??n.origin;return s?`For stor: forventede ${u??"value"} ${s.verb} ${i} ${n.maximum.toString()} ${s.unit??"elementer"}`:`For stor: forventede ${u??"value"} havde ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin),u=o[n.origin]??n.origin;return s?`For lille: forventede ${u} ${s.verb} ${i} ${n.minimum.toString()} ${s.unit}`:`For lille: forventede ${u} havde ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${G(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${n.origin}`;default:return"Ugyldigt input"}}},"error");function Zg(){return{localeError:o1()}}a(Zg,"default");var i1=a(()=>{let t={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${u}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${u}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${ne(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ${s.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ist`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ${s.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ist`}case"invalid_format":{let i=n;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: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${G(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}},"error");function Wg(){return{localeError:i1()}}a(Wg,"default");var a1=a(()=>{let t={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return`Invalid input: expected ${i}, received ${u}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${ne(n.values[0])}`:`Invalid option: expected one of ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Too big: expected ${n.origin??"value"} to have ${i}${n.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Too small: expected ${n.origin} to have ${i}${n.minimum.toString()} ${s.unit}`:`Too small: expected ${n.origin} to be ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}},"error");function Ws(){return{localeError:a1()}}a(Ws,"default");var s1=a(()=>{let t={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${u}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${u}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${ne(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()} ${s.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${i}${n.minimum.toString()} ${s.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}},"error");function Kg(){return{localeError:s1()}}a(Kg,"default");var c1=a(()=>{let t={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${u}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${u}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${ne(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin),u=o[n.origin]??n.origin;return s?`Demasiado grande: se esperaba que ${u??"valor"} tuviera ${i}${n.maximum.toString()} ${s.unit??"elementos"}`:`Demasiado grande: se esperaba que ${u??"valor"} fuera ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin),u=o[n.origin]??n.origin;return s?`Demasiado peque\xF1o: se esperaba que ${u} tuviera ${i}${n.minimum.toString()} ${s.unit}`:`Demasiado peque\xF1o: se esperaba que ${u} fuera ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}},"error");function Jg(){return{localeError:c1()}}a(Jg,"default");var u1=a(()=>{let t={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${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 n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${ne(n.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${G(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${s.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=n;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`:`${r[i.format]??n.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${G(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}},"error");function Xg(){return{localeError:u1()}}a(Xg,"default");var l1=a(()=>{let t={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${u}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${u}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${ne(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Liian suuri: ${s.subject} t\xE4ytyy olla ${i}${n.maximum.toString()} ${s.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Liian pieni: ${s.subject} t\xE4ytyy olla ${i}${n.minimum.toString()} ${s.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${G(n.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}},"error");function Yg(){return{localeError:l1()}}a(Yg,"default");var d1=a(()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${u} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${u} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${ne(n.values[0])} attendu`:`Option invalide : une valeur parmi ${G(n.values,"|")} attendue`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Trop grand : ${n.origin??"valeur"} doit ${s.verb} ${i}${n.maximum.toString()} ${s.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${n.origin??"valeur"} doit \xEAtre ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Trop petit : ${n.origin} doit ${s.verb} ${i}${n.minimum.toString()} ${s.unit}`:`Trop petit : ${n.origin} doit \xEAtre ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${G(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}},"error");function Qg(){return{localeError:d1()}}a(Qg,"default");var p1=a(()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${u}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${u}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${ne(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u2264":"<",s=e(n.origin);return s?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${i}${n.maximum.toString()} ${s.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u2265":">",s=e(n.origin);return s?`Trop petit : attendu que ${n.origin} ait ${i}${n.minimum.toString()} ${s.unit}`:`Trop petit : attendu que ${n.origin} soit ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${G(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}},"error");function ey(){return{localeError:p1()}}a(ey,"default");var f1=a(()=>{let t={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},e={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"}},r=a(p=>p?t[p]:void 0,"typeEntry"),o=a(p=>{let f=r(p);return f?f.label:p??t.unknown.label},"typeLabel"),n=a(p=>`\u05D4${o(p)}`,"withDefinite"),i=a(p=>(r(p)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA","verbFor"),s=a(p=>p?e[p]??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"}},l={nan:"NaN"};return p=>{switch(p.code){case"invalid_type":{let f=p.expected,y=l[f??""]??o(f),m=ae(p.input),h=l[m]??t[m]?.label??m;return/^[A-Z]/.test(p.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${p.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${h}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${y}, \u05D4\u05EA\u05E7\u05D1\u05DC ${h}`}case"invalid_value":{if(p.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 ${ne(p.values[0])}`;let f=p.values.map(h=>ne(h));if(p.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${f[0]} \u05D0\u05D5 ${f[1]}`;let y=f[f.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${f.slice(0,-1).join(", ")} \u05D0\u05D5 ${y}`}case"too_big":{let f=s(p.origin),y=n(p.origin??"value");if(p.origin==="string")return`${f?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${y} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${p.maximum.toString()} ${f?.unit??""} ${p.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(p.origin==="number"){let _=p.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${p.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${p.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${y} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${_}`}if(p.origin==="array"||p.origin==="set"){let _=p.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",P=p.inclusive?`${p.maximum} ${f?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${p.maximum} ${f?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${y} ${_} \u05DC\u05D4\u05DB\u05D9\u05DC ${P}`.trim()}let m=p.inclusive?"<=":"<",h=i(p.origin??"value");return f?.unit?`${f.longLabel} \u05DE\u05D3\u05D9: ${y} ${h} ${m}${p.maximum.toString()} ${f.unit}`:`${f?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${y} ${h} ${m}${p.maximum.toString()}`}case"too_small":{let f=s(p.origin),y=n(p.origin??"value");if(p.origin==="string")return`${f?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${y} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${p.minimum.toString()} ${f?.unit??""} ${p.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(p.origin==="number"){let _=p.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${p.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${p.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${y} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${_}`}if(p.origin==="array"||p.origin==="set"){let _=p.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(p.minimum===1&&p.inclusive){let S=(p.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${y} ${_} \u05DC\u05D4\u05DB\u05D9\u05DC ${S}`}let P=p.inclusive?`${p.minimum} ${f?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${p.minimum} ${f?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${y} ${_} \u05DC\u05D4\u05DB\u05D9\u05DC ${P}`.trim()}let m=p.inclusive?">=":">",h=i(p.origin??"value");return f?.unit?`${f.shortLabel} \u05DE\u05D3\u05D9: ${y} ${h} ${m}${p.minimum.toString()} ${f.unit}`:`${f?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${y} ${h} ${m}${p.minimum.toString()}`}case"invalid_format":{let f=p;if(f.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${f.prefix}"`;if(f.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${f.suffix}"`;if(f.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${f.includes}"`;if(f.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${f.pattern}`;let y=u[f.format],m=y?.label??f.format,_=(y?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${m} \u05DC\u05D0 ${_}`}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 ${p.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${p.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${p.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${G(p.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${n(p.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}},"error");function ty(){return{localeError:f1()}}a(ty,"default");var m1=a(()=>{let t={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${u}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${u}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${ne(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${n.maximum.toString()} ${s.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${i}${n.minimum.toString()} ${s.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}},"error");function ry(){return{localeError:m1()}}a(ry,"default");function IT(t,e,r){return Math.abs(t)===1?e:r}a(IT,"getArmenianPlural");function aa(t){if(!t)return"";let e=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=t[t.length-1];return t+(e.includes(r)?"\u0576":"\u0568")}a(aa,"withDefiniteArticle");var h1=a(()=>{let t={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${n.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${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 n.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${ne(n.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);if(s){let u=Number(n.maximum),l=IT(u,s.unit.one,s.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${aa(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.maximum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${aa(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);if(s){let u=Number(n.minimum),l=IT(u,s.unit.one,s.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${aa(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.minimum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${aa(n.origin)} \u056C\u056B\u0576\u056B ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${n.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${G(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${aa(n.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${aa(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}},"error");function ny(){return{localeError:h1()}}a(ny,"default");var g1=a(()=>{let t={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${u}`:`Input tidak valid: diharapkan ${i}, diterima ${u}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${ne(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${i}${n.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Terlalu kecil: diharapkan ${n.origin} memiliki ${i}${n.minimum.toString()} ${s.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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}`:`${r[i.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}},"error");function oy(){return{localeError:g1()}}a(oy,"default");var y1=a(()=>{let t={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${u} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${u} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${ne(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${i}${n.maximum.toString()} ${s.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${i}${n.minimum.toString()} ${s.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${G(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}},"error");function iy(){return{localeError:y1()}}a(iy,"default");var _1=a(()=>{let t={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${u}`:`Input non valido: atteso ${i}, ricevuto ${u}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${ne(n.values[0])}`:`Opzione non valida: atteso uno tra ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Troppo grande: ${n.origin??"valore"} deve avere ${i}${n.maximum.toString()} ${s.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Troppo piccolo: ${n.origin} deve avere ${i}${n.minimum.toString()} ${s.unit}`:`Troppo piccolo: ${n.origin} deve essere ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${G(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}},"error");function ay(){return{localeError:_1()}}a(ay,"default");var v1=a(()=>{let t={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${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 n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${ne(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${G(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",s=e(n.origin);return s?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${s.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",s=e(n.origin);return s?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${s.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=n;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${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${n.keys.length>1?"\u7FA4":""}: ${G(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}},"error");function sy(){return{localeError:v1()}}a(sy,"default");var b1=a(()=>{let t={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${n.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${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 n.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${ne(n.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${G(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${s.verb} ${i}${n.maximum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} ${s.verb} ${i}${n.minimum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${n.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${G(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}},"error");function cy(){return{localeError:b1()}}a(cy,"default");var E1=a(()=>{let t={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${n.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${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 n.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${ne(n.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()} ${s.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()} ${s.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${G(n.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}},"error");function Ks(){return{localeError:E1()}}a(Ks,"default");function uy(){return Ks()}a(uy,"default");var P1=a(()=>{let t={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${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 n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${ne(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${G(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",s=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",u=e(n.origin),l=u?.unit??"\uC694\uC18C";return u?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${l} ${i}${s}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${i}${s}`}case"too_small":{let i=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",s=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",u=e(n.origin),l=u?.unit??"\uC694\uC18C";return u?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${l} ${i}${s}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${i}${s}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${G(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}},"error");function ly(){return{localeError:P1()}}a(ly,"default");var Js=a(t=>t.charAt(0).toUpperCase()+t.slice(1),"capitalizeFirstCharacter");function CT(t){let e=Math.abs(t),r=e%10,o=e%100;return o>=11&&o<=19||r===0?"many":r===1?"one":"few"}a(CT,"getUnitTypeFromNumber");var S1=a(()=>{let t={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function e(n,i,s,u){let l=t[n]??null;return l===null?l:{unit:l.unit[i],verb:l.verb[u][s?"inclusive":"notInclusive"]}}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${u}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${u}, o tik\u0117tasi - ${i}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${ne(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${G(n.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[n.origin]??n.origin,s=e(n.origin,CT(Number(n.maximum)),n.inclusive??!1,"smaller");if(s?.verb)return`${Js(i??n.origin??"reik\u0161m\u0117")} ${s.verb} ${n.maximum.toString()} ${s.unit??"element\u0173"}`;let u=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Js(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${u} ${n.maximum.toString()} ${s?.unit}`}case"too_small":{let i=o[n.origin]??n.origin,s=e(n.origin,CT(Number(n.minimum)),n.inclusive??!1,"bigger");if(s?.verb)return`${Js(i??n.origin??"reik\u0161m\u0117")} ${s.verb} ${n.minimum.toString()} ${s.unit??"element\u0173"}`;let u=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Js(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${u} ${n.minimum.toString()} ${s?.unit}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${G(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=o[n.origin]??n.origin;return`${Js(i??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}},"error");function dy(){return{localeError:S1()}}a(dy,"default");var x1=a(()=>{let t={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${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 n.values.length===1?`Invalid input: expected ${ne(n.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.minimum.toString()} ${s.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${G(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}},"error");function py(){return{localeError:x1()}}a(py,"default");var T1=a(()=>{let t={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${u}`:`Input tidak sah: dijangka ${i}, diterima ${u}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${ne(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Terlalu besar: dijangka ${n.origin??"nilai"} ${s.verb} ${i}${n.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Terlalu kecil: dijangka ${n.origin} ${s.verb} ${i}${n.minimum.toString()} ${s.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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}`:`${r[i.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${G(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}},"error");function fy(){return{localeError:T1()}}a(fy,"default");var A1=a(()=>{let t={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${u}`:`Ongeldige invoer: verwacht ${i}, ontving ${u}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${ne(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin),u=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return s?`Te ${u}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} ${s.unit??"elementen"} ${s.verb}`:`Te ${u}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} is`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin),u=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return s?`Te ${u}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} ${s.unit} ${s.verb}`:`Te ${u}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} is`}case"invalid_format":{let i=n;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: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}},"error");function my(){return{localeError:A1()}}a(my,"default");var w1=a(()=>{let t={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${u}`:`Ugyldig input: forventet ${i}, fikk ${u}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${ne(n.values[0])}`:`Ugyldig valg: forventet en av ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()} ${s.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()} ${s.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${G(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}},"error");function hy(){return{localeError:w1()}}a(hy,"default");var I1=a(()=>{let t={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${u}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${u}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${ne(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} ${s.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} ${s.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}},"error");function gy(){return{localeError:I1()}}a(gy,"default");var C1=a(()=>{let t={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${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 n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${ne(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${G(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${s.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=n;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`:`${r[i.format]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${G(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}},"error");function yy(){return{localeError:C1()}}a(yy,"default");var R1=a(()=>{let t={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${u}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${u}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${ne(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.maximum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.minimum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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) ${r[i.format]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}},"error");function _y(){return{localeError:R1()}}a(_y,"default");var O1=a(()=>{let t={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${u}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${u}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${ne(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${i}${n.maximum.toString()} ${s.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Muito pequeno: esperado que ${n.origin} tivesse ${i}${n.minimum.toString()} ${s.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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}`:`${r[i.format]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}},"error");function vy(){return{localeError:O1()}}a(vy,"default");function RT(t,e,r,o){let n=Math.abs(t),i=n%10,s=n%100;return s>=11&&s<=19?o:i===1?e:i>=2&&i<=4?r:o}a(RT,"getRussianPlural");var k1=a(()=>{let t={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${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 n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${ne(n.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);if(s){let u=Number(n.maximum),l=RT(u,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.maximum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);if(s){let u=Number(n.minimum),l=RT(u,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.minimum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${G(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}},"error");function by(){return{localeError:k1()}}a(by,"default");var N1=a(()=>{let t={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${u}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${u}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${ne(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${i}${n.maximum.toString()} ${s.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${i}${n.minimum.toString()} ${s.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${G(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}},"error");function Ey(){return{localeError:N1()}}a(Ey,"default");var $1=a(()=>{let t={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${u}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${u}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${ne(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()} ${s.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()} ${s.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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) ${r[i.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${G(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}},"error");function Py(){return{localeError:$1()}}a(Py,"default");var z1=a(()=>{let t={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${n.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${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 n.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${ne(n.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${G(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.maximum.toString()} ${s.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${i}${n.minimum.toString()} ${s.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${i}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${G(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}},"error");function Sy(){return{localeError:z1()}}a(Sy,"default");var D1=a(()=>{let t={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${n.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${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 n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${ne(n.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",s=e(n.origin);return s?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()} ${s.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",s=e(n.origin);return s?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()} ${s.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;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: ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${n.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${G(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}},"error");function xy(){return{localeError:D1()}}a(xy,"default");var U1=a(()=>{let t={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${u}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${u}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${ne(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()} ${s.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()} ${s.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${G(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}},"error");function Ty(){return{localeError:U1()}}a(Ty,"default");var M1=a(()=>{let t={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${n.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${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 n.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${ne(n.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${s.verb} ${i}${n.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} ${s.verb} ${i}${n.minimum.toString()} ${s.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} \u0431\u0443\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${G(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${n.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}},"error");function Xs(){return{localeError:M1()}}a(Xs,"default");function Ay(){return Xs()}a(Ay,"default");var L1=a(()=>{let t={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${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 n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${ne(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${G(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${i}${n.minimum.toString()} ${s.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${i}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${n.keys.length>1?"\u0632":""}: ${G(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}},"error");function wy(){return{localeError:L1()}}a(wy,"default");var j1=a(()=>{let t={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${u}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${u}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${ne(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()} ${s.unit} ${s.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()} ${s.unit} ${s.verb}`:`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${G(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${n.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}},"error");function Iy(){return{localeError:j1()}}a(Iy,"default");var F1=a(()=>{let t={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${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 n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${ne(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${s.verb} ${i}${n.maximum.toString()} ${s.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${s.verb} ${i}${n.minimum.toString()} ${s.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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}`:`${r[i.format]??n.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${G(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}},"error");function Cy(){return{localeError:F1()}}a(Cy,"default");var B1=a(()=>{let t={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.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 n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${ne(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()} ${s.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()} ${s.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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${r[i.format]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${G(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}},"error");function Ry(){return{localeError:B1()}}a(Ry,"default");var q1=a(()=>{let t={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${u}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${u}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${ne(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()} ${s.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()} ${s.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${G(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}},"error");function Oy(){return{localeError:q1()}}a(Oy,"default");var G1=a(()=>{let t={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function e(n){return t[n]??null}a(e,"getSizing");let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.expected}, \xE0m\u1ECD\u0300 a r\xED ${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 n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${ne(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${s.verb} ${i}${n.maximum} ${s.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.maximum}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${s.verb} ${i}${n.minimum} ${s.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.minimum}`}case"invalid_format":{let i=n;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: ${r[i.format]??n.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${G(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}},"error");function ky(){return{localeError:G1()}}a(ky,"default");var OT,Yd=Symbol("ZodOutput"),Qd=Symbol("ZodInput"),Xd=class{static{a(this,"$ZodRegistry")}constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...r){let o=r[0];return this._map.set(e,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let r=this._map.get(e);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(e),this}get(e){let r=e._zod.parent;if(r){let o={...this.get(r)??{}};delete o.id;let n={...o,...this._map.get(e)};return Object.keys(n).length?n:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Ys(){return new Xd}a(Ys,"registry");(OT=globalThis).__zod_globalRegistry??(OT.__zod_globalRegistry=Ys());var Ot=globalThis.__zod_globalRegistry;function Qs(t,e){return new t({type:"string",...te(e)})}a(Qs,"_string");function ec(t,e){return new t({type:"string",coerce:!0,...te(e)})}a(ec,"_coercedString");function tc(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...te(e)})}a(tc,"_email");function ca(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...te(e)})}a(ca,"_guid");function rc(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...te(e)})}a(rc,"_uuid");function nc(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...te(e)})}a(nc,"_uuidv4");function oc(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...te(e)})}a(oc,"_uuidv6");function ic(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...te(e)})}a(ic,"_uuidv7");function Xo(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...te(e)})}a(Xo,"_url");function ac(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...te(e)})}a(ac,"_emoji");function sc(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...te(e)})}a(sc,"_nanoid");function cc(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...te(e)})}a(cc,"_cuid");function uc(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...te(e)})}a(uc,"_cuid2");function lc(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...te(e)})}a(lc,"_ulid");function dc(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...te(e)})}a(dc,"_xid");function pc(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...te(e)})}a(pc,"_ksuid");function fc(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...te(e)})}a(fc,"_ipv4");function mc(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...te(e)})}a(mc,"_ipv6");function ep(t,e){return new t({type:"string",format:"mac",check:"string_format",abort:!1,...te(e)})}a(ep,"_mac");function hc(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...te(e)})}a(hc,"_cidrv4");function gc(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...te(e)})}a(gc,"_cidrv6");function yc(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...te(e)})}a(yc,"_base64");function _c(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...te(e)})}a(_c,"_base64url");function vc(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...te(e)})}a(vc,"_e164");function bc(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...te(e)})}a(bc,"_jwt");var tp={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Ec(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...te(e)})}a(Ec,"_isoDateTime");function Pc(t,e){return new t({type:"string",format:"date",check:"string_format",...te(e)})}a(Pc,"_isoDate");function Sc(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...te(e)})}a(Sc,"_isoTime");function xc(t,e){return new t({type:"string",format:"duration",check:"string_format",...te(e)})}a(xc,"_isoDuration");function Tc(t,e){return new t({type:"number",checks:[],...te(e)})}a(Tc,"_number");function Ac(t,e){return new t({type:"number",coerce:!0,checks:[],...te(e)})}a(Ac,"_coercedNumber");function wc(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...te(e)})}a(wc,"_int");function rp(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float32",...te(e)})}a(rp,"_float32");function np(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float64",...te(e)})}a(np,"_float64");function op(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"int32",...te(e)})}a(op,"_int32");function ip(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"uint32",...te(e)})}a(ip,"_uint32");function Ic(t,e){return new t({type:"boolean",...te(e)})}a(Ic,"_boolean");function Cc(t,e){return new t({type:"boolean",coerce:!0,...te(e)})}a(Cc,"_coercedBoolean");function ap(t,e){return new t({type:"bigint",...te(e)})}a(ap,"_bigint");function Rc(t,e){return new t({type:"bigint",coerce:!0,...te(e)})}a(Rc,"_coercedBigint");function sp(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...te(e)})}a(sp,"_int64");function cp(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...te(e)})}a(cp,"_uint64");function up(t,e){return new t({type:"symbol",...te(e)})}a(up,"_symbol");function lp(t,e){return new t({type:"undefined",...te(e)})}a(lp,"_undefined");function dp(t,e){return new t({type:"null",...te(e)})}a(dp,"_null");function Oc(t){return new t({type:"any"})}a(Oc,"_any");function kc(t){return new t({type:"unknown"})}a(kc,"_unknown");function pp(t,e){return new t({type:"never",...te(e)})}a(pp,"_never");function Nc(t,e){return new t({type:"void",...te(e)})}a(Nc,"_void");function fp(t,e){return new t({type:"date",...te(e)})}a(fp,"_date");function $c(t,e){return new t({type:"date",coerce:!0,...te(e)})}a($c,"_coercedDate");function mp(t,e){return new t({type:"nan",...te(e)})}a(mp,"_nan");function Hr(t,e){return new td({check:"less_than",...te(e),value:t,inclusive:!1})}a(Hr,"_lt");function Vt(t,e){return new td({check:"less_than",...te(e),value:t,inclusive:!0})}a(Vt,"_lte");function Zr(t,e){return new rd({check:"greater_than",...te(e),value:t,inclusive:!1})}a(Zr,"_gt");function At(t,e){return new rd({check:"greater_than",...te(e),value:t,inclusive:!0})}a(At,"_gte");function zc(t){return Zr(0,t)}a(zc,"_positive");function Dc(t){return Hr(0,t)}a(Dc,"_negative");function Uc(t){return Vt(0,t)}a(Uc,"_nonpositive");function Mc(t){return At(0,t)}a(Mc,"_nonnegative");function zn(t,e){return new vg({check:"multiple_of",...te(e),value:t})}a(zn,"_multipleOf");function Dn(t,e){return new Pg({check:"max_size",...te(e),maximum:t})}a(Dn,"_maxSize");function Wr(t,e){return new Sg({check:"min_size",...te(e),minimum:t})}a(Wr,"_minSize");function lo(t,e){return new xg({check:"size_equals",...te(e),size:t})}a(lo,"_size");function po(t,e){return new Tg({check:"max_length",...te(e),maximum:t})}a(po,"_maxLength");function vt(t,e){return new Ag({check:"min_length",...te(e),minimum:t})}a(vt,"_minLength");function fo(t,e){return new wg({check:"length_equals",...te(e),length:t})}a(fo,"_length");function Ut(t,e){return new Ig({check:"string_format",format:"regex",...te(e),pattern:t})}a(Ut,"_regex");function Yo(t){return new Cg({check:"string_format",format:"lowercase",...te(t)})}a(Yo,"_lowercase");function Qo(t){return new Rg({check:"string_format",format:"uppercase",...te(t)})}a(Qo,"_uppercase");function ei(t,e){return new Og({check:"string_format",format:"includes",...te(e),includes:t})}a(ei,"_includes");function ti(t,e){return new kg({check:"string_format",format:"starts_with",...te(e),prefix:t})}a(ti,"_startsWith");function ri(t,e){return new Ng({check:"string_format",format:"ends_with",...te(e),suffix:t})}a(ri,"_endsWith");function Lc(t,e,r){return new $g({check:"property",property:t,schema:e,...te(r)})}a(Lc,"_property");function ni(t,e){return new zg({check:"mime_type",mime:t,...te(e)})}a(ni,"_mime");function Rr(t){return new Dg({check:"overwrite",tx:t})}a(Rr,"_overwrite");function oi(t){return Rr(e=>e.normalize(t))}a(oi,"_normalize");function ii(){return Rr(t=>t.trim())}a(ii,"_trim");function ai(){return Rr(t=>t.toLowerCase())}a(ai,"_toLowerCase");function si(){return Rr(t=>t.toUpperCase())}a(si,"_toUpperCase");function ua(){return Rr(t=>Lh(t))}a(ua,"_slugify");function Ny(t,e,r){return new t({type:"array",element:e,...te(r)})}a(Ny,"_array");function H1(t,e,r){return new t({type:"union",options:e,...te(r)})}a(H1,"_union");function Z1(t,e,r){return new t({type:"union",options:e,inclusive:!1,...te(r)})}a(Z1,"_xor");function W1(t,e,r,o){return new t({type:"union",options:r,discriminator:e,...te(o)})}a(W1,"_discriminatedUnion");function K1(t,e,r){return new t({type:"intersection",left:e,right:r})}a(K1,"_intersection");function J1(t,e,r,o){let n=r instanceof Te,i=n?o:r,s=n?r:null;return new t({type:"tuple",items:e,rest:s,...te(i)})}a(J1,"_tuple");function X1(t,e,r,o){return new t({type:"record",keyType:e,valueType:r,...te(o)})}a(X1,"_record");function Y1(t,e,r,o){return new t({type:"map",keyType:e,valueType:r,...te(o)})}a(Y1,"_map");function Q1(t,e,r){return new t({type:"set",valueType:e,...te(r)})}a(Q1,"_set");function eL(t,e,r){let o=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new t({type:"enum",entries:o,...te(r)})}a(eL,"_enum");function tL(t,e,r){return new t({type:"enum",entries:e,...te(r)})}a(tL,"_nativeEnum");function rL(t,e,r){return new t({type:"literal",values:Array.isArray(e)?e:[e],...te(r)})}a(rL,"_literal");function hp(t,e){return new t({type:"file",...te(e)})}a(hp,"_file");function nL(t,e){return new t({type:"transform",transform:e})}a(nL,"_transform");function oL(t,e){return new t({type:"optional",innerType:e})}a(oL,"_optional");function iL(t,e){return new t({type:"nullable",innerType:e})}a(iL,"_nullable");function aL(t,e,r){return new t({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():Bl(r)}})}a(aL,"_default");function sL(t,e,r){return new t({type:"nonoptional",innerType:e,...te(r)})}a(sL,"_nonoptional");function cL(t,e){return new t({type:"success",innerType:e})}a(cL,"_success");function uL(t,e,r){return new t({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}a(uL,"_catch");function lL(t,e,r){return new t({type:"pipe",in:e,out:r})}a(lL,"_pipe");function dL(t,e){return new t({type:"readonly",innerType:e})}a(dL,"_readonly");function pL(t,e,r){return new t({type:"template_literal",parts:e,...te(r)})}a(pL,"_templateLiteral");function fL(t,e){return new t({type:"lazy",getter:e})}a(fL,"_lazy");function mL(t,e){return new t({type:"promise",innerType:e})}a(mL,"_promise");function jc(t,e,r){let o=te(r);return o.abort??(o.abort=!0),new t({type:"custom",check:"custom",fn:e,...o})}a(jc,"_custom");function Fc(t,e,r){return new t({type:"custom",check:"custom",fn:e,...te(r)})}a(Fc,"_refine");function gp(t){let e=kT(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Hi(o,r.value,e._zod.def));else{let n=o;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=e),n.continue??(n.continue=!e._zod.def.abort),r.issues.push(Hi(n))}},t(r.value,r)));return e}a(gp,"_superRefine");function kT(t,e){let r=new rt({check:"custom",...te(e)});return r._zod.check=t,r}a(kT,"_check");function yp(t){let e=new rt({check:"describe"});return e._zod.onattach=[r=>{let o=Ot.get(r)??{};Ot.add(r,{...o,description:t})}],e._zod.check=()=>{},e}a(yp,"describe");function _p(t){let e=new rt({check:"meta"});return e._zod.onattach=[r=>{let o=Ot.get(r)??{};Ot.add(r,{...o,...t})}],e._zod.check=()=>{},e}a(_p,"meta");function vp(t,e){let r=te(e),o=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(o=o.map(h=>typeof h=="string"?h.toLowerCase():h),n=n.map(h=>typeof h=="string"?h.toLowerCase():h));let i=new Set(o),s=new Set(n),u=t.Codec??ia,l=t.Boolean??Ko,p=t.String??$n,f=new p({type:"string",error:r.error}),y=new l({type:"boolean",error:r.error}),m=new u({type:"pipe",in:f,out:y,transform:a(((h,_)=>{let P=h;return r.case!=="sensitive"&&(P=P.toLowerCase()),i.has(P)?!0:s.has(P)?!1:(_.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...s],input:_.value,inst:m,continue:!1}),{})}),"transform"),reverseTransform:a(((h,_)=>h===!0?o[0]||"true":n[0]||"false"),"reverseTransform"),error:r.error});return m}a(vp,"_stringbool");function ci(t,e,r,o={}){let n=te(o),i={...te(o),check:"string_format",type:"string",format:e,fn:typeof r=="function"?r:u=>r.test(u),...n};return r instanceof RegExp&&(i.pattern=r),new t(i)}a(ci,"_stringFormat");function mo(t){let e=t?.target??"draft-2020-12";return e==="draft-4"&&(e="draft-04"),e==="draft-7"&&(e="draft-07"),{processors:t.processors??{},metadataRegistry:t?.metadata??Ot,target:e,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,cycles:t?.cycles??"ref",reused:t?.reused??"inline",external:t?.external??void 0}}a(mo,"initializeContext");function Ye(t,e,r={path:[],schemaPath:[]}){var o;let n=t._zod.def,i=e.seen.get(t);if(i)return i.count++,r.schemaPath.includes(t)&&(i.cycle=r.path),i.schema;let s={schema:{},count:1,cycle:void 0,path:r.path};e.seen.set(t,s);let u=t._zod.toJSONSchema?.();if(u)s.schema=u;else{let f={...r,schemaPath:[...r.schemaPath,t],path:r.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(e,s.schema,f);else{let m=s.schema,h=e.processors[n.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);h(t,e,m,f)}let y=t._zod.parent;y&&(s.ref||(s.ref=y),Ye(y,e,f),e.seen.get(y).isParent=!0)}let l=e.metadataRegistry.get(t);return l&&Object.assign(s.schema,l),e.io==="input"&&Ht(t)&&(delete s.schema.examples,delete s.schema.default),e.io==="input"&&s.schema._prefault&&((o=s.schema).default??(o.default=s.schema._prefault)),delete s.schema._prefault,e.seen.get(t).schema}a(Ye,"process");function ho(t,e){let r=t.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let s of t.seen.entries()){let u=t.metadataRegistry.get(s[0])?.id;if(u){let l=o.get(u);if(l&&l!==s[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,s[0])}}let n=a(s=>{let u=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){let y=t.external.registry.get(s[0])?.id,m=t.external.uri??(_=>_);if(y)return{ref:m(y)};let h=s[1].defId??s[1].schema.id??`schema${t.counter++}`;return s[1].defId=h,{defId:h,ref:`${m("__shared")}#/${u}/${h}`}}if(s[1]===r)return{ref:"#"};let p=`#/${u}/`,f=s[1].schema.id??`__schema${t.counter++}`;return{defId:f,ref:p+f}},"makeURI"),i=a(s=>{if(s[1].schema.$ref)return;let u=s[1],{ref:l,defId:p}=n(s);u.def={...u.schema},p&&(u.defId=p);let f=u.schema;for(let y in f)delete f[y];f.$ref=l},"extractToDef");if(t.cycles==="throw")for(let s of t.seen.entries()){let u=s[1];if(u.cycle)throw new Error(`Cycle detected: #/${u.cycle?.join("/")}/<root>
106
106
 
107
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of t.seen.entries()){let u=s[1];if(e===s[0]){i(s);continue}if(t.external){let p=t.external.registry.get(s[0])?.id;if(e!==s[0]&&p){i(s);continue}}if(t.metadataRegistry.get(s[0])?.id){i(s);continue}if(u.cycle){i(s);continue}if(u.count>1&&t.reused==="ref"){i(s);continue}}}a(ho,"extractDefs");function go(t,e){let r=t.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=a(s=>{let u=t.seen.get(s);if(u.ref===null)return;let l=u.def??u.schema,p={...l},f=u.ref;if(u.ref=null,f){o(f);let m=t.seen.get(f),h=m.schema;if(h.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(h)):Object.assign(l,h),Object.assign(l,p),s._zod.parent===f)for(let E in l)E==="$ref"||E==="allOf"||E in p||delete l[E];if(h.$ref&&m.def)for(let E in l)E==="$ref"||E==="allOf"||E in m.def&&JSON.stringify(l[E])===JSON.stringify(m.def[E])&&delete l[E]}let y=s._zod.parent;if(y&&y!==f){o(y);let m=t.seen.get(y);if(m?.schema.$ref&&(l.$ref=m.schema.$ref,m.def))for(let h in l)h==="$ref"||h==="allOf"||h in m.def&&JSON.stringify(l[h])===JSON.stringify(m.def[h])&&delete l[h]}t.override({zodSchema:s,jsonSchema:l,path:u.path??[]})},"flattenRef");for(let s of[...t.seen.entries()].reverse())o(s[0]);let n={};if(t.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){let s=t.external.registry.get(e)?.id;if(!s)throw new Error("Schema is missing an `id` property");n.$id=t.external.uri(s)}Object.assign(n,r.def??r.schema);let i=t.external?.defs??{};for(let s of t.seen.entries()){let u=s[1];u.def&&u.defId&&(i[u.defId]=u.def)}t.external||Object.keys(i).length>0&&(t.target==="draft-2020-12"?n.$defs=i:n.definitions=i);try{let s=JSON.parse(JSON.stringify(n));return Object.defineProperty(s,"~standard",{value:{...e["~standard"],jsonSchema:{input:la(e,"input",t.processors),output:la(e,"output",t.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}a(go,"finalize");function Ht(t,e){let r=e??{seen:new Set};if(r.seen.has(t))return!1;r.seen.add(t);let o=t._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Ht(o.element,r);if(o.type==="set")return Ht(o.valueType,r);if(o.type==="lazy")return Ht(o.getter(),r);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return Ht(o.innerType,r);if(o.type==="intersection")return Ht(o.left,r)||Ht(o.right,r);if(o.type==="record"||o.type==="map")return Ht(o.keyType,r)||Ht(o.valueType,r);if(o.type==="pipe")return Ht(o.in,r)||Ht(o.out,r);if(o.type==="object"){for(let n in o.shape)if(Ht(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(Ht(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(Ht(n,r))return!0;return!!(o.rest&&Ht(o.rest,r))}return!1}a(Ht,"isTransforming");var $y=a((t,e={})=>r=>{let o=mo({...r,processors:e});return Ye(t,o),ho(o,t),go(o,t)},"createToJSONSchemaMethod"),la=a((t,e,r={})=>o=>{let{libraryOptions:n,target:i}=o??{},s=mo({...n??{},target:i,io:e,processors:r});return Ye(t,s),ho(s,t),go(s,t)},"createStandardJSONSchemaMethod");var gL={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},zy=a((t,e,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:s,format:u,patterns:l,contentEncoding:p}=t._zod.bag;if(typeof i=="number"&&(n.minLength=i),typeof s=="number"&&(n.maxLength=s),u&&(n.format=gL[u]??u,n.format===""&&delete n.format,u==="time"&&delete n.format),p&&(n.contentEncoding=p),l&&l.size>0){let f=[...l];f.length===1?n.pattern=f[0].source:f.length>1&&(n.allOf=[...f.map(y=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:y.source}))])}},"stringProcessor"),Dy=a((t,e,r,o)=>{let n=r,{minimum:i,maximum:s,format:u,multipleOf:l,exclusiveMaximum:p,exclusiveMinimum:f}=t._zod.bag;typeof u=="string"&&u.includes("int")?n.type="integer":n.type="number",typeof f=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(n.minimum=f,n.exclusiveMinimum=!0):n.exclusiveMinimum=f),typeof i=="number"&&(n.minimum=i,typeof f=="number"&&e.target!=="draft-04"&&(f>=i?delete n.minimum:delete n.exclusiveMinimum)),typeof p=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(n.maximum=p,n.exclusiveMaximum=!0):n.exclusiveMaximum=p),typeof s=="number"&&(n.maximum=s,typeof p=="number"&&e.target!=="draft-04"&&(p<=s?delete n.maximum:delete n.exclusiveMaximum)),typeof l=="number"&&(n.multipleOf=l)},"numberProcessor"),Uy=a((t,e,r,o)=>{r.type="boolean"},"booleanProcessor"),My=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},"bigintProcessor"),Ly=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},"symbolProcessor"),jy=a((t,e,r,o)=>{e.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},"nullProcessor"),Fy=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},"undefinedProcessor"),By=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},"voidProcessor"),qy=a((t,e,r,o)=>{r.not={}},"neverProcessor"),Gy=a((t,e,r,o)=>{},"anyProcessor"),Vy=a((t,e,r,o)=>{},"unknownProcessor"),Hy=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},"dateProcessor"),Zy=a((t,e,r,o)=>{let n=t._zod.def,i=vs(n.entries);i.every(s=>typeof s=="number")&&(r.type="number"),i.every(s=>typeof s=="string")&&(r.type="string"),r.enum=i},"enumProcessor"),Wy=a((t,e,r,o)=>{let n=t._zod.def,i=[];for(let s of n.values)if(s===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(e.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(s))}else i.push(s);if(i.length!==0)if(i.length===1){let s=i[0];r.type=s===null?"null":typeof s,e.target==="draft-04"||e.target==="openapi-3.0"?r.enum=[s]:r.const=s}else i.every(s=>typeof s=="number")&&(r.type="number"),i.every(s=>typeof s=="string")&&(r.type="string"),i.every(s=>typeof s=="boolean")&&(r.type="boolean"),i.every(s=>s===null)&&(r.type="null"),r.enum=i},"literalProcessor"),Ky=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},"nanProcessor"),Jy=a((t,e,r,o)=>{let n=r,i=t._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=i.source},"templateLiteralProcessor"),Xy=a((t,e,r,o)=>{let n=r,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:u,mime:l}=t._zod.bag;s!==void 0&&(i.minLength=s),u!==void 0&&(i.maxLength=u),l?l.length===1?(i.contentMediaType=l[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=l.map(p=>({contentMediaType:p}))):Object.assign(n,i)},"fileProcessor"),Yy=a((t,e,r,o)=>{r.type="boolean"},"successProcessor"),Qy=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},"customProcessor"),e_=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},"functionProcessor"),t_=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},"transformProcessor"),r_=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},"mapProcessor"),n_=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},"setProcessor"),o_=a((t,e,r,o)=>{let n=r,i=t._zod.def,{minimum:s,maximum:u}=t._zod.bag;typeof s=="number"&&(n.minItems=s),typeof u=="number"&&(n.maxItems=u),n.type="array",n.items=Ye(i.element,e,{...o,path:[...o.path,"items"]})},"arrayProcessor"),i_=a((t,e,r,o)=>{let n=r,i=t._zod.def;n.type="object",n.properties={};let s=i.shape;for(let p in s)n.properties[p]=Ye(s[p],e,{...o,path:[...o.path,"properties",p]});let u=new Set(Object.keys(s)),l=new Set([...u].filter(p=>{let f=i.shape[p]._zod;return e.io==="input"?f.optin===void 0:f.optout===void 0}));l.size>0&&(n.required=Array.from(l)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=Ye(i.catchall,e,{...o,path:[...o.path,"additionalProperties"]})):e.io==="output"&&(n.additionalProperties=!1)},"objectProcessor"),Pp=a((t,e,r,o)=>{let n=t._zod.def,i=n.inclusive===!1,s=n.options.map((u,l)=>Ye(u,e,{...o,path:[...o.path,i?"oneOf":"anyOf",l]}));i?r.oneOf=s:r.anyOf=s},"unionProcessor"),a_=a((t,e,r,o)=>{let n=t._zod.def,i=Ye(n.left,e,{...o,path:[...o.path,"allOf",0]}),s=Ye(n.right,e,{...o,path:[...o.path,"allOf",1]}),u=a(p=>"allOf"in p&&Object.keys(p).length===1,"isSimpleIntersection"),l=[...u(i)?i.allOf:[i],...u(s)?s.allOf:[s]];r.allOf=l},"intersectionProcessor"),s_=a((t,e,r,o)=>{let n=r,i=t._zod.def;n.type="array";let s=e.target==="draft-2020-12"?"prefixItems":"items",u=e.target==="draft-2020-12"||e.target==="openapi-3.0"?"items":"additionalItems",l=i.items.map((m,h)=>Ye(m,e,{...o,path:[...o.path,s,h]})),p=i.rest?Ye(i.rest,e,{...o,path:[...o.path,u,...e.target==="openapi-3.0"?[i.items.length]:[]]}):null;e.target==="draft-2020-12"?(n.prefixItems=l,p&&(n.items=p)):e.target==="openapi-3.0"?(n.items={anyOf:l},p&&n.items.anyOf.push(p),n.minItems=l.length,p||(n.maxItems=l.length)):(n.items=l,p&&(n.additionalItems=p));let{minimum:f,maximum:y}=t._zod.bag;typeof f=="number"&&(n.minItems=f),typeof y=="number"&&(n.maxItems=y)},"tupleProcessor"),c_=a((t,e,r,o)=>{let n=r,i=t._zod.def;n.type="object";let s=i.keyType,l=s._zod.bag?.patterns;if(i.mode==="loose"&&l&&l.size>0){let f=Ye(i.valueType,e,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let y of l)n.patternProperties[y.source]=f}else(e.target==="draft-07"||e.target==="draft-2020-12")&&(n.propertyNames=Ye(i.keyType,e,{...o,path:[...o.path,"propertyNames"]})),n.additionalProperties=Ye(i.valueType,e,{...o,path:[...o.path,"additionalProperties"]});let p=s._zod.values;if(p){let f=[...p].filter(y=>typeof y=="string"||typeof y=="number");f.length>0&&(n.required=f)}},"recordProcessor"),u_=a((t,e,r,o)=>{let n=t._zod.def,i=Ye(n.innerType,e,o),s=e.seen.get(t);e.target==="openapi-3.0"?(s.ref=n.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},"nullableProcessor"),l_=a((t,e,r,o)=>{let n=t._zod.def;Ye(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType},"nonoptionalProcessor"),d_=a((t,e,r,o)=>{let n=t._zod.def;Ye(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},"defaultProcessor"),p_=a((t,e,r,o)=>{let n=t._zod.def;Ye(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType,e.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},"prefaultProcessor"),f_=a((t,e,r,o)=>{let n=t._zod.def;Ye(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType;let s;try{s=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=s},"catchProcessor"),m_=a((t,e,r,o)=>{let n=t._zod.def,i=e.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;Ye(i,e,o);let s=e.seen.get(t);s.ref=i},"pipeProcessor"),h_=a((t,e,r,o)=>{let n=t._zod.def;Ye(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType,r.readOnly=!0},"readonlyProcessor"),g_=a((t,e,r,o)=>{let n=t._zod.def;Ye(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType},"promiseProcessor"),Ep=a((t,e,r,o)=>{let n=t._zod.def;Ye(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType},"optionalProcessor"),y_=a((t,e,r,o)=>{let n=t._zod.innerType;Ye(n,e,o);let i=e.seen.get(t);i.ref=n},"lazyProcessor"),bp={string:zy,number:Dy,boolean:Uy,bigint:My,symbol:Ly,null:jy,undefined:Fy,void:By,never:qy,any:Gy,unknown:Vy,date:Hy,enum:Zy,literal:Wy,nan:Ky,template_literal:Jy,file:Xy,success:Yy,custom:Qy,function:e_,transform:t_,map:r_,set:n_,array:o_,object:i_,union:Pp,intersection:a_,tuple:s_,record:c_,nullable:u_,nonoptional:l_,default:d_,prefault:p_,catch:f_,pipe:m_,readonly:h_,promise:g_,optional:Ep,lazy:y_};function Bc(t,e){if("_idmap"in t){let o=t,n=mo({...e,processors:bp}),i={};for(let l of o._idmap.entries()){let[p,f]=l;Ye(f,n)}let s={},u={registry:o,uri:e?.uri,defs:i};n.external=u;for(let l of o._idmap.entries()){let[p,f]=l;ho(n,f),s[p]=go(n,f)}if(Object.keys(i).length>0){let l=n.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[l]:i}}return{schemas:s}}let r=mo({...e,processors:bp});return Ye(t,r),ho(r,t),go(r,t)}a(Bc,"toJSONSchema");var Sp=class{static{a(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(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let r=e?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=mo({processors:bp,target:r,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,r={path:[],schemaPath:[]}){return Ye(e,this.ctx,r)}emit(e,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),ho(this.ctx,e);let o=go(this.ctx,e),{"~standard":n,...i}=o;return i}};var NT={};var Pt=w("ZodMiniType",(t,e)=>{if(!t._zod)throw new Error("Uninitialized schema in ZodMiniType.");Te.init(t,e),t.def=e,t.type=e.type,t.parse=(r,o)=>Ho(t,r,o,{callee:t.parse}),t.safeParse=(r,o)=>Yi(t,r,o),t.parseAsync=async(r,o)=>Zo(t,r,o,{callee:t.parseAsync}),t.safeParseAsync=async(r,o)=>ea(t,r,o),t.check=(...r)=>t.clone({...e,checks:[...e.checks??[],...r.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]},{parent:!0}),t.with=t.check,t.clone=(r,o)=>Rt(t,r,o),t.brand=()=>t,t.register=((r,o)=>(r.add(t,o),t)),t.apply=r=>r(t)}),xp=w("ZodMiniString",(t,e)=>{$n.init(t,e),Pt.init(t,e)});function v(t){return Qs(xp,t)}a(v,"string");var da=w("ZodMiniStringFormat",(t,e)=>{Xe.init(t,e),xp.init(t,e)});var vL=w("ZodMiniURL",(t,e)=>{Is.init(t,e),da.init(t,e)});function $T(t){return Xo(vL,t)}a($T,"url");var Tp=w("ZodMiniNumber",(t,e)=>{ra.init(t,e),Pt.init(t,e)});function kt(t){return Tc(Tp,t)}a(kt,"number");var bL=w("ZodMiniNumberFormat",(t,e)=>{Ns.init(t,e),Tp.init(t,e)});function zT(t){return wc(bL,t)}a(zT,"int");var __=w("ZodMiniBoolean",(t,e)=>{Ko.init(t,e),Pt.init(t,e)});function He(t){return Ic(__,t)}a(He,"boolean");var DT=w("ZodMiniBigInt",(t,e)=>{na.init(t,e),Pt.init(t,e)});var PL=w("ZodMiniAny",(t,e)=>{$s.init(t,e),Pt.init(t,e)});function qc(){return Oc(PL)}a(qc,"any");var EL=w("ZodMiniUnknown",(t,e)=>{zs.init(t,e),Pt.init(t,e)});function Ce(){return kc(EL)}a(Ce,"unknown");var SL=w("ZodMiniVoid",(t,e)=>{Ds.init(t,e),Pt.init(t,e)});function UT(t){return Nc(SL,t)}a(UT,"_void");var MT=w("ZodMiniDate",(t,e)=>{Us.init(t,e),Pt.init(t,e)});var xL=w("ZodMiniArray",(t,e)=>{Ms.init(t,e),Pt.init(t,e)});function Se(t,e){return new xL({type:"array",element:t,...te(e)})}a(Se,"array");var TL=w("ZodMiniObject",(t,e)=>{Nd.init(t,e),Pt.init(t,e),De(t,"shape",()=>e.shape)});function O(t,e){let r={type:"object",shape:t??{},...te(e)};return new TL(r)}a(O,"object");var AL=w("ZodMiniUnion",(t,e)=>{Jo.init(t,e),Pt.init(t,e)});function Ue(t,e){return new AL({type:"union",options:t,...te(e)})}a(Ue,"union");var wL=w("ZodMiniDiscriminatedUnion",(t,e)=>{Ls.init(t,e),Pt.init(t,e)});function yo(t,e,r){return new wL({type:"union",options:e,discriminator:t,...te(r)})}a(yo,"discriminatedUnion");var IL=w("ZodMiniRecord",(t,e)=>{Fs.init(t,e),Pt.init(t,e)});function Re(t,e,r){return new IL({type:"record",keyType:t,valueType:e,...te(r)})}a(Re,"record");var CL=w("ZodMiniEnum",(t,e)=>{Bs.init(t,e),Pt.init(t,e),t.options=Object.values(e.entries)});function Pe(t,e){let r=Array.isArray(t)?Object.fromEntries(t.map(o=>[o,o])):t;return new CL({type:"enum",entries:r,...te(e)})}a(Pe,"_enum");var RL=w("ZodMiniLiteral",(t,e)=>{qs.init(t,e),Pt.init(t,e)});function ve(t,e){return new RL({type:"literal",values:Array.isArray(t)?t:[t],...te(e)})}a(ve,"literal");var OL=w("ZodMiniTransform",(t,e)=>{Gs.init(t,e),Pt.init(t,e)});function _o(t){return new OL({type:"transform",transform:t})}a(_o,"transform");var kL=w("ZodMiniOptional",(t,e)=>{oa.init(t,e),Pt.init(t,e)});function q(t){return new kL({type:"optional",innerType:t})}a(q,"optional");var NL=w("ZodMiniNullable",(t,e)=>{Vs.init(t,e),Pt.init(t,e)});function Gc(t){return new NL({type:"nullable",innerType:t})}a(Gc,"nullable");var $L=w("ZodMiniPipe",(t,e)=>{Hs.init(t,e),Pt.init(t,e)});function vo(t,e){return new $L({type:"pipe",in:t,out:e})}a(vo,"pipe");var LT=w("ZodMiniCustom",(t,e)=>{Zs.init(t,e),Pt.init(t,e)});function Ap(t,e){return jc(LT,t??(()=>!0),e)}a(Ap,"custom");function v_(t,e={}){return Fc(LT,t,e)}a(v_,"refine");var wp={};Xt(wp,{ZodMiniISODate:()=>P_,ZodMiniISODateTime:()=>b_,ZodMiniISODuration:()=>S_,ZodMiniISOTime:()=>E_,date:()=>DL,datetime:()=>zL,duration:()=>ML,time:()=>UL});var b_=w("ZodMiniISODateTime",(t,e)=>{Cs.init(t,e),da.init(t,e)});function zL(t){return Pc(b_,t)}a(zL,"datetime");var P_=w("ZodMiniISODate",(t,e)=>{Rs.init(t,e),da.init(t,e)});function DL(t){return Ec(P_,t)}a(DL,"date");var E_=w("ZodMiniISOTime",(t,e)=>{Os.init(t,e),da.init(t,e)});function UL(t){return Sc(E_,t)}a(UL,"time");var S_=w("ZodMiniISODuration",(t,e)=>{ks.init(t,e),da.init(t,e)});function ML(t){return xc(S_,t)}a(ML,"duration");var Vc={};Xt(Vc,{bigint:()=>BL,boolean:()=>FL,date:()=>qL,number:()=>jL,string:()=>LL});function LL(t){return ec(xp,t)}a(LL,"string");function jL(t){return Ac(Tp,t)}a(jL,"number");function FL(t){return Cc(__,t)}a(FL,"boolean");function BL(t){return Rc(DT,t)}a(BL,"bigint");function qL(t){return $c(MT,t)}a(qL,"date");var T_=O({retryOnFailure:O({defaultValue:q(He()),hide:q(He())}),continueOnFailure:O({defaultValue:q(He()),hide:q(He())})}),x_=class{constructor(e,r,o,n,i,s,u,l,p,f,y,m,h){this.name=e;this.displayName=r;this.description=o;this.props=n;this.propertyGroups=i;this.run=s;this.test=u;this.requireAuth=l;this.errorHandlingOptions=p;this.outputSchema=f;this.audience=y;this.aiMetadata=m;this.classification=h}static{a(this,"IAction")}},Oe=a(t=>new x_(t.name,t.displayName,t.description,t.props,t.propertyGroups,t.run,t.test??t.run,t.requireAuth??!0,t.errorHandlingOptions??{continueOnFailure:{defaultValue:!1},retryOnFailure:{defaultValue:!1}},t.outputSchema,t.audience,t.aiMetadata,t.classification),"createAction");var Ge=O({displayName:v(),description:q(v()),advanced:q(He()),width:q(Pe(["half","full"])),icon:q(v()),placeholder:q(v())}),ke=a((t,e)=>O({type:ve(e),required:He(),defaultValue:q(qc())}),"TPropertyValue");var pr=O({...Ge.shape,...ke(v(),"SHORT_TEXT").shape}),Un=O({...Ge.shape,...ke(v(),"LONG_TEXT").shape});var FT=O({label:v(),value:Ce(),description:q(v()),icon:q(v())}),Ip=O({disabled:q(He()),placeholder:q(v()),options:Se(FT)});var VL=Pe(["cards"]),fr=O({...Ge.shape,options:Ip,display:q(VL),...ke(Ce(),"STATIC_DROPDOWN").shape}),Mn=O({...Ge.shape,options:Ip,...ke(Se(Ce()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var A_=O({...Ge.shape,...ke(Ce(),"DROPDOWN").shape,refreshers:Se(v())}),Hc=O({...Ge.shape,...ke(Se(Ce()),"MULTI_SELECT_DROPDOWN").shape,refreshers:Se(v())});var Ln=O({...Ge.shape,reveals:q(Se(v())),...ke(He(),"CHECKBOX").shape});var jn=O({...Ge.shape,display:q(Pe(["stepper"])),min:q(kt()),max:q(kt()),step:q(kt()),...ke(kt(),"NUMBER").shape});var Zc=O({...Ge.shape,streaming:q(He()),...ke(Ce(),"FILE").shape});var Wc=O({...Ge.shape,...ke(v(),"DATE_TIME").shape});var BT=Re(v(),Ue([pr,Un,fr,Hc,Mn,Ln,jn,Zc,Wc])),Kc=O({...Ge.shape,properties:BT,...ke(Se(Ce()),"ARRAY").shape});var qT=Pe(["any_time","last_24_hours","last_7_days","last_30_days","last_90_days","this_month","custom"]),GT=O({preset:q(qT),after:q(v()),before:q(v())}),w_=O({...Ge.shape,display:q(Pe(["dropdown"])),...ke(GT,"DATE_RANGE").shape});var Jc=O({...Ge.shape,...ke(Ue([Re(v(),Ce())]),"JSON").shape});var VT=Ue([pr,fr,Jc,Kc,Mn]),HL=Re(v(),VT),I_=O({refreshers:Se(v()),...Ge.shape,...ke(Ce(),"DYNAMIC").shape});var Cp=O({...Ge.shape,...ke(UT(),"MARKDOWN").shape});var Xc=(r=>(r.ARCHIVE="ARCHIVE",r.REGISTRY="REGISTRY",r))(Xc||{}),pa=(r=>(r.CUSTOM="CUSTOM",r.OFFICIAL="OFFICIAL",r))(pa||{}),fa=(T=>(T.ARTIFICIAL_INTELLIGENCE="ARTIFICIAL_INTELLIGENCE",T.COMMUNICATION="COMMUNICATION",T.COMMERCE="COMMERCE",T.CORE="CORE",T.UNIVERSAL_AI="UNIVERSAL_AI",T.FLOW_CONTROL="FLOW_CONTROL",T.BUSINESS_INTELLIGENCE="BUSINESS_INTELLIGENCE",T.ACCOUNTING="ACCOUNTING",T.PRODUCTIVITY="PRODUCTIVITY",T.CONTENT_AND_FILES="CONTENT_AND_FILES",T.DEVELOPER_TOOLS="DEVELOPER_TOOLS",T.CUSTOMER_SUPPORT="CUSTOMER_SUPPORT",T.FORMS_AND_SURVEYS="FORMS_AND_SURVEYS",T.HUMAN_RESOURCES="HUMAN_RESOURCES",T.PAYMENT_PROCESSING="PAYMENT_PROCESSING",T.MARKETING="MARKETING",T.SALES_AND_CRM="SALES_AND_CRM",T))(fa||{});var Yc=(r=>(r.AUTHORIZATION_CODE="authorization_code",r.CLIENT_CREDENTIALS="client_credentials",r))(Yc||{}),C_="both_client_credentials_and_authorization_code";var bo=(n=>(n.POLLING="POLLING",n.WEBHOOK="WEBHOOK",n.APP_WEBHOOK="APP_WEBHOOK",n.MANUAL="MANUAL",n))(bo||{}),Qc=(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))(Qc||{}),ZL=O({strategy:Pe(Qc),paramName:q(v())}),eu=(r=>(r.SIMULATION="SIMULATION",r.TEST_FUNCTION="TEST_FUNCTION",r))(eu||{});var Rp=(r=>(r.WEBSOCKET="WEBSOCKET",r.NONE="NONE",r))(Rp||{}),HT=O({status:q(kt()),body:q(Ce()),headers:q(Re(v(),v()))}),ZT=O({type:ve("DELAY"),resumeDateTime:v(),requestIdToReply:q(v()),handlerId:q(v()),streamStepProgress:q(Pe(Rp))}),WT=O({type:ve("WEBHOOK"),requestId:v(),requestIdToReply:q(v()),response:HT,handlerId:q(v()),streamStepProgress:q(Pe(Rp))}),WL=Ue([ZT,WT]);var KL=O({body:Ce(),rawBody:q(Ce()),headers:Re(v(),v()),queryParams:Re(v(),v())});function ft(t){return t==null}a(ft,"isNil");function tu(t){return t==null?!0:typeof t=="string"||Array.isArray(t)?t.length===0:typeof t=="object"?Object.keys(t).length===0:!1}a(tu,"isEmpty");function Op(t,e){if(t==null)throw new Error(`${e} is null or undefined`)}a(Op,"assertNotNullOrUndefined");function O_(t){try{return{data:t(),error:null}}catch(e){return{data:null,error:e}}}a(O_,"tryCatchSync");var k_=Tt(require("crypto"),1);var JL=128,Po,ma,XL=a(t=>{if(t<0)throw new RangeError("Wrong ID size");try{!Po||Po.length<t?(Po=Buffer.allocUnsafe(t*JL),k_.default.randomFillSync(Po),ma=0):ma+t>Po.length&&(k_.default.randomFillSync(Po),ma=0)}catch(e){throw Po=void 0,e}ma+=t},"fillPool"),YL=a(t=>(XL(t|=0),Po.subarray(ma-t,ma)),"random"),QL=a((t,e,r)=>{let o=(2<<31-Math.clz32(t.length-1|1))-1,n=Math.ceil(1.6*o*e/t.length);return(i=e)=>{if(i<=0)return"";let s="";for(;;){let u=r(n),l=n;for(;l--;)if(s+=t[u[l]&o]||"",s.length===i)return s}}},"customRandom"),KT=a((t,e=21)=>QL(t,e,YL),"customAlphabet");var ej="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",JT=21,R9=v().check(Ut(new RegExp(`^[0-9a-zA-Z]{${JT}}$`))),tj=KT(ej,JT);var Eo=vo(_o(t=>t instanceof Date?t.toISOString():t),v()),Or={id:v(),created:Eo,updated:Eo},mt=a(t=>q(Gc(t)),"Nullable");function N_(t){return q(Gc(Pe(t)))}a(N_,"NullableEnum");var N9=vo(_o(t=>t==="true"||t===!0?!0:t==="false"||t===!1?!1:void 0),q(He())),$9=q(wp.datetime({offset:!0}).check(v_(t=>t.slice(0,4)!=="0000"))),kp=a(t=>vo(_o(e=>Array.isArray(e)?e:e!==void 0?[e]:void 0),q(Se(t))),"OptionalArrayFromQuery");var U9=Re(v(),Ce());var So=(T=>(T.OPENAI="openai",T.OPENROUTER="openrouter",T.ANTHROPIC="anthropic",T.AZURE="azure",T.GOOGLE="google",T.ACTIVEPIECES="activepieces",T.CLOUDFLARE_GATEWAY="cloudflare-gateway",T.CUSTOM="custom",T.BEDROCK="bedrock",T.VERTEX="vertex",T.MISTRAL="mistral",T.XAI="xai",T.DEEPSEEK="deepseek",T.ZAI="zai",T.QWEN="qwen",T.MINIMAX="minimax",T.MOONSHOT="moonshot",T))(So||{});var le={};Xt(le,{$brand:()=>ys,$input:()=>Qd,$output:()=>Yd,NEVER:()=>Ll,TimePrecision:()=>tp,ZodAny:()=>nv,ZodArray:()=>sv,ZodBase64:()=>Qp,ZodBase64URL:()=>ef,ZodBigInt:()=>Pa,ZodBigIntFormat:()=>nf,ZodBoolean:()=>ba,ZodCIDRv4:()=>Xp,ZodCIDRv6:()=>Yp,ZodCUID:()=>Gp,ZodCUID2:()=>Vp,ZodCatch:()=>Cv,ZodCodec:()=>pf,ZodCustom:()=>fu,ZodCustomStringFormat:()=>_a,ZodDate:()=>cu,ZodDefault:()=>Sv,ZodDiscriminatedUnion:()=>uv,ZodE164:()=>tf,ZodEmail:()=>Fp,ZodEmoji:()=>Bp,ZodEnum:()=>ga,ZodError:()=>rj,ZodExactOptional:()=>bv,ZodFile:()=>_v,ZodFirstPartyTypeKind:()=>Fv,ZodFunction:()=>Mv,ZodGUID:()=>nu,ZodIPv4:()=>Kp,ZodIPv6:()=>Jp,ZodISODate:()=>zp,ZodISODateTime:()=>$p,ZodISODuration:()=>Up,ZodISOTime:()=>Dp,ZodIntersection:()=>lv,ZodIssueCode:()=>oj,ZodJWT:()=>rf,ZodKSUID:()=>Wp,ZodLazy:()=>zv,ZodLiteral:()=>yv,ZodMAC:()=>J_,ZodMap:()=>hv,ZodNaN:()=>Ov,ZodNanoID:()=>qp,ZodNever:()=>iv,ZodNonOptional:()=>lf,ZodNull:()=>tv,ZodNullable:()=>Ev,ZodNumber:()=>va,ZodNumberFormat:()=>li,ZodObject:()=>lu,ZodOptional:()=>uf,ZodPipe:()=>df,ZodPrefault:()=>Tv,ZodPromise:()=>Uv,ZodReadonly:()=>kv,ZodRealError:()=>tr,ZodRecord:()=>pu,ZodSet:()=>gv,ZodString:()=>ya,ZodStringFormat:()=>nt,ZodSuccess:()=>Iv,ZodSymbol:()=>Q_,ZodTemplateLiteral:()=>$v,ZodTransform:()=>vv,ZodTuple:()=>pv,ZodType:()=>Me,ZodULID:()=>Hp,ZodURL:()=>su,ZodUUID:()=>cn,ZodUndefined:()=>ev,ZodUnion:()=>du,ZodUnknown:()=>ov,ZodVoid:()=>av,ZodXID:()=>Zp,ZodXor:()=>cv,_ZodString:()=>jp,_default:()=>xv,_function:()=>nw,any:()=>zA,array:()=>uu,base64:()=>_A,base64url:()=>vA,bigint:()=>RA,boolean:()=>Y_,catch:()=>Rv,check:()=>ow,cidrv4:()=>gA,cidrv6:()=>yA,clone:()=>Rt,codec:()=>ew,coerce:()=>Bv,config:()=>pt,core:()=>dr,cuid:()=>cA,cuid2:()=>uA,custom:()=>iw,date:()=>UA,decode:()=>q_,decodeAsync:()=>V_,describe:()=>aw,discriminatedUnion:()=>qA,e164:()=>bA,email:()=>YT,emoji:()=>aA,encode:()=>B_,encodeAsync:()=>G_,endsWith:()=>ri,enum:()=>sf,exactOptional:()=>Pv,file:()=>JA,flattenError:()=>Zi,float32:()=>AA,float64:()=>wA,formatError:()=>Wi,fromJSONSchema:()=>fw,function:()=>nw,getErrorMap:()=>aj,globalRegistry:()=>Ot,gt:()=>Zr,gte:()=>At,guid:()=>QT,hash:()=>TA,hex:()=>xA,hostname:()=>SA,httpUrl:()=>iA,includes:()=>ei,instanceof:()=>cw,int:()=>Lp,int32:()=>IA,int64:()=>OA,intersection:()=>dv,ipv4:()=>fA,ipv6:()=>hA,iso:()=>ha,json:()=>lw,jwt:()=>PA,keyof:()=>MA,ksuid:()=>pA,lazy:()=>Dv,length:()=>fo,literal:()=>KA,locales:()=>sa,looseObject:()=>FA,looseRecord:()=>VA,lowercase:()=>Yo,lt:()=>Hr,lte:()=>Vt,mac:()=>mA,map:()=>HA,maxLength:()=>po,maxSize:()=>Dn,meta:()=>sw,mime:()=>ni,minLength:()=>vt,minSize:()=>Wr,multipleOf:()=>zn,nan:()=>QA,nanoid:()=>sA,nativeEnum:()=>WA,negative:()=>Dc,never:()=>of,nonnegative:()=>Mc,nonoptional:()=>wv,nonpositive:()=>Uc,normalize:()=>oi,null:()=>rv,nullable:()=>iu,nullish:()=>XA,number:()=>X_,object:()=>LA,optional:()=>ou,overwrite:()=>Rr,parse:()=>M_,parseAsync:()=>L_,partialRecord:()=>GA,pipe:()=>au,positive:()=>zc,prefault:()=>Av,preprocess:()=>dw,prettifyError:()=>Gl,promise:()=>rw,property:()=>Lc,readonly:()=>Nv,record:()=>mv,refine:()=>Lv,regex:()=>Ut,regexes:()=>er,registry:()=>Ys,safeDecode:()=>Z_,safeDecodeAsync:()=>K_,safeEncode:()=>H_,safeEncodeAsync:()=>W_,safeParse:()=>j_,safeParseAsync:()=>F_,set:()=>ZA,setErrorMap:()=>ij,size:()=>lo,slugify:()=>ua,startsWith:()=>ti,strictObject:()=>jA,string:()=>Mp,stringFormat:()=>EA,stringbool:()=>uw,success:()=>YA,superRefine:()=>jv,symbol:()=>NA,templateLiteral:()=>tw,toJSONSchema:()=>Bc,toLowerCase:()=>ai,toUpperCase:()=>si,transform:()=>cf,treeifyError:()=>ql,trim:()=>ii,tuple:()=>fv,uint32:()=>CA,uint64:()=>kA,ulid:()=>lA,undefined:()=>$A,union:()=>af,unknown:()=>ui,uppercase:()=>Qo,url:()=>oA,util:()=>ie,uuid:()=>eA,uuidv4:()=>tA,uuidv6:()=>rA,uuidv7:()=>nA,void:()=>DA,xid:()=>dA,xor:()=>BA});var ru={};Xt(ru,{ZodAny:()=>nv,ZodArray:()=>sv,ZodBase64:()=>Qp,ZodBase64URL:()=>ef,ZodBigInt:()=>Pa,ZodBigIntFormat:()=>nf,ZodBoolean:()=>ba,ZodCIDRv4:()=>Xp,ZodCIDRv6:()=>Yp,ZodCUID:()=>Gp,ZodCUID2:()=>Vp,ZodCatch:()=>Cv,ZodCodec:()=>pf,ZodCustom:()=>fu,ZodCustomStringFormat:()=>_a,ZodDate:()=>cu,ZodDefault:()=>Sv,ZodDiscriminatedUnion:()=>uv,ZodE164:()=>tf,ZodEmail:()=>Fp,ZodEmoji:()=>Bp,ZodEnum:()=>ga,ZodExactOptional:()=>bv,ZodFile:()=>_v,ZodFunction:()=>Mv,ZodGUID:()=>nu,ZodIPv4:()=>Kp,ZodIPv6:()=>Jp,ZodIntersection:()=>lv,ZodJWT:()=>rf,ZodKSUID:()=>Wp,ZodLazy:()=>zv,ZodLiteral:()=>yv,ZodMAC:()=>J_,ZodMap:()=>hv,ZodNaN:()=>Ov,ZodNanoID:()=>qp,ZodNever:()=>iv,ZodNonOptional:()=>lf,ZodNull:()=>tv,ZodNullable:()=>Ev,ZodNumber:()=>va,ZodNumberFormat:()=>li,ZodObject:()=>lu,ZodOptional:()=>uf,ZodPipe:()=>df,ZodPrefault:()=>Tv,ZodPromise:()=>Uv,ZodReadonly:()=>kv,ZodRecord:()=>pu,ZodSet:()=>gv,ZodString:()=>ya,ZodStringFormat:()=>nt,ZodSuccess:()=>Iv,ZodSymbol:()=>Q_,ZodTemplateLiteral:()=>$v,ZodTransform:()=>vv,ZodTuple:()=>pv,ZodType:()=>Me,ZodULID:()=>Hp,ZodURL:()=>su,ZodUUID:()=>cn,ZodUndefined:()=>ev,ZodUnion:()=>du,ZodUnknown:()=>ov,ZodVoid:()=>av,ZodXID:()=>Zp,ZodXor:()=>cv,_ZodString:()=>jp,_default:()=>xv,_function:()=>nw,any:()=>zA,array:()=>uu,base64:()=>_A,base64url:()=>vA,bigint:()=>RA,boolean:()=>Y_,catch:()=>Rv,check:()=>ow,cidrv4:()=>gA,cidrv6:()=>yA,codec:()=>ew,cuid:()=>cA,cuid2:()=>uA,custom:()=>iw,date:()=>UA,describe:()=>aw,discriminatedUnion:()=>qA,e164:()=>bA,email:()=>YT,emoji:()=>aA,enum:()=>sf,exactOptional:()=>Pv,file:()=>JA,float32:()=>AA,float64:()=>wA,function:()=>nw,guid:()=>QT,hash:()=>TA,hex:()=>xA,hostname:()=>SA,httpUrl:()=>iA,instanceof:()=>cw,int:()=>Lp,int32:()=>IA,int64:()=>OA,intersection:()=>dv,ipv4:()=>fA,ipv6:()=>hA,json:()=>lw,jwt:()=>PA,keyof:()=>MA,ksuid:()=>pA,lazy:()=>Dv,literal:()=>KA,looseObject:()=>FA,looseRecord:()=>VA,mac:()=>mA,map:()=>HA,meta:()=>sw,nan:()=>QA,nanoid:()=>sA,nativeEnum:()=>WA,never:()=>of,nonoptional:()=>wv,null:()=>rv,nullable:()=>iu,nullish:()=>XA,number:()=>X_,object:()=>LA,optional:()=>ou,partialRecord:()=>GA,pipe:()=>au,prefault:()=>Av,preprocess:()=>dw,promise:()=>rw,readonly:()=>Nv,record:()=>mv,refine:()=>Lv,set:()=>ZA,strictObject:()=>jA,string:()=>Mp,stringFormat:()=>EA,stringbool:()=>uw,success:()=>YA,superRefine:()=>jv,symbol:()=>NA,templateLiteral:()=>tw,transform:()=>cf,tuple:()=>fv,uint32:()=>CA,uint64:()=>kA,ulid:()=>lA,undefined:()=>$A,union:()=>af,unknown:()=>ui,url:()=>oA,uuid:()=>eA,uuidv4:()=>tA,uuidv6:()=>rA,uuidv7:()=>nA,void:()=>DA,xid:()=>dA,xor:()=>BA});var Np={};Xt(Np,{endsWith:()=>ri,gt:()=>Zr,gte:()=>At,includes:()=>ei,length:()=>fo,lowercase:()=>Yo,lt:()=>Hr,lte:()=>Vt,maxLength:()=>po,maxSize:()=>Dn,mime:()=>ni,minLength:()=>vt,minSize:()=>Wr,multipleOf:()=>zn,negative:()=>Dc,nonnegative:()=>Mc,nonpositive:()=>Uc,normalize:()=>oi,overwrite:()=>Rr,positive:()=>zc,property:()=>Lc,regex:()=>Ut,size:()=>lo,slugify:()=>ua,startsWith:()=>ti,toLowerCase:()=>ai,toUpperCase:()=>si,trim:()=>ii,uppercase:()=>Qo});var ha={};Xt(ha,{ZodISODate:()=>zp,ZodISODateTime:()=>$p,ZodISODuration:()=>Up,ZodISOTime:()=>Dp,date:()=>z_,datetime:()=>$_,duration:()=>U_,time:()=>D_});var $p=w("ZodISODateTime",(t,e)=>{Cs.init(t,e),nt.init(t,e)});function $_(t){return Pc($p,t)}a($_,"datetime");var zp=w("ZodISODate",(t,e)=>{Rs.init(t,e),nt.init(t,e)});function z_(t){return Ec(zp,t)}a(z_,"date");var Dp=w("ZodISOTime",(t,e)=>{Os.init(t,e),nt.init(t,e)});function D_(t){return Sc(Dp,t)}a(D_,"time");var Up=w("ZodISODuration",(t,e)=>{ks.init(t,e),nt.init(t,e)});function U_(t){return xc(Up,t)}a(U_,"duration");var XT=a((t,e)=>{xs.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:a(r=>Wi(t,r),"value")},flatten:{value:a(r=>Zi(t,r),"value")},addIssue:{value:a(r=>{t.issues.push(r),t.message=JSON.stringify(t.issues,Gi,2)},"value")},addIssues:{value:a(r=>{t.issues.push(...r),t.message=JSON.stringify(t.issues,Gi,2)},"value")},isEmpty:{get(){return t.issues.length===0}}})},"initializer"),rj=w("ZodError",XT),tr=w("ZodError",XT,{Parent:Error});var M_=Ki(tr),L_=Ji(tr),j_=Xi(tr),F_=Qi(tr),B_=Vl(tr),q_=Hl(tr),G_=Zl(tr),V_=Wl(tr),H_=Kl(tr),Z_=Jl(tr),W_=Xl(tr),K_=Yl(tr);var Me=w("ZodType",(t,e)=>(Te.init(t,e),Object.assign(t["~standard"],{jsonSchema:{input:la(t,"input"),output:la(t,"output")}}),t.toJSONSchema=$y(t,{}),t.def=e,t.type=e.type,Object.defineProperty(t,"_def",{value:e}),t.check=(...r)=>t.clone(ie.mergeDefs(e,{checks:[...e.checks??[],...r.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0}),t.with=t.check,t.clone=(r,o)=>Rt(t,r,o),t.brand=()=>t,t.register=((r,o)=>(r.add(t,o),t)),t.parse=(r,o)=>M_(t,r,o,{callee:t.parse}),t.safeParse=(r,o)=>j_(t,r,o),t.parseAsync=async(r,o)=>L_(t,r,o,{callee:t.parseAsync}),t.safeParseAsync=async(r,o)=>F_(t,r,o),t.spa=t.safeParseAsync,t.encode=(r,o)=>B_(t,r,o),t.decode=(r,o)=>q_(t,r,o),t.encodeAsync=async(r,o)=>G_(t,r,o),t.decodeAsync=async(r,o)=>V_(t,r,o),t.safeEncode=(r,o)=>H_(t,r,o),t.safeDecode=(r,o)=>Z_(t,r,o),t.safeEncodeAsync=async(r,o)=>W_(t,r,o),t.safeDecodeAsync=async(r,o)=>K_(t,r,o),t.refine=(r,o)=>t.check(Lv(r,o)),t.superRefine=r=>t.check(jv(r)),t.overwrite=r=>t.check(Rr(r)),t.optional=()=>ou(t),t.exactOptional=()=>Pv(t),t.nullable=()=>iu(t),t.nullish=()=>ou(iu(t)),t.nonoptional=r=>wv(t,r),t.array=()=>uu(t),t.or=r=>af([t,r]),t.and=r=>dv(t,r),t.transform=r=>au(t,cf(r)),t.default=r=>xv(t,r),t.prefault=r=>Av(t,r),t.catch=r=>Rv(t,r),t.pipe=r=>au(t,r),t.readonly=()=>Nv(t),t.describe=r=>{let o=t.clone();return Ot.add(o,{description:r}),o},Object.defineProperty(t,"description",{get(){return Ot.get(t)?.description},configurable:!0}),t.meta=(...r)=>{if(r.length===0)return Ot.get(t);let o=t.clone();return Ot.add(o,r[0]),o},t.isOptional=()=>t.safeParse(void 0).success,t.isNullable=()=>t.safeParse(null).success,t.apply=r=>r(t),t)),jp=w("_ZodString",(t,e)=>{$n.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(o,n,i)=>zy(t,o,n,i);let r=t._zod.bag;t.format=r.format??null,t.minLength=r.minimum??null,t.maxLength=r.maximum??null,t.regex=(...o)=>t.check(Ut(...o)),t.includes=(...o)=>t.check(ei(...o)),t.startsWith=(...o)=>t.check(ti(...o)),t.endsWith=(...o)=>t.check(ri(...o)),t.min=(...o)=>t.check(vt(...o)),t.max=(...o)=>t.check(po(...o)),t.length=(...o)=>t.check(fo(...o)),t.nonempty=(...o)=>t.check(vt(1,...o)),t.lowercase=o=>t.check(Yo(o)),t.uppercase=o=>t.check(Qo(o)),t.trim=()=>t.check(ii()),t.normalize=(...o)=>t.check(oi(...o)),t.toLowerCase=()=>t.check(ai()),t.toUpperCase=()=>t.check(si()),t.slugify=()=>t.check(ua())}),ya=w("ZodString",(t,e)=>{$n.init(t,e),jp.init(t,e),t.email=r=>t.check(tc(Fp,r)),t.url=r=>t.check(Xo(su,r)),t.jwt=r=>t.check(bc(rf,r)),t.emoji=r=>t.check(ac(Bp,r)),t.guid=r=>t.check(ca(nu,r)),t.uuid=r=>t.check(rc(cn,r)),t.uuidv4=r=>t.check(nc(cn,r)),t.uuidv6=r=>t.check(oc(cn,r)),t.uuidv7=r=>t.check(ic(cn,r)),t.nanoid=r=>t.check(sc(qp,r)),t.guid=r=>t.check(ca(nu,r)),t.cuid=r=>t.check(cc(Gp,r)),t.cuid2=r=>t.check(uc(Vp,r)),t.ulid=r=>t.check(lc(Hp,r)),t.base64=r=>t.check(yc(Qp,r)),t.base64url=r=>t.check(_c(ef,r)),t.xid=r=>t.check(dc(Zp,r)),t.ksuid=r=>t.check(pc(Wp,r)),t.ipv4=r=>t.check(fc(Kp,r)),t.ipv6=r=>t.check(mc(Jp,r)),t.cidrv4=r=>t.check(hc(Xp,r)),t.cidrv6=r=>t.check(gc(Yp,r)),t.e164=r=>t.check(vc(tf,r)),t.datetime=r=>t.check($_(r)),t.date=r=>t.check(z_(r)),t.time=r=>t.check(D_(r)),t.duration=r=>t.check(U_(r))});function Mp(t){return Qs(ya,t)}a(Mp,"string");var nt=w("ZodStringFormat",(t,e)=>{Xe.init(t,e),jp.init(t,e)}),Fp=w("ZodEmail",(t,e)=>{ld.init(t,e),nt.init(t,e)});function YT(t){return tc(Fp,t)}a(YT,"email");var nu=w("ZodGUID",(t,e)=>{cd.init(t,e),nt.init(t,e)});function QT(t){return ca(nu,t)}a(QT,"guid");var cn=w("ZodUUID",(t,e)=>{ud.init(t,e),nt.init(t,e)});function eA(t){return rc(cn,t)}a(eA,"uuid");function tA(t){return nc(cn,t)}a(tA,"uuidv4");function rA(t){return oc(cn,t)}a(rA,"uuidv6");function nA(t){return ic(cn,t)}a(nA,"uuidv7");var su=w("ZodURL",(t,e)=>{Is.init(t,e),nt.init(t,e)});function oA(t){return Xo(su,t)}a(oA,"url");function iA(t){return Xo(su,{protocol:/^https?$/,hostname:er.domain,...ie.normalizeParams(t)})}a(iA,"httpUrl");var Bp=w("ZodEmoji",(t,e)=>{dd.init(t,e),nt.init(t,e)});function aA(t){return ac(Bp,t)}a(aA,"emoji");var qp=w("ZodNanoID",(t,e)=>{pd.init(t,e),nt.init(t,e)});function sA(t){return sc(qp,t)}a(sA,"nanoid");var Gp=w("ZodCUID",(t,e)=>{fd.init(t,e),nt.init(t,e)});function cA(t){return cc(Gp,t)}a(cA,"cuid");var Vp=w("ZodCUID2",(t,e)=>{md.init(t,e),nt.init(t,e)});function uA(t){return uc(Vp,t)}a(uA,"cuid2");var Hp=w("ZodULID",(t,e)=>{hd.init(t,e),nt.init(t,e)});function lA(t){return lc(Hp,t)}a(lA,"ulid");var Zp=w("ZodXID",(t,e)=>{gd.init(t,e),nt.init(t,e)});function dA(t){return dc(Zp,t)}a(dA,"xid");var Wp=w("ZodKSUID",(t,e)=>{yd.init(t,e),nt.init(t,e)});function pA(t){return pc(Wp,t)}a(pA,"ksuid");var Kp=w("ZodIPv4",(t,e)=>{_d.init(t,e),nt.init(t,e)});function fA(t){return fc(Kp,t)}a(fA,"ipv4");var J_=w("ZodMAC",(t,e)=>{bd.init(t,e),nt.init(t,e)});function mA(t){return ep(J_,t)}a(mA,"mac");var Jp=w("ZodIPv6",(t,e)=>{vd.init(t,e),nt.init(t,e)});function hA(t){return mc(Jp,t)}a(hA,"ipv6");var Xp=w("ZodCIDRv4",(t,e)=>{Pd.init(t,e),nt.init(t,e)});function gA(t){return hc(Xp,t)}a(gA,"cidrv4");var Yp=w("ZodCIDRv6",(t,e)=>{Ed.init(t,e),nt.init(t,e)});function yA(t){return gc(Yp,t)}a(yA,"cidrv6");var Qp=w("ZodBase64",(t,e)=>{Sd.init(t,e),nt.init(t,e)});function _A(t){return yc(Qp,t)}a(_A,"base64");var ef=w("ZodBase64URL",(t,e)=>{xd.init(t,e),nt.init(t,e)});function vA(t){return _c(ef,t)}a(vA,"base64url");var tf=w("ZodE164",(t,e)=>{Td.init(t,e),nt.init(t,e)});function bA(t){return vc(tf,t)}a(bA,"e164");var rf=w("ZodJWT",(t,e)=>{Ad.init(t,e),nt.init(t,e)});function PA(t){return bc(rf,t)}a(PA,"jwt");var _a=w("ZodCustomStringFormat",(t,e)=>{wd.init(t,e),nt.init(t,e)});function EA(t,e,r={}){return ci(_a,t,e,r)}a(EA,"stringFormat");function SA(t){return ci(_a,"hostname",er.hostname,t)}a(SA,"hostname");function xA(t){return ci(_a,"hex",er.hex,t)}a(xA,"hex");function TA(t,e){let r=e?.enc??"hex",o=`${t}_${r}`,n=er[o];if(!n)throw new Error(`Unrecognized hash format: ${o}`);return ci(_a,o,n,e)}a(TA,"hash");var va=w("ZodNumber",(t,e)=>{ra.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(o,n,i)=>Dy(t,o,n,i),t.gt=(o,n)=>t.check(Zr(o,n)),t.gte=(o,n)=>t.check(At(o,n)),t.min=(o,n)=>t.check(At(o,n)),t.lt=(o,n)=>t.check(Hr(o,n)),t.lte=(o,n)=>t.check(Vt(o,n)),t.max=(o,n)=>t.check(Vt(o,n)),t.int=o=>t.check(Lp(o)),t.safe=o=>t.check(Lp(o)),t.positive=o=>t.check(Zr(0,o)),t.nonnegative=o=>t.check(At(0,o)),t.negative=o=>t.check(Hr(0,o)),t.nonpositive=o=>t.check(Vt(0,o)),t.multipleOf=(o,n)=>t.check(zn(o,n)),t.step=(o,n)=>t.check(zn(o,n)),t.finite=()=>t;let r=t._zod.bag;t.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),t.isFinite=!0,t.format=r.format??null});function X_(t){return Tc(va,t)}a(X_,"number");var li=w("ZodNumberFormat",(t,e)=>{Ns.init(t,e),va.init(t,e)});function Lp(t){return wc(li,t)}a(Lp,"int");function AA(t){return rp(li,t)}a(AA,"float32");function wA(t){return np(li,t)}a(wA,"float64");function IA(t){return op(li,t)}a(IA,"int32");function CA(t){return ip(li,t)}a(CA,"uint32");var ba=w("ZodBoolean",(t,e)=>{Ko.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Uy(t,r,o,n)});function Y_(t){return Ic(ba,t)}a(Y_,"boolean");var Pa=w("ZodBigInt",(t,e)=>{na.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(o,n,i)=>My(t,o,n,i),t.gte=(o,n)=>t.check(At(o,n)),t.min=(o,n)=>t.check(At(o,n)),t.gt=(o,n)=>t.check(Zr(o,n)),t.gte=(o,n)=>t.check(At(o,n)),t.min=(o,n)=>t.check(At(o,n)),t.lt=(o,n)=>t.check(Hr(o,n)),t.lte=(o,n)=>t.check(Vt(o,n)),t.max=(o,n)=>t.check(Vt(o,n)),t.positive=o=>t.check(Zr(BigInt(0),o)),t.negative=o=>t.check(Hr(BigInt(0),o)),t.nonpositive=o=>t.check(Vt(BigInt(0),o)),t.nonnegative=o=>t.check(At(BigInt(0),o)),t.multipleOf=(o,n)=>t.check(zn(o,n));let r=t._zod.bag;t.minValue=r.minimum??null,t.maxValue=r.maximum??null,t.format=r.format??null});function RA(t){return ap(Pa,t)}a(RA,"bigint");var nf=w("ZodBigIntFormat",(t,e)=>{Id.init(t,e),Pa.init(t,e)});function OA(t){return sp(nf,t)}a(OA,"int64");function kA(t){return cp(nf,t)}a(kA,"uint64");var Q_=w("ZodSymbol",(t,e)=>{Cd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Ly(t,r,o,n)});function NA(t){return up(Q_,t)}a(NA,"symbol");var ev=w("ZodUndefined",(t,e)=>{Rd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Fy(t,r,o,n)});function $A(t){return lp(ev,t)}a($A,"_undefined");var tv=w("ZodNull",(t,e)=>{Od.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>jy(t,r,o,n)});function rv(t){return dp(tv,t)}a(rv,"_null");var nv=w("ZodAny",(t,e)=>{$s.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Gy(t,r,o,n)});function zA(){return Oc(nv)}a(zA,"any");var ov=w("ZodUnknown",(t,e)=>{zs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Vy(t,r,o,n)});function ui(){return kc(ov)}a(ui,"unknown");var iv=w("ZodNever",(t,e)=>{kd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>qy(t,r,o,n)});function of(t){return pp(iv,t)}a(of,"never");var av=w("ZodVoid",(t,e)=>{Ds.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>By(t,r,o,n)});function DA(t){return Nc(av,t)}a(DA,"_void");var cu=w("ZodDate",(t,e)=>{Us.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(o,n,i)=>Hy(t,o,n,i),t.min=(o,n)=>t.check(At(o,n)),t.max=(o,n)=>t.check(Vt(o,n));let r=t._zod.bag;t.minDate=r.minimum?new Date(r.minimum):null,t.maxDate=r.maximum?new Date(r.maximum):null});function UA(t){return fp(cu,t)}a(UA,"date");var sv=w("ZodArray",(t,e)=>{Ms.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>o_(t,r,o,n),t.element=e.element,t.min=(r,o)=>t.check(vt(r,o)),t.nonempty=r=>t.check(vt(1,r)),t.max=(r,o)=>t.check(po(r,o)),t.length=(r,o)=>t.check(fo(r,o)),t.unwrap=()=>t.element});function uu(t,e){return Ny(sv,t,e)}a(uu,"array");function MA(t){let e=t._zod.def.shape;return sf(Object.keys(e))}a(MA,"keyof");var lu=w("ZodObject",(t,e)=>{jg.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>i_(t,r,o,n),ie.defineLazy(t,"shape",()=>e.shape),t.keyof=()=>sf(Object.keys(t._zod.def.shape)),t.catchall=r=>t.clone({...t._zod.def,catchall:r}),t.passthrough=()=>t.clone({...t._zod.def,catchall:ui()}),t.loose=()=>t.clone({...t._zod.def,catchall:ui()}),t.strict=()=>t.clone({...t._zod.def,catchall:of()}),t.strip=()=>t.clone({...t._zod.def,catchall:void 0}),t.extend=r=>ie.extend(t,r),t.safeExtend=r=>ie.safeExtend(t,r),t.merge=r=>ie.merge(t,r),t.pick=r=>ie.pick(t,r),t.omit=r=>ie.omit(t,r),t.partial=(...r)=>ie.partial(uf,t,r[0]),t.required=(...r)=>ie.required(lf,t,r[0])});function LA(t,e){let r={type:"object",shape:t??{},...ie.normalizeParams(e)};return new lu(r)}a(LA,"object");function jA(t,e){return new lu({type:"object",shape:t,catchall:of(),...ie.normalizeParams(e)})}a(jA,"strictObject");function FA(t,e){return new lu({type:"object",shape:t,catchall:ui(),...ie.normalizeParams(e)})}a(FA,"looseObject");var du=w("ZodUnion",(t,e)=>{Jo.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Pp(t,r,o,n),t.options=e.options});function af(t,e){return new du({type:"union",options:t,...ie.normalizeParams(e)})}a(af,"union");var cv=w("ZodXor",(t,e)=>{du.init(t,e),$d.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Pp(t,r,o,n),t.options=e.options});function BA(t,e){return new cv({type:"union",options:t,inclusive:!1,...ie.normalizeParams(e)})}a(BA,"xor");var uv=w("ZodDiscriminatedUnion",(t,e)=>{du.init(t,e),Ls.init(t,e)});function qA(t,e,r){return new uv({type:"union",options:e,discriminator:t,...ie.normalizeParams(r)})}a(qA,"discriminatedUnion");var lv=w("ZodIntersection",(t,e)=>{zd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>a_(t,r,o,n)});function dv(t,e){return new lv({type:"intersection",left:t,right:e})}a(dv,"intersection");var pv=w("ZodTuple",(t,e)=>{js.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>s_(t,r,o,n),t.rest=r=>t.clone({...t._zod.def,rest:r})});function fv(t,e,r){let o=e instanceof Te,n=o?r:e,i=o?e:null;return new pv({type:"tuple",items:t,rest:i,...ie.normalizeParams(n)})}a(fv,"tuple");var pu=w("ZodRecord",(t,e)=>{Fs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>c_(t,r,o,n),t.keyType=e.keyType,t.valueType=e.valueType});function mv(t,e,r){return new pu({type:"record",keyType:t,valueType:e,...ie.normalizeParams(r)})}a(mv,"record");function GA(t,e,r){let o=Rt(t);return o._zod.values=void 0,new pu({type:"record",keyType:o,valueType:e,...ie.normalizeParams(r)})}a(GA,"partialRecord");function VA(t,e,r){return new pu({type:"record",keyType:t,valueType:e,mode:"loose",...ie.normalizeParams(r)})}a(VA,"looseRecord");var hv=w("ZodMap",(t,e)=>{Dd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>r_(t,r,o,n),t.keyType=e.keyType,t.valueType=e.valueType,t.min=(...r)=>t.check(Wr(...r)),t.nonempty=r=>t.check(Wr(1,r)),t.max=(...r)=>t.check(Dn(...r)),t.size=(...r)=>t.check(lo(...r))});function HA(t,e,r){return new hv({type:"map",keyType:t,valueType:e,...ie.normalizeParams(r)})}a(HA,"map");var gv=w("ZodSet",(t,e)=>{Ud.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>n_(t,r,o,n),t.min=(...r)=>t.check(Wr(...r)),t.nonempty=r=>t.check(Wr(1,r)),t.max=(...r)=>t.check(Dn(...r)),t.size=(...r)=>t.check(lo(...r))});function ZA(t,e){return new gv({type:"set",valueType:t,...ie.normalizeParams(e)})}a(ZA,"set");var ga=w("ZodEnum",(t,e)=>{Bs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(o,n,i)=>Zy(t,o,n,i),t.enum=e.entries,t.options=Object.values(e.entries);let r=new Set(Object.keys(e.entries));t.extract=(o,n)=>{let i={};for(let s of o)if(r.has(s))i[s]=e.entries[s];else throw new Error(`Key ${s} not found in enum`);return new ga({...e,checks:[],...ie.normalizeParams(n),entries:i})},t.exclude=(o,n)=>{let i={...e.entries};for(let s of o)if(r.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new ga({...e,checks:[],...ie.normalizeParams(n),entries:i})}});function sf(t,e){let r=Array.isArray(t)?Object.fromEntries(t.map(o=>[o,o])):t;return new ga({type:"enum",entries:r,...ie.normalizeParams(e)})}a(sf,"_enum");function WA(t,e){return new ga({type:"enum",entries:t,...ie.normalizeParams(e)})}a(WA,"nativeEnum");var yv=w("ZodLiteral",(t,e)=>{qs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Wy(t,r,o,n),t.values=new Set(e.values),Object.defineProperty(t,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function KA(t,e){return new yv({type:"literal",values:Array.isArray(t)?t:[t],...ie.normalizeParams(e)})}a(KA,"literal");var _v=w("ZodFile",(t,e)=>{Md.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Xy(t,r,o,n),t.min=(r,o)=>t.check(Wr(r,o)),t.max=(r,o)=>t.check(Dn(r,o)),t.mime=(r,o)=>t.check(ni(Array.isArray(r)?r:[r],o))});function JA(t){return hp(_v,t)}a(JA,"file");var vv=w("ZodTransform",(t,e)=>{Gs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>t_(t,r,o,n),t._zod.parse=(r,o)=>{if(o.direction==="backward")throw new io(t.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(ie.issue(i,r.value,e));else{let s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=t),r.issues.push(ie.issue(s))}};let n=e.transform(r.value,r);return n instanceof Promise?n.then(i=>(r.value=i,r)):(r.value=n,r)}});function cf(t){return new vv({type:"transform",transform:t})}a(cf,"transform");var uf=w("ZodOptional",(t,e)=>{oa.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Ep(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function ou(t){return new uf({type:"optional",innerType:t})}a(ou,"optional");var bv=w("ZodExactOptional",(t,e)=>{Ld.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Ep(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function Pv(t){return new bv({type:"optional",innerType:t})}a(Pv,"exactOptional");var Ev=w("ZodNullable",(t,e)=>{Vs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>u_(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function iu(t){return new Ev({type:"nullable",innerType:t})}a(iu,"nullable");function XA(t){return ou(iu(t))}a(XA,"nullish");var Sv=w("ZodDefault",(t,e)=>{jd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>d_(t,r,o,n),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function xv(t,e){return new Sv({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():ie.shallowClone(e)}})}a(xv,"_default");var Tv=w("ZodPrefault",(t,e)=>{Fd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>p_(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function Av(t,e){return new Tv({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():ie.shallowClone(e)}})}a(Av,"prefault");var lf=w("ZodNonOptional",(t,e)=>{Bd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>l_(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function wv(t,e){return new lf({type:"nonoptional",innerType:t,...ie.normalizeParams(e)})}a(wv,"nonoptional");var Iv=w("ZodSuccess",(t,e)=>{qd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Yy(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function YA(t){return new Iv({type:"success",innerType:t})}a(YA,"success");var Cv=w("ZodCatch",(t,e)=>{Gd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>f_(t,r,o,n),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function Rv(t,e){return new Cv({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}a(Rv,"_catch");var Ov=w("ZodNaN",(t,e)=>{Vd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Ky(t,r,o,n)});function QA(t){return mp(Ov,t)}a(QA,"nan");var df=w("ZodPipe",(t,e)=>{Hs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>m_(t,r,o,n),t.in=e.in,t.out=e.out});function au(t,e){return new df({type:"pipe",in:t,out:e})}a(au,"pipe");var pf=w("ZodCodec",(t,e)=>{df.init(t,e),ia.init(t,e)});function ew(t,e,r){return new pf({type:"pipe",in:t,out:e,transform:r.decode,reverseTransform:r.encode})}a(ew,"codec");var kv=w("ZodReadonly",(t,e)=>{Hd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>h_(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function Nv(t){return new kv({type:"readonly",innerType:t})}a(Nv,"readonly");var $v=w("ZodTemplateLiteral",(t,e)=>{Zd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Jy(t,r,o,n)});function tw(t,e){return new $v({type:"template_literal",parts:t,...ie.normalizeParams(e)})}a(tw,"templateLiteral");var zv=w("ZodLazy",(t,e)=>{Jd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>y_(t,r,o,n),t.unwrap=()=>t._zod.def.getter()});function Dv(t){return new zv({type:"lazy",getter:t})}a(Dv,"lazy");var Uv=w("ZodPromise",(t,e)=>{Kd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>g_(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function rw(t){return new Uv({type:"promise",innerType:t})}a(rw,"promise");var Mv=w("ZodFunction",(t,e)=>{Wd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>e_(t,r,o,n)});function nw(t){return new Mv({type:"function",input:Array.isArray(t?.input)?fv(t?.input):t?.input??uu(ui()),output:t?.output??ui()})}a(nw,"_function");var fu=w("ZodCustom",(t,e)=>{Zs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Qy(t,r,o,n)});function ow(t){let e=new rt({check:"custom"});return e._zod.check=t,e}a(ow,"check");function iw(t,e){return jc(fu,t??(()=>!0),e)}a(iw,"custom");function Lv(t,e={}){return Fc(fu,t,e)}a(Lv,"refine");function jv(t){return gp(t)}a(jv,"superRefine");var aw=yp,sw=_p;function cw(t,e={}){let r=new fu({type:"custom",check:"custom",fn:a(o=>o instanceof t,"fn"),abort:!0,...ie.normalizeParams(e)});return r._zod.bag.Class=t,r._zod.check=o=>{o.value instanceof t||o.issues.push({code:"invalid_type",expected:t.name,input:o.value,inst:r,path:[...r._zod.def.path??[]]})},r}a(cw,"_instanceof");var uw=a((...t)=>vp({Codec:pf,Boolean:ba,String:ya},...t),"stringbool");function lw(t){let e=Dv(()=>af([Mp(t),X_(),Y_(),rv(),uu(e),mv(Mp(),e)]));return e}a(lw,"json");function dw(t,e){return au(cf(t),e)}a(dw,"preprocess");var oj={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 ij(t){pt({customError:t})}a(ij,"setErrorMap");function aj(){return pt().customError}a(aj,"getErrorMap");var Fv;Fv||(Fv={});var de={...ru,...Np,iso:ha},sj=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 cj(t,e){let r=t.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":e??"draft-2020-12"}a(cj,"detectVersion");function uj(t,e){if(!t.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=t.slice(1).split("/").filter(Boolean);if(r.length===0)return e.rootSchema;let o=e.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===o){let n=r[1];if(!n||!e.defs[n])throw new Error(`Reference not found: ${t}`);return e.defs[n]}throw new Error(`Reference not found: ${t}`)}a(uj,"resolveRef");function pw(t,e){if(t.not!==void 0){if(typeof t.not=="object"&&Object.keys(t.not).length===0)return de.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(t.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(t.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(t.if!==void 0||t.then!==void 0||t.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(t.dependentSchemas!==void 0||t.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(t.$ref){let n=t.$ref;if(e.refs.has(n))return e.refs.get(n);if(e.processing.has(n))return de.lazy(()=>{if(!e.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return e.refs.get(n)});e.processing.add(n);let i=uj(n,e),s=Ft(i,e);return e.refs.set(n,s),e.processing.delete(n),s}if(t.enum!==void 0){let n=t.enum;if(e.version==="openapi-3.0"&&t.nullable===!0&&n.length===1&&n[0]===null)return de.null();if(n.length===0)return de.never();if(n.length===1)return de.literal(n[0]);if(n.every(s=>typeof s=="string"))return de.enum(n);let i=n.map(s=>de.literal(s));return i.length<2?i[0]:de.union([i[0],i[1],...i.slice(2)])}if(t.const!==void 0)return de.literal(t.const);let r=t.type;if(Array.isArray(r)){let n=r.map(i=>{let s={...t,type:i};return pw(s,e)});return n.length===0?de.never():n.length===1?n[0]:de.union(n)}if(!r)return de.any();let o;switch(r){case"string":{let n=de.string();if(t.format){let i=t.format;i==="email"?n=n.check(de.email()):i==="uri"||i==="uri-reference"?n=n.check(de.url()):i==="uuid"||i==="guid"?n=n.check(de.uuid()):i==="date-time"?n=n.check(de.iso.datetime()):i==="date"?n=n.check(de.iso.date()):i==="time"?n=n.check(de.iso.time()):i==="duration"?n=n.check(de.iso.duration()):i==="ipv4"?n=n.check(de.ipv4()):i==="ipv6"?n=n.check(de.ipv6()):i==="mac"?n=n.check(de.mac()):i==="cidr"?n=n.check(de.cidrv4()):i==="cidr-v6"?n=n.check(de.cidrv6()):i==="base64"?n=n.check(de.base64()):i==="base64url"?n=n.check(de.base64url()):i==="e164"?n=n.check(de.e164()):i==="jwt"?n=n.check(de.jwt()):i==="emoji"?n=n.check(de.emoji()):i==="nanoid"?n=n.check(de.nanoid()):i==="cuid"?n=n.check(de.cuid()):i==="cuid2"?n=n.check(de.cuid2()):i==="ulid"?n=n.check(de.ulid()):i==="xid"?n=n.check(de.xid()):i==="ksuid"&&(n=n.check(de.ksuid()))}typeof t.minLength=="number"&&(n=n.min(t.minLength)),typeof t.maxLength=="number"&&(n=n.max(t.maxLength)),t.pattern&&(n=n.regex(new RegExp(t.pattern))),o=n;break}case"number":case"integer":{let n=r==="integer"?de.number().int():de.number();typeof t.minimum=="number"&&(n=n.min(t.minimum)),typeof t.maximum=="number"&&(n=n.max(t.maximum)),typeof t.exclusiveMinimum=="number"?n=n.gt(t.exclusiveMinimum):t.exclusiveMinimum===!0&&typeof t.minimum=="number"&&(n=n.gt(t.minimum)),typeof t.exclusiveMaximum=="number"?n=n.lt(t.exclusiveMaximum):t.exclusiveMaximum===!0&&typeof t.maximum=="number"&&(n=n.lt(t.maximum)),typeof t.multipleOf=="number"&&(n=n.multipleOf(t.multipleOf)),o=n;break}case"boolean":{o=de.boolean();break}case"null":{o=de.null();break}case"object":{let n={},i=t.properties||{},s=new Set(t.required||[]);for(let[l,p]of Object.entries(i)){let f=Ft(p,e);n[l]=s.has(l)?f:f.optional()}if(t.propertyNames){let l=Ft(t.propertyNames,e),p=t.additionalProperties&&typeof t.additionalProperties=="object"?Ft(t.additionalProperties,e):de.any();if(Object.keys(n).length===0){o=de.record(l,p);break}let f=de.object(n).passthrough(),y=de.looseRecord(l,p);o=de.intersection(f,y);break}if(t.patternProperties){let l=t.patternProperties,p=Object.keys(l),f=[];for(let m of p){let h=Ft(l[m],e),_=de.string().regex(new RegExp(m));f.push(de.looseRecord(_,h))}let y=[];if(Object.keys(n).length>0&&y.push(de.object(n).passthrough()),y.push(...f),y.length===0)o=de.object({}).passthrough();else if(y.length===1)o=y[0];else{let m=de.intersection(y[0],y[1]);for(let h=2;h<y.length;h++)m=de.intersection(m,y[h]);o=m}break}let u=de.object(n);t.additionalProperties===!1?o=u.strict():typeof t.additionalProperties=="object"?o=u.catchall(Ft(t.additionalProperties,e)):o=u.passthrough();break}case"array":{let n=t.prefixItems,i=t.items;if(n&&Array.isArray(n)){let s=n.map(l=>Ft(l,e)),u=i&&typeof i=="object"&&!Array.isArray(i)?Ft(i,e):void 0;u?o=de.tuple(s).rest(u):o=de.tuple(s),typeof t.minItems=="number"&&(o=o.check(de.minLength(t.minItems))),typeof t.maxItems=="number"&&(o=o.check(de.maxLength(t.maxItems)))}else if(Array.isArray(i)){let s=i.map(l=>Ft(l,e)),u=t.additionalItems&&typeof t.additionalItems=="object"?Ft(t.additionalItems,e):void 0;u?o=de.tuple(s).rest(u):o=de.tuple(s),typeof t.minItems=="number"&&(o=o.check(de.minLength(t.minItems))),typeof t.maxItems=="number"&&(o=o.check(de.maxLength(t.maxItems)))}else if(i!==void 0){let s=Ft(i,e),u=de.array(s);typeof t.minItems=="number"&&(u=u.min(t.minItems)),typeof t.maxItems=="number"&&(u=u.max(t.maxItems)),o=u}else o=de.array(de.any());break}default:throw new Error(`Unsupported type: ${r}`)}return t.description&&(o=o.describe(t.description)),t.default!==void 0&&(o=o.default(t.default)),o}a(pw,"convertBaseSchema");function Ft(t,e){if(typeof t=="boolean")return t?de.any():de.never();let r=pw(t,e),o=t.type||t.enum!==void 0||t.const!==void 0;if(t.anyOf&&Array.isArray(t.anyOf)){let u=t.anyOf.map(p=>Ft(p,e)),l=de.union(u);r=o?de.intersection(r,l):l}if(t.oneOf&&Array.isArray(t.oneOf)){let u=t.oneOf.map(p=>Ft(p,e)),l=de.xor(u);r=o?de.intersection(r,l):l}if(t.allOf&&Array.isArray(t.allOf))if(t.allOf.length===0)r=o?r:de.any();else{let u=o?r:Ft(t.allOf[0],e),l=o?0:1;for(let p=l;p<t.allOf.length;p++)u=de.intersection(u,Ft(t.allOf[p],e));r=u}t.nullable===!0&&e.version==="openapi-3.0"&&(r=de.nullable(r)),t.readOnly===!0&&(r=de.readonly(r));let n={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let u of i)u in t&&(n[u]=t[u]);let s=["contentEncoding","contentMediaType","contentSchema"];for(let u of s)u in t&&(n[u]=t[u]);for(let u of Object.keys(t))sj.has(u)||(n[u]=t[u]);return Object.keys(n).length>0&&e.registry.add(r,n),r}a(Ft,"convertSchema");function fw(t,e){if(typeof t=="boolean")return t?de.any():de.never();let r=cj(t,e?.defaultTarget),o=t.$defs||t.definitions||{},n={version:r,defs:o,refs:new Map,processing:new Set,rootSchema:t,registry:e?.registry??Ot};return Ft(t,n)}a(fw,"fromJSONSchema");var Bv={};Xt(Bv,{bigint:()=>fj,boolean:()=>pj,date:()=>mj,number:()=>dj,string:()=>lj});function lj(t){return ec(ya,t)}a(lj,"string");function dj(t){return Ac(va,t)}a(dj,"number");function pj(t){return Cc(ba,t)}a(pj,"boolean");function fj(t){return Rc(Pa,t)}a(fj,"bigint");function mj(t){return $c(cu,t)}a(mj,"date");pt(Ws());var qv={required:"required",invalidGitRepoSlug:"invalidGitRepoSlug",invalidGitRepoBranch:"invalidGitRepoBranch",invalidGitRepoRemoteUrl:"invalidGitRepoRemoteUrl",invalidExternalId:"invalidExternalId",invalidFileName:"invalidFileName",messageRequiresContentOrFiles:"messageRequiresContentOrFiles",agentConfigTooLarge:"agentConfigTooLarge",invalidGcpResourceId:"invalidGcpResourceId",duplicateRouteName:"duplicateRouteName",atLeastOne:"atLeastOne",wholeNumber:"wholeNumber",atMostTenThousand:"atMostTenThousand",tierNameTooLong:"tierNameTooLong",tierDescriptionTooLong:"tierDescriptionTooLong",invalidEmoji:"invalidEmoji",tierTooManyModels:"tierTooManyModels",tierDuplicateModel:"tierDuplicateModel",tierThinkingBudgetInvalid:"tierThinkingBudgetInvalid",invalidHeaderName:"invalidHeaderName",reservedHeaderName:"reservedHeaderName",duplicateHeaderName:"duplicateHeaderName",invalidHeaderValue:"invalidHeaderValue"};var mw=(r=>(r.IMAGE="image",r.TEXT="text",r))(mw||{}),Zt=le.object({apiKey:le.string()}),hw=le.object({serviceAccountJson:le.string().min(1)}),gw=Zt,yw=Zt.extend({apiKeyHash:le.string()}),_w=Zt,vw=Zt,bw=Zt,Pw=Zt,Ew=Zt,Sw=Zt,xw=le.object({accessKeyId:le.string().min(1),secretAccessKey:le.string().min(1),sessionToken:le.string().optional()}),Tw=Zt,Aw=le.object({}),ww=le.object({}),Gv=le.object({modelId:le.string(),modelName:le.string(),modelType:le.enum(mw)}),Iw=le.object({apiKeyHeader:le.string(),baseUrl:le.string(),models:le.array(Gv),defaultHeaders:le.record(le.string(),le.string()).optional(),apiStyle:le.enum(["chat","responses"]).optional()}),Cw=le.object({accountId:le.string(),gatewayId:le.string(),models:le.array(Gv),vertexProject:le.string().optional(),vertexRegion:le.string().optional()}),Rw=le.object({resourceName:le.string(),apiVersion:le.preprocess(t=>typeof t=="string"&&t.trim().length===0?void 0:t,le.string().optional())}),Ow=le.object({}),kw=le.object({}),Nw=le.object({}),$w=le.object({region:le.string().min(1)}),zw=le.object({project:le.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/,qv.invalidGcpResourceId),region:le.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/,qv.invalidGcpResourceId),models:le.array(Gv)}),Dw=le.object({}),di=le.object({}),wX=le.union([gw,bw,Pw,Ew,Sw,vw,_w,yw,xw,hw,Tw]),IX=le.union([Iw,Cw,Rw,zw,$w,Aw,Ow,kw,Nw,ww,Dw,di]),CX=le.discriminatedUnion("provider",[le.object({provider:le.literal("openai"),config:kw.partial(),auth:Ew.partial()}),le.object({provider:le.literal("openrouter"),config:Nw.partial(),auth:Sw.partial()}),le.object({provider:le.literal("anthropic"),config:Aw.partial(),auth:gw.partial()}),le.object({provider:le.literal("azure"),config:Rw.partial(),auth:bw.partial()}),le.object({provider:le.literal("google"),config:Ow.partial(),auth:Pw.partial()}),le.object({provider:le.literal("cloudflare-gateway"),config:Cw.partial(),auth:vw.partial()}),le.object({provider:le.literal("custom"),config:Iw.partial(),auth:_w.partial()}),le.object({provider:le.literal("activepieces"),config:ww.partial(),auth:yw.partial()}),le.object({provider:le.literal("bedrock"),config:$w.partial(),auth:xw.partial()}),le.object({provider:le.literal("vertex"),config:zw.partial(),auth:hw.partial()}),le.object({provider:le.literal("mistral"),config:Dw.partial(),auth:Tw.partial()}),le.object({provider:le.literal("xai"),config:di.partial(),auth:Zt.partial()}),le.object({provider:le.literal("deepseek"),config:di.partial(),auth:Zt.partial()}),le.object({provider:le.literal("zai"),config:di.partial(),auth:Zt.partial()}),le.object({provider:le.literal("qwen"),config:di.partial(),auth:Zt.partial()}),le.object({provider:le.literal("minimax"),config:di.partial(),auth:Zt.partial()}),le.object({provider:le.literal("moonshot"),config:di.partial(),auth:Zt.partial()})]);var LX=v().check(Ut(/^#[0-9A-Fa-f]{6}$/));var FX=O({filename:v(),data:Ce(),type:ve("file"),mimetype:q(v())});var hj=Tt(Mw());var WX=O({...Or,name:v(),permissions:Se(v()),platformId:mt(v()),type:v(),userCount:q(kt())});var oY=le.enum(["active","out_of_credits","rejected","unreachable"]);var Lw=(o=>(o.AGENT_DECIDE="agent-decide",o.CHOOSE_YOURSELF="choose-yourself",o.LEAVE_EMPTY="leave-empty",o))(Lw||{}),Vv=(r=>(r.FILE="FILE",r.TABLE="TABLE",r))(Vv||{}),Hv=(o=>(o.SSE="sse",o.STREAMABLE_HTTP="streamable-http",o.SIMPLE_HTTP="http",o))(Hv||{});var Zv=(o=>(o.TEXT="text",o.NUMBER="number",o.BOOLEAN="boolean",o))(Zv||{});var Wv=(r=>(r.IN_PROGRESS="in-progress",r.COMPLETED="completed",r))(Wv||{});var gj=O({mode:Pe(Lw),value:Ce()}),yj=O({auth:q(v()),fields:Re(v(),gj)}),_j=O({pieceName:v(),pieceVersion:v(),actionName:v(),predefinedInput:q(yj)}),vj=O({type:ve("PIECE"),toolName:v().check(vt(1)),pieceMetadata:_j}),bj=O({type:ve("none")}),Pj=O({type:ve("access_token"),accessToken:v()}),Ej=O({type:ve("api_key"),apiKey:v(),apiKeyHeader:v()}),Sj=O({type:ve("headers"),headers:Re(v(),v())}),xj=yo("type",[bj,Pj,Ej,Sj]),jw=O({type:ve("FLOW"),toolName:v().check(vt(1)),externalFlowId:v(),flowDisplayName:q(v())}),Fw=O({type:ve("MCP"),toolName:v().check(vt(1)),serverUrl:$T(),protocol:Pe(Hv),auth:xj}),Bw=O({type:ve("KNOWLEDGE_BASE"),toolName:v().check(vt(1)),sourceType:Pe(Vv),sourceId:v(),sourceName:v()}),Tj=yo("type",[vj,jw,Fw,Bw]),Aj=O({displayName:v(),description:q(v()),type:Pe(Zv)}),qw=O({type:ve("MARKDOWN"),markdown:v()}),Ea={type:ve("TOOL_CALL"),input:mt(Re(v(),Ce())),output:q(Ce()),toolName:v(),status:Pe(Wv),toolCallId:v(),startTime:v(),endTime:q(v())},VY=O(Ea),Gw=yo("toolCallType",[O({...Ea,toolCallType:ve("PIECE"),pieceName:v(),pieceVersion:v(),actionName:v()}),O({...Ea,toolCallType:ve("FLOW"),displayName:v(),externalFlowId:v()}),O({...Ea,toolCallType:ve("MCP"),displayName:v(),serverUrl:v()}),O({...Ea,toolCallType:ve("KNOWLEDGE_BASE"),displayName:v(),sourceType:v()}),O({...Ea,toolCallType:ve("UNKNOWN"),displayName:v()})]),wj=Ue([qw,Gw]);var Ij=10800*1e3,Cj=900*1e3;var Xv=(r=>(r.IMAGE="image",r.TEXT="text",r))(Xv||{}),Fn=O({apiKey:v()}),Oj=Fn,kj=O({apiKey:v(),apiKeyHash:v()}),Nj=Fn,$j=Fn,zj=Fn,Dj=Fn,Uj=Fn,Mj=Fn,Lj=Fn,Ww=O({serviceAccountJson:v().check(vt(1))}),Kw=O({accessKeyId:v().check(vt(1)),secretAccessKey:v().check(vt(1)),sessionToken:q(v())}),jj=O({}),Fj=O({}),Bj=O({}),qj=O({}),Gj=O({}),Vj=O({}),Yv=O({modelId:v(),modelName:v(),modelType:Pe(Xv)}),Jw=O({apiKeyHeader:v(),baseUrl:v(),models:Se(Yv),defaultHeaders:q(Re(v(),v())),apiStyle:q(Pe(["chat","responses"]))}),Xw=O({accountId:v(),gatewayId:v(),models:Se(Yv),vertexProject:q(v()),vertexRegion:q(v())}),Yw=O({resourceName:v(),apiVersion:vo(_o(t=>typeof t=="string"&&t.trim().length===0?void 0:t),q(v()))}),Qw=O({region:v().check(vt(1))}),eI=O({project:v().check(Ut(/^[a-z0-9][a-z0-9-]{0,62}$/)),region:v().check(Ut(/^[a-z0-9][a-z0-9-]{0,62}$/)),models:Se(Yv)}),tI=O({}),Hj=Ue([Oj,zj,Dj,Uj,Mj,$j,Nj,kj,Kw,Ww,Lj]),rI=Ue([Jw,Xw,Yw,eI,Qw,jj,Bj,qj,Gj,Fj,Vj,tI]),Zj=O({id:v(),name:v(),type:Pe(Xv)}),Wj=O({id:v(),name:v(),provider:Pe(So),config:rI,enabledForChat:He()}),Kj=O({provider:Pe(So),name:v(),enabledForChat:He(),keys:Se(O({id:v(),name:v()}))}),Jj=O({provider:Pe(So),configId:v(),config:rI,auth:Hj,platformId:v()});var KY={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"},Vw=["gpt-5.5","gpt-5.4-mini","gpt-5.4-nano","gpt-4.1","gpt-4.1-mini"],Xj=["claude-sonnet-4-6","claude-opus-4-7","claude-haiku-4-5"],nI=["claude-sonnet-4.6","claude-opus-4.7","claude-opus-4.8","claude-haiku-4.5"],Kv=["gemini-3.7-flash","gemini-3.1-pro-preview","gemini-3-flash-preview"],Jv=["gemini-2.5-pro","gemini-2.5-flash"],Yj=["grok-4.20"],JY={google:Jv,vertex:Jv},XY=nI.map(t=>`anthropic/${t}`),Qj={openai:Vw,anthropic:Xj,google:Kv,vertex:Kv,activepieces:[...nI.map(t=>`anthropic/${t}`),...Vw.map(t=>`openai/${t}`),...[...Kv,...Jv].map(t=>`google/${t}`),...Yj.map(t=>`x-ai/${t}`)]};var Hw=128e3,eF={openai:128e3,anthropic:2e5,google:1048576,bedrock:2e5,vertex:1048576,azure:128e3,openrouter:128e3,activepieces:2e5,mistral:128e3};function tF({provider:t}){return t?eF[t]??Hw:Hw}a(tF,"getMaxContextTokens");var Zw={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"},rF={anthropic:"native",google:"native",openrouter:"plugin",activepieces:"plugin"},nF=new Set(["anthropic","mistral","xai","deepseek","zai","qwen","minimax","moonshot"]),oF={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 Mt(t){return{chatModels:Qj[t],maxContextTokens:tF({provider:t}),defaultEmbeddingModel:Zw[t],supportsEmbedding:Zw[t]!==void 0,supportsImageGeneration:!nF.has(t),defaultImageModel:iF[t],webSearch:rF[t]}}a(Mt,"buildProviderCapabilities");var oI=[{id:"fast",label:"Fast",modelId:"google/gemini-3.1-flash-lite-image"},{id:"smart",label:"Expert",modelId:"google/gemini-3.1-flash-image"},{id:"premium",label:"Heavy",modelId:"google/gemini-3-pro-image"}],iF={activepieces:oI[0].modelId,openrouter:"google/gemini-3.1-flash-lite-image",openai:"gpt-image-1.5",google:"gemini-3.1-flash-image"},aF={openai:Mt("openai"),anthropic:Mt("anthropic"),openrouter:Mt("openrouter"),azure:Mt("azure"),google:Mt("google"),"cloudflare-gateway":Mt("cloudflare-gateway"),custom:Mt("custom"),bedrock:Mt("bedrock"),vertex:Mt("vertex"),mistral:Mt("mistral"),activepieces:Mt("activepieces"),xai:Mt("xai"),deepseek:Mt("deepseek"),zai:Mt("zai"),qwen:Mt("qwen"),minimax:Mt("minimax"),moonshot:Mt("moonshot")};var sF=O({base64Url:v(),fileName:v(),extension:q(v())}),cF=O({mimeType:v(),url:v(),fileName:q(v())}),Qv=Ue([sF,cF]);var uF=Ue([O({type:ve("file"),value:Qv}),O({type:ve("markdown"),value:v(),files:q(Se(Qv))})]),lF=O({sessionId:v(),message:v(),files:q(Se(v()))});var aI=(r=>(r.ON_NEW_RECORD="ON_NEW_RECORD",r.ON_UPDATE_RECORD="ON_UPDATE_RECORD",r))(aI||{}),sI=(r=>(r.ENABLED="ENABLED",r.DISABLED="DISABLED",r))(sI||{}),eb=(o=>(o.RECORD_CREATED="RECORD_CREATED",o.RECORD_UPDATED="RECORD_UPDATED",o.RECORD_DELETED="RECORD_DELETED",o))(eb||{});var dF=Ue([O({...Or,name:v(),externalId:v(),type:ve("STATIC_DROPDOWN"),tableId:v(),projectId:v(),data:O({options:Se(O({value:v()}))})}),O({...Or,name:v(),externalId:v(),type:Ue([ve("TEXT"),ve("NUMBER"),ve("DATE"),ve("DATETIME")]),tableId:v(),projectId:v()})]),pF=O({...Or,name:v(),folderId:mt(v()),projectId:v(),externalId:v(),status:N_(sI),trigger:N_(aI)}),fF=O({...Or,tableId:v(),projectId:v(),cells:Re(v(),O({updated:v(),created:v(),value:Ce(),fieldName:v()}))}),mF=O({events:Se(Pe(eb)),webhookUrl:v(),flowId:v()}),hF=O({fields:Se(O({id:v(),name:v()})),rows:Se(Re(v(),v())),name:v()}),gF=O({projectId:v(),limit:q(Vc.number()),cursor:q(v()),name:q(v()),externalIds:kp(v()),folderId:q(v()),folderIds:kp(v())}),yF=O({records:Se(Se(O({fieldId:v(),value:uI()}))),tableId:v()}),_F=O({cells:q(Se(O({fieldId:v(),value:uI()}))),tableId:v(),agentUpdate:q(He())}),cI=yo("operator",[pi("eq"),pi("neq"),pi("gt"),pi("gte"),pi("lt"),pi("lte"),pi("co"),iI("exists"),iI("not_exists")]),vF=O({tableId:v(),limit:q(Vc.number()),cursor:q(v()),filters:kp(cI)});function uI(){return vo(_o(t=>t==null?t:String(t)),Gc(v()))}a(uI,"coerceToString");function pi(t){return O({fieldId:v(),operator:ve(t),value:v()})}a(pi,"valueFilter");function iI(t){return O({fieldId:v(),operator:ve(t)})}a(iI,"existenceFilter");var bF=O({status:q(kt()),body:q(Ce()),headers:q(Re(v(),v()))}),PF=O({...Or,deleted:mt(Eo),ownerId:v(),displayName:v(),platformId:v(),externalId:mt(v())});var lI=O({name:v(),description:q(v()),type:v(),required:He()}),EF=O({pieceName:v(),triggerName:v(),input:O({toolName:v(),toolDescription:v(),inputSchema:Se(lI),returnsResponse:He()})});var dI="^[0-9]+\\.[0-9]+\\.[0-9]+$",g7=new RegExp(dI),xF="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",y7=v().check(Ut(new RegExp(dI))),_7=v().check(Ut(new RegExp(xF))),TF=O({packageType:ve("ARCHIVE"),pieceType:Pe(pa),pieceName:v(),pieceVersion:v(),archiveId:v(),platformId:v()}),pI=O({packageType:ve("REGISTRY"),pieceType:ve("OFFICIAL"),pieceName:v(),pieceVersion:v()}),fI=O({packageType:ve("REGISTRY"),pieceType:ve("CUSTOM"),pieceName:v(),pieceVersion:v(),platformId:v()}),v7=Ue([pI,fI]),b7=Ue([TF,pI,fI]);var AF=yo("type",[O({type:ve("CRON_EXPRESSION"),cronExpression:v(),timezone:v()}),O({type:ve("INTERVAL"),intervalMs:zT().check(At(6e4))})]),P7=O({...Or,type:Pe(bo),projectId:v(),flowId:v(),triggerName:v(),schedule:mt(AF),flowVersionId:v(),pieceName:v(),pieceVersion:v(),deleted:mt(v()),simulate:He()}),mI=(k=>(k.UNKNOWN="UNKNOWN",k.FLOW_RUN_LOG="FLOW_RUN_LOG",k.FLOW_RUN_LOG_SLICE="FLOW_RUN_LOG_SLICE",k.PACKAGE_ARCHIVE="PACKAGE_ARCHIVE",k.FLOW_STEP_FILE="FLOW_STEP_FILE",k.SAMPLE_DATA="SAMPLE_DATA",k.TRIGGER_PAYLOAD="TRIGGER_PAYLOAD",k.SAMPLE_DATA_INPUT="SAMPLE_DATA_INPUT",k.TRIGGER_EVENT_FILE="TRIGGER_EVENT_FILE",k.PROJECT_RELEASE="PROJECT_RELEASE",k.FLOW_VERSION_BACKUP="FLOW_VERSION_BACKUP",k.PLATFORM_ASSET="PLATFORM_ASSET",k.USER_PROFILE_PICTURE="USER_PROFILE_PICTURE",k.WEBHOOK_PAYLOAD="WEBHOOK_PAYLOAD",k.MCP_CALL_PAYLOAD="MCP_CALL_PAYLOAD",k.KNOWLEDGE_BASE="KNOWLEDGE_BASE",k.FLOW_BUNDLE="FLOW_BUNDLE",k.PREWARM_SCOPE="PREWARM_SCOPE",k))(mI||{}),hI=(r=>(r.NONE="NONE",r.ZSTD="ZSTD",r))(hI||{}),gI=(r=>(r.S3="S3",r.DB="DB",r))(gI||{}),E7=O({...Or,projectId:mt(v()),platformId:mt(v()),type:Pe(mI),compression:Pe(hI),data:q(Ce()),location:Pe(gI),size:mt(kt()),fileName:mt(v()),s3Key:mt(v()),metadata:mt(Re(v(),v()))}),yI=(o=>(o.ADMIN="ADMIN",o.MEMBER="MEMBER",o.OPERATOR="OPERATOR",o))(yI||{}),_I=(r=>(r.ACTIVE="ACTIVE",r.INACTIVE="INACTIVE",r))(_I||{}),S7=O({id:v(),email:v(),firstName:v(),status:Pe(_I),externalId:mt(v()),platformId:mt(v()),platformRole:Pe(yI),lastName:v(),created:Eo,updated:Eo,lastActiveDate:mt(Eo),imageUrl:mt(v())});var tb=O({...Ge.shape,...ke(Re(v(),Ce()),"OBJECT").shape});var rb=O({...Ge.shape,formatProperty:q(v()),...ke(v(),"RICH_TEXT").shape});var EI=O({...Ge.shape,...ke(v(),"COLOR").shape});var nb=Ue([pr,Un,rb,Cp,Ln,fr,Mn,A_,Hc,I_,jn,Kc,tb,Jc,Wc,w_,Zc,EI]),W={ShortText(t){return{...t,valueSchema:void 0,type:"SHORT_TEXT"}},Checkbox(t){return{...t,valueSchema:void 0,type:"CHECKBOX"}},LongText(t){return{...t,valueSchema:void 0,type:"LONG_TEXT"}},RichText(t){return{...t,valueSchema:void 0,type:"RICH_TEXT"}},MarkDown(t){return{displayName:"Markdown",required:!1,description:t.value,type:"MARKDOWN",valueSchema:void 0,variant:t.variant??"INFO"}},Number(t){return{...t,valueSchema:void 0,type:"NUMBER"}},Json(t){return{...t,valueSchema:void 0,type:"JSON"}},Array(t){return{...t,valueSchema:void 0,type:"ARRAY"}},Object(t){return{...t,valueSchema:void 0,type:"OBJECT"}},Dropdown(t){return{...t,valueSchema:void 0,type:"DROPDOWN"}},StaticDropdown(t){return{...t,valueSchema:void 0,type:"STATIC_DROPDOWN"}},MultiSelectDropdown(t){return{...t,valueSchema:void 0,type:"MULTI_SELECT_DROPDOWN"}},DynamicProperties(t){return{...t,valueSchema:void 0,type:"DYNAMIC"}},StaticMultiSelectDropdown(t){return{...t,valueSchema:void 0,type:"STATIC_MULTI_SELECT_DROPDOWN"}},DateTime(t){return{...t,valueSchema:void 0,type:"DATE_TIME"}},DateRange(t){return{...t,valueSchema:void 0,type:"DATE_RANGE"}},File(t){return{...t,valueSchema:void 0,type:"FILE"}},Custom(t){let e=t.code.toString();return{...t,code:e,valueSchema:void 0,type:"CUSTOM"}},Color(t){return{...t,valueSchema:void 0,type:"COLOR"}}};var un=O({displayName:v(),description:q(v()),hasConnectionIdentifier:q(He())});var SI=O({username:v(),password:v()}),ob=O({...un.shape,username:O({displayName:v(),description:q(v())}),password:O({displayName:v(),description:q(v())}),...ke(SI,"BASIC_AUTH").shape});var RF=Re(v(),Ue([pr,Un,jn,Ln,fr])),ib=O({...un.shape,props:RF,...ke(Ce(),"CUSTOM_AUTH").shape});var fi=O({...un.shape,...ke(O({auth:v()}),"SECRET_TEXT").shape});var OF=Re(v(),Ue([pr,Un,fi,jn,Ln,fr,Mn,Cp])),xI=O({...un.shape,props:OF,...ke(Ce(),"OIDC").shape});var ab=(r=>(r.HEADER="HEADER",r.BODY="BODY",r))(ab||{}),TI=Ue([pr,fi,fr]),AI=Re(v(),TI),kF=O({props:q(Re(v(),TI)),authUrl:v(),tokenUrl:v(),scope:Se(v()),prompt:q(Ue([ve("none"),ve("consent"),ve("login"),ve("omit")])),pkce:q(He()),pkceMethod:q(Ue([ve("plain"),ve("S256")])),authorizationMethod:q(Pe(ab)),grantType:q(Ue([Pe(Yc),ve(C_)])),extra:q(Re(v(),v()))}),wI=O({access_token:v(),props:q(AI),data:Re(v(),qc())}),sb=O({...un.shape,...kF.shape,...ke(wI,"OAUTH2").shape});var Sa=Ue([ob,ib,xI,sb,fi]),mu="Connection",cb={SecretText(t){return{...t,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(t){return{...t,valueSchema:void 0,type:"OAUTH2",displayName:t.displayName||mu}},BasicAuth(t){return{...t,valueSchema:void 0,type:"BASIC_AUTH",displayName:t.displayName||mu,required:!0}},CustomAuth(t){return{...t,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:t.displayName||mu}},OIDC(t){return{...t,valueSchema:void 0,type:"OIDC",displayName:t.displayName||mu}},None(){}};var aee={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 NF=O({...Ge.shape,...ke(Ce(),"CUSTOM").shape,code:v()});var $F=Ue([nb,Sa]),ub=Re(v(),$F),Aee=Re(v(),nb);var II=Ue([O({strategy:ve("CRON"),cronExpression:v()}),O({strategy:ve("NONE")})]),xa=class{constructor(e,r,o,n,i,s,u,l,p,f,y,m,h,_,E,S,T,k,L,Y,H){this.name=e;this.displayName=r;this.description=o;this.requireAuth=n;this.props=i;this.type=s;this.handshakeConfiguration=u;this.onHandshake=l;this.renewConfiguration=p;this.onRenew=f;this.onEnable=y;this.onDisable=m;this.onStart=h;this.run=_;this.test=E;this.sampleData=S;this.testStrategy=T;this.outputSchema=k;this.aiMetadata=L;this.classification=Y;this.propertyGroups=H}static{a(this,"ITrigger")}},CI=a(t=>{switch(t.type){case"WEBHOOK":return new xa(t.name,t.displayName,t.description,t.requireAuth??!0,t.props,t.type,t.handshakeConfiguration??{strategy:"NONE"},t.onHandshake??(async()=>({status:200})),t.renewConfiguration??{strategy:"NONE"},t.onRenew??(async()=>Promise.resolve()),t.onEnable,t.onDisable,t.onStart??(async()=>Promise.resolve()),t.run,t.test??(()=>Promise.resolve([t.sampleData])),t.sampleData,t.test?"TEST_FUNCTION":"SIMULATION",t.outputSchema,t.aiMetadata,t.classification,t.propertyGroups);case"POLLING":return new xa(t.name,t.displayName,t.description,t.requireAuth??!0,t.props,t.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),t.onEnable,t.onDisable,t.onStart??(async()=>Promise.resolve()),t.run,t.test??(()=>Promise.resolve([t.sampleData])),t.sampleData,"TEST_FUNCTION",t.outputSchema,t.aiMetadata,t.classification,t.propertyGroups);case"MANUAL":return new xa(t.name,t.displayName,t.description,t.requireAuth??!0,t.props,t.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),t.onEnable,t.onDisable,t.onStart??(async()=>Promise.resolve()),t.run,t.test??(()=>Promise.resolve([t.sampleData])),t.sampleData,"TEST_FUNCTION",t.outputSchema,t.aiMetadata,t.classification,t.propertyGroups);case"APP_WEBHOOK":return new xa(t.name,t.displayName,t.description,t.requireAuth??!0,t.props,t.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),t.onEnable,t.onDisable,t.onStart??(async()=>Promise.resolve()),t.run,t.test??(()=>Promise.resolve([t.sampleData])),t.sampleData,ft(t.sampleData)&&ft(t.test)?"SIMULATION":"TEST_FUNCTION",t.outputSchema,t.aiMetadata,t.classification,t.propertyGroups)}},"createTrigger");var RI="2",mf="0.82.0";var lb=class{constructor(e,r,o,n,i,s,u,l,p=mf,f,y="",m){this.displayName=e;this.logoUrl=r;this.authors=o;this.events=n;this.categories=u;this.auth=l;this.minimumSupportedRelease=p;this.maximumSupportedRelease=f;this.description=y;this.deprecated=m;this._actions={};this._triggers={};this.getContextInfo=a(()=>({version:RI}),"getContextInfo");(!DF(p)||UF(p,mf))&&(this.minimumSupportedRelease=mf),i.forEach(h=>this._actions[h.name]=h),s.forEach(h=>this._triggers[h.name]=h)}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:zF(this.auth),minimumSupportedRelease:this.minimumSupportedRelease,maximumSupportedRelease:this.maximumSupportedRelease,deprecated:this.deprecated,contextInfo:this.getContextInfo?.()}}getAction(e){return this._actions[e]}getTrigger(e){return this._triggers[e]}actions(){return this._actions}triggers(){return this._triggers}},kI=a(t=>{if(t.auth&&Array.isArray(t.auth)&&!t.auth.every((r,o,n)=>o===n.findIndex(i=>i.type===r.type)))throw new Error("Auth properties must be unique by type");return new lb(t.displayName,t.logoUrl,t.authors??[],t.events,t.actions,t.triggers,t.categories??[],t.auth,t.minimumSupportedRelease,t.maximumSupportedRelease,t.description,t.deprecated)},"createPiece");function zF(t){if(t!==void 0)return Array.isArray(t)?t.map(OI):OI(t)}a(zF,"withConnectionIdentifierFlag");function OI(t){return{...t,hasConnectionIdentifier:t.getConnectionIdentifier!==void 0}}a(OI,"flagConnectionIdentifier");function DF(t){return/^\d+\.\d+\.\d+$/.test(t)}a(DF,"isValidSimpleSemver");function UF(t,e){let[r,o,n]=t.split(".").map(Number),[i,s,u]=e.split(".").map(Number);return r!==i?r<i:o!==s?o<s:n<u}a(UF,"isSemverLessThan");var MF=q(Re(v(),Re(v(),v()))),NI=O({id:q(v()),name:v(),displayName:v(),logoUrl:v(),description:v(),authors:Se(v()),platformId:q(v()),directoryPath:q(v()),auth:q(Ue([Sa,Se(Sa)])),version:v(),categories:q(Se(Pe(fa))),minimumSupportedRelease:q(v()),maximumSupportedRelease:q(v()),deprecated:q(He()),i18n:MF}),LF=Pe(["human","ai","both"]),$I=O({description:q(v()),idempotent:q(He())}),zI=Pe(["READ","SEARCH","WRITE","DESTRUCTIVE"]);var jF=Pe(["tabs","section","summary","builder","footer"]),DI=O({key:v(),display:jF,label:q(v()),description:q(v()),icon:q(v()),props:Se(v())}),UI=O({name:v(),displayName:v(),description:v(),props:ub,propertyGroups:q(Se(DI)),requireAuth:He(),errorHandlingOptions:q(T_),outputSchema:q(Ap()),audience:q(LF),aiMetadata:q($I),classification:q(zI)}),MI=O({name:v(),displayName:v(),description:v(),props:ub,propertyGroups:q(Se(DI)),errorHandlingOptions:q(T_),type:Pe(bo),sampleData:Ce(),handshakeConfiguration:q(Ap()),renewConfiguration:q(II),testStrategy:Pe(eu),outputSchema:q(Ap()),aiMetadata:q($I),classification:q(zI)}),FF=O({...NI.shape,actions:Re(v(),UI),triggers:Re(v(),MI)}),BF=O({...NI.shape,actions:kt(),triggers:kt(),suggestedActions:q(Se(UI)),suggestedTriggers:q(Se(MI))}),LI=O({projectUsage:kt(),pieceType:Pe(pa),packageType:Pe(Xc),platformId:q(v()),archiveId:q(v())}),Cte=O({...FF.shape,...LI.shape}),Rte=O({...BF.shape,...LI.shape}),Ote=O({name:v(),version:v()});var qF=Tt(require("path")),GF=Tt(require("fs/promises"));var Aa=require("node:stream");var hf=class{constructor(e,r){this.baseUrl=e;this.authenticationConverter=r}static{a(this,"BaseHttpClient")}getUrl(e){let r=new URL(`${this.baseUrl}${e.url}`),o=`${r.origin}${r.pathname}`,n=new URLSearchParams;return r.searchParams.forEach((i,s)=>{n.append(s,i)}),{urlWithoutQueryParams:o,queryParams:n}}getHeaders(e){let r={Accept:"application/json"};return e.authentication&&this.populateAuthentication(e.authentication,r),e.body&&(e.headers?.["Content-Type"]==="text/csv"?r["Content-Type"]="text/csv":r["Content-Type"]="application/json"),e.headers&&(r={...r,...e.headers}),r}populateAuthentication(e,r){this.authenticationConverter.convert(e,r)}};var gf=class{static{a(this,"DelegatingAuthenticationConverter")}constructor(e=new db,r=new pb){this.converters={BEARER_TOKEN:e,BASIC:r}}convert(e,r){return this.converters[e.type].convert(e,r)}},db=class{static{a(this,"BearerTokenAuthenticationConverter")}convert(e,r){return r.Authorization=`Bearer ${e.token}`,r}},pb=class{static{a(this,"BasicTokenAuthenticationConverter")}convert(e,r){let o=`${e.username}:${e.password}`,n=Buffer.from(o).toString("base64");return r.Authorization=`Basic ${n}`,r}};var hu=class extends Error{constructor(r,o){let n=o.status||500,i=Buffer.isBuffer(o.responseBody)?o.responseBody.toString():o.responseBody;super(JSON.stringify({response:{status:n,body:i},request:{body:r}}));this.requestBody=r;this.status=n,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 jI({error:t,requestBody:e}){return t instanceof hu?t.errorMessage():{response:{status:0,body:t instanceof Error?t.message:String(t)},request:{body:e}}}a(jI,"toFailsafeOutput");var Ta=(s=>(s.GET="GET",s.POST="POST",s.PATCH="PATCH",s.PUT="PUT",s.DELETE="DELETE",s.HEAD="HEAD",s))(Ta||{});var yf=class extends hf{static{a(this,"FetchHttpClient")}constructor(e="",r=new gf){super(e,r)}async sendRequest(e,r){process.env.NODE_TLS_REJECT_UNAUTHORIZED="0";let{urlWithoutQueryParams:o,queryParams:n}=this.getUrl(e),i=this.getHeaders(e),s=e.queryParams??{};for(let[L,Y]of Object.entries(s))n.append(L,Y);let u=n.toString(),l=u?`${o}?${u}`:o,p=e.responseType??"json",f=e.followRedirects??!0,y=e.retries??0,{body:m,extraHeaders:h,isStream:_}=_f(e.method)?VF(e.body,i):{body:void 0,extraHeaders:{},isStream:!1},E=ZF({...i,...h}),S=await HF(async()=>{let L=new AbortController,Y=e.timeout&&e.timeout>0?setTimeout(()=>L.abort(),e.timeout):void 0;try{let H={method:e.method.toString(),headers:E,body:m,redirect:f?"follow":"manual",signal:L.signal};return _&&(H.duplex="half"),r?.dispatcher!==void 0&&(H.dispatcher=r.dispatcher),await fetch(l,H)}finally{Y!==void 0&&clearTimeout(Y)}},_?0:y),T=f?300:400;if(S.status<200||S.status>=T){let L=await FI(S,p==="stream"?"text":p),Y=new hu(e.body,{status:S.status,responseBody:L});throw console.error("[HttpClient#(sanitized error message)] Request failed:",Y),Y}let k=await FI(S,p);return{status:S.status,headers:WF(S.headers),body:k}}};function _f(t){return t!=="GET"&&t!=="HEAD"}a(_f,"acceptsRequestBody");function VF(t,e){if(qI(t))return{body:void 0,extraHeaders:{},isStream:!1};if(JF(t)){let o=KF(t);if(o!==null)return{body:o,extraHeaders:t.getHeaders(),isStream:!1};let n=new Aa.PassThrough;return t.on("error",i=>n.destroy(i)),t.pipe(n),{body:n,extraHeaders:t.getHeaders(),isStream:!0}}return t instanceof Aa.Readable?{body:t,extraHeaders:{},isStream:!0}:typeof t=="string"||Buffer.isBuffer(t)||t instanceof URLSearchParams||t instanceof ArrayBuffer||typeof FormData<"u"&&t instanceof FormData||typeof Blob<"u"&&t instanceof Blob?{body:t,extraHeaders:{},isStream:!1}:(e["Content-Type"]??e["content-type"]??"").includes("application/x-www-form-urlencoded")?{body:new URLSearchParams(t).toString(),extraHeaders:{},isStream:!1}:{body:JSON.stringify(t),extraHeaders:{},isStream:!1}}a(VF,"serializeBody");async function FI(t,e){switch(e){case"arraybuffer":return Buffer.from(await t.arrayBuffer());case"stream":return qI(t.body)?Aa.Readable.from([]):Aa.Readable.fromWeb(t.body);case"blob":return await t.blob();case"text":return await t.text();default:{let r=await t.text();if(r.length===0)return;try{return JSON.parse(r)}catch{return r}}}}a(FI,"parseResponseBody");async function HF(t,e){let r;for(let o=0;o<=e;o++)try{let n=await t();if(n.status>=500&&o<e){await BI(o);continue}return n}catch(n){if(r=n,o<e){await BI(o);continue}throw n}throw r}a(HF,"sendWithRetries");function BI(t){let e=Math.min(1e3*2**t,3e4);return new Promise(r=>setTimeout(r,e))}a(BI,"backoff");function ZF(t){let e=new Map;for(let[r,o]of Object.entries(t))o!==void 0&&e.set(r.toLowerCase(),[r,Array.isArray(o)?o.join(", "):o]);return Object.fromEntries(e.values())}a(ZF,"normalizeHeaders");function WF(t){let e={};return t.forEach((r,o)=>{e[o]=r}),e}a(WF,"toHttpHeaders");function KF(t){if(!t.hasKnownLength()||t.getLengthSync()>XF)return null;let{data:e}=O_(()=>t.getBuffer());return e}a(KF,"bufferFormDataIfSafe");function JF(t){return typeof t=="object"&&t!==null&&typeof t.getHeaders=="function"&&typeof t.pipe=="function"&&typeof t.on=="function"}a(JF,"isNodeFormData");function qI(t){return t==null}a(qI,"isNil");var XF=100*1024*1024;var ln=new yf;var Mq=Tt(require("fs")),ZR=Tt(HR());var Lq={"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 jq(t){let e=t.split(";")[0].trim().toLowerCase();return Lq[e]??""}a(jq,"contentTypeToExtension");var Fq=a(({baseUrl:t,relativePath:e})=>{let r=t.endsWith("/")?t:`${t}/`,o=e.startsWith("/")?e.slice(1):e;return`${r}${o}`},"joinBaseUrlWithRelativePath"),Bq=a((t,e)=>{let r="https://api.example.com";try{let o=e?t(e):void 0;return(o?.endsWith("/")?o.slice(0,-1):o)??r}catch{return r}},"getBaseUrlForDescription");function WR({auth:t,baseUrl:e,authMapping:r,description:o,displayName:n,name:i,props:s,extraProps:u,authLocation:l="headers",classification:p="WRITE"}){return Oe({audience:"human",name:i||"custom_api_call",classification:p,displayName:n||"Custom API Call",description:o||"Make a custom API call to a specific endpoint",auth:t,requireAuth:!!t,props:{url:W.DynamicProperties({auth:t,displayName:"",required:!0,refreshers:[],props:a(async({auth:f})=>({url:W.ShortText({displayName:"URL",description:`Full URL, or a path relative to ${Bq(e,f)}`,required:!0,placeholder:"/resource",defaultValue:f?e(f):"",...s?.url??{}})}),"props")}),method:W.StaticDropdown({displayName:"Method",required:!0,defaultValue:"GET",options:{options:Object.values(Ta).map(f=>({label:f,value:f}))},...s?.method??{}}),headers:W.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!1,...s?.headers??{}}),queryParams:W.Object({displayName:"Query Parameters",description:"Appended to the URL as ?key=value.",required:!1,...s?.queryParams??{}}),body_type:W.Dropdown({auth:t,displayName:"Body Type",required:!1,defaultValue:"none",refreshers:["method"],options:a(async({method:f})=>_f(f)?{disabled:!1,options:[{label:"None",value:"none"},{label:"JSON",value:"json"},{label:"Form Data",value:"form_data"},{label:"Raw",value:"raw"}]}:{disabled:!0,placeholder:"Not available for GET or HEAD requests",options:[]},"options")}),body:W.DynamicProperties({auth:t,displayName:"Body",refreshers:["body_type","method"],required:!1,props:a(async({body_type:f,method:y})=>{if(!f||!_f(y))return{};let m=f,h={};switch(m){case"none":break;case"json":h.data=W.Json({displayName:"JSON Body",required:!0,...s?.body??{}});break;case"raw":h.data=W.LongText({displayName:"Raw Body",required:!0});break;case"form_data":h.data=W.Array({displayName:"Form Data",required:!0,properties:{fieldName:W.ShortText({displayName:"Field Name",required:!0}),fieldType:W.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:W.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:W.File({displayName:"File Field Value",required:!1})}});break}return h},"props")}),response_is_binary:W.Checkbox({displayName:"Response is Binary",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1,advanced:!0,...s?.response_is_binary??{}}),failsafe:W.Checkbox({displayName:"Return Error as Output",description:"On a failed request, output the error instead of failing the step.",required:!1,advanced:!0,...s?.failsafe??{}}),timeout:W.Number({displayName:"Timeout",description:"Seconds to wait for a response. Empty: up to the flow limit (10 min).",required:!1,advanced:!0,...s?.timeout??{}}),followRedirects:W.Checkbox({displayName:"Follow redirects",description:"Follow 3xx redirects instead of returning them as the response.",required:!1,defaultValue:!1,advanced:!0,...s?.followRedirects??{}}),...u},run:a(async f=>{let{method:y,url:m,headers:h,queryParams:_,body:E,body_type:S,failsafe:T,timeout:k,response_is_binary:L,followRedirects:Y}=f.propsValue;Op(y,"Method"),Op(m,"URL");let H=ft(r)?{}:await r(f.auth,f.propsValue),X=m.url,re=X.startsWith("http://")||X.startsWith("https://")?X:Fq({baseUrl:e(f.auth),relativePath:X}),ce={method:y,url:re,headers:{...h??{},...l==="headers"||!ft(l)?H:{}},queryParams:{...l==="queryParams"?H:{},..._??{}},timeout:k?k*1e3:0,followRedirects:Y};if(L&&(ce.responseType="arraybuffer"),E)if(S&&S!=="none"){let ee=E.data;if(S==="form_data"){let Le=ee,ue=new ZR.default;for(let{fieldName:K,fieldType:Z,textFieldValue:oe,fileFieldValue:Q}of Le)Z==="text"&&!tu(oe)?ue.append(K,oe):Z==="file"&&!tu(Q)&&ue.append(K,Q.data,{filename:Q?.filename});ce.body=ue,ce.headers={...ce.headers,...ue.getHeaders()}}else ce.body=ee}else S||(ce.body=E);try{let ee=await ln.sendRequest(ce);return await qq(f.files,ee.body,ee.status,ee.headers,L)}catch(ee){if(T)return jI({error:ee,requestBody:ce.body});throw ee}},"run")})}a(WR,"createCustomApiCallAction");var qq=a(async(t,e,r,o,n)=>{let i;if(n&&Gq(e)){let s=Array.isArray(o?.["content-type"])?o["content-type"][0]:o?.["content-type"],u=jq(s??"")||"txt",l;e instanceof ArrayBuffer?l=Buffer.from(new Uint8Array(e)):Buffer.isBuffer(e)?l=e:l=Buffer.from(e),i=await t.write({fileName:`output.${u}`,data:l})}else i=e;return{status:r,headers:o,body:i}},"handleBinaryResponse"),Gq=a(t=>t instanceof ArrayBuffer||Buffer.isBuffer(t),"isBinaryBody");var bu={async poll(t,{store:e,auth:r,propsValue:o,maxItemsToPoll:n,files:i,server:s}){switch(t.strategy){case 0:{let u=await e.get("lastPoll");if(ft(u))throw new Error("lastPoll doesn't exist in the store.");let l=await t.items({store:e,auth:r,propsValue:o,lastFetchEpochMS:u,server:s}),p=l.reduce((f,y)=>Math.max(f,y.epochMilliSeconds),u);return await e.put("lastPoll",p),l.filter(f=>f.epochMilliSeconds>u).map(f=>f.data)}case 1:{let u=await e.get("lastItem"),l=await t.items({store:e,auth:r,propsValue:o,lastItemId:u,files:i,server:s}),p=l.findIndex(m=>m.id===u),f=[];ft(u)||p==-1?f=l??[]:f=l?.slice(0,p)??[],ft(n)||(f=f.slice(-n));let y=f?.[0]?.id;return ft(y)||await e.put("lastItem",y),f.map(m=>m.data)}}},async onEnable(t,{store:e,auth:r,propsValue:o,server:n,isRepublish:i}){switch(t.strategy){case 0:{if(i&&!ft(await e.get("lastPoll")))break;await e.put("lastPoll",Date.now());break}case 1:{if(i&&!ft(await e.get("lastItem")))break;let u=(await t.items({store:e,auth:r,propsValue:o,lastItemId:null,server:n}))?.[0]?.id;ft(u)?await e.delete("lastItem"):await e.put("lastItem",u);break}}},async onDisable(t,e){switch(t.strategy){case 0:case 1:return}},async test(t,{auth:e,propsValue:r,store:o,files:n,server:i}){let s=[];switch(t.strategy){case 0:{s=await t.items({store:o,auth:e,propsValue:r,lastFetchEpochMS:0,server:i});break}case 1:{s=await t.items({store:o,auth:e,propsValue:r,lastItemId:null,files:n,server:i});break}}return Vq(s.map(u=>u.data))}};function Vq(t){return t.length<=5?t:t.slice(0,5)}a(Vq,"getFirstFiveOrAll");var KR="https://people.googleapis.com/v1",Hq=["names","nicknames","emailAddresses","phoneNumbers","organizations","addresses","biographies","urls","memberships","photos","metadata"],Zq=["clientData","groupType","memberCount","metadata","name"],Wq=["addresses","biographies","birthdays","calendarUrls","clientData","emailAddresses","events","externalIds","genders","imClients","interests","locales","locations","memberships","miscKeywords","names","nicknames","occupations","organizations","phoneNumbers","relations","sipAddresses","urls","userDefined"],Kq=["contactGroups/all","contactGroups/blocked","contactGroups/chatBuddies","contactGroups/coworkers","contactGroups/family","contactGroups/friends"];function Jq({path:t,queryParams:e,repeatedQueryParams:r}){let o=new URLSearchParams;for(let[i,s]of Object.entries(e??{}))s!==void 0&&o.append(i,s);for(let[i,s]of Object.entries(r??{}))for(let u of s)o.append(i,u);let n=o.toString();return n.length>0?`${KR}${t}?${n}`:`${KR}${t}`}a(Jq,"buildUrl");function kr({source:t,path:e}){let r=t;for(let o of e){if(typeof r!="object"||r===null||!(o in r))return;r=Reflect.get(r,o)}return r}a(kr,"readValue");function Pu({source:t,path:e}){let r=kr({source:t,path:e});return typeof r=="string"?r:void 0}a(Pu,"readString");function Xq({source:t,path:e}){let r=kr({source:t,path:e});if(!(typeof r!="object"||r===null||Array.isArray(r)))return Object.fromEntries(Object.entries(r))}a(Xq,"readRecord");function Yq({source:t,path:e}){let r=kr({source:t,path:e});return Array.isArray(r)?r:[]}a(Yq,"readArray");function Qq({value:t,label:e}){try{let r=JSON.parse(t);if(Array.isArray(r))return r}catch{throw new Error(`${e} must be a list of strings.`)}throw new Error(`${e} must be a list of strings.`)}a(Qq,"parseStringList");function e4({value:t,label:e}){if(t==null)return[];let r=typeof t=="string"?Qq({value:t,label:e}):t;if(!Array.isArray(r))throw new Error(`${e} must be a list of strings.`);return r.map(o=>{if(typeof o!="string"||o.trim().length===0)throw new Error(`${e} must be a list of non-empty strings.`);return o.trim()})}a(e4,"toStringList");function t4({values:t,max:e,label:r}){if(t.length===0)throw new Error(`${r} must contain at least one entry.`);if(t.length>e)throw new Error(`${r} accepts at most ${e} entries, received ${t.length}.`)}a(t4,"assertBatchSize");function JR({status:t}){let e=Pu({source:t,path:["message"]}),r=kr({source:t,path:["code"]});return e!==void 0?e:typeof r=="number"?`Google returned status code ${r}.`:"Google returned an unspecified failure for this item."}a(JR,"describeStatus");function $b({response:t}){let e=kr({source:t,path:["status"]});if(e==null)return!1;let r=kr({source:e,path:["code"]}),o=kr({source:e,path:["message"]});return typeof r=="number"&&r!==0?!0:typeof o=="string"&&o.length>0}a($b,"isFailedItem");function r4({items:t,payloadKey:e}){let r=t.filter(n=>!$b({response:n.response})).map(n=>({resourceName:Pu({source:n.response,path:[e,"resourceName"]})??n.resourceName,payload:kr({source:n.response,path:[e]})})),o=t.filter(n=>$b({response:n.response})).map(n=>({resourceName:n.resourceName,status:JR({status:kr({source:n.response,path:["status"]})})}));return{succeeded:r,failed:o}}a(r4,"splitItemResponses");function n4({error:t,operation:e}){let r=kr({source:t,path:["response","status"]}),o=Pu({source:t,path:["response","body","error","status"]}),n=Pu({source:t,path:["response","body","error","message"]}),i=n===void 0?"":` ${n}`;return r===400&&o==="FAILED_PRECONDITION"?new Error(`${e} failed because the record changed since it was read. Re-read the record to get a fresh etag and retry.${i}`):r===400?new Error(`${e} was rejected as invalid by Google Contacts.${i}`):r===401?new Error(`${e} failed: the Google Contacts connection is no longer authorized. Reconnect the account.${i}`):r===403?new Error(`${e} failed: the connected Google account is not allowed to perform it, or the connection is missing the required scope.${i}`):r===404?new Error(`${e} failed: the resource was not found. Resource names are opaque, so resolve a current one with the matching list or search action.${i}`):r===409?new Error(`${e} failed: the resource already exists.${i}`):r===429?new Error(`${e} failed: Google Contacts rate limit reached. Retry later.${i}`):new Error(`${e} failed.${i}`)}a(n4,"toApiError");function o4({error:t}){return kr({source:t,path:["response","status"]})===409}a(o4,"isConflict");async function i4({accessToken:t,method:e,path:r,queryParams:o,repeatedQueryParams:n,body:i}){let s={method:e,url:Jq({path:r,queryParams:o,repeatedQueryParams:n}),body:i,authentication:{type:"BEARER_TOKEN",token:t}};return(await ln.sendRequest(s)).body??{}}a(i4,"sendRequest");var Ao={baseUrl:"https://people.googleapis.com/v1/people"},D={contactReadMask:Hq,contactGroupFields:Zq,updatablePersonFields:Wq,systemGroupsRejectingAdds:Kq,sendRequest:i4,toApiError:n4,isConflict:o4,readValue:kr,readString:Pu,readRecord:Xq,readArray:Yq,toStringList:e4,assertBatchSize:t4,splitItemResponses:r4,describeStatus:JR,isFailedItem:$b};var xe=cb.OAuth2({description:"",authUrl:"https://accounts.google.com/o/oauth2/auth",tokenUrl:"https://oauth2.googleapis.com/token",required:!0,scope:["https://www.googleapis.com/auth/contacts","email"]});var a4=[{key:"displayName",label:"Display Name"},{key:"givenName",label:"First Name"},{key:"middleName",label:"Middle Name"},{key:"familyName",label:"Last Name"},{key:"displayNameLastFirst",label:"Display Name (Last, First)"},{key:"unstructuredName",label:"Unstructured Name"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],s4=[{key:"value",label:"Email Address",format:"email"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],c4=[{key:"value",label:"Phone Number"},{key:"canonicalForm",label:"Canonical Form"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],u4=[{key:"value",label:"Nickname"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],l4=[{key:"value",label:"Notes"},{key:"contentType",label:"Content Type"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],d4=[{key:"name",label:"Company"},{key:"title",label:"Job Title"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],p4=[{key:"url",label:"Photo URL",format:"image"},{key:"default",label:"Is Placeholder",format:"boolean"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],f4=[{key:"contactGroupId",label:"Contact Group ID",value:"contactGroupMembership.contactGroupId"},{key:"contactGroupResourceName",label:"Contact Group Resource Name",value:"contactGroupMembership.contactGroupResourceName"}],m4=[{key:"objectType",label:"Object Type"},{key:"sources",label:"Sources",labelKey:"updateTime",listItems:[{key:"type",label:"Source Type"},{key:"id",label:"Source ID"},{key:"updateTime",label:"Last Updated",format:"datetime"}]}],Jr=[{key:"resourceName",label:"Resource Name"},{key:"etag",label:"ETag"},{key:"names",label:"Names",labelKey:"displayName",listItems:a4},{key:"emailAddresses",label:"Email Addresses",labelKey:"value",listItems:s4},{key:"phoneNumbers",label:"Phone Numbers",labelKey:"value",listItems:c4},{key:"nicknames",label:"Nicknames",labelKey:"value",listItems:u4},{key:"biographies",label:"Notes",labelKey:"value",listItems:l4},{key:"organizations",label:"Organizations",labelKey:"name",listItems:d4},{key:"photos",label:"Photos",labelKey:"url",listItems:p4},{key:"memberships",label:"Group Memberships",labelKey:"contactGroupMembership.contactGroupId",listItems:f4},{key:"metadata",label:"Metadata",children:m4}],Eu=[{key:"resourceName",label:"Resource Name"},{key:"etag",label:"ETag"},{key:"displayName",label:"Display Name"},{key:"givenName",label:"First Name"},{key:"familyName",label:"Last Name"},{key:"emails",label:"Email Addresses"},{key:"phoneNumbers",label:"Phone Numbers"},{key:"company",label:"Company"},{key:"jobTitle",label:"Job Title"},{key:"updateTime",label:"Last Updated",format:"datetime"}],Su=[{key:"resourceName",label:"Resource Name"},{key:"etag",label:"ETag"},{key:"name",label:"Name"},{key:"formattedName",label:"Formatted Name"},{key:"groupType",label:"Group Type"},{key:"memberCount",label:"Member Count",format:"number"},{key:"memberResourceNames",label:"Member Resource Names"}],XR=[{key:"resourceName",label:"Resource Name"},{key:"status",label:"Failure Reason"}],h4=[{key:"resourceName",label:"Resource Name"},{key:"status",label:"Failure Reason"},{key:"updateMask",label:"Field Groups Not Applied"}],g4=[{key:"requestIndex",label:"Request Index",format:"number"},{key:"status",label:"Failure Reason"}],YR={fields:Jr},QR={fields:Jr},eO={fields:[{key:"results",label:"Matching Contacts",listItems:[{key:"person",label:"Contact",children:Jr}]}]},tO={fields:Jr},rO={fields:Jr},nO={fields:Jr},oO={fields:Jr},iO={fields:[{key:"contacts",label:"Contacts",labelKey:"displayName",listItems:Eu},{key:"count",label:"Count",format:"number"},{key:"hasMore",label:"Has More",format:"boolean"}]},aO={fields:[{key:"results",label:"Matching Contacts",labelKey:"displayName",listItems:Eu},{key:"count",label:"Count",format:"number"}]},sO={fields:[{key:"deleted",label:"Deleted",format:"boolean"},{key:"resourceName",label:"Resource Name"}]},cO={fields:[{key:"deleted",label:"Deleted",format:"boolean"},{key:"resourceNames",label:"Resource Names"},{key:"count",label:"Count",format:"number"}]},uO={fields:[{key:"succeeded",label:"Contacts Read",labelKey:"contact.displayName",listItems:[{key:"resourceName",label:"Resource Name"},{key:"contact",label:"Contact",children:Eu},{key:"person",label:"Full Person",children:Jr}]},{key:"failed",label:"Failures",labelKey:"resourceName",listItems:XR},{key:"succeededCount",label:"Succeeded Count",format:"number"},{key:"failedCount",label:"Failed Count",format:"number"}]},lO={fields:[{key:"succeeded",label:"Contacts Created",labelKey:"contact.displayName",listItems:[{key:"requestIndex",label:"Request Index",format:"number"},{key:"resourceName",label:"Resource Name"},{key:"contact",label:"Contact",children:Eu}]},{key:"failed",label:"Failures",labelKey:"requestIndex",listItems:g4},{key:"succeededCount",label:"Succeeded Count",format:"number"},{key:"failedCount",label:"Failed Count",format:"number"},{key:"requestedCount",label:"Requested Count",format:"number"}]},dO={fields:[{key:"succeeded",label:"Contacts Updated",labelKey:"contact.displayName",listItems:[{key:"resourceName",label:"Resource Name"},{key:"contact",label:"Contact",children:Eu},{key:"person",label:"Full Person",children:Jr}]},{key:"failed",label:"Failures",labelKey:"resourceName",listItems:h4},{key:"succeededCount",label:"Succeeded Count",format:"number"},{key:"failedCount",label:"Failed Count",format:"number"},{key:"updateMasks",label:"Update Masks"}]},pO={fields:Jr},fO={fields:Jr},mO={fields:[{key:"contactGroups",label:"Contact Groups",labelKey:"formattedName",listItems:Su},{key:"count",label:"Count",format:"number"},{key:"hasMore",label:"Has More",format:"boolean"}]},hO={fields:Su},gO={fields:Su},yO={fields:[{key:"succeeded",label:"Contact Groups Read",labelKey:"formattedName",listItems:Su},{key:"failed",label:"Failures",labelKey:"resourceName",listItems:XR},{key:"succeededCount",label:"Succeeded Count",format:"number"},{key:"failedCount",label:"Failed Count",format:"number"}]},_O={fields:[{key:"created",label:"Created",format:"boolean"},{key:"contactGroup",label:"Contact Group",children:Su}]},vO={fields:[{key:"deleted",label:"Deleted",format:"boolean"},{key:"resourceName",label:"Resource Name"},{key:"deletedContacts",label:"Contacts Also Deleted",format:"boolean"}]},bO={fields:[{key:"resourceName",label:"Contact Group Resource Name"},{key:"added",label:"Added Contacts"},{key:"removed",label:"Removed Contacts"},{key:"notFoundResourceNames",label:"Not Found Contacts"},{key:"canNotRemoveLastContactGroupResourceNames",label:"Cannot Remove Last Group"}]};var PO=Oe({auth:xe,name:"add_contact",classification:"WRITE",description:"Add a contact to a Google Contacts account",audience:"human",aiMetadata:{description:"Creates a new person in the authenticated Google Contacts account from name, email, phone, company, and job title fields. Use when an agent needs to add someone to address book contacts; first and last name are required. Not idempotent \u2014 each call creates a separate contact even with identical input, so guard against duplicates.",idempotent:!1},displayName:"Add Contact",outputSchema:YR,props:{firstName:W.ShortText({displayName:"First Name",description:"The first name of the contact",required:!0}),middleName:W.ShortText({displayName:"Middle Name",description:"The middle name of the contact",required:!1}),lastName:W.ShortText({displayName:"Last Name",description:"The last name of the contact",required:!0}),jobTitle:W.ShortText({displayName:"Job Title",description:"The job title of the contact",required:!1}),company:W.ShortText({displayName:"Company",description:"The company of the contact",required:!1}),email:W.ShortText({displayName:"Email",description:"The email address of the contact",required:!1}),phoneNumber:W.ShortText({displayName:"Phone Number",description:"The phone number of the contact",required:!1})},async run(t){let e={names:[{givenName:t.propsValue.firstName,middleName:t.propsValue.middleName,familyName:t.propsValue.lastName}]},r={};t.propsValue.email&&(r.emailAddresses=[{value:t.propsValue.email}]),t.propsValue.phoneNumber&&(r.phoneNumbers=[{value:t.propsValue.phoneNumber}]),(t.propsValue.company||t.propsValue.jobTitle)&&(r.organizations=[{name:t.propsValue.company||void 0,title:t.propsValue.jobTitle||void 0}]),e={...e,...r};let o={method:"POST",url:`${Ao.baseUrl}:createContact`,body:e,authentication:{type:"BEARER_TOKEN",token:t.auth.access_token}};return(await ln.sendRequest(o)).body}});var EO=Oe({auth:xe,name:"update_contact",classification:"WRITE",description:"Update a contact in Google Contacts account.",audience:"human",aiMetadata:{description:"Updates fields (name, email, phone, company, job title) on an existing Google Contacts person identified by its resourceName (people/{id}). Use when an agent needs to modify a known contact; requires both the resourceName and the current etag, and a field mask listing which fields to update \u2014 the call is rejected if the contact changed since the etag was fetched. Repeating the same update with the same etag/values is safe and yields the same result.",idempotent:!0},displayName:"Update Contact",outputSchema:QR,props:{resourceName:W.ShortText({displayName:"Resource Name",description:"The resource name for the person, assigned by the server. An ASCII string in the form of people/{person_id}.",required:!0}),etag:W.ShortText({displayName:"Etag",description:"The `etag` ensures contact updates only apply if the contact hasn't changed since last retrieved.",required:!0}),updatePersonFields:W.StaticMultiSelectDropdown({displayName:"Update Field Mask",description:"A field mask to restrict which fields on the person are updated.",required:!0,options:{options:[{label:"Names",value:"names"},{label:"Email",value:"emailAddresses"},{label:"Phone Number",value:"phoneNumbers"},{label:"Job Title / Company",value:"organizations"}]},defaultValue:["names","emailAddresses"]}),firstName:W.ShortText({displayName:"First Name",description:"The first name of the contact",required:!1}),middleName:W.ShortText({displayName:"Middle Name",description:"The middle name of the contact",required:!1}),lastName:W.ShortText({displayName:"Last Name",description:"The last name of the contact",required:!1}),jobTitle:W.ShortText({displayName:"Job Title",description:"The job title of the contact",required:!1}),company:W.ShortText({displayName:"Company",description:"The company of the contact",required:!1}),email:W.ShortText({displayName:"Email",description:"The email address of the contact",required:!1}),phoneNumber:W.ShortText({displayName:"Phone Number",description:"The phone number of the contact",required:!1})},async run(t){let e=t.propsValue.resourceName.substring(6),r={etag:t.propsValue.etag},o={updatePersonFields:t.propsValue.updatePersonFields.join(",")};(t.propsValue.firstName||t.propsValue.middleName||t.propsValue.lastName)&&(r.names=[{givenName:t.propsValue.firstName||void 0,middleName:t.propsValue.middleName||void 0,familyName:t.propsValue.lastName||void 0}]),t.propsValue.email&&(r.emailAddresses=[{value:t.propsValue.email}]),t.propsValue.phoneNumber&&(r.phoneNumbers=[{value:t.propsValue.phoneNumber}]),(t.propsValue.company||t.propsValue.jobTitle)&&(r.organizations=[{name:t.propsValue.company||void 0,title:t.propsValue.jobTitle||void 0}]);let n={method:"PATCH",url:`${Ao.baseUrl}${e}:updateContact`,body:r,authentication:{type:"BEARER_TOKEN",token:t.auth.access_token},queryParams:o};return(await ln.sendRequest(n)).body}});var SO=Oe({auth:xe,name:"search_contact",classification:"SEARCH",description:"Search contacts in Google Contacts account.",audience:"human",aiMetadata:{description:"Searches the authenticated Google Contacts account for people matching a plain-text query, which prefix-matches against contact fields. Use when an agent needs to find a contact or its resourceName before updating it; the query is required and a read mask selects which fields come back (max 30 results). Read-only and idempotent.",idempotent:!0},displayName:"Search Contacts",outputSchema:eO,props:{query:W.ShortText({displayName:"Query",description:'The plain-text query for the request.The query is used to match prefix phrases of the fields on a person. For example, a person with name "foo name" matches queries such as "f", "fo", "foo", "foo n", "nam", etc., but not "oo n".',required:!0}),readMask:W.StaticMultiSelectDropdown({displayName:"Read Mask",description:"A field mask to restrict which fields on each person are returned.",required:!0,options:{options:[{label:"addresses",value:"addresses"},{label:"ageRanges",value:"ageRanges"},{label:"biographies",value:"biographies"},{label:"birthdays",value:"birthdays"},{label:"calendarUrls",value:"calendarUrls"},{label:"clientData",value:"clientData"},{label:"coverPhotos",value:"coverPhotos"},{label:"emailAddresses",value:"emailAddresses"},{label:"events",value:"events"},{label:"externalIds",value:"externalIds"},{label:"genders",value:"genders"},{label:"imClients",value:"imClients"},{label:"interests",value:"interests"},{label:"locales",value:"locales"},{label:"locations",value:"locations"},{label:"memberships",value:"memberships"},{label:"metadata",value:"metadata"},{label:"miscKeywords",value:"miscKeywords"},{label:"names",value:"names"},{label:"nicknames",value:"nicknames"},{label:"occupations",value:"occupations"},{label:"organizations",value:"organizations"},{label:"phoneNumbers",value:"phoneNumbers"},{label:"photos",value:"photos"},{label:"relations",value:"relations"},{label:"sipAddresses",value:"sipAddresses"},{label:"skills",value:"skills"},{label:"urls",value:"urls"},{label:"userDefined",value:"userDefined"}]},defaultValue:["names","emailAddresses"]}),pageSize:W.Number({displayName:"Page Size",description:"The number of results to return. Maximum 30.",required:!1})},async run(t){let e={query:t.propsValue.query,readMask:t.propsValue.readMask.join(",")};t.propsValue.pageSize&&(e.pageSize=String(t.propsValue.pageSize));let r={method:"GET",url:`${Ao.baseUrl}:searchContacts`,authentication:{type:"BEARER_TOKEN",token:t.auth.access_token},queryParams:e};return(await ln.sendRequest(r)).body}});function wf({current:t,group:e,overrides:r,defaults:o}){let n=D.readArray({source:t,path:[e]}),i=n[0],s=typeof i=="object"&&i!==null&&!Array.isArray(i)?Object.fromEntries(Object.entries(i)):{};return[{...o,...s,...r},...n.slice(1)]}a(wf,"mergeFirstEntry");function y4({input:t,current:e}){let r={},o=[];return(t.firstName!==void 0||t.middleName!==void 0||t.lastName!==void 0)&&(r.names=wf({current:e,group:"names",overrides:{...t.firstName===void 0?{}:{givenName:t.firstName},...t.middleName===void 0?{}:{middleName:t.middleName},...t.lastName===void 0?{}:{familyName:t.lastName}}}),o.push("names")),t.nickname!==void 0&&(r.nicknames=wf({current:e,group:"nicknames",overrides:{value:t.nickname}}),o.push("nicknames")),t.clearEmails===!0?(r.emailAddresses=[],o.push("emailAddresses")):t.emails!==void 0&&t.emails.length>0&&(r.emailAddresses=t.emails.map(s=>({value:s})),o.push("emailAddresses")),t.clearPhoneNumbers===!0?(r.phoneNumbers=[],o.push("phoneNumbers")):t.phoneNumbers!==void 0&&t.phoneNumbers.length>0&&(r.phoneNumbers=t.phoneNumbers.map(s=>({value:s})),o.push("phoneNumbers")),(t.company!==void 0||t.jobTitle!==void 0)&&(r.organizations=wf({current:e,group:"organizations",overrides:{...t.company===void 0?{}:{name:t.company},...t.jobTitle===void 0?{}:{title:t.jobTitle}}}),o.push("organizations")),t.biography!==void 0&&(r.biographies=wf({current:e,group:"biographies",overrides:{value:t.biography},defaults:{contentType:"TEXT_PLAIN"}}),o.push("biographies")),{person:r,fields:o}}a(y4,"buildPerson");function xO({person:t,group:e}){return D.readArray({source:t,path:[e]}).map(n=>D.readString({source:n,path:["value"]})).filter(n=>n!==void 0)}a(xO,"valuesOf");function _4({person:t}){let e=D.readArray({source:t,path:["names"]})[0],r=D.readArray({source:t,path:["organizations"]})[0],o=D.readArray({source:t,path:["metadata","sources"]})[0];return{resourceName:D.readString({source:t,path:["resourceName"]}),etag:D.readString({source:t,path:["etag"]}),displayName:D.readString({source:e,path:["displayName"]}),givenName:D.readString({source:e,path:["givenName"]}),familyName:D.readString({source:e,path:["familyName"]}),emails:xO({person:t,group:"emailAddresses"}),phoneNumbers:xO({person:t,group:"phoneNumbers"}),company:D.readString({source:r,path:["name"]}),jobTitle:D.readString({source:r,path:["title"]}),updateTime:D.readString({source:o,path:["updateTime"]})}}a(_4,"summarizePerson");var Bt={buildPerson:y4,summarizePerson:_4};var TO=Oe({auth:xe,name:"create_contact",classification:"WRITE",displayName:"Create Contact",description:"Create a new contact in the connected Google account.",audience:"ai",aiMetadata:{description:'Creates one new person in the connected Google Contacts account from name, nickname, email, phone, organization and notes fields. Supply at least one of name, email or phone; email addresses and phone numbers are arrays of strings, so pass ["ada@example.com"] rather than a bare string. Use Batch Create Contacts for many at once, and Update Contact Fields to change someone who already exists. Not idempotent \u2014 every call creates a separate person, so check with Search Contacts first if duplicates matter.',idempotent:!1},outputSchema:rO,props:{firstName:W.ShortText({displayName:"First Name",required:!1}),middleName:W.ShortText({displayName:"Middle Name",required:!1}),lastName:W.ShortText({displayName:"Last Name",required:!1}),nickname:W.ShortText({displayName:"Nickname",required:!1}),emails:W.Array({displayName:"Email Addresses",description:'Array of email address strings, for example ["ada@example.com"]. A single address still has to be wrapped in an array.',required:!1}),phoneNumbers:W.Array({displayName:"Phone Numbers",description:'Array of phone number strings, for example ["+1 555 0100"]. A single number still has to be wrapped in an array.',required:!1}),company:W.ShortText({displayName:"Company",required:!1}),jobTitle:W.ShortText({displayName:"Job Title",required:!1}),biography:W.LongText({displayName:"Notes",description:"Free-text notes stored on the contact biography.",required:!1})},async run(t){let e=D.toStringList({value:t.propsValue.emails,label:"Email Addresses"}),r=D.toStringList({value:t.propsValue.phoneNumbers,label:"Phone Numbers"}),{person:o,fields:n}=Bt.buildPerson({input:{firstName:t.propsValue.firstName,middleName:t.propsValue.middleName,lastName:t.propsValue.lastName,nickname:t.propsValue.nickname,emails:e,phoneNumbers:r,company:t.propsValue.company,jobTitle:t.propsValue.jobTitle,biography:t.propsValue.biography}});if(n.length===0)throw new Error("Create Contact needs at least one of first name, last name, email address or phone number.");try{return await D.sendRequest({accessToken:t.auth.access_token,method:"POST",path:"/people:createContact",queryParams:{personFields:D.contactReadMask.join(",")},body:o})}catch(i){throw D.toApiError({error:i,operation:"Create Contact"})}}});var AO=Oe({auth:xe,name:"update_contact_fields",classification:"WRITE",displayName:"Update Contact Fields",description:"Update only the supplied fields on an existing contact.",audience:"ai",aiMetadata:{description:"Updates an existing Google Contacts person, changing only the fields you supply and leaving every other field untouched. It reads the contact first, so it resolves the required etag and field mask itself \u2014 you never pass them. Supply the opaque resourceName from List Contacts or Search Contacts. A non-empty email or phone list replaces the stored list for that field wholesale; first/middle/last name and company/job title are merged over the current values. Leaving a list empty does NOT clear it, because the platform cannot distinguish an untouched list from an emptied one: to remove every email address or every phone number, including the last one, set clearEmails or clearPhoneNumbers to true. Setting a clear flag while also supplying a non-empty list for the same field is rejected. Safe to retry: re-applying the same values converges, and a concurrent edit surfaces as a re-read-and-retry error.",idempotent:!0},outputSchema:oO,props:{resourceName:W.ShortText({displayName:"Resource Name",description:"Opaque contact resource name such as people/c12345. Resolve it with List Contacts or Search Contacts.",required:!0}),firstName:W.ShortText({displayName:"First Name",required:!1}),middleName:W.ShortText({displayName:"Middle Name",required:!1}),lastName:W.ShortText({displayName:"Last Name",required:!1}),nickname:W.ShortText({displayName:"Nickname",required:!1}),emails:W.Array({displayName:"Email Addresses",description:'Array of email address strings, for example ["ada@example.com"]. Replaces every email address stored on the contact. Leaving it empty keeps the stored addresses; it does not clear them, because an untouched list and an emptied one cannot be told apart. Use Clear Email Addresses to remove them.',required:!1}),clearEmails:W.Checkbox({displayName:"Clear Email Addresses",description:"Remove every email address from the contact, including the last one. This is the only way to clear them. Cannot be combined with a non-empty Email Addresses list.",required:!1,defaultValue:!1}),phoneNumbers:W.Array({displayName:"Phone Numbers",description:'Array of phone number strings, for example ["+1 555 0100"]. Replaces every phone number stored on the contact. Leaving it empty keeps the stored numbers; it does not clear them, because an untouched list and an emptied one cannot be told apart. Use Clear Phone Numbers to remove them.',required:!1}),clearPhoneNumbers:W.Checkbox({displayName:"Clear Phone Numbers",description:"Remove every phone number from the contact, including the last one. This is the only way to clear them. Cannot be combined with a non-empty Phone Numbers list.",required:!1,defaultValue:!1}),company:W.ShortText({displayName:"Company",required:!1}),jobTitle:W.ShortText({displayName:"Job Title",required:!1}),biography:W.LongText({displayName:"Notes",required:!1})},async run(t){let e=t.propsValue.resourceName.trim(),r=t.propsValue.clearEmails===!0,o=t.propsValue.clearPhoneNumbers===!0,n=D.toStringList({value:t.propsValue.emails,label:"Email Addresses"}),i=D.toStringList({value:t.propsValue.phoneNumbers,label:"Phone Numbers"});if(r&&n.length>0)throw new Error("Clear Email Addresses removes every email address, so it cannot be combined with an Email Addresses list. Either clear the list or turn the checkbox off.");if(o&&i.length>0)throw new Error("Clear Phone Numbers removes every phone number, so it cannot be combined with a Phone Numbers list. Either clear the list or turn the checkbox off.");let s={firstName:t.propsValue.firstName,middleName:t.propsValue.middleName,lastName:t.propsValue.lastName,nickname:t.propsValue.nickname,emails:n,phoneNumbers:i,clearEmails:r,clearPhoneNumbers:o,company:t.propsValue.company,jobTitle:t.propsValue.jobTitle,biography:t.propsValue.biography},{fields:u}=Bt.buildPerson({input:s});if(u.length===0)throw new Error("Update Contact Fields needs at least one field to change; every field prop was left empty.");let l;try{l=await D.sendRequest({accessToken:t.auth.access_token,method:"GET",path:`/${e}`,queryParams:{personFields:u.join(",")}})}catch(m){throw D.toApiError({error:m,operation:"Update Contact Fields (reading the contact)"})}let p=D.readString({source:l,path:["etag"]});if(p===void 0)throw new Error("Update Contact Fields could not read the current etag of the contact; re-read the contact and retry.");let{person:f,fields:y}=Bt.buildPerson({input:s,current:l});try{return await D.sendRequest({accessToken:t.auth.access_token,method:"PATCH",path:`/${e}:updateContact`,queryParams:{updatePersonFields:y.join(","),personFields:D.contactReadMask.join(",")},body:{etag:p,...f}})}catch(m){throw D.toApiError({error:m,operation:"Update Contact Fields"})}}});var wO=Oe({auth:xe,name:"search_contacts",classification:"SEARCH",displayName:"Search Contacts",description:"Search the connected account contacts by a plain-text query.",audience:"ai",aiMetadata:{description:'Searches the connected Google Contacts account for people whose fields prefix-match a plain-text query and returns each match with its resourceName and etag. Use it to resolve a name, email or phone fragment into a resourceName before an update or delete; use List Contacts to enumerate everything instead. Matching is prefix-only ("foo n" matches "foo name", "oo n" does not) and capped at 30 results. Read-only and safe to retry.',idempotent:!0},outputSchema:aO,props:{query:W.ShortText({displayName:"Query",description:"Plain-text query prefix-matched against contact fields such as name, email and phone number.",required:!0}),pageSize:W.Number({displayName:"Page Size",description:"Number of results to return, maximum 30. Defaults to 30.",required:!1})},async run(t){let e=D.contactReadMask.join(","),r=Math.min(30,Math.max(1,t.propsValue.pageSize??30));try{await D.sendRequest({accessToken:t.auth.access_token,method:"GET",path:"/people:searchContacts",queryParams:{query:"",readMask:e,pageSize:"1"}})}catch(o){throw D.toApiError({error:o,operation:"Search Contacts warm-up"})}try{let o=await D.sendRequest({accessToken:t.auth.access_token,method:"GET",path:"/people:searchContacts",queryParams:{query:t.propsValue.query,readMask:e,pageSize:String(r)}}),n=D.readArray({source:o,path:["results"]}).map(i=>Bt.summarizePerson({person:D.readValue({source:i,path:["person"]})}));return{results:n,count:n.length}}catch(o){throw D.toApiError({error:o,operation:"Search Contacts"})}}});var IO=Oe({auth:xe,name:"get_contact",classification:"READ",displayName:"Get Contact",description:"Read a single contact by its resource name.",audience:"ai",aiMetadata:{description:"Reads one Google Contacts person by its opaque resourceName (people/{id}) and returns names, emails, phone numbers, organizations, memberships and the current etag. Obtain the resourceName from List Contacts or Search Contacts; do not construct or parse it. Use Batch Get Contacts for more than one contact. Read-only and safe to retry.",idempotent:!0},outputSchema:nO,props:{resourceName:W.ShortText({displayName:"Resource Name",description:"Opaque contact resource name such as people/c12345. Resolve it with List Contacts or Search Contacts.",required:!0})},async run(t){let e=t.propsValue.resourceName.trim();try{return await D.sendRequest({accessToken:t.auth.access_token,method:"GET",path:`/${e}`,queryParams:{personFields:D.contactReadMask.join(",")}})}catch(r){throw D.toApiError({error:r,operation:"Get Contact"})}}});var v4=10,CO=Oe({auth:xe,name:"list_contacts",classification:"SEARCH",displayName:"List Contacts",description:"List the contacts of the connected Google account.",audience:"ai",aiMetadata:{description:"Lists the connected account contacts with the resourceName and etag every write action needs, plus display name, emails, phone numbers and organization. Use this to resolve a person name to a resourceName before Update Contact Fields, Delete Contact or group membership changes; use Search Contacts when you already have a query string. Read-only and safe to retry.",idempotent:!0},outputSchema:iO,props:{maxResults:W.Number({displayName:"Max Results",description:"Maximum number of contacts to return. Defaults to 200.",required:!1})},async run(t){let e=t.propsValue.maxResults??200,r=[],o;try{for(let i=0;i<v4;i++){let s=Math.min(1e3,Math.max(1,e-r.length)),u=await D.sendRequest({accessToken:t.auth.access_token,method:"GET",path:"/people/me/connections",queryParams:{personFields:D.contactReadMask.join(","),pageSize:String(s),pageToken:o}}),l=D.readArray({source:u,path:["connections"]});for(let p of l)r.push(Bt.summarizePerson({person:p}));if(o=D.readString({source:u,path:["nextPageToken"]}),o===void 0||r.length>=e)break}}catch(i){throw D.toApiError({error:i,operation:"List Contacts"})}let n=r.slice(0,e);return{contacts:n,count:n.length,hasMore:o!==void 0}}});var RO=Oe({auth:xe,name:"delete_contact",classification:"DESTRUCTIVE",displayName:"Delete Contact",description:"Permanently delete a contact by its resource name.",audience:"ai",aiMetadata:{description:"Permanently deletes one Google Contacts person by its opaque resourceName (people/{id}). Irreversible \u2014 the People API has no trash, so confirm the contact with Get Contact or List Contacts first; use Batch Delete Contacts for many at once. Not idempotent: a repeat call fails because the contact is already gone.",idempotent:!1},outputSchema:sO,props:{resourceName:W.ShortText({displayName:"Resource Name",description:"Opaque contact resource name such as people/c12345. Resolve it with List Contacts or Search Contacts. Deletion cannot be undone.",required:!0})},async run(t){let e=t.propsValue.resourceName.trim();try{await D.sendRequest({accessToken:t.auth.access_token,method:"DELETE",path:`/${e}:deleteContact`})}catch(r){throw D.toApiError({error:r,operation:"Delete Contact"})}return{deleted:!0,resourceName:e}}});var OO=Oe({auth:xe,name:"batch_get_contacts",classification:"READ",displayName:"Batch Get Contacts",description:"Read up to 200 contacts in one call by their resource names.",audience:"ai",aiMetadata:{description:"Reads up to 200 Google Contacts people in one call from a list of opaque resourceNames and returns each full contact with its current etag, split into succeeded and failed collections. Use it instead of repeated Get Contact calls, and as the input source for Batch Update Contacts. A whole-call success can still contain per-contact failures, so always read the failed collection. Read-only and safe to retry.",idempotent:!0},outputSchema:uO,props:{resourceNames:W.Array({displayName:"Resource Names",description:"Up to 200 opaque contact resource names such as people/c12345, resolved with List Contacts or Search Contacts.",required:!0})},async run(t){let e=D.toStringList({value:t.propsValue.resourceNames,label:"Resource Names"});D.assertBatchSize({values:e,max:200,label:"Resource Names"});let r;try{r=await D.sendRequest({accessToken:t.auth.access_token,method:"GET",path:"/people:batchGet",queryParams:{personFields:D.contactReadMask.join(",")},repeatedQueryParams:{resourceNames:e}})}catch(s){throw D.toApiError({error:s,operation:"Batch Get Contacts"})}let o=D.readArray({source:r,path:["responses"]}).map((s,u)=>({resourceName:D.readString({source:s,path:["requestedResourceName"]})??e[u]??"",response:s})),{succeeded:n,failed:i}=D.splitItemResponses({items:o,payloadKey:"person"});return{succeeded:n.map(s=>({resourceName:s.resourceName,contact:Bt.summarizePerson({person:s.payload}),person:s.payload})),failed:i,succeededCount:n.length,failedCount:i.length}}});function hi({source:t,key:e}){let r=D.readString({source:t,path:[e]});if(!(r===void 0||r.trim().length===0))return r.trim()}a(hi,"optionalString");var kO=Oe({auth:xe,name:"batch_create_contacts",classification:"WRITE",displayName:"Batch Create Contacts",description:"Create up to 200 contacts in a single call.",audience:"ai",aiMetadata:{description:"Creates up to 200 new Google Contacts people in one call and returns the created contacts split into succeeded and failed collections. Use it instead of repeated Create Contact calls when importing a list; a whole-call success can still contain per-contact failures, so always read the failed collection. Not idempotent \u2014 every call creates new people, so a retry after a partial failure duplicates the ones that already succeeded.",idempotent:!1},outputSchema:lO,props:{contacts:W.Array({displayName:"Contacts",description:"Up to 200 contacts to create. Each needs at least a name, an email or a phone number.",required:!0,properties:{firstName:W.ShortText({displayName:"First Name",required:!1}),middleName:W.ShortText({displayName:"Middle Name",required:!1}),lastName:W.ShortText({displayName:"Last Name",required:!1}),email:W.ShortText({displayName:"Email Address",required:!1}),phoneNumber:W.ShortText({displayName:"Phone Number",required:!1}),company:W.ShortText({displayName:"Company",required:!1}),jobTitle:W.ShortText({displayName:"Job Title",required:!1})}})},async run(t){let e=t.propsValue.contacts;if(!Array.isArray(e)||e.length===0)throw new Error("Contacts must contain at least one entry.");if(e.length>200)throw new Error(`Contacts accepts at most 200 entries, received ${e.length}.`);let r=e.map((u,l)=>{let p=hi({source:u,key:"email"}),f=hi({source:u,key:"phoneNumber"}),{person:y,fields:m}=Bt.buildPerson({input:{firstName:hi({source:u,key:"firstName"}),middleName:hi({source:u,key:"middleName"}),lastName:hi({source:u,key:"lastName"}),emails:p===void 0?[]:[p],phoneNumbers:f===void 0?[]:[f],company:hi({source:u,key:"company"}),jobTitle:hi({source:u,key:"jobTitle"})}});if(m.length===0)throw new Error(`Contact ${l+1} needs at least one of first name, last name, email address or phone number.`);return{contactPerson:y}}),o;try{o=await D.sendRequest({accessToken:t.auth.access_token,method:"POST",path:"/people:batchCreateContacts",body:{contacts:r,readMask:D.contactReadMask.join(",")}})}catch(u){throw D.toApiError({error:u,operation:"Batch Create Contacts"})}let n=D.readArray({source:o,path:["createdPeople"]}),i=n.map((u,l)=>({item:u,index:l})).filter(u=>!D.isFailedItem({response:u.item})).map(u=>{let l=D.readValue({source:u.item,path:["person"]});return{requestIndex:u.index+1,resourceName:D.readString({source:l,path:["resourceName"]}),contact:Bt.summarizePerson({person:l})}}),s=n.map((u,l)=>({item:u,index:l})).filter(u=>D.isFailedItem({response:u.item})).map(u=>({requestIndex:u.index+1,status:D.describeStatus({status:D.readValue({source:u.item,path:["status"]})})}));return{succeeded:i,failed:s,succeededCount:i.length,failedCount:s.length,requestedCount:r.length}}});function b4({entry:t,index:e}){let r=D.readRecord({source:t,path:[]});if(r===void 0)throw new Error(`Contact ${e+1} must be a Person object.`);let o=D.readString({source:r,path:["resourceName"]}),n=D.readString({source:r,path:["etag"]});if(o===void 0||n===void 0)throw new Error(`Contact ${e+1} must carry both resourceName and etag exactly as returned by Batch Get Contacts.`);let i=Object.keys(r).filter(u=>D.updatablePersonFields.includes(u)),s=Object.fromEntries(Object.entries(r).filter(([u])=>u==="etag"||u==="resourceName"||D.updatablePersonFields.includes(u)));return{resourceName:o,person:s,fields:i}}a(b4,"toPerson");function P4({parsed:t}){let e=new Map;for(let r of t){let o=[...r.fields].sort().join(","),n=e.get(o);n===void 0?e.set(o,{[r.resourceName]:r.person}):n[r.resourceName]=r.person}return[...e.entries()].map(([r,o])=>({updateMask:r,contacts:o}))}a(P4,"groupBySignature");var NO=Oe({auth:xe,name:"batch_update_contacts",classification:"WRITE",displayName:"Batch Update Contacts",description:"Update up to 200 contacts in a single call from full Person objects.",audience:"ai",aiMetadata:{description:"Updates up to 200 Google Contacts people in one call. Feed it the full Person objects returned by Batch Get Contacts, each still carrying its own resourceName and etag, with the values you want changed edited in place. The people are grouped by which field groups they carry and one request is issued per group, so a person carrying only a phone number and a person carrying only an email can be updated together; each request uses the field mask of its own group. Within a group the mask is applied to every person in it, so never hand-build partial Person objects here \u2014 a group a person no longer carries is erased on that person. Prefer Update Contact Fields for a single contact. Because the work is split across requests, this action can partially apply: one group can be written while another is rejected outright. It therefore does not throw when a request fails \u2014 it records every contact in that request under failed and carries on. Never treat a returned result as wholesale success and never assume an absent error means everything applied; always read failed and failedCount, which also cover per-contact rejections such as stale etags. Every submitted person must carry at least one updatable field group. Before retrying, re-read the people so the already-updated ones carry fresh etags.",idempotent:!0},outputSchema:dO,props:{contacts:W.Json({displayName:"Contacts",description:"JSON array of up to 200 full Person objects taken from Batch Get Contacts, each keeping its resourceName and etag, with the fields to change edited in place.",required:!0})},async run(t){let e=t.propsValue.contacts;if(!Array.isArray(e)||e.length===0)throw new Error("Contacts must be a JSON array holding at least one Person object.");if(e.length>200)throw new Error(`Contacts accepts at most 200 entries, received ${e.length}.`);let r=e.map((u,l)=>b4({entry:u,index:l})),o=r.filter(u=>u.fields.length===0).map(u=>u.resourceName);if(o.length>0)throw new Error(`Every submitted person must carry at least one updatable field group, because a person with no group has nothing to update. These people carry none: ${o.join(", ")}.`);let n=P4({parsed:r}),i=[],s=[];for(let u of n){let l;try{l=await D.sendRequest({accessToken:t.auth.access_token,method:"POST",path:"/people:batchUpdateContacts",body:{contacts:u.contacts,updateMask:u.updateMask,readMask:D.contactReadMask.join(",")}})}catch(m){let h=D.toApiError({error:m,operation:`Batch Update Contacts (field mask ${u.updateMask})`}).message;for(let _ of Object.keys(u.contacts))s.push({resourceName:_,status:h,updateMask:u.updateMask});continue}let p=D.readRecord({source:l,path:["updateResult"]}),f=Object.entries(p??{}).map(([m,h])=>({resourceName:m,response:h})),y=D.splitItemResponses({items:f,payloadKey:"person"});for(let m of y.succeeded)i.push({resourceName:m.resourceName,contact:Bt.summarizePerson({person:m.payload}),person:m.payload});for(let m of y.failed)s.push({resourceName:m.resourceName,status:m.status,updateMask:u.updateMask})}return{succeeded:i,failed:s,succeededCount:i.length,failedCount:s.length,updateMasks:n.map(u=>u.updateMask)}}});var $O=Oe({auth:xe,name:"batch_delete_contacts",classification:"DESTRUCTIVE",displayName:"Batch Delete Contacts",description:"Permanently delete up to 500 contacts in a single call.",audience:"ai",aiMetadata:{description:"Permanently deletes up to 500 Google Contacts people in one call from a list of opaque resourceNames. Irreversible and unrecoverable \u2014 the People API has no trash and there is no per-contact confirmation in the response, so verify every resourceName with Batch Get Contacts or List Contacts before calling and prefer Delete Contact when removing a single person. Not idempotent: a repeat call fails on contacts that are already gone.",idempotent:!1},outputSchema:cO,props:{resourceNames:W.Array({displayName:"Resource Names",description:"Up to 500 opaque contact resource names such as people/c12345. Every listed contact is deleted permanently and cannot be restored.",required:!0})},async run(t){let e=D.toStringList({value:t.propsValue.resourceNames,label:"Resource Names"});D.assertBatchSize({values:e,max:500,label:"Resource Names"});try{await D.sendRequest({accessToken:t.auth.access_token,method:"POST",path:"/people:batchDeleteContacts",body:{resourceNames:e}})}catch(r){throw D.toApiError({error:r,operation:"Batch Delete Contacts"})}return{deleted:!0,resourceNames:e,count:e.length}}});var zO="base64,",DO=Oe({auth:xe,name:"update_contact_photo",classification:"WRITE",displayName:"Update Contact Photo",description:"Set the photo of an existing contact from base64 image bytes.",audience:"ai",aiMetadata:{description:"Replaces the photo of one Google Contacts person with the supplied base64-encoded JPEG, PNG or WebP image. Supply the opaque resourceName from List Contacts or Search Contacts; use Delete Contact Photo to remove a photo instead. Safe to retry \u2014 re-sending the same bytes converges on the same photo.",idempotent:!0},outputSchema:pO,props:{resourceName:W.ShortText({displayName:"Resource Name",description:"Opaque contact resource name such as people/c12345. Resolve it with List Contacts or Search Contacts.",required:!0}),photoBytes:W.LongText({displayName:"Photo Bytes",description:"Base64-encoded JPEG, PNG or WebP image. A data URL prefix is accepted and stripped.",required:!0})},async run(t){let e=t.propsValue.resourceName.trim(),r=t.propsValue.photoBytes.trim(),o=r.indexOf(zO),n=o===-1?r:r.slice(o+zO.length);if(n.length===0)throw new Error("Update Contact Photo needs base64-encoded image bytes.");let i;try{i=await D.sendRequest({accessToken:t.auth.access_token,method:"PATCH",path:`/${e}:updateContactPhoto`,body:{photoBytes:n,personFields:D.contactReadMask.join(",")}})}catch(u){throw D.toApiError({error:u,operation:"Update Contact Photo"})}let s=D.readRecord({source:i,path:["person"]});if(s===void 0)throw new Error("Update Contact Photo could not read the updated contact back from Google Contacts; re-read the contact with Get Contact to confirm the photo was set.");return s}});var UO=Oe({auth:xe,name:"delete_contact_photo",classification:"WRITE",displayName:"Delete Contact Photo",description:"Remove the photo of an existing contact.",audience:"ai",aiMetadata:{description:"Removes the photo from one Google Contacts person, leaving the rest of the contact untouched. Supply the opaque resourceName from List Contacts or Search Contacts; use Update Contact Photo to set a new image instead. The removed image is not recoverable through this API.",idempotent:!1},outputSchema:fO,props:{resourceName:W.ShortText({displayName:"Resource Name",description:"Opaque contact resource name such as people/c12345. Resolve it with List Contacts or Search Contacts.",required:!0})},async run(t){let e=t.propsValue.resourceName.trim(),r;try{r=await D.sendRequest({accessToken:t.auth.access_token,method:"DELETE",path:`/${e}:deleteContactPhoto`,queryParams:{personFields:D.contactReadMask.join(",")}})}catch(n){throw D.toApiError({error:n,operation:"Delete Contact Photo"})}let o=D.readRecord({source:r,path:["person"]});if(o===void 0)throw new Error("Delete Contact Photo could not read the updated contact back from Google Contacts; re-read the contact with Get Contact to confirm the photo was removed.");return o}});function E4({group:t}){let e=D.readValue({source:t,path:["memberCount"]});return{resourceName:D.readString({source:t,path:["resourceName"]}),etag:D.readString({source:t,path:["etag"]}),name:D.readString({source:t,path:["name"]}),formattedName:D.readString({source:t,path:["formattedName"]}),groupType:D.readString({source:t,path:["groupType"]}),memberCount:typeof e=="number"?e:0,memberResourceNames:D.readArray({source:t,path:["memberResourceNames"]}).filter(r=>typeof r=="string")}}a(E4,"summarizeGroup");function S4({group:t,name:e}){let r=e.trim().toLowerCase(),o=D.readString({source:t,path:["name"]}),n=D.readString({source:t,path:["formattedName"]});return o?.trim().toLowerCase()===r||n?.trim().toLowerCase()===r}a(S4,"matchesName");var mr={summarizeGroup:E4,matchesName:S4};var x4=10,MO=Oe({auth:xe,name:"list_contact_groups",classification:"SEARCH",displayName:"List Contact Groups",description:"List every contact group of the connected Google account.",audience:"ai",aiMetadata:{description:"Lists the contact groups (labels) of the connected Google account with the opaque resourceName, name, type and member count of each. Use it to resolve a group name to its resourceName before Get Contact Group, Update Contact Group, Delete Contact Group or Add Or Remove Contact Group Members. Member resource names are not included here \u2014 read a single group with Get Contact Group for those. Read-only and safe to retry.",idempotent:!0},outputSchema:mO,props:{},async run(t){let e=[],r;try{for(let o=0;o<x4;o++){let n=await D.sendRequest({accessToken:t.auth.access_token,method:"GET",path:"/contactGroups",queryParams:{groupFields:D.contactGroupFields.join(","),pageSize:"1000",pageToken:r}});for(let i of D.readArray({source:n,path:["contactGroups"]}))e.push(mr.summarizeGroup({group:i}));if(r=D.readString({source:n,path:["nextPageToken"]}),r===void 0)break}}catch(o){throw D.toApiError({error:o,operation:"List Contact Groups"})}return{contactGroups:e,count:e.length,hasMore:r!==void 0}}});var LO=Oe({auth:xe,name:"get_contact_group",classification:"READ",displayName:"Get Contact Group",description:"Read one contact group, optionally with its member resource names.",audience:"ai",aiMetadata:{description:"Reads one Google Contacts group by its opaque resourceName (contactGroups/{id}) and returns its name, type, member count and, when Max Members is above zero, the resource names of its members. Resolve the resourceName with List Contact Groups; use Batch Get Contact Groups for several groups. Read-only and safe to retry.",idempotent:!0},outputSchema:hO,props:{resourceName:W.ShortText({displayName:"Resource Name",description:"Opaque contact group resource name such as contactGroups/abc123, or a system group like contactGroups/myContacts. Resolve it with List Contact Groups.",required:!0}),maxMembers:W.Number({displayName:"Max Members",description:"How many member resource names to return. Defaults to 0, which returns none.",required:!1})},async run(t){let e=t.propsValue.resourceName.trim(),r=Math.max(0,t.propsValue.maxMembers??0);try{let o=await D.sendRequest({accessToken:t.auth.access_token,method:"GET",path:`/${e}`,queryParams:{groupFields:D.contactGroupFields.join(","),maxMembers:String(r)}});return mr.summarizeGroup({group:o})}catch(o){throw D.toApiError({error:o,operation:"Get Contact Group"})}}});var jO=Oe({auth:xe,name:"batch_get_contact_groups",classification:"READ",displayName:"Batch Get Contact Groups",description:"Read up to 200 contact groups in one call by their resource names.",audience:"ai",aiMetadata:{description:"Reads up to 200 Google Contacts groups in one call from a list of opaque resourceNames, returning succeeded and failed collections. Use it instead of repeated Get Contact Group calls; a whole-call success can still contain per-group failures, so always read the failed collection. Resolve the resource names with List Contact Groups. Read-only and safe to retry.",idempotent:!0},outputSchema:yO,props:{resourceNames:W.Array({displayName:"Resource Names",description:"Up to 200 opaque contact group resource names such as contactGroups/abc123, resolved with List Contact Groups.",required:!0}),maxMembers:W.Number({displayName:"Max Members",description:"How many member resource names to return per group. Defaults to 0, which returns none.",required:!1})},async run(t){let e=D.toStringList({value:t.propsValue.resourceNames,label:"Resource Names"});D.assertBatchSize({values:e,max:200,label:"Resource Names"});let r=Math.max(0,t.propsValue.maxMembers??0),o;try{o=await D.sendRequest({accessToken:t.auth.access_token,method:"GET",path:"/contactGroups:batchGet",queryParams:{groupFields:D.contactGroupFields.join(","),maxMembers:String(r)},repeatedQueryParams:{resourceNames:e}})}catch(u){throw D.toApiError({error:u,operation:"Batch Get Contact Groups"})}let n=D.readArray({source:o,path:["responses"]}).map((u,l)=>({resourceName:D.readString({source:u,path:["requestedResourceName"]})??e[l]??"",response:u})),{succeeded:i,failed:s}=D.splitItemResponses({items:n,payloadKey:"contactGroup"});return{succeeded:i.map(u=>mr.summarizeGroup({group:u.payload})),failed:s,succeededCount:i.length,failedCount:s.length}}});var T4=10;async function FO({accessToken:t,name:e}){let r;for(let o=0;o<T4;o++){let n=await D.sendRequest({accessToken:t,method:"GET",path:"/contactGroups",queryParams:{groupFields:D.contactGroupFields.join(","),pageSize:"1000",pageToken:r}}),i=D.readArray({source:n,path:["contactGroups"]}).find(s=>mr.matchesName({group:s,name:e}));if(i!==void 0)return i;if(r=D.readString({source:n,path:["nextPageToken"]}),r===void 0)return}}a(FO,"findGroupByName");var BO=Oe({auth:xe,name:"create_contact_group",classification:"WRITE",displayName:"Create Contact Group",description:"Create a contact group, or return the existing one with that name.",audience:"ai",aiMetadata:{description:"Creates a contact group (label) with the given name in the connected Google account, or returns the existing group when one already carries that name, reporting which happened through the created flag. Use it before Add Or Remove Contact Group Members when the target group may not exist yet. Safe to retry: the lookup runs first and a duplicate-name rejection is resolved by returning the existing group.",idempotent:!0},outputSchema:_O,props:{name:W.ShortText({displayName:"Group Name",description:"Name of the contact group to find or create.",required:!0})},async run(t){let e=t.propsValue.name.trim();if(e.length===0)throw new Error("Group Name must not be empty.");let r=t.auth.access_token;try{let o=await FO({accessToken:r,name:e});if(o!==void 0)return{created:!1,contactGroup:mr.summarizeGroup({group:o})}}catch(o){throw D.toApiError({error:o,operation:"Create Contact Group (looking up existing groups)"})}try{let o=await D.sendRequest({accessToken:r,method:"POST",path:"/contactGroups",body:{contactGroup:{name:e},readGroupFields:D.contactGroupFields.join(",")}});return{created:!0,contactGroup:mr.summarizeGroup({group:o})}}catch(o){if(!D.isConflict({error:o}))throw D.toApiError({error:o,operation:"Create Contact Group"});let n=await FO({accessToken:r,name:e});if(n===void 0)throw D.toApiError({error:o,operation:"Create Contact Group"});return{created:!1,contactGroup:mr.summarizeGroup({group:n})}}}});var qO=Oe({auth:xe,name:"update_contact_group",classification:"WRITE",displayName:"Update Contact Group",description:"Rename an existing user-created contact group.",audience:"ai",aiMetadata:{description:"Renames one user-created Google Contacts group identified by its opaque resourceName (contactGroups/{id}). It reads the group first to resolve the required etag and sends an explicit name-only field mask, so members and other group data are untouched. Resolve the resourceName with List Contact Groups; Google-managed system groups cannot be renamed. Safe to retry: re-applying the same name converges, and a concurrent edit surfaces as a re-read-and-retry error.",idempotent:!0},outputSchema:gO,props:{resourceName:W.ShortText({displayName:"Resource Name",description:"Opaque contact group resource name such as contactGroups/abc123. Resolve it with List Contact Groups.",required:!0}),name:W.ShortText({displayName:"New Group Name",required:!0})},async run(t){let e=t.propsValue.resourceName.trim(),r=t.propsValue.name.trim();if(r.length===0)throw new Error("New Group Name must not be empty.");let o=D.contactGroupFields.join(","),n;try{n=await D.sendRequest({accessToken:t.auth.access_token,method:"GET",path:`/${e}`,queryParams:{groupFields:o,maxMembers:"0"}})}catch(s){throw D.toApiError({error:s,operation:"Update Contact Group (reading the group)"})}let i=D.readString({source:n,path:["etag"]});if(i===void 0)throw new Error("Update Contact Group could not read the current etag of the group; re-read the group and retry.");try{let s=await D.sendRequest({accessToken:t.auth.access_token,method:"PUT",path:`/${e}`,body:{contactGroup:{etag:i,name:r},updateGroupFields:"name",readGroupFields:o}});return mr.summarizeGroup({group:s})}catch(s){throw D.toApiError({error:s,operation:"Update Contact Group"})}}});var GO=Oe({auth:xe,name:"delete_contact_group",classification:"DESTRUCTIVE",displayName:"Delete Contact Group",description:"Delete a user-created contact group.",audience:"ai",aiMetadata:{description:"Deletes one user-created Google Contacts group by its opaque resourceName (contactGroups/{id}). By default only the group is removed and its members stay in the address book; turning on Delete Contacts also permanently deletes every contact in the group, which cannot be undone. Resolve the resourceName with List Contact Groups; Google-managed system groups cannot be deleted. Not idempotent: a repeat call fails because the group is already gone.",idempotent:!1},outputSchema:vO,props:{resourceName:W.ShortText({displayName:"Resource Name",description:"Opaque contact group resource name such as contactGroups/abc123. Resolve it with List Contact Groups.",required:!0}),deleteContacts:W.Checkbox({displayName:"Also Delete Contacts",description:"When enabled, every contact in the group is permanently deleted as well. Leave off to remove only the group.",required:!1,defaultValue:!1})},async run(t){let e=t.propsValue.resourceName.trim(),r=t.propsValue.deleteContacts===!0;try{await D.sendRequest({accessToken:t.auth.access_token,method:"DELETE",path:`/${e}`,queryParams:{deleteContacts:String(r)}})}catch(o){throw D.toApiError({error:o,operation:"Delete Contact Group"})}return{deleted:!0,resourceName:e,deletedContacts:r}}});var VO=Oe({auth:xe,name:"modify_contact_group_members",classification:"WRITE",displayName:"Add Or Remove Contact Group Members",description:"Add contacts to a contact group or remove them from it.",audience:"ai",aiMetadata:{description:"Adds contacts to a Google Contacts group and removes contacts from it in one call, taking opaque people/{id} resource names resolved with List Contacts or Search Contacts and a contactGroups/{id} group resolved with List Contact Groups. Additions are accepted by user-created groups and by the system groups contactGroups/myContacts and contactGroups/starred only; other system groups accept removals only. Combined additions and removals are capped at 1000, and the response reports contacts that were not found. Safe to retry \u2014 re-applying the same membership changes converges.",idempotent:!0},outputSchema:bO,props:{resourceName:W.ShortText({displayName:"Contact Group Resource Name",description:"Opaque contact group resource name such as contactGroups/abc123, contactGroups/myContacts or contactGroups/starred. Resolve it with List Contact Groups.",required:!0}),resourceNamesToAdd:W.Array({displayName:"Contacts To Add",description:"Opaque contact resource names such as people/c12345 to add to the group.",required:!1}),resourceNamesToRemove:W.Array({displayName:"Contacts To Remove",description:"Opaque contact resource names such as people/c12345 to remove from the group.",required:!1})},async run(t){let e=t.propsValue.resourceName.trim(),r=D.toStringList({value:t.propsValue.resourceNamesToAdd,label:"Contacts To Add"}),o=D.toStringList({value:t.propsValue.resourceNamesToRemove,label:"Contacts To Remove"}),n=r.length+o.length;if(n===0)throw new Error("Add Or Remove Contact Group Members needs at least one contact to add or remove.");if(n>1e3)throw new Error(`Contacts to add and remove are capped at 1000 combined, received ${n}.`);if(r.length>0&&D.systemGroupsRejectingAdds.includes(e))throw new Error(`The system group ${e} does not accept added members; only contactGroups/myContacts, contactGroups/starred and user-created groups do.`);let i;try{i=await D.sendRequest({accessToken:t.auth.access_token,method:"POST",path:`/${e}/members:modify`,body:{resourceNamesToAdd:r,resourceNamesToRemove:o}})}catch(l){throw D.toApiError({error:l,operation:"Add Or Remove Contact Group Members"})}let s=D.readArray({source:i,path:["notFoundResourceNames"]}).filter(l=>typeof l=="string"),u=D.readArray({source:i,path:["canNotRemoveLastContactGroupResourceNames"]}).filter(l=>typeof l=="string");return{resourceName:e,added:r.filter(l=>!s.includes(l)),removed:o.filter(l=>!s.includes(l)&&!u.includes(l)),notFoundResourceNames:s,canNotRemoveLastContactGroupResourceNames:u}}});var mD=Tt(pD()),hD=Tt(tl()),gD=Tt(fD());var ch={strategy:0,items:a(async({store:t,auth:e})=>{let r=new hD.OAuth2Client;r.setCredentials(e);let o=(0,mD.people)({version:"v1",auth:r}),n,i=[];do{let s=await o.people.connections.list({resourceName:"people/me",pageToken:n,pageSize:100,sortOrder:"LAST_MODIFIED_DESCENDING",personFields:["addresses","ageRanges","biographies","birthdays","calendarUrls","clientData","coverPhotos","emailAddresses","events","externalIds","genders","imClients","interests","locales","locations","memberships","metadata","miscKeywords","names","nicknames","occupations","organizations","phoneNumbers","photos","relations","sipAddresses","skills","urls","userDefined"].join()});for(let u of s.data.connections||[])u.metadata?.deleted!==!0&&i.push({data:u,epochMilliSeconds:(0,gD.default)(u.metadata?.sources?.[0].updateTime).valueOf()});n=s.data.nextPageToken}while(n);return i},"items")},yD=CI({auth:xe,name:"new_or_updated_contact",classification:"READ",displayName:"New Or Updated Contact",description:"Triggers when there is a new or updated contact",aiMetadata:{description:"Fires when a contact in the authenticated Google Contacts account is newly created or has been modified since the last poll. Each event represents one person record with its current fields; deleted contacts are excluded."},props:{},outputSchema:tO,sampleData:{resourceName:"people/c4278485694217203807",etag:"%EiMBAgMFBgcICQoLDA0ODxATFBUWGSEiIyQlJicuNDU3PT4/QBoEAQIFByIMZFVwNlJPNEVKUzg9",metadata:{sources:[{type:"CONTACT",id:"3b603c120c68305f",etag:"#dUp6RO4EJS8=",updateTime:"2023-01-30T14:35:18.142565Z"}],objectType:"PERSON"},names:[{metadata:{primary:!0,source:{type:"CONTACT",id:"3b603c120c68305f"}},displayName:"Shahed Mashni",familyName:"Mashni",givenName:"Shahed",displayNameLastFirst:"Mashni, Shahed",unstructuredName:"Shahed Mashni"}],photos:[{metadata:{primary:!0,source:{type:"CONTACT",id:"3b603c120c68305f"}},url:"https://lh3.googleusercontent.com/cm/AAkddurmZojs4vCcxrpkfSxH9tnqcH-hI82ESDnwv6eq86nZeLStcjYEIe_TCx8r8g5Y=s100",default:!0}],memberships:[{metadata:{source:{type:"CONTACT",id:"3b603c120c68305f"}},contactGroupMembership:{contactGroupId:"myContacts",contactGroupResourceName:"contactGroups/myContacts"}}]},type:"POLLING",async onEnable(t){return await bu.onEnable(ch,{store:t.store,auth:t.auth,propsValue:{}})},async onDisable(t){return await bu.onEnable(ch,{store:t.store,auth:t.auth,propsValue:{}})},async run(t){return await bu.poll(ch,{store:t.store,auth:t.auth,propsValue:{},files:t.files})},test:a(async t=>await bu.test(ch,{store:t.store,auth:t.auth,propsValue:{},files:t.files}),"test")});var h3=kI({minimumSupportedRelease:"0.87.0",logoUrl:"https://cdn.activepieces.com/pieces/google-contacts.png",categories:["SALES_AND_CRM"],actions:[PO,EO,SO,TO,AO,wO,IO,CO,RO,OO,kO,NO,$O,DO,UO,MO,LO,jO,BO,qO,GO,VO,WR({baseUrl:a(()=>Ao.baseUrl,"baseUrl"),auth:xe,authMapping:a(async t=>({Authorization:`Bearer ${t.access_token}`}),"authMapping")})],displayName:"Google Contacts",description:"Stay connected and organized",authors:["Abdallah-Alwarawreh","Salem-Alaa","kishanprmr","MoShizzle","khaledmashaly","abuaboud","ikus060"],triggers:[yD],auth:xe});0&&(module.exports={googleContacts});
107
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of t.seen.entries()){let u=s[1];if(e===s[0]){i(s);continue}if(t.external){let p=t.external.registry.get(s[0])?.id;if(e!==s[0]&&p){i(s);continue}}if(t.metadataRegistry.get(s[0])?.id){i(s);continue}if(u.cycle){i(s);continue}if(u.count>1&&t.reused==="ref"){i(s);continue}}}a(ho,"extractDefs");function go(t,e){let r=t.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=a(s=>{let u=t.seen.get(s);if(u.ref===null)return;let l=u.def??u.schema,p={...l},f=u.ref;if(u.ref=null,f){o(f);let m=t.seen.get(f),h=m.schema;if(h.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(h)):Object.assign(l,h),Object.assign(l,p),s._zod.parent===f)for(let P in l)P==="$ref"||P==="allOf"||P in p||delete l[P];if(h.$ref&&m.def)for(let P in l)P==="$ref"||P==="allOf"||P in m.def&&JSON.stringify(l[P])===JSON.stringify(m.def[P])&&delete l[P]}let y=s._zod.parent;if(y&&y!==f){o(y);let m=t.seen.get(y);if(m?.schema.$ref&&(l.$ref=m.schema.$ref,m.def))for(let h in l)h==="$ref"||h==="allOf"||h in m.def&&JSON.stringify(l[h])===JSON.stringify(m.def[h])&&delete l[h]}t.override({zodSchema:s,jsonSchema:l,path:u.path??[]})},"flattenRef");for(let s of[...t.seen.entries()].reverse())o(s[0]);let n={};if(t.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){let s=t.external.registry.get(e)?.id;if(!s)throw new Error("Schema is missing an `id` property");n.$id=t.external.uri(s)}Object.assign(n,r.def??r.schema);let i=t.external?.defs??{};for(let s of t.seen.entries()){let u=s[1];u.def&&u.defId&&(i[u.defId]=u.def)}t.external||Object.keys(i).length>0&&(t.target==="draft-2020-12"?n.$defs=i:n.definitions=i);try{let s=JSON.parse(JSON.stringify(n));return Object.defineProperty(s,"~standard",{value:{...e["~standard"],jsonSchema:{input:la(e,"input",t.processors),output:la(e,"output",t.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}a(go,"finalize");function Ht(t,e){let r=e??{seen:new Set};if(r.seen.has(t))return!1;r.seen.add(t);let o=t._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Ht(o.element,r);if(o.type==="set")return Ht(o.valueType,r);if(o.type==="lazy")return Ht(o.getter(),r);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return Ht(o.innerType,r);if(o.type==="intersection")return Ht(o.left,r)||Ht(o.right,r);if(o.type==="record"||o.type==="map")return Ht(o.keyType,r)||Ht(o.valueType,r);if(o.type==="pipe")return Ht(o.in,r)||Ht(o.out,r);if(o.type==="object"){for(let n in o.shape)if(Ht(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(Ht(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(Ht(n,r))return!0;return!!(o.rest&&Ht(o.rest,r))}return!1}a(Ht,"isTransforming");var $y=a((t,e={})=>r=>{let o=mo({...r,processors:e});return Ye(t,o),ho(o,t),go(o,t)},"createToJSONSchemaMethod"),la=a((t,e,r={})=>o=>{let{libraryOptions:n,target:i}=o??{},s=mo({...n??{},target:i,io:e,processors:r});return Ye(t,s),ho(s,t),go(s,t)},"createStandardJSONSchemaMethod");var hL={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},zy=a((t,e,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:s,format:u,patterns:l,contentEncoding:p}=t._zod.bag;if(typeof i=="number"&&(n.minLength=i),typeof s=="number"&&(n.maxLength=s),u&&(n.format=hL[u]??u,n.format===""&&delete n.format,u==="time"&&delete n.format),p&&(n.contentEncoding=p),l&&l.size>0){let f=[...l];f.length===1?n.pattern=f[0].source:f.length>1&&(n.allOf=[...f.map(y=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:y.source}))])}},"stringProcessor"),Dy=a((t,e,r,o)=>{let n=r,{minimum:i,maximum:s,format:u,multipleOf:l,exclusiveMaximum:p,exclusiveMinimum:f}=t._zod.bag;typeof u=="string"&&u.includes("int")?n.type="integer":n.type="number",typeof f=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(n.minimum=f,n.exclusiveMinimum=!0):n.exclusiveMinimum=f),typeof i=="number"&&(n.minimum=i,typeof f=="number"&&e.target!=="draft-04"&&(f>=i?delete n.minimum:delete n.exclusiveMinimum)),typeof p=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(n.maximum=p,n.exclusiveMaximum=!0):n.exclusiveMaximum=p),typeof s=="number"&&(n.maximum=s,typeof p=="number"&&e.target!=="draft-04"&&(p<=s?delete n.maximum:delete n.exclusiveMaximum)),typeof l=="number"&&(n.multipleOf=l)},"numberProcessor"),Uy=a((t,e,r,o)=>{r.type="boolean"},"booleanProcessor"),My=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},"bigintProcessor"),Ly=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},"symbolProcessor"),jy=a((t,e,r,o)=>{e.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},"nullProcessor"),Fy=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},"undefinedProcessor"),By=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},"voidProcessor"),qy=a((t,e,r,o)=>{r.not={}},"neverProcessor"),Gy=a((t,e,r,o)=>{},"anyProcessor"),Vy=a((t,e,r,o)=>{},"unknownProcessor"),Hy=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},"dateProcessor"),Zy=a((t,e,r,o)=>{let n=t._zod.def,i=vs(n.entries);i.every(s=>typeof s=="number")&&(r.type="number"),i.every(s=>typeof s=="string")&&(r.type="string"),r.enum=i},"enumProcessor"),Wy=a((t,e,r,o)=>{let n=t._zod.def,i=[];for(let s of n.values)if(s===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(e.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(s))}else i.push(s);if(i.length!==0)if(i.length===1){let s=i[0];r.type=s===null?"null":typeof s,e.target==="draft-04"||e.target==="openapi-3.0"?r.enum=[s]:r.const=s}else i.every(s=>typeof s=="number")&&(r.type="number"),i.every(s=>typeof s=="string")&&(r.type="string"),i.every(s=>typeof s=="boolean")&&(r.type="boolean"),i.every(s=>s===null)&&(r.type="null"),r.enum=i},"literalProcessor"),Ky=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},"nanProcessor"),Jy=a((t,e,r,o)=>{let n=r,i=t._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=i.source},"templateLiteralProcessor"),Xy=a((t,e,r,o)=>{let n=r,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:u,mime:l}=t._zod.bag;s!==void 0&&(i.minLength=s),u!==void 0&&(i.maxLength=u),l?l.length===1?(i.contentMediaType=l[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=l.map(p=>({contentMediaType:p}))):Object.assign(n,i)},"fileProcessor"),Yy=a((t,e,r,o)=>{r.type="boolean"},"successProcessor"),Qy=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},"customProcessor"),e_=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},"functionProcessor"),t_=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},"transformProcessor"),r_=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},"mapProcessor"),n_=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},"setProcessor"),o_=a((t,e,r,o)=>{let n=r,i=t._zod.def,{minimum:s,maximum:u}=t._zod.bag;typeof s=="number"&&(n.minItems=s),typeof u=="number"&&(n.maxItems=u),n.type="array",n.items=Ye(i.element,e,{...o,path:[...o.path,"items"]})},"arrayProcessor"),i_=a((t,e,r,o)=>{let n=r,i=t._zod.def;n.type="object",n.properties={};let s=i.shape;for(let p in s)n.properties[p]=Ye(s[p],e,{...o,path:[...o.path,"properties",p]});let u=new Set(Object.keys(s)),l=new Set([...u].filter(p=>{let f=i.shape[p]._zod;return e.io==="input"?f.optin===void 0:f.optout===void 0}));l.size>0&&(n.required=Array.from(l)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=Ye(i.catchall,e,{...o,path:[...o.path,"additionalProperties"]})):e.io==="output"&&(n.additionalProperties=!1)},"objectProcessor"),Ep=a((t,e,r,o)=>{let n=t._zod.def,i=n.inclusive===!1,s=n.options.map((u,l)=>Ye(u,e,{...o,path:[...o.path,i?"oneOf":"anyOf",l]}));i?r.oneOf=s:r.anyOf=s},"unionProcessor"),a_=a((t,e,r,o)=>{let n=t._zod.def,i=Ye(n.left,e,{...o,path:[...o.path,"allOf",0]}),s=Ye(n.right,e,{...o,path:[...o.path,"allOf",1]}),u=a(p=>"allOf"in p&&Object.keys(p).length===1,"isSimpleIntersection"),l=[...u(i)?i.allOf:[i],...u(s)?s.allOf:[s]];r.allOf=l},"intersectionProcessor"),s_=a((t,e,r,o)=>{let n=r,i=t._zod.def;n.type="array";let s=e.target==="draft-2020-12"?"prefixItems":"items",u=e.target==="draft-2020-12"||e.target==="openapi-3.0"?"items":"additionalItems",l=i.items.map((m,h)=>Ye(m,e,{...o,path:[...o.path,s,h]})),p=i.rest?Ye(i.rest,e,{...o,path:[...o.path,u,...e.target==="openapi-3.0"?[i.items.length]:[]]}):null;e.target==="draft-2020-12"?(n.prefixItems=l,p&&(n.items=p)):e.target==="openapi-3.0"?(n.items={anyOf:l},p&&n.items.anyOf.push(p),n.minItems=l.length,p||(n.maxItems=l.length)):(n.items=l,p&&(n.additionalItems=p));let{minimum:f,maximum:y}=t._zod.bag;typeof f=="number"&&(n.minItems=f),typeof y=="number"&&(n.maxItems=y)},"tupleProcessor"),c_=a((t,e,r,o)=>{let n=r,i=t._zod.def;n.type="object";let s=i.keyType,l=s._zod.bag?.patterns;if(i.mode==="loose"&&l&&l.size>0){let f=Ye(i.valueType,e,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let y of l)n.patternProperties[y.source]=f}else(e.target==="draft-07"||e.target==="draft-2020-12")&&(n.propertyNames=Ye(i.keyType,e,{...o,path:[...o.path,"propertyNames"]})),n.additionalProperties=Ye(i.valueType,e,{...o,path:[...o.path,"additionalProperties"]});let p=s._zod.values;if(p){let f=[...p].filter(y=>typeof y=="string"||typeof y=="number");f.length>0&&(n.required=f)}},"recordProcessor"),u_=a((t,e,r,o)=>{let n=t._zod.def,i=Ye(n.innerType,e,o),s=e.seen.get(t);e.target==="openapi-3.0"?(s.ref=n.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},"nullableProcessor"),l_=a((t,e,r,o)=>{let n=t._zod.def;Ye(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType},"nonoptionalProcessor"),d_=a((t,e,r,o)=>{let n=t._zod.def;Ye(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},"defaultProcessor"),p_=a((t,e,r,o)=>{let n=t._zod.def;Ye(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType,e.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},"prefaultProcessor"),f_=a((t,e,r,o)=>{let n=t._zod.def;Ye(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType;let s;try{s=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=s},"catchProcessor"),m_=a((t,e,r,o)=>{let n=t._zod.def,i=e.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;Ye(i,e,o);let s=e.seen.get(t);s.ref=i},"pipeProcessor"),h_=a((t,e,r,o)=>{let n=t._zod.def;Ye(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType,r.readOnly=!0},"readonlyProcessor"),g_=a((t,e,r,o)=>{let n=t._zod.def;Ye(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType},"promiseProcessor"),Pp=a((t,e,r,o)=>{let n=t._zod.def;Ye(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType},"optionalProcessor"),y_=a((t,e,r,o)=>{let n=t._zod.innerType;Ye(n,e,o);let i=e.seen.get(t);i.ref=n},"lazyProcessor"),bp={string:zy,number:Dy,boolean:Uy,bigint:My,symbol:Ly,null:jy,undefined:Fy,void:By,never:qy,any:Gy,unknown:Vy,date:Hy,enum:Zy,literal:Wy,nan:Ky,template_literal:Jy,file:Xy,success:Yy,custom:Qy,function:e_,transform:t_,map:r_,set:n_,array:o_,object:i_,union:Ep,intersection:a_,tuple:s_,record:c_,nullable:u_,nonoptional:l_,default:d_,prefault:p_,catch:f_,pipe:m_,readonly:h_,promise:g_,optional:Pp,lazy:y_};function Bc(t,e){if("_idmap"in t){let o=t,n=mo({...e,processors:bp}),i={};for(let l of o._idmap.entries()){let[p,f]=l;Ye(f,n)}let s={},u={registry:o,uri:e?.uri,defs:i};n.external=u;for(let l of o._idmap.entries()){let[p,f]=l;ho(n,f),s[p]=go(n,f)}if(Object.keys(i).length>0){let l=n.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[l]:i}}return{schemas:s}}let r=mo({...e,processors:bp});return Ye(t,r),ho(r,t),go(r,t)}a(Bc,"toJSONSchema");var Sp=class{static{a(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(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let r=e?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=mo({processors:bp,target:r,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,r={path:[],schemaPath:[]}){return Ye(e,this.ctx,r)}emit(e,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),ho(this.ctx,e);let o=go(this.ctx,e),{"~standard":n,...i}=o;return i}};var NT={};var Et=w("ZodMiniType",(t,e)=>{if(!t._zod)throw new Error("Uninitialized schema in ZodMiniType.");Te.init(t,e),t.def=e,t.type=e.type,t.parse=(r,o)=>Ho(t,r,o,{callee:t.parse}),t.safeParse=(r,o)=>Yi(t,r,o),t.parseAsync=async(r,o)=>Zo(t,r,o,{callee:t.parseAsync}),t.safeParseAsync=async(r,o)=>ea(t,r,o),t.check=(...r)=>t.clone({...e,checks:[...e.checks??[],...r.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]},{parent:!0}),t.with=t.check,t.clone=(r,o)=>Rt(t,r,o),t.brand=()=>t,t.register=((r,o)=>(r.add(t,o),t)),t.apply=r=>r(t)}),xp=w("ZodMiniString",(t,e)=>{$n.init(t,e),Et.init(t,e)});function v(t){return Qs(xp,t)}a(v,"string");var da=w("ZodMiniStringFormat",(t,e)=>{Xe.init(t,e),xp.init(t,e)});var _L=w("ZodMiniURL",(t,e)=>{Is.init(t,e),da.init(t,e)});function $T(t){return Xo(_L,t)}a($T,"url");var Tp=w("ZodMiniNumber",(t,e)=>{ra.init(t,e),Et.init(t,e)});function kt(t){return Tc(Tp,t)}a(kt,"number");var vL=w("ZodMiniNumberFormat",(t,e)=>{Ns.init(t,e),Tp.init(t,e)});function zT(t){return wc(vL,t)}a(zT,"int");var __=w("ZodMiniBoolean",(t,e)=>{Ko.init(t,e),Et.init(t,e)});function He(t){return Ic(__,t)}a(He,"boolean");var DT=w("ZodMiniBigInt",(t,e)=>{na.init(t,e),Et.init(t,e)});var bL=w("ZodMiniAny",(t,e)=>{$s.init(t,e),Et.init(t,e)});function qc(){return Oc(bL)}a(qc,"any");var EL=w("ZodMiniUnknown",(t,e)=>{zs.init(t,e),Et.init(t,e)});function Ce(){return kc(EL)}a(Ce,"unknown");var PL=w("ZodMiniVoid",(t,e)=>{Ds.init(t,e),Et.init(t,e)});function UT(t){return Nc(PL,t)}a(UT,"_void");var MT=w("ZodMiniDate",(t,e)=>{Us.init(t,e),Et.init(t,e)});var SL=w("ZodMiniArray",(t,e)=>{Ms.init(t,e),Et.init(t,e)});function Se(t,e){return new SL({type:"array",element:t,...te(e)})}a(Se,"array");var xL=w("ZodMiniObject",(t,e)=>{Nd.init(t,e),Et.init(t,e),De(t,"shape",()=>e.shape)});function O(t,e){let r={type:"object",shape:t??{},...te(e)};return new xL(r)}a(O,"object");var TL=w("ZodMiniUnion",(t,e)=>{Jo.init(t,e),Et.init(t,e)});function Ue(t,e){return new TL({type:"union",options:t,...te(e)})}a(Ue,"union");var AL=w("ZodMiniDiscriminatedUnion",(t,e)=>{Ls.init(t,e),Et.init(t,e)});function yo(t,e,r){return new AL({type:"union",options:e,discriminator:t,...te(r)})}a(yo,"discriminatedUnion");var wL=w("ZodMiniRecord",(t,e)=>{Fs.init(t,e),Et.init(t,e)});function Re(t,e,r){return new wL({type:"record",keyType:t,valueType:e,...te(r)})}a(Re,"record");var IL=w("ZodMiniEnum",(t,e)=>{Bs.init(t,e),Et.init(t,e),t.options=Object.values(e.entries)});function Ee(t,e){let r=Array.isArray(t)?Object.fromEntries(t.map(o=>[o,o])):t;return new IL({type:"enum",entries:r,...te(e)})}a(Ee,"_enum");var CL=w("ZodMiniLiteral",(t,e)=>{qs.init(t,e),Et.init(t,e)});function ve(t,e){return new CL({type:"literal",values:Array.isArray(t)?t:[t],...te(e)})}a(ve,"literal");var RL=w("ZodMiniTransform",(t,e)=>{Gs.init(t,e),Et.init(t,e)});function _o(t){return new RL({type:"transform",transform:t})}a(_o,"transform");var OL=w("ZodMiniOptional",(t,e)=>{oa.init(t,e),Et.init(t,e)});function q(t){return new OL({type:"optional",innerType:t})}a(q,"optional");var kL=w("ZodMiniNullable",(t,e)=>{Vs.init(t,e),Et.init(t,e)});function Gc(t){return new kL({type:"nullable",innerType:t})}a(Gc,"nullable");var NL=w("ZodMiniPipe",(t,e)=>{Hs.init(t,e),Et.init(t,e)});function vo(t,e){return new NL({type:"pipe",in:t,out:e})}a(vo,"pipe");var LT=w("ZodMiniCustom",(t,e)=>{Zs.init(t,e),Et.init(t,e)});function Ap(t,e){return jc(LT,t??(()=>!0),e)}a(Ap,"custom");function v_(t,e={}){return Fc(LT,t,e)}a(v_,"refine");var wp={};Xt(wp,{ZodMiniISODate:()=>E_,ZodMiniISODateTime:()=>b_,ZodMiniISODuration:()=>S_,ZodMiniISOTime:()=>P_,date:()=>zL,datetime:()=>$L,duration:()=>UL,time:()=>DL});var b_=w("ZodMiniISODateTime",(t,e)=>{Cs.init(t,e),da.init(t,e)});function $L(t){return Ec(b_,t)}a($L,"datetime");var E_=w("ZodMiniISODate",(t,e)=>{Rs.init(t,e),da.init(t,e)});function zL(t){return Pc(E_,t)}a(zL,"date");var P_=w("ZodMiniISOTime",(t,e)=>{Os.init(t,e),da.init(t,e)});function DL(t){return Sc(P_,t)}a(DL,"time");var S_=w("ZodMiniISODuration",(t,e)=>{ks.init(t,e),da.init(t,e)});function UL(t){return xc(S_,t)}a(UL,"duration");var Vc={};Xt(Vc,{bigint:()=>FL,boolean:()=>jL,date:()=>BL,number:()=>LL,string:()=>ML});function ML(t){return ec(xp,t)}a(ML,"string");function LL(t){return Ac(Tp,t)}a(LL,"number");function jL(t){return Cc(__,t)}a(jL,"boolean");function FL(t){return Rc(DT,t)}a(FL,"bigint");function BL(t){return $c(MT,t)}a(BL,"date");var T_=O({retryOnFailure:O({defaultValue:q(He()),hide:q(He())}),continueOnFailure:O({defaultValue:q(He()),hide:q(He())})}),x_=class{constructor(e,r,o,n,i,s,u,l,p,f,y,m,h){this.name=e;this.displayName=r;this.description=o;this.props=n;this.propertyGroups=i;this.run=s;this.test=u;this.requireAuth=l;this.errorHandlingOptions=p;this.outputSchema=f;this.audience=y;this.aiMetadata=m;this.classification=h}static{a(this,"IAction")}},Oe=a(t=>new x_(t.name,t.displayName,t.description,t.props,t.propertyGroups,t.run,t.test??t.run,t.requireAuth??!0,t.errorHandlingOptions??{continueOnFailure:{defaultValue:!1},retryOnFailure:{defaultValue:!1}},t.outputSchema,t.audience,t.aiMetadata,t.classification),"createAction");var Ge=O({displayName:v(),description:q(v()),advanced:q(He()),width:q(Ee(["half","full"])),icon:q(v()),placeholder:q(v())}),ke=a((t,e)=>O({type:ve(e),required:He(),defaultValue:q(qc())}),"TPropertyValue");var pr=O({...Ge.shape,...ke(v(),"SHORT_TEXT").shape}),Un=O({...Ge.shape,...ke(v(),"LONG_TEXT").shape});var FT=O({label:v(),value:Ce(),description:q(v()),icon:q(v())}),Ip=O({disabled:q(He()),placeholder:q(v()),options:Se(FT)});var GL=Ee(["cards"]),fr=O({...Ge.shape,options:Ip,display:q(GL),...ke(Ce(),"STATIC_DROPDOWN").shape}),Mn=O({...Ge.shape,options:Ip,...ke(Se(Ce()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var A_=O({...Ge.shape,...ke(Ce(),"DROPDOWN").shape,refreshers:Se(v())}),Hc=O({...Ge.shape,...ke(Se(Ce()),"MULTI_SELECT_DROPDOWN").shape,refreshers:Se(v())});var Ln=O({...Ge.shape,reveals:q(Se(v())),...ke(He(),"CHECKBOX").shape});var jn=O({...Ge.shape,display:q(Ee(["stepper"])),min:q(kt()),max:q(kt()),step:q(kt()),...ke(kt(),"NUMBER").shape});var Zc=O({...Ge.shape,streaming:q(He()),...ke(Ce(),"FILE").shape});var Wc=O({...Ge.shape,...ke(v(),"DATE_TIME").shape});var BT=Re(v(),Ue([pr,Un,fr,Hc,Mn,Ln,jn,Zc,Wc])),Kc=O({...Ge.shape,properties:BT,...ke(Se(Ce()),"ARRAY").shape});var qT=Ee(["any_time","last_24_hours","last_7_days","last_30_days","last_90_days","this_month","custom"]),GT=O({preset:q(qT),after:q(v()),before:q(v())}),w_=O({...Ge.shape,display:q(Ee(["dropdown"])),...ke(GT,"DATE_RANGE").shape});var Jc=O({...Ge.shape,...ke(Ue([Re(v(),Ce())]),"JSON").shape});var VT=Ue([pr,fr,Jc,Kc,Mn]),VL=Re(v(),VT),I_=O({refreshers:Se(v()),...Ge.shape,...ke(Ce(),"DYNAMIC").shape});var Cp=O({...Ge.shape,...ke(UT(),"MARKDOWN").shape});var Xc=(r=>(r.ARCHIVE="ARCHIVE",r.REGISTRY="REGISTRY",r))(Xc||{}),pa=(r=>(r.CUSTOM="CUSTOM",r.OFFICIAL="OFFICIAL",r))(pa||{}),fa=(T=>(T.ARTIFICIAL_INTELLIGENCE="ARTIFICIAL_INTELLIGENCE",T.COMMUNICATION="COMMUNICATION",T.COMMERCE="COMMERCE",T.CORE="CORE",T.UNIVERSAL_AI="UNIVERSAL_AI",T.FLOW_CONTROL="FLOW_CONTROL",T.BUSINESS_INTELLIGENCE="BUSINESS_INTELLIGENCE",T.ACCOUNTING="ACCOUNTING",T.PRODUCTIVITY="PRODUCTIVITY",T.CONTENT_AND_FILES="CONTENT_AND_FILES",T.DEVELOPER_TOOLS="DEVELOPER_TOOLS",T.CUSTOMER_SUPPORT="CUSTOMER_SUPPORT",T.FORMS_AND_SURVEYS="FORMS_AND_SURVEYS",T.HUMAN_RESOURCES="HUMAN_RESOURCES",T.PAYMENT_PROCESSING="PAYMENT_PROCESSING",T.MARKETING="MARKETING",T.SALES_AND_CRM="SALES_AND_CRM",T))(fa||{});var Yc=(r=>(r.AUTHORIZATION_CODE="authorization_code",r.CLIENT_CREDENTIALS="client_credentials",r))(Yc||{}),C_="both_client_credentials_and_authorization_code";var bo=(n=>(n.POLLING="POLLING",n.WEBHOOK="WEBHOOK",n.APP_WEBHOOK="APP_WEBHOOK",n.MANUAL="MANUAL",n))(bo||{}),Qc=(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))(Qc||{}),HL=O({strategy:Ee(Qc),paramName:q(v())}),eu=(r=>(r.SIMULATION="SIMULATION",r.TEST_FUNCTION="TEST_FUNCTION",r))(eu||{});var Rp=(r=>(r.WEBSOCKET="WEBSOCKET",r.NONE="NONE",r))(Rp||{}),HT=O({status:q(kt()),body:q(Ce()),headers:q(Re(v(),v()))}),ZT=O({type:ve("DELAY"),resumeDateTime:v(),requestIdToReply:q(v()),handlerId:q(v()),streamStepProgress:q(Ee(Rp))}),WT=O({type:ve("WEBHOOK"),requestId:v(),requestIdToReply:q(v()),response:HT,handlerId:q(v()),streamStepProgress:q(Ee(Rp))}),ZL=Ue([ZT,WT]);var WL=O({body:Ce(),rawBody:q(Ce()),headers:Re(v(),v()),queryParams:Re(v(),v())});function ft(t){return t==null}a(ft,"isNil");function tu(t){return t==null?!0:typeof t=="string"||Array.isArray(t)?t.length===0:typeof t=="object"?Object.keys(t).length===0:!1}a(tu,"isEmpty");function Op(t,e){if(t==null)throw new Error(`${e} is null or undefined`)}a(Op,"assertNotNullOrUndefined");function O_(t){try{return{data:t(),error:null}}catch(e){return{data:null,error:e}}}a(O_,"tryCatchSync");var k_=Tt(require("crypto"),1);var KL=128,Eo,ma,JL=a(t=>{if(t<0)throw new RangeError("Wrong ID size");try{!Eo||Eo.length<t?(Eo=Buffer.allocUnsafe(t*KL),k_.default.randomFillSync(Eo),ma=0):ma+t>Eo.length&&(k_.default.randomFillSync(Eo),ma=0)}catch(e){throw Eo=void 0,e}ma+=t},"fillPool"),XL=a(t=>(JL(t|=0),Eo.subarray(ma-t,ma)),"random"),YL=a((t,e,r)=>{let o=(2<<31-Math.clz32(t.length-1|1))-1,n=Math.ceil(1.6*o*e/t.length);return(i=e)=>{if(i<=0)return"";let s="";for(;;){let u=r(n),l=n;for(;l--;)if(s+=t[u[l]&o]||"",s.length===i)return s}}},"customRandom"),KT=a((t,e=21)=>YL(t,e,XL),"customAlphabet");var QL="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",JT=21,C9=v().check(Ut(new RegExp(`^[0-9a-zA-Z]{${JT}}$`))),ej=KT(QL,JT);var Po=vo(_o(t=>t instanceof Date?t.toISOString():t),v()),Or={id:v(),created:Po,updated:Po},mt=a(t=>q(Gc(t)),"Nullable");function N_(t){return q(Gc(Ee(t)))}a(N_,"NullableEnum");var k9=vo(_o(t=>t==="true"||t===!0?!0:t==="false"||t===!1?!1:void 0),q(He())),N9=q(wp.datetime({offset:!0}).check(v_(t=>t.slice(0,4)!=="0000"))),kp=a(t=>vo(_o(e=>Array.isArray(e)?e:e!==void 0?[e]:void 0),q(Se(t))),"OptionalArrayFromQuery");var D9=Re(v(),Ce());var So=(T=>(T.OPENAI="openai",T.OPENROUTER="openrouter",T.ANTHROPIC="anthropic",T.AZURE="azure",T.GOOGLE="google",T.ACTIVEPIECES="activepieces",T.CLOUDFLARE_GATEWAY="cloudflare-gateway",T.CUSTOM="custom",T.BEDROCK="bedrock",T.VERTEX="vertex",T.MISTRAL="mistral",T.XAI="xai",T.DEEPSEEK="deepseek",T.ZAI="zai",T.QWEN="qwen",T.MINIMAX="minimax",T.MOONSHOT="moonshot",T))(So||{});var ue={};Xt(ue,{$brand:()=>ys,$input:()=>Qd,$output:()=>Yd,NEVER:()=>Ll,TimePrecision:()=>tp,ZodAny:()=>nv,ZodArray:()=>sv,ZodBase64:()=>Qp,ZodBase64URL:()=>ef,ZodBigInt:()=>Ea,ZodBigIntFormat:()=>nf,ZodBoolean:()=>ba,ZodCIDRv4:()=>Xp,ZodCIDRv6:()=>Yp,ZodCUID:()=>Gp,ZodCUID2:()=>Vp,ZodCatch:()=>Cv,ZodCodec:()=>pf,ZodCustom:()=>fu,ZodCustomStringFormat:()=>_a,ZodDate:()=>cu,ZodDefault:()=>Sv,ZodDiscriminatedUnion:()=>uv,ZodE164:()=>tf,ZodEmail:()=>Fp,ZodEmoji:()=>Bp,ZodEnum:()=>ga,ZodError:()=>tj,ZodExactOptional:()=>bv,ZodFile:()=>_v,ZodFirstPartyTypeKind:()=>Fv,ZodFunction:()=>Mv,ZodGUID:()=>nu,ZodIPv4:()=>Kp,ZodIPv6:()=>Jp,ZodISODate:()=>zp,ZodISODateTime:()=>$p,ZodISODuration:()=>Up,ZodISOTime:()=>Dp,ZodIntersection:()=>lv,ZodIssueCode:()=>nj,ZodJWT:()=>rf,ZodKSUID:()=>Wp,ZodLazy:()=>zv,ZodLiteral:()=>yv,ZodMAC:()=>J_,ZodMap:()=>hv,ZodNaN:()=>Ov,ZodNanoID:()=>qp,ZodNever:()=>iv,ZodNonOptional:()=>lf,ZodNull:()=>tv,ZodNullable:()=>Pv,ZodNumber:()=>va,ZodNumberFormat:()=>li,ZodObject:()=>lu,ZodOptional:()=>uf,ZodPipe:()=>df,ZodPrefault:()=>Tv,ZodPromise:()=>Uv,ZodReadonly:()=>kv,ZodRealError:()=>tr,ZodRecord:()=>pu,ZodSet:()=>gv,ZodString:()=>ya,ZodStringFormat:()=>nt,ZodSuccess:()=>Iv,ZodSymbol:()=>Q_,ZodTemplateLiteral:()=>$v,ZodTransform:()=>vv,ZodTuple:()=>pv,ZodType:()=>Me,ZodULID:()=>Hp,ZodURL:()=>su,ZodUUID:()=>cn,ZodUndefined:()=>ev,ZodUnion:()=>du,ZodUnknown:()=>ov,ZodVoid:()=>av,ZodXID:()=>Zp,ZodXor:()=>cv,_ZodString:()=>jp,_default:()=>xv,_function:()=>nw,any:()=>zA,array:()=>uu,base64:()=>_A,base64url:()=>vA,bigint:()=>RA,boolean:()=>Y_,catch:()=>Rv,check:()=>ow,cidrv4:()=>gA,cidrv6:()=>yA,clone:()=>Rt,codec:()=>ew,coerce:()=>Bv,config:()=>pt,core:()=>dr,cuid:()=>cA,cuid2:()=>uA,custom:()=>iw,date:()=>UA,decode:()=>q_,decodeAsync:()=>V_,describe:()=>aw,discriminatedUnion:()=>qA,e164:()=>bA,email:()=>YT,emoji:()=>aA,encode:()=>B_,encodeAsync:()=>G_,endsWith:()=>ri,enum:()=>sf,exactOptional:()=>Ev,file:()=>JA,flattenError:()=>Zi,float32:()=>AA,float64:()=>wA,formatError:()=>Wi,fromJSONSchema:()=>fw,function:()=>nw,getErrorMap:()=>ij,globalRegistry:()=>Ot,gt:()=>Zr,gte:()=>At,guid:()=>QT,hash:()=>TA,hex:()=>xA,hostname:()=>SA,httpUrl:()=>iA,includes:()=>ei,instanceof:()=>cw,int:()=>Lp,int32:()=>IA,int64:()=>OA,intersection:()=>dv,ipv4:()=>fA,ipv6:()=>hA,iso:()=>ha,json:()=>lw,jwt:()=>EA,keyof:()=>MA,ksuid:()=>pA,lazy:()=>Dv,length:()=>fo,literal:()=>KA,locales:()=>sa,looseObject:()=>FA,looseRecord:()=>VA,lowercase:()=>Yo,lt:()=>Hr,lte:()=>Vt,mac:()=>mA,map:()=>HA,maxLength:()=>po,maxSize:()=>Dn,meta:()=>sw,mime:()=>ni,minLength:()=>vt,minSize:()=>Wr,multipleOf:()=>zn,nan:()=>QA,nanoid:()=>sA,nativeEnum:()=>WA,negative:()=>Dc,never:()=>of,nonnegative:()=>Mc,nonoptional:()=>wv,nonpositive:()=>Uc,normalize:()=>oi,null:()=>rv,nullable:()=>iu,nullish:()=>XA,number:()=>X_,object:()=>LA,optional:()=>ou,overwrite:()=>Rr,parse:()=>M_,parseAsync:()=>L_,partialRecord:()=>GA,pipe:()=>au,positive:()=>zc,prefault:()=>Av,preprocess:()=>dw,prettifyError:()=>Gl,promise:()=>rw,property:()=>Lc,readonly:()=>Nv,record:()=>mv,refine:()=>Lv,regex:()=>Ut,regexes:()=>er,registry:()=>Ys,safeDecode:()=>Z_,safeDecodeAsync:()=>K_,safeEncode:()=>H_,safeEncodeAsync:()=>W_,safeParse:()=>j_,safeParseAsync:()=>F_,set:()=>ZA,setErrorMap:()=>oj,size:()=>lo,slugify:()=>ua,startsWith:()=>ti,strictObject:()=>jA,string:()=>Mp,stringFormat:()=>PA,stringbool:()=>uw,success:()=>YA,superRefine:()=>jv,symbol:()=>NA,templateLiteral:()=>tw,toJSONSchema:()=>Bc,toLowerCase:()=>ai,toUpperCase:()=>si,transform:()=>cf,treeifyError:()=>ql,trim:()=>ii,tuple:()=>fv,uint32:()=>CA,uint64:()=>kA,ulid:()=>lA,undefined:()=>$A,union:()=>af,unknown:()=>ui,uppercase:()=>Qo,url:()=>oA,util:()=>ie,uuid:()=>eA,uuidv4:()=>tA,uuidv6:()=>rA,uuidv7:()=>nA,void:()=>DA,xid:()=>dA,xor:()=>BA});var ru={};Xt(ru,{ZodAny:()=>nv,ZodArray:()=>sv,ZodBase64:()=>Qp,ZodBase64URL:()=>ef,ZodBigInt:()=>Ea,ZodBigIntFormat:()=>nf,ZodBoolean:()=>ba,ZodCIDRv4:()=>Xp,ZodCIDRv6:()=>Yp,ZodCUID:()=>Gp,ZodCUID2:()=>Vp,ZodCatch:()=>Cv,ZodCodec:()=>pf,ZodCustom:()=>fu,ZodCustomStringFormat:()=>_a,ZodDate:()=>cu,ZodDefault:()=>Sv,ZodDiscriminatedUnion:()=>uv,ZodE164:()=>tf,ZodEmail:()=>Fp,ZodEmoji:()=>Bp,ZodEnum:()=>ga,ZodExactOptional:()=>bv,ZodFile:()=>_v,ZodFunction:()=>Mv,ZodGUID:()=>nu,ZodIPv4:()=>Kp,ZodIPv6:()=>Jp,ZodIntersection:()=>lv,ZodJWT:()=>rf,ZodKSUID:()=>Wp,ZodLazy:()=>zv,ZodLiteral:()=>yv,ZodMAC:()=>J_,ZodMap:()=>hv,ZodNaN:()=>Ov,ZodNanoID:()=>qp,ZodNever:()=>iv,ZodNonOptional:()=>lf,ZodNull:()=>tv,ZodNullable:()=>Pv,ZodNumber:()=>va,ZodNumberFormat:()=>li,ZodObject:()=>lu,ZodOptional:()=>uf,ZodPipe:()=>df,ZodPrefault:()=>Tv,ZodPromise:()=>Uv,ZodReadonly:()=>kv,ZodRecord:()=>pu,ZodSet:()=>gv,ZodString:()=>ya,ZodStringFormat:()=>nt,ZodSuccess:()=>Iv,ZodSymbol:()=>Q_,ZodTemplateLiteral:()=>$v,ZodTransform:()=>vv,ZodTuple:()=>pv,ZodType:()=>Me,ZodULID:()=>Hp,ZodURL:()=>su,ZodUUID:()=>cn,ZodUndefined:()=>ev,ZodUnion:()=>du,ZodUnknown:()=>ov,ZodVoid:()=>av,ZodXID:()=>Zp,ZodXor:()=>cv,_ZodString:()=>jp,_default:()=>xv,_function:()=>nw,any:()=>zA,array:()=>uu,base64:()=>_A,base64url:()=>vA,bigint:()=>RA,boolean:()=>Y_,catch:()=>Rv,check:()=>ow,cidrv4:()=>gA,cidrv6:()=>yA,codec:()=>ew,cuid:()=>cA,cuid2:()=>uA,custom:()=>iw,date:()=>UA,describe:()=>aw,discriminatedUnion:()=>qA,e164:()=>bA,email:()=>YT,emoji:()=>aA,enum:()=>sf,exactOptional:()=>Ev,file:()=>JA,float32:()=>AA,float64:()=>wA,function:()=>nw,guid:()=>QT,hash:()=>TA,hex:()=>xA,hostname:()=>SA,httpUrl:()=>iA,instanceof:()=>cw,int:()=>Lp,int32:()=>IA,int64:()=>OA,intersection:()=>dv,ipv4:()=>fA,ipv6:()=>hA,json:()=>lw,jwt:()=>EA,keyof:()=>MA,ksuid:()=>pA,lazy:()=>Dv,literal:()=>KA,looseObject:()=>FA,looseRecord:()=>VA,mac:()=>mA,map:()=>HA,meta:()=>sw,nan:()=>QA,nanoid:()=>sA,nativeEnum:()=>WA,never:()=>of,nonoptional:()=>wv,null:()=>rv,nullable:()=>iu,nullish:()=>XA,number:()=>X_,object:()=>LA,optional:()=>ou,partialRecord:()=>GA,pipe:()=>au,prefault:()=>Av,preprocess:()=>dw,promise:()=>rw,readonly:()=>Nv,record:()=>mv,refine:()=>Lv,set:()=>ZA,strictObject:()=>jA,string:()=>Mp,stringFormat:()=>PA,stringbool:()=>uw,success:()=>YA,superRefine:()=>jv,symbol:()=>NA,templateLiteral:()=>tw,transform:()=>cf,tuple:()=>fv,uint32:()=>CA,uint64:()=>kA,ulid:()=>lA,undefined:()=>$A,union:()=>af,unknown:()=>ui,url:()=>oA,uuid:()=>eA,uuidv4:()=>tA,uuidv6:()=>rA,uuidv7:()=>nA,void:()=>DA,xid:()=>dA,xor:()=>BA});var Np={};Xt(Np,{endsWith:()=>ri,gt:()=>Zr,gte:()=>At,includes:()=>ei,length:()=>fo,lowercase:()=>Yo,lt:()=>Hr,lte:()=>Vt,maxLength:()=>po,maxSize:()=>Dn,mime:()=>ni,minLength:()=>vt,minSize:()=>Wr,multipleOf:()=>zn,negative:()=>Dc,nonnegative:()=>Mc,nonpositive:()=>Uc,normalize:()=>oi,overwrite:()=>Rr,positive:()=>zc,property:()=>Lc,regex:()=>Ut,size:()=>lo,slugify:()=>ua,startsWith:()=>ti,toLowerCase:()=>ai,toUpperCase:()=>si,trim:()=>ii,uppercase:()=>Qo});var ha={};Xt(ha,{ZodISODate:()=>zp,ZodISODateTime:()=>$p,ZodISODuration:()=>Up,ZodISOTime:()=>Dp,date:()=>z_,datetime:()=>$_,duration:()=>U_,time:()=>D_});var $p=w("ZodISODateTime",(t,e)=>{Cs.init(t,e),nt.init(t,e)});function $_(t){return Ec($p,t)}a($_,"datetime");var zp=w("ZodISODate",(t,e)=>{Rs.init(t,e),nt.init(t,e)});function z_(t){return Pc(zp,t)}a(z_,"date");var Dp=w("ZodISOTime",(t,e)=>{Os.init(t,e),nt.init(t,e)});function D_(t){return Sc(Dp,t)}a(D_,"time");var Up=w("ZodISODuration",(t,e)=>{ks.init(t,e),nt.init(t,e)});function U_(t){return xc(Up,t)}a(U_,"duration");var XT=a((t,e)=>{xs.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:a(r=>Wi(t,r),"value")},flatten:{value:a(r=>Zi(t,r),"value")},addIssue:{value:a(r=>{t.issues.push(r),t.message=JSON.stringify(t.issues,Gi,2)},"value")},addIssues:{value:a(r=>{t.issues.push(...r),t.message=JSON.stringify(t.issues,Gi,2)},"value")},isEmpty:{get(){return t.issues.length===0}}})},"initializer"),tj=w("ZodError",XT),tr=w("ZodError",XT,{Parent:Error});var M_=Ki(tr),L_=Ji(tr),j_=Xi(tr),F_=Qi(tr),B_=Vl(tr),q_=Hl(tr),G_=Zl(tr),V_=Wl(tr),H_=Kl(tr),Z_=Jl(tr),W_=Xl(tr),K_=Yl(tr);var Me=w("ZodType",(t,e)=>(Te.init(t,e),Object.assign(t["~standard"],{jsonSchema:{input:la(t,"input"),output:la(t,"output")}}),t.toJSONSchema=$y(t,{}),t.def=e,t.type=e.type,Object.defineProperty(t,"_def",{value:e}),t.check=(...r)=>t.clone(ie.mergeDefs(e,{checks:[...e.checks??[],...r.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0}),t.with=t.check,t.clone=(r,o)=>Rt(t,r,o),t.brand=()=>t,t.register=((r,o)=>(r.add(t,o),t)),t.parse=(r,o)=>M_(t,r,o,{callee:t.parse}),t.safeParse=(r,o)=>j_(t,r,o),t.parseAsync=async(r,o)=>L_(t,r,o,{callee:t.parseAsync}),t.safeParseAsync=async(r,o)=>F_(t,r,o),t.spa=t.safeParseAsync,t.encode=(r,o)=>B_(t,r,o),t.decode=(r,o)=>q_(t,r,o),t.encodeAsync=async(r,o)=>G_(t,r,o),t.decodeAsync=async(r,o)=>V_(t,r,o),t.safeEncode=(r,o)=>H_(t,r,o),t.safeDecode=(r,o)=>Z_(t,r,o),t.safeEncodeAsync=async(r,o)=>W_(t,r,o),t.safeDecodeAsync=async(r,o)=>K_(t,r,o),t.refine=(r,o)=>t.check(Lv(r,o)),t.superRefine=r=>t.check(jv(r)),t.overwrite=r=>t.check(Rr(r)),t.optional=()=>ou(t),t.exactOptional=()=>Ev(t),t.nullable=()=>iu(t),t.nullish=()=>ou(iu(t)),t.nonoptional=r=>wv(t,r),t.array=()=>uu(t),t.or=r=>af([t,r]),t.and=r=>dv(t,r),t.transform=r=>au(t,cf(r)),t.default=r=>xv(t,r),t.prefault=r=>Av(t,r),t.catch=r=>Rv(t,r),t.pipe=r=>au(t,r),t.readonly=()=>Nv(t),t.describe=r=>{let o=t.clone();return Ot.add(o,{description:r}),o},Object.defineProperty(t,"description",{get(){return Ot.get(t)?.description},configurable:!0}),t.meta=(...r)=>{if(r.length===0)return Ot.get(t);let o=t.clone();return Ot.add(o,r[0]),o},t.isOptional=()=>t.safeParse(void 0).success,t.isNullable=()=>t.safeParse(null).success,t.apply=r=>r(t),t)),jp=w("_ZodString",(t,e)=>{$n.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(o,n,i)=>zy(t,o,n,i);let r=t._zod.bag;t.format=r.format??null,t.minLength=r.minimum??null,t.maxLength=r.maximum??null,t.regex=(...o)=>t.check(Ut(...o)),t.includes=(...o)=>t.check(ei(...o)),t.startsWith=(...o)=>t.check(ti(...o)),t.endsWith=(...o)=>t.check(ri(...o)),t.min=(...o)=>t.check(vt(...o)),t.max=(...o)=>t.check(po(...o)),t.length=(...o)=>t.check(fo(...o)),t.nonempty=(...o)=>t.check(vt(1,...o)),t.lowercase=o=>t.check(Yo(o)),t.uppercase=o=>t.check(Qo(o)),t.trim=()=>t.check(ii()),t.normalize=(...o)=>t.check(oi(...o)),t.toLowerCase=()=>t.check(ai()),t.toUpperCase=()=>t.check(si()),t.slugify=()=>t.check(ua())}),ya=w("ZodString",(t,e)=>{$n.init(t,e),jp.init(t,e),t.email=r=>t.check(tc(Fp,r)),t.url=r=>t.check(Xo(su,r)),t.jwt=r=>t.check(bc(rf,r)),t.emoji=r=>t.check(ac(Bp,r)),t.guid=r=>t.check(ca(nu,r)),t.uuid=r=>t.check(rc(cn,r)),t.uuidv4=r=>t.check(nc(cn,r)),t.uuidv6=r=>t.check(oc(cn,r)),t.uuidv7=r=>t.check(ic(cn,r)),t.nanoid=r=>t.check(sc(qp,r)),t.guid=r=>t.check(ca(nu,r)),t.cuid=r=>t.check(cc(Gp,r)),t.cuid2=r=>t.check(uc(Vp,r)),t.ulid=r=>t.check(lc(Hp,r)),t.base64=r=>t.check(yc(Qp,r)),t.base64url=r=>t.check(_c(ef,r)),t.xid=r=>t.check(dc(Zp,r)),t.ksuid=r=>t.check(pc(Wp,r)),t.ipv4=r=>t.check(fc(Kp,r)),t.ipv6=r=>t.check(mc(Jp,r)),t.cidrv4=r=>t.check(hc(Xp,r)),t.cidrv6=r=>t.check(gc(Yp,r)),t.e164=r=>t.check(vc(tf,r)),t.datetime=r=>t.check($_(r)),t.date=r=>t.check(z_(r)),t.time=r=>t.check(D_(r)),t.duration=r=>t.check(U_(r))});function Mp(t){return Qs(ya,t)}a(Mp,"string");var nt=w("ZodStringFormat",(t,e)=>{Xe.init(t,e),jp.init(t,e)}),Fp=w("ZodEmail",(t,e)=>{ld.init(t,e),nt.init(t,e)});function YT(t){return tc(Fp,t)}a(YT,"email");var nu=w("ZodGUID",(t,e)=>{cd.init(t,e),nt.init(t,e)});function QT(t){return ca(nu,t)}a(QT,"guid");var cn=w("ZodUUID",(t,e)=>{ud.init(t,e),nt.init(t,e)});function eA(t){return rc(cn,t)}a(eA,"uuid");function tA(t){return nc(cn,t)}a(tA,"uuidv4");function rA(t){return oc(cn,t)}a(rA,"uuidv6");function nA(t){return ic(cn,t)}a(nA,"uuidv7");var su=w("ZodURL",(t,e)=>{Is.init(t,e),nt.init(t,e)});function oA(t){return Xo(su,t)}a(oA,"url");function iA(t){return Xo(su,{protocol:/^https?$/,hostname:er.domain,...ie.normalizeParams(t)})}a(iA,"httpUrl");var Bp=w("ZodEmoji",(t,e)=>{dd.init(t,e),nt.init(t,e)});function aA(t){return ac(Bp,t)}a(aA,"emoji");var qp=w("ZodNanoID",(t,e)=>{pd.init(t,e),nt.init(t,e)});function sA(t){return sc(qp,t)}a(sA,"nanoid");var Gp=w("ZodCUID",(t,e)=>{fd.init(t,e),nt.init(t,e)});function cA(t){return cc(Gp,t)}a(cA,"cuid");var Vp=w("ZodCUID2",(t,e)=>{md.init(t,e),nt.init(t,e)});function uA(t){return uc(Vp,t)}a(uA,"cuid2");var Hp=w("ZodULID",(t,e)=>{hd.init(t,e),nt.init(t,e)});function lA(t){return lc(Hp,t)}a(lA,"ulid");var Zp=w("ZodXID",(t,e)=>{gd.init(t,e),nt.init(t,e)});function dA(t){return dc(Zp,t)}a(dA,"xid");var Wp=w("ZodKSUID",(t,e)=>{yd.init(t,e),nt.init(t,e)});function pA(t){return pc(Wp,t)}a(pA,"ksuid");var Kp=w("ZodIPv4",(t,e)=>{_d.init(t,e),nt.init(t,e)});function fA(t){return fc(Kp,t)}a(fA,"ipv4");var J_=w("ZodMAC",(t,e)=>{bd.init(t,e),nt.init(t,e)});function mA(t){return ep(J_,t)}a(mA,"mac");var Jp=w("ZodIPv6",(t,e)=>{vd.init(t,e),nt.init(t,e)});function hA(t){return mc(Jp,t)}a(hA,"ipv6");var Xp=w("ZodCIDRv4",(t,e)=>{Ed.init(t,e),nt.init(t,e)});function gA(t){return hc(Xp,t)}a(gA,"cidrv4");var Yp=w("ZodCIDRv6",(t,e)=>{Pd.init(t,e),nt.init(t,e)});function yA(t){return gc(Yp,t)}a(yA,"cidrv6");var Qp=w("ZodBase64",(t,e)=>{Sd.init(t,e),nt.init(t,e)});function _A(t){return yc(Qp,t)}a(_A,"base64");var ef=w("ZodBase64URL",(t,e)=>{xd.init(t,e),nt.init(t,e)});function vA(t){return _c(ef,t)}a(vA,"base64url");var tf=w("ZodE164",(t,e)=>{Td.init(t,e),nt.init(t,e)});function bA(t){return vc(tf,t)}a(bA,"e164");var rf=w("ZodJWT",(t,e)=>{Ad.init(t,e),nt.init(t,e)});function EA(t){return bc(rf,t)}a(EA,"jwt");var _a=w("ZodCustomStringFormat",(t,e)=>{wd.init(t,e),nt.init(t,e)});function PA(t,e,r={}){return ci(_a,t,e,r)}a(PA,"stringFormat");function SA(t){return ci(_a,"hostname",er.hostname,t)}a(SA,"hostname");function xA(t){return ci(_a,"hex",er.hex,t)}a(xA,"hex");function TA(t,e){let r=e?.enc??"hex",o=`${t}_${r}`,n=er[o];if(!n)throw new Error(`Unrecognized hash format: ${o}`);return ci(_a,o,n,e)}a(TA,"hash");var va=w("ZodNumber",(t,e)=>{ra.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(o,n,i)=>Dy(t,o,n,i),t.gt=(o,n)=>t.check(Zr(o,n)),t.gte=(o,n)=>t.check(At(o,n)),t.min=(o,n)=>t.check(At(o,n)),t.lt=(o,n)=>t.check(Hr(o,n)),t.lte=(o,n)=>t.check(Vt(o,n)),t.max=(o,n)=>t.check(Vt(o,n)),t.int=o=>t.check(Lp(o)),t.safe=o=>t.check(Lp(o)),t.positive=o=>t.check(Zr(0,o)),t.nonnegative=o=>t.check(At(0,o)),t.negative=o=>t.check(Hr(0,o)),t.nonpositive=o=>t.check(Vt(0,o)),t.multipleOf=(o,n)=>t.check(zn(o,n)),t.step=(o,n)=>t.check(zn(o,n)),t.finite=()=>t;let r=t._zod.bag;t.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),t.isFinite=!0,t.format=r.format??null});function X_(t){return Tc(va,t)}a(X_,"number");var li=w("ZodNumberFormat",(t,e)=>{Ns.init(t,e),va.init(t,e)});function Lp(t){return wc(li,t)}a(Lp,"int");function AA(t){return rp(li,t)}a(AA,"float32");function wA(t){return np(li,t)}a(wA,"float64");function IA(t){return op(li,t)}a(IA,"int32");function CA(t){return ip(li,t)}a(CA,"uint32");var ba=w("ZodBoolean",(t,e)=>{Ko.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Uy(t,r,o,n)});function Y_(t){return Ic(ba,t)}a(Y_,"boolean");var Ea=w("ZodBigInt",(t,e)=>{na.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(o,n,i)=>My(t,o,n,i),t.gte=(o,n)=>t.check(At(o,n)),t.min=(o,n)=>t.check(At(o,n)),t.gt=(o,n)=>t.check(Zr(o,n)),t.gte=(o,n)=>t.check(At(o,n)),t.min=(o,n)=>t.check(At(o,n)),t.lt=(o,n)=>t.check(Hr(o,n)),t.lte=(o,n)=>t.check(Vt(o,n)),t.max=(o,n)=>t.check(Vt(o,n)),t.positive=o=>t.check(Zr(BigInt(0),o)),t.negative=o=>t.check(Hr(BigInt(0),o)),t.nonpositive=o=>t.check(Vt(BigInt(0),o)),t.nonnegative=o=>t.check(At(BigInt(0),o)),t.multipleOf=(o,n)=>t.check(zn(o,n));let r=t._zod.bag;t.minValue=r.minimum??null,t.maxValue=r.maximum??null,t.format=r.format??null});function RA(t){return ap(Ea,t)}a(RA,"bigint");var nf=w("ZodBigIntFormat",(t,e)=>{Id.init(t,e),Ea.init(t,e)});function OA(t){return sp(nf,t)}a(OA,"int64");function kA(t){return cp(nf,t)}a(kA,"uint64");var Q_=w("ZodSymbol",(t,e)=>{Cd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Ly(t,r,o,n)});function NA(t){return up(Q_,t)}a(NA,"symbol");var ev=w("ZodUndefined",(t,e)=>{Rd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Fy(t,r,o,n)});function $A(t){return lp(ev,t)}a($A,"_undefined");var tv=w("ZodNull",(t,e)=>{Od.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>jy(t,r,o,n)});function rv(t){return dp(tv,t)}a(rv,"_null");var nv=w("ZodAny",(t,e)=>{$s.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Gy(t,r,o,n)});function zA(){return Oc(nv)}a(zA,"any");var ov=w("ZodUnknown",(t,e)=>{zs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Vy(t,r,o,n)});function ui(){return kc(ov)}a(ui,"unknown");var iv=w("ZodNever",(t,e)=>{kd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>qy(t,r,o,n)});function of(t){return pp(iv,t)}a(of,"never");var av=w("ZodVoid",(t,e)=>{Ds.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>By(t,r,o,n)});function DA(t){return Nc(av,t)}a(DA,"_void");var cu=w("ZodDate",(t,e)=>{Us.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(o,n,i)=>Hy(t,o,n,i),t.min=(o,n)=>t.check(At(o,n)),t.max=(o,n)=>t.check(Vt(o,n));let r=t._zod.bag;t.minDate=r.minimum?new Date(r.minimum):null,t.maxDate=r.maximum?new Date(r.maximum):null});function UA(t){return fp(cu,t)}a(UA,"date");var sv=w("ZodArray",(t,e)=>{Ms.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>o_(t,r,o,n),t.element=e.element,t.min=(r,o)=>t.check(vt(r,o)),t.nonempty=r=>t.check(vt(1,r)),t.max=(r,o)=>t.check(po(r,o)),t.length=(r,o)=>t.check(fo(r,o)),t.unwrap=()=>t.element});function uu(t,e){return Ny(sv,t,e)}a(uu,"array");function MA(t){let e=t._zod.def.shape;return sf(Object.keys(e))}a(MA,"keyof");var lu=w("ZodObject",(t,e)=>{jg.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>i_(t,r,o,n),ie.defineLazy(t,"shape",()=>e.shape),t.keyof=()=>sf(Object.keys(t._zod.def.shape)),t.catchall=r=>t.clone({...t._zod.def,catchall:r}),t.passthrough=()=>t.clone({...t._zod.def,catchall:ui()}),t.loose=()=>t.clone({...t._zod.def,catchall:ui()}),t.strict=()=>t.clone({...t._zod.def,catchall:of()}),t.strip=()=>t.clone({...t._zod.def,catchall:void 0}),t.extend=r=>ie.extend(t,r),t.safeExtend=r=>ie.safeExtend(t,r),t.merge=r=>ie.merge(t,r),t.pick=r=>ie.pick(t,r),t.omit=r=>ie.omit(t,r),t.partial=(...r)=>ie.partial(uf,t,r[0]),t.required=(...r)=>ie.required(lf,t,r[0])});function LA(t,e){let r={type:"object",shape:t??{},...ie.normalizeParams(e)};return new lu(r)}a(LA,"object");function jA(t,e){return new lu({type:"object",shape:t,catchall:of(),...ie.normalizeParams(e)})}a(jA,"strictObject");function FA(t,e){return new lu({type:"object",shape:t,catchall:ui(),...ie.normalizeParams(e)})}a(FA,"looseObject");var du=w("ZodUnion",(t,e)=>{Jo.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Ep(t,r,o,n),t.options=e.options});function af(t,e){return new du({type:"union",options:t,...ie.normalizeParams(e)})}a(af,"union");var cv=w("ZodXor",(t,e)=>{du.init(t,e),$d.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Ep(t,r,o,n),t.options=e.options});function BA(t,e){return new cv({type:"union",options:t,inclusive:!1,...ie.normalizeParams(e)})}a(BA,"xor");var uv=w("ZodDiscriminatedUnion",(t,e)=>{du.init(t,e),Ls.init(t,e)});function qA(t,e,r){return new uv({type:"union",options:e,discriminator:t,...ie.normalizeParams(r)})}a(qA,"discriminatedUnion");var lv=w("ZodIntersection",(t,e)=>{zd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>a_(t,r,o,n)});function dv(t,e){return new lv({type:"intersection",left:t,right:e})}a(dv,"intersection");var pv=w("ZodTuple",(t,e)=>{js.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>s_(t,r,o,n),t.rest=r=>t.clone({...t._zod.def,rest:r})});function fv(t,e,r){let o=e instanceof Te,n=o?r:e,i=o?e:null;return new pv({type:"tuple",items:t,rest:i,...ie.normalizeParams(n)})}a(fv,"tuple");var pu=w("ZodRecord",(t,e)=>{Fs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>c_(t,r,o,n),t.keyType=e.keyType,t.valueType=e.valueType});function mv(t,e,r){return new pu({type:"record",keyType:t,valueType:e,...ie.normalizeParams(r)})}a(mv,"record");function GA(t,e,r){let o=Rt(t);return o._zod.values=void 0,new pu({type:"record",keyType:o,valueType:e,...ie.normalizeParams(r)})}a(GA,"partialRecord");function VA(t,e,r){return new pu({type:"record",keyType:t,valueType:e,mode:"loose",...ie.normalizeParams(r)})}a(VA,"looseRecord");var hv=w("ZodMap",(t,e)=>{Dd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>r_(t,r,o,n),t.keyType=e.keyType,t.valueType=e.valueType,t.min=(...r)=>t.check(Wr(...r)),t.nonempty=r=>t.check(Wr(1,r)),t.max=(...r)=>t.check(Dn(...r)),t.size=(...r)=>t.check(lo(...r))});function HA(t,e,r){return new hv({type:"map",keyType:t,valueType:e,...ie.normalizeParams(r)})}a(HA,"map");var gv=w("ZodSet",(t,e)=>{Ud.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>n_(t,r,o,n),t.min=(...r)=>t.check(Wr(...r)),t.nonempty=r=>t.check(Wr(1,r)),t.max=(...r)=>t.check(Dn(...r)),t.size=(...r)=>t.check(lo(...r))});function ZA(t,e){return new gv({type:"set",valueType:t,...ie.normalizeParams(e)})}a(ZA,"set");var ga=w("ZodEnum",(t,e)=>{Bs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(o,n,i)=>Zy(t,o,n,i),t.enum=e.entries,t.options=Object.values(e.entries);let r=new Set(Object.keys(e.entries));t.extract=(o,n)=>{let i={};for(let s of o)if(r.has(s))i[s]=e.entries[s];else throw new Error(`Key ${s} not found in enum`);return new ga({...e,checks:[],...ie.normalizeParams(n),entries:i})},t.exclude=(o,n)=>{let i={...e.entries};for(let s of o)if(r.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new ga({...e,checks:[],...ie.normalizeParams(n),entries:i})}});function sf(t,e){let r=Array.isArray(t)?Object.fromEntries(t.map(o=>[o,o])):t;return new ga({type:"enum",entries:r,...ie.normalizeParams(e)})}a(sf,"_enum");function WA(t,e){return new ga({type:"enum",entries:t,...ie.normalizeParams(e)})}a(WA,"nativeEnum");var yv=w("ZodLiteral",(t,e)=>{qs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Wy(t,r,o,n),t.values=new Set(e.values),Object.defineProperty(t,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function KA(t,e){return new yv({type:"literal",values:Array.isArray(t)?t:[t],...ie.normalizeParams(e)})}a(KA,"literal");var _v=w("ZodFile",(t,e)=>{Md.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Xy(t,r,o,n),t.min=(r,o)=>t.check(Wr(r,o)),t.max=(r,o)=>t.check(Dn(r,o)),t.mime=(r,o)=>t.check(ni(Array.isArray(r)?r:[r],o))});function JA(t){return hp(_v,t)}a(JA,"file");var vv=w("ZodTransform",(t,e)=>{Gs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>t_(t,r,o,n),t._zod.parse=(r,o)=>{if(o.direction==="backward")throw new io(t.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(ie.issue(i,r.value,e));else{let s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=t),r.issues.push(ie.issue(s))}};let n=e.transform(r.value,r);return n instanceof Promise?n.then(i=>(r.value=i,r)):(r.value=n,r)}});function cf(t){return new vv({type:"transform",transform:t})}a(cf,"transform");var uf=w("ZodOptional",(t,e)=>{oa.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Pp(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function ou(t){return new uf({type:"optional",innerType:t})}a(ou,"optional");var bv=w("ZodExactOptional",(t,e)=>{Ld.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Pp(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function Ev(t){return new bv({type:"optional",innerType:t})}a(Ev,"exactOptional");var Pv=w("ZodNullable",(t,e)=>{Vs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>u_(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function iu(t){return new Pv({type:"nullable",innerType:t})}a(iu,"nullable");function XA(t){return ou(iu(t))}a(XA,"nullish");var Sv=w("ZodDefault",(t,e)=>{jd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>d_(t,r,o,n),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function xv(t,e){return new Sv({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():ie.shallowClone(e)}})}a(xv,"_default");var Tv=w("ZodPrefault",(t,e)=>{Fd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>p_(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function Av(t,e){return new Tv({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():ie.shallowClone(e)}})}a(Av,"prefault");var lf=w("ZodNonOptional",(t,e)=>{Bd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>l_(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function wv(t,e){return new lf({type:"nonoptional",innerType:t,...ie.normalizeParams(e)})}a(wv,"nonoptional");var Iv=w("ZodSuccess",(t,e)=>{qd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Yy(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function YA(t){return new Iv({type:"success",innerType:t})}a(YA,"success");var Cv=w("ZodCatch",(t,e)=>{Gd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>f_(t,r,o,n),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function Rv(t,e){return new Cv({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}a(Rv,"_catch");var Ov=w("ZodNaN",(t,e)=>{Vd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Ky(t,r,o,n)});function QA(t){return mp(Ov,t)}a(QA,"nan");var df=w("ZodPipe",(t,e)=>{Hs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>m_(t,r,o,n),t.in=e.in,t.out=e.out});function au(t,e){return new df({type:"pipe",in:t,out:e})}a(au,"pipe");var pf=w("ZodCodec",(t,e)=>{df.init(t,e),ia.init(t,e)});function ew(t,e,r){return new pf({type:"pipe",in:t,out:e,transform:r.decode,reverseTransform:r.encode})}a(ew,"codec");var kv=w("ZodReadonly",(t,e)=>{Hd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>h_(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function Nv(t){return new kv({type:"readonly",innerType:t})}a(Nv,"readonly");var $v=w("ZodTemplateLiteral",(t,e)=>{Zd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Jy(t,r,o,n)});function tw(t,e){return new $v({type:"template_literal",parts:t,...ie.normalizeParams(e)})}a(tw,"templateLiteral");var zv=w("ZodLazy",(t,e)=>{Jd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>y_(t,r,o,n),t.unwrap=()=>t._zod.def.getter()});function Dv(t){return new zv({type:"lazy",getter:t})}a(Dv,"lazy");var Uv=w("ZodPromise",(t,e)=>{Kd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>g_(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function rw(t){return new Uv({type:"promise",innerType:t})}a(rw,"promise");var Mv=w("ZodFunction",(t,e)=>{Wd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>e_(t,r,o,n)});function nw(t){return new Mv({type:"function",input:Array.isArray(t?.input)?fv(t?.input):t?.input??uu(ui()),output:t?.output??ui()})}a(nw,"_function");var fu=w("ZodCustom",(t,e)=>{Zs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Qy(t,r,o,n)});function ow(t){let e=new rt({check:"custom"});return e._zod.check=t,e}a(ow,"check");function iw(t,e){return jc(fu,t??(()=>!0),e)}a(iw,"custom");function Lv(t,e={}){return Fc(fu,t,e)}a(Lv,"refine");function jv(t){return gp(t)}a(jv,"superRefine");var aw=yp,sw=_p;function cw(t,e={}){let r=new fu({type:"custom",check:"custom",fn:a(o=>o instanceof t,"fn"),abort:!0,...ie.normalizeParams(e)});return r._zod.bag.Class=t,r._zod.check=o=>{o.value instanceof t||o.issues.push({code:"invalid_type",expected:t.name,input:o.value,inst:r,path:[...r._zod.def.path??[]]})},r}a(cw,"_instanceof");var uw=a((...t)=>vp({Codec:pf,Boolean:ba,String:ya},...t),"stringbool");function lw(t){let e=Dv(()=>af([Mp(t),X_(),Y_(),rv(),uu(e),mv(Mp(),e)]));return e}a(lw,"json");function dw(t,e){return au(cf(t),e)}a(dw,"preprocess");var nj={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 oj(t){pt({customError:t})}a(oj,"setErrorMap");function ij(){return pt().customError}a(ij,"getErrorMap");var Fv;Fv||(Fv={});var pe={...ru,...Np,iso:ha},aj=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 sj(t,e){let r=t.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":e??"draft-2020-12"}a(sj,"detectVersion");function cj(t,e){if(!t.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=t.slice(1).split("/").filter(Boolean);if(r.length===0)return e.rootSchema;let o=e.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===o){let n=r[1];if(!n||!e.defs[n])throw new Error(`Reference not found: ${t}`);return e.defs[n]}throw new Error(`Reference not found: ${t}`)}a(cj,"resolveRef");function pw(t,e){if(t.not!==void 0){if(typeof t.not=="object"&&Object.keys(t.not).length===0)return pe.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(t.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(t.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(t.if!==void 0||t.then!==void 0||t.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(t.dependentSchemas!==void 0||t.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(t.$ref){let n=t.$ref;if(e.refs.has(n))return e.refs.get(n);if(e.processing.has(n))return pe.lazy(()=>{if(!e.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return e.refs.get(n)});e.processing.add(n);let i=cj(n,e),s=Ft(i,e);return e.refs.set(n,s),e.processing.delete(n),s}if(t.enum!==void 0){let n=t.enum;if(e.version==="openapi-3.0"&&t.nullable===!0&&n.length===1&&n[0]===null)return pe.null();if(n.length===0)return pe.never();if(n.length===1)return pe.literal(n[0]);if(n.every(s=>typeof s=="string"))return pe.enum(n);let i=n.map(s=>pe.literal(s));return i.length<2?i[0]:pe.union([i[0],i[1],...i.slice(2)])}if(t.const!==void 0)return pe.literal(t.const);let r=t.type;if(Array.isArray(r)){let n=r.map(i=>{let s={...t,type:i};return pw(s,e)});return n.length===0?pe.never():n.length===1?n[0]:pe.union(n)}if(!r)return pe.any();let o;switch(r){case"string":{let n=pe.string();if(t.format){let i=t.format;i==="email"?n=n.check(pe.email()):i==="uri"||i==="uri-reference"?n=n.check(pe.url()):i==="uuid"||i==="guid"?n=n.check(pe.uuid()):i==="date-time"?n=n.check(pe.iso.datetime()):i==="date"?n=n.check(pe.iso.date()):i==="time"?n=n.check(pe.iso.time()):i==="duration"?n=n.check(pe.iso.duration()):i==="ipv4"?n=n.check(pe.ipv4()):i==="ipv6"?n=n.check(pe.ipv6()):i==="mac"?n=n.check(pe.mac()):i==="cidr"?n=n.check(pe.cidrv4()):i==="cidr-v6"?n=n.check(pe.cidrv6()):i==="base64"?n=n.check(pe.base64()):i==="base64url"?n=n.check(pe.base64url()):i==="e164"?n=n.check(pe.e164()):i==="jwt"?n=n.check(pe.jwt()):i==="emoji"?n=n.check(pe.emoji()):i==="nanoid"?n=n.check(pe.nanoid()):i==="cuid"?n=n.check(pe.cuid()):i==="cuid2"?n=n.check(pe.cuid2()):i==="ulid"?n=n.check(pe.ulid()):i==="xid"?n=n.check(pe.xid()):i==="ksuid"&&(n=n.check(pe.ksuid()))}typeof t.minLength=="number"&&(n=n.min(t.minLength)),typeof t.maxLength=="number"&&(n=n.max(t.maxLength)),t.pattern&&(n=n.regex(new RegExp(t.pattern))),o=n;break}case"number":case"integer":{let n=r==="integer"?pe.number().int():pe.number();typeof t.minimum=="number"&&(n=n.min(t.minimum)),typeof t.maximum=="number"&&(n=n.max(t.maximum)),typeof t.exclusiveMinimum=="number"?n=n.gt(t.exclusiveMinimum):t.exclusiveMinimum===!0&&typeof t.minimum=="number"&&(n=n.gt(t.minimum)),typeof t.exclusiveMaximum=="number"?n=n.lt(t.exclusiveMaximum):t.exclusiveMaximum===!0&&typeof t.maximum=="number"&&(n=n.lt(t.maximum)),typeof t.multipleOf=="number"&&(n=n.multipleOf(t.multipleOf)),o=n;break}case"boolean":{o=pe.boolean();break}case"null":{o=pe.null();break}case"object":{let n={},i=t.properties||{},s=new Set(t.required||[]);for(let[l,p]of Object.entries(i)){let f=Ft(p,e);n[l]=s.has(l)?f:f.optional()}if(t.propertyNames){let l=Ft(t.propertyNames,e),p=t.additionalProperties&&typeof t.additionalProperties=="object"?Ft(t.additionalProperties,e):pe.any();if(Object.keys(n).length===0){o=pe.record(l,p);break}let f=pe.object(n).passthrough(),y=pe.looseRecord(l,p);o=pe.intersection(f,y);break}if(t.patternProperties){let l=t.patternProperties,p=Object.keys(l),f=[];for(let m of p){let h=Ft(l[m],e),_=pe.string().regex(new RegExp(m));f.push(pe.looseRecord(_,h))}let y=[];if(Object.keys(n).length>0&&y.push(pe.object(n).passthrough()),y.push(...f),y.length===0)o=pe.object({}).passthrough();else if(y.length===1)o=y[0];else{let m=pe.intersection(y[0],y[1]);for(let h=2;h<y.length;h++)m=pe.intersection(m,y[h]);o=m}break}let u=pe.object(n);t.additionalProperties===!1?o=u.strict():typeof t.additionalProperties=="object"?o=u.catchall(Ft(t.additionalProperties,e)):o=u.passthrough();break}case"array":{let n=t.prefixItems,i=t.items;if(n&&Array.isArray(n)){let s=n.map(l=>Ft(l,e)),u=i&&typeof i=="object"&&!Array.isArray(i)?Ft(i,e):void 0;u?o=pe.tuple(s).rest(u):o=pe.tuple(s),typeof t.minItems=="number"&&(o=o.check(pe.minLength(t.minItems))),typeof t.maxItems=="number"&&(o=o.check(pe.maxLength(t.maxItems)))}else if(Array.isArray(i)){let s=i.map(l=>Ft(l,e)),u=t.additionalItems&&typeof t.additionalItems=="object"?Ft(t.additionalItems,e):void 0;u?o=pe.tuple(s).rest(u):o=pe.tuple(s),typeof t.minItems=="number"&&(o=o.check(pe.minLength(t.minItems))),typeof t.maxItems=="number"&&(o=o.check(pe.maxLength(t.maxItems)))}else if(i!==void 0){let s=Ft(i,e),u=pe.array(s);typeof t.minItems=="number"&&(u=u.min(t.minItems)),typeof t.maxItems=="number"&&(u=u.max(t.maxItems)),o=u}else o=pe.array(pe.any());break}default:throw new Error(`Unsupported type: ${r}`)}return t.description&&(o=o.describe(t.description)),t.default!==void 0&&(o=o.default(t.default)),o}a(pw,"convertBaseSchema");function Ft(t,e){if(typeof t=="boolean")return t?pe.any():pe.never();let r=pw(t,e),o=t.type||t.enum!==void 0||t.const!==void 0;if(t.anyOf&&Array.isArray(t.anyOf)){let u=t.anyOf.map(p=>Ft(p,e)),l=pe.union(u);r=o?pe.intersection(r,l):l}if(t.oneOf&&Array.isArray(t.oneOf)){let u=t.oneOf.map(p=>Ft(p,e)),l=pe.xor(u);r=o?pe.intersection(r,l):l}if(t.allOf&&Array.isArray(t.allOf))if(t.allOf.length===0)r=o?r:pe.any();else{let u=o?r:Ft(t.allOf[0],e),l=o?0:1;for(let p=l;p<t.allOf.length;p++)u=pe.intersection(u,Ft(t.allOf[p],e));r=u}t.nullable===!0&&e.version==="openapi-3.0"&&(r=pe.nullable(r)),t.readOnly===!0&&(r=pe.readonly(r));let n={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let u of i)u in t&&(n[u]=t[u]);let s=["contentEncoding","contentMediaType","contentSchema"];for(let u of s)u in t&&(n[u]=t[u]);for(let u of Object.keys(t))aj.has(u)||(n[u]=t[u]);return Object.keys(n).length>0&&e.registry.add(r,n),r}a(Ft,"convertSchema");function fw(t,e){if(typeof t=="boolean")return t?pe.any():pe.never();let r=sj(t,e?.defaultTarget),o=t.$defs||t.definitions||{},n={version:r,defs:o,refs:new Map,processing:new Set,rootSchema:t,registry:e?.registry??Ot};return Ft(t,n)}a(fw,"fromJSONSchema");var Bv={};Xt(Bv,{bigint:()=>pj,boolean:()=>dj,date:()=>fj,number:()=>lj,string:()=>uj});function uj(t){return ec(ya,t)}a(uj,"string");function lj(t){return Ac(va,t)}a(lj,"number");function dj(t){return Cc(ba,t)}a(dj,"boolean");function pj(t){return Rc(Ea,t)}a(pj,"bigint");function fj(t){return $c(cu,t)}a(fj,"date");pt(Ws());var qv={required:"required",invalidGitRepoSlug:"invalidGitRepoSlug",invalidGitRepoBranch:"invalidGitRepoBranch",invalidGitRepoRemoteUrl:"invalidGitRepoRemoteUrl",invalidExternalId:"invalidExternalId",invalidFileName:"invalidFileName",messageRequiresContentOrFiles:"messageRequiresContentOrFiles",agentConfigTooLarge:"agentConfigTooLarge",invalidGcpResourceId:"invalidGcpResourceId",duplicateRouteName:"duplicateRouteName",atLeastOne:"atLeastOne",wholeNumber:"wholeNumber",atMostTenThousand:"atMostTenThousand",tierNameTooLong:"tierNameTooLong",tierDescriptionTooLong:"tierDescriptionTooLong",invalidEmoji:"invalidEmoji",tierTooManyModels:"tierTooManyModels",tierDuplicateModel:"tierDuplicateModel",tierThinkingBudgetInvalid:"tierThinkingBudgetInvalid",invalidHeaderName:"invalidHeaderName",reservedHeaderName:"reservedHeaderName",duplicateHeaderName:"duplicateHeaderName",invalidHeaderValue:"invalidHeaderValue"};var mw=(r=>(r.IMAGE="image",r.TEXT="text",r))(mw||{}),Zt=ue.object({apiKey:ue.string()}),hw=ue.object({serviceAccountJson:ue.string().min(1)}),gw=Zt,yw=Zt.extend({apiKeyHash:ue.string()}),_w=Zt,vw=Zt,bw=Zt,Ew=Zt,Pw=Zt,Sw=Zt,xw=ue.object({accessKeyId:ue.string().min(1),secretAccessKey:ue.string().min(1),sessionToken:ue.string().optional()}),Tw=Zt,Aw=ue.object({}),ww=ue.object({}),Gv=ue.object({modelId:ue.string(),modelName:ue.string(),modelType:ue.enum(mw)}),Iw=ue.object({apiKeyHeader:ue.string(),baseUrl:ue.string(),models:ue.array(Gv),defaultHeaders:ue.record(ue.string(),ue.string()).optional(),apiStyle:ue.enum(["chat","responses"]).optional()}),Cw=ue.object({accountId:ue.string(),gatewayId:ue.string(),models:ue.array(Gv),vertexProject:ue.string().optional(),vertexRegion:ue.string().optional()}),Rw=ue.object({resourceName:ue.string(),apiVersion:ue.preprocess(t=>typeof t=="string"&&t.trim().length===0?void 0:t,ue.string().optional())}),Ow=ue.object({}),kw=ue.object({}),Nw=ue.object({}),$w=ue.object({region:ue.string().min(1)}),zw=ue.object({project:ue.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/,qv.invalidGcpResourceId),region:ue.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/,qv.invalidGcpResourceId),models:ue.array(Gv)}),Dw=ue.object({}),di=ue.object({}),AX=ue.union([gw,bw,Ew,Pw,Sw,vw,_w,yw,xw,hw,Tw]),wX=ue.union([Iw,Cw,Rw,zw,$w,Aw,Ow,kw,Nw,ww,Dw,di]),IX=ue.discriminatedUnion("provider",[ue.object({provider:ue.literal("openai"),config:kw.partial(),auth:Pw.partial()}),ue.object({provider:ue.literal("openrouter"),config:Nw.partial(),auth:Sw.partial()}),ue.object({provider:ue.literal("anthropic"),config:Aw.partial(),auth:gw.partial()}),ue.object({provider:ue.literal("azure"),config:Rw.partial(),auth:bw.partial()}),ue.object({provider:ue.literal("google"),config:Ow.partial(),auth:Ew.partial()}),ue.object({provider:ue.literal("cloudflare-gateway"),config:Cw.partial(),auth:vw.partial()}),ue.object({provider:ue.literal("custom"),config:Iw.partial(),auth:_w.partial()}),ue.object({provider:ue.literal("activepieces"),config:ww.partial(),auth:yw.partial()}),ue.object({provider:ue.literal("bedrock"),config:$w.partial(),auth:xw.partial()}),ue.object({provider:ue.literal("vertex"),config:zw.partial(),auth:hw.partial()}),ue.object({provider:ue.literal("mistral"),config:Dw.partial(),auth:Tw.partial()}),ue.object({provider:ue.literal("xai"),config:di.partial(),auth:Zt.partial()}),ue.object({provider:ue.literal("deepseek"),config:di.partial(),auth:Zt.partial()}),ue.object({provider:ue.literal("zai"),config:di.partial(),auth:Zt.partial()}),ue.object({provider:ue.literal("qwen"),config:di.partial(),auth:Zt.partial()}),ue.object({provider:ue.literal("minimax"),config:di.partial(),auth:Zt.partial()}),ue.object({provider:ue.literal("moonshot"),config:di.partial(),auth:Zt.partial()})]);var MX=v().check(Ut(/^#[0-9A-Fa-f]{6}$/));var jX=O({filename:v(),data:Ce(),type:ve("file"),mimetype:q(v())});var mj=Tt(Mw());var ZX=O({...Or,name:v(),permissions:Se(v()),platformId:mt(v()),type:v(),userCount:q(kt())});var nY=ue.enum(["active","out_of_credits","rejected","unreachable"]);var Lw=(o=>(o.AGENT_DECIDE="agent-decide",o.CHOOSE_YOURSELF="choose-yourself",o.LEAVE_EMPTY="leave-empty",o))(Lw||{}),Vv=(r=>(r.FILE="FILE",r.TABLE="TABLE",r))(Vv||{}),Hv=(o=>(o.SSE="sse",o.STREAMABLE_HTTP="streamable-http",o.SIMPLE_HTTP="http",o))(Hv||{});var Zv=(o=>(o.TEXT="text",o.NUMBER="number",o.BOOLEAN="boolean",o))(Zv||{});var Wv=(r=>(r.IN_PROGRESS="in-progress",r.COMPLETED="completed",r))(Wv||{});var hj=O({mode:Ee(Lw),value:Ce()}),gj=O({auth:q(v()),fields:Re(v(),hj)}),yj=O({pieceName:v(),pieceVersion:v(),actionName:v(),predefinedInput:q(gj)}),_j=O({type:ve("PIECE"),toolName:v().check(vt(1)),pieceMetadata:yj}),vj=O({type:ve("none")}),bj=O({type:ve("access_token"),accessToken:v()}),Ej=O({type:ve("api_key"),apiKey:v(),apiKeyHeader:v()}),Pj=O({type:ve("headers"),headers:Re(v(),v())}),Sj=yo("type",[vj,bj,Ej,Pj]),jw=O({type:ve("FLOW"),toolName:v().check(vt(1)),externalFlowId:v(),flowDisplayName:q(v())}),Fw=O({type:ve("MCP"),toolName:v().check(vt(1)),serverUrl:$T(),protocol:Ee(Hv),auth:Sj}),Bw=O({type:ve("KNOWLEDGE_BASE"),toolName:v().check(vt(1)),sourceType:Ee(Vv),sourceId:v(),sourceName:v()}),xj=yo("type",[_j,jw,Fw,Bw]),Tj=O({displayName:v(),description:q(v()),type:Ee(Zv)}),qw=O({type:ve("MARKDOWN"),markdown:v()}),Pa={type:ve("TOOL_CALL"),input:mt(Re(v(),Ce())),output:q(Ce()),toolName:v(),status:Ee(Wv),toolCallId:v(),startTime:v(),endTime:q(v())},GY=O(Pa),Gw=yo("toolCallType",[O({...Pa,toolCallType:ve("PIECE"),pieceName:v(),pieceVersion:v(),actionName:v()}),O({...Pa,toolCallType:ve("FLOW"),displayName:v(),externalFlowId:v()}),O({...Pa,toolCallType:ve("MCP"),displayName:v(),serverUrl:v()}),O({...Pa,toolCallType:ve("KNOWLEDGE_BASE"),displayName:v(),sourceType:v()}),O({...Pa,toolCallType:ve("UNKNOWN"),displayName:v()})]),Aj=Ue([qw,Gw]);var wj=10800*1e3,Ij=900*1e3;var Xv=(r=>(r.IMAGE="image",r.TEXT="text",r))(Xv||{}),Fn=O({apiKey:v()}),Rj=Fn,Oj=O({apiKey:v(),apiKeyHash:v()}),kj=Fn,Nj=Fn,$j=Fn,zj=Fn,Dj=Fn,Uj=Fn,Mj=Fn,Ww=O({serviceAccountJson:v().check(vt(1))}),Kw=O({accessKeyId:v().check(vt(1)),secretAccessKey:v().check(vt(1)),sessionToken:q(v())}),Lj=O({}),jj=O({}),Fj=O({}),Bj=O({}),qj=O({}),Gj=O({}),Yv=O({modelId:v(),modelName:v(),modelType:Ee(Xv)}),Jw=O({apiKeyHeader:v(),baseUrl:v(),models:Se(Yv),defaultHeaders:q(Re(v(),v())),apiStyle:q(Ee(["chat","responses"]))}),Xw=O({accountId:v(),gatewayId:v(),models:Se(Yv),vertexProject:q(v()),vertexRegion:q(v())}),Yw=O({resourceName:v(),apiVersion:vo(_o(t=>typeof t=="string"&&t.trim().length===0?void 0:t),q(v()))}),Qw=O({region:v().check(vt(1))}),eI=O({project:v().check(Ut(/^[a-z0-9][a-z0-9-]{0,62}$/)),region:v().check(Ut(/^[a-z0-9][a-z0-9-]{0,62}$/)),models:Se(Yv)}),tI=O({}),Vj=Ue([Rj,$j,zj,Dj,Uj,Nj,kj,Oj,Kw,Ww,Mj]),rI=Ue([Jw,Xw,Yw,eI,Qw,Lj,Fj,Bj,qj,jj,Gj,tI]),Hj=O({id:v(),name:v(),type:Ee(Xv)}),Zj=O({id:v(),name:v(),provider:Ee(So),config:rI,enabledForChat:He()}),Wj=O({provider:Ee(So),name:v(),enabledForChat:He(),keys:Se(O({id:v(),name:v()}))}),Kj=O({provider:Ee(So),configId:v(),config:rI,auth:Vj,platformId:v()});var WY={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"},Vw=["gpt-5.5","gpt-5.4-mini","gpt-5.4-nano","gpt-4.1","gpt-4.1-mini"],Jj=["claude-sonnet-4-6","claude-opus-4-7","claude-haiku-4-5"],nI=["claude-sonnet-4.6","claude-opus-4.7","claude-opus-4.8","claude-haiku-4.5"],Kv=["gemini-3.7-flash","gemini-3.1-pro-preview","gemini-3-flash-preview"],Jv=["gemini-2.5-pro","gemini-2.5-flash"],Xj=["grok-4.20"],KY={google:Jv,vertex:Jv},JY=nI.map(t=>`anthropic/${t}`),Yj={openai:Vw,anthropic:Jj,google:Kv,vertex:Kv,activepieces:[...nI.map(t=>`anthropic/${t}`),...Vw.map(t=>`openai/${t}`),...[...Kv,...Jv].map(t=>`google/${t}`),...Xj.map(t=>`x-ai/${t}`)]};var Hw=128e3,Qj={openai:128e3,anthropic:2e5,google:1048576,bedrock:2e5,vertex:1048576,azure:128e3,openrouter:128e3,activepieces:2e5,mistral:128e3};function eF({provider:t}){return t?Qj[t]??Hw:Hw}a(eF,"getMaxContextTokens");var Zw={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"},tF={anthropic:"native",google:"native",openrouter:"plugin",activepieces:"plugin"},rF=new Set(["anthropic","mistral","xai","deepseek","zai","qwen","minimax","moonshot"]),nF={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 Mt(t){return{chatModels:Yj[t],maxContextTokens:eF({provider:t}),defaultEmbeddingModel:Zw[t],supportsEmbedding:Zw[t]!==void 0,supportsImageGeneration:!rF.has(t),defaultImageModel:oF[t],webSearch:tF[t]}}a(Mt,"buildProviderCapabilities");var oI=[{id:"fast",label:"Fast",modelId:"google/gemini-3.1-flash-lite-image"},{id:"smart",label:"Expert",modelId:"google/gemini-3.1-flash-image"},{id:"premium",label:"Heavy",modelId:"google/gemini-3-pro-image"}],oF={activepieces:oI[0].modelId,openrouter:"google/gemini-3.1-flash-lite-image",openai:"gpt-image-1.5",google:"gemini-3.1-flash-image"},iF={openai:Mt("openai"),anthropic:Mt("anthropic"),openrouter:Mt("openrouter"),azure:Mt("azure"),google:Mt("google"),"cloudflare-gateway":Mt("cloudflare-gateway"),custom:Mt("custom"),bedrock:Mt("bedrock"),vertex:Mt("vertex"),mistral:Mt("mistral"),activepieces:Mt("activepieces"),xai:Mt("xai"),deepseek:Mt("deepseek"),zai:Mt("zai"),qwen:Mt("qwen"),minimax:Mt("minimax"),moonshot:Mt("moonshot")};var aF=O({base64Url:v(),fileName:v(),extension:q(v())}),sF=O({mimeType:v(),url:v(),fileName:q(v())}),Qv=Ue([aF,sF]);var cF=Ue([O({type:ve("file"),value:Qv}),O({type:ve("markdown"),value:v(),files:q(Se(Qv))})]),uF=O({sessionId:v(),message:v(),files:q(Se(v()))});var aI=(r=>(r.ON_NEW_RECORD="ON_NEW_RECORD",r.ON_UPDATE_RECORD="ON_UPDATE_RECORD",r))(aI||{}),sI=(r=>(r.ENABLED="ENABLED",r.DISABLED="DISABLED",r))(sI||{}),eb=(o=>(o.RECORD_CREATED="RECORD_CREATED",o.RECORD_UPDATED="RECORD_UPDATED",o.RECORD_DELETED="RECORD_DELETED",o))(eb||{});var lF=Ue([O({...Or,name:v(),externalId:v(),type:ve("STATIC_DROPDOWN"),tableId:v(),projectId:v(),data:O({options:Se(O({value:v()}))})}),O({...Or,name:v(),externalId:v(),type:Ue([ve("TEXT"),ve("NUMBER"),ve("DATE"),ve("DATETIME")]),tableId:v(),projectId:v()})]),dF=O({...Or,name:v(),folderId:mt(v()),projectId:v(),externalId:v(),status:N_(sI),trigger:N_(aI)}),pF=O({...Or,tableId:v(),projectId:v(),cells:Re(v(),O({updated:v(),created:v(),value:Ce(),fieldName:v()}))}),fF=O({events:Se(Ee(eb)),webhookUrl:v(),flowId:v()}),mF=O({fields:Se(O({id:v(),name:v()})),rows:Se(Re(v(),v())),name:v()}),hF=O({projectId:v(),limit:q(Vc.number()),cursor:q(v()),name:q(v()),externalIds:kp(v()),folderId:q(v()),folderIds:kp(v())}),gF=O({records:Se(Se(O({fieldId:v(),value:uI()}))),tableId:v()}),yF=O({cells:q(Se(O({fieldId:v(),value:uI()}))),tableId:v(),agentUpdate:q(He())}),cI=yo("operator",[pi("eq"),pi("neq"),pi("gt"),pi("gte"),pi("lt"),pi("lte"),pi("co"),iI("exists"),iI("not_exists")]),_F=O({tableId:v(),limit:q(Vc.number()),cursor:q(v()),filters:kp(cI)});function uI(){return vo(_o(t=>t==null?t:String(t)),Gc(v()))}a(uI,"coerceToString");function pi(t){return O({fieldId:v(),operator:ve(t),value:v()})}a(pi,"valueFilter");function iI(t){return O({fieldId:v(),operator:ve(t)})}a(iI,"existenceFilter");var vF=O({status:q(kt()),body:q(Ce()),headers:q(Re(v(),v()))}),bF=O({...Or,deleted:mt(Po),ownerId:v(),displayName:v(),platformId:v(),externalId:mt(v())});var lI=O({name:v(),description:q(v()),type:v(),required:He()}),EF=O({pieceName:v(),triggerName:v(),input:O({toolName:v(),toolDescription:v(),inputSchema:Se(lI),returnsResponse:He()})});var dI="^[0-9]+\\.[0-9]+\\.[0-9]+$",h7=new RegExp(dI),SF="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",g7=v().check(Ut(new RegExp(dI))),y7=v().check(Ut(new RegExp(SF))),xF=O({packageType:ve("ARCHIVE"),pieceType:Ee(pa),pieceName:v(),pieceVersion:v(),archiveId:v(),platformId:v()}),pI=O({packageType:ve("REGISTRY"),pieceType:ve("OFFICIAL"),pieceName:v(),pieceVersion:v()}),fI=O({packageType:ve("REGISTRY"),pieceType:ve("CUSTOM"),pieceName:v(),pieceVersion:v(),platformId:v()}),_7=Ue([pI,fI]),v7=Ue([xF,pI,fI]);var TF=yo("type",[O({type:ve("CRON_EXPRESSION"),cronExpression:v(),timezone:v()}),O({type:ve("INTERVAL"),intervalMs:zT().check(At(6e4))})]),b7=O({...Or,type:Ee(bo),projectId:v(),flowId:v(),triggerName:v(),schedule:mt(TF),flowVersionId:v(),pieceName:v(),pieceVersion:v(),deleted:mt(v()),simulate:He()}),mI=(k=>(k.UNKNOWN="UNKNOWN",k.FLOW_RUN_LOG="FLOW_RUN_LOG",k.FLOW_RUN_LOG_SLICE="FLOW_RUN_LOG_SLICE",k.PACKAGE_ARCHIVE="PACKAGE_ARCHIVE",k.FLOW_STEP_FILE="FLOW_STEP_FILE",k.SAMPLE_DATA="SAMPLE_DATA",k.TRIGGER_PAYLOAD="TRIGGER_PAYLOAD",k.SAMPLE_DATA_INPUT="SAMPLE_DATA_INPUT",k.TRIGGER_EVENT_FILE="TRIGGER_EVENT_FILE",k.PROJECT_RELEASE="PROJECT_RELEASE",k.FLOW_VERSION_BACKUP="FLOW_VERSION_BACKUP",k.PLATFORM_ASSET="PLATFORM_ASSET",k.USER_PROFILE_PICTURE="USER_PROFILE_PICTURE",k.WEBHOOK_PAYLOAD="WEBHOOK_PAYLOAD",k.MCP_CALL_PAYLOAD="MCP_CALL_PAYLOAD",k.KNOWLEDGE_BASE="KNOWLEDGE_BASE",k.FLOW_BUNDLE="FLOW_BUNDLE",k.PREWARM_SCOPE="PREWARM_SCOPE",k))(mI||{}),hI=(r=>(r.NONE="NONE",r.ZSTD="ZSTD",r))(hI||{}),gI=(r=>(r.S3="S3",r.DB="DB",r))(gI||{}),E7=O({...Or,projectId:mt(v()),platformId:mt(v()),type:Ee(mI),compression:Ee(hI),data:q(Ce()),location:Ee(gI),size:mt(kt()),fileName:mt(v()),s3Key:mt(v()),metadata:mt(Re(v(),v()))}),yI=(o=>(o.ADMIN="ADMIN",o.MEMBER="MEMBER",o.OPERATOR="OPERATOR",o))(yI||{}),_I=(r=>(r.ACTIVE="ACTIVE",r.INACTIVE="INACTIVE",r))(_I||{}),P7=O({id:v(),email:v(),firstName:v(),status:Ee(_I),externalId:mt(v()),platformId:mt(v()),platformRole:Ee(yI),lastName:v(),created:Po,updated:Po,lastActiveDate:mt(Po),imageUrl:mt(v())});var tb=O({...Ge.shape,...ke(Re(v(),Ce()),"OBJECT").shape});var rb=O({...Ge.shape,formatProperty:q(v()),...ke(v(),"RICH_TEXT").shape});var PI=O({...Ge.shape,...ke(v(),"COLOR").shape});var nb=Ue([pr,Un,rb,Cp,Ln,fr,Mn,A_,Hc,I_,jn,Kc,tb,Jc,Wc,w_,Zc,PI]),K={ShortText(t){return{...t,valueSchema:void 0,type:"SHORT_TEXT"}},Checkbox(t){return{...t,valueSchema:void 0,type:"CHECKBOX"}},LongText(t){return{...t,valueSchema:void 0,type:"LONG_TEXT"}},RichText(t){return{...t,valueSchema:void 0,type:"RICH_TEXT"}},MarkDown(t){return{displayName:"Markdown",required:!1,description:t.value,type:"MARKDOWN",valueSchema:void 0,variant:t.variant??"INFO"}},Number(t){return{...t,valueSchema:void 0,type:"NUMBER"}},Json(t){return{...t,valueSchema:void 0,type:"JSON"}},Array(t){return{...t,valueSchema:void 0,type:"ARRAY"}},Object(t){return{...t,valueSchema:void 0,type:"OBJECT"}},Dropdown(t){return{...t,valueSchema:void 0,type:"DROPDOWN"}},StaticDropdown(t){return{...t,valueSchema:void 0,type:"STATIC_DROPDOWN"}},MultiSelectDropdown(t){return{...t,valueSchema:void 0,type:"MULTI_SELECT_DROPDOWN"}},DynamicProperties(t){return{...t,valueSchema:void 0,type:"DYNAMIC"}},StaticMultiSelectDropdown(t){return{...t,valueSchema:void 0,type:"STATIC_MULTI_SELECT_DROPDOWN"}},DateTime(t){return{...t,valueSchema:void 0,type:"DATE_TIME"}},DateRange(t){return{...t,valueSchema:void 0,type:"DATE_RANGE"}},File(t){return{...t,valueSchema:void 0,type:"FILE"}},Custom(t){let e=t.code.toString();return{...t,code:e,valueSchema:void 0,type:"CUSTOM"}},Color(t){return{...t,valueSchema:void 0,type:"COLOR"}}};var un=O({displayName:v(),description:q(v()),hasConnectionIdentifier:q(He())});var SI=O({username:v(),password:v()}),ob=O({...un.shape,username:O({displayName:v(),description:q(v())}),password:O({displayName:v(),description:q(v())}),...ke(SI,"BASIC_AUTH").shape});var CF=Re(v(),Ue([pr,Un,jn,Ln,fr])),ib=O({...un.shape,props:CF,...ke(Ce(),"CUSTOM_AUTH").shape});var fi=O({...un.shape,...ke(O({auth:v()}),"SECRET_TEXT").shape});var RF=Re(v(),Ue([pr,Un,fi,jn,Ln,fr,Mn,Cp])),xI=O({...un.shape,props:RF,...ke(Ce(),"OIDC").shape});var ab=(r=>(r.HEADER="HEADER",r.BODY="BODY",r))(ab||{}),TI=Ue([pr,fi,fr]),AI=Re(v(),TI),OF=O({props:q(Re(v(),TI)),authUrl:v(),tokenUrl:v(),scope:Se(v()),prompt:q(Ue([ve("none"),ve("consent"),ve("login"),ve("omit")])),pkce:q(He()),pkceMethod:q(Ue([ve("plain"),ve("S256")])),authorizationMethod:q(Ee(ab)),grantType:q(Ue([Ee(Yc),ve(C_)])),extra:q(Re(v(),v()))}),wI=O({access_token:v(),props:q(AI),data:Re(v(),qc())}),sb=O({...un.shape,...OF.shape,...ke(wI,"OAUTH2").shape});var Sa=Ue([ob,ib,xI,sb,fi]),mu="Connection",cb={SecretText(t){return{...t,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(t){return{...t,valueSchema:void 0,type:"OAUTH2",displayName:t.displayName||mu}},BasicAuth(t){return{...t,valueSchema:void 0,type:"BASIC_AUTH",displayName:t.displayName||mu,required:!0}},CustomAuth(t){return{...t,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:t.displayName||mu}},OIDC(t){return{...t,valueSchema:void 0,type:"OIDC",displayName:t.displayName||mu}},None(){}};var iee={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 kF=O({...Ge.shape,...ke(Ce(),"CUSTOM").shape,code:v()});var NF=Ue([nb,Sa]),ub=Re(v(),NF),Tee=Re(v(),nb);var II=Ue([O({strategy:ve("CRON"),cronExpression:v()}),O({strategy:ve("NONE")})]),xa=class{constructor(e,r,o,n,i,s,u,l,p,f,y,m,h,_,P,S,T,k,L,Y,H){this.name=e;this.displayName=r;this.description=o;this.requireAuth=n;this.props=i;this.type=s;this.handshakeConfiguration=u;this.onHandshake=l;this.renewConfiguration=p;this.onRenew=f;this.onEnable=y;this.onDisable=m;this.onStart=h;this.run=_;this.test=P;this.sampleData=S;this.testStrategy=T;this.outputSchema=k;this.aiMetadata=L;this.classification=Y;this.propertyGroups=H}static{a(this,"ITrigger")}},CI=a(t=>{switch(t.type){case"WEBHOOK":return new xa(t.name,t.displayName,t.description,t.requireAuth??!0,t.props,t.type,t.handshakeConfiguration??{strategy:"NONE"},t.onHandshake??(async()=>({status:200})),t.renewConfiguration??{strategy:"NONE"},t.onRenew??(async()=>Promise.resolve()),t.onEnable,t.onDisable,t.onStart??(async()=>Promise.resolve()),t.run,t.test??(()=>Promise.resolve([t.sampleData])),t.sampleData,t.test?"TEST_FUNCTION":"SIMULATION",t.outputSchema,t.aiMetadata,t.classification,t.propertyGroups);case"POLLING":return new xa(t.name,t.displayName,t.description,t.requireAuth??!0,t.props,t.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),t.onEnable,t.onDisable,t.onStart??(async()=>Promise.resolve()),t.run,t.test??(()=>Promise.resolve([t.sampleData])),t.sampleData,"TEST_FUNCTION",t.outputSchema,t.aiMetadata,t.classification,t.propertyGroups);case"MANUAL":return new xa(t.name,t.displayName,t.description,t.requireAuth??!0,t.props,t.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),t.onEnable,t.onDisable,t.onStart??(async()=>Promise.resolve()),t.run,t.test??(()=>Promise.resolve([t.sampleData])),t.sampleData,"TEST_FUNCTION",t.outputSchema,t.aiMetadata,t.classification,t.propertyGroups);case"APP_WEBHOOK":return new xa(t.name,t.displayName,t.description,t.requireAuth??!0,t.props,t.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),t.onEnable,t.onDisable,t.onStart??(async()=>Promise.resolve()),t.run,t.test??(()=>Promise.resolve([t.sampleData])),t.sampleData,ft(t.sampleData)&&ft(t.test)?"SIMULATION":"TEST_FUNCTION",t.outputSchema,t.aiMetadata,t.classification,t.propertyGroups)}},"createTrigger");var RI="2",mf="0.82.0";var lb=class{constructor(e,r,o,n,i,s,u,l,p=mf,f,y="",m){this.displayName=e;this.logoUrl=r;this.authors=o;this.events=n;this.categories=u;this.auth=l;this.minimumSupportedRelease=p;this.maximumSupportedRelease=f;this.description=y;this.deprecated=m;this._actions={};this._triggers={};this.getContextInfo=a(()=>({version:RI}),"getContextInfo");(!zF(p)||DF(p,mf))&&(this.minimumSupportedRelease=mf),i.forEach(h=>this._actions[h.name]=h),s.forEach(h=>this._triggers[h.name]=h)}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:$F(this.auth),minimumSupportedRelease:this.minimumSupportedRelease,maximumSupportedRelease:this.maximumSupportedRelease,deprecated:this.deprecated,contextInfo:this.getContextInfo?.()}}getAction(e){return this._actions[e]}getTrigger(e){return this._triggers[e]}actions(){return this._actions}triggers(){return this._triggers}},kI=a(t=>{if(t.auth&&Array.isArray(t.auth)&&!t.auth.every((r,o,n)=>o===n.findIndex(i=>i.type===r.type)))throw new Error("Auth properties must be unique by type");return new lb(t.displayName,t.logoUrl,t.authors??[],t.events,t.actions,t.triggers,t.categories??[],t.auth,t.minimumSupportedRelease,t.maximumSupportedRelease,t.description,t.deprecated)},"createPiece");function $F(t){if(t!==void 0)return Array.isArray(t)?t.map(OI):OI(t)}a($F,"withConnectionIdentifierFlag");function OI(t){return{...t,hasConnectionIdentifier:t.getConnectionIdentifier!==void 0}}a(OI,"flagConnectionIdentifier");function zF(t){return/^\d+\.\d+\.\d+$/.test(t)}a(zF,"isValidSimpleSemver");function DF(t,e){let[r,o,n]=t.split(".").map(Number),[i,s,u]=e.split(".").map(Number);return r!==i?r<i:o!==s?o<s:n<u}a(DF,"isSemverLessThan");var UF=q(Re(v(),Re(v(),v()))),NI=O({id:q(v()),name:v(),displayName:v(),logoUrl:v(),description:v(),authors:Se(v()),platformId:q(v()),directoryPath:q(v()),auth:q(Ue([Sa,Se(Sa)])),version:v(),categories:q(Se(Ee(fa))),minimumSupportedRelease:q(v()),maximumSupportedRelease:q(v()),deprecated:q(He()),i18n:UF}),MF=Ee(["human","ai","both"]),$I=O({description:q(v()),idempotent:q(He())}),zI=Ee(["READ","SEARCH","WRITE","DESTRUCTIVE"]);var LF=Ee(["tabs","section","summary","builder","footer"]),DI=O({key:v(),display:LF,label:q(v()),description:q(v()),icon:q(v()),props:Se(v())}),UI=O({name:v(),displayName:v(),description:v(),props:ub,propertyGroups:q(Se(DI)),requireAuth:He(),errorHandlingOptions:q(T_),outputSchema:q(Ap()),audience:q(MF),aiMetadata:q($I),classification:q(zI)}),MI=O({name:v(),displayName:v(),description:v(),props:ub,propertyGroups:q(Se(DI)),errorHandlingOptions:q(T_),type:Ee(bo),sampleData:Ce(),handshakeConfiguration:q(Ap()),renewConfiguration:q(II),testStrategy:Ee(eu),outputSchema:q(Ap()),aiMetadata:q($I),classification:q(zI)}),jF=O({...NI.shape,actions:Re(v(),UI),triggers:Re(v(),MI)}),FF=O({...NI.shape,actions:kt(),triggers:kt(),suggestedActions:q(Se(UI)),suggestedTriggers:q(Se(MI))}),LI=O({projectUsage:kt(),pieceType:Ee(pa),packageType:Ee(Xc),platformId:q(v()),archiveId:q(v())}),Ite=O({...jF.shape,...LI.shape}),Cte=O({...FF.shape,...LI.shape}),Rte=O({name:v(),version:v()});var BF=Tt(require("path")),qF=Tt(require("fs/promises"));var Aa=require("node:stream");var hf=class{constructor(e,r){this.baseUrl=e;this.authenticationConverter=r}static{a(this,"BaseHttpClient")}getUrl(e){let r=new URL(`${this.baseUrl}${e.url}`),o=`${r.origin}${r.pathname}`,n=new URLSearchParams;return r.searchParams.forEach((i,s)=>{n.append(s,i)}),{urlWithoutQueryParams:o,queryParams:n}}getHeaders(e){let r={Accept:"application/json"};return e.authentication&&this.populateAuthentication(e.authentication,r),e.body&&(e.headers?.["Content-Type"]==="text/csv"?r["Content-Type"]="text/csv":r["Content-Type"]="application/json"),e.headers&&(r={...r,...e.headers}),r}populateAuthentication(e,r){this.authenticationConverter.convert(e,r)}};var gf=class{static{a(this,"DelegatingAuthenticationConverter")}constructor(e=new db,r=new pb){this.converters={BEARER_TOKEN:e,BASIC:r}}convert(e,r){return this.converters[e.type].convert(e,r)}},db=class{static{a(this,"BearerTokenAuthenticationConverter")}convert(e,r){return r.Authorization=`Bearer ${e.token}`,r}},pb=class{static{a(this,"BasicTokenAuthenticationConverter")}convert(e,r){let o=`${e.username}:${e.password}`,n=Buffer.from(o).toString("base64");return r.Authorization=`Basic ${n}`,r}};var hu=class extends Error{constructor(r,o){let n=o.status||500,i=Buffer.isBuffer(o.responseBody)?o.responseBody.toString():o.responseBody;super(JSON.stringify({response:{status:n,body:i},request:{body:r}}));this.requestBody=r;this.status=n,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 jI({error:t,requestBody:e}){return t instanceof hu?t.errorMessage():{response:{status:0,body:t instanceof Error?t.message:String(t)},request:{body:e}}}a(jI,"toFailsafeOutput");var Ta=(s=>(s.GET="GET",s.POST="POST",s.PATCH="PATCH",s.PUT="PUT",s.DELETE="DELETE",s.HEAD="HEAD",s))(Ta||{});var yf=class extends hf{static{a(this,"FetchHttpClient")}constructor(e="",r=new gf){super(e,r)}async sendRequest(e,r){process.env.NODE_TLS_REJECT_UNAUTHORIZED="0";let{urlWithoutQueryParams:o,queryParams:n}=this.getUrl(e),i=this.getHeaders(e),s=e.queryParams??{};for(let[L,Y]of Object.entries(s))n.append(L,Y);let u=n.toString(),l=u?`${o}?${u}`:o,p=e.responseType??"json",f=e.followRedirects??!0,y=e.retries??0,{body:m,extraHeaders:h,isStream:_}=_f(e.method)?GF(e.body,i):{body:void 0,extraHeaders:{},isStream:!1},P=HF({...i,...h}),S=await VF(async()=>{let L=new AbortController,Y=e.timeout&&e.timeout>0?setTimeout(()=>L.abort(),e.timeout):void 0;try{let H={method:e.method.toString(),headers:P,body:m,redirect:f?"follow":"manual",signal:L.signal};return _&&(H.duplex="half"),r?.dispatcher!==void 0&&(H.dispatcher=r.dispatcher),await fetch(l,H)}finally{Y!==void 0&&clearTimeout(Y)}},_?0:y),T=f?300:400;if(S.status<200||S.status>=T){let L=await FI(S,p==="stream"?"text":p),Y=new hu(e.body,{status:S.status,responseBody:L});throw console.error("[HttpClient#(sanitized error message)] Request failed:",Y),Y}let k=await FI(S,p);return{status:S.status,headers:ZF(S.headers),body:k}}};function _f(t){return t!=="GET"&&t!=="HEAD"}a(_f,"acceptsRequestBody");function GF(t,e){if(qI(t))return{body:void 0,extraHeaders:{},isStream:!1};if(KF(t)){let o=WF(t);if(o!==null)return{body:o,extraHeaders:t.getHeaders(),isStream:!1};let n=new Aa.PassThrough;return t.on("error",i=>n.destroy(i)),t.pipe(n),{body:n,extraHeaders:t.getHeaders(),isStream:!0}}return t instanceof Aa.Readable?{body:t,extraHeaders:{},isStream:!0}:typeof t=="string"||Buffer.isBuffer(t)||t instanceof URLSearchParams||t instanceof ArrayBuffer||typeof FormData<"u"&&t instanceof FormData||typeof Blob<"u"&&t instanceof Blob?{body:t,extraHeaders:{},isStream:!1}:(e["Content-Type"]??e["content-type"]??"").includes("application/x-www-form-urlencoded")?{body:new URLSearchParams(t).toString(),extraHeaders:{},isStream:!1}:{body:JSON.stringify(t),extraHeaders:{},isStream:!1}}a(GF,"serializeBody");async function FI(t,e){switch(e){case"arraybuffer":return Buffer.from(await t.arrayBuffer());case"stream":return qI(t.body)?Aa.Readable.from([]):Aa.Readable.fromWeb(t.body);case"blob":return await t.blob();case"text":return await t.text();default:{let r=await t.text();if(r.length===0)return;try{return JSON.parse(r)}catch{return r}}}}a(FI,"parseResponseBody");async function VF(t,e){let r;for(let o=0;o<=e;o++)try{let n=await t();if(n.status>=500&&o<e){await BI(o);continue}return n}catch(n){if(r=n,o<e){await BI(o);continue}throw n}throw r}a(VF,"sendWithRetries");function BI(t){let e=Math.min(1e3*2**t,3e4);return new Promise(r=>setTimeout(r,e))}a(BI,"backoff");function HF(t){let e=new Map;for(let[r,o]of Object.entries(t))o!==void 0&&e.set(r.toLowerCase(),[r,Array.isArray(o)?o.join(", "):o]);return Object.fromEntries(e.values())}a(HF,"normalizeHeaders");function ZF(t){let e={};return t.forEach((r,o)=>{e[o]=r}),e}a(ZF,"toHttpHeaders");function WF(t){if(!t.hasKnownLength()||t.getLengthSync()>JF)return null;let{data:e}=O_(()=>t.getBuffer());return e}a(WF,"bufferFormDataIfSafe");function KF(t){return typeof t=="object"&&t!==null&&typeof t.getHeaders=="function"&&typeof t.pipe=="function"&&typeof t.on=="function"}a(KF,"isNodeFormData");function qI(t){return t==null}a(qI,"isNil");var JF=100*1024*1024;var ln=new yf;var Uq=Tt(require("fs"));var Mq={"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 Lq(t){let e=t.split(";")[0].trim().toLowerCase();return Mq[e]??""}a(Lq,"contentTypeToExtension");var jq=a(({baseUrl:t,relativePath:e})=>{let r=t.endsWith("/")?t:`${t}/`,o=e.startsWith("/")?e.slice(1):e;return`${r}${o}`},"joinBaseUrlWithRelativePath"),Fq=a((t,e)=>{let r="https://api.example.com";try{let o=e?t(e):void 0;return(o?.endsWith("/")?o.slice(0,-1):o)??r}catch{return r}},"getBaseUrlForDescription");function ZR({auth:t,baseUrl:e,authMapping:r,description:o,displayName:n,name:i,props:s,extraProps:u,authLocation:l="headers",classification:p="WRITE"}){return Oe({audience:"human",name:i||"custom_api_call",classification:p,displayName:n||"Custom API Call",description:o||"Make a custom API call to a specific endpoint",auth:t,requireAuth:!!t,props:{url:K.DynamicProperties({auth:t,displayName:"",required:!0,refreshers:[],props:a(async({auth:f})=>({url:K.ShortText({displayName:"URL",description:`Full URL, or a path relative to ${Fq(e,f)}`,required:!0,placeholder:"/resource",defaultValue:f?e(f):"",...s?.url??{}})}),"props")}),method:K.StaticDropdown({displayName:"Method",required:!0,defaultValue:"GET",options:{options:Object.values(Ta).map(f=>({label:f,value:f}))},...s?.method??{}}),headers:K.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!1,...s?.headers??{}}),queryParams:K.Object({displayName:"Query Parameters",description:"Appended to the URL as ?key=value.",required:!1,...s?.queryParams??{}}),body_type:K.Dropdown({auth:t,displayName:"Body Type",required:!1,defaultValue:"none",refreshers:["method"],options:a(async({method:f})=>_f(f)?{disabled:!1,options:[{label:"None",value:"none"},{label:"JSON",value:"json"},{label:"Form Data",value:"form_data"},{label:"Raw",value:"raw"}]}:{disabled:!0,placeholder:"Not available for GET or HEAD requests",options:[]},"options")}),body:K.DynamicProperties({auth:t,displayName:"Body",refreshers:["body_type","method"],required:!1,props:a(async({body_type:f,method:y})=>{if(!f||!_f(y))return{};let m=f,h={};switch(m){case"none":break;case"json":h.data=K.Json({displayName:"JSON Body",required:!0,...s?.body??{}});break;case"raw":h.data=K.LongText({displayName:"Raw Body",required:!0});break;case"form_data":h.data=K.Array({displayName:"Form Data",required:!0,properties:{fieldName:K.ShortText({displayName:"Field Name",required:!0}),fieldType:K.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:K.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:K.File({displayName:"File Field Value",required:!1})}});break}return h},"props")}),response_is_binary:K.Checkbox({displayName:"Response is Binary",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1,advanced:!0,...s?.response_is_binary??{}}),failsafe:K.Checkbox({displayName:"Return Error as Output",description:"On a failed request, output the error instead of failing the step.",required:!1,advanced:!0,...s?.failsafe??{}}),timeout:K.Number({displayName:"Timeout",description:"Seconds to wait for a response. Empty: up to the flow limit (10 min).",required:!1,advanced:!0,...s?.timeout??{}}),followRedirects:K.Checkbox({displayName:"Follow redirects",description:"Follow 3xx redirects instead of returning them as the response.",required:!1,defaultValue:!1,advanced:!0,...s?.followRedirects??{}}),...u},run:a(async f=>{let{method:y,url:m,headers:h,queryParams:_,body:P,body_type:S,failsafe:T,timeout:k,response_is_binary:L,followRedirects:Y}=f.propsValue;Op(y,"Method"),Op(m,"URL");let H=ft(r)?{}:await r(f.auth,f.propsValue),X=m.url,re=X.startsWith("http://")||X.startsWith("https://")?X:jq({baseUrl:e(f.auth),relativePath:X}),ce={method:y,url:re,headers:{...h??{},...l==="headers"||!ft(l)?H:{}},queryParams:{...l==="queryParams"?H:{},..._??{}},timeout:k?k*1e3:0,followRedirects:Y};if(L&&(ce.responseType="arraybuffer"),P)if(S&&S!=="none"){let ee=P.data;if(S==="form_data"){let Le=ee,{default:le}=await Promise.resolve().then(()=>Tt(HR())),W=new le;for(let{fieldName:Z,fieldType:oe,textFieldValue:Q,fileFieldValue:de}of Le)oe==="text"&&!tu(Q)?W.append(Z,Q):oe==="file"&&!tu(de)&&W.append(Z,de.data,{filename:de?.filename});ce.body=W,ce.headers={...ce.headers,...W.getHeaders()}}else ce.body=ee}else S||(ce.body=P);try{let ee=await ln.sendRequest(ce);return await Bq(f.files,ee.body,ee.status,ee.headers,L)}catch(ee){if(T)return jI({error:ee,requestBody:ce.body});throw ee}},"run")})}a(ZR,"createCustomApiCallAction");var Bq=a(async(t,e,r,o,n)=>{let i;if(n&&qq(e)){let s=Array.isArray(o?.["content-type"])?o["content-type"][0]:o?.["content-type"],u=Lq(s??"")||"txt",l;e instanceof ArrayBuffer?l=Buffer.from(new Uint8Array(e)):Buffer.isBuffer(e)?l=e:l=Buffer.from(e),i=await t.write({fileName:`output.${u}`,data:l})}else i=e;return{status:r,headers:o,body:i}},"handleBinaryResponse"),qq=a(t=>t instanceof ArrayBuffer||Buffer.isBuffer(t),"isBinaryBody");var bu={async poll(t,{store:e,auth:r,propsValue:o,maxItemsToPoll:n,files:i,server:s}){switch(t.strategy){case 0:{let u=await e.get("lastPoll");if(ft(u))throw new Error("lastPoll doesn't exist in the store.");let l=await t.items({store:e,auth:r,propsValue:o,lastFetchEpochMS:u,server:s}),p=l.reduce((f,y)=>Math.max(f,y.epochMilliSeconds),u);return await e.put("lastPoll",p),l.filter(f=>f.epochMilliSeconds>u).map(f=>f.data)}case 1:{let u=await e.get("lastItem"),l=await t.items({store:e,auth:r,propsValue:o,lastItemId:u,files:i,server:s}),p=l.findIndex(m=>m.id===u),f=[];ft(u)||p==-1?f=l??[]:f=l?.slice(0,p)??[],ft(n)||(f=f.slice(-n));let y=f?.[0]?.id;return ft(y)||await e.put("lastItem",y),f.map(m=>m.data)}}},async onEnable(t,{store:e,auth:r,propsValue:o,server:n,isRepublish:i}){switch(t.strategy){case 0:{if(i&&!ft(await e.get("lastPoll")))break;await e.put("lastPoll",Date.now());break}case 1:{if(i&&!ft(await e.get("lastItem")))break;let u=(await t.items({store:e,auth:r,propsValue:o,lastItemId:null,server:n}))?.[0]?.id;ft(u)?await e.delete("lastItem"):await e.put("lastItem",u);break}}},async onDisable(t,e){switch(t.strategy){case 0:case 1:return}},async test(t,{auth:e,propsValue:r,store:o,files:n,server:i}){let s=[];switch(t.strategy){case 0:{s=await t.items({store:o,auth:e,propsValue:r,lastFetchEpochMS:0,server:i});break}case 1:{s=await t.items({store:o,auth:e,propsValue:r,lastItemId:null,files:n,server:i});break}}return Gq(s.map(u=>u.data))}};function Gq(t){return t.length<=5?t:t.slice(0,5)}a(Gq,"getFirstFiveOrAll");var WR="https://people.googleapis.com/v1",Vq=["names","nicknames","emailAddresses","phoneNumbers","organizations","addresses","biographies","urls","memberships","photos","metadata"],Hq=["clientData","groupType","memberCount","metadata","name"],Zq=["addresses","biographies","birthdays","calendarUrls","clientData","emailAddresses","events","externalIds","genders","imClients","interests","locales","locations","memberships","miscKeywords","names","nicknames","occupations","organizations","phoneNumbers","relations","sipAddresses","urls","userDefined"],Wq=["contactGroups/all","contactGroups/blocked","contactGroups/chatBuddies","contactGroups/coworkers","contactGroups/family","contactGroups/friends"];function Kq({path:t,queryParams:e,repeatedQueryParams:r}){let o=new URLSearchParams;for(let[i,s]of Object.entries(e??{}))s!==void 0&&o.append(i,s);for(let[i,s]of Object.entries(r??{}))for(let u of s)o.append(i,u);let n=o.toString();return n.length>0?`${WR}${t}?${n}`:`${WR}${t}`}a(Kq,"buildUrl");function kr({source:t,path:e}){let r=t;for(let o of e){if(typeof r!="object"||r===null||!(o in r))return;r=Reflect.get(r,o)}return r}a(kr,"readValue");function Eu({source:t,path:e}){let r=kr({source:t,path:e});return typeof r=="string"?r:void 0}a(Eu,"readString");function Jq({source:t,path:e}){let r=kr({source:t,path:e});if(!(typeof r!="object"||r===null||Array.isArray(r)))return Object.fromEntries(Object.entries(r))}a(Jq,"readRecord");function Xq({source:t,path:e}){let r=kr({source:t,path:e});return Array.isArray(r)?r:[]}a(Xq,"readArray");function Yq({value:t,label:e}){try{let r=JSON.parse(t);if(Array.isArray(r))return r}catch{throw new Error(`${e} must be a list of strings.`)}throw new Error(`${e} must be a list of strings.`)}a(Yq,"parseStringList");function Qq({value:t,label:e}){if(t==null)return[];let r=typeof t=="string"?Yq({value:t,label:e}):t;if(!Array.isArray(r))throw new Error(`${e} must be a list of strings.`);return r.map(o=>{if(typeof o!="string"||o.trim().length===0)throw new Error(`${e} must be a list of non-empty strings.`);return o.trim()})}a(Qq,"toStringList");function e4({values:t,max:e,label:r}){if(t.length===0)throw new Error(`${r} must contain at least one entry.`);if(t.length>e)throw new Error(`${r} accepts at most ${e} entries, received ${t.length}.`)}a(e4,"assertBatchSize");function KR({status:t}){let e=Eu({source:t,path:["message"]}),r=kr({source:t,path:["code"]});return e!==void 0?e:typeof r=="number"?`Google returned status code ${r}.`:"Google returned an unspecified failure for this item."}a(KR,"describeStatus");function $b({response:t}){let e=kr({source:t,path:["status"]});if(e==null)return!1;let r=kr({source:e,path:["code"]}),o=kr({source:e,path:["message"]});return typeof r=="number"&&r!==0?!0:typeof o=="string"&&o.length>0}a($b,"isFailedItem");function t4({items:t,payloadKey:e}){let r=t.filter(n=>!$b({response:n.response})).map(n=>({resourceName:Eu({source:n.response,path:[e,"resourceName"]})??n.resourceName,payload:kr({source:n.response,path:[e]})})),o=t.filter(n=>$b({response:n.response})).map(n=>({resourceName:n.resourceName,status:KR({status:kr({source:n.response,path:["status"]})})}));return{succeeded:r,failed:o}}a(t4,"splitItemResponses");function r4({error:t,operation:e}){let r=kr({source:t,path:["response","status"]}),o=Eu({source:t,path:["response","body","error","status"]}),n=Eu({source:t,path:["response","body","error","message"]}),i=n===void 0?"":` ${n}`;return r===400&&o==="FAILED_PRECONDITION"?new Error(`${e} failed because the record changed since it was read. Re-read the record to get a fresh etag and retry.${i}`):r===400?new Error(`${e} was rejected as invalid by Google Contacts.${i}`):r===401?new Error(`${e} failed: the Google Contacts connection is no longer authorized. Reconnect the account.${i}`):r===403?new Error(`${e} failed: the connected Google account is not allowed to perform it, or the connection is missing the required scope.${i}`):r===404?new Error(`${e} failed: the resource was not found. Resource names are opaque, so resolve a current one with the matching list or search action.${i}`):r===409?new Error(`${e} failed: the resource already exists.${i}`):r===429?new Error(`${e} failed: Google Contacts rate limit reached. Retry later.${i}`):new Error(`${e} failed.${i}`)}a(r4,"toApiError");function n4({error:t}){return kr({source:t,path:["response","status"]})===409}a(n4,"isConflict");async function o4({accessToken:t,method:e,path:r,queryParams:o,repeatedQueryParams:n,body:i}){let s={method:e,url:Kq({path:r,queryParams:o,repeatedQueryParams:n}),body:i,authentication:{type:"BEARER_TOKEN",token:t}};return(await ln.sendRequest(s)).body??{}}a(o4,"sendRequest");var Ao={baseUrl:"https://people.googleapis.com/v1/people"},D={contactReadMask:Vq,contactGroupFields:Hq,updatablePersonFields:Zq,systemGroupsRejectingAdds:Wq,sendRequest:o4,toApiError:r4,isConflict:n4,readValue:kr,readString:Eu,readRecord:Jq,readArray:Xq,toStringList:Qq,assertBatchSize:e4,splitItemResponses:t4,describeStatus:KR,isFailedItem:$b};var xe=cb.OAuth2({description:"",authUrl:"https://accounts.google.com/o/oauth2/auth",tokenUrl:"https://oauth2.googleapis.com/token",required:!0,scope:["https://www.googleapis.com/auth/contacts","email"]});var i4=[{key:"displayName",label:"Display Name"},{key:"givenName",label:"First Name"},{key:"middleName",label:"Middle Name"},{key:"familyName",label:"Last Name"},{key:"displayNameLastFirst",label:"Display Name (Last, First)"},{key:"unstructuredName",label:"Unstructured Name"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],a4=[{key:"value",label:"Email Address",format:"email"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],s4=[{key:"value",label:"Phone Number"},{key:"canonicalForm",label:"Canonical Form"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],c4=[{key:"value",label:"Nickname"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],u4=[{key:"value",label:"Notes"},{key:"contentType",label:"Content Type"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],l4=[{key:"name",label:"Company"},{key:"title",label:"Job Title"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],d4=[{key:"url",label:"Photo URL",format:"image"},{key:"default",label:"Is Placeholder",format:"boolean"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],p4=[{key:"contactGroupId",label:"Contact Group ID",value:"contactGroupMembership.contactGroupId"},{key:"contactGroupResourceName",label:"Contact Group Resource Name",value:"contactGroupMembership.contactGroupResourceName"}],f4=[{key:"objectType",label:"Object Type"},{key:"sources",label:"Sources",labelKey:"updateTime",listItems:[{key:"type",label:"Source Type"},{key:"id",label:"Source ID"},{key:"updateTime",label:"Last Updated",format:"datetime"}]}],Jr=[{key:"resourceName",label:"Resource Name"},{key:"etag",label:"ETag"},{key:"names",label:"Names",labelKey:"displayName",listItems:i4},{key:"emailAddresses",label:"Email Addresses",labelKey:"value",listItems:a4},{key:"phoneNumbers",label:"Phone Numbers",labelKey:"value",listItems:s4},{key:"nicknames",label:"Nicknames",labelKey:"value",listItems:c4},{key:"biographies",label:"Notes",labelKey:"value",listItems:u4},{key:"organizations",label:"Organizations",labelKey:"name",listItems:l4},{key:"photos",label:"Photos",labelKey:"url",listItems:d4},{key:"memberships",label:"Group Memberships",labelKey:"contactGroupMembership.contactGroupId",listItems:p4},{key:"metadata",label:"Metadata",children:f4}],Pu=[{key:"resourceName",label:"Resource Name"},{key:"etag",label:"ETag"},{key:"displayName",label:"Display Name"},{key:"givenName",label:"First Name"},{key:"familyName",label:"Last Name"},{key:"emails",label:"Email Addresses"},{key:"phoneNumbers",label:"Phone Numbers"},{key:"company",label:"Company"},{key:"jobTitle",label:"Job Title"},{key:"updateTime",label:"Last Updated",format:"datetime"}],Su=[{key:"resourceName",label:"Resource Name"},{key:"etag",label:"ETag"},{key:"name",label:"Name"},{key:"formattedName",label:"Formatted Name"},{key:"groupType",label:"Group Type"},{key:"memberCount",label:"Member Count",format:"number"},{key:"memberResourceNames",label:"Member Resource Names"}],JR=[{key:"resourceName",label:"Resource Name"},{key:"status",label:"Failure Reason"}],m4=[{key:"resourceName",label:"Resource Name"},{key:"status",label:"Failure Reason"},{key:"updateMask",label:"Field Groups Not Applied"}],h4=[{key:"requestIndex",label:"Request Index",format:"number"},{key:"status",label:"Failure Reason"}],XR={fields:Jr},YR={fields:Jr},QR={fields:[{key:"results",label:"Matching Contacts",listItems:[{key:"person",label:"Contact",children:Jr}]}]},eO={fields:Jr},tO={fields:Jr},rO={fields:Jr},nO={fields:Jr},oO={fields:[{key:"contacts",label:"Contacts",labelKey:"displayName",listItems:Pu},{key:"count",label:"Count",format:"number"},{key:"hasMore",label:"Has More",format:"boolean"}]},iO={fields:[{key:"results",label:"Matching Contacts",labelKey:"displayName",listItems:Pu},{key:"count",label:"Count",format:"number"}]},aO={fields:[{key:"deleted",label:"Deleted",format:"boolean"},{key:"resourceName",label:"Resource Name"}]},sO={fields:[{key:"deleted",label:"Deleted",format:"boolean"},{key:"resourceNames",label:"Resource Names"},{key:"count",label:"Count",format:"number"}]},cO={fields:[{key:"succeeded",label:"Contacts Read",labelKey:"contact.displayName",listItems:[{key:"resourceName",label:"Resource Name"},{key:"contact",label:"Contact",children:Pu},{key:"person",label:"Full Person",children:Jr}]},{key:"failed",label:"Failures",labelKey:"resourceName",listItems:JR},{key:"succeededCount",label:"Succeeded Count",format:"number"},{key:"failedCount",label:"Failed Count",format:"number"}]},uO={fields:[{key:"succeeded",label:"Contacts Created",labelKey:"contact.displayName",listItems:[{key:"requestIndex",label:"Request Index",format:"number"},{key:"resourceName",label:"Resource Name"},{key:"contact",label:"Contact",children:Pu}]},{key:"failed",label:"Failures",labelKey:"requestIndex",listItems:h4},{key:"succeededCount",label:"Succeeded Count",format:"number"},{key:"failedCount",label:"Failed Count",format:"number"},{key:"requestedCount",label:"Requested Count",format:"number"}]},lO={fields:[{key:"succeeded",label:"Contacts Updated",labelKey:"contact.displayName",listItems:[{key:"resourceName",label:"Resource Name"},{key:"contact",label:"Contact",children:Pu},{key:"person",label:"Full Person",children:Jr}]},{key:"failed",label:"Failures",labelKey:"resourceName",listItems:m4},{key:"succeededCount",label:"Succeeded Count",format:"number"},{key:"failedCount",label:"Failed Count",format:"number"},{key:"updateMasks",label:"Update Masks"}]},dO={fields:Jr},pO={fields:Jr},fO={fields:[{key:"contactGroups",label:"Contact Groups",labelKey:"formattedName",listItems:Su},{key:"count",label:"Count",format:"number"},{key:"hasMore",label:"Has More",format:"boolean"}]},mO={fields:Su},hO={fields:Su},gO={fields:[{key:"succeeded",label:"Contact Groups Read",labelKey:"formattedName",listItems:Su},{key:"failed",label:"Failures",labelKey:"resourceName",listItems:JR},{key:"succeededCount",label:"Succeeded Count",format:"number"},{key:"failedCount",label:"Failed Count",format:"number"}]},yO={fields:[{key:"created",label:"Created",format:"boolean"},{key:"contactGroup",label:"Contact Group",children:Su}]},_O={fields:[{key:"deleted",label:"Deleted",format:"boolean"},{key:"resourceName",label:"Resource Name"},{key:"deletedContacts",label:"Contacts Also Deleted",format:"boolean"}]},vO={fields:[{key:"resourceName",label:"Contact Group Resource Name"},{key:"added",label:"Added Contacts"},{key:"removed",label:"Removed Contacts"},{key:"notFoundResourceNames",label:"Not Found Contacts"},{key:"canNotRemoveLastContactGroupResourceNames",label:"Cannot Remove Last Group"}]};var bO=Oe({auth:xe,name:"add_contact",classification:"WRITE",description:"Add a contact to a Google Contacts account",audience:"human",aiMetadata:{description:"Creates a new person in the authenticated Google Contacts account from name, email, phone, company, and job title fields. Use when an agent needs to add someone to address book contacts; first and last name are required. Not idempotent \u2014 each call creates a separate contact even with identical input, so guard against duplicates.",idempotent:!1},displayName:"Add Contact",outputSchema:XR,props:{firstName:K.ShortText({displayName:"First Name",description:"The first name of the contact",required:!0}),middleName:K.ShortText({displayName:"Middle Name",description:"The middle name of the contact",required:!1}),lastName:K.ShortText({displayName:"Last Name",description:"The last name of the contact",required:!0}),jobTitle:K.ShortText({displayName:"Job Title",description:"The job title of the contact",required:!1}),company:K.ShortText({displayName:"Company",description:"The company of the contact",required:!1}),email:K.ShortText({displayName:"Email",description:"The email address of the contact",required:!1}),phoneNumber:K.ShortText({displayName:"Phone Number",description:"The phone number of the contact",required:!1})},async run(t){let e={names:[{givenName:t.propsValue.firstName,middleName:t.propsValue.middleName,familyName:t.propsValue.lastName}]},r={};t.propsValue.email&&(r.emailAddresses=[{value:t.propsValue.email}]),t.propsValue.phoneNumber&&(r.phoneNumbers=[{value:t.propsValue.phoneNumber}]),(t.propsValue.company||t.propsValue.jobTitle)&&(r.organizations=[{name:t.propsValue.company||void 0,title:t.propsValue.jobTitle||void 0}]),e={...e,...r};let o={method:"POST",url:`${Ao.baseUrl}:createContact`,body:e,authentication:{type:"BEARER_TOKEN",token:t.auth.access_token}};return(await ln.sendRequest(o)).body}});var EO=Oe({auth:xe,name:"update_contact",classification:"WRITE",description:"Update a contact in Google Contacts account.",audience:"human",aiMetadata:{description:"Updates fields (name, email, phone, company, job title) on an existing Google Contacts person identified by its resourceName (people/{id}). Use when an agent needs to modify a known contact; requires both the resourceName and the current etag, and a field mask listing which fields to update \u2014 the call is rejected if the contact changed since the etag was fetched. Repeating the same update with the same etag/values is safe and yields the same result.",idempotent:!0},displayName:"Update Contact",outputSchema:YR,props:{resourceName:K.ShortText({displayName:"Resource Name",description:"The resource name for the person, assigned by the server. An ASCII string in the form of people/{person_id}.",required:!0}),etag:K.ShortText({displayName:"Etag",description:"The `etag` ensures contact updates only apply if the contact hasn't changed since last retrieved.",required:!0}),updatePersonFields:K.StaticMultiSelectDropdown({displayName:"Update Field Mask",description:"A field mask to restrict which fields on the person are updated.",required:!0,options:{options:[{label:"Names",value:"names"},{label:"Email",value:"emailAddresses"},{label:"Phone Number",value:"phoneNumbers"},{label:"Job Title / Company",value:"organizations"}]},defaultValue:["names","emailAddresses"]}),firstName:K.ShortText({displayName:"First Name",description:"The first name of the contact",required:!1}),middleName:K.ShortText({displayName:"Middle Name",description:"The middle name of the contact",required:!1}),lastName:K.ShortText({displayName:"Last Name",description:"The last name of the contact",required:!1}),jobTitle:K.ShortText({displayName:"Job Title",description:"The job title of the contact",required:!1}),company:K.ShortText({displayName:"Company",description:"The company of the contact",required:!1}),email:K.ShortText({displayName:"Email",description:"The email address of the contact",required:!1}),phoneNumber:K.ShortText({displayName:"Phone Number",description:"The phone number of the contact",required:!1})},async run(t){let e=t.propsValue.resourceName.substring(6),r={etag:t.propsValue.etag},o={updatePersonFields:t.propsValue.updatePersonFields.join(",")};(t.propsValue.firstName||t.propsValue.middleName||t.propsValue.lastName)&&(r.names=[{givenName:t.propsValue.firstName||void 0,middleName:t.propsValue.middleName||void 0,familyName:t.propsValue.lastName||void 0}]),t.propsValue.email&&(r.emailAddresses=[{value:t.propsValue.email}]),t.propsValue.phoneNumber&&(r.phoneNumbers=[{value:t.propsValue.phoneNumber}]),(t.propsValue.company||t.propsValue.jobTitle)&&(r.organizations=[{name:t.propsValue.company||void 0,title:t.propsValue.jobTitle||void 0}]);let n={method:"PATCH",url:`${Ao.baseUrl}${e}:updateContact`,body:r,authentication:{type:"BEARER_TOKEN",token:t.auth.access_token},queryParams:o};return(await ln.sendRequest(n)).body}});var PO=Oe({auth:xe,name:"search_contact",classification:"SEARCH",description:"Search contacts in Google Contacts account.",audience:"human",aiMetadata:{description:"Searches the authenticated Google Contacts account for people matching a plain-text query, which prefix-matches against contact fields. Use when an agent needs to find a contact or its resourceName before updating it; the query is required and a read mask selects which fields come back (max 30 results). Read-only and idempotent.",idempotent:!0},displayName:"Search Contacts",outputSchema:QR,props:{query:K.ShortText({displayName:"Query",description:'The plain-text query for the request.The query is used to match prefix phrases of the fields on a person. For example, a person with name "foo name" matches queries such as "f", "fo", "foo", "foo n", "nam", etc., but not "oo n".',required:!0}),readMask:K.StaticMultiSelectDropdown({displayName:"Read Mask",description:"A field mask to restrict which fields on each person are returned.",required:!0,options:{options:[{label:"addresses",value:"addresses"},{label:"ageRanges",value:"ageRanges"},{label:"biographies",value:"biographies"},{label:"birthdays",value:"birthdays"},{label:"calendarUrls",value:"calendarUrls"},{label:"clientData",value:"clientData"},{label:"coverPhotos",value:"coverPhotos"},{label:"emailAddresses",value:"emailAddresses"},{label:"events",value:"events"},{label:"externalIds",value:"externalIds"},{label:"genders",value:"genders"},{label:"imClients",value:"imClients"},{label:"interests",value:"interests"},{label:"locales",value:"locales"},{label:"locations",value:"locations"},{label:"memberships",value:"memberships"},{label:"metadata",value:"metadata"},{label:"miscKeywords",value:"miscKeywords"},{label:"names",value:"names"},{label:"nicknames",value:"nicknames"},{label:"occupations",value:"occupations"},{label:"organizations",value:"organizations"},{label:"phoneNumbers",value:"phoneNumbers"},{label:"photos",value:"photos"},{label:"relations",value:"relations"},{label:"sipAddresses",value:"sipAddresses"},{label:"skills",value:"skills"},{label:"urls",value:"urls"},{label:"userDefined",value:"userDefined"}]},defaultValue:["names","emailAddresses"]}),pageSize:K.Number({displayName:"Page Size",description:"The number of results to return. Maximum 30.",required:!1})},async run(t){let e={query:t.propsValue.query,readMask:t.propsValue.readMask.join(",")};t.propsValue.pageSize&&(e.pageSize=String(t.propsValue.pageSize));let r={method:"GET",url:`${Ao.baseUrl}:searchContacts`,authentication:{type:"BEARER_TOKEN",token:t.auth.access_token},queryParams:e};return(await ln.sendRequest(r)).body}});function wf({current:t,group:e,overrides:r,defaults:o}){let n=D.readArray({source:t,path:[e]}),i=n[0],s=typeof i=="object"&&i!==null&&!Array.isArray(i)?Object.fromEntries(Object.entries(i)):{};return[{...o,...s,...r},...n.slice(1)]}a(wf,"mergeFirstEntry");function g4({input:t,current:e}){let r={},o=[];return(t.firstName!==void 0||t.middleName!==void 0||t.lastName!==void 0)&&(r.names=wf({current:e,group:"names",overrides:{...t.firstName===void 0?{}:{givenName:t.firstName},...t.middleName===void 0?{}:{middleName:t.middleName},...t.lastName===void 0?{}:{familyName:t.lastName}}}),o.push("names")),t.nickname!==void 0&&(r.nicknames=wf({current:e,group:"nicknames",overrides:{value:t.nickname}}),o.push("nicknames")),t.clearEmails===!0?(r.emailAddresses=[],o.push("emailAddresses")):t.emails!==void 0&&t.emails.length>0&&(r.emailAddresses=t.emails.map(s=>({value:s})),o.push("emailAddresses")),t.clearPhoneNumbers===!0?(r.phoneNumbers=[],o.push("phoneNumbers")):t.phoneNumbers!==void 0&&t.phoneNumbers.length>0&&(r.phoneNumbers=t.phoneNumbers.map(s=>({value:s})),o.push("phoneNumbers")),(t.company!==void 0||t.jobTitle!==void 0)&&(r.organizations=wf({current:e,group:"organizations",overrides:{...t.company===void 0?{}:{name:t.company},...t.jobTitle===void 0?{}:{title:t.jobTitle}}}),o.push("organizations")),t.biography!==void 0&&(r.biographies=wf({current:e,group:"biographies",overrides:{value:t.biography},defaults:{contentType:"TEXT_PLAIN"}}),o.push("biographies")),{person:r,fields:o}}a(g4,"buildPerson");function SO({person:t,group:e}){return D.readArray({source:t,path:[e]}).map(n=>D.readString({source:n,path:["value"]})).filter(n=>n!==void 0)}a(SO,"valuesOf");function y4({person:t}){let e=D.readArray({source:t,path:["names"]})[0],r=D.readArray({source:t,path:["organizations"]})[0],o=D.readArray({source:t,path:["metadata","sources"]})[0];return{resourceName:D.readString({source:t,path:["resourceName"]}),etag:D.readString({source:t,path:["etag"]}),displayName:D.readString({source:e,path:["displayName"]}),givenName:D.readString({source:e,path:["givenName"]}),familyName:D.readString({source:e,path:["familyName"]}),emails:SO({person:t,group:"emailAddresses"}),phoneNumbers:SO({person:t,group:"phoneNumbers"}),company:D.readString({source:r,path:["name"]}),jobTitle:D.readString({source:r,path:["title"]}),updateTime:D.readString({source:o,path:["updateTime"]})}}a(y4,"summarizePerson");var Bt={buildPerson:g4,summarizePerson:y4};var xO=Oe({auth:xe,name:"create_contact",classification:"WRITE",displayName:"Create Contact",description:"Create a new contact in the connected Google account.",audience:"ai",aiMetadata:{description:'Creates one new person in the connected Google Contacts account from name, nickname, email, phone, organization and notes fields. Supply at least one of name, email or phone; email addresses and phone numbers are arrays of strings, so pass ["ada@example.com"] rather than a bare string. Use Batch Create Contacts for many at once, and Update Contact Fields to change someone who already exists. Not idempotent \u2014 every call creates a separate person, so check with Search Contacts first if duplicates matter.',idempotent:!1},outputSchema:tO,props:{firstName:K.ShortText({displayName:"First Name",required:!1}),middleName:K.ShortText({displayName:"Middle Name",required:!1}),lastName:K.ShortText({displayName:"Last Name",required:!1}),nickname:K.ShortText({displayName:"Nickname",required:!1}),emails:K.Array({displayName:"Email Addresses",description:'Array of email address strings, for example ["ada@example.com"]. A single address still has to be wrapped in an array.',required:!1}),phoneNumbers:K.Array({displayName:"Phone Numbers",description:'Array of phone number strings, for example ["+1 555 0100"]. A single number still has to be wrapped in an array.',required:!1}),company:K.ShortText({displayName:"Company",required:!1}),jobTitle:K.ShortText({displayName:"Job Title",required:!1}),biography:K.LongText({displayName:"Notes",description:"Free-text notes stored on the contact biography.",required:!1})},async run(t){let e=D.toStringList({value:t.propsValue.emails,label:"Email Addresses"}),r=D.toStringList({value:t.propsValue.phoneNumbers,label:"Phone Numbers"}),{person:o,fields:n}=Bt.buildPerson({input:{firstName:t.propsValue.firstName,middleName:t.propsValue.middleName,lastName:t.propsValue.lastName,nickname:t.propsValue.nickname,emails:e,phoneNumbers:r,company:t.propsValue.company,jobTitle:t.propsValue.jobTitle,biography:t.propsValue.biography}});if(n.length===0)throw new Error("Create Contact needs at least one of first name, last name, email address or phone number.");try{return await D.sendRequest({accessToken:t.auth.access_token,method:"POST",path:"/people:createContact",queryParams:{personFields:D.contactReadMask.join(",")},body:o})}catch(i){throw D.toApiError({error:i,operation:"Create Contact"})}}});var TO=Oe({auth:xe,name:"update_contact_fields",classification:"WRITE",displayName:"Update Contact Fields",description:"Update only the supplied fields on an existing contact.",audience:"ai",aiMetadata:{description:"Updates an existing Google Contacts person, changing only the fields you supply and leaving every other field untouched. It reads the contact first, so it resolves the required etag and field mask itself \u2014 you never pass them. Supply the opaque resourceName from List Contacts or Search Contacts. A non-empty email or phone list replaces the stored list for that field wholesale; first/middle/last name and company/job title are merged over the current values. Leaving a list empty does NOT clear it, because the platform cannot distinguish an untouched list from an emptied one: to remove every email address or every phone number, including the last one, set clearEmails or clearPhoneNumbers to true. Setting a clear flag while also supplying a non-empty list for the same field is rejected. Safe to retry: re-applying the same values converges, and a concurrent edit surfaces as a re-read-and-retry error.",idempotent:!0},outputSchema:nO,props:{resourceName:K.ShortText({displayName:"Resource Name",description:"Opaque contact resource name such as people/c12345. Resolve it with List Contacts or Search Contacts.",required:!0}),firstName:K.ShortText({displayName:"First Name",required:!1}),middleName:K.ShortText({displayName:"Middle Name",required:!1}),lastName:K.ShortText({displayName:"Last Name",required:!1}),nickname:K.ShortText({displayName:"Nickname",required:!1}),emails:K.Array({displayName:"Email Addresses",description:'Array of email address strings, for example ["ada@example.com"]. Replaces every email address stored on the contact. Leaving it empty keeps the stored addresses; it does not clear them, because an untouched list and an emptied one cannot be told apart. Use Clear Email Addresses to remove them.',required:!1}),clearEmails:K.Checkbox({displayName:"Clear Email Addresses",description:"Remove every email address from the contact, including the last one. This is the only way to clear them. Cannot be combined with a non-empty Email Addresses list.",required:!1,defaultValue:!1}),phoneNumbers:K.Array({displayName:"Phone Numbers",description:'Array of phone number strings, for example ["+1 555 0100"]. Replaces every phone number stored on the contact. Leaving it empty keeps the stored numbers; it does not clear them, because an untouched list and an emptied one cannot be told apart. Use Clear Phone Numbers to remove them.',required:!1}),clearPhoneNumbers:K.Checkbox({displayName:"Clear Phone Numbers",description:"Remove every phone number from the contact, including the last one. This is the only way to clear them. Cannot be combined with a non-empty Phone Numbers list.",required:!1,defaultValue:!1}),company:K.ShortText({displayName:"Company",required:!1}),jobTitle:K.ShortText({displayName:"Job Title",required:!1}),biography:K.LongText({displayName:"Notes",required:!1})},async run(t){let e=t.propsValue.resourceName.trim(),r=t.propsValue.clearEmails===!0,o=t.propsValue.clearPhoneNumbers===!0,n=D.toStringList({value:t.propsValue.emails,label:"Email Addresses"}),i=D.toStringList({value:t.propsValue.phoneNumbers,label:"Phone Numbers"});if(r&&n.length>0)throw new Error("Clear Email Addresses removes every email address, so it cannot be combined with an Email Addresses list. Either clear the list or turn the checkbox off.");if(o&&i.length>0)throw new Error("Clear Phone Numbers removes every phone number, so it cannot be combined with a Phone Numbers list. Either clear the list or turn the checkbox off.");let s={firstName:t.propsValue.firstName,middleName:t.propsValue.middleName,lastName:t.propsValue.lastName,nickname:t.propsValue.nickname,emails:n,phoneNumbers:i,clearEmails:r,clearPhoneNumbers:o,company:t.propsValue.company,jobTitle:t.propsValue.jobTitle,biography:t.propsValue.biography},{fields:u}=Bt.buildPerson({input:s});if(u.length===0)throw new Error("Update Contact Fields needs at least one field to change; every field prop was left empty.");let l;try{l=await D.sendRequest({accessToken:t.auth.access_token,method:"GET",path:`/${e}`,queryParams:{personFields:u.join(",")}})}catch(m){throw D.toApiError({error:m,operation:"Update Contact Fields (reading the contact)"})}let p=D.readString({source:l,path:["etag"]});if(p===void 0)throw new Error("Update Contact Fields could not read the current etag of the contact; re-read the contact and retry.");let{person:f,fields:y}=Bt.buildPerson({input:s,current:l});try{return await D.sendRequest({accessToken:t.auth.access_token,method:"PATCH",path:`/${e}:updateContact`,queryParams:{updatePersonFields:y.join(","),personFields:D.contactReadMask.join(",")},body:{etag:p,...f}})}catch(m){throw D.toApiError({error:m,operation:"Update Contact Fields"})}}});var AO=Oe({auth:xe,name:"search_contacts",classification:"SEARCH",displayName:"Search Contacts",description:"Search the connected account contacts by a plain-text query.",audience:"ai",aiMetadata:{description:'Searches the connected Google Contacts account for people whose fields prefix-match a plain-text query and returns each match with its resourceName and etag. Use it to resolve a name, email or phone fragment into a resourceName before an update or delete; use List Contacts to enumerate everything instead. Matching is prefix-only ("foo n" matches "foo name", "oo n" does not) and capped at 30 results. Read-only and safe to retry.',idempotent:!0},outputSchema:iO,props:{query:K.ShortText({displayName:"Query",description:"Plain-text query prefix-matched against contact fields such as name, email and phone number.",required:!0}),pageSize:K.Number({displayName:"Page Size",description:"Number of results to return, maximum 30. Defaults to 30.",required:!1})},async run(t){let e=D.contactReadMask.join(","),r=Math.min(30,Math.max(1,t.propsValue.pageSize??30));try{await D.sendRequest({accessToken:t.auth.access_token,method:"GET",path:"/people:searchContacts",queryParams:{query:"",readMask:e,pageSize:"1"}})}catch(o){throw D.toApiError({error:o,operation:"Search Contacts warm-up"})}try{let o=await D.sendRequest({accessToken:t.auth.access_token,method:"GET",path:"/people:searchContacts",queryParams:{query:t.propsValue.query,readMask:e,pageSize:String(r)}}),n=D.readArray({source:o,path:["results"]}).map(i=>Bt.summarizePerson({person:D.readValue({source:i,path:["person"]})}));return{results:n,count:n.length}}catch(o){throw D.toApiError({error:o,operation:"Search Contacts"})}}});var wO=Oe({auth:xe,name:"get_contact",classification:"READ",displayName:"Get Contact",description:"Read a single contact by its resource name.",audience:"ai",aiMetadata:{description:"Reads one Google Contacts person by its opaque resourceName (people/{id}) and returns names, emails, phone numbers, organizations, memberships and the current etag. Obtain the resourceName from List Contacts or Search Contacts; do not construct or parse it. Use Batch Get Contacts for more than one contact. Read-only and safe to retry.",idempotent:!0},outputSchema:rO,props:{resourceName:K.ShortText({displayName:"Resource Name",description:"Opaque contact resource name such as people/c12345. Resolve it with List Contacts or Search Contacts.",required:!0})},async run(t){let e=t.propsValue.resourceName.trim();try{return await D.sendRequest({accessToken:t.auth.access_token,method:"GET",path:`/${e}`,queryParams:{personFields:D.contactReadMask.join(",")}})}catch(r){throw D.toApiError({error:r,operation:"Get Contact"})}}});var _4=10,IO=Oe({auth:xe,name:"list_contacts",classification:"SEARCH",displayName:"List Contacts",description:"List the contacts of the connected Google account.",audience:"ai",aiMetadata:{description:"Lists the connected account contacts with the resourceName and etag every write action needs, plus display name, emails, phone numbers and organization. Use this to resolve a person name to a resourceName before Update Contact Fields, Delete Contact or group membership changes; use Search Contacts when you already have a query string. Read-only and safe to retry.",idempotent:!0},outputSchema:oO,props:{maxResults:K.Number({displayName:"Max Results",description:"Maximum number of contacts to return. Defaults to 200.",required:!1})},async run(t){let e=t.propsValue.maxResults??200,r=[],o;try{for(let i=0;i<_4;i++){let s=Math.min(1e3,Math.max(1,e-r.length)),u=await D.sendRequest({accessToken:t.auth.access_token,method:"GET",path:"/people/me/connections",queryParams:{personFields:D.contactReadMask.join(","),pageSize:String(s),pageToken:o}}),l=D.readArray({source:u,path:["connections"]});for(let p of l)r.push(Bt.summarizePerson({person:p}));if(o=D.readString({source:u,path:["nextPageToken"]}),o===void 0||r.length>=e)break}}catch(i){throw D.toApiError({error:i,operation:"List Contacts"})}let n=r.slice(0,e);return{contacts:n,count:n.length,hasMore:o!==void 0}}});var CO=Oe({auth:xe,name:"delete_contact",classification:"DESTRUCTIVE",displayName:"Delete Contact",description:"Permanently delete a contact by its resource name.",audience:"ai",aiMetadata:{description:"Permanently deletes one Google Contacts person by its opaque resourceName (people/{id}). Irreversible \u2014 the People API has no trash, so confirm the contact with Get Contact or List Contacts first; use Batch Delete Contacts for many at once. Not idempotent: a repeat call fails because the contact is already gone.",idempotent:!1},outputSchema:aO,props:{resourceName:K.ShortText({displayName:"Resource Name",description:"Opaque contact resource name such as people/c12345. Resolve it with List Contacts or Search Contacts. Deletion cannot be undone.",required:!0})},async run(t){let e=t.propsValue.resourceName.trim();try{await D.sendRequest({accessToken:t.auth.access_token,method:"DELETE",path:`/${e}:deleteContact`})}catch(r){throw D.toApiError({error:r,operation:"Delete Contact"})}return{deleted:!0,resourceName:e}}});var RO=Oe({auth:xe,name:"batch_get_contacts",classification:"READ",displayName:"Batch Get Contacts",description:"Read up to 200 contacts in one call by their resource names.",audience:"ai",aiMetadata:{description:"Reads up to 200 Google Contacts people in one call from a list of opaque resourceNames and returns each full contact with its current etag, split into succeeded and failed collections. Use it instead of repeated Get Contact calls, and as the input source for Batch Update Contacts. A whole-call success can still contain per-contact failures, so always read the failed collection. Read-only and safe to retry.",idempotent:!0},outputSchema:cO,props:{resourceNames:K.Array({displayName:"Resource Names",description:"Up to 200 opaque contact resource names such as people/c12345, resolved with List Contacts or Search Contacts.",required:!0})},async run(t){let e=D.toStringList({value:t.propsValue.resourceNames,label:"Resource Names"});D.assertBatchSize({values:e,max:200,label:"Resource Names"});let r;try{r=await D.sendRequest({accessToken:t.auth.access_token,method:"GET",path:"/people:batchGet",queryParams:{personFields:D.contactReadMask.join(",")},repeatedQueryParams:{resourceNames:e}})}catch(s){throw D.toApiError({error:s,operation:"Batch Get Contacts"})}let o=D.readArray({source:r,path:["responses"]}).map((s,u)=>({resourceName:D.readString({source:s,path:["requestedResourceName"]})??e[u]??"",response:s})),{succeeded:n,failed:i}=D.splitItemResponses({items:o,payloadKey:"person"});return{succeeded:n.map(s=>({resourceName:s.resourceName,contact:Bt.summarizePerson({person:s.payload}),person:s.payload})),failed:i,succeededCount:n.length,failedCount:i.length}}});function hi({source:t,key:e}){let r=D.readString({source:t,path:[e]});if(!(r===void 0||r.trim().length===0))return r.trim()}a(hi,"optionalString");var OO=Oe({auth:xe,name:"batch_create_contacts",classification:"WRITE",displayName:"Batch Create Contacts",description:"Create up to 200 contacts in a single call.",audience:"ai",aiMetadata:{description:"Creates up to 200 new Google Contacts people in one call and returns the created contacts split into succeeded and failed collections. Use it instead of repeated Create Contact calls when importing a list; a whole-call success can still contain per-contact failures, so always read the failed collection. Not idempotent \u2014 every call creates new people, so a retry after a partial failure duplicates the ones that already succeeded.",idempotent:!1},outputSchema:uO,props:{contacts:K.Array({displayName:"Contacts",description:"Up to 200 contacts to create. Each needs at least a name, an email or a phone number.",required:!0,properties:{firstName:K.ShortText({displayName:"First Name",required:!1}),middleName:K.ShortText({displayName:"Middle Name",required:!1}),lastName:K.ShortText({displayName:"Last Name",required:!1}),email:K.ShortText({displayName:"Email Address",required:!1}),phoneNumber:K.ShortText({displayName:"Phone Number",required:!1}),company:K.ShortText({displayName:"Company",required:!1}),jobTitle:K.ShortText({displayName:"Job Title",required:!1})}})},async run(t){let e=t.propsValue.contacts;if(!Array.isArray(e)||e.length===0)throw new Error("Contacts must contain at least one entry.");if(e.length>200)throw new Error(`Contacts accepts at most 200 entries, received ${e.length}.`);let r=e.map((u,l)=>{let p=hi({source:u,key:"email"}),f=hi({source:u,key:"phoneNumber"}),{person:y,fields:m}=Bt.buildPerson({input:{firstName:hi({source:u,key:"firstName"}),middleName:hi({source:u,key:"middleName"}),lastName:hi({source:u,key:"lastName"}),emails:p===void 0?[]:[p],phoneNumbers:f===void 0?[]:[f],company:hi({source:u,key:"company"}),jobTitle:hi({source:u,key:"jobTitle"})}});if(m.length===0)throw new Error(`Contact ${l+1} needs at least one of first name, last name, email address or phone number.`);return{contactPerson:y}}),o;try{o=await D.sendRequest({accessToken:t.auth.access_token,method:"POST",path:"/people:batchCreateContacts",body:{contacts:r,readMask:D.contactReadMask.join(",")}})}catch(u){throw D.toApiError({error:u,operation:"Batch Create Contacts"})}let n=D.readArray({source:o,path:["createdPeople"]}),i=n.map((u,l)=>({item:u,index:l})).filter(u=>!D.isFailedItem({response:u.item})).map(u=>{let l=D.readValue({source:u.item,path:["person"]});return{requestIndex:u.index+1,resourceName:D.readString({source:l,path:["resourceName"]}),contact:Bt.summarizePerson({person:l})}}),s=n.map((u,l)=>({item:u,index:l})).filter(u=>D.isFailedItem({response:u.item})).map(u=>({requestIndex:u.index+1,status:D.describeStatus({status:D.readValue({source:u.item,path:["status"]})})}));return{succeeded:i,failed:s,succeededCount:i.length,failedCount:s.length,requestedCount:r.length}}});function v4({entry:t,index:e}){let r=D.readRecord({source:t,path:[]});if(r===void 0)throw new Error(`Contact ${e+1} must be a Person object.`);let o=D.readString({source:r,path:["resourceName"]}),n=D.readString({source:r,path:["etag"]});if(o===void 0||n===void 0)throw new Error(`Contact ${e+1} must carry both resourceName and etag exactly as returned by Batch Get Contacts.`);let i=Object.keys(r).filter(u=>D.updatablePersonFields.includes(u)),s=Object.fromEntries(Object.entries(r).filter(([u])=>u==="etag"||u==="resourceName"||D.updatablePersonFields.includes(u)));return{resourceName:o,person:s,fields:i}}a(v4,"toPerson");function b4({parsed:t}){let e=new Map;for(let r of t){let o=[...r.fields].sort().join(","),n=e.get(o);n===void 0?e.set(o,{[r.resourceName]:r.person}):n[r.resourceName]=r.person}return[...e.entries()].map(([r,o])=>({updateMask:r,contacts:o}))}a(b4,"groupBySignature");var kO=Oe({auth:xe,name:"batch_update_contacts",classification:"WRITE",displayName:"Batch Update Contacts",description:"Update up to 200 contacts in a single call from full Person objects.",audience:"ai",aiMetadata:{description:"Updates up to 200 Google Contacts people in one call. Feed it the full Person objects returned by Batch Get Contacts, each still carrying its own resourceName and etag, with the values you want changed edited in place. The people are grouped by which field groups they carry and one request is issued per group, so a person carrying only a phone number and a person carrying only an email can be updated together; each request uses the field mask of its own group. Within a group the mask is applied to every person in it, so never hand-build partial Person objects here \u2014 a group a person no longer carries is erased on that person. Prefer Update Contact Fields for a single contact. Because the work is split across requests, this action can partially apply: one group can be written while another is rejected outright. It therefore does not throw when a request fails \u2014 it records every contact in that request under failed and carries on. Never treat a returned result as wholesale success and never assume an absent error means everything applied; always read failed and failedCount, which also cover per-contact rejections such as stale etags. Every submitted person must carry at least one updatable field group. Before retrying, re-read the people so the already-updated ones carry fresh etags.",idempotent:!0},outputSchema:lO,props:{contacts:K.Json({displayName:"Contacts",description:"JSON array of up to 200 full Person objects taken from Batch Get Contacts, each keeping its resourceName and etag, with the fields to change edited in place.",required:!0})},async run(t){let e=t.propsValue.contacts;if(!Array.isArray(e)||e.length===0)throw new Error("Contacts must be a JSON array holding at least one Person object.");if(e.length>200)throw new Error(`Contacts accepts at most 200 entries, received ${e.length}.`);let r=e.map((u,l)=>v4({entry:u,index:l})),o=r.filter(u=>u.fields.length===0).map(u=>u.resourceName);if(o.length>0)throw new Error(`Every submitted person must carry at least one updatable field group, because a person with no group has nothing to update. These people carry none: ${o.join(", ")}.`);let n=b4({parsed:r}),i=[],s=[];for(let u of n){let l;try{l=await D.sendRequest({accessToken:t.auth.access_token,method:"POST",path:"/people:batchUpdateContacts",body:{contacts:u.contacts,updateMask:u.updateMask,readMask:D.contactReadMask.join(",")}})}catch(m){let h=D.toApiError({error:m,operation:`Batch Update Contacts (field mask ${u.updateMask})`}).message;for(let _ of Object.keys(u.contacts))s.push({resourceName:_,status:h,updateMask:u.updateMask});continue}let p=D.readRecord({source:l,path:["updateResult"]}),f=Object.entries(p??{}).map(([m,h])=>({resourceName:m,response:h})),y=D.splitItemResponses({items:f,payloadKey:"person"});for(let m of y.succeeded)i.push({resourceName:m.resourceName,contact:Bt.summarizePerson({person:m.payload}),person:m.payload});for(let m of y.failed)s.push({resourceName:m.resourceName,status:m.status,updateMask:u.updateMask})}return{succeeded:i,failed:s,succeededCount:i.length,failedCount:s.length,updateMasks:n.map(u=>u.updateMask)}}});var NO=Oe({auth:xe,name:"batch_delete_contacts",classification:"DESTRUCTIVE",displayName:"Batch Delete Contacts",description:"Permanently delete up to 500 contacts in a single call.",audience:"ai",aiMetadata:{description:"Permanently deletes up to 500 Google Contacts people in one call from a list of opaque resourceNames. Irreversible and unrecoverable \u2014 the People API has no trash and there is no per-contact confirmation in the response, so verify every resourceName with Batch Get Contacts or List Contacts before calling and prefer Delete Contact when removing a single person. Not idempotent: a repeat call fails on contacts that are already gone.",idempotent:!1},outputSchema:sO,props:{resourceNames:K.Array({displayName:"Resource Names",description:"Up to 500 opaque contact resource names such as people/c12345. Every listed contact is deleted permanently and cannot be restored.",required:!0})},async run(t){let e=D.toStringList({value:t.propsValue.resourceNames,label:"Resource Names"});D.assertBatchSize({values:e,max:500,label:"Resource Names"});try{await D.sendRequest({accessToken:t.auth.access_token,method:"POST",path:"/people:batchDeleteContacts",body:{resourceNames:e}})}catch(r){throw D.toApiError({error:r,operation:"Batch Delete Contacts"})}return{deleted:!0,resourceNames:e,count:e.length}}});var $O="base64,",zO=Oe({auth:xe,name:"update_contact_photo",classification:"WRITE",displayName:"Update Contact Photo",description:"Set the photo of an existing contact from base64 image bytes.",audience:"ai",aiMetadata:{description:"Replaces the photo of one Google Contacts person with the supplied base64-encoded JPEG, PNG or WebP image. Supply the opaque resourceName from List Contacts or Search Contacts; use Delete Contact Photo to remove a photo instead. Safe to retry \u2014 re-sending the same bytes converges on the same photo.",idempotent:!0},outputSchema:dO,props:{resourceName:K.ShortText({displayName:"Resource Name",description:"Opaque contact resource name such as people/c12345. Resolve it with List Contacts or Search Contacts.",required:!0}),photoBytes:K.LongText({displayName:"Photo Bytes",description:"Base64-encoded JPEG, PNG or WebP image. A data URL prefix is accepted and stripped.",required:!0})},async run(t){let e=t.propsValue.resourceName.trim(),r=t.propsValue.photoBytes.trim(),o=r.indexOf($O),n=o===-1?r:r.slice(o+$O.length);if(n.length===0)throw new Error("Update Contact Photo needs base64-encoded image bytes.");let i;try{i=await D.sendRequest({accessToken:t.auth.access_token,method:"PATCH",path:`/${e}:updateContactPhoto`,body:{photoBytes:n,personFields:D.contactReadMask.join(",")}})}catch(u){throw D.toApiError({error:u,operation:"Update Contact Photo"})}let s=D.readRecord({source:i,path:["person"]});if(s===void 0)throw new Error("Update Contact Photo could not read the updated contact back from Google Contacts; re-read the contact with Get Contact to confirm the photo was set.");return s}});var DO=Oe({auth:xe,name:"delete_contact_photo",classification:"WRITE",displayName:"Delete Contact Photo",description:"Remove the photo of an existing contact.",audience:"ai",aiMetadata:{description:"Removes the photo from one Google Contacts person, leaving the rest of the contact untouched. Supply the opaque resourceName from List Contacts or Search Contacts; use Update Contact Photo to set a new image instead. The removed image is not recoverable through this API.",idempotent:!1},outputSchema:pO,props:{resourceName:K.ShortText({displayName:"Resource Name",description:"Opaque contact resource name such as people/c12345. Resolve it with List Contacts or Search Contacts.",required:!0})},async run(t){let e=t.propsValue.resourceName.trim(),r;try{r=await D.sendRequest({accessToken:t.auth.access_token,method:"DELETE",path:`/${e}:deleteContactPhoto`,queryParams:{personFields:D.contactReadMask.join(",")}})}catch(n){throw D.toApiError({error:n,operation:"Delete Contact Photo"})}let o=D.readRecord({source:r,path:["person"]});if(o===void 0)throw new Error("Delete Contact Photo could not read the updated contact back from Google Contacts; re-read the contact with Get Contact to confirm the photo was removed.");return o}});function E4({group:t}){let e=D.readValue({source:t,path:["memberCount"]});return{resourceName:D.readString({source:t,path:["resourceName"]}),etag:D.readString({source:t,path:["etag"]}),name:D.readString({source:t,path:["name"]}),formattedName:D.readString({source:t,path:["formattedName"]}),groupType:D.readString({source:t,path:["groupType"]}),memberCount:typeof e=="number"?e:0,memberResourceNames:D.readArray({source:t,path:["memberResourceNames"]}).filter(r=>typeof r=="string")}}a(E4,"summarizeGroup");function P4({group:t,name:e}){let r=e.trim().toLowerCase(),o=D.readString({source:t,path:["name"]}),n=D.readString({source:t,path:["formattedName"]});return o?.trim().toLowerCase()===r||n?.trim().toLowerCase()===r}a(P4,"matchesName");var mr={summarizeGroup:E4,matchesName:P4};var S4=10,UO=Oe({auth:xe,name:"list_contact_groups",classification:"SEARCH",displayName:"List Contact Groups",description:"List every contact group of the connected Google account.",audience:"ai",aiMetadata:{description:"Lists the contact groups (labels) of the connected Google account with the opaque resourceName, name, type and member count of each. Use it to resolve a group name to its resourceName before Get Contact Group, Update Contact Group, Delete Contact Group or Add Or Remove Contact Group Members. Member resource names are not included here \u2014 read a single group with Get Contact Group for those. Read-only and safe to retry.",idempotent:!0},outputSchema:fO,props:{},async run(t){let e=[],r;try{for(let o=0;o<S4;o++){let n=await D.sendRequest({accessToken:t.auth.access_token,method:"GET",path:"/contactGroups",queryParams:{groupFields:D.contactGroupFields.join(","),pageSize:"1000",pageToken:r}});for(let i of D.readArray({source:n,path:["contactGroups"]}))e.push(mr.summarizeGroup({group:i}));if(r=D.readString({source:n,path:["nextPageToken"]}),r===void 0)break}}catch(o){throw D.toApiError({error:o,operation:"List Contact Groups"})}return{contactGroups:e,count:e.length,hasMore:r!==void 0}}});var MO=Oe({auth:xe,name:"get_contact_group",classification:"READ",displayName:"Get Contact Group",description:"Read one contact group, optionally with its member resource names.",audience:"ai",aiMetadata:{description:"Reads one Google Contacts group by its opaque resourceName (contactGroups/{id}) and returns its name, type, member count and, when Max Members is above zero, the resource names of its members. Resolve the resourceName with List Contact Groups; use Batch Get Contact Groups for several groups. Read-only and safe to retry.",idempotent:!0},outputSchema:mO,props:{resourceName:K.ShortText({displayName:"Resource Name",description:"Opaque contact group resource name such as contactGroups/abc123, or a system group like contactGroups/myContacts. Resolve it with List Contact Groups.",required:!0}),maxMembers:K.Number({displayName:"Max Members",description:"How many member resource names to return. Defaults to 0, which returns none.",required:!1})},async run(t){let e=t.propsValue.resourceName.trim(),r=Math.max(0,t.propsValue.maxMembers??0);try{let o=await D.sendRequest({accessToken:t.auth.access_token,method:"GET",path:`/${e}`,queryParams:{groupFields:D.contactGroupFields.join(","),maxMembers:String(r)}});return mr.summarizeGroup({group:o})}catch(o){throw D.toApiError({error:o,operation:"Get Contact Group"})}}});var LO=Oe({auth:xe,name:"batch_get_contact_groups",classification:"READ",displayName:"Batch Get Contact Groups",description:"Read up to 200 contact groups in one call by their resource names.",audience:"ai",aiMetadata:{description:"Reads up to 200 Google Contacts groups in one call from a list of opaque resourceNames, returning succeeded and failed collections. Use it instead of repeated Get Contact Group calls; a whole-call success can still contain per-group failures, so always read the failed collection. Resolve the resource names with List Contact Groups. Read-only and safe to retry.",idempotent:!0},outputSchema:gO,props:{resourceNames:K.Array({displayName:"Resource Names",description:"Up to 200 opaque contact group resource names such as contactGroups/abc123, resolved with List Contact Groups.",required:!0}),maxMembers:K.Number({displayName:"Max Members",description:"How many member resource names to return per group. Defaults to 0, which returns none.",required:!1})},async run(t){let e=D.toStringList({value:t.propsValue.resourceNames,label:"Resource Names"});D.assertBatchSize({values:e,max:200,label:"Resource Names"});let r=Math.max(0,t.propsValue.maxMembers??0),o;try{o=await D.sendRequest({accessToken:t.auth.access_token,method:"GET",path:"/contactGroups:batchGet",queryParams:{groupFields:D.contactGroupFields.join(","),maxMembers:String(r)},repeatedQueryParams:{resourceNames:e}})}catch(u){throw D.toApiError({error:u,operation:"Batch Get Contact Groups"})}let n=D.readArray({source:o,path:["responses"]}).map((u,l)=>({resourceName:D.readString({source:u,path:["requestedResourceName"]})??e[l]??"",response:u})),{succeeded:i,failed:s}=D.splitItemResponses({items:n,payloadKey:"contactGroup"});return{succeeded:i.map(u=>mr.summarizeGroup({group:u.payload})),failed:s,succeededCount:i.length,failedCount:s.length}}});var x4=10;async function jO({accessToken:t,name:e}){let r;for(let o=0;o<x4;o++){let n=await D.sendRequest({accessToken:t,method:"GET",path:"/contactGroups",queryParams:{groupFields:D.contactGroupFields.join(","),pageSize:"1000",pageToken:r}}),i=D.readArray({source:n,path:["contactGroups"]}).find(s=>mr.matchesName({group:s,name:e}));if(i!==void 0)return i;if(r=D.readString({source:n,path:["nextPageToken"]}),r===void 0)return}}a(jO,"findGroupByName");var FO=Oe({auth:xe,name:"create_contact_group",classification:"WRITE",displayName:"Create Contact Group",description:"Create a contact group, or return the existing one with that name.",audience:"ai",aiMetadata:{description:"Creates a contact group (label) with the given name in the connected Google account, or returns the existing group when one already carries that name, reporting which happened through the created flag. Use it before Add Or Remove Contact Group Members when the target group may not exist yet. Safe to retry: the lookup runs first and a duplicate-name rejection is resolved by returning the existing group.",idempotent:!0},outputSchema:yO,props:{name:K.ShortText({displayName:"Group Name",description:"Name of the contact group to find or create.",required:!0})},async run(t){let e=t.propsValue.name.trim();if(e.length===0)throw new Error("Group Name must not be empty.");let r=t.auth.access_token;try{let o=await jO({accessToken:r,name:e});if(o!==void 0)return{created:!1,contactGroup:mr.summarizeGroup({group:o})}}catch(o){throw D.toApiError({error:o,operation:"Create Contact Group (looking up existing groups)"})}try{let o=await D.sendRequest({accessToken:r,method:"POST",path:"/contactGroups",body:{contactGroup:{name:e},readGroupFields:D.contactGroupFields.join(",")}});return{created:!0,contactGroup:mr.summarizeGroup({group:o})}}catch(o){if(!D.isConflict({error:o}))throw D.toApiError({error:o,operation:"Create Contact Group"});let n=await jO({accessToken:r,name:e});if(n===void 0)throw D.toApiError({error:o,operation:"Create Contact Group"});return{created:!1,contactGroup:mr.summarizeGroup({group:n})}}}});var BO=Oe({auth:xe,name:"update_contact_group",classification:"WRITE",displayName:"Update Contact Group",description:"Rename an existing user-created contact group.",audience:"ai",aiMetadata:{description:"Renames one user-created Google Contacts group identified by its opaque resourceName (contactGroups/{id}). It reads the group first to resolve the required etag and sends an explicit name-only field mask, so members and other group data are untouched. Resolve the resourceName with List Contact Groups; Google-managed system groups cannot be renamed. Safe to retry: re-applying the same name converges, and a concurrent edit surfaces as a re-read-and-retry error.",idempotent:!0},outputSchema:hO,props:{resourceName:K.ShortText({displayName:"Resource Name",description:"Opaque contact group resource name such as contactGroups/abc123. Resolve it with List Contact Groups.",required:!0}),name:K.ShortText({displayName:"New Group Name",required:!0})},async run(t){let e=t.propsValue.resourceName.trim(),r=t.propsValue.name.trim();if(r.length===0)throw new Error("New Group Name must not be empty.");let o=D.contactGroupFields.join(","),n;try{n=await D.sendRequest({accessToken:t.auth.access_token,method:"GET",path:`/${e}`,queryParams:{groupFields:o,maxMembers:"0"}})}catch(s){throw D.toApiError({error:s,operation:"Update Contact Group (reading the group)"})}let i=D.readString({source:n,path:["etag"]});if(i===void 0)throw new Error("Update Contact Group could not read the current etag of the group; re-read the group and retry.");try{let s=await D.sendRequest({accessToken:t.auth.access_token,method:"PUT",path:`/${e}`,body:{contactGroup:{etag:i,name:r},updateGroupFields:"name",readGroupFields:o}});return mr.summarizeGroup({group:s})}catch(s){throw D.toApiError({error:s,operation:"Update Contact Group"})}}});var qO=Oe({auth:xe,name:"delete_contact_group",classification:"DESTRUCTIVE",displayName:"Delete Contact Group",description:"Delete a user-created contact group.",audience:"ai",aiMetadata:{description:"Deletes one user-created Google Contacts group by its opaque resourceName (contactGroups/{id}). By default only the group is removed and its members stay in the address book; turning on Delete Contacts also permanently deletes every contact in the group, which cannot be undone. Resolve the resourceName with List Contact Groups; Google-managed system groups cannot be deleted. Not idempotent: a repeat call fails because the group is already gone.",idempotent:!1},outputSchema:_O,props:{resourceName:K.ShortText({displayName:"Resource Name",description:"Opaque contact group resource name such as contactGroups/abc123. Resolve it with List Contact Groups.",required:!0}),deleteContacts:K.Checkbox({displayName:"Also Delete Contacts",description:"When enabled, every contact in the group is permanently deleted as well. Leave off to remove only the group.",required:!1,defaultValue:!1})},async run(t){let e=t.propsValue.resourceName.trim(),r=t.propsValue.deleteContacts===!0;try{await D.sendRequest({accessToken:t.auth.access_token,method:"DELETE",path:`/${e}`,queryParams:{deleteContacts:String(r)}})}catch(o){throw D.toApiError({error:o,operation:"Delete Contact Group"})}return{deleted:!0,resourceName:e,deletedContacts:r}}});var GO=Oe({auth:xe,name:"modify_contact_group_members",classification:"WRITE",displayName:"Add Or Remove Contact Group Members",description:"Add contacts to a contact group or remove them from it.",audience:"ai",aiMetadata:{description:"Adds contacts to a Google Contacts group and removes contacts from it in one call, taking opaque people/{id} resource names resolved with List Contacts or Search Contacts and a contactGroups/{id} group resolved with List Contact Groups. Additions are accepted by user-created groups and by the system groups contactGroups/myContacts and contactGroups/starred only; other system groups accept removals only. Combined additions and removals are capped at 1000, and the response reports contacts that were not found. Safe to retry \u2014 re-applying the same membership changes converges.",idempotent:!0},outputSchema:vO,props:{resourceName:K.ShortText({displayName:"Contact Group Resource Name",description:"Opaque contact group resource name such as contactGroups/abc123, contactGroups/myContacts or contactGroups/starred. Resolve it with List Contact Groups.",required:!0}),resourceNamesToAdd:K.Array({displayName:"Contacts To Add",description:"Opaque contact resource names such as people/c12345 to add to the group.",required:!1}),resourceNamesToRemove:K.Array({displayName:"Contacts To Remove",description:"Opaque contact resource names such as people/c12345 to remove from the group.",required:!1})},async run(t){let e=t.propsValue.resourceName.trim(),r=D.toStringList({value:t.propsValue.resourceNamesToAdd,label:"Contacts To Add"}),o=D.toStringList({value:t.propsValue.resourceNamesToRemove,label:"Contacts To Remove"}),n=r.length+o.length;if(n===0)throw new Error("Add Or Remove Contact Group Members needs at least one contact to add or remove.");if(n>1e3)throw new Error(`Contacts to add and remove are capped at 1000 combined, received ${n}.`);if(r.length>0&&D.systemGroupsRejectingAdds.includes(e))throw new Error(`The system group ${e} does not accept added members; only contactGroups/myContacts, contactGroups/starred and user-created groups do.`);let i;try{i=await D.sendRequest({accessToken:t.auth.access_token,method:"POST",path:`/${e}/members:modify`,body:{resourceNamesToAdd:r,resourceNamesToRemove:o}})}catch(l){throw D.toApiError({error:l,operation:"Add Or Remove Contact Group Members"})}let s=D.readArray({source:i,path:["notFoundResourceNames"]}).filter(l=>typeof l=="string"),u=D.readArray({source:i,path:["canNotRemoveLastContactGroupResourceNames"]}).filter(l=>typeof l=="string");return{resourceName:e,added:r.filter(l=>!s.includes(l)),removed:o.filter(l=>!s.includes(l)&&!u.includes(l)),notFoundResourceNames:s,canNotRemoveLastContactGroupResourceNames:u}}});var fD=Tt(dD()),mD=Tt(tl()),hD=Tt(pD());var ch={strategy:0,items:a(async({store:t,auth:e})=>{let r=new mD.OAuth2Client;r.setCredentials(e);let o=(0,fD.people)({version:"v1",auth:r}),n,i=[];do{let s=await o.people.connections.list({resourceName:"people/me",pageToken:n,pageSize:100,sortOrder:"LAST_MODIFIED_DESCENDING",personFields:["addresses","ageRanges","biographies","birthdays","calendarUrls","clientData","coverPhotos","emailAddresses","events","externalIds","genders","imClients","interests","locales","locations","memberships","metadata","miscKeywords","names","nicknames","occupations","organizations","phoneNumbers","photos","relations","sipAddresses","skills","urls","userDefined"].join()});for(let u of s.data.connections||[])u.metadata?.deleted!==!0&&i.push({data:u,epochMilliSeconds:(0,hD.default)(u.metadata?.sources?.[0].updateTime).valueOf()});n=s.data.nextPageToken}while(n);return i},"items")},gD=CI({auth:xe,name:"new_or_updated_contact",classification:"READ",displayName:"New Or Updated Contact",description:"Triggers when there is a new or updated contact",aiMetadata:{description:"Fires when a contact in the authenticated Google Contacts account is newly created or has been modified since the last poll. Each event represents one person record with its current fields; deleted contacts are excluded."},props:{},outputSchema:eO,sampleData:{resourceName:"people/c4278485694217203807",etag:"%EiMBAgMFBgcICQoLDA0ODxATFBUWGSEiIyQlJicuNDU3PT4/QBoEAQIFByIMZFVwNlJPNEVKUzg9",metadata:{sources:[{type:"CONTACT",id:"3b603c120c68305f",etag:"#dUp6RO4EJS8=",updateTime:"2023-01-30T14:35:18.142565Z"}],objectType:"PERSON"},names:[{metadata:{primary:!0,source:{type:"CONTACT",id:"3b603c120c68305f"}},displayName:"Shahed Mashni",familyName:"Mashni",givenName:"Shahed",displayNameLastFirst:"Mashni, Shahed",unstructuredName:"Shahed Mashni"}],photos:[{metadata:{primary:!0,source:{type:"CONTACT",id:"3b603c120c68305f"}},url:"https://lh3.googleusercontent.com/cm/AAkddurmZojs4vCcxrpkfSxH9tnqcH-hI82ESDnwv6eq86nZeLStcjYEIe_TCx8r8g5Y=s100",default:!0}],memberships:[{metadata:{source:{type:"CONTACT",id:"3b603c120c68305f"}},contactGroupMembership:{contactGroupId:"myContacts",contactGroupResourceName:"contactGroups/myContacts"}}]},type:"POLLING",async onEnable(t){return await bu.onEnable(ch,{store:t.store,auth:t.auth,propsValue:{}})},async onDisable(t){return await bu.onEnable(ch,{store:t.store,auth:t.auth,propsValue:{}})},async run(t){return await bu.poll(ch,{store:t.store,auth:t.auth,propsValue:{},files:t.files})},test:a(async t=>await bu.test(ch,{store:t.store,auth:t.auth,propsValue:{},files:t.files}),"test")});var m3=kI({minimumSupportedRelease:"0.87.0",logoUrl:"https://cdn.activepieces.com/pieces/google-contacts.png",categories:["SALES_AND_CRM"],actions:[bO,EO,PO,xO,TO,AO,wO,IO,CO,RO,OO,kO,NO,zO,DO,UO,MO,LO,FO,BO,qO,GO,ZR({baseUrl:a(()=>Ao.baseUrl,"baseUrl"),auth:xe,authMapping:a(async t=>({Authorization:`Bearer ${t.access_token}`}),"authMapping")})],displayName:"Google Contacts",description:"Stay connected and organized",authors:["Abdallah-Alwarawreh","Salem-Alaa","kishanprmr","MoShizzle","khaledmashaly","abuaboud","ikus060"],triggers:[gD],auth:xe});0&&(module.exports={googleContacts});
108
108
  /*! Bundled license information:
109
109
 
110
110
  mime-types/index.js: