@activepieces/piece-pdfcrowd 0.1.4 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +41 -3
package/src/index.js CHANGED
@@ -1,6 +1,44 @@
1
- "use strict";var Xs=Object.create;var Ke=Object.defineProperty;var Ys=Object.getOwnPropertyDescriptor;var Qs=Object.getOwnPropertyNames;var ec=Object.getPrototypeOf,tc=Object.prototype.hasOwnProperty;var o=(e,t)=>Ke(e,"name",{value:t,configurable:!0});var E=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},gn=(e,t)=>{for(var r in t)Ke(e,r,{get:t[r],enumerable:!0})},hn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Qs(t))!tc.call(e,i)&&i!==r&&Ke(e,i,{get:()=>t[i],enumerable:!(n=Ys(t,i))||n.enumerable});return e};var ve=(e,t,r)=>(r=e!=null?Xs(ec(e)):{},hn(t||!e||!e.__esModule?Ke(r,"default",{value:e,enumerable:!0}):r,e)),rc=e=>hn(Ke({},"__esModule",{value:!0}),e);var jo=E((Lo,Bt)=>{(function(e){"use strict";let t="(0?\\d+|0x[a-f0-9]+)",r={fourOctet:new RegExp(`^${t}\\.${t}\\.${t}\\.${t}$`,"i"),threeOctet:new RegExp(`^${t}\\.${t}\\.${t}$`,"i"),twoOctet:new RegExp(`^${t}\\.${t}$`,"i"),longValue:new RegExp(`^${t}$`,"i")},n=new RegExp("^0[0-7]+$","i"),i=new RegExp("^0x[a-f0-9]+$","i"),u="%[0-9a-z]{1,}",l="(?:[0-9a-f]+::?)+",d={zoneIndex:new RegExp(u,"i"),native:new RegExp(`^(::)?(${l})?([0-9a-f]+)?(::)?(${u})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${t}\\.${t}\\.${t}\\.${t}(${u})?)$`,"i"),transitional:new RegExp(`^((?:${l})|(?:::)(?:${l})?)${t}\\.${t}\\.${t}\\.${t}(${u})?$`,"i")};function g(s,m){if(s.indexOf("::")!==s.lastIndexOf("::"))return null;let h=0,f=-1,x=(s.match(d.zoneIndex)||[])[0],P,L;for(x&&(x=x.substring(1),s=s.replace(/%.+$/,""));(f=s.indexOf(":",f+1))>=0;)h++;if(s.substr(0,2)==="::"&&h--,s.substr(-2,2)==="::"&&h--,h>m)return null;for(L=m-h,P=":";L--;)P+="0:";return s=s.replace("::",P),s[0]===":"&&(s=s.slice(1)),s[s.length-1]===":"&&(s=s.slice(0,-1)),m=(function(){let Q=s.split(":"),ne=[];for(let Je=0;Je<Q.length;Je++)ne.push(parseInt(Q[Je],16));return ne})(),{parts:m,zoneId:x}}o(g,"expandIPv6");function v(s,m,h,f){if(s.length!==m.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let x=0,P;for(;f>0;){if(P=h-f,P<0&&(P=0),s[x]>>P!==m[x]>>P)return!1;f-=h,x+=1}return!0}o(v,"matchCIDR");function b(s){if(i.test(s))return parseInt(s,16);if(s[0]==="0"&&!isNaN(parseInt(s[1],10))){if(n.test(s))return parseInt(s,8);throw new Error(`ipaddr: cannot parse ${s} as octal`)}return parseInt(s,10)}o(b,"parseIntAuto");function T(s,m){for(;s.length<m;)s=`0${s}`;return s}o(T,"padPart");let _={};_.IPv4=(function(){function s(m){if(m.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let h,f;for(h=0;h<m.length;h++)if(f=m[h],!(0<=f&&f<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=m}return o(s,"IPv4"),s.prototype.SpecialRanges={unspecified:[[new s([0,0,0,0]),8]],broadcast:[[new s([255,255,255,255]),32]],multicast:[[new s([224,0,0,0]),4]],linkLocal:[[new s([169,254,0,0]),16]],loopback:[[new s([127,0,0,0]),8]],carrierGradeNat:[[new s([100,64,0,0]),10]],private:[[new s([10,0,0,0]),8],[new s([172,16,0,0]),12],[new s([192,168,0,0]),16]],reserved:[[new s([192,0,0,0]),24],[new s([192,0,2,0]),24],[new s([192,88,99,0]),24],[new s([198,18,0,0]),15],[new s([198,51,100,0]),24],[new s([203,0,113,0]),24],[new s([240,0,0,0]),4]],as112:[[new s([192,175,48,0]),24],[new s([192,31,196,0]),24]],amt:[[new s([192,52,193,0]),24]]},s.prototype.kind=function(){return"ipv4"},s.prototype.match=function(m,h){let f;if(h===void 0&&(f=m,m=f[0],h=f[1]),m.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return v(this.octets,m.octets,8,h)},s.prototype.prefixLengthFromSubnetMask=function(){let m=0,h=!1,f={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},x,P,L;for(x=3;x>=0;x-=1)if(P=this.octets[x],P in f){if(L=f[P],h&&L!==0)return null;L!==8&&(h=!0),m+=L}else return null;return 32-m},s.prototype.range=function(){return _.subnetMatch(this,this.SpecialRanges)},s.prototype.toByteArray=function(){return this.octets.slice(0)},s.prototype.toIPv4MappedAddress=function(){return _.IPv6.parse(`::ffff:${this.toString()}`)},s.prototype.toNormalizedString=function(){return this.toString()},s.prototype.toString=function(){return this.octets.join(".")},s})(),_.IPv4.broadcastAddressFromCIDR=function(s){try{let m=this.parseCIDR(s),h=m[0].toByteArray(),f=this.subnetMaskFromPrefixLength(m[1]).toByteArray(),x=[],P=0;for(;P<4;)x.push(parseInt(h[P],10)|parseInt(f[P],10)^255),P++;return new this(x)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},_.IPv4.isIPv4=function(s){return this.parser(s)!==null},_.IPv4.isValid=function(s){try{return new this(this.parser(s)),!0}catch{return!1}},_.IPv4.isValidCIDR=function(s){try{return this.parseCIDR(s),!0}catch{return!1}},_.IPv4.isValidFourPartDecimal=function(s){return!!(_.IPv4.isValid(s)&&s.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},_.IPv4.isValidCIDRFourPartDecimal=function(s){let m=s.match(/^(.+)\/(\d+)$/);return!_.IPv4.isValidCIDR(s)||!m?!1:_.IPv4.isValidFourPartDecimal(m[1])},_.IPv4.networkAddressFromCIDR=function(s){let m,h,f,x,P;try{for(m=this.parseCIDR(s),f=m[0].toByteArray(),P=this.subnetMaskFromPrefixLength(m[1]).toByteArray(),x=[],h=0;h<4;)x.push(parseInt(f[h],10)&parseInt(P[h],10)),h++;return new this(x)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},_.IPv4.parse=function(s){let m=this.parser(s);if(m===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(m)},_.IPv4.parseCIDR=function(s){let m;if(m=s.match(/^(.+)\/(\d+)$/)){let h=parseInt(m[2]);if(h>=0&&h<=32){let f=[this.parse(m[1]),h];return Object.defineProperty(f,"toString",{value:o(function(){return this.join("/")},"value")}),f}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},_.IPv4.parser=function(s){let m,h,f;if(m=s.match(r.fourOctet))return(function(){let x=m.slice(1,6),P=[];for(let L=0;L<x.length;L++)h=x[L],P.push(b(h));return P})();if(m=s.match(r.longValue)){if(f=b(m[1]),f>4294967295||f<0)throw new Error("ipaddr: address outside defined range");return(function(){let x=[],P;for(P=0;P<=24;P+=8)x.push(f>>P&255);return x})().reverse()}else return(m=s.match(r.twoOctet))?(function(){let x=m.slice(1,4),P=[];if(f=b(x[1]),f>16777215||f<0)throw new Error("ipaddr: address outside defined range");return P.push(b(x[0])),P.push(f>>16&255),P.push(f>>8&255),P.push(f&255),P})():(m=s.match(r.threeOctet))?(function(){let x=m.slice(1,5),P=[];if(f=b(x[2]),f>65535||f<0)throw new Error("ipaddr: address outside defined range");return P.push(b(x[0])),P.push(b(x[1])),P.push(f>>8&255),P.push(f&255),P})():null},_.IPv4.subnetMaskFromPrefixLength=function(s){if(s=parseInt(s),s<0||s>32)throw new Error("ipaddr: invalid IPv4 prefix length");let m=[0,0,0,0],h=0,f=Math.floor(s/8);for(;h<f;)m[h]=255,h++;return f<4&&(m[f]=Math.pow(2,s%8)-1<<8-s%8),new this(m)},_.IPv6=(function(){function s(m,h){let f,x;if(m.length===16)for(this.parts=[],f=0;f<=14;f+=2)this.parts.push(m[f]<<8|m[f+1]);else if(m.length===8)this.parts=m;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(f=0;f<this.parts.length;f++)if(x=this.parts[f],!(0<=x&&x<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");h&&(this.zoneId=h)}return o(s,"IPv6"),s.prototype.SpecialRanges={unspecified:[new s([0,0,0,0,0,0,0,0]),128],linkLocal:[new s([65152,0,0,0,0,0,0,0]),10],multicast:[new s([65280,0,0,0,0,0,0,0]),8],loopback:[new s([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new s([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new s([0,0,0,0,0,65535,0,0]),96],discard:[new s([256,0,0,0,0,0,0,0]),64],rfc6145:[new s([0,0,0,0,65535,0,0,0]),96],rfc6052:[new s([100,65435,0,0,0,0,0,0]),96],"6to4":[new s([8194,0,0,0,0,0,0,0]),16],teredo:[new s([8193,0,0,0,0,0,0,0]),32],benchmarking:[new s([8193,2,0,0,0,0,0,0]),48],amt:[new s([8193,3,0,0,0,0,0,0]),32],as112v6:[[new s([8193,4,274,0,0,0,0,0]),48],[new s([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new s([8193,16,0,0,0,0,0,0]),28],orchid2:[new s([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new s([8193,48,0,0,0,0,0,0]),28],reserved:[[new s([8193,0,0,0,0,0,0,0]),23],[new s([8193,3512,0,0,0,0,0,0]),32]]},s.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},s.prototype.kind=function(){return"ipv6"},s.prototype.match=function(m,h){let f;if(h===void 0&&(f=m,m=f[0],h=f[1]),m.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return v(this.parts,m.parts,16,h)},s.prototype.prefixLengthFromSubnetMask=function(){let m=0,h=!1,f={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},x,P;for(let L=7;L>=0;L-=1)if(x=this.parts[L],x in f){if(P=f[x],h&&P!==0)return null;P!==16&&(h=!0),m+=P}else return null;return 128-m},s.prototype.range=function(){return _.subnetMatch(this,this.SpecialRanges)},s.prototype.toByteArray=function(){let m,h=[],f=this.parts;for(let x=0;x<f.length;x++)m=f[x],h.push(m>>8),h.push(m&255);return h},s.prototype.toFixedLengthString=function(){let m=(function(){let f=[];for(let x=0;x<this.parts.length;x++)f.push(T(this.parts[x].toString(16),4));return f}).call(this).join(":"),h="";return this.zoneId&&(h=`%${this.zoneId}`),m+h},s.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let m=this.parts.slice(-2),h=m[0],f=m[1];return new _.IPv4([h>>8,h&255,f>>8,f&255])},s.prototype.toNormalizedString=function(){let m=(function(){let f=[];for(let x=0;x<this.parts.length;x++)f.push(this.parts[x].toString(16));return f}).call(this).join(":"),h="";return this.zoneId&&(h=`%${this.zoneId}`),m+h},s.prototype.toRFC5952String=function(){let m=/((^|:)(0(:|$)){2,})/g,h=this.toNormalizedString(),f=0,x=-1,P;for(;P=m.exec(h);)P[0].length>x&&(f=P.index,x=P[0].length);return x<0?h:`${h.substring(0,f)}::${h.substring(f+x)}`},s.prototype.toString=function(){return this.toRFC5952String()},s})(),_.IPv6.broadcastAddressFromCIDR=function(s){try{let m=this.parseCIDR(s),h=m[0].toByteArray(),f=this.subnetMaskFromPrefixLength(m[1]).toByteArray(),x=[],P=0;for(;P<16;)x.push(parseInt(h[P],10)|parseInt(f[P],10)^255),P++;return new this(x)}catch(m){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${m})`)}},_.IPv6.isIPv6=function(s){return this.parser(s)!==null},_.IPv6.isValid=function(s){if(typeof s=="string"&&s.indexOf(":")===-1)return!1;try{let m=this.parser(s);return new this(m.parts,m.zoneId),!0}catch{return!1}},_.IPv6.isValidCIDR=function(s){if(typeof s=="string"&&s.indexOf(":")===-1)return!1;try{return this.parseCIDR(s),!0}catch{return!1}},_.IPv6.networkAddressFromCIDR=function(s){let m,h,f,x,P;try{for(m=this.parseCIDR(s),f=m[0].toByteArray(),P=this.subnetMaskFromPrefixLength(m[1]).toByteArray(),x=[],h=0;h<16;)x.push(parseInt(f[h],10)&parseInt(P[h],10)),h++;return new this(x)}catch(L){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${L})`)}},_.IPv6.parse=function(s){let m=this.parser(s);if(m.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(m.parts,m.zoneId)},_.IPv6.parseCIDR=function(s){let m,h,f;if((h=s.match(/^(.+)\/(\d+)$/))&&(m=parseInt(h[2]),m>=0&&m<=128))return f=[this.parse(h[1]),m],Object.defineProperty(f,"toString",{value:o(function(){return this.join("/")},"value")}),f;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},_.IPv6.parser=function(s){let m,h,f,x,P,L;if(f=s.match(d.deprecatedTransitional))return this.parser(`::ffff:${f[1]}`);if(d.native.test(s))return g(s,8);if((f=s.match(d.transitional))&&(L=f[6]||"",m=f[1],f[1].endsWith("::")||(m=m.slice(0,-1)),m=g(m+L,6),m.parts)){for(P=[parseInt(f[2]),parseInt(f[3]),parseInt(f[4]),parseInt(f[5])],h=0;h<P.length;h++)if(x=P[h],!(0<=x&&x<=255))return null;return m.parts.push(P[0]<<8|P[1]),m.parts.push(P[2]<<8|P[3]),{parts:m.parts,zoneId:m.zoneId}}return null},_.IPv6.subnetMaskFromPrefixLength=function(s){if(s=parseInt(s),s<0||s>128)throw new Error("ipaddr: invalid IPv6 prefix length");let m=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],h=0,f=Math.floor(s/8);for(;h<f;)m[h]=255,h++;return f<16&&(m[f]=Math.pow(2,s%8)-1<<8-s%8),new this(m)},_.fromByteArray=function(s){let m=s.length;if(m===4)return new _.IPv4(s);if(m===16)return new _.IPv6(s);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},_.isValid=function(s){return _.IPv6.isValid(s)||_.IPv4.isValid(s)},_.isValidCIDR=function(s){return _.IPv6.isValidCIDR(s)||_.IPv4.isValidCIDR(s)},_.parse=function(s){if(_.IPv6.isValid(s))return _.IPv6.parse(s);if(_.IPv4.isValid(s))return _.IPv4.parse(s);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},_.parseCIDR=function(s){try{return _.IPv6.parseCIDR(s)}catch{try{return _.IPv4.parseCIDR(s)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},_.process=function(s){let m=this.parse(s);return m.kind()==="ipv6"&&m.isIPv4MappedAddress()?m.toIPv4Address():m},_.subnetMatch=function(s,m,h){let f,x,P,L;h==null&&(h="unicast");for(x in m)if(Object.prototype.hasOwnProperty.call(m,x)){for(P=m[x],P[0]&&!(P[0]instanceof Array)&&(P=[P]),f=0;f<P.length;f++)if(L=P[f],s.kind()===L[0].kind()&&s.match.apply(s,L))return x}return h},typeof Bt<"u"&&Bt.exports?Bt.exports=_:e.ipaddr=_})(Lo)});var Fi=E((fA,ji)=>{var Li=require("stream").Stream,Ml=require("util");ji.exports=ae;function ae(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}o(ae,"DelayedStream");Ml.inherits(ae,Li);ae.create=function(e,t){var r=new this;t=t||{};for(var n in t)r[n]=t[n];r.source=e;var i=e.emit;return e.emit=function(){return r._handleEmit(arguments),i.apply(e,arguments)},e.on("error",function(){}),r.pauseStream&&e.pause(),r};Object.defineProperty(ae.prototype,"readable",{configurable:!0,enumerable:!0,get:o(function(){return this.source.readable},"get")});ae.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};ae.prototype.resume=function(){this._released||this.release(),this.source.resume()};ae.prototype.pause=function(){this.source.pause()};ae.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};ae.prototype.pipe=function(){var e=Li.prototype.pipe.apply(this,arguments);return this.resume(),e};ae.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}e[0]==="data"&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)};ae.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}});var Hi=E((hA,Zi)=>{var Ll=require("util"),Vi=require("stream").Stream,Bi=Fi();Zi.exports=G;function G(){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}o(G,"CombinedStream");Ll.inherits(G,Vi);G.create=function(e){var t=new this;e=e||{};for(var r in e)t[r]=e[r];return t};G.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};G.prototype.append=function(e){var t=G.isStreamLike(e);if(t){if(!(e instanceof Bi)){var r=Bi.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=r}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this};G.prototype.pipe=function(e,t){return Vi.prototype.pipe.call(this,e,t),this.resume(),e};G.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}};G.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e>"u"){this.end();return}if(typeof e!="function"){this._pipeNext(e);return}var t=e;t(function(r){var n=G.isStreamLike(r);n&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))};G.prototype._pipeNext=function(e){this._currentStream=e;var t=G.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var r=e;this.write(r),this._getNext()};G.prototype._handleErrors=function(e){var t=this;e.on("error",function(r){t._emitError(r)})};G.prototype.write=function(e){this.emit("data",e)};G.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};G.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")};G.prototype.end=function(){this._reset(),this.emit("end")};G.prototype.destroy=function(){this._reset(),this.emit("close")};G.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};G.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};G.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};G.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var Gi=E((vA,qi)=>{"use strict";qi.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 Ki=E(Y=>{"use strict";var Gt=Gi(),jl=require("path").extname,Wi=/^\s*([^;\s]*)(?:;|\s|$)/,Fl=/^text\//i;Y.charset=Ji;Y.charsets={lookup:Ji};Y.contentType=Bl;Y.extension=Vl;Y.extensions=Object.create(null);Y.lookup=Zl;Y.types=Object.create(null);Hl(Y.extensions,Y.types);function Ji(e){if(!e||typeof e!="string")return!1;var t=Wi.exec(e),r=t&&Gt[t[1].toLowerCase()];return r&&r.charset?r.charset:t&&Fl.test(t[1])?"UTF-8":!1}o(Ji,"charset");function Bl(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?Y.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var r=Y.charset(t);r&&(t+="; charset="+r.toLowerCase())}return t}o(Bl,"contentType");function Vl(e){if(!e||typeof e!="string")return!1;var t=Wi.exec(e),r=t&&Y.extensions[t[1].toLowerCase()];return!r||!r.length?!1:r[0]}o(Vl,"extension");function Zl(e){if(!e||typeof e!="string")return!1;var t=jl("x."+e).toLowerCase().substr(1);return t&&Y.types[t]||!1}o(Zl,"lookup");function Hl(e,t){var r=["nginx","apache",void 0,"iana"];Object.keys(Gt).forEach(o(function(i){var u=Gt[i],l=u.extensions;if(!(!l||!l.length)){e[i]=l;for(var d=0;d<l.length;d++){var g=l[d];if(t[g]){var v=r.indexOf(Gt[t[g]].source),b=r.indexOf(u.source);if(t[g]!=="application/octet-stream"&&(v>b||v===b&&t[g].substr(0,12)==="application/"))continue}t[g]=i}}},"forEachMimeType"))}o(Hl,"populateMaps")});var Yi=E((bA,Xi)=>{Xi.exports=ql;function ql(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}o(ql,"defer")});var Hr=E((TA,ea)=>{var Qi=Yi();ea.exports=Gl;function Gl(e){var t=!1;return Qi(function(){t=!0}),o(function(n,i){t?e(n,i):Qi(o(function(){e(n,i)},"nextTick_callback"))},"async_callback")}o(Gl,"async")});var qr=E((IA,ta)=>{ta.exports=Wl;function Wl(e){Object.keys(e.jobs).forEach(Jl.bind(e)),e.jobs={}}o(Wl,"abort");function Jl(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}o(Jl,"clean")});var Gr=E((wA,na)=>{var ra=Hr(),Kl=qr();na.exports=Xl;function Xl(e,t,r,n){var i=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[i]=Yl(t,i,e[i],function(u,l){i in r.jobs&&(delete r.jobs[i],u?Kl(r):r.results[i]=l,n(u,r.results))})}o(Xl,"iterate");function Yl(e,t,r,n){var i;return e.length==2?i=e(r,ra(n)):i=e(r,t,ra(n)),i}o(Yl,"runJob")});var Wr=E(($A,oa)=>{oa.exports=Ql;function Ql(e,t){var r=!Array.isArray(e),n={index:0,keyedList:r||t?Object.keys(e):null,jobs:{},results:r?{}:[],size:r?Object.keys(e).length:e.length};return t&&n.keyedList.sort(r?t:function(i,u){return t(e[i],e[u])}),n}o(Ql,"state")});var Jr=E((kA,ia)=>{var ep=qr(),tp=Hr();ia.exports=rp;function rp(e){Object.keys(this.jobs).length&&(this.index=this.size,ep(this),tp(e)(null,this.results))}o(rp,"terminator")});var sa=E((DA,aa)=>{var np=Gr(),op=Wr(),ip=Jr();aa.exports=ap;function ap(e,t,r){for(var n=op(e);n.index<(n.keyedList||e).length;)np(e,t,n,function(i,u){if(i){r(i,u);return}if(Object.keys(n.jobs).length===0){r(null,n.results);return}}),n.index++;return ip.bind(n,r)}o(ap,"parallel")});var Kr=E((RA,Wt)=>{var ca=Gr(),sp=Wr(),cp=Jr();Wt.exports=up;Wt.exports.ascending=ua;Wt.exports.descending=lp;function up(e,t,r,n){var i=sp(e,r);return ca(e,t,i,o(function u(l,d){if(l){n(l,d);return}if(i.index++,i.index<(i.keyedList||e).length){ca(e,t,i,u);return}n(null,i.results)},"iteratorHandler")),cp.bind(i,n)}o(up,"serialOrdered");function ua(e,t){return e<t?-1:e>t?1:0}o(ua,"ascending");function lp(e,t){return-1*ua(e,t)}o(lp,"descending")});var pa=E((UA,la)=>{var pp=Kr();la.exports=dp;function dp(e,t,r){return pp(e,t,null,r)}o(dp,"serial")});var ma=E((LA,da)=>{da.exports={parallel:sa(),serial:pa(),serialOrdered:Kr()}});var Xr=E((jA,fa)=>{"use strict";fa.exports=Object});var ha=E((FA,ga)=>{"use strict";ga.exports=Error});var va=E((BA,ya)=>{"use strict";ya.exports=EvalError});var xa=E((VA,_a)=>{"use strict";_a.exports=RangeError});var Pa=E((ZA,ba)=>{"use strict";ba.exports=ReferenceError});var Sa=E((HA,Ta)=>{"use strict";Ta.exports=SyntaxError});var Jt=E((qA,Ia)=>{"use strict";Ia.exports=TypeError});var wa=E((GA,Ea)=>{"use strict";Ea.exports=URIError});var $a=E((WA,Aa)=>{"use strict";Aa.exports=Math.abs});var ka=E((JA,za)=>{"use strict";za.exports=Math.floor});var Da=E((KA,Oa)=>{"use strict";Oa.exports=Math.max});var Ra=E((XA,Na)=>{"use strict";Na.exports=Math.min});var Ua=E((YA,Ca)=>{"use strict";Ca.exports=Math.pow});var La=E((QA,Ma)=>{"use strict";Ma.exports=Math.round});var Fa=E((e$,ja)=>{"use strict";ja.exports=Number.isNaN||o(function(t){return t!==t},"isNaN")});var Va=E((r$,Ba)=>{"use strict";var mp=Fa();Ba.exports=o(function(t){return mp(t)||t===0?t:t<0?-1:1},"sign")});var Ha=E((o$,Za)=>{"use strict";Za.exports=Object.getOwnPropertyDescriptor});var Yr=E((i$,qa)=>{"use strict";var Kt=Ha();if(Kt)try{Kt([],"length")}catch{Kt=null}qa.exports=Kt});var Wa=E((a$,Ga)=>{"use strict";var Xt=Object.defineProperty||!1;if(Xt)try{Xt({},"a",{value:1})}catch{Xt=!1}Ga.exports=Xt});var Qr=E((s$,Ja)=>{"use strict";Ja.exports=o(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var u in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var l=Object.getOwnPropertySymbols(t);if(l.length!==1||l[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var d=Object.getOwnPropertyDescriptor(t,r);if(d.value!==i||d.enumerable!==!0)return!1}return!0},"hasSymbols")});var Ya=E((u$,Xa)=>{"use strict";var Ka=typeof Symbol<"u"&&Symbol,fp=Qr();Xa.exports=o(function(){return typeof Ka!="function"||typeof Symbol!="function"||typeof Ka("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:fp()},"hasNativeSymbols")});var en=E((p$,Qa)=>{"use strict";Qa.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var tn=E((d$,es)=>{"use strict";var gp=Xr();es.exports=gp.getPrototypeOf||null});var ns=E((m$,rs)=>{"use strict";var hp="Function.prototype.bind called on incompatible ",yp=Object.prototype.toString,vp=Math.max,_p="[object Function]",ts=o(function(t,r){for(var n=[],i=0;i<t.length;i+=1)n[i]=t[i];for(var u=0;u<r.length;u+=1)n[u+t.length]=r[u];return n},"concatty"),xp=o(function(t,r){for(var n=[],i=r||0,u=0;i<t.length;i+=1,u+=1)n[u]=t[i];return n},"slicy"),bp=o(function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},"joiny");rs.exports=o(function(t){var r=this;if(typeof r!="function"||yp.apply(r)!==_p)throw new TypeError(hp+r);for(var n=xp(arguments,1),i,u=o(function(){if(this instanceof i){var b=r.apply(this,ts(n,arguments));return Object(b)===b?b:this}return r.apply(t,ts(n,arguments))},"binder"),l=vp(0,r.length-n.length),d=[],g=0;g<l;g++)d[g]="$"+g;if(i=Function("binder","return function ("+bp(d,",")+"){ return binder.apply(this,arguments); }")(u),r.prototype){var v=o(function(){},"Empty");v.prototype=r.prototype,i.prototype=new v,v.prototype=null}return i},"bind")});var Ze=E((g$,os)=>{"use strict";var Pp=ns();os.exports=Function.prototype.bind||Pp});var Yt=E((h$,is)=>{"use strict";is.exports=Function.prototype.call});var rn=E((y$,as)=>{"use strict";as.exports=Function.prototype.apply});var cs=E((v$,ss)=>{"use strict";ss.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var ls=E((_$,us)=>{"use strict";var Tp=Ze(),Sp=rn(),Ip=Yt(),Ep=cs();us.exports=Ep||Tp.call(Ip,Sp)});var ds=E((x$,ps)=>{"use strict";var wp=Ze(),Ap=Jt(),$p=Yt(),zp=ls();ps.exports=o(function(t){if(t.length<1||typeof t[0]!="function")throw new Ap("a function is required");return zp(wp,$p,t)},"callBindBasic")});var vs=E((P$,ys)=>{"use strict";var kp=ds(),ms=Yr(),gs;try{gs=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var nn=!!gs&&ms&&ms(Object.prototype,"__proto__"),hs=Object,fs=hs.getPrototypeOf;ys.exports=nn&&typeof nn.get=="function"?kp([nn.get]):typeof fs=="function"?o(function(t){return fs(t==null?t:hs(t))},"getDunder"):!1});var Ts=E((S$,Ps)=>{"use strict";var _s=en(),xs=tn(),bs=vs();Ps.exports=_s?o(function(t){return _s(t)},"getProto"):xs?o(function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return xs(t)},"getProto"):bs?o(function(t){return bs(t)},"getProto"):null});var on=E((E$,Ss)=>{"use strict";var Op=Function.prototype.call,Dp=Object.prototype.hasOwnProperty,Np=Ze();Ss.exports=Np.call(Op,Dp)});var ks=E((w$,zs)=>{"use strict";var M,Rp=Xr(),Cp=ha(),Up=va(),Mp=xa(),Lp=Pa(),We=Sa(),Ge=Jt(),jp=wa(),Fp=$a(),Bp=ka(),Vp=Da(),Zp=Ra(),Hp=Ua(),qp=La(),Gp=Va(),As=Function,an=o(function(e){try{return As('"use strict"; return ('+e+").constructor;")()}catch{}},"getEvalledConstructor"),vt=Yr(),Wp=Wa(),sn=o(function(){throw new Ge},"throwTypeError"),Jp=vt?(function(){try{return arguments.callee,sn}catch{try{return vt(arguments,"callee").get}catch{return sn}}})():sn,He=Ya()(),K=Ts(),Kp=tn(),Xp=en(),$s=rn(),_t=Yt(),qe={},Yp=typeof Uint8Array>"u"||!K?M:K(Uint8Array),De={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?M:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?M:ArrayBuffer,"%ArrayIteratorPrototype%":He&&K?K([][Symbol.iterator]()):M,"%AsyncFromSyncIteratorPrototype%":M,"%AsyncFunction%":qe,"%AsyncGenerator%":qe,"%AsyncGeneratorFunction%":qe,"%AsyncIteratorPrototype%":qe,"%Atomics%":typeof Atomics>"u"?M:Atomics,"%BigInt%":typeof BigInt>"u"?M:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?M:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?M:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?M:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Cp,"%eval%":eval,"%EvalError%":Up,"%Float16Array%":typeof Float16Array>"u"?M:Float16Array,"%Float32Array%":typeof Float32Array>"u"?M:Float32Array,"%Float64Array%":typeof Float64Array>"u"?M:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?M:FinalizationRegistry,"%Function%":As,"%GeneratorFunction%":qe,"%Int8Array%":typeof Int8Array>"u"?M:Int8Array,"%Int16Array%":typeof Int16Array>"u"?M:Int16Array,"%Int32Array%":typeof Int32Array>"u"?M:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":He&&K?K(K([][Symbol.iterator]())):M,"%JSON%":typeof JSON=="object"?JSON:M,"%Map%":typeof Map>"u"?M:Map,"%MapIteratorPrototype%":typeof Map>"u"||!He||!K?M:K(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Rp,"%Object.getOwnPropertyDescriptor%":vt,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?M:Promise,"%Proxy%":typeof Proxy>"u"?M:Proxy,"%RangeError%":Mp,"%ReferenceError%":Lp,"%Reflect%":typeof Reflect>"u"?M:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?M:Set,"%SetIteratorPrototype%":typeof Set>"u"||!He||!K?M:K(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?M:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":He&&K?K(""[Symbol.iterator]()):M,"%Symbol%":He?Symbol:M,"%SyntaxError%":We,"%ThrowTypeError%":Jp,"%TypedArray%":Yp,"%TypeError%":Ge,"%Uint8Array%":typeof Uint8Array>"u"?M:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?M:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?M:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?M:Uint32Array,"%URIError%":jp,"%WeakMap%":typeof WeakMap>"u"?M:WeakMap,"%WeakRef%":typeof WeakRef>"u"?M:WeakRef,"%WeakSet%":typeof WeakSet>"u"?M:WeakSet,"%Function.prototype.call%":_t,"%Function.prototype.apply%":$s,"%Object.defineProperty%":Wp,"%Object.getPrototypeOf%":Kp,"%Math.abs%":Fp,"%Math.floor%":Bp,"%Math.max%":Vp,"%Math.min%":Zp,"%Math.pow%":Hp,"%Math.round%":qp,"%Math.sign%":Gp,"%Reflect.getPrototypeOf%":Xp};if(K)try{null.error}catch(e){Is=K(K(e)),De["%Error.prototype%"]=Is}var Is,Qp=o(function e(t){var r;if(t==="%AsyncFunction%")r=an("async function () {}");else if(t==="%GeneratorFunction%")r=an("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=an("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&K&&(r=K(i.prototype))}return De[t]=r,r},"doEval"),Es={__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"]},xt=Ze(),Qt=on(),ed=xt.call(_t,Array.prototype.concat),td=xt.call($s,Array.prototype.splice),ws=xt.call(_t,String.prototype.replace),er=xt.call(_t,String.prototype.slice),rd=xt.call(_t,RegExp.prototype.exec),nd=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,od=/\\(\\)?/g,id=o(function(t){var r=er(t,0,1),n=er(t,-1);if(r==="%"&&n!=="%")throw new We("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new We("invalid intrinsic syntax, expected opening `%`");var i=[];return ws(t,nd,function(u,l,d,g){i[i.length]=d?ws(g,od,"$1"):l||u}),i},"stringToPath"),ad=o(function(t,r){var n=t,i;if(Qt(Es,n)&&(i=Es[n],n="%"+i[0]+"%"),Qt(De,n)){var u=De[n];if(u===qe&&(u=Qp(n)),typeof u>"u"&&!r)throw new Ge("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:u}}throw new We("intrinsic "+t+" does not exist!")},"getBaseIntrinsic");zs.exports=o(function(t,r){if(typeof t!="string"||t.length===0)throw new Ge("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Ge('"allowMissing" argument must be a boolean');if(rd(/^%?[^%]*%?$/,t)===null)throw new We("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=id(t),i=n.length>0?n[0]:"",u=ad("%"+i+"%",r),l=u.name,d=u.value,g=!1,v=u.alias;v&&(i=v[0],td(n,ed([0,1],v)));for(var b=1,T=!0;b<n.length;b+=1){var _=n[b],s=er(_,0,1),m=er(_,-1);if((s==='"'||s==="'"||s==="`"||m==='"'||m==="'"||m==="`")&&s!==m)throw new We("property names with quotes must have matching quotes");if((_==="constructor"||!T)&&(g=!0),i+="."+_,l="%"+i+"%",Qt(De,l))d=De[l];else if(d!=null){if(!(_ in d)){if(!r)throw new Ge("base intrinsic for "+t+" exists, but the property is not available.");return}if(vt&&b+1>=n.length){var h=vt(d,_);T=!!h,T&&"get"in h&&!("originalValue"in h.get)?d=h.get:d=d[_]}else T=Qt(d,_),d=d[_];T&&!g&&(De[l]=d)}}return d},"GetIntrinsic")});var Ds=E(($$,Os)=>{"use strict";var sd=Qr();Os.exports=o(function(){return sd()&&!!Symbol.toStringTag},"hasToStringTagShams")});var Cs=E((k$,Rs)=>{"use strict";var cd=ks(),Ns=cd("%Object.defineProperty%",!0),ud=Ds()(),ld=on(),pd=Jt(),tr=ud?Symbol.toStringTag:null;Rs.exports=o(function(t,r){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,i=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof n<"u"&&typeof n!="boolean"||typeof i<"u"&&typeof i!="boolean")throw new pd("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");tr&&(n||!ld(t,tr))&&(Ns?Ns(t,tr,{configurable:!i,enumerable:!1,value:r,writable:!1}):t[tr]=r)},"setToStringTag")});var Ms=E((D$,Us)=>{"use strict";var dd=Function.prototype.call,md=Object.prototype.hasOwnProperty,fd=Ze();Us.exports=fd.call(dd,md)});var js=E((N$,Ls)=>{"use strict";Ls.exports=function(e,t){return Object.keys(t).forEach(function(r){e[r]=e[r]||t[r]}),e}});var rr=E((R$,Bs)=>{"use strict";var pn=Hi(),gd=require("util"),cn=require("path"),hd=require("http"),yd=require("https"),vd=require("url").parse,_d=require("fs"),xd=require("stream").Stream,bd=require("crypto"),un=Ki(),Pd=ma(),Td=Cs(),Ae=Ms(),ln=js();function Fs(e){return String(e).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}o(Fs,"escapeHeaderParam");function j(e){if(!(this instanceof j))return new j(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],pn.call(this),e=e||{};for(var t in e)this[t]=e[t]}o(j,"FormData");gd.inherits(j,pn);j.LINE_BREAK=`\r
2
- `;j.DEFAULT_CONTENT_TYPE="application/octet-stream";j.prototype.append=function(e,t,r){r=r||{},typeof r=="string"&&(r={filename:r});var n=pn.prototype.append.bind(this);if((typeof t=="number"||t==null)&&(t=String(t)),Array.isArray(t)){this._error(new Error("Arrays are not supported."));return}var i=this._multiPartHeader(e,t,r),u=this._multiPartFooter();n(i),n(t),n(u),this._trackLength(i,t,r)};j.prototype._trackLength=function(e,t,r){var n=0;r.knownLength!=null?n+=Number(r.knownLength):Buffer.isBuffer(t)?n=t.length:typeof t=="string"&&(n=Buffer.byteLength(t)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(e)+j.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&Ae(t,"httpVersion"))&&!(t instanceof xd))&&(r.knownLength||this._valuesToMeasure.push(t))};j.prototype._lengthRetriever=function(e,t){Ae(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):_d.stat(e.path,function(r,n){if(r){t(r);return}var i=n.size-(e.start?e.start:0);t(null,i)}):Ae(e,"httpVersion")?t(null,Number(e.headers["content-length"])):Ae(e,"httpModule")?(e.on("response",function(r){e.pause(),t(null,Number(r.headers["content-length"]))}),e.resume()):t("Unknown stream")};j.prototype._multiPartHeader=function(e,t,r){if(typeof r.header=="string")return r.header;var n=this._getContentDisposition(t,r),i=this._getContentType(t,r),u="",l={"Content-Disposition":["form-data",'name="'+Fs(e)+'"'].concat(n||[]),"Content-Type":[].concat(i||[])};typeof r.header=="object"&&ln(l,r.header);var d;for(var g in l)if(Ae(l,g)){if(d=l[g],d==null)continue;Array.isArray(d)||(d=[d]),d.length&&(u+=g+": "+d.join("; ")+j.LINE_BREAK)}return"--"+this.getBoundary()+j.LINE_BREAK+u+j.LINE_BREAK};j.prototype._getContentDisposition=function(e,t){var r;if(typeof t.filepath=="string"?r=cn.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?r=cn.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&Ae(e,"httpVersion")&&(r=cn.basename(e.client._httpMessage.path||"")),r)return'filename="'+Fs(r)+'"'};j.prototype._getContentType=function(e,t){var r=t.contentType;return!r&&e&&e.name&&(r=un.lookup(e.name)),!r&&e&&e.path&&(r=un.lookup(e.path)),!r&&e&&e.readable&&Ae(e,"httpVersion")&&(r=e.headers["content-type"]),!r&&(t.filepath||t.filename)&&(r=un.lookup(t.filepath||t.filename)),!r&&e&&typeof e=="object"&&(r=j.DEFAULT_CONTENT_TYPE),r};j.prototype._multiPartFooter=function(){return function(e){var t=j.LINE_BREAK,r=this._streams.length===0;r&&(t+=this._lastBoundary()),e(t)}.bind(this)};j.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+j.LINE_BREAK};j.prototype.getHeaders=function(e){var t,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)Ae(e,t)&&(r[t.toLowerCase()]=e[t]);return r};j.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};j.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};j.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),r=0,n=this._streams.length;r<n;r++)typeof this._streams[r]!="function"&&(Buffer.isBuffer(this._streams[r])?e=Buffer.concat([e,this._streams[r]]):e=Buffer.concat([e,Buffer.from(this._streams[r])]),(typeof this._streams[r]!="string"||this._streams[r].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(j.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};j.prototype._generateBoundary=function(){this._boundary="--------------------------"+bd.randomBytes(12).toString("hex")};j.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e};j.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};j.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}Pd.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,n){if(r){e(r);return}n.forEach(function(i){t+=i}),e(null,t)})};j.prototype.submit=function(e,t){var r,n,i={method:"post"};return typeof e=="string"?(e=vd(e),n=ln({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},i)):(n=ln(e,i),n.port||(n.port=n.protocol==="https:"?443:80)),n.headers=this.getHeaders(e.headers),n.protocol==="https:"?r=yd.request(n):r=hd.request(n),this.getLength(function(u,l){if(u&&u!=="Unknown stream"){this._error(u);return}if(l&&r.setHeader("Content-Length",l),this.pipe(r),t){var d,g=o(function(v,b){return r.removeListener("error",g),r.removeListener("response",d),t.call(this,v,b)},"callback");d=g.bind(this,null),r.on("error",g),r.on("response",d)}}.bind(this)),r};j.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};j.prototype.toString=function(){return"[object FormData]"};Td(j.prototype,"FormData");Bs.exports=j});var Dd={};gn(Dd,{pdfcrowd:()=>Od});module.exports=rc(Dd);var nc=Object.freeze({status:"aborted"});function S(e,t,r){function n(d,g){if(d._zod||Object.defineProperty(d,"_zod",{value:{def:g,constr:l,traits:new Set},enumerable:!1}),d._zod.traits.has(e))return;d._zod.traits.add(e),t(d,g);let v=l.prototype,b=Object.keys(v);for(let T=0;T<b.length;T++){let _=b[T];_ in d||(d[_]=v[_].bind(d))}}o(n,"init");let i=r?.Parent??Object;class u extends i{static{o(this,"Definition")}}Object.defineProperty(u,"name",{value:e});function l(d){var g;let v=r?.Parent?new u:this;n(v,d),(g=v._zod).deferred??(g.deferred=[]);for(let b of v._zod.deferred)b();return v}return o(l,"_"),Object.defineProperty(l,"init",{value:n}),Object.defineProperty(l,Symbol.hasInstance,{value:o(d=>r?.Parent&&d instanceof r.Parent?!0:d?._zod?.traits?.has(e),"value")}),Object.defineProperty(l,"name",{value:e}),l}o(S,"$constructor");var se=class extends Error{static{o(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Pt=class extends Error{static{o(this,"$ZodEncodeError")}constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},ar={};function pe(e){return e&&Object.assign(ar,e),ar}o(pe,"config");function cr(e){let t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,i])=>t.indexOf(+n)===-1).map(([n,i])=>i)}o(cr,"getEnumValues");function vn(e,t){return typeof t=="bigint"?t.toString():t}o(vn,"jsonStringifyReplacer");function St(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}o(St,"cached");function _n(e){return e==null}o(_n,"nullish");function It(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}o(It,"cleanRegex");var yn=Symbol("evaluating");function W(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==yn)return n===void 0&&(n=yn,n=r()),n},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}o(W,"defineLazy");var ur="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Xe(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}o(Xe,"isObject");var oc=St(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function xn(e){if(Xe(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Xe(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}o(xn,"isPlainObject");var bn=new Set(["string","number","symbol"]);function Re(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}o(Re,"escapeRegex");function Et(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}o(Et,"clone");function V(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:o(()=>t,"error")};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:o(()=>t.error,"error")}:t}o(V,"normalizeParams");function Pn(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}o(Pn,"optionalKeys");var Tn={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Ce(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}o(Ce,"aborted");function _e(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}o(_e,"prefixIssues");function Tt(e){return typeof e=="string"?e:e?.message}o(Tt,"unwrapMessage");function xe(e,t,r){let n={...e,path:e.path??[]};if(!e.message){let i=Tt(e.inst?._zod.def?.error?.(e))??Tt(t?.error?.(e))??Tt(r.customError?.(e))??Tt(r.localeError?.(e))??"Invalid input";n.message=i}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}o(xe,"finalizeIssue");function Sn(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}o(Sn,"getLengthableOrigin");function lr(...e){let[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}o(lr,"issue");var In=o((e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,vn,2),Object.defineProperty(e,"toString",{value:o(()=>e.message,"value"),enumerable:!1})},"initializer"),En=S("$ZodError",In),Ye=S("$ZodError",In,{Parent:Error});var ac=o(e=>(t,r,n,i)=>{let u=n?Object.assign(n,{async:!1}):{async:!1},l=t._zod.run({value:r,issues:[]},u);if(l instanceof Promise)throw new se;if(l.issues.length){let d=new(i?.Err??e)(l.issues.map(g=>xe(g,u,pe())));throw ur(d,i?.callee),d}return l.value},"_parse"),wt=ac(Ye),sc=o(e=>async(t,r,n,i)=>{let u=n?Object.assign(n,{async:!0}):{async:!0},l=t._zod.run({value:r,issues:[]},u);if(l instanceof Promise&&(l=await l),l.issues.length){let d=new(i?.Err??e)(l.issues.map(g=>xe(g,u,pe())));throw ur(d,i?.callee),d}return l.value},"_parseAsync"),At=sc(Ye),cc=o(e=>(t,r,n)=>{let i=n?{...n,async:!1}:{async:!1},u=t._zod.run({value:r,issues:[]},i);if(u instanceof Promise)throw new se;return u.issues.length?{success:!1,error:new(e??En)(u.issues.map(l=>xe(l,i,pe())))}:{success:!0,data:u.value}},"_safeParse"),Qe=cc(Ye),uc=o(e=>async(t,r,n)=>{let i=n?Object.assign(n,{async:!0}):{async:!0},u=t._zod.run({value:r,issues:[]},i);return u instanceof Promise&&(u=await u),u.issues.length?{success:!1,error:new e(u.issues.map(l=>xe(l,i,pe())))}:{success:!0,data:u.value}},"_safeParseAsync"),et=uc(Ye);var lc="(?:(?:\\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])))",pc=new RegExp(`^${lc}$`);var wn=o(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},"string"),An=/^-?\d+n?$/,$n=/^-?\d+$/,pr=/^-?\d+(?:\.\d+)?$/,zn=/^(?:true|false)$/i;var be=S("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),dc={number:"number",bigint:"bigint",object:"date"};var kn=S("$ZodCheckGreaterThan",(e,t)=>{be.init(e,t);let r=dc[typeof t.value];e._zod.onattach.push(n=>{let i=n._zod.bag,u=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>u&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}});var On=S("$ZodCheckNumberFormat",(e,t)=>{be.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),n=r?"int":"number",[i,u]=Tn[t.format];e._zod.onattach.push(l=>{let d=l._zod.bag;d.format=t.format,d.minimum=i,d.maximum=u,r&&(d.pattern=$n)}),e._zod.check=l=>{let d=l.value;if(r){if(!Number.isInteger(d)){l.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:d,inst:e});return}if(!Number.isSafeInteger(d)){d>0?l.issues.push({input:d,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}):l.issues.push({input:d,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort});return}}d<i&&l.issues.push({origin:"number",input:d,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),d>u&&l.issues.push({origin:"number",input:d,code:"too_big",maximum:u,inclusive:!0,inst:e,continue:!t.abort})}});var Dn=S("$ZodCheckMinLength",(e,t)=>{var r;be.init(e,t),(r=e._zod.def).when??(r.when=n=>{let i=n.value;return!_n(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{let i=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let i=n.value;if(i.length>=t.minimum)return;let l=Sn(i);n.issues.push({origin:l,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}});var dr=S("$ZodCheckStringFormat",(e,t)=>{var r,n;be.init(e,t),e._zod.onattach.push(i=>{let u=i._zod.bag;u.format=t.format,t.pattern&&(u.patterns??(u.patterns=new Set),u.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),Nn=S("$ZodCheckRegex",(e,t)=>{dr.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}});var Cn={major:4,minor:3,patch:6};var H=S("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Cn;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let i of n)for(let u of i._zod.onattach)u(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let i=o((l,d,g)=>{let v=Ce(l),b;for(let T of d){if(T._zod.def.when){if(!T._zod.def.when(l))continue}else if(v)continue;let _=l.issues.length,s=T._zod.check(l);if(s instanceof Promise&&g?.async===!1)throw new se;if(b||s instanceof Promise)b=(b??Promise.resolve()).then(async()=>{await s,l.issues.length!==_&&(v||(v=Ce(l,_)))});else{if(l.issues.length===_)continue;v||(v=Ce(l,_))}}return b?b.then(()=>l):l},"runChecks"),u=o((l,d,g)=>{if(Ce(l))return l.aborted=!0,l;let v=i(d,n,g);if(v instanceof Promise){if(g.async===!1)throw new se;return v.then(b=>e._zod.parse(b,g))}return e._zod.parse(v,g)},"handleCanaryResult");e._zod.run=(l,d)=>{if(d.skipChecks)return e._zod.parse(l,d);if(d.direction==="backward"){let v=e._zod.parse({value:l.value,issues:[]},{...d,skipChecks:!0});return v instanceof Promise?v.then(b=>u(b,l,d)):u(v,l,d)}let g=e._zod.parse(l,d);if(g instanceof Promise){if(d.async===!1)throw new se;return g.then(v=>i(v,n,d))}return i(g,n,d)}}W(e,"~standard",()=>({validate:o(i=>{try{let u=Qe(e,i);return u.success?{value:u.data}:{issues:u.error?.issues}}catch{return et(e,i).then(l=>l.success?{value:l.data}:{issues:l.error?.issues})}},"validate"),vendor:"zod",version:1}))}),kt=S("$ZodString",(e,t)=>{H.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??wn(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),mr=S("$ZodStringFormat",(e,t)=>{dr.init(e,t),kt.init(e,t)});var Fn=S("$ZodURL",(e,t)=>{mr.init(e,t),e._zod.check=r=>{try{let n=r.value.trim(),i=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=i.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}});var fr=S("$ZodNumber",(e,t)=>{H.init(e,t),e._zod.pattern=e._zod.bag.pattern??pr,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let i=r.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return r;let u=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...u?{received:u}:{}}),r}}),Bn=S("$ZodNumberFormat",(e,t)=>{On.init(e,t),fr.init(e,t)}),gr=S("$ZodBoolean",(e,t)=>{H.init(e,t),e._zod.pattern=zn,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch{}let i=r.value;return typeof i=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),r}}),Vn=S("$ZodBigInt",(e,t)=>{H.init(e,t),e._zod.pattern=An,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}});var Zn=S("$ZodAny",(e,t)=>{H.init(e,t),e._zod.parse=r=>r}),Hn=S("$ZodUnknown",(e,t)=>{H.init(e,t),e._zod.parse=r=>r});var qn=S("$ZodVoid",(e,t)=>{H.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;return typeof i>"u"||r.issues.push({expected:"void",code:"invalid_type",input:i,inst:e}),r}}),Gn=S("$ZodDate",(e,t)=>{H.init(e,t),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let i=r.value,u=i instanceof Date;return u&&!Number.isNaN(i.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:i,...u?{received:"Invalid Date"}:{},inst:e}),r}});function Un(e,t,r){e.issues.length&&t.issues.push(..._e(r,e.issues)),t.value[r]=e.value}o(Un,"handleArrayResult");var Wn=S("$ZodArray",(e,t)=>{H.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=Array(i.length);let u=[];for(let l=0;l<i.length;l++){let d=i[l],g=t.element._zod.run({value:d,issues:[]},n);g instanceof Promise?u.push(g.then(v=>Un(v,r,l))):Un(g,r,l)}return u.length?Promise.all(u).then(()=>r):r}});function zt(e,t,r,n,i){if(e.issues.length){if(i&&!(r in n))return;t.issues.push(..._e(r,e.issues))}e.value===void 0?r in n&&(t.value[r]=void 0):t.value[r]=e.value}o(zt,"handlePropertyResult");function mc(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let r=Pn(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}o(mc,"normalizeDef");function fc(e,t,r,n,i,u){let l=[],d=i.keySet,g=i.catchall._zod,v=g.def.type,b=g.optout==="optional";for(let T in t){if(d.has(T))continue;if(v==="never"){l.push(T);continue}let _=g.run({value:t[T],issues:[]},n);_ instanceof Promise?e.push(_.then(s=>zt(s,r,T,t,b))):zt(_,r,T,t,b)}return l.length&&r.issues.push({code:"unrecognized_keys",keys:l,input:t,inst:u}),e.length?Promise.all(e).then(()=>r):r}o(fc,"handleCatchall");var Jn=S("$ZodObject",(e,t)=>{if(H.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let d=t.shape;Object.defineProperty(t,"shape",{get:o(()=>{let g={...d};return Object.defineProperty(t,"shape",{value:g}),g},"get")})}let n=St(()=>mc(t));W(e._zod,"propValues",()=>{let d=t.shape,g={};for(let v in d){let b=d[v]._zod;if(b.values){g[v]??(g[v]=new Set);for(let T of b.values)g[v].add(T)}}return g});let i=Xe,u=t.catchall,l;e._zod.parse=(d,g)=>{l??(l=n.value);let v=d.value;if(!i(v))return d.issues.push({expected:"object",code:"invalid_type",input:v,inst:e}),d;d.value={};let b=[],T=l.shape;for(let _ of l.keys){let s=T[_],m=s._zod.optout==="optional",h=s._zod.run({value:v[_],issues:[]},g);h instanceof Promise?b.push(h.then(f=>zt(f,d,_,v,m))):zt(h,d,_,v,m)}return u?fc(b,v,d,g,n.value,e):b.length?Promise.all(b).then(()=>d):d}});function Mn(e,t,r,n){for(let u of e)if(u.issues.length===0)return t.value=u.value,t;let i=e.filter(u=>!Ce(u));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(u=>u.issues.map(l=>xe(l,n,pe())))}),t)}o(Mn,"handleUnionResults");var hr=S("$ZodUnion",(e,t)=>{H.init(e,t),W(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),W(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),W(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),W(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){let i=t.options.map(u=>u._zod.pattern);return new RegExp(`^(${i.map(u=>It(u.source)).join("|")})$`)}});let r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(i,u)=>{if(r)return n(i,u);let l=!1,d=[];for(let g of t.options){let v=g._zod.run({value:i.value,issues:[]},u);if(v instanceof Promise)d.push(v),l=!0;else{if(v.issues.length===0)return v;d.push(v)}}return l?Promise.all(d).then(g=>Mn(g,i,e,u)):Mn(d,i,e,u)}});var Kn=S("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,hr.init(e,t);let r=e._zod.parse;W(e._zod,"propValues",()=>{let i={};for(let u of t.options){let l=u._zod.propValues;if(!l||Object.keys(l).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(u)}"`);for(let[d,g]of Object.entries(l)){i[d]||(i[d]=new Set);for(let v of g)i[d].add(v)}}return i});let n=St(()=>{let i=t.options,u=new Map;for(let l of i){let d=l._zod.propValues?.[t.discriminator];if(!d||d.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(l)}"`);for(let g of d){if(u.has(g))throw new Error(`Duplicate discriminator value "${String(g)}"`);u.set(g,l)}}return u});e._zod.parse=(i,u)=>{let l=i.value;if(!Xe(l))return i.issues.push({code:"invalid_type",expected:"object",input:l,inst:e}),i;let d=n.value.get(l?.[t.discriminator]);return d?d._zod.run(i,u):t.unionFallback?r(i,u):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:l,path:[t.discriminator],inst:e}),i)}});var Xn=S("$ZodRecord",(e,t)=>{H.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!xn(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let u=[],l=t.keyType._zod.values;if(l){r.value={};let d=new Set;for(let v of l)if(typeof v=="string"||typeof v=="number"||typeof v=="symbol"){d.add(typeof v=="number"?v.toString():v);let b=t.valueType._zod.run({value:i[v],issues:[]},n);b instanceof Promise?u.push(b.then(T=>{T.issues.length&&r.issues.push(..._e(v,T.issues)),r.value[v]=T.value})):(b.issues.length&&r.issues.push(..._e(v,b.issues)),r.value[v]=b.value)}let g;for(let v in i)d.has(v)||(g=g??[],g.push(v));g&&g.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:g})}else{r.value={};for(let d of Reflect.ownKeys(i)){if(d==="__proto__")continue;let g=t.keyType._zod.run({value:d,issues:[]},n);if(g instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof d=="string"&&pr.test(d)&&g.issues.length){let T=t.keyType._zod.run({value:Number(d),issues:[]},n);if(T instanceof Promise)throw new Error("Async schemas not supported in object keys currently");T.issues.length===0&&(g=T)}if(g.issues.length){t.mode==="loose"?r.value[d]=i[d]:r.issues.push({code:"invalid_key",origin:"record",issues:g.issues.map(T=>xe(T,n,pe())),input:d,path:[d],inst:e});continue}let b=t.valueType._zod.run({value:i[d],issues:[]},n);b instanceof Promise?u.push(b.then(T=>{T.issues.length&&r.issues.push(..._e(d,T.issues)),r.value[g.value]=T.value})):(b.issues.length&&r.issues.push(..._e(d,b.issues)),r.value[g.value]=b.value)}}return u.length?Promise.all(u).then(()=>r):r}});var Yn=S("$ZodEnum",(e,t)=>{H.init(e,t);let r=cr(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(i=>bn.has(typeof i)).map(i=>typeof i=="string"?Re(i):i.toString()).join("|")})$`),e._zod.parse=(i,u)=>{let l=i.value;return n.has(l)||i.issues.push({code:"invalid_value",values:r,input:l,inst:e}),i}}),Qn=S("$ZodLiteral",(e,t)=>{if(H.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?Re(n):n?Re(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,i)=>{let u=n.value;return r.has(u)||n.issues.push({code:"invalid_value",values:t.values,input:u,inst:e}),n}});var eo=S("$ZodTransform",(e,t)=>{H.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Pt(e.constructor.name);let i=t.transform(r.value,r);if(n.async)return(i instanceof Promise?i:Promise.resolve(i)).then(l=>(r.value=l,r));if(i instanceof Promise)throw new se;return r.value=i,r}});function Ln(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}o(Ln,"handleOptionalResult");var to=S("$ZodOptional",(e,t)=>{H.init(e,t),e._zod.optin="optional",e._zod.optout="optional",W(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),W(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${It(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(u=>Ln(u,r.value)):Ln(i,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}});var ro=S("$ZodNullable",(e,t)=>{H.init(e,t),W(e._zod,"optin",()=>t.innerType._zod.optin),W(e._zod,"optout",()=>t.innerType._zod.optout),W(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${It(r.source)}|null)$`):void 0}),W(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)});var no=S("$ZodPipe",(e,t)=>{H.init(e,t),W(e._zod,"values",()=>t.in._zod.values),W(e._zod,"optin",()=>t.in._zod.optin),W(e._zod,"optout",()=>t.out._zod.optout),W(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){let u=t.out._zod.run(r,n);return u instanceof Promise?u.then(l=>$t(l,t.in,n)):$t(u,t.in,n)}let i=t.in._zod.run(r,n);return i instanceof Promise?i.then(u=>$t(u,t.out,n)):$t(i,t.out,n)}});function $t(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}o($t,"handlePipeResult");var oo=S("$ZodCustom",(e,t)=>{be.init(e,t),H.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{let n=r.value,i=t.fn(n);if(i instanceof Promise)return i.then(u=>jn(u,r,n,e));jn(i,r,n,e)}});function jn(e,t,r,n){if(!e){let i={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(i.params=n._zod.def.params),t.issues.push(lr(i))}}o(jn,"handleRefineResult");var ao;var yr=class{static{o(this,"$ZodRegistry")}constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let n=r[0];return this._map.set(t,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let n={...this.get(r)??{}};delete n.id;let i={...n,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function so(){return new yr}o(so,"registry");(ao=globalThis).__zod_globalRegistry??(ao.__zod_globalRegistry=so());var vr=globalThis.__zod_globalRegistry;function co(e,t){return new e({type:"string",...V(t)})}o(co,"_string");function uo(e,t){return new e({type:"string",coerce:!0,...V(t)})}o(uo,"_coercedString");function lo(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...V(t)})}o(lo,"_url");function po(e,t){return new e({type:"number",checks:[],...V(t)})}o(po,"_number");function mo(e,t){return new e({type:"number",coerce:!0,checks:[],...V(t)})}o(mo,"_coercedNumber");function fo(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...V(t)})}o(fo,"_int");function go(e,t){return new e({type:"boolean",...V(t)})}o(go,"_boolean");function ho(e,t){return new e({type:"boolean",coerce:!0,...V(t)})}o(ho,"_coercedBoolean");function yo(e,t){return new e({type:"bigint",coerce:!0,...V(t)})}o(yo,"_coercedBigint");function vo(e){return new e({type:"any"})}o(vo,"_any");function _o(e){return new e({type:"unknown"})}o(_o,"_unknown");function xo(e,t){return new e({type:"void",...V(t)})}o(xo,"_void");function bo(e,t){return new e({type:"date",coerce:!0,...V(t)})}o(bo,"_coercedDate");function Ot(e,t){return new kn({check:"greater_than",...V(t),value:e,inclusive:!0})}o(Ot,"_gte");function oe(e,t){return new Dn({check:"min_length",...V(t),minimum:e})}o(oe,"_minLength");function Pe(e,t){return new Nn({check:"string_format",format:"regex",...V(t),pattern:e})}o(Pe,"_regex");function Po(e,t,r){let n=V(r);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}o(Po,"_custom");var J=S("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");H.init(e,t),e.def=t,e.type=t.type,e.parse=(r,n)=>wt(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>Qe(e,r,n),e.parseAsync=async(r,n)=>At(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>et(e,r,n),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]},{parent:!0}),e.with=e.check,e.clone=(r,n)=>Et(e,r,n),e.brand=()=>e,e.register=((r,n)=>(r.add(e,n),e)),e.apply=r=>r(e)}),Nt=S("ZodMiniString",(e,t)=>{kt.init(e,t),J.init(e,t)});function a(e){return co(Nt,e)}o(a,"string");var To=S("ZodMiniStringFormat",(e,t)=>{mr.init(e,t),Nt.init(e,t)});var wc=S("ZodMiniURL",(e,t)=>{Fn.init(e,t),To.init(e,t)});function So(e){return lo(wc,e)}o(So,"url");var Rt=S("ZodMiniNumber",(e,t)=>{fr.init(e,t),J.init(e,t)});function X(e){return po(Rt,e)}o(X,"number");var Ac=S("ZodMiniNumberFormat",(e,t)=>{Bn.init(e,t),Rt.init(e,t)});function Io(e){return fo(Ac,e)}o(Io,"int");var _r=S("ZodMiniBoolean",(e,t)=>{gr.init(e,t),J.init(e,t)});function B(e){return go(_r,e)}o(B,"boolean");var Eo=S("ZodMiniBigInt",(e,t)=>{Vn.init(e,t),J.init(e,t)});var $c=S("ZodMiniAny",(e,t)=>{Zn.init(e,t),J.init(e,t)});function rt(){return vo($c)}o(rt,"any");var zc=S("ZodMiniUnknown",(e,t)=>{Hn.init(e,t),J.init(e,t)});function k(){return _o(zc)}o(k,"unknown");var kc=S("ZodMiniVoid",(e,t)=>{qn.init(e,t),J.init(e,t)});function wo(e){return xo(kc,e)}o(wo,"_void");var Ao=S("ZodMiniDate",(e,t)=>{Gn.init(e,t),J.init(e,t)});var Oc=S("ZodMiniArray",(e,t)=>{Wn.init(e,t),J.init(e,t)});function N(e,t){return new Oc({type:"array",element:e,...V(t)})}o(N,"array");var Dc=S("ZodMiniObject",(e,t)=>{Jn.init(e,t),J.init(e,t),W(e,"shape",()=>t.shape)});function p(e,t){let r={type:"object",shape:e??{},...V(t)};return new Dc(r)}o(p,"object");var Nc=S("ZodMiniUnion",(e,t)=>{hr.init(e,t),J.init(e,t)});function R(e,t){return new Nc({type:"union",options:e,...V(t)})}o(R,"union");var Rc=S("ZodMiniDiscriminatedUnion",(e,t)=>{Kn.init(e,t),J.init(e,t)});function Te(e,t,r){return new Rc({type:"union",options:t,discriminator:e,...V(r)})}o(Te,"discriminatedUnion");var Cc=S("ZodMiniRecord",(e,t)=>{Xn.init(e,t),J.init(e,t)});function O(e,t,r){return new Cc({type:"record",keyType:e,valueType:t,...V(r)})}o(O,"record");var Uc=S("ZodMiniEnum",(e,t)=>{Yn.init(e,t),J.init(e,t),e.options=Object.values(t.entries)});function U(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new Uc({type:"enum",entries:r,...V(t)})}o(U,"_enum");var Mc=S("ZodMiniLiteral",(e,t)=>{Qn.init(e,t),J.init(e,t)});function w(e,t){return new Mc({type:"literal",values:Array.isArray(e)?e:[e],...V(t)})}o(w,"literal");var Lc=S("ZodMiniTransform",(e,t)=>{eo.init(e,t),J.init(e,t)});function Se(e){return new Lc({type:"transform",transform:e})}o(Se,"transform");var jc=S("ZodMiniOptional",(e,t)=>{to.init(e,t),J.init(e,t)});function y(e){return new jc({type:"optional",innerType:e})}o(y,"optional");var Fc=S("ZodMiniNullable",(e,t)=>{ro.init(e,t),J.init(e,t)});function nt(e){return new Fc({type:"nullable",innerType:e})}o(nt,"nullable");var Bc=S("ZodMiniPipe",(e,t)=>{no.init(e,t),J.init(e,t)});function Ie(e,t){return new Bc({type:"pipe",in:e,out:t})}o(Ie,"pipe");var Vc=S("ZodMiniCustom",(e,t)=>{oo.init(e,t),J.init(e,t)});function Ct(e,t){return Po(Vc,e??(()=>!0),t)}o(Ct,"custom");var ot={};gn(ot,{bigint:()=>Jc,boolean:()=>Wc,date:()=>Kc,number:()=>Gc,string:()=>qc});function qc(e){return uo(Nt,e)}o(qc,"string");function Gc(e){return mo(Rt,e)}o(Gc,"number");function Wc(e){return ho(_r,e)}o(Wc,"boolean");function Jc(e){return yo(Eo,e)}o(Jc,"bigint");function Kc(e){return bo(Ao,e)}o(Kc,"date");var br=p({retryOnFailure:p({defaultValue:y(B()),hide:y(B())}),continueOnFailure:p({defaultValue:y(B()),hide:y(B())})}),xr=class{constructor(t,r,n,i,u,l,d,g,v,b,T){this.name=t;this.displayName=r;this.description=n;this.props=i;this.run=u;this.test=l;this.requireAuth=d;this.errorHandlingOptions=g;this.outputSchema=v;this.audience=b;this.aiMetadata=T}static{o(this,"IAction")}},Ue=o(e=>new xr(e.name,e.displayName,e.description,e.props,e.run,e.test??e.run,e.requireAuth??!0,e.errorHandlingOptions??{continueOnFailure:{defaultValue:!1},retryOnFailure:{defaultValue:!1}},e.outputSchema,e.audience,e.aiMetadata),"createAction");var F=p({displayName:a(),description:y(a())}),C=o((e,t)=>p({type:w(t),required:B(),defaultValue:y(rt())}),"TPropertyValue");var ee=p({...F.shape,...C(a(),"SHORT_TEXT").shape}),de=p({...F.shape,...C(a(),"LONG_TEXT").shape});var zo=p({label:a(),value:k()}),Ut=p({disabled:y(B()),placeholder:y(a()),options:N(zo)});var te=p({...F.shape,options:Ut,...C(k(),"STATIC_DROPDOWN").shape}),me=p({...F.shape,options:Ut,...C(N(k()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var Pr=p({...F.shape,...C(k(),"DROPDOWN").shape,refreshers:N(a())}),it=p({...F.shape,...C(N(k()),"MULTI_SELECT_DROPDOWN").shape,refreshers:N(a())});var fe=p({...F.shape,...C(B(),"CHECKBOX").shape});var ge=p({...F.shape,...C(X(),"NUMBER").shape});var at=p({...F.shape,streaming:y(B()),...C(k(),"FILE").shape});var st=p({...F.shape,...C(a(),"DATE_TIME").shape});var ko=O(a(),R([ee,de,te,it,me,fe,ge,at,st])),ct=p({...F.shape,properties:ko,...C(N(k()),"ARRAY").shape});var ut=p({...F.shape,...C(R([O(a(),k())]),"JSON").shape});var Oo=R([ee,te,ut,ct,me]),Yc=O(a(),Oo),Tr=p({refreshers:N(a()),...F.shape,...C(k(),"DYNAMIC").shape});var Mt=p({...F.shape,...C(wo(),"MARKDOWN").shape});var lt=(r=>(r.ARCHIVE="ARCHIVE",r.REGISTRY="REGISTRY",r))(lt||{}),Me=(r=>(r.CUSTOM="CUSTOM",r.OFFICIAL="OFFICIAL",r))(Me||{}),Le=(x=>(x.ARTIFICIAL_INTELLIGENCE="ARTIFICIAL_INTELLIGENCE",x.COMMUNICATION="COMMUNICATION",x.COMMERCE="COMMERCE",x.CORE="CORE",x.UNIVERSAL_AI="UNIVERSAL_AI",x.FLOW_CONTROL="FLOW_CONTROL",x.BUSINESS_INTELLIGENCE="BUSINESS_INTELLIGENCE",x.ACCOUNTING="ACCOUNTING",x.PRODUCTIVITY="PRODUCTIVITY",x.CONTENT_AND_FILES="CONTENT_AND_FILES",x.DEVELOPER_TOOLS="DEVELOPER_TOOLS",x.CUSTOMER_SUPPORT="CUSTOMER_SUPPORT",x.FORMS_AND_SURVEYS="FORMS_AND_SURVEYS",x.HUMAN_RESOURCES="HUMAN_RESOURCES",x.PAYMENT_PROCESSING="PAYMENT_PROCESSING",x.MARKETING="MARKETING",x.SALES_AND_CRM="SALES_AND_CRM",x))(Le||{});var pt=(r=>(r.AUTHORIZATION_CODE="authorization_code",r.CLIENT_CREDENTIALS="client_credentials",r))(pt||{}),Sr="both_client_credentials_and_authorization_code";var $e=(i=>(i.POLLING="POLLING",i.WEBHOOK="WEBHOOK",i.APP_WEBHOOK="APP_WEBHOOK",i.MANUAL="MANUAL",i))($e||{}),dt=(u=>(u.NONE="NONE",u.HEADER_PRESENT="HEADER_PRESENT",u.QUERY_PRESENT="QUERY_PRESENT",u.BODY_PARAM_PRESENT="BODY_PARAM_PRESENT",u.HEAD_REQUEST="HEAD_REQUEST",u))(dt||{}),Qc=p({strategy:U(dt),paramName:y(a())}),mt=(r=>(r.SIMULATION="SIMULATION",r.TEST_FUNCTION="TEST_FUNCTION",r))(mt||{});var Lt=(r=>(r.WEBSOCKET="WEBSOCKET",r.NONE="NONE",r))(Lt||{}),Do=p({status:y(X()),body:y(k()),headers:y(O(a(),a()))}),No=p({type:w("DELAY"),resumeDateTime:a(),requestIdToReply:y(a()),handlerId:y(a()),streamStepProgress:y(U(Lt))}),Ro=p({type:w("WEBHOOK"),requestId:a(),requestIdToReply:y(a()),response:Do,handlerId:y(a()),streamStepProgress:y(U(Lt))}),eu=R([No,Ro]);var tu=p({body:k(),rawBody:y(k()),headers:O(a(),a()),queryParams:O(a(),a())});function ie(e){return e==null}o(ie,"isNil");function ft(e){return e==null?!0:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}o(ft,"isEmpty");function jt(e,t){if(e==null)throw new Error(`${t} is null or undefined`)}o(jt,"assertNotNullOrUndefined");var Ir=ve(require("crypto"),1);var ru=128,ze,je,nu=o(e=>{!ze||ze.length<e?(ze=Buffer.allocUnsafe(e*ru),Ir.default.randomFillSync(ze),je=0):je+e>ze.length&&(Ir.default.randomFillSync(ze),je=0),je+=e},"fillPool"),ou=o(e=>(nu(e|=0),ze.subarray(je-e,je)),"random"),iu=o((e,t,r)=>{let n=(2<<31-Math.clz32(e.length-1|1))-1,i=Math.ceil(1.6*n*t/e.length);return(u=t)=>{let l="";for(;;){let d=r(i),g=i;for(;g--;)if(l+=e[d[g]&n]||"",l.length===u)return l}}},"customRandom"),Uo=o((e,t=21)=>iu(e,t,ou),"customAlphabet");var au="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Mo=21,fP=a().check(Pe(new RegExp(`^[0-9a-zA-Z]{${Mo}}$`))),su=Uo(au,Mo);var Ee=Ie(Se(e=>e instanceof Date?e.toISOString():e),a()),re={id:a(),created:Ee,updated:Ee},Z=o(e=>y(nt(e)),"Nullable");function Er(e){return y(nt(U(e)))}o(Er,"NullableEnum");var yP=Ie(Se(e=>e==="true"||e===!0?!0:e==="false"||e===!1?!1:void 0),y(B())),Ft=o(e=>Ie(Se(t=>Array.isArray(t)?t:t!==void 0?[t]:void 0),y(N(e))),"OptionalArrayFromQuery");var xP=O(a(),k());var gt=(b=>(b.OPENAI="openai",b.OPENROUTER="openrouter",b.ANTHROPIC="anthropic",b.AZURE="azure",b.GOOGLE="google",b.ACTIVEPIECES="activepieces",b.CLOUDFLARE_GATEWAY="cloudflare-gateway",b.CUSTOM="custom",b.BEDROCK="bedrock",b.MISTRAL="mistral",b))(gt||{});var OP=a().check(Pe(/^#[0-9A-Fa-f]{6}$/));var NP=p({filename:a(),data:k(),type:w("file"),mimetype:y(a())});var cu=ve(jo());var FP=p({...re,name:a(),permissions:N(a()),platformId:Z(a()),type:a(),userCount:y(X())});var Fo=(n=>(n.AGENT_DECIDE="agent-decide",n.CHOOSE_YOURSELF="choose-yourself",n.LEAVE_EMPTY="leave-empty",n))(Fo||{}),wr=(r=>(r.FILE="FILE",r.TABLE="TABLE",r))(wr||{}),Ar=(n=>(n.SSE="sse",n.STREAMABLE_HTTP="streamable-http",n.SIMPLE_HTTP="http",n))(Ar||{});var $r=(n=>(n.TEXT="text",n.NUMBER="number",n.BOOLEAN="boolean",n))($r||{});var zr=(r=>(r.IN_PROGRESS="in-progress",r.COMPLETED="completed",r))(zr||{});var uu=p({mode:U(Fo),value:k()}),lu=p({auth:y(a()),fields:O(a(),uu)}),pu=p({pieceName:a(),pieceVersion:a(),actionName:a(),predefinedInput:y(lu)}),du=p({type:w("PIECE"),toolName:a().check(oe(1)),pieceMetadata:pu}),mu=p({type:w("none")}),fu=p({type:w("access_token"),accessToken:a()}),gu=p({type:w("api_key"),apiKey:a(),apiKeyHeader:a()}),hu=p({type:w("headers"),headers:O(a(),a())}),yu=Te("type",[mu,fu,gu,hu]),Bo=p({type:w("FLOW"),toolName:a().check(oe(1)),externalFlowId:a(),flowDisplayName:y(a())}),Vo=p({type:w("MCP"),toolName:a().check(oe(1)),serverUrl:So(),protocol:U(Ar),auth:yu}),Zo=p({type:w("KNOWLEDGE_BASE"),toolName:a().check(oe(1)),sourceType:U(wr),sourceId:a(),sourceName:a()}),vu=Te("type",[du,Bo,Vo,Zo]),_u=p({displayName:a(),description:y(a()),type:U($r)}),Ho=p({type:w("MARKDOWN"),markdown:a()}),Fe={type:w("TOOL_CALL"),input:Z(O(a(),k())),output:y(k()),toolName:a(),status:U(zr),toolCallId:a(),startTime:a(),endTime:y(a())},vT=p(Fe),qo=Te("toolCallType",[p({...Fe,toolCallType:w("PIECE"),pieceName:a(),pieceVersion:a(),actionName:a()}),p({...Fe,toolCallType:w("FLOW"),displayName:a(),externalFlowId:a()}),p({...Fe,toolCallType:w("MCP"),displayName:a(),serverUrl:a()}),p({...Fe,toolCallType:w("KNOWLEDGE_BASE"),displayName:a(),sourceType:a()}),p({...Fe,toolCallType:w("UNKNOWN"),displayName:a()})]),xu=R([Ho,qo]);var kr=(r=>(r.IMAGE="image",r.TEXT="text",r))(kr||{}),he=p({apiKey:a()}),bu=he,Pu=p({apiKey:a(),apiKeyHash:a()}),Tu=he,Su=he,Iu=he,Eu=he,wu=he,Au=he,$u=he,Xo=p({accessKeyId:a().check(oe(1)),secretAccessKey:a().check(oe(1))}),zu=p({}),ku=p({}),Ou=p({}),Du=p({}),Nu=p({}),Ru=p({}),Yo=p({modelId:a(),modelName:a(),modelType:U(kr)}),Qo=p({apiKeyHeader:a(),baseUrl:a(),models:N(Yo),defaultHeaders:y(O(a(),a()))}),ei=p({accountId:a(),gatewayId:a(),models:N(Yo),vertexProject:y(a()),vertexRegion:y(a())}),ti=p({resourceName:a(),apiVersion:Ie(Se(e=>typeof e=="string"&&e.trim().length===0?void 0:e),y(a()))}),ri=p({region:a().check(oe(1))}),Cu=R([bu,Iu,Eu,wu,Au,Su,Tu,Pu,Xo,$u]),ni=R([Qo,ei,ti,ri,zu,Ou,Du,Nu,ku,Ru]),Uu=p({id:a(),name:a(),type:U(kr)}),Mu=p({id:a(),name:a(),provider:U(gt),config:ni,enabledForChat:B()}),Lu=p({provider:U(gt),config:ni,auth:Cu,platformId:a()});var PT={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"},Go=["gpt-5.5","gpt-5.4-mini","gpt-5.4-nano","gpt-4.1","gpt-4.1-mini"],ju=["claude-sonnet-4-6","claude-opus-4-7","claude-haiku-4-5"],Fu=["claude-sonnet-4.6","claude-opus-4.7","claude-haiku-4.5"],Wo=["gemini-2.5-pro","gemini-2.5-flash","gemini-3.1-pro-preview","gemini-3-flash-preview"],Bu=["grok-4.20","grok-4.1-fast"],Vu={openai:Go,anthropic:ju,google:Wo,activepieces:[...Fu.map(e=>`anthropic/${e}`),...Go.map(e=>`openai/${e}`),...Wo.map(e=>`google/${e}`),...Bu.map(e=>`x-ai/${e}`)]};var Jo=128e3,Zu={openai:128e3,anthropic:2e5,google:1048576,bedrock:2e5,azure:128e3,openrouter:128e3,activepieces:2e5,mistral:128e3};function Hu({provider:e}){return e?Zu[e]??Jo:Jo}o(Hu,"getMaxContextTokens");var Ko={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"},qu={anthropic:"native",google:"native",openrouter:"plugin",activepieces:"plugin"},Gu=new Set(["anthropic","mistral"]);function ce(e){return{chatModels:Vu[e],maxContextTokens:Hu({provider:e}),defaultEmbeddingModel:Ko[e],supportsEmbedding:Ko[e]!==void 0,supportsImageGeneration:!Gu.has(e),webSearch:qu[e]}}o(ce,"buildProviderCapabilities");var Wu={openai:ce("openai"),anthropic:ce("anthropic"),openrouter:ce("openrouter"),azure:ce("azure"),google:ce("google"),"cloudflare-gateway":ce("cloudflare-gateway"),custom:ce("custom"),bedrock:ce("bedrock"),mistral:ce("mistral"),activepieces:ce("activepieces")};var Ju=p({base64Url:a(),fileName:a(),extension:y(a())}),Ku=p({mimeType:a(),url:a(),fileName:y(a())}),Or=R([Ju,Ku]);var Xu=R([p({type:w("file"),value:Or}),p({type:w("markdown"),value:a(),files:y(N(Or))})]),Yu=p({sessionId:a(),message:a(),files:y(N(a()))});var ii=(r=>(r.ON_NEW_RECORD="ON_NEW_RECORD",r.ON_UPDATE_RECORD="ON_UPDATE_RECORD",r))(ii||{}),ai=(r=>(r.ENABLED="ENABLED",r.DISABLED="DISABLED",r))(ai||{}),Dr=(n=>(n.RECORD_CREATED="RECORD_CREATED",n.RECORD_UPDATED="RECORD_UPDATED",n.RECORD_DELETED="RECORD_DELETED",n))(Dr||{});var Qu=R([p({...re,name:a(),externalId:a(),type:w("STATIC_DROPDOWN"),tableId:a(),projectId:a(),data:p({options:N(p({value:a()}))})}),p({...re,name:a(),externalId:a(),type:R([w("TEXT"),w("NUMBER"),w("DATE")]),tableId:a(),projectId:a()})]),el=p({...re,name:a(),folderId:Z(a()),projectId:a(),externalId:a(),status:Er(ai),trigger:Er(ii)}),tl=p({...re,tableId:a(),projectId:a(),cells:O(a(),p({updated:a(),created:a(),value:k(),fieldName:a()}))}),rl=p({events:N(U(Dr)),webhookUrl:a(),flowId:a()}),nl=p({fields:N(p({id:a(),name:a()})),rows:N(O(a(),a())),name:a()}),ol=p({projectId:a(),limit:y(ot.number()),cursor:y(a()),name:y(a()),externalIds:Ft(a()),folderId:y(a()),folderIds:Ft(a())}),il=p({records:N(N(p({fieldId:a(),value:ci()}))),tableId:a()}),al=p({cells:y(N(p({fieldId:a(),value:ci()}))),tableId:a(),agentUpdate:y(B())}),si=Te("operator",[ke("eq"),ke("neq"),ke("gt"),ke("gte"),ke("lt"),ke("lte"),ke("co"),oi("exists"),oi("not_exists")]),sl=p({tableId:a(),limit:y(ot.number()),cursor:y(a()),filters:Ft(si)});function ci(){return Ie(Se(e=>e==null?e:String(e)),nt(a()))}o(ci,"coerceToString");function ke(e){return p({fieldId:a(),operator:w(e),value:a()})}o(ke,"valueFilter");function oi(e){return p({fieldId:a(),operator:w(e)})}o(oi,"existenceFilter");var cl=p({status:y(X()),body:y(k()),headers:y(O(a(),a()))}),ul=p({...re,deleted:Z(Ee),ownerId:a(),displayName:a(),platformId:a(),externalId:Z(a())});var ui=p({name:a(),description:y(a()),type:a(),required:B()}),ll=p({pieceName:a(),triggerName:a(),input:p({toolName:a(),toolDescription:a(),inputSchema:N(ui),returnsResponse:B()})});var li="^[0-9]+\\.[0-9]+\\.[0-9]+$",FT=new RegExp(li),dl="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",BT=a().check(Pe(new RegExp(li))),VT=a().check(Pe(new RegExp(dl))),ml=p({packageType:w("ARCHIVE"),pieceType:U(Me),pieceName:a(),pieceVersion:a(),archiveId:a(),platformId:a()}),pi=p({packageType:w("REGISTRY"),pieceType:w("OFFICIAL"),pieceName:a(),pieceVersion:a()}),di=p({packageType:w("REGISTRY"),pieceType:w("CUSTOM"),pieceName:a(),pieceVersion:a(),platformId:a()}),ZT=R([pi,di]),HT=R([ml,pi,di]);var fl=Te("type",[p({type:w("CRON_EXPRESSION"),cronExpression:a(),timezone:a()}),p({type:w("INTERVAL"),intervalMs:Io().check(Ot(6e4))})]),qT=p({...re,type:U($e),projectId:a(),flowId:a(),triggerName:a(),schedule:Z(fl),flowVersionId:a(),pieceName:a(),pieceVersion:a(),deleted:Z(a()),simulate:B()}),mi=(f=>(f.UNKNOWN="UNKNOWN",f.FLOW_RUN_LOG="FLOW_RUN_LOG",f.FLOW_RUN_LOG_SLICE="FLOW_RUN_LOG_SLICE",f.PACKAGE_ARCHIVE="PACKAGE_ARCHIVE",f.FLOW_STEP_FILE="FLOW_STEP_FILE",f.SAMPLE_DATA="SAMPLE_DATA",f.TRIGGER_PAYLOAD="TRIGGER_PAYLOAD",f.SAMPLE_DATA_INPUT="SAMPLE_DATA_INPUT",f.TRIGGER_EVENT_FILE="TRIGGER_EVENT_FILE",f.PROJECT_RELEASE="PROJECT_RELEASE",f.FLOW_VERSION_BACKUP="FLOW_VERSION_BACKUP",f.PLATFORM_ASSET="PLATFORM_ASSET",f.USER_PROFILE_PICTURE="USER_PROFILE_PICTURE",f.WEBHOOK_PAYLOAD="WEBHOOK_PAYLOAD",f.KNOWLEDGE_BASE="KNOWLEDGE_BASE",f.FLOW_BUNDLE="FLOW_BUNDLE",f))(mi||{}),fi=(r=>(r.NONE="NONE",r.ZSTD="ZSTD",r))(fi||{}),gi=(r=>(r.S3="S3",r.DB="DB",r))(gi||{}),GT=p({...re,projectId:Z(a()),platformId:Z(a()),type:U(mi),compression:U(fi),data:y(k()),location:U(gi),size:Z(X()),fileName:Z(a()),s3Key:Z(a()),metadata:Z(O(a(),a()))}),hi=(n=>(n.ADMIN="ADMIN",n.MEMBER="MEMBER",n.OPERATOR="OPERATOR",n))(hi||{}),yi=(r=>(r.ACTIVE="ACTIVE",r.INACTIVE="INACTIVE",r))(yi||{}),WT=p({id:a(),email:a(),firstName:a(),status:U(yi),externalId:Z(a()),platformId:Z(a()),platformRole:U(hi),lastName:a(),created:Ee,updated:Ee,lastActiveDate:Z(Ee),imageUrl:Z(a())});var Nr=p({...F.shape,...C(O(a(),k()),"OBJECT").shape});var bi=p({...F.shape,...C(a(),"COLOR").shape});var Rr=R([ee,de,Mt,fe,te,me,Pr,it,Tr,ge,ct,Nr,ut,st,at,bi]),c={ShortText(e){return{...e,valueSchema:void 0,type:"SHORT_TEXT"}},Checkbox(e){return{...e,valueSchema:void 0,type:"CHECKBOX"}},LongText(e){return{...e,valueSchema:void 0,type:"LONG_TEXT"}},MarkDown(e){return{displayName:"Markdown",required:!1,description:e.value,type:"MARKDOWN",valueSchema:void 0,variant:e.variant??"INFO"}},Number(e){return{...e,valueSchema:void 0,type:"NUMBER"}},Json(e){return{...e,valueSchema:void 0,type:"JSON"}},Array(e){return{...e,valueSchema:void 0,type:"ARRAY"}},Object(e){return{...e,valueSchema:void 0,type:"OBJECT"}},Dropdown(e){return{...e,valueSchema:void 0,type:"DROPDOWN"}},StaticDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_DROPDOWN"}},MultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"MULTI_SELECT_DROPDOWN"}},DynamicProperties(e){return{...e,valueSchema:void 0,type:"DYNAMIC"}},StaticMultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_MULTI_SELECT_DROPDOWN"}},DateTime(e){return{...e,valueSchema:void 0,type:"DATE_TIME"}},File(e){return{...e,valueSchema:void 0,type:"FILE"}},Custom(e){let t=e.code.toString();return{...e,code:t,valueSchema:void 0,type:"CUSTOM"}},Color(e){return{...e,valueSchema:void 0,type:"COLOR"}}};var ue=p({displayName:a(),description:y(a())});var Pi=p({username:a(),password:a()}),Cr=p({...ue.shape,username:p({displayName:a(),description:y(a())}),password:p({displayName:a(),description:y(a())}),...C(Pi,"BASIC_AUTH").shape});var vl=O(a(),R([ee,de,ge,fe,te])),Ur=p({...ue.shape,props:vl,...C(k(),"CUSTOM_AUTH").shape});var Oe=p({...ue.shape,...C(p({auth:a()}),"SECRET_TEXT").shape});var _l=O(a(),R([ee,de,Oe,ge,fe,te,me,Mt])),Ti=p({...ue.shape,props:_l,...C(k(),"OIDC").shape});var Mr=(r=>(r.HEADER="HEADER",r.BODY="BODY",r))(Mr||{}),Si=R([ee,Oe,te]),Ii=O(a(),Si),xl=p({props:y(O(a(),Si)),authUrl:a(),tokenUrl:a(),scope:N(a()),prompt:y(R([w("none"),w("consent"),w("login"),w("omit")])),pkce:y(B()),pkceMethod:y(R([w("plain"),w("S256")])),authorizationMethod:y(U(Mr)),grantType:y(R([U(pt),w(Sr)])),extra:y(O(a(),a()))}),Ei=p({access_token:a(),props:y(Ii),data:O(a(),rt())}),Lr=p({...ue.shape,...xl.shape,...C(Ei,"OAUTH2").shape});var Be=R([Cr,Ur,Ti,Lr,Oe]),ht="Connection",jr={SecretText(e){return{...e,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(e){return{...e,valueSchema:void 0,type:"OAUTH2",displayName:e.displayName||ht}},BasicAuth(e){return{...e,valueSchema:void 0,type:"BASIC_AUTH",displayName:e.displayName||ht,required:!0}},CustomAuth(e){return{...e,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:e.displayName||ht}},OIDC(e){return{...e,valueSchema:void 0,type:"OIDC",displayName:e.displayName||ht}},None(){}};var EI={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 bl=p({...F.shape,...C(k(),"CUSTOM").shape,code:a()});var Pl=R([Rr,Be]),Fr=O(a(),Pl),qI=O(a(),Rr);var wi=R([p({strategy:w("CRON"),cronExpression:a()}),p({strategy:w("NONE")})]);var Ai="2",Vt="0.82.0";var Br=class{constructor(t,r,n,i,u,l,d,g,v=Vt,b,T="",_){this.displayName=t;this.logoUrl=r;this.authors=n;this.events=i;this.categories=d;this.auth=g;this.minimumSupportedRelease=v;this.maximumSupportedRelease=b;this.description=T;this.deprecated=_;this._actions={};this._triggers={};this.getContextInfo=o(()=>({version:Ai}),"getContextInfo");(!Tl(v)||Sl(v,Vt))&&(this.minimumSupportedRelease=Vt),u.forEach(s=>this._actions[s.name]=s),l.forEach(s=>this._triggers[s.name]=s)}static{o(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:this.auth,minimumSupportedRelease:this.minimumSupportedRelease,maximumSupportedRelease:this.maximumSupportedRelease,deprecated:this.deprecated,contextInfo:this.getContextInfo?.()}}getAction(t){return this._actions[t]}getTrigger(t){return this._triggers[t]}actions(){return this._actions}triggers(){return this._triggers}},$i=o(e=>{if(e.auth&&Array.isArray(e.auth)&&!e.auth.every((r,n,i)=>n===i.findIndex(u=>u.type===r.type)))throw new Error("Auth properties must be unique by type");return new Br(e.displayName,e.logoUrl,e.authors??[],e.events,e.actions,e.triggers,e.categories??[],e.auth,e.minimumSupportedRelease,e.maximumSupportedRelease,e.description,e.deprecated)},"createPiece");function Tl(e){return/^\d+\.\d+\.\d+$/.test(e)}o(Tl,"isValidSimpleSemver");function Sl(e,t){let[r,n,i]=e.split(".").map(Number),[u,l,d]=t.split(".").map(Number);return r!==u?r<u:n!==l?n<l:i<d}o(Sl,"isSemverLessThan");var Il=y(O(a(),O(a(),a()))),zi=p({id:y(a()),name:a(),displayName:a(),logoUrl:a(),description:a(),authors:N(a()),platformId:y(a()),directoryPath:y(a()),auth:y(R([Be,N(Be)])),version:a(),categories:y(N(U(Le))),minimumSupportedRelease:y(a()),maximumSupportedRelease:y(a()),deprecated:y(B()),i18n:Il}),El=U(["human","ai","both"]),ki=p({description:y(a()),idempotent:y(B())}),Oi=p({name:a(),displayName:a(),description:a(),props:Fr,requireAuth:B(),errorHandlingOptions:y(br),outputSchema:y(Ct()),audience:y(El),aiMetadata:y(ki)}),Di=p({name:a(),displayName:a(),description:a(),props:Fr,errorHandlingOptions:y(br),type:U($e),sampleData:k(),handshakeConfiguration:y(Ct()),renewConfiguration:y(wi),testStrategy:U(mt),outputSchema:y(Ct()),aiMetadata:y(ki)}),wl=p({...zi.shape,actions:O(a(),Oi),triggers:O(a(),Di)}),Al=p({...zi.shape,actions:X(),triggers:X(),suggestedActions:y(N(Oi)),suggestedTriggers:y(N(Di))}),Ni=p({projectUsage:X(),pieceType:U(Me),packageType:U(lt),platformId:y(a()),archiveId:y(a())}),qE=p({...wl.shape,...Ni.shape}),GE=p({...Al.shape,...Ni.shape}),WE=p({name:a(),version:a()});var $l=ve(require("path")),zl=ve(require("fs/promises"));var Mi=require("node:stream");var Zt=class{constructor(t,r){this.baseUrl=t;this.authenticationConverter=r}static{o(this,"BaseHttpClient")}getUrl(t){let r=new URL(`${this.baseUrl}${t.url}`),n=`${r.origin}${r.pathname}`,i=new URLSearchParams;return r.searchParams.forEach((u,l)=>{i.append(l,u)}),{urlWithoutQueryParams:n,queryParams:i}}getHeaders(t){let r={Accept:"application/json"};return t.authentication&&this.populateAuthentication(t.authentication,r),t.body&&(t.headers?.["Content-Type"]==="text/csv"?r["Content-Type"]="text/csv":r["Content-Type"]="application/json"),t.headers&&(r={...r,...t.headers}),r}populateAuthentication(t,r){this.authenticationConverter.convert(t,r)}};var Ht=class{static{o(this,"DelegatingAuthenticationConverter")}constructor(t=new Vr,r=new Zr){this.converters={BEARER_TOKEN:t,BASIC:r}}convert(t,r){return this.converters[t.type].convert(t,r)}},Vr=class{static{o(this,"BearerTokenAuthenticationConverter")}convert(t,r){return r.Authorization=`Bearer ${t.token}`,r}},Zr=class{static{o(this,"BasicTokenAuthenticationConverter")}convert(t,r){let n=`${t.username}:${t.password}`,i=Buffer.from(n).toString("base64");return r.Authorization=`Basic ${i}`,r}};var yt=class extends Error{constructor(r,n){let i=n.status||500,u=Buffer.isBuffer(n.responseBody)?n.responseBody.toString():n.responseBody;super(JSON.stringify({response:{status:i,body:u},request:{body:r}}));this.requestBody=r;this.status=i,this.responseBody=u}static{o(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 Ri({error:e,requestBody:t}){return e instanceof yt?e.errorMessage():{response:{status:0,body:e instanceof Error?e.message:String(e)},request:{body:t}}}o(Ri,"toFailsafeOutput");var Ve=(l=>(l.GET="GET",l.POST="POST",l.PATCH="PATCH",l.PUT="PUT",l.DELETE="DELETE",l.HEAD="HEAD",l))(Ve||{});var qt=class extends Zt{static{o(this,"FetchHttpClient")}constructor(t="",r=new Ht){super(t,r)}async sendRequest(t,r){process.env.NODE_TLS_REJECT_UNAUTHORIZED="0";let{urlWithoutQueryParams:n,queryParams:i}=this.getUrl(t),u=this.getHeaders(t),l=t.queryParams??{};for(let[L,Q]of Object.entries(l))i.append(L,Q);let d=i.toString(),g=d?`${n}?${d}`:n,v=t.responseType??"json",b=t.followRedirects??!0,T=t.retries??0,{body:_,extraHeaders:s,isStream:m}=kl(t.method)?Ol(t.body,u):{body:void 0,extraHeaders:{},isStream:!1},h=Nl({...u,...s}),f=await Dl(async()=>{let L=new AbortController,Q=t.timeout&&t.timeout>0?setTimeout(()=>L.abort(),t.timeout):void 0;try{let ne={method:t.method.toString(),headers:h,body:_,redirect:b?"follow":"manual",signal:L.signal};return m&&(ne.duplex="half"),r?.dispatcher!==void 0&&(ne.dispatcher=r.dispatcher),await fetch(g,ne)}finally{Q!==void 0&&clearTimeout(Q)}},T),x=b?300:400;if(f.status<200||f.status>=x){let L=await Ci(f,v),Q=new yt(t.body,{status:f.status,responseBody:L});throw console.error("[HttpClient#(sanitized error message)] Request failed:",Q),Q}let P=await Ci(f,v);return{status:f.status,headers:Rl(f.headers),body:P}}};function kl(e){return e!=="GET"&&e!=="HEAD"}o(kl,"acceptsRequestBody");function Ol(e,t){if(Ul(e))return{body:void 0,extraHeaders:{},isStream:!1};if(Cl(e)){let n=new Mi.PassThrough;return e.on("error",i=>n.destroy(i)),e.pipe(n),{body:n,extraHeaders:e.getHeaders(),isStream:!0}}return typeof e=="string"||Buffer.isBuffer(e)||e instanceof URLSearchParams||e instanceof ArrayBuffer||typeof FormData<"u"&&e instanceof FormData||typeof Blob<"u"&&e instanceof Blob?{body:e,extraHeaders:{},isStream:!1}:(t["Content-Type"]??t["content-type"]??"").includes("application/x-www-form-urlencoded")?{body:new URLSearchParams(e).toString(),extraHeaders:{},isStream:!1}:{body:JSON.stringify(e),extraHeaders:{},isStream:!1}}o(Ol,"serializeBody");async function Ci(e,t){switch(t){case"arraybuffer":return Buffer.from(await e.arrayBuffer());case"blob":return await e.blob();case"text":return await e.text();default:{let r=await e.text();if(r.length===0)return;try{return JSON.parse(r)}catch{return r}}}}o(Ci,"parseResponseBody");async function Dl(e,t){let r;for(let n=0;n<=t;n++)try{let i=await e();if(i.status>=500&&n<t){await Ui(n);continue}return i}catch(i){if(r=i,n<t){await Ui(n);continue}throw i}throw r}o(Dl,"sendWithRetries");function Ui(e){let t=Math.min(1e3*2**e,3e4);return new Promise(r=>setTimeout(r,t))}o(Ui,"backoff");function Nl(e){let t={};for(let[r,n]of Object.entries(e))n!==void 0&&(t[r.toLowerCase()]=Array.isArray(n)?n.join(", "):n);return t}o(Nl,"normalizeHeaders");function Rl(e){let t={};return e.forEach((r,n)=>{t[n]=r}),t}o(Rl,"toHttpHeaders");function Cl(e){return typeof e=="object"&&e!==null&&typeof e.getHeaders=="function"&&typeof e.pipe=="function"&&typeof e.on=="function"}o(Cl,"isNodeFormData");function Ul(e){return e==null}o(Ul,"isNil");var we=new qt;var Sd=ve(require("fs")),Vs=ve(rr());var Id={"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 Ed(e){let t=e.split(";")[0].trim().toLowerCase();return Id[t]??""}o(Ed,"contentTypeToExtension");var wd=o(({baseUrl:e,relativePath:t})=>{let r=e.endsWith("/")?e:`${e}/`,n=t.startsWith("/")?t.slice(1):t;return`${r}${n}`},"joinBaseUrlWithRelativePath"),Ad=o((e,t)=>{let r="https://api.example.com";try{let n=t?e(t):void 0;return(n?.endsWith("/")?n.slice(0,-1):n)??r}catch{return r}},"getBaseUrlForDescription");function Zs({auth:e,baseUrl:t,authMapping:r,description:n,displayName:i,name:u,props:l,extraProps:d,authLocation:g="headers"}){return Ue({audience:"human",name:u||"custom_api_call",displayName:i||"Custom API Call",description:n||"Make a custom API call to a specific endpoint",auth:e,requireAuth:!!e,props:{url:c.DynamicProperties({auth:e,displayName:"",required:!0,refreshers:[],props:o(async({auth:v})=>({url:c.ShortText({displayName:"URL",description:`You can either use the full URL or the relative path to the base URL
3
- i.e ${Ad(t,v)}/resource or /resource`,required:!0,defaultValue:v?t(v):"",...l?.url??{}})}),"props")}),method:c.StaticDropdown({displayName:"Method",required:!0,options:{options:Object.values(Ve).map(v=>({label:v,value:v}))},...l?.method??{}}),headers:c.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!0,...l?.headers??{}}),queryParams:c.Object({displayName:"Query Parameters",required:!0,...l?.queryParams??{}}),body_type:c.StaticDropdown({displayName:"Body Type",required:!1,defaultValue:"none",options:{disabled:!1,options:[{label:"None",value:"none"},{label:"JSON",value:"json"},{label:"Form Data",value:"form_data"},{label:"Raw",value:"raw"}]}}),body:c.DynamicProperties({auth:e,displayName:"Body",refreshers:["body_type"],required:!1,props:o(async({body_type:v})=>{if(!v)return{};let b=v,T={};switch(b){case"none":break;case"json":T.data=c.Json({displayName:"JSON Body",required:!0,...l?.body??{}});break;case"raw":T.data=c.LongText({displayName:"Raw Body",required:!0});break;case"form_data":T.data=c.Array({displayName:"Form Data",required:!0,properties:{fieldName:c.ShortText({displayName:"Field Name",required:!0}),fieldType:c.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:c.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:c.File({displayName:"File Field Value",required:!1})}});break}return T},"props")}),response_is_binary:c.Checkbox({displayName:"Response is Binary ?",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1}),failsafe:c.Checkbox({displayName:"No Error on Failure",required:!1,...l?.failsafe??{}}),timeout:c.Number({displayName:"Timeout (in seconds)",required:!1,...l?.timeout??{}}),followRedirects:c.Checkbox({displayName:"Follow redirects",required:!1,defaultValue:!1}),...d},run:o(async v=>{let{method:b,url:T,headers:_,queryParams:s,body:m,body_type:h,failsafe:f,timeout:x,response_is_binary:P,followRedirects:L}=v.propsValue;jt(b,"Method"),jt(T,"URL");let Q=ie(r)?{}:await r(v.auth,v.propsValue),ne=T.url,Je=ne.startsWith("http://")||ne.startsWith("https://")?ne:wd({baseUrl:t(v.auth),relativePath:ne}),ye={method:b,url:Je,headers:{..._??{},...g==="headers"||!ie(g)?Q:{}},queryParams:{...g==="queryParams"?Q:{},...s??{}},timeout:x?x*1e3:0,followRedirects:L};if(P&&(ye.responseType="arraybuffer"),m)if(h&&h!=="none"){let le=m.data;if(h==="form_data"){let Ks=le,bt=new Vs.default;for(let{fieldName:dn,fieldType:mn,textFieldValue:fn,fileFieldValue:ir}of Ks)mn==="text"&&!ft(fn)?bt.append(dn,fn):mn==="file"&&!ft(ir)&&bt.append(dn,ir.data,{filename:ir?.filename});ye.body=bt,ye.headers={...ye.headers,...bt.getHeaders()}}else ye.body=le}else h||(ye.body=m);try{let le=await we.sendRequest(ye);return await $d(v.files,le.body,le.status,le.headers,P)}catch(le){if(f)return Ri({error:le,requestBody:ye.body});throw le}},"run")})}o(Zs,"createCustomApiCallAction");var $d=o(async(e,t,r,n,i)=>{let u;if(i&&zd(t)){let l=Array.isArray(n?.["content-type"])?n["content-type"][0]:n?.["content-type"],d=Ed(l??"")||"txt",g;t instanceof ArrayBuffer?g=Buffer.from(new Uint8Array(t)):Buffer.isBuffer(t)?g=t:g=Buffer.from(t),u=await e.write({fileName:`output.${d}`,data:g})}else u=t;return{status:r,headers:n,body:u}},"handleBinaryResponse"),zd=o(e=>e instanceof ArrayBuffer||Buffer.isBuffer(e),"isBinaryBody");var Ne=jr.BasicAuth({displayName:"Pdfcrowd Credentials",description:"Your Pdfcrowd API credentials. Get them at https://pdfcrowd.com/user/account/",required:!0,username:{displayName:"Username",description:"Your Pdfcrowd username"},password:{displayName:"API Key",description:"Your Pdfcrowd API key"},validate:o(async({auth:e})=>{try{let t=Buffer.from(`${e.username}:${e.password}`).toString("base64");return(await we.sendRequest({method:"GET",url:"https://api.pdfcrowd.com/api/info/",headers:{Authorization:`Basic ${t}`}})).status>=400?{valid:!1,error:"Invalid username or API key"}:{valid:!0}}catch(t){return{valid:!1,error:"Connection failed: "+t.message}}},"validate")});var Hs="https://api.pdfcrowd.com/api",kd="24.04";function nr(e){return`https://api.pdfcrowd.com/convert/${e||kd}/`}o(nr,"getConvertUrl");function or(e){return"Basic "+Buffer.from(`${e.username}:${e.password}`).toString("base64")}o(or,"getAuthHeader");var qs=ve(rr()),Gs=Ue({name:"url_to_pdf",displayName:"Convert URL to PDF",description:"Convert a web page URL to PDF document",audience:"both",aiMetadata:{description:"Render a publicly accessible web page URL into a PDF file via the Pdfcrowd API, returning the generated document. Choose this when the source is a live URL rather than raw HTML markup (use Convert HTML to PDF for an HTML string). Supports extensive layout, header/footer, watermark, and security options. Not idempotent: each call performs a fresh conversion that produces a new file and consumes account credits.",idempotent:!1},auth:Ne,props:{url:c.ShortText({displayName:"URL",description:"The URL of the web page to convert. Must be publicly accessible.",required:!0}),outputFilename:c.ShortText({displayName:"Output Filename",description:"The filename for the generated PDF",required:!1,defaultValue:"document.pdf"}),page_size:c.StaticDropdown({displayName:"Page Size",description:"Set the output page size using standard formats (A4, Letter, A3, etc.). Use A4 for international documents, Letter for US-based content, or larger sizes like A3 for posters and presentations.",required:!1,options:{options:[{label:"A0",value:"A0"},{label:"A1",value:"A1"},{label:"A2",value:"A2"},{label:"A3",value:"A3"},{label:"A4",value:"A4"},{label:"A5",value:"A5"},{label:"A6",value:"A6"},{label:"Letter",value:"Letter"}]},defaultValue:"A4"}),page_width:c.ShortText({displayName:"Page Width",description:"Set custom page dimensions when standard sizes don't fit your needs. Useful for banners, receipts, custom forms, or when matching specific printing equipment. The safe maximum is 200in - larger sizes may fail to open in some PDF viewers. For standard sizes like A4 or Letter, use the predefined page size option instead.",required:!1}),page_height:c.ShortText({displayName:"Page Height",description:'Set custom page height for specific formats like receipts, banners, or legal documents. Set to "-1" for a single-page PDF that expands to fit all content vertically - ideal for web pages, infographics, or documents where page breaks are undesirable. The safe maximum is 200in otherwise some viewers cannot open the PDF. For standard sizes, use the predefined page size option instead.',required:!1}),orientation:c.StaticDropdown({displayName:"Orientation",description:"Set the output page orientation to portrait or landscape. Use landscape for wide content like spreadsheets, charts, or dashboards. Use portrait for standard documents and text-heavy content.",required:!1,options:{options:[{label:"landscape",value:"landscape"},{label:"portrait",value:"portrait"}]},defaultValue:"portrait"}),margin_top:c.ShortText({displayName:"Margin Top",description:"Control white space at the top of the page. Increase for header space, formal documents, or annotation room (e.g., 1in or more). Decrease to maximize content area or fit more content (e.g., 5mm to 10mm). Default 0.4in balances readability with space efficiency. Set to 0 for full-bleed designs. Affects where content starts and where headers appear.",required:!1}),margin_right:c.ShortText({displayName:"Margin Right",description:"Control white space on the right edge of the page. Increase for binding/hole-punch clearance or note-taking space (e.g., 1in or more). Decrease to fit wider content (e.g., 5mm to 10mm). Default 0.4in balances readability with space efficiency. Set to 0 for full-bleed designs. Affects where content wraps and text line length.",required:!1}),margin_bottom:c.ShortText({displayName:"Margin Bottom",description:"Control white space at the bottom of the page. Increase for footer space, page numbers, or formal documents (e.g., 1in or more). Decrease to fit more content per page (e.g., 5mm to 10mm). Default 0.4in balances readability with space efficiency. Set to 0 for full-bleed designs. Affects where content ends and where footers appear.",required:!1}),margin_left:c.ShortText({displayName:"Margin Left",description:"Control white space on the left edge of the page. Increase for binding/hole-punch clearance or note-taking space (e.g., 1in or more). Decrease to fit wider content (e.g., 5mm to 10mm). Default 0.4in balances readability with space efficiency. Set to 0 for full-bleed designs. Affects where content starts horizontally and text line length.",required:!1}),no_margins:c.Checkbox({displayName:"No Margins",description:"Disable all page margins to use the entire page area. Use this for full-bleed designs where content should extend to the page edges, such as posters, certificates, or branded materials. Combine with custom CSS to ensure your content fills the page properly.",required:!1}),print_page_range:c.ShortText({displayName:"Print Page Range",description:'Set the page range to print when you only need specific pages from the conversion. Use this to extract individual pages (e.g., "2"), specific ranges (e.g., "3-7"), or combinations (e.g., "1,4-6,last"). Ideal for creating excerpts from long documents or excluding cover pages from batch processing.',required:!1}),content_viewport_width:c.StaticDropdown({displayName:"Content Viewport Width",description:"Set the viewport width for formatting the HTML content when generating a PDF. Use this to control how responsive designs render - prevent mobile styles from applying when you want desktop layout, or ensure content appears at the right width. Specify a viewport width to control content rendering, ensuring it mimics the appearance on various devices or matches specific design requirements.",required:!1,options:{options:[{label:"balanced",value:"balanced"},{label:"small",value:"small"},{label:"medium",value:"medium"},{label:"large",value:"large"},{label:"extra-large",value:"extra-large"}]},defaultValue:"medium"}),content_viewport_height:c.StaticDropdown({displayName:"Content Viewport Height",description:"Set the viewport height for formatting the HTML content when generating a PDF. Specify a viewport height to enforce loading of lazy-loaded images and affect vertical positioning of absolutely positioned elements within the content.",required:!1,options:{options:[{label:"auto",value:"auto"},{label:"large",value:"large"}]},defaultValue:"auto"}),content_fit_mode:c.StaticDropdown({displayName:"Content Fit Mode",description:"Specify the mode for fitting the HTML content to the print area by upscaling or downscaling it. Use this to prevent content from being cut off at page edges or to enable smart scaling of oversized content.",required:!1,options:{options:[{label:"auto",value:"auto"},{label:"smart-scaling",value:"smart-scaling"},{label:"no-scaling",value:"no-scaling"},{label:"viewport-width",value:"viewport-width"},{label:"content-width",value:"content-width"},{label:"single-page",value:"single-page"},{label:"single-page-ratio",value:"single-page-ratio"}]},defaultValue:"auto"}),remove_blank_pages:c.StaticDropdown({displayName:"Remove Blank Pages",description:'Specify which blank pages to exclude from the output document to create cleaner PDFs. Use "trailing" to remove empty pages at the end caused by page break issues. Use "all" to remove blank pages throughout the document when converting content with formatting quirks. Helps eliminate unwanted white pages from the final output.',required:!1,options:{options:[{label:"trailing",value:"trailing"},{label:"all",value:"all"},{label:"none",value:"none"}]},defaultValue:"trailing"}),header_url:c.LongText({displayName:"Header URL",description:"Load an HTML code from the specified URL and use it as the page header.",required:!1}),header_html:c.LongText({displayName:"Header HTML",description:"Set the HTML header content with custom styling and dynamic page numbers. Use this to add page numbers, document titles, author names, dates, or company branding to the top of every page. Supports full HTML/CSS for complete design control. Use special CSS classes like pdfcrowd-page-number and pdfcrowd-page-count for dynamic content. Ideal for reports, invoices, and professional documents.",required:!1}),header_height:c.ShortText({displayName:"Header Height",description:"Set the header height to allocate space for header content and prevent overlap with main content. Increase this if your header text is getting cut off or overlapping with page content. Must be large enough to accommodate your header HTML including any multi-line text or images.",required:!1}),footer_url:c.LongText({displayName:"Footer URL",description:"Load an HTML code from the specified URL and use it as the page footer.",required:!1}),footer_html:c.LongText({displayName:"Footer HTML",description:"Set the HTML footer content with custom styling and dynamic page numbers. Use this to add page numbers, copyright notices, document dates, or company information to the bottom of every page. Supports full HTML/CSS for complete design control. Use special CSS classes like pdfcrowd-page-number and pdfcrowd-page-count for dynamic content. Ideal for contracts, reports, and official documents.",required:!1}),footer_height:c.ShortText({displayName:"Footer Height",description:"Set the footer height to allocate space for footer content and prevent overlap with main content. Increase this if your footer text is getting cut off or overlapping with page content. Must be large enough to accommodate your footer HTML including any multi-line text or images.",required:!1}),no_header_footer_horizontal_margins:c.Checkbox({displayName:"No Header Footer Horizontal Margins",description:"Disable horizontal page margins for header and footer. The header/footer contents width will be equal to the physical page width.",required:!1}),exclude_header_on_pages:c.ShortText({displayName:"Exclude Header On Pages",description:"The page header content is not printed on the specified pages. To remove the entire header area, use the conversion config.",required:!1}),exclude_footer_on_pages:c.ShortText({displayName:"Exclude Footer On Pages",description:"The page footer content is not printed on the specified pages. To remove the entire footer area, use the conversion config.",required:!1}),header_footer_scale_factor:c.Number({displayName:"Header Footer Scale Factor",description:"Set the scaling factor (zoom) for the header and footer.",required:!1}),page_numbering_offset:c.Number({displayName:"Page Numbering Offset",description:"Set the numbering offset for page numbers in header/footer HTML to continue page numbering from a previous document. Use this when generating document sections separately - for example, if you have already generated pages 1-10, set offset to 10. The next section will then start numbering at page 11. Essential for multi-part reports or book chapters.",required:!1}),page_watermark_url:c.ShortText({displayName:"Page Watermark URL",description:"Load a file from the specified URL and apply the file as a watermark to each page of the output PDF. A watermark can be either a PDF or an image. If a multi-page file (PDF or TIFF) is used, the first page is used as the watermark.",required:!1}),multipage_watermark_url:c.ShortText({displayName:"Multipage Watermark URL",description:"Load a file from the specified URL and apply each page of the file as a watermark to the corresponding page of the output PDF. A watermark can be either a PDF or an image.",required:!1}),page_background_url:c.ShortText({displayName:"Page Background URL",description:"Load a file from the specified URL and apply the file as a background to each page of the output PDF. A background can be either a PDF or an image. If a multi-page file (PDF or TIFF) is used, the first page is used as the background.",required:!1}),multipage_background_url:c.ShortText({displayName:"Multipage Background URL",description:"Load a file from the specified URL and apply each page of the file as a background to the corresponding page of the output PDF. A background can be either a PDF or an image.",required:!1}),page_background_color:c.ShortText({displayName:"Page Background Color",description:"Set a solid background color for all pages, filling the entire page area including margins. Useful for creating branded PDFs with corporate colors, highlighting draft documents, or improving readability with off-white backgrounds. Supports transparency with RGBA format - use semi-transparent colors for subtle effects without obscuring content. Format as RGB (FF0000) or RGBA (FF000080) hexadecimal.",required:!1}),use_print_media:c.Checkbox({displayName:"Use Print Media",description:"Use the print version of the page if available via @media print CSS rules. Enable this when converting websites that have print-optimized styles. Many sites hide navigation, ads, and sidebars in print mode. Produces cleaner PDFs by using the design the website creator intended for printing.",required:!1}),no_background:c.Checkbox({displayName:"No Background",description:"Do not print the background graphics to create printer-friendly PDFs. Use this when documents will be physically printed to save ink costs and improve readability. Removes background colors, images, and patterns while preserving text and foreground content. Particularly useful for documents with dark backgrounds or decorative elements.",required:!1}),disable_javascript:c.Checkbox({displayName:"Disable JavaScript",description:"Do not execute JavaScript during conversion. Use this to improve conversion speed when JavaScript is not needed, prevent dynamic content changes, or avoid security risks from untrusted scripts. Note that disabling JavaScript means lazy-loaded images and AJAX content will not load.",required:!1}),disable_image_loading:c.Checkbox({displayName:"Disable Image Loading",description:"Do not load images during conversion to create text-only PDFs. Use this to significantly speed up conversion, reduce file size, or create accessible text-focused documents. Ideal for converting documentation where images are not needed, reducing bandwidth usage, or creating lightweight PDFs for email distribution.",required:!1}),disable_remote_fonts:c.Checkbox({displayName:"Disable Remote Fonts",description:"Disable loading fonts from remote sources. Use this to speed up conversion by avoiding font download delays, ensure consistent rendering with system fonts, or work around font loading failures. Note that text will fall back to system fonts, which may change the document's appearance.",required:!1}),load_iframes:c.StaticDropdown({displayName:"Load Iframes",description:'Specifies how iframes are handled during conversion. Use "all" to include all embedded content (videos, maps, widgets). Use "same-origin" to include only content from the same domain for security purposes. Use "none" to exclude all iframes for faster conversion and to avoid third-party content issues. Disabling iframes can significantly improve performance and reliability.',required:!1,options:{options:[{label:"all",value:"all"},{label:"same-origin",value:"same-origin"},{label:"none",value:"none"}]},defaultValue:"all"}),block_ads:c.Checkbox({displayName:"Block Ads",description:"Automatically block common advertising networks and tracking scripts during conversion, producing cleaner PDFs with faster conversion times. Filters out third-party ad content, analytics beacons, and ad network resources. Ideal for converting news sites, blogs, or any ad-heavy content where ads distract from the main message. May occasionally block legitimate third-party content - disable if critical third-party resources are missing.",required:!1}),default_encoding:c.ShortText({displayName:"Default Encoding",description:'Specify the character encoding when the HTML lacks proper charset declaration or has incorrect encoding. Prevents garbled text for non-English content, especially legacy pages without UTF-8 encoding. Set to "utf-8" for modern content, "iso-8859-1" for Western European legacy pages, or other encodings for specific regional content. Only needed when auto-detection fails and you see corrupted characters in the output.',required:!1}),locale:c.ShortText({displayName:"Locale",description:'Set the locale for the conversion to control regional formatting of dates, times, and numbers. Use this when converting content for specific regions - for example, set to "en-US" for MM/DD/YYYY dates and comma thousand separators, or "de-DE" for DD.MM.YYYY dates and period thousand separators. Essential for financial reports, invoices, or localized content.',required:!1}),http_auth_user_name:c.ShortText({displayName:"HTTP Auth User Name",description:"Set the HTTP authentication user name. Required to access protected web pages or staging environments.",required:!1}),http_auth_password:c.ShortText({displayName:"HTTP Auth Password",description:"Set the HTTP authentication password. Required to access protected web pages or staging environments.",required:!1}),cookies:c.ShortText({displayName:"Cookies",description:"Set HTTP cookies to be included in all requests made by the converter to access authenticated or session-based content. Use this when converting pages that require login, maintain user sessions, or personalize content based on cookies. Essential for converting member-only areas, dashboards, or any content behind cookie-based authentication. Format as semicolon-separated name=value pairs.",required:!1}),verify_ssl_certificates:c.Checkbox({displayName:"Verify SSL Certificates",description:"Enforce SSL certificate validation for secure connections, preventing conversions from sites with invalid certificates. Enable when converting from production sites with valid certificates to ensure security. When disabled, allows conversion from any HTTPS site regardless of certificate validity - including development servers with self-signed certificates, internal corporate sites with expired certificates, or local testing environments.",required:!1}),fail_on_main_url_error:c.Checkbox({displayName:"Fail On Main URL Error",description:"Abort the conversion if the HTTP status code of the main URL is greater than or equal to 400 (client/server errors). Use this in automated workflows to catch broken URLs or authentication failures early rather than producing invalid PDFs. Ensures your system does not silently generate error page PDFs when source content is unavailable.",required:!1}),fail_on_any_url_error:c.Checkbox({displayName:"Fail On Any URL Error",description:"Abort the conversion if any sub-request (images, stylesheets, scripts) fails with HTTP 400+ errors. Use this for strict quality control when all assets must load successfully.",required:!1}),css_page_rule_mode:c.StaticDropdown({displayName:"CSS Page Rule Mode",description:'Specifies behavior in the presence of CSS @page rules to control which settings take precedence. Use "default" to prioritize API settings over CSS rules, ensuring consistent output regardless of input HTML. Use "mode2" to respect CSS @page rules for print-optimized HTML. This solves conflicts when CSS tries to override your API page setup.',required:!1,options:{options:[{label:"default",value:"default"},{label:"mode1",value:"mode1"},{label:"mode2",value:"mode2"}]},defaultValue:"default"}),custom_css:c.LongText({displayName:"Custom CSS",description:"Apply custom CSS to the input HTML document to modify the visual appearance and layout of your content dynamically. Use this to override default styles, adjust spacing, change fonts, or fix layout issues without modifying the source HTML. Use !important in your CSS rules to prioritize and override conflicting styles.",required:!1}),custom_javascript:c.LongText({displayName:"Custom JavaScript",description:"Run a custom JavaScript after the document is loaded and ready to print. Use this to modify page content before conversion, remove unwanted elements, or trigger specific page states. The script is intended for post-load DOM manipulation (add/remove elements, update CSS, ...). In addition to the standard browser APIs, the custom JavaScript code can use helper functions from our JavaScript library.",required:!1}),on_load_javascript:c.ShortText({displayName:"On Load JavaScript",description:"Run a custom JavaScript right after the document is loaded. The script is intended for early DOM manipulation (add/remove elements, update CSS, ...). In addition to the standard browser APIs, the custom JavaScript code can use helper functions from our JavaScript library.",required:!1}),custom_http_header:c.ShortText({displayName:"Custom HTTP Header",description:"Set a custom HTTP header to be included in all requests made by the converter. Use this to pass authentication tokens to protected sites, add tracking headers for analytics, or provide API keys for accessing private content. Essential when converting content from APIs or internal systems that require special headers for access control.",required:!1}),javascript_delay:c.Number({displayName:"JavaScript Delay",description:'Wait the specified number of milliseconds to finish all JavaScript after the document is loaded. Use this to ensure lazy-loaded images, AJAX content, or animations complete before conversion. Your license defines the maximum wait time by "Max Delay" parameter.',required:!1}),element_to_convert:c.ShortText({displayName:"Element To Convert",description:"Convert only the specified element from the main document and its children. Use this to extract specific portions of a page (like article content) while excluding navigation, headers, footers, or sidebars. The element is specified by one or more CSS selectors. If the element is not found, the conversion fails. If multiple elements are found, the first one is used.",required:!1}),element_to_convert_mode:c.StaticDropdown({displayName:"Element To Convert Mode",description:'Control how CSS styles are applied when converting only part of a page. The "cut-out" option extracts the element into a new document root, which may break CSS selectors like "body > div". The "remove-siblings" option keeps the element in its original DOM position but deletes other elements, preserving descendant selectors. The "hide-siblings" option keeps all elements but hides non-selected ones with display:none, preserving all CSS context.',required:!1,options:{options:[{label:"cut-out",value:"cut-out"},{label:"remove-siblings",value:"remove-siblings"},{label:"hide-siblings",value:"hide-siblings"}]},defaultValue:"cut-out"}),wait_for_element:c.ShortText({displayName:"Wait For Element",description:'Wait for the specified element in a source document. Use this when specific dynamic content must be ready before conversion, avoiding unnecessary delays from a fixed JavaScript delay. The element is specified by one or more CSS selectors. The element is searched for in the main document and all iframes. If the element is not found, the conversion fails. Your license defines the maximum wait time by the "Max Delay" parameter.',required:!1}),auto_detect_element_to_convert:c.Checkbox({displayName:"Auto Detect Element To Convert",description:"The main HTML element for conversion is detected automatically. Use this when you want to extract article or main content without knowing the exact CSS selector, automatically excluding navigation and sidebars.",required:!1}),readability_enhancements:c.StaticDropdown({displayName:"Readability Enhancements",description:'Automatically enhance the input HTML to improve readability by removing clutter and reformatting content. Use this when converting web pages with excessive navigation, ads, or sidebars that distract from the main content. Different versions (v1-v4) use progressively aggressive algorithms - start with "v1" and increase if more cleanup is needed. Ideal for converting blog posts, articles, or documentation into clean PDFs.',required:!1,options:{options:[{label:"none",value:"none"},{label:"readability-v1",value:"readability-v1"},{label:"readability-v2",value:"readability-v2"},{label:"readability-v3",value:"readability-v3"},{label:"readability-v4",value:"readability-v4"}]},defaultValue:"none"}),scale_factor:c.Number({displayName:"Scale Factor",description:"Set the scaling factor (zoom) for the main page area to fit content better. Use values below 100% to shrink oversized content that is getting cut off at page edges. Use values above 100% to enlarge small content for better readability. Common use cases include shrinking wide tables to fit (70-80%), or enlarging mobile-optimized layouts for desktop PDFs (120-150%).",required:!1}),jpeg_quality:c.Number({displayName:"JPEG Quality",description:"Set the quality of embedded JPEG images to balance file size and visual quality. Use 100% for archival documents or when image quality is critical. Use 70-85% for web distribution to significantly reduce file size with minimal visible quality loss. Use lower values (50-60%) only when file size is more important than image clarity. Common artifacts below 60% include blockiness and color banding.",required:!1}),convert_images_to_jpeg:c.StaticDropdown({displayName:"Convert Images To JPEG",description:'Specify which image types will be converted to JPEG to reduce PDF file size. Use "opaque" to convert only non-transparent images (safe for most documents). Use "all" to convert everything including transparent images (transparent areas become white). Use "none" to preserve original image formats. Ideal for reducing file size when distributing large image-heavy PDFs via email or web.',required:!1,options:{options:[{label:"none",value:"none"},{label:"opaque",value:"opaque"},{label:"all",value:"all"}]},defaultValue:"none"}),image_dpi:c.Number({displayName:"Image DPI",description:"Set the DPI of images in PDF to control resolution and file size. Use 300 DPI for professional printing, 150 DPI for everyday documents, 96 DPI for screen-only viewing, or 72 DPI for web distribution. Lower DPI creates smaller files but reduces image quality. Use 0 to preserve original image resolution. Note that this only downscales - it will not upscale low-resolution images.",required:!1}),enable_pdf_forms:c.Checkbox({displayName:"Enable PDF Forms",description:"Convert HTML forms to fillable PDF forms that users can complete in PDF readers. Use this to create interactive PDFs from HTML forms. Ideal for creating fillable applications, surveys, or order forms that work offline. Details can be found in the blog post.",required:!1}),linearize:c.Checkbox({displayName:"Linearize",description:"Create linearized PDF. This is also known as Fast Web View. Use this to optimize PDFs for progressive download, allowing users to start viewing the first page while the rest downloads.",required:!1}),encrypt:c.Checkbox({displayName:"Encrypt",description:"Encrypt the PDF to prevent search engines from indexing the contents and add an extra layer of security. Use this for confidential documents, internal reports, or any content you do not want appearing in search results. Combine with a password to require authentication for viewing, or just use encryption alone to prevent indexing while keeping the PDF publicly readable.",required:!1}),user_password:c.ShortText({displayName:"User Password",description:"Protect the PDF with a user password to restrict who can open and view the document. Recipients must enter this password to view the PDF. Use this for confidential documents, sensitive data, or content distribution where you want to control access. Combine with permission flags to restrict what users can do after opening.",required:!1}),owner_password:c.ShortText({displayName:"Owner Password",description:"Protect the PDF with an owner password for administrative control. This password allows changing permissions, passwords, and document restrictions - like a master key. Use different user and owner passwords to give recipients restricted access while retaining full control. The owner password should be kept confidential and different from the user password.",required:!1}),no_print:c.Checkbox({displayName:"No Print",description:"Disallow printing of the output PDF to protect sensitive content. Use this for confidential documents, copyrighted materials, or preview versions you want to restrict.",required:!1}),no_modify:c.Checkbox({displayName:"No Modify",description:"Disallow modification of the output PDF to maintain document integrity. Use this for official documents, contracts, or records that should not be altered after creation. Prevents recipients from editing content, adding annotations, or extracting pages.",required:!1}),no_copy:c.Checkbox({displayName:"No Copy",description:"Disallow text and graphics extraction from the output PDF to protect copyrighted content. Use this for ebooks, proprietary documents, or materials where you want to prevent easy copying and redistribution.",required:!1}),title:c.ShortText({displayName:"Title",description:"Set the title of the PDF that appears in PDF reader title bars and document properties. Use descriptive titles for better organization and searchability in document management systems. This metadata helps users identify documents when multiple PDFs are open and improves accessibility for screen readers.",required:!1}),subject:c.ShortText({displayName:"Subject",description:"Set the subject of the PDF to categorize or summarize the document content. Use this to add searchable metadata for document management systems, improve organization in large PDF libraries, or provide context about the document's purpose. Appears in PDF properties dialog.",required:!1}),author:c.ShortText({displayName:"Author",description:"Set the author of the PDF for attribution and document tracking. Use this to identify who created the document, important for official documents, reports, or publications. This metadata appears in PDF properties and helps with document management and version control.",required:!1}),keywords:c.ShortText({displayName:"Keywords",description:"Associate keywords with the document to improve searchability in document management systems. Use relevant terms that describe the content, making it easier to find documents later. Separate multiple keywords with commas. Particularly useful for large document repositories or DAM systems.",required:!1}),extract_meta_tags:c.Checkbox({displayName:"Extract Meta Tags",description:"Extract meta tags (author, keywords and description) from the input HTML and automatically populate PDF metadata. Use this when converting web pages that already have proper HTML meta tags, saving you from manually setting title, author, and keywords. Ideal for automated conversion workflows where source HTML is well-structured.",required:!1}),page_layout:c.StaticDropdown({displayName:"Page Layout",description:'Control how pages appear when the PDF opens in viewers that respect these preferences. "single-page" for focused reading one page at a time. "one-column" for continuous scrolling like a web page. "two-column-left" for book-like layouts with odd pages on left (international standard). "two-column-right" for magazines with odd pages on right.',required:!1,options:{options:[{label:"single-page",value:"single-page"},{label:"one-column",value:"one-column"},{label:"two-column-left",value:"two-column-left"},{label:"two-column-right",value:"two-column-right"}]}}),page_mode:c.StaticDropdown({displayName:"Page Mode",description:'Control the initial display mode when the PDF opens. "full-screen" for presentations and kiosk displays where you want an immersive experience. "thumbnails" for long documents where visual page navigation is helpful. "outlines" for structured documents with bookmarks/table of contents.',required:!1,options:{options:[{label:"full-screen",value:"full-screen"},{label:"thumbnails",value:"thumbnails"},{label:"outlines",value:"outlines"}]}}),initial_zoom_type:c.StaticDropdown({displayName:"Initial Zoom Type",description:"Control how the PDF is initially zoomed when opened.",required:!1,options:{options:[{label:"fit-width",value:"fit-width"},{label:"fit-height",value:"fit-height"},{label:"fit-page",value:"fit-page"}]}}),initial_page:c.Number({displayName:"Initial Page",description:"Display the specified page when the document is opened.",required:!1}),initial_zoom:c.Number({displayName:"Initial Zoom",description:"Specify the initial page zoom in percents when the document is opened.",required:!1}),hide_toolbar:c.Checkbox({displayName:"Hide Toolbar",description:"Hide the viewer's toolbar when the PDF is opened to provide a cleaner, more focused reading experience. Use this for presentations, kiosk displays, or immersive reading where you want minimal UI distractions.",required:!1}),hide_menubar:c.Checkbox({displayName:"Hide Menubar",description:"Hide the viewer's menu bar when the PDF is opened for a cleaner interface. Use this for kiosk mode, presentations, or embedded PDFs where you want to minimize UI elements.",required:!1}),hide_window_ui:c.Checkbox({displayName:"Hide Window UI",description:"Hide user interface elements like scroll bars and navigation controls when the PDF opens. Use this for presentation mode, digital signage, or embedded PDFs where you want the most minimal interface possible. Combines with other UI hiding options for full-screen immersive viewing.",required:!1}),fit_window:c.Checkbox({displayName:"Fit Window",description:"Resize the PDF viewer window to fit the size of the first displayed page when opened. Use this to ensure the PDF opens at an appropriate size rather than filling the entire screen. Particularly useful for small documents, forms, or certificates that look better at actual size.",required:!1}),center_window:c.Checkbox({displayName:"Center Window",description:"Position the PDF viewer window in the center of the screen when opened. Use this with window resizing to create a professional, centered display for forms, certificates, or small documents. Improves the initial viewing experience by avoiding corner-positioned windows.",required:!1}),display_title:c.Checkbox({displayName:"Display Title",description:"Display the title of the HTML document in the PDF viewer's title bar instead of the filename. Use this to show more descriptive titles when PDFs are opened - particularly useful when the filename is cryptic or auto-generated. Improves user experience by showing meaningful document names.",required:!1}),right_to_left:c.Checkbox({displayName:"Right To Left",description:"Set the predominant reading order for text to right-to-left. This option has no direct effect on the document's contents or page numbering but can be used to determine the relative positioning of pages when displayed side by side or printed n-up.",required:!1}),data_string:c.LongText({displayName:"Data String",description:"Set the input data for template rendering. The data format can be JSON, XML, YAML or CSV.",required:!1}),data_format:c.StaticDropdown({displayName:"Data Format",description:'Specify the input data format. Use "auto" for automatic detection or explicitly set to JSON, XML, YAML, or CSV when format is known.',required:!1,options:{options:[{label:"auto",value:"auto"},{label:"json",value:"json"},{label:"xml",value:"xml"},{label:"yaml",value:"yaml"},{label:"csv",value:"csv"}]},defaultValue:"auto"}),data_ignore_undefined:c.Checkbox({displayName:"Data Ignore Undefined",description:"Ignore undefined variables in the HTML template. The default mode is strict so any undefined variable causes the conversion to fail. You can use {% if variable is defined %} to check if the variable is defined.",required:!1}),data_auto_escape:c.Checkbox({displayName:"Data Auto Escape",description:"Auto escape HTML symbols in the input data before placing them into the output.",required:!1}),data_trim_blocks:c.Checkbox({displayName:"Data Trim Blocks",description:"Auto trim whitespace around each template command block.",required:!1}),data_options:c.LongText({displayName:"Data Options",description:"Set the advanced data options as comma separated key=value pairs: csv_delimiter - The CSV data delimiter, the default is ,. xml_remove_root - Remove the root XML element from the input data. data_root - The name of the root element inserted into the input data without a root node (e.g. CSV), the default is data.",required:!1}),debug_log:c.Checkbox({displayName:"Debug Log",description:"Turn on debug logging to troubleshoot conversion issues. Details about the conversion process, including resource loading, rendering steps, and error messages are stored in the debug log. Use this when conversions fail or produce unexpected results.",required:!1}),tag:c.ShortText({displayName:"Tag",description:"Tag the conversion with a custom value for tracking and analytics. Use this to categorize conversions by customer ID, document type, or business unit. The tag appears in conversion statistics. A value longer than 32 characters is cut off.",required:!1}),http_proxy:c.ShortText({displayName:"HTTP Proxy",description:"A proxy server used by the conversion process for accessing the source URLs with HTTP scheme. This can help circumvent regional restrictions or provide limited access to your intranet.",required:!1}),https_proxy:c.ShortText({displayName:"HTTPS Proxy",description:"A proxy server used by the conversion process for accessing the source URLs with HTTPS scheme. This can help circumvent regional restrictions or provide limited access to your intranet.",required:!1}),layout_dpi:c.Number({displayName:"Layout DPI",description:"Set the internal DPI resolution used for positioning of PDF contents. It can help in situations where there are small inaccuracies in the PDF. It is recommended to use values that are a multiple of 72, such as 288 or 360.",required:!1}),main_document_css_annotation:c.Checkbox({displayName:"Main Document CSS Annotation",description:"Add special CSS classes to the main document's body element. This allows applying custom styling based on these classes: pdfcrowd-page-X - where X is the current page number pdfcrowd-page-odd - odd page pdfcrowd-page-even - even page",required:!1}),header_footer_css_annotation:c.Checkbox({displayName:"Header Footer CSS Annotation",description:"Add special CSS classes to the header/footer's body element. This allows applying custom styling based on these classes: pdfcrowd-page-X - where X is the current page number pdfcrowd-page-count-X - where X is the total page count pdfcrowd-page-first - the first page pdfcrowd-page-last - the last page pdfcrowd-page-odd - odd page pdfcrowd-page-even - even page",required:!1}),conversion_config:c.LongText({displayName:"Conversion Config",description:`Configure conversion via JSON. The configuration defines various page settings for individual PDF pages or ranges of pages. It provides flexibility in designing each page of the PDF, giving control over each page's size, header, footer, etc. If a page or parameter is not explicitly specified, the system will use the default settings for that page or attribute. If a JSON configuration is provided, the settings in the JSON will take precedence over the global options. The structure of the JSON must be: pageSetup: An array of objects where each object defines the configuration for a specific page or range of pages. The following properties can be set for each page object: pages: A comma-separated list of page numbers or ranges. Special strings may be used, such as odd, even, and last. For example: 1-: from page 1 to the end of the document 2: only the 2nd page 2,4,6: pages 2, 4, and 6 2-5: pages 2 through 5 odd,2: the 2nd page and all odd pages pageSize: The page size (optional). Possible values: A0, A1, A2, A3, A4, A5, A6, Letter. pageWidth: The width of the page (optional). pageHeight: The height of the page (optional). marginLeft: Left margin (optional). marginRight: Right margin (optional). marginTop: Top margin (optional). marginBottom: Bottom margin (optional). displayHeader: Header appearance (optional). Possible values: none: completely excluded space: only the content is excluded, the space is used content: the content is printed (default) displayFooter: Footer appearance (optional). Possible values: none: completely excluded space: only the content is excluded, the space is used content: the content is printed (default) headerHeight: Height of the header (optional). footerHeight: Height of the footer (optional). orientation: Page orientation, such as "portrait" or "landscape" (optional). backgroundColor: Page background color in RRGGBB or RRGGBBAA hexadecimal format (optional). Dimensions may be empty, 0 or specified in inches "in", millimeters "mm", centimeters "cm", pixels "px", or points "pt".`,required:!1}),converter_version:c.StaticDropdown({displayName:"Converter Version",description:"Set the converter version. Different versions may produce different output. Choose which one provides the best output for your case.",required:!1,options:{options:[{label:"24.04",value:"24.04"},{label:"20.10",value:"20.10"},{label:"18.10",value:"18.10"}]},defaultValue:"24.04"}),page_watermark:c.File({displayName:"Page Watermark",description:'Apply the first page of a watermark PDF to every page of the output PDF. Use this to add transparent overlays like "DRAFT" stamps, security markings, or branding elements that appear on top of content. Ideal for confidential document marking or adding protective overlays.',required:!1}),multipage_watermark:c.File({displayName:"Multipage Watermark",description:"Apply each page of a watermark PDF to the corresponding page of the output PDF. Use this for page-specific watermarks where different pages need different overlays - for example, different approval stamps per department. If the watermark has fewer pages than the output, the last watermark page is repeated for remaining pages.",required:!1}),page_background:c.File({displayName:"Page Background",description:"Apply the first page of a background PDF to every page of the output PDF. Use this to add letterheads, branded templates, or decorative backgrounds that appear behind your content. Backgrounds appear beneath content, while watermarks layer on top. Perfect for adding company letterheads to reports or applying branded templates to dynamically generated content.",required:!1}),multipage_background:c.File({displayName:"Multipage Background",description:"Apply each page of a background PDF to the corresponding page of the output PDF. Use this for page-specific backgrounds where each page needs a different template - for example, different letterheads for front and back pages. If the background has fewer pages than the output, the last background page is repeated for remaining pages.",required:!1})},async run(e){let{auth:t,propsValue:r}=e,n=new qs.default;n.append("url",r.url);let i=["page_size","page_width","page_height","orientation","margin_top","margin_right","margin_bottom","margin_left","no_margins","print_page_range","content_viewport_width","content_viewport_height","content_fit_mode","remove_blank_pages","header_url","header_html","header_height","footer_url","footer_html","footer_height","no_header_footer_horizontal_margins","exclude_header_on_pages","exclude_footer_on_pages","header_footer_scale_factor","page_numbering_offset","page_watermark_url","multipage_watermark_url","page_background_url","multipage_background_url","page_background_color","use_print_media","no_background","disable_javascript","disable_image_loading","disable_remote_fonts","load_iframes","block_ads","default_encoding","locale","http_auth_user_name","http_auth_password","cookies","verify_ssl_certificates","fail_on_main_url_error","fail_on_any_url_error","css_page_rule_mode","custom_css","custom_javascript","on_load_javascript","custom_http_header","javascript_delay","element_to_convert","element_to_convert_mode","wait_for_element","auto_detect_element_to_convert","readability_enhancements","scale_factor","jpeg_quality","convert_images_to_jpeg","image_dpi","enable_pdf_forms","linearize","encrypt","user_password","owner_password","no_print","no_modify","no_copy","title","subject","author","keywords","extract_meta_tags","page_layout","page_mode","initial_zoom_type","initial_page","initial_zoom","hide_toolbar","hide_menubar","hide_window_ui","fit_window","center_window","display_title","right_to_left","debug_log","tag","http_proxy","https_proxy","layout_dpi","main_document_css_annotation","header_footer_css_annotation","conversion_config"];for(let _ of i){let s=r[_];s!=null&&s!==""&&s!==!1&&n.append(_,String(s))}if(r.data_string){n.append("data_string",String(r.data_string));let _=["data_format","data_ignore_undefined","data_auto_escape","data_trim_blocks","data_options"];for(let s of _){let m=r[s];m!=null&&m!==""&&m!==!1&&n.append(s,String(m))}}let u=["page_watermark","multipage_watermark","page_background","multipage_background"];for(let _ of u){let s=r[_];s?.data&&n.append(_,s.data,{filename:s.filename||`${_}.pdf`})}let l=n.getBuffer(),d=r.converter_version||"24.04",g=await we.sendRequest({method:"POST",url:nr(d),headers:{Authorization:or(t),"User-Agent":"pdfcrowd-activepieces/1.1.0",...n.getHeaders()},body:l,responseType:"arraybuffer"});if(g.status>=400){let _=Buffer.from(g.body).toString("utf-8");throw new Error(`Conversion failed (${g.status}): ${_}`)}let v=r.outputFilename||"document.pdf",b=await e.files.write({fileName:v,data:Buffer.from(g.body)}),T=g.headers||{};return{file:b,filename:v,jobId:T["x-pdfcrowd-job-id"]||"",pageCount:T["x-pdfcrowd-pages"]||"0",outputSize:T["x-pdfcrowd-output-size"]||"0",consumedCredits:T["x-pdfcrowd-consumed-credits"]||"0",remainingCredits:T["x-pdfcrowd-remaining-credits"]||"0"}}});var Ws=ve(rr()),Js=Ue({name:"html_to_pdf",displayName:"Convert HTML to PDF",description:"Convert HTML content (string) to PDF document",audience:"both",aiMetadata:{description:"Render a raw HTML string into a PDF file via the Pdfcrowd API, returning the generated document. Choose this when you already have HTML markup (e.g. a generated invoice or report) rather than a live page URL (use Convert URL to PDF for a URL). Supports extensive layout, header/footer, watermark, and security options, plus template data injection. Not idempotent: each call performs a fresh conversion that produces a new file and consumes account credits.",idempotent:!1},auth:Ne,props:{htmlContent:c.LongText({displayName:"HTML Content",description:"The HTML content to convert to PDF",required:!0}),outputFilename:c.ShortText({displayName:"Output Filename",description:"The filename for the generated PDF",required:!1,defaultValue:"document.pdf"}),page_size:c.StaticDropdown({displayName:"Page Size",description:"Set the output page size using standard formats (A4, Letter, A3, etc.). Use A4 for international documents, Letter for US-based content, or larger sizes like A3 for posters and presentations.",required:!1,options:{options:[{label:"A0",value:"A0"},{label:"A1",value:"A1"},{label:"A2",value:"A2"},{label:"A3",value:"A3"},{label:"A4",value:"A4"},{label:"A5",value:"A5"},{label:"A6",value:"A6"},{label:"Letter",value:"Letter"}]},defaultValue:"A4"}),page_width:c.ShortText({displayName:"Page Width",description:"Set custom page dimensions when standard sizes don't fit your needs. Useful for banners, receipts, custom forms, or when matching specific printing equipment. The safe maximum is 200in - larger sizes may fail to open in some PDF viewers. For standard sizes like A4 or Letter, use the predefined page size option instead.",required:!1}),page_height:c.ShortText({displayName:"Page Height",description:'Set custom page height for specific formats like receipts, banners, or legal documents. Set to "-1" for a single-page PDF that expands to fit all content vertically - ideal for web pages, infographics, or documents where page breaks are undesirable. The safe maximum is 200in otherwise some viewers cannot open the PDF. For standard sizes, use the predefined page size option instead.',required:!1}),orientation:c.StaticDropdown({displayName:"Orientation",description:"Set the output page orientation to portrait or landscape. Use landscape for wide content like spreadsheets, charts, or dashboards. Use portrait for standard documents and text-heavy content.",required:!1,options:{options:[{label:"landscape",value:"landscape"},{label:"portrait",value:"portrait"}]},defaultValue:"portrait"}),margin_top:c.ShortText({displayName:"Margin Top",description:"Control white space at the top of the page. Increase for header space, formal documents, or annotation room (e.g., 1in or more). Decrease to maximize content area or fit more content (e.g., 5mm to 10mm). Default 0.4in balances readability with space efficiency. Set to 0 for full-bleed designs. Affects where content starts and where headers appear.",required:!1}),margin_right:c.ShortText({displayName:"Margin Right",description:"Control white space on the right edge of the page. Increase for binding/hole-punch clearance or note-taking space (e.g., 1in or more). Decrease to fit wider content (e.g., 5mm to 10mm). Default 0.4in balances readability with space efficiency. Set to 0 for full-bleed designs. Affects where content wraps and text line length.",required:!1}),margin_bottom:c.ShortText({displayName:"Margin Bottom",description:"Control white space at the bottom of the page. Increase for footer space, page numbers, or formal documents (e.g., 1in or more). Decrease to fit more content per page (e.g., 5mm to 10mm). Default 0.4in balances readability with space efficiency. Set to 0 for full-bleed designs. Affects where content ends and where footers appear.",required:!1}),margin_left:c.ShortText({displayName:"Margin Left",description:"Control white space on the left edge of the page. Increase for binding/hole-punch clearance or note-taking space (e.g., 1in or more). Decrease to fit wider content (e.g., 5mm to 10mm). Default 0.4in balances readability with space efficiency. Set to 0 for full-bleed designs. Affects where content starts horizontally and text line length.",required:!1}),no_margins:c.Checkbox({displayName:"No Margins",description:"Disable all page margins to use the entire page area. Use this for full-bleed designs where content should extend to the page edges, such as posters, certificates, or branded materials. Combine with custom CSS to ensure your content fills the page properly.",required:!1}),print_page_range:c.ShortText({displayName:"Print Page Range",description:'Set the page range to print when you only need specific pages from the conversion. Use this to extract individual pages (e.g., "2"), specific ranges (e.g., "3-7"), or combinations (e.g., "1,4-6,last"). Ideal for creating excerpts from long documents or excluding cover pages from batch processing.',required:!1}),content_viewport_width:c.StaticDropdown({displayName:"Content Viewport Width",description:"Set the viewport width for formatting the HTML content when generating a PDF. Use this to control how responsive designs render - prevent mobile styles from applying when you want desktop layout, or ensure content appears at the right width. Specify a viewport width to control content rendering, ensuring it mimics the appearance on various devices or matches specific design requirements.",required:!1,options:{options:[{label:"balanced",value:"balanced"},{label:"small",value:"small"},{label:"medium",value:"medium"},{label:"large",value:"large"},{label:"extra-large",value:"extra-large"}]},defaultValue:"medium"}),content_viewport_height:c.StaticDropdown({displayName:"Content Viewport Height",description:"Set the viewport height for formatting the HTML content when generating a PDF. Specify a viewport height to enforce loading of lazy-loaded images and affect vertical positioning of absolutely positioned elements within the content.",required:!1,options:{options:[{label:"auto",value:"auto"},{label:"large",value:"large"}]},defaultValue:"auto"}),content_fit_mode:c.StaticDropdown({displayName:"Content Fit Mode",description:"Specify the mode for fitting the HTML content to the print area by upscaling or downscaling it. Use this to prevent content from being cut off at page edges or to enable smart scaling of oversized content.",required:!1,options:{options:[{label:"auto",value:"auto"},{label:"smart-scaling",value:"smart-scaling"},{label:"no-scaling",value:"no-scaling"},{label:"viewport-width",value:"viewport-width"},{label:"content-width",value:"content-width"},{label:"single-page",value:"single-page"},{label:"single-page-ratio",value:"single-page-ratio"}]},defaultValue:"auto"}),remove_blank_pages:c.StaticDropdown({displayName:"Remove Blank Pages",description:'Specify which blank pages to exclude from the output document to create cleaner PDFs. Use "trailing" to remove empty pages at the end caused by page break issues. Use "all" to remove blank pages throughout the document when converting content with formatting quirks. Helps eliminate unwanted white pages from the final output.',required:!1,options:{options:[{label:"trailing",value:"trailing"},{label:"all",value:"all"},{label:"none",value:"none"}]},defaultValue:"trailing"}),header_url:c.LongText({displayName:"Header URL",description:"Load an HTML code from the specified URL and use it as the page header.",required:!1}),header_html:c.LongText({displayName:"Header HTML",description:"Set the HTML header content with custom styling and dynamic page numbers. Use this to add page numbers, document titles, author names, dates, or company branding to the top of every page. Supports full HTML/CSS for complete design control. Use special CSS classes like pdfcrowd-page-number and pdfcrowd-page-count for dynamic content. Ideal for reports, invoices, and professional documents.",required:!1}),header_height:c.ShortText({displayName:"Header Height",description:"Set the header height to allocate space for header content and prevent overlap with main content. Increase this if your header text is getting cut off or overlapping with page content. Must be large enough to accommodate your header HTML including any multi-line text or images.",required:!1}),footer_url:c.LongText({displayName:"Footer URL",description:"Load an HTML code from the specified URL and use it as the page footer.",required:!1}),footer_html:c.LongText({displayName:"Footer HTML",description:"Set the HTML footer content with custom styling and dynamic page numbers. Use this to add page numbers, copyright notices, document dates, or company information to the bottom of every page. Supports full HTML/CSS for complete design control. Use special CSS classes like pdfcrowd-page-number and pdfcrowd-page-count for dynamic content. Ideal for contracts, reports, and official documents.",required:!1}),footer_height:c.ShortText({displayName:"Footer Height",description:"Set the footer height to allocate space for footer content and prevent overlap with main content. Increase this if your footer text is getting cut off or overlapping with page content. Must be large enough to accommodate your footer HTML including any multi-line text or images.",required:!1}),no_header_footer_horizontal_margins:c.Checkbox({displayName:"No Header Footer Horizontal Margins",description:"Disable horizontal page margins for header and footer. The header/footer contents width will be equal to the physical page width.",required:!1}),exclude_header_on_pages:c.ShortText({displayName:"Exclude Header On Pages",description:"The page header content is not printed on the specified pages. To remove the entire header area, use the conversion config.",required:!1}),exclude_footer_on_pages:c.ShortText({displayName:"Exclude Footer On Pages",description:"The page footer content is not printed on the specified pages. To remove the entire footer area, use the conversion config.",required:!1}),header_footer_scale_factor:c.Number({displayName:"Header Footer Scale Factor",description:"Set the scaling factor (zoom) for the header and footer.",required:!1}),page_numbering_offset:c.Number({displayName:"Page Numbering Offset",description:"Set the numbering offset for page numbers in header/footer HTML to continue page numbering from a previous document. Use this when generating document sections separately - for example, if you have already generated pages 1-10, set offset to 10. The next section will then start numbering at page 11. Essential for multi-part reports or book chapters.",required:!1}),page_watermark_url:c.ShortText({displayName:"Page Watermark URL",description:"Load a file from the specified URL and apply the file as a watermark to each page of the output PDF. A watermark can be either a PDF or an image. If a multi-page file (PDF or TIFF) is used, the first page is used as the watermark.",required:!1}),multipage_watermark_url:c.ShortText({displayName:"Multipage Watermark URL",description:"Load a file from the specified URL and apply each page of the file as a watermark to the corresponding page of the output PDF. A watermark can be either a PDF or an image.",required:!1}),page_background_url:c.ShortText({displayName:"Page Background URL",description:"Load a file from the specified URL and apply the file as a background to each page of the output PDF. A background can be either a PDF or an image. If a multi-page file (PDF or TIFF) is used, the first page is used as the background.",required:!1}),multipage_background_url:c.ShortText({displayName:"Multipage Background URL",description:"Load a file from the specified URL and apply each page of the file as a background to the corresponding page of the output PDF. A background can be either a PDF or an image.",required:!1}),page_background_color:c.ShortText({displayName:"Page Background Color",description:"Set a solid background color for all pages, filling the entire page area including margins. Useful for creating branded PDFs with corporate colors, highlighting draft documents, or improving readability with off-white backgrounds. Supports transparency with RGBA format - use semi-transparent colors for subtle effects without obscuring content. Format as RGB (FF0000) or RGBA (FF000080) hexadecimal.",required:!1}),use_print_media:c.Checkbox({displayName:"Use Print Media",description:"Use the print version of the page if available via @media print CSS rules. Enable this when converting websites that have print-optimized styles. Many sites hide navigation, ads, and sidebars in print mode. Produces cleaner PDFs by using the design the website creator intended for printing.",required:!1}),no_background:c.Checkbox({displayName:"No Background",description:"Do not print the background graphics to create printer-friendly PDFs. Use this when documents will be physically printed to save ink costs and improve readability. Removes background colors, images, and patterns while preserving text and foreground content. Particularly useful for documents with dark backgrounds or decorative elements.",required:!1}),disable_javascript:c.Checkbox({displayName:"Disable JavaScript",description:"Do not execute JavaScript during conversion. Use this to improve conversion speed when JavaScript is not needed, prevent dynamic content changes, or avoid security risks from untrusted scripts. Note that disabling JavaScript means lazy-loaded images and AJAX content will not load.",required:!1}),disable_image_loading:c.Checkbox({displayName:"Disable Image Loading",description:"Do not load images during conversion to create text-only PDFs. Use this to significantly speed up conversion, reduce file size, or create accessible text-focused documents. Ideal for converting documentation where images are not needed, reducing bandwidth usage, or creating lightweight PDFs for email distribution.",required:!1}),disable_remote_fonts:c.Checkbox({displayName:"Disable Remote Fonts",description:"Disable loading fonts from remote sources. Use this to speed up conversion by avoiding font download delays, ensure consistent rendering with system fonts, or work around font loading failures. Note that text will fall back to system fonts, which may change the document's appearance.",required:!1}),load_iframes:c.StaticDropdown({displayName:"Load Iframes",description:'Specifies how iframes are handled during conversion. Use "all" to include all embedded content (videos, maps, widgets). Use "same-origin" to include only content from the same domain for security purposes. Use "none" to exclude all iframes for faster conversion and to avoid third-party content issues. Disabling iframes can significantly improve performance and reliability.',required:!1,options:{options:[{label:"all",value:"all"},{label:"same-origin",value:"same-origin"},{label:"none",value:"none"}]},defaultValue:"all"}),block_ads:c.Checkbox({displayName:"Block Ads",description:"Automatically block common advertising networks and tracking scripts during conversion, producing cleaner PDFs with faster conversion times. Filters out third-party ad content, analytics beacons, and ad network resources. Ideal for converting news sites, blogs, or any ad-heavy content where ads distract from the main message. May occasionally block legitimate third-party content - disable if critical third-party resources are missing.",required:!1}),default_encoding:c.ShortText({displayName:"Default Encoding",description:'Specify the character encoding when the HTML lacks proper charset declaration or has incorrect encoding. Prevents garbled text for non-English content, especially legacy pages without UTF-8 encoding. Set to "utf-8" for modern content, "iso-8859-1" for Western European legacy pages, or other encodings for specific regional content. Only needed when auto-detection fails and you see corrupted characters in the output.',required:!1}),locale:c.ShortText({displayName:"Locale",description:'Set the locale for the conversion to control regional formatting of dates, times, and numbers. Use this when converting content for specific regions - for example, set to "en-US" for MM/DD/YYYY dates and comma thousand separators, or "de-DE" for DD.MM.YYYY dates and period thousand separators. Essential for financial reports, invoices, or localized content.',required:!1}),http_auth_user_name:c.ShortText({displayName:"HTTP Auth User Name",description:"Set the HTTP authentication user name. Required to access protected web pages or staging environments.",required:!1}),http_auth_password:c.ShortText({displayName:"HTTP Auth Password",description:"Set the HTTP authentication password. Required to access protected web pages or staging environments.",required:!1}),cookies:c.ShortText({displayName:"Cookies",description:"Set HTTP cookies to be included in all requests made by the converter to access authenticated or session-based content. Use this when converting pages that require login, maintain user sessions, or personalize content based on cookies. Essential for converting member-only areas, dashboards, or any content behind cookie-based authentication. Format as semicolon-separated name=value pairs.",required:!1}),verify_ssl_certificates:c.Checkbox({displayName:"Verify SSL Certificates",description:"Enforce SSL certificate validation for secure connections, preventing conversions from sites with invalid certificates. Enable when converting from production sites with valid certificates to ensure security. When disabled, allows conversion from any HTTPS site regardless of certificate validity - including development servers with self-signed certificates, internal corporate sites with expired certificates, or local testing environments.",required:!1}),fail_on_main_url_error:c.Checkbox({displayName:"Fail On Main URL Error",description:"Abort the conversion if the HTTP status code of the main URL is greater than or equal to 400 (client/server errors). Use this in automated workflows to catch broken URLs or authentication failures early rather than producing invalid PDFs. Ensures your system does not silently generate error page PDFs when source content is unavailable.",required:!1}),fail_on_any_url_error:c.Checkbox({displayName:"Fail On Any URL Error",description:"Abort the conversion if any sub-request (images, stylesheets, scripts) fails with HTTP 400+ errors. Use this for strict quality control when all assets must load successfully.",required:!1}),css_page_rule_mode:c.StaticDropdown({displayName:"CSS Page Rule Mode",description:'Specifies behavior in the presence of CSS @page rules to control which settings take precedence. Use "default" to prioritize API settings over CSS rules, ensuring consistent output regardless of input HTML. Use "mode2" to respect CSS @page rules for print-optimized HTML. This solves conflicts when CSS tries to override your API page setup.',required:!1,options:{options:[{label:"default",value:"default"},{label:"mode1",value:"mode1"},{label:"mode2",value:"mode2"}]},defaultValue:"default"}),custom_css:c.LongText({displayName:"Custom CSS",description:"Apply custom CSS to the input HTML document to modify the visual appearance and layout of your content dynamically. Use this to override default styles, adjust spacing, change fonts, or fix layout issues without modifying the source HTML. Use !important in your CSS rules to prioritize and override conflicting styles.",required:!1}),custom_javascript:c.LongText({displayName:"Custom JavaScript",description:"Run a custom JavaScript after the document is loaded and ready to print. Use this to modify page content before conversion, remove unwanted elements, or trigger specific page states. The script is intended for post-load DOM manipulation (add/remove elements, update CSS, ...). In addition to the standard browser APIs, the custom JavaScript code can use helper functions from our JavaScript library.",required:!1}),on_load_javascript:c.ShortText({displayName:"On Load JavaScript",description:"Run a custom JavaScript right after the document is loaded. The script is intended for early DOM manipulation (add/remove elements, update CSS, ...). In addition to the standard browser APIs, the custom JavaScript code can use helper functions from our JavaScript library.",required:!1}),custom_http_header:c.ShortText({displayName:"Custom HTTP Header",description:"Set a custom HTTP header to be included in all requests made by the converter. Use this to pass authentication tokens to protected sites, add tracking headers for analytics, or provide API keys for accessing private content. Essential when converting content from APIs or internal systems that require special headers for access control.",required:!1}),javascript_delay:c.Number({displayName:"JavaScript Delay",description:'Wait the specified number of milliseconds to finish all JavaScript after the document is loaded. Use this to ensure lazy-loaded images, AJAX content, or animations complete before conversion. Your license defines the maximum wait time by "Max Delay" parameter.',required:!1}),element_to_convert:c.ShortText({displayName:"Element To Convert",description:"Convert only the specified element from the main document and its children. Use this to extract specific portions of a page (like article content) while excluding navigation, headers, footers, or sidebars. The element is specified by one or more CSS selectors. If the element is not found, the conversion fails. If multiple elements are found, the first one is used.",required:!1}),element_to_convert_mode:c.StaticDropdown({displayName:"Element To Convert Mode",description:'Control how CSS styles are applied when converting only part of a page. The "cut-out" option extracts the element into a new document root, which may break CSS selectors like "body > div". The "remove-siblings" option keeps the element in its original DOM position but deletes other elements, preserving descendant selectors. The "hide-siblings" option keeps all elements but hides non-selected ones with display:none, preserving all CSS context.',required:!1,options:{options:[{label:"cut-out",value:"cut-out"},{label:"remove-siblings",value:"remove-siblings"},{label:"hide-siblings",value:"hide-siblings"}]},defaultValue:"cut-out"}),wait_for_element:c.ShortText({displayName:"Wait For Element",description:'Wait for the specified element in a source document. Use this when specific dynamic content must be ready before conversion, avoiding unnecessary delays from a fixed JavaScript delay. The element is specified by one or more CSS selectors. The element is searched for in the main document and all iframes. If the element is not found, the conversion fails. Your license defines the maximum wait time by the "Max Delay" parameter.',required:!1}),auto_detect_element_to_convert:c.Checkbox({displayName:"Auto Detect Element To Convert",description:"The main HTML element for conversion is detected automatically. Use this when you want to extract article or main content without knowing the exact CSS selector, automatically excluding navigation and sidebars.",required:!1}),readability_enhancements:c.StaticDropdown({displayName:"Readability Enhancements",description:'Automatically enhance the input HTML to improve readability by removing clutter and reformatting content. Use this when converting web pages with excessive navigation, ads, or sidebars that distract from the main content. Different versions (v1-v4) use progressively aggressive algorithms - start with "v1" and increase if more cleanup is needed. Ideal for converting blog posts, articles, or documentation into clean PDFs.',required:!1,options:{options:[{label:"none",value:"none"},{label:"readability-v1",value:"readability-v1"},{label:"readability-v2",value:"readability-v2"},{label:"readability-v3",value:"readability-v3"},{label:"readability-v4",value:"readability-v4"}]},defaultValue:"none"}),scale_factor:c.Number({displayName:"Scale Factor",description:"Set the scaling factor (zoom) for the main page area to fit content better. Use values below 100% to shrink oversized content that is getting cut off at page edges. Use values above 100% to enlarge small content for better readability. Common use cases include shrinking wide tables to fit (70-80%), or enlarging mobile-optimized layouts for desktop PDFs (120-150%).",required:!1}),jpeg_quality:c.Number({displayName:"JPEG Quality",description:"Set the quality of embedded JPEG images to balance file size and visual quality. Use 100% for archival documents or when image quality is critical. Use 70-85% for web distribution to significantly reduce file size with minimal visible quality loss. Use lower values (50-60%) only when file size is more important than image clarity. Common artifacts below 60% include blockiness and color banding.",required:!1}),convert_images_to_jpeg:c.StaticDropdown({displayName:"Convert Images To JPEG",description:'Specify which image types will be converted to JPEG to reduce PDF file size. Use "opaque" to convert only non-transparent images (safe for most documents). Use "all" to convert everything including transparent images (transparent areas become white). Use "none" to preserve original image formats. Ideal for reducing file size when distributing large image-heavy PDFs via email or web.',required:!1,options:{options:[{label:"none",value:"none"},{label:"opaque",value:"opaque"},{label:"all",value:"all"}]},defaultValue:"none"}),image_dpi:c.Number({displayName:"Image DPI",description:"Set the DPI of images in PDF to control resolution and file size. Use 300 DPI for professional printing, 150 DPI for everyday documents, 96 DPI for screen-only viewing, or 72 DPI for web distribution. Lower DPI creates smaller files but reduces image quality. Use 0 to preserve original image resolution. Note that this only downscales - it will not upscale low-resolution images.",required:!1}),enable_pdf_forms:c.Checkbox({displayName:"Enable PDF Forms",description:"Convert HTML forms to fillable PDF forms that users can complete in PDF readers. Use this to create interactive PDFs from HTML forms. Ideal for creating fillable applications, surveys, or order forms that work offline. Details can be found in the blog post.",required:!1}),linearize:c.Checkbox({displayName:"Linearize",description:"Create linearized PDF. This is also known as Fast Web View. Use this to optimize PDFs for progressive download, allowing users to start viewing the first page while the rest downloads.",required:!1}),encrypt:c.Checkbox({displayName:"Encrypt",description:"Encrypt the PDF to prevent search engines from indexing the contents and add an extra layer of security. Use this for confidential documents, internal reports, or any content you do not want appearing in search results. Combine with a password to require authentication for viewing, or just use encryption alone to prevent indexing while keeping the PDF publicly readable.",required:!1}),user_password:c.ShortText({displayName:"User Password",description:"Protect the PDF with a user password to restrict who can open and view the document. Recipients must enter this password to view the PDF. Use this for confidential documents, sensitive data, or content distribution where you want to control access. Combine with permission flags to restrict what users can do after opening.",required:!1}),owner_password:c.ShortText({displayName:"Owner Password",description:"Protect the PDF with an owner password for administrative control. This password allows changing permissions, passwords, and document restrictions - like a master key. Use different user and owner passwords to give recipients restricted access while retaining full control. The owner password should be kept confidential and different from the user password.",required:!1}),no_print:c.Checkbox({displayName:"No Print",description:"Disallow printing of the output PDF to protect sensitive content. Use this for confidential documents, copyrighted materials, or preview versions you want to restrict.",required:!1}),no_modify:c.Checkbox({displayName:"No Modify",description:"Disallow modification of the output PDF to maintain document integrity. Use this for official documents, contracts, or records that should not be altered after creation. Prevents recipients from editing content, adding annotations, or extracting pages.",required:!1}),no_copy:c.Checkbox({displayName:"No Copy",description:"Disallow text and graphics extraction from the output PDF to protect copyrighted content. Use this for ebooks, proprietary documents, or materials where you want to prevent easy copying and redistribution.",required:!1}),title:c.ShortText({displayName:"Title",description:"Set the title of the PDF that appears in PDF reader title bars and document properties. Use descriptive titles for better organization and searchability in document management systems. This metadata helps users identify documents when multiple PDFs are open and improves accessibility for screen readers.",required:!1}),subject:c.ShortText({displayName:"Subject",description:"Set the subject of the PDF to categorize or summarize the document content. Use this to add searchable metadata for document management systems, improve organization in large PDF libraries, or provide context about the document's purpose. Appears in PDF properties dialog.",required:!1}),author:c.ShortText({displayName:"Author",description:"Set the author of the PDF for attribution and document tracking. Use this to identify who created the document, important for official documents, reports, or publications. This metadata appears in PDF properties and helps with document management and version control.",required:!1}),keywords:c.ShortText({displayName:"Keywords",description:"Associate keywords with the document to improve searchability in document management systems. Use relevant terms that describe the content, making it easier to find documents later. Separate multiple keywords with commas. Particularly useful for large document repositories or DAM systems.",required:!1}),extract_meta_tags:c.Checkbox({displayName:"Extract Meta Tags",description:"Extract meta tags (author, keywords and description) from the input HTML and automatically populate PDF metadata. Use this when converting web pages that already have proper HTML meta tags, saving you from manually setting title, author, and keywords. Ideal for automated conversion workflows where source HTML is well-structured.",required:!1}),page_layout:c.StaticDropdown({displayName:"Page Layout",description:'Control how pages appear when the PDF opens in viewers that respect these preferences. "single-page" for focused reading one page at a time. "one-column" for continuous scrolling like a web page. "two-column-left" for book-like layouts with odd pages on left (international standard). "two-column-right" for magazines with odd pages on right.',required:!1,options:{options:[{label:"single-page",value:"single-page"},{label:"one-column",value:"one-column"},{label:"two-column-left",value:"two-column-left"},{label:"two-column-right",value:"two-column-right"}]}}),page_mode:c.StaticDropdown({displayName:"Page Mode",description:'Control the initial display mode when the PDF opens. "full-screen" for presentations and kiosk displays where you want an immersive experience. "thumbnails" for long documents where visual page navigation is helpful. "outlines" for structured documents with bookmarks/table of contents.',required:!1,options:{options:[{label:"full-screen",value:"full-screen"},{label:"thumbnails",value:"thumbnails"},{label:"outlines",value:"outlines"}]}}),initial_zoom_type:c.StaticDropdown({displayName:"Initial Zoom Type",description:"Control how the PDF is initially zoomed when opened.",required:!1,options:{options:[{label:"fit-width",value:"fit-width"},{label:"fit-height",value:"fit-height"},{label:"fit-page",value:"fit-page"}]}}),initial_page:c.Number({displayName:"Initial Page",description:"Display the specified page when the document is opened.",required:!1}),initial_zoom:c.Number({displayName:"Initial Zoom",description:"Specify the initial page zoom in percents when the document is opened.",required:!1}),hide_toolbar:c.Checkbox({displayName:"Hide Toolbar",description:"Hide the viewer's toolbar when the PDF is opened to provide a cleaner, more focused reading experience. Use this for presentations, kiosk displays, or immersive reading where you want minimal UI distractions.",required:!1}),hide_menubar:c.Checkbox({displayName:"Hide Menubar",description:"Hide the viewer's menu bar when the PDF is opened for a cleaner interface. Use this for kiosk mode, presentations, or embedded PDFs where you want to minimize UI elements.",required:!1}),hide_window_ui:c.Checkbox({displayName:"Hide Window UI",description:"Hide user interface elements like scroll bars and navigation controls when the PDF opens. Use this for presentation mode, digital signage, or embedded PDFs where you want the most minimal interface possible. Combines with other UI hiding options for full-screen immersive viewing.",required:!1}),fit_window:c.Checkbox({displayName:"Fit Window",description:"Resize the PDF viewer window to fit the size of the first displayed page when opened. Use this to ensure the PDF opens at an appropriate size rather than filling the entire screen. Particularly useful for small documents, forms, or certificates that look better at actual size.",required:!1}),center_window:c.Checkbox({displayName:"Center Window",description:"Position the PDF viewer window in the center of the screen when opened. Use this with window resizing to create a professional, centered display for forms, certificates, or small documents. Improves the initial viewing experience by avoiding corner-positioned windows.",required:!1}),display_title:c.Checkbox({displayName:"Display Title",description:"Display the title of the HTML document in the PDF viewer's title bar instead of the filename. Use this to show more descriptive titles when PDFs are opened - particularly useful when the filename is cryptic or auto-generated. Improves user experience by showing meaningful document names.",required:!1}),right_to_left:c.Checkbox({displayName:"Right To Left",description:"Set the predominant reading order for text to right-to-left. This option has no direct effect on the document's contents or page numbering but can be used to determine the relative positioning of pages when displayed side by side or printed n-up.",required:!1}),data_string:c.LongText({displayName:"Data String",description:"Set the input data for template rendering. The data format can be JSON, XML, YAML or CSV.",required:!1}),data_format:c.StaticDropdown({displayName:"Data Format",description:'Specify the input data format. Use "auto" for automatic detection or explicitly set to JSON, XML, YAML, or CSV when format is known.',required:!1,options:{options:[{label:"auto",value:"auto"},{label:"json",value:"json"},{label:"xml",value:"xml"},{label:"yaml",value:"yaml"},{label:"csv",value:"csv"}]},defaultValue:"auto"}),data_ignore_undefined:c.Checkbox({displayName:"Data Ignore Undefined",description:"Ignore undefined variables in the HTML template. The default mode is strict so any undefined variable causes the conversion to fail. You can use {% if variable is defined %} to check if the variable is defined.",required:!1}),data_auto_escape:c.Checkbox({displayName:"Data Auto Escape",description:"Auto escape HTML symbols in the input data before placing them into the output.",required:!1}),data_trim_blocks:c.Checkbox({displayName:"Data Trim Blocks",description:"Auto trim whitespace around each template command block.",required:!1}),data_options:c.LongText({displayName:"Data Options",description:"Set the advanced data options as comma separated key=value pairs: csv_delimiter - The CSV data delimiter, the default is ,. xml_remove_root - Remove the root XML element from the input data. data_root - The name of the root element inserted into the input data without a root node (e.g. CSV), the default is data.",required:!1}),debug_log:c.Checkbox({displayName:"Debug Log",description:"Turn on debug logging to troubleshoot conversion issues. Details about the conversion process, including resource loading, rendering steps, and error messages are stored in the debug log. Use this when conversions fail or produce unexpected results.",required:!1}),tag:c.ShortText({displayName:"Tag",description:"Tag the conversion with a custom value for tracking and analytics. Use this to categorize conversions by customer ID, document type, or business unit. The tag appears in conversion statistics. A value longer than 32 characters is cut off.",required:!1}),http_proxy:c.ShortText({displayName:"HTTP Proxy",description:"A proxy server used by the conversion process for accessing the source URLs with HTTP scheme. This can help circumvent regional restrictions or provide limited access to your intranet.",required:!1}),https_proxy:c.ShortText({displayName:"HTTPS Proxy",description:"A proxy server used by the conversion process for accessing the source URLs with HTTPS scheme. This can help circumvent regional restrictions or provide limited access to your intranet.",required:!1}),layout_dpi:c.Number({displayName:"Layout DPI",description:"Set the internal DPI resolution used for positioning of PDF contents. It can help in situations where there are small inaccuracies in the PDF. It is recommended to use values that are a multiple of 72, such as 288 or 360.",required:!1}),main_document_css_annotation:c.Checkbox({displayName:"Main Document CSS Annotation",description:"Add special CSS classes to the main document's body element. This allows applying custom styling based on these classes: pdfcrowd-page-X - where X is the current page number pdfcrowd-page-odd - odd page pdfcrowd-page-even - even page",required:!1}),header_footer_css_annotation:c.Checkbox({displayName:"Header Footer CSS Annotation",description:"Add special CSS classes to the header/footer's body element. This allows applying custom styling based on these classes: pdfcrowd-page-X - where X is the current page number pdfcrowd-page-count-X - where X is the total page count pdfcrowd-page-first - the first page pdfcrowd-page-last - the last page pdfcrowd-page-odd - odd page pdfcrowd-page-even - even page",required:!1}),conversion_config:c.LongText({displayName:"Conversion Config",description:`Configure conversion via JSON. The configuration defines various page settings for individual PDF pages or ranges of pages. It provides flexibility in designing each page of the PDF, giving control over each page's size, header, footer, etc. If a page or parameter is not explicitly specified, the system will use the default settings for that page or attribute. If a JSON configuration is provided, the settings in the JSON will take precedence over the global options. The structure of the JSON must be: pageSetup: An array of objects where each object defines the configuration for a specific page or range of pages. The following properties can be set for each page object: pages: A comma-separated list of page numbers or ranges. Special strings may be used, such as odd, even, and last. For example: 1-: from page 1 to the end of the document 2: only the 2nd page 2,4,6: pages 2, 4, and 6 2-5: pages 2 through 5 odd,2: the 2nd page and all odd pages pageSize: The page size (optional). Possible values: A0, A1, A2, A3, A4, A5, A6, Letter. pageWidth: The width of the page (optional). pageHeight: The height of the page (optional). marginLeft: Left margin (optional). marginRight: Right margin (optional). marginTop: Top margin (optional). marginBottom: Bottom margin (optional). displayHeader: Header appearance (optional). Possible values: none: completely excluded space: only the content is excluded, the space is used content: the content is printed (default) displayFooter: Footer appearance (optional). Possible values: none: completely excluded space: only the content is excluded, the space is used content: the content is printed (default) headerHeight: Height of the header (optional). footerHeight: Height of the footer (optional). orientation: Page orientation, such as "portrait" or "landscape" (optional). backgroundColor: Page background color in RRGGBB or RRGGBBAA hexadecimal format (optional). Dimensions may be empty, 0 or specified in inches "in", millimeters "mm", centimeters "cm", pixels "px", or points "pt".`,required:!1}),converter_version:c.StaticDropdown({displayName:"Converter Version",description:"Set the converter version. Different versions may produce different output. Choose which one provides the best output for your case.",required:!1,options:{options:[{label:"24.04",value:"24.04"},{label:"20.10",value:"20.10"},{label:"18.10",value:"18.10"}]},defaultValue:"24.04"}),page_watermark:c.File({displayName:"Page Watermark",description:'Apply the first page of a watermark PDF to every page of the output PDF. Use this to add transparent overlays like "DRAFT" stamps, security markings, or branding elements that appear on top of content. Ideal for confidential document marking or adding protective overlays.',required:!1}),multipage_watermark:c.File({displayName:"Multipage Watermark",description:"Apply each page of a watermark PDF to the corresponding page of the output PDF. Use this for page-specific watermarks where different pages need different overlays - for example, different approval stamps per department. If the watermark has fewer pages than the output, the last watermark page is repeated for remaining pages.",required:!1}),page_background:c.File({displayName:"Page Background",description:"Apply the first page of a background PDF to every page of the output PDF. Use this to add letterheads, branded templates, or decorative backgrounds that appear behind your content. Backgrounds appear beneath content, while watermarks layer on top. Perfect for adding company letterheads to reports or applying branded templates to dynamically generated content.",required:!1}),multipage_background:c.File({displayName:"Multipage Background",description:"Apply each page of a background PDF to the corresponding page of the output PDF. Use this for page-specific backgrounds where each page needs a different template - for example, different letterheads for front and back pages. If the background has fewer pages than the output, the last background page is repeated for remaining pages.",required:!1})},async run(e){let{auth:t,propsValue:r}=e,n=new Ws.default;n.append("text",r.htmlContent);let i=["page_size","page_width","page_height","orientation","margin_top","margin_right","margin_bottom","margin_left","no_margins","print_page_range","content_viewport_width","content_viewport_height","content_fit_mode","remove_blank_pages","header_url","header_html","header_height","footer_url","footer_html","footer_height","no_header_footer_horizontal_margins","exclude_header_on_pages","exclude_footer_on_pages","header_footer_scale_factor","page_numbering_offset","page_watermark_url","multipage_watermark_url","page_background_url","multipage_background_url","page_background_color","use_print_media","no_background","disable_javascript","disable_image_loading","disable_remote_fonts","load_iframes","block_ads","default_encoding","locale","http_auth_user_name","http_auth_password","cookies","verify_ssl_certificates","fail_on_main_url_error","fail_on_any_url_error","css_page_rule_mode","custom_css","custom_javascript","on_load_javascript","custom_http_header","javascript_delay","element_to_convert","element_to_convert_mode","wait_for_element","auto_detect_element_to_convert","readability_enhancements","scale_factor","jpeg_quality","convert_images_to_jpeg","image_dpi","enable_pdf_forms","linearize","encrypt","user_password","owner_password","no_print","no_modify","no_copy","title","subject","author","keywords","extract_meta_tags","page_layout","page_mode","initial_zoom_type","initial_page","initial_zoom","hide_toolbar","hide_menubar","hide_window_ui","fit_window","center_window","display_title","right_to_left","debug_log","tag","http_proxy","https_proxy","layout_dpi","main_document_css_annotation","header_footer_css_annotation","conversion_config"];for(let _ of i){let s=r[_];s!=null&&s!==""&&s!==!1&&n.append(_,String(s))}if(r.data_string){n.append("data_string",String(r.data_string));let _=["data_format","data_ignore_undefined","data_auto_escape","data_trim_blocks","data_options"];for(let s of _){let m=r[s];m!=null&&m!==""&&m!==!1&&n.append(s,String(m))}}let u=["page_watermark","multipage_watermark","page_background","multipage_background"];for(let _ of u){let s=r[_];s?.data&&n.append(_,s.data,{filename:s.filename||`${_}.pdf`})}let l=n.getBuffer(),d=r.converter_version||"24.04",g=await we.sendRequest({method:"POST",url:nr(d),headers:{Authorization:or(t),"User-Agent":"pdfcrowd-activepieces/1.1.0",...n.getHeaders()},body:l,responseType:"arraybuffer"});if(g.status>=400){let _=Buffer.from(g.body).toString("utf-8");throw new Error(`Conversion failed (${g.status}): ${_}`)}let v=r.outputFilename||"document.pdf",b=await e.files.write({fileName:v,data:Buffer.from(g.body)}),T=g.headers||{};return{file:b,filename:v,jobId:T["x-pdfcrowd-job-id"]||"",pageCount:T["x-pdfcrowd-pages"]||"0",outputSize:T["x-pdfcrowd-output-size"]||"0",consumedCredits:T["x-pdfcrowd-consumed-credits"]||"0",remainingCredits:T["x-pdfcrowd-remaining-credits"]||"0"}}});var Od=$i({displayName:"Pdfcrowd",auth:Ne,minimumSupportedRelease:"0.36.1",logoUrl:"https://cdn.activepieces.com/pieces/pdfcrowd.png",authors:["pdfcrowd","sanket-a11y"],categories:["CONTENT_AND_FILES"],description:"Convert web pages and HTML to PDF with advanced formatting options",actions:[Gs,Js,Zs({auth:Ne,baseUrl:o(()=>Hs,"baseUrl"),authMapping:o(async e=>({Authorization:`Basic ${Buffer.from(`${e.username}:${e.password}`).toString("base64")}`}),"authMapping")})],triggers:[]});0&&(module.exports={pdfcrowd});
1
+ "use strict";var pv=Object.create;var wr=Object.defineProperty;var dv=Object.getOwnPropertyDescriptor;var mv=Object.getOwnPropertyNames;var fv=Object.getPrototypeOf,gv=Object.prototype.hasOwnProperty;var s=(e,r)=>wr(e,"name",{value:r,configurable:!0});var k=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(n){throw r=0,n}},Ae=(e,r)=>{for(var n in r)wr(e,n,{get:r[n],enumerable:!0})},vd=(e,r,n,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of mv(r))!gv.call(e,t)&&t!==n&&wr(e,t,{get:()=>r[t],enumerable:!(i=dv(r,t))||i.enumerable});return e};var Je=(e,r,n)=>(n=e!=null?pv(fv(e)):{},vd(r||!e||!e.__esModule?wr(n,"default",{value:e,enumerable:!0}):n,e)),hv=e=>vd(wr({},"__esModule",{value:!0}),e);var km=k((zm,wa)=>{(function(e){"use strict";let r="(0?\\d+|0x[a-f0-9]+)",n={fourOctet:new RegExp(`^${r}\\.${r}\\.${r}\\.${r}$`,"i"),threeOctet:new RegExp(`^${r}\\.${r}\\.${r}$`,"i"),twoOctet:new RegExp(`^${r}\\.${r}$`,"i"),longValue:new RegExp(`^${r}$`,"i")},i=new RegExp("^0[0-7]+$","i"),t=new RegExp("^0x[a-f0-9]+$","i"),o="%[0-9a-z]{1,}",a="(?:[0-9a-f]+::?)+",c={zoneIndex:new RegExp(o,"i"),native:new RegExp(`^(::)?(${a})?([0-9a-f]+)?(::)?(${o})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${r}\\.${r}\\.${r}\\.${r}(${o})?)$`,"i"),transitional:new RegExp(`^((?:${a})|(?:::)(?:${a})?)${r}\\.${r}\\.${r}\\.${r}(${o})?$`,"i")};function p(u,h){if(u.indexOf("::")!==u.lastIndexOf("::"))return null;let T=0,S=-1,P=(u.match(c.zoneIndex)||[])[0],$,U;for(P&&(P=P.substring(1),u=u.replace(/%.+$/,""));(S=u.indexOf(":",S+1))>=0;)T++;if(u.substr(0,2)==="::"&&T--,u.substr(-2,2)==="::"&&T--,T>h)return null;for(U=h-T,$=":";U--;)$+="0:";return u=u.replace("::",$),u[0]===":"&&(u=u.slice(1)),u[u.length-1]===":"&&(u=u.slice(0,-1)),h=(function(){let Y=u.split(":"),ne=[];for(let Ue=0;Ue<Y.length;Ue++)ne.push(parseInt(Y[Ue],16));return ne})(),{parts:h,zoneId:P}}s(p,"expandIPv6");function d(u,h,T,S){if(u.length!==h.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let P=0,$;for(;S>0;){if($=T-S,$<0&&($=0),u[P]>>$!==h[P]>>$)return!1;S-=T,P+=1}return!0}s(d,"matchCIDR");function f(u){if(t.test(u))return parseInt(u,16);if(u[0]==="0"&&!isNaN(parseInt(u[1],10))){if(i.test(u))return parseInt(u,8);throw new Error(`ipaddr: cannot parse ${u} as octal`)}return parseInt(u,10)}s(f,"parseIntAuto");function b(u,h){for(;u.length<h;)u=`0${u}`;return u}s(b,"padPart");let v={};v.IPv4=(function(){function u(h){if(h.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let T,S;for(T=0;T<h.length;T++)if(S=h[T],!(0<=S&&S<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=h}return s(u,"IPv4"),u.prototype.SpecialRanges={unspecified:[[new u([0,0,0,0]),8]],broadcast:[[new u([255,255,255,255]),32]],multicast:[[new u([224,0,0,0]),4]],linkLocal:[[new u([169,254,0,0]),16]],loopback:[[new u([127,0,0,0]),8]],carrierGradeNat:[[new u([100,64,0,0]),10]],private:[[new u([10,0,0,0]),8],[new u([172,16,0,0]),12],[new u([192,168,0,0]),16]],reserved:[[new u([192,0,0,0]),24],[new u([192,0,2,0]),24],[new u([192,88,99,0]),24],[new u([198,18,0,0]),15],[new u([198,51,100,0]),24],[new u([203,0,113,0]),24],[new u([240,0,0,0]),4]],as112:[[new u([192,175,48,0]),24],[new u([192,31,196,0]),24]],amt:[[new u([192,52,193,0]),24]]},u.prototype.kind=function(){return"ipv4"},u.prototype.match=function(h,T){let S;if(T===void 0&&(S=h,h=S[0],T=S[1]),h.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return d(this.octets,h.octets,8,T)},u.prototype.prefixLengthFromSubnetMask=function(){let h=0,T=!1,S={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},P,$,U;for(P=3;P>=0;P-=1)if($=this.octets[P],$ in S){if(U=S[$],T&&U!==0)return null;U!==8&&(T=!0),h+=U}else return null;return 32-h},u.prototype.range=function(){return v.subnetMatch(this,this.SpecialRanges)},u.prototype.toByteArray=function(){return this.octets.slice(0)},u.prototype.toIPv4MappedAddress=function(){return v.IPv6.parse(`::ffff:${this.toString()}`)},u.prototype.toNormalizedString=function(){return this.toString()},u.prototype.toString=function(){return this.octets.join(".")},u})(),v.IPv4.broadcastAddressFromCIDR=function(u){try{let h=this.parseCIDR(u),T=h[0].toByteArray(),S=this.subnetMaskFromPrefixLength(h[1]).toByteArray(),P=[],$=0;for(;$<4;)P.push(parseInt(T[$],10)|parseInt(S[$],10)^255),$++;return new this(P)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},v.IPv4.isIPv4=function(u){return this.parser(u)!==null},v.IPv4.isValid=function(u){try{return new this(this.parser(u)),!0}catch{return!1}},v.IPv4.isValidCIDR=function(u){try{return this.parseCIDR(u),!0}catch{return!1}},v.IPv4.isValidFourPartDecimal=function(u){return!!(v.IPv4.isValid(u)&&u.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},v.IPv4.isValidCIDRFourPartDecimal=function(u){let h=u.match(/^(.+)\/(\d+)$/);return!v.IPv4.isValidCIDR(u)||!h?!1:v.IPv4.isValidFourPartDecimal(h[1])},v.IPv4.networkAddressFromCIDR=function(u){let h,T,S,P,$;try{for(h=this.parseCIDR(u),S=h[0].toByteArray(),$=this.subnetMaskFromPrefixLength(h[1]).toByteArray(),P=[],T=0;T<4;)P.push(parseInt(S[T],10)&parseInt($[T],10)),T++;return new this(P)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},v.IPv4.parse=function(u){let h=this.parser(u);if(h===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(h)},v.IPv4.parseCIDR=function(u){let h;if(h=u.match(/^(.+)\/(\d+)$/)){let T=parseInt(h[2]);if(T>=0&&T<=32){let S=[this.parse(h[1]),T];return Object.defineProperty(S,"toString",{value:s(function(){return this.join("/")},"value")}),S}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},v.IPv4.parser=function(u){let h,T,S;if(h=u.match(n.fourOctet))return(function(){let P=h.slice(1,6),$=[];for(let U=0;U<P.length;U++)T=P[U],$.push(f(T));return $})();if(h=u.match(n.longValue)){if(S=f(h[1]),S>4294967295||S<0)throw new Error("ipaddr: address outside defined range");return(function(){let P=[],$;for($=0;$<=24;$+=8)P.push(S>>$&255);return P})().reverse()}else return(h=u.match(n.twoOctet))?(function(){let P=h.slice(1,4),$=[];if(S=f(P[1]),S>16777215||S<0)throw new Error("ipaddr: address outside defined range");return $.push(f(P[0])),$.push(S>>16&255),$.push(S>>8&255),$.push(S&255),$})():(h=u.match(n.threeOctet))?(function(){let P=h.slice(1,5),$=[];if(S=f(P[2]),S>65535||S<0)throw new Error("ipaddr: address outside defined range");return $.push(f(P[0])),$.push(f(P[1])),$.push(S>>8&255),$.push(S&255),$})():null},v.IPv4.subnetMaskFromPrefixLength=function(u){if(u=parseInt(u),u<0||u>32)throw new Error("ipaddr: invalid IPv4 prefix length");let h=[0,0,0,0],T=0,S=Math.floor(u/8);for(;T<S;)h[T]=255,T++;return S<4&&(h[S]=Math.pow(2,u%8)-1<<8-u%8),new this(h)},v.IPv6=(function(){function u(h,T){let S,P;if(h.length===16)for(this.parts=[],S=0;S<=14;S+=2)this.parts.push(h[S]<<8|h[S+1]);else if(h.length===8)this.parts=h;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(S=0;S<this.parts.length;S++)if(P=this.parts[S],!(0<=P&&P<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");T&&(this.zoneId=T)}return s(u,"IPv6"),u.prototype.SpecialRanges={unspecified:[new u([0,0,0,0,0,0,0,0]),128],linkLocal:[new u([65152,0,0,0,0,0,0,0]),10],multicast:[new u([65280,0,0,0,0,0,0,0]),8],loopback:[new u([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new u([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new u([0,0,0,0,0,65535,0,0]),96],discard:[new u([256,0,0,0,0,0,0,0]),64],rfc6145:[new u([0,0,0,0,65535,0,0,0]),96],rfc6052:[new u([100,65435,0,0,0,0,0,0]),96],"6to4":[new u([8194,0,0,0,0,0,0,0]),16],teredo:[new u([8193,0,0,0,0,0,0,0]),32],benchmarking:[new u([8193,2,0,0,0,0,0,0]),48],amt:[new u([8193,3,0,0,0,0,0,0]),32],as112v6:[[new u([8193,4,274,0,0,0,0,0]),48],[new u([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new u([8193,16,0,0,0,0,0,0]),28],orchid2:[new u([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new u([8193,48,0,0,0,0,0,0]),28],reserved:[[new u([8193,0,0,0,0,0,0,0]),23],[new u([8193,3512,0,0,0,0,0,0]),32]]},u.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},u.prototype.kind=function(){return"ipv6"},u.prototype.match=function(h,T){let S;if(T===void 0&&(S=h,h=S[0],T=S[1]),h.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return d(this.parts,h.parts,16,T)},u.prototype.prefixLengthFromSubnetMask=function(){let h=0,T=!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},P,$;for(let U=7;U>=0;U-=1)if(P=this.parts[U],P in S){if($=S[P],T&&$!==0)return null;$!==16&&(T=!0),h+=$}else return null;return 128-h},u.prototype.range=function(){return v.subnetMatch(this,this.SpecialRanges)},u.prototype.toByteArray=function(){let h,T=[],S=this.parts;for(let P=0;P<S.length;P++)h=S[P],T.push(h>>8),T.push(h&255);return T},u.prototype.toFixedLengthString=function(){let h=(function(){let S=[];for(let P=0;P<this.parts.length;P++)S.push(b(this.parts[P].toString(16),4));return S}).call(this).join(":"),T="";return this.zoneId&&(T=`%${this.zoneId}`),h+T},u.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let h=this.parts.slice(-2),T=h[0],S=h[1];return new v.IPv4([T>>8,T&255,S>>8,S&255])},u.prototype.toNormalizedString=function(){let h=(function(){let S=[];for(let P=0;P<this.parts.length;P++)S.push(this.parts[P].toString(16));return S}).call(this).join(":"),T="";return this.zoneId&&(T=`%${this.zoneId}`),h+T},u.prototype.toRFC5952String=function(){let h=/((^|:)(0(:|$)){2,})/g,T=this.toNormalizedString(),S=0,P=-1,$;for(;$=h.exec(T);)$[0].length>P&&(S=$.index,P=$[0].length);return P<0?T:`${T.substring(0,S)}::${T.substring(S+P)}`},u.prototype.toString=function(){return this.toRFC5952String()},u})(),v.IPv6.broadcastAddressFromCIDR=function(u){try{let h=this.parseCIDR(u),T=h[0].toByteArray(),S=this.subnetMaskFromPrefixLength(h[1]).toByteArray(),P=[],$=0;for(;$<16;)P.push(parseInt(T[$],10)|parseInt(S[$],10)^255),$++;return new this(P)}catch(h){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${h})`)}},v.IPv6.isIPv6=function(u){return this.parser(u)!==null},v.IPv6.isValid=function(u){if(typeof u=="string"&&u.indexOf(":")===-1)return!1;try{let h=this.parser(u);return new this(h.parts,h.zoneId),!0}catch{return!1}},v.IPv6.isValidCIDR=function(u){if(typeof u=="string"&&u.indexOf(":")===-1)return!1;try{return this.parseCIDR(u),!0}catch{return!1}},v.IPv6.networkAddressFromCIDR=function(u){let h,T,S,P,$;try{for(h=this.parseCIDR(u),S=h[0].toByteArray(),$=this.subnetMaskFromPrefixLength(h[1]).toByteArray(),P=[],T=0;T<16;)P.push(parseInt(S[T],10)&parseInt($[T],10)),T++;return new this(P)}catch(U){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${U})`)}},v.IPv6.parse=function(u){let h=this.parser(u);if(h.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(h.parts,h.zoneId)},v.IPv6.parseCIDR=function(u){let h,T,S;if((T=u.match(/^(.+)\/(\d+)$/))&&(h=parseInt(T[2]),h>=0&&h<=128))return S=[this.parse(T[1]),h],Object.defineProperty(S,"toString",{value:s(function(){return this.join("/")},"value")}),S;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},v.IPv6.parser=function(u){let h,T,S,P,$,U;if(S=u.match(c.deprecatedTransitional))return this.parser(`::ffff:${S[1]}`);if(c.native.test(u))return p(u,8);if((S=u.match(c.transitional))&&(U=S[6]||"",h=S[1],S[1].endsWith("::")||(h=h.slice(0,-1)),h=p(h+U,6),h.parts)){for($=[parseInt(S[2]),parseInt(S[3]),parseInt(S[4]),parseInt(S[5])],T=0;T<$.length;T++)if(P=$[T],!(0<=P&&P<=255))return null;return h.parts.push($[0]<<8|$[1]),h.parts.push($[2]<<8|$[3]),{parts:h.parts,zoneId:h.zoneId}}return null},v.IPv6.subnetMaskFromPrefixLength=function(u){if(u=parseInt(u),u<0||u>128)throw new Error("ipaddr: invalid IPv6 prefix length");let h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],T=0,S=Math.floor(u/8);for(;T<S;)h[T]=255,T++;return S<16&&(h[S]=Math.pow(2,u%8)-1<<8-u%8),new this(h)},v.fromByteArray=function(u){let h=u.length;if(h===4)return new v.IPv4(u);if(h===16)return new v.IPv6(u);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},v.isValid=function(u){return v.IPv6.isValid(u)||v.IPv4.isValid(u)},v.isValidCIDR=function(u){return v.IPv6.isValidCIDR(u)||v.IPv4.isValidCIDR(u)},v.parse=function(u){if(v.IPv6.isValid(u))return v.IPv6.parse(u);if(v.IPv4.isValid(u))return v.IPv4.parse(u);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},v.parseCIDR=function(u){try{return v.IPv6.parseCIDR(u)}catch{try{return v.IPv4.parseCIDR(u)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},v.process=function(u){let h=this.parse(u);return h.kind()==="ipv6"&&h.isIPv4MappedAddress()?h.toIPv4Address():h},v.subnetMatch=function(u,h,T){let S,P,$,U;T==null&&(T="unicast");for(P in h)if(Object.prototype.hasOwnProperty.call(h,P)){for($=h[P],$[0]&&!($[0]instanceof Array)&&($=[$]),S=0;S<$.length;S++)if(U=$[S],u.kind()===U[0].kind()&&u.match.apply(u,U))return P}return T},typeof wa<"u"&&wa.exports?wa.exports=v:e.ipaddr=v})(zm)});var th=k((yU,eh)=>{var Qg=require("stream").Stream,sT=require("util");eh.exports=Ne;function Ne(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}s(Ne,"DelayedStream");sT.inherits(Ne,Qg);Ne.create=function(e,r){var n=new this;r=r||{};for(var i in r)n[i]=r[i];n.source=e;var t=e.emit;return e.emit=function(){return n._handleEmit(arguments),t.apply(e,arguments)},e.on("error",function(){}),n.pauseStream&&e.pause(),n};Object.defineProperty(Ne.prototype,"readable",{configurable:!0,enumerable:!0,get:s(function(){return this.source.readable},"get")});Ne.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};Ne.prototype.resume=function(){this._released||this.release(),this.source.resume()};Ne.prototype.pause=function(){this.source.pause()};Ne.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};Ne.prototype.pipe=function(){var e=Qg.prototype.pipe.apply(this,arguments);return this.resume(),e};Ne.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}e[0]==="data"&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)};Ne.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}});var ih=k((_U,oh)=>{var cT=require("util"),nh=require("stream").Stream,rh=th();oh.exports=re;function re(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}s(re,"CombinedStream");cT.inherits(re,nh);re.create=function(e){var r=new this;e=e||{};for(var n in e)r[n]=e[n];return r};re.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};re.prototype.append=function(e){var r=re.isStreamLike(e);if(r){if(!(e instanceof rh)){var n=rh.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=n}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this};re.prototype.pipe=function(e,r){return nh.prototype.pipe.call(this,e,r),this.resume(),e};re.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};re.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e>"u"){this.end();return}if(typeof e!="function"){this._pipeNext(e);return}var r=e;r(function(n){var i=re.isStreamLike(n);i&&(n.on("data",this._checkDataSize.bind(this)),this._handleErrors(n)),this._pipeNext(n)}.bind(this))};re.prototype._pipeNext=function(e){this._currentStream=e;var r=re.isStreamLike(e);if(r){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var n=e;this.write(n),this._getNext()};re.prototype._handleErrors=function(e){var r=this;e.on("error",function(n){r._emitError(n)})};re.prototype.write=function(e){this.emit("data",e)};re.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};re.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};re.prototype.end=function(){this._reset(),this.emit("end")};re.prototype.destroy=function(){this._reset(),this.emit("close")};re.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};re.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};re.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(r){r.dataSize&&(e.dataSize+=r.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};re.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var sh=k((bU,ah)=>{"use strict";ah.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 lh=k(xe=>{"use strict";var ms=sh(),uT=require("path").extname,ch=/^\s*([^;\s]*)(?:;|\s|$)/,lT=/^text\//i;xe.charset=uh;xe.charsets={lookup:uh};xe.contentType=pT;xe.extension=dT;xe.extensions=Object.create(null);xe.lookup=mT;xe.types=Object.create(null);fT(xe.extensions,xe.types);function uh(e){if(!e||typeof e!="string")return!1;var r=ch.exec(e),n=r&&ms[r[1].toLowerCase()];return n&&n.charset?n.charset:r&&lT.test(r[1])?"UTF-8":!1}s(uh,"charset");function pT(e){if(!e||typeof e!="string")return!1;var r=e.indexOf("/")===-1?xe.lookup(e):e;if(!r)return!1;if(r.indexOf("charset")===-1){var n=xe.charset(r);n&&(r+="; charset="+n.toLowerCase())}return r}s(pT,"contentType");function dT(e){if(!e||typeof e!="string")return!1;var r=ch.exec(e),n=r&&xe.extensions[r[1].toLowerCase()];return!n||!n.length?!1:n[0]}s(dT,"extension");function mT(e){if(!e||typeof e!="string")return!1;var r=uT("x."+e).toLowerCase().substr(1);return r&&xe.types[r]||!1}s(mT,"lookup");function fT(e,r){var n=["nginx","apache",void 0,"iana"];Object.keys(ms).forEach(s(function(t){var o=ms[t],a=o.extensions;if(!(!a||!a.length)){e[t]=a;for(var c=0;c<a.length;c++){var p=a[c];if(r[p]){var d=n.indexOf(ms[r[p]].source),f=n.indexOf(o.source);if(r[p]!=="application/octet-stream"&&(d>f||d===f&&r[p].substr(0,12)==="application/"))continue}r[p]=t}}},"forEachMimeType"))}s(fT,"populateMaps")});var dh=k((SU,ph)=>{ph.exports=gT;function gT(e){var r=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;r?r(e):setTimeout(e,0)}s(gT,"defer")});var Jp=k((EU,fh)=>{var mh=dh();fh.exports=hT;function hT(e){var r=!1;return mh(function(){r=!0}),s(function(i,t){r?e(i,t):mh(s(function(){e(i,t)},"nextTick_callback"))},"async_callback")}s(hT,"async")});var Kp=k((AU,gh)=>{gh.exports=yT;function yT(e){Object.keys(e.jobs).forEach(vT.bind(e)),e.jobs={}}s(yT,"abort");function vT(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}s(vT,"clean")});var Xp=k((zU,yh)=>{var hh=Jp(),_T=Kp();yh.exports=xT;function xT(e,r,n,i){var t=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[t]=bT(r,t,e[t],function(o,a){t in n.jobs&&(delete n.jobs[t],o?_T(n):n.results[t]=a,i(o,n.results))})}s(xT,"iterate");function bT(e,r,n,i){var t;return e.length==2?t=e(n,hh(i)):t=e(n,r,hh(i)),t}s(bT,"runJob")});var Yp=k((OU,vh)=>{vh.exports=PT;function PT(e,r){var n=!Array.isArray(e),i={index:0,keyedList:n||r?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};return r&&i.keyedList.sort(n?r:function(t,o){return r(e[t],e[o])}),i}s(PT,"state")});var Qp=k((NU,_h)=>{var TT=Kp(),ST=Jp();_h.exports=IT;function IT(e){Object.keys(this.jobs).length&&(this.index=this.size,TT(this),ST(e)(null,this.results))}s(IT,"terminator")});var bh=k((CU,xh)=>{var ET=Xp(),wT=Yp(),AT=Qp();xh.exports=$T;function $T(e,r,n){for(var i=wT(e);i.index<(i.keyedList||e).length;)ET(e,r,i,function(t,o){if(t){n(t,o);return}if(Object.keys(i.jobs).length===0){n(null,i.results);return}}),i.index++;return AT.bind(i,n)}s($T,"parallel")});var ed=k((MU,fs)=>{var Ph=Xp(),zT=Yp(),kT=Qp();fs.exports=OT;fs.exports.ascending=Th;fs.exports.descending=DT;function OT(e,r,n,i){var t=zT(e,n);return Ph(e,r,t,s(function o(a,c){if(a){i(a,c);return}if(t.index++,t.index<(t.keyedList||e).length){Ph(e,r,t,o);return}i(null,t.results)},"iteratorHandler")),kT.bind(t,i)}s(OT,"serialOrdered");function Th(e,r){return e<r?-1:e>r?1:0}s(Th,"ascending");function DT(e,r){return-1*Th(e,r)}s(DT,"descending")});var Ih=k((jU,Sh)=>{var NT=ed();Sh.exports=RT;function RT(e,r,n){return NT(e,r,null,n)}s(RT,"serial")});var wh=k((ZU,Eh)=>{Eh.exports={parallel:bh(),serial:Ih(),serialOrdered:ed()}});var td=k((BU,Ah)=>{"use strict";Ah.exports=Object});var zh=k((VU,$h)=>{"use strict";$h.exports=Error});var Oh=k((HU,kh)=>{"use strict";kh.exports=EvalError});var Nh=k((qU,Dh)=>{"use strict";Dh.exports=RangeError});var Ch=k((GU,Rh)=>{"use strict";Rh.exports=ReferenceError});var Mh=k((WU,Uh)=>{"use strict";Uh.exports=SyntaxError});var gs=k((JU,Lh)=>{"use strict";Lh.exports=TypeError});var Fh=k((KU,jh)=>{"use strict";jh.exports=URIError});var Bh=k((XU,Zh)=>{"use strict";Zh.exports=Math.abs});var Hh=k((YU,Vh)=>{"use strict";Vh.exports=Math.floor});var Gh=k((QU,qh)=>{"use strict";qh.exports=Math.max});var Jh=k((e0,Wh)=>{"use strict";Wh.exports=Math.min});var Xh=k((t0,Kh)=>{"use strict";Kh.exports=Math.pow});var Qh=k((r0,Yh)=>{"use strict";Yh.exports=Math.round});var ty=k((n0,ey)=>{"use strict";ey.exports=Number.isNaN||s(function(r){return r!==r},"isNaN")});var ny=k((i0,ry)=>{"use strict";var CT=ty();ry.exports=s(function(r){return CT(r)||r===0?r:r<0?-1:1},"sign")});var iy=k((s0,oy)=>{"use strict";oy.exports=Object.getOwnPropertyDescriptor});var rd=k((c0,ay)=>{"use strict";var hs=iy();if(hs)try{hs([],"length")}catch{hs=null}ay.exports=hs});var cy=k((u0,sy)=>{"use strict";var ys=Object.defineProperty||!1;if(ys)try{ys({},"a",{value:1})}catch{ys=!1}sy.exports=ys});var nd=k((l0,uy)=>{"use strict";uy.exports=s(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),i=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var t=42;r[n]=t;for(var o in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var a=Object.getOwnPropertySymbols(r);if(a.length!==1||a[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(r,n);if(c.value!==t||c.enumerable!==!0)return!1}return!0},"hasSymbols")});var dy=k((d0,py)=>{"use strict";var ly=typeof Symbol<"u"&&Symbol,UT=nd();py.exports=s(function(){return typeof ly!="function"||typeof Symbol!="function"||typeof ly("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:UT()},"hasNativeSymbols")});var od=k((f0,my)=>{"use strict";my.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var id=k((g0,fy)=>{"use strict";var MT=td();fy.exports=MT.getPrototypeOf||null});var yy=k((h0,hy)=>{"use strict";var LT="Function.prototype.bind called on incompatible ",jT=Object.prototype.toString,FT=Math.max,ZT="[object Function]",gy=s(function(r,n){for(var i=[],t=0;t<r.length;t+=1)i[t]=r[t];for(var o=0;o<n.length;o+=1)i[o+r.length]=n[o];return i},"concatty"),BT=s(function(r,n){for(var i=[],t=n||0,o=0;t<r.length;t+=1,o+=1)i[o]=r[t];return i},"slicy"),VT=s(function(e,r){for(var n="",i=0;i<e.length;i+=1)n+=e[i],i+1<e.length&&(n+=r);return n},"joiny");hy.exports=s(function(r){var n=this;if(typeof n!="function"||jT.apply(n)!==ZT)throw new TypeError(LT+n);for(var i=BT(arguments,1),t,o=s(function(){if(this instanceof t){var f=n.apply(this,gy(i,arguments));return Object(f)===f?f:this}return n.apply(r,gy(i,arguments))},"binder"),a=FT(0,n.length-i.length),c=[],p=0;p<a;p++)c[p]="$"+p;if(t=Function("binder","return function ("+VT(c,",")+"){ return binder.apply(this,arguments); }")(o),n.prototype){var d=s(function(){},"Empty");d.prototype=n.prototype,t.prototype=new d,d.prototype=null}return t},"bind")});var Pr=k((v0,vy)=>{"use strict";var HT=yy();vy.exports=Function.prototype.bind||HT});var vs=k((_0,_y)=>{"use strict";_y.exports=Function.prototype.call});var ad=k((x0,xy)=>{"use strict";xy.exports=Function.prototype.apply});var Py=k((b0,by)=>{"use strict";by.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Sy=k((P0,Ty)=>{"use strict";var qT=Pr(),GT=ad(),WT=vs(),JT=Py();Ty.exports=JT||qT.call(WT,GT)});var Ey=k((T0,Iy)=>{"use strict";var KT=Pr(),XT=gs(),YT=vs(),QT=Sy();Iy.exports=s(function(r){if(r.length<1||typeof r[0]!="function")throw new XT("a function is required");return QT(KT,YT,r)},"callBindBasic")});var Oy=k((I0,ky)=>{"use strict";var eS=Ey(),wy=rd(),$y;try{$y=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var sd=!!$y&&wy&&wy(Object.prototype,"__proto__"),zy=Object,Ay=zy.getPrototypeOf;ky.exports=sd&&typeof sd.get=="function"?eS([sd.get]):typeof Ay=="function"?s(function(r){return Ay(r==null?r:zy(r))},"getDunder"):!1});var Uy=k((w0,Cy)=>{"use strict";var Dy=od(),Ny=id(),Ry=Oy();Cy.exports=Dy?s(function(r){return Dy(r)},"getProto"):Ny?s(function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return Ny(r)},"getProto"):Ry?s(function(r){return Ry(r)},"getProto"):null});var cd=k(($0,My)=>{"use strict";var tS=Function.prototype.call,rS=Object.prototype.hasOwnProperty,nS=Pr();My.exports=nS.call(tS,rS)});var Hy=k((z0,Vy)=>{"use strict";var V,oS=td(),iS=zh(),aS=Oh(),sS=Nh(),cS=Ch(),Er=Mh(),Ir=gs(),uS=Fh(),lS=Bh(),pS=Hh(),dS=Gh(),mS=Jh(),fS=Xh(),gS=Qh(),hS=ny(),Zy=Function,ud=s(function(e){try{return Zy('"use strict"; return ('+e+").constructor;")()}catch{}},"getEvalledConstructor"),bo=rd(),yS=cy(),ld=s(function(){throw new Ir},"throwTypeError"),vS=bo?(function(){try{return arguments.callee,ld}catch{try{return bo(arguments,"callee").get}catch{return ld}}})():ld,Tr=dy()(),le=Uy(),_S=id(),xS=od(),By=ad(),Po=vs(),Sr={},bS=typeof Uint8Array>"u"||!le?V:le(Uint8Array),Ut={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?V:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?V:ArrayBuffer,"%ArrayIteratorPrototype%":Tr&&le?le([][Symbol.iterator]()):V,"%AsyncFromSyncIteratorPrototype%":V,"%AsyncFunction%":Sr,"%AsyncGenerator%":Sr,"%AsyncGeneratorFunction%":Sr,"%AsyncIteratorPrototype%":Sr,"%Atomics%":typeof Atomics>"u"?V:Atomics,"%BigInt%":typeof BigInt>"u"?V:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?V:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?V:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?V:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":iS,"%eval%":eval,"%EvalError%":aS,"%Float16Array%":typeof Float16Array>"u"?V:Float16Array,"%Float32Array%":typeof Float32Array>"u"?V:Float32Array,"%Float64Array%":typeof Float64Array>"u"?V:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?V:FinalizationRegistry,"%Function%":Zy,"%GeneratorFunction%":Sr,"%Int8Array%":typeof Int8Array>"u"?V:Int8Array,"%Int16Array%":typeof Int16Array>"u"?V:Int16Array,"%Int32Array%":typeof Int32Array>"u"?V:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Tr&&le?le(le([][Symbol.iterator]())):V,"%JSON%":typeof JSON=="object"?JSON:V,"%Map%":typeof Map>"u"?V:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Tr||!le?V:le(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":oS,"%Object.getOwnPropertyDescriptor%":bo,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?V:Promise,"%Proxy%":typeof Proxy>"u"?V:Proxy,"%RangeError%":sS,"%ReferenceError%":cS,"%Reflect%":typeof Reflect>"u"?V:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?V:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Tr||!le?V:le(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?V:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Tr&&le?le(""[Symbol.iterator]()):V,"%Symbol%":Tr?Symbol:V,"%SyntaxError%":Er,"%ThrowTypeError%":vS,"%TypedArray%":bS,"%TypeError%":Ir,"%Uint8Array%":typeof Uint8Array>"u"?V:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?V:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?V:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?V:Uint32Array,"%URIError%":uS,"%WeakMap%":typeof WeakMap>"u"?V:WeakMap,"%WeakRef%":typeof WeakRef>"u"?V:WeakRef,"%WeakSet%":typeof WeakSet>"u"?V:WeakSet,"%Function.prototype.call%":Po,"%Function.prototype.apply%":By,"%Object.defineProperty%":yS,"%Object.getPrototypeOf%":_S,"%Math.abs%":lS,"%Math.floor%":pS,"%Math.max%":dS,"%Math.min%":mS,"%Math.pow%":fS,"%Math.round%":gS,"%Math.sign%":hS,"%Reflect.getPrototypeOf%":xS};if(le)try{null.error}catch(e){Ly=le(le(e)),Ut["%Error.prototype%"]=Ly}var Ly,PS=s(function e(r){var n;if(r==="%AsyncFunction%")n=ud("async function () {}");else if(r==="%GeneratorFunction%")n=ud("function* () {}");else if(r==="%AsyncGeneratorFunction%")n=ud("async function* () {}");else if(r==="%AsyncGenerator%"){var i=e("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if(r==="%AsyncIteratorPrototype%"){var t=e("%AsyncGenerator%");t&&le&&(n=le(t.prototype))}return Ut[r]=n,n},"doEval"),jy={__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"]},To=Pr(),_s=cd(),TS=To.call(Po,Array.prototype.concat),SS=To.call(By,Array.prototype.splice),Fy=To.call(Po,String.prototype.replace),xs=To.call(Po,String.prototype.slice),IS=To.call(Po,RegExp.prototype.exec),ES=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,wS=/\\(\\)?/g,AS=s(function(r){var n=xs(r,0,1),i=xs(r,-1);if(n==="%"&&i!=="%")throw new Er("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&n!=="%")throw new Er("invalid intrinsic syntax, expected opening `%`");var t=[];return Fy(r,ES,function(o,a,c,p){t[t.length]=c?Fy(p,wS,"$1"):a||o}),t},"stringToPath"),$S=s(function(r,n){var i=r,t;if(_s(jy,i)&&(t=jy[i],i="%"+t[0]+"%"),_s(Ut,i)){var o=Ut[i];if(o===Sr&&(o=PS(i)),typeof o>"u"&&!n)throw new Ir("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:t,name:i,value:o}}throw new Er("intrinsic "+r+" does not exist!")},"getBaseIntrinsic");Vy.exports=s(function(r,n){if(typeof r!="string"||r.length===0)throw new Ir("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Ir('"allowMissing" argument must be a boolean');if(IS(/^%?[^%]*%?$/,r)===null)throw new Er("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=AS(r),t=i.length>0?i[0]:"",o=$S("%"+t+"%",n),a=o.name,c=o.value,p=!1,d=o.alias;d&&(t=d[0],SS(i,TS([0,1],d)));for(var f=1,b=!0;f<i.length;f+=1){var v=i[f],u=xs(v,0,1),h=xs(v,-1);if((u==='"'||u==="'"||u==="`"||h==='"'||h==="'"||h==="`")&&u!==h)throw new Er("property names with quotes must have matching quotes");if((v==="constructor"||!b)&&(p=!0),t+="."+v,a="%"+t+"%",_s(Ut,a))c=Ut[a];else if(c!=null){if(!(v in c)){if(!n)throw new Ir("base intrinsic for "+r+" exists, but the property is not available.");return}if(bo&&f+1>=i.length){var T=bo(c,v);b=!!T,b&&"get"in T&&!("originalValue"in T.get)?c=T.get:c=c[v]}else b=_s(c,v),c=c[v];b&&!p&&(Ut[a]=c)}}return c},"GetIntrinsic")});var Gy=k((O0,qy)=>{"use strict";var zS=nd();qy.exports=s(function(){return zS()&&!!Symbol.toStringTag},"hasToStringTagShams")});var Ky=k((N0,Jy)=>{"use strict";var kS=Hy(),Wy=kS("%Object.defineProperty%",!0),OS=Gy()(),DS=cd(),NS=gs(),bs=OS?Symbol.toStringTag:null;Jy.exports=s(function(r,n){var i=arguments.length>2&&!!arguments[2]&&arguments[2].force,t=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof i<"u"&&typeof i!="boolean"||typeof t<"u"&&typeof t!="boolean")throw new NS("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");bs&&(i||!DS(r,bs))&&(Wy?Wy(r,bs,{configurable:!t,enumerable:!1,value:n,writable:!1}):r[bs]=n)},"setToStringTag")});var Yy=k((C0,Xy)=>{"use strict";var RS=Function.prototype.call,CS=Object.prototype.hasOwnProperty,US=Pr();Xy.exports=US.call(RS,CS)});var ev=k((U0,Qy)=>{"use strict";Qy.exports=function(e,r){return Object.keys(r).forEach(function(n){e[n]=e[n]||r[n]}),e}});var Ps=k((M0,rv)=>{"use strict";var fd=ih(),MS=require("util"),pd=require("path"),LS=require("http"),jS=require("https"),FS=require("url").parse,ZS=require("fs"),BS=require("stream").Stream,VS=require("crypto"),dd=lh(),HS=wh(),qS=Ky(),mt=Yy(),md=ev();function tv(e){return String(e).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}s(tv,"escapeHeaderParam");function G(e){if(!(this instanceof G))return new G(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],fd.call(this),e=e||{};for(var r in e)this[r]=e[r]}s(G,"FormData");MS.inherits(G,fd);G.LINE_BREAK=`\r
2
+ `;G.DEFAULT_CONTENT_TYPE="application/octet-stream";G.prototype.append=function(e,r,n){n=n||{},typeof n=="string"&&(n={filename:n});var i=fd.prototype.append.bind(this);if((typeof r=="number"||r==null)&&(r=String(r)),Array.isArray(r)){this._error(new Error("Arrays are not supported."));return}var t=this._multiPartHeader(e,r,n),o=this._multiPartFooter();i(t),i(r),i(o),this._trackLength(t,r,n)};G.prototype._trackLength=function(e,r,n){var i=0;n.knownLength!=null?i+=Number(n.knownLength):Buffer.isBuffer(r)?i=r.length:typeof r=="string"&&(i=Buffer.byteLength(r)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(e)+G.LINE_BREAK.length,!(!r||!r.path&&!(r.readable&&mt(r,"httpVersion"))&&!(r instanceof BS))&&(n.knownLength||this._valuesToMeasure.push(r))};G.prototype._lengthRetriever=function(e,r){mt(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?r(null,e.end+1-(e.start?e.start:0)):ZS.stat(e.path,function(n,i){if(n){r(n);return}var t=i.size-(e.start?e.start:0);r(null,t)}):mt(e,"httpVersion")?r(null,Number(e.headers["content-length"])):mt(e,"httpModule")?(e.on("response",function(n){e.pause(),r(null,Number(n.headers["content-length"]))}),e.resume()):r("Unknown stream")};G.prototype._multiPartHeader=function(e,r,n){if(typeof n.header=="string")return n.header;var i=this._getContentDisposition(r,n),t=this._getContentType(r,n),o="",a={"Content-Disposition":["form-data",'name="'+tv(e)+'"'].concat(i||[]),"Content-Type":[].concat(t||[])};typeof n.header=="object"&&md(a,n.header);var c;for(var p in a)if(mt(a,p)){if(c=a[p],c==null)continue;Array.isArray(c)||(c=[c]),c.length&&(o+=p+": "+c.join("; ")+G.LINE_BREAK)}return"--"+this.getBoundary()+G.LINE_BREAK+o+G.LINE_BREAK};G.prototype._getContentDisposition=function(e,r){var n;if(typeof r.filepath=="string"?n=pd.normalize(r.filepath).replace(/\\/g,"/"):r.filename||e&&(e.name||e.path)?n=pd.basename(r.filename||e&&(e.name||e.path)):e&&e.readable&&mt(e,"httpVersion")&&(n=pd.basename(e.client._httpMessage.path||"")),n)return'filename="'+tv(n)+'"'};G.prototype._getContentType=function(e,r){var n=r.contentType;return!n&&e&&e.name&&(n=dd.lookup(e.name)),!n&&e&&e.path&&(n=dd.lookup(e.path)),!n&&e&&e.readable&&mt(e,"httpVersion")&&(n=e.headers["content-type"]),!n&&(r.filepath||r.filename)&&(n=dd.lookup(r.filepath||r.filename)),!n&&e&&typeof e=="object"&&(n=G.DEFAULT_CONTENT_TYPE),n};G.prototype._multiPartFooter=function(){return function(e){var r=G.LINE_BREAK,n=this._streams.length===0;n&&(r+=this._lastBoundary()),e(r)}.bind(this)};G.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+G.LINE_BREAK};G.prototype.getHeaders=function(e){var r,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(r in e)mt(e,r)&&(n[r.toLowerCase()]=e[r]);return n};G.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};G.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};G.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),r=this.getBoundary(),n=0,i=this._streams.length;n<i;n++)typeof this._streams[n]!="function"&&(Buffer.isBuffer(this._streams[n])?e=Buffer.concat([e,this._streams[n]]):e=Buffer.concat([e,Buffer.from(this._streams[n])]),(typeof this._streams[n]!="string"||this._streams[n].substring(2,r.length+2)!==r)&&(e=Buffer.concat([e,Buffer.from(G.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};G.prototype._generateBoundary=function(){this._boundary="--------------------------"+VS.randomBytes(12).toString("hex")};G.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e};G.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};G.prototype.getLength=function(e){var r=this._overheadLength+this._valueLength;if(this._streams.length&&(r+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,r));return}HS.parallel(this._valuesToMeasure,this._lengthRetriever,function(n,i){if(n){e(n);return}i.forEach(function(t){r+=t}),e(null,r)})};G.prototype.submit=function(e,r){var n,i,t={method:"post"};return typeof e=="string"?(e=FS(e),i=md({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},t)):(i=md(e,t),i.port||(i.port=i.protocol==="https:"?443:80)),i.headers=this.getHeaders(e.headers),i.protocol==="https:"?n=jS.request(i):n=LS.request(i),this.getLength(function(o,a){if(o&&o!=="Unknown stream"){this._error(o);return}if(a&&n.setHeader("Content-Length",a),this.pipe(n),r){var c,p=s(function(d,f){return n.removeListener("error",p),n.removeListener("response",c),r.call(this,d,f)},"callback");c=p.bind(this,null),n.on("error",p),n.on("response",c)}}.bind(this)),n};G.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};G.prototype.toString=function(){return"[object FormData]"};qS(G.prototype,"FormData");rv.exports=G});var rI={};Ae(rI,{pdfcrowd:()=>tI});module.exports=hv(rI);var Pe={};Ae(Pe,{$ZodAny:()=>Zr,$ZodArray:()=>qr,$ZodAsyncError:()=>$e,$ZodBase64:()=>mi,$ZodBase64URL:()=>fi,$ZodBigInt:()=>Yt,$ZodBigIntFormat:()=>vi,$ZodBoolean:()=>vt,$ZodCIDRv4:()=>pi,$ZodCIDRv6:()=>di,$ZodCUID:()=>Qo,$ZodCUID2:()=>ei,$ZodCatch:()=>Ni,$ZodCheck:()=>K,$ZodCheckBigIntFormat:()=>dc,$ZodCheckEndsWith:()=>Sc,$ZodCheckGreaterThan:()=>Zo,$ZodCheckIncludes:()=>Pc,$ZodCheckLengthEquals:()=>vc,$ZodCheckLessThan:()=>Fo,$ZodCheckLowerCase:()=>xc,$ZodCheckMaxLength:()=>hc,$ZodCheckMaxSize:()=>mc,$ZodCheckMimeType:()=>Ec,$ZodCheckMinLength:()=>yc,$ZodCheckMinSize:()=>fc,$ZodCheckMultipleOf:()=>lc,$ZodCheckNumberFormat:()=>pc,$ZodCheckOverwrite:()=>wc,$ZodCheckProperty:()=>Ic,$ZodCheckRegex:()=>_c,$ZodCheckSizeEquals:()=>gc,$ZodCheckStartsWith:()=>Tc,$ZodCheckStringFormat:()=>Kt,$ZodCheckUpperCase:()=>bc,$ZodCodec:()=>er,$ZodCustom:()=>tn,$ZodCustomStringFormat:()=>yi,$ZodDate:()=>Hr,$ZodDefault:()=>zi,$ZodDiscriminatedUnion:()=>Gr,$ZodE164:()=>gi,$ZodEmail:()=>Ko,$ZodEmoji:()=>Xo,$ZodEncodeError:()=>Ke,$ZodEnum:()=>Kr,$ZodError:()=>Cr,$ZodExactOptional:()=>$i,$ZodFile:()=>Ai,$ZodFunction:()=>Mi,$ZodGUID:()=>Wo,$ZodIPv4:()=>ci,$ZodIPv6:()=>ui,$ZodISODate:()=>ii,$ZodISODateTime:()=>oi,$ZodISODuration:()=>si,$ZodISOTime:()=>ai,$ZodIntersection:()=>Ii,$ZodJWT:()=>hi,$ZodKSUID:()=>ni,$ZodLazy:()=>ji,$ZodLiteral:()=>Xr,$ZodMAC:()=>li,$ZodMap:()=>Ei,$ZodNaN:()=>Ri,$ZodNanoID:()=>Yo,$ZodNever:()=>Pi,$ZodNonOptional:()=>Oi,$ZodNull:()=>bi,$ZodNullable:()=>Qr,$ZodNumber:()=>Xt,$ZodNumberFormat:()=>Fr,$ZodObject:()=>Ti,$ZodObjectJIT:()=>kc,$ZodOptional:()=>Qt,$ZodPipe:()=>en,$ZodPrefault:()=>ki,$ZodPromise:()=>Li,$ZodReadonly:()=>Ci,$ZodRealError:()=>ye,$ZodRecord:()=>Jr,$ZodRegistry:()=>Fi,$ZodSet:()=>wi,$ZodString:()=>je,$ZodStringFormat:()=>W,$ZodSuccess:()=>Di,$ZodSymbol:()=>_i,$ZodTemplateLiteral:()=>Ui,$ZodTransform:()=>Yr,$ZodTuple:()=>Wr,$ZodType:()=>R,$ZodULID:()=>ti,$ZodURL:()=>jr,$ZodUUID:()=>Jo,$ZodUndefined:()=>xi,$ZodUnion:()=>_t,$ZodUnknown:()=>Br,$ZodVoid:()=>Vr,$ZodXID:()=>ri,$ZodXor:()=>Si,$brand:()=>$r,$constructor:()=>g,$input:()=>Bi,$output:()=>Zi,Doc:()=>Lr,JSONSchema:()=>pm,JSONSchemaGenerator:()=>va,NEVER:()=>Io,TimePrecision:()=>Hi,_any:()=>Cn,_array:()=>Su,_base64:()=>En,_base64url:()=>wn,_bigint:()=>ea,_boolean:()=>Dn,_catch:()=>Px,_check:()=>lm,_cidrv4:()=>Sn,_cidrv6:()=>In,_coercedBigint:()=>Rn,_coercedBoolean:()=>Nn,_coercedDate:()=>Ln,_coercedNumber:()=>kn,_coercedString:()=>un,_cuid:()=>yn,_cuid2:()=>vn,_custom:()=>Hn,_date:()=>sa,_decode:()=>Oo,_decodeAsync:()=>No,_default:()=>_x,_discriminatedUnion:()=>sx,_e164:()=>An,_email:()=>ln,_emoji:()=>gn,_encode:()=>ko,_encodeAsync:()=>Do,_endsWith:()=>It,_enum:()=>mx,_file:()=>ua,_float32:()=>Ki,_float64:()=>Xi,_gt:()=>ke,_gte:()=>ae,_guid:()=>nr,_includes:()=>Tt,_int:()=>On,_int32:()=>Yi,_int64:()=>ta,_intersection:()=>cx,_ipv4:()=>Pn,_ipv6:()=>Tn,_isoDate:()=>Gi,_isoDateTime:()=>qi,_isoDuration:()=>Ji,_isoTime:()=>Wi,_jwt:()=>$n,_ksuid:()=>bn,_lazy:()=>Ex,_length:()=>nt,_literal:()=>gx,_lowercase:()=>bt,_lt:()=>ze,_lte:()=>fe,_mac:()=>Vi,_map:()=>px,_max:()=>fe,_maxLength:()=>rt,_maxSize:()=>Ze,_mime:()=>Et,_min:()=>ae,_minLength:()=>oe,_minSize:()=>Oe,_multipleOf:()=>Fe,_nan:()=>ca,_nanoid:()=>hn,_nativeEnum:()=>fx,_negative:()=>Fn,_never:()=>aa,_nonnegative:()=>Bn,_nonoptional:()=>xx,_nonpositive:()=>Zn,_normalize:()=>wt,_null:()=>ia,_nullable:()=>vx,_number:()=>zn,_optional:()=>yx,_overwrite:()=>Ee,_parse:()=>Vt,_parseAsync:()=>Ht,_pipe:()=>Tx,_positive:()=>jn,_promise:()=>wx,_property:()=>Vn,_readonly:()=>Sx,_record:()=>lx,_refine:()=>la,_regex:()=>pe,_safeDecode:()=>Co,_safeDecodeAsync:()=>Mo,_safeEncode:()=>Ro,_safeEncodeAsync:()=>Uo,_safeParse:()=>qt,_safeParseAsync:()=>Wt,_set:()=>dx,_size:()=>tt,_slugify:()=>or,_startsWith:()=>St,_string:()=>cn,_stringFormat:()=>kt,_stringbool:()=>fa,_success:()=>bx,_superRefine:()=>pa,_symbol:()=>na,_templateLiteral:()=>Ix,_toLowerCase:()=>$t,_toUpperCase:()=>zt,_transform:()=>hx,_trim:()=>At,_tuple:()=>ux,_uint32:()=>Qi,_uint64:()=>ra,_ulid:()=>_n,_undefined:()=>oa,_union:()=>ix,_unknown:()=>Un,_uppercase:()=>Pt,_url:()=>xt,_uuid:()=>pn,_uuidv4:()=>dn,_uuidv6:()=>mn,_uuidv7:()=>fn,_void:()=>Mn,_xid:()=>xn,_xor:()=>ax,clone:()=>se,config:()=>ee,createStandardJSONSchemaMethod:()=>ir,createToJSONSchemaMethod:()=>Iu,decode:()=>kd,decodeAsync:()=>Dd,describe:()=>da,encode:()=>zd,encodeAsync:()=>Od,extractDefs:()=>it,finalize:()=>at,flattenError:()=>Zt,formatError:()=>Bt,globalConfig:()=>Ar,globalRegistry:()=>ce,initializeContext:()=>ot,isValidBase64:()=>zc,isValidBase64URL:()=>tm,isValidJWT:()=>rm,locales:()=>rr,meta:()=>ma,parse:()=>gt,parseAsync:()=>ht,prettifyError:()=>zo,process:()=>J,regexes:()=>ve,registry:()=>sn,safeDecode:()=>Rd,safeDecodeAsync:()=>Ud,safeEncode:()=>Nd,safeEncodeAsync:()=>Cd,safeParse:()=>Gt,safeParseAsync:()=>Jt,toDotPath:()=>$d,toJSONSchema:()=>qn,treeifyError:()=>$o,util:()=>w,version:()=>Ac});var Io=Object.freeze({status:"aborted"});function g(e,r,n){function i(c,p){if(c._zod||Object.defineProperty(c,"_zod",{value:{def:p,constr:a,traits:new Set},enumerable:!1}),c._zod.traits.has(e))return;c._zod.traits.add(e),r(c,p);let d=a.prototype,f=Object.keys(d);for(let b=0;b<f.length;b++){let v=f[b];v in c||(c[v]=d[v].bind(c))}}s(i,"init");let t=n?.Parent??Object;class o extends t{static{s(this,"Definition")}}Object.defineProperty(o,"name",{value:e});function a(c){var p;let d=n?.Parent?new o:this;i(d,c),(p=d._zod).deferred??(p.deferred=[]);for(let f of d._zod.deferred)f();return d}return s(a,"_"),Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:s(c=>n?.Parent&&c instanceof n.Parent?!0:c?._zod?.traits?.has(e),"value")}),Object.defineProperty(a,"name",{value:e}),a}s(g,"$constructor");var $r=Symbol("zod_brand"),$e=class extends Error{static{s(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Ke=class extends Error{static{s(this,"$ZodEncodeError")}constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}},Ar={};function ee(e){return e&&Object.assign(Ar,e),Ar}s(ee,"config");var w={};Ae(w,{BIGINT_FORMAT_RANGES:()=>Rs,Class:()=>As,NUMBER_FORMAT_RANGES:()=>Ns,aborted:()=>et,allowsEval:()=>ks,assert:()=>bv,assertEqual:()=>yv,assertIs:()=>_v,assertNever:()=>xv,assertNotEqual:()=>vv,assignProp:()=>Ye,base64ToUint8Array:()=>Ed,base64urlToUint8Array:()=>Ov,cached:()=>jt,captureStackTrace:()=>wo,cleanEnum:()=>kv,cleanRegex:()=>Or,clone:()=>se,cloneDef:()=>Tv,createTransparentProxy:()=>$v,defineLazy:()=>F,esc:()=>Eo,escapeRegex:()=>Ie,extend:()=>Pd,finalizeIssue:()=>he,floatSafeRemainder:()=>$s,getElementAtPath:()=>Sv,getEnumValues:()=>kr,getLengthableOrigin:()=>Rr,getParsedType:()=>Av,getSizableOrigin:()=>Nr,hexToUint8Array:()=>Nv,isObject:()=>ft,isPlainObject:()=>Qe,issue:()=>Ft,joinValues:()=>_,jsonStringifyReplacer:()=>Lt,merge:()=>zv,mergeDefs:()=>Le,normalizeParams:()=>I,nullish:()=>Xe,numKeys:()=>wv,objectClone:()=>Pv,omit:()=>bd,optionalKeys:()=>Ds,parsedType:()=>A,partial:()=>Sd,pick:()=>xd,prefixIssues:()=>be,primitiveTypes:()=>Os,promiseAllObject:()=>Iv,propertyKeyTypes:()=>Dr,randomString:()=>Ev,required:()=>Id,safeExtend:()=>Td,shallowClone:()=>Ao,slugify:()=>zs,stringifyPrimitive:()=>E,uint8ArrayToBase64:()=>wd,uint8ArrayToBase64url:()=>Dv,uint8ArrayToHex:()=>Rv,unwrapMessage:()=>zr});function yv(e){return e}s(yv,"assertEqual");function vv(e){return e}s(vv,"assertNotEqual");function _v(e){}s(_v,"assertIs");function xv(e){throw new Error("Unexpected value in exhaustive check")}s(xv,"assertNever");function bv(e){}s(bv,"assert");function kr(e){let r=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,t])=>r.indexOf(+i)===-1).map(([i,t])=>t)}s(kr,"getEnumValues");function _(e,r="|"){return e.map(n=>E(n)).join(r)}s(_,"joinValues");function Lt(e,r){return typeof r=="bigint"?r.toString():r}s(Lt,"jsonStringifyReplacer");function jt(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}s(jt,"cached");function Xe(e){return e==null}s(Xe,"nullish");function Or(e){let r=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(r,n)}s(Or,"cleanRegex");function $s(e,r){let n=(e.toString().split(".")[1]||"").length,i=r.toString(),t=(i.split(".")[1]||"").length;if(t===0&&/\d?e-\d?/.test(i)){let p=i.match(/\d?e-(\d?)/);p?.[1]&&(t=Number.parseInt(p[1]))}let o=n>t?n:t,a=Number.parseInt(e.toFixed(o).replace(".","")),c=Number.parseInt(r.toFixed(o).replace(".",""));return a%c/10**o}s($s,"floatSafeRemainder");var _d=Symbol("evaluating");function F(e,r,n){let i;Object.defineProperty(e,r,{get(){if(i!==_d)return i===void 0&&(i=_d,i=n()),i},set(t){Object.defineProperty(e,r,{value:t})},configurable:!0})}s(F,"defineLazy");function Pv(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}s(Pv,"objectClone");function Ye(e,r,n){Object.defineProperty(e,r,{value:n,writable:!0,enumerable:!0,configurable:!0})}s(Ye,"assignProp");function Le(...e){let r={};for(let n of e){let i=Object.getOwnPropertyDescriptors(n);Object.assign(r,i)}return Object.defineProperties({},r)}s(Le,"mergeDefs");function Tv(e){return Le(e._zod.def)}s(Tv,"cloneDef");function Sv(e,r){return r?r.reduce((n,i)=>n?.[i],e):e}s(Sv,"getElementAtPath");function Iv(e){let r=Object.keys(e),n=r.map(i=>e[i]);return Promise.all(n).then(i=>{let t={};for(let o=0;o<r.length;o++)t[r[o]]=i[o];return t})}s(Iv,"promiseAllObject");function Ev(e=10){let r="abcdefghijklmnopqrstuvwxyz",n="";for(let i=0;i<e;i++)n+=r[Math.floor(Math.random()*r.length)];return n}s(Ev,"randomString");function Eo(e){return JSON.stringify(e)}s(Eo,"esc");function zs(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}s(zs,"slugify");var wo="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function ft(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}s(ft,"isObject");var ks=jt(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Qe(e){if(ft(e)===!1)return!1;let r=e.constructor;if(r===void 0||typeof r!="function")return!0;let n=r.prototype;return!(ft(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}s(Qe,"isPlainObject");function Ao(e){return Qe(e)?{...e}:Array.isArray(e)?[...e]:e}s(Ao,"shallowClone");function wv(e){let r=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&r++;return r}s(wv,"numKeys");var Av=s(e=>{let r=typeof e;switch(r){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${r}`)}},"getParsedType"),Dr=new Set(["string","number","symbol"]),Os=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Ie(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}s(Ie,"escapeRegex");function se(e,r,n){let i=new e._zod.constr(r??e._zod.def);return(!r||n?.parent)&&(i._zod.parent=e),i}s(se,"clone");function I(e){let r=e;if(!r)return{};if(typeof r=="string")return{error:s(()=>r,"error")};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:s(()=>r.error,"error")}:r}s(I,"normalizeParams");function $v(e){let r;return new Proxy({},{get(n,i,t){return r??(r=e()),Reflect.get(r,i,t)},set(n,i,t,o){return r??(r=e()),Reflect.set(r,i,t,o)},has(n,i){return r??(r=e()),Reflect.has(r,i)},deleteProperty(n,i){return r??(r=e()),Reflect.deleteProperty(r,i)},ownKeys(n){return r??(r=e()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(n,i){return r??(r=e()),Reflect.getOwnPropertyDescriptor(r,i)},defineProperty(n,i,t){return r??(r=e()),Reflect.defineProperty(r,i,t)}})}s($v,"createTransparentProxy");function E(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}s(E,"stringifyPrimitive");function Ds(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}s(Ds,"optionalKeys");var Ns={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]},Rs={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function xd(e,r){let n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=Le(e._zod.def,{get shape(){let a={};for(let c in r){if(!(c in n.shape))throw new Error(`Unrecognized key: "${c}"`);r[c]&&(a[c]=n.shape[c])}return Ye(this,"shape",a),a},checks:[]});return se(e,o)}s(xd,"pick");function bd(e,r){let n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=Le(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let c in r){if(!(c in n.shape))throw new Error(`Unrecognized key: "${c}"`);r[c]&&delete a[c]}return Ye(this,"shape",a),a},checks:[]});return se(e,o)}s(bd,"omit");function Pd(e,r){if(!Qe(r))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let o=e._zod.def.shape;for(let a in r)if(Object.getOwnPropertyDescriptor(o,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let t=Le(e._zod.def,{get shape(){let o={...e._zod.def.shape,...r};return Ye(this,"shape",o),o}});return se(e,t)}s(Pd,"extend");function Td(e,r){if(!Qe(r))throw new Error("Invalid input to safeExtend: expected a plain object");let n=Le(e._zod.def,{get shape(){let i={...e._zod.def.shape,...r};return Ye(this,"shape",i),i}});return se(e,n)}s(Td,"safeExtend");function zv(e,r){let n=Le(e._zod.def,{get shape(){let i={...e._zod.def.shape,...r._zod.def.shape};return Ye(this,"shape",i),i},get catchall(){return r._zod.def.catchall},checks:[]});return se(e,n)}s(zv,"merge");function Sd(e,r,n){let t=r._zod.def.checks;if(t&&t.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=Le(r._zod.def,{get shape(){let c=r._zod.def.shape,p={...c};if(n)for(let d in n){if(!(d in c))throw new Error(`Unrecognized key: "${d}"`);n[d]&&(p[d]=e?new e({type:"optional",innerType:c[d]}):c[d])}else for(let d in c)p[d]=e?new e({type:"optional",innerType:c[d]}):c[d];return Ye(this,"shape",p),p},checks:[]});return se(r,a)}s(Sd,"partial");function Id(e,r,n){let i=Le(r._zod.def,{get shape(){let t=r._zod.def.shape,o={...t};if(n)for(let a in n){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(o[a]=new e({type:"nonoptional",innerType:t[a]}))}else for(let a in t)o[a]=new e({type:"nonoptional",innerType:t[a]});return Ye(this,"shape",o),o}});return se(r,i)}s(Id,"required");function et(e,r=0){if(e.aborted===!0)return!0;for(let n=r;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}s(et,"aborted");function be(e,r){return r.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}s(be,"prefixIssues");function zr(e){return typeof e=="string"?e:e?.message}s(zr,"unwrapMessage");function he(e,r,n){let i={...e,path:e.path??[]};if(!e.message){let t=zr(e.inst?._zod.def?.error?.(e))??zr(r?.error?.(e))??zr(n.customError?.(e))??zr(n.localeError?.(e))??"Invalid input";i.message=t}return delete i.inst,delete i.continue,r?.reportInput||delete i.input,i}s(he,"finalizeIssue");function Nr(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}s(Nr,"getSizableOrigin");function Rr(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}s(Rr,"getLengthableOrigin");function A(e){let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return r}s(A,"parsedType");function Ft(...e){let[r,n,i]=e;return typeof r=="string"?{message:r,code:"custom",input:n,inst:i}:{...r}}s(Ft,"issue");function kv(e){return Object.entries(e).filter(([r,n])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}s(kv,"cleanEnum");function Ed(e){let r=atob(e),n=new Uint8Array(r.length);for(let i=0;i<r.length;i++)n[i]=r.charCodeAt(i);return n}s(Ed,"base64ToUint8Array");function wd(e){let r="";for(let n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return btoa(r)}s(wd,"uint8ArrayToBase64");function Ov(e){let r=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-r.length%4)%4);return Ed(r+n)}s(Ov,"base64urlToUint8Array");function Dv(e){return wd(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}s(Dv,"uint8ArrayToBase64url");function Nv(e){let r=e.replace(/^0x/,"");if(r.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(r.length/2);for(let i=0;i<r.length;i+=2)n[i/2]=Number.parseInt(r.slice(i,i+2),16);return n}s(Nv,"hexToUint8Array");function Rv(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}s(Rv,"uint8ArrayToHex");var As=class{static{s(this,"Class")}constructor(...r){}};var Ad=s((e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),e.message=JSON.stringify(r,Lt,2),Object.defineProperty(e,"toString",{value:s(()=>e.message,"value"),enumerable:!1})},"initializer"),Cr=g("$ZodError",Ad),ye=g("$ZodError",Ad,{Parent:Error});function Zt(e,r=n=>n.message){let n={},i=[];for(let t of e.issues)t.path.length>0?(n[t.path[0]]=n[t.path[0]]||[],n[t.path[0]].push(r(t))):i.push(r(t));return{formErrors:i,fieldErrors:n}}s(Zt,"flattenError");function Bt(e,r=n=>n.message){let n={_errors:[]},i=s(t=>{for(let o of t.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(a=>i({issues:a}));else if(o.code==="invalid_key")i({issues:o.issues});else if(o.code==="invalid_element")i({issues:o.issues});else if(o.path.length===0)n._errors.push(r(o));else{let a=n,c=0;for(;c<o.path.length;){let p=o.path[c];c===o.path.length-1?(a[p]=a[p]||{_errors:[]},a[p]._errors.push(r(o))):a[p]=a[p]||{_errors:[]},a=a[p],c++}}},"processError");return i(e),n}s(Bt,"formatError");function $o(e,r=n=>n.message){let n={errors:[]},i=s((t,o=[])=>{var a,c;for(let p of t.issues)if(p.code==="invalid_union"&&p.errors.length)p.errors.map(d=>i({issues:d},p.path));else if(p.code==="invalid_key")i({issues:p.issues},p.path);else if(p.code==="invalid_element")i({issues:p.issues},p.path);else{let d=[...o,...p.path];if(d.length===0){n.errors.push(r(p));continue}let f=n,b=0;for(;b<d.length;){let v=d[b],u=b===d.length-1;typeof v=="string"?(f.properties??(f.properties={}),(a=f.properties)[v]??(a[v]={errors:[]}),f=f.properties[v]):(f.items??(f.items=[]),(c=f.items)[v]??(c[v]={errors:[]}),f=f.items[v]),u&&f.errors.push(r(p)),b++}}},"processError");return i(e),n}s($o,"treeifyError");function $d(e){let r=[],n=e.map(i=>typeof i=="object"?i.key:i);for(let i of n)typeof i=="number"?r.push(`[${i}]`):typeof i=="symbol"?r.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?r.push(`[${JSON.stringify(i)}]`):(r.length&&r.push("."),r.push(i));return r.join("")}s($d,"toDotPath");function zo(e){let r=[],n=[...e.issues].sort((i,t)=>(i.path??[]).length-(t.path??[]).length);for(let i of n)r.push(`\u2716 ${i.message}`),i.path?.length&&r.push(` \u2192 at ${$d(i.path)}`);return r.join(`
3
+ `)}s(zo,"prettifyError");var Vt=s(e=>(r,n,i,t)=>{let o=i?Object.assign(i,{async:!1}):{async:!1},a=r._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new $e;if(a.issues.length){let c=new(t?.Err??e)(a.issues.map(p=>he(p,o,ee())));throw wo(c,t?.callee),c}return a.value},"_parse"),gt=Vt(ye),Ht=s(e=>async(r,n,i,t)=>{let o=i?Object.assign(i,{async:!0}):{async:!0},a=r._zod.run({value:n,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){let c=new(t?.Err??e)(a.issues.map(p=>he(p,o,ee())));throw wo(c,t?.callee),c}return a.value},"_parseAsync"),ht=Ht(ye),qt=s(e=>(r,n,i)=>{let t=i?{...i,async:!1}:{async:!1},o=r._zod.run({value:n,issues:[]},t);if(o instanceof Promise)throw new $e;return o.issues.length?{success:!1,error:new(e??Cr)(o.issues.map(a=>he(a,t,ee())))}:{success:!0,data:o.value}},"_safeParse"),Gt=qt(ye),Wt=s(e=>async(r,n,i)=>{let t=i?Object.assign(i,{async:!0}):{async:!0},o=r._zod.run({value:n,issues:[]},t);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(a=>he(a,t,ee())))}:{success:!0,data:o.value}},"_safeParseAsync"),Jt=Wt(ye),ko=s(e=>(r,n,i)=>{let t=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Vt(e)(r,n,t)},"_encode"),zd=ko(ye),Oo=s(e=>(r,n,i)=>Vt(e)(r,n,i),"_decode"),kd=Oo(ye),Do=s(e=>async(r,n,i)=>{let t=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Ht(e)(r,n,t)},"_encodeAsync"),Od=Do(ye),No=s(e=>async(r,n,i)=>Ht(e)(r,n,i),"_decodeAsync"),Dd=No(ye),Ro=s(e=>(r,n,i)=>{let t=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return qt(e)(r,n,t)},"_safeEncode"),Nd=Ro(ye),Co=s(e=>(r,n,i)=>qt(e)(r,n,i),"_safeDecode"),Rd=Co(ye),Uo=s(e=>async(r,n,i)=>{let t=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Wt(e)(r,n,t)},"_safeEncodeAsync"),Cd=Uo(ye),Mo=s(e=>async(r,n,i)=>Wt(e)(r,n,i),"_safeDecodeAsync"),Ud=Mo(ye);var ve={};Ae(ve,{base64:()=>Xs,base64url:()=>Lo,bigint:()=>nc,boolean:()=>ic,browserEmail:()=>Vv,cidrv4:()=>Js,cidrv6:()=>Ks,cuid:()=>Cs,cuid2:()=>Us,date:()=>Qs,datetime:()=>tc,domain:()=>Gv,duration:()=>Zs,e164:()=>Ys,email:()=>Vs,emoji:()=>Hs,extendedDuration:()=>Uv,guid:()=>Bs,hex:()=>Wv,hostname:()=>qv,html5Email:()=>Fv,idnEmail:()=>Bv,integer:()=>oc,ipv4:()=>qs,ipv6:()=>Gs,ksuid:()=>js,lowercase:()=>cc,mac:()=>Ws,md5_base64:()=>Kv,md5_base64url:()=>Xv,md5_hex:()=>Jv,nanoid:()=>Fs,null:()=>ac,number:()=>jo,rfc5322Email:()=>Zv,sha1_base64:()=>Qv,sha1_base64url:()=>e_,sha1_hex:()=>Yv,sha256_base64:()=>r_,sha256_base64url:()=>n_,sha256_hex:()=>t_,sha384_base64:()=>i_,sha384_base64url:()=>a_,sha384_hex:()=>o_,sha512_base64:()=>c_,sha512_base64url:()=>u_,sha512_hex:()=>s_,string:()=>rc,time:()=>ec,ulid:()=>Ms,undefined:()=>sc,unicodeEmail:()=>Md,uppercase:()=>uc,uuid:()=>yt,uuid4:()=>Mv,uuid6:()=>Lv,uuid7:()=>jv,xid:()=>Ls});var Cs=/^[cC][^\s-]{8,}$/,Us=/^[0-9a-z]+$/,Ms=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Ls=/^[0-9a-vA-V]{20}$/,js=/^[A-Za-z0-9]{27}$/,Fs=/^[a-zA-Z0-9_-]{21}$/,Zs=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Uv=/^[-+]?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)?)??$/,Bs=/^([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})$/,yt=s(e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,"uuid"),Mv=yt(4),Lv=yt(6),jv=yt(7),Vs=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Fv=/^[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])?)*$/,Zv=/^(([^<>()\[\]\\.,;:\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,}))$/,Md=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Bv=Md,Vv=/^[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])?)*$/,Hv="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Hs(){return new RegExp(Hv,"u")}s(Hs,"emoji");var qs=/^(?:(?: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])$/,Gs=/^(([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}|:))$/,Ws=s(e=>{let r=Ie(e??":");return new RegExp(`^(?:[0-9A-F]{2}${r}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${r}){5}[0-9a-f]{2}$`)},"mac"),Js=/^((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])$/,Ks=/^(([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])$/,Xs=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Lo=/^[A-Za-z0-9_-]*$/,qv=/^(?=.{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])?)*\.?$/,Gv=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Ys=/^\+[1-9]\d{6,14}$/,Ld="(?:(?:\\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])))",Qs=new RegExp(`^${Ld}$`);function jd(e){let r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${r}`:e.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${e.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}s(jd,"timeSource");function ec(e){return new RegExp(`^${jd(e)}$`)}s(ec,"time");function tc(e){let r=jd({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i=`${r}(?:${n.join("|")})`;return new RegExp(`^${Ld}T(?:${i})$`)}s(tc,"datetime");var rc=s(e=>{let r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},"string"),nc=/^-?\d+n?$/,oc=/^-?\d+$/,jo=/^-?\d+(?:\.\d+)?$/,ic=/^(?:true|false)$/i,ac=/^null$/i;var sc=/^undefined$/i;var cc=/^[^A-Z]*$/,uc=/^[^a-z]*$/,Wv=/^[0-9a-fA-F]*$/;function Ur(e,r){return new RegExp(`^[A-Za-z0-9+/]{${e}}${r}$`)}s(Ur,"fixedBase64");function Mr(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}s(Mr,"fixedBase64url");var Jv=/^[0-9a-fA-F]{32}$/,Kv=Ur(22,"=="),Xv=Mr(22),Yv=/^[0-9a-fA-F]{40}$/,Qv=Ur(27,"="),e_=Mr(27),t_=/^[0-9a-fA-F]{64}$/,r_=Ur(43,"="),n_=Mr(43),o_=/^[0-9a-fA-F]{96}$/,i_=Ur(64,""),a_=Mr(64),s_=/^[0-9a-fA-F]{128}$/,c_=Ur(86,"=="),u_=Mr(86);var K=g("$ZodCheck",(e,r)=>{var n;e._zod??(e._zod={}),e._zod.def=r,(n=e._zod).onattach??(n.onattach=[])}),Zd={number:"number",bigint:"bigint",object:"date"},Fo=g("$ZodCheckLessThan",(e,r)=>{K.init(e,r);let n=Zd[typeof r.value];e._zod.onattach.push(i=>{let t=i._zod.bag,o=(r.inclusive?t.maximum:t.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<o&&(r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value)}),e._zod.check=i=>{(r.inclusive?i.value<=r.value:i.value<r.value)||i.issues.push({origin:n,code:"too_big",maximum:typeof r.value=="object"?r.value.getTime():r.value,input:i.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),Zo=g("$ZodCheckGreaterThan",(e,r)=>{K.init(e,r);let n=Zd[typeof r.value];e._zod.onattach.push(i=>{let t=i._zod.bag,o=(r.inclusive?t.minimum:t.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>o&&(r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value)}),e._zod.check=i=>{(r.inclusive?i.value>=r.value:i.value>r.value)||i.issues.push({origin:n,code:"too_small",minimum:typeof r.value=="object"?r.value.getTime():r.value,input:i.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),lc=g("$ZodCheckMultipleOf",(e,r)=>{K.init(e,r),e._zod.onattach.push(n=>{var i;(i=n._zod.bag).multipleOf??(i.multipleOf=r.value)}),e._zod.check=n=>{if(typeof n.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%r.value===BigInt(0):$s(n.value,r.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:r.value,input:n.value,inst:e,continue:!r.abort})}}),pc=g("$ZodCheckNumberFormat",(e,r)=>{K.init(e,r),r.format=r.format||"float64";let n=r.format?.includes("int"),i=n?"int":"number",[t,o]=Ns[r.format];e._zod.onattach.push(a=>{let c=a._zod.bag;c.format=r.format,c.minimum=t,c.maximum=o,n&&(c.pattern=oc)}),e._zod.check=a=>{let c=a.value;if(n){if(!Number.isInteger(c)){a.issues.push({expected:i,format:r.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){c>0?a.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!r.abort}):a.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!r.abort});return}}c<t&&a.issues.push({origin:"number",input:c,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!r.abort}),c>o&&a.issues.push({origin:"number",input:c,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!r.abort})}}),dc=g("$ZodCheckBigIntFormat",(e,r)=>{K.init(e,r);let[n,i]=Rs[r.format];e._zod.onattach.push(t=>{let o=t._zod.bag;o.format=r.format,o.minimum=n,o.maximum=i}),e._zod.check=t=>{let o=t.value;o<n&&t.issues.push({origin:"bigint",input:o,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!r.abort}),o>i&&t.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!r.abort})}}),mc=g("$ZodCheckMaxSize",(e,r)=>{var n;K.init(e,r),(n=e._zod.def).when??(n.when=i=>{let t=i.value;return!Xe(t)&&t.size!==void 0}),e._zod.onattach.push(i=>{let t=i._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(i._zod.bag.maximum=r.maximum)}),e._zod.check=i=>{let t=i.value;t.size<=r.maximum||i.issues.push({origin:Nr(t),code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),fc=g("$ZodCheckMinSize",(e,r)=>{var n;K.init(e,r),(n=e._zod.def).when??(n.when=i=>{let t=i.value;return!Xe(t)&&t.size!==void 0}),e._zod.onattach.push(i=>{let t=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(i._zod.bag.minimum=r.minimum)}),e._zod.check=i=>{let t=i.value;t.size>=r.minimum||i.issues.push({origin:Nr(t),code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),gc=g("$ZodCheckSizeEquals",(e,r)=>{var n;K.init(e,r),(n=e._zod.def).when??(n.when=i=>{let t=i.value;return!Xe(t)&&t.size!==void 0}),e._zod.onattach.push(i=>{let t=i._zod.bag;t.minimum=r.size,t.maximum=r.size,t.size=r.size}),e._zod.check=i=>{let t=i.value,o=t.size;if(o===r.size)return;let a=o>r.size;i.issues.push({origin:Nr(t),...a?{code:"too_big",maximum:r.size}:{code:"too_small",minimum:r.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!r.abort})}}),hc=g("$ZodCheckMaxLength",(e,r)=>{var n;K.init(e,r),(n=e._zod.def).when??(n.when=i=>{let t=i.value;return!Xe(t)&&t.length!==void 0}),e._zod.onattach.push(i=>{let t=i._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(i._zod.bag.maximum=r.maximum)}),e._zod.check=i=>{let t=i.value;if(t.length<=r.maximum)return;let a=Rr(t);i.issues.push({origin:a,code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),yc=g("$ZodCheckMinLength",(e,r)=>{var n;K.init(e,r),(n=e._zod.def).when??(n.when=i=>{let t=i.value;return!Xe(t)&&t.length!==void 0}),e._zod.onattach.push(i=>{let t=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(i._zod.bag.minimum=r.minimum)}),e._zod.check=i=>{let t=i.value;if(t.length>=r.minimum)return;let a=Rr(t);i.issues.push({origin:a,code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),vc=g("$ZodCheckLengthEquals",(e,r)=>{var n;K.init(e,r),(n=e._zod.def).when??(n.when=i=>{let t=i.value;return!Xe(t)&&t.length!==void 0}),e._zod.onattach.push(i=>{let t=i._zod.bag;t.minimum=r.length,t.maximum=r.length,t.length=r.length}),e._zod.check=i=>{let t=i.value,o=t.length;if(o===r.length)return;let a=Rr(t),c=o>r.length;i.issues.push({origin:a,...c?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!r.abort})}}),Kt=g("$ZodCheckStringFormat",(e,r)=>{var n,i;K.init(e,r),e._zod.onattach.push(t=>{let o=t._zod.bag;o.format=r.format,r.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(r.pattern))}),r.pattern?(n=e._zod).check??(n.check=t=>{r.pattern.lastIndex=0,!r.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:r.format,input:t.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:e,continue:!r.abort})}):(i=e._zod).check??(i.check=()=>{})}),_c=g("$ZodCheckRegex",(e,r)=>{Kt.init(e,r),e._zod.check=n=>{r.pattern.lastIndex=0,!r.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort})}}),xc=g("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=cc),Kt.init(e,r)}),bc=g("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=uc),Kt.init(e,r)}),Pc=g("$ZodCheckIncludes",(e,r)=>{K.init(e,r);let n=Ie(r.includes),i=new RegExp(typeof r.position=="number"?`^.{${r.position}}${n}`:n);r.pattern=i,e._zod.onattach.push(t=>{let o=t._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),e._zod.check=t=>{t.value.includes(r.includes,r.position)||t.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:t.value,inst:e,continue:!r.abort})}}),Tc=g("$ZodCheckStartsWith",(e,r)=>{K.init(e,r);let n=new RegExp(`^${Ie(r.prefix)}.*`);r.pattern??(r.pattern=n),e._zod.onattach.push(i=>{let t=i._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=i=>{i.value.startsWith(r.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:i.value,inst:e,continue:!r.abort})}}),Sc=g("$ZodCheckEndsWith",(e,r)=>{K.init(e,r);let n=new RegExp(`.*${Ie(r.suffix)}$`);r.pattern??(r.pattern=n),e._zod.onattach.push(i=>{let t=i._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=i=>{i.value.endsWith(r.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:i.value,inst:e,continue:!r.abort})}});function Fd(e,r,n){e.issues.length&&r.issues.push(...be(n,e.issues))}s(Fd,"handleCheckPropertyResult");var Ic=g("$ZodCheckProperty",(e,r)=>{K.init(e,r),e._zod.check=n=>{let i=r.schema._zod.run({value:n.value[r.property],issues:[]},{});if(i instanceof Promise)return i.then(t=>Fd(t,n,r.property));Fd(i,n,r.property)}}),Ec=g("$ZodCheckMimeType",(e,r)=>{K.init(e,r);let n=new Set(r.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=r.mime}),e._zod.check=i=>{n.has(i.value.type)||i.issues.push({code:"invalid_value",values:r.mime,input:i.value.type,inst:e,continue:!r.abort})}}),wc=g("$ZodCheckOverwrite",(e,r)=>{K.init(e,r),e._zod.check=n=>{n.value=r.tx(n.value)}});var Lr=class{static{s(this,"Doc")}constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}let i=r.split(`
4
+ `).filter(a=>a),t=Math.min(...i.map(a=>a.length-a.trimStart().length)),o=i.map(a=>a.slice(t)).map(a=>" ".repeat(this.indent*2)+a);for(let a of o)this.content.push(a)}compile(){let r=Function,n=this?.args,t=[...(this?.content??[""]).map(o=>` ${o}`)];return new r(...n,t.join(`
5
+ `))}};var Ac={major:4,minor:3,patch:6};var R=g("$ZodType",(e,r)=>{var n;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=Ac;let i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(let t of i)for(let o of t._zod.onattach)o(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=s((a,c,p)=>{let d=et(a),f;for(let b of c){if(b._zod.def.when){if(!b._zod.def.when(a))continue}else if(d)continue;let v=a.issues.length,u=b._zod.check(a);if(u instanceof Promise&&p?.async===!1)throw new $e;if(f||u instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await u,a.issues.length!==v&&(d||(d=et(a,v)))});else{if(a.issues.length===v)continue;d||(d=et(a,v))}}return f?f.then(()=>a):a},"runChecks"),o=s((a,c,p)=>{if(et(a))return a.aborted=!0,a;let d=t(c,i,p);if(d instanceof Promise){if(p.async===!1)throw new $e;return d.then(f=>e._zod.parse(f,p))}return e._zod.parse(d,p)},"handleCanaryResult");e._zod.run=(a,c)=>{if(c.skipChecks)return e._zod.parse(a,c);if(c.direction==="backward"){let d=e._zod.parse({value:a.value,issues:[]},{...c,skipChecks:!0});return d instanceof Promise?d.then(f=>o(f,a,c)):o(d,a,c)}let p=e._zod.parse(a,c);if(p instanceof Promise){if(c.async===!1)throw new $e;return p.then(d=>t(d,i,c))}return t(p,i,c)}}F(e,"~standard",()=>({validate:s(t=>{try{let o=Gt(e,t);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return Jt(e,t).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},"validate"),vendor:"zod",version:1}))}),je=g("$ZodString",(e,r)=>{R.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??rc(e._zod.bag),e._zod.parse=(n,i)=>{if(r.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),W=g("$ZodStringFormat",(e,r)=>{Kt.init(e,r),je.init(e,r)}),Wo=g("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=Bs),W.init(e,r)}),Jo=g("$ZodUUID",(e,r)=>{if(r.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(i===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=yt(i))}else r.pattern??(r.pattern=yt());W.init(e,r)}),Ko=g("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=Vs),W.init(e,r)}),jr=g("$ZodURL",(e,r)=>{W.init(e,r),e._zod.check=n=>{try{let i=n.value.trim(),t=new URL(i);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(t.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:r.hostname.source,input:n.value,inst:e,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:n.value,inst:e,continue:!r.abort})),r.normalize?n.value=t.href:n.value=i;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!r.abort})}}}),Xo=g("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=Hs()),W.init(e,r)}),Yo=g("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=Fs),W.init(e,r)}),Qo=g("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=Cs),W.init(e,r)}),ei=g("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=Us),W.init(e,r)}),ti=g("$ZodULID",(e,r)=>{r.pattern??(r.pattern=Ms),W.init(e,r)}),ri=g("$ZodXID",(e,r)=>{r.pattern??(r.pattern=Ls),W.init(e,r)}),ni=g("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=js),W.init(e,r)}),oi=g("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=tc(r)),W.init(e,r)}),ii=g("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=Qs),W.init(e,r)}),ai=g("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=ec(r)),W.init(e,r)}),si=g("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=Zs),W.init(e,r)}),ci=g("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=qs),W.init(e,r),e._zod.bag.format="ipv4"}),ui=g("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=Gs),W.init(e,r),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!r.abort})}}}),li=g("$ZodMAC",(e,r)=>{r.pattern??(r.pattern=Ws(r.delimiter)),W.init(e,r),e._zod.bag.format="mac"}),pi=g("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=Js),W.init(e,r)}),di=g("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=Ks),W.init(e,r),e._zod.check=n=>{let i=n.value.split("/");try{if(i.length!==2)throw new Error;let[t,o]=i;if(!o)throw new Error;let a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${t}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!r.abort})}}});function zc(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}s(zc,"isValidBase64");var mi=g("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=Xs),W.init(e,r),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{zc(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!r.abort})}});function tm(e){if(!Lo.test(e))return!1;let r=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=r.padEnd(Math.ceil(r.length/4)*4,"=");return zc(n)}s(tm,"isValidBase64URL");var fi=g("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=Lo),W.init(e,r),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{tm(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!r.abort})}}),gi=g("$ZodE164",(e,r)=>{r.pattern??(r.pattern=Ys),W.init(e,r)});function rm(e,r=null){try{let n=e.split(".");if(n.length!==3)return!1;let[i]=n;if(!i)return!1;let t=JSON.parse(atob(i));return!("typ"in t&&t?.typ!=="JWT"||!t.alg||r&&(!("alg"in t)||t.alg!==r))}catch{return!1}}s(rm,"isValidJWT");var hi=g("$ZodJWT",(e,r)=>{W.init(e,r),e._zod.check=n=>{rm(n.value,r.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!r.abort})}}),yi=g("$ZodCustomStringFormat",(e,r)=>{W.init(e,r),e._zod.check=n=>{r.fn(n.value)||n.issues.push({code:"invalid_format",format:r.format,input:n.value,inst:e,continue:!r.abort})}}),Xt=g("$ZodNumber",(e,r)=>{R.init(e,r),e._zod.pattern=e._zod.bag.pattern??jo,e._zod.parse=(n,i)=>{if(r.coerce)try{n.value=Number(n.value)}catch{}let t=n.value;if(typeof t=="number"&&!Number.isNaN(t)&&Number.isFinite(t))return n;let o=typeof t=="number"?Number.isNaN(t)?"NaN":Number.isFinite(t)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:t,inst:e,...o?{received:o}:{}}),n}}),Fr=g("$ZodNumberFormat",(e,r)=>{pc.init(e,r),Xt.init(e,r)}),vt=g("$ZodBoolean",(e,r)=>{R.init(e,r),e._zod.pattern=ic,e._zod.parse=(n,i)=>{if(r.coerce)try{n.value=!!n.value}catch{}let t=n.value;return typeof t=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:t,inst:e}),n}}),Yt=g("$ZodBigInt",(e,r)=>{R.init(e,r),e._zod.pattern=nc,e._zod.parse=(n,i)=>{if(r.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),vi=g("$ZodBigIntFormat",(e,r)=>{dc.init(e,r),Yt.init(e,r)}),_i=g("$ZodSymbol",(e,r)=>{R.init(e,r),e._zod.parse=(n,i)=>{let t=n.value;return typeof t=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:t,inst:e}),n}}),xi=g("$ZodUndefined",(e,r)=>{R.init(e,r),e._zod.pattern=sc,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,i)=>{let t=n.value;return typeof t>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:t,inst:e}),n}}),bi=g("$ZodNull",(e,r)=>{R.init(e,r),e._zod.pattern=ac,e._zod.values=new Set([null]),e._zod.parse=(n,i)=>{let t=n.value;return t===null||n.issues.push({expected:"null",code:"invalid_type",input:t,inst:e}),n}}),Zr=g("$ZodAny",(e,r)=>{R.init(e,r),e._zod.parse=n=>n}),Br=g("$ZodUnknown",(e,r)=>{R.init(e,r),e._zod.parse=n=>n}),Pi=g("$ZodNever",(e,r)=>{R.init(e,r),e._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),Vr=g("$ZodVoid",(e,r)=>{R.init(e,r),e._zod.parse=(n,i)=>{let t=n.value;return typeof t>"u"||n.issues.push({expected:"void",code:"invalid_type",input:t,inst:e}),n}}),Hr=g("$ZodDate",(e,r)=>{R.init(e,r),e._zod.parse=(n,i)=>{if(r.coerce)try{n.value=new Date(n.value)}catch{}let t=n.value,o=t instanceof Date;return o&&!Number.isNaN(t.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:t,...o?{received:"Invalid Date"}:{},inst:e}),n}});function Vd(e,r,n){e.issues.length&&r.issues.push(...be(n,e.issues)),r.value[n]=e.value}s(Vd,"handleArrayResult");var qr=g("$ZodArray",(e,r)=>{R.init(e,r),e._zod.parse=(n,i)=>{let t=n.value;if(!Array.isArray(t))return n.issues.push({expected:"array",code:"invalid_type",input:t,inst:e}),n;n.value=Array(t.length);let o=[];for(let a=0;a<t.length;a++){let c=t[a],p=r.element._zod.run({value:c,issues:[]},i);p instanceof Promise?o.push(p.then(d=>Vd(d,n,a))):Vd(p,n,a)}return o.length?Promise.all(o).then(()=>n):n}});function Go(e,r,n,i,t){if(e.issues.length){if(t&&!(n in i))return;r.issues.push(...be(n,e.issues))}e.value===void 0?n in i&&(r.value[n]=void 0):r.value[n]=e.value}s(Go,"handlePropertyResult");function nm(e){let r=Object.keys(e.shape);for(let i of r)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);let n=Ds(e.shape);return{...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(n)}}s(nm,"normalizeDef");function om(e,r,n,i,t,o){let a=[],c=t.keySet,p=t.catchall._zod,d=p.def.type,f=p.optout==="optional";for(let b in r){if(c.has(b))continue;if(d==="never"){a.push(b);continue}let v=p.run({value:r[b],issues:[]},i);v instanceof Promise?e.push(v.then(u=>Go(u,n,b,r,f))):Go(v,n,b,r,f)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:r,inst:o}),e.length?Promise.all(e).then(()=>n):n}s(om,"handleCatchall");var Ti=g("$ZodObject",(e,r)=>{if(R.init(e,r),!Object.getOwnPropertyDescriptor(r,"shape")?.get){let c=r.shape;Object.defineProperty(r,"shape",{get:s(()=>{let p={...c};return Object.defineProperty(r,"shape",{value:p}),p},"get")})}let i=jt(()=>nm(r));F(e._zod,"propValues",()=>{let c=r.shape,p={};for(let d in c){let f=c[d]._zod;if(f.values){p[d]??(p[d]=new Set);for(let b of f.values)p[d].add(b)}}return p});let t=ft,o=r.catchall,a;e._zod.parse=(c,p)=>{a??(a=i.value);let d=c.value;if(!t(d))return c.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),c;c.value={};let f=[],b=a.shape;for(let v of a.keys){let u=b[v],h=u._zod.optout==="optional",T=u._zod.run({value:d[v],issues:[]},p);T instanceof Promise?f.push(T.then(S=>Go(S,c,v,d,h))):Go(T,c,v,d,h)}return o?om(f,d,c,p,i.value,e):f.length?Promise.all(f).then(()=>c):c}}),kc=g("$ZodObjectJIT",(e,r)=>{Ti.init(e,r);let n=e._zod.parse,i=jt(()=>nm(r)),t=s(v=>{let u=new Lr(["shape","payload","ctx"]),h=i.value,T=s(U=>{let Y=Eo(U);return`shape[${Y}]._zod.run({ value: input[${Y}], issues: [] }, ctx)`},"parseStr");u.write("const input = payload.value;");let S=Object.create(null),P=0;for(let U of h.keys)S[U]=`key_${P++}`;u.write("const newResult = {};");for(let U of h.keys){let Y=S[U],ne=Eo(U),Is=v[U]?._zod?.optout==="optional";u.write(`const ${Y} = ${T(U)};`),Is?u.write(`
6
+ if (${Y}.issues.length) {
7
+ if (${ne} in input) {
8
+ payload.issues = payload.issues.concat(${Y}.issues.map(iss => ({
9
+ ...iss,
10
+ path: iss.path ? [${ne}, ...iss.path] : [${ne}]
11
+ })));
12
+ }
13
+ }
14
+
15
+ if (${Y}.value === undefined) {
16
+ if (${ne} in input) {
17
+ newResult[${ne}] = undefined;
18
+ }
19
+ } else {
20
+ newResult[${ne}] = ${Y}.value;
21
+ }
22
+
23
+ `):u.write(`
24
+ if (${Y}.issues.length) {
25
+ payload.issues = payload.issues.concat(${Y}.issues.map(iss => ({
26
+ ...iss,
27
+ path: iss.path ? [${ne}, ...iss.path] : [${ne}]
28
+ })));
29
+ }
30
+
31
+ if (${Y}.value === undefined) {
32
+ if (${ne} in input) {
33
+ newResult[${ne}] = undefined;
34
+ }
35
+ } else {
36
+ newResult[${ne}] = ${Y}.value;
37
+ }
38
+
39
+ `)}u.write("payload.value = newResult;"),u.write("return payload;");let $=u.compile();return(U,Y)=>$(v,U,Y)},"generateFastpass"),o,a=ft,c=!Ar.jitless,d=c&&ks.value,f=r.catchall,b;e._zod.parse=(v,u)=>{b??(b=i.value);let h=v.value;return a(h)?c&&d&&u?.async===!1&&u.jitless!==!0?(o||(o=t(r.shape)),v=o(v,u),f?om([],h,v,u,b,e):v):n(v,u):(v.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),v)}});function Hd(e,r,n,i){for(let o of e)if(o.issues.length===0)return r.value=o.value,r;let t=e.filter(o=>!et(o));return t.length===1?(r.value=t[0].value,t[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:e.map(o=>o.issues.map(a=>he(a,i,ee())))}),r)}s(Hd,"handleUnionResults");var _t=g("$ZodUnion",(e,r)=>{R.init(e,r),F(e._zod,"optin",()=>r.options.some(t=>t._zod.optin==="optional")?"optional":void 0),F(e._zod,"optout",()=>r.options.some(t=>t._zod.optout==="optional")?"optional":void 0),F(e._zod,"values",()=>{if(r.options.every(t=>t._zod.values))return new Set(r.options.flatMap(t=>Array.from(t._zod.values)))}),F(e._zod,"pattern",()=>{if(r.options.every(t=>t._zod.pattern)){let t=r.options.map(o=>o._zod.pattern);return new RegExp(`^(${t.map(o=>Or(o.source)).join("|")})$`)}});let n=r.options.length===1,i=r.options[0]._zod.run;e._zod.parse=(t,o)=>{if(n)return i(t,o);let a=!1,c=[];for(let p of r.options){let d=p._zod.run({value:t.value,issues:[]},o);if(d instanceof Promise)c.push(d),a=!0;else{if(d.issues.length===0)return d;c.push(d)}}return a?Promise.all(c).then(p=>Hd(p,t,e,o)):Hd(c,t,e,o)}});function qd(e,r,n,i){let t=e.filter(o=>o.issues.length===0);return t.length===1?(r.value=t[0].value,r):(t.length===0?r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:e.map(o=>o.issues.map(a=>he(a,i,ee())))}):r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:[],inclusive:!1}),r)}s(qd,"handleExclusiveUnionResults");var Si=g("$ZodXor",(e,r)=>{_t.init(e,r),r.inclusive=!1;let n=r.options.length===1,i=r.options[0]._zod.run;e._zod.parse=(t,o)=>{if(n)return i(t,o);let a=!1,c=[];for(let p of r.options){let d=p._zod.run({value:t.value,issues:[]},o);d instanceof Promise?(c.push(d),a=!0):c.push(d)}return a?Promise.all(c).then(p=>qd(p,t,e,o)):qd(c,t,e,o)}}),Gr=g("$ZodDiscriminatedUnion",(e,r)=>{r.inclusive=!1,_t.init(e,r);let n=e._zod.parse;F(e._zod,"propValues",()=>{let t={};for(let o of r.options){let a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(o)}"`);for(let[c,p]of Object.entries(a)){t[c]||(t[c]=new Set);for(let d of p)t[c].add(d)}}return t});let i=jt(()=>{let t=r.options,o=new Map;for(let a of t){let c=a._zod.propValues?.[r.discriminator];if(!c||c.size===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(a)}"`);for(let p of c){if(o.has(p))throw new Error(`Duplicate discriminator value "${String(p)}"`);o.set(p,a)}}return o});e._zod.parse=(t,o)=>{let a=t.value;if(!ft(a))return t.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),t;let c=i.value.get(a?.[r.discriminator]);return c?c._zod.run(t,o):r.unionFallback?n(t,o):(t.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:r.discriminator,input:a,path:[r.discriminator],inst:e}),t)}}),Ii=g("$ZodIntersection",(e,r)=>{R.init(e,r),e._zod.parse=(n,i)=>{let t=n.value,o=r.left._zod.run({value:t,issues:[]},i),a=r.right._zod.run({value:t,issues:[]},i);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([p,d])=>Gd(n,p,d)):Gd(n,o,a)}});function $c(e,r){if(e===r)return{valid:!0,data:e};if(e instanceof Date&&r instanceof Date&&+e==+r)return{valid:!0,data:e};if(Qe(e)&&Qe(r)){let n=Object.keys(r),i=Object.keys(e).filter(o=>n.indexOf(o)!==-1),t={...e,...r};for(let o of i){let a=$c(e[o],r[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};t[o]=a.data}return{valid:!0,data:t}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let i=0;i<e.length;i++){let t=e[i],o=r[i],a=$c(t,o);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}s($c,"mergeValues");function Gd(e,r,n){let i=new Map,t;for(let c of r.issues)if(c.code==="unrecognized_keys"){t??(t=c);for(let p of c.keys)i.has(p)||i.set(p,{}),i.get(p).l=!0}else e.issues.push(c);for(let c of n.issues)if(c.code==="unrecognized_keys")for(let p of c.keys)i.has(p)||i.set(p,{}),i.get(p).r=!0;else e.issues.push(c);let o=[...i].filter(([,c])=>c.l&&c.r).map(([c])=>c);if(o.length&&t&&e.issues.push({...t,keys:o}),et(e))return e;let a=$c(r.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}s(Gd,"handleIntersectionResults");var Wr=g("$ZodTuple",(e,r)=>{R.init(e,r);let n=r.items;e._zod.parse=(i,t)=>{let o=i.value;if(!Array.isArray(o))return i.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];let a=[],c=[...n].reverse().findIndex(f=>f._zod.optin!=="optional"),p=c===-1?0:n.length-c;if(!r.rest){let f=o.length>n.length,b=o.length<p-1;if(f||b)return i.issues.push({...f?{code:"too_big",maximum:n.length,inclusive:!0}:{code:"too_small",minimum:n.length},input:o,inst:e,origin:"array"}),i}let d=-1;for(let f of n){if(d++,d>=o.length&&d>=p)continue;let b=f._zod.run({value:o[d],issues:[]},t);b instanceof Promise?a.push(b.then(v=>Bo(v,i,d))):Bo(b,i,d)}if(r.rest){let f=o.slice(n.length);for(let b of f){d++;let v=r.rest._zod.run({value:b,issues:[]},t);v instanceof Promise?a.push(v.then(u=>Bo(u,i,d))):Bo(v,i,d)}}return a.length?Promise.all(a).then(()=>i):i}});function Bo(e,r,n){e.issues.length&&r.issues.push(...be(n,e.issues)),r.value[n]=e.value}s(Bo,"handleTupleResult");var Jr=g("$ZodRecord",(e,r)=>{R.init(e,r),e._zod.parse=(n,i)=>{let t=n.value;if(!Qe(t))return n.issues.push({expected:"record",code:"invalid_type",input:t,inst:e}),n;let o=[],a=r.keyType._zod.values;if(a){n.value={};let c=new Set;for(let d of a)if(typeof d=="string"||typeof d=="number"||typeof d=="symbol"){c.add(typeof d=="number"?d.toString():d);let f=r.valueType._zod.run({value:t[d],issues:[]},i);f instanceof Promise?o.push(f.then(b=>{b.issues.length&&n.issues.push(...be(d,b.issues)),n.value[d]=b.value})):(f.issues.length&&n.issues.push(...be(d,f.issues)),n.value[d]=f.value)}let p;for(let d in t)c.has(d)||(p=p??[],p.push(d));p&&p.length>0&&n.issues.push({code:"unrecognized_keys",input:t,inst:e,keys:p})}else{n.value={};for(let c of Reflect.ownKeys(t)){if(c==="__proto__")continue;let p=r.keyType._zod.run({value:c,issues:[]},i);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof c=="string"&&jo.test(c)&&p.issues.length){let b=r.keyType._zod.run({value:Number(c),issues:[]},i);if(b instanceof Promise)throw new Error("Async schemas not supported in object keys currently");b.issues.length===0&&(p=b)}if(p.issues.length){r.mode==="loose"?n.value[c]=t[c]:n.issues.push({code:"invalid_key",origin:"record",issues:p.issues.map(b=>he(b,i,ee())),input:c,path:[c],inst:e});continue}let f=r.valueType._zod.run({value:t[c],issues:[]},i);f instanceof Promise?o.push(f.then(b=>{b.issues.length&&n.issues.push(...be(c,b.issues)),n.value[p.value]=b.value})):(f.issues.length&&n.issues.push(...be(c,f.issues)),n.value[p.value]=f.value)}}return o.length?Promise.all(o).then(()=>n):n}}),Ei=g("$ZodMap",(e,r)=>{R.init(e,r),e._zod.parse=(n,i)=>{let t=n.value;if(!(t instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:t,inst:e}),n;let o=[];n.value=new Map;for(let[a,c]of t){let p=r.keyType._zod.run({value:a,issues:[]},i),d=r.valueType._zod.run({value:c,issues:[]},i);p instanceof Promise||d instanceof Promise?o.push(Promise.all([p,d]).then(([f,b])=>{Wd(f,b,n,a,t,e,i)})):Wd(p,d,n,a,t,e,i)}return o.length?Promise.all(o).then(()=>n):n}});function Wd(e,r,n,i,t,o,a){e.issues.length&&(Dr.has(typeof i)?n.issues.push(...be(i,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:t,inst:o,issues:e.issues.map(c=>he(c,a,ee()))})),r.issues.length&&(Dr.has(typeof i)?n.issues.push(...be(i,r.issues)):n.issues.push({origin:"map",code:"invalid_element",input:t,inst:o,key:i,issues:r.issues.map(c=>he(c,a,ee()))})),n.value.set(e.value,r.value)}s(Wd,"handleMapResult");var wi=g("$ZodSet",(e,r)=>{R.init(e,r),e._zod.parse=(n,i)=>{let t=n.value;if(!(t instanceof Set))return n.issues.push({input:t,inst:e,expected:"set",code:"invalid_type"}),n;let o=[];n.value=new Set;for(let a of t){let c=r.valueType._zod.run({value:a,issues:[]},i);c instanceof Promise?o.push(c.then(p=>Jd(p,n))):Jd(c,n)}return o.length?Promise.all(o).then(()=>n):n}});function Jd(e,r){e.issues.length&&r.issues.push(...e.issues),r.value.add(e.value)}s(Jd,"handleSetResult");var Kr=g("$ZodEnum",(e,r)=>{R.init(e,r);let n=kr(r.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(t=>Dr.has(typeof t)).map(t=>typeof t=="string"?Ie(t):t.toString()).join("|")})$`),e._zod.parse=(t,o)=>{let a=t.value;return i.has(a)||t.issues.push({code:"invalid_value",values:n,input:a,inst:e}),t}}),Xr=g("$ZodLiteral",(e,r)=>{if(R.init(e,r),r.values.length===0)throw new Error("Cannot create literal schema with no valid values");let n=new Set(r.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.values.map(i=>typeof i=="string"?Ie(i):i?Ie(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,t)=>{let o=i.value;return n.has(o)||i.issues.push({code:"invalid_value",values:r.values,input:o,inst:e}),i}}),Ai=g("$ZodFile",(e,r)=>{R.init(e,r),e._zod.parse=(n,i)=>{let t=n.value;return t instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:t,inst:e}),n}}),Yr=g("$ZodTransform",(e,r)=>{R.init(e,r),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new Ke(e.constructor.name);let t=r.transform(n.value,n);if(i.async)return(t instanceof Promise?t:Promise.resolve(t)).then(a=>(n.value=a,n));if(t instanceof Promise)throw new $e;return n.value=t,n}});function Kd(e,r){return e.issues.length&&r===void 0?{issues:[],value:void 0}:e}s(Kd,"handleOptionalResult");var Qt=g("$ZodOptional",(e,r)=>{R.init(e,r),e._zod.optin="optional",e._zod.optout="optional",F(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),F(e._zod,"pattern",()=>{let n=r.innerType._zod.pattern;return n?new RegExp(`^(${Or(n.source)})?$`):void 0}),e._zod.parse=(n,i)=>{if(r.innerType._zod.optin==="optional"){let t=r.innerType._zod.run(n,i);return t instanceof Promise?t.then(o=>Kd(o,n.value)):Kd(t,n.value)}return n.value===void 0?n:r.innerType._zod.run(n,i)}}),$i=g("$ZodExactOptional",(e,r)=>{Qt.init(e,r),F(e._zod,"values",()=>r.innerType._zod.values),F(e._zod,"pattern",()=>r.innerType._zod.pattern),e._zod.parse=(n,i)=>r.innerType._zod.run(n,i)}),Qr=g("$ZodNullable",(e,r)=>{R.init(e,r),F(e._zod,"optin",()=>r.innerType._zod.optin),F(e._zod,"optout",()=>r.innerType._zod.optout),F(e._zod,"pattern",()=>{let n=r.innerType._zod.pattern;return n?new RegExp(`^(${Or(n.source)}|null)$`):void 0}),F(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:r.innerType._zod.run(n,i)}),zi=g("$ZodDefault",(e,r)=>{R.init(e,r),e._zod.optin="optional",F(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return r.innerType._zod.run(n,i);if(n.value===void 0)return n.value=r.defaultValue,n;let t=r.innerType._zod.run(n,i);return t instanceof Promise?t.then(o=>Xd(o,r)):Xd(t,r)}});function Xd(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}s(Xd,"handleDefaultResult");var ki=g("$ZodPrefault",(e,r)=>{R.init(e,r),e._zod.optin="optional",F(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,i)=>(i.direction==="backward"||n.value===void 0&&(n.value=r.defaultValue),r.innerType._zod.run(n,i))}),Oi=g("$ZodNonOptional",(e,r)=>{R.init(e,r),F(e._zod,"values",()=>{let n=r.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,i)=>{let t=r.innerType._zod.run(n,i);return t instanceof Promise?t.then(o=>Yd(o,e)):Yd(t,e)}});function Yd(e,r){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r}),e}s(Yd,"handleNonOptionalResult");var Di=g("$ZodSuccess",(e,r)=>{R.init(e,r),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new Ke("ZodSuccess");let t=r.innerType._zod.run(n,i);return t instanceof Promise?t.then(o=>(n.value=o.issues.length===0,n)):(n.value=t.issues.length===0,n)}}),Ni=g("$ZodCatch",(e,r)=>{R.init(e,r),F(e._zod,"optin",()=>r.innerType._zod.optin),F(e._zod,"optout",()=>r.innerType._zod.optout),F(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return r.innerType._zod.run(n,i);let t=r.innerType._zod.run(n,i);return t instanceof Promise?t.then(o=>(n.value=o.value,o.issues.length&&(n.value=r.catchValue({...n,error:{issues:o.issues.map(a=>he(a,i,ee()))},input:n.value}),n.issues=[]),n)):(n.value=t.value,t.issues.length&&(n.value=r.catchValue({...n,error:{issues:t.issues.map(o=>he(o,i,ee()))},input:n.value}),n.issues=[]),n)}}),Ri=g("$ZodNaN",(e,r)=>{R.init(e,r),e._zod.parse=(n,i)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),en=g("$ZodPipe",(e,r)=>{R.init(e,r),F(e._zod,"values",()=>r.in._zod.values),F(e._zod,"optin",()=>r.in._zod.optin),F(e._zod,"optout",()=>r.out._zod.optout),F(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(n,i)=>{if(i.direction==="backward"){let o=r.out._zod.run(n,i);return o instanceof Promise?o.then(a=>Vo(a,r.in,i)):Vo(o,r.in,i)}let t=r.in._zod.run(n,i);return t instanceof Promise?t.then(o=>Vo(o,r.out,i)):Vo(t,r.out,i)}});function Vo(e,r,n){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:e.value,issues:e.issues},n)}s(Vo,"handlePipeResult");var er=g("$ZodCodec",(e,r)=>{R.init(e,r),F(e._zod,"values",()=>r.in._zod.values),F(e._zod,"optin",()=>r.in._zod.optin),F(e._zod,"optout",()=>r.out._zod.optout),F(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(n,i)=>{if((i.direction||"forward")==="forward"){let o=r.in._zod.run(n,i);return o instanceof Promise?o.then(a=>Ho(a,r,i)):Ho(o,r,i)}else{let o=r.out._zod.run(n,i);return o instanceof Promise?o.then(a=>Ho(a,r,i)):Ho(o,r,i)}}});function Ho(e,r,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let t=r.transform(e.value,e);return t instanceof Promise?t.then(o=>qo(e,o,r.out,n)):qo(e,t,r.out,n)}else{let t=r.reverseTransform(e.value,e);return t instanceof Promise?t.then(o=>qo(e,o,r.in,n)):qo(e,t,r.in,n)}}s(Ho,"handleCodecAResult");function qo(e,r,n,i){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:r,issues:e.issues},i)}s(qo,"handleCodecTxResult");var Ci=g("$ZodReadonly",(e,r)=>{R.init(e,r),F(e._zod,"propValues",()=>r.innerType._zod.propValues),F(e._zod,"values",()=>r.innerType._zod.values),F(e._zod,"optin",()=>r.innerType?._zod?.optin),F(e._zod,"optout",()=>r.innerType?._zod?.optout),e._zod.parse=(n,i)=>{if(i.direction==="backward")return r.innerType._zod.run(n,i);let t=r.innerType._zod.run(n,i);return t instanceof Promise?t.then(Qd):Qd(t)}});function Qd(e){return e.value=Object.freeze(e.value),e}s(Qd,"handleReadonlyResult");var Ui=g("$ZodTemplateLiteral",(e,r)=>{R.init(e,r);let n=[];for(let i of r.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);let t=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!t)throw new Error(`Invalid template literal part: ${i._zod.traits}`);let o=t.startsWith("^")?1:0,a=t.endsWith("$")?t.length-1:t.length;n.push(t.slice(o,a))}else if(i===null||Os.has(typeof i))n.push(Ie(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(i,t)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"string",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:r.format??"template_literal",pattern:e._zod.pattern.source}),i)}),Mi=g("$ZodFunction",(e,r)=>(R.init(e,r),e._def=r,e._zod.def=r,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...i){let t=e._def.input?gt(e._def.input,i):i,o=Reflect.apply(n,this,t);return e._def.output?gt(e._def.output,o):o}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){let t=e._def.input?await ht(e._def.input,i):i,o=await Reflect.apply(n,this,t);return e._def.output?await ht(e._def.output,o):o}},e._zod.parse=(n,i)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let i=e.constructor;return Array.isArray(n[0])?new i({type:"function",input:new Wr({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new i({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let i=e.constructor;return new i({type:"function",input:e._def.input,output:n})},e)),Li=g("$ZodPromise",(e,r)=>{R.init(e,r),e._zod.parse=(n,i)=>Promise.resolve(n.value).then(t=>r.innerType._zod.run({value:t,issues:[]},i))}),ji=g("$ZodLazy",(e,r)=>{R.init(e,r),F(e._zod,"innerType",()=>r.getter()),F(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),F(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),F(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),F(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,i)=>e._zod.innerType._zod.run(n,i)}),tn=g("$ZodCustom",(e,r)=>{K.init(e,r),R.init(e,r),e._zod.parse=(n,i)=>n,e._zod.check=n=>{let i=n.value,t=r.fn(i);if(t instanceof Promise)return t.then(o=>em(o,n,i,e));em(t,n,i,e)}});function em(e,r,n,i){if(!e){let t={code:"custom",input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(t.params=i._zod.def.params),r.issues.push(Ft(t))}}s(em,"handleRefineResult");var rr={};Ae(rr,{ar:()=>Oc,az:()=>Dc,be:()=>Nc,bg:()=>Rc,ca:()=>Cc,cs:()=>Uc,da:()=>Mc,de:()=>Lc,en:()=>rn,eo:()=>jc,es:()=>Fc,fa:()=>Zc,fi:()=>Bc,fr:()=>Vc,frCA:()=>Hc,he:()=>qc,hu:()=>Gc,hy:()=>Wc,id:()=>Jc,is:()=>Kc,it:()=>Xc,ja:()=>Yc,ka:()=>Qc,kh:()=>eu,km:()=>nn,ko:()=>tu,lt:()=>ru,mk:()=>nu,ms:()=>ou,nl:()=>iu,no:()=>au,ota:()=>su,pl:()=>uu,ps:()=>cu,pt:()=>lu,ru:()=>pu,sl:()=>du,sv:()=>mu,ta:()=>fu,th:()=>gu,tr:()=>hu,ua:()=>yu,uk:()=>an,ur:()=>vu,uz:()=>_u,vi:()=>xu,yo:()=>Tu,zhCN:()=>bu,zhTW:()=>Pu});var p_=s(()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.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 ${t.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${c}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${o}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${c}`}case"invalid_value":return t.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 ${E(t.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: ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${t.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${t.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${t.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${t.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${t.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${t.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.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 "${t.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`${n[o.format]??t.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 ${t.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${t.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${t.keys.length>1?"\u0629":""}: ${_(t.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${t.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 ${t.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}},"error");function Oc(){return{localeError:p_()}}s(Oc,"default");var d_=s(()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${t.expected}, daxil olan ${c}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${c}`}case"invalid_value":return t.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${E(t.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${t.origin??"d\u0259y\u0259r"} ${o}${t.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${t.origin??"d\u0259y\u0259r"} ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${t.origin} ${o}${t.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${o.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:o.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${o.suffix}" il\u0259 bitm\u0259lidir`:o.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${o.includes}" daxil olmal\u0131d\u0131r`:o.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${o.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${n[o.format]??t.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${t.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${t.keys.length>1?"lar":""}: ${_(t.keys,", ")}`;case"invalid_key":return`${t.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${t.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}},"error");function Dc(){return{localeError:d_()}}s(Dc,"default");function im(e,r,n,i){let t=Math.abs(e),o=t%10,a=t%100;return a>=11&&a<=19?i:o===1?r:o>=2&&o<=4?n:i}s(im,"getBelarusianPlural");var m_=s(()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},i={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${t.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${c}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${o}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${c}`}case"invalid_value":return t.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 ${E(t.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 ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);if(a){let c=Number(t.maximum),p=im(c,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${t.maximum.toString()} ${p}`}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 ${t.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);if(a){let c=Number(t.minimum),p=im(c,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${t.minimum.toString()} ${p}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${n[o.format]??t.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 ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${t.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${_(t.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${t.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 ${t.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}},"error");function Nc(){return{localeError:m_()}}s(Nc,"default");var f_=s(()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${t.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${c}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${c}`}case"invalid_value":return t.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${E(t.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 ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${t.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${t.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;if(o.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 "${o.prefix}"`;if(o.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 "${o.suffix}"`;if(o.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 "${o.includes}"`;if(o.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 ${o.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return o.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),o.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${n[o.format]??t.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 ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${t.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${t.keys.length>1?"\u043E\u0432\u0435":""}: ${_(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${t.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 ${t.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}},"error");function Rc(){return{localeError:f_()}}s(Rc,"default");var g_=s(()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${t.expected}, s'ha rebut ${c}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${c}`}case"invalid_value":return t.values.length===1?`Valor inv\xE0lid: s'esperava ${E(t.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${_(t.values," o ")}`;case"too_big":{let o=t.inclusive?"com a m\xE0xim":"menys de",a=r(t.origin);return a?`Massa gran: s'esperava que ${t.origin??"el valor"} contingu\xE9s ${o} ${t.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${t.origin??"el valor"} fos ${o} ${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?"com a m\xEDnim":"m\xE9s de",a=r(t.origin);return a?`Massa petit: s'esperava que ${t.origin} contingu\xE9s ${o} ${t.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${t.origin} fos ${o} ${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${o.prefix}"`:o.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format inv\xE0lid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${o.pattern}`:`Format inv\xE0lid per a ${n[o.format]??t.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${t.divisor}`;case"unrecognized_keys":return`Clau${t.keys.length>1?"s":""} no reconeguda${t.keys.length>1?"s":""}: ${_(t.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${t.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${t.origin}`;default:return"Entrada inv\xE0lida"}}},"error");function Cc(){return{localeError:g_()}}s(Cc,"default");var h_=s(()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${t.expected}, obdr\u017Eeno ${c}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${c}`}case"invalid_value":return t.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${E(t.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${t.origin??"hodnota"} mus\xED m\xEDt ${o}${t.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${t.origin??"hodnota"} mus\xED b\xFDt ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${t.origin??"hodnota"} mus\xED m\xEDt ${o}${t.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${t.origin??"hodnota"} mus\xED b\xFDt ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${o.includes}"`:o.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${n[o.format]??t.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${t.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${_(t.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${t.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${t.origin}`;default:return"Neplatn\xFD vstup"}}},"error");function Uc(){return{localeError:h_()}}s(Uc,"default");var y_=s(()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Ugyldigt input: forventede instanceof ${t.expected}, fik ${c}`:`Ugyldigt input: forventede ${o}, fik ${c}`}case"invalid_value":return t.values.length===1?`Ugyldig v\xE6rdi: forventede ${E(t.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin),c=i[t.origin]??t.origin;return a?`For stor: forventede ${c??"value"} ${a.verb} ${o} ${t.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${c??"value"} havde ${o} ${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin),c=i[t.origin]??t.origin;return a?`For lille: forventede ${c} ${a.verb} ${o} ${t.minimum.toString()} ${a.unit}`:`For lille: forventede ${c} havde ${o} ${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${n[o.format]??t.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${_(t.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${t.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${t.origin}`;default:return"Ugyldigt input"}}},"error");function Mc(){return{localeError:y_()}}s(Mc,"default");var v_=s(()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},i={nan:"NaN",number:"Zahl",array:"Array"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${t.expected}, erhalten ${c}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${c}`}case"invalid_value":return t.values.length===1?`Ung\xFCltige Eingabe: erwartet ${E(t.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`Zu gro\xDF: erwartet, dass ${t.origin??"Wert"} ${o}${t.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${t.origin??"Wert"} ${o}${t.maximum.toString()} ist`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`Zu klein: erwartet, dass ${t.origin} ${o}${t.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${t.origin} ${o}${t.minimum.toString()} ist`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Ung\xFCltiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ung\xFCltiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ung\xFCltiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\xFCltig: ${n[o.format]??t.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${t.divisor} sein`;case"unrecognized_keys":return`${t.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${_(t.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${t.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${t.origin}`;default:return"Ung\xFCltige Eingabe"}}},"error");function Lc(){return{localeError:v_()}}s(Lc,"default");var __=s(()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return`Invalid input: expected ${o}, received ${c}`}case"invalid_value":return t.values.length===1?`Invalid input: expected ${E(t.values[0])}`:`Invalid option: expected one of ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`Too big: expected ${t.origin??"value"} to have ${o}${t.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${t.origin??"value"} to be ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`Too small: expected ${t.origin} to have ${o}${t.minimum.toString()} ${a.unit}`:`Too small: expected ${t.origin} to be ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${n[o.format]??t.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${t.divisor}`;case"unrecognized_keys":return`Unrecognized key${t.keys.length>1?"s":""}: ${_(t.keys,", ")}`;case"invalid_key":return`Invalid key in ${t.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${t.origin}`;default:return"Invalid input"}}},"error");function rn(){return{localeError:__()}}s(rn,"default");var x_=s(()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${t.expected}, ricevi\u011Dis ${c}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${c}`}case"invalid_value":return t.values.length===1?`Nevalida enigo: atendi\u011Dis ${E(t.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`Tro granda: atendi\u011Dis ke ${t.origin??"valoro"} havu ${o}${t.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${t.origin??"valoro"} havu ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`Tro malgranda: atendi\u011Dis ke ${t.origin} havu ${o}${t.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${t.origin} estu ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${n[o.format]??t.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${t.divisor}`;case"unrecognized_keys":return`Nekonata${t.keys.length>1?"j":""} \u015Dlosilo${t.keys.length>1?"j":""}: ${_(t.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${t.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${t.origin}`;default:return"Nevalida enigo"}}},"error");function jc(){return{localeError:x_()}}s(jc,"default");var b_=s(()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${t.expected}, recibido ${c}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${c}`}case"invalid_value":return t.values.length===1?`Entrada inv\xE1lida: se esperaba ${E(t.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin),c=i[t.origin]??t.origin;return a?`Demasiado grande: se esperaba que ${c??"valor"} tuviera ${o}${t.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${c??"valor"} fuera ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin),c=i[t.origin]??t.origin;return a?`Demasiado peque\xF1o: se esperaba que ${c} tuviera ${o}${t.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${c} fuera ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${n[o.format]??t.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${t.divisor}`;case"unrecognized_keys":return`Llave${t.keys.length>1?"s":""} desconocida${t.keys.length>1?"s":""}: ${_(t.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${i[t.origin]??t.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${i[t.origin]??t.origin}`;default:return"Entrada inv\xE1lida"}}},"error");function Fc(){return{localeError:b_()}}s(Fc,"default");var P_=s(()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${t.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${c} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${o} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${c} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return t.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${E(t.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 ${_(t.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${t.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${t.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${t.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${t.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${t.origin} \u0628\u0627\u06CC\u062F ${o}${t.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${t.origin} \u0628\u0627\u06CC\u062F ${o}${t.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:o.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:o.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${o.includes}" \u0628\u0627\u0634\u062F`:o.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${o.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${n[o.format]??t.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 ${t.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${t.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${_(t.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${t.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 ${t.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}},"error");function Zc(){return{localeError:P_()}}s(Zc,"default");var T_=s(()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Virheellinen tyyppi: odotettiin instanceof ${t.expected}, oli ${c}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${c}`}case"invalid_value":return t.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${E(t.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${o}${t.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${o}${t.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${o.includes}"`:o.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${o.pattern}`:`Virheellinen ${n[o.format]??t.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${t.divisor} monikerta`;case"unrecognized_keys":return`${t.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${_(t.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 Bc(){return{localeError:T_()}}s(Bc,"default");var S_=s(()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={nan:"NaN",number:"nombre",array:"tableau"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Entr\xE9e invalide : instanceof ${t.expected} attendu, ${c} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${c} re\xE7u`}case"invalid_value":return t.values.length===1?`Entr\xE9e invalide : ${E(t.values[0])} attendu`:`Option invalide : une valeur parmi ${_(t.values,"|")} attendue`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`Trop grand : ${t.origin??"valeur"} doit ${a.verb} ${o}${t.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${t.origin??"valeur"} doit \xEAtre ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`Trop petit : ${t.origin} doit ${a.verb} ${o}${t.minimum.toString()} ${a.unit}`:`Trop petit : ${t.origin} doit \xEAtre ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${o.pattern}`:`${n[o.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${t.divisor}`;case"unrecognized_keys":return`Cl\xE9${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${_(t.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${t.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entr\xE9e invalide"}}},"error");function Vc(){return{localeError:S_()}}s(Vc,"default");var I_=s(()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Entr\xE9e invalide : attendu instanceof ${t.expected}, re\xE7u ${c}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${c}`}case"invalid_value":return t.values.length===1?`Entr\xE9e invalide : attendu ${E(t.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"\u2264":"<",a=r(t.origin);return a?`Trop grand : attendu que ${t.origin??"la valeur"} ait ${o}${t.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${t.origin??"la valeur"} soit ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?"\u2265":">",a=r(t.origin);return a?`Trop petit : attendu que ${t.origin} ait ${o}${t.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${t.origin} soit ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${n[o.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${t.divisor}`;case"unrecognized_keys":return`Cl\xE9${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${_(t.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${t.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entr\xE9e invalide"}}},"error");function Hc(){return{localeError:I_()}}s(Hc,"default");var E_=s(()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},r={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},n=s(d=>d?e[d]:void 0,"typeEntry"),i=s(d=>{let f=n(d);return f?f.label:d??e.unknown.label},"typeLabel"),t=s(d=>`\u05D4${i(d)}`,"withDefinite"),o=s(d=>(n(d)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA","verbFor"),a=s(d=>d?r[d]??null:null,"getSizing"),c={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},p={nan:"NaN"};return d=>{switch(d.code){case"invalid_type":{let f=d.expected,b=p[f??""]??i(f),v=A(d.input),u=p[v]??e[v]?.label??v;return/^[A-Z]/.test(d.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${d.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${u}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${b}, \u05D4\u05EA\u05E7\u05D1\u05DC ${u}`}case"invalid_value":{if(d.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${E(d.values[0])}`;let f=d.values.map(u=>E(u));if(d.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${f[0]} \u05D0\u05D5 ${f[1]}`;let b=f[f.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${f.slice(0,-1).join(", ")} \u05D0\u05D5 ${b}`}case"too_big":{let f=a(d.origin),b=t(d.origin??"value");if(d.origin==="string")return`${f?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${b} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${d.maximum.toString()} ${f?.unit??""} ${d.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(d.origin==="number"){let h=d.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${d.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${d.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${b} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${h}`}if(d.origin==="array"||d.origin==="set"){let h=d.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",T=d.inclusive?`${d.maximum} ${f?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${d.maximum} ${f?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${b} ${h} \u05DC\u05D4\u05DB\u05D9\u05DC ${T}`.trim()}let v=d.inclusive?"<=":"<",u=o(d.origin??"value");return f?.unit?`${f.longLabel} \u05DE\u05D3\u05D9: ${b} ${u} ${v}${d.maximum.toString()} ${f.unit}`:`${f?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${b} ${u} ${v}${d.maximum.toString()}`}case"too_small":{let f=a(d.origin),b=t(d.origin??"value");if(d.origin==="string")return`${f?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${b} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${d.minimum.toString()} ${f?.unit??""} ${d.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(d.origin==="number"){let h=d.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${d.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${d.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${b} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${h}`}if(d.origin==="array"||d.origin==="set"){let h=d.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(d.minimum===1&&d.inclusive){let S=(d.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${b} ${h} \u05DC\u05D4\u05DB\u05D9\u05DC ${S}`}let T=d.inclusive?`${d.minimum} ${f?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${d.minimum} ${f?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${b} ${h} \u05DC\u05D4\u05DB\u05D9\u05DC ${T}`.trim()}let v=d.inclusive?">=":">",u=o(d.origin??"value");return f?.unit?`${f.shortLabel} \u05DE\u05D3\u05D9: ${b} ${u} ${v}${d.minimum.toString()} ${f.unit}`:`${f?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${b} ${u} ${v}${d.minimum.toString()}`}case"invalid_format":{let f=d;if(f.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${f.prefix}"`;if(f.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${f.suffix}"`;if(f.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${f.includes}"`;if(f.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${f.pattern}`;let b=c[f.format],v=b?.label??f.format,h=(b?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${v} \u05DC\u05D0 ${h}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${d.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${d.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${d.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${_(d.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${t(d.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}},"error");function qc(){return{localeError:E_()}}s(qc,"default");var w_=s(()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},i={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${t.expected}, a kapott \xE9rt\xE9k ${c}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${c}`}case"invalid_value":return t.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${E(t.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`T\xFAl nagy: ${t.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${t.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${t.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${t.origin} m\xE9rete t\xFAl kicsi ${o}${t.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${t.origin} t\xFAl kicsi ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\xC9rv\xE9nytelen string: "${o.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:o.format==="ends_with"?`\xC9rv\xE9nytelen string: "${o.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:o.format==="includes"?`\xC9rv\xE9nytelen string: "${o.includes}" \xE9rt\xE9ket kell tartalmaznia`:o.format==="regex"?`\xC9rv\xE9nytelen string: ${o.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${n[o.format]??t.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${t.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${t.keys.length>1?"s":""}: ${_(t.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${t.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${t.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}},"error");function Gc(){return{localeError:w_()}}s(Gc,"default");function am(e,r,n){return Math.abs(e)===1?r:n}s(am,"getArmenianPlural");function tr(e){if(!e)return"";let r=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],n=e[e.length-1];return e+(r.includes(n)?"\u0576":"\u0568")}s(tr,"withDefiniteArticle");var A_=s(()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},i={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.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 ${t.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${c}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${o}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${c}`}case"invalid_value":return t.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 ${E(t.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 ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);if(a){let c=Number(t.maximum),p=am(c,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${tr(t.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${t.maximum.toString()} ${p}`}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 ${tr(t.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);if(a){let c=Number(t.minimum),p=am(c,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${tr(t.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${t.minimum.toString()} ${p}`}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 ${tr(t.origin)} \u056C\u056B\u0576\u056B ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${o.prefix}"-\u0578\u057E`:o.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${o.suffix}"-\u0578\u057E`:o.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${o.includes}"`:o.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 ${o.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${n[o.format]??t.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 ${t.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${t.keys.length>1?"\u0576\u0565\u0580":""}. ${_(t.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${tr(t.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 ${tr(t.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}},"error");function Wc(){return{localeError:A_()}}s(Wc,"default");var $_=s(()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Input tidak valid: diharapkan instanceof ${t.expected}, diterima ${c}`:`Input tidak valid: diharapkan ${o}, diterima ${c}`}case"invalid_value":return t.values.length===1?`Input tidak valid: diharapkan ${E(t.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`Terlalu besar: diharapkan ${t.origin??"value"} memiliki ${o}${t.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${t.origin??"value"} menjadi ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`Terlalu kecil: diharapkan ${t.origin} memiliki ${o}${t.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${t.origin} menjadi ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${n[o.format]??t.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${t.keys.length>1?"s":""}: ${_(t.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${t.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${t.origin}`;default:return"Input tidak valid"}}},"error");function Jc(){return{localeError:$_()}}s(Jc,"default");var z_=s(()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},i={nan:"NaN",number:"n\xFAmer",array:"fylki"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${c} \xFEar sem \xE1 a\xF0 vera instanceof ${t.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${c} \xFEar sem \xE1 a\xF0 vera ${o}`}case"invalid_value":return t.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${E(t.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin??"gildi"} hafi ${o}${t.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin??"gildi"} s\xE9 ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin} hafi ${o}${t.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin} s\xE9 ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${o.prefix}"`:o.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${o.suffix}"`:o.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${o.includes}"`:o.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${o.pattern}`:`Rangt ${n[o.format]??t.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${t.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${t.keys.length>1?"ir lyklar":"ur lykill"}: ${_(t.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${t.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${t.origin}`;default:return"Rangt gildi"}}},"error");function Kc(){return{localeError:z_()}}s(Kc,"default");var k_=s(()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"numero",array:"vettore"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Input non valido: atteso instanceof ${t.expected}, ricevuto ${c}`:`Input non valido: atteso ${o}, ricevuto ${c}`}case"invalid_value":return t.values.length===1?`Input non valido: atteso ${E(t.values[0])}`:`Opzione non valida: atteso uno tra ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`Troppo grande: ${t.origin??"valore"} deve avere ${o}${t.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${t.origin??"valore"} deve essere ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`Troppo piccolo: ${t.origin} deve avere ${o}${t.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${t.origin} deve essere ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Invalid ${n[o.format]??t.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${t.divisor}`;case"unrecognized_keys":return`Chiav${t.keys.length>1?"i":"e"} non riconosciut${t.keys.length>1?"e":"a"}: ${_(t.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${t.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${t.origin}`;default:return"Input non valido"}}},"error");function Xc(){return{localeError:k_()}}s(Xc,"default");var O_=s(()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},i={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${t.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${c}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${o}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${c}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return t.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${E(t.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${_(t.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=t.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=r(t.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${t.origin??"\u5024"}\u306F${t.maximum.toString()}${a.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${t.origin??"\u5024"}\u306F${t.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=t.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=r(t.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${t.origin}\u306F${t.minimum.toString()}${a.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${t.origin}\u306F${t.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${o.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${n[o.format]??t.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${t.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${t.keys.length>1?"\u7FA4":""}: ${_(t.keys,"\u3001")}`;case"invalid_key":return`${t.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${t.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}},"error");function Yc(){return{localeError:O_()}}s(Yc,"default");var D_=s(()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},i={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.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 ${t.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${c}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${o}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${c}`}case"invalid_value":return t.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 ${E(t.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 ${_(t.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${o}${t.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin} ${a.verb} ${o}${t.minimum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin} \u10D8\u10E7\u10DD\u10E1 ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.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 "${o.prefix}"-\u10D8\u10D7`:o.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 "${o.suffix}"-\u10D8\u10D7`:o.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 "${o.includes}"-\u10E1`:o.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 ${o.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${n[o.format]??t.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 ${t.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${t.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${_(t.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${t.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 ${t.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}},"error");function Qc(){return{localeError:D_()}}s(Qc,"default");var N_=s(()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},i={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.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 ${t.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${c}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${o} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${c}`}case"invalid_value":return t.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 ${E(t.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 ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${t.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin} ${o} ${t.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin} ${o} ${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${n[o.format]??t.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 ${t.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${_(t.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 ${t.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 ${t.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 nn(){return{localeError:N_()}}s(nn,"default");function eu(){return nn()}s(eu,"default");var R_=s(()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${t.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${c}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${o}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${c}\uC785\uB2C8\uB2E4`}case"invalid_value":return t.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${E(t.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${_(t.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=t.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",c=r(t.origin),p=c?.unit??"\uC694\uC18C";return c?`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${t.maximum.toString()}${p} ${o}${a}`:`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${t.maximum.toString()} ${o}${a}`}case"too_small":{let o=t.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",c=r(t.origin),p=c?.unit??"\uC694\uC18C";return c?`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${t.minimum.toString()}${p} ${o}${a}`:`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${t.minimum.toString()} ${o}${a}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:o.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${o.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${n[o.format]??t.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${t.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${_(t.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${t.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${t.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}},"error");function tu(){return{localeError:R_()}}s(tu,"default");var on=s(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalizeFirstCharacter");function sm(e){let r=Math.abs(e),n=r%10,i=r%100;return i>=11&&i<=19||n===0?"many":n===1?"one":"few"}s(sm,"getUnitTypeFromNumber");var C_=s(()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function r(t,o,a,c){let p=e[t]??null;return p===null?p:{unit:p.unit[o],verb:p.verb[c][a?"inclusive":"notInclusive"]}}s(r,"getSizing");let n={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},i={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Gautas tipas ${c}, o tik\u0117tasi - instanceof ${t.expected}`:`Gautas tipas ${c}, o tik\u0117tasi - ${o}`}case"invalid_value":return t.values.length===1?`Privalo b\u016Bti ${E(t.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${_(t.values,"|")} pasirinkim\u0173`;case"too_big":{let o=i[t.origin]??t.origin,a=r(t.origin,sm(Number(t.maximum)),t.inclusive??!1,"smaller");if(a?.verb)return`${on(o??t.origin??"reik\u0161m\u0117")} ${a.verb} ${t.maximum.toString()} ${a.unit??"element\u0173"}`;let c=t.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${on(o??t.origin??"reik\u0161m\u0117")} turi b\u016Bti ${c} ${t.maximum.toString()} ${a?.unit}`}case"too_small":{let o=i[t.origin]??t.origin,a=r(t.origin,sm(Number(t.minimum)),t.inclusive??!1,"bigger");if(a?.verb)return`${on(o??t.origin??"reik\u0161m\u0117")} ${a.verb} ${t.minimum.toString()} ${a.unit??"element\u0173"}`;let c=t.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${on(o??t.origin??"reik\u0161m\u0117")} turi b\u016Bti ${c} ${t.minimum.toString()} ${a?.unit}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${o.prefix}"`:o.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${o.includes}"`:o.format==="regex"?`Eilut\u0117 privalo atitikti ${o.pattern}`:`Neteisingas ${n[o.format]??t.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${t.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${t.keys.length>1?"i":"as"} rakt${t.keys.length>1?"ai":"as"}: ${_(t.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let o=i[t.origin]??t.origin;return`${on(o??t.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}},"error");function ru(){return{localeError:C_()}}s(ru,"default");var U_=s(()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},i={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${t.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${c}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${c}`}case"invalid_value":return t.values.length===1?`Invalid input: expected ${E(t.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 ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${t.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${t.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`Invalid ${n[o.format]??t.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 ${t.divisor}`;case"unrecognized_keys":return`${t.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"}: ${_(t.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${t.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 ${t.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}},"error");function nu(){return{localeError:U_()}}s(nu,"default");var M_=s(()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"nombor"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Input tidak sah: dijangka instanceof ${t.expected}, diterima ${c}`:`Input tidak sah: dijangka ${o}, diterima ${c}`}case"invalid_value":return t.values.length===1?`Input tidak sah: dijangka ${E(t.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`Terlalu besar: dijangka ${t.origin??"nilai"} ${a.verb} ${o}${t.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${t.origin??"nilai"} adalah ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`Terlalu kecil: dijangka ${t.origin} ${a.verb} ${o}${t.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${t.origin} adalah ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${n[o.format]??t.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${_(t.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${t.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${t.origin}`;default:return"Input tidak sah"}}},"error");function ou(){return{localeError:M_()}}s(ou,"default");var L_=s(()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},i={nan:"NaN",number:"getal"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Ongeldige invoer: verwacht instanceof ${t.expected}, ontving ${c}`:`Ongeldige invoer: verwacht ${o}, ontving ${c}`}case"invalid_value":return t.values.length===1?`Ongeldige invoer: verwacht ${E(t.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin),c=t.origin==="date"?"laat":t.origin==="string"?"lang":"groot";return a?`Te ${c}: verwacht dat ${t.origin??"waarde"} ${o}${t.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${c}: verwacht dat ${t.origin??"waarde"} ${o}${t.maximum.toString()} is`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin),c=t.origin==="date"?"vroeg":t.origin==="string"?"kort":"klein";return a?`Te ${c}: verwacht dat ${t.origin} ${o}${t.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${c}: verwacht dat ${t.origin} ${o}${t.minimum.toString()} is`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${n[o.format]??t.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${t.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${t.keys.length>1?"s":""}: ${_(t.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${t.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${t.origin}`;default:return"Ongeldige invoer"}}},"error");function iu(){return{localeError:L_()}}s(iu,"default");var j_=s(()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tall",array:"liste"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Ugyldig input: forventet instanceof ${t.expected}, fikk ${c}`:`Ugyldig input: forventet ${o}, fikk ${c}`}case"invalid_value":return t.values.length===1?`Ugyldig verdi: forventet ${E(t.values[0])}`:`Ugyldig valg: forventet en av ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`For stor(t): forventet ${t.origin??"value"} til \xE5 ha ${o}${t.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${t.origin??"value"} til \xE5 ha ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`For lite(n): forventet ${t.origin} til \xE5 ha ${o}${t.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${t.origin} til \xE5 ha ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${n[o.format]??t.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${_(t.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${t.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${t.origin}`;default:return"Ugyldig input"}}},"error");function au(){return{localeError:j_()}}s(au,"default");var F_=s(()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`F\xE2sit giren: umulan instanceof ${t.expected}, al\u0131nan ${c}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${c}`}case"invalid_value":return t.values.length===1?`F\xE2sit giren: umulan ${E(t.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`Fazla b\xFCy\xFCk: ${t.origin??"value"}, ${o}${t.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${t.origin??"value"}, ${o}${t.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`Fazla k\xFC\xE7\xFCk: ${t.origin}, ${o}${t.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${t.origin}, ${o}${t.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=t;return o.format==="starts_with"?`F\xE2sit metin: "${o.prefix}" ile ba\u015Flamal\u0131.`:o.format==="ends_with"?`F\xE2sit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`F\xE2sit metin: "${o.includes}" ihtiv\xE2 etmeli.`:o.format==="regex"?`F\xE2sit metin: ${o.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${n[o.format]??t.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${t.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${t.keys.length>1?"s":""}: ${_(t.keys,", ")}`;case"invalid_key":return`${t.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${t.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}},"error");function su(){return{localeError:F_()}}s(su,"default");var Z_=s(()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${t.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${c} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${o} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${c} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return t.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${E(t.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${_(t.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${t.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${t.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${t.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${t.maximum.toString()} \u0648\u064A`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${t.origin} \u0628\u0627\u06CC\u062F ${o}${t.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${t.origin} \u0628\u0627\u06CC\u062F ${o}${t.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:o.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:o.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${o.includes}" \u0648\u0644\u0631\u064A`:o.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${o.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${n[o.format]??t.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${t.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${t.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${_(t.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${t.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 ${t.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}},"error");function cu(){return{localeError:Z_()}}s(cu,"default");var B_=s(()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},i={nan:"NaN",number:"liczba",array:"tablica"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${t.expected}, otrzymano ${c}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${c}`}case"invalid_value":return t.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${E(t.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${t.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${t.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${o.prefix}"`:o.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${o.suffix}"`:o.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${o.includes}"`:o.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${o.pattern}`:`Nieprawid\u0142ow(y/a/e) ${n[o.format]??t.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${t.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${t.keys.length>1?"s":""}: ${_(t.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${t.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${t.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}},"error");function uu(){return{localeError:B_()}}s(uu,"default");var V_=s(()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",number:"n\xFAmero",null:"nulo"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Tipo inv\xE1lido: esperado instanceof ${t.expected}, recebido ${c}`:`Tipo inv\xE1lido: esperado ${o}, recebido ${c}`}case"invalid_value":return t.values.length===1?`Entrada inv\xE1lida: esperado ${E(t.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`Muito grande: esperado que ${t.origin??"valor"} tivesse ${o}${t.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${t.origin??"valor"} fosse ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`Muito pequeno: esperado que ${t.origin} tivesse ${o}${t.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${t.origin} fosse ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${o.prefix}"`:o.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inv\xE1lido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${o.pattern}`:`${n[o.format]??t.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${t.divisor}`;case"unrecognized_keys":return`Chave${t.keys.length>1?"s":""} desconhecida${t.keys.length>1?"s":""}: ${_(t.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${t.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${t.origin}`;default:return"Campo inv\xE1lido"}}},"error");function lu(){return{localeError:V_()}}s(lu,"default");function cm(e,r,n,i){let t=Math.abs(e),o=t%10,a=t%100;return a>=11&&a<=19?i:o===1?r:o>=2&&o<=4?n:i}s(cm,"getRussianPlural");var H_=s(()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${t.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${c}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${c}`}case"invalid_value":return t.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${E(t.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 ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);if(a){let c=Number(t.maximum),p=cm(c,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${t.maximum.toString()} ${p}`}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 ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);if(a){let c=Number(t.minimum),p=cm(c,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${t.minimum.toString()} ${p}`}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 ${t.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${n[o.format]??t.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 ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${t.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${t.keys.length>1?"\u0438":""}: ${_(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${t.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 ${t.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 pu(){return{localeError:H_()}}s(pu,"default");var q_=s(()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},i={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${t.expected}, prejeto ${c}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${c}`}case"invalid_value":return t.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${E(t.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${t.origin??"vrednost"} imelo ${o}${t.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${t.origin??"vrednost"} ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${t.origin} imelo ${o}${t.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${n[o.format]??t.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${t.divisor}`;case"unrecognized_keys":return`Neprepoznan${t.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${_(t.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${t.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${t.origin}`;default:return"Neveljaven vnos"}}},"error");function du(){return{localeError:q_()}}s(du,"default");var G_=s(()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},i={nan:"NaN",number:"antal",array:"lista"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${t.expected}, fick ${c}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${c}`}case"invalid_value":return t.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${E(t.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${o}${t.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${t.origin??"v\xE4rdet"} att ha ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${o}${t.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${o.includes}"`:o.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${o.pattern}"`:`Ogiltig(t) ${n[o.format]??t.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${_(t.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${t.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${t.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}},"error");function mu(){return{localeError:G_()}}s(mu,"default");var W_=s(()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.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 ${t.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${c}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${c}`}case"invalid_value":return t.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 ${E(t.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 ${_(t.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${t.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${t.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin} ${o}${t.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin} ${o}${t.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${o.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${n[o.format]??t.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${t.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${t.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${_(t.keys,", ")}`;case"invalid_key":return`${t.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`${t.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 fu(){return{localeError:W_()}}s(fu,"default");var J_=s(()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},i={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.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 ${t.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${c}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${o} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${c}`}case"invalid_value":return t.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${E(t.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 ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=r(t.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${t.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=r(t.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${t.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:o.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 ${o.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${n[o.format]??t.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 ${t.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: ${_(t.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${t.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 ${t.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}},"error");function gu(){return{localeError:J_()}}s(gu,"default");var K_=s(()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${t.expected}, al\u0131nan ${c}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${c}`}case"invalid_value":return t.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${E(t.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${t.origin??"de\u011Fer"} ${o}${t.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${t.origin??"de\u011Fer"} ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${t.origin} ${o}${t.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Ge\xE7ersiz metin: "${o.prefix}" ile ba\u015Flamal\u0131`:o.format==="ends_with"?`Ge\xE7ersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Ge\xE7ersiz metin: "${o.includes}" i\xE7ermeli`:o.format==="regex"?`Ge\xE7ersiz metin: ${o.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[o.format]??t.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${t.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${t.keys.length>1?"lar":""}: ${_(t.keys,", ")}`;case"invalid_key":return`${t.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${t.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}},"error");function hu(){return{localeError:K_()}}s(hu,"default");var X_=s(()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.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 ${t.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${c}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${o}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${c}`}case"invalid_value":return t.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 ${E(t.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 ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${o}${t.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin} ${a.verb} ${o}${t.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin} \u0431\u0443\u0434\u0435 ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${n[o.format]??t.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 ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${t.keys.length>1?"\u0456":""}: ${_(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${t.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 ${t.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 an(){return{localeError:X_()}}s(an,"default");function yu(){return an()}s(yu,"default");var Y_=s(()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},i={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${t.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${c} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${o} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${c} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return t.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${E(t.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${_(t.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${t.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${t.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${t.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${t.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${t.origin} \u06A9\u06D2 ${o}${t.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${t.origin} \u06A9\u0627 ${o}${t.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${o.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${n[o.format]??t.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${t.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${t.keys.length>1?"\u0632":""}: ${_(t.keys,"\u060C ")}`;case"invalid_key":return`${t.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${t.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}},"error");function vu(){return{localeError:Y_()}}s(vu,"default");var Q_=s(()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${t.expected}, qabul qilingan ${c}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${c}`}case"invalid_value":return t.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${E(t.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`Juda katta: kutilgan ${t.origin??"qiymat"} ${o}${t.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${t.origin??"qiymat"} ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`Juda kichik: kutilgan ${t.origin} ${o}${t.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto\u2018g\u2018ri satr: "${o.includes}" ni o\u2018z ichiga olishi kerak`:o.format==="regex"?`Noto\u2018g\u2018ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${n[o.format]??t.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${t.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${t.keys.length>1?"lar":""}: ${_(t.keys,", ")}`;case"invalid_key":return`${t.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${t.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}},"error");function _u(){return{localeError:Q_()}}s(_u,"default");var ex=s(()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},i={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${t.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${c}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${o}, nh\u1EADn \u0111\u01B0\u1EE3c ${c}`}case"invalid_value":return t.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${E(t.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${t.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${o}${t.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${t.origin??"gi\xE1 tr\u1ECB"} ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${t.origin} ${a.verb} ${o}${t.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${o.prefix}"`:o.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${o.suffix}"`:o.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${o.includes}"`:o.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${o.pattern}`:`${n[o.format]??t.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 ${t.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${_(t.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${t.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 ${t.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}},"error");function xu(){return{localeError:ex()}}s(xu,"default");var tx=s(()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},i={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${t.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${c}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${o}\uFF0C\u5B9E\u9645\u63A5\u6536 ${c}`}case"invalid_value":return t.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${E(t.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${t.origin??"\u503C"} ${o}${t.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${t.origin??"\u503C"} ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${t.origin} ${o}${t.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.prefix}" \u5F00\u5934`:o.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.suffix}" \u7ED3\u5C3E`:o.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${o.pattern}`:`\u65E0\u6548${n[o.format]??t.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${t.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${_(t.keys,", ")}`;case"invalid_key":return`${t.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${t.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}},"error");function bu(){return{localeError:tx()}}s(bu,"default");var rx=s(()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${t.expected}\uFF0C\u4F46\u6536\u5230 ${c}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${o}\uFF0C\u4F46\u6536\u5230 ${c}`}case"invalid_value":return t.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${E(t.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${t.origin??"\u503C"} \u61C9\u70BA ${o}${t.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${t.origin??"\u503C"} \u61C9\u70BA ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${t.origin} \u61C9\u70BA ${o}${t.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${t.origin} \u61C9\u70BA ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.prefix}" \u958B\u982D`:o.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.suffix}" \u7D50\u5C3E`:o.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${o.pattern}`:`\u7121\u6548\u7684 ${n[o.format]??t.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${t.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${t.keys.length>1?"\u5011":""}\uFF1A${_(t.keys,"\u3001")}`;case"invalid_key":return`${t.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${t.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}},"error");function Pu(){return{localeError:rx()}}s(Pu,"default");var nx=s(()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function r(t){return e[t]??null}s(r,"getSizing");let n={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},i={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return t=>{switch(t.code){case"invalid_type":{let o=i[t.expected]??t.expected,a=A(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${t.expected}, \xE0m\u1ECD\u0300 a r\xED ${c}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${o}, \xE0m\u1ECD\u0300 a r\xED ${c}`}case"invalid_value":return t.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${E(t.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${_(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",a=r(t.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${t.origin??"iye"} ${a.verb} ${o}${t.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${t.maximum}`}case"too_small":{let o=t.inclusive?">=":">",a=r(t.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${t.origin} ${a.verb} ${o}${t.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${t.minimum}`}case"invalid_format":{let o=t;return o.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 "${o.prefix}"`:o.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${o.suffix}"`:o.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${o.includes}"`:o.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${o.pattern}`:`A\u1E63\xEC\u1E63e: ${n[o.format]??t.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 ${t.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${_(t.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${t.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 ${t.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}},"error");function Tu(){return{localeError:nx()}}s(Tu,"default");var um,Zi=Symbol("ZodOutput"),Bi=Symbol("ZodInput"),Fi=class{static{s(this,"$ZodRegistry")}constructor(){this._map=new WeakMap,this._idmap=new Map}add(r,...n){let i=n[0];return this._map.set(r,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,r),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){let n=this._map.get(r);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(r),this}get(r){let n=r._zod.parent;if(n){let i={...this.get(n)??{}};delete i.id;let t={...i,...this._map.get(r)};return Object.keys(t).length?t:void 0}return this._map.get(r)}has(r){return this._map.has(r)}};function sn(){return new Fi}s(sn,"registry");(um=globalThis).__zod_globalRegistry??(um.__zod_globalRegistry=sn());var ce=globalThis.__zod_globalRegistry;function cn(e,r){return new e({type:"string",...I(r)})}s(cn,"_string");function un(e,r){return new e({type:"string",coerce:!0,...I(r)})}s(un,"_coercedString");function ln(e,r){return new e({type:"string",format:"email",check:"string_format",abort:!1,...I(r)})}s(ln,"_email");function nr(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...I(r)})}s(nr,"_guid");function pn(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...I(r)})}s(pn,"_uuid");function dn(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...I(r)})}s(dn,"_uuidv4");function mn(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...I(r)})}s(mn,"_uuidv6");function fn(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...I(r)})}s(fn,"_uuidv7");function xt(e,r){return new e({type:"string",format:"url",check:"string_format",abort:!1,...I(r)})}s(xt,"_url");function gn(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...I(r)})}s(gn,"_emoji");function hn(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...I(r)})}s(hn,"_nanoid");function yn(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...I(r)})}s(yn,"_cuid");function vn(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...I(r)})}s(vn,"_cuid2");function _n(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...I(r)})}s(_n,"_ulid");function xn(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...I(r)})}s(xn,"_xid");function bn(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...I(r)})}s(bn,"_ksuid");function Pn(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...I(r)})}s(Pn,"_ipv4");function Tn(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...I(r)})}s(Tn,"_ipv6");function Vi(e,r){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...I(r)})}s(Vi,"_mac");function Sn(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...I(r)})}s(Sn,"_cidrv4");function In(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...I(r)})}s(In,"_cidrv6");function En(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...I(r)})}s(En,"_base64");function wn(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...I(r)})}s(wn,"_base64url");function An(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...I(r)})}s(An,"_e164");function $n(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...I(r)})}s($n,"_jwt");var Hi={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function qi(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...I(r)})}s(qi,"_isoDateTime");function Gi(e,r){return new e({type:"string",format:"date",check:"string_format",...I(r)})}s(Gi,"_isoDate");function Wi(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...I(r)})}s(Wi,"_isoTime");function Ji(e,r){return new e({type:"string",format:"duration",check:"string_format",...I(r)})}s(Ji,"_isoDuration");function zn(e,r){return new e({type:"number",checks:[],...I(r)})}s(zn,"_number");function kn(e,r){return new e({type:"number",coerce:!0,checks:[],...I(r)})}s(kn,"_coercedNumber");function On(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...I(r)})}s(On,"_int");function Ki(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...I(r)})}s(Ki,"_float32");function Xi(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...I(r)})}s(Xi,"_float64");function Yi(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...I(r)})}s(Yi,"_int32");function Qi(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...I(r)})}s(Qi,"_uint32");function Dn(e,r){return new e({type:"boolean",...I(r)})}s(Dn,"_boolean");function Nn(e,r){return new e({type:"boolean",coerce:!0,...I(r)})}s(Nn,"_coercedBoolean");function ea(e,r){return new e({type:"bigint",...I(r)})}s(ea,"_bigint");function Rn(e,r){return new e({type:"bigint",coerce:!0,...I(r)})}s(Rn,"_coercedBigint");function ta(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...I(r)})}s(ta,"_int64");function ra(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...I(r)})}s(ra,"_uint64");function na(e,r){return new e({type:"symbol",...I(r)})}s(na,"_symbol");function oa(e,r){return new e({type:"undefined",...I(r)})}s(oa,"_undefined");function ia(e,r){return new e({type:"null",...I(r)})}s(ia,"_null");function Cn(e){return new e({type:"any"})}s(Cn,"_any");function Un(e){return new e({type:"unknown"})}s(Un,"_unknown");function aa(e,r){return new e({type:"never",...I(r)})}s(aa,"_never");function Mn(e,r){return new e({type:"void",...I(r)})}s(Mn,"_void");function sa(e,r){return new e({type:"date",...I(r)})}s(sa,"_date");function Ln(e,r){return new e({type:"date",coerce:!0,...I(r)})}s(Ln,"_coercedDate");function ca(e,r){return new e({type:"nan",...I(r)})}s(ca,"_nan");function ze(e,r){return new Fo({check:"less_than",...I(r),value:e,inclusive:!1})}s(ze,"_lt");function fe(e,r){return new Fo({check:"less_than",...I(r),value:e,inclusive:!0})}s(fe,"_lte");function ke(e,r){return new Zo({check:"greater_than",...I(r),value:e,inclusive:!1})}s(ke,"_gt");function ae(e,r){return new Zo({check:"greater_than",...I(r),value:e,inclusive:!0})}s(ae,"_gte");function jn(e){return ke(0,e)}s(jn,"_positive");function Fn(e){return ze(0,e)}s(Fn,"_negative");function Zn(e){return fe(0,e)}s(Zn,"_nonpositive");function Bn(e){return ae(0,e)}s(Bn,"_nonnegative");function Fe(e,r){return new lc({check:"multiple_of",...I(r),value:e})}s(Fe,"_multipleOf");function Ze(e,r){return new mc({check:"max_size",...I(r),maximum:e})}s(Ze,"_maxSize");function Oe(e,r){return new fc({check:"min_size",...I(r),minimum:e})}s(Oe,"_minSize");function tt(e,r){return new gc({check:"size_equals",...I(r),size:e})}s(tt,"_size");function rt(e,r){return new hc({check:"max_length",...I(r),maximum:e})}s(rt,"_maxLength");function oe(e,r){return new yc({check:"min_length",...I(r),minimum:e})}s(oe,"_minLength");function nt(e,r){return new vc({check:"length_equals",...I(r),length:e})}s(nt,"_length");function pe(e,r){return new _c({check:"string_format",format:"regex",...I(r),pattern:e})}s(pe,"_regex");function bt(e){return new xc({check:"string_format",format:"lowercase",...I(e)})}s(bt,"_lowercase");function Pt(e){return new bc({check:"string_format",format:"uppercase",...I(e)})}s(Pt,"_uppercase");function Tt(e,r){return new Pc({check:"string_format",format:"includes",...I(r),includes:e})}s(Tt,"_includes");function St(e,r){return new Tc({check:"string_format",format:"starts_with",...I(r),prefix:e})}s(St,"_startsWith");function It(e,r){return new Sc({check:"string_format",format:"ends_with",...I(r),suffix:e})}s(It,"_endsWith");function Vn(e,r,n){return new Ic({check:"property",property:e,schema:r,...I(n)})}s(Vn,"_property");function Et(e,r){return new Ec({check:"mime_type",mime:e,...I(r)})}s(Et,"_mime");function Ee(e){return new wc({check:"overwrite",tx:e})}s(Ee,"_overwrite");function wt(e){return Ee(r=>r.normalize(e))}s(wt,"_normalize");function At(){return Ee(e=>e.trim())}s(At,"_trim");function $t(){return Ee(e=>e.toLowerCase())}s($t,"_toLowerCase");function zt(){return Ee(e=>e.toUpperCase())}s(zt,"_toUpperCase");function or(){return Ee(e=>zs(e))}s(or,"_slugify");function Su(e,r,n){return new e({type:"array",element:r,...I(n)})}s(Su,"_array");function ix(e,r,n){return new e({type:"union",options:r,...I(n)})}s(ix,"_union");function ax(e,r,n){return new e({type:"union",options:r,inclusive:!1,...I(n)})}s(ax,"_xor");function sx(e,r,n,i){return new e({type:"union",options:n,discriminator:r,...I(i)})}s(sx,"_discriminatedUnion");function cx(e,r,n){return new e({type:"intersection",left:r,right:n})}s(cx,"_intersection");function ux(e,r,n,i){let t=n instanceof R,o=t?i:n,a=t?n:null;return new e({type:"tuple",items:r,rest:a,...I(o)})}s(ux,"_tuple");function lx(e,r,n,i){return new e({type:"record",keyType:r,valueType:n,...I(i)})}s(lx,"_record");function px(e,r,n,i){return new e({type:"map",keyType:r,valueType:n,...I(i)})}s(px,"_map");function dx(e,r,n){return new e({type:"set",valueType:r,...I(n)})}s(dx,"_set");function mx(e,r,n){let i=Array.isArray(r)?Object.fromEntries(r.map(t=>[t,t])):r;return new e({type:"enum",entries:i,...I(n)})}s(mx,"_enum");function fx(e,r,n){return new e({type:"enum",entries:r,...I(n)})}s(fx,"_nativeEnum");function gx(e,r,n){return new e({type:"literal",values:Array.isArray(r)?r:[r],...I(n)})}s(gx,"_literal");function ua(e,r){return new e({type:"file",...I(r)})}s(ua,"_file");function hx(e,r){return new e({type:"transform",transform:r})}s(hx,"_transform");function yx(e,r){return new e({type:"optional",innerType:r})}s(yx,"_optional");function vx(e,r){return new e({type:"nullable",innerType:r})}s(vx,"_nullable");function _x(e,r,n){return new e({type:"default",innerType:r,get defaultValue(){return typeof n=="function"?n():Ao(n)}})}s(_x,"_default");function xx(e,r,n){return new e({type:"nonoptional",innerType:r,...I(n)})}s(xx,"_nonoptional");function bx(e,r){return new e({type:"success",innerType:r})}s(bx,"_success");function Px(e,r,n){return new e({type:"catch",innerType:r,catchValue:typeof n=="function"?n:()=>n})}s(Px,"_catch");function Tx(e,r,n){return new e({type:"pipe",in:r,out:n})}s(Tx,"_pipe");function Sx(e,r){return new e({type:"readonly",innerType:r})}s(Sx,"_readonly");function Ix(e,r,n){return new e({type:"template_literal",parts:r,...I(n)})}s(Ix,"_templateLiteral");function Ex(e,r){return new e({type:"lazy",getter:r})}s(Ex,"_lazy");function wx(e,r){return new e({type:"promise",innerType:r})}s(wx,"_promise");function Hn(e,r,n){let i=I(n);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:r,...i})}s(Hn,"_custom");function la(e,r,n){return new e({type:"custom",check:"custom",fn:r,...I(n)})}s(la,"_refine");function pa(e){let r=lm(n=>(n.addIssue=i=>{if(typeof i=="string")n.issues.push(Ft(i,n.value,r._zod.def));else{let t=i;t.fatal&&(t.continue=!1),t.code??(t.code="custom"),t.input??(t.input=n.value),t.inst??(t.inst=r),t.continue??(t.continue=!r._zod.def.abort),n.issues.push(Ft(t))}},e(n.value,n)));return r}s(pa,"_superRefine");function lm(e,r){let n=new K({check:"custom",...I(r)});return n._zod.check=e,n}s(lm,"_check");function da(e){let r=new K({check:"describe"});return r._zod.onattach=[n=>{let i=ce.get(n)??{};ce.add(n,{...i,description:e})}],r._zod.check=()=>{},r}s(da,"describe");function ma(e){let r=new K({check:"meta"});return r._zod.onattach=[n=>{let i=ce.get(n)??{};ce.add(n,{...i,...e})}],r._zod.check=()=>{},r}s(ma,"meta");function fa(e,r){let n=I(r),i=n.truthy??["true","1","yes","on","y","enabled"],t=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(i=i.map(u=>typeof u=="string"?u.toLowerCase():u),t=t.map(u=>typeof u=="string"?u.toLowerCase():u));let o=new Set(i),a=new Set(t),c=e.Codec??er,p=e.Boolean??vt,d=e.String??je,f=new d({type:"string",error:n.error}),b=new p({type:"boolean",error:n.error}),v=new c({type:"pipe",in:f,out:b,transform:s(((u,h)=>{let T=u;return n.case!=="sensitive"&&(T=T.toLowerCase()),o.has(T)?!0:a.has(T)?!1:(h.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:h.value,inst:v,continue:!1}),{})}),"transform"),reverseTransform:s(((u,h)=>u===!0?i[0]||"true":t[0]||"false"),"reverseTransform"),error:n.error});return v}s(fa,"_stringbool");function kt(e,r,n,i={}){let t=I(i),o={...I(i),check:"string_format",type:"string",format:r,fn:typeof n=="function"?n:c=>n.test(c),...t};return n instanceof RegExp&&(o.pattern=n),new e(o)}s(kt,"_stringFormat");function ot(e){let r=e?.target??"draft-2020-12";return r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??ce,target:r,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}s(ot,"initializeContext");function J(e,r,n={path:[],schemaPath:[]}){var i;let t=e._zod.def,o=r.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema;let a={schema:{},count:1,cycle:void 0,path:n.path};r.seen.set(e,a);let c=e._zod.toJSONSchema?.();if(c)a.schema=c;else{let f={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(r,a.schema,f);else{let v=a.schema,u=r.processors[t.type];if(!u)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${t.type}`);u(e,r,v,f)}let b=e._zod.parent;b&&(a.ref||(a.ref=b),J(b,r,f),r.seen.get(b).isParent=!0)}let p=r.metadataRegistry.get(e);return p&&Object.assign(a.schema,p),r.io==="input"&&ge(e)&&(delete a.schema.examples,delete a.schema.default),r.io==="input"&&a.schema._prefault&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,r.seen.get(e).schema}s(J,"process");function it(e,r){let n=e.seen.get(r);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=new Map;for(let a of e.seen.entries()){let c=e.metadataRegistry.get(a[0])?.id;if(c){let p=i.get(c);if(p&&p!==a[0])throw new Error(`Duplicate schema id "${c}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(c,a[0])}}let t=s(a=>{let c=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let b=e.external.registry.get(a[0])?.id,v=e.external.uri??(h=>h);if(b)return{ref:v(b)};let u=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=u,{defId:u,ref:`${v("__shared")}#/${c}/${u}`}}if(a[1]===n)return{ref:"#"};let d=`#/${c}/`,f=a[1].schema.id??`__schema${e.counter++}`;return{defId:f,ref:d+f}},"makeURI"),o=s(a=>{if(a[1].schema.$ref)return;let c=a[1],{ref:p,defId:d}=t(a);c.def={...c.schema},d&&(c.defId=d);let f=c.schema;for(let b in f)delete f[b];f.$ref=p},"extractToDef");if(e.cycles==="throw")for(let a of e.seen.entries()){let c=a[1];if(c.cycle)throw new Error(`Cycle detected: #/${c.cycle?.join("/")}/<root>
40
+
41
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let c=a[1];if(r===a[0]){o(a);continue}if(e.external){let d=e.external.registry.get(a[0])?.id;if(r!==a[0]&&d){o(a);continue}}if(e.metadataRegistry.get(a[0])?.id){o(a);continue}if(c.cycle){o(a);continue}if(c.count>1&&e.reused==="ref"){o(a);continue}}}s(it,"extractDefs");function at(e,r){let n=e.seen.get(r);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=s(a=>{let c=e.seen.get(a);if(c.ref===null)return;let p=c.def??c.schema,d={...p},f=c.ref;if(c.ref=null,f){i(f);let v=e.seen.get(f),u=v.schema;if(u.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(p.allOf=p.allOf??[],p.allOf.push(u)):Object.assign(p,u),Object.assign(p,d),a._zod.parent===f)for(let T in p)T==="$ref"||T==="allOf"||T in d||delete p[T];if(u.$ref&&v.def)for(let T in p)T==="$ref"||T==="allOf"||T in v.def&&JSON.stringify(p[T])===JSON.stringify(v.def[T])&&delete p[T]}let b=a._zod.parent;if(b&&b!==f){i(b);let v=e.seen.get(b);if(v?.schema.$ref&&(p.$ref=v.schema.$ref,v.def))for(let u in p)u==="$ref"||u==="allOf"||u in v.def&&JSON.stringify(p[u])===JSON.stringify(v.def[u])&&delete p[u]}e.override({zodSchema:a,jsonSchema:p,path:c.path??[]})},"flattenRef");for(let a of[...e.seen.entries()].reverse())i(a[0]);let t={};if(e.target==="draft-2020-12"?t.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?t.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?t.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(r)?.id;if(!a)throw new Error("Schema is missing an `id` property");t.$id=e.external.uri(a)}Object.assign(t,n.def??n.schema);let o=e.external?.defs??{};for(let a of e.seen.entries()){let c=a[1];c.def&&c.defId&&(o[c.defId]=c.def)}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?t.$defs=o:t.definitions=o);try{let a=JSON.parse(JSON.stringify(t));return Object.defineProperty(a,"~standard",{value:{...r["~standard"],jsonSchema:{input:ir(r,"input",e.processors),output:ir(r,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}s(at,"finalize");function ge(e,r){let n=r??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return ge(i.element,n);if(i.type==="set")return ge(i.valueType,n);if(i.type==="lazy")return ge(i.getter(),n);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return ge(i.innerType,n);if(i.type==="intersection")return ge(i.left,n)||ge(i.right,n);if(i.type==="record"||i.type==="map")return ge(i.keyType,n)||ge(i.valueType,n);if(i.type==="pipe")return ge(i.in,n)||ge(i.out,n);if(i.type==="object"){for(let t in i.shape)if(ge(i.shape[t],n))return!0;return!1}if(i.type==="union"){for(let t of i.options)if(ge(t,n))return!0;return!1}if(i.type==="tuple"){for(let t of i.items)if(ge(t,n))return!0;return!!(i.rest&&ge(i.rest,n))}return!1}s(ge,"isTransforming");var Iu=s((e,r={})=>n=>{let i=ot({...n,processors:r});return J(e,i),it(i,e),at(i,e)},"createToJSONSchemaMethod"),ir=s((e,r,n={})=>i=>{let{libraryOptions:t,target:o}=i??{},a=ot({...t??{},target:o,io:r,processors:n});return J(e,a),it(a,e),at(a,e)},"createStandardJSONSchemaMethod");var Ax={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Eu=s((e,r,n,i)=>{let t=n;t.type="string";let{minimum:o,maximum:a,format:c,patterns:p,contentEncoding:d}=e._zod.bag;if(typeof o=="number"&&(t.minLength=o),typeof a=="number"&&(t.maxLength=a),c&&(t.format=Ax[c]??c,t.format===""&&delete t.format,c==="time"&&delete t.format),d&&(t.contentEncoding=d),p&&p.size>0){let f=[...p];f.length===1?t.pattern=f[0].source:f.length>1&&(t.allOf=[...f.map(b=>({...r.target==="draft-07"||r.target==="draft-04"||r.target==="openapi-3.0"?{type:"string"}:{},pattern:b.source}))])}},"stringProcessor"),wu=s((e,r,n,i)=>{let t=n,{minimum:o,maximum:a,format:c,multipleOf:p,exclusiveMaximum:d,exclusiveMinimum:f}=e._zod.bag;typeof c=="string"&&c.includes("int")?t.type="integer":t.type="number",typeof f=="number"&&(r.target==="draft-04"||r.target==="openapi-3.0"?(t.minimum=f,t.exclusiveMinimum=!0):t.exclusiveMinimum=f),typeof o=="number"&&(t.minimum=o,typeof f=="number"&&r.target!=="draft-04"&&(f>=o?delete t.minimum:delete t.exclusiveMinimum)),typeof d=="number"&&(r.target==="draft-04"||r.target==="openapi-3.0"?(t.maximum=d,t.exclusiveMaximum=!0):t.exclusiveMaximum=d),typeof a=="number"&&(t.maximum=a,typeof d=="number"&&r.target!=="draft-04"&&(d<=a?delete t.maximum:delete t.exclusiveMaximum)),typeof p=="number"&&(t.multipleOf=p)},"numberProcessor"),Au=s((e,r,n,i)=>{n.type="boolean"},"booleanProcessor"),$u=s((e,r,n,i)=>{if(r.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},"bigintProcessor"),zu=s((e,r,n,i)=>{if(r.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},"symbolProcessor"),ku=s((e,r,n,i)=>{r.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},"nullProcessor"),Ou=s((e,r,n,i)=>{if(r.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},"undefinedProcessor"),Du=s((e,r,n,i)=>{if(r.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},"voidProcessor"),Nu=s((e,r,n,i)=>{n.not={}},"neverProcessor"),Ru=s((e,r,n,i)=>{},"anyProcessor"),Cu=s((e,r,n,i)=>{},"unknownProcessor"),Uu=s((e,r,n,i)=>{if(r.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},"dateProcessor"),Mu=s((e,r,n,i)=>{let t=e._zod.def,o=kr(t.entries);o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),n.enum=o},"enumProcessor"),Lu=s((e,r,n,i)=>{let t=e._zod.def,o=[];for(let a of t.values)if(a===void 0){if(r.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(r.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(a))}else o.push(a);if(o.length!==0)if(o.length===1){let a=o[0];n.type=a===null?"null":typeof a,r.target==="draft-04"||r.target==="openapi-3.0"?n.enum=[a]:n.const=a}else o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),o.every(a=>typeof a=="boolean")&&(n.type="boolean"),o.every(a=>a===null)&&(n.type="null"),n.enum=o},"literalProcessor"),ju=s((e,r,n,i)=>{if(r.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},"nanProcessor"),Fu=s((e,r,n,i)=>{let t=n,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");t.type="string",t.pattern=o.source},"templateLiteralProcessor"),Zu=s((e,r,n,i)=>{let t=n,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:c,mime:p}=e._zod.bag;a!==void 0&&(o.minLength=a),c!==void 0&&(o.maxLength=c),p?p.length===1?(o.contentMediaType=p[0],Object.assign(t,o)):(Object.assign(t,o),t.anyOf=p.map(d=>({contentMediaType:d}))):Object.assign(t,o)},"fileProcessor"),Bu=s((e,r,n,i)=>{n.type="boolean"},"successProcessor"),Vu=s((e,r,n,i)=>{if(r.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},"customProcessor"),Hu=s((e,r,n,i)=>{if(r.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},"functionProcessor"),qu=s((e,r,n,i)=>{if(r.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},"transformProcessor"),Gu=s((e,r,n,i)=>{if(r.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},"mapProcessor"),Wu=s((e,r,n,i)=>{if(r.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},"setProcessor"),Ju=s((e,r,n,i)=>{let t=n,o=e._zod.def,{minimum:a,maximum:c}=e._zod.bag;typeof a=="number"&&(t.minItems=a),typeof c=="number"&&(t.maxItems=c),t.type="array",t.items=J(o.element,r,{...i,path:[...i.path,"items"]})},"arrayProcessor"),Ku=s((e,r,n,i)=>{let t=n,o=e._zod.def;t.type="object",t.properties={};let a=o.shape;for(let d in a)t.properties[d]=J(a[d],r,{...i,path:[...i.path,"properties",d]});let c=new Set(Object.keys(a)),p=new Set([...c].filter(d=>{let f=o.shape[d]._zod;return r.io==="input"?f.optin===void 0:f.optout===void 0}));p.size>0&&(t.required=Array.from(p)),o.catchall?._zod.def.type==="never"?t.additionalProperties=!1:o.catchall?o.catchall&&(t.additionalProperties=J(o.catchall,r,{...i,path:[...i.path,"additionalProperties"]})):r.io==="output"&&(t.additionalProperties=!1)},"objectProcessor"),ha=s((e,r,n,i)=>{let t=e._zod.def,o=t.inclusive===!1,a=t.options.map((c,p)=>J(c,r,{...i,path:[...i.path,o?"oneOf":"anyOf",p]}));o?n.oneOf=a:n.anyOf=a},"unionProcessor"),Xu=s((e,r,n,i)=>{let t=e._zod.def,o=J(t.left,r,{...i,path:[...i.path,"allOf",0]}),a=J(t.right,r,{...i,path:[...i.path,"allOf",1]}),c=s(d=>"allOf"in d&&Object.keys(d).length===1,"isSimpleIntersection"),p=[...c(o)?o.allOf:[o],...c(a)?a.allOf:[a]];n.allOf=p},"intersectionProcessor"),Yu=s((e,r,n,i)=>{let t=n,o=e._zod.def;t.type="array";let a=r.target==="draft-2020-12"?"prefixItems":"items",c=r.target==="draft-2020-12"||r.target==="openapi-3.0"?"items":"additionalItems",p=o.items.map((v,u)=>J(v,r,{...i,path:[...i.path,a,u]})),d=o.rest?J(o.rest,r,{...i,path:[...i.path,c,...r.target==="openapi-3.0"?[o.items.length]:[]]}):null;r.target==="draft-2020-12"?(t.prefixItems=p,d&&(t.items=d)):r.target==="openapi-3.0"?(t.items={anyOf:p},d&&t.items.anyOf.push(d),t.minItems=p.length,d||(t.maxItems=p.length)):(t.items=p,d&&(t.additionalItems=d));let{minimum:f,maximum:b}=e._zod.bag;typeof f=="number"&&(t.minItems=f),typeof b=="number"&&(t.maxItems=b)},"tupleProcessor"),Qu=s((e,r,n,i)=>{let t=n,o=e._zod.def;t.type="object";let a=o.keyType,p=a._zod.bag?.patterns;if(o.mode==="loose"&&p&&p.size>0){let f=J(o.valueType,r,{...i,path:[...i.path,"patternProperties","*"]});t.patternProperties={};for(let b of p)t.patternProperties[b.source]=f}else(r.target==="draft-07"||r.target==="draft-2020-12")&&(t.propertyNames=J(o.keyType,r,{...i,path:[...i.path,"propertyNames"]})),t.additionalProperties=J(o.valueType,r,{...i,path:[...i.path,"additionalProperties"]});let d=a._zod.values;if(d){let f=[...d].filter(b=>typeof b=="string"||typeof b=="number");f.length>0&&(t.required=f)}},"recordProcessor"),el=s((e,r,n,i)=>{let t=e._zod.def,o=J(t.innerType,r,i),a=r.seen.get(e);r.target==="openapi-3.0"?(a.ref=t.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},"nullableProcessor"),tl=s((e,r,n,i)=>{let t=e._zod.def;J(t.innerType,r,i);let o=r.seen.get(e);o.ref=t.innerType},"nonoptionalProcessor"),rl=s((e,r,n,i)=>{let t=e._zod.def;J(t.innerType,r,i);let o=r.seen.get(e);o.ref=t.innerType,n.default=JSON.parse(JSON.stringify(t.defaultValue))},"defaultProcessor"),nl=s((e,r,n,i)=>{let t=e._zod.def;J(t.innerType,r,i);let o=r.seen.get(e);o.ref=t.innerType,r.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(t.defaultValue)))},"prefaultProcessor"),ol=s((e,r,n,i)=>{let t=e._zod.def;J(t.innerType,r,i);let o=r.seen.get(e);o.ref=t.innerType;let a;try{a=t.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},"catchProcessor"),il=s((e,r,n,i)=>{let t=e._zod.def,o=r.io==="input"?t.in._zod.def.type==="transform"?t.out:t.in:t.out;J(o,r,i);let a=r.seen.get(e);a.ref=o},"pipeProcessor"),al=s((e,r,n,i)=>{let t=e._zod.def;J(t.innerType,r,i);let o=r.seen.get(e);o.ref=t.innerType,n.readOnly=!0},"readonlyProcessor"),sl=s((e,r,n,i)=>{let t=e._zod.def;J(t.innerType,r,i);let o=r.seen.get(e);o.ref=t.innerType},"promiseProcessor"),ya=s((e,r,n,i)=>{let t=e._zod.def;J(t.innerType,r,i);let o=r.seen.get(e);o.ref=t.innerType},"optionalProcessor"),cl=s((e,r,n,i)=>{let t=e._zod.innerType;J(t,r,i);let o=r.seen.get(e);o.ref=t},"lazyProcessor"),ga={string:Eu,number:wu,boolean:Au,bigint:$u,symbol:zu,null:ku,undefined:Ou,void:Du,never:Nu,any:Ru,unknown:Cu,date:Uu,enum:Mu,literal:Lu,nan:ju,template_literal:Fu,file:Zu,success:Bu,custom:Vu,function:Hu,transform:qu,map:Gu,set:Wu,array:Ju,object:Ku,union:ha,intersection:Xu,tuple:Yu,record:Qu,nullable:el,nonoptional:tl,default:rl,prefault:nl,catch:ol,pipe:il,readonly:al,promise:sl,optional:ya,lazy:cl};function qn(e,r){if("_idmap"in e){let i=e,t=ot({...r,processors:ga}),o={};for(let p of i._idmap.entries()){let[d,f]=p;J(f,t)}let a={},c={registry:i,uri:r?.uri,defs:o};t.external=c;for(let p of i._idmap.entries()){let[d,f]=p;it(t,f),a[d]=at(t,f)}if(Object.keys(o).length>0){let p=t.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[p]:o}}return{schemas:a}}let n=ot({...r,processors:ga});return J(e,n),it(n,e),at(n,e)}s(qn,"toJSONSchema");var va=class{static{s(this,"JSONSchemaGenerator")}get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(r){this.ctx.counter=r}get seen(){return this.ctx.seen}constructor(r){let n=r?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=ot({processors:ga,target:n,...r?.metadata&&{metadata:r.metadata},...r?.unrepresentable&&{unrepresentable:r.unrepresentable},...r?.override&&{override:r.override},...r?.io&&{io:r.io}})}process(r,n={path:[],schemaPath:[]}){return J(r,this.ctx,n)}emit(r,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),it(this.ctx,r);let i=at(this.ctx,r),{"~standard":t,...o}=i;return o}};var pm={};var ie=g("ZodMiniType",(e,r)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");R.init(e,r),e.def=r,e.type=r.type,e.parse=(n,i)=>gt(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>Gt(e,n,i),e.parseAsync=async(n,i)=>ht(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>Jt(e,n,i),e.check=(...n)=>e.clone({...r,checks:[...r.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]},{parent:!0}),e.with=e.check,e.clone=(n,i)=>se(e,n,i),e.brand=()=>e,e.register=((n,i)=>(n.add(e,i),e)),e.apply=n=>n(e)}),_a=g("ZodMiniString",(e,r)=>{je.init(e,r),ie.init(e,r)});function l(e){return cn(_a,e)}s(l,"string");var dm=g("ZodMiniStringFormat",(e,r)=>{W.init(e,r),_a.init(e,r)});var kx=g("ZodMiniURL",(e,r)=>{jr.init(e,r),dm.init(e,r)});function mm(e){return xt(kx,e)}s(mm,"url");var xa=g("ZodMiniNumber",(e,r)=>{Xt.init(e,r),ie.init(e,r)});function ue(e){return zn(xa,e)}s(ue,"number");var Ox=g("ZodMiniNumberFormat",(e,r)=>{Fr.init(e,r),xa.init(e,r)});function fm(e){return On(Ox,e)}s(fm,"int");var ul=g("ZodMiniBoolean",(e,r)=>{vt.init(e,r),ie.init(e,r)});function q(e){return Dn(ul,e)}s(q,"boolean");var gm=g("ZodMiniBigInt",(e,r)=>{Yt.init(e,r),ie.init(e,r)});var Dx=g("ZodMiniAny",(e,r)=>{Zr.init(e,r),ie.init(e,r)});function Gn(){return Cn(Dx)}s(Gn,"any");var Nx=g("ZodMiniUnknown",(e,r)=>{Br.init(e,r),ie.init(e,r)});function M(){return Un(Nx)}s(M,"unknown");var Rx=g("ZodMiniVoid",(e,r)=>{Vr.init(e,r),ie.init(e,r)});function hm(e){return Mn(Rx,e)}s(hm,"_void");var ym=g("ZodMiniDate",(e,r)=>{Hr.init(e,r),ie.init(e,r)});var Cx=g("ZodMiniArray",(e,r)=>{qr.init(e,r),ie.init(e,r)});function N(e,r){return new Cx({type:"array",element:e,...I(r)})}s(N,"array");var Ux=g("ZodMiniObject",(e,r)=>{Ti.init(e,r),ie.init(e,r),F(e,"shape",()=>r.shape)});function y(e,r){let n={type:"object",shape:e??{},...I(r)};return new Ux(n)}s(y,"object");var Mx=g("ZodMiniUnion",(e,r)=>{_t.init(e,r),ie.init(e,r)});function Z(e,r){return new Mx({type:"union",options:e,...I(r)})}s(Z,"union");var Lx=g("ZodMiniDiscriminatedUnion",(e,r)=>{Gr.init(e,r),ie.init(e,r)});function st(e,r,n){return new Lx({type:"union",options:r,discriminator:e,...I(n)})}s(st,"discriminatedUnion");var jx=g("ZodMiniRecord",(e,r)=>{Jr.init(e,r),ie.init(e,r)});function L(e,r,n){return new jx({type:"record",keyType:e,valueType:r,...I(n)})}s(L,"record");var Fx=g("ZodMiniEnum",(e,r)=>{Kr.init(e,r),ie.init(e,r),e.options=Object.values(r.entries)});function D(e,r){let n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Fx({type:"enum",entries:n,...I(r)})}s(D,"_enum");var Zx=g("ZodMiniLiteral",(e,r)=>{Xr.init(e,r),ie.init(e,r)});function O(e,r){return new Zx({type:"literal",values:Array.isArray(e)?e:[e],...I(r)})}s(O,"literal");var Bx=g("ZodMiniTransform",(e,r)=>{Yr.init(e,r),ie.init(e,r)});function ct(e){return new Bx({type:"transform",transform:e})}s(ct,"transform");var Vx=g("ZodMiniOptional",(e,r)=>{Qt.init(e,r),ie.init(e,r)});function x(e){return new Vx({type:"optional",innerType:e})}s(x,"optional");var Hx=g("ZodMiniNullable",(e,r)=>{Qr.init(e,r),ie.init(e,r)});function Wn(e){return new Hx({type:"nullable",innerType:e})}s(Wn,"nullable");var qx=g("ZodMiniPipe",(e,r)=>{en.init(e,r),ie.init(e,r)});function ut(e,r){return new qx({type:"pipe",in:e,out:r})}s(ut,"pipe");var Gx=g("ZodMiniCustom",(e,r)=>{tn.init(e,r),ie.init(e,r)});function ba(e,r){return Hn(Gx,e??(()=>!0),r)}s(ba,"custom");var Jn={};Ae(Jn,{bigint:()=>Yx,boolean:()=>Xx,date:()=>Qx,number:()=>Kx,string:()=>Jx});function Jx(e){return un(_a,e)}s(Jx,"string");function Kx(e){return kn(xa,e)}s(Kx,"number");function Xx(e){return Nn(ul,e)}s(Xx,"boolean");function Yx(e){return Rn(gm,e)}s(Yx,"bigint");function Qx(e){return Ln(ym,e)}s(Qx,"date");var pl=y({retryOnFailure:y({defaultValue:x(q()),hide:x(q())}),continueOnFailure:y({defaultValue:x(q()),hide:x(q())})}),ll=class{constructor(r,n,i,t,o,a,c,p,d,f,b,v,u){this.name=r;this.displayName=n;this.description=i;this.props=t;this.propertyGroups=o;this.run=a;this.test=c;this.requireAuth=p;this.errorHandlingOptions=d;this.outputSchema=f;this.audience=b;this.aiMetadata=v;this.classification=u}static{s(this,"IAction")}},ar=s(e=>new ll(e.name,e.displayName,e.description,e.props,e.propertyGroups,e.run,e.test??e.run,e.requireAuth??!0,e.errorHandlingOptions??{continueOnFailure:{defaultValue:!1},retryOnFailure:{defaultValue:!1}},e.outputSchema,e.audience,e.aiMetadata,e.classification),"createAction");var H=y({displayName:l(),description:x(l()),advanced:x(q()),width:x(D(["half","full"])),icon:x(l()),placeholder:x(l())}),j=s((e,r)=>y({type:O(r),required:q(),defaultValue:x(Gn())}),"TPropertyValue");var Te=y({...H.shape,...j(l(),"SHORT_TEXT").shape}),Be=y({...H.shape,...j(l(),"LONG_TEXT").shape});var _m=y({label:l(),value:M(),description:x(l()),icon:x(l())}),Pa=y({disabled:x(q()),placeholder:x(l()),options:N(_m)});var tb=D(["cards"]),Se=y({...H.shape,options:Pa,display:x(tb),...j(M(),"STATIC_DROPDOWN").shape}),Ve=y({...H.shape,options:Pa,...j(N(M()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var dl=y({...H.shape,...j(M(),"DROPDOWN").shape,refreshers:N(l())}),Kn=y({...H.shape,...j(N(M()),"MULTI_SELECT_DROPDOWN").shape,refreshers:N(l())});var He=y({...H.shape,reveals:x(N(l())),...j(q(),"CHECKBOX").shape});var qe=y({...H.shape,display:x(D(["stepper"])),min:x(ue()),max:x(ue()),step:x(ue()),...j(ue(),"NUMBER").shape});var Xn=y({...H.shape,streaming:x(q()),...j(M(),"FILE").shape});var Yn=y({...H.shape,...j(l(),"DATE_TIME").shape});var xm=L(l(),Z([Te,Be,Se,Kn,Ve,He,qe,Xn,Yn])),Qn=y({...H.shape,properties:xm,...j(N(M()),"ARRAY").shape});var bm=D(["any_time","last_24_hours","last_7_days","last_30_days","last_90_days","this_month","custom"]),Pm=y({preset:x(bm),after:x(l()),before:x(l())}),ml=y({...H.shape,display:x(D(["dropdown"])),...j(Pm,"DATE_RANGE").shape});var eo=y({...H.shape,...j(Z([L(l(),M())]),"JSON").shape});var Tm=Z([Te,Se,eo,Qn,Ve]),rb=L(l(),Tm),fl=y({refreshers:N(l()),...H.shape,...j(M(),"DYNAMIC").shape});var Ta=y({...H.shape,...j(hm(),"MARKDOWN").shape});var to=(n=>(n.ARCHIVE="ARCHIVE",n.REGISTRY="REGISTRY",n))(to||{}),sr=(n=>(n.CUSTOM="CUSTOM",n.OFFICIAL="OFFICIAL",n))(sr||{}),cr=(P=>(P.ARTIFICIAL_INTELLIGENCE="ARTIFICIAL_INTELLIGENCE",P.COMMUNICATION="COMMUNICATION",P.COMMERCE="COMMERCE",P.CORE="CORE",P.UNIVERSAL_AI="UNIVERSAL_AI",P.FLOW_CONTROL="FLOW_CONTROL",P.BUSINESS_INTELLIGENCE="BUSINESS_INTELLIGENCE",P.ACCOUNTING="ACCOUNTING",P.PRODUCTIVITY="PRODUCTIVITY",P.CONTENT_AND_FILES="CONTENT_AND_FILES",P.DEVELOPER_TOOLS="DEVELOPER_TOOLS",P.CUSTOMER_SUPPORT="CUSTOMER_SUPPORT",P.FORMS_AND_SURVEYS="FORMS_AND_SURVEYS",P.HUMAN_RESOURCES="HUMAN_RESOURCES",P.PAYMENT_PROCESSING="PAYMENT_PROCESSING",P.MARKETING="MARKETING",P.SALES_AND_CRM="SALES_AND_CRM",P))(cr||{});var ro=(n=>(n.AUTHORIZATION_CODE="authorization_code",n.CLIENT_CREDENTIALS="client_credentials",n))(ro||{}),gl="both_client_credentials_and_authorization_code";var Ot=(t=>(t.POLLING="POLLING",t.WEBHOOK="WEBHOOK",t.APP_WEBHOOK="APP_WEBHOOK",t.MANUAL="MANUAL",t))(Ot||{}),no=(o=>(o.NONE="NONE",o.HEADER_PRESENT="HEADER_PRESENT",o.QUERY_PRESENT="QUERY_PRESENT",o.BODY_PARAM_PRESENT="BODY_PARAM_PRESENT",o.HEAD_REQUEST="HEAD_REQUEST",o))(no||{}),nb=y({strategy:D(no),paramName:x(l())}),oo=(n=>(n.SIMULATION="SIMULATION",n.TEST_FUNCTION="TEST_FUNCTION",n))(oo||{});var Sa=(n=>(n.WEBSOCKET="WEBSOCKET",n.NONE="NONE",n))(Sa||{}),Sm=y({status:x(ue()),body:x(M()),headers:x(L(l(),l()))}),Im=y({type:O("DELAY"),resumeDateTime:l(),requestIdToReply:x(l()),handlerId:x(l()),streamStepProgress:x(D(Sa))}),Em=y({type:O("WEBHOOK"),requestId:l(),requestIdToReply:x(l()),response:Sm,handlerId:x(l()),streamStepProgress:x(D(Sa))}),ob=Z([Im,Em]);var ib=y({body:M(),rawBody:x(M()),headers:L(l(),l()),queryParams:L(l(),l())});function De(e){return e==null}s(De,"isNil");function io(e){return e==null?!0:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}s(io,"isEmpty");function Ia(e,r){if(e==null)throw new Error(`${r} is null or undefined`)}s(Ia,"assertNotNullOrUndefined");function hl(e){try{return{data:e(),error:null}}catch(r){return{data:null,error:r}}}s(hl,"tryCatchSync");var yl=Je(require("crypto"),1);var ab=128,lt,ur,sb=s(e=>{if(e<0)throw new RangeError("Wrong ID size");try{!lt||lt.length<e?(lt=Buffer.allocUnsafe(e*ab),yl.default.randomFillSync(lt),ur=0):ur+e>lt.length&&(yl.default.randomFillSync(lt),ur=0)}catch(r){throw lt=void 0,r}ur+=e},"fillPool"),cb=s(e=>(sb(e|=0),lt.subarray(ur-e,ur)),"random"),ub=s((e,r,n)=>{let i=(2<<31-Math.clz32(e.length-1|1))-1,t=Math.ceil(1.6*i*r/e.length);return(o=r)=>{if(o<=0)return"";let a="";for(;;){let c=n(t),p=t;for(;p--;)if(a+=e[c[p]&i]||"",a.length===o)return a}}},"customRandom"),Am=s((e,r=21)=>ub(e,r,cb),"customAlphabet");var lb="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",$m=21,xz=l().check(pe(new RegExp(`^[0-9a-zA-Z]{${$m}}$`))),pb=Am(lb,$m);var pt=ut(ct(e=>e instanceof Date?e.toISOString():e),l()),we={id:l(),created:pt,updated:pt},te=s(e=>x(Wn(e)),"Nullable");function vl(e){return x(Wn(D(e)))}s(vl,"NullableEnum");var Tz=ut(ct(e=>e==="true"||e===!0?!0:e==="false"||e===!1?!1:void 0),x(q())),Ea=s(e=>ut(ct(r=>Array.isArray(r)?r:r!==void 0?[r]:void 0),x(N(e))),"OptionalArrayFromQuery");var Ez=L(l(),M());var lr=(P=>(P.OPENAI="openai",P.OPENROUTER="openrouter",P.ANTHROPIC="anthropic",P.AZURE="azure",P.GOOGLE="google",P.ACTIVEPIECES="activepieces",P.CLOUDFLARE_GATEWAY="cloudflare-gateway",P.CUSTOM="custom",P.BEDROCK="bedrock",P.VERTEX="vertex",P.MISTRAL="mistral",P.XAI="xai",P.DEEPSEEK="deepseek",P.ZAI="zai",P.QWEN="qwen",P.MINIMAX="minimax",P.MOONSHOT="moonshot",P))(lr||{});var Lz=l().check(pe(/^#[0-9A-Fa-f]{6}$/));var Fz=y({filename:l(),data:M(),type:O("file"),mimetype:x(l())});var db=Je(km());var Wz=y({...we,name:l(),permissions:N(l()),platformId:te(l()),type:l(),userCount:x(ue())});var ss={};Ae(ss,{$brand:()=>$r,$input:()=>Bi,$output:()=>Zi,NEVER:()=>Io,TimePrecision:()=>Hi,ZodAny:()=>Zl,ZodArray:()=>ql,ZodBase64:()=>Wa,ZodBase64URL:()=>Ja,ZodBigInt:()=>yr,ZodBigIntFormat:()=>Ya,ZodBoolean:()=>hr,ZodCIDRv4:()=>qa,ZodCIDRv6:()=>Ga,ZodCUID:()=>La,ZodCUID2:()=>ja,ZodCatch:()=>fp,ZodCodec:()=>as,ZodCustom:()=>vo,ZodCustomStringFormat:()=>fr,ZodDate:()=>mo,ZodDefault:()=>cp,ZodDiscriminatedUnion:()=>Wl,ZodE164:()=>Ka,ZodEmail:()=>Ca,ZodEmoji:()=>Ua,ZodEnum:()=>dr,ZodError:()=>mb,ZodExactOptional:()=>ip,ZodFile:()=>np,ZodFirstPartyTypeKind:()=>Ep,ZodFunction:()=>Tp,ZodGUID:()=>so,ZodIPv4:()=>Va,ZodIPv6:()=>Ha,ZodISODate:()=>za,ZodISODateTime:()=>$a,ZodISODuration:()=>Oa,ZodISOTime:()=>ka,ZodIntersection:()=>Jl,ZodIssueCode:()=>gb,ZodJWT:()=>Xa,ZodKSUID:()=>Ba,ZodLazy:()=>xp,ZodLiteral:()=>rp,ZodMAC:()=>Rl,ZodMap:()=>ep,ZodNaN:()=>hp,ZodNanoID:()=>Ma,ZodNever:()=>Vl,ZodNonOptional:()=>os,ZodNull:()=>jl,ZodNullable:()=>sp,ZodNumber:()=>gr,ZodNumberFormat:()=>Nt,ZodObject:()=>go,ZodOptional:()=>ns,ZodPipe:()=>is,ZodPrefault:()=>lp,ZodPromise:()=>Pp,ZodReadonly:()=>yp,ZodRealError:()=>_e,ZodRecord:()=>yo,ZodSet:()=>tp,ZodString:()=>mr,ZodStringFormat:()=>X,ZodSuccess:()=>mp,ZodSymbol:()=>Ml,ZodTemplateLiteral:()=>_p,ZodTransform:()=>op,ZodTuple:()=>Xl,ZodType:()=>B,ZodULID:()=>Fa,ZodURL:()=>po,ZodUUID:()=>Re,ZodUndefined:()=>Ll,ZodUnion:()=>ho,ZodUnknown:()=>Bl,ZodVoid:()=>Hl,ZodXID:()=>Za,ZodXor:()=>Gl,_ZodString:()=>Ra,_default:()=>up,_function:()=>Lf,any:()=>yf,array:()=>fo,base64:()=>Qm,base64url:()=>ef,bigint:()=>df,boolean:()=>Ul,catch:()=>gp,check:()=>jf,cidrv4:()=>Xm,cidrv6:()=>Ym,clone:()=>se,codec:()=>Cf,coerce:()=>wp,config:()=>ee,core:()=>Pe,cuid:()=>Bm,cuid2:()=>Vm,custom:()=>Ff,date:()=>_f,decode:()=>Al,decodeAsync:()=>zl,describe:()=>Zf,discriminatedUnion:()=>If,e164:()=>tf,email:()=>Dm,emoji:()=>Fm,encode:()=>wl,encodeAsync:()=>$l,endsWith:()=>It,enum:()=>ts,exactOptional:()=>ap,file:()=>Of,flattenError:()=>Zt,float32:()=>cf,float64:()=>uf,formatError:()=>Bt,fromJSONSchema:()=>Jf,function:()=>Lf,getErrorMap:()=>yb,globalRegistry:()=>ce,gt:()=>ke,gte:()=>ae,guid:()=>Nm,hash:()=>sf,hex:()=>af,hostname:()=>of,httpUrl:()=>jm,includes:()=>Tt,instanceof:()=>Vf,int:()=>Na,int32:()=>lf,int64:()=>mf,intersection:()=>Kl,ipv4:()=>Wm,ipv6:()=>Km,iso:()=>pr,json:()=>qf,jwt:()=>rf,keyof:()=>xf,ksuid:()=>Gm,lazy:()=>bp,length:()=>nt,literal:()=>kf,locales:()=>rr,looseObject:()=>Tf,looseRecord:()=>wf,lowercase:()=>bt,lt:()=>ze,lte:()=>fe,mac:()=>Jm,map:()=>Af,maxLength:()=>rt,maxSize:()=>Ze,meta:()=>Bf,mime:()=>Et,minLength:()=>oe,minSize:()=>Oe,multipleOf:()=>Fe,nan:()=>Rf,nanoid:()=>Zm,nativeEnum:()=>zf,negative:()=>Fn,never:()=>Qa,nonnegative:()=>Bn,nonoptional:()=>dp,nonpositive:()=>Zn,normalize:()=>wt,null:()=>Fl,nullable:()=>uo,nullish:()=>Df,number:()=>Cl,object:()=>bf,optional:()=>co,overwrite:()=>Ee,parse:()=>Tl,parseAsync:()=>Sl,partialRecord:()=>Ef,pipe:()=>lo,positive:()=>jn,prefault:()=>pp,preprocess:()=>Gf,prettifyError:()=>zo,promise:()=>Mf,property:()=>Vn,readonly:()=>vp,record:()=>Ql,refine:()=>Sp,regex:()=>pe,regexes:()=>ve,registry:()=>sn,safeDecode:()=>Ol,safeDecodeAsync:()=>Nl,safeEncode:()=>kl,safeEncodeAsync:()=>Dl,safeParse:()=>Il,safeParseAsync:()=>El,set:()=>$f,setErrorMap:()=>hb,size:()=>tt,slugify:()=>or,startsWith:()=>St,strictObject:()=>Pf,string:()=>Da,stringFormat:()=>nf,stringbool:()=>Hf,success:()=>Nf,superRefine:()=>Ip,symbol:()=>gf,templateLiteral:()=>Uf,toJSONSchema:()=>qn,toLowerCase:()=>$t,toUpperCase:()=>zt,transform:()=>rs,treeifyError:()=>$o,trim:()=>At,tuple:()=>Yl,uint32:()=>pf,uint64:()=>ff,ulid:()=>Hm,undefined:()=>hf,union:()=>es,unknown:()=>Dt,uppercase:()=>Pt,url:()=>Lm,util:()=>w,uuid:()=>Rm,uuidv4:()=>Cm,uuidv6:()=>Um,uuidv7:()=>Mm,void:()=>vf,xid:()=>qm,xor:()=>Sf});var ao={};Ae(ao,{ZodAny:()=>Zl,ZodArray:()=>ql,ZodBase64:()=>Wa,ZodBase64URL:()=>Ja,ZodBigInt:()=>yr,ZodBigIntFormat:()=>Ya,ZodBoolean:()=>hr,ZodCIDRv4:()=>qa,ZodCIDRv6:()=>Ga,ZodCUID:()=>La,ZodCUID2:()=>ja,ZodCatch:()=>fp,ZodCodec:()=>as,ZodCustom:()=>vo,ZodCustomStringFormat:()=>fr,ZodDate:()=>mo,ZodDefault:()=>cp,ZodDiscriminatedUnion:()=>Wl,ZodE164:()=>Ka,ZodEmail:()=>Ca,ZodEmoji:()=>Ua,ZodEnum:()=>dr,ZodExactOptional:()=>ip,ZodFile:()=>np,ZodFunction:()=>Tp,ZodGUID:()=>so,ZodIPv4:()=>Va,ZodIPv6:()=>Ha,ZodIntersection:()=>Jl,ZodJWT:()=>Xa,ZodKSUID:()=>Ba,ZodLazy:()=>xp,ZodLiteral:()=>rp,ZodMAC:()=>Rl,ZodMap:()=>ep,ZodNaN:()=>hp,ZodNanoID:()=>Ma,ZodNever:()=>Vl,ZodNonOptional:()=>os,ZodNull:()=>jl,ZodNullable:()=>sp,ZodNumber:()=>gr,ZodNumberFormat:()=>Nt,ZodObject:()=>go,ZodOptional:()=>ns,ZodPipe:()=>is,ZodPrefault:()=>lp,ZodPromise:()=>Pp,ZodReadonly:()=>yp,ZodRecord:()=>yo,ZodSet:()=>tp,ZodString:()=>mr,ZodStringFormat:()=>X,ZodSuccess:()=>mp,ZodSymbol:()=>Ml,ZodTemplateLiteral:()=>_p,ZodTransform:()=>op,ZodTuple:()=>Xl,ZodType:()=>B,ZodULID:()=>Fa,ZodURL:()=>po,ZodUUID:()=>Re,ZodUndefined:()=>Ll,ZodUnion:()=>ho,ZodUnknown:()=>Bl,ZodVoid:()=>Hl,ZodXID:()=>Za,ZodXor:()=>Gl,_ZodString:()=>Ra,_default:()=>up,_function:()=>Lf,any:()=>yf,array:()=>fo,base64:()=>Qm,base64url:()=>ef,bigint:()=>df,boolean:()=>Ul,catch:()=>gp,check:()=>jf,cidrv4:()=>Xm,cidrv6:()=>Ym,codec:()=>Cf,cuid:()=>Bm,cuid2:()=>Vm,custom:()=>Ff,date:()=>_f,describe:()=>Zf,discriminatedUnion:()=>If,e164:()=>tf,email:()=>Dm,emoji:()=>Fm,enum:()=>ts,exactOptional:()=>ap,file:()=>Of,float32:()=>cf,float64:()=>uf,function:()=>Lf,guid:()=>Nm,hash:()=>sf,hex:()=>af,hostname:()=>of,httpUrl:()=>jm,instanceof:()=>Vf,int:()=>Na,int32:()=>lf,int64:()=>mf,intersection:()=>Kl,ipv4:()=>Wm,ipv6:()=>Km,json:()=>qf,jwt:()=>rf,keyof:()=>xf,ksuid:()=>Gm,lazy:()=>bp,literal:()=>kf,looseObject:()=>Tf,looseRecord:()=>wf,mac:()=>Jm,map:()=>Af,meta:()=>Bf,nan:()=>Rf,nanoid:()=>Zm,nativeEnum:()=>zf,never:()=>Qa,nonoptional:()=>dp,null:()=>Fl,nullable:()=>uo,nullish:()=>Df,number:()=>Cl,object:()=>bf,optional:()=>co,partialRecord:()=>Ef,pipe:()=>lo,prefault:()=>pp,preprocess:()=>Gf,promise:()=>Mf,readonly:()=>vp,record:()=>Ql,refine:()=>Sp,set:()=>$f,strictObject:()=>Pf,string:()=>Da,stringFormat:()=>nf,stringbool:()=>Hf,success:()=>Nf,superRefine:()=>Ip,symbol:()=>gf,templateLiteral:()=>Uf,transform:()=>rs,tuple:()=>Yl,uint32:()=>pf,uint64:()=>ff,ulid:()=>Hm,undefined:()=>hf,union:()=>es,unknown:()=>Dt,url:()=>Lm,uuid:()=>Rm,uuidv4:()=>Cm,uuidv6:()=>Um,uuidv7:()=>Mm,void:()=>vf,xid:()=>qm,xor:()=>Sf});var Aa={};Ae(Aa,{endsWith:()=>It,gt:()=>ke,gte:()=>ae,includes:()=>Tt,length:()=>nt,lowercase:()=>bt,lt:()=>ze,lte:()=>fe,maxLength:()=>rt,maxSize:()=>Ze,mime:()=>Et,minLength:()=>oe,minSize:()=>Oe,multipleOf:()=>Fe,negative:()=>Fn,nonnegative:()=>Bn,nonpositive:()=>Zn,normalize:()=>wt,overwrite:()=>Ee,positive:()=>jn,property:()=>Vn,regex:()=>pe,size:()=>tt,slugify:()=>or,startsWith:()=>St,toLowerCase:()=>$t,toUpperCase:()=>zt,trim:()=>At,uppercase:()=>Pt});var pr={};Ae(pr,{ZodISODate:()=>za,ZodISODateTime:()=>$a,ZodISODuration:()=>Oa,ZodISOTime:()=>ka,date:()=>xl,datetime:()=>_l,duration:()=>Pl,time:()=>bl});var $a=g("ZodISODateTime",(e,r)=>{oi.init(e,r),X.init(e,r)});function _l(e){return qi($a,e)}s(_l,"datetime");var za=g("ZodISODate",(e,r)=>{ii.init(e,r),X.init(e,r)});function xl(e){return Gi(za,e)}s(xl,"date");var ka=g("ZodISOTime",(e,r)=>{ai.init(e,r),X.init(e,r)});function bl(e){return Wi(ka,e)}s(bl,"time");var Oa=g("ZodISODuration",(e,r)=>{si.init(e,r),X.init(e,r)});function Pl(e){return Ji(Oa,e)}s(Pl,"duration");var Om=s((e,r)=>{Cr.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:s(n=>Bt(e,n),"value")},flatten:{value:s(n=>Zt(e,n),"value")},addIssue:{value:s(n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Lt,2)},"value")},addIssues:{value:s(n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Lt,2)},"value")},isEmpty:{get(){return e.issues.length===0}}})},"initializer"),mb=g("ZodError",Om),_e=g("ZodError",Om,{Parent:Error});var Tl=Vt(_e),Sl=Ht(_e),Il=qt(_e),El=Wt(_e),wl=ko(_e),Al=Oo(_e),$l=Do(_e),zl=No(_e),kl=Ro(_e),Ol=Co(_e),Dl=Uo(_e),Nl=Mo(_e);var B=g("ZodType",(e,r)=>(R.init(e,r),Object.assign(e["~standard"],{jsonSchema:{input:ir(e,"input"),output:ir(e,"output")}}),e.toJSONSchema=Iu(e,{}),e.def=r,e.type=r.type,Object.defineProperty(e,"_def",{value:r}),e.check=(...n)=>e.clone(w.mergeDefs(r,{checks:[...r.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0}),e.with=e.check,e.clone=(n,i)=>se(e,n,i),e.brand=()=>e,e.register=((n,i)=>(n.add(e,i),e)),e.parse=(n,i)=>Tl(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>Il(e,n,i),e.parseAsync=async(n,i)=>Sl(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>El(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>wl(e,n,i),e.decode=(n,i)=>Al(e,n,i),e.encodeAsync=async(n,i)=>$l(e,n,i),e.decodeAsync=async(n,i)=>zl(e,n,i),e.safeEncode=(n,i)=>kl(e,n,i),e.safeDecode=(n,i)=>Ol(e,n,i),e.safeEncodeAsync=async(n,i)=>Dl(e,n,i),e.safeDecodeAsync=async(n,i)=>Nl(e,n,i),e.refine=(n,i)=>e.check(Sp(n,i)),e.superRefine=n=>e.check(Ip(n)),e.overwrite=n=>e.check(Ee(n)),e.optional=()=>co(e),e.exactOptional=()=>ap(e),e.nullable=()=>uo(e),e.nullish=()=>co(uo(e)),e.nonoptional=n=>dp(e,n),e.array=()=>fo(e),e.or=n=>es([e,n]),e.and=n=>Kl(e,n),e.transform=n=>lo(e,rs(n)),e.default=n=>up(e,n),e.prefault=n=>pp(e,n),e.catch=n=>gp(e,n),e.pipe=n=>lo(e,n),e.readonly=()=>vp(e),e.describe=n=>{let i=e.clone();return ce.add(i,{description:n}),i},Object.defineProperty(e,"description",{get(){return ce.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return ce.get(e);let i=e.clone();return ce.add(i,n[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),Ra=g("_ZodString",(e,r)=>{je.init(e,r),B.init(e,r),e._zod.processJSONSchema=(i,t,o)=>Eu(e,i,t,o);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...i)=>e.check(pe(...i)),e.includes=(...i)=>e.check(Tt(...i)),e.startsWith=(...i)=>e.check(St(...i)),e.endsWith=(...i)=>e.check(It(...i)),e.min=(...i)=>e.check(oe(...i)),e.max=(...i)=>e.check(rt(...i)),e.length=(...i)=>e.check(nt(...i)),e.nonempty=(...i)=>e.check(oe(1,...i)),e.lowercase=i=>e.check(bt(i)),e.uppercase=i=>e.check(Pt(i)),e.trim=()=>e.check(At()),e.normalize=(...i)=>e.check(wt(...i)),e.toLowerCase=()=>e.check($t()),e.toUpperCase=()=>e.check(zt()),e.slugify=()=>e.check(or())}),mr=g("ZodString",(e,r)=>{je.init(e,r),Ra.init(e,r),e.email=n=>e.check(ln(Ca,n)),e.url=n=>e.check(xt(po,n)),e.jwt=n=>e.check($n(Xa,n)),e.emoji=n=>e.check(gn(Ua,n)),e.guid=n=>e.check(nr(so,n)),e.uuid=n=>e.check(pn(Re,n)),e.uuidv4=n=>e.check(dn(Re,n)),e.uuidv6=n=>e.check(mn(Re,n)),e.uuidv7=n=>e.check(fn(Re,n)),e.nanoid=n=>e.check(hn(Ma,n)),e.guid=n=>e.check(nr(so,n)),e.cuid=n=>e.check(yn(La,n)),e.cuid2=n=>e.check(vn(ja,n)),e.ulid=n=>e.check(_n(Fa,n)),e.base64=n=>e.check(En(Wa,n)),e.base64url=n=>e.check(wn(Ja,n)),e.xid=n=>e.check(xn(Za,n)),e.ksuid=n=>e.check(bn(Ba,n)),e.ipv4=n=>e.check(Pn(Va,n)),e.ipv6=n=>e.check(Tn(Ha,n)),e.cidrv4=n=>e.check(Sn(qa,n)),e.cidrv6=n=>e.check(In(Ga,n)),e.e164=n=>e.check(An(Ka,n)),e.datetime=n=>e.check(_l(n)),e.date=n=>e.check(xl(n)),e.time=n=>e.check(bl(n)),e.duration=n=>e.check(Pl(n))});function Da(e){return cn(mr,e)}s(Da,"string");var X=g("ZodStringFormat",(e,r)=>{W.init(e,r),Ra.init(e,r)}),Ca=g("ZodEmail",(e,r)=>{Ko.init(e,r),X.init(e,r)});function Dm(e){return ln(Ca,e)}s(Dm,"email");var so=g("ZodGUID",(e,r)=>{Wo.init(e,r),X.init(e,r)});function Nm(e){return nr(so,e)}s(Nm,"guid");var Re=g("ZodUUID",(e,r)=>{Jo.init(e,r),X.init(e,r)});function Rm(e){return pn(Re,e)}s(Rm,"uuid");function Cm(e){return dn(Re,e)}s(Cm,"uuidv4");function Um(e){return mn(Re,e)}s(Um,"uuidv6");function Mm(e){return fn(Re,e)}s(Mm,"uuidv7");var po=g("ZodURL",(e,r)=>{jr.init(e,r),X.init(e,r)});function Lm(e){return xt(po,e)}s(Lm,"url");function jm(e){return xt(po,{protocol:/^https?$/,hostname:ve.domain,...w.normalizeParams(e)})}s(jm,"httpUrl");var Ua=g("ZodEmoji",(e,r)=>{Xo.init(e,r),X.init(e,r)});function Fm(e){return gn(Ua,e)}s(Fm,"emoji");var Ma=g("ZodNanoID",(e,r)=>{Yo.init(e,r),X.init(e,r)});function Zm(e){return hn(Ma,e)}s(Zm,"nanoid");var La=g("ZodCUID",(e,r)=>{Qo.init(e,r),X.init(e,r)});function Bm(e){return yn(La,e)}s(Bm,"cuid");var ja=g("ZodCUID2",(e,r)=>{ei.init(e,r),X.init(e,r)});function Vm(e){return vn(ja,e)}s(Vm,"cuid2");var Fa=g("ZodULID",(e,r)=>{ti.init(e,r),X.init(e,r)});function Hm(e){return _n(Fa,e)}s(Hm,"ulid");var Za=g("ZodXID",(e,r)=>{ri.init(e,r),X.init(e,r)});function qm(e){return xn(Za,e)}s(qm,"xid");var Ba=g("ZodKSUID",(e,r)=>{ni.init(e,r),X.init(e,r)});function Gm(e){return bn(Ba,e)}s(Gm,"ksuid");var Va=g("ZodIPv4",(e,r)=>{ci.init(e,r),X.init(e,r)});function Wm(e){return Pn(Va,e)}s(Wm,"ipv4");var Rl=g("ZodMAC",(e,r)=>{li.init(e,r),X.init(e,r)});function Jm(e){return Vi(Rl,e)}s(Jm,"mac");var Ha=g("ZodIPv6",(e,r)=>{ui.init(e,r),X.init(e,r)});function Km(e){return Tn(Ha,e)}s(Km,"ipv6");var qa=g("ZodCIDRv4",(e,r)=>{pi.init(e,r),X.init(e,r)});function Xm(e){return Sn(qa,e)}s(Xm,"cidrv4");var Ga=g("ZodCIDRv6",(e,r)=>{di.init(e,r),X.init(e,r)});function Ym(e){return In(Ga,e)}s(Ym,"cidrv6");var Wa=g("ZodBase64",(e,r)=>{mi.init(e,r),X.init(e,r)});function Qm(e){return En(Wa,e)}s(Qm,"base64");var Ja=g("ZodBase64URL",(e,r)=>{fi.init(e,r),X.init(e,r)});function ef(e){return wn(Ja,e)}s(ef,"base64url");var Ka=g("ZodE164",(e,r)=>{gi.init(e,r),X.init(e,r)});function tf(e){return An(Ka,e)}s(tf,"e164");var Xa=g("ZodJWT",(e,r)=>{hi.init(e,r),X.init(e,r)});function rf(e){return $n(Xa,e)}s(rf,"jwt");var fr=g("ZodCustomStringFormat",(e,r)=>{yi.init(e,r),X.init(e,r)});function nf(e,r,n={}){return kt(fr,e,r,n)}s(nf,"stringFormat");function of(e){return kt(fr,"hostname",ve.hostname,e)}s(of,"hostname");function af(e){return kt(fr,"hex",ve.hex,e)}s(af,"hex");function sf(e,r){let n=r?.enc??"hex",i=`${e}_${n}`,t=ve[i];if(!t)throw new Error(`Unrecognized hash format: ${i}`);return kt(fr,i,t,r)}s(sf,"hash");var gr=g("ZodNumber",(e,r)=>{Xt.init(e,r),B.init(e,r),e._zod.processJSONSchema=(i,t,o)=>wu(e,i,t,o),e.gt=(i,t)=>e.check(ke(i,t)),e.gte=(i,t)=>e.check(ae(i,t)),e.min=(i,t)=>e.check(ae(i,t)),e.lt=(i,t)=>e.check(ze(i,t)),e.lte=(i,t)=>e.check(fe(i,t)),e.max=(i,t)=>e.check(fe(i,t)),e.int=i=>e.check(Na(i)),e.safe=i=>e.check(Na(i)),e.positive=i=>e.check(ke(0,i)),e.nonnegative=i=>e.check(ae(0,i)),e.negative=i=>e.check(ze(0,i)),e.nonpositive=i=>e.check(fe(0,i)),e.multipleOf=(i,t)=>e.check(Fe(i,t)),e.step=(i,t)=>e.check(Fe(i,t)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Cl(e){return zn(gr,e)}s(Cl,"number");var Nt=g("ZodNumberFormat",(e,r)=>{Fr.init(e,r),gr.init(e,r)});function Na(e){return On(Nt,e)}s(Na,"int");function cf(e){return Ki(Nt,e)}s(cf,"float32");function uf(e){return Xi(Nt,e)}s(uf,"float64");function lf(e){return Yi(Nt,e)}s(lf,"int32");function pf(e){return Qi(Nt,e)}s(pf,"uint32");var hr=g("ZodBoolean",(e,r)=>{vt.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>Au(e,n,i,t)});function Ul(e){return Dn(hr,e)}s(Ul,"boolean");var yr=g("ZodBigInt",(e,r)=>{Yt.init(e,r),B.init(e,r),e._zod.processJSONSchema=(i,t,o)=>$u(e,i,t,o),e.gte=(i,t)=>e.check(ae(i,t)),e.min=(i,t)=>e.check(ae(i,t)),e.gt=(i,t)=>e.check(ke(i,t)),e.gte=(i,t)=>e.check(ae(i,t)),e.min=(i,t)=>e.check(ae(i,t)),e.lt=(i,t)=>e.check(ze(i,t)),e.lte=(i,t)=>e.check(fe(i,t)),e.max=(i,t)=>e.check(fe(i,t)),e.positive=i=>e.check(ke(BigInt(0),i)),e.negative=i=>e.check(ze(BigInt(0),i)),e.nonpositive=i=>e.check(fe(BigInt(0),i)),e.nonnegative=i=>e.check(ae(BigInt(0),i)),e.multipleOf=(i,t)=>e.check(Fe(i,t));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function df(e){return ea(yr,e)}s(df,"bigint");var Ya=g("ZodBigIntFormat",(e,r)=>{vi.init(e,r),yr.init(e,r)});function mf(e){return ta(Ya,e)}s(mf,"int64");function ff(e){return ra(Ya,e)}s(ff,"uint64");var Ml=g("ZodSymbol",(e,r)=>{_i.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>zu(e,n,i,t)});function gf(e){return na(Ml,e)}s(gf,"symbol");var Ll=g("ZodUndefined",(e,r)=>{xi.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>Ou(e,n,i,t)});function hf(e){return oa(Ll,e)}s(hf,"_undefined");var jl=g("ZodNull",(e,r)=>{bi.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>ku(e,n,i,t)});function Fl(e){return ia(jl,e)}s(Fl,"_null");var Zl=g("ZodAny",(e,r)=>{Zr.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>Ru(e,n,i,t)});function yf(){return Cn(Zl)}s(yf,"any");var Bl=g("ZodUnknown",(e,r)=>{Br.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>Cu(e,n,i,t)});function Dt(){return Un(Bl)}s(Dt,"unknown");var Vl=g("ZodNever",(e,r)=>{Pi.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>Nu(e,n,i,t)});function Qa(e){return aa(Vl,e)}s(Qa,"never");var Hl=g("ZodVoid",(e,r)=>{Vr.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>Du(e,n,i,t)});function vf(e){return Mn(Hl,e)}s(vf,"_void");var mo=g("ZodDate",(e,r)=>{Hr.init(e,r),B.init(e,r),e._zod.processJSONSchema=(i,t,o)=>Uu(e,i,t,o),e.min=(i,t)=>e.check(ae(i,t)),e.max=(i,t)=>e.check(fe(i,t));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function _f(e){return sa(mo,e)}s(_f,"date");var ql=g("ZodArray",(e,r)=>{qr.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>Ju(e,n,i,t),e.element=r.element,e.min=(n,i)=>e.check(oe(n,i)),e.nonempty=n=>e.check(oe(1,n)),e.max=(n,i)=>e.check(rt(n,i)),e.length=(n,i)=>e.check(nt(n,i)),e.unwrap=()=>e.element});function fo(e,r){return Su(ql,e,r)}s(fo,"array");function xf(e){let r=e._zod.def.shape;return ts(Object.keys(r))}s(xf,"keyof");var go=g("ZodObject",(e,r)=>{kc.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>Ku(e,n,i,t),w.defineLazy(e,"shape",()=>r.shape),e.keyof=()=>ts(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Dt()}),e.loose=()=>e.clone({...e._zod.def,catchall:Dt()}),e.strict=()=>e.clone({...e._zod.def,catchall:Qa()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>w.extend(e,n),e.safeExtend=n=>w.safeExtend(e,n),e.merge=n=>w.merge(e,n),e.pick=n=>w.pick(e,n),e.omit=n=>w.omit(e,n),e.partial=(...n)=>w.partial(ns,e,n[0]),e.required=(...n)=>w.required(os,e,n[0])});function bf(e,r){let n={type:"object",shape:e??{},...w.normalizeParams(r)};return new go(n)}s(bf,"object");function Pf(e,r){return new go({type:"object",shape:e,catchall:Qa(),...w.normalizeParams(r)})}s(Pf,"strictObject");function Tf(e,r){return new go({type:"object",shape:e,catchall:Dt(),...w.normalizeParams(r)})}s(Tf,"looseObject");var ho=g("ZodUnion",(e,r)=>{_t.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>ha(e,n,i,t),e.options=r.options});function es(e,r){return new ho({type:"union",options:e,...w.normalizeParams(r)})}s(es,"union");var Gl=g("ZodXor",(e,r)=>{ho.init(e,r),Si.init(e,r),e._zod.processJSONSchema=(n,i,t)=>ha(e,n,i,t),e.options=r.options});function Sf(e,r){return new Gl({type:"union",options:e,inclusive:!1,...w.normalizeParams(r)})}s(Sf,"xor");var Wl=g("ZodDiscriminatedUnion",(e,r)=>{ho.init(e,r),Gr.init(e,r)});function If(e,r,n){return new Wl({type:"union",options:r,discriminator:e,...w.normalizeParams(n)})}s(If,"discriminatedUnion");var Jl=g("ZodIntersection",(e,r)=>{Ii.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>Xu(e,n,i,t)});function Kl(e,r){return new Jl({type:"intersection",left:e,right:r})}s(Kl,"intersection");var Xl=g("ZodTuple",(e,r)=>{Wr.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>Yu(e,n,i,t),e.rest=n=>e.clone({...e._zod.def,rest:n})});function Yl(e,r,n){let i=r instanceof R,t=i?n:r,o=i?r:null;return new Xl({type:"tuple",items:e,rest:o,...w.normalizeParams(t)})}s(Yl,"tuple");var yo=g("ZodRecord",(e,r)=>{Jr.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>Qu(e,n,i,t),e.keyType=r.keyType,e.valueType=r.valueType});function Ql(e,r,n){return new yo({type:"record",keyType:e,valueType:r,...w.normalizeParams(n)})}s(Ql,"record");function Ef(e,r,n){let i=se(e);return i._zod.values=void 0,new yo({type:"record",keyType:i,valueType:r,...w.normalizeParams(n)})}s(Ef,"partialRecord");function wf(e,r,n){return new yo({type:"record",keyType:e,valueType:r,mode:"loose",...w.normalizeParams(n)})}s(wf,"looseRecord");var ep=g("ZodMap",(e,r)=>{Ei.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>Gu(e,n,i,t),e.keyType=r.keyType,e.valueType=r.valueType,e.min=(...n)=>e.check(Oe(...n)),e.nonempty=n=>e.check(Oe(1,n)),e.max=(...n)=>e.check(Ze(...n)),e.size=(...n)=>e.check(tt(...n))});function Af(e,r,n){return new ep({type:"map",keyType:e,valueType:r,...w.normalizeParams(n)})}s(Af,"map");var tp=g("ZodSet",(e,r)=>{wi.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>Wu(e,n,i,t),e.min=(...n)=>e.check(Oe(...n)),e.nonempty=n=>e.check(Oe(1,n)),e.max=(...n)=>e.check(Ze(...n)),e.size=(...n)=>e.check(tt(...n))});function $f(e,r){return new tp({type:"set",valueType:e,...w.normalizeParams(r)})}s($f,"set");var dr=g("ZodEnum",(e,r)=>{Kr.init(e,r),B.init(e,r),e._zod.processJSONSchema=(i,t,o)=>Mu(e,i,t,o),e.enum=r.entries,e.options=Object.values(r.entries);let n=new Set(Object.keys(r.entries));e.extract=(i,t)=>{let o={};for(let a of i)if(n.has(a))o[a]=r.entries[a];else throw new Error(`Key ${a} not found in enum`);return new dr({...r,checks:[],...w.normalizeParams(t),entries:o})},e.exclude=(i,t)=>{let o={...r.entries};for(let a of i)if(n.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new dr({...r,checks:[],...w.normalizeParams(t),entries:o})}});function ts(e,r){let n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new dr({type:"enum",entries:n,...w.normalizeParams(r)})}s(ts,"_enum");function zf(e,r){return new dr({type:"enum",entries:e,...w.normalizeParams(r)})}s(zf,"nativeEnum");var rp=g("ZodLiteral",(e,r)=>{Xr.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>Lu(e,n,i,t),e.values=new Set(r.values),Object.defineProperty(e,"value",{get(){if(r.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function kf(e,r){return new rp({type:"literal",values:Array.isArray(e)?e:[e],...w.normalizeParams(r)})}s(kf,"literal");var np=g("ZodFile",(e,r)=>{Ai.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>Zu(e,n,i,t),e.min=(n,i)=>e.check(Oe(n,i)),e.max=(n,i)=>e.check(Ze(n,i)),e.mime=(n,i)=>e.check(Et(Array.isArray(n)?n:[n],i))});function Of(e){return ua(np,e)}s(Of,"file");var op=g("ZodTransform",(e,r)=>{Yr.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>qu(e,n,i,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new Ke(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(w.issue(o,n.value,r));else{let a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(w.issue(a))}};let t=r.transform(n.value,n);return t instanceof Promise?t.then(o=>(n.value=o,n)):(n.value=t,n)}});function rs(e){return new op({type:"transform",transform:e})}s(rs,"transform");var ns=g("ZodOptional",(e,r)=>{Qt.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>ya(e,n,i,t),e.unwrap=()=>e._zod.def.innerType});function co(e){return new ns({type:"optional",innerType:e})}s(co,"optional");var ip=g("ZodExactOptional",(e,r)=>{$i.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>ya(e,n,i,t),e.unwrap=()=>e._zod.def.innerType});function ap(e){return new ip({type:"optional",innerType:e})}s(ap,"exactOptional");var sp=g("ZodNullable",(e,r)=>{Qr.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>el(e,n,i,t),e.unwrap=()=>e._zod.def.innerType});function uo(e){return new sp({type:"nullable",innerType:e})}s(uo,"nullable");function Df(e){return co(uo(e))}s(Df,"nullish");var cp=g("ZodDefault",(e,r)=>{zi.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>rl(e,n,i,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function up(e,r){return new cp({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():w.shallowClone(r)}})}s(up,"_default");var lp=g("ZodPrefault",(e,r)=>{ki.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>nl(e,n,i,t),e.unwrap=()=>e._zod.def.innerType});function pp(e,r){return new lp({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():w.shallowClone(r)}})}s(pp,"prefault");var os=g("ZodNonOptional",(e,r)=>{Oi.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>tl(e,n,i,t),e.unwrap=()=>e._zod.def.innerType});function dp(e,r){return new os({type:"nonoptional",innerType:e,...w.normalizeParams(r)})}s(dp,"nonoptional");var mp=g("ZodSuccess",(e,r)=>{Di.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>Bu(e,n,i,t),e.unwrap=()=>e._zod.def.innerType});function Nf(e){return new mp({type:"success",innerType:e})}s(Nf,"success");var fp=g("ZodCatch",(e,r)=>{Ni.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>ol(e,n,i,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function gp(e,r){return new fp({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}s(gp,"_catch");var hp=g("ZodNaN",(e,r)=>{Ri.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>ju(e,n,i,t)});function Rf(e){return ca(hp,e)}s(Rf,"nan");var is=g("ZodPipe",(e,r)=>{en.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>il(e,n,i,t),e.in=r.in,e.out=r.out});function lo(e,r){return new is({type:"pipe",in:e,out:r})}s(lo,"pipe");var as=g("ZodCodec",(e,r)=>{is.init(e,r),er.init(e,r)});function Cf(e,r,n){return new as({type:"pipe",in:e,out:r,transform:n.decode,reverseTransform:n.encode})}s(Cf,"codec");var yp=g("ZodReadonly",(e,r)=>{Ci.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>al(e,n,i,t),e.unwrap=()=>e._zod.def.innerType});function vp(e){return new yp({type:"readonly",innerType:e})}s(vp,"readonly");var _p=g("ZodTemplateLiteral",(e,r)=>{Ui.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>Fu(e,n,i,t)});function Uf(e,r){return new _p({type:"template_literal",parts:e,...w.normalizeParams(r)})}s(Uf,"templateLiteral");var xp=g("ZodLazy",(e,r)=>{ji.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>cl(e,n,i,t),e.unwrap=()=>e._zod.def.getter()});function bp(e){return new xp({type:"lazy",getter:e})}s(bp,"lazy");var Pp=g("ZodPromise",(e,r)=>{Li.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>sl(e,n,i,t),e.unwrap=()=>e._zod.def.innerType});function Mf(e){return new Pp({type:"promise",innerType:e})}s(Mf,"promise");var Tp=g("ZodFunction",(e,r)=>{Mi.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>Hu(e,n,i,t)});function Lf(e){return new Tp({type:"function",input:Array.isArray(e?.input)?Yl(e?.input):e?.input??fo(Dt()),output:e?.output??Dt()})}s(Lf,"_function");var vo=g("ZodCustom",(e,r)=>{tn.init(e,r),B.init(e,r),e._zod.processJSONSchema=(n,i,t)=>Vu(e,n,i,t)});function jf(e){let r=new K({check:"custom"});return r._zod.check=e,r}s(jf,"check");function Ff(e,r){return Hn(vo,e??(()=>!0),r)}s(Ff,"custom");function Sp(e,r={}){return la(vo,e,r)}s(Sp,"refine");function Ip(e){return pa(e)}s(Ip,"superRefine");var Zf=da,Bf=ma;function Vf(e,r={}){let n=new vo({type:"custom",check:"custom",fn:s(i=>i instanceof e,"fn"),abort:!0,...w.normalizeParams(r)});return n._zod.bag.Class=e,n._zod.check=i=>{i.value instanceof e||i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:n,path:[...n._zod.def.path??[]]})},n}s(Vf,"_instanceof");var Hf=s((...e)=>fa({Codec:as,Boolean:hr,String:mr},...e),"stringbool");function qf(e){let r=bp(()=>es([Da(e),Cl(),Ul(),Fl(),fo(r),Ql(Da(),r)]));return r}s(qf,"json");function Gf(e,r){return lo(rs(e),r)}s(Gf,"preprocess");var gb={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 hb(e){ee({customError:e})}s(hb,"setErrorMap");function yb(){return ee().customError}s(yb,"getErrorMap");var Ep;Ep||(Ep={});var z={...ao,...Aa,iso:pr},vb=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function _b(e,r){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":r??"draft-2020-12"}s(_b,"detectVersion");function xb(e,r){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return r.rootSchema;let i=r.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===i){let t=n[1];if(!t||!r.defs[t])throw new Error(`Reference not found: ${e}`);return r.defs[t]}throw new Error(`Reference not found: ${e}`)}s(xb,"resolveRef");function Wf(e,r){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return z.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let t=e.$ref;if(r.refs.has(t))return r.refs.get(t);if(r.processing.has(t))return z.lazy(()=>{if(!r.refs.has(t))throw new Error(`Circular reference not resolved: ${t}`);return r.refs.get(t)});r.processing.add(t);let o=xb(t,r),a=me(o,r);return r.refs.set(t,a),r.processing.delete(t),a}if(e.enum!==void 0){let t=e.enum;if(r.version==="openapi-3.0"&&e.nullable===!0&&t.length===1&&t[0]===null)return z.null();if(t.length===0)return z.never();if(t.length===1)return z.literal(t[0]);if(t.every(a=>typeof a=="string"))return z.enum(t);let o=t.map(a=>z.literal(a));return o.length<2?o[0]:z.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return z.literal(e.const);let n=e.type;if(Array.isArray(n)){let t=n.map(o=>{let a={...e,type:o};return Wf(a,r)});return t.length===0?z.never():t.length===1?t[0]:z.union(t)}if(!n)return z.any();let i;switch(n){case"string":{let t=z.string();if(e.format){let o=e.format;o==="email"?t=t.check(z.email()):o==="uri"||o==="uri-reference"?t=t.check(z.url()):o==="uuid"||o==="guid"?t=t.check(z.uuid()):o==="date-time"?t=t.check(z.iso.datetime()):o==="date"?t=t.check(z.iso.date()):o==="time"?t=t.check(z.iso.time()):o==="duration"?t=t.check(z.iso.duration()):o==="ipv4"?t=t.check(z.ipv4()):o==="ipv6"?t=t.check(z.ipv6()):o==="mac"?t=t.check(z.mac()):o==="cidr"?t=t.check(z.cidrv4()):o==="cidr-v6"?t=t.check(z.cidrv6()):o==="base64"?t=t.check(z.base64()):o==="base64url"?t=t.check(z.base64url()):o==="e164"?t=t.check(z.e164()):o==="jwt"?t=t.check(z.jwt()):o==="emoji"?t=t.check(z.emoji()):o==="nanoid"?t=t.check(z.nanoid()):o==="cuid"?t=t.check(z.cuid()):o==="cuid2"?t=t.check(z.cuid2()):o==="ulid"?t=t.check(z.ulid()):o==="xid"?t=t.check(z.xid()):o==="ksuid"&&(t=t.check(z.ksuid()))}typeof e.minLength=="number"&&(t=t.min(e.minLength)),typeof e.maxLength=="number"&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),i=t;break}case"number":case"integer":{let t=n==="integer"?z.number().int():z.number();typeof e.minimum=="number"&&(t=t.min(e.minimum)),typeof e.maximum=="number"&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum=="number"?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(t=t.lt(e.maximum)),typeof e.multipleOf=="number"&&(t=t.multipleOf(e.multipleOf)),i=t;break}case"boolean":{i=z.boolean();break}case"null":{i=z.null();break}case"object":{let t={},o=e.properties||{},a=new Set(e.required||[]);for(let[p,d]of Object.entries(o)){let f=me(d,r);t[p]=a.has(p)?f:f.optional()}if(e.propertyNames){let p=me(e.propertyNames,r),d=e.additionalProperties&&typeof e.additionalProperties=="object"?me(e.additionalProperties,r):z.any();if(Object.keys(t).length===0){i=z.record(p,d);break}let f=z.object(t).passthrough(),b=z.looseRecord(p,d);i=z.intersection(f,b);break}if(e.patternProperties){let p=e.patternProperties,d=Object.keys(p),f=[];for(let v of d){let u=me(p[v],r),h=z.string().regex(new RegExp(v));f.push(z.looseRecord(h,u))}let b=[];if(Object.keys(t).length>0&&b.push(z.object(t).passthrough()),b.push(...f),b.length===0)i=z.object({}).passthrough();else if(b.length===1)i=b[0];else{let v=z.intersection(b[0],b[1]);for(let u=2;u<b.length;u++)v=z.intersection(v,b[u]);i=v}break}let c=z.object(t);e.additionalProperties===!1?i=c.strict():typeof e.additionalProperties=="object"?i=c.catchall(me(e.additionalProperties,r)):i=c.passthrough();break}case"array":{let t=e.prefixItems,o=e.items;if(t&&Array.isArray(t)){let a=t.map(p=>me(p,r)),c=o&&typeof o=="object"&&!Array.isArray(o)?me(o,r):void 0;c?i=z.tuple(a).rest(c):i=z.tuple(a),typeof e.minItems=="number"&&(i=i.check(z.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(z.maxLength(e.maxItems)))}else if(Array.isArray(o)){let a=o.map(p=>me(p,r)),c=e.additionalItems&&typeof e.additionalItems=="object"?me(e.additionalItems,r):void 0;c?i=z.tuple(a).rest(c):i=z.tuple(a),typeof e.minItems=="number"&&(i=i.check(z.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(z.maxLength(e.maxItems)))}else if(o!==void 0){let a=me(o,r),c=z.array(a);typeof e.minItems=="number"&&(c=c.min(e.minItems)),typeof e.maxItems=="number"&&(c=c.max(e.maxItems)),i=c}else i=z.array(z.any());break}default:throw new Error(`Unsupported type: ${n}`)}return e.description&&(i=i.describe(e.description)),e.default!==void 0&&(i=i.default(e.default)),i}s(Wf,"convertBaseSchema");function me(e,r){if(typeof e=="boolean")return e?z.any():z.never();let n=Wf(e,r),i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let c=e.anyOf.map(d=>me(d,r)),p=z.union(c);n=i?z.intersection(n,p):p}if(e.oneOf&&Array.isArray(e.oneOf)){let c=e.oneOf.map(d=>me(d,r)),p=z.xor(c);n=i?z.intersection(n,p):p}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=i?n:z.any();else{let c=i?n:me(e.allOf[0],r),p=i?0:1;for(let d=p;d<e.allOf.length;d++)c=z.intersection(c,me(e.allOf[d],r));n=c}e.nullable===!0&&r.version==="openapi-3.0"&&(n=z.nullable(n)),e.readOnly===!0&&(n=z.readonly(n));let t={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let c of o)c in e&&(t[c]=e[c]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let c of a)c in e&&(t[c]=e[c]);for(let c of Object.keys(e))vb.has(c)||(t[c]=e[c]);return Object.keys(t).length>0&&r.registry.add(n,t),n}s(me,"convertSchema");function Jf(e,r){if(typeof e=="boolean")return e?z.any():z.never();let n=_b(e,r?.defaultTarget),i=e.$defs||e.definitions||{},t={version:n,defs:i,refs:new Map,processing:new Set,rootSchema:e,registry:r?.registry??ce};return me(e,t)}s(Jf,"fromJSONSchema");var wp={};Ae(wp,{bigint:()=>Sb,boolean:()=>Tb,date:()=>Ib,number:()=>Pb,string:()=>bb});function bb(e){return un(mr,e)}s(bb,"string");function Pb(e){return kn(gr,e)}s(Pb,"number");function Tb(e){return Nn(hr,e)}s(Tb,"boolean");function Sb(e){return Rn(yr,e)}s(Sb,"bigint");function Ib(e){return Ln(mo,e)}s(Ib,"date");ee(rn());var Nk=ss.enum(["active","out_of_credits","rejected","unreachable"]);var Kf=(i=>(i.AGENT_DECIDE="agent-decide",i.CHOOSE_YOURSELF="choose-yourself",i.LEAVE_EMPTY="leave-empty",i))(Kf||{}),Ap=(n=>(n.FILE="FILE",n.TABLE="TABLE",n))(Ap||{}),$p=(i=>(i.SSE="sse",i.STREAMABLE_HTTP="streamable-http",i.SIMPLE_HTTP="http",i))($p||{});var zp=(i=>(i.TEXT="text",i.NUMBER="number",i.BOOLEAN="boolean",i))(zp||{});var kp=(n=>(n.IN_PROGRESS="in-progress",n.COMPLETED="completed",n))(kp||{});var Eb=y({mode:D(Kf),value:M()}),wb=y({auth:x(l()),fields:L(l(),Eb)}),Ab=y({pieceName:l(),pieceVersion:l(),actionName:l(),predefinedInput:x(wb)}),$b=y({type:O("PIECE"),toolName:l().check(oe(1)),pieceMetadata:Ab}),zb=y({type:O("none")}),kb=y({type:O("access_token"),accessToken:l()}),Ob=y({type:O("api_key"),apiKey:l(),apiKeyHeader:l()}),Db=y({type:O("headers"),headers:L(l(),l())}),Nb=st("type",[zb,kb,Ob,Db]),Xf=y({type:O("FLOW"),toolName:l().check(oe(1)),externalFlowId:l(),flowDisplayName:x(l())}),Yf=y({type:O("MCP"),toolName:l().check(oe(1)),serverUrl:mm(),protocol:D($p),auth:Nb}),Qf=y({type:O("KNOWLEDGE_BASE"),toolName:l().check(oe(1)),sourceType:D(Ap),sourceId:l(),sourceName:l()}),Rb=st("type",[$b,Xf,Yf,Qf]),Cb=y({displayName:l(),description:x(l()),type:D(zp)}),eg=y({type:O("MARKDOWN"),markdown:l()}),vr={type:O("TOOL_CALL"),input:te(L(l(),M())),output:x(M()),toolName:l(),status:D(kp),toolCallId:l(),startTime:l(),endTime:x(l())},cO=y(vr),tg=st("toolCallType",[y({...vr,toolCallType:O("PIECE"),pieceName:l(),pieceVersion:l(),actionName:l()}),y({...vr,toolCallType:O("FLOW"),displayName:l(),externalFlowId:l()}),y({...vr,toolCallType:O("MCP"),displayName:l(),serverUrl:l()}),y({...vr,toolCallType:O("KNOWLEDGE_BASE"),displayName:l(),sourceType:l()}),y({...vr,toolCallType:O("UNKNOWN"),displayName:l()})]),Ub=Z([eg,tg]);var Mb=10800*1e3,Lb=900*1e3;var Dp=(n=>(n.IMAGE="image",n.TEXT="text",n))(Dp||{}),Ge=y({apiKey:l()}),Fb=Ge,Zb=y({apiKey:l(),apiKeyHash:l()}),Bb=Ge,Vb=Ge,Hb=Ge,qb=Ge,Gb=Ge,Wb=Ge,Jb=Ge,ig=y({serviceAccountJson:l().check(oe(1))}),ag=y({accessKeyId:l().check(oe(1)),secretAccessKey:l().check(oe(1))}),Kb=y({}),Xb=y({}),Yb=y({}),Qb=y({}),eP=y({}),tP=y({}),Np=y({modelId:l(),modelName:l(),modelType:D(Dp)}),sg=y({apiKeyHeader:l(),baseUrl:l(),models:N(Np),defaultHeaders:x(L(l(),l())),apiStyle:x(D(["chat","responses"]))}),cg=y({accountId:l(),gatewayId:l(),models:N(Np),vertexProject:x(l()),vertexRegion:x(l())}),ug=y({resourceName:l(),apiVersion:ut(ct(e=>typeof e=="string"&&e.trim().length===0?void 0:e),x(l()))}),lg=y({region:l().check(oe(1))}),pg=y({project:l().check(pe(/^[a-z0-9][a-z0-9-]{0,62}$/)),region:l().check(pe(/^[a-z0-9][a-z0-9-]{0,62}$/)),models:N(Np)}),dg=y({}),rP=Z([Fb,Hb,qb,Gb,Wb,Vb,Bb,Zb,ag,ig,Jb]),mg=Z([sg,cg,ug,pg,lg,Kb,Yb,Qb,eP,Xb,tP,dg]),nP=y({id:l(),name:l(),type:D(Dp)}),oP=y({id:l(),name:l(),provider:D(lr),config:mg,enabledForChat:q()}),iP=y({provider:D(lr),name:l(),enabledForChat:q(),keys:N(y({id:l(),name:l()}))}),aP=y({provider:D(lr),configId:l(),config:mg,auth:rP,platformId:l()});var dO={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"},rg=["gpt-5.5","gpt-5.4-mini","gpt-5.4-nano","gpt-4.1","gpt-4.1-mini"],sP=["claude-sonnet-4-6","claude-opus-4-7","claude-haiku-4-5"],fg=["claude-sonnet-4.6","claude-opus-4.7","claude-opus-4.8","claude-haiku-4.5"],Op=["gemini-2.5-pro","gemini-2.5-flash","gemini-3.7-flash","gemini-3.1-pro-preview","gemini-3-flash-preview"],cP=["grok-4.20"],mO=fg.map(e=>`anthropic/${e}`),uP={openai:rg,anthropic:sP,google:Op,vertex:Op,activepieces:[...fg.map(e=>`anthropic/${e}`),...rg.map(e=>`openai/${e}`),...Op.map(e=>`google/${e}`),...cP.map(e=>`x-ai/${e}`)]};var ng=128e3,lP={openai:128e3,anthropic:2e5,google:1048576,bedrock:2e5,vertex:1048576,azure:128e3,openrouter:128e3,activepieces:2e5,mistral:128e3};function pP({provider:e}){return e?lP[e]??ng:ng}s(pP,"getMaxContextTokens");var og={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"},dP={anthropic:"native",google:"native",openrouter:"plugin",activepieces:"plugin"},mP=new Set(["anthropic","mistral","xai","deepseek","zai","qwen","minimax","moonshot"]),fP={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 de(e){return{chatModels:uP[e],maxContextTokens:pP({provider:e}),defaultEmbeddingModel:og[e],supportsEmbedding:og[e]!==void 0,supportsImageGeneration:!mP.has(e),webSearch:dP[e]}}s(de,"buildProviderCapabilities");var gP={openai:de("openai"),anthropic:de("anthropic"),openrouter:de("openrouter"),azure:de("azure"),google:de("google"),"cloudflare-gateway":de("cloudflare-gateway"),custom:de("custom"),bedrock:de("bedrock"),vertex:de("vertex"),mistral:de("mistral"),activepieces:de("activepieces"),xai:de("xai"),deepseek:de("deepseek"),zai:de("zai"),qwen:de("qwen"),minimax:de("minimax"),moonshot:de("moonshot")};var hP=y({base64Url:l(),fileName:l(),extension:x(l())}),yP=y({mimeType:l(),url:l(),fileName:x(l())}),Rp=Z([hP,yP]);var vP=Z([y({type:O("file"),value:Rp}),y({type:O("markdown"),value:l(),files:x(N(Rp))})]),_P=y({sessionId:l(),message:l(),files:x(N(l()))});var hg=(n=>(n.ON_NEW_RECORD="ON_NEW_RECORD",n.ON_UPDATE_RECORD="ON_UPDATE_RECORD",n))(hg||{}),yg=(n=>(n.ENABLED="ENABLED",n.DISABLED="DISABLED",n))(yg||{}),Cp=(i=>(i.RECORD_CREATED="RECORD_CREATED",i.RECORD_UPDATED="RECORD_UPDATED",i.RECORD_DELETED="RECORD_DELETED",i))(Cp||{});var xP=Z([y({...we,name:l(),externalId:l(),type:O("STATIC_DROPDOWN"),tableId:l(),projectId:l(),data:y({options:N(y({value:l()}))})}),y({...we,name:l(),externalId:l(),type:Z([O("TEXT"),O("NUMBER"),O("DATE"),O("DATETIME")]),tableId:l(),projectId:l()})]),bP=y({...we,name:l(),folderId:te(l()),projectId:l(),externalId:l(),status:vl(yg),trigger:vl(hg)}),PP=y({...we,tableId:l(),projectId:l(),cells:L(l(),y({updated:l(),created:l(),value:M(),fieldName:l()}))}),TP=y({events:N(D(Cp)),webhookUrl:l(),flowId:l()}),SP=y({fields:N(y({id:l(),name:l()})),rows:N(L(l(),l())),name:l()}),IP=y({projectId:l(),limit:x(Jn.number()),cursor:x(l()),name:x(l()),externalIds:Ea(l()),folderId:x(l()),folderIds:Ea(l())}),EP=y({records:N(N(y({fieldId:l(),value:_g()}))),tableId:l()}),wP=y({cells:x(N(y({fieldId:l(),value:_g()}))),tableId:l(),agentUpdate:x(q())}),vg=st("operator",[Rt("eq"),Rt("neq"),Rt("gt"),Rt("gte"),Rt("lt"),Rt("lte"),Rt("co"),gg("exists"),gg("not_exists")]),AP=y({tableId:l(),limit:x(Jn.number()),cursor:x(l()),filters:Ea(vg)});function _g(){return ut(ct(e=>e==null?e:String(e)),Wn(l()))}s(_g,"coerceToString");function Rt(e){return y({fieldId:l(),operator:O(e),value:l()})}s(Rt,"valueFilter");function gg(e){return y({fieldId:l(),operator:O(e)})}s(gg,"existenceFilter");var $P=y({status:x(ue()),body:x(M()),headers:x(L(l(),l()))}),zP=y({...we,deleted:te(pt),ownerId:l(),displayName:l(),platformId:l(),externalId:te(l())});var xg=y({name:l(),description:x(l()),type:l(),required:q()}),kP=y({pieceName:l(),triggerName:l(),input:y({toolName:l(),toolDescription:l(),inputSchema:N(xg),returnsResponse:q()})});var bg="^[0-9]+\\.[0-9]+\\.[0-9]+$",OO=new RegExp(bg),DP="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",DO=l().check(pe(new RegExp(bg))),NO=l().check(pe(new RegExp(DP))),NP=y({packageType:O("ARCHIVE"),pieceType:D(sr),pieceName:l(),pieceVersion:l(),archiveId:l(),platformId:l()}),Pg=y({packageType:O("REGISTRY"),pieceType:O("OFFICIAL"),pieceName:l(),pieceVersion:l()}),Tg=y({packageType:O("REGISTRY"),pieceType:O("CUSTOM"),pieceName:l(),pieceVersion:l(),platformId:l()}),RO=Z([Pg,Tg]),CO=Z([NP,Pg,Tg]);var RP=st("type",[y({type:O("CRON_EXPRESSION"),cronExpression:l(),timezone:l()}),y({type:O("INTERVAL"),intervalMs:fm().check(ae(6e4))})]),UO=y({...we,type:D(Ot),projectId:l(),flowId:l(),triggerName:l(),schedule:te(RP),flowVersionId:l(),pieceName:l(),pieceVersion:l(),deleted:te(l()),simulate:q()}),Sg=(P=>(P.UNKNOWN="UNKNOWN",P.FLOW_RUN_LOG="FLOW_RUN_LOG",P.FLOW_RUN_LOG_SLICE="FLOW_RUN_LOG_SLICE",P.PACKAGE_ARCHIVE="PACKAGE_ARCHIVE",P.FLOW_STEP_FILE="FLOW_STEP_FILE",P.SAMPLE_DATA="SAMPLE_DATA",P.TRIGGER_PAYLOAD="TRIGGER_PAYLOAD",P.SAMPLE_DATA_INPUT="SAMPLE_DATA_INPUT",P.TRIGGER_EVENT_FILE="TRIGGER_EVENT_FILE",P.PROJECT_RELEASE="PROJECT_RELEASE",P.FLOW_VERSION_BACKUP="FLOW_VERSION_BACKUP",P.PLATFORM_ASSET="PLATFORM_ASSET",P.USER_PROFILE_PICTURE="USER_PROFILE_PICTURE",P.WEBHOOK_PAYLOAD="WEBHOOK_PAYLOAD",P.KNOWLEDGE_BASE="KNOWLEDGE_BASE",P.FLOW_BUNDLE="FLOW_BUNDLE",P.PREWARM_SCOPE="PREWARM_SCOPE",P))(Sg||{}),Ig=(n=>(n.NONE="NONE",n.ZSTD="ZSTD",n))(Ig||{}),Eg=(n=>(n.S3="S3",n.DB="DB",n))(Eg||{}),MO=y({...we,projectId:te(l()),platformId:te(l()),type:D(Sg),compression:D(Ig),data:x(M()),location:D(Eg),size:te(ue()),fileName:te(l()),s3Key:te(l()),metadata:te(L(l(),l()))}),wg=(i=>(i.ADMIN="ADMIN",i.MEMBER="MEMBER",i.OPERATOR="OPERATOR",i))(wg||{}),Ag=(n=>(n.ACTIVE="ACTIVE",n.INACTIVE="INACTIVE",n))(Ag||{}),LO=y({id:l(),email:l(),firstName:l(),status:D(Ag),externalId:te(l()),platformId:te(l()),platformRole:D(wg),lastName:l(),created:pt,updated:pt,lastActiveDate:te(pt),imageUrl:te(l())});var Up=y({...H.shape,...j(L(l(),M()),"OBJECT").shape});var Mp=y({...H.shape,formatProperty:x(l()),...j(l(),"RICH_TEXT").shape});var Og=y({...H.shape,...j(l(),"COLOR").shape});var Lp=Z([Te,Be,Mp,Ta,He,Se,Ve,dl,Kn,fl,qe,Qn,Up,eo,Yn,ml,Xn,Og]),m={ShortText(e){return{...e,valueSchema:void 0,type:"SHORT_TEXT"}},Checkbox(e){return{...e,valueSchema:void 0,type:"CHECKBOX"}},LongText(e){return{...e,valueSchema:void 0,type:"LONG_TEXT"}},RichText(e){return{...e,valueSchema:void 0,type:"RICH_TEXT"}},MarkDown(e){return{displayName:"Markdown",required:!1,description:e.value,type:"MARKDOWN",valueSchema:void 0,variant:e.variant??"INFO"}},Number(e){return{...e,valueSchema:void 0,type:"NUMBER"}},Json(e){return{...e,valueSchema:void 0,type:"JSON"}},Array(e){return{...e,valueSchema:void 0,type:"ARRAY"}},Object(e){return{...e,valueSchema:void 0,type:"OBJECT"}},Dropdown(e){return{...e,valueSchema:void 0,type:"DROPDOWN"}},StaticDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_DROPDOWN"}},MultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"MULTI_SELECT_DROPDOWN"}},DynamicProperties(e){return{...e,valueSchema:void 0,type:"DYNAMIC"}},StaticMultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_MULTI_SELECT_DROPDOWN"}},DateTime(e){return{...e,valueSchema:void 0,type:"DATE_TIME"}},DateRange(e){return{...e,valueSchema:void 0,type:"DATE_RANGE"}},File(e){return{...e,valueSchema:void 0,type:"FILE"}},Custom(e){let r=e.code.toString();return{...e,code:r,valueSchema:void 0,type:"CUSTOM"}},Color(e){return{...e,valueSchema:void 0,type:"COLOR"}}};var Ce=y({displayName:l(),description:x(l()),hasConnectionIdentifier:x(q())});var Dg=y({username:l(),password:l()}),jp=y({...Ce.shape,username:y({displayName:l(),description:x(l())}),password:y({displayName:l(),description:x(l())}),...j(Dg,"BASIC_AUTH").shape});var LP=L(l(),Z([Te,Be,qe,He,Se])),Fp=y({...Ce.shape,props:LP,...j(M(),"CUSTOM_AUTH").shape});var Ct=y({...Ce.shape,...j(y({auth:l()}),"SECRET_TEXT").shape});var jP=L(l(),Z([Te,Be,Ct,qe,He,Se,Ve,Ta])),Ng=y({...Ce.shape,props:jP,...j(M(),"OIDC").shape});var Zp=(n=>(n.HEADER="HEADER",n.BODY="BODY",n))(Zp||{}),Rg=Z([Te,Ct,Se]),Cg=L(l(),Rg),FP=y({props:x(L(l(),Rg)),authUrl:l(),tokenUrl:l(),scope:N(l()),prompt:x(Z([O("none"),O("consent"),O("login"),O("omit")])),pkce:x(q()),pkceMethod:x(Z([O("plain"),O("S256")])),authorizationMethod:x(D(Zp)),grantType:x(Z([D(ro),O(gl)])),extra:x(L(l(),l()))}),Ug=y({access_token:l(),props:x(Cg),data:L(l(),Gn())}),Bp=y({...Ce.shape,...FP.shape,...j(Ug,"OAUTH2").shape});var _r=Z([jp,Fp,Ng,Bp,Ct]),_o="Connection",Vp={SecretText(e){return{...e,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(e){return{...e,valueSchema:void 0,type:"OAUTH2",displayName:e.displayName||_o}},BasicAuth(e){return{...e,valueSchema:void 0,type:"BASIC_AUTH",displayName:e.displayName||_o,required:!0}},CustomAuth(e){return{...e,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:e.displayName||_o}},OIDC(e){return{...e,valueSchema:void 0,type:"OIDC",displayName:e.displayName||_o}},None(){}};var PN={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 ZP=y({...H.shape,...j(M(),"CUSTOM").shape,code:l()});var BP=Z([Lp,_r]),Hp=L(l(),BP),BN=L(l(),Lp);var Mg=Z([y({strategy:O("CRON"),cronExpression:l()}),y({strategy:O("NONE")})]);var Lg="2",cs="0.82.0";var qp=class{constructor(r,n,i,t,o,a,c,p,d=cs,f,b="",v){this.displayName=r;this.logoUrl=n;this.authors=i;this.events=t;this.categories=c;this.auth=p;this.minimumSupportedRelease=d;this.maximumSupportedRelease=f;this.description=b;this.deprecated=v;this._actions={};this._triggers={};this.getContextInfo=s(()=>({version:Lg}),"getContextInfo");(!HP(d)||qP(d,cs))&&(this.minimumSupportedRelease=cs),o.forEach(u=>this._actions[u.name]=u),a.forEach(u=>this._triggers[u.name]=u)}static{s(this,"Piece")}metadata(){return{displayName:this.displayName,logoUrl:this.logoUrl,actions:this._actions,triggers:this._triggers,categories:this.categories,description:this.description,authors:this.authors,auth:VP(this.auth),minimumSupportedRelease:this.minimumSupportedRelease,maximumSupportedRelease:this.maximumSupportedRelease,deprecated:this.deprecated,contextInfo:this.getContextInfo?.()}}getAction(r){return this._actions[r]}getTrigger(r){return this._triggers[r]}actions(){return this._actions}triggers(){return this._triggers}},Fg=s(e=>{if(e.auth&&Array.isArray(e.auth)&&!e.auth.every((n,i,t)=>i===t.findIndex(o=>o.type===n.type)))throw new Error("Auth properties must be unique by type");return new qp(e.displayName,e.logoUrl,e.authors??[],e.events,e.actions,e.triggers,e.categories??[],e.auth,e.minimumSupportedRelease,e.maximumSupportedRelease,e.description,e.deprecated)},"createPiece");function VP(e){if(e!==void 0)return Array.isArray(e)?e.map(jg):jg(e)}s(VP,"withConnectionIdentifierFlag");function jg(e){return{...e,hasConnectionIdentifier:e.getConnectionIdentifier!==void 0}}s(jg,"flagConnectionIdentifier");function HP(e){return/^\d+\.\d+\.\d+$/.test(e)}s(HP,"isValidSimpleSemver");function qP(e,r){let[n,i,t]=e.split(".").map(Number),[o,a,c]=r.split(".").map(Number);return n!==o?n<o:i!==a?i<a:t<c}s(qP,"isSemverLessThan");var GP=x(L(l(),L(l(),l()))),Zg=y({id:x(l()),name:l(),displayName:l(),logoUrl:l(),description:l(),authors:N(l()),platformId:x(l()),directoryPath:x(l()),auth:x(Z([_r,N(_r)])),version:l(),categories:x(N(D(cr))),minimumSupportedRelease:x(l()),maximumSupportedRelease:x(l()),deprecated:x(q()),i18n:GP}),WP=D(["human","ai","both"]),Bg=y({description:x(l()),idempotent:x(q())}),Vg=D(["READ","SEARCH","WRITE","DESTRUCTIVE"]);var JP=D(["tabs","section","summary","builder","footer"]),Hg=y({key:l(),display:JP,label:x(l()),description:x(l()),icon:x(l()),props:N(l())}),qg=y({name:l(),displayName:l(),description:l(),props:Hp,propertyGroups:x(N(Hg)),requireAuth:q(),errorHandlingOptions:x(pl),outputSchema:x(ba()),audience:x(WP),aiMetadata:x(Bg),classification:x(Vg)}),Gg=y({name:l(),displayName:l(),description:l(),props:Hp,propertyGroups:x(N(Hg)),errorHandlingOptions:x(pl),type:D(Ot),sampleData:M(),handshakeConfiguration:x(ba()),renewConfiguration:x(Mg),testStrategy:D(oo),outputSchema:x(ba()),aiMetadata:x(Bg),classification:x(Vg)}),KP=y({...Zg.shape,actions:L(l(),qg),triggers:L(l(),Gg)}),XP=y({...Zg.shape,actions:ue(),triggers:ue(),suggestedActions:x(N(qg)),suggestedTriggers:x(N(Gg))}),Wg=y({projectUsage:ue(),pieceType:D(sr),packageType:D(to),platformId:x(l()),archiveId:x(l())}),qR=y({...KP.shape,...Wg.shape}),GR=y({...XP.shape,...Wg.shape}),WR=y({name:l(),version:l()});var YP=Je(require("path")),QP=Je(require("fs/promises"));var br=require("node:stream");var us=class{constructor(r,n){this.baseUrl=r;this.authenticationConverter=n}static{s(this,"BaseHttpClient")}getUrl(r){let n=new URL(`${this.baseUrl}${r.url}`),i=`${n.origin}${n.pathname}`,t=new URLSearchParams;return n.searchParams.forEach((o,a)=>{t.append(a,o)}),{urlWithoutQueryParams:i,queryParams:t}}getHeaders(r){let n={Accept:"application/json"};return r.authentication&&this.populateAuthentication(r.authentication,n),r.body&&(r.headers?.["Content-Type"]==="text/csv"?n["Content-Type"]="text/csv":n["Content-Type"]="application/json"),r.headers&&(n={...n,...r.headers}),n}populateAuthentication(r,n){this.authenticationConverter.convert(r,n)}};var ls=class{static{s(this,"DelegatingAuthenticationConverter")}constructor(r=new Gp,n=new Wp){this.converters={BEARER_TOKEN:r,BASIC:n}}convert(r,n){return this.converters[r.type].convert(r,n)}},Gp=class{static{s(this,"BearerTokenAuthenticationConverter")}convert(r,n){return n.Authorization=`Bearer ${r.token}`,n}},Wp=class{static{s(this,"BasicTokenAuthenticationConverter")}convert(r,n){let i=`${r.username}:${r.password}`,t=Buffer.from(i).toString("base64");return n.Authorization=`Basic ${t}`,n}};var xo=class extends Error{constructor(n,i){let t=i.status||500,o=Buffer.isBuffer(i.responseBody)?i.responseBody.toString():i.responseBody;super(JSON.stringify({response:{status:t,body:o},request:{body:n}}));this.requestBody=n;this.status=t,this.responseBody=o}static{s(this,"HttpError")}errorMessage(){return{response:{status:this.status,body:this.responseBody},request:{body:this.requestBody}}}get response(){return{status:this.status,body:this.responseBody}}get request(){return{body:this.requestBody}}};function Jg({error:e,requestBody:r}){return e instanceof xo?e.errorMessage():{response:{status:0,body:e instanceof Error?e.message:String(e)},request:{body:r}}}s(Jg,"toFailsafeOutput");var xr=(a=>(a.GET="GET",a.POST="POST",a.PATCH="PATCH",a.PUT="PUT",a.DELETE="DELETE",a.HEAD="HEAD",a))(xr||{});var ps=class extends us{static{s(this,"FetchHttpClient")}constructor(r="",n=new ls){super(r,n)}async sendRequest(r,n){process.env.NODE_TLS_REJECT_UNAUTHORIZED="0";let{urlWithoutQueryParams:i,queryParams:t}=this.getUrl(r),o=this.getHeaders(r),a=r.queryParams??{};for(let[U,Y]of Object.entries(a))t.append(U,Y);let c=t.toString(),p=c?`${i}?${c}`:i,d=r.responseType??"json",f=r.followRedirects??!0,b=r.retries??0,{body:v,extraHeaders:u,isStream:h}=ds(r.method)?eT(r.body,o):{body:void 0,extraHeaders:{},isStream:!1},T=rT({...o,...u}),S=await tT(async()=>{let U=new AbortController,Y=r.timeout&&r.timeout>0?setTimeout(()=>U.abort(),r.timeout):void 0;try{let ne={method:r.method.toString(),headers:T,body:v,redirect:f?"follow":"manual",signal:U.signal};return h&&(ne.duplex="half"),n?.dispatcher!==void 0&&(ne.dispatcher=n.dispatcher),await fetch(p,ne)}finally{Y!==void 0&&clearTimeout(Y)}},h?0:b),P=f?300:400;if(S.status<200||S.status>=P){let U=await Kg(S,d==="stream"?"text":d),Y=new xo(r.body,{status:S.status,responseBody:U});throw console.error("[HttpClient#(sanitized error message)] Request failed:",Y),Y}let $=await Kg(S,d);return{status:S.status,headers:nT(S.headers),body:$}}};function ds(e){return e!=="GET"&&e!=="HEAD"}s(ds,"acceptsRequestBody");function eT(e,r){if(Yg(e))return{body:void 0,extraHeaders:{},isStream:!1};if(iT(e)){let i=oT(e);if(i!==null)return{body:i,extraHeaders:e.getHeaders(),isStream:!1};let t=new br.PassThrough;return e.on("error",o=>t.destroy(o)),e.pipe(t),{body:t,extraHeaders:e.getHeaders(),isStream:!0}}return e instanceof br.Readable?{body:e,extraHeaders:{},isStream:!0}:typeof e=="string"||Buffer.isBuffer(e)||e instanceof URLSearchParams||e instanceof ArrayBuffer||typeof FormData<"u"&&e instanceof FormData||typeof Blob<"u"&&e instanceof Blob?{body:e,extraHeaders:{},isStream:!1}:(r["Content-Type"]??r["content-type"]??"").includes("application/x-www-form-urlencoded")?{body:new URLSearchParams(e).toString(),extraHeaders:{},isStream:!1}:{body:JSON.stringify(e),extraHeaders:{},isStream:!1}}s(eT,"serializeBody");async function Kg(e,r){switch(r){case"arraybuffer":return Buffer.from(await e.arrayBuffer());case"stream":return Yg(e.body)?br.Readable.from([]):br.Readable.fromWeb(e.body);case"blob":return await e.blob();case"text":return await e.text();default:{let n=await e.text();if(n.length===0)return;try{return JSON.parse(n)}catch{return n}}}}s(Kg,"parseResponseBody");async function tT(e,r){let n;for(let i=0;i<=r;i++)try{let t=await e();if(t.status>=500&&i<r){await Xg(i);continue}return t}catch(t){if(n=t,i<r){await Xg(i);continue}throw t}throw n}s(tT,"sendWithRetries");function Xg(e){let r=Math.min(1e3*2**e,3e4);return new Promise(n=>setTimeout(n,r))}s(Xg,"backoff");function rT(e){let r=new Map;for(let[n,i]of Object.entries(e))i!==void 0&&r.set(n.toLowerCase(),[n,Array.isArray(i)?i.join(", "):i]);return Object.fromEntries(r.values())}s(rT,"normalizeHeaders");function nT(e){let r={};return e.forEach((n,i)=>{r[i]=n}),r}s(nT,"toHttpHeaders");function oT(e){if(!e.hasKnownLength()||e.getLengthSync()>aT)return null;let{data:r}=hl(()=>e.getBuffer());return r}s(oT,"bufferFormDataIfSafe");function iT(e){return typeof e=="object"&&e!==null&&typeof e.getHeaders=="function"&&typeof e.pipe=="function"&&typeof e.on=="function"}s(iT,"isNodeFormData");function Yg(e){return e==null}s(Yg,"isNil");var aT=100*1024*1024;var dt=new ps;var GS=Je(require("fs")),nv=Je(Ps());var WS={"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 JS(e){let r=e.split(";")[0].trim().toLowerCase();return WS[r]??""}s(JS,"contentTypeToExtension");var KS=s(({baseUrl:e,relativePath:r})=>{let n=e.endsWith("/")?e:`${e}/`,i=r.startsWith("/")?r.slice(1):r;return`${n}${i}`},"joinBaseUrlWithRelativePath"),XS=s((e,r)=>{let n="https://api.example.com";try{let i=r?e(r):void 0;return(i?.endsWith("/")?i.slice(0,-1):i)??n}catch{return n}},"getBaseUrlForDescription");function ov({auth:e,baseUrl:r,authMapping:n,description:i,displayName:t,name:o,props:a,extraProps:c,authLocation:p="headers",classification:d="WRITE"}){return ar({audience:"human",name:o||"custom_api_call",classification:d,displayName:t||"Custom API Call",description:i||"Make a custom API call to a specific endpoint",auth:e,requireAuth:!!e,props:{url:m.DynamicProperties({auth:e,displayName:"",required:!0,refreshers:[],props:s(async({auth:f})=>({url:m.ShortText({displayName:"URL",description:`Full URL, or a path relative to ${XS(r,f)}`,required:!0,placeholder:"/resource",defaultValue:f?r(f):"",...a?.url??{}})}),"props")}),method:m.StaticDropdown({displayName:"Method",required:!0,defaultValue:"GET",options:{options:Object.values(xr).map(f=>({label:f,value:f}))},...a?.method??{}}),headers:m.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!1,...a?.headers??{}}),queryParams:m.Object({displayName:"Query Parameters",description:"Appended to the URL as ?key=value.",required:!1,...a?.queryParams??{}}),body_type:m.Dropdown({auth:e,displayName:"Body Type",required:!1,defaultValue:"none",refreshers:["method"],options:s(async({method:f})=>ds(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:m.DynamicProperties({auth:e,displayName:"Body",refreshers:["body_type","method"],required:!1,props:s(async({body_type:f,method:b})=>{if(!f||!ds(b))return{};let v=f,u={};switch(v){case"none":break;case"json":u.data=m.Json({displayName:"JSON Body",required:!0,...a?.body??{}});break;case"raw":u.data=m.LongText({displayName:"Raw Body",required:!0});break;case"form_data":u.data=m.Array({displayName:"Form Data",required:!0,properties:{fieldName:m.ShortText({displayName:"Field Name",required:!0}),fieldType:m.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:m.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:m.File({displayName:"File Field Value",required:!1})}});break}return u},"props")}),response_is_binary:m.Checkbox({displayName:"Response is Binary",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1,advanced:!0,...a?.response_is_binary??{}}),failsafe:m.Checkbox({displayName:"Return Error as Output",description:"On a failed request, output the error instead of failing the step.",required:!1,advanced:!0,...a?.failsafe??{}}),timeout:m.Number({displayName:"Timeout",description:"Seconds to wait for a response. Empty: up to the flow limit (10 min).",required:!1,advanced:!0,...a?.timeout??{}}),followRedirects:m.Checkbox({displayName:"Follow redirects",description:"Follow 3xx redirects instead of returning them as the response.",required:!1,defaultValue:!1,advanced:!0,...a?.followRedirects??{}}),...c},run:s(async f=>{let{method:b,url:v,headers:u,queryParams:h,body:T,body_type:S,failsafe:P,timeout:$,response_is_binary:U,followRedirects:Y}=f.propsValue;Ia(b,"Method"),Ia(v,"URL");let ne=De(n)?{}:await n(f.auth,f.propsValue),Ue=v.url,Is=Ue.startsWith("http://")||Ue.startsWith("https://")?Ue:KS({baseUrl:r(f.auth),relativePath:Ue}),We={method:b,url:Is,headers:{...u??{},...p==="headers"||!De(p)?ne:{}},queryParams:{...p==="queryParams"?ne:{},...h??{}},timeout:$?$*1e3:0,followRedirects:Y};if(U&&(We.responseType="arraybuffer"),T)if(S&&S!=="none"){let Me=T.data;if(S==="form_data"){let lv=Me,So=new nv.default;for(let{fieldName:gd,fieldType:hd,textFieldValue:yd,fileFieldValue:Es}of lv)hd==="text"&&!io(yd)?So.append(gd,yd):hd==="file"&&!io(Es)&&So.append(gd,Es.data,{filename:Es?.filename});We.body=So,We.headers={...We.headers,...So.getHeaders()}}else We.body=Me}else S||(We.body=T);try{let Me=await dt.sendRequest(We);return await YS(f.files,Me.body,Me.status,Me.headers,U)}catch(Me){if(P)return Jg({error:Me,requestBody:We.body});throw Me}},"run")})}s(ov,"createCustomApiCallAction");var YS=s(async(e,r,n,i,t)=>{let o;if(t&&QS(r)){let a=Array.isArray(i?.["content-type"])?i["content-type"][0]:i?.["content-type"],c=JS(a??"")||"txt",p;r instanceof ArrayBuffer?p=Buffer.from(new Uint8Array(r)):Buffer.isBuffer(r)?p=r:p=Buffer.from(r),o=await e.write({fileName:`output.${c}`,data:p})}else o=r;return{status:n,headers:i,body:o}},"handleBinaryResponse"),QS=s(e=>e instanceof ArrayBuffer||Buffer.isBuffer(e),"isBinaryBody");var Mt=Vp.BasicAuth({displayName:"Pdfcrowd Credentials",description:"Your Pdfcrowd API credentials. Get them at https://pdfcrowd.com/user/account/",required:!0,username:{displayName:"Username",description:"Your Pdfcrowd username"},password:{displayName:"API Key",description:"Your Pdfcrowd API key"},validate:s(async({auth:e})=>{try{let r=Buffer.from(`${e.username}:${e.password}`).toString("base64");return(await dt.sendRequest({method:"GET",url:"https://api.pdfcrowd.com/api/info/",headers:{Authorization:`Basic ${r}`}})).status>=400?{valid:!1,error:"Invalid username or API key"}:{valid:!0}}catch(r){return{valid:!1,error:"Connection failed: "+r.message}}},"validate")});var iv="https://api.pdfcrowd.com/api",eI="24.04";function Ts(e){return`https://api.pdfcrowd.com/convert/${e||eI}/`}s(Ts,"getConvertUrl");function Ss(e){return"Basic "+Buffer.from(`${e.username}:${e.password}`).toString("base64")}s(Ss,"getAuthHeader");var av=Je(Ps()),sv=ar({name:"url_to_pdf",displayName:"Convert URL to PDF",description:"Convert a web page URL to PDF document",audience:"both",aiMetadata:{description:"Render a publicly accessible web page URL into a PDF file via the Pdfcrowd API, returning the generated document. Choose this when the source is a live URL rather than raw HTML markup (use Convert HTML to PDF for an HTML string). Supports extensive layout, header/footer, watermark, and security options. Not idempotent: each call performs a fresh conversion that produces a new file and consumes account credits.",idempotent:!1},auth:Mt,props:{url:m.ShortText({displayName:"URL",description:"The URL of the web page to convert. Must be publicly accessible.",required:!0}),outputFilename:m.ShortText({displayName:"Output Filename",description:"The filename for the generated PDF",required:!1,defaultValue:"document.pdf"}),page_size:m.StaticDropdown({displayName:"Page Size",description:"Set the output page size using standard formats (A4, Letter, A3, etc.). Use A4 for international documents, Letter for US-based content, or larger sizes like A3 for posters and presentations.",required:!1,options:{options:[{label:"A0",value:"A0"},{label:"A1",value:"A1"},{label:"A2",value:"A2"},{label:"A3",value:"A3"},{label:"A4",value:"A4"},{label:"A5",value:"A5"},{label:"A6",value:"A6"},{label:"Letter",value:"Letter"}]},defaultValue:"A4"}),page_width:m.ShortText({displayName:"Page Width",description:"Set custom page dimensions when standard sizes don't fit your needs. Useful for banners, receipts, custom forms, or when matching specific printing equipment. The safe maximum is 200in - larger sizes may fail to open in some PDF viewers. For standard sizes like A4 or Letter, use the predefined page size option instead.",required:!1}),page_height:m.ShortText({displayName:"Page Height",description:'Set custom page height for specific formats like receipts, banners, or legal documents. Set to "-1" for a single-page PDF that expands to fit all content vertically - ideal for web pages, infographics, or documents where page breaks are undesirable. The safe maximum is 200in otherwise some viewers cannot open the PDF. For standard sizes, use the predefined page size option instead.',required:!1}),orientation:m.StaticDropdown({displayName:"Orientation",description:"Set the output page orientation to portrait or landscape. Use landscape for wide content like spreadsheets, charts, or dashboards. Use portrait for standard documents and text-heavy content.",required:!1,options:{options:[{label:"landscape",value:"landscape"},{label:"portrait",value:"portrait"}]},defaultValue:"portrait"}),margin_top:m.ShortText({displayName:"Margin Top",description:"Control white space at the top of the page. Increase for header space, formal documents, or annotation room (e.g., 1in or more). Decrease to maximize content area or fit more content (e.g., 5mm to 10mm). Default 0.4in balances readability with space efficiency. Set to 0 for full-bleed designs. Affects where content starts and where headers appear.",required:!1}),margin_right:m.ShortText({displayName:"Margin Right",description:"Control white space on the right edge of the page. Increase for binding/hole-punch clearance or note-taking space (e.g., 1in or more). Decrease to fit wider content (e.g., 5mm to 10mm). Default 0.4in balances readability with space efficiency. Set to 0 for full-bleed designs. Affects where content wraps and text line length.",required:!1}),margin_bottom:m.ShortText({displayName:"Margin Bottom",description:"Control white space at the bottom of the page. Increase for footer space, page numbers, or formal documents (e.g., 1in or more). Decrease to fit more content per page (e.g., 5mm to 10mm). Default 0.4in balances readability with space efficiency. Set to 0 for full-bleed designs. Affects where content ends and where footers appear.",required:!1}),margin_left:m.ShortText({displayName:"Margin Left",description:"Control white space on the left edge of the page. Increase for binding/hole-punch clearance or note-taking space (e.g., 1in or more). Decrease to fit wider content (e.g., 5mm to 10mm). Default 0.4in balances readability with space efficiency. Set to 0 for full-bleed designs. Affects where content starts horizontally and text line length.",required:!1}),no_margins:m.Checkbox({displayName:"No Margins",description:"Disable all page margins to use the entire page area. Use this for full-bleed designs where content should extend to the page edges, such as posters, certificates, or branded materials. Combine with custom CSS to ensure your content fills the page properly.",required:!1}),print_page_range:m.ShortText({displayName:"Print Page Range",description:'Set the page range to print when you only need specific pages from the conversion. Use this to extract individual pages (e.g., "2"), specific ranges (e.g., "3-7"), or combinations (e.g., "1,4-6,last"). Ideal for creating excerpts from long documents or excluding cover pages from batch processing.',required:!1}),content_viewport_width:m.StaticDropdown({displayName:"Content Viewport Width",description:"Set the viewport width for formatting the HTML content when generating a PDF. Use this to control how responsive designs render - prevent mobile styles from applying when you want desktop layout, or ensure content appears at the right width. Specify a viewport width to control content rendering, ensuring it mimics the appearance on various devices or matches specific design requirements.",required:!1,options:{options:[{label:"balanced",value:"balanced"},{label:"small",value:"small"},{label:"medium",value:"medium"},{label:"large",value:"large"},{label:"extra-large",value:"extra-large"}]},defaultValue:"medium"}),content_viewport_height:m.StaticDropdown({displayName:"Content Viewport Height",description:"Set the viewport height for formatting the HTML content when generating a PDF. Specify a viewport height to enforce loading of lazy-loaded images and affect vertical positioning of absolutely positioned elements within the content.",required:!1,options:{options:[{label:"auto",value:"auto"},{label:"large",value:"large"}]},defaultValue:"auto"}),content_fit_mode:m.StaticDropdown({displayName:"Content Fit Mode",description:"Specify the mode for fitting the HTML content to the print area by upscaling or downscaling it. Use this to prevent content from being cut off at page edges or to enable smart scaling of oversized content.",required:!1,options:{options:[{label:"auto",value:"auto"},{label:"smart-scaling",value:"smart-scaling"},{label:"no-scaling",value:"no-scaling"},{label:"viewport-width",value:"viewport-width"},{label:"content-width",value:"content-width"},{label:"single-page",value:"single-page"},{label:"single-page-ratio",value:"single-page-ratio"}]},defaultValue:"auto"}),remove_blank_pages:m.StaticDropdown({displayName:"Remove Blank Pages",description:'Specify which blank pages to exclude from the output document to create cleaner PDFs. Use "trailing" to remove empty pages at the end caused by page break issues. Use "all" to remove blank pages throughout the document when converting content with formatting quirks. Helps eliminate unwanted white pages from the final output.',required:!1,options:{options:[{label:"trailing",value:"trailing"},{label:"all",value:"all"},{label:"none",value:"none"}]},defaultValue:"trailing"}),header_url:m.LongText({displayName:"Header URL",description:"Load an HTML code from the specified URL and use it as the page header.",required:!1}),header_html:m.LongText({displayName:"Header HTML",description:"Set the HTML header content with custom styling and dynamic page numbers. Use this to add page numbers, document titles, author names, dates, or company branding to the top of every page. Supports full HTML/CSS for complete design control. Use special CSS classes like pdfcrowd-page-number and pdfcrowd-page-count for dynamic content. Ideal for reports, invoices, and professional documents.",required:!1}),header_height:m.ShortText({displayName:"Header Height",description:"Set the header height to allocate space for header content and prevent overlap with main content. Increase this if your header text is getting cut off or overlapping with page content. Must be large enough to accommodate your header HTML including any multi-line text or images.",required:!1}),footer_url:m.LongText({displayName:"Footer URL",description:"Load an HTML code from the specified URL and use it as the page footer.",required:!1}),footer_html:m.LongText({displayName:"Footer HTML",description:"Set the HTML footer content with custom styling and dynamic page numbers. Use this to add page numbers, copyright notices, document dates, or company information to the bottom of every page. Supports full HTML/CSS for complete design control. Use special CSS classes like pdfcrowd-page-number and pdfcrowd-page-count for dynamic content. Ideal for contracts, reports, and official documents.",required:!1}),footer_height:m.ShortText({displayName:"Footer Height",description:"Set the footer height to allocate space for footer content and prevent overlap with main content. Increase this if your footer text is getting cut off or overlapping with page content. Must be large enough to accommodate your footer HTML including any multi-line text or images.",required:!1}),no_header_footer_horizontal_margins:m.Checkbox({displayName:"No Header Footer Horizontal Margins",description:"Disable horizontal page margins for header and footer. The header/footer contents width will be equal to the physical page width.",required:!1}),exclude_header_on_pages:m.ShortText({displayName:"Exclude Header On Pages",description:"The page header content is not printed on the specified pages. To remove the entire header area, use the conversion config.",required:!1}),exclude_footer_on_pages:m.ShortText({displayName:"Exclude Footer On Pages",description:"The page footer content is not printed on the specified pages. To remove the entire footer area, use the conversion config.",required:!1}),header_footer_scale_factor:m.Number({displayName:"Header Footer Scale Factor",description:"Set the scaling factor (zoom) for the header and footer.",required:!1}),page_numbering_offset:m.Number({displayName:"Page Numbering Offset",description:"Set the numbering offset for page numbers in header/footer HTML to continue page numbering from a previous document. Use this when generating document sections separately - for example, if you have already generated pages 1-10, set offset to 10. The next section will then start numbering at page 11. Essential for multi-part reports or book chapters.",required:!1}),page_watermark_url:m.ShortText({displayName:"Page Watermark URL",description:"Load a file from the specified URL and apply the file as a watermark to each page of the output PDF. A watermark can be either a PDF or an image. If a multi-page file (PDF or TIFF) is used, the first page is used as the watermark.",required:!1}),multipage_watermark_url:m.ShortText({displayName:"Multipage Watermark URL",description:"Load a file from the specified URL and apply each page of the file as a watermark to the corresponding page of the output PDF. A watermark can be either a PDF or an image.",required:!1}),page_background_url:m.ShortText({displayName:"Page Background URL",description:"Load a file from the specified URL and apply the file as a background to each page of the output PDF. A background can be either a PDF or an image. If a multi-page file (PDF or TIFF) is used, the first page is used as the background.",required:!1}),multipage_background_url:m.ShortText({displayName:"Multipage Background URL",description:"Load a file from the specified URL and apply each page of the file as a background to the corresponding page of the output PDF. A background can be either a PDF or an image.",required:!1}),page_background_color:m.ShortText({displayName:"Page Background Color",description:"Set a solid background color for all pages, filling the entire page area including margins. Useful for creating branded PDFs with corporate colors, highlighting draft documents, or improving readability with off-white backgrounds. Supports transparency with RGBA format - use semi-transparent colors for subtle effects without obscuring content. Format as RGB (FF0000) or RGBA (FF000080) hexadecimal.",required:!1}),use_print_media:m.Checkbox({displayName:"Use Print Media",description:"Use the print version of the page if available via @media print CSS rules. Enable this when converting websites that have print-optimized styles. Many sites hide navigation, ads, and sidebars in print mode. Produces cleaner PDFs by using the design the website creator intended for printing.",required:!1}),no_background:m.Checkbox({displayName:"No Background",description:"Do not print the background graphics to create printer-friendly PDFs. Use this when documents will be physically printed to save ink costs and improve readability. Removes background colors, images, and patterns while preserving text and foreground content. Particularly useful for documents with dark backgrounds or decorative elements.",required:!1}),disable_javascript:m.Checkbox({displayName:"Disable JavaScript",description:"Do not execute JavaScript during conversion. Use this to improve conversion speed when JavaScript is not needed, prevent dynamic content changes, or avoid security risks from untrusted scripts. Note that disabling JavaScript means lazy-loaded images and AJAX content will not load.",required:!1}),disable_image_loading:m.Checkbox({displayName:"Disable Image Loading",description:"Do not load images during conversion to create text-only PDFs. Use this to significantly speed up conversion, reduce file size, or create accessible text-focused documents. Ideal for converting documentation where images are not needed, reducing bandwidth usage, or creating lightweight PDFs for email distribution.",required:!1}),disable_remote_fonts:m.Checkbox({displayName:"Disable Remote Fonts",description:"Disable loading fonts from remote sources. Use this to speed up conversion by avoiding font download delays, ensure consistent rendering with system fonts, or work around font loading failures. Note that text will fall back to system fonts, which may change the document's appearance.",required:!1}),load_iframes:m.StaticDropdown({displayName:"Load Iframes",description:'Specifies how iframes are handled during conversion. Use "all" to include all embedded content (videos, maps, widgets). Use "same-origin" to include only content from the same domain for security purposes. Use "none" to exclude all iframes for faster conversion and to avoid third-party content issues. Disabling iframes can significantly improve performance and reliability.',required:!1,options:{options:[{label:"all",value:"all"},{label:"same-origin",value:"same-origin"},{label:"none",value:"none"}]},defaultValue:"all"}),block_ads:m.Checkbox({displayName:"Block Ads",description:"Automatically block common advertising networks and tracking scripts during conversion, producing cleaner PDFs with faster conversion times. Filters out third-party ad content, analytics beacons, and ad network resources. Ideal for converting news sites, blogs, or any ad-heavy content where ads distract from the main message. May occasionally block legitimate third-party content - disable if critical third-party resources are missing.",required:!1}),default_encoding:m.ShortText({displayName:"Default Encoding",description:'Specify the character encoding when the HTML lacks proper charset declaration or has incorrect encoding. Prevents garbled text for non-English content, especially legacy pages without UTF-8 encoding. Set to "utf-8" for modern content, "iso-8859-1" for Western European legacy pages, or other encodings for specific regional content. Only needed when auto-detection fails and you see corrupted characters in the output.',required:!1}),locale:m.ShortText({displayName:"Locale",description:'Set the locale for the conversion to control regional formatting of dates, times, and numbers. Use this when converting content for specific regions - for example, set to "en-US" for MM/DD/YYYY dates and comma thousand separators, or "de-DE" for DD.MM.YYYY dates and period thousand separators. Essential for financial reports, invoices, or localized content.',required:!1}),http_auth_user_name:m.ShortText({displayName:"HTTP Auth User Name",description:"Set the HTTP authentication user name. Required to access protected web pages or staging environments.",required:!1}),http_auth_password:m.ShortText({displayName:"HTTP Auth Password",description:"Set the HTTP authentication password. Required to access protected web pages or staging environments.",required:!1}),cookies:m.ShortText({displayName:"Cookies",description:"Set HTTP cookies to be included in all requests made by the converter to access authenticated or session-based content. Use this when converting pages that require login, maintain user sessions, or personalize content based on cookies. Essential for converting member-only areas, dashboards, or any content behind cookie-based authentication. Format as semicolon-separated name=value pairs.",required:!1}),verify_ssl_certificates:m.Checkbox({displayName:"Verify SSL Certificates",description:"Enforce SSL certificate validation for secure connections, preventing conversions from sites with invalid certificates. Enable when converting from production sites with valid certificates to ensure security. When disabled, allows conversion from any HTTPS site regardless of certificate validity - including development servers with self-signed certificates, internal corporate sites with expired certificates, or local testing environments.",required:!1}),fail_on_main_url_error:m.Checkbox({displayName:"Fail On Main URL Error",description:"Abort the conversion if the HTTP status code of the main URL is greater than or equal to 400 (client/server errors). Use this in automated workflows to catch broken URLs or authentication failures early rather than producing invalid PDFs. Ensures your system does not silently generate error page PDFs when source content is unavailable.",required:!1}),fail_on_any_url_error:m.Checkbox({displayName:"Fail On Any URL Error",description:"Abort the conversion if any sub-request (images, stylesheets, scripts) fails with HTTP 400+ errors. Use this for strict quality control when all assets must load successfully.",required:!1}),css_page_rule_mode:m.StaticDropdown({displayName:"CSS Page Rule Mode",description:'Specifies behavior in the presence of CSS @page rules to control which settings take precedence. Use "default" to prioritize API settings over CSS rules, ensuring consistent output regardless of input HTML. Use "mode2" to respect CSS @page rules for print-optimized HTML. This solves conflicts when CSS tries to override your API page setup.',required:!1,options:{options:[{label:"default",value:"default"},{label:"mode1",value:"mode1"},{label:"mode2",value:"mode2"}]},defaultValue:"default"}),custom_css:m.LongText({displayName:"Custom CSS",description:"Apply custom CSS to the input HTML document to modify the visual appearance and layout of your content dynamically. Use this to override default styles, adjust spacing, change fonts, or fix layout issues without modifying the source HTML. Use !important in your CSS rules to prioritize and override conflicting styles.",required:!1}),custom_javascript:m.LongText({displayName:"Custom JavaScript",description:"Run a custom JavaScript after the document is loaded and ready to print. Use this to modify page content before conversion, remove unwanted elements, or trigger specific page states. The script is intended for post-load DOM manipulation (add/remove elements, update CSS, ...). In addition to the standard browser APIs, the custom JavaScript code can use helper functions from our JavaScript library.",required:!1}),on_load_javascript:m.ShortText({displayName:"On Load JavaScript",description:"Run a custom JavaScript right after the document is loaded. The script is intended for early DOM manipulation (add/remove elements, update CSS, ...). In addition to the standard browser APIs, the custom JavaScript code can use helper functions from our JavaScript library.",required:!1}),custom_http_header:m.ShortText({displayName:"Custom HTTP Header",description:"Set a custom HTTP header to be included in all requests made by the converter. Use this to pass authentication tokens to protected sites, add tracking headers for analytics, or provide API keys for accessing private content. Essential when converting content from APIs or internal systems that require special headers for access control.",required:!1}),javascript_delay:m.Number({displayName:"JavaScript Delay",description:'Wait the specified number of milliseconds to finish all JavaScript after the document is loaded. Use this to ensure lazy-loaded images, AJAX content, or animations complete before conversion. Your license defines the maximum wait time by "Max Delay" parameter.',required:!1}),element_to_convert:m.ShortText({displayName:"Element To Convert",description:"Convert only the specified element from the main document and its children. Use this to extract specific portions of a page (like article content) while excluding navigation, headers, footers, or sidebars. The element is specified by one or more CSS selectors. If the element is not found, the conversion fails. If multiple elements are found, the first one is used.",required:!1}),element_to_convert_mode:m.StaticDropdown({displayName:"Element To Convert Mode",description:'Control how CSS styles are applied when converting only part of a page. The "cut-out" option extracts the element into a new document root, which may break CSS selectors like "body > div". The "remove-siblings" option keeps the element in its original DOM position but deletes other elements, preserving descendant selectors. The "hide-siblings" option keeps all elements but hides non-selected ones with display:none, preserving all CSS context.',required:!1,options:{options:[{label:"cut-out",value:"cut-out"},{label:"remove-siblings",value:"remove-siblings"},{label:"hide-siblings",value:"hide-siblings"}]},defaultValue:"cut-out"}),wait_for_element:m.ShortText({displayName:"Wait For Element",description:'Wait for the specified element in a source document. Use this when specific dynamic content must be ready before conversion, avoiding unnecessary delays from a fixed JavaScript delay. The element is specified by one or more CSS selectors. The element is searched for in the main document and all iframes. If the element is not found, the conversion fails. Your license defines the maximum wait time by the "Max Delay" parameter.',required:!1}),auto_detect_element_to_convert:m.Checkbox({displayName:"Auto Detect Element To Convert",description:"The main HTML element for conversion is detected automatically. Use this when you want to extract article or main content without knowing the exact CSS selector, automatically excluding navigation and sidebars.",required:!1}),readability_enhancements:m.StaticDropdown({displayName:"Readability Enhancements",description:'Automatically enhance the input HTML to improve readability by removing clutter and reformatting content. Use this when converting web pages with excessive navigation, ads, or sidebars that distract from the main content. Different versions (v1-v4) use progressively aggressive algorithms - start with "v1" and increase if more cleanup is needed. Ideal for converting blog posts, articles, or documentation into clean PDFs.',required:!1,options:{options:[{label:"none",value:"none"},{label:"readability-v1",value:"readability-v1"},{label:"readability-v2",value:"readability-v2"},{label:"readability-v3",value:"readability-v3"},{label:"readability-v4",value:"readability-v4"}]},defaultValue:"none"}),scale_factor:m.Number({displayName:"Scale Factor",description:"Set the scaling factor (zoom) for the main page area to fit content better. Use values below 100% to shrink oversized content that is getting cut off at page edges. Use values above 100% to enlarge small content for better readability. Common use cases include shrinking wide tables to fit (70-80%), or enlarging mobile-optimized layouts for desktop PDFs (120-150%).",required:!1}),jpeg_quality:m.Number({displayName:"JPEG Quality",description:"Set the quality of embedded JPEG images to balance file size and visual quality. Use 100% for archival documents or when image quality is critical. Use 70-85% for web distribution to significantly reduce file size with minimal visible quality loss. Use lower values (50-60%) only when file size is more important than image clarity. Common artifacts below 60% include blockiness and color banding.",required:!1}),convert_images_to_jpeg:m.StaticDropdown({displayName:"Convert Images To JPEG",description:'Specify which image types will be converted to JPEG to reduce PDF file size. Use "opaque" to convert only non-transparent images (safe for most documents). Use "all" to convert everything including transparent images (transparent areas become white). Use "none" to preserve original image formats. Ideal for reducing file size when distributing large image-heavy PDFs via email or web.',required:!1,options:{options:[{label:"none",value:"none"},{label:"opaque",value:"opaque"},{label:"all",value:"all"}]},defaultValue:"none"}),image_dpi:m.Number({displayName:"Image DPI",description:"Set the DPI of images in PDF to control resolution and file size. Use 300 DPI for professional printing, 150 DPI for everyday documents, 96 DPI for screen-only viewing, or 72 DPI for web distribution. Lower DPI creates smaller files but reduces image quality. Use 0 to preserve original image resolution. Note that this only downscales - it will not upscale low-resolution images.",required:!1}),enable_pdf_forms:m.Checkbox({displayName:"Enable PDF Forms",description:"Convert HTML forms to fillable PDF forms that users can complete in PDF readers. Use this to create interactive PDFs from HTML forms. Ideal for creating fillable applications, surveys, or order forms that work offline. Details can be found in the blog post.",required:!1}),linearize:m.Checkbox({displayName:"Linearize",description:"Create linearized PDF. This is also known as Fast Web View. Use this to optimize PDFs for progressive download, allowing users to start viewing the first page while the rest downloads.",required:!1}),encrypt:m.Checkbox({displayName:"Encrypt",description:"Encrypt the PDF to prevent search engines from indexing the contents and add an extra layer of security. Use this for confidential documents, internal reports, or any content you do not want appearing in search results. Combine with a password to require authentication for viewing, or just use encryption alone to prevent indexing while keeping the PDF publicly readable.",required:!1}),user_password:m.ShortText({displayName:"User Password",description:"Protect the PDF with a user password to restrict who can open and view the document. Recipients must enter this password to view the PDF. Use this for confidential documents, sensitive data, or content distribution where you want to control access. Combine with permission flags to restrict what users can do after opening.",required:!1}),owner_password:m.ShortText({displayName:"Owner Password",description:"Protect the PDF with an owner password for administrative control. This password allows changing permissions, passwords, and document restrictions - like a master key. Use different user and owner passwords to give recipients restricted access while retaining full control. The owner password should be kept confidential and different from the user password.",required:!1}),no_print:m.Checkbox({displayName:"No Print",description:"Disallow printing of the output PDF to protect sensitive content. Use this for confidential documents, copyrighted materials, or preview versions you want to restrict.",required:!1}),no_modify:m.Checkbox({displayName:"No Modify",description:"Disallow modification of the output PDF to maintain document integrity. Use this for official documents, contracts, or records that should not be altered after creation. Prevents recipients from editing content, adding annotations, or extracting pages.",required:!1}),no_copy:m.Checkbox({displayName:"No Copy",description:"Disallow text and graphics extraction from the output PDF to protect copyrighted content. Use this for ebooks, proprietary documents, or materials where you want to prevent easy copying and redistribution.",required:!1}),title:m.ShortText({displayName:"Title",description:"Set the title of the PDF that appears in PDF reader title bars and document properties. Use descriptive titles for better organization and searchability in document management systems. This metadata helps users identify documents when multiple PDFs are open and improves accessibility for screen readers.",required:!1}),subject:m.ShortText({displayName:"Subject",description:"Set the subject of the PDF to categorize or summarize the document content. Use this to add searchable metadata for document management systems, improve organization in large PDF libraries, or provide context about the document's purpose. Appears in PDF properties dialog.",required:!1}),author:m.ShortText({displayName:"Author",description:"Set the author of the PDF for attribution and document tracking. Use this to identify who created the document, important for official documents, reports, or publications. This metadata appears in PDF properties and helps with document management and version control.",required:!1}),keywords:m.ShortText({displayName:"Keywords",description:"Associate keywords with the document to improve searchability in document management systems. Use relevant terms that describe the content, making it easier to find documents later. Separate multiple keywords with commas. Particularly useful for large document repositories or DAM systems.",required:!1}),extract_meta_tags:m.Checkbox({displayName:"Extract Meta Tags",description:"Extract meta tags (author, keywords and description) from the input HTML and automatically populate PDF metadata. Use this when converting web pages that already have proper HTML meta tags, saving you from manually setting title, author, and keywords. Ideal for automated conversion workflows where source HTML is well-structured.",required:!1}),page_layout:m.StaticDropdown({displayName:"Page Layout",description:'Control how pages appear when the PDF opens in viewers that respect these preferences. "single-page" for focused reading one page at a time. "one-column" for continuous scrolling like a web page. "two-column-left" for book-like layouts with odd pages on left (international standard). "two-column-right" for magazines with odd pages on right.',required:!1,options:{options:[{label:"single-page",value:"single-page"},{label:"one-column",value:"one-column"},{label:"two-column-left",value:"two-column-left"},{label:"two-column-right",value:"two-column-right"}]}}),page_mode:m.StaticDropdown({displayName:"Page Mode",description:'Control the initial display mode when the PDF opens. "full-screen" for presentations and kiosk displays where you want an immersive experience. "thumbnails" for long documents where visual page navigation is helpful. "outlines" for structured documents with bookmarks/table of contents.',required:!1,options:{options:[{label:"full-screen",value:"full-screen"},{label:"thumbnails",value:"thumbnails"},{label:"outlines",value:"outlines"}]}}),initial_zoom_type:m.StaticDropdown({displayName:"Initial Zoom Type",description:"Control how the PDF is initially zoomed when opened.",required:!1,options:{options:[{label:"fit-width",value:"fit-width"},{label:"fit-height",value:"fit-height"},{label:"fit-page",value:"fit-page"}]}}),initial_page:m.Number({displayName:"Initial Page",description:"Display the specified page when the document is opened.",required:!1}),initial_zoom:m.Number({displayName:"Initial Zoom",description:"Specify the initial page zoom in percents when the document is opened.",required:!1}),hide_toolbar:m.Checkbox({displayName:"Hide Toolbar",description:"Hide the viewer's toolbar when the PDF is opened to provide a cleaner, more focused reading experience. Use this for presentations, kiosk displays, or immersive reading where you want minimal UI distractions.",required:!1}),hide_menubar:m.Checkbox({displayName:"Hide Menubar",description:"Hide the viewer's menu bar when the PDF is opened for a cleaner interface. Use this for kiosk mode, presentations, or embedded PDFs where you want to minimize UI elements.",required:!1}),hide_window_ui:m.Checkbox({displayName:"Hide Window UI",description:"Hide user interface elements like scroll bars and navigation controls when the PDF opens. Use this for presentation mode, digital signage, or embedded PDFs where you want the most minimal interface possible. Combines with other UI hiding options for full-screen immersive viewing.",required:!1}),fit_window:m.Checkbox({displayName:"Fit Window",description:"Resize the PDF viewer window to fit the size of the first displayed page when opened. Use this to ensure the PDF opens at an appropriate size rather than filling the entire screen. Particularly useful for small documents, forms, or certificates that look better at actual size.",required:!1}),center_window:m.Checkbox({displayName:"Center Window",description:"Position the PDF viewer window in the center of the screen when opened. Use this with window resizing to create a professional, centered display for forms, certificates, or small documents. Improves the initial viewing experience by avoiding corner-positioned windows.",required:!1}),display_title:m.Checkbox({displayName:"Display Title",description:"Display the title of the HTML document in the PDF viewer's title bar instead of the filename. Use this to show more descriptive titles when PDFs are opened - particularly useful when the filename is cryptic or auto-generated. Improves user experience by showing meaningful document names.",required:!1}),right_to_left:m.Checkbox({displayName:"Right To Left",description:"Set the predominant reading order for text to right-to-left. This option has no direct effect on the document's contents or page numbering but can be used to determine the relative positioning of pages when displayed side by side or printed n-up.",required:!1}),data_string:m.LongText({displayName:"Data String",description:"Set the input data for template rendering. The data format can be JSON, XML, YAML or CSV.",required:!1}),data_format:m.StaticDropdown({displayName:"Data Format",description:'Specify the input data format. Use "auto" for automatic detection or explicitly set to JSON, XML, YAML, or CSV when format is known.',required:!1,options:{options:[{label:"auto",value:"auto"},{label:"json",value:"json"},{label:"xml",value:"xml"},{label:"yaml",value:"yaml"},{label:"csv",value:"csv"}]},defaultValue:"auto"}),data_ignore_undefined:m.Checkbox({displayName:"Data Ignore Undefined",description:"Ignore undefined variables in the HTML template. The default mode is strict so any undefined variable causes the conversion to fail. You can use {% if variable is defined %} to check if the variable is defined.",required:!1}),data_auto_escape:m.Checkbox({displayName:"Data Auto Escape",description:"Auto escape HTML symbols in the input data before placing them into the output.",required:!1}),data_trim_blocks:m.Checkbox({displayName:"Data Trim Blocks",description:"Auto trim whitespace around each template command block.",required:!1}),data_options:m.LongText({displayName:"Data Options",description:"Set the advanced data options as comma separated key=value pairs: csv_delimiter - The CSV data delimiter, the default is ,. xml_remove_root - Remove the root XML element from the input data. data_root - The name of the root element inserted into the input data without a root node (e.g. CSV), the default is data.",required:!1}),debug_log:m.Checkbox({displayName:"Debug Log",description:"Turn on debug logging to troubleshoot conversion issues. Details about the conversion process, including resource loading, rendering steps, and error messages are stored in the debug log. Use this when conversions fail or produce unexpected results.",required:!1}),tag:m.ShortText({displayName:"Tag",description:"Tag the conversion with a custom value for tracking and analytics. Use this to categorize conversions by customer ID, document type, or business unit. The tag appears in conversion statistics. A value longer than 32 characters is cut off.",required:!1}),http_proxy:m.ShortText({displayName:"HTTP Proxy",description:"A proxy server used by the conversion process for accessing the source URLs with HTTP scheme. This can help circumvent regional restrictions or provide limited access to your intranet.",required:!1}),https_proxy:m.ShortText({displayName:"HTTPS Proxy",description:"A proxy server used by the conversion process for accessing the source URLs with HTTPS scheme. This can help circumvent regional restrictions or provide limited access to your intranet.",required:!1}),layout_dpi:m.Number({displayName:"Layout DPI",description:"Set the internal DPI resolution used for positioning of PDF contents. It can help in situations where there are small inaccuracies in the PDF. It is recommended to use values that are a multiple of 72, such as 288 or 360.",required:!1}),main_document_css_annotation:m.Checkbox({displayName:"Main Document CSS Annotation",description:"Add special CSS classes to the main document's body element. This allows applying custom styling based on these classes: pdfcrowd-page-X - where X is the current page number pdfcrowd-page-odd - odd page pdfcrowd-page-even - even page",required:!1}),header_footer_css_annotation:m.Checkbox({displayName:"Header Footer CSS Annotation",description:"Add special CSS classes to the header/footer's body element. This allows applying custom styling based on these classes: pdfcrowd-page-X - where X is the current page number pdfcrowd-page-count-X - where X is the total page count pdfcrowd-page-first - the first page pdfcrowd-page-last - the last page pdfcrowd-page-odd - odd page pdfcrowd-page-even - even page",required:!1}),conversion_config:m.LongText({displayName:"Conversion Config",description:`Configure conversion via JSON. The configuration defines various page settings for individual PDF pages or ranges of pages. It provides flexibility in designing each page of the PDF, giving control over each page's size, header, footer, etc. If a page or parameter is not explicitly specified, the system will use the default settings for that page or attribute. If a JSON configuration is provided, the settings in the JSON will take precedence over the global options. The structure of the JSON must be: pageSetup: An array of objects where each object defines the configuration for a specific page or range of pages. The following properties can be set for each page object: pages: A comma-separated list of page numbers or ranges. Special strings may be used, such as odd, even, and last. For example: 1-: from page 1 to the end of the document 2: only the 2nd page 2,4,6: pages 2, 4, and 6 2-5: pages 2 through 5 odd,2: the 2nd page and all odd pages pageSize: The page size (optional). Possible values: A0, A1, A2, A3, A4, A5, A6, Letter. pageWidth: The width of the page (optional). pageHeight: The height of the page (optional). marginLeft: Left margin (optional). marginRight: Right margin (optional). marginTop: Top margin (optional). marginBottom: Bottom margin (optional). displayHeader: Header appearance (optional). Possible values: none: completely excluded space: only the content is excluded, the space is used content: the content is printed (default) displayFooter: Footer appearance (optional). Possible values: none: completely excluded space: only the content is excluded, the space is used content: the content is printed (default) headerHeight: Height of the header (optional). footerHeight: Height of the footer (optional). orientation: Page orientation, such as "portrait" or "landscape" (optional). backgroundColor: Page background color in RRGGBB or RRGGBBAA hexadecimal format (optional). Dimensions may be empty, 0 or specified in inches "in", millimeters "mm", centimeters "cm", pixels "px", or points "pt".`,required:!1}),converter_version:m.StaticDropdown({displayName:"Converter Version",description:"Set the converter version. Different versions may produce different output. Choose which one provides the best output for your case.",required:!1,options:{options:[{label:"24.04",value:"24.04"},{label:"20.10",value:"20.10"},{label:"18.10",value:"18.10"}]},defaultValue:"24.04"}),page_watermark:m.File({displayName:"Page Watermark",description:'Apply the first page of a watermark PDF to every page of the output PDF. Use this to add transparent overlays like "DRAFT" stamps, security markings, or branding elements that appear on top of content. Ideal for confidential document marking or adding protective overlays.',required:!1}),multipage_watermark:m.File({displayName:"Multipage Watermark",description:"Apply each page of a watermark PDF to the corresponding page of the output PDF. Use this for page-specific watermarks where different pages need different overlays - for example, different approval stamps per department. If the watermark has fewer pages than the output, the last watermark page is repeated for remaining pages.",required:!1}),page_background:m.File({displayName:"Page Background",description:"Apply the first page of a background PDF to every page of the output PDF. Use this to add letterheads, branded templates, or decorative backgrounds that appear behind your content. Backgrounds appear beneath content, while watermarks layer on top. Perfect for adding company letterheads to reports or applying branded templates to dynamically generated content.",required:!1}),multipage_background:m.File({displayName:"Multipage Background",description:"Apply each page of a background PDF to the corresponding page of the output PDF. Use this for page-specific backgrounds where each page needs a different template - for example, different letterheads for front and back pages. If the background has fewer pages than the output, the last background page is repeated for remaining pages.",required:!1})},async run(e){let{auth:r,propsValue:n}=e,i=new av.default;i.append("url",n.url);let t=["page_size","page_width","page_height","orientation","margin_top","margin_right","margin_bottom","margin_left","no_margins","print_page_range","content_viewport_width","content_viewport_height","content_fit_mode","remove_blank_pages","header_url","header_html","header_height","footer_url","footer_html","footer_height","no_header_footer_horizontal_margins","exclude_header_on_pages","exclude_footer_on_pages","header_footer_scale_factor","page_numbering_offset","page_watermark_url","multipage_watermark_url","page_background_url","multipage_background_url","page_background_color","use_print_media","no_background","disable_javascript","disable_image_loading","disable_remote_fonts","load_iframes","block_ads","default_encoding","locale","http_auth_user_name","http_auth_password","cookies","verify_ssl_certificates","fail_on_main_url_error","fail_on_any_url_error","css_page_rule_mode","custom_css","custom_javascript","on_load_javascript","custom_http_header","javascript_delay","element_to_convert","element_to_convert_mode","wait_for_element","auto_detect_element_to_convert","readability_enhancements","scale_factor","jpeg_quality","convert_images_to_jpeg","image_dpi","enable_pdf_forms","linearize","encrypt","user_password","owner_password","no_print","no_modify","no_copy","title","subject","author","keywords","extract_meta_tags","page_layout","page_mode","initial_zoom_type","initial_page","initial_zoom","hide_toolbar","hide_menubar","hide_window_ui","fit_window","center_window","display_title","right_to_left","debug_log","tag","http_proxy","https_proxy","layout_dpi","main_document_css_annotation","header_footer_css_annotation","conversion_config"];for(let v of t){let u=n[v];u!=null&&u!==""&&u!==!1&&i.append(v,String(u))}if(n.data_string){i.append("data_string",String(n.data_string));let v=["data_format","data_ignore_undefined","data_auto_escape","data_trim_blocks","data_options"];for(let u of v){let h=n[u];h!=null&&h!==""&&h!==!1&&i.append(u,String(h))}}let o=["page_watermark","multipage_watermark","page_background","multipage_background"];for(let v of o){let u=n[v];u?.data&&i.append(v,u.data,{filename:u.filename||`${v}.pdf`})}let a=i.getBuffer(),c=n.converter_version||"24.04",p=await dt.sendRequest({method:"POST",url:Ts(c),headers:{Authorization:Ss(r),"User-Agent":"pdfcrowd-activepieces/1.1.0",...i.getHeaders()},body:a,responseType:"arraybuffer"});if(p.status>=400){let v=Buffer.from(p.body).toString("utf-8");throw new Error(`Conversion failed (${p.status}): ${v}`)}let d=n.outputFilename||"document.pdf",f=await e.files.write({fileName:d,data:Buffer.from(p.body)}),b=p.headers||{};return{file:f,filename:d,jobId:b["x-pdfcrowd-job-id"]||"",pageCount:b["x-pdfcrowd-pages"]||"0",outputSize:b["x-pdfcrowd-output-size"]||"0",consumedCredits:b["x-pdfcrowd-consumed-credits"]||"0",remainingCredits:b["x-pdfcrowd-remaining-credits"]||"0"}}});var cv=Je(Ps()),uv=ar({name:"html_to_pdf",displayName:"Convert HTML to PDF",description:"Convert HTML content (string) to PDF document",audience:"both",aiMetadata:{description:"Render a raw HTML string into a PDF file via the Pdfcrowd API, returning the generated document. Choose this when you already have HTML markup (e.g. a generated invoice or report) rather than a live page URL (use Convert URL to PDF for a URL). Supports extensive layout, header/footer, watermark, and security options, plus template data injection. Not idempotent: each call performs a fresh conversion that produces a new file and consumes account credits.",idempotent:!1},auth:Mt,props:{htmlContent:m.LongText({displayName:"HTML Content",description:"The HTML content to convert to PDF",required:!0}),outputFilename:m.ShortText({displayName:"Output Filename",description:"The filename for the generated PDF",required:!1,defaultValue:"document.pdf"}),page_size:m.StaticDropdown({displayName:"Page Size",description:"Set the output page size using standard formats (A4, Letter, A3, etc.). Use A4 for international documents, Letter for US-based content, or larger sizes like A3 for posters and presentations.",required:!1,options:{options:[{label:"A0",value:"A0"},{label:"A1",value:"A1"},{label:"A2",value:"A2"},{label:"A3",value:"A3"},{label:"A4",value:"A4"},{label:"A5",value:"A5"},{label:"A6",value:"A6"},{label:"Letter",value:"Letter"}]},defaultValue:"A4"}),page_width:m.ShortText({displayName:"Page Width",description:"Set custom page dimensions when standard sizes don't fit your needs. Useful for banners, receipts, custom forms, or when matching specific printing equipment. The safe maximum is 200in - larger sizes may fail to open in some PDF viewers. For standard sizes like A4 or Letter, use the predefined page size option instead.",required:!1}),page_height:m.ShortText({displayName:"Page Height",description:'Set custom page height for specific formats like receipts, banners, or legal documents. Set to "-1" for a single-page PDF that expands to fit all content vertically - ideal for web pages, infographics, or documents where page breaks are undesirable. The safe maximum is 200in otherwise some viewers cannot open the PDF. For standard sizes, use the predefined page size option instead.',required:!1}),orientation:m.StaticDropdown({displayName:"Orientation",description:"Set the output page orientation to portrait or landscape. Use landscape for wide content like spreadsheets, charts, or dashboards. Use portrait for standard documents and text-heavy content.",required:!1,options:{options:[{label:"landscape",value:"landscape"},{label:"portrait",value:"portrait"}]},defaultValue:"portrait"}),margin_top:m.ShortText({displayName:"Margin Top",description:"Control white space at the top of the page. Increase for header space, formal documents, or annotation room (e.g., 1in or more). Decrease to maximize content area or fit more content (e.g., 5mm to 10mm). Default 0.4in balances readability with space efficiency. Set to 0 for full-bleed designs. Affects where content starts and where headers appear.",required:!1}),margin_right:m.ShortText({displayName:"Margin Right",description:"Control white space on the right edge of the page. Increase for binding/hole-punch clearance or note-taking space (e.g., 1in or more). Decrease to fit wider content (e.g., 5mm to 10mm). Default 0.4in balances readability with space efficiency. Set to 0 for full-bleed designs. Affects where content wraps and text line length.",required:!1}),margin_bottom:m.ShortText({displayName:"Margin Bottom",description:"Control white space at the bottom of the page. Increase for footer space, page numbers, or formal documents (e.g., 1in or more). Decrease to fit more content per page (e.g., 5mm to 10mm). Default 0.4in balances readability with space efficiency. Set to 0 for full-bleed designs. Affects where content ends and where footers appear.",required:!1}),margin_left:m.ShortText({displayName:"Margin Left",description:"Control white space on the left edge of the page. Increase for binding/hole-punch clearance or note-taking space (e.g., 1in or more). Decrease to fit wider content (e.g., 5mm to 10mm). Default 0.4in balances readability with space efficiency. Set to 0 for full-bleed designs. Affects where content starts horizontally and text line length.",required:!1}),no_margins:m.Checkbox({displayName:"No Margins",description:"Disable all page margins to use the entire page area. Use this for full-bleed designs where content should extend to the page edges, such as posters, certificates, or branded materials. Combine with custom CSS to ensure your content fills the page properly.",required:!1}),print_page_range:m.ShortText({displayName:"Print Page Range",description:'Set the page range to print when you only need specific pages from the conversion. Use this to extract individual pages (e.g., "2"), specific ranges (e.g., "3-7"), or combinations (e.g., "1,4-6,last"). Ideal for creating excerpts from long documents or excluding cover pages from batch processing.',required:!1}),content_viewport_width:m.StaticDropdown({displayName:"Content Viewport Width",description:"Set the viewport width for formatting the HTML content when generating a PDF. Use this to control how responsive designs render - prevent mobile styles from applying when you want desktop layout, or ensure content appears at the right width. Specify a viewport width to control content rendering, ensuring it mimics the appearance on various devices or matches specific design requirements.",required:!1,options:{options:[{label:"balanced",value:"balanced"},{label:"small",value:"small"},{label:"medium",value:"medium"},{label:"large",value:"large"},{label:"extra-large",value:"extra-large"}]},defaultValue:"medium"}),content_viewport_height:m.StaticDropdown({displayName:"Content Viewport Height",description:"Set the viewport height for formatting the HTML content when generating a PDF. Specify a viewport height to enforce loading of lazy-loaded images and affect vertical positioning of absolutely positioned elements within the content.",required:!1,options:{options:[{label:"auto",value:"auto"},{label:"large",value:"large"}]},defaultValue:"auto"}),content_fit_mode:m.StaticDropdown({displayName:"Content Fit Mode",description:"Specify the mode for fitting the HTML content to the print area by upscaling or downscaling it. Use this to prevent content from being cut off at page edges or to enable smart scaling of oversized content.",required:!1,options:{options:[{label:"auto",value:"auto"},{label:"smart-scaling",value:"smart-scaling"},{label:"no-scaling",value:"no-scaling"},{label:"viewport-width",value:"viewport-width"},{label:"content-width",value:"content-width"},{label:"single-page",value:"single-page"},{label:"single-page-ratio",value:"single-page-ratio"}]},defaultValue:"auto"}),remove_blank_pages:m.StaticDropdown({displayName:"Remove Blank Pages",description:'Specify which blank pages to exclude from the output document to create cleaner PDFs. Use "trailing" to remove empty pages at the end caused by page break issues. Use "all" to remove blank pages throughout the document when converting content with formatting quirks. Helps eliminate unwanted white pages from the final output.',required:!1,options:{options:[{label:"trailing",value:"trailing"},{label:"all",value:"all"},{label:"none",value:"none"}]},defaultValue:"trailing"}),header_url:m.LongText({displayName:"Header URL",description:"Load an HTML code from the specified URL and use it as the page header.",required:!1}),header_html:m.LongText({displayName:"Header HTML",description:"Set the HTML header content with custom styling and dynamic page numbers. Use this to add page numbers, document titles, author names, dates, or company branding to the top of every page. Supports full HTML/CSS for complete design control. Use special CSS classes like pdfcrowd-page-number and pdfcrowd-page-count for dynamic content. Ideal for reports, invoices, and professional documents.",required:!1}),header_height:m.ShortText({displayName:"Header Height",description:"Set the header height to allocate space for header content and prevent overlap with main content. Increase this if your header text is getting cut off or overlapping with page content. Must be large enough to accommodate your header HTML including any multi-line text or images.",required:!1}),footer_url:m.LongText({displayName:"Footer URL",description:"Load an HTML code from the specified URL and use it as the page footer.",required:!1}),footer_html:m.LongText({displayName:"Footer HTML",description:"Set the HTML footer content with custom styling and dynamic page numbers. Use this to add page numbers, copyright notices, document dates, or company information to the bottom of every page. Supports full HTML/CSS for complete design control. Use special CSS classes like pdfcrowd-page-number and pdfcrowd-page-count for dynamic content. Ideal for contracts, reports, and official documents.",required:!1}),footer_height:m.ShortText({displayName:"Footer Height",description:"Set the footer height to allocate space for footer content and prevent overlap with main content. Increase this if your footer text is getting cut off or overlapping with page content. Must be large enough to accommodate your footer HTML including any multi-line text or images.",required:!1}),no_header_footer_horizontal_margins:m.Checkbox({displayName:"No Header Footer Horizontal Margins",description:"Disable horizontal page margins for header and footer. The header/footer contents width will be equal to the physical page width.",required:!1}),exclude_header_on_pages:m.ShortText({displayName:"Exclude Header On Pages",description:"The page header content is not printed on the specified pages. To remove the entire header area, use the conversion config.",required:!1}),exclude_footer_on_pages:m.ShortText({displayName:"Exclude Footer On Pages",description:"The page footer content is not printed on the specified pages. To remove the entire footer area, use the conversion config.",required:!1}),header_footer_scale_factor:m.Number({displayName:"Header Footer Scale Factor",description:"Set the scaling factor (zoom) for the header and footer.",required:!1}),page_numbering_offset:m.Number({displayName:"Page Numbering Offset",description:"Set the numbering offset for page numbers in header/footer HTML to continue page numbering from a previous document. Use this when generating document sections separately - for example, if you have already generated pages 1-10, set offset to 10. The next section will then start numbering at page 11. Essential for multi-part reports or book chapters.",required:!1}),page_watermark_url:m.ShortText({displayName:"Page Watermark URL",description:"Load a file from the specified URL and apply the file as a watermark to each page of the output PDF. A watermark can be either a PDF or an image. If a multi-page file (PDF or TIFF) is used, the first page is used as the watermark.",required:!1}),multipage_watermark_url:m.ShortText({displayName:"Multipage Watermark URL",description:"Load a file from the specified URL and apply each page of the file as a watermark to the corresponding page of the output PDF. A watermark can be either a PDF or an image.",required:!1}),page_background_url:m.ShortText({displayName:"Page Background URL",description:"Load a file from the specified URL and apply the file as a background to each page of the output PDF. A background can be either a PDF or an image. If a multi-page file (PDF or TIFF) is used, the first page is used as the background.",required:!1}),multipage_background_url:m.ShortText({displayName:"Multipage Background URL",description:"Load a file from the specified URL and apply each page of the file as a background to the corresponding page of the output PDF. A background can be either a PDF or an image.",required:!1}),page_background_color:m.ShortText({displayName:"Page Background Color",description:"Set a solid background color for all pages, filling the entire page area including margins. Useful for creating branded PDFs with corporate colors, highlighting draft documents, or improving readability with off-white backgrounds. Supports transparency with RGBA format - use semi-transparent colors for subtle effects without obscuring content. Format as RGB (FF0000) or RGBA (FF000080) hexadecimal.",required:!1}),use_print_media:m.Checkbox({displayName:"Use Print Media",description:"Use the print version of the page if available via @media print CSS rules. Enable this when converting websites that have print-optimized styles. Many sites hide navigation, ads, and sidebars in print mode. Produces cleaner PDFs by using the design the website creator intended for printing.",required:!1}),no_background:m.Checkbox({displayName:"No Background",description:"Do not print the background graphics to create printer-friendly PDFs. Use this when documents will be physically printed to save ink costs and improve readability. Removes background colors, images, and patterns while preserving text and foreground content. Particularly useful for documents with dark backgrounds or decorative elements.",required:!1}),disable_javascript:m.Checkbox({displayName:"Disable JavaScript",description:"Do not execute JavaScript during conversion. Use this to improve conversion speed when JavaScript is not needed, prevent dynamic content changes, or avoid security risks from untrusted scripts. Note that disabling JavaScript means lazy-loaded images and AJAX content will not load.",required:!1}),disable_image_loading:m.Checkbox({displayName:"Disable Image Loading",description:"Do not load images during conversion to create text-only PDFs. Use this to significantly speed up conversion, reduce file size, or create accessible text-focused documents. Ideal for converting documentation where images are not needed, reducing bandwidth usage, or creating lightweight PDFs for email distribution.",required:!1}),disable_remote_fonts:m.Checkbox({displayName:"Disable Remote Fonts",description:"Disable loading fonts from remote sources. Use this to speed up conversion by avoiding font download delays, ensure consistent rendering with system fonts, or work around font loading failures. Note that text will fall back to system fonts, which may change the document's appearance.",required:!1}),load_iframes:m.StaticDropdown({displayName:"Load Iframes",description:'Specifies how iframes are handled during conversion. Use "all" to include all embedded content (videos, maps, widgets). Use "same-origin" to include only content from the same domain for security purposes. Use "none" to exclude all iframes for faster conversion and to avoid third-party content issues. Disabling iframes can significantly improve performance and reliability.',required:!1,options:{options:[{label:"all",value:"all"},{label:"same-origin",value:"same-origin"},{label:"none",value:"none"}]},defaultValue:"all"}),block_ads:m.Checkbox({displayName:"Block Ads",description:"Automatically block common advertising networks and tracking scripts during conversion, producing cleaner PDFs with faster conversion times. Filters out third-party ad content, analytics beacons, and ad network resources. Ideal for converting news sites, blogs, or any ad-heavy content where ads distract from the main message. May occasionally block legitimate third-party content - disable if critical third-party resources are missing.",required:!1}),default_encoding:m.ShortText({displayName:"Default Encoding",description:'Specify the character encoding when the HTML lacks proper charset declaration or has incorrect encoding. Prevents garbled text for non-English content, especially legacy pages without UTF-8 encoding. Set to "utf-8" for modern content, "iso-8859-1" for Western European legacy pages, or other encodings for specific regional content. Only needed when auto-detection fails and you see corrupted characters in the output.',required:!1}),locale:m.ShortText({displayName:"Locale",description:'Set the locale for the conversion to control regional formatting of dates, times, and numbers. Use this when converting content for specific regions - for example, set to "en-US" for MM/DD/YYYY dates and comma thousand separators, or "de-DE" for DD.MM.YYYY dates and period thousand separators. Essential for financial reports, invoices, or localized content.',required:!1}),http_auth_user_name:m.ShortText({displayName:"HTTP Auth User Name",description:"Set the HTTP authentication user name. Required to access protected web pages or staging environments.",required:!1}),http_auth_password:m.ShortText({displayName:"HTTP Auth Password",description:"Set the HTTP authentication password. Required to access protected web pages or staging environments.",required:!1}),cookies:m.ShortText({displayName:"Cookies",description:"Set HTTP cookies to be included in all requests made by the converter to access authenticated or session-based content. Use this when converting pages that require login, maintain user sessions, or personalize content based on cookies. Essential for converting member-only areas, dashboards, or any content behind cookie-based authentication. Format as semicolon-separated name=value pairs.",required:!1}),verify_ssl_certificates:m.Checkbox({displayName:"Verify SSL Certificates",description:"Enforce SSL certificate validation for secure connections, preventing conversions from sites with invalid certificates. Enable when converting from production sites with valid certificates to ensure security. When disabled, allows conversion from any HTTPS site regardless of certificate validity - including development servers with self-signed certificates, internal corporate sites with expired certificates, or local testing environments.",required:!1}),fail_on_main_url_error:m.Checkbox({displayName:"Fail On Main URL Error",description:"Abort the conversion if the HTTP status code of the main URL is greater than or equal to 400 (client/server errors). Use this in automated workflows to catch broken URLs or authentication failures early rather than producing invalid PDFs. Ensures your system does not silently generate error page PDFs when source content is unavailable.",required:!1}),fail_on_any_url_error:m.Checkbox({displayName:"Fail On Any URL Error",description:"Abort the conversion if any sub-request (images, stylesheets, scripts) fails with HTTP 400+ errors. Use this for strict quality control when all assets must load successfully.",required:!1}),css_page_rule_mode:m.StaticDropdown({displayName:"CSS Page Rule Mode",description:'Specifies behavior in the presence of CSS @page rules to control which settings take precedence. Use "default" to prioritize API settings over CSS rules, ensuring consistent output regardless of input HTML. Use "mode2" to respect CSS @page rules for print-optimized HTML. This solves conflicts when CSS tries to override your API page setup.',required:!1,options:{options:[{label:"default",value:"default"},{label:"mode1",value:"mode1"},{label:"mode2",value:"mode2"}]},defaultValue:"default"}),custom_css:m.LongText({displayName:"Custom CSS",description:"Apply custom CSS to the input HTML document to modify the visual appearance and layout of your content dynamically. Use this to override default styles, adjust spacing, change fonts, or fix layout issues without modifying the source HTML. Use !important in your CSS rules to prioritize and override conflicting styles.",required:!1}),custom_javascript:m.LongText({displayName:"Custom JavaScript",description:"Run a custom JavaScript after the document is loaded and ready to print. Use this to modify page content before conversion, remove unwanted elements, or trigger specific page states. The script is intended for post-load DOM manipulation (add/remove elements, update CSS, ...). In addition to the standard browser APIs, the custom JavaScript code can use helper functions from our JavaScript library.",required:!1}),on_load_javascript:m.ShortText({displayName:"On Load JavaScript",description:"Run a custom JavaScript right after the document is loaded. The script is intended for early DOM manipulation (add/remove elements, update CSS, ...). In addition to the standard browser APIs, the custom JavaScript code can use helper functions from our JavaScript library.",required:!1}),custom_http_header:m.ShortText({displayName:"Custom HTTP Header",description:"Set a custom HTTP header to be included in all requests made by the converter. Use this to pass authentication tokens to protected sites, add tracking headers for analytics, or provide API keys for accessing private content. Essential when converting content from APIs or internal systems that require special headers for access control.",required:!1}),javascript_delay:m.Number({displayName:"JavaScript Delay",description:'Wait the specified number of milliseconds to finish all JavaScript after the document is loaded. Use this to ensure lazy-loaded images, AJAX content, or animations complete before conversion. Your license defines the maximum wait time by "Max Delay" parameter.',required:!1}),element_to_convert:m.ShortText({displayName:"Element To Convert",description:"Convert only the specified element from the main document and its children. Use this to extract specific portions of a page (like article content) while excluding navigation, headers, footers, or sidebars. The element is specified by one or more CSS selectors. If the element is not found, the conversion fails. If multiple elements are found, the first one is used.",required:!1}),element_to_convert_mode:m.StaticDropdown({displayName:"Element To Convert Mode",description:'Control how CSS styles are applied when converting only part of a page. The "cut-out" option extracts the element into a new document root, which may break CSS selectors like "body > div". The "remove-siblings" option keeps the element in its original DOM position but deletes other elements, preserving descendant selectors. The "hide-siblings" option keeps all elements but hides non-selected ones with display:none, preserving all CSS context.',required:!1,options:{options:[{label:"cut-out",value:"cut-out"},{label:"remove-siblings",value:"remove-siblings"},{label:"hide-siblings",value:"hide-siblings"}]},defaultValue:"cut-out"}),wait_for_element:m.ShortText({displayName:"Wait For Element",description:'Wait for the specified element in a source document. Use this when specific dynamic content must be ready before conversion, avoiding unnecessary delays from a fixed JavaScript delay. The element is specified by one or more CSS selectors. The element is searched for in the main document and all iframes. If the element is not found, the conversion fails. Your license defines the maximum wait time by the "Max Delay" parameter.',required:!1}),auto_detect_element_to_convert:m.Checkbox({displayName:"Auto Detect Element To Convert",description:"The main HTML element for conversion is detected automatically. Use this when you want to extract article or main content without knowing the exact CSS selector, automatically excluding navigation and sidebars.",required:!1}),readability_enhancements:m.StaticDropdown({displayName:"Readability Enhancements",description:'Automatically enhance the input HTML to improve readability by removing clutter and reformatting content. Use this when converting web pages with excessive navigation, ads, or sidebars that distract from the main content. Different versions (v1-v4) use progressively aggressive algorithms - start with "v1" and increase if more cleanup is needed. Ideal for converting blog posts, articles, or documentation into clean PDFs.',required:!1,options:{options:[{label:"none",value:"none"},{label:"readability-v1",value:"readability-v1"},{label:"readability-v2",value:"readability-v2"},{label:"readability-v3",value:"readability-v3"},{label:"readability-v4",value:"readability-v4"}]},defaultValue:"none"}),scale_factor:m.Number({displayName:"Scale Factor",description:"Set the scaling factor (zoom) for the main page area to fit content better. Use values below 100% to shrink oversized content that is getting cut off at page edges. Use values above 100% to enlarge small content for better readability. Common use cases include shrinking wide tables to fit (70-80%), or enlarging mobile-optimized layouts for desktop PDFs (120-150%).",required:!1}),jpeg_quality:m.Number({displayName:"JPEG Quality",description:"Set the quality of embedded JPEG images to balance file size and visual quality. Use 100% for archival documents or when image quality is critical. Use 70-85% for web distribution to significantly reduce file size with minimal visible quality loss. Use lower values (50-60%) only when file size is more important than image clarity. Common artifacts below 60% include blockiness and color banding.",required:!1}),convert_images_to_jpeg:m.StaticDropdown({displayName:"Convert Images To JPEG",description:'Specify which image types will be converted to JPEG to reduce PDF file size. Use "opaque" to convert only non-transparent images (safe for most documents). Use "all" to convert everything including transparent images (transparent areas become white). Use "none" to preserve original image formats. Ideal for reducing file size when distributing large image-heavy PDFs via email or web.',required:!1,options:{options:[{label:"none",value:"none"},{label:"opaque",value:"opaque"},{label:"all",value:"all"}]},defaultValue:"none"}),image_dpi:m.Number({displayName:"Image DPI",description:"Set the DPI of images in PDF to control resolution and file size. Use 300 DPI for professional printing, 150 DPI for everyday documents, 96 DPI for screen-only viewing, or 72 DPI for web distribution. Lower DPI creates smaller files but reduces image quality. Use 0 to preserve original image resolution. Note that this only downscales - it will not upscale low-resolution images.",required:!1}),enable_pdf_forms:m.Checkbox({displayName:"Enable PDF Forms",description:"Convert HTML forms to fillable PDF forms that users can complete in PDF readers. Use this to create interactive PDFs from HTML forms. Ideal for creating fillable applications, surveys, or order forms that work offline. Details can be found in the blog post.",required:!1}),linearize:m.Checkbox({displayName:"Linearize",description:"Create linearized PDF. This is also known as Fast Web View. Use this to optimize PDFs for progressive download, allowing users to start viewing the first page while the rest downloads.",required:!1}),encrypt:m.Checkbox({displayName:"Encrypt",description:"Encrypt the PDF to prevent search engines from indexing the contents and add an extra layer of security. Use this for confidential documents, internal reports, or any content you do not want appearing in search results. Combine with a password to require authentication for viewing, or just use encryption alone to prevent indexing while keeping the PDF publicly readable.",required:!1}),user_password:m.ShortText({displayName:"User Password",description:"Protect the PDF with a user password to restrict who can open and view the document. Recipients must enter this password to view the PDF. Use this for confidential documents, sensitive data, or content distribution where you want to control access. Combine with permission flags to restrict what users can do after opening.",required:!1}),owner_password:m.ShortText({displayName:"Owner Password",description:"Protect the PDF with an owner password for administrative control. This password allows changing permissions, passwords, and document restrictions - like a master key. Use different user and owner passwords to give recipients restricted access while retaining full control. The owner password should be kept confidential and different from the user password.",required:!1}),no_print:m.Checkbox({displayName:"No Print",description:"Disallow printing of the output PDF to protect sensitive content. Use this for confidential documents, copyrighted materials, or preview versions you want to restrict.",required:!1}),no_modify:m.Checkbox({displayName:"No Modify",description:"Disallow modification of the output PDF to maintain document integrity. Use this for official documents, contracts, or records that should not be altered after creation. Prevents recipients from editing content, adding annotations, or extracting pages.",required:!1}),no_copy:m.Checkbox({displayName:"No Copy",description:"Disallow text and graphics extraction from the output PDF to protect copyrighted content. Use this for ebooks, proprietary documents, or materials where you want to prevent easy copying and redistribution.",required:!1}),title:m.ShortText({displayName:"Title",description:"Set the title of the PDF that appears in PDF reader title bars and document properties. Use descriptive titles for better organization and searchability in document management systems. This metadata helps users identify documents when multiple PDFs are open and improves accessibility for screen readers.",required:!1}),subject:m.ShortText({displayName:"Subject",description:"Set the subject of the PDF to categorize or summarize the document content. Use this to add searchable metadata for document management systems, improve organization in large PDF libraries, or provide context about the document's purpose. Appears in PDF properties dialog.",required:!1}),author:m.ShortText({displayName:"Author",description:"Set the author of the PDF for attribution and document tracking. Use this to identify who created the document, important for official documents, reports, or publications. This metadata appears in PDF properties and helps with document management and version control.",required:!1}),keywords:m.ShortText({displayName:"Keywords",description:"Associate keywords with the document to improve searchability in document management systems. Use relevant terms that describe the content, making it easier to find documents later. Separate multiple keywords with commas. Particularly useful for large document repositories or DAM systems.",required:!1}),extract_meta_tags:m.Checkbox({displayName:"Extract Meta Tags",description:"Extract meta tags (author, keywords and description) from the input HTML and automatically populate PDF metadata. Use this when converting web pages that already have proper HTML meta tags, saving you from manually setting title, author, and keywords. Ideal for automated conversion workflows where source HTML is well-structured.",required:!1}),page_layout:m.StaticDropdown({displayName:"Page Layout",description:'Control how pages appear when the PDF opens in viewers that respect these preferences. "single-page" for focused reading one page at a time. "one-column" for continuous scrolling like a web page. "two-column-left" for book-like layouts with odd pages on left (international standard). "two-column-right" for magazines with odd pages on right.',required:!1,options:{options:[{label:"single-page",value:"single-page"},{label:"one-column",value:"one-column"},{label:"two-column-left",value:"two-column-left"},{label:"two-column-right",value:"two-column-right"}]}}),page_mode:m.StaticDropdown({displayName:"Page Mode",description:'Control the initial display mode when the PDF opens. "full-screen" for presentations and kiosk displays where you want an immersive experience. "thumbnails" for long documents where visual page navigation is helpful. "outlines" for structured documents with bookmarks/table of contents.',required:!1,options:{options:[{label:"full-screen",value:"full-screen"},{label:"thumbnails",value:"thumbnails"},{label:"outlines",value:"outlines"}]}}),initial_zoom_type:m.StaticDropdown({displayName:"Initial Zoom Type",description:"Control how the PDF is initially zoomed when opened.",required:!1,options:{options:[{label:"fit-width",value:"fit-width"},{label:"fit-height",value:"fit-height"},{label:"fit-page",value:"fit-page"}]}}),initial_page:m.Number({displayName:"Initial Page",description:"Display the specified page when the document is opened.",required:!1}),initial_zoom:m.Number({displayName:"Initial Zoom",description:"Specify the initial page zoom in percents when the document is opened.",required:!1}),hide_toolbar:m.Checkbox({displayName:"Hide Toolbar",description:"Hide the viewer's toolbar when the PDF is opened to provide a cleaner, more focused reading experience. Use this for presentations, kiosk displays, or immersive reading where you want minimal UI distractions.",required:!1}),hide_menubar:m.Checkbox({displayName:"Hide Menubar",description:"Hide the viewer's menu bar when the PDF is opened for a cleaner interface. Use this for kiosk mode, presentations, or embedded PDFs where you want to minimize UI elements.",required:!1}),hide_window_ui:m.Checkbox({displayName:"Hide Window UI",description:"Hide user interface elements like scroll bars and navigation controls when the PDF opens. Use this for presentation mode, digital signage, or embedded PDFs where you want the most minimal interface possible. Combines with other UI hiding options for full-screen immersive viewing.",required:!1}),fit_window:m.Checkbox({displayName:"Fit Window",description:"Resize the PDF viewer window to fit the size of the first displayed page when opened. Use this to ensure the PDF opens at an appropriate size rather than filling the entire screen. Particularly useful for small documents, forms, or certificates that look better at actual size.",required:!1}),center_window:m.Checkbox({displayName:"Center Window",description:"Position the PDF viewer window in the center of the screen when opened. Use this with window resizing to create a professional, centered display for forms, certificates, or small documents. Improves the initial viewing experience by avoiding corner-positioned windows.",required:!1}),display_title:m.Checkbox({displayName:"Display Title",description:"Display the title of the HTML document in the PDF viewer's title bar instead of the filename. Use this to show more descriptive titles when PDFs are opened - particularly useful when the filename is cryptic or auto-generated. Improves user experience by showing meaningful document names.",required:!1}),right_to_left:m.Checkbox({displayName:"Right To Left",description:"Set the predominant reading order for text to right-to-left. This option has no direct effect on the document's contents or page numbering but can be used to determine the relative positioning of pages when displayed side by side or printed n-up.",required:!1}),data_string:m.LongText({displayName:"Data String",description:"Set the input data for template rendering. The data format can be JSON, XML, YAML or CSV.",required:!1}),data_format:m.StaticDropdown({displayName:"Data Format",description:'Specify the input data format. Use "auto" for automatic detection or explicitly set to JSON, XML, YAML, or CSV when format is known.',required:!1,options:{options:[{label:"auto",value:"auto"},{label:"json",value:"json"},{label:"xml",value:"xml"},{label:"yaml",value:"yaml"},{label:"csv",value:"csv"}]},defaultValue:"auto"}),data_ignore_undefined:m.Checkbox({displayName:"Data Ignore Undefined",description:"Ignore undefined variables in the HTML template. The default mode is strict so any undefined variable causes the conversion to fail. You can use {% if variable is defined %} to check if the variable is defined.",required:!1}),data_auto_escape:m.Checkbox({displayName:"Data Auto Escape",description:"Auto escape HTML symbols in the input data before placing them into the output.",required:!1}),data_trim_blocks:m.Checkbox({displayName:"Data Trim Blocks",description:"Auto trim whitespace around each template command block.",required:!1}),data_options:m.LongText({displayName:"Data Options",description:"Set the advanced data options as comma separated key=value pairs: csv_delimiter - The CSV data delimiter, the default is ,. xml_remove_root - Remove the root XML element from the input data. data_root - The name of the root element inserted into the input data without a root node (e.g. CSV), the default is data.",required:!1}),debug_log:m.Checkbox({displayName:"Debug Log",description:"Turn on debug logging to troubleshoot conversion issues. Details about the conversion process, including resource loading, rendering steps, and error messages are stored in the debug log. Use this when conversions fail or produce unexpected results.",required:!1}),tag:m.ShortText({displayName:"Tag",description:"Tag the conversion with a custom value for tracking and analytics. Use this to categorize conversions by customer ID, document type, or business unit. The tag appears in conversion statistics. A value longer than 32 characters is cut off.",required:!1}),http_proxy:m.ShortText({displayName:"HTTP Proxy",description:"A proxy server used by the conversion process for accessing the source URLs with HTTP scheme. This can help circumvent regional restrictions or provide limited access to your intranet.",required:!1}),https_proxy:m.ShortText({displayName:"HTTPS Proxy",description:"A proxy server used by the conversion process for accessing the source URLs with HTTPS scheme. This can help circumvent regional restrictions or provide limited access to your intranet.",required:!1}),layout_dpi:m.Number({displayName:"Layout DPI",description:"Set the internal DPI resolution used for positioning of PDF contents. It can help in situations where there are small inaccuracies in the PDF. It is recommended to use values that are a multiple of 72, such as 288 or 360.",required:!1}),main_document_css_annotation:m.Checkbox({displayName:"Main Document CSS Annotation",description:"Add special CSS classes to the main document's body element. This allows applying custom styling based on these classes: pdfcrowd-page-X - where X is the current page number pdfcrowd-page-odd - odd page pdfcrowd-page-even - even page",required:!1}),header_footer_css_annotation:m.Checkbox({displayName:"Header Footer CSS Annotation",description:"Add special CSS classes to the header/footer's body element. This allows applying custom styling based on these classes: pdfcrowd-page-X - where X is the current page number pdfcrowd-page-count-X - where X is the total page count pdfcrowd-page-first - the first page pdfcrowd-page-last - the last page pdfcrowd-page-odd - odd page pdfcrowd-page-even - even page",required:!1}),conversion_config:m.LongText({displayName:"Conversion Config",description:`Configure conversion via JSON. The configuration defines various page settings for individual PDF pages or ranges of pages. It provides flexibility in designing each page of the PDF, giving control over each page's size, header, footer, etc. If a page or parameter is not explicitly specified, the system will use the default settings for that page or attribute. If a JSON configuration is provided, the settings in the JSON will take precedence over the global options. The structure of the JSON must be: pageSetup: An array of objects where each object defines the configuration for a specific page or range of pages. The following properties can be set for each page object: pages: A comma-separated list of page numbers or ranges. Special strings may be used, such as odd, even, and last. For example: 1-: from page 1 to the end of the document 2: only the 2nd page 2,4,6: pages 2, 4, and 6 2-5: pages 2 through 5 odd,2: the 2nd page and all odd pages pageSize: The page size (optional). Possible values: A0, A1, A2, A3, A4, A5, A6, Letter. pageWidth: The width of the page (optional). pageHeight: The height of the page (optional). marginLeft: Left margin (optional). marginRight: Right margin (optional). marginTop: Top margin (optional). marginBottom: Bottom margin (optional). displayHeader: Header appearance (optional). Possible values: none: completely excluded space: only the content is excluded, the space is used content: the content is printed (default) displayFooter: Footer appearance (optional). Possible values: none: completely excluded space: only the content is excluded, the space is used content: the content is printed (default) headerHeight: Height of the header (optional). footerHeight: Height of the footer (optional). orientation: Page orientation, such as "portrait" or "landscape" (optional). backgroundColor: Page background color in RRGGBB or RRGGBBAA hexadecimal format (optional). Dimensions may be empty, 0 or specified in inches "in", millimeters "mm", centimeters "cm", pixels "px", or points "pt".`,required:!1}),converter_version:m.StaticDropdown({displayName:"Converter Version",description:"Set the converter version. Different versions may produce different output. Choose which one provides the best output for your case.",required:!1,options:{options:[{label:"24.04",value:"24.04"},{label:"20.10",value:"20.10"},{label:"18.10",value:"18.10"}]},defaultValue:"24.04"}),page_watermark:m.File({displayName:"Page Watermark",description:'Apply the first page of a watermark PDF to every page of the output PDF. Use this to add transparent overlays like "DRAFT" stamps, security markings, or branding elements that appear on top of content. Ideal for confidential document marking or adding protective overlays.',required:!1}),multipage_watermark:m.File({displayName:"Multipage Watermark",description:"Apply each page of a watermark PDF to the corresponding page of the output PDF. Use this for page-specific watermarks where different pages need different overlays - for example, different approval stamps per department. If the watermark has fewer pages than the output, the last watermark page is repeated for remaining pages.",required:!1}),page_background:m.File({displayName:"Page Background",description:"Apply the first page of a background PDF to every page of the output PDF. Use this to add letterheads, branded templates, or decorative backgrounds that appear behind your content. Backgrounds appear beneath content, while watermarks layer on top. Perfect for adding company letterheads to reports or applying branded templates to dynamically generated content.",required:!1}),multipage_background:m.File({displayName:"Multipage Background",description:"Apply each page of a background PDF to the corresponding page of the output PDF. Use this for page-specific backgrounds where each page needs a different template - for example, different letterheads for front and back pages. If the background has fewer pages than the output, the last background page is repeated for remaining pages.",required:!1})},async run(e){let{auth:r,propsValue:n}=e,i=new cv.default;i.append("text",n.htmlContent);let t=["page_size","page_width","page_height","orientation","margin_top","margin_right","margin_bottom","margin_left","no_margins","print_page_range","content_viewport_width","content_viewport_height","content_fit_mode","remove_blank_pages","header_url","header_html","header_height","footer_url","footer_html","footer_height","no_header_footer_horizontal_margins","exclude_header_on_pages","exclude_footer_on_pages","header_footer_scale_factor","page_numbering_offset","page_watermark_url","multipage_watermark_url","page_background_url","multipage_background_url","page_background_color","use_print_media","no_background","disable_javascript","disable_image_loading","disable_remote_fonts","load_iframes","block_ads","default_encoding","locale","http_auth_user_name","http_auth_password","cookies","verify_ssl_certificates","fail_on_main_url_error","fail_on_any_url_error","css_page_rule_mode","custom_css","custom_javascript","on_load_javascript","custom_http_header","javascript_delay","element_to_convert","element_to_convert_mode","wait_for_element","auto_detect_element_to_convert","readability_enhancements","scale_factor","jpeg_quality","convert_images_to_jpeg","image_dpi","enable_pdf_forms","linearize","encrypt","user_password","owner_password","no_print","no_modify","no_copy","title","subject","author","keywords","extract_meta_tags","page_layout","page_mode","initial_zoom_type","initial_page","initial_zoom","hide_toolbar","hide_menubar","hide_window_ui","fit_window","center_window","display_title","right_to_left","debug_log","tag","http_proxy","https_proxy","layout_dpi","main_document_css_annotation","header_footer_css_annotation","conversion_config"];for(let v of t){let u=n[v];u!=null&&u!==""&&u!==!1&&i.append(v,String(u))}if(n.data_string){i.append("data_string",String(n.data_string));let v=["data_format","data_ignore_undefined","data_auto_escape","data_trim_blocks","data_options"];for(let u of v){let h=n[u];h!=null&&h!==""&&h!==!1&&i.append(u,String(h))}}let o=["page_watermark","multipage_watermark","page_background","multipage_background"];for(let v of o){let u=n[v];u?.data&&i.append(v,u.data,{filename:u.filename||`${v}.pdf`})}let a=i.getBuffer(),c=n.converter_version||"24.04",p=await dt.sendRequest({method:"POST",url:Ts(c),headers:{Authorization:Ss(r),"User-Agent":"pdfcrowd-activepieces/1.1.0",...i.getHeaders()},body:a,responseType:"arraybuffer"});if(p.status>=400){let v=Buffer.from(p.body).toString("utf-8");throw new Error(`Conversion failed (${p.status}): ${v}`)}let d=n.outputFilename||"document.pdf",f=await e.files.write({fileName:d,data:Buffer.from(p.body)}),b=p.headers||{};return{file:f,filename:d,jobId:b["x-pdfcrowd-job-id"]||"",pageCount:b["x-pdfcrowd-pages"]||"0",outputSize:b["x-pdfcrowd-output-size"]||"0",consumedCredits:b["x-pdfcrowd-consumed-credits"]||"0",remainingCredits:b["x-pdfcrowd-remaining-credits"]||"0"}}});var tI=Fg({displayName:"Pdfcrowd",auth:Mt,minimumSupportedRelease:"0.36.1",logoUrl:"https://cdn.activepieces.com/pieces/pdfcrowd.png",authors:["pdfcrowd","sanket-a11y"],categories:["CONTENT_AND_FILES"],description:"Convert web pages and HTML to PDF with advanced formatting options",actions:[sv,uv,ov({auth:Mt,baseUrl:s(()=>iv,"baseUrl"),authMapping:s(async e=>({Authorization:`Basic ${Buffer.from(`${e.username}:${e.password}`).toString("base64")}`}),"authMapping")})],triggers:[]});0&&(module.exports={pdfcrowd});
4
42
  /*! Bundled license information:
5
43
 
6
44
  mime-types/index.js: